/* ================================================================
   BLOG POST MODERN DESIGN STYLES
   ================================================================ */

/* Blog Hero Section with Gradient */
.blog-hero-section {
    background: linear-gradient(180deg, #f0fdf9 0%, #e6fff9 50%, #ffffff 100%);
    padding: 140px 0 60px;
    position: relative;
    overflow: hidden;
}

.blog-hero-section::before {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(0, 177, 154, 0.12) 0%, transparent 60%);
    top: -150px;
    right: -100px;
    border-radius: 50%;
    animation: floatShape 15s ease-in-out infinite;
}

.blog-hero-section::after {
    content: '';
    position: absolute;
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.08) 0%, transparent 60%);
    bottom: -80px;
    left: -80px;
    border-radius: 50%;
    animation: floatShape 12s ease-in-out infinite reverse;
}

@keyframes floatShape {

    0%,
    100% {
        transform: translateY(0) scale(1);
    }

    50% {
        transform: translateY(-25px) scale(1.05);
    }
}

.blog-hero-image {
    max-width: 650px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
    padding: 0 20px;
}

.blog-hero-image img {
    width: 100%;
    height: auto;
    border-radius: var(--radius-2xl);
    box-shadow: 0 30px 80px rgba(0, 177, 154, 0.2), 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: var(--transition-slower);
    background: linear-gradient(135deg, #e0f7f4 0%, #d5f0ed 100%);
}

.blog-hero-image:hover img {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 40px 100px rgba(0, 177, 154, 0.25), 0 15px 40px rgba(0, 0, 0, 0.12);
}

/* Blog Content Section */
.blog-content-section {
    background: var(--color-bg-white);
    padding: 70px 0 100px;
    position: relative;
}

/* Blog Breadcrumb */
.blog-breadcrumb {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 28px;
    flex-wrap: wrap;
    animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.blog-category-tag {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
    color: #fff;
    padding: 10px 24px;
    border-radius: 50px;
    font-size: 11px;
    font-weight: 700;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    transition: var(--transition-slow);
    box-shadow: 0 6px 20px rgba(0, 177, 154, 0.35);
    display: inline-block;
}

.blog-category-tag:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 10px 30px rgba(0, 177, 154, 0.45);
    color: #fff;
}

.blog-meta-divider {
    color: #cbd5e1;
    font-size: 18px;
}

.blog-meta-date,
.blog-meta-read {
    color: var(--color-text-tertiary);
    font-size: 14px;
    font-weight: 500;
}

/* Blog Title */
.blog-main-title {
    font-size: 52px;
    font-weight: 800;
    color: var(--color-text-primary);
    line-height: 1.12;
    margin-bottom: 35px;
    font-family: var(--font-heading);
    letter-spacing: -1.5px;
    animation: fadeInUp 0.7s ease-out 0.1s both;
}

/* Author Section */
.blog-author-box {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 28px 32px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 20px;
    margin-bottom: 50px;
    border: 1px solid var(--color-border-light);
    animation: fadeInUp 0.8s ease-out 0.2s both;
    transition: var(--transition-medium);
}

.blog-author-box:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
    transform: translateY(-2px);
}

.blog-author-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0, 177, 154, 0.3);
}

.blog-author-avatar svg {
    width: 100%;
    height: 100%;
}

.blog-author-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.blog-author-name {
    font-weight: 700;
    color: var(--color-text-primary);
    font-size: 17px;
    font-family: var(--font-heading);
}

.blog-author-role {
    color: var(--color-text-tertiary);
    font-size: 14px;
}

/* ================================================================
   BLOG ARTICLE BODY - MAIN CONTENT STYLES
   ================================================================ */

.blog-article-body {
    font-size: 18px;
    line-height: 1.9;
    color: #374151;
    counter-reset: blog-section blog-list;
    animation: fadeInUp 0.9s ease-out 0.3s both;
}

/* First paragraph */
.blog-article-body>p:first-of-type {
    font-size: 22px;
    color: #1e293b;
    font-weight: 500;
    line-height: 1.75;
    padding-bottom: 35px;
    border-bottom: 2px solid var(--color-border-light);
    margin-bottom: 50px;
}

/* Headings */
.blog-article-body h2 {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    font-size: 30px;
    font-weight: 700;
    color: var(--color-text-primary);
    margin: 70px 0 30px;
    font-family: var(--font-heading);
    counter-increment: blog-section;
    line-height: 1.3;
    animation: fadeInUp 0.5s ease-out both;
}

