/* ===== PROFESSIONAL PREMIUM HEADER ===== */

.header-stack {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1000;
    background: #fff;
    transition: box-shadow 0.35s ease, background 0.35s ease;
}

/* Homepage — glass header over hero */
body.page-home .header-stack:not(.is-solid) {
    background: transparent;
    box-shadow: none;
}
body.page-home .header-stack:not(.is-solid) .top-bar {
    background: linear-gradient(105deg, rgba(3, 10, 20, 0.92) 0%, rgba(12, 30, 58, 0.88) 100%);
}
body.page-home .header-stack:not(.is-solid) .site-header {
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(18px) saturate(180%);
    -webkit-backdrop-filter: blur(18px) saturate(180%);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.5);
}
body.page-home .header-stack:not(.is-solid) .header-nav-row {
    background: rgba(253, 249, 243, 0.82);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top-color: rgba(12, 30, 58, 0.06);
}
body.page-home .header-stack.is-solid {
    background: #fff;
    box-shadow: 0 4px 28px rgba(12, 30, 58, 0.1);
}

/* —— Top Bar —— */
.top-bar {
    background: linear-gradient(105deg, #030A14 0%, var(--primary-dark) 38%, var(--primary-mid) 72%, #1E5080 100%);
    color: #fff;
    font-size: 0.8rem;
    position: relative;
    height: 52px;
    overflow: hidden;
    flex-shrink: 0;
}
/* Disabled: scroll-hide caused header jump / fluctuation */
.top-bar.is-hidden {
    display: none;
}
.top-bar::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 120% at 0% 50%, rgba(245, 217, 137, 0.1) 0%, transparent 55%),
        radial-gradient(ellipse 60% 100% at 100% 0%, rgba(56, 189, 248, 0.1) 0%, transparent 50%);
    pointer-events: none;
}
.top-bar::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.12), transparent);
}
.top-bar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    height: 100%;
    min-height: 0;
    padding: 0;
    position: relative;
    z-index: 1;
}
.top-bar-left, .top-bar-right, .top-bar-center {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: nowrap;
}
.top-office-link,
.top-quick-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: rgba(255,255,255,0.92);
    font-size: 0.76rem;
    white-space: nowrap;
    transition: 0.25s;
}
.top-office-link:hover,
.top-quick-link:hover { color: var(--accent-light); }
.top-office-link i,
.top-quick-link i {
    color: var(--accent-light);
    font-size: 0.72rem;
    flex-shrink: 0;
}
.top-office-link strong {
    color: #fff;
    font-weight: 700;
    margin-right: 4px;
}
.top-quick-link span { max-width: 200px; overflow: hidden; text-overflow: ellipsis; }
.top-badge {
    display: inline-flex; align-items: center; gap: 6px;
    background: rgba(255,111,0,0.12);
    border: 1px solid rgba(255,111,0,0.28);
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.3px;
    white-space: nowrap;
}
.top-badge-study {
    background: rgba(217,164,65,0.15);
    border-color: rgba(217,164,65,0.45);
    color: #fff;
    font-weight: 700;
}
.top-badge i { color: var(--accent-light); font-size: 0.68rem; }

/* —— Main Header — two rows —— */
.site-header {
    background: #fff;
    box-shadow: 0 1px 0 rgba(13,22,66,0.06);
    position: relative;
}
.header-accent-bar {
    height: 3px;
    flex-shrink: 0;
    background: linear-gradient(90deg, var(--primary-dark) 0%, var(--primary-mid) 40%, var(--accent) 70%, var(--accent-light) 100%);
}
.site-header.scrolled {
    box-shadow: 0 4px 24px rgba(13, 22, 66, 0.1);
}
/* Fixed heights — no shrink on scroll (prevents fluctuation) */
.header-brand-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 0;
    height: 68px;
    min-height: 68px;
    max-height: 68px;
}
.header-nav-row {
    border-top: 1px solid #e8ecf4;
    background: linear-gradient(180deg, var(--cream) 0%, #fafbfd 100%);
    height: 48px;
    min-height: 48px;
    max-height: 48px;
    overflow: visible;
}
.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}
.header-phone-compact {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 10px;
    background: #fff;
    border: 1px solid var(--border);
    color: var(--primary-dark);
    font-size: 0.82rem;
    font-weight: 600;
    transition: 0.25s;
}
.header-phone-compact i { color: var(--accent); }
.header-phone-compact:hover {
    border-color: var(--primary-light);
    color: var(--primary);
    box-shadow: 0 4px 14px rgba(57,73,171,0.1);
}

/* Legacy */
.header-main,
.header-row-top,
.header-row-nav { display: contents; }

