/* ============================================================================
   HỌC VĂN CÙNG RICKY — EDITORIAL ACADEMIC DESIGN SYSTEM v1.0
   Đồng bộ 100% nhận diện với Trợ lý AI (/hoi-dap-ai/) & Đếm chữ (/counter/)
   ============================================================================ */

:root {
    --brand-deep: #0e2e30;
    --brand-primary: #2c5f5d;
    --brand-mid: #3f7b77;
    --brand-soft: #ebf5f4;
    --brand-gold: #d99b26;
    --brand-gold-light: #f5c86c;
    --brand-accent: #e06d25;

    --bg-paper: #faf9f6;
    --bg-card: #ffffff;
    --bg-muted: #f2f6f5;

    --ink-primary: #16292b;
    --ink-secondary: #4a5e61;
    --ink-muted: #6e8184;

    --border-subtle: #e2eceb;
    --border-strong: #c9dbda;

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;

    --shadow-xs: 0 1px 3px rgba(14, 46, 48, 0.05);
    --shadow-sm: 0 4px 14px rgba(14, 46, 48, 0.06);
    --shadow-md: 0 10px 28px rgba(14, 46, 48, 0.09);
    --shadow-lg: 0 20px 44px rgba(14, 46, 48, 0.14);

    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
    --font-serif: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;

    --header-desktop-h: 102px;
    --header-mobile-h: 60px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    padding-top: var(--header-desktop-h);
    background-color: var(--bg-paper);
    color: var(--ink-primary);
    font-family: var(--font-sans);
    font-size: 15px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

body.nav-drawer-open {
    overflow: hidden;
}

a {
    color: var(--brand-primary);
    text-decoration: none;
    transition: color 0.18s ease, background-color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

a:hover {
    color: var(--brand-accent);
    text-decoration: none;
}

img {
    max-width: 100%;
    height: auto;
}

/* ============================================================================
   1. SITE HEADER — 2 TẦNG THANH THOÁT (PC) + STICKY COMPACT (MOBILE)
   ============================================================================ */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1030;
    background: #ffffff;
    transition: box-shadow 0.22s ease;
}

.site-header.is-scrolled {
    box-shadow: 0 8px 26px rgba(14, 46, 48, 0.12);
}

.header-top-band {
    background: linear-gradient(135deg, #0e2e30 0%, #1d4c4e 55%, #2c5f5d 100%);
    height: 58px;
    display: flex;
    align-items: center;
}

.header-top-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    width: 100%;
}

/* Brand Lockup: Học Văn Cùng Ricky · ThS. Kim Ngân */
.brand-lockup {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none !important;
    flex-shrink: 0;
}

.brand-emblem {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: rgba(245, 200, 108, 0.16);
    border: 1px solid rgba(245, 200, 108, 0.42);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--brand-gold-light);
    flex-shrink: 0;
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.brand-lockup:hover .brand-emblem {
    transform: translateY(-1px);
    background: rgba(245, 200, 108, 0.24);
}

.brand-text-group {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}

.brand-title {
    font-family: var(--font-sans);
    font-size: 18px;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.015em;
    white-space: nowrap;
}

.brand-subtitle {
    font-family: var(--font-sans);
    font-size: 11px;
    font-weight: 600;
    color: var(--brand-gold-light);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-top: 2px;
    white-space: nowrap;
}

/* Header Right Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.header-ai-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 13px;
    border-radius: 999px;
    background: linear-gradient(135deg, #f5c86c 0%, #e5a93b 100%);
    color: #0e2e30 !important;
    font-size: 12.5px;
    font-weight: 700;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(245, 200, 108, 0.28);
}

.header-ai-pill:hover {
    transform: translateY(-1px);
    background: linear-gradient(135deg, #fbd788 0%, #efb447 100%);
    color: #0e2e30 !important;
}

.header-icon-btn {
    position: relative;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
    font-size: 15px;
    transition: background-color 0.18s ease, border-color 0.18s ease;
}

.header-icon-btn:hover {
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(245, 200, 108, 0.5);
}

.notification-count {
    position: absolute;
    top: -4px;
    right: -4px;
    background: #ef4444;
    color: #ffffff;
    font-size: 10px;
    font-weight: 700;
    border-radius: 999px;
    min-width: 17px;
    height: 17px;
    padding: 0 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #0e2e30;
}

.header-login-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    border-radius: 999px;
    background: #ffffff;
    color: var(--brand-deep) !important;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
}

.header-login-btn:hover {
    background: #fef6e4;
    color: var(--brand-deep) !important;
}

.header-avatar-link {
    display: inline-flex;
    align-items: center;
    position: relative;
}

.header-avatar-img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(245, 200, 108, 0.8);
}

.header-avatar-dot {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #22c55e;
    border: 2px solid #0e2e30;
}

.menu-toggle,
.mobile-search-toggle,
.mobile-nav-header,
.mobile-nav-backdrop {
    display: none;
}

/* Row 2: Crisp White Navigation Strip (Desktop) */
.header-nav-band {
    background: #ffffff;
    border-bottom: 1px solid var(--border-subtle);
    height: 44px;
    display: flex;
    align-items: center;
}

.site-nav-wrap {
    width: 100%;
    display: flex;
    align-items: center;
}

.nav-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 4px;
    width: 100%;
}