.blog-article-body h2::before {
    content: counter(blog-section);
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 52px;
    width: 52px;
    height: 52px;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
    color: #fff;
    border-radius: 16px;
    font-size: 22px;
    font-weight: 800;
    flex-shrink: 0;
    box-shadow: 0 8px 25px rgba(0, 177, 154, 0.4);
    transition: var(--transition-medium);
}

.blog-article-body h2:hover::before {
    transform: scale(1.08) rotate(-3deg);
    box-shadow: 0 12px 35px rgba(0, 177, 154, 0.5);
}

.blog-article-body h3 {
    font-size: 24px;
    font-weight: 700;
    color: #1e293b;
    margin: 45px 0 20px;
    font-family: var(--font-heading);
    padding-left: 24px;
    border-left: 5px solid var(--color-primary);
    background: linear-gradient(90deg, rgba(0, 177, 154, 0.08) 0%, transparent 100%);
    padding: 14px 24px;
    border-radius: 0 12px 12px 0;
}

.blog-article-body h4 {
    font-size: 20px;
    font-weight: 600;
    color: #334155;
    margin: 35px 0 18px;
    font-family: var(--font-heading);
}

.blog-article-body p {
    margin-bottom: 26px;
}

/* Blockquote */
.blog-article-body blockquote {
    background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
    border: none;
    border-left: 6px solid var(--color-primary);
    border-radius: 0 24px 24px 0;
    padding: 35px 40px 35px 35px;
    margin: 45px 0;
    font-style: normal;
    position: relative;
    box-shadow: 0 8px 30px rgba(0, 177, 154, 0.12);
    overflow: hidden;
}

.blog-article-body blockquote::before {
    content: '💡';
    position: absolute;
    top: -18px;
    left: 30px;
    background: #fff;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
    z-index: 2;
}

.blog-article-body blockquote::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(0, 177, 154, 0.15) 0%, transparent 70%);
    border-radius: 50%;
}

.blog-article-body blockquote strong:first-child,
.blog-article-body blockquote b:first-child {
    display: block;
    font-weight: 700;
    color: #047857;
    margin-bottom: 12px;
    font-size: 18px;
    font-family: var(--font-heading);
}

.blog-article-body blockquote p {
    margin: 0;
    color: #047857;
    font-size: 17px;
    line-height: 1.75;
    position: relative;
    z-index: 1;
}

/* Lists */
.blog-article-body ul {
    list-style: none;
    padding: 0;
    margin: 35px 0;
}

.blog-article-body ul li {
    position: relative;
    padding-left: 50px;
    margin-bottom: 20px;
    line-height: 1.75;
    transition: var(--transition-medium);
}

.blog-article-body ul li:hover {
    transform: translateX(5px);
}

.blog-article-body ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 2px;
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
    border-radius: 50%;
    box-shadow: 0 5px 15px rgba(0, 177, 154, 0.35);
    transition: var(--transition-medium);
}

.blog-article-body ul li:hover::before {
    transform: scale(1.1);
    box-shadow: 0 8px 25px rgba(0, 177, 154, 0.45);
}

.blog-article-body ul li::after {
    content: '';
    position: absolute;
    left: 8px;
    top: 11px;
    width: 16px;
    height: 9px;
    border-left: 3px solid #fff;
    border-bottom: 3px solid #fff;
    transform: rotate(-45deg);
}

/* Ordered Lists */
.blog-article-body ol {
    list-style: none;
    padding: 0;
    margin: 35px 0;
    counter-reset: blog-list;
}

.blog-article-body ol li {
    position: relative;
    padding-left: 60px;
    margin-bottom: 22px;
    counter-increment: blog-list;
    line-height: 1.75;
    transition: var(--transition-medium);
}

.blog-article-body ol li:hover {
    transform: translateX(5px);
}

.blog-article-body ol li::before {
    content: counter(blog-list);
    position: absolute;
    left: 0;
    top: 0;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
    border-radius: 50%;
    color: #fff;
    font-weight: 700;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 15px rgba(0, 177, 154, 0.35);
    transition: var(--transition-medium);
}

.blog-article-body ol li:hover::before {
    transform: scale(1.1) rotate(-5deg);
    box-shadow: 0 8px 25px rgba(0, 177, 154, 0.45);
}

