/* =========================================
   NEW HERO: SYNCED BENTO GRID (hero.css) - FROSTED SHARDS + ROTATING STACK
   ========================================= */

.hero-bento-container {
    padding: 120px 5% 80px;
    background-color: #f1f5f9;
    background-image:
        radial-gradient(at 0% 0%, hsla(253, 16%, 7%, 0.1) 0, transparent 50%),
        radial-gradient(at 50% 0%, hsla(225, 39%, 30%, 0.1) 0, transparent 50%),
        radial-gradient(at 100% 0%, hsla(39, 100%, 74%, 0.1) 0, transparent 50%);
    background: linear-gradient(135deg, #eef2ff 0%, #e0e7ff 40%, #fef3c7 100%);
    min-height: 90vh;
    display: flex;
    align-items: center;
}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.bento-col-left {
    display: flex;
    flex-direction: column;
    gap: 24px;
    height: 600px;
}

.bento-col-right {
    height: 600px;
}

/* Shared Card Styles */
.bento-card {
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-top: 1px solid rgba(255, 255, 255, 0.95);
    border-left: 1px solid rgba(255, 255, 255, 0.95);
    border-radius: 16px;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.1);
    overflow: hidden;
    position: relative;
    transition: all 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.bento-card:hover {
    transform: translateY(-4px) scale(1.01);
    background: rgba(255, 255, 255, 0.6);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
    border-color: #fff;
}

/* --- TOP LEFT: STACKED CARDS --- */
.hook-stack-container {
    flex: 1;
    position: relative;
    perspective: 1000px;
    min-height: 250px;
}

/* Stack Card Base */
.hook-card {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;

    background: rgba(255, 255, 255, 0.55);
    backdrop-filter: blur(24px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 16px;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.1);

    display: flex;
    align-items: center;
    padding: 40px;

    /* Standard smooth transition for transform/opacity */
    transition: all 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.hook-card h2 {
    font-size: 3.5rem;
    line-height: 1;
    letter-spacing: -0.04em;
    color: var(--text-primary);
    text-shadow: 2px 2px 0px rgba(255, 255, 255, 0.8);
    margin: 0;
}

/* POS-0: FRONT CARD */
.hook-card.pos-0 {
    z-index: 10;
    opacity: 1;
    transform: translateY(0) scale(1);
    /* Reset to default */
    background: rgba(255, 255, 255, 0.7);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    animation: none;
    /* No more flyover animation */
}

/* POS-1: MIDDLE CARD */
.hook-card.pos-1 {
    z-index: 5;
    opacity: 0.7;
    transform: translateY(-15px) scale(0.96);
    /* Standard stack offset */
    background: rgba(255, 255, 255, 0.5);
    filter: brightness(0.95);
}

/* POS-2: BACK CARD */
.hook-card.pos-2 {
    z-index: 1;
    opacity: 0.4;
    transform: translateY(-30px) scale(0.92);
    /* Standard stack offset */
    background: rgba(255, 255, 255, 0.35);
    filter: brightness(0.9);
}

/* --- BOTTOM LEFT: ARTICLE SLIDER --- */
.article-slider-card {
    flex: 0 0 45%;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.article-slides {
    position: relative;
    width: 100%;
    height: 100%;
}

.article-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    /* Added to ensure no interaction/paint when inactive */
    transition: opacity 0.6s ease-in-out, visibility 0.6s;
    /* Transition visibility too */
    pointer-events: none;
    padding: 30px;
}

.article-slide.active {
    opacity: 1;
    visibility: visible;
    pointer-events: all;
    z-index: 2;
}

.article-content {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 24px;
    height: 100%;
    text-decoration: none;
    color: inherit;
}

.article-img {
    width: 140px;
    height: 140px;
    object-fit: contain;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.5);
    padding: 10px;
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: inset 0 0 20px rgba(255, 255, 255, 0.5);
}

.article-text {
    flex: 1;
}

.article-badge {
    position: absolute;
    top: 20px;
    left: 30px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-secondary);
    letter-spacing: 0.05em;
    background: rgba(255, 255, 255, 0.9);
    padding: 4px 10px;
    border-radius: 20px;
    backdrop-filter: blur(4px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.article-text h3 {
    font-size: 1.5rem;
    margin-bottom: 8px;
    line-height: 1.2;
    color: var(--text-primary);
    text-shadow: 0 0 1px rgba(255, 255, 255, 0.8);
}

.article-text p {
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.article-arrow {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.8);
    background: rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: var(--accent-color);
    transition: all 0.2s;
    backdrop-filter: blur(4px);
}

.article-content:hover .article-arrow {
    background: var(--accent-color);
    color: #fff;
    border-color: var(--accent-color);
    transform: translateX(4px);
}

/* Progress Bar */
.slider-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: rgba(0, 0, 0, 0.05);
}

.progress-bar {
    height: 100%;
    width: 0%;
    background: var(--accent-color);
    box-shadow: 0 0 10px var(--accent-color);
}


/* --- RIGHT COL: VISUAL + CTA --- */
.visual-cta-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(0px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.visual-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    transition: transform 0.8s ease;
}

.visual-cta-card:hover .visual-bg {
    transform: scale(1.05);
}

.cta-box {
    position: relative;
    z-index: 2;
    margin: 20px;
    padding: 30px;
    text-align: center;
    color: white;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 12px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.2);
}

