/* ============================================
   JAVIETA — Vietnamese Language Hub
   Stylesheet v1.0
   Colours: Vietnamese Flag Red + Gold
   ============================================ */

/* === DESIGN TOKENS === */
:root {
    --red:         #DA251D;   /* Vietnamese flag red */
    --red-dark:    #A81B15;
    --red-deep:    #7A1210;
    --gold:        #F5C000;   /* Vietnamese flag star gold */
    --gold-light:  #FFD740;
    --gold-pale:   #FFF8DC;
    --cream:       #FDFAF3;
    --white:       #FFFFFF;
    --ink:         #1A0A09;   /* Near-black, warm */
    --ink-light:   #3D1E1C;
    --mid:         #7A5050;
    --border:      #E8D5D4;
    --nav-h:       72px;

    /* Type */
    --font-display: 'Playfair Display', Georgia, serif;
    --font-body:    'Inter', system-ui, sans-serif;

    /* Radius */
    --r-sm: 6px;
    --r-md: 12px;
    --r-lg: 20px;
    --r-xl: 32px;
}

/* === RESET & BASE === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    background: var(--cream);
    color: var(--ink);
    line-height: 1.6;
    overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* === ANNOUNCEMENT BAR === */
.announcement-bar {
    background: var(--ink);
    color: var(--gold);
    padding: 0.55rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.82rem;
    font-weight: 500;
    letter-spacing: 0.01em;
    position: relative;
    z-index: 100;
}
.ann-label {
    background: var(--red);
    color: var(--white);
    padding: 0.15rem 0.55rem;
    border-radius: 3px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    white-space: nowrap;
}
.ann-text { flex: 1; color: var(--gold-light); }
.ann-close {
    background: none; border: none; color: var(--gold);
    font-size: 1.2rem; cursor: pointer; opacity: 0.7;
    padding: 0 0.25rem; line-height: 1;
    transition: opacity 0.2s;
}
.ann-close:hover { opacity: 1; }

/* === NAVBAR === */
.navbar {
    position: sticky;
    top: 0;
    z-index: 999;
    background: var(--red);
    height: var(--nav-h);
    box-shadow: 0 2px 20px rgba(26,10,9,0.2);
    transition: background 0.3s;
}
.navbar.scrolled {
    background: var(--red-dark);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    font-family: var(--font-display);
    font-size: 1.65rem;
    font-weight: 900;
    color: var(--white);
    display: flex;
    flex-direction: column;
    line-height: 1;
    letter-spacing: -0.02em;
}
.logo-vn {
    color: var(--gold);
}
.nav-logo small {
    font-family: var(--font-body);
    font-size: 0.62rem;
    font-weight: 500;
    color: rgba(255,255,255,0.65);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-top: 2px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.nav-link {
    color: rgba(255,255,255,0.88);
    font-size: 0.9rem;
    font-weight: 500;
    padding: 0.5rem 0.85rem;
    border-radius: var(--r-sm);
    transition: color 0.2s, background 0.2s;
    position: relative;
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 0.85rem;
    right: 0.85rem;
    height: 2px;
    background: var(--gold);
    transform: scaleX(0);
    transition: transform 0.25s;
    border-radius: 1px;
}
.nav-link:hover { color: var(--white); background: rgba(255,255,255,0.1); }
.nav-link:hover::after, .nav-link.active::after { transform: scaleX(1); }

.nav-cta {
    background: var(--gold);
    color: var(--ink) !important;
    font-weight: 700;
    font-size: 0.88rem;
    padding: 0.5rem 1.1rem;
    border-radius: var(--r-sm);
    margin-left: 0.5rem;
    transition: background 0.2s, transform 0.15s;
    letter-spacing: 0.01em;
}
.nav-cta:hover {
    background: var(--gold-light);
    transform: translateY(-1px);
}

/* Hamburger */
.nav-hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}
.nav-hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--white);
    border-radius: 2px;
    transition: all 0.3s;
}