/* —— Logo (brand image) —— */
.logo-brand-img {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    flex-shrink: 0;
    text-decoration: none;
    color: inherit;
}
.logo-brand-img:hover { opacity: 0.92; }
.logo-img {
    width: 64px;
    height: 64px;
    object-fit: contain;
    flex-shrink: 0;
    filter: drop-shadow(0 2px 8px rgba(36, 61, 74, 0.15));
    transition: transform 0.3s;
}
.logo-brand-img:hover .logo-img { transform: scale(1.03); }
.logo-wordmark { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.logo-brand-name {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--primary-dark);
    letter-spacing: -0.02em;
}
.logo-tagline {
    display: block;
    font-size: 0.68rem;
    font-weight: 600;
    color: var(--accent);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-top: 2px;
}
.container-header { max-width: 1280px; padding-left: 20px; padding-right: 20px; }

/* Legacy icon logo — unused */
.logo-pro { gap: 12px; flex-shrink: 0; }
.logo-pro .logo-icon {
    width: 48px; height: 48px;
    background: linear-gradient(145deg, var(--primary-mid) 0%, var(--primary-light) 100%);
    border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 1.25rem;
    box-shadow: 0 6px 20px rgba(57, 73, 171, 0.35), inset 0 1px 0 rgba(255,255,255,0.2);
    position: relative;
    transition: 0.35s;
}
.logo-pro .logo-icon::after {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 17px;
    border: 2px solid rgba(57,73,171,0.15);
    transition: 0.35s;
}
.logo-pro:hover .logo-icon {
    transform: rotate(-4deg) scale(1.04);
    box-shadow: 0 8px 28px rgba(57, 73, 171, 0.45);
}
.logo-pro:hover .logo-icon::after { border-color: rgba(255,111,0,0.35); }
.logo-brand { display: flex; flex-direction: column; line-height: 1.15; }
.logo-brand strong {
    font-size: 1.28rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-mid) 60%, var(--primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.logo-brand small {
    font-size: 0.62rem;
    font-weight: 700;
    color: var(--accent);
    letter-spacing: 3.5px;
    text-transform: uppercase;
    margin-top: 1px;
}
.logo-tagline {
    display: block;
    font-size: 0.68rem;
    font-weight: 500;
    color: var(--text-light);
    letter-spacing: 0.2px;
    margin-top: 3px;
    padding-left: 1px;
}
/* Legacy compact — disabled to prevent header jump */
.header-stack.is-compact .logo-pro .logo-icon,
.header-stack.is-compact .header-nav-row,
.header-stack.is-compact .logo-brand strong,
.header-stack.is-compact .nav-strip .nav-link { /* no-op */ }


/* —— Header Phone CTA —— */
.header-phone-pro {
    display: flex; align-items: center; gap: 12px;
    padding: 8px 16px 8px 8px;
    border-radius: 14px;
    background: linear-gradient(135deg, #f8f9fd 0%, #fff 100%);
    border: 1px solid var(--border);
    color: var(--text);
    transition: 0.3s;
    box-shadow: 0 2px 12px rgba(13,22,66,0.04);
}
.header-phone-pro:hover {
    border-color: var(--primary-light);
    color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(57,73,171,0.12);
}
.hp-icon {
    width: 38px; height: 38px;
    background: linear-gradient(135deg, var(--primary-mid), var(--primary-light));
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 0.85rem;
    flex-shrink: 0;
}
.header-cta-pro { padding: 8px 14px !important; font-size: 0.8rem !important; }
.header-cta-pro span { white-space: nowrap; }
.hp-text { display: flex; flex-direction: column; line-height: 1.25; text-align: left; }
.hp-text small {
    font-size: 0.62rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    font-weight: 600;
}
.hp-text strong { font-size: 0.88rem; color: var(--primary-dark); font-weight: 700; }

/* —— Header CTA —— */
.header-cta-pro {
    padding: 10px 20px !important;
    font-weight: 700 !important;
    letter-spacing: 0.2px;
    box-shadow: 0 4px 20px rgba(255,111,0,0.35), inset 0 1px 0 rgba(255,255,255,0.25) !important;
}
.header-cta-pro:hover { transform: translateY(-2px) !important; }

/* —— Navigation strip —— */
.main-nav {
    width: 100%;
    display: flex;
    justify-content: center;
}
.nav-list.nav-strip,
.nav-strip {
    display: flex;
    list-style: none;
    align-items: stretch;
    justify-content: center;
    flex-wrap: nowrap;
    gap: 0;
    margin: 0;
    padding: 0;
    width: 100%;
    max-width: 100%;
    background: transparent;
    border: none;
}
.nav-strip .nav-item { display: flex; }
.nav-strip .nav-link {
    color: #334155;
    font-weight: 600;
    font-size: 0.84rem;
    padding: 14px 20px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border-radius: 0;
    white-space: nowrap;
    transition: color 0.2s, background 0.2s, border-color 0.2s;
    border-bottom: 3px solid transparent;
    letter-spacing: 0.02em;
}
.nav-strip .nav-link:hover {
    color: var(--primary-dark);
    background: rgba(255,255,255,0.6);
    border-bottom-color: rgba(57,73,171,0.25);
}
.nav-strip .nav-link.active {
    color: var(--primary-dark);
    background: #fff;
    border-bottom-color: var(--accent);
}
.nav-strip .nav-icon { display: none; }
.nav-strip .nav-arrow { font-size: 0.45rem; opacity: 0.45; margin-left: 2px; }
.has-dropdown:hover .nav-arrow,
.has-mega:hover .nav-arrow { transform: rotate(180deg); opacity: 0.9; color: var(--accent); }

/* Fallback nav list (mobile) */
.nav-list:not(.nav-strip) { flex-direction: column; }

/* Standard Dropdown — Premium */
.has-dropdown { position: relative; }
.dropdown,
.dropdown-premium {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    min-width: 280px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 24px 64px rgba(13,22,66,0.16), 0 0 0 1px rgba(13,22,66,0.04);
    border: 1px solid var(--border);
    opacity: 0;
    visibility: hidden;
    transform: translateY(14px);
    transition: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    list-style: none;
    padding: 10px;
    z-index: 200;
    max-height: 70vh;
    overflow-y: auto;
}
.has-dropdown:hover > .dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.dropdown > li > a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 11px 14px;
    font-size: 0.84rem;
    font-weight: 500;
    color: var(--text);
    border-radius: 10px;
    transition: 0.2s;
}
.dropdown > li > a i:first-child {
    width: 28px; height: 28px;
    flex-shrink: 0;
    background: rgba(57,73,171,0.08);
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    color: var(--primary);
    font-size: 0.75rem;
}
.dropdown-flag {
    flex-shrink: 0;
    border-radius: 4px;
    overflow: hidden;
    height: 21px;
    width: 28px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}
.dropdown-flag img { width: 100%; height: 100%; object-fit: contain; object-position: center; display: block; background: #fff; }
.dropdown > li > a:hover, .dropdown > li > a.active {
    background: linear-gradient(135deg, rgba(57,73,171,0.08), rgba(255,111,0,0.04));
    color: var(--primary-dark);
    padding-left: 14px;
}
.dropdown-sub {
    list-style: none;
    background: var(--bg-light);
    padding: 4px 0;
}
.dropdown-sub a {
    display: block;
    padding: 8px 18px 8px 28px;
    font-size: 0.8rem;
    color: var(--text-light);
}
.dropdown-sub a:hover { color: var(--accent); }

/* Mega Menu — Premium */
.has-mega { position: static; }
.mega-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 200;
    pointer-events: none;
}
.has-mega:hover .mega-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}
.mega-menu-premium {
    background: linear-gradient(180deg, var(--cream) 0%, #fff 100%);
    border-top: 3px solid var(--accent);
    box-shadow: 0 30px 80px rgba(36, 61, 74, 0.14);
}
.mega-menu-inner {
    padding: 0;
    position: relative;
}
.mega-menu-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-mid) 100%);
    color: #fff;
}
.mega-head-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255,111,0,0.3);
    border: 1px solid rgba(255,111,0,0.5);
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}
.mega-menu-head h3 { font-size: 1.35rem; margin: 0 0 6px; font-weight: 700; }
.mega-menu-head p { font-size: 0.92rem; opacity: 1; margin: 0; color: rgba(255,255,255,0.95); }
.mega-head-btn { background: var(--accent) !important; color: #fff !important; border: none !important; white-space: nowrap; }

.mega-menu-body {
    display: grid;
    grid-template-columns: 1fr 260px;
    gap: 24px;
    padding: 24px 28px 28px;
    align-items: start;
}

/* Tabbed visa guide mega menu */
.mega-main-panel {
    background: #fff;
    border-radius: 16px;
    border: 1px solid var(--border);
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(36, 61, 74, 0.06);
}
.mega-tabs-nav {
    display: flex;
    gap: 0;
    border-bottom: 1px solid var(--border);
    background: var(--cream);
}
.mega-tab-btn {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    padding: 14px 18px;
    border: none;
    border-bottom: 3px solid transparent;
    background: transparent;
    cursor: pointer;
    font-family: inherit;
    text-align: left;
    transition: 0.2s;
    color: var(--text-light);
}
.mega-tab-btn i { color: var(--primary); font-size: 0.9rem; margin-bottom: 2px; }
.mega-tab-btn span { font-size: 0.82rem; font-weight: 700; color: var(--primary-dark); line-height: 1.3; }
.mega-tab-btn em { font-size: 0.68rem; font-style: normal; color: var(--accent); font-weight: 600; }
.mega-tab-btn:hover { background: rgba(255,255,255,0.7); }
.mega-tab-btn.active {
    background: #fff;
    border-bottom-color: var(--accent);
}
.mega-tab-btn.active span { color: var(--primary-mid); }
.mega-tabs-panels { padding: 20px; }
.mega-tab-panel { display: none; }
.mega-tab-panel.active { display: block; }
.mega-country-grid-clean {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}
.mega-country-pill {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 10px;
    background: var(--bg-light);
    border: 1px solid transparent;
    color: var(--primary-dark);
    font-size: 0.84rem;
    font-weight: 600;
    transition: 0.2s;
}
.mega-country-pill:hover {
    background: #fff;
    border-color: var(--primary-light);
    box-shadow: 0 4px 14px rgba(61, 101, 120, 0.1);
    color: var(--primary-mid);
}
.mcp-flag {
    width: 28px; height: 21px;
    border-radius: 4px;
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: 0 1px 4px rgba(0,0,0,0.1);
}
.mcp-flag img { width: 100%; height: 100%; object-fit: contain; object-position: center; display: block; background: #fff; }
.mcp-name { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* 3-column visa guide layout (legacy) */
.mega-columns-premium {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    flex: 1;
}
.mega-column-premium {
    background: #fff;
    border-radius: 16px;
    border: 1px solid var(--border);
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(13,22,66,0.06);
    transition: 0.3s;
}
.mega-column-premium:hover {
    box-shadow: 0 8px 32px rgba(13,22,66,0.1);
    transform: translateY(-2px);
}
.mega-col-header {
    padding: 16px 18px;
    background: linear-gradient(135deg, rgba(57,73,171,0.08), rgba(255,111,0,0.05));
    border-bottom: 1px solid var(--border);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}
.mega-col-icon {
    width: 40px; height: 40px;
    background: linear-gradient(135deg, var(--primary-mid), var(--primary-light));
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 1rem;
    flex-shrink: 0;
}
.mega-col-header h4 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin: 0;
    flex: 1;
    line-height: 1.3;
}
.mega-col-count {
    width: 100%;
    font-size: 0.75rem;
    color: var(--accent);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding-left: 50px;
    margin-top: -2px;
}
.mega-col-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    padding: 14px;
    max-height: none;
    overflow: visible;
}
.mega-country-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 10px;
    color: var(--primary-dark);
    font-size: 0.88rem;
    font-weight: 600;
    transition: 0.2s;
    background: var(--bg-light);
    border: 1px solid transparent;
}
.mcl-flag {
    width: 32px; height: 24px;
    border-radius: 4px;
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: 0 1px 4px rgba(0,0,0,0.12);
}
.mcl-flag img { width: 100%; height: 100%; object-fit: contain; object-position: center; display: block; background: #fff; }
.mega-title-icon { margin-right: 8px; color: var(--accent-light); font-size: 0.9em; }
.mega-col-count i { margin-right: 4px; }
.mega-country-link:hover {
    background: #fff;
    border-color: var(--primary-light);
    color: var(--primary);
    box-shadow: 0 4px 14px rgba(57,73,171,0.1);
    padding-left: 12px;
}
.mcl-text { flex: 1; }
.mcl-arrow { font-size: 0.65rem; opacity: 0; transform: translateX(-4px); transition: 0.2s; color: var(--accent); }
.mega-country-link:hover .mcl-arrow { opacity: 1; transform: translateX(0); }

/* Study Abroad country cards grid */
.mega-grid-premium {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    flex: 1;
}
.mega-country-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 20px 12px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 14px;
    transition: 0.25s;
    color: var(--text);
}
.mega-country-card:hover {
    border-color: var(--primary-light);
    box-shadow: 0 8px 24px rgba(57,73,171,0.12);
    transform: translateY(-4px);
    color: var(--primary-dark);
}
.mcc-flag {
    width: 56px; height: 42px;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 12px;
    box-shadow: 0 4px 14px rgba(0,0,0,0.12);
    transition: 0.25s;
}
.mcc-flag img { width: 100%; height: 100%; object-fit: contain; object-position: center; display: block; background: #fff; }
.mega-country-card:hover .mcc-flag { transform: scale(1.08); }
.mcc-name { font-weight: 700; font-size: 0.92rem; margin-bottom: 4px; color: var(--primary-dark); }
.mcc-tag {
    font-size: 0.65rem;
    text-transform: uppercase;
    color: var(--accent);
    font-weight: 700;
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.mcc-tag i { font-size: 0.6rem; }

/* Mega sidebar */
.mega-sidebar { padding-left: 0; }
.mega-sidebar-card {
    background: linear-gradient(160deg, var(--primary-dark) 0%, var(--primary-mid) 100%);
    color: #fff;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 12px 40px rgba(13,22,66,0.2);
}
.msc-header {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 8px;
    display: flex; align-items: center; gap: 8px;
}
.msc-header i { color: var(--accent-light); }
.mega-sidebar-card > p { font-size: 0.9rem; opacity: 1; margin-bottom: 16px; line-height: 1.6; color: rgba(255,255,255,0.95); }
.mega-office span { color: #fff; font-size: 0.85rem; display: block; }
.mega-contact-row { font-size: 0.88rem; font-weight: 500; }
.mega-contact-row {
    display: flex; align-items: center; gap: 10px;
    padding: 10px 12px;
    background: rgba(255,255,255,0.08);
    border-radius: 10px;
    color: #fff;
    font-size: 0.82rem;
    margin-bottom: 8px;
    transition: 0.2s;
    word-break: break-all;
}
.mega-contact-row:hover { background: rgba(255,255,255,0.15); color: #fff; }
.mega-contact-row i { color: var(--accent-light); width: 16px; flex-shrink: 0; }
.mega-offices { margin: 14px 0; }
.mega-office {
    padding: 10px 0;
    border-top: 1px solid rgba(255,255,255,0.12);
    font-size: 0.8rem;
    line-height: 1.5;
}
.mega-office strong {
    display: flex; align-items: center; gap: 6px;
    color: var(--accent-light);
    font-size: 0.78rem;
    margin-bottom: 4px;
}
.mega-sidebar-card .btn-block { margin-top: 12px; background: var(--accent); border: none; width: 100%; }

/* Top bar offices */
.top-offices { display: flex; flex-wrap: wrap; gap: 16px; }
.top-office span { font-size: 0.78rem; }
.top-office strong { color: var(--accent-light); margin-right: 4px; }

/* Legacy — keep for compatibility */
.mega-columns { display: none; }
.mega-grid { display: none; }
.mega-cta { display: none; }

.search-toggle-pro {
    width: 44px; height: 44px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: linear-gradient(135deg, #f8f9fd, #fff);
    color: var(--primary-dark);
    cursor: pointer;
    transition: 0.3s;
    font-size: 0.95rem;
    box-shadow: 0 2px 8px rgba(13,22,66,0.04);
}
.search-toggle-pro:hover {
    background: linear-gradient(135deg, var(--primary-mid), var(--primary));
    color: #fff;
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(57,73,171,0.3);
}

.mobile-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 44px; height: 44px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: linear-gradient(135deg, #fff, #f8f9fd);
    cursor: pointer;
    padding: 10px;
    box-shadow: 0 2px 8px rgba(13,22,66,0.06);
    transition: 0.25s;
}
.mobile-toggle:hover { border-color: var(--primary-light); }
.mobile-toggle span {
    display: block; height: 2px;
    background: var(--primary-dark);
    border-radius: 2px;
    transition: 0.3s;
}
.mobile-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.mobile-toggle.active span:nth-child(2) { opacity: 0; }
.mobile-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

.mobile-nav-header, .mobile-nav-footer, .nav-overlay { display: none; }

/* Fullscreen Search Modal */
.search-modal {
    position: fixed; inset: 0;
    z-index: 10000;
    display: flex; align-items: flex-start; justify-content: center;
    padding-top: 12vh;
    opacity: 0; visibility: hidden;
    transition: 0.35s;
}
.search-modal.active { opacity: 1; visibility: visible; }
.search-modal-backdrop {
    position: absolute; inset: 0;
    background: rgba(13, 22, 66, 0.85);
    backdrop-filter: blur(8px);
}
.search-modal-content {
    position: relative;
    background: #fff;
    border-radius: 20px;
    padding: 40px;
    width: 90%;
    max-width: 680px;
    box-shadow: 0 40px 100px rgba(0,0,0,0.3);
    transform: translateY(-30px);
    transition: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.search-modal.active .search-modal-content { transform: translateY(0); }
.search-modal-content h2 { font-size: 1.6rem; color: var(--primary-dark); margin-bottom: 6px; }
.search-modal-content > p { color: var(--text-light); margin-bottom: 24px; }
.search-modal-close {
    position: absolute; top: 16px; right: 16px;
    width: 40px; height: 40px;
    border: none; background: var(--bg-light);
    border-radius: 50%; cursor: pointer;
    font-size: 1rem; transition: 0.2s;
}
.search-modal-close:hover { background: #ffebee; color: #c62828; }
.search-form-lg { display: flex; gap: 12px; margin-bottom: 16px; }
.search-input-wrap {
    flex: 1; position: relative;
    display: flex; align-items: center;
}
.search-input-wrap i {
    position: absolute; left: 18px;
    color: var(--text-light);
}
.search-input-wrap input {
    width: 100%;
    padding: 16px 16px 16px 48px;
    border: 2px solid var(--border);
    border-radius: 14px;
    font-size: 1rem;
    font-family: inherit;
    transition: 0.25s;
}
.search-input-wrap input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(57,73,171,0.1);
}
.live-search-results { max-height: 240px; overflow-y: auto; }
.live-search-item {
    display: block;
    padding: 12px 16px;
    border-radius: 10px;
    margin-bottom: 4px;
    transition: 0.2s;
}
.live-search-item:hover { background: var(--bg-light); }
.live-search-item strong { display: block; color: var(--primary-dark); font-size: 0.9rem; }
.live-search-item span { font-size: 0.8rem; color: var(--text-light); }
.search-tags { margin-top: 20px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.search-tags > span {
    font-size: 0.85rem;
    color: var(--text-light);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.search-tags > span i { color: var(--accent); }
.search-tag-item,
.search-tags a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    background: var(--bg-light);
    border: 1px solid var(--border);
    border-radius: 30px;
    font-size: 0.84rem;
    font-weight: 500;
    color: var(--text);
    transition: 0.25s;
}
.search-tag-flag { border-radius: 3px; box-shadow: 0 1px 3px rgba(0,0,0,0.1); }
.search-tag-item:hover,
.search-tags a:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(57,73,171,0.25);
}

/* Sticky Quick Bar (mobile) */
.sticky-quick-bar {
    display: none;
    position: fixed;
    bottom: 0; left: 0; right: 0;
    background: #fff;
    box-shadow: 0 -4px 24px rgba(0,0,0,0.1);
    z-index: 998;
    padding: 8px;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    border-top: 1px solid var(--border);
}
.sticky-quick-bar a {
    display: flex; flex-direction: column; align-items: center; gap: 4px;
    padding: 8px 4px;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text);
    border-radius: 10px;
    transition: 0.2s;
}
.sticky-quick-bar a i { font-size: 1.1rem; color: var(--primary); }
.sticky-quick-bar a:nth-child(3) i { color: #25d366; }
.sticky-quick-bar a:hover { background: var(--bg-light); color: var(--primary); }

/* Page layout enhancements */
.page-layout { display: grid; grid-template-columns: 1fr 320px; gap: 40px; align-items: start; }
.page-sidebar { position: sticky; top: 100px; }
.sidebar-card {
    background: #fff;
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    margin-bottom: 20px;
}
.sidebar-card h4 {
    font-size: 0.95rem;
    color: var(--primary-dark);
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--accent);
}
.sidebar-links { list-style: none; }
.sidebar-links li a {
    display: flex; align-items: center; gap: 8px;
    padding: 9px 0;
    font-size: 0.88rem;
    color: var(--text-light);
    border-bottom: 1px solid var(--border);
    transition: 0.2s;
}
.sidebar-links li:last-child a { border-bottom: none; }
.sidebar-links li a:hover { color: var(--primary); padding-left: 6px; }
.sidebar-cta {
    background: linear-gradient(135deg, var(--primary-mid), var(--primary));
    color: #fff;
    text-align: center;
}
.sidebar-cta h4 { color: #fff; border-color: rgba(255,255,255,0.3); }
.sidebar-cta p { font-size: 0.88rem; opacity: 0.9; margin-bottom: 16px; }
.sidebar-cta .btn { background: #fff; color: var(--primary); width: 100%; }

.contact-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 40px; }
.contact-cards-4 { grid-template-columns: repeat(4, 1fr); }
.office-locations { display: flex; flex-direction: column; gap: 16px; margin-top: 20px; }
.office-location-card {
    background: var(--bg-light);
    padding: 20px;
    border-radius: var(--radius);
    border-left: 4px solid var(--accent);
}
.office-location-card h4 { color: var(--primary-dark); margin-bottom: 8px; font-size: 0.95rem; }
.office-location-card h4 i { color: var(--accent); margin-right: 8px; }
.office-location-card p { color: var(--text-light); font-size: 0.9rem; margin: 0; }
.contact-card-box {
    background: #fff;
    padding: 28px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    text-align: center;
    border: 1px solid var(--border);
    transition: 0.3s;
}
.contact-card-box:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); }
.contact-card-box .ccb-icon {
    width: 60px; height: 60px;
    background: linear-gradient(135deg, var(--primary-mid), var(--primary-light));
    border-radius: 16px;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 16px;
    color: #fff; font-size: 1.4rem;
}
.contact-card-box h4 { margin-bottom: 8px; color: var(--primary-dark); }
.contact-card-box p, .contact-card-box a { font-size: 0.9rem; color: var(--text-light); }

.faq-list { margin-top: 20px; }
.faq-item { border: 1px solid var(--border); border-radius: 12px; margin-bottom: 10px; overflow: hidden; }
.faq-question {
    width: 100%; text-align: left;
    padding: 16px 20px;
    background: #fff;
    border: none;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--primary-dark);
    cursor: pointer;
    display: flex; justify-content: space-between; align-items: center;
    transition: 0.2s;
}
.faq-question:hover { background: var(--bg-light); }
.faq-question i { transition: 0.3s; color: var(--accent); }
.faq-item.open .faq-question i { transform: rotate(180deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: 0.35s ease; }
.faq-item.open .faq-answer { max-height: 200px; }
.faq-answer p { padding: 0 20px 16px; font-size: 0.9rem; color: var(--text-light); line-height: 1.7; }

.share-buttons { display: flex; gap: 10px; margin-top: 24px; }
.share-btn {
    width: 40px; height: 40px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 0.9rem;
    transition: 0.25s;
}
.share-btn:hover { transform: translateY(-3px); color: #fff; }
.share-btn.fb { background: #1877f2; }
.share-btn.wa { background: #25d366; }
.share-btn.tw { background: #1da1f2; }
.share-btn.li { background: #0a66c2; }

.form-floating label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-light);
    margin-bottom: 6px;
}
.form-group.focused input,
.form-group.focused textarea { border-color: var(--primary); }

/* Desktop nav always visible above tablet */
@media (min-width: 1025px) {
    .main-nav { display: flex !important; }
    .mobile-toggle { display: none !important; }
    .header-nav-row { display: block; }
}

/* Responsive */
@media (max-width: 1280px) {
    .logo-tagline { display: none; }
    .logo-brand-name { font-size: 1rem; }
    .logo-img { width: 56px; height: 56px; }
    .nav-strip .nav-link { padding: 12px 14px; font-size: 0.8rem; }
    .header-phone-compact span { display: none; }
    .header-phone-compact { padding: 8px 11px; }
}

@media (max-width: 1200px) {
    .mega-country-grid-clean { grid-template-columns: repeat(3, 1fr); }
    .mega-menu-body { grid-template-columns: 1fr; }
    .mega-sidebar { padding-top: 0; }
    .mega-columns-premium { grid-template-columns: 1fr 1fr; }
    .mega-menu-body { grid-template-columns: 1fr; }
    .mega-sidebar { padding-left: 0; padding-top: 16px; }
    .mega-grid-premium { grid-template-columns: repeat(3, 1fr); }
    .nav-strip .nav-link { padding: 12px 11px; font-size: 0.78rem; }
    .logo-brand-name { font-size: 0.95rem; }
    .logo-img { width: 50px; height: 50px; }
    .logo-wordmark { display: none; }
    .header-cta-pro span { display: none; }
    .header-cta-pro { padding: 10px 14px !important; }
    .mega-grid { grid-template-columns: repeat(3, 1fr); }
    .contact-cards-4 { grid-template-columns: repeat(2, 1fr); }
    .mega-col-links { grid-template-columns: 1fr; }
}

@media (max-width: 1024px) {
    .mega-menu { display: none; }
    .page-layout { grid-template-columns: 1fr; }
    .page-sidebar { position: static; }
    .contact-cards { grid-template-columns: 1fr; }
    .contact-cards-4 { grid-template-columns: repeat(2, 1fr); }
    .top-bar-hide-tablet { display: none !important; }
    .header-nav-row {
        border: none;
        background: transparent;
        height: 0;
        overflow: visible;
    }
    .main-nav { display: none; }
    .mobile-toggle { display: flex; }
    .header-brand-row { height: 64px; min-height: 64px; max-height: 64px; }
}

@media (max-width: 768px) {
    .top-bar-hide-mobile, .top-bar-hide-tablet { display: none !important; }
    .top-bar-center { display: none; }

    .main-nav {
        position: fixed;
        top: 0; right: -100%;
        width: min(340px, 90vw);
        height: 100vh;
        background: linear-gradient(180deg, #fff 0%, #f8f9fd 100%);
        flex-direction: column;
        justify-content: flex-start;
        z-index: 1002;
        transition: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
        box-shadow: -12px 0 48px rgba(0,0,0,0.18);
        overflow-y: auto;
    }
    .main-nav.active { right: 0; display: flex; }
    .nav-list,
    .nav-list.nav-strip {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        padding: 0 16px 16px;
        background: transparent;
        border: none;
        border-radius: 0;
        gap: 6px;
    }
    .nav-item { width: 100%; }
    .nav-link,
    .nav-strip .nav-link {
        padding: 14px 16px;
        font-size: 0.95rem;
        border-radius: 12px;
        background: #fff;
        border: 1px solid var(--border);
        border-bottom: 1px solid var(--border);
        box-shadow: none;
    }
    .nav-link::after { display: none; }
    .nav-link:hover,
    .nav-link.active,
    .nav-strip .nav-link:hover,
    .nav-strip .nav-link.active {
        background: linear-gradient(135deg, rgba(57,73,171,0.08), rgba(255,111,0,0.05));
        border-color: var(--primary-light);
        border-bottom-color: var(--primary-light);
    }
    .nav-link .nav-icon,
    .nav-strip .nav-icon { display: flex; width: 28px; justify-content: center; color: var(--primary); }

    .mobile-nav-header, .mobile-nav-footer, .nav-overlay { display: block; }
    .mobile-nav-header {
        display: flex; justify-content: space-between; align-items: center;
        padding: 20px 16px;
        border-bottom: 1px solid var(--border);
        width: 100%;
        background: linear-gradient(135deg, var(--primary-dark), var(--primary-mid));
        color: #fff;
    }
    .mobile-nav-header .logo-text strong { color: #fff; -webkit-text-fill-color: #fff; }
    .mobile-nav-header .logo-text { color: rgba(255,255,255,0.9); font-size: 0.95rem; }
    .mobile-nav-close {
        width: 36px; height: 36px;
        border: none; background: rgba(255,255,255,0.15);
        border-radius: 50%; cursor: pointer;
        color: #fff;
        transition: 0.2s;
    }
    .mobile-nav-close:hover { background: rgba(255,255,255,0.25); }
    .mobile-nav-footer { padding: 16px; display: flex; flex-direction: column; gap: 10px; border-top: 1px solid var(--border); margin-top: auto; width: 100%; }
    .btn-block { width: 100%; display: flex; justify-content: center; }

    .nav-overlay {
        position: fixed; inset: 0;
        background: rgba(0,0,0,0.5);
        z-index: 1001;
        opacity: 0; visibility: hidden;
        transition: 0.3s;
    }
    .nav-overlay.active { opacity: 1; visibility: visible; }

    .dropdown, .mega-menu {
        position: static; opacity: 1; visibility: visible;
        transform: none; box-shadow: none; border: none;
        display: none; padding: 0 0 0 16px;
        pointer-events: auto;
    }
    .has-dropdown.open > .dropdown,
    .has-mega.open > .mega-menu { display: block; }
    .mega-country-grid-clean { grid-template-columns: repeat(2, 1fr); }
    .mega-tabs-nav { flex-direction: column; }
    .mega-tab-btn { flex-direction: row; align-items: center; gap: 10px; }
    .mega-tab-btn em { margin-left: auto; }
    .mega-menu-head { flex-direction: column; gap: 12px; align-items: flex-start; }

    .sticky-quick-bar { display: grid; }
    body { padding-bottom: 70px; }
    .whatsapp-float { bottom: 80px; }
    .contact-cards-4 { grid-template-columns: 1fr; }
}

/* —— Premium app mobile drawer (opened from app header) —— */
@media (max-width: 991px) {
    body.app-ui .main-nav {
        z-index: 1105;
        width: min(360px, 92vw);
        border-radius: 28px 0 0 28px;
        box-shadow: -20px 0 60px rgba(6, 27, 51, 0.3);
        border-left: 1px solid rgba(245, 197, 66, 0.2);
    }
    body.app-ui .nav-overlay {
        z-index: 1100;
        background: rgba(6, 27, 51, 0.58);
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
    }
    body.app-ui .mobile-nav-header {
        background: linear-gradient(135deg, #061B33 0%, #0A2A4A 55%, #123B63 100%);
        padding: calc(env(safe-area-inset-top, 0px) + 18px) 16px 18px;
        border-bottom-color: rgba(245, 197, 66, 0.18);
    }
    body.app-ui .mobile-nav-header .logo-text strong {
        font-family: var(--font-display);
        letter-spacing: -0.02em;
    }
    body.app-ui .nav-link,
    body.app-ui .nav-strip .nav-link {
        border-radius: 16px;
        font-weight: 600;
        box-shadow: 0 4px 14px rgba(6, 27, 51, 0.04);
    }
    body.app-ui .nav-link:hover,
    body.app-ui .nav-link.active,
    body.app-ui .nav-strip .nav-link:hover,
    body.app-ui .nav-strip .nav-link.active {
        background: linear-gradient(135deg, rgba(245, 197, 66, 0.18), rgba(245, 197, 66, 0.06));
        border-color: rgba(245, 197, 66, 0.38);
    }
    body.app-ui .nav-link .nav-icon,
    body.app-ui .nav-strip .nav-icon {
        color: #F5C542;
    }
    body.app-ui .mobile-nav-footer .btn-primary {
        background: linear-gradient(180deg, #FFE08A 0%, #F5C542 48%, #E0AD2A 100%);
        color: #061B33;
        border: none;
        font-weight: 700;
    }
}
