/* ==========================================================================
   Ms. Mai Huynh English — Hatching Dragons–Inspired Design System
   Tactile risograph paper-cut warmth · Flat editorial clarity · Zero shadows
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Be+Vietnam+Pro:ital,wght@0,400;0,500;0,600;0,700;0,800;1,400;1,600&display=swap');

:root {
  /* Core Hatching Dragons Palette */
  --hd-white: #FFFFFF;
  --hd-plum: #782147;
  --hd-plum-deep: #581533;
  --hd-plum-soft: rgba(120, 33, 71, 0.80);
  --hd-plum-muted: rgba(120, 33, 71, 0.64);
  --hd-forest: #2B5C47;
  --hd-forest-deep: #1E4434;
  --hd-gold: #F0D485;
  --hd-ochre: #8F6B2B;
  --hd-ochre-deep: #6E511D;
  --hd-sage: #B0D1A1;
  --hd-violet: #D6BFD9;
  --hd-peach: #F5C5B2;
  --hd-orange: #ED7D45;
  --hd-sky: #BFD4EB;
  --hd-pink: #E86CA8;
  --hd-offwhite: #EBEBEB;
  --hd-tint: #FAF8F5;

  /* Typography */
  --hd-font: 'Be Vietnam Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Layout Rhythm */
  --hd-container: 1220px;
  --hd-gutter: clamp(20px, 4vw, 44px);
  --hd-radius-card: 22px;
  --hd-radius-sm: 14px;
  --hd-nav-height: 60px;

  /* Motion */
  --hd-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --hd-t-fast: 0.2s ease;
  --hd-t-reveal: 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Reset & Base ---------- */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  background: var(--hd-white);
}

body {
  margin: 0;
  font-family: var(--hd-font);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.65;
  color: var(--hd-plum);
  background-color: var(--hd-white);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img, svg, audio, video {
  display: block;
  max-width: 100%;
}

button, input, select, textarea {
  font: inherit;
  color: inherit;
}

a {
  color: inherit;
}

h1, h2, h3, h4, h5, h6 {
  margin: 0;
  color: var(--hd-plum);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -0.02em;
}

p {
  margin: 0;
}

:focus-visible {
  outline: 2.5px solid var(--hd-plum);
  outline-offset: 3px;
  border-radius: 6px;
}

.hd-svg-defs {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
  pointer-events: none;
}

/* ---------- Skip Link ---------- */
.hd-skip-link {
  position: fixed;
  top: -100px;
  left: 16px;
  z-index: 1200;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--hd-plum);
  color: var(--hd-white);
  font-weight: 700;
  font-size: 0.88rem;
  text-decoration: none;
  transition: top 0.2s ease;
}

.hd-skip-link:focus {
  top: 16px;
}

/* ---------- Page Load Transition Overlay ---------- */
.hd-transition-overlay,
#hd-transition-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: var(--hd-white);
  opacity: 1;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.hd-transition-overlay.is-hidden,
#hd-transition-overlay.is-hidden {
  opacity: 0;
  visibility: hidden;
}

/* ---------- Layout Utilities ---------- */
.hd-container {
  width: 100%;
  max-width: calc(var(--hd-container) + var(--hd-gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--hd-gutter);
}

.hd-section {
  padding-block: clamp(56px, 7.5vw, 98px);
  position: relative;
}

.hd-section--tight {
  padding-block: clamp(36px, 5vw, 64px);
}

.hd-section--flush-top {
  padding-top: 0;
}

.hd-eyebrow {
  display: inline-block;
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--hd-plum);
  margin-bottom: 14px;
}

.hd-section-title {
  font-size: clamp(1.9rem, 3.1vw, 2.7rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.025em;
  color: var(--hd-plum);
}

.hd-lead {
  margin-top: 14px;
  font-size: 0.98rem;
  line-height: 1.7;
  color: var(--hd-plum-soft);
  max-width: 56ch;
}

.hd-inline-link {
  color: var(--hd-plum);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
  transition: color var(--hd-t-fast);
}

.hd-inline-link:hover {
  color: var(--hd-forest);
}

.hd-split-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px 36px;
  margin-bottom: clamp(28px, 3.6vw, 44px);
}

.hd-split-header-copy {
  max-width: 650px;
}

.hd-split-header-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 16px;
  flex-shrink: 0;
}

.hd-carousel-controls {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

/* ==========================================================================
   Floating Frosted-Glass Pill Navbar (Screenshot 1–6)
   ========================================================================== */
.hd-nav-wrap {
  position: fixed;
  top: 16px;
  left: 0;
  right: 0;
  z-index: 900;
  padding-inline: clamp(12px, 3vw, 28px);
  pointer-events: none;
}

.hd-nav {
  pointer-events: auto;
  position: relative;
  max-width: 1040px;
  min-height: var(--hd-nav-height);
  margin-inline: auto;
  padding: 8px 14px 8px 28px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  -webkit-backdrop-filter: blur(18px) saturate(1.25);
  backdrop-filter: blur(18px) saturate(1.25);
  border: 1px solid rgba(255, 255, 255, 0.65);
  transition: background-color 0.25s ease, border-color 0.25s ease;
}

.hd-nav.is-scrolled {
  background: rgba(255, 255, 255, 0.90);
  border-color: rgba(120, 33, 71, 0.08);
}

.hd-nav-group--left,
.hd-nav-group--right {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.2vw, 28px);
}

.hd-nav-group--left {
  justify-content: flex-start;
}

.hd-nav-group--right {
  justify-content: flex-end;
}

.hd-nav-link {
  position: relative;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--hd-forest);
  text-decoration: none;
  padding: 6px 2px;
  white-space: nowrap;
  transition: color var(--hd-t-fast);
}

.hd-nav-link::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 1px;
  height: 2px;
  border-radius: 2px;
  background: var(--hd-plum);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.24s var(--hd-ease);
}

.hd-nav-link:hover,
.hd-nav-link.is-active,
.hd-nav-link[aria-current="page"] {
  color: var(--hd-plum);
}

.hd-nav-link:hover::after,
.hd-nav-link.is-active::after,
.hd-nav-link[aria-current="page"]::after {
  transform: scaleX(1);
}

/* Centered overhanging #2B5C47 organic blob logo */
.hd-brand-blob {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 138px;
  height: 62px;
  margin-block: -10px -18px;
  padding: 6px 14px 8px;
  text-decoration: none;
  isolation: isolate;
  z-index: 2;
  transition: transform 0.24s var(--hd-ease);
}

.hd-brand-blob:hover {
  transform: translateY(-2px) scale(1.03);
}

.hd-brand-blob-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

.hd-brand-blob-bg path {
  fill: var(--hd-forest);
  transition: fill var(--hd-t-fast);
}

.hd-brand-blob:hover .hd-brand-blob-bg path {
  fill: var(--hd-plum);
}

