/* =============================================================
   HEADER — ACK Kirinyaga Cathedral  |  2025 Modern Redesign
   Overrides base styles.css. Load AFTER styles.css.
   Brand: Navy #0a2e76  •  Gold #f4c025
   ============================================================= */

/* ── 1. ANNOUNCEMENT BAR ─────────────────────────────────── */
.top-notification-bar {
    background: var(--primary);
    color: rgba(255, 255, 255, 0.92);
    padding: 9px 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                padding 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 0.4s ease;
    max-height: 56px;
    display: block; /* override flex so max-height collapsing works cleanly */
    position: relative;
}
.top-notification-bar.hidden {
    max-height: 0;
    padding: 0;
    opacity: 0;
    pointer-events: none;
}
.notification-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 13.5px;
    font-weight: 500;
    position: relative;
}
.notification-content i.fa-bell-on,
.notification-content i.fa-bell {
    color: var(--accent);
    font-size: 14px;
    flex-shrink: 0;
}
.notification-content a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 700;
    transition: opacity 0.2s;
}
.notification-content a:hover { opacity: 0.8; }
.notification-close {
    position: absolute;
    right: 24px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.55);
    cursor: pointer;
    font-size: 13px;
    line-height: 1;
    padding: 4px 6px;
    border-radius: 4px;
    transition: color 0.2s, background 0.2s;
}
.notification-close:hover {
    color: white;
    background: rgba(255, 255, 255, 0.1);
}

/* ── 2. MAIN HEADER SHELL ────────────────────────────────── */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: #ffffff;
    transition: box-shadow 0.3s ease;
}
.main-header.scrolled {
    box-shadow: 0 2px 24px rgba(10, 46, 118, 0.10);
}
/* Hide announcement bar on scroll */
.main-header.scrolled .top-notification-bar {
    max-height: 0;
    padding: 0;
    opacity: 0;
    pointer-events: none;
}

/* Inner wrapper */
.header-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 32px;
    border-bottom: 1px solid rgba(10, 46, 118, 0.07);
}
.main-header.scrolled .header-wrapper {
    border-bottom-color: transparent;
}

/* Row that holds logo + nav + actions */
.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
    gap: 16px;
    position: relative;   /* needed for search overlay */
    transition: height 0.3s ease;
}
.main-header.scrolled .header-content {
    height: 62px;
}

/* ── 3. LOGO ─────────────────────────────────────────────── */
.logo {
    display: flex;
    align-items: center;
    gap: 13px;
    text-decoration: none;
    flex-shrink: 0;
    outline: none;
}
.logo:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
    border-radius: 8px;
}
.logo-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    overflow: hidden;
    background: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 2px 10px rgba(10, 46, 118, 0.18);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.logo-icon img {
    width: 90%;
    height: 90%;
    object-fit: contain;
}
.logo:hover .logo-icon {
    transform: scale(1.06);
    box-shadow: 0 4px 16px rgba(10, 46, 118, 0.25);
}
.logo-text {
    display: flex;
    flex-direction: column;
}
.logo-title {
    font-size: 15px;
    font-weight: 800;
    color: var(--primary);
    line-height: 1.25;
    letter-spacing: -0.2px;
    transition: color 0.2s;
}
.logo:hover .logo-title { color: var(--primary-dark); }
.logo-subtitle {
    font-size: 10px;
    color: var(--gray);
    font-weight: 500;
    letter-spacing: 0.7px;
    text-transform: uppercase;
    margin-top: 1px;
}

/* ── 4. NAV MENU ─────────────────────────────────────────── */
.main-navigation {
    flex: 1;
    display: flex;
    justify-content: center;
    /* mobile-only styles overridden in responsive section */
}
.nav-menu {
    display: flex;
    align-items: center;
    gap: 2px;
    list-style: none;
    margin: 0;
    padding: 0;
}
.nav-item { position: relative; }