/* Formatting */
.blog-article-body strong {
    color: #0f172a;
    font-weight: 600;
}

.blog-article-body em {
    color: #475569;
    font-style: italic;
}

.blog-article-body code {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    color: #0369a1;
    padding: 5px 12px;
    border-radius: 8px;
    font-family: 'JetBrains Mono', 'Monaco', 'Consolas', monospace;
    font-size: 15px;
    border: 1px solid #bae6fd;
    font-weight: 500;
}

/* Code Blocks */
.blog-article-body pre {
    background: linear-gradient(145deg, #1e293b 0%, #0f172a 100%);
    color: #e2e8f0;
    padding: 32px;
    border-radius: 20px;
    overflow-x: auto;
    margin: 45px 0;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.blog-article-body pre::before {
    content: 'Sample Code';
    position: absolute;
    top: 0;
    right: 0;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
    color: #fff;
    padding: 8px 20px;
    border-radius: 0 20px 0 16px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.blog-article-body pre::after {
    content: '';
    position: absolute;
    top: 16px;
    left: 20px;
    width: 12px;
    height: 12px;
    background: #ff5f56;
    border-radius: 50%;
    box-shadow: 20px 0 0 #ffbd2e, 40px 0 0 #27c93f;
}

.blog-article-body pre code {
    background: none;
    color: inherit;
    padding: 0;
    font-size: 14px;
    line-height: 1.8;
    border: none;
    display: block;
    padding-top: 10px;
}

/* Share Section */
.blog-share-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 32px 0;
    border-top: 2px solid var(--color-border-light);
    border-bottom: 2px solid var(--color-border-light);
    margin: 60px 0 50px;
}

.blog-share-label {
    font-weight: 700;
    color: #374151;
    font-size: 16px;
    font-family: var(--font-heading);
}

.blog-share-icons {
    display: flex;
    gap: 14px;
}

.blog-share-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    color: #475569;
    transition: var(--transition-slow);
    border: none;
    cursor: pointer;
    text-decoration: none;
}

.blog-share-btn:hover {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
    color: #fff;
    transform: translateY(-5px) scale(1.08);
    box-shadow: 0 10px 30px rgba(0, 177, 154, 0.4);
}

/* CTA Box */
.blog-cta-box {
    display: flex;
    align-items: center;
    gap: 35px;
    background: linear-gradient(135deg, #f0fdfa 0%, #e6fff9 100%);
    border: 2px solid var(--color-primary);
    border-radius: 28px;
    padding: 45px;
    margin-top: 50px;
    position: relative;
    overflow: hidden;
    transition: var(--transition-slow);
}

.blog-cta-box:hover {
    box-shadow: 0 20px 50px rgba(0, 177, 154, 0.2);
    transform: translateY(-5px);
}

.blog-cta-box::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(0, 177, 154, 0.15) 0%, transparent 70%);
    border-radius: 50%;
}

.blog-cta-icon {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 35px rgba(0, 177, 154, 0.4);
    position: relative;
    z-index: 1;
}

.blog-cta-icon svg {
    width: 32px;
    height: 32px;
    color: #fff;
}

.blog-cta-content {
    flex: 1;
    position: relative;
    z-index: 1;
}

.blog-cta-content h3 {
    font-size: 28px;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 10px;
    font-family: var(--font-heading);
    border: none;
    padding: 0;
    background: none;
}

.blog-cta-content p {
    color: #475569;
    margin: 0;
    font-size: 16px;
    line-height: 1.7;
}

.blog-cta-button {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
    color: #fff;
    padding: 18px 40px;
    border-radius: 60px;
    font-weight: 700;
    font-size: 16px;
    text-decoration: none;
    transition: var(--transition-slow);
    flex-shrink: 0;
    box-shadow: 0 8px 25px rgba(0, 177, 154, 0.4);
    position: relative;
    z-index: 1;
}

.blog-cta-button:hover {
    transform: translateY(-4px) scale(1.03);
    box-shadow: 0 15px 40px rgba(0, 177, 154, 0.5);
    color: #fff;
}

.blog-cta-button svg {
    transition: transform 0.3s ease;
}

.blog-cta-button:hover svg {
    transform: translateX(5px);
}

/* Related Posts Section */
.blog-related-section {
    background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
    padding: 100px 0;
}