/* Fallback if brand blob lacks inner SVG */
.hd-brand-blob:not(:has(.hd-brand-blob-bg)) {
  background: var(--hd-forest);
  border-radius: 46% 54% 48% 52% / 56% 48% 52% 44%;
}

.hd-brand-blob-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--hd-white);
  font-size: 0.92rem;
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: -0.025em;
  text-align: center;
}

.hd-brand-blob-text span:last-child {
  font-size: 1.02rem;
}

/* Mobile Toggle Button */
.hd-nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 0;
  background: var(--hd-sage);
  color: var(--hd-forest);
  border-radius: 44% 56% 48% 52% / 52% 46% 54% 48%;
  cursor: pointer;
  transition: background-color var(--hd-t-fast), color var(--hd-t-fast);
}

.hd-nav-toggle:hover,
.hd-nav-toggle[aria-expanded="true"] {
  background: var(--hd-violet);
  color: var(--hd-plum);
}

.hd-nav-toggle-bars {
  display: flex;
  flex-direction: column;
  gap: 4.5px;
  width: 18px;
}

.hd-nav-toggle-bars span {
  display: block;
  height: 2.2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.22s ease, opacity 0.22s ease;
}

.hd-nav-toggle[aria-expanded="true"] .hd-nav-toggle-bars span:nth-child(1) {
  transform: translateY(6.7px) rotate(45deg);
}

.hd-nav-toggle[aria-expanded="true"] .hd-nav-toggle-bars span:nth-child(2) {
  opacity: 0;
}

.hd-nav-toggle[aria-expanded="true"] .hd-nav-toggle-bars span:nth-child(3) {
  transform: translateY(-6.7px) rotate(-45deg);
}

/* Mobile Drawer */
.hd-mobile-drawer {
  pointer-events: auto;
  display: none;
  max-width: 1040px;
  margin: 12px auto 0;
  padding: 20px 22px 24px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.96);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  border: 1.5px solid rgba(120, 33, 71, 0.12);
}

.hd-mobile-drawer.is-open {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.hd-mobile-drawer .hd-nav-link {
  padding: 12px 14px;
  border-radius: 14px;
  font-size: 1.02rem;
}

.hd-mobile-drawer .hd-nav-link.is-active,
.hd-mobile-drawer .hd-nav-link[aria-current="page"] {
  background: rgba(176, 209, 161, 0.34);
}

.hd-mobile-drawer .hd-nav-link::after {
  display: none;
}

.hd-mobile-drawer-cta {
  margin-top: 10px;
  padding-top: 14px;
  border-top: 1px solid rgba(120, 33, 71, 0.14);
  display: flex;
}

/* ==========================================================================
   Hand-Cut Faceted SVG Buttons (.hd-btn) & Organic Carousel Arrows
   ========================================================================== */
.hd-btn {
  --btn-bg: var(--hd-plum);
  --btn-ink: var(--hd-white);
  --btn-bg-hover: var(--hd-violet);
  --btn-ink-hover: var(--hd-plum);

  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 28px;
  min-height: 46px;
  border: 0;
  background: transparent;
  color: var(--btn-ink);
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  isolation: isolate;
  user-select: none;
  transition: color var(--hd-t-fast), transform var(--hd-t-fast);
}

.hd-btn-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
}

.hd-btn-bg path {
  fill: var(--btn-bg);
  transition: fill var(--hd-t-fast);
}

/* Graceful fallback for buttons without inner .hd-btn-bg SVG */
.hd-btn:not(:has(.hd-btn-bg)) {
  background: var(--btn-bg);
  border-radius: 26px 22px 28px 20px / 22px 26px 20px 26px;
  transition: background-color var(--hd-t-fast), color var(--hd-t-fast), transform var(--hd-t-fast);
}

.hd-btn:hover {
  color: var(--btn-ink-hover);
}

.hd-btn:hover .hd-btn-bg path {
  fill: var(--btn-bg-hover);
}

.hd-btn:not(:has(.hd-btn-bg)):hover {
  background: var(--btn-bg-hover);
}

.hd-btn:active {
  transform: scale(0.98);
}

.hd-btn-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.hd-btn-chev {
  flex-shrink: 0;
  transition: transform 0.2s var(--hd-ease);
}

.hd-btn:hover .hd-btn-chev {
  transform: translateX(3px);
}

/* Color Variants */
.hd-btn--mauve {
  --btn-bg: var(--hd-plum);
  --btn-ink: var(--hd-white);
  --btn-bg-hover: var(--hd-violet);
  --btn-ink-hover: var(--hd-plum);
}

.hd-btn--gold {
  --btn-bg: var(--hd-gold);
  --btn-ink: var(--hd-ochre-deep);
  --btn-bg-hover: var(--hd-plum);
  --btn-ink-hover: var(--hd-gold);
}

.hd-btn--moss {
  --btn-bg: var(--hd-forest);
  --btn-ink: var(--hd-white);
  --btn-bg-hover: var(--hd-sage);
  --btn-ink-hover: var(--hd-forest);
}

.hd-btn--violet {
  --btn-bg: var(--hd-violet);
  --btn-ink: var(--hd-plum);
  --btn-bg-hover: var(--hd-plum);
  --btn-ink-hover: var(--hd-white);
}

.hd-btn--sage {
  --btn-bg: var(--hd-sage);
  --btn-ink: var(--hd-forest);
  --btn-bg-hover: var(--hd-forest);
  --btn-ink-hover: var(--hd-white);
}

.hd-btn--sky {
  --btn-bg: var(--hd-sky);
  --btn-ink: var(--hd-forest);
  --btn-bg-hover: var(--hd-forest);
  --btn-ink-hover: var(--hd-white);
}

.hd-btn--sm {
  padding: 9px 20px;
  min-height: 40px;
  font-size: 0.86rem;
}

.hd-btn--wide {
  padding: 13px 34px;
  min-height: 48px;
}

/* Organic Sage Carousel Arrow Buttons (< >) */
.hd-arrow-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 42px;
  padding: 0;
  border: 0;
  background: var(--hd-sage);
  color: var(--hd-forest);
  border-radius: 44% 56% 48% 52% / 52% 46% 54% 48%;
  cursor: pointer;
  transition: background-color var(--hd-t-fast), color var(--hd-t-fast), transform var(--hd-t-fast), opacity var(--hd-t-fast);
}

.hd-arrow-btn:nth-child(even) {
  border-radius: 54% 46% 52% 48% / 48% 54% 46% 52%;
}

.hd-arrow-btn:hover:not(:disabled) {
  background: var(--hd-violet);
  color: var(--hd-plum);
  transform: scale(1.05);
}

.hd-arrow-btn:active:not(:disabled) {
  transform: scale(0.96);
}

.hd-arrow-btn:disabled {
  opacity: 0.4;
  cursor: default;
}

