/* ==============================================
   1. RESET & VARIABLES
   ============================================== */
:root {
    --color-navy: #1c1f35;
    --color-gold: #f1b328;
    --color-white: #ffffff;
    --color-black: #000000;
    --font-primary: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    --transition-smooth: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: var(--font-primary); overflow-x: hidden; width: 100%; }
img { max-width: 100%; display: block; }
a { text-decoration: none; }

.eb-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    position: relative;
    z-index: 2;
}

/* ==============================================
   2. HERO SECTION
   ============================================== */
.eb-hero {
    background-color: var(--color-navy);
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding: 2rem 0; 
}

.eb-hero__container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 3rem;
    width: 100%;
}

.eb-hero__content h1 {
    color: var(--color-white);
    font-size: 3rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    font-weight: 800;
}

.eb-hero__content p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 2.5rem;
}

.eb-btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: var(--transition-smooth);
    cursor: pointer;
    border: none;
}

.eb-btn--primary {
    background-color: var(--color-gold);
    color: var(--color-black);
    box-shadow: 0 10px 20px rgba(241, 179, 40, 0.3);
}

.eb-btn--primary:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(241, 179, 40, 0.5);
    filter: brightness(1.1);
}

.eb-hero__visual {
    position: relative;
    height: 650px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.eb-hero__vector {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 150%;
    z-index: 0;
    opacity: 0.5;
    animation: rotateSlow 60s linear infinite;
}

.eb-hero__books-wrapper {
    position: relative;
    width: 450px; 
    height: 600px;
    z-index: 1;
}

.eb-hero__book {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: auto;
    transition: all 0.8s ease-in-out;
    animation: floatBooks 6s ease-in-out infinite, breatheShadow 3s infinite alternate;
}

.eb-hero__book.active {
    opacity: 1;
    transform: scale(1) translateX(0) translateZ(20px);
    z-index: 10;
    filter: drop-shadow(0 20px 30px rgba(0,0,0,0.5));
}

.eb-hero__book:not(.active) {
    opacity: 0.6;
    z-index: 1;
}
.eb-hero__book:nth-child(1) { transform: translateX(0) scale(1); } 
.eb-hero__book:nth-child(2) { transform: translateX(40px) scale(0.9); opacity: 0; } 
.eb-hero__book:nth-child(3) { transform: translateX(-40px) scale(0.9); opacity: 0; }

@media (max-width: 991px) {
    .eb-hero { height: auto; padding: 4rem 0; } 
    .eb-hero__visual { height: 450px; }
    .eb-hero__books-wrapper { width: 300px; height: 400px; }
}

/* ==============================================
   SECTION VISI STYLE
   ============================================== */
.eb-visi {
    background-color: #ffffff;
    padding: 5rem 0;
    position: relative;
    overflow: hidden;
}

.eb-visi__header {
    max-width: 900px;
    margin: 0 auto 3.5rem;
}

.eb-visi__header p {
    text-align: center;
    color: #4a5568;
    margin-bottom: 1.5rem;
    line-height: 1.8;
    font-size: 1.05rem;
}

/* Card Visi */
.eb-card-visi {
    background-color: #1c1f35;
    padding: 3rem 2rem;
    border-radius: 20px;
    text-align: center;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    box-shadow: 0 10px 30px rgba(28, 31, 53, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    z-index: 1;
}

.eb-card-visi:hover {
    transform: translateY(-12px); 
    box-shadow: 0 25px 50px rgba(28, 31, 53, 0.4); 
    border-bottom: 4px solid #f1b328;
}

.eb-visi-icon {
    width: 80px; height: 80px;
    background: rgba(241, 179, 40, 0.1);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 1.5rem;
    transition: 0.4s ease;
    border: 1px solid rgba(241, 179, 40, 0.2);
}

.eb-visi-icon i {
    font-size: 2rem;
    color: #f1b328;
    transition: 0.4s;
}

.eb-card-visi:hover .eb-visi-icon {
    background: #f1b328;
    box-shadow: 0 0 25px rgba(241, 179, 40, 0.6);
    transform: rotateY(180deg);
}

.eb-card-visi:hover .eb-visi-icon i { color: #1c1f35; }

.eb-card-visi h3 {
    color: #f1b328;
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: 0.5px;
}

.eb-card-visi p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1rem;
    line-height: 1.6;
    margin: 0;
}

.eb-pagination-visi {
    position: relative;
    margin-top: 2rem;
}
.eb-pagination-visi .swiper-pagination-bullet-active {
    background: #f1b328;
}

/* Responsive Logic Visi */
@media (max-width: 1023px) {
    .eb-visi__slider { padding-bottom: 1rem; }
}

@media (min-width: 1024px) {
    .eb-visi__slider {
        display: flex !important;
        justify-content: center !important;
        width: 100% !important;
        padding: 0 !important;
        overflow: visible !important;
    }

    .eb-visi__wrapper {
        display: flex !important;
        width: auto !important; 
        justify-content: center !important;
        gap: 40px !important;
        margin: 0 !important;
        transform: none !important; 
        box-sizing: border-box !important;
    }

    .eb-visi__wrapper .swiper-slide {
        width: 320px !important;
        height: auto !important;
        flex: 0 0 auto !important;
        margin: 0 !important;
        opacity: 1 !important;        
        filter: none !important;      
        transform: scale(1) !important; 
        pointer-events: auto !important;
    }

    .eb-visi__wrapper .swiper-slide:hover .eb-card-visi {
        transform: translateY(-12px); 
    }

    .eb-visi__wrapper .swiper-slide-duplicate,
    .eb-pagination-visi {
        display: none !important;
    }
}

/* ==============================================
   4. PRODUK SECTION (REVISI: COMPACT & ZOOM)
   ============================================== */
.eb-produk {
    background-color: var(--color-navy);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 3rem 0; 
    position: relative;
    z-index: 1;
}

.eb-section-title {
    color: var(--color-white);
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 2rem;
    font-weight: 700;
}

.eb-produk__slider {
    padding: 1rem 1rem 3rem;
    overflow: visible; 
    position: relative;
}

/* Card Product Style */
.eb-card-product {
    background-color: #242845;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    transition: var(--transition-smooth);
    height: 100%;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(255,255,255,0.05);
    z-index: 2;
}

.eb-card-product:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
    border-color: rgba(241, 179, 40, 0.3);
}

.eb-card-badge {
    position: absolute; top: 0; left: 0; width: 60px; height: auto; z-index: 10;
}

.eb-card-img-wrap {
    padding: 1rem;
    background: #ffffff;
    display: flex; justify-content: center; align-items: center;
    height: 200px;
}

.eb-card-img-wrap img {
    max-height: 100%; width: auto;
    border-radius: 10px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
    transition: transform 0.3s;
}

.eb-card-product:hover .eb-card-img-wrap img { transform: scale(1.05); }

.eb-card-body {
    padding: 1.2rem;
    display: flex; flex-direction: column; flex-grow: 1;
    text-align: center;
}

.eb-card-body h2 {
    color: var(--color-white);
    font-size: 0.75rem;
    line-height: 1.4;
    margin-bottom: 0.8rem;
    flex-grow: 1;
    min-height: 40px; 
    display: flex; align-items: center; justify-content: center;
}

.eb-separator {
    width: 40px; height: 2px;
    background-color: var(--color-gold);
    margin: 0 auto 0.8rem; opacity: 0.5;
}

.eb-price-label {
    display: block; color: #a0aec0; font-size: 0.8rem; margin-bottom: 0.2rem;
}

.eb-price-value {
    display: block; color: var(--color-white);
    font-size: 1.3rem;
    font-weight: 800; margin-bottom: 1.2rem;
    text-shadow: 0 0 10px rgba(241, 179, 40, 0.3);
}

.eb-btn--accent {
    background-color: var(--color-gold);
    color: var(--color-black);
    display: block; width: 100%; text-align: center;
    padding: 10px;
    border-radius: 8px; font-weight: 700; transition: 0.3s;
}

.eb-btn--accent:hover {
    background-color: #fff;
    box-shadow: 0 0 15px rgba(241, 179, 40, 0.5);
}

.eb-pagination-produk .swiper-pagination-bullet {
    background: var(--color-white); opacity: 0.3;
}
.eb-pagination-produk .swiper-pagination-bullet-active {
    background: var(--color-gold); opacity: 1;
}

/* Special Price / Bundling Wrapper */
.eb-card-wrap-outer {
    position: relative; height: 100%;
    padding-top: 10px; padding-left: 10px; z-index: 1;
}

.eb-floating-badge {
    z-index: 50 !important;
    position: absolute; top: -5px; left: -5px; width: 85px; height: auto;
    z-index: 20; filter: drop-shadow(0 5px 10px rgba(0,0,0,0.3));
    animation: floatBadge 3s ease-in-out infinite; pointer-events: none;
}

.eb-card-wrap-outer:hover .eb-card-product {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
    border-color: rgba(241, 179, 40, 0.3);
}

@keyframes floatBadge {
    0%, 100% { transform: translateY(0) rotate(-5deg); }
    50% { transform: translateY(-5px) rotate(-5deg); }
}

.eb-swiper-button-next, .eb-swiper-button-prev {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 50;
    width: 45px; height: 45px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: var(--color-gold);
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}
.eb-swiper-button-next:hover, .eb-swiper-button-prev:hover {
    background: var(--color-gold);
    color: var(--color-navy);
    box-shadow: 0 0 15px rgba(241, 179, 40, 0.5);
}
.eb-swiper-button-next { right: -20px; }
.eb-swiper-button-prev { left: -20px; }


/* --- DESKTOP FIX & ZOOM EFFECT (REVISED) --- */
@media (min-width: 1024px) {
    /* 1. Fix untuk Slider Produk */
    .eb-produk__slider .swiper-wrapper {
        display: flex !important;
        align-items: center; 
    }
    
    .eb-produk__slider .swiper-slide {
        height: auto;
        /* REVISI: Hapus width fixed agar Swiper slidesPerView:3 yang mengatur lebar */
        /* width: 300px !important; <-- DIHAPUS */ 
        transition: all 0.4s ease;
    }

    /* Logic Active Slide (Center Zoom) - HANYA UNTUK PRODUK */
    .eb-produk__slider .swiper-slide-active .eb-card-product {
        transform: scale(1.15); /* Zoom sedikit diperbesar */
        z-index: 20;
        box-shadow: 0 30px 60px rgba(0,0,0,0.5), 
                    0 0 0 2px rgba(241, 179, 40, 0.5);
        background-color: #2a2e4d;
    }
    
    .eb-produk__slider .swiper-slide-active .eb-card-wrap-outer {
         transform: scale(1.15); z-index: 25;
    }

    /* Logic Inactive Slides (Fade & Shrink) */
    .eb-produk__slider .swiper-slide:not(.swiper-slide-active) {
        opacity: 0.5;
        transform: scale(0.9);
        filter: blur(0.5px);
    }
}

@media (max-width: 768px) {
    .eb-floating-badge { width: 100px; top: 10px; left: -5px; }
    .eb-swiper-button-next, .eb-swiper-button-prev { display: none; }
}

/* ========================================================
   FIX TAMPILAN MOBILE (RESET LAYOUT)
   ======================================================== */
@media (max-width: 991px) {
    .eb-produk {
        display: block !important;
        min-height: auto !important;
        height: auto !important;
        padding: 4rem 0 !important;
    }

    .eb-produk__slider {
        padding: 0 1rem 3rem 1rem !important;
        overflow: hidden !important; 
    }

    .eb-produk__slider .swiper-slide {
        height: auto !important;
        width: 100% !important; 
    }
    
    .eb-floating-badge {
        top: 10px; left: -5px; width: 100px;
    }
}

/* ==============================================
   5. CTA SECTION
   ============================================== */
.eb-cta {
    background-color: var(--color-gold);
    padding: 5rem 0;
    overflow: hidden;
}

.eb-cta__container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 4rem;
}

