/**
 * ==========================================================================
 * File: assets/css/header.css (Compact 1-Line Format)
 * Description: Styling Header, Topbar, Branding, Navigation & Reset Spacing
 * Project: RSU Universitas Tadulako
 * ==========================================================================
 */

/* 1. RESET SPACING & HEADER SEAMLESS FIX */
.site-header, header, #masthead, .main-navigation, .branding-section { margin-bottom: 0 !important; padding-bottom: 0 !important; box-shadow: none !important; border-bottom: none !important; }

/* 2. TOPBAR AREA */
.topbar-area, .topbar-section { background: linear-gradient(90deg, #06284c 0%, #08386b 100%); color: #f1f5f9; font-size: 0.82rem; padding: 7px 0; border-bottom: 2px solid var(--rs-teal, #00a896); }
.topbar-container { display: flex; justify-content: space-between; align-items: center; }
.topbar-info, .topbar-socials, .social-links { display: flex; align-items: center; gap: 18px; }
.topbar-info a, .topbar-socials a, .topbar-section a, .social-links a { color: #e2e8f0; text-decoration: none; transition: all 0.25s ease; font-weight: 500; }
.topbar-info a:hover, .topbar-socials a:hover, .topbar-section a:hover, .social-links a:hover { color: #38bdf8; transform: translateY(-1px); }
.topbar-info i, .topbar-section i { color: var(--rs-teal, #00a896); }

/* 3. MAIN HEADER & BRANDING (DITAMBAH TINGGI/PADDING DIBUAT LEBIH LAPANG) */
.main-header, .site-header { background: #ffffff; position: sticky; top: 0; z-index: 1000; margin: 0; padding: 0; }
.branding-section { background-color: #ffffff; padding: 18px 0 !important; margin: 0; }
.header-container { display: flex; justify-content: space-between; align-items: center; padding: 0 20px; }

/* 4. LOGOS & TYPOGRAPHY (UKURAN LOGO DIINTEGRASIKAN SECARA PROPORSI) */
.site-branding img, .branding-section img, .branding-section .custom-logo, .branding-section img.custom-logo, .header-logo-wrapper img { height: 62px !important; max-height: 62px !important; width: auto !important; object-fit: contain; display: block; filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.04)); }
.header-secondary-logo img { height: 62px !important; max-height: 62px !important; width: auto !important; object-fit: contain; display: block; filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.04)); }
.logo-divider { height: 48px; width: 1px; background: linear-gradient(to bottom, transparent, #cbd5e1, transparent); margin: 0 16px; }
.brand-text-group { line-height: 1.2; }
.brand-institution { font-size: 0.75rem; font-weight: 700; color: var(--rs-teal, #00a896); letter-spacing: 1.8px; margin-bottom: 2px; text-transform: uppercase; display: block; }
.brand-title { font-size: 1.48rem; font-weight: 800; color: #0a2540; letter-spacing: -0.2px; margin: 0; text-transform: uppercase; font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif; }
.brand-tagline { font-size: 0.8rem; color: #64748b; font-weight: 500; margin-top: 3px; display: flex; align-items: center; }
.brand-tagline em { font-style: italic; color: #475569; }
.emergency-label { font-size: 0.68rem; font-weight: 700; color: #dc2626; letter-spacing: 0.8px; text-transform: uppercase; }
.emergency-number { font-size: 1.08rem; font-weight: 800; color: #06284c; }

/* 5. NAVIGATION MENU & GLOSSY NAVBAR */
#site-navigation.main-navigation, .navbar-section { background: linear-gradient(180deg, #093c71 0%, #06284c 60%, #041c37 100%) !important; position: relative; box-shadow: 0 4px 20px rgba(6, 40, 76, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.18); border-top: 1px solid rgba(255, 255, 255, 0.15) !important; border-bottom: 3px solid var(--rs-teal, #00a896) !important; padding: 0 !important; margin: 0 !important; }
#site-navigation.main-navigation::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 48%; background: linear-gradient(180deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.02) 100%); pointer-events: none; z-index: 1; }
.main-navigation .container { position: relative; z-index: 2; }
.nav-menu, .main-navigation ul { display: flex; align-items: center; gap: 6px; list-style: none; margin: 0; padding: 0; }
.nav-menu li, .main-navigation ul li { position: relative; }
.nav-menu > li > a, .main-navigation > .container > .d-flex > ul > li > a { text-decoration: none; color: #e2e8f0 !important; font-weight: 600; font-size: 0.88rem; padding: 10px 18px; border-radius: 6px; display: flex; align-items: center; letter-spacing: 0.4px; transition: all 0.25s cubic-bezier(0.165, 0.84, 0.44, 1); text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4); }
.nav-menu > li:hover > a, .nav-menu > .current-menu-item > a, .main-navigation ul > li:hover > a, .main-navigation ul > .current-menu-item > a { color: #ffffff !important; background: linear-gradient(180deg, rgba(0, 168, 150, 0.88) 0%, rgba(2, 128, 144, 0.98) 100%); box-shadow: 0 3px 10px rgba(0, 168, 150, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.3); text-shadow: none; }

/* 6. SEARCH FORM GLOSSY */
.header-search-form .form-control { background-color: rgba(255, 255, 255, 0.12) !important; border: 1px solid rgba(255, 255, 255, 0.25) !important; color: #ffffff !important; font-size: 0.85rem; backdrop-filter: blur(4px); transition: all 0.3s ease; }
.header-search-form .form-control::placeholder { color: rgba(226, 232, 240, 0.7) !important; }
.header-search-form .form-control:focus { background-color: rgba(255, 255, 255, 0.22) !important; border-color: var(--rs-teal, #00a896) !important; box-shadow: 0 0 12px rgba(0, 168, 150, 0.4) !important; }
.header-search-form .btn-search-glossy { background: linear-gradient(180deg, #00a896 0%, #028090 100%) !important; border: 1px solid rgba(255, 255, 255, 0.2) !important; color: #ffffff !important; transition: all 0.25s ease; }
.header-search-form .btn-search-glossy:hover { background: linear-gradient(180deg, #028090 0%, #00a896 100%) !important; box-shadow: 0 0 10px rgba(0, 168, 150, 0.5); }

/* 7. MULTI-LEVEL DROPDOWN */
.nav-menu ul, .main-navigation ul ul { position: absolute; top: 100%; left: 0; min-width: 230px; background: rgba(6, 40, 76, 0.96) !important; backdrop-filter: blur(10px); box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.15); border-radius: 8px; padding: 8px 0; margin: 0; list-style: none; display: flex; flex-direction: column; opacity: 0; visibility: hidden; transform: translateY(10px); transition: all 0.25s ease; z-index: 999; border: 1px solid rgba(0, 168, 150, 0.3); }
.nav-menu li:hover > ul, .main-navigation ul li:hover > ul { opacity: 1; visibility: visible; transform: translateY(0); }
.nav-menu ul a, .main-navigation ul ul a { display: flex; justify-content: space-between; align-items: center; padding: 10px 20px; font-size: 0.85rem; color: #cbd5e1 !important; font-weight: 500; transition: all 0.2s ease; border-bottom: 1px solid rgba(255, 255, 255, 0.04); }
.nav-menu ul a:hover, .main-navigation ul ul a:hover { background: rgba(0, 168, 150, 0.25) !important; color: #ffffff !important; padding-left: 24px; }
.nav-menu ul ul, .main-navigation ul ul ul { top: 0; left: 100%; margin-top: -8px; }
.menu-item-has-children > a::after { content: "\F282"; font-family: "bootstrap-icons"; font-size: 0.75rem; margin-left: 6px; transition: transform 0.2s ease; }
.nav-menu ul .menu-item-has-children > a::after, .main-navigation ul ul .menu-item-has-children > a::after { content: "\F285"; margin-left: 12px; }

/* 8. BUTTONS & UTILITIES */
.btn-daftar-online, .btn-teal { background: linear-gradient(135deg, #00a896 0%, #028090 100%); color: #ffffff !important; border: none; padding: 9px 22px; border-radius: 50px; font-weight: 600; font-size: 0.88rem; text-decoration: none; display: inline-flex; align-items: center; box-shadow: 0 4px 12px rgba(0, 168, 150, 0.22); transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1); }
.btn-daftar-online:hover, .btn-teal:hover { background: linear-gradient(135deg, #028090 0%, #00a896 100%); color: #ffffff !important; transform: translateY(-2px); box-shadow: 0 6px 18px rgba(0, 168, 150, 0.32); }
.btn-navy { background-color: var(--rs-navy, #093c71); color: #ffffff !important; padding: 8px 20px; border-radius: 30px; font-weight: 600; text-decoration: none; display: inline-block; transition: background-color 0.3s ease, transform 0.2s ease; border: none; }
.btn-navy:hover { background-color: var(--rs-navy-dark, #06284c); color: #ffffff !important; transform: translateY(-1px); }
.text-teal { color: var(--rs-teal, #00a896) !important; }
.text-navy { color: var(--rs-navy, #093c71) !important; }

/* 9. RESPONSIVE BREAKPOINTS */
@media (max-width: 991px) { .brand-title { font-size: 1.2rem; } }
@media (max-width: 576px) { .site-branding img, .branding-section img, .branding-section .custom-logo, .header-logo-wrapper img { height: 46px !important; max-height: 46px !important; } .brand-institution { font-size: 0.62rem; letter-spacing: 1px; } .brand-title { font-size: 1.05rem; } .brand-tagline { font-size: 0.68rem; } }