.hd-arrow-btn svg {
  width: 18px;
  height: 18px;
}

/* ==========================================================================
   Hero Split-Screen (Screenshot 1)
   ========================================================================== */
.hd-hero {
  position: relative;
  min-height: clamp(640px, 86vh, 840px);
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: stretch;
  background: var(--hd-white);
  overflow: clip;
}

/* Massive peach risograph cutout overlapping left half */
.hd-hero-peach {
  position: absolute;
  top: 0;
  left: 0;
  width: 64%;
  height: 100%;
  object-fit: fill;
  z-index: 2;
  pointer-events: none;
  user-select: none;
}

.hd-hero-left {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 102px 24px 168px max(var(--hd-gutter), calc((100vw - var(--hd-container)) / 2 + var(--hd-gutter)));
}

.hd-hero-eyebrow {
  display: inline-block;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--hd-plum);
  margin-bottom: 14px;
}

.hd-hero-title {
  font-size: clamp(2.15rem, 3.4vw, 3.2rem);
  font-weight: 800;
  line-height: 1.34;
  letter-spacing: -0.025em;
  color: var(--hd-plum);
  padding-top: 0.45em;
  margin-top: -0.25em;
  max-width: 24ch;
}

/* Arcing celebratory typography ("cùng cô Mai" rising playfully like "soar") */
.hd-soar {
  display: inline-block;
  white-space: nowrap;
  margin-left: 0.14em;
}

.hd-soar > span {
  display: inline-block;
  transform-origin: center bottom;
  transition: transform 0.65s var(--hd-ease);
}

.hd-soar-space {
  width: 0.24em;
}

.hd-soar-1  { transform: translateY(-2px)  rotate(-3deg); }
.hd-soar-2  { transform: translateY(-4px)  rotate(-4deg); }
.hd-soar-3  { transform: translateY(-7px)  rotate(-5deg); }
.hd-soar-4  { transform: translateY(-10px) rotate(-6deg); }
.hd-soar-5  { transform: translateY(-13px) rotate(-6.5deg); }
.hd-soar-6  { transform: translateY(-16px) rotate(-7deg); }
.hd-soar-7  { transform: translateY(-19px) rotate(-7.5deg); }
.hd-soar-8  { transform: translateY(-22px) rotate(-7deg); }
.hd-soar-9  { transform: translateY(-24px) rotate(-6.5deg); }
.hd-soar-10 { transform: translateY(-26px) rotate(-5.5deg); }
.hd-soar-11 { transform: translateY(-28px) rotate(-5deg); }
.hd-soar-12 { transform: translateY(-29px) rotate(-4deg); }

.hd-hero-sub {
  margin-top: 14px;
  font-size: clamp(1rem, 1.35vw, 1.16rem);
  font-weight: 500;
  line-height: 1.55;
  color: var(--hd-plum);
  max-width: 40ch;
}

.hd-hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 24px;
}

.hd-hero-micro {
  margin-top: 14px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--hd-plum);
}

/* Right full-bleed leaf-clipped photo */
.hd-hero-right {
  position: relative;
  z-index: 1;
  min-height: 100%;
  margin-left: -14%;
}

.hd-hero-leaf-wrap {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: clamp(640px, 86vh, 840px);
  clip-path: url(#hd-leaf-clip);
  overflow: hidden;
  background: var(--hd-tint);
}

.hd-hero-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% 35%;
  transform: scale(1.03);
  transition: transform 0.6s var(--hd-ease);
  will-change: transform;
}

/* ==========================================================================
   Our Story Split + Stippled Sage Leaf (Screenshot 2)
   ========================================================================== */
.hd-story {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: center;
  gap: clamp(32px, 5vw, 72px);
}

.hd-story-copy {
  max-width: 540px;
}

.hd-story-copy .hd-section-title {
  font-size: clamp(2rem, 3.3vw, 2.9rem);
}

.hd-story-copy .hd-lead {
  margin-top: 20px;
  margin-bottom: 28px;
}

.hd-story-leaf {
  display: flex;
  align-items: center;
  justify-content: center;
}

.hd-story-leaf img {
  width: min(440px, 90%);
  height: auto;
  user-select: none;
}

/* ==========================================================================
   Overflowing Horizontal Carousels (Screenshots 3 & 4)
   ========================================================================== */
.hd-carousel-viewport {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.hd-carousel-track {
  display: flex;
  align-items: stretch;
  gap: clamp(18px, 2vw, 28px);
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scroll-padding-inline-start: max(var(--hd-gutter), calc((100vw - var(--hd-container)) / 2 + var(--hd-gutter)));
  padding-inline-start: max(var(--hd-gutter), calc((100vw - var(--hd-container)) / 2 + var(--hd-gutter)));
  padding-inline-end: max(var(--hd-gutter), 48px);
  padding-bottom: 6px;
  scrollbar-width: none;
  -ms-overflow-style: none;
  cursor: grab;
}

.hd-carousel-track::-webkit-scrollbar {
  display: none;
}

.hd-carousel-track.is-dragging {
  cursor: grabbing;
  scroll-snap-type: none;
  user-select: none;
}

/* Sharp-corner Editorial Photo Card (3 visible + 4th peeking at 1440px) */
.hd-photo-card {
  flex: 0 0 clamp(276px, 27.6vw, 392px);
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: var(--hd-plum);
  background: transparent;
}

.hd-photo-media {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 0;
  overflow: hidden;
  background: var(--hd-tint);
}

.hd-photo-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s var(--hd-ease);
}

.hd-photo-card:hover .hd-photo-media img {
  transform: scale(1.035);
}

.hd-photo-card h3,
.hd-photo-card h4 {
  margin-top: 18px;
  font-size: 1.22rem;
  font-weight: 700;
  line-height: 1.28;
  color: var(--hd-plum);
  transition: color var(--hd-t-fast);
}

.hd-photo-card:hover h3,
.hd-photo-card:hover h4 {
  color: var(--hd-forest);
}

.hd-photo-card p {
  margin-top: 8px;
  font-size: 0.92rem;
  line-height: 1.62;
  color: var(--hd-plum-soft);
}

.hd-photo-meta {
  display: inline-block;
  margin-top: 10px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--hd-forest);
}

/* Textured Graphic Card (Shoreditch Pink-on-Plum style — Screenshot 3) */
.hd-photo-card--graphic .hd-photo-media {
  background: var(--hd-plum);
}

.hd-graphic-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
  text-align: center;
  z-index: 2;
}

.hd-graphic-overlay-title {
  font-size: clamp(1.5rem, 2.2vw, 2.05rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--hd-white);
}

.hd-graphic-overlay-sub {
  margin-top: 8px;
  font-size: 0.88rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.92);
}

/* ==========================================================================
   Color-Blocked Rounded Quote / Phrase Cards (Screenshot 5)
   ========================================================================== */
