/* ===== NAVBAR.CSS - Institut Shanti Bhuana ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Quicksand', sans-serif;
    background: #E8EBCE; /* KREM - untuk background body */
    min-height: 100vh;
}

/* ===== NAVBAR ELEGAN ===== */
.navbar-elegan {
    background: #FFFFFF; /* PUTIH */
    border-bottom: 4px solid #622b10; /* GOLD */
    box-shadow: 0 10px 30px -10px rgb(211, 193, 193); /* COKELAT dengan opacity */
    padding: 0.3rem 1.5rem;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: nowrap;
    gap: 1rem;
}

/* ===== LOGO ===== */
.logo-elegan {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    text-decoration: none;
    flex-shrink: 0;
}

.logo-wrapper {
    position: relative;
}

.logo-elegan img {
    width: 75px;
    height: 75px;
    border-radius: 50%;
    border: 3px solid #ffffff; /* GOLD */
    box-shadow: 0 8px 18px rgb(48, 12, 12); /* COKELAT dengan opacity */
    transition: all 0.3s ease;
    object-fit: cover;
    background: #E8EBCE; /* KREM */
}

.logo-elegan:hover img {
    transform: scale(1.05);
    border-color: #ffffff; /* COKELAT */
}

.brand-text-elegan {
    display: flex;
    flex-direction: column;
}

.brand-main-elegan {
    font-size: 1.3rem;
    font-weight: 700;
    color: #26140B; /* COKELAT */
    line-height: 1.2;
    white-space: nowrap;
}

.brand-sub-elegan {
    font-size: 0.75rem;
    color: #D9911E; /* GOLD */
    font-style: italic;
    letter-spacing: 0.5px;
    font-weight: 600;
    white-space: nowrap;
}

/* ===== DESKTOP MENU ===== */
.desktop-menu {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 0.1rem;
    margin: 0;
    padding: 0;
    flex-wrap: nowrap;
}

.desktop-item {
    position: relative;
}

.desktop-link {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.6rem 0.9rem; 
    color: #26140B; /* COKELAT */
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
    border-radius: 40px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    background: transparent;
    white-space: nowrap;
}

.desktop-link i {
    color: #D9911E; /* GOLD */
    font-size: 1rem;
    transition: transform 0.3s ease;
}

.desktop-link:hover {
    background: #E8EBCE; /* KREM */
    border-color: #D9911E; /* GOLD */
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(217, 145, 30, 0.15); /* GOLD dengan opacity */
}

.desktop-link:hover i {
    transform: scale(1.1);
    color: #26140B; /* COKELAT */
}

.desktop-link.active {
    background: #E8EBCE; /* KREM */
    border-color: #D9911E; /* GOLD */
    font-weight: 700;
}

.nav-indicator {
    position: absolute;
    bottom: 2px;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 20px;
    height: 4px;
    background: #D9911E; /* GOLD */
    border-radius: 10px;
    transition: transform 0.3s ease;
}

.desktop-link.active .nav-indicator,
.desktop-link:hover .nav-indicator {
    transform: translateX(-50%) scaleX(1);
}

/* Badge New */
.badge-elegan {
    background: #ff0000; /* RED */
    color: white;
    font-size: 0.6rem;
    font-weight: 700;
    padding: 0.2rem 0.5rem;
    border-radius: 30px;
    margin-left: 3px;
    animation: softPulse 2s infinite;
}

.badge-akreditasi {
    background: #28a745;
    color: white;
    font-size: 0.55rem;
    padding: 0.15rem 0.4rem;
    border-radius: 30px;
    margin-left: auto;
}

.badge-warning {
    background: #ff0000;
    color: #212529;
}

@keyframes softPulse {
    0%, 100% {
        opacity: 1;
        background: #D9911E; /* GOLD */
    }
    50% {
        opacity: 0.8;
        background: #E8EBCE; /* KREM */
    }
}