.nav-menu > li {
    position: relative;
}

.nav-menu > li > a {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--ink-primary);
    white-space: nowrap;
}

.nav-menu > li > a:hover,
.nav-menu > li.active > a {
    background: var(--brand-soft);
    color: var(--brand-primary);
}

.nav-chevron {
    font-size: 10px;
    opacity: 0.7;
    transition: transform 0.2s ease;
}

.nav-item.dropdown:hover > a .nav-chevron,
.nav-item.dropdown.is-open > a .nav-chevron {
    transform: rotate(180deg);
}

/* Desktop Dropdown & Submenu */
.site-header .dropdown-menu {
    display: none;
    position: absolute;
    top: calc(100% + 2px);
    left: 0;
    min-width: 230px;
    padding: 8px;
    background: #ffffff;
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    z-index: 1100;
    margin: 0;
    list-style: none;
}

.site-header .nav-item.dropdown:hover > .dropdown-menu,
.site-header .nav-item.dropdown.is-open > .dropdown-menu {
    display: block;
}

.site-header .dropdown-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 8px 11px;
    border-radius: 8px;
    font-size: 13.5px;
    font-weight: 500;
    color: var(--ink-primary);
    background: transparent;
    white-space: nowrap;
}

.site-header .dropdown-item:hover {
    background: var(--brand-soft);
    color: var(--brand-primary);
}

.site-header .dropdown-submenu {
    position: relative;
}

.site-header .dropdown-submenu > .dropdown-menu {
    top: -8px;
    left: calc(100% + 4px);
    min-width: 220px;
}

.site-header .dropdown-submenu:hover > .dropdown-menu {
    display: block;
}

/* ============================================================================
   2. UNIFIED BREADCRUMB, SECTION HEADERS & BUTTONS
   ============================================================================ */
.ed-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--ink-muted);
    margin: 0 0 16px;
    padding: 0;
    background: transparent;
}

.ed-breadcrumb a {
    color: var(--ink-secondary);
    font-weight: 500;
}

.ed-breadcrumb a:hover {
    color: var(--brand-primary);
}

.ed-breadcrumb-sep {
    color: #b4c5c7;
    font-size: 11px;
}

.ed-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--border-subtle);
    position: relative;
}

.ed-section-head::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 64px;
    height: 2px;
    background: linear-gradient(90deg, var(--brand-primary), var(--brand-gold));
}

.ed-section-title {
    margin: 0;
    font-family: var(--font-serif);
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--brand-deep);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.ed-section-more {
    font-size: 13px;
    font-weight: 700;
    color: var(--brand-primary);
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.ed-section-more:hover {
    color: var(--brand-accent);
}

/* Badges */
.ed-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 9px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.25;
}

.ed-badge-cat {
    background: var(--brand-soft);
    color: var(--brand-primary);
}

.ed-badge-answer {
    background: #dcfce7;
    color: #166534;
}