.nav-link {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 8px 13px;
    color: var(--primary-darkest);
    text-decoration: none;
    font-weight: 600;
    font-size: 13.5px;
    border-radius: 8px;
    transition: color 0.2s ease, background 0.2s ease;
    position: relative;
    white-space: nowrap;
    outline: none;
}
/* Animated underline */
.nav-link::after {
    content: '';
    position: absolute;
    bottom: 3px;
    left: 13px;
    right: 13px;
    height: 2px;
    background: var(--accent);
    border-radius: 2px;
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
.nav-link:hover {
    color: var(--primary);
    background: rgba(10, 46, 118, 0.05);
}
.nav-link:hover::after { transform: scaleX(1); }
.nav-link:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}
/* Active state */
.nav-item.active > .nav-link { color: var(--primary); }
.nav-item.active > .nav-link::after { transform: scaleX(1); }

/* Chevron indicator */
.dropdown-indicator {
    font-size: 9px;
    margin-left: 2px;
    opacity: 0.6;
    transition: transform 0.25s ease, opacity 0.2s;
}
.dropdown-parent:hover .dropdown-indicator {
    transform: rotate(180deg);
    opacity: 1;
}

/* ── 4a. GIVE CTA (desktop, hides on mobile) ─────────────── */
.nav-item.nav-cta-mobile {
    display: none; /* shown as btn-give in header-actions on desktop */
}

/* ── 5. MEGA DROPDOWN ────────────────────────────────────── */
.mega-dropdown {
    position: absolute;
    top: calc(100% + 14px);
    left: 50%;
    transform: translateX(-50%) translateY(-8px);
    width: 760px;
    background: #ffffff;
    border-radius: 14px;
    box-shadow: 0 8px 40px rgba(10, 46, 118, 0.12), 0 2px 8px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(10, 46, 118, 0.08);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.22s ease, transform 0.22s ease, visibility 0s linear 0.22s;
    z-index: 200;
    padding: 24px;
}
/* Opening connector strip to prevent gap-hover gap */
.mega-dropdown::before {
    content: '';
    position: absolute;
    top: -14px;
    left: 0;
    right: 0;
    height: 14px;
}
.dropdown-parent:hover .mega-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
    transition: opacity 0.22s ease, transform 0.22s ease, visibility 0s;
}
.mega-dropdown-content { /* legacy wrapper, transparent */ }
.mega-dropdown-header {
    margin-bottom: 18px;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(10, 46, 118, 0.07);
}
.mega-dropdown-header h4 {
    margin: 0 0 4px 0;
    font-size: 17px;
    font-weight: 800;
    color: var(--primary);
}
.mega-dropdown-header p {
    margin: 0;
    font-size: 12.5px;
    color: var(--gray);
}
.mega-dropdown-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}
/* Mega menu item cards */
.mega-menu-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px;
    background: var(--gray-light);
    border-radius: 10px;
    text-decoration: none;
    color: var(--primary-darkest);
    border: 1px solid transparent;
    transition: background 0.2s ease, transform 0.2s ease,
                box-shadow 0.2s ease, border-color 0.2s ease;
    outline: none;
}
.mega-menu-item:hover {
    background: #eef2fb;
    border-color: rgba(10, 46, 118, 0.12);
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(10, 46, 118, 0.08);
    color: var(--primary);
}
.mega-menu-item:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}
.mega-menu-item.active {
    background: var(--primary-lighter);
    border-color: rgba(10, 46, 118, 0.15);
    color: var(--primary);
}
.mega-menu-icon {
    width: 40px;
    height: 40px;
    background: white;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 15px;
    flex-shrink: 0;
    box-shadow: 0 1px 4px rgba(10, 46, 118, 0.12);
    transition: background 0.2s ease, color 0.2s ease;
}
.mega-menu-item:hover .mega-menu-icon {
    background: var(--primary);
    color: white;
}
.mega-menu-content { flex: 1; min-width: 0; }
.mega-menu-content h5 {
    margin: 0 0 3px 0;
    font-size: 13.5px;
    font-weight: 700;
    color: inherit;
}
.mega-menu-content p {
    margin: 0;
    font-size: 11.5px;
    color: var(--gray);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.arrow-icon {
    font-size: 10px;
    color: var(--accent);
    opacity: 0;
    transform: translateX(-6px);
    transition: opacity 0.2s ease, transform 0.2s ease;
    flex-shrink: 0;
}
.mega-menu-item:hover .arrow-icon {
    opacity: 1;
    transform: translateX(0);
}

/* ── 6. SIMPLE DROPDOWN (Resources) ─────────────────────── */
.dropdown-menu-simple {
    position: absolute;
    top: calc(100% + 14px);
    left: 50%;
    transform: translateX(-50%) translateY(-8px);
    min-width: 270px;
    background: #ffffff;
    border-radius: 14px;
    box-shadow: 0 8px 40px rgba(10, 46, 118, 0.12), 0 2px 8px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(10, 46, 118, 0.08);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.22s ease, transform 0.22s ease, visibility 0s linear 0.22s;
    z-index: 200;
    padding: 10px;
}
/* hover bridge */
.dropdown-menu-simple::before {
    content: '';
    position: absolute;
    top: -14px;
    left: 0;
    right: 0;
    height: 14px;
}
.dropdown-parent:hover .dropdown-menu-simple {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
    transition: opacity 0.22s ease, transform 0.22s ease, visibility 0s;
}
.dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    color: var(--primary-darkest);
    text-decoration: none;
    border-radius: 8px;
    transition: background 0.2s ease, transform 0.18s ease;
    outline: none;
}
.dropdown-item + .dropdown-item { margin-top: 2px; }
.dropdown-item:hover {
    background: rgba(10, 46, 118, 0.05);
    color: var(--primary);
    transform: translateX(3px);
}
.dropdown-item:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}
.dropdown-icon {
    width: 34px;
    height: 34px;
    background: var(--primary-lighter, #dbe4f5);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 13px;
    flex-shrink: 0;
    transition: background 0.2s ease, color 0.2s ease;
}
.dropdown-item:hover .dropdown-icon {
    background: var(--primary);
    color: white;
}
.dropdown-item h6 {
    margin: 0 0 2px 0;
    font-size: 13px;
    font-weight: 700;
}
.dropdown-item p {
    margin: 0;
    font-size: 11.5px;
    color: var(--gray);
    line-height: 1.3;
}

/* ── 7. HEADER ACTION ZONE ───────────────────────────────── */
.header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

/* Search toggle button */
.search-toggle {
    background: none;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray);
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    flex-shrink: 0;
}
.search-toggle:hover {
    background: rgba(10, 46, 118, 0.06);
    color: var(--primary);
}