/* ===== DROPDOWN ELEGAN ===== */
.dropdown-elegan {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    background: #FFFFFF; /* PUTIH */
    border: 2px solid #E8EBCE; /* KREM */
    border-radius: 20px;
    padding: 0.6rem 0.2rem;
    min-width: 240px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);
    transition: all 0.3s ease;
    box-shadow: 0 20px 35px -15px rgba(38, 20, 11, 0.25); /* COKELAT dengan opacity */
    z-index: 100;
    list-style: none;
}

.dropdown-elegan.dropdown-right {
    left: auto;
    right: 0;
}

.desktop-item:hover .dropdown-elegan {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.6rem 1.2rem;
    color: #26140B; /* COKELAT */
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    border-radius: 30px;
    transition: all 0.2s ease;
    border-left: 4px solid transparent;
}

.dropdown-item i {
    width: 20px;
    color: #D9911E; /* GOLD */
    font-size: 0.95rem;
}

.dropdown-item:hover {
    background: #E8EBCE; /* KREM */
    border-left-color: #D9911E; /* GOLD */
    transform: translateX(5px);
}

.dropdown-header {
    padding: 0.4rem 1.2rem 0.4rem 1.2rem;
    color: #D9911E; /* GOLD */
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 2px solid #E8EBCE; /* KREM */
    margin-bottom: 0.3rem;
}

/* ===== MEGA MENU AKADEMIK DENGAN SCROLL ===== */
.mega-elegan {
    position: absolute;
    top: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%) translateY(15px);
    background: #FFFFFF; /* PUTIH */
    border: 2px solid #E8EBCE; /* KREM */
    border-radius: 25px;
    padding: 1.5rem;
    width: min(1000px, 90vw);
    max-height: 600px;
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 30px 50px -20px rgba(38, 20, 11, 0.3); /* COKELAT dengan opacity */
    z-index: 100;
}

/* Custom scrollbar untuk mega menu */
.mega-elegan::-webkit-scrollbar {
    width: 8px;
}

.mega-elegan::-webkit-scrollbar-track {
    background: #E8EBCE; /* KREM */
    border-radius: 10px;
}

.mega-elegan::-webkit-scrollbar-thumb {
    background: #D9911E; /* GOLD */
    border-radius: 10px;
}

.mega-elegan::-webkit-scrollbar-thumb:hover {
    background: #26140B; /* COKELAT */
}

.desktop-item:hover .mega-elegan {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.mega-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 1.5rem;
}

.prodi-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-top: 0.8rem;
}

.prodi-card {
    background: #E8EBCE; /* KREM */
    border: 2px solid #E8EBCE; /* KREM */
    border-radius: 18px;
    padding: 1rem;
    transition: all 0.3s ease;
}

.prodi-card:hover {
    background: #FFFFFF; /* PUTIH */
    border-color: #D9911E; /* GOLD */
    transform: translateY(-3px);
    box-shadow: 0 10px 20px -8px rgba(217, 145, 30, 0.25); /* GOLD dengan opacity */
}

.prodi-header {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 0.8rem;
    padding-bottom: 0.8rem;
    border-bottom: 2px dashed #E8EBCE; /* KREM */
}

.prodi-icon {
    width: 40px;
    height: 40px;
    background: rgba(217, 145, 30, 0.1); /* GOLD dengan opacity */
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #D9911E; /* GOLD */
    font-size: 1.2rem;
}

/* Warna icon sesuai prodi */
.prodi-icon.manajemen {
    background: rgba(0, 140, 255, 0.1); /* 008CFF dengan opacity */
    color: #008CFF; /* BIRU MANAJEMEN */
}

.prodi-icon.kwu {
    background: rgba(255, 0, 0, 0.1); /* FF0000 dengan opacity */
    color: #FF0000; /* MERAH KEWIRAUSAHAAN */
}

.prodi-icon.pgsd {
    background: rgba(174, 0, 255, 0.1); /* AE00FF dengan opacity */
    color: #AE00FF; /* UNGU PGSD */
}

.prodi-icon.ti {
    background: rgba(255, 128, 0, 0.1); /* FF8000 dengan opacity */
    color: #FF8000; /* ORANGE TEKNOLOGI INFORMASI */
}

.prodi-icon.agro {
    background: rgba(0, 255, 255, 0.1); /* 00FFFF dengan opacity */
    color: #00FFFF; /* CYAN AGROEKOTEKNOLOGI */
}