.ed-badge-gold {
    background: #fef3c7;
    color: #92400e;
}

/* ============================================================================
   3. UNIFIED BLOG CARD (.ed-card)
   ============================================================================ */
.ed-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    box-shadow: var(--shadow-xs);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.ed-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: var(--border-strong);
}

.ed-card-thumb-link {
    display: block;
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--bg-muted);
}

.ed-card-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease;
}

.ed-card:hover .ed-card-thumb {
    transform: scale(1.04);
}

.ed-card-badges-overlay {
    position: absolute;
    top: 10px;
    left: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    z-index: 2;
}

.ed-card-badges-overlay .ed-badge-cat {
    background: rgba(14, 46, 48, 0.84);
    color: #ffffff;
    backdrop-filter: blur(4px);
}

.ed-card-badges-overlay .ed-badge-answer {
    background: rgba(22, 163, 74, 0.92);
    color: #ffffff;
}

.ed-card-body {
    padding: 14px 16px 16px;
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
}

.ed-card-title {
    margin: 0 0 10px;
    font-size: 15.5px;
    font-weight: 700;
    line-height: 1.45;
    color: var(--ink-primary);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ed-card-title a {
    color: inherit;
}

.ed-card:hover .ed-card-title a {
    color: var(--brand-primary);
}

.ed-card-meta {
    margin-top: auto;
    padding-top: 10px;
    border-top: 1px solid #f0f5f4;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    font-size: 12px;
    color: var(--ink-muted);
}

.ed-card-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* ============================================================================
   4. UNIFIED SIDEBAR (.ed-sidebar) — KHÔNG CÒN FACEBOOK SDK 350KB
   ============================================================================ */
.ed-sidebar {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.ed-sidebar-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 18px;
    box-shadow: var(--shadow-xs);
}

.ed-sidebar-heading {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-subtle);
    font-size: 15px;
    font-weight: 800;
    color: var(--brand-deep);
}

.ed-sidebar-heading i {
    color: var(--brand-gold);
}

.ed-sidebar-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 11px;
}

.ed-sidebar-post {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    color: var(--ink-primary);
}

.ed-sidebar-post:hover .ed-sidebar-post-title {
    color: var(--brand-primary);
}

.ed-rank-thumb {
    position: relative;
    width: 68px;
    height: 48px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    background: var(--bg-muted);
}

.ed-rank-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.ed-rank-num {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 19px;
    height: 19px;
    border-radius: 6px;
    background: rgba(14, 46, 48, 0.88);
    color: var(--brand-gold-light);
    font-size: 10.5px;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.ed-sidebar-post-info {
    flex: 1 1 auto;
    min-width: 0;
}

.ed-sidebar-post-title {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 13.5px;
    font-weight: 600;
    line-height: 1.4;
    color: var(--ink-primary);
    margin: 0 0 3px;
}

.ed-sidebar-post-meta {
    font-size: 11.5px;
    color: var(--ink-muted);
}

/* Lightweight 0KB JS Community Card replacing 350KB Facebook SDK */
.ed-community-card {
    background: linear-gradient(135deg, #0e2e30 0%, #1d4d4f 65%, #2c5f5d 100%);
    color: #ffffff;
    border-radius: var(--radius-lg);
    padding: 18px;
    box-shadow: var(--shadow-sm);
}

.ed-community-head {
    display: flex;
    align-items: center;
    gap: 11px;
    margin-bottom: 10px;
}

.ed-community-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: #1877f2;
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.ed-community-title {
    font-size: 15px;
    font-weight: 700;
    margin: 0;
    color: #ffffff;
}

.ed-community-sub {
    font-size: 12px;
    color: var(--brand-gold-light);
    margin: 2px 0 0;
}

.ed-community-desc {
    font-size: 13px;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.86);
    margin: 0 0 14px;
}

.ed-community-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    width: 100%;
    padding: 9px 14px;
    border-radius: 10px;
    background: #ffffff;
    color: #0e2e30 !important;
    font-size: 13px;
    font-weight: 700;
}

.ed-community-btn:hover {
    background: #fef6e4;
    transform: translateY(-1px);
}

/* Sidebar Category Accordion */
.ed-cat-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.ed-cat-item + .ed-cat-item {
    border-top: 1px solid #f0f5f4;
}

.ed-cat-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
}

.ed-cat-link {
    display: block;
    flex: 1 1 auto;
    padding: 8px 4px;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--ink-primary);
}

.ed-cat-link:hover,
.ed-cat-link.active {
    color: var(--brand-primary);
}

.ed-cat-toggle {
    width: 28px;
    height: 28px;
    border: none;
    border-radius: 6px;
    background: transparent;
    color: var(--ink-muted);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease, background-color 0.15s ease;
}

.ed-cat-toggle:hover {
    background: var(--brand-soft);
    color: var(--brand-primary);
}

.ed-cat-item.is-expanded .ed-cat-toggle {
    transform: rotate(180deg);
}

.ed-subcat-list {
    display: none;
    list-style: none;
    margin: 0 0 8px 10px;
    padding: 0 0 0 10px;
    border-left: 2px solid var(--brand-soft);
}

.ed-cat-item.is-expanded > .ed-subcat-list {
    display: block;
}

.ed-subcat-link {
    display: block;
    padding: 5px 6px;
    font-size: 13px;
    color: var(--ink-secondary);
    border-radius: 6px;
}

.ed-subcat-link:hover,
.ed-subcat-link.active {
    background: var(--brand-soft);
    color: var(--brand-primary);
    font-weight: 600;
}

/* Sticky Sidebar Container */
.ed-sticky-slot {
    position: sticky;
    top: calc(var(--header-desktop-h) + 16px);
}

/* ============================================================================
   5. UNIFIED PAGINATION
   ============================================================================ */
.page-numbers {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
    margin: 26px 0 10px;
    padding: 0;
}

.page-numbers li a,
.page-numbers li span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 12px;
    border-radius: 10px;
    border: 1px solid var(--border-subtle);
    background: #ffffff;
    color: var(--ink-primary);
    font-size: 13.5px;
    font-weight: 600;
}

.page-numbers li a:hover {
    border-color: var(--brand-primary);
    background: var(--brand-soft);
    color: var(--brand-primary);
}

.page-numbers li.active a {
    background: var(--brand-deep);
    border-color: var(--brand-deep);
    color: #ffffff;
}

/* ============================================================================
   6. UNIFIED EDITORIAL FOOTER (4 CỘT CÂN ĐỐI)
   ============================================================================ */
.site-footer {
    margin-top: 48px;
    background: #0e2e30;
    color: rgba(255, 255, 255, 0.84);
    border-top: 3px solid var(--brand-gold);
    padding: 48px 0 22px;
    font-size: 13.8px;
}

.footer-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 0.9fr)) minmax(0, 1.2fr);
    gap: 28px;
    padding-bottom: 32px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-brand-desc {
    margin: 14px 0 12px;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.78);
}

.footer-tagline {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 13.5px;
    color: var(--brand-gold-light);
    margin: 0 0 16px;
}

.footer-col-title {
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #ffffff;
    margin: 0 0 14px;
}

.footer-links-list,
.footer-contact-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.footer-links-list a {
    color: rgba(255, 255, 255, 0.78);
    font-size: 13.5px;
}

.footer-links-list a:hover {
    color: var(--brand-gold-light);
    padding-left: 3px;
}

.footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: rgba(255, 255, 255, 0.82);
    line-height: 1.5;
}

.footer-contact-item i {
    color: var(--brand-gold-light);
    margin-top: 3px;
    width: 16px;
    text-align: center;
    flex-shrink: 0;
}

.footer-contact-item a {
    color: #ffffff;
}

.footer-contact-item a:hover {
    color: var(--brand-gold-light);
}

.footer-bottom-bar {
    padding-top: 18px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    font-size: 12.5px;
    color: rgba(255, 255, 255, 0.65);
}

.footer-bottom-links {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.footer-bottom-links a {
    color: rgba(255, 255, 255, 0.7);
}

.footer-bottom-links a:hover {
    color: var(--brand-gold-light);
}

/* ============================================================================
   7. COMPATIBILITY SHIM CHO CÁC TRANG PHỤ (PROFILE, LOGIN, MY_BLOGS, QANDA)
   ============================================================================ */
.btn-primary {
    background-color: var(--brand-primary);
    border-color: var(--brand-primary);
}

.btn-primary:hover {
    background-color: var(--brand-deep);
    border-color: var(--brand-deep);
}

.main-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: var(--brand-primary);
    color: #ffffff;
    border: none;
    border-radius: 10px;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

.main-button:hover {
    background: var(--brand-accent);
    color: #ffffff;
}

/* ============================================================================
   8. RESPONSIVE (TABLET & MOBILE DRAWER GỌN 60PX)
   ============================================================================ */
@media (max-width: 991px) {
    body {
        padding-top: var(--header-mobile-h);
    }

    .header-top-band {
        height: var(--header-mobile-h);
    }

    .header-top-inner {
        gap: 8px;
    }

    .menu-toggle,
    .mobile-search-toggle {
        display: inline-flex;
    }

    .header-ai-pill {
        display: none;
    }

    .brand-emblem {
        width: 34px;
        height: 34px;
    }

    .brand-title {
        font-size: 16px;
    }

    .brand-subtitle {
        font-size: 10px;
    }

    .header-login-btn {
        padding: 6px 10px;
        font-size: 12px;
    }

    /* Mobile Search Drawer under 60px top bar */
    .site-header .search-bar {
        display: none;
        position: fixed;
        top: var(--header-mobile-h);
        left: 0;
        right: 0;
        max-width: none;
        margin: 0;
        padding: 10px 14px;
        background: #163d3f;
        border-bottom: 1px solid rgba(255, 255, 255, 0.14);
        box-shadow: 0 10px 24px rgba(14, 46, 48, 0.24);
        z-index: 1040;
    }

    .site-header .search-bar.mobile-open {
        display: block;
    }

    /* Slide-in Mobile Navigation Drawer */
    .header-nav-band {
        height: 0;
        border: none;
    }

    .mobile-nav-backdrop {
        display: block;
        position: fixed;
        inset: 0;
        background: rgba(14, 46, 48, 0.55);
        backdrop-filter: blur(3px);
        z-index: 1045;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.22s ease;
    }

    .mobile-nav-backdrop.active {
        opacity: 1;
        pointer-events: auto;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;
        width: min(310px, 86vw);
        background: #ffffff;
        flex-direction: column;
        align-items: stretch;
        gap: 2px;
        padding: 0 0 28px;
        z-index: 1050;
        overflow-y: auto;
        transform: translateX(-105%);
        transition: transform 0.25s ease;
        box-shadow: 12px 0 36px rgba(14, 46, 48, 0.25);
    }

    .nav-menu.active {
        transform: translateX(0);
    }

    .mobile-nav-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 14px 16px;
        background: linear-gradient(135deg, #0e2e30 0%, #2c5f5d 100%);
        color: #ffffff;
        margin-bottom: 6px;
    }

    .mobile-nav-close {
        width: 34px;
        height: 34px;
        border-radius: 8px;
        border: 1px solid rgba(255, 255, 255, 0.25);
        background: rgba(255, 255, 255, 0.1);
        color: #ffffff;
        font-size: 18px;
        cursor: pointer;
    }

    .nav-menu > li > a {
        width: 100%;
        justify-content: space-between;
        padding: 11px 16px;
        border-radius: 0;
        font-size: 14.5px;
    }

    .site-header .dropdown-menu,
    .site-header .dropdown-submenu > .dropdown-menu {
        position: static;
        box-shadow: none;
        border: none;
        border-radius: 0;
        background: #f5f9f9;
        padding: 4px 10px 8px 20px;
    }

    .site-header .nav-item.dropdown:hover > .dropdown-menu {
        display: none;
    }

    .site-header .nav-item.dropdown.is-open > .dropdown-menu {
        display: block;
    }

    .site-header .dropdown-submenu > .dropdown-menu {
        display: block;
        padding-left: 14px;
    }

    .footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 576px) {
    .brand-title {
        font-size: 14.8px;
    }
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 22px;
    }
}
