/* ===============================================
   INSIGHTS / BLOG PAGE STYLES
   =============================================== */

/* --- HERO SECTION --- */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}






/* --- HERO SECTION --- */
.blog-hero {
    padding: 100px 20px 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border-color);
}

.liquid-bg {
    position: absolute;
    inset: 0;
    z-index: 1;
    filter: blur(100px);
    opacity: 0.6;
}

.blob {
    position: absolute;
    border-radius: 50%;
    mix-blend-mode: multiply;
}

.b-1 {
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, var(--primary-color) 0%, transparent 70%);
    top: -20%;
    left: -10%;
    opacity: 0.12;
    animation: liquidMove 20s infinite alternate ease-in-out;
}

.b-2 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--fg-600) 0%, transparent 70%);
    bottom: -10%;
    right: -10%;
    opacity: 0.1;
    animation: liquidMove 18s infinite alternate-reverse ease-in-out;
}

.b-3 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--fg-300) 0%, transparent 70%);
    top: 30%;
    left: 40%;
    opacity: 0.08;
    animation: liquidMove 25s infinite alternate ease-in-out 2s;
}

@keyframes liquidMove {
    0% {
        transform: translate(0, 0) scale(1) rotate(0deg);
    }

    100% {
        transform: translate(150px, 100px) scale(1.2) rotate(45deg);
    }
}

.glass-overlay {
    position: absolute;
    inset: 0;
    backdrop-filter: blur(20px);
    background: radial-gradient(circle at center, transparent 0%, rgba(255, 255, 255, 0.2) 100%);
    z-index: 2;
}

.container.relative {
    position: relative;
    z-index: 10;
}

/* Technical grid layer */
.blog-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(45, 90, 67, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(45, 90, 67, 0.05) 1px, transparent 1px);
    background-size: 80px 80px;
    pointer-events: none;
    z-index: 5;
    opacity: 0.4;
}



/* TEXT ANIMATIONS */
.blog-hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 24px;
    color: var(--fg-900);
    letter-spacing: -0.02em;
}

.blog-hero h1 span {
    position: relative;
    display: inline-block;
}

.text-gradient,
.accent {
    background: linear-gradient(90deg, #10b981, #06b6d4, #3b82f6, #10b981);
    background-size: 300% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
    animation: textGradientFlow 4s linear infinite, glowPulse 3s ease-in-out infinite;
}

.reveal-text {
    opacity: 0;
    transform: translateY(40px);
    animation: revealIn 1.2s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes revealIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.blog-hero p {
    font-size: 1.35rem;
    color: var(--text-secondary);
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
    opacity: 0;
}

.fade-in-up {
    animation: revealIn 1.2s cubic-bezier(0.22, 1, 0.36, 1) 0.4s forwards;
}




































/* --- BLOG GRID SECTION --- */
.blog-section {
    padding: 40px 20px;
    background: var(--bg-primary);
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

/* --- BLOG CARD --- */
.blog-card {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.22, 1, 0.36, 1);
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 1;
}



.blog-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 25px 50px rgba(45, 90, 67, 0.15);
    border-color: var(--primary-color);
}

/* --- GLOW BORDER EFFECT --- */
.blog-card::after {
    content: '';
    position: absolute;
    inset: -1px;
    background: linear-gradient(45deg, var(--primary-color), transparent, var(--primary-color));
    z-index: -1;
    border-radius: 20px;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.blog-card:hover::after {
    opacity: 0.3;
}

.blog-image {
    height: 220px;
    background: var(--bg-secondary);
    position: relative;
    overflow: hidden;
}

.blog-content {
    padding: 30px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    align-items: center;
    text-align: center;
}

.blog-category {
    display: inline-block;
    padding: 6px 14px;
    background: var(--bg-tertiary);
    color: var(--primary-color);
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.blog-card h3 {
    font-size: 1.5rem;
    margin-bottom: 12px;
    color: var(--fg-800);
    line-height: 1.3;
}

.blog-card p {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 24px;
    flex-grow: 1;
    line-height: 1.6;
}

.blog-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: var(--primary-color);
    text-decoration: none;
    transition: gap 0.3s ease;
    margin-top: auto;
}

.blog-btn:hover {
    color: var(--primary-color);
}

/* --- BLOG SECTION REVEAL ANIMATION --- */
.blog-section .reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.blog-section .reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered cards reveal */
.blog-grid .reveal:nth-child(1) {
    transition-delay: 0.1s;
}

.blog-grid .reveal:nth-child(2) {
    transition-delay: 0.2s;
}

.blog-grid .reveal:nth-child(3) {
    transition-delay: 0.3s;
}

.subsection-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 60px;
    color: var(--fg-900);
    line-height: 1.2;
}



/* --- VIDEO SECTION --- */
.video-section {
    padding: 50px 0;
    background: var(--bg-secondary);
    position: relative;
    overflow: hidden;
}

/* --- DOT MATRIX BACKGROUND --- */
.dot-matrix-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0.1;
    background-image: radial-gradient(var(--primary-color) 1px, transparent 1px);
    background-size: 24px 24px;
    mask-image: linear-gradient(to bottom, transparent, black, transparent);
    animation: dotsMove 30s linear infinite;
}