/* === HERO === */
.hero {
    background: var(--red);
    background: linear-gradient(135deg, var(--red-deep) 0%, var(--red) 50%, #E03028 100%);
    min-height: calc(90vh - var(--nav-h));
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '★';
    position: absolute;
    font-size: clamp(200px, 35vw, 500px);
    color: rgba(245, 192, 0, 0.06);
    top: 50%;
    right: -5%;
    transform: translateY(-50%);
    line-height: 1;
    pointer-events: none;
    animation: starFloat 8s ease-in-out infinite;
}

@keyframes starFloat {
    0%, 100% { transform: translateY(-50%) scale(1); }
    50%       { transform: translateY(-52%) scale(1.03); }
}

.hero-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 5rem 1.5rem;
    position: relative;
    z-index: 2;
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(245,192,0,0.15);
    color: var(--gold);
    border: 1px solid rgba(245,192,0,0.3);
    padding: 0.35rem 0.9rem;
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    animation: fadeUp 0.6s ease both;
}
.hero-eyebrow::before { content: '🇻🇳'; font-size: 1rem; }

.hero-headline {
    font-family: var(--font-display);
    font-size: clamp(2.8rem, 7vw, 5.5rem);
    font-weight: 900;
    color: var(--white);
    line-height: 1.05;
    letter-spacing: -0.03em;
    margin-bottom: 1rem;
    animation: fadeUp 0.6s 0.1s ease both;
}

.hero-headline .gold { color: var(--gold); }

.hero-sub {
    font-family: var(--font-display);
    font-size: clamp(1.1rem, 2.5vw, 1.5rem);
    color: rgba(255,255,255,0.8);
    margin-bottom: 0.75rem;
    font-style: italic;
    animation: fadeUp 0.6s 0.2s ease both;
}

.hero-tagline {
    font-size: 1rem;
    color: rgba(255,255,255,0.6);
    max-width: 520px;
    margin-bottom: 2.5rem;
    animation: fadeUp 0.6s 0.25s ease both;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    animation: fadeUp 0.6s 0.35s ease both;
}

.btn-primary {
    background: var(--gold);
    color: var(--ink);
    font-weight: 700;
    font-size: 1rem;
    padding: 0.85rem 2rem;
    border-radius: var(--r-md);
    border: none;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 24px rgba(245,192,0,0.25);
    display: inline-block;
}
.btn-primary:hover {
    background: var(--gold-light);
    transform: translateY(-2px);
    box-shadow: 0 6px 32px rgba(245,192,0,0.35);
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    font-weight: 600;
    font-size: 1rem;
    padding: 0.85rem 2rem;
    border-radius: var(--r-md);
    border: 1.5px solid rgba(255,255,255,0.35);
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
    display: inline-block;
}
.btn-secondary:hover {
    border-color: rgba(255,255,255,0.8);
    background: rgba(255,255,255,0.08);
}

/* === STATS BAR === */
.stats-bar {
    background: var(--ink);
    padding: 2rem 1.5rem;
}

.stats-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.5rem;
}

.stat-item {
    text-align: center;
    padding: 1rem;
    position: relative;
}
.stat-item + .stat-item::before {
    content: '';
    position: absolute;
    left: 0; top: 20%; bottom: 20%;
    width: 1px;
    background: rgba(255,255,255,0.1);
}

.stat-number {
    font-family: var(--font-display);
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 900;
    color: var(--gold);
    line-height: 1;
    display: block;
    margin-bottom: 0.35rem;
}
.stat-label {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.55);
    font-weight: 400;
    letter-spacing: 0.02em;
}

/* === SECTION SHARED === */
.section {
    padding: 5rem 0;
}

.section-alt {
    background: var(--white);
}

.eyebrow {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--red);
    margin-bottom: 0.75rem;
}

.section-header {
    margin-bottom: 3rem;
}

.section-header h2 {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 900;
    color: var(--ink);
    line-height: 1.1;
    letter-spacing: -0.025em;
    margin-bottom: 0.75rem;
}

.section-header p {
    font-size: 1.05rem;
    color: var(--mid);
    max-width: 540px;
    line-height: 1.65;
}

/* === NAV SECTION TABS === */
.nav-tabs {
    display: flex;
    gap: 0.5rem;
    border-bottom: 2px solid var(--border);
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
}