.hd-quote-track {
  display: flex;
  align-items: stretch;
  gap: clamp(18px, 2vw, 26px);
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scroll-padding-inline-start: max(var(--hd-gutter), calc((100vw - var(--hd-container)) / 2 + var(--hd-gutter)));
  padding-inline-start: max(var(--hd-gutter), calc((100vw - var(--hd-container)) / 2 + var(--hd-gutter)));
  padding-inline-end: max(var(--hd-gutter), 48px);
  padding-bottom: 6px;
  scrollbar-width: none;
  -ms-overflow-style: none;
  cursor: grab;
}

.hd-quote-track::-webkit-scrollbar {
  display: none;
}

.hd-quote-track.is-dragging {
  cursor: grabbing;
  scroll-snap-type: none;
  user-select: none;
}

.hd-quote-card {
  flex: 0 0 clamp(300px, 41vw, 560px);
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 28px;
  min-height: 300px;
  padding: clamp(28px, 3.6vw, 46px) clamp(28px, 4vw, 50px);
  border-radius: var(--hd-radius-card);
  background: var(--hd-sage);
  color: var(--hd-forest);
}

.hd-quote-card--sage {
  background: var(--hd-sage);
  color: var(--hd-forest);
}

.hd-quote-card--violet {
  background: var(--hd-violet);
  color: var(--hd-plum);
}

.hd-quote-card--gold {
  background: var(--hd-gold);
  color: var(--hd-ochre-deep);
}

.hd-quote-card--orange {
  background: var(--hd-orange);
  color: var(--hd-plum-deep);
}

.hd-quote-card--sky {
  background: var(--hd-sky);
  color: var(--hd-forest);
}

.hd-quote-text {
  font-size: clamp(1.16rem, 1.65vw, 1.44rem);
  font-weight: 700;
  line-height: 1.42;
  letter-spacing: -0.015em;
  text-indent: -0.45em;
  padding-left: 0.45em;
  color: currentColor;
}

.hd-quote-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.hd-quote-vi {
  font-size: 0.98rem;
  font-weight: 700;
  color: currentColor;
}

.hd-quote-tip {
  font-size: 0.86rem;
  font-weight: 500;
  opacity: 0.86;
  color: currentColor;
}

/* ==========================================================================
   3-Column Editorial Grid + Bespoke Illustrated Card (Screenshot 6)
   ========================================================================== */
.hd-flight-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(22px, 2.6vw, 34px);
}

.hd-flight-grid .hd-photo-card {
  flex: unset;
  width: 100%;
}

/* La Bandera–inspired Framed White Editorial Card over Stippled Botanical Art */
.hd-editorial-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: var(--hd-plum);
}

.hd-editorial-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(18px, 2.2vw, 28px);
  background: var(--hd-gold);
}

.hd-editorial-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  transition: transform 0.55s var(--hd-ease);
}

.hd-editorial-card:hover .hd-editorial-bg {
  transform: scale(1.04);
}

.hd-editorial-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: clamp(16px, 2vw, 22px) clamp(16px, 2.2vw, 24px);
  border-radius: 14px;
  background: var(--hd-white);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.hd-editorial-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.hd-editorial-kicker {
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--hd-plum-muted);
}

.hd-editorial-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 10px;
  border-radius: 44% 56% 48% 52% / 56% 46% 54% 44%;
  background: var(--hd-forest);
  color: var(--hd-white);
  font-size: 0.68rem;
  font-weight: 800;
  line-height: 1.1;
  white-space: nowrap;
}

.hd-editorial-headline {
  font-size: clamp(1.22rem, 1.9vw, 1.65rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.025em;
  color: var(--hd-plum);
}

.hd-editorial-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.hd-peach-pill {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--hd-peach);
  color: var(--hd-plum);
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.2;
}

.hd-editorial-card h3,
.hd-editorial-card h4 {
  margin-top: 18px;
  font-size: 1.22rem;
  font-weight: 700;
  line-height: 1.28;
  color: var(--hd-plum);
  transition: color var(--hd-t-fast);
}

.hd-editorial-card:hover h3,
.hd-editorial-card:hover h4 {
  color: var(--hd-forest);
}

.hd-editorial-card > p {
  margin-top: 8px;
  font-size: 0.92rem;
  line-height: 1.62;
  color: var(--hd-plum-soft);
}

/* ==========================================================================
   Full-Width Warm Gold Footer (Screenshot 7)
   ========================================================================== */
.hd-footer {
  margin-top: clamp(56px, 7vw, 96px);
  background: var(--hd-gold);
  color: var(--hd-plum);
}

.hd-footer-main {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr) minmax(0, 1.15fr);
  align-items: start;
  gap: clamp(32px, 4.5vw, 56px);
  padding-top: clamp(54px, 6.5vw, 76px);
  padding-bottom: clamp(44px, 5vw, 60px);
}

.hd-footer-brand {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.hd-footer-wordmark {
  display: inline-flex;
  flex-direction: column;
  text-decoration: none;
  color: var(--hd-plum);
  font-size: 1.55rem;
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.03em;
  width: fit-content;
}

.hd-footer-wordmark small {
  margin-top: 4px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--hd-ochre-deep);
}

.hd-footer-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 11px 22px;
  max-width: 340px;
}

.hd-footer-links a {
  font-size: 0.94rem;
  font-weight: 700;
  color: var(--hd-plum);
  text-decoration: none;
  transition: color var(--hd-t-fast);
}

.hd-footer-links a:hover {
  color: var(--hd-forest);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.hd-footer-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 4px;
}

.hd-footer-badge {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  padding: 9px 14px;
  border-radius: 12px;
  background: var(--hd-white);
  color: var(--hd-plum);
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1.25;
}

.hd-footer-badge--green {
  background: var(--hd-forest);
  color: var(--hd-white);
}

.hd-footer-mascot {
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 12px;
}

.hd-footer-mascot img {
  width: clamp(148px, 16vw, 198px);
  height: auto;
  animation: hd-float 5.2s ease-in-out infinite;
}

@keyframes hd-float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-7px) rotate(-1.5deg); }
}

.hd-footer-right {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.hd-footer-right h3 {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--hd-plum);
}

.hd-footer-track {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.hd-footer-track strong {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--hd-plum);
}

.hd-footer-track span {
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--hd-ochre-deep);
}

/* Bottom Meta Row with thin plum horizontal rules */
.hd-footer-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(24px, 3.5vw, 48px);
  padding-bottom: 44px;
}

.hd-footer-meta-col {
  border-top: 1.5px solid var(--hd-plum);
  padding-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.86rem;
  color: var(--hd-plum);
}

.hd-footer-meta-col strong {
  font-size: 0.88rem;
  font-weight: 700;
}

.hd-footer-meta-col a:not(.hd-social-circle) {
  text-decoration: none;
  color: var(--hd-plum);
  font-weight: 500;
  width: fit-content;
}