.blog-related-title {
    font-size: 40px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 55px;
    text-align: center;
    font-family: var(--font-heading);
}

.blog-related-card {
    display: block;
    background: #fff;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.06);
    transition: var(--transition-slower);
    text-decoration: none;
    height: 100%;
    border: 1px solid var(--color-border-light);
}

.blog-related-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.12);
    border-color: var(--color-primary);
}

.blog-related-card:hover .blog-related-img img {
    transform: scale(1.08);
}

.blog-related-img {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.blog-related-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.blog-related-cat {
    position: absolute;
    top: 18px;
    left: 18px;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
    color: #fff;
    padding: 8px 18px;
    border-radius: 25px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(0, 177, 154, 0.3);
}

.blog-related-body {
    padding: 30px;
}

.blog-related-date {
    color: #64748b;
    font-size: 13px;
    display: block;
    margin-bottom: 12px;
    font-weight: 500;
}

.blog-related-body h4 {
    font-size: 20px;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 14px;
    line-height: 1.4;
    font-family: var(--font-heading);
    transition: color 0.3s ease;
}

.blog-related-card:hover .blog-related-body h4 {
    color: var(--color-primary);
}

.blog-related-body p {
    color: #64748b;
    font-size: 15px;
    line-height: 1.65;
    margin: 0 0 18px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-related-link {
    color: var(--color-primary);
    font-weight: 700;
    font-size: 15px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: gap 0.3s ease;
}

.blog-related-card:hover .blog-related-link {
    gap: 12px;
}

/* Responsive */
@media (max-width: 991px) {
    .blog-main-title {
        font-size: 40px;
    }

    .blog-cta-box {
        flex-direction: column;
        text-align: center;
        padding: 35px;
    }

    .blog-cta-content h3 {
        font-size: 24px;
    }

    .blog-author-box {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 767px) {
    .blog-hero-section {
        padding: 120px 0 50px;
    }

    .blog-main-title {
        font-size: 32px;
    }

    .blog-article-body h2 {
        font-size: 24px;
        align-items: center;
    }

    .blog-article-body h2::before {
        width: 40px;
        height: 40px;
        min-width: 40px;
        font-size: 18px;
    }

    .blog-share-section {
        flex-direction: column;
        gap: 20px;
    }

    .blog-article-body pre {
        padding: 20px;
    }

    .blog-article-body ul li {
        padding-left: 40px;
    }
}
/* ================================================================
   BLOG LISTING PAGE
   ================================================================ */

.blog-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin-bottom: 50px;
}

.blog-cat-btn {
    padding: 10px 24px;
    border: 1px solid var(--color-border-light);
    background: var(--color-bg-white);
    border-radius: 50px;
    font-size: 14px;
    font-weight: 500;
    color: var(--color-text-secondary);
    cursor: pointer;
    transition: var(--transition-base);
}

.blog-cat-btn:hover,
.blog-cat-btn.active {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: #fff;
}

/* Blog Card (Listing) - Matches Related Card */
.blog-card {
    display: block;
    background: #fff;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.06);
    transition: var(--transition-slower);
    text-decoration: none;
    height: 100%;
    border: 1px solid var(--color-border-light);
}

.blog-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.12);
    border-color: var(--color-primary);
}

.blog-card:hover .blog-card-image img {
    transform: scale(1.08);
}

.blog-card-image {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.blog-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.blog-category-badge {
    position: absolute;
    top: 18px;
    left: 18px;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
    color: #fff;
    padding: 8px 18px;
    border-radius: 25px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(0, 177, 154, 0.3);
}

.blog-card-content {
    padding: 30px;
}

.blog-date {
    color: #64748b;
    font-size: 13px;
    display: block;
    margin-bottom: 12px;
    font-weight: 500;
}

.blog-card-content h4 {
    font-size: 20px;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 14px;
    line-height: 1.4;
    font-family: var(--font-heading);
    transition: color 0.3s ease;
}

.blog-card:hover .blog-card-content h4 {
    color: var(--color-primary);
}

.blog-card-content p {
    color: #64748b;
    font-size: 15px;
    line-height: 1.65;
    margin: 0 0 18px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.read-more-link {
    color: var(--color-primary);
    font-weight: 700;
    font-size: 15px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: gap 0.3s ease;
}

.blog-card:hover .read-more-link {
    gap: 12px;
}