.nav-tab {
    background: none;
    border: none;
    padding: 0.75rem 1.25rem;
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--mid);
    cursor: pointer;
    position: relative;
    transition: color 0.2s;
    white-space: nowrap;
}
.nav-tab::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0; right: 0;
    height: 2px;
    background: var(--red);
    transform: scaleX(0);
    transition: transform 0.25s;
}
.nav-tab:hover { color: var(--ink); }
.nav-tab.active { color: var(--red); }
.nav-tab.active::after { transform: scaleX(1); }

/* === FEATURE CARDS === */
.feature-panels { }
.feature-panel { display: none; }
.feature-panel.active { display: block; }

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.5rem;
}

.card {
    background: var(--cream);
    border: 1.5px solid var(--border);
    border-radius: var(--r-lg);
    padding: 2rem 1.75rem;
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
    cursor: default;
    position: relative;
    overflow: hidden;
}
.section-alt .card { background: var(--white); }

.card::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 4px; height: 100%;
    background: var(--red);
    transform: scaleY(0);
    transform-origin: top;
    transition: transform 0.3s;
}
.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(218,37,29,0.1);
    border-color: var(--red);
}
.card:hover::before { transform: scaleY(1); }

.card-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
    display: block;
}
.card-title {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 0.6rem;
    letter-spacing: -0.01em;
}
.card-desc {
    font-size: 0.88rem;
    color: var(--mid);
    line-height: 1.6;
    margin-bottom: 1.25rem;
}
.card-link {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--red);
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    transition: gap 0.2s;
}
.card-link::after { content: '→'; }
.card:hover .card-link { gap: 0.6rem; }

/* Section anchor styling */
.section-anchor {
    scroll-margin-top: calc(var(--nav-h) + 1rem);
}

/* === COMMUNITY / ABOUT BAND === */
.band {
    background: var(--red);
    background: linear-gradient(135deg, var(--red-dark), var(--red));
    padding: 5rem 1.5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.band::before {
    content: 'VIỆT NAM';
    position: absolute;
    font-family: var(--font-display);
    font-size: clamp(4rem, 15vw, 12rem);
    font-weight: 900;
    color: rgba(255,255,255,0.04);
    left: 50%; top: 50%;
    transform: translate(-50%, -50%);
    white-space: nowrap;
    pointer-events: none;
    letter-spacing: 0.1em;
}
.band-inner {
    max-width: 700px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}
.band .eyebrow { color: var(--gold); }
.band h2 {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 900;
    color: var(--white);
    margin-bottom: 1rem;
    letter-spacing: -0.03em;
}
.band p {
    color: rgba(255,255,255,0.75);
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 2rem;
}

/* === NEWS / ANNOUNCEMENTS === */
.news-list {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.news-item {
    background: var(--white);
    border: 1.5px solid var(--border);
    border-radius: var(--r-md);
    padding: 1.5rem;
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
    transition: box-shadow 0.2s;
}
.news-item:hover {
    box-shadow: 0 4px 20px rgba(218,37,29,0.08);
}

.news-category {
    background: var(--red);
    color: var(--white);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 0.25rem 0.6rem;
    border-radius: 4px;
    white-space: nowrap;
    flex-shrink: 0;
    margin-top: 3px;
}

.news-content h3 {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 0.35rem;
}
.news-content p {
    font-size: 0.85rem;
    color: var(--mid);
    line-height: 1.6;
}

/* === CONTACT SECTION === */
.contact-section {
    background: var(--gold-pale);
    padding: 5rem 1.5rem;
    border-top: 1px solid rgba(245,192,0,0.3);
}
.contact-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 3rem;
    flex-wrap: wrap;
}
.contact-text { flex: 1; min-width: 260px; }
.contact-text .eyebrow { color: var(--red-dark); }
.contact-text h2 {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 900;
    color: var(--ink);
    margin-bottom: 0.75rem;
}
.contact-text p {
    color: var(--mid);
    font-size: 1rem;
    line-height: 1.65;
    margin-bottom: 1.25rem;
}
.contact-email {
    font-weight: 700;
    color: var(--red);
    font-size: 1.05rem;
    border-bottom: 2px solid var(--red);
    transition: color 0.2s;
}
.contact-email:hover { color: var(--red-dark); }

/* Flag decoration */
.contact-flag { display: flex; gap: 1rem; align-items: center; }
.flag-vn, .flag-au {
    width: 80px; height: 53px;
    border-radius: 6px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
}
.flag-vn { background: var(--red); }
.flag-star { color: var(--gold); }
.flag-au { background: #00008B; }
.flag-star-au { color: var(--white); }

/* === FOOTER === */
.footer {
    background: var(--ink);
    color: rgba(255,255,255,0.65);
    padding: 4rem 1.5rem 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
}

.footer-logo {
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 900;
    color: var(--white);
    display: inline-block;
    margin-bottom: 0.75rem;
}

.footer-brand p {
    font-size: 0.88rem;
    line-height: 1.6;
    max-width: 280px;
    margin-bottom: 1.25rem;
}

.social-links { display: flex; gap: 0.75rem; }
.social-links a {
    width: 36px; height: 36px;
    background: rgba(255,255,255,0.08);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.6);
    transition: background 0.2s, color 0.2s;
}
.social-links a:hover {
    background: var(--red);
    color: var(--white);
}

.footer-nav h4 {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255,255,255,0.4);
    margin-bottom: 1rem;
}
.footer-nav ul { display: flex; flex-direction: column; gap: 0.6rem; }
.footer-nav a {
    font-size: 0.88rem;
    color: rgba(255,255,255,0.6);
    transition: color 0.2s;
}
.footer-nav a:hover { color: var(--gold); }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding-top: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: rgba(255,255,255,0.35);
}