.prodi-icon.si {
    background: rgba(0, 0, 0, 0.1); /* HITAM dengan opacity */
    color: #000000; /* HITAM SISTEM INFORMASI (teks putih di background putih? ini akan jadi masalah) */
    /* Saran: untuk SI bisa pakai warna abu-abu atau tetap pakai gold */
}

/* Saran perbaikan untuk icon SI agar terlihat */
.prodi-icon.si.alternate {
    background: rgba(0, 0, 0, 0.1);
    color: #26140B; /* COKELAT sebagai alternatif */
}

.prodi-links {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.prodi-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #26140B; /* COKELAT */
    text-decoration: none;
    font-size: 0.85rem;
    padding: 0.4rem 0.5rem;
    border-radius: 30px;
    transition: all 0.2s;
}

.prodi-link i {
    width: 16px;
    color: #D9911E; /* GOLD */
}

.prodi-link:hover {
    background: #E8EBCE; /* KREM */
    padding-left: 1rem;
}

.layanan-list {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    margin-top: 0.8rem;
}

.layanan-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.8rem 1rem;
    background: #E8EBCE; /* KREM */
    border: 2px solid #E8EBCE; /* KREM */
    border-radius: 16px;
    text-decoration: none;
    color: #26140B; /* COKELAT */
    transition: all 0.3s;
}

.layanan-item:hover {
    background: #FFFFFF; /* PUTIH */
    border-color: #D9911E; /* GOLD */
    transform: translateX(5px);
}

.layanan-icon {
    width: 40px;
    height: 40px;
    background: rgba(217, 145, 30, 0.1); /* GOLD dengan opacity */
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #D9911E; /* GOLD */
    font-size: 1.1rem;
}

.quick-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.quick-link {
    padding: 0.4rem 1rem;
    background: #E8EBCE; /* KREM */
    border: 2px solid #E8EBCE; /* KREM */
    border-radius: 40px;
    color: #26140B; /* COKELAT */
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 600;
    transition: all 0.2s;
}

.quick-link:hover {
    background: #D9911E; /* GOLD */
    color: #FFFFFF; /* PUTIH */
    border-color: #D9911E; /* GOLD */
}

/* ===== PMB DROPDOWN KHUSUS ===== */
.pmb-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.8rem 1.2rem;
}

.pmb-icon {
    width: 45px;
    height: 45px;
    background: rgba(217, 145, 30, 0.1); /* GOLD dengan opacity */
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #d91e1e; /* GOLD */
    font-size: 1.2rem;
    transition: all 0.2s;
}

.pmb-item:hover .pmb-icon {
    transform: scale(1.1);
}

.pmb-info small {
    color: #D9911E; /* GOLD */
    font-size: 0.7rem;
}

.contact-info {
    padding: 0.8rem 1.2rem;
    color: #26140B; /* COKELAT */
    font-size: 0.85rem;
    border-top: 2px solid #E8EBCE; /* KREM */
    margin-top: 0.5rem;
}

