/* =========================================
   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) {
    .bento-grid {
        grid-template-columns: 1fr;
        height: auto;
    }

    .bento-col-left {
        height: auto;
    }

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

    .article-slider-card {
        height: 250px;
    }

    .hook-stack-container {
        height: 250px;
    }

    .hook-card h2 {
        font-size: 2.5rem;
    }
}