@keyframes dotsMove {
    from {
        background-position: 0 0;
    }

    to {
        background-position: 0 1000px;
    }
}

.section-header-row {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 60px;
}

.section-header-row h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--fg-900);
    line-height: 1.2;
}

.video-links-list {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.video-link-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px;
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-align: center;
}



.video-link-item:hover {
    transform: translateY(-8px) scale(1.03);
    border-color: var(--primary-color);
    box-shadow: 0 0 40px rgba(45, 90, 67, 0.2);
}

.video-link-content h4 {
    font-size: 1.35rem;
    color: var(--fg-800);
    margin-bottom: 20px;
    transition: color 0.3s ease;
}

.video-link-item:hover h4 {
    color: var(--primary-color);
}

.video-link-icon {
    width: 60px;
    height: 60px;
    background: var(--bg-secondary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 1.5rem;
    margin: 10px 0;
    transition: all 0.3s ease;
    box-shadow: inset 0 0 0 1px var(--border-color);
}

.video-link-item:hover .video-link-icon {
    background: var(--primary-color);
    color: var(--white);
    transform: rotate(360deg);
    box-shadow: 0 0 20px var(--primary-color);
}

.video-link-meta {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-top: 15px;
}

/* --- VIDEO REVEAL ANIMATION (BLUR IN) --- */
.video-section .reveal {
    opacity: 0;
    filter: blur(15px);
    transform: scale(0.9);
    transition: all 1s cubic-bezier(0.22, 1, 0.36, 1);
}

.video-section .reveal.active {
    opacity: 1;
    filter: blur(0);
    transform: scale(1);
}

.video-links-list .reveal:nth-child(1) {
    transition-delay: 0.1s;
}

.video-links-list .reveal:nth-child(2) {
    transition-delay: 0.25s;
}

.video-links-list .reveal:nth-child(3) {
    transition-delay: 0.4s;
}

/* --- EXPERTS SECTION --- */


/* --- NEWSLETTER SECTION --- */
.newsletter-section {
    padding: 80px 0;
}

.newsletter-box {
    background: var(--fg-900);
    border-radius: 24px;
    padding: 60px 40px;
    text-align: center;
    color: var(--white);
    max-width: 800px;
    margin: 0 auto;
}

.nl-content h2 {
    color: var(--white);
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
}

.nl-content p {
    color: var(--fg-200);
    margin-bottom: 32px;
}

.nl-form {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.nl-form input {
    padding: 12px 20px;
    border-radius: 8px;
    border: none;
    min-width: 250px;
}

.nl-form button {
    padding: 14px 40px;
    background: var(--primary-gradient);
    color: var(--white);
    border: none;
    border-radius: 100px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: var(--button-glow);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.nl-form button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(120deg,
            transparent,
            rgba(255, 255, 255, 0.3),
            transparent);
    transition: all 0.6s;
}

.nl-form button:hover {
    transform: translateY(-4px) scale(1.03);
    box-shadow: 0 15px 35px rgba(16, 185, 129, 0.4), 0 15px 35px rgba(59, 130, 246, 0.3);
    filter: brightness(1.1);
}

.nl-form button:hover::before {
    left: 100%;
}

/* --- BLOG CTA --- */
.blog-cta {
    background: var(--bg-primary);
    padding: 100px 0;
    text-align: center;
    color: var(--text-primary);
    border-top: 1px solid var(--border-color);
}

.blog-cta h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--fg-900);
    line-height: 1.2;
}