.eb-cta__visual {
    position: relative;
    height: 400px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.eb-cta__bg-img {
    position: absolute;
    width: 100%; height: auto; z-index: 0;
}

.eb-cta__main-img {
    position: relative; z-index: 1; width: 80%;
    animation: moveVertical 4s ease-in-out infinite;
    filter: drop-shadow(0 20px 40px rgba(0,0,0,0.2));
}

.eb-cta__content { color: var(--color-navy); }

.eb-cta__content h2 {
    font-size: 2.5rem; font-weight: 800; margin-bottom: 1rem; line-height: 1.1;
}

.eb-cta__content p {
    font-size: 1.1rem; margin-bottom: 2.5rem; font-weight: 500;
}

.eb-hurry-card {
    background: var(--color-navy);
    padding: 1.5rem 2rem; border-radius: 16px;
    display: inline-block; margin-bottom: 2rem;
    border: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15), inset 0 0 20px rgba(0,0,0,0.2);
    position: relative; overflow: hidden;
}

.eb-hurry-card::after {
    content: '';
    position: absolute; top: -50%; left: -50%; width: 200%; height: 200%;
    background: linear-gradient(to bottom, transparent, rgba(255,255,255,0.05), transparent);
    transform: rotate(45deg);
    animation: scanline 3s linear infinite; pointer-events: none;
}