/* ===== SEARCH DESKTOP ===== */
.search-desktop {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.search-link {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 1.2rem;
    background: #E8EBCE; /* KREM */
    border: 2px solid #D9911E; /* GOLD */
    border-radius: 40px;
    color: #26140B; /* COKELAT */
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.search-link i {
    color: #D9911E; /* GOLD */
    font-size: 1rem;
    transition: transform 0.3s;
}

.search-link:hover {
    background: #D9911E; /* GOLD */
    color: #FFFFFF; /* PUTIH */
    transform: translateY(-2px);
    box-shadow: 0 8px 15px rgba(217, 145, 30, 0.2); /* GOLD dengan opacity */
}

.search-link:hover i {
    color: #FFFFFF; /* PUTIH */
    transform: scale(1.1);
}

/* ===== MOBILE ACTIONS - HANYA HAMBURGER ===== */
.mobile-actions {
    display: none;
    align-items: center;
    flex-shrink: 0;
}

.hamburger-elegan {
    width: 44px;
    height: 44px;
    background: #E8EBCE; /* KREM */
    border: 2px solid #D9911E; /* GOLD */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #D9911E; /* GOLD */
    font-size: 1.6rem;
    cursor: pointer;
    transition: all 0.2s;
}

.hamburger-elegan:hover {
    background: #D9911E; /* GOLD */
    color: #FFFFFF; /* PUTIH */
}

/* ===== MOBILE MENU ===== */
.mobile-menu {
    display: none;
    width: 100%;
    background: #FFFFFF; /* PUTIH */
    border-radius: 30px;
    padding: 1.2rem;
    margin-top: 0.8rem;
    border: 2px solid #E8EBCE; /* KREM */
    box-shadow: 0 15px 25px rgba(38, 20, 11, 0.15); /* COKELAT dengan opacity */
    max-height: 80vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.mobile-menu.active {
    display: block;
}

.mobile-nav-item {
    margin-bottom: 0.4rem;
}

.mobile-nav-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.8rem 1rem;
    background: #E8EBCE; /* KREM */
    border: 2px solid #E8EBCE; /* KREM */
    border-radius: 30px;
    color: #26140B; /* COKELAT */
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.2s;
    cursor: pointer;
}

.mobile-nav-link span i {
    color: #D9911E; /* GOLD */
    margin-right: 0.8rem;
    width: 20px;
}

.mobile-nav-link:hover {
    background: #E8EBCE; /* KREM */
    border-color: #D9911E; /* GOLD */
}

.mobile-dropdown {
    display: none;
    padding: 0.5rem 0 0.3rem 0.8rem;
}

.mobile-dropdown.active {
    display: block;
}

.mobile-dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.6rem 1rem;
    color: #26140B; /* COKELAT */
    text-decoration: none;
    border-radius: 30px;
    font-size: 0.9rem;
    transition: all 0.2s;
}

.mobile-dropdown-item i {
    width: 20px;
    color: #D9911E; /* GOLD */
}

.mobile-dropdown-item:hover {
    background: #E8EBCE; /* KREM */
    padding-left: 1.5rem;
}

.mobile-section-title {
    padding: 0.6rem 1rem 0.2rem;
    color: #D9911E; /* GOLD */
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
}

.mobile-pmb {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
    padding: 0.9rem;
    background: #fffdfd; /* GOLD */
    border-radius: 40px;
    color: #ff0000; /* PUTIH */
    text-decoration: none;
    font-weight: 700;
    text-align: center;
    border: 2px solid #230b0b; /* GOLD */
    font-size: 1rem;
    transition: all 0.3s ease;
}

.mobile-pmb i {
    font-size: 1rem;
}

.mobile-pmb:hover {
    background: #26140B; /* COKELAT */
    border-color: #26140B; /* COKELAT */
    transform: translateY(-2px);
    box-shadow: 0 8px 15px rgba(217, 145, 30, 0.2); /* GOLD dengan opacity */
}

/* ===== RESPONSIVE BREAKPOINTS ===== */
@media (max-width: 1200px) {
    .desktop-menu {
        display: none;
    }

    .search-desktop {
        display: none;
    }

    .mobile-actions {
        display: flex;
    }

    .navbar-elegan {
        padding: 0.3rem 1rem;
    }

    .brand-main-elegan {
        font-size: 1.1rem;
    }
}

@media (max-width: 390px) {
    .navbar-elegan {
        padding: 0.2rem 0.8rem;
    }

    .logo-elegan img {
        width: 85px;
        height: 85px;
    }

    .brand-main-elegan {
        font-size: 0.95rem;
    }

    .brand-sub-elegan {
        display: none;
    }

    .hamburger-elegan {
        width: 40px;
        height: 40px;
        font-size: 1.4rem;
    }

    .mobile-menu {
        padding: 1rem;
    }
}

/* ===== SPACER ===== */
.navbar-spacer {
    height: 20px;
}

/* ===== UTILITY CLASSES ===== */
.d-flex {
    display: flex;
}

.align-items-center {
    align-items: center;
}

.gap-3 {
    gap: 1rem;
}

.me-2 {
    margin-right: 0.5rem;
}

.ms-auto {
    margin-left: auto;
}