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

:root {
    /* Identitas Fakultas Bisnis */
    --business-gold: #FFC107; /* Kuning Emas Dominan */
    --business-blue: #0D47A1; /* Biru Tua (Aksen untuk Link Aktif/Tombol) */
    --business-dark: #212529; /* Hitam Teks */
    --text-grey: rgba(0,0,0,0.7);
}

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

body {
    font-family: 'Poppins', sans-serif;
    padding-top: 70px; /* Jarak agar konten tidak tertutup navbar */
    background-color: #f8f9fa;
    color: var(--business-dark);
}

a { text-decoration: none; }

/* ========================================================= */
/* 3. NAVBAR (KUNING + LINK BIRU SAAT AKTIF) */
/* ========================================================= */
.navbar {
    background-color: var(--business-gold) !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08); /* Bayangan halus */
    padding-top: 10px;
    padding-bottom: 10px;
}

.navbar-brand { 
    font-weight: 700; 
    color: #000 !important;
    font-size: 1.3rem;
}

/* Style Menu Biasa (Belum diklik) */
.navbar-nav .nav-link { 
    color: var(--text-grey) !important;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 8px 15px;
    border-bottom: 3px solid transparent; /* Siapkan tempat untuk garis */
    transition: all 0.3s ease;
}

/* Style Menu SAAT HOVER atau AKTIF (Klik) */
/* Request: Warna Biru + Garis Biru */
.navbar-nav .nav-link:hover, 
.navbar-nav .nav-link.active { 
    color: var(--business-blue) !important; /* Teks jadi Biru */
    border-bottom-color: var(--business-blue) !important; /* Garis bawah jadi Biru */
    font-weight: 700;
}

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

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

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

/* Layout Teks Desktop */
.carousel-caption {
    bottom: 20%;
    left: 10%; right: 10%;
    z-index: 2;
}

.caption-bg {
    background: rgba(0,0,0,0.75);
    padding: 2rem;
    border-radius: 10px;
    display: inline-block;
    border-left: 6px solid var(--business-gold); /* Aksen garis kuning di kiri */
    backdrop-filter: blur(4px);
}

.carousel-caption h5 { 
    font-size: 2.8rem; 
    font-weight: 700; 
    color: #fff;
    margin-bottom: 1rem;
}

/* Tombol Utama (CTA) */
.btn-primary {
    background-color: var(--business-blue) !important; /* Tombol Biru agar kontras dengan kuning */
    border-color: var(--business-blue) !important;
    padding: 10px 25px;
    border-radius: 50px;
    font-weight: 600;
}

.btn-primary:hover {
    background-color: #002171 !important; /* Biru lebih gelap */
}

/* ========================================================= */
/* 5. COMPONENTS (CARD, TITLE, DLL) */
/* ========================================================= */
/* Judul Section dengan Garis Bawah Kuning */
h2, h3 {
    font-weight: 700;
    color: #333;
    position: relative;
    margin-bottom: 1.5rem;
}

/* Dekorasi garis kuning di bawah judul */
section h2::after {
    content: '';
    display: block;
    width: 70px;
    height: 5px;
    background: var(--business-gold);
    margin: 15px auto;
    border-radius: 5px;
}

/* Card Berita */
.card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    background: #fff;
    margin-bottom: 25px;
    transition: transform 0.3s ease;
    border-top: 5px solid var(--business-gold); /* Pemanis Kuning */
}

.card:hover {
    transform: translateY(-5px);
}

.card-img-top {
    height: 220px;
    width: 100%;
    object-fit: cover;
}

/* Fix Bootstrap Grid Spacing */
.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) {
    
    /* Navbar Padding di HP */
    .navbar-nav .nav-link {
        padding: 10px 0;
        border-bottom: 1px solid rgba(0,0,0,0.1); /* Garis pemisah tipis antar menu */
    }
    .navbar-nav .nav-link.active {
        border-bottom: 3px solid var(--business-blue); /* Tetap tebal biru jika aktif */
    }

    /* --- SLIDER MODE POSTER (TINGGI) --- */
    .hero-image {
        height: 75vh !important; /* Mengambil 75% layar HP */
        background-position: center top !important; /* Fokus wajah */
    }

    /* Posisi Teks: Menempel di Bawah */
    .carousel-caption {
        position: absolute !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    /* Background Gradasi Hitam (Modern) */
    .caption-bg {
        width: 100% !important;
        max-width: 100% !important;
        background: linear-gradient(to top, rgba(0,0,0,0.95) 15%, rgba(0,0,0,0.6) 70%, transparent 100%) !important;
        padding: 60px 20px 30px 20px !important;
        border-radius: 0 !important;
        border-left: none !important;
        text-align: left !important;
    }

    /* Ukuran Judul di HP */
    .carousel-caption h5 {
        font-size: 1.6rem !important;
        line-height: 1.3;
        margin-bottom: 10px !important;
        color: #fff !important;
    }

    /* Deskripsi (Dibatasi 3 baris) */
    .carousel-caption p {
        display: block !important;
        font-size: 0.9rem !important;
        color: rgba(255,255,255,0.85) !important;
        margin-bottom: 20px;
        display: -webkit-box !important;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    /* Tombol Full Width */
    .carousel-caption .btn {
        width: 100%;
        padding: 12px;
        font-size: 1rem;
    }

    /* Fix Margin Kanan Kiri di HP */
    section { padding: 0 10px; }
    .col-md-6 { padding: 0 5px; }
}