.hd-footer-meta-col a:not(.hd-social-circle):hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.hd-footer-socials {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 4px;
}

.hd-social-circle,
.hd-footer-meta-col a.hd-social-circle,
.hd-footer-socials .hd-social-circle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  padding: 0;
  border-radius: 50%;
  border: 1.5px solid var(--hd-plum);
  color: var(--hd-plum);
  text-decoration: none;
  transition: background-color var(--hd-t-fast), color var(--hd-t-fast);
}

.hd-social-circle:hover,
.hd-footer-meta-col a.hd-social-circle:hover,
.hd-footer-socials .hd-social-circle:hover {
  background: var(--hd-plum);
  color: var(--hd-gold);
  text-decoration: none;
}

.hd-social-circle svg {
  width: 16px;
  height: 16px;
}

/* Deep Ochre Copyright Strip */
.hd-footer-bar {
  background: var(--hd-ochre);
  color: #FDF5DB;
  padding-block: 14px;
  font-size: 0.82rem;
  font-weight: 500;
}

.hd-footer-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px 24px;
}

.hd-footer-bar a {
  color: #FDF5DB;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ==========================================================================
   Subpages Shared Components (kham-pha, khoa-hoc, tu-hoc, tai-lieu)
   ========================================================================== */

/* Subpage Intro Hero */
.hd-subhero {
  position: relative;
  padding-top: clamp(114px, 12vw, 148px);
  padding-bottom: clamp(46px, 5.5vw, 72px);
  background: var(--hd-white);
  overflow: clip;
}

.hd-subhero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  align-items: center;
  gap: clamp(28px, 4.5vw, 60px);
}

.hd-subhero-panel {
  border-radius: var(--hd-radius-card);
  padding: clamp(28px, 4vw, 48px);
  background: var(--hd-peach);
  color: var(--hd-plum);
}

.hd-subhero--sky .hd-subhero-panel {
  background: var(--hd-sky);
  color: var(--hd-forest);
}

.hd-subhero--sage .hd-subhero-panel {
  background: var(--hd-sage);
  color: var(--hd-forest);
}

.hd-subhero--gold .hd-subhero-panel {
  background: var(--hd-gold);
  color: var(--hd-plum);
}

.hd-subhero--violet .hd-subhero-panel {
  background: var(--hd-violet);
  color: var(--hd-plum);
}

.hd-subhero-copy h1 {
  font-size: clamp(2.15rem, 3.8vw, 3.25rem);
  font-weight: 800;
  line-height: 1.12;
  color: var(--hd-plum);
}

.hd-subhero--sky .hd-subhero-panel h1,
.hd-subhero--sage .hd-subhero-panel h1 {
  color: var(--hd-forest);
}

.hd-subhero-copy p {
  margin-top: 16px;
  font-size: 1.04rem;
  line-height: 1.65;
  color: var(--hd-plum-soft);
  max-width: 48ch;
}

.hd-subhero-media {
  position: relative;
  border-radius: 0;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--hd-tint);
}

.hd-subhero-media--portrait {
  aspect-ratio: auto;
  max-width: 380px;
  justify-self: center;
  border-radius: 16px;
  border: 2px solid rgba(120, 33, 71, 0.14);
}

.hd-subhero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hd-breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--hd-forest);
  text-decoration: none;
  transition: color var(--hd-t-fast);
}

.hd-breadcrumb:hover {
  color: var(--hd-plum);
}

.hd-anchor-pills {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 24px;
}

.hd-anchor-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--hd-white);
  color: var(--hd-plum);
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
  border: 1.5px solid rgba(120, 33, 71, 0.22);
  transition: background-color var(--hd-t-fast), color var(--hd-t-fast), border-color var(--hd-t-fast);
}

.hd-anchor-pill:hover {
  background: var(--hd-plum);
  color: var(--hd-white);
  border-color: var(--hd-plum);
}

/* ---------- Khám phá: Practice & Mini-Game Cards ---------- */
.hd-practice-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(20px, 2.6vw, 30px);
  align-items: stretch;
}

.hd-practice-stack {
  display: flex;
  flex-direction: column;
  gap: clamp(20px, 2.6vw, 30px);
}

.hd-practice-card {
  border-radius: var(--hd-radius-card);
  padding: clamp(26px, 3.4vw, 40px);
  background: var(--hd-violet);
  color: var(--hd-plum);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
}

.hd-practice-card--featured {
  background: var(--hd-peach);
  color: var(--hd-plum);
}

.hd-practice-card--sage {
  background: var(--hd-sage);
  color: var(--hd-forest);
}

.hd-practice-card--gold {
  background: var(--hd-gold);
  color: var(--hd-ochre-deep);
}

.hd-practice-card--sky {
  background: var(--hd-sky);
  color: var(--hd-forest);
}

.hd-practice-card--violet {
  background: var(--hd-violet);
  color: var(--hd-plum);
}

.hd-practice-card h2,
.hd-practice-card h3 {
  color: currentColor;
  font-size: clamp(1.35rem, 2.1vw, 1.75rem);
}

.hd-practice-card p {
  font-size: 0.96rem;
  line-height: 1.64;
  color: currentColor;
  opacity: 0.9;
}

.hd-practice-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 6px;
}

.hd-card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 46% 54% 48% 52% / 54% 46% 52% 48%;
  background: rgba(255, 255, 255, 0.72);
  color: currentColor;
  flex-shrink: 0;
}

.hd-card-icon svg {
  width: 24px;
  height: 24px;
}

/* ---------- Khóa học: 6-Week Pathways, Trial Strip, Schedule & FAQ ---------- */
.hd-pathway-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(20px, 2.4vw, 28px);
}

.hd-pathway-card {
  border-radius: var(--hd-radius-card);
  padding: clamp(26px, 3vw, 34px);
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: var(--hd-sage);
  color: var(--hd-forest);
}

.hd-pathway-card--sage {
  background: var(--hd-sage);
  color: var(--hd-forest);
}

.hd-pathway-card--violet {
  background: var(--hd-violet);
  color: var(--hd-plum);
}

.hd-pathway-card--sky {
  background: var(--hd-sky);
  color: var(--hd-forest);
}

.hd-pathway-card--gold {
  background: var(--hd-gold);
  color: var(--hd-ochre-deep);
}

.hd-pathway-card--peach {
  background: var(--hd-peach);
  color: var(--hd-plum);
}

.hd-pathway-card h3 {
  font-size: 1.42rem;
  font-weight: 800;
  color: currentColor;
}

.hd-pathway-card > p {
  font-size: 0.93rem;
  line-height: 1.6;
  color: currentColor;
  opacity: 0.9;
}

.hd-week-list {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.hd-week-list li {
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--hd-plum);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.hd-week-list strong {
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--hd-forest);
}

.hd-week-list span {
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--hd-plum);
}

