/* ==========================================================================
   NAVBAR & HEADER SECTION 
   ========================================================================== */

.header {
    position: fixed; 
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1050;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    padding-top: 105px; 
}

.bg-univ-green { background-color: #0B5E44 !important; transition: all 0.3s ease; }
.text-univ-green { color: #0B5E44 !important; }

.header.scrolled {
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.header.scrolled .bg-univ-green {
    margin-top: -40px; 
    opacity: 0;
}

.header.scrolled .header-main {
    padding-top: 5px !important;
    padding-bottom: 5px !important;
}

.header.scrolled .navbar-brand.logo img {
    height: 40px;
}

.overflow-auto-mobile {
    display: flex;
    flex-wrap: nowrap;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
}

@media (max-width: 991px) {
    .overflow-auto-mobile {
        overflow-x: auto;
        padding-bottom: 5px;
    }
    .overflow-auto-mobile::-webkit-scrollbar {
        display: none;
    }
    .top-link {
        font-size: 11px; 
        padding: 0 10px;
    }
}

/* --- TOPBAR --- */
.top-link {
    color: white !important;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    padding: 0 12px;
}
.top-link:hover { color: #FFD700 !important; }


.navbar-brand-wrapper {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
}

.navbar-brand.logo {
    display: flex !important;
    align-items: center !important;
    width: auto !important;         
    min-width: 0 !important;        
    padding: 0 !important;
    margin: 0 !important;
    flex: 0 0 auto !important;     
}

.navbar-brand.logo img { 
    height: 50px; 
    width: auto; 
    transition: all 0.3s ease;
}

.brand-text-divider {
    width: 2px !important;
    height: 35px;
    background-color: #333; 
    margin: 0 12px !important;
    flex-shrink: 0;
}

.brand-title { display: flex; flex-direction: column; }
.prodi-name {
    font-weight: 800;
    color: #0B5E44;
    font-size: 1rem;
    line-height: 1.1;
    text-transform: uppercase;
}
.univ-name { font-size: 0.75rem; font-weight: 600; color: #555; }

.navbar-nav .nav-link {
    color: #333 !important;
    font-weight: 700 !important;
    font-size: 0.95rem;
    padding: 10px 15px !important;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
}

.navbar-nav .nav-link:hover {
    color: #0B5E44 !important;
    border-bottom: 3px solid #0B5E44 !important;
}

.nav-item.dropdown { 
    position: relative !important; 
}

.navbar-nav .dropdown-menu {
    left: 50% !important;
    transform: translateX(-50%) translateY(15px) !important; 
    right: auto !important;
    top: 100% !important;
    margin-top: 10px !important;
    border: none;
    border-radius: 12px;
    background-color: #ffffff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08); 
    padding: 12px 0; 
    min-width: 260px;
    display: block !important;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

.navbar-nav .dropdown-menu::before {
    content: "";
    position: absolute;
    top: -15px; 
    left: 0;
    width: 100%;
    height: 15px; 
    background: transparent;
}

.nav-item.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0) !important;
    pointer-events: auto;
}

.nav-item.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0) !important;
    pointer-events: auto;
}

/* --- DROPDOWN ITEMS --- */
.dropdown-item {
    font-weight: 500;
    font-size: 0.92rem; 
    padding: 12px 25px;   
    color: #444;
    border-bottom: 1px solid #f8f9fa;
    transition: all 0.2s ease;
    position: relative;
    display: flex;
    align-items: center;
    background-color: transparent !important;
}

.dropdown-item:last-child { 
    border-bottom: none; 
}

.dropdown-item:hover {
    background-color: #f0f7f4 !important; 
    color: #003d29 !important;
    padding-left: 30px;
}

.dropdown-item::before {
    content: '-';
    position: absolute;
    left: 15px;
    color: #003d29;
    font-weight: bold;
    transition: all 0.2s ease;
    opacity: 0;
}

.dropdown-item:hover::before {
    width: 8px; 
    opacity: 1;
}

@media (max-width: 991px) {
    body { padding-top: 70px; } 
    .brand-text-divider { display: none; }
    .navbar-collapse {
        background: white;
        padding: 15px;
        border-top: 3px solid #0B5E44;
    }
    .navbar-nav .dropdown-menu {
        position: static !important;
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
        box-shadow: none;
    }
}

.custom-footer {
    background-color: #1d8c5b;
    color: white;
    font-family: 'Arial', sans-serif;
}

.footer-logo-img {
    max-height: 70px;
    width: auto;
}

.footer-description {
    font-size: 14px;
    line-height: 1.6;
    margin-top: 15px;
    text-align: justify;
}

.footer-title {
    font-size: 18px;
    font-weight: bold;
    color: white;
    margin-bottom: 20px;
}

.footer-list {
    list-style: none;
    padding: 0;
}

.footer-list li {
    margin-bottom: 10px;
    position: relative;
    padding-left: 15px;
}

.footer-list li::before {
    content: "•";
    color: white;
    position: absolute;
    left: 0;
}

.footer-list li a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: 0.3s;
    border-bottom: 1px solid transparent;
}

.footer-list li a:hover {
    padding-left: 5px;
    border-bottom: 1px solid white;
}

.footer-socials .social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    border-radius: 5px;
    margin-right: 10px;
    color: white;
    font-size: 18px;
    transition: transform 0.3s;
}

.footer-socials .social-icon:hover {
    transform: translateY(-3px);
}

.fb { background-color: #3b5998; }
.ig { background-color: #e4405f; }
.tw { background-color: #1da1f2; }
.tk { background-color: #000000; }
.yt { background-color: #ff0000; }

.footer-copyright {
    background-color: #156d47; 
    font-size: 14px;
}