.cta-box h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    font-weight: 600;
}

@keyframes pulse-glow {
    0% {
        box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.7);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(245, 158, 11, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(245, 158, 11, 0);
    }
}

.pulse-btn {
    animation: pulse-glow 2s infinite;
    backdrop-filter: none;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.5);
}

@media (max-width: 992px) {
    .hero-bento-container {
        min-height: auto;
        padding: 100px 5% 60px;
    }

    .bento-grid {
        grid-template-columns: 1fr;
        height: auto;
        gap: 20px;
    }

    .bento-col-left {
        height: auto;
        gap: 20px;
        display: flex;
        flex-direction: column;
    }

    .bento-col-right {
        height: auto;
        min-height: 45vw;
        max-height: 400px;
        order: -1;
    }

    /* Hook cards - flexible height */
    .hook-stack-container {
        height: auto;
        min-height: 180px;
        flex: 1;
    }

    .hook-card {
        padding: 25px;
    }

    .hook-card h2 {
        font-size: clamp(1.8rem, 6vw, 2.5rem);
    }

    /* Article slider - flexible height */
    .article-slider-card {
        flex: none;
        height: auto;
        min-height: 180px;
    }

    .article-slides {
        position: relative;
        height: auto;
        min-height: 160px;
    }

    .article-slide {
        position: relative;
        padding: 20px;
        opacity: 0;
        visibility: hidden;
        height: 0;
        overflow: hidden;
        pointer-events: none;
    }

    .article-slide.active {
        opacity: 1;
        visibility: visible;
        height: auto;
        overflow: visible;
        pointer-events: all;
    }

    .article-content {
        flex-direction: row;
        gap: 16px;
        align-items: center;
    }

    .article-img {
        width: 90px;
        height: 90px;
        flex-shrink: 0;
    }

    .article-text {
        flex: 1;
        min-width: 0;
    }

    .article-text h3 {
        font-size: clamp(1rem, 3.5vw, 1.25rem);
        margin-bottom: 6px;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .article-text p {
        font-size: 0.85rem;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .article-badge {
        position: relative;
        top: auto;
        left: auto;
        display: inline-block;
        margin-bottom: 10px;
        font-size: 0.65rem;
        padding: 3px 8px;
    }

    .article-arrow {
        width: 36px;
        height: 36px;
        font-size: 1.1rem;
        flex-shrink: 0;
    }

    .cta-box {
        margin: 15px;
        padding: 20px;
    }

    .cta-box h3 {
        font-size: clamp(1.2rem, 4vw, 1.6rem);
        margin-bottom: 15px;
    }

    .cta-box .btn-primary {
        font-size: clamp(0.85rem, 3vw, 1rem);
        padding: 14px 20px;
        line-height: 1.3;
    }
}

@media (max-width: 600px) {
    .hero-bento-container {
        padding: 85px 4% 40px;
    }

    .bento-grid {
        gap: 14px;
    }

    .bento-col-right {
        min-height: 50vw;
        max-height: 320px;
    }

    .hook-stack-container {
        min-height: 140px;
    }

    .hook-card {
        padding: 18px;
    }

    .hook-card h2 {
        font-size: clamp(1.5rem, 5.5vw, 2rem);
    }

    .article-slider-card {
        min-height: 150px;
    }

    .article-slide {
        padding: 15px;
    }

    .article-content {
        gap: 12px;
    }

    .article-img {
        width: 70px;
        height: 70px;
        padding: 5px;
    }

    .article-text h3 {
        font-size: clamp(0.9rem, 3.2vw, 1.1rem);
    }

    .article-text p {
        font-size: 0.8rem;
        -webkit-line-clamp: 2;
    }

    .article-arrow {
        display: none;
    }

    .cta-box {
        margin: 10px;
        padding: 16px;
    }

    .cta-box h3 {
        font-size: clamp(1.1rem, 3.8vw, 1.3rem);
        margin-bottom: 12px;
    }

    .cta-box .btn-primary {
        font-size: clamp(0.8rem, 2.8vw, 0.95rem);
        padding: 12px 16px;
    }

    .slider-progress {
        height: 3px;
    }
}

@media (max-width: 400px) {
    .hero-bento-container {
        padding: 80px 3% 30px;
    }

    .bento-col-right {
        min-height: 55vw;
        max-height: 280px;
    }

    .hook-stack-container {
        min-height: 120px;
    }

    .hook-card {
        padding: 15px;
    }

    .hook-card h2 {
        font-size: clamp(1.3rem, 5vw, 1.7rem);
    }

    .article-slider-card {
        min-height: 130px;
    }

    .article-img {
        width: 60px;
        height: 60px;
    }

    .article-text h3 {
        font-size: clamp(0.85rem, 3vw, 1rem);
        -webkit-line-clamp: 2;
    }

    .article-text p {
        display: none;
    }

    .cta-box {
        margin: 8px;
        padding: 14px;
    }

    .cta-box h3 {
        font-size: clamp(1rem, 3.5vw, 1.2rem);
    }

    .cta-box .btn-primary {
        font-size: clamp(0.75rem, 2.5vw, 0.9rem);
        padding: 10px 14px;
    }
}