.hd-trial-strip {
  border-radius: var(--hd-radius-card);
  padding: clamp(26px, 3.4vw, 38px) clamp(26px, 4vw, 44px);
  background: var(--hd-peach);
  color: var(--hd-plum);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px 32px;
}

.hd-trial-strip h2 {
  font-size: clamp(1.4rem, 2.2vw, 1.85rem);
  color: var(--hd-plum);
}

.hd-trial-strip-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hd-course-lower {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: clamp(32px, 4.5vw, 56px);
  align-items: start;
}

.hd-schedule-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
  margin-top: 20px;
  margin-bottom: 20px;
}

.hd-schedule-controls label {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--hd-plum);
}

.hd-schedule-controls select,
.hd-schedule-select {
  appearance: none;
  padding: 10px 38px 10px 16px;
  border-radius: 999px;
  border: 2px solid var(--hd-plum);
  background-color: var(--hd-white);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14' fill='none'%3E%3Cpath d='M3 5.25L7 9.25L11 5.25' stroke='%23782147' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--hd-plum);
  cursor: pointer;
}

.hd-schedule-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hd-filter-pill {
  padding: 8px 16px;
  border-radius: 999px;
  border: 1.5px solid rgba(120, 33, 71, 0.24);
  background: var(--hd-white);
  color: var(--hd-plum);
  font-size: 0.86rem;
  font-weight: 700;
  cursor: pointer;
  transition: background-color var(--hd-t-fast), color var(--hd-t-fast), border-color var(--hd-t-fast);
}

.hd-filter-pill:hover,
.hd-filter-pill.is-active,
.hd-filter-pill[aria-pressed="true"] {
  background: var(--hd-forest);
  color: var(--hd-white);
  border-color: var(--hd-forest);
}

.hd-schedule-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.hd-schedule-row {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) auto auto;
  align-items: center;
  gap: 12px 18px;
  padding: 18px 22px;
  border-radius: 16px;
  background: var(--hd-tint);
  border: 1.5px solid rgba(120, 33, 71, 0.12);
}

.hd-schedule-row[hidden] {
  display: none;
}

.hd-schedule-row strong {
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--hd-plum);
}

.hd-mode-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--hd-sage);
  color: var(--hd-forest);
  font-size: 0.78rem;
  font-weight: 700;
  white-space: nowrap;
}

.hd-schedule-row[data-mode="offline"] .hd-mode-badge {
  background: var(--hd-gold);
  color: var(--hd-ochre-deep);
}

.hd-schedule-time {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--hd-plum-soft);
  white-space: nowrap;
}

.hd-faq-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 20px;
}

.hd-faq-item {
  border-radius: 18px;
  padding: 20px 24px;
  background: var(--hd-tint);
  border-left: 4px solid var(--hd-plum);
}

.hd-faq-item h3 {
  font-size: 1.04rem;
  font-weight: 700;
  color: var(--hd-plum);
}

.hd-faq-item p {
  margin-top: 8px;
  font-size: 0.93rem;
  line-height: 1.65;
  color: var(--hd-plum-soft);
}

/* ---------- Tự học: Phrase Cards & 5 Skill Cards ---------- */
.hd-phrase-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(20px, 2.5vw, 28px);
}

.hd-phrase-card {
  border-radius: var(--hd-radius-card);
  padding: clamp(26px, 3.4vw, 40px);
  background: var(--hd-sage);
  color: var(--hd-forest);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.hd-phrase-card--violet {
  background: var(--hd-violet);
  color: var(--hd-plum);
}

.hd-phrase-card--gold {
  background: var(--hd-gold);
  color: var(--hd-ochre-deep);
}

.hd-phrase-card--sky {
  background: var(--hd-sky);
  color: var(--hd-forest);
}

.hd-phrase-card h3 {
  font-size: 0.94rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: currentColor;
  opacity: 0.85;
}

.hd-phrase-card blockquote {
  margin: 4px 0;
  font-size: clamp(1.35rem, 2.1vw, 1.75rem);
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: -0.02em;
  color: currentColor;
}

.hd-phrase-card p {
  font-size: 0.98rem;
  line-height: 1.6;
  color: currentColor;
}

.hd-phrase-tip {
  margin-top: 4px;
  padding: 10px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.7);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--hd-plum);
}

.hd-skill-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(20px, 2.4vw, 28px);
}

.hd-skill-card {
  border-radius: var(--hd-radius-card);
  padding: clamp(24px, 3vw, 34px);
  background: var(--hd-tint);
  border: 1.5px solid rgba(120, 33, 71, 0.12);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
}

.hd-skill-card--wide {
  grid-column: 1 / -1;
  background: var(--hd-sky);
  border-color: transparent;
  color: var(--hd-forest);
}

.hd-skill-card--wide h3,
.hd-skill-card--wide p,
.hd-skill-card--wide .hd-lesson-prompt {
  color: var(--hd-forest);
}

.hd-skill-head {
  display: flex;
  align-items: center;
  gap: 14px;
}

.hd-skill-card h3 {
  font-size: 1.25rem;
  font-weight: 800;
}

.hd-audio-box {
  padding: 14px 16px;
  border-radius: 16px;
  background: var(--hd-white);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.hd-audio-box audio {
  width: 100%;
  height: 42px;
}

.hd-lesson-prompt {
  font-size: 0.96rem;
  line-height: 1.65;
  color: var(--hd-plum-soft);
}

.hd-lesson-prompt blockquote {
  margin: 0 0 12px;
  padding: 14px 18px;
  border-radius: 14px;
  background: var(--hd-white);
  border-left: 4px solid var(--hd-forest);
  font-weight: 600;
  color: var(--hd-plum);
}

/* ---------- Tài liệu: PDF Download Cards & Bottom CTA Banner ---------- */
.hd-resource-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(20px, 2.5vw, 28px);
}

.hd-resource-card {
  border-radius: var(--hd-radius-card);
  padding: clamp(24px, 3vw, 34px);
  background: var(--hd-tint);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 20px;
}

.hd-resource-card--peach {
  background: var(--hd-peach);
  color: var(--hd-plum);
}

.hd-resource-card--sage {
  background: var(--hd-sage);
  color: var(--hd-forest);
}

.hd-resource-card--violet {
  background: var(--hd-violet);
  color: var(--hd-plum);
}

.hd-resource-card--gold {
  background: var(--hd-gold);
  color: var(--hd-ochre-deep);
}

.hd-resource-card h3 {
  font-size: 1.32rem;
  font-weight: 800;
  color: currentColor;
}

.hd-resource-card p {
  margin-top: 8px;
  font-size: 0.94rem;
  line-height: 1.6;
  color: currentColor;
  opacity: 0.9;
}

.hd-resource-meta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--hd-plum);
  font-size: 0.76rem;
  font-weight: 800;
  width: fit-content;
}

