/* ==========================================================================
   tenmien.edu.vn — Stylesheet
   Theme: Editorial luxury · Emerald (forest) + Burnished gold + Warm cream
   Type:  Cormorant Garamond (display, serif) + DM Sans (body, sans)
   ========================================================================== */

:root {
    /* Palette */
    --emerald-900: #0A3128;
    --emerald-800: #0F4C3A;
    --emerald-700: #1A6B52;
    --emerald-600: #2E8B6B;
    --emerald-50:  #ECF5F0;

    --gold-700: #9C7A3F;
    --gold-600: #B59154;
    --gold-500: #C9A96E;
    --gold-300: #E1CDA0;
    --gold-100: #F5EBD3;

    --cream-50:  #FFFEF9;
    --cream-100: #FAF7F0;
    --cream-200: #F2ECDD;
    --cream-300: #E8E0CB;

    --ink-900: #1A1A1A;
    --ink-700: #404040;
    --ink-500: #6B6B6B;
    --ink-400: #8E8E8E;
    --ink-300: #C7C7C7;

    --rose: #C77D5A;          /* accent đa dụng cho tag */
    --terracotta: #B85C44;    /* badge giảm giá nóng */

    /* Layout */
    --container: 1200px;
    --container-narrow: 820px;
    --radius-sm: 6px;
    --radius: 12px;
    --radius-lg: 20px;
    --shadow-sm: 0 2px 8px rgba(15, 76, 58, 0.08);
    --shadow:    0 8px 24px rgba(15, 76, 58, 0.12);
    --shadow-lg: 0 24px 60px rgba(15, 76, 58, 0.18);

    /* Typography */
    --font-display: 'Cormorant Garamond', 'Times New Roman', serif;
    --font-body:    'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.65;
    color: var(--ink-900);
    background: var(--cream-100);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    /* texture grain rất nhẹ */
    background-image:
        radial-gradient(circle at 20% 10%, rgba(201, 169, 110, 0.06), transparent 40%),
        radial-gradient(circle at 80% 90%, rgba(15, 76, 58, 0.06), transparent 40%);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--emerald-800); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--gold-600); }
button { font-family: inherit; cursor: pointer; }

/* Utility */
.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.container--narrow { max-width: var(--container-narrow); }
.eyebrow {
    font-family: var(--font-body);
    font-size: 12px; font-weight: 600;
    letter-spacing: 3px; text-transform: uppercase;
    color: var(--gold-600);
    display: inline-flex; align-items: center; gap: 10px;
}
.eyebrow::before {
    content: ''; display: block; width: 28px; height: 1px;
    background: currentColor;
}
.serif { font-family: var(--font-display); font-style: italic; }
.gold { color: var(--gold-600); }

h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-weight: 600;
    line-height: 1.15;
    color: var(--emerald-900);
    margin: 0 0 16px;
    letter-spacing: -0.01em;
}
h1 { font-size: clamp(36px, 5.5vw, 64px); }
h2 { font-size: clamp(28px, 3.6vw, 44px); }
h3 { font-size: clamp(22px, 2.4vw, 30px); }
h4 { font-size: 20px; }

p { margin: 0 0 16px; color: var(--ink-700); }

/* ===================== Topbar ===================== */
.topbar {
    position: sticky; top: 0; z-index: 50;
    background: rgba(250, 247, 240, 0.92);
    backdrop-filter: saturate(180%) blur(10px);
    -webkit-backdrop-filter: saturate(180%) blur(10px);
    border-bottom: 1px solid var(--cream-300);
}
.topbar__inner {
    max-width: var(--container);
    margin: 0 auto;
    padding: 12px 24px;
    display: flex; align-items: center; gap: 24px;
}
.topbar__brand {
    display: flex; align-items: center; gap: 10px;
    color: var(--emerald-900);
    flex-shrink: 0;
}
.topbar__brand:hover { color: var(--emerald-900); }
.topbar__logo { width: 36px; height: 36px; flex-shrink: 0; }
.topbar__name {
    font-family: var(--font-display);
    font-size: 22px; font-weight: 600;
    line-height: 1;
}
.topbar__name-tld { color: var(--gold-600); font-style: italic; }

.topbar__nav {
    display: flex; align-items: center; gap: 28px;
    margin-left: auto; margin-right: 16px;
    font-size: 14.5px; font-weight: 500;
}
.topbar__nav a {
    color: var(--ink-700);
    position: relative;
    padding: 6px 0;
}
.topbar__nav a.is-active,
.topbar__nav a:hover { color: var(--emerald-800); }
.topbar__nav a.is-active::after {
    content: ''; position: absolute; left: 0; right: 0; bottom: -2px;
    height: 2px; background: var(--gold-500);
}

.topbar__actions { display: flex; align-items: center; gap: 12px; margin-left: auto; }
.topbar__cta {
    display: inline-flex; align-items: center;
    background: var(--emerald-800); color: var(--cream-50);
    padding: 10px 18px;
    border-radius: 999px;
    font-size: 14px; font-weight: 600;
    box-shadow: 0 4px 12px rgba(15, 76, 58, 0.25);
    transition: all 0.25s;
}
.topbar__cta:hover {
    background: var(--gold-600); color: var(--cream-50);
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(181, 145, 84, 0.4);
}