/* === ANIMATIONS === */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
    .nav-hamburger { display: flex; }
    .nav-links {
        position: fixed;
        top: var(--nav-h);
        left: 0; right: 0;
        background: var(--red-dark);
        flex-direction: column;
        padding: 1.5rem;
        gap: 0.25rem;
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: transform 0.35s ease, opacity 0.35s ease, visibility 0.35s;
    }
    .nav-links.open {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    .nav-link, .nav-cta { width: 100%; padding: 0.85rem 1rem; }
    .nav-cta { margin-left: 0; text-align: center; }

    .hero-inner { padding: 3rem 1.5rem; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 1.5rem; }

    .contact-flag { display: none; }
    .stat-item + .stat-item::before { display: none; }
}

@media (max-width: 480px) {
    .hero-actions { flex-direction: column; }
    .btn-primary, .btn-secondary { width: 100%; text-align: center; }
}

/* === ADMIN LINK === */
.admin-bar {
    display: none; /* shown only when logged in */
    background: var(--ink-light);
    color: rgba(255,255,255,0.7);
    padding: 0.4rem 1rem;
    font-size: 0.78rem;
    text-align: right;
}
.admin-bar a { color: var(--gold); font-weight: 600; }
.admin-bar a:hover { text-decoration: underline; }

/* ============================================
   JAVIETA v2 — DROPDOWNS, HUB PAGES, ARTICLES
   ============================================ */

/* === DROPDOWN NAVIGATION === */
.nav-arrow {
    font-size: 0.65rem;
    margin-left: 3px;
    transition: transform 0.25s;
    display: inline-block;
    vertical-align: middle;
    opacity: 0.7;
}
.nav-has-dropdown { position: relative; }
.nav-has-dropdown:hover .nav-arrow { transform: rotate(180deg); }

.nav-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    min-width: 230px;
    background: var(--ink);
    border-radius: var(--r-md);
    padding: 0.5rem 0;
    box-shadow: 0 12px 40px rgba(0,0,0,0.35);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s;
    z-index: 9999;
    list-style: none;
}
.nav-dropdown::before {
    content: '';
    position: absolute;
    top: -6px; left: 20px;
    border: 6px solid transparent;
    border-bottom-color: var(--ink);
    border-top: none;
}
.nav-has-dropdown:hover .nav-dropdown,
.nav-has-dropdown:focus-within .nav-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.nav-dropdown li a {
    display: block;
    padding: 0.6rem 1.25rem;
    color: rgba(255,255,255,0.72);
    font-size: 0.875rem;
    font-weight: 500;
    transition: background 0.15s, color 0.15s;
    white-space: nowrap;
}
.nav-dropdown li a:hover {
    background: rgba(255,255,255,0.07);
    color: var(--gold);
    padding-left: 1.5rem;
}
.nav-dropdown li:first-child a { border-radius: var(--r-md) var(--r-md) 0 0; }
.nav-dropdown li:last-child  a { border-radius: 0 0 var(--r-md) var(--r-md); }