.hd-cta-banner {
  border-radius: var(--hd-radius-card);
  padding: clamp(28px, 4vw, 46px);
  background: var(--hd-forest);
  color: var(--hd-white);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px 32px;
}

.hd-cta-banner h2 {
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  color: var(--hd-white);
}

.hd-cta-banner p {
  margin-top: 8px;
  font-size: 0.98rem;
  color: rgba(255, 255, 255, 0.88);
  max-width: 50ch;
}

/* ==========================================================================
   Interactive Native <dialog> Modal (Quizzes, Matching, Sentence Builder, Hints)
   ========================================================================== */
.hd-dialog,
dialog#panel {
  width: min(640px, calc(100vw - 28px));
  max-height: min(86vh, 760px);
  margin: auto;
  padding: 0;
  border: 2px solid var(--hd-plum);
  border-radius: 24px;
  background: var(--hd-white);
  color: var(--hd-plum);
  overflow-y: auto;
}

.hd-dialog::backdrop,
dialog#panel::backdrop {
  background: rgba(43, 92, 71, 0.42);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.hd-dialog-inner,
dialog#panel .panel-inner {
  position: relative;
  padding: clamp(24px, 4vw, 36px);
}

.hd-dialog-close-form,
dialog#panel .close-form {
  position: sticky;
  top: 0;
  float: right;
  margin-left: 12px;
  z-index: 4;
}

.hd-dialog-close,
dialog#panel .close-form button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 44% 56% 48% 52% / 52% 46% 54% 48%;
  background: var(--hd-peach);
  color: var(--hd-plum);
  font-size: 1.45rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  transition: background-color var(--hd-t-fast), color var(--hd-t-fast);
}

.hd-dialog-close:hover,
dialog#panel .close-form button:hover {
  background: var(--hd-plum);
  color: var(--hd-white);
}

#panel-title {
  font-size: clamp(1.35rem, 2.4vw, 1.75rem);
  font-weight: 800;
  color: var(--hd-plum);
  padding-right: 48px;
  margin-bottom: 14px;
}

#panel-content {
  display: flex;
  flex-direction: column;
  gap: 16px;
  font-size: 0.96rem;
  line-height: 1.65;
  color: var(--hd-plum-soft);
}

/* Quiz Fieldsets & Radio Options */
#panel-content form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

#panel-content fieldset {
  border: 0;
  margin: 0;
  padding: 18px 20px;
  border-radius: 16px;
  background: var(--hd-tint);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

#panel-content legend {
  float: left;
  width: 100%;
  margin-bottom: 8px;
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--hd-plum);
}

#panel-content label {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  border-radius: 12px;
  background: var(--hd-white);
  border: 1.5px solid rgba(120, 33, 71, 0.14);
  font-weight: 500;
  color: var(--hd-plum);
  cursor: pointer;
  transition: background-color var(--hd-t-fast), border-color var(--hd-t-fast);
}

#panel-content label:hover {
  background: rgba(214, 191, 217, 0.25);
  border-color: var(--hd-plum);
}

#panel-content label:has(input:checked) {
  background: rgba(176, 209, 161, 0.35);
  border-color: var(--hd-forest);
  font-weight: 700;
}

#panel-content input[type="radio"] {
  accent-color: var(--hd-forest);
  width: 17px;
  height: 17px;
  flex-shrink: 0;
}

/* Modal Graded Quiz Result */
#panel-content .result,
#panel-content .hd-quiz-result {
  padding: 20px 22px;
  border-radius: 18px;
  background: var(--hd-sage);
  color: var(--hd-forest);
}

#panel-content .result strong,
#panel-content .hd-quiz-result strong {
  color: var(--hd-forest-deep);
}

#panel-content .result ol,
#panel-content .hd-quiz-result ol {
  margin: 12px 0 0;
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* Matching Game Board */
.match-grid,
.hd-match-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.match-grid section,
.hd-match-grid section {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.match-grid h3,
.hd-match-grid h3 {
  font-size: 0.86rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--hd-forest);
  margin-bottom: 2px;
}

.match-grid button,
.hd-match-grid button {
  padding: 13px 16px;
  border-radius: 14px;
  border: 2px solid rgba(120, 33, 71, 0.2);
  background: var(--hd-white);
  color: var(--hd-plum);
  font-weight: 700;
  text-align: left;
  cursor: pointer;
  transition: background-color var(--hd-t-fast), border-color var(--hd-t-fast), color var(--hd-t-fast);
}

.match-grid button:hover:not(:disabled),
.hd-match-grid button:hover:not(:disabled) {
  background: rgba(240, 212, 133, 0.45);
  border-color: var(--hd-plum);
}

.match-grid button[aria-pressed="true"],
.hd-match-grid button[aria-pressed="true"] {
  background: var(--hd-plum);
  border-color: var(--hd-plum);
  color: var(--hd-white);
}

.match-grid button:disabled,
.hd-match-grid button:disabled {
  background: var(--hd-sage);
  border-color: var(--hd-sage);
  color: var(--hd-forest);
  opacity: 0.72;
  cursor: default;
}

/* Sentence Builder Word Bank & Answer Area */
.word-bank,
.word-answer,
.hd-word-bank,
.hd-word-answer {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 16px;
  border-radius: 16px;
  background: var(--hd-tint);
  min-height: 68px;
  align-items: center;
}

.word-answer,
.hd-word-answer {
  background: rgba(191, 212, 235, 0.35);
  border: 2px dashed rgba(43, 92, 71, 0.35);
}

.word-bank button,
.word-answer button,
.hd-word-bank button,
.hd-word-answer button {
  padding: 9px 16px;
  border-radius: 999px;
  border: 2px solid var(--hd-plum);
  background: var(--hd-white);
  color: var(--hd-plum);
  font-weight: 700;
  cursor: pointer;
  transition: background-color var(--hd-t-fast), color var(--hd-t-fast), opacity var(--hd-t-fast);
}

.word-bank button:hover:not(:disabled),
.hd-word-bank button:hover:not(:disabled) {
  background: var(--hd-plum);
  color: var(--hd-white);
}

.word-bank button:disabled,
.hd-word-bank button:disabled {
  opacity: 0.32;
  cursor: default;
}

.word-answer button,
.hd-word-answer button {
  background: var(--hd-forest);
  border-color: var(--hd-forest);
  color: var(--hd-white);
}

.word-answer button:hover:not(:disabled),
.hd-word-answer button:hover:not(:disabled) {
  background: var(--hd-orange);
  border-color: var(--hd-orange);
}

.game-message,
.hd-game-message {
  padding: 12px 16px;
  border-radius: 12px;
  background: rgba(176, 209, 161, 0.42);
  color: var(--hd-forest);
  font-weight: 700;
  min-height: 22px;
}

.game-message:empty,
.hd-game-message:empty {
  display: none;
}