.topbar__hamburger {
    display: none;
    background: transparent;
    border: 1px solid var(--cream-300);
    width: 42px; height: 42px;
    border-radius: 8px;
    flex-direction: column; align-items: center; justify-content: center; gap: 4px;
}
.topbar__hamburger span {
    display: block; width: 18px; height: 2px;
    background: var(--emerald-900); border-radius: 2px;
    transition: transform 0.2s;
}

@media (max-width: 960px) {
    .topbar__nav { display: none; }
    .topbar__cta { display: none; }
    .topbar__hamburger { display: flex; }
}

/* ===================== Drawer ===================== */
.drawer {
    position: fixed; inset: 0;
    z-index: 100;
    display: block;
}
.drawer[hidden] { display: none; }
.drawer__backdrop {
    position: absolute; inset: 0;
    background: rgba(10, 49, 40, 0.6);
    backdrop-filter: blur(2px);
    animation: fadeIn 0.25s ease;
}
.drawer__panel {
    position: absolute; top: 0; right: 0; bottom: 0;
    width: min(90vw, 360px);
    background: var(--cream-50);
    box-shadow: var(--shadow-lg);
    padding: 24px;
    overflow-y: auto;
    display: flex; flex-direction: column;
    animation: slideRight 0.3s ease;
}
.drawer__head {
    display: flex; align-items: center; justify-content: space-between;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--cream-200);
    font-family: var(--font-display);
    font-size: 20px;
    color: var(--emerald-900);
}
.drawer__close {
    background: var(--cream-200); border: none;
    width: 36px; height: 36px; border-radius: 50%;
    font-size: 22px; color: var(--emerald-900);
}
.drawer__close:hover { background: var(--gold-100); }
.drawer__nav { display: flex; flex-direction: column; gap: 4px; padding-top: 16px; }
.drawer__nav a {
    padding: 12px 14px; border-radius: 8px;
    color: var(--ink-700); font-size: 15px; font-weight: 500;
}
.drawer__nav a:hover { background: var(--cream-100); color: var(--emerald-800); }
.drawer__sep { height: 1px; background: var(--cream-200); margin: 8px 0; }

@keyframes fadeIn { from {opacity: 0} to {opacity: 1} }
@keyframes slideRight { from {transform: translateX(100%)} to {transform: translateX(0)} }

/* ===================== Hero ===================== */
.hero {
    position: relative;
    padding: 80px 0 100px;
    background:
        radial-gradient(ellipse 80% 60% at 50% 0%, var(--gold-100) 0%, transparent 70%),
        linear-gradient(180deg, var(--cream-100) 0%, var(--cream-50) 100%);
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    top: -60px; right: -100px;
    width: 480px; height: 480px;
    background: radial-gradient(circle, rgba(15, 76, 58, 0.08), transparent 60%);
    pointer-events: none;
}
.hero::after {
    content: '◆ ◆ ◆';
    position: absolute;
    top: 60px; left: 5%;
    font-size: 12px; letter-spacing: 8px;
    color: var(--gold-500);
    opacity: 0.5;
}

.hero__inner {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 60px;
    align-items: center;
}
@media (max-width: 960px) {
    .hero { padding: 56px 0 72px; }
    .hero__inner { grid-template-columns: 1fr; gap: 40px; }
}
.hero__title {
    font-size: clamp(32px, 6vw, 76px);
    line-height: 1.08;
    margin: 16px 0 20px;
    color: var(--emerald-900);
    word-break: keep-all;
    overflow-wrap: break-word;
    hyphens: none;
}
.hero__title em {
    font-style: italic;
    color: var(--gold-600);
    font-weight: 500;
    white-space: nowrap;
}
.hero__title .nw { white-space: nowrap; }
@media (max-width: 480px) {
    .hero__title { font-size: 30px; line-height: 1.15; }
}
.hero__sub {
    font-size: 18px;
    color: var(--ink-700);
    margin-bottom: 32px;
    max-width: 540px;
}
.hero__cta {
    display: flex; flex-wrap: wrap; gap: 12px;
}
.btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 14px 24px;
    border-radius: 999px;
    font-weight: 600; font-size: 15px;
    border: 1px solid transparent;
    transition: all 0.25s;
    cursor: pointer;
    text-decoration: none;
}
.btn--primary {
    background: var(--emerald-800); color: var(--cream-50);
    box-shadow: 0 6px 18px rgba(15, 76, 58, 0.25);
}
.btn--primary:hover {
    background: var(--gold-600); color: var(--cream-50);
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(181, 145, 84, 0.45);
}
.btn--ghost {
    background: transparent; color: var(--emerald-800);
    border-color: var(--emerald-800);
}
.btn--ghost:hover {
    background: var(--emerald-800); color: var(--cream-50);
}
.btn--gold {
    background: linear-gradient(135deg, var(--gold-500), var(--gold-700));
    color: var(--ink-900); font-weight: 700;
    box-shadow: 0 8px 24px rgba(181, 145, 84, 0.4);
}
.btn--gold:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(181, 145, 84, 0.55);
    color: var(--ink-900);
}
.btn--block { width: 100%; justify-content: center; }
.btn--lg { padding: 18px 28px; font-size: 16px; }

.hero__stats {
    display: flex; gap: 40px;
    margin-top: 48px;
    padding-top: 28px;
    border-top: 1px solid var(--cream-300);
}
.hero__stat-num {
    font-family: var(--font-display);
    font-size: 36px;
    font-weight: 600;
    color: var(--emerald-800);
    line-height: 1;
}
.hero__stat-num small { color: var(--gold-600); font-style: italic; font-size: 22px; }
.hero__stat-lb {
    font-size: 13px; color: var(--ink-500);
    margin-top: 6px;
}