.blog-cta p {
    font-size: 1.2rem;
    margin-bottom: 40px;
}

.cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-gradient);
    color: var(--white) !important;
    padding: 18px 46px;
    border-radius: 100px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.15rem;
    box-shadow: var(--button-glow);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.cta-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(120deg,
            transparent,
            rgba(255, 255, 255, 0.35),
            transparent);
    transition: all 0.6s;
}

.cta-btn:hover {
    transform: translateY(-5px) scale(1.04);
    box-shadow: 0 15px 40px rgba(16, 185, 129, 0.45), 0 15px 40px rgba(59, 130, 246, 0.35);
    filter: brightness(1.1);
}

.cta-btn:hover::before {
    left: 100%;
}

/* --- FEATURED SECTION --- */
.featured-section {
    padding: 80px 0;
}

.featured-card {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 0;
    background: var(--white);
    border-radius: 24px;
    border: 1px solid var(--border-color);
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.22, 1, 0.36, 1);
    position: relative;
}

.featured-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px var(--primary-shadow);
    border-color: var(--primary-color);
}

.featured-image {
    background: var(--bg-secondary);
    min-height: 400px;
    position: relative;
    overflow: hidden;
    background-image:
        linear-gradient(rgba(45, 90, 67, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(45, 90, 67, 0.05) 1px, transparent 1px);
    background-size: 20px 20px;
}

.featured-image::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(255, 255, 255, 0.8) 0%, transparent 70%);
    opacity: 0.3;
    transition: transform 0.6s ease;
}

.featured-card:hover .featured-image::before {
    transform: scale(1.5);
}

.featured-content {
    padding: 60px 80px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: var(--white);
    position: relative;
    z-index: 2;
}

.meta-date {
    display: block;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 20px;
}

.featured-content h2 {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 24px;
    color: var(--fg-900);
}

.featured-content p {
    font-size: 1.15rem;
    line-height: 1.6;
    color: var(--text-secondary);
    margin-bottom: 32px;
}

.badge-overlay {
    position: absolute;
    top: 24px;
    left: 24px;
    background: var(--white);
    color: var(--primary-color);
    padding: 8px 16px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.85rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    z-index: 2;
    animation: badgePulse 2s infinite ease-in-out;
}

@keyframes badgePulse {
    0% {
        transform: scale(1);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    }

    50% {
        transform: scale(1.05);
        box-shadow: 0 4px 20px var(--primary-shadow);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    }
}

.featured-image::after {
    content: '';
    position: absolute;
    top: -100%;
    left: 0;
    width: 100%;
    height: 50%;
    background: linear-gradient(to bottom, transparent, rgba(45, 90, 67, 0.1), transparent);
    animation: scanLine 4s linear infinite;
    pointer-events: none;
}

@keyframes scanLine {
    0% {
        top: -100%;
    }

    100% {
        top: 100%;
    }
}

/* --- FEATURED SECTION ANIMATIONS --- */
.featured-section .reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 1s cubic-bezier(0.22, 1, 0.36, 1);
}

.featured-section .reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger children inside active featured-content */
.featured-content.active>* {
    animation: fadeInUp 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    opacity: 0;
}

.featured-content.active>*:nth-child(1) {
    animation-delay: 0.2s;
}

.featured-content.active>*:nth-child(2) {
    animation-delay: 0.35s;
}

.featured-content.active>*:nth-child(3) {
    animation-delay: 0.5s;
}

.featured-content.active>*:nth-child(4) {
    animation-delay: 0.65s;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .blog-hero h1 {
        font-size: 3rem;
    }

    .featured-card {
        grid-template-columns: 1fr;
    }
}