/* Inline search overlay (covers header-content) */
.search-container {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #ffffff;
    display: flex;
    align-items: center;
    padding: 0 32px;
    z-index: 20;
    opacity: 0;
    pointer-events: none;
    transform: scaleX(0.98);
    transform-origin: right center;
    transition: opacity 0.25s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 0;
}
.search-container.active {
    opacity: 1;
    pointer-events: auto;
    transform: scaleX(1);
}
.search-form {
    width: 100%;
    max-width: 560px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 0;
    background: var(--gray-light);
    border-radius: 10px;
    padding: 5px 5px 5px 16px;
    border: 2px solid transparent;
    transition: border-color 0.2s ease;
}
.search-form:focus-within { border-color: var(--accent); }
.search-form-icon {
    color: var(--gray);
    font-size: 13px;
    flex-shrink: 0;
    margin-right: 10px;
}
.search-input {
    flex: 1;
    background: none;
    border: none;
    padding: 8px 0;
    font-size: 14px;
    color: var(--primary-darkest);
    outline: none;
    min-width: 0;
}
.search-input::placeholder { color: var(--gray); }
.search-submit {
    background: var(--primary);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    transition: background 0.2s ease, transform 0.15s ease;
    flex-shrink: 0;
}
.search-submit:hover {
    background: var(--primary-dark);
    transform: scale(1.05);
}
.search-close {
    background: none;
    border: none;
    color: var(--gray);
    cursor: pointer;
    font-size: 13px;
    padding: 8px;
    border-radius: 8px;
    transition: background 0.2s, color 0.2s;
    margin-left: 4px;
    flex-shrink: 0;
}
.search-close:hover {
    background: rgba(10, 46, 118, 0.06);
    color: var(--primary);
}