/* Hero card (right side) */
.hero__card {
    position: relative;
    padding: 36px 32px;
    background: var(--cream-50);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    border: 1px solid var(--cream-300);
}
.hero__card::before {
    content: '';
    position: absolute;
    top: -2px; left: -2px; right: -2px; bottom: -2px;
    background: linear-gradient(135deg, var(--gold-500), var(--emerald-700));
    border-radius: var(--radius-lg);
    z-index: -1;
    opacity: 0.6;
}
.hero__card-eye {
    font-family: var(--font-display); font-style: italic;
    font-size: 18px; color: var(--gold-600);
}
.hero__card-h {
    font-size: 26px;
    margin: 8px 0 4px;
    color: var(--emerald-900);
}
.hero__card-meta {
    font-size: 13px; color: var(--ink-500);
    margin-bottom: 20px;
}
.hero__card-price {
    display: flex; align-items: baseline; gap: 12px;
    margin: 16px 0 4px;
}
.hero__card-price .new {
    font-family: var(--font-display);
    font-size: 44px; font-weight: 600;
    color: var(--emerald-800);
}
.hero__card-price .old {
    font-size: 16px; color: var(--ink-400);
    text-decoration: line-through;
}
.hero__card-discount {
    display: inline-block;
    background: var(--terracotta); color: white;
    padding: 4px 10px; border-radius: 4px;
    font-size: 12px; font-weight: 600; letter-spacing: 0.5px;
    margin-bottom: 14px;
}
.hero__card-bullets {
    list-style: none;
    padding: 0; margin: 12px 0 24px;
}
.hero__card-bullets li {
    padding: 8px 0;
    font-size: 14.5px;
    border-bottom: 1px solid var(--cream-200);
    color: var(--ink-700);
    display: flex; gap: 10px;
}
.hero__card-bullets li:last-child { border: none; }
.hero__card-bullets li::before {
    content: '◆';
    color: var(--gold-500);
    flex-shrink: 0;
}

/* ===================== Section pattern ===================== */
.section {
    padding: 88px 0;
    position: relative;
}
.section--alt { background: var(--cream-50); }
.section--dark {
    background: var(--emerald-900);
    color: var(--cream-100);
}
.section--dark h1, .section--dark h2, .section--dark h3 { color: var(--cream-50); }
.section--dark p { color: rgba(250, 247, 240, 0.85); }
.section--dark .eyebrow { color: var(--gold-500); }

.section__head {
    max-width: 760px;
    margin: 0 auto 56px;
    text-align: center;
}
.section__head--left { text-align: left; margin-left: 0; }
.section__head h2 { margin: 12px 0 16px; }
.section__head p { font-size: 18px; color: var(--ink-500); }

/* ===================== Pillars (3 col) ===================== */
.pillars {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}
@media (max-width: 768px) { .pillars { grid-template-columns: 1fr; } }
.pillar {
    background: var(--cream-50);
    padding: 36px 28px;
    border-radius: var(--radius);
    border: 1px solid var(--cream-300);
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}
.pillar:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
    border-color: var(--gold-300);
}
.pillar__num {
    font-family: var(--font-display); font-style: italic;
    font-size: 64px; line-height: 1;
    color: var(--gold-300);
    position: absolute;
    top: 16px; right: 24px;
}
.pillar__icon {
    width: 56px; height: 56px;
    border-radius: 12px;
    background: var(--emerald-50);
    display: flex; align-items: center; justify-content: center;
    font-size: 26px; margin-bottom: 16px;
    color: var(--emerald-700);
}
.pillar h3 { font-size: 22px; margin-bottom: 12px; }
.pillar p { font-size: 15px; color: var(--ink-700); margin-bottom: 0; }

/* ===================== Posts grid ===================== */
.posts {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}
@media (max-width: 960px) { .posts { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .posts { grid-template-columns: 1fr; } }
.post-card {
    background: var(--cream-50);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--cream-300);
    transition: all 0.3s;
    display: flex; flex-direction: column;
}
.post-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
    border-color: var(--gold-300);
}
.post-card__cover {
    aspect-ratio: 16/9;
    background: linear-gradient(135deg, var(--emerald-700), var(--emerald-900));
    position: relative;
    overflow: hidden;
}
.post-card__cover::before {
    content: '';
    position: absolute; inset: 0;
    background:
        radial-gradient(circle at 30% 30%, rgba(201, 169, 110, 0.4), transparent 50%),
        radial-gradient(circle at 70% 70%, rgba(46, 139, 107, 0.3), transparent 50%);
}
.post-card__cover-num {
    position: absolute;
    bottom: 12px; left: 16px;
    font-family: var(--font-display); font-style: italic;
    font-size: 64px; line-height: 1;
    color: var(--gold-300);
}
.post-card__cover-cat {
    position: absolute;
    top: 14px; left: 16px;
    background: rgba(250, 247, 240, 0.92);
    color: var(--emerald-900);
    padding: 4px 10px;
    font-size: 11px; font-weight: 600; letter-spacing: 1px;
    text-transform: uppercase;
    border-radius: 4px;
}
.post-card__body { padding: 22px; flex-grow: 1; display: flex; flex-direction: column; }
.post-card__title {
    font-family: var(--font-display);
    font-size: 22px; line-height: 1.25;
    color: var(--emerald-900);
    margin: 0 0 10px;
}
.post-card__title a { color: inherit; }
.post-card__title a:hover { color: var(--gold-600); }
.post-card__excerpt {
    font-size: 14px; color: var(--ink-500);
    flex-grow: 1;
    margin-bottom: 16px;
}
.post-card__meta {
    display: flex; gap: 12px;
    font-size: 12px; color: var(--ink-400);
    border-top: 1px solid var(--cream-200);
    padding-top: 14px;
}
.post-card__meta span::before { content: '· '; margin-right: 6px; color: var(--gold-500); }
.post-card__meta span:first-child::before { content: ''; margin: 0; }