.eb-hurry-display {
    display: flex; align-items: center; gap: 1rem;
}

.eb-timer-unit { text-align: center; }

.eb-timer-val {
    display: block; color: var(--color-gold);
    font-size: 2.5rem; font-weight: 800;
    font-family: monospace; line-height: 1;
    text-shadow: 0 0 10px rgba(241, 179, 40, 0.4);
}

.eb-timer-label {
    display: block; color: rgba(255,255,255,0.6);
    font-size: 0.75rem; text-transform: uppercase; margin-top: 5px;
}

.eb-timer-sep {
    font-size: 2rem; color: var(--color-white);
    font-weight: 700; margin-top: -15px;
}

.eb-btn--glow {
    background-color: var(--color-navy);
    color: var(--color-white);
    padding: 16px 40px; display: inline-block;
    border-radius: 50px; font-weight: 700;
    text-transform: uppercase;
    box-shadow: 0 10px 25px rgba(28, 31, 53, 0.4);
    transition: all 0.3s;
}

.eb-btn--glow:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.4);
    background-color: #242845;
}

/* ==============================================
   6. KEYFRAMES ANIMATION
   ============================================== */
@keyframes floatBooks {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes breatheShadow {
    0% { filter: drop-shadow(0 20px 30px rgba(0,0,0,0.4)); }
    100% { filter: drop-shadow(0 25px 40px rgba(241, 179, 40, 0.2)); }
}

@keyframes rotateSlow { 100% { transform: translate(-50%, -50%) rotate(360deg); } }
@keyframes moveVertical { 
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}
@keyframes scanline { 
    0% { transform: translateY(-100%) rotate(45deg); } 
    100% { transform: translateY(100%) rotate(45deg); } 
}

/* ==============================================
   7. RESPONSIVE (MOBILE)
   ============================================== */
@media (max-width: 991px) {
    .eb-hero__container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }
    .eb-hero__content { order: 2; }
    .eb-hero__visual { order: 1; height: 350px; }
    .eb-hero__content h1 { font-size: 2rem; }

    .eb-tentang__header { padding: 0 1rem; }

    .eb-cta__container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .eb-cta__visual { display: none; }
    .eb-hurry-display { justify-content: center; }
    .eb-btn--glow { width: 100%; }
}

@media (min-width: 992px) {
    .eb-tentang__slider .swiper-wrapper {
        display: grid;
        grid-template-columns: repeat(5, 1fr);
        gap: 20px;
    }
    .eb-tentang__slider .swiper-slide { height: auto; }
    .eb-pagination-tentang { display: none; }
}