/* Modernized header styles (public layout) */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: linear-gradient(180deg, rgba(255,255,255,0.9), rgba(255,255,255,0.85));
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 1000;
    border-bottom: 1px solid rgba(20,24,30,0.06);
    box-shadow: 0 6px 18px rgba(43,69,88,0.06);
    /* make header slightly taller to comfortably contain logo + nav */
    min-height: 72px;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 28px;
    max-width: 1200px;
    margin: 0 auto;
    gap: 28px;
}

/* Logo styling */
.logo-section { flex-shrink: 0; }
.logo-link { display: block; }
.logo-image {
    /* Respect original visual weight while constraining height for alignment */
    width: auto;
    max-width: 150px;
    max-height: 56px;
    height: auto;
    border-radius: 8px;
    object-fit: contain;
    display: block;
    transition: transform 0.18s ease, opacity 0.12s ease;
}
.logo-link:hover .logo-image { transform: translateY(-3px); }

/* Desktop Navigation */
.main-nav { display: flex; align-items: center; }
.nav-list {
    display: flex;
    align-items: center;
    gap: 14px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    text-decoration: none;
    color: #1f2937;
    font-weight: 600;
    transition: background 0.18s, color 0.18s, transform 0.12s, box-shadow 0.12s;
    border-radius: 12px;
    font-size: 1rem;
}

.nav-link:hover, .nav-link:focus {
    background: rgba(15,76,129,0.06);
    color: #0f4c81;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(15,76,129,0.06);
}

.nav-link.active {
    background: rgba(15,76,129,0.09);
    color: #0f4c81;
}

.bnav-action-container { margin-left: 18px; }

/* Primary CTA */
.primary-cta-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 18px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    color: #ffffff;
    background: linear-gradient(90deg,#2563eb 0%, #7c3aed 100%);
    border: none;
    border-radius: 14px;
    transition: transform 0.12s ease, box-shadow 0.12s ease, opacity 0.12s;
    white-space: nowrap;
    box-shadow: 0 8px 26px rgba(37,99,235,0.12);
}

.primary-cta-button:hover { transform: translateY(-3px); box-shadow: 0 10px 30px rgba(37,99,235,0.16); }

/* Mobile Menu Button */
.mobile-menu-btn { display: none; background: none; border: none; font-size: 24px; cursor: pointer; padding: 10px; color: #1f2937; flex-shrink: 0; }

/* Mobile Navigation Overlay */
.mobile-nav-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.55); z-index: 1001; backdrop-filter: blur(2px); }
.mobile-nav-overlay.active { display: block; }

/* Mobile Navigation Panel */
.mobile-nav-panel {
    position: fixed; top: 0; right: -100%; width: 320px; height: 100%; background: #fff; z-index: 1002; transition: right 0.32s ease; box-shadow: -6px 0 24px rgba(16,24,40,0.08); overflow-y: auto;
}
.mobile-nav-panel.active { right: 0; }

.mobile-nav-header { display:flex; align-items:center; justify-content:space-between; padding:18px; border-bottom:1px solid #f1f5f9; }
.mobile-nav-header h3 { margin:0; font-size:18px; color:#0f4c81; }
.mobile-close-btn { background:none; border:none; font-size:22px; cursor:pointer; color:#506070; }

.mobile-nav-items { padding:18px; }
.mobile-nav-item { display:flex; align-items:center; gap:12px; padding:12px 0; text-decoration:none; color:#1f2937; font-weight:600; border-bottom:1px solid #f8fafc; transition:padding-left .12s, color .12s; }
.mobile-nav-item:hover { color:#0f4c81; padding-left:6px; }
.mobile-nav-item i { width:24px; color:#0f4c81; }

.mobile-cta { margin-top:18px; padding-top:6px; }
.mobile-cta .primary-cta-button { width:100%; justify-content:center; }

/* Responsive tweaks */
@media (max-width: 992px) {
    .main-nav { display: none; }
    .mobile-menu-btn { display: block; }
    .logo-image { max-width: 120px; max-height:48px; }
}

@media (max-width: 480px) {
    .header-content { padding: 10px 12px; }
    .logo-image { max-width: 100px; max-height:40px; }
    .primary-cta-button span { display: none; }
    .primary-cta-button { padding: 8px 12px; font-size:13px }
}

/* Header should not directly modify body padding; main.css controls page spacing */

/* Auth account dropdown */
.auth-account { position: relative; }
.auth-avatar-btn { background: transparent; border: none; padding: 0; cursor: pointer; display: inline-flex; align-items: center; }
.auth-avatar-btn .auth-avatar { display: inline-flex; align-items: center; justify-content: center; }
.auth-dropdown { position: absolute; right: 0; top: calc(100% + 8px); min-width: 180px; background: #fff; border: 1px solid rgba(15,23,42,0.06); box-shadow: 0 8px 30px rgba(2,6,23,0.08); border-radius: 10px; padding: 6px 6px; display: none; z-index: 1200; }
.auth-dropdown.active, .auth-dropdown[aria-hidden="false"] { display: block; }
.auth-dropdown-item { display: flex; align-items: center; gap: 8px; padding: 8px 12px; color: #0f172a; text-decoration: none; font-weight: 600; border-radius: 8px; }
.auth-dropdown-item:hover { background: rgba(15,76,129,0.04); color: #0f172a; }

@media (max-width: 480px) {
    .auth-dropdown { right: 8px; left: 8px; min-width: auto; }
}

/* Icon-only auth button (profile) */
.auth-icon-btn { display:inline-flex; align-items:center; justify-content:center; width:42px; height:42px; border-radius:10px; background: transparent; border: 1px solid rgba(15,23,42,0.06); color: #0f172a; text-decoration: none; font-size: 18px; transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease; }
.auth-icon-btn:hover { background: rgba(15,76,129,0.04); color: #0f172a; transform: translateY(-2px); box-shadow: 0 6px 18px rgba(15,76,129,0.04); }

/* Notification button */
.notif-btn { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 10px; color: #475569; text-decoration: none; font-size: 17px; border: 1px solid rgba(15,23,42,0.06); background: transparent; transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease, color 0.12s ease; }
.notif-btn:hover { color: #0f172a; background: rgba(15,76,129,0.04); transform: translateY(-2px); box-shadow: 0 6px 18px rgba(15,76,129,0.04); }
.notif-dot { position: absolute; top: 5px; right: 5px; min-width: 18px; height: 18px; padding: 0 4px; background: linear-gradient(135deg, #ef4444, #dc2626); color: white; border-radius: 9999px; font-size: .64rem; font-weight: 800; display: flex; align-items: center; justify-content: center; line-height: 1; box-shadow: 0 4px 10px rgba(239,68,68,0.25); }