/* Give CTA button */
.btn-give {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: var(--accent);
    color: var(--primary);
    border: none;
    border-radius: 9px;
    font-weight: 700;
    font-size: 13px;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 2px 8px rgba(244, 192, 37, 0.35);
    white-space: nowrap;
    flex-shrink: 0;
}
.btn-give:hover {
    background: var(--accent-dark);
    color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(244, 192, 37, 0.45);
}
.btn-give i { font-size: 12px; }

/* Member Portal button */
.btn-portal {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 15px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 9px;
    font-weight: 700;
    font-size: 12.5px;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 2px 8px rgba(10, 46, 118, 0.22);
    white-space: nowrap;
    flex-shrink: 0;
}
.btn-portal:hover {
    background: var(--primary-dark);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(10, 46, 118, 0.32);
}
.portal-icon { font-size: 14px; }
/* Remove old ::before shine on portal */
.btn-portal::before { display: none; }

/* Mobile hamburger */
.mobile-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: none;
    border: 1px solid rgba(10, 46, 118, 0.16);
    border-radius: 8px;
    width: 40px;
    height: 40px;
    padding: 8px;
    cursor: pointer;
    z-index: 1001;
    transition: background 0.2s ease;
    flex-shrink: 0;
}
.mobile-toggle:hover { background: rgba(10, 46, 118, 0.05); }
.toggle-line {
    width: 100%;
    height: 2px;
    background: var(--primary);
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
    display: block;
}
.mobile-toggle.active .toggle-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
.mobile-toggle.active .toggle-line:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}
.mobile-toggle.active .toggle-line:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ── 8. MOBILE NAV PANEL ─────────────────────────────────── */
/* Mobile nav header bar inside the panel */
.mobile-nav-header {
    display: none;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid rgba(10, 46, 118, 0.07);
    background: white;
    position: sticky;
    top: 0;
    z-index: 1;
}
.mobile-nav-brand {
    font-weight: 800;
    font-size: 15px;
    color: var(--primary);
}
.mobile-nav-close {
    background: none;
    border: none;
    color: var(--gray);
    font-size: 18px;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 6px;
    transition: background 0.2s, color 0.2s;
}
.mobile-nav-close:hover {
    background: rgba(10, 46, 118, 0.05);
    color: var(--primary);
}

/* Mobile search bar inside panel */
.mobile-nav-search {
    display: none;
    padding: 14px 16px;
    border-bottom: 1px solid rgba(10, 46, 118, 0.07);
}
.mobile-nav-search-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--gray-light);
    border-radius: 8px;
    padding: 10px 14px;
    border: 1.5px solid transparent;
    transition: border-color 0.2s;
}
.mobile-nav-search-wrap:focus-within {
    border-color: var(--accent);
}
.mobile-nav-search-wrap i {
    color: var(--gray);
    font-size: 13px;
    flex-shrink: 0;
}
.mobile-nav-search-input {
    border: none;
    background: none;
    font-size: 14px;
    color: var(--primary-darkest);
    outline: none;
    width: 100%;
}
.mobile-nav-search-input::placeholder { color: var(--gray); }

/* Backdrop behind mobile nav */
.nav-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(5, 13, 35, 0.45);
    backdrop-filter: blur(2px);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.nav-backdrop.active {
    display: block;
    opacity: 1;
}

/* ── 9. BACK TO TOP ──────────────────────────────────────── */
.back-to-top {
    position: fixed;
    bottom: 32px;
    right: 32px;
    width: 46px;
    height: 46px;
    background: var(--primary);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 15px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: opacity 0.3s ease, visibility 0.3s ease,
                transform 0.3s ease, background 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 4px 16px rgba(10, 46, 118, 0.28);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
}
.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.back-to-top:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(10, 46, 118, 0.35);
}

