/* --- 1. DASAR & VARIABLE --- */
:root {
    --bg-dark: #0f172a;
    --card-bg: #1e293b;
    --cyan: #38bdf8;
    --gold: #fbbf24;
    --white: #ffffff;
    --silver: #94a3b8;
}

* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
    font-family: 'Inter', sans-serif; 
}

body { 
    background-color: var(--bg-dark); 
    color: var(--white); 
    overflow-x: hidden; 
}

.wrap { 
    max-width: 1200px; 
    margin: 0 auto; 
    padding: 0 15px; 
}

/* --- 2. HEADER --- */
.main-header { 
    background: rgba(15, 23, 42, 0.95); 
    padding: 10px 0; 
    position: sticky; 
    top: 0; 
    z-index: 1000; 
    border-bottom: 1px solid #334155;
    backdrop-filter: blur(10px);
}

.header-flex { 
    display: flex; 
    align-items: center; 
    justify-content: space-between; 
    gap: 15px; 
}

/* --- 3. LOGO & SLOGAN --- */
.brand-logo { 
    position: relative; 
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    width: 130px; /* Area aman untuk logo & slogan */
    height: 50px; 
    text-decoration: none;
    justify-content: center;
    flex-shrink: 0;
}

.main-logo-img { 
    position: absolute; 
    top: 3px; 
    left: 0;
    height: 45px; /* Ukuran logo */
    width: auto; 
    z-index: 1001; 
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.5)); 
    transition: transform 0.3s ease;
}

.main-logo-img:hover {
    transform: scale(1.05) rotate(-2deg); 
}

/* Slogan di bawah logo */
.tagline {
    position: absolute;
    top: 50px; /* Tepat di bawah logo height 45px */
    left: 0;
    font-size: 8px; 
    color: var(--silver); 
    text-transform: uppercase; 
    letter-spacing: 0.8px;
    white-space: nowrap; 
    z-index: 1002;
    font-weight: 700;
}

/* --- 4. SEARCH BAR & AUTH --- */
.search-bar { 
    flex: 1; 
    max-width: 400px; 
    margin-left: 20px;
}

.search-bar input { 
    width: 100%; 
    padding: 10px 15px; 
    border-radius: 8px; 
    border: 1px solid #334155; 
    background: #1e293b; 
    color: white; 
    outline: none; 
}

.nav-auth {
    flex-shrink: 0;
}

.btn-login { 
    background: var(--cyan); 
    color: #000; 
    text-decoration: none; 
    padding: 8px 20px; 
    border-radius: 6px; 
    font-weight: bold; 
    font-size: 14px; 
    white-space: nowrap;
    display: inline-block;
}

/* --- 5. HERO SLIDER / BANNER (FIX TIDAK KEPOTONG) --- */
.hero-slider { 
    margin-top: 35px; /* Jarak agar tidak tertutup logo menonjol */
    margin-bottom: 25px;
    width: 100%;
}

.swiper { 
    border-radius: 16px; 
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
    /* HAPUS aspect-ratio keras di sini agar flexibel */
    width: 100%;
    background: var(--card-bg);
}

.swiper-slide {
    width: 100%;
    height: auto; /* Ikuti tinggi konten */
}

.swiper-slide img { 
    width: 100%; 
    height: auto; /* Tinggi gambar otomatis proporsional */
    display: block;
    object-fit: contain; /* JANGAN pakai cover, pakai contain atau tidak pakai sama sekali */
}

/* Perbaikan Pagination Bullet */
.swiper-pagination-bullet {
    background: var(--white);
    opacity: 0.5;
}
.swiper-pagination-bullet-active {
    background: var(--cyan) !important;
    opacity: 1;
}

/* --- 6. MOBILE RESPONSIVE --- */
@media (max-width: 768px) {
    .header-flex { 
        flex-wrap: wrap; 
    }
    
    .search-bar { 
        order: 3; 
        max-width: 100%; 
        width: 100%; 
        margin-left: 0;
        margin-top: 10px;
    }

    .brand-logo { 
        width: 100px; 
    }

    .main-logo-img { 
        height: 38px; 
    }

    .tagline {
        top: 42px;
        font-size: 7px;
    }

    .hero-slider {
        margin-top: 45px; /* Jarak ekstra di mobile karena header wrap */
        padding: 0 5px; /* Beri sedikit jarak di pinggir layar HP */
    }
}