.game-message[data-tone="error"],
.hd-game-message[data-tone="error"] {
  background: rgba(237, 125, 69, 0.22);
  color: var(--hd-plum-deep);
}

.game-actions,
.hd-game-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* Modal Buttons Compatibility (`.button`, `.primary`, `.button-outline`) */
#panel-content .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: 26px 22px 28px 20px / 22px 26px 20px 26px;
  border: 0;
  background: var(--hd-plum);
  color: var(--hd-white);
  font-weight: 700;
  font-size: 0.92rem;
  cursor: pointer;
  transition: background-color var(--hd-t-fast), color var(--hd-t-fast);
}

#panel-content .button:hover {
  background: var(--hd-violet);
  color: var(--hd-plum);
}

#panel-content .button.button-outline {
  background: var(--hd-gold);
  color: var(--hd-ochre-deep);
}

#panel-content .button.button-outline:hover {
  background: var(--hd-forest);
  color: var(--hd-white);
}

/* ==========================================================================
   Scroll Reveal Motion (.hd-reveal, .hd-split-words)
   ========================================================================== */
.hd-reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity var(--hd-t-reveal), transform var(--hd-t-reveal);
}

.hd-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.hd-reveal-delay-1 { transition-delay: 0.08s; }
.hd-reveal-delay-2 { transition-delay: 0.16s; }
.hd-reveal-delay-3 { transition-delay: 0.24s; }

/* ==========================================================================
   Responsive Breakpoints (1024px, 768px, 480px) — Zero Horizontal Overflow
   ========================================================================== */
@media (max-width: 1024px) {
  .hd-hero {
    min-height: 620px;
  }

  .hd-hero-peach {
    width: 68%;
  }

  .hd-hero-left {
    padding: 102px 24px 148px var(--hd-gutter);
  }

  .hd-pathway-grid,
  .hd-resource-grid,
  .hd-flight-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hd-course-lower,
  .hd-practice-grid,
  .hd-subhero-grid {
    grid-template-columns: minmax(0, 1fr);
  }

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

  .hd-footer-mascot {
    grid-column: 1 / -1;
    order: -1;
    padding-top: 0;
  }
}

@media (max-width: 820px) {
  .hd-nav {
    padding: 8px 14px;
    grid-template-columns: 42px 1fr 42px;
  }

  .hd-nav-group--left,
  .hd-nav-group--right {
    display: none;
  }

  .hd-brand-blob {
    justify-self: center;
    grid-column: 2;
    width: 126px;
    height: 54px;
    margin-block: -6px -12px;
  }

  .hd-nav-toggle {
    display: inline-flex;
    grid-column: 3;
    justify-self: end;
  }

  .hd-hero {
    grid-template-columns: minmax(0, 1fr);
    min-height: auto;
  }

  .hd-hero-peach {
    left: -4%;
    width: 108%;
    height: 48%;
    object-fit: fill;
    z-index: 1;
  }

  .hd-hero-left {
    padding: 96px var(--hd-gutter) 56px;
  }

  .hd-hero-title {
    line-height: 1.48;
  }

  .hd-soar {
    margin-left: 0.08em;
  }

  .hd-soar-1  { transform: translateY(-1px)   rotate(-2deg); }
  .hd-soar-2  { transform: translateY(-2px)   rotate(-2.5deg); }
  .hd-soar-3  { transform: translateY(-3px)   rotate(-3deg); }
  .hd-soar-4  { transform: translateY(-4.5px) rotate(-3.5deg); }
  .hd-soar-5  { transform: translateY(-6px)   rotate(-4deg); }
  .hd-soar-6  { transform: translateY(-7px)   rotate(-4.5deg); }
  .hd-soar-7  { transform: translateY(-8px)   rotate(-4.5deg); }
  .hd-soar-8  { transform: translateY(-9px)   rotate(-4deg); }
  .hd-soar-9  { transform: translateY(-9.5px) rotate(-3.5deg); }
  .hd-soar-10 { transform: translateY(-10px)  rotate(-3deg); }
  .hd-soar-11 { transform: translateY(-10px)  rotate(-2.5deg); }
  .hd-soar-12 { transform: translateY(-9.5px) rotate(-2deg); }

  .hd-hero-right {
    position: relative;
    z-index: 2;
    margin-left: 0;
    padding: 0 var(--hd-gutter) 24px;
  }

  .hd-hero-leaf-wrap {
    min-height: 310px;
    aspect-ratio: 4 / 3;
    border-radius: 22px;
    clip-path: none;
  }

  .hd-story {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }

  .hd-story-leaf img {
    width: min(280px, 76%);
  }

  .hd-split-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .hd-split-header-actions {
    width: 100%;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
  }

  .hd-flight-grid,
  .hd-pathway-grid,
  .hd-resource-grid,
  .hd-phrase-grid,
  .hd-skill-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .hd-footer-main,
  .hd-footer-meta {
    grid-template-columns: minmax(0, 1fr);
  }

  .hd-footer-mascot {
    justify-content: flex-start;
  }
}

@media (max-width: 480px) {
  .hd-hero-title {
    font-size: 1.92rem;
    line-height: 1.56;
    padding-top: 0.35em;
  }

  .hd-soar-1  { transform: translateY(-1px)   rotate(-2deg); }
  .hd-soar-2  { transform: translateY(-1.5px) rotate(-2.5deg); }
  .hd-soar-3  { transform: translateY(-2.5px) rotate(-3deg); }
  .hd-soar-4  { transform: translateY(-3.5px) rotate(-3.5deg); }
  .hd-soar-5  { transform: translateY(-4.5px) rotate(-3.8deg); }
  .hd-soar-6  { transform: translateY(-5.5px) rotate(-4deg); }
  .hd-soar-7  { transform: translateY(-6.5px) rotate(-4deg); }
  .hd-soar-8  { transform: translateY(-7.5px) rotate(-3.8deg); }
  .hd-soar-9  { transform: translateY(-8px)   rotate(-3.4deg); }
  .hd-soar-10 { transform: translateY(-8.5px) rotate(-3deg); }
  .hd-soar-11 { transform: translateY(-8.5px) rotate(-2.5deg); }
  .hd-soar-12 { transform: translateY(-8px)   rotate(-2deg); }

  .hd-hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hd-hero-actions .hd-btn {
    width: 100%;
  }

  .hd-photo-card {
    flex: 0 0 82vw;
  }

  .hd-quote-card {
    flex: 0 0 86vw;
    min-height: 260px;
  }

  .hd-schedule-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
  }

  .match-grid,
  .hd-match-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ---------- Reduced Motion Respect ---------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hd-transition-overlay,
  #hd-transition-overlay {
    display: none;
  }

  .hd-reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .hd-footer-mascot img {
    animation: none;
  }

  .hd-photo-media img,
  .hd-editorial-bg,
  .hd-hero-photo,
  .hd-btn,
  .hd-arrow-btn {
    transition: none;
  }
}
