:root,
[data-bs-theme="light"] {
    --si-primary: #4f46e5;
    --si-primary-dark: #4338ca;
    --si-primary-light: #eef2ff;
    --si-text-primary: #0f172a;
    --si-text-secondary: #334155;
    --si-text-muted: #64748b;
    --si-border: #eef2f7;
    --si-card-shadow: 0 8px 30px rgba(0, 0, 0, .06);
    --si-card-shadow-hover: 0 20px 50px rgba(79, 70, 229, .12);
    --si-radius: 18px;
    --si-transition: .35s cubic-bezier(.25, .46, .45, .94);
    --si-body-bg: #ffffff;
    --si-hero-bg: linear-gradient(165deg, #f8faff 0%, #f0f4ff 50%, #eef2ff 100%);
    --si-card-bg: #ffffff;
    --si-chip-bg: #ffffff;
    --si-chip-border: #e2e8f0;
    --si-newsletter-bg: linear-gradient(135deg, #f8faff 0%, #eef2ff 100%);
    --si-cta-bg: linear-gradient(135deg, #0f172a 0%, #076BA7 100%);
    --si-section-alt: #ffffff;
    --si-alternate-color: #F0F6FA;
}

[data-bs-theme="dark"] {
    --si-primary: #818cf8;
    --si-primary-dark: #6366f1;
    --si-primary-light: #1e1b4b;
    --si-text-primary: #f1f5f9;
    --si-text-secondary: #cbd5e1;
    --si-text-muted: #94a3b8;
    --si-border: rgba(255, 255, 255, 0.08);
    --si-card-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
    --si-card-shadow-hover: 0 20px 50px rgba(0, 0, 0, 0.5);
    --si-body-bg: #0f172a;
    --si-hero-bg: linear-gradient(165deg, #0f172a 0%, #1e1b4b 50%, #0f172a 100%);
    --si-card-bg: #1e293b;
    --si-chip-bg: #1e293b;
    --si-chip-border: #334155;
    --si-newsletter-bg: linear-gradient(135deg, #1e293b 0%, #1e1b4b 100%);
    --si-cta-bg: linear-gradient(135deg, #076BA7 0%, #0f172a 100%);
    --si-section-alt: #0f172a;
    --si-alternate-color: #16222F;
}

/*  GLOBAL RESET & TYPOGRAPHY  */
body {
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    line-height: 1.6;
    color: var(--si-body-color);
    background-color: var(--si-body-bg);
}

.section-padding {
    padding: 80px 0;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.2;
    color: var( --si-text-primary);
}

.section-subtitle {
    font-size: 1.125rem;
    color: var( --si-text-muted);
    max-width: 640px;
    line-height: 1.7;
    margin-left: auto;
    margin-right: auto;
}

/* =============================================
                       REVEAL ANIMATIONS
                    ============================================= */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity .7s ease, transform .7s ease;
}

    .reveal.active {
        opacity: 1;
        transform: translateY(0);
    }

.reveal-delay-1 {
    transition-delay: .1s;
}

.reveal-delay-2 {
    transition-delay: .2s;
}

.reveal-delay-3 {
    transition-delay: .3s;
}

.reveal-delay-4 {
    transition-delay: .4s;
}

/* =============================================
                       HERO SECTION
                    ============================================= */
.hero-insights {
    position: relative;
    padding: 60px 0 72px;
    background: var( --si-hero-bg);
    overflow: hidden;
    text-align: center;
}

    .hero-insights::before,
    .hero-insights::after {
        content: '';
        position: absolute;
        border-radius: 50%;
        pointer-events: none;
        background: radial-gradient(circle, rgba(79,70,229,0.06) 0%, transparent 70%);
    }

    .hero-insights::before {
        top: -40%;
        right: -10%;
        width: 600px;
        height: 600px;
    }

    .hero-insights::after {
        bottom: -30%;
        left: -5%;
        width: 500px;
        height: 500px;
    }

    .hero-insights .container {
        position: relative;
        z-index: 2;
    }

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(79, 70, 229, .1);
    color: var( --si-primary);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 6px 16px 6px 12px;
    border-radius: 50px;
    border: 1px solid rgba(79, 70, 229, .15);
    margin-bottom: 20px;
}

    .hero-badge .dot {
        width: 6px;
        height: 6px;
        border-radius: 50%;
        background: var( --si-primary);
        display: inline-block;
        animation: pulse-dot 2s ease-in-out infinite;
    }

@keyframes pulse-dot {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: .4;
        transform: scale(.7);
    }
}

.hero-title {
    font-size: clamp(1.8rem, 4vw, 3rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.08;
    color: var( --si-text-primary);
}

    .hero-title .highlight {
        background: linear-gradient(135deg, var( --si-primary), #7c3aed);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
    }

.hero-description {
    font-size: 1.15rem;
    color: var( --si-text-secondary);
    line-height: 1.8;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

/* =============================================
                       FEATURED ARTICLE
                    ============================================= */
.featured-card {
    background: var( --si-card-bg);
    border-radius: var( --si-radius);
    overflow: hidden;
    box-shadow: var( --si-card-shadow);
    border: 1px solid var( --si-border);
    transition: var( --si-transition);
    display: flex;
    flex-direction: row;
}

    .featured-card:hover {
        box-shadow: var( --si-card-shadow-hover);
        transform: translateY(-4px);
    }

    .featured-card .featured-image {
        flex: 0 0 48%;
        overflow: hidden;
        position: relative;
        min-height: 320px;
    }

        .featured-card .featured-image img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: transform .6s ease;
        }

    .featured-card:hover .featured-image img {
        transform: scale(1.04);
    }

    .featured-card .featured-body {
        flex: 1;
        padding: 40px 44px;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    .featured-card .featured-meta {
        display: flex;
        align-items: center;
        gap: 14px;
        flex-wrap: wrap;
        margin-bottom: 14px;
    }

        .featured-card .featured-meta .badge-category {
            background: var( --si-primary-light);
            color: var( --si-primary);
            font-size: 0.75rem;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 0.04em;
            padding: 4px 14px;
            border-radius: 50px;
        }

        .featured-card .featured-meta .meta-text {
            font-size: 0.85rem;
            color: var( --si-text-muted);
            display: flex;
            align-items: center;
            gap: 6px;
        }

    .featured-card .featured-title {
        font-size: 1.85rem;
        font-weight: 700;
        line-height: 1.3;
        margin-bottom: 16px;
        letter-spacing: -0.01em;
    }

        .featured-card .featured-title a {
            color: var( --si-text-primary);
            text-decoration: none;
            transition: color .3s;
        }

            .featured-card .featured-title a:hover {
                color: var( --si-primary);
            }

    .featured-card .featured-excerpt {
        color: var( --si-text-secondary);
        line-height: 1.8;
        margin-bottom: 24px;
        font-size: 1.02rem;
    }

    .featured-card .featured-author {
        display: flex;
        align-items: center;
        gap: 14px;
        margin-top: auto;
    }

        .featured-card .featured-author .avatar {
            width: 44px;
            height: 44px;
            border-radius: 50%;
            object-fit: cover;
        }

        .featured-card .featured-author .name {
            font-weight: 600;
            color: var( --si-text-primary);
            display: block;
            font-size: 0.95rem;
        }

        .featured-card .featured-author .role {
            font-size: 0.8rem;
            color: var( --si-text-muted);
        }

    .featured-card .btn-read {
        color: var( --si-primary);
        font-weight: 600;
        text-decoration: none;
        display: inline-flex;
        align-items: center;
        gap: 8px;
        transition: var( --si-transition);
        margin-top: 8px;
    }

        .featured-card .btn-read i {
            transition: transform .3s;
        }

        .featured-card .btn-read:hover i {
            transform: translateX(6px);
        }

        .featured-card .btn-read:hover {
            color: var( --si-primary-dark);
        }

/* =============================================
                       BLOG CARDS (Latest Articles)
                    ============================================= */
.blog-card {
    background: var( --si-card-bg);
    border-radius: var( --si-radius);
    overflow: hidden;
    box-shadow: var( --si-card-shadow);
    border: 1px solid var( --si-border);
    transition: var( --si-transition);
    display: flex;
    flex-direction: column;
    height: 100%;
}

    .blog-card:hover {
        transform: translateY(-8px);
        box-shadow: var( --si-card-shadow-hover);
        border-color: rgba(79, 70, 229, .15);
    }

    .blog-card .blog-image {
        display: block;
        overflow: hidden;
        position: relative;
    }

        .blog-card .blog-image img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: transform .6s ease;
        }

    .blog-card:hover .blog-image img {
        transform: scale(1.06);
    }

    .blog-card .blog-content {
        padding: 26px 28px 28px;
        display: flex;
        flex-direction: column;
        flex: 1;
    }

    .blog-card .blog-top-meta {
        display: flex;
        align-items: center;
        gap: 12px;
        flex-wrap: wrap;
        margin-bottom: 12px;
    }

        .blog-card .blog-top-meta .badge-category {
            background: var( --si-primary-light);
            color: var( --si-primary);
            font-size: 0.7rem;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 0.04em;
            padding: 3px 12px;
            border-radius: 50px;
        }

        .blog-card .blog-top-meta .reading-time {
            font-size: 0.8rem;
            color: var( --si-text-muted);
            display: flex;
            align-items: center;
            gap: 4px;
        }

    .blog-card .blog-title {
        font-size: 1.2rem;
        font-weight: 700;
        line-height: 1.4;
        margin-bottom: 12px;
    }

        .blog-card .blog-title a {
            color: var( --si-text-primary);
            text-decoration: none;
            transition: color .3s;
        }

            .blog-card .blog-title a:hover {
                color: var( --si-primary);
            }

    .blog-card .blog-excerpt {
        color: var( --si-text-secondary);
        line-height: 1.7;
        font-size: 1rem;
        flex: 1;
        margin-bottom: 20px;
    }

    .blog-card .blog-footer {
        display: flex;
        justify-content: space-between;
        align-items: center;
        border-top: 1px solid var( --si-border);
        padding-top: 18px;
        margin-top: auto;
    }

        .blog-card .blog-footer .author {
            display: flex;
            align-items: center;
            gap: 10px;
        }

            .blog-card .blog-footer .author .avatar {
                width: 36px;
                height: 36px;
                border-radius: 50%;
                object-fit: cover;
            }

            .blog-card .blog-footer .author .info .name {
                font-weight: 600;
                font-size: 0.88rem;
                color: var( --si-text-primary);
                display: block;
                line-height: 1.2;
            }

            .blog-card .blog-footer .author .info .date {
                font-size: 0.78rem;
                color: var( --si-text-muted);
            }

        .blog-card .blog-footer .read-more {
            color: var( --si-primary);
            font-weight: 600;
            font-size: 0.9rem;
            text-decoration: none;
            display: inline-flex;
            align-items: center;
            gap: 4px;
            transition: var( --si-transition);
        }

            .blog-card .blog-footer .read-more i {
                transition: transform .3s;
            }

            .blog-card .blog-footer .read-more:hover i {
                transform: translateX(5px);
            }

            .blog-card .blog-footer .read-more:hover {
                color: var( --si-primary-dark);
            }

/* =============================================
                       CTA SECTION
                    ============================================= */
.cta-section {
    background: var( --si-cta-bg);
    border-radius: var( --si-radius);
    padding: 64px 56px;
    color: #fff;
    position: relative;
    overflow: hidden;
}

    .cta-section::before,
    .cta-section::after {
        content: '';
        position: absolute;
        border-radius: 50%;
        pointer-events: none;
    }

    .cta-section::before {
        top: -40%;
        right: -5%;
        width: 500px;
        height: 500px;
        background: radial-gradient(circle, rgba(79,70,229,0.15) 0%, transparent 70%);
    }

    .cta-section::after {
        bottom: -30%;
        left: -5%;
        width: 400px;
        height: 400px;
        background: radial-gradient(circle, rgba(124,58,237,0.08) 0%, transparent 70%);
    }

    .cta-section .cta-content {
        position: relative;
        z-index: 2;
    }

    .cta-section .cta-title {
        font-size: 2.5rem;
        font-weight: 700;
        letter-spacing: -0.02em;
        margin-bottom: 16px;
        color: #fff;
    }

    .cta-section .cta-desc {
        color: rgba(255,255,255,0.7);
        line-height: 1.8;
        max-width: 560px;
        font-size: 1.05rem;
    }

    .cta-section .cta-buttons {
        display: flex;
        gap: 16px;
        flex-wrap: wrap;
        margin-top: 8px;
    }

        .cta-section .cta-buttons .btn-cta-primary {
            background: #fff;
            color: #000;
            font-weight: 600;
            padding: 0.75rem 2.2rem;
            border-radius: 50px;
            border: none;
            transition: var( --si-transition);
            text-decoration: none;
            display: inline-flex;
            align-items: center;
            gap: 8px;
        }

            .cta-section .cta-buttons .btn-cta-primary:hover {
                transform: translateY(-3px);
                box-shadow: 0 12px 30px rgba(0,0,0,0.25);
                background: #f8fafc;
            }

        .cta-section .cta-buttons .btn-cta-outline {
            background: transparent;
            color: #fff;
            font-weight: 600;
            padding: 0.75rem 2.2rem;
            border-radius: 50px;
            border: 1.5px solid rgba(255,255,255,0.3);
            transition: var( --si-transition);
            text-decoration: none;
            display: inline-flex;
            align-items: center;
            gap: 8px;
        }

            .cta-section .cta-buttons .btn-cta-outline:hover {
                background: rgba(255,255,255,0.1);
                border-color: rgba(255,255,255,0.6);
                transform: translateY(-3px);
            }

/* =============================================
                       RESPONSIVE TWEAKS
                    ============================================= */
@media (max-width: 991.98px) {
    .hero-title {
        font-size: 2.6rem;
    }

    .hero-insights {
        padding: 40px 0 56px;
    }

    .featured-card {
        flex-direction: column;
    }

        .featured-card .featured-image {
            flex: 0 0 auto;
            min-height: 220px;
            aspect-ratio: 16/9;
        }

        .featured-card .featured-body {
            padding: 28px 30px;
        }

        .featured-card .featured-title {
            font-size: 1.5rem;
        }

    .section-title {
        font-size: 2rem;
    }

    .cta-section {
        padding: 44px 28px;
    }

        .cta-section .cta-title {
            font-size: 2rem;
        }

    .section-padding {
        padding: 56px 0;
    }
}

@media (max-width: 767.98px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-description {
        font-size: 1rem;
    }

    .featured-card .featured-body {
        padding: 22px 20px;
    }

    .featured-card .featured-title {
        font-size: 1.25rem;
    }

    .featured-card .featured-excerpt {
        font-size: 0.95rem;
    }

    .blog-card .blog-content {
        padding: 20px 18px 22px;
    }

    .blog-card .blog-title {
        font-size: 1.05rem;
    }

    .cta-section {
        padding: 32px 20px;
    }

        .cta-section .cta-title {
            font-size: 1.6rem;
        }

        .cta-section .cta-buttons {
            flex-direction: column;
            align-items: flex-start;
        }

            .cta-section .cta-buttons .btn-cta-primary,
            .cta-section .cta-buttons .btn-cta-outline {
                width: 100%;
                justify-content: center;
            }

    .section-padding {
        padding: 40px 0;
    }
}

@media (max-width: 575.98px) {
    .hero-title {
        font-size: 1.7rem;
    }

    .section-title {
        font-size: 1.6rem;
    }

    .section-subtitle {
        font-size: 0.95rem;
    }

    .featured-card .featured-image {
        min-height: 160px;
    }
}