/* Variations: cover hue */
.post-card__cover[data-hue="2"]  { background: linear-gradient(135deg, #1A6B52, #0A3128); }
.post-card__cover[data-hue="3"]  { background: linear-gradient(135deg, #C9A96E, #9C7A3F); }
.post-card__cover[data-hue="4"]  { background: linear-gradient(135deg, #2E8B6B, #0F4C3A); }
.post-card__cover[data-hue="5"]  { background: linear-gradient(135deg, #B85C44, #5C2A1F); }
.post-card__cover[data-hue="6"]  { background: linear-gradient(135deg, #0A3128, #1A6B52); }
.post-card__cover[data-hue="7"]  { background: linear-gradient(135deg, #C77D5A, #9C7A3F); }
.post-card__cover[data-hue="8"]  { background: linear-gradient(135deg, #1A6B52, #C9A96E); }
.post-card__cover[data-hue="9"]  { background: linear-gradient(135deg, #0F4C3A, #2E8B6B); }
.post-card__cover[data-hue="10"] { background: linear-gradient(135deg, #9C7A3F, #2E8B6B); }
.post-card__cover[data-hue="11"] { background: linear-gradient(135deg, #1A6B52, #B85C44); }
.post-card__cover[data-hue="12"] { background: linear-gradient(135deg, #0A3128, #C9A96E); }

/* ===================== Course / Pricing ===================== */
.course {
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    gap: 56px;
    align-items: center;
}
@media (max-width: 960px) { .course { grid-template-columns: 1fr; } }

.course__visual {
    position: relative;
    background: linear-gradient(135deg, var(--emerald-800), var(--emerald-900));
    border-radius: var(--radius-lg);
    padding: 40px;
    color: var(--cream-50);
    overflow: hidden;
    min-height: 480px;
    display: flex; flex-direction: column; justify-content: space-between;
}
.course__visual::before {
    content: '';
    position: absolute; inset: 0;
    background:
        radial-gradient(circle at 80% 20%, rgba(201, 169, 110, 0.25), transparent 50%),
        radial-gradient(circle at 20% 80%, rgba(46, 139, 107, 0.4), transparent 50%);
    pointer-events: none;
}
.course__visual::after {
    content: '◆';
    position: absolute;
    bottom: -50px; right: -30px;
    font-size: 240px;
    color: rgba(201, 169, 110, 0.08);
    line-height: 1;
}
.course__visual-eye {
    font-family: var(--font-body);
    color: var(--gold-500);
    font-size: 12px; font-weight: 600; letter-spacing: 3px; text-transform: uppercase;
    position: relative; z-index: 1;
}
.course__visual-h {
    font-family: var(--font-display);
    font-size: clamp(34px, 4vw, 48px);
    line-height: 1.05;
    color: var(--cream-50);
    margin: 12px 0 16px;
    position: relative; z-index: 1;
}
.course__visual-h em { color: var(--gold-500); font-weight: 500; }
.course__visual-meta {
    display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
    margin-top: auto;
    position: relative; z-index: 1;
    padding-top: 24px;
    border-top: 1px solid rgba(201, 169, 110, 0.3);
}
.course__visual-meta dt {
    font-size: 12px; color: var(--gold-300);
    letter-spacing: 1px; text-transform: uppercase;
    margin-bottom: 4px;
}
.course__visual-meta dd {
    margin: 0;
    font-family: var(--font-display);
    font-size: 18px; color: var(--cream-50);
}

.course__content h2 { margin-bottom: 16px; }
.course__features {
    list-style: none; padding: 0; margin: 24px 0 0;
}
.course__features li {
    padding: 14px 0;
    border-bottom: 1px solid var(--cream-300);
    display: flex; gap: 14px; align-items: flex-start;
}
.course__features li:last-child { border: none; }
.course__features-ico {
    width: 32px; height: 32px;
    border-radius: 50%;
    background: var(--gold-100);
    color: var(--gold-700);
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    font-weight: 700;
}
.course__features strong { color: var(--emerald-900); display: block; margin-bottom: 2px; }
.course__features span { font-size: 14px; color: var(--ink-500); }

/* ===================== Form ===================== */
.signup {
    background: var(--cream-50);
    border-radius: var(--radius-lg);
    padding: clamp(32px, 5vw, 56px);
    box-shadow: var(--shadow);
    border: 1px solid var(--cream-300);
    position: relative;
    overflow: hidden;
}
.signup::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; height: 4px;
    background: linear-gradient(90deg, var(--gold-500), var(--emerald-700));
}
.signup__head { text-align: center; margin-bottom: 28px; }
.signup__head .eyebrow { justify-content: center; }
.signup__head h3 {
    margin: 12px 0 8px;
    font-size: clamp(28px, 3vw, 36px);
}
.signup__head p { color: var(--ink-500); font-size: 15px; max-width: 460px; margin: 0 auto; }

.signup__price {
    text-align: center;
    margin: 24px 0 32px;
    padding: 20px;
    background: linear-gradient(135deg, var(--gold-100), var(--cream-200));
    border-radius: var(--radius);
}
.signup__price-old {
    display: block;
    font-size: 14px;
    color: var(--ink-500);
    text-decoration: line-through;
}
.signup__price-new {
    font-family: var(--font-display);
    font-size: 44px;
    font-weight: 600;
    color: var(--emerald-900);
    line-height: 1;
}
.signup__price-tag {
    display: inline-block;
    background: var(--terracotta); color: white;
    padding: 4px 12px; border-radius: 4px;
    font-size: 12px; font-weight: 700; letter-spacing: 1px;
    margin-top: 8px;
}

.field { margin-bottom: 16px; }
.field label {
    display: block;
    font-size: 13px; font-weight: 600;
    color: var(--ink-700);
    margin-bottom: 6px;
    letter-spacing: 0.3px;
}
.field input,
.field select,
.field textarea {
    width: 100%;
    padding: 13px 16px;
    border: 1.5px solid var(--cream-300);
    border-radius: 10px;
    font-family: inherit;
    font-size: 15px;
    color: var(--ink-900);
    background: var(--cream-50);
    transition: border-color 0.2s, box-shadow 0.2s;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
    outline: none;
    border-color: var(--emerald-700);
    box-shadow: 0 0 0 3px rgba(15, 76, 58, 0.1);
}
.field textarea { min-height: 90px; resize: vertical; }

/* honeypot */
.hp-field {
    position: absolute !important;
    left: -9999px !important; top: -9999px !important;
    width: 1px !important; height: 1px !important;
    opacity: 0 !important;
    pointer-events: none !important;
    tab-index: -1;
}

.form__notice {
    margin-top: 16px;
    padding: 12px 14px;
    border-radius: 8px;
    font-size: 14px;
    display: none;
}
.form__notice--ok {
    background: rgba(46, 139, 107, 0.12);
    border-left: 3px solid var(--emerald-600);
    color: var(--emerald-900);
}
.form__notice--err {
    background: rgba(184, 92, 68, 0.1);
    border-left: 3px solid var(--terracotta);
    color: var(--terracotta);
}
.form__notice.is-shown { display: block; }
.form__legal {
    margin-top: 14px; font-size: 12.5px; color: var(--ink-400);
    text-align: center;
}

/* ===================== Process timeline ===================== */
.process {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    counter-reset: step;
}
@media (max-width: 768px) { .process { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .process { grid-template-columns: 1fr; } }
.process__step {
    counter-increment: step;
    background: var(--cream-50);
    padding: 28px 24px;
    border-radius: var(--radius);
    border: 1px solid var(--cream-300);
    position: relative;
}
.process__step::before {
    content: counter(step, decimal-leading-zero);
    font-family: var(--font-display); font-style: italic;
    font-size: 20px;
    color: var(--gold-600);
    display: block;
    margin-bottom: 12px;
}
.process__step h4 { font-size: 18px; margin-bottom: 8px; }
.process__step p { font-size: 14px; color: var(--ink-500); margin: 0; }

/* ===================== Testimonials ===================== */
.testis {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
@media (max-width: 960px) { .testis { grid-template-columns: 1fr; } }
.testi {
    background: rgba(250, 247, 240, 0.05);
    backdrop-filter: blur(10px);
    padding: 32px 28px;
    border-radius: var(--radius);
    border: 1px solid rgba(201, 169, 110, 0.25);
    position: relative;
}
.testi::before {
    content: '"';
    position: absolute;
    top: -8px; left: 16px;
    font-family: var(--font-display);
    font-size: 80px; line-height: 1;
    color: var(--gold-500);
    opacity: 0.6;
}
.section--dark .testi p { color: rgba(250, 247, 240, 0.85); }
.testi p {
    font-family: var(--font-display);
    font-size: 19px;
    font-style: italic;
    line-height: 1.5;
    margin-bottom: 20px;
}
.testi__author {
    display: flex; align-items: center; gap: 12px;
    border-top: 1px solid rgba(201, 169, 110, 0.2);
    padding-top: 16px;
}
.testi__author-avatar {
    width: 44px; height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gold-500), var(--emerald-700));
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; color: var(--cream-50);
    font-size: 16px;
}
.testi__author-name { font-weight: 600; color: var(--cream-50); font-size: 15px; line-height: 1.2; }
.testi__author-title { font-size: 12px; color: var(--gold-300); }

/* ===================== FAQ ===================== */
.faq { max-width: 820px; margin: 0 auto; }
.faq__item {
    background: var(--cream-50);
    border: 1px solid var(--cream-300);
    border-radius: var(--radius);
    margin-bottom: 12px;
    overflow: hidden;
    transition: border-color 0.2s;
}
.faq__item[open] { border-color: var(--gold-300); }
.faq__q {
    padding: 20px 24px;
    font-weight: 600;
    cursor: pointer;
    font-size: 17px;
    color: var(--emerald-900);
    list-style: none;
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.faq__q::-webkit-details-marker { display: none; }
.faq__q::after {
    content: '+';
    font-family: var(--font-display);
    font-size: 28px; color: var(--gold-600);
    flex-shrink: 0;
    line-height: 1;
    transition: transform 0.2s;
}
.faq__item[open] .faq__q::after { transform: rotate(45deg); }
.faq__a {
    padding: 0 24px 24px;
    color: var(--ink-700);
    font-size: 15.5px;
    line-height: 1.7;
}

/* ===================== Bottom-nav ===================== */
.bottomnav {
    display: none;
    position: fixed; bottom: 0; left: 0; right: 0;
    z-index: 40;
    background: rgba(250, 247, 240, 0.95);
    backdrop-filter: saturate(180%) blur(10px);
    -webkit-backdrop-filter: saturate(180%) blur(10px);
    border-top: 1px solid var(--cream-300);
    padding: 8px 4px calc(8px + env(safe-area-inset-bottom));
    grid-template-columns: repeat(5, 1fr);
}
@media (max-width: 960px) { .bottomnav { display: grid; } }
.bottomnav__item {
    display: flex; flex-direction: column; align-items: center; gap: 2px;
    padding: 6px 2px;
    color: var(--ink-500);
    font-size: 11px; font-weight: 500;
    text-align: center;
}
.bottomnav__item:hover { color: var(--emerald-800); }
.bottomnav__ico { font-size: 20px; line-height: 1; }
.bottomnav__lb { line-height: 1.1; }
.bottomnav__item--center { position: relative; }
.bottomnav__center {
    width: 52px; height: 52px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gold-500), var(--gold-700));
    display: flex; align-items: center; justify-content: center;
    margin-top: -22px;
    box-shadow: 0 8px 20px rgba(181, 145, 84, 0.5);
}
.bottomnav__center-ico {
    color: var(--cream-50);
    font-size: 22px;
    font-weight: 700;
}
.bottomnav__item--center .bottomnav__lb { margin-top: 4px; color: var(--gold-700); font-weight: 600; }

/* Đẩy content khi có bottomnav */
@media (max-width: 960px) {
    body { padding-bottom: 72px; }
}

/* ===================== Footer ===================== */
.footer {
    background: var(--emerald-900);
    color: rgba(250, 247, 240, 0.85);
    padding: 64px 0 24px;
    margin-top: 72px;
}
.footer__inner {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 48px;
}
@media (max-width: 768px) {
    .footer__inner { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 480px) {
    .footer__inner { grid-template-columns: 1fr; }
}
.footer__col h4 {
    color: var(--gold-500);
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 20px;
    font-family: var(--font-body);
    font-weight: 600;
}
.footer__col a {
    display: block;
    color: rgba(250, 247, 240, 0.7);
    padding: 4px 0;
    font-size: 14px;
    transition: color 0.2s;
}
.footer__col a:hover { color: var(--gold-500); }

.footer__brand {
    font-family: var(--font-display);
    color: var(--cream-50);
    margin-bottom: 16px;
}
.footer__brand strong { display: block; font-size: 22px; }
.footer__brand span { color: var(--gold-500); font-style: italic; font-size: 16px; }
.footer__desc { font-size: 14px; line-height: 1.65; color: rgba(250, 247, 240, 0.7); margin-bottom: 16px; }
.footer__desc a { color: var(--gold-500); display: inline; }

.footer__social {
    display: flex; gap: 8px;
    margin-top: 12px;
}
.footer__social a {
    width: 40px; height: 40px;
    border-radius: 50%;
    background: rgba(201, 169, 110, 0.15);
    display: flex; align-items: center; justify-content: center;
    color: var(--gold-300);
    font-weight: 600;
    padding: 0;
}
.footer__social a:hover {
    background: var(--gold-600); color: var(--emerald-900);
}

.footer__addr { font-size: 13px; color: rgba(250, 247, 240, 0.6); margin-top: 8px; }

.footer__bottom {
    max-width: var(--container);
    margin: 48px auto 0;
    padding: 24px;
    border-top: 1px solid rgba(201, 169, 110, 0.2);
    font-size: 13px;
    color: rgba(250, 247, 240, 0.55);
    display: flex; flex-wrap: wrap; gap: 8px; justify-content: center;
}
.footer__bottom a { color: var(--gold-500); }
.footer__sep { color: var(--gold-700); }

/* ===================== Article (post.php) ===================== */
.article {
    max-width: 760px;
    margin: 0 auto;
    padding: 56px 24px 24px;
}
.article__breadcrumb {
    font-size: 13px; color: var(--ink-500);
    margin-bottom: 16px;
    letter-spacing: 0.5px;
}
.article__breadcrumb a { color: var(--gold-700); }
.article__cat {
    display: inline-block;
    background: var(--gold-100); color: var(--gold-700);
    padding: 4px 12px; border-radius: 4px;
    font-size: 11px; font-weight: 600; letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 16px;
}
.article__title {
    font-size: clamp(32px, 5vw, 52px);
    line-height: 1.1;
    margin-bottom: 20px;
}
.article__lede {
    font-size: 21px;
    line-height: 1.55;
    color: var(--ink-700);
    font-family: var(--font-display);
    font-style: italic;
    margin-bottom: 32px;
    padding-bottom: 32px;
    border-bottom: 1px solid var(--cream-300);
}
.article__meta {
    display: flex; gap: 16px; flex-wrap: wrap;
    font-size: 13px;
    color: var(--ink-500);
    margin-bottom: 28px;
}
.article__meta strong { color: var(--emerald-800); font-weight: 600; }
.article__hero {
    aspect-ratio: 16/9;
    border-radius: var(--radius);
    margin-bottom: 36px;
    background: linear-gradient(135deg, var(--emerald-700), var(--emerald-900));
    position: relative;
    overflow: hidden;
}
.article__hero::before {
    content: '';
    position: absolute; inset: 0;
    background:
        radial-gradient(circle at 30% 30%, rgba(201, 169, 110, 0.4), transparent 50%),
        radial-gradient(circle at 70% 70%, rgba(46, 139, 107, 0.3), transparent 50%);
}
.article__hero-deco {
    position: absolute;
    inset: 0;
    display: flex; align-items: center; justify-content: center;
    font-family: var(--font-display);
    font-style: italic;
    font-size: 200px;
    color: rgba(201, 169, 110, 0.2);
    line-height: 1;
}

.article__body {
    font-size: 18px;
    line-height: 1.75;
    color: var(--ink-700);
}
.article__body h2 {
    font-size: clamp(24px, 3vw, 32px);
    margin-top: 48px;
    margin-bottom: 16px;
    color: var(--emerald-900);
}
.article__body h3 {
    font-size: 22px;
    margin-top: 32px;
    margin-bottom: 12px;
    color: var(--emerald-900);
}
.article__body p { margin-bottom: 18px; }
.article__body strong { color: var(--emerald-900); font-weight: 600; }
.article__body em { color: var(--gold-700); font-style: italic; }
.article__body a {
    color: var(--emerald-800);
    border-bottom: 1.5px solid var(--gold-300);
    transition: all 0.2s;
}
.article__body a:hover {
    color: var(--gold-600);
    border-color: var(--gold-600);
}
.article__body ul, .article__body ol {
    margin: 0 0 18px;
    padding-left: 24px;
}
.article__body li { margin-bottom: 8px; }
.article__body ul li::marker { color: var(--gold-500); }
.article__body blockquote {
    margin: 28px 0;
    padding: 16px 24px;
    border-left: 4px solid var(--gold-500);
    background: var(--cream-50);
    font-family: var(--font-display);
    font-style: italic;
    font-size: 20px;
    color: var(--emerald-900);
    border-radius: 4px;
}
.article__body table {
    width: 100%;
    margin: 24px 0;
    border-collapse: collapse;
    background: var(--cream-50);
    border-radius: var(--radius);
    overflow: hidden;
    font-size: 15px;
}
.article__body th, .article__body td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid var(--cream-300);
}
.article__body th { background: var(--emerald-50); color: var(--emerald-900); font-weight: 600; }
.article__body tr:last-child td { border-bottom: none; }

.article__body .callout {
    margin: 28px 0;
    padding: 20px 24px;
    background: linear-gradient(135deg, var(--cream-50), var(--gold-100));
    border-left: 4px solid var(--gold-500);
    border-radius: var(--radius);
}
.article__body .callout strong:first-child {
    display: block;
    font-family: var(--font-display);
    font-size: 18px;
    color: var(--emerald-900);
    margin-bottom: 6px;
}

.article__cta {
    margin: 48px 0 24px;
    padding: 36px 32px;
    background: var(--emerald-900);
    color: var(--cream-50);
    border-radius: var(--radius-lg);
    text-align: center;
    position: relative;
    overflow: hidden;
}
.article__cta::before {
    content: '◆';
    position: absolute;
    top: -10px; right: -20px;
    font-size: 120px;
    color: rgba(201, 169, 110, 0.1);
    line-height: 1;
}
.article__cta h3 {
    color: var(--cream-50);
    margin-bottom: 12px;
    font-size: 26px;
}
.article__cta p {
    color: rgba(250, 247, 240, 0.85);
    font-size: 16px;
    margin-bottom: 20px;
}

.article__related {
    margin-top: 64px;
    padding-top: 48px;
    border-top: 1px solid var(--cream-300);
}
.article__related h3 { margin-bottom: 24px; }

/* ===================== Animations ===================== */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(20px);
        transition: opacity 0.8s ease, transform 0.8s ease;
    }
    .reveal.is-visible {
        opacity: 1;
        transform: none;
    }
    .reveal--delay-1 { transition-delay: 0.1s; }
    .reveal--delay-2 { transition-delay: 0.2s; }
    .reveal--delay-3 { transition-delay: 0.3s; }
}

/* Print */
@media print {
    .topbar, .bottomnav, .footer__bottom, .article__cta, .article__related { display: none; }
    body { background: white; padding: 0; }
}

/* ===================== Tag system (đợt B1) ===================== */
.tag-cloud {
    display: flex; flex-wrap: wrap; gap: 8px 10px;
}
.tag-cloud--lg { gap: 10px 12px; }
.tag-chip {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 8px 14px;
    border-radius: 999px;
    background: var(--cream-50);
    border: 1px solid var(--cream-300);
    color: var(--emerald-800);
    font-size: 13px; font-weight: 500;
    text-decoration: none;
    transition: all 0.2s;
    line-height: 1.2;
}
.tag-chip small {
    color: var(--gold-700);
    font-size: 11px;
    font-weight: 600;
    opacity: 0.8;
}
.tag-chip:hover {
    background: var(--emerald-800);
    color: var(--cream-50);
    border-color: var(--emerald-800);
    transform: translateY(-1px);
}
.tag-chip:hover small { color: var(--gold-300); }
.tag-cloud--lg .tag-chip {
    padding: 10px 18px;
    font-size: 14px;
}

.article__tags {
    margin-top: 56px;
    padding-top: 32px;
    border-top: 1px solid var(--cream-300);
    display: flex; flex-direction: column; gap: 14px;
}
.article__tags-label {
    font-family: var(--font-display);
    font-size: 16px;
    font-style: italic;
    color: var(--gold-700);
}

/* ===================== Tag page hero ===================== */
.tag-hero {
    padding: 72px 0 48px;
    background:
        radial-gradient(ellipse 60% 40% at 50% 0%, var(--gold-100) 0%, transparent 70%),
        var(--cream-100);
    border-bottom: 1px solid var(--cream-300);
}
.tag-hero__title {
    font-family: var(--font-display);
    font-size: clamp(36px, 5vw, 56px);
    line-height: 1.1;
    color: var(--emerald-900);
    margin: 16px 0 16px;
    word-break: keep-all;
}
.tag-hero__title em {
    font-style: italic;
    color: var(--gold-600);
    font-weight: 500;
    white-space: nowrap;
}
.tag-hero__sub {
    font-size: 17px;
    color: var(--ink-500);
    max-width: 640px;
}
@media (max-width: 480px) {
    .tag-hero { padding: 56px 0 36px; }
    .tag-hero__title { font-size: 30px; }
}

/* ===================== Bottom-nav refinement ===================== */
.bottomnav__center {
    width: 44px; height: 44px;
    margin-top: -16px;
    box-shadow: 0 6px 14px rgba(181, 145, 84, 0.45);
}
.bottomnav__center-ico {
    font-size: 18px;
}
.bottomnav__item--center .bottomnav__lb {
    margin-top: 2px;
    font-size: 11px;
}
@media (max-width: 380px) {
    .bottomnav__item { font-size: 10px; padding: 6px 1px; }
    .bottomnav__ico { font-size: 18px; }
    .bottomnav__center { width: 40px; height: 40px; margin-top: -14px; }
}


/* ===================== SVG hero (đợt B2) ===================== */

/* Article single — SVG hero */
.article__hero--svg {
    aspect-ratio: 2 / 1;
    background: var(--cream-100);
}
.article__hero--svg::before { display: none; }
.article__hero-img {
    width: 100%; height: 100%;
    display: block;
    object-fit: cover;
}

/* Post-card cover — SVG variant */
.post-card__cover--svg .post-card__cover-num { display: none; }
.post-card__cover--svg::before { display: none; }
.post-card__cover-img {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}
.post-card__cover--svg:hover .post-card__cover-img {
    transform: scale(1.04);
}
/* Make category badge stand out over SVG */
.post-card__cover--svg .post-card__cover-cat {
    z-index: 2;
    backdrop-filter: blur(4px);
}


/* ===================== i18n dual-flag switcher (đợt B3a + hotfix-3) ===================== */
.lang-pair {
    display: inline-flex; align-items: center; gap: 4px;
    padding: 3px;
    border-radius: 999px;
    background: var(--cream-100);
    border: 1px solid var(--cream-300);
}
.lang-flag {
    display: inline-flex; align-items: center; gap: 5px;
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 13px; font-weight: 600;
    text-decoration: none;
    color: var(--ink-500);
    opacity: 0.55;
    filter: grayscale(0.6);
    transition: all 0.2s ease;
    line-height: 1;
}
.lang-flag:hover { opacity: 0.85; filter: grayscale(0); }
.lang-flag.is-active {
    background: linear-gradient(180deg, var(--gold-500), var(--gold-700));
    color: var(--cream-50);
    opacity: 1;
    filter: grayscale(0);
    box-shadow: 0 2px 6px rgba(154, 122, 64, 0.35);
    cursor: default;
}
.lang-flag__ico { font-size: 16px; line-height: 1; }
.lang-flag__code { font-family: var(--font-display); font-style: italic; font-weight: 700; letter-spacing: 1px; }
@media (max-width: 960px) {
    .lang-flag__code { display: none; }
    .lang-flag { padding: 5px 7px; }
    .lang-pair { gap: 2px; padding: 2px; }
}

/* Drawer dual-flag (mobile) */
.drawer__lang-label {
    font-family: var(--font-display);
    font-style: italic;
    color: var(--gold-700);
    font-size: 14px;
    padding: 4px 4px 8px;
    margin-top: 4px;
    letter-spacing: 1px;
}
.drawer__lang-pair {
    display: flex; gap: 8px;
    padding: 0 4px;
}
.drawer__lang-flag {
    flex: 1;
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 12px;
    border-radius: 10px;
    background: var(--cream-100);
    border: 1px solid var(--cream-300);
    color: var(--ink-700);
    font-weight: 600;
    text-decoration: none;
    opacity: 0.7;
    filter: grayscale(0.5);
    transition: all 0.2s;
}
.drawer__lang-flag:hover { opacity: 1; filter: grayscale(0); }
.drawer__lang-flag.is-active {
    background: var(--emerald-900);
    color: var(--cream-50);
    border-color: var(--emerald-900);
    opacity: 1;
    filter: grayscale(0);
    cursor: default;
}