/* ── 10. ANIMATIONS ──────────────────────────────────────── */
@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInNav {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* ── 11. RESPONSIVE ──────────────────────────────────────── */
@media (max-width: 1200px) {
    .mega-dropdown { width: 680px; }
}

@media (max-width: 992px) {
    /* Header height */
    .header-content { height: 64px; }
    .main-header.scrolled .header-content { height: 58px; }

    /* Hide desktop-only items */
    .btn-give { display: none; }
    .search-toggle { display: none; }
    .search-container { display: none !important; }
    .logo-subtitle { display: none; }

    /* Mobile toggle visible */
    .mobile-toggle { display: flex; }

    /* Nav panel: slide in from right */
    .main-navigation {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        width: 300px;
        max-width: 85vw;
        background: #ffffff;
        box-shadow: -6px 0 32px rgba(10, 46, 118, 0.14);
        transform: translateX(100%);
        transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 1000;
        overflow-y: auto;
        overscroll-behavior: contain;
        align-items: stretch;
        justify-content: flex-start;
    }
    .main-navigation.active {
        transform: translateX(0);
    }

    /* Show mobile-only elements inside panel */
    .mobile-nav-header { display: flex; }
    .mobile-nav-search  { display: block; }
    .nav-item.nav-cta-mobile { display: block; }

    /* Nav list */
    .nav-menu {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 8px 12px 20px;
    }
    .nav-item { width: 100%; }

    .nav-link {
        justify-content: space-between;
        padding: 13px 14px;
        border-radius: 8px;
        font-size: 14px;
        width: 100%;
    }
    /* No underline animation on mobile */
    .nav-link::after { display: none; }
    .nav-item.active > .nav-link {
        background: var(--primary-lighter, #dbe4f5);
        color: var(--primary);
    }
    .nav-item.nav-cta-mobile > .nav-link {
        background: var(--accent);
        color: var(--primary);
        margin-top: 8px;
        justify-content: center;
        font-weight: 700;
    }

    /* Dropdowns collapse to accordion */
    .mega-dropdown,
    .dropdown-menu-simple {
        position: static;
        transform: none !important;
        width: 100%;
        max-height: 0;
        overflow: hidden;
        opacity: 1;
        visibility: visible;
        box-shadow: none;
        border: none;
        border-radius: 8px;
        background: rgba(10, 46, 118, 0.03);
        margin-top: 4px;
        padding: 0;
        transition: max-height 0.32s ease, padding 0.32s ease;
    }
    .mega-dropdown::before,
    .dropdown-menu-simple::before { display: none; }
    .dropdown-parent.active .mega-dropdown,
    .dropdown-parent.active .dropdown-menu-simple {
        max-height: 640px;
        padding: 8px;
    }
    .mega-dropdown-grid {
        grid-template-columns: 1fr;
        gap: 5px;
    }
    .mega-dropdown-header { display: none; }

    /* Dropdown parent rotates chevron on click */
    .dropdown-parent.active .dropdown-indicator {
        transform: rotate(180deg);
        opacity: 1;
    }

    /* Shrink portal button to icon only */
    .btn-portal span { display: none; }
    .btn-portal { padding: 9px 10px; }
}

@media (max-width: 768px) {
    .header-wrapper { padding: 0 16px; }
    .logo-title { font-size: 13.5px; }
    .logo-icon { width: 42px; height: 42px; }
}

@media (max-width: 480px) {
    .header-content { height: 58px; }
    .main-header.scrolled .header-content { height: 54px; }
    .logo-icon { width: 38px; height: 38px; }
    .logo-title { font-size: 12.5px; }
    .back-to-top { width: 40px; height: 40px; bottom: 20px; right: 20px; }
    .notification-content { padding: 0 36px 0 16px; font-size: 12px; }
}
