/**
 * ==========================================================================
 * WEBSITE FAKULTAS KEDOKTERAN UNIVERSITAS TADULAKO (FK UNTAD)
 * File         : /assets/css/responsive-header.css / components.css
 * Description  : Modern Responsive Navigation, Layout Fix & Glass Search Modal
 * Version      : 1.3.0 (Sticky Header & Symmetric Mobile TopBar)
 * ==========================================================================
 */

/* ==========================================================================
   0. STICKY HEADER WRAPPER
   ========================================================================== */
.header-wrapper, 
header.site-header { 
  position: sticky !important; 
  top: 0 !important; 
  z-index: 9999 !important; 
  width: 100% !important; 
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08) !important; 
}

/* 1. TOP BAR STYLES */
.top-bar { position: relative; top: 0; left: 0; width: 100%; background: linear-gradient(90deg, #0A2246 0%, #0F2C59 100%); color: #E2E8F0; font-size: 12px; border-bottom: 2px solid #FBC02D; padding: 6px 0; z-index: 1001; }
.top-bar-container { max-width: 1280px; margin: 0 auto; padding: 0 20px; display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.top-info { display: flex; gap: 18px; align-items: center; overflow: hidden; }
.top-info span, .top-info a { display: inline-flex; align-items: center; gap: 6px; color: #E2E8F0; text-decoration: none; opacity: 0.9; white-space: nowrap; text-overflow: ellipsis; }
.top-links { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.top-social-links { display: flex; align-items: center; gap: 6px; }
.top-social-links a { color: #ffffff !important; font-size: 11px !important; width: 24px !important; height: 24px !important; display: inline-flex !important; align-items: center !important; justify-content: center !important; border-radius: 50% !important; background: rgba(255, 255, 255, 0.15) !important; transition: all 0.2s ease !important; text-decoration: none !important; }
.top-social-links a:hover { background: #37BCE5 !important; color: #ffffff !important; transform: translateY(-2px) !important; }
.btn-siga8 { background: rgba(55, 188, 229, 0.15); border: 1px solid #37BCE5; color: #37BCE5 !important; padding: 2px 10px; border-radius: 20px; font-weight: 700; font-size: 11px; display: inline-flex; align-items: center; gap: 6px; text-decoration: none; white-space: nowrap; }
.siga8-badge { background: #FBC02D; color: #0A2246; padding: 1px 5px; border-radius: 10px; font-size: 9px; font-weight: 800; }
.search-toggle-btn { background: rgba(255, 255, 255, 0.1); border: none; color: #fff; cursor: pointer; font-size: 13px; width: 26px; height: 26px; border-radius: 50%; transition: background 0.2s; display: flex; align-items: center; justify-content: center; }
.search-toggle-btn:hover { background: #37BCE5; }

/* 2. MAIN NAVBAR & BRANDING */
.main-navbar { background: #ffffff; border-bottom: 1px solid #E2E8F0; position: relative; z-index: 1000; box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05); }
.navbar-container { max-width: 1280px; margin: 0 auto; padding: 10px 20px; display: flex; justify-content: space-between; align-items: center; gap: 30px; }
.site-branding { margin-right: auto; flex-shrink: 0; }
.site-branding .branding-link { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.header-logo-img, .site-branding img { height: 48px !important; width: auto !important; object-fit: contain; }
.branding-text { display: flex; flex-direction: column; }
.univ-title { font-weight: 800; font-size: 15px; color: #0F2C59; letter-spacing: -0.2px; line-height: 1.1; white-space: nowrap; }
.univ-subtitle { font-weight: 700; font-size: 11px; color: #0E7250; letter-spacing: 0.8px; margin-top: 2px; white-space: nowrap; }
.univ-tagline { font-weight: 500; font-size: 9px; color: #64748B; margin-top: 1px; white-space: nowrap; }

/* 3. HAMBURGER TOGGLE BUTTON */
.mobile-menu-toggle { display: none; background: transparent; border: none; cursor: pointer; padding: 6px; outline: none; z-index: 1002; }
.hamburger-bar { display: block; width: 22px; height: 2.5px; margin: 4px 0; background-color: #0F2C59; border-radius: 2px; transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); }
.mobile-menu-toggle.is-active .hamburger-bar:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.mobile-menu-toggle.is-active .hamburger-bar:nth-child(2) { opacity: 0; }
.mobile-menu-toggle.is-active .hamburger-bar:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* 4. DESKTOP NAVIGATION MENU & DROPDOWNS */
.main-navigation { margin-left: auto; }
.nav-menu-list { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 2px; }
.nav-menu-list > li { position: relative; white-space: nowrap; }
.nav-menu-list a { color: #1E293B; text-decoration: none; font-weight: 600; font-size: 12px; padding: 8px 10px; display: block; border-radius: 6px; transition: all 0.2s; }
.nav-menu-list > li > a:hover { color: #0E7250; background-color: #F1F5F9; }
.nav-menu-list > li.current-menu-item > a { color: #0E7250; background-color: #E6F4EA; font-weight: 700; }
.nav-menu-list .menu-item-has-children > a::after { content: "▾"; font-size: 9px; margin-left: 4px; opacity: 0.6; }
.nav-menu-list ul .menu-item-has-children > a::after { content: "▸"; float: right; margin-left: 10px; }
.nav-menu-list ul { position: absolute; top: 100%; left: 0; background: #ffffff; min-width: 220px; box-shadow: 0 12px 30px rgba(15, 44, 89, 0.12); border-radius: 8px; border: 1px solid #E2E8F0; list-style: none; padding: 6px; margin: 8px 0 0 0; opacity: 0; visibility: hidden; transform: translateY(8px); transition: all 0.2s ease; z-index: 1000; }
.nav-menu-list li:hover > ul { opacity: 1; visibility: visible; transform: translateY(0); }
.nav-menu-list ul a { padding: 8px 14px; font-size: 12px; font-weight: 500; color: #334155; border-radius: 4px; }
.nav-menu-list ul a:hover { background-color: #F8FAFC; color: #0E7250; padding-left: 18px; }

/* 5. HERO BANNER SECTION & BUTTONS */
.hero-banner-section { background: #0A2246; padding: 40px 0; }
.hero-card { background: linear-gradient(135deg, rgba(15, 44, 89, 0.95) 0%, rgba(10, 34, 70, 0.9) 100%), url('../images/hero-bg.jpg') center/cover; border-radius: 16px; border: 1px solid rgba(255, 255, 255, 0.1); box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3); padding: 48px; max-width: 1240px; margin: 0 auto; color: #fff; }
.badge-welcome { background: rgba(57, 188, 229, 0.15); border: 1px solid rgba(57, 188, 229, 0.4); color: #38BDF8; font-size: 11px; font-weight: 700; padding: 6px 14px; border-radius: 30px; letter-spacing: 0.8px; display: inline-block; margin-bottom: 16px; }
.hero-title { font-size: 32px; font-weight: 800; line-height: 1.25; margin-bottom: 14px; letter-spacing: -0.5px; text-shadow: 0 2px 4px rgba(0,0,0,0.2); }
.hero-desc { font-size: 14px; color: #94A3B8; max-width: 580px; line-height: 1.6; margin-bottom: 24px; }
.hero-buttons { display: flex; gap: 12px; align-items: center; }
.btn-fk-primary { background: #38BDF8; color: #0F2C59; padding: 10px 20px; border-radius: 8px; font-weight: 700; font-size: 13px; text-decoration: none; transition: all 0.2s; box-shadow: 0 4px 12px rgba(56, 189, 248, 0.3); }
.btn-fk-primary:hover { background: #0284C7; color: #fff; transform: translateY(-2px); }
.btn-fk-outline { border: 1px solid rgba(255, 255, 255, 0.3); color: #fff; padding: 10px 20px; border-radius: 8px; font-weight: 600; font-size: 13px; text-decoration: none; transition: all 0.2s; background: rgba(255, 255, 255, 0.05); }
.btn-fk-outline:hover { background: rgba(255, 255, 255, 0.15); border-color: #fff; }

/* 6. MODERN SEARCH MODAL OVERLAY */
.search-modal-overlay { display: none; position: fixed !important; top: 0 !important; left: 0 !important; width: 100vw !important; height: 100vh !important; background: rgba(10, 34, 70, 0.75) !important; backdrop-filter: blur(8px) !important; -webkit-backdrop-filter: blur(8px) !important; z-index: 999999 !important; align-items: center !important; justify-content: center !important; }
.search-modal-overlay.is-open { display: flex !important; }
.search-modal-box { position: relative !important; width: 90% !important; max-width: 580px !important; background: #ffffff !important; padding: 48px 24px 24px 24px !important; border-radius: 16px !important; box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(55, 188, 229, 0.2) !important; box-sizing: border-box !important; }
.search-modal-close { position: absolute !important; top: 12px !important; right: 12px !important; background: #ef4444 !important; color: #ffffff !important; border: none !important; font-size: 15px !important; line-height: 1 !important; width: 28px !important; height: 28px !important; border-radius: 50% !important; cursor: pointer !important; display: flex !important; align-items: center !important; justify-content: center !important; transition: all 0.2s ease !important; z-index: 10 !important; }
.search-modal-close:hover { background: #dc2626 !important; transform: scale(1.1) rotate(90deg); }
.search-form-header { display: flex !important; align-items: center !important; gap: 10px !important; width: 100% !important; margin-top: 0 !important; }
.search-field-header { flex: 1 !important; height: 46px !important; padding: 0 16px !important; font-family: inherit !important; font-size: 14px !important; color: #0F2C59 !important; background: #f8fafc !important; border: 1.5px solid #cbd5e1 !important; border-radius: 10px !important; outline: none !important; transition: all 0.25s ease !important; box-sizing: border-box !important; }
.search-field-header:focus { background: #ffffff !important; border-color: #37BCE5 !important; box-shadow: 0 0 0 4px rgba(55, 188, 229, 0.15) !important; }
.search-submit-header { height: 46px !important; padding: 0 22px !important; background: #0F2C59 !important; color: #ffffff !important; font-family: inherit !important; font-size: 14px !important; font-weight: 600 !important; border: none !important; border-radius: 10px !important; cursor: pointer !important; transition: all 0.2s ease !important; white-space: nowrap !important; }
.search-submit-header:hover { background: #37BCE5 !important; }

/* 7. RESPONSIVE BREAKPOINTS (TABLET & MOBILE SIMETRIS) */
@media screen and (max-width: 1200px) {
  .mobile-menu-toggle { display: block !important; }
  .main-navigation { display: none; position: absolute !important; top: 100% !important; left: 0 !important; right: 0 !important; width: 100% !important; background: #ffffff !important; box-shadow: 0 12px 24px rgba(15, 44, 89, 0.18) !important; border-top: 3px solid #37BCE5 !important; border-bottom: 4px solid #0F2C59 !important; z-index: 99998 !important; margin-left: 0 !important; }
  .main-navigation.is-active { display: block !important; max-height: 65vh !important; overflow-y: auto !important; }
  .nav-menu-list { flex-direction: column !important; align-items: flex-start !important; width: 100% !important; }
  .nav-menu-list > li { width: 100% !important; }
  .nav-menu-list a { padding: 12px 16px !important; border-bottom: 1px solid #edf2f7 !important; border-radius: 0 !important; }
  .nav-menu-list ul { position: static !important; display: none; opacity: 1 !important; visibility: visible !important; transform: none !important; box-shadow: none !important; border: none !important; background-color: #f8fafc !important; width: 100% !important; margin: 0 !important; }
}

@media screen and (max-width: 768px) {
  .top-info { display: none !important; }
  .top-bar-container { justify-content: space-between !important; padding: 0 12px !important; }
  .top-bar { padding: 5px 0 !important; }
  .top-social-links a { width: 24px !important; height: 24px !important; font-size: 11px !important; }
  .univ-tagline { display: none !important; }
  .univ-title { font-size: 13px !important; }
  .univ-subtitle { font-size: 9.5px !important; }
  .header-logo-img, .site-branding img { height: 38px !important; }
}

@media screen and (max-width: 576px) {
  .search-modal-box { padding: 50px 16px 20px 16px !important; }
  .search-form-header { flex-direction: column !important; gap: 10px !important; }
  .search-field-header, .search-submit-header { width: 100% !important; height: 44px !important; }
  .hero-card { padding: 20px !important; }
  .hero-title { font-size: 20px !important; }
}