/* === BREADCRUMBS === */
.breadcrumb-nav {
    background: var(--white);
    border-bottom: 1px solid var(--border);
    padding: 0.6rem 0;
}
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0;
    list-style: none;
    flex-wrap: wrap;
}
.breadcrumb li {
    display: flex;
    align-items: center;
    font-size: 0.82rem;
    color: var(--mid);
}
.breadcrumb li + li::before {
    content: '›';
    margin: 0 0.5rem;
    color: var(--border);
    font-size: 1rem;
}
.breadcrumb li a { color: var(--red); font-weight: 500; }
.breadcrumb li a:hover { text-decoration: underline; }
.breadcrumb li span { color: var(--mid); font-weight: 600; }

/* === HUB PAGE HERO === */
.hub-hero {
    background: var(--ink);
    background: linear-gradient(160deg, var(--ink) 0%, var(--ink-light) 100%);
    padding: 3.5rem 0 2.5rem;
    position: relative;
    overflow: hidden;
}
.hub-hero::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--red) 0%, var(--gold) 50%, var(--red) 100%);
}
.hub-hero-inner {
    max-width: 860px;
}
.hub-hero h1 {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 900;
    color: var(--white);
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: 0.85rem;
}
.hub-hero p {
    font-size: 1.05rem;
    color: rgba(255,255,255,0.7);
    max-width: 660px;
    line-height: 1.7;
}

/* === HUB LAYOUT (sidebar + content) === */
.hub-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 3rem;
    align-items: start;
    padding: 3rem 0 5rem;
}

/* --- SIDEBAR --- */
.hub-sidebar { position: sticky; top: calc(var(--nav-h) + 1.5rem); }

.sidebar-box {
    background: var(--white);
    border: 1.5px solid var(--border);
    border-radius: var(--r-lg);
    overflow: hidden;
    margin-bottom: 1.25rem;
}
.sidebar-box-header {
    background: var(--ink);
    padding: 0.75rem 1.1rem;
}
.sidebar-box-header span {
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255,255,255,0.45);
}
.sidebar-box ul { list-style: none; padding: 0.5rem 0; }
.sidebar-box ul li a {
    display: block;
    padding: 0.6rem 1.1rem;
    font-size: 0.875rem;
    color: var(--ink-light);
    font-weight: 500;
    border-left: 3px solid transparent;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.sidebar-box ul li a:hover,
.sidebar-box ul li a.active {
    background: rgba(218,37,29,0.05);
    color: var(--red);
    border-left-color: var(--red);
    padding-left: 1.35rem;
}
.sidebar-box ul li a.active { font-weight: 700; }

/* --- ARTICLE CONTENT --- */
.hub-content {}

.hub-content h2 {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 900;
    color: var(--ink);
    letter-spacing: -0.025em;
    margin: 2.5rem 0 1rem;
    line-height: 1.15;
}
.hub-content h2:first-child { margin-top: 0; }

.hub-content h3 {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--ink);
    margin: 2rem 0 0.75rem;
    letter-spacing: -0.01em;
}

.hub-content p {
    font-size: 0.975rem;
    color: #3D2E2C;
    line-height: 1.75;
    margin-bottom: 1.1rem;
    max-width: 680px;
}

.hub-content ul,
.hub-content ol {
    margin: 0.75rem 0 1.25rem 1.5rem;
    max-width: 680px;
}
.hub-content li {
    font-size: 0.975rem;
    color: #3D2E2C;
    line-height: 1.7;
    margin-bottom: 0.45rem;
}

