/* ========================================================= */
/* 1. SETUP VARIABEL WARNA (TEMA BIRU) */
/* ========================================================= */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap');

:root {
    --primary-blue: #0D47A1;  /* Biru Tua (Warna Utama) */
    --accent-yellow: #FFC107; /* Kuning (Untuk Aktif/Hover) */
    --text-white: #FFFFFF;    /* Teks Putih */
}

/* ========================================================= */
/* 2. RESET GLOBAL (MATIKAN SCROLL SAMPING) */
/* ========================================================= */
html, body {
    overflow-x: hidden !important; /* Mencegah website melebar ke samping */
    width: 100%;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Poppins', sans-serif;
    padding-top: 75px; /* Jarak agar konten tidak tertutup navbar fixed */
    background-color: #f4f6f9;
}

/* ========================================================= */
/* 3. NAVBAR BIRU (LINK PUTIH, AKTIF KUNING) */
/* ========================================================= */
.navbar {
    background-color: var(--primary-blue) !important; /* Background Biru */
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    padding: 10px 0;
}

.navbar-brand {
    font-weight: 700;
    color: var(--text-white) !important;
    font-size: 1.2rem;
}

/* --- Style Menu Normal (Teks Putih) --- */
.navbar-nav .nav-link { 
    color: rgba(255, 255, 255, 0.85) !important; /* Putih agak transparan dikit */
    font-weight: 500;
    padding: 8px 15px;
    margin: 0 2px;
    border-bottom: 3px solid transparent; /* Siapkan tempat garis */
    transition: all 0.3s ease;
}

/* --- SAAT AKTIF / HOVER (Teks & Garis Kuning) --- */
.navbar-nav .nav-link:hover, 
.navbar-nav .nav-link.active { 
    color: var(--accent-yellow) !important;        /* Teks jadi Kuning */
    border-bottom-color: var(--accent-yellow) !important; /* Garis Bawah Kuning */
    font-weight: 700;
}

/* Tombol Hamburger (Mobile) */
.navbar-toggler {
    border-color: rgba(255,255,255,0.3) !important;
}
.navbar-toggler-icon {
    /* Icon garis tiga warna Putih */
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255, 255, 255, 1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

/* ========================================================= */
/* 4. HERO SLIDER (DESKTOP) */
/* ========================================================= */
.hero-image {
    width: 100%;
    height: 600px;
    background-position: center top; 
    background-size: cover;
    position: relative;
}

.hero-image::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.3); 
}

.carousel-caption {
    bottom: 20%;
    left: 10%; right: 10%;
    z-index: 2;
}

/* Kotak Caption Desktop */
.caption-bg {
    background: rgba(0,0,0,0.7);
    padding: 2rem;
    border-radius: 10px;
    display: inline-block;
    border-left: 5px solid var(--primary-blue); /* Garis Biru */
}

.carousel-caption h5 { font-size: 2.5rem; font-weight: bold; color: #fff; }

/* Tombol CTA (Biru) */
.btn-primary {
    background-color: var(--primary-blue) !important;
    border-color: var(--primary-blue) !important;
    border-radius: 50px;
    padding: 10px 25px;
    font-weight: 600;
}
.btn-primary:hover {
    background-color: #002171 !important; /* Biru lebih gelap */
}

/* ========================================================= */
/* 5. STYLE CARD & JUDUL */
/* ========================================================= */
h2, h3 { font-weight: 700; color: #333; position: relative; }

/* Garis bawah judul berwarna Biru */
section h2::after {
    content: ''; display: block;
    width: 60px; height: 5px;
    background: var(--primary-blue);
    margin: 15px auto;
}

.card {
    border: none;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.05);
    background: #fff;
    margin-bottom: 20px;
    overflow: hidden;
    border-top: 4px solid var(--primary-blue); /* Aksen Biru di atas kartu */
}

.card-img-top { height: 200px; width: 100%; object-fit: cover; }
.row { margin-right: 0 !important; margin-left: 0 !important; }
.container { padding-right: 15px; padding-left: 15px; }

/* ========================================================= */
/* 6. MEDIA QUERY KHUSUS HP (TAMPILAN POSTER) */
/* ========================================================= */
@media (max-width: 768px) {

    /* Style Dropdown Menu di HP */
    .navbar-collapse {
        background-color: var(--primary-blue); /* Background menu HP Biru */
        padding-bottom: 10px;
    }
    .navbar-nav .nav-link {
        border-bottom: 1px solid rgba(255,255,255,0.1); /* Garis pemisah tipis */
        padding: 10px 15px;
    }
    .navbar-nav .nav-link.active {
        border-bottom: 3px solid var(--accent-yellow) !important; /* Garis aktif kuning */
        background-color: rgba(255,255,255,0.1);
    }

    /* --- SLIDER JADI POSTER (TINGGI) --- */
    .hero-image {
        height: 75vh !important; /* 75% Tinggi Layar HP */
        background-position: center top !important; /* Fokus Wajah */
    }

    .carousel-caption {
        bottom: 0 !important; left: 0 !important; right: 0 !important;
        padding: 0 !important; width: 100% !important;
    }

    /* Background Gradasi Hitam di Bawah */
    .caption-bg {
        width: 100% !important; max-width: 100% !important;
        background: linear-gradient(to top, rgba(0,0,0,0.95) 10%, rgba(0,0,0,0.6) 80%, transparent 100%) !important;
        padding: 60px 20px 30px 20px !important;
        border-radius: 0 !important;
        border-left: none !important;
        border-top: 4px solid var(--primary-blue); /* Garis Biru di atas teks */
        text-align: left !important;
    }

    .carousel-caption h5 {
        font-size: 1.6rem !important;
        margin-bottom: 10px !important;
        color: #fff !important;
        line-height: 1.2;
    }

    .carousel-caption p {
        display: block !important;
        font-size: 0.9rem !important;
        color: #ddd !important;
        opacity: 0.9;
        margin-bottom: 20px;
        display: -webkit-box !important;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .btn-lg { width: 100%; padding: 12px !important; font-size: 1rem !important; }
    
    section { padding-left: 10px; padding-right: 10px; }
}