/* Phrase blocks */
.phrase-block {
    background: var(--cream);
    border: 1.5px solid var(--border);
    border-left: 4px solid var(--gold);
    border-radius: 0 var(--r-md) var(--r-md) 0;
    padding: 1.25rem 1.5rem;
    margin: 1.5rem 0;
    max-width: 680px;
}
.phrase-block p {
    font-size: 0.9rem;
    margin-bottom: 0;
    font-family: var(--font-body);
}
.phrase-vn {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--ink);
    display: block;
    margin-bottom: 0.2rem;
}
.phrase-en {
    font-size: 0.85rem;
    color: var(--mid);
    display: block;
}

/* Tip box */
.tip-box {
    background: rgba(245,192,0,0.08);
    border: 1.5px solid rgba(245,192,0,0.4);
    border-radius: var(--r-md);
    padding: 1.1rem 1.4rem;
    margin: 1.5rem 0;
    max-width: 680px;
}
.tip-box-label {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--red);
    display: block;
    margin-bottom: 0.4rem;
}
.tip-box p { font-size: 0.88rem; margin: 0; color: var(--ink-light); }

/* Content divider */
.hub-divider {
    border: none;
    border-top: 1px solid var(--border);
    margin: 2.5rem 0;
}

/* === ARTICLE GRID on hub index === */
.article-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.25rem;
    margin-top: 1.5rem;
}
.article-card {
    background: var(--white);
    border: 1.5px solid var(--border);
    border-radius: var(--r-lg);
    padding: 1.5rem;
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
    display: flex;
    flex-direction: column;
}
.article-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 32px rgba(218,37,29,0.1);
    border-color: var(--red);
}
.article-card-icon { font-size: 1.75rem; margin-bottom: 0.85rem; }
.article-card h3 {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 0.5rem;
    letter-spacing: -0.01em;
}
.article-card p {
    font-size: 0.83rem;
    color: var(--mid);
    line-height: 1.55;
    flex: 1;
    margin-bottom: 1rem;
}
.article-card-link {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--red);
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    transition: gap 0.2s;
}
.article-card-link::after { content: '→'; }
.article-card:hover .article-card-link { gap: 0.55rem; }

/* === RESPONSIVE for hub/article pages === */
@media (max-width: 900px) {
    .hub-layout {
        grid-template-columns: 1fr;
        gap: 0;
    }
    .hub-sidebar {
        position: static;
        margin-bottom: 2rem;
    }
    .sidebar-box { margin-bottom: 0.75rem; }
}
@media (max-width: 640px) {
    .hub-hero { padding: 2.5rem 0 2rem; }
    .hub-hero h1 { font-size: 1.75rem; }
}

/* === Mobile dropdown === */
@media (max-width: 768px) {
    .nav-dropdown {
        position: static;
        transform: none !important;
        opacity: 1 !important;
        visibility: visible !important;
        box-shadow: none;
        background: rgba(0,0,0,0.2);
        border-radius: 0;
        padding: 0;
        display: none;
    }
    .nav-dropdown::before { display: none; }
    .nav-has-dropdown.mobile-open .nav-dropdown { display: block; }
    .nav-has-dropdown > .nav-link { width: 100%; display: flex; justify-content: space-between; }
    .nav-dropdown li a {
        padding: 0.65rem 1rem 0.65rem 1.75rem;
        font-size: 0.83rem;
        color: rgba(255,255,255,0.6);
    }
}

/* ── Sign In nav button ── */
.nav-signin-btn {
    background: none;
    border: 1.5px solid rgba(255,255,255,0.35);
    color: #fff;
    padding: 0.4rem 0.9rem;
    border-radius: 100px;
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
    font-family: var(--font-body);
    transition: background 0.2s, border-color 0.2s;
    white-space: nowrap;
}
.nav-signin-btn:hover {
    background: rgba(255,255,255,0.12);
    border-color: rgba(255,255,255,0.6);
}

/* ── Nav arrow spacing fix ── */
.nav-arrow {
    display: inline-block;
    margin-left: 2px;
    font-size: 0.65em;
    vertical-align: middle;
    opacity: 0.7;
    line-height: 1;
}
