/* =============================================
   MonAI Design System — style.css
   Version: 3.0 | Updated: 2026-07-21
   Source: MonAI-DESIGN.md v1.1 (updated palette)
   ============================================= */

/* ─────────────────────────────────────────────
   1. GOOGLE FONTS IMPORT
───────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700&family=Red+Rose:wght@400;700&family=JetBrains+Mono:wght@400;500&display=swap');

/* ─────────────────────────────────────────────
   2. CSS CUSTOM PROPERTIES (DESIGN TOKENS)
   Source: MonAI-DESIGN.md § Color System
───────────────────────────────────────────── */
:root {
  /* ── Mon Blue H:217° ─────────────────────── */
  --blue-50:   #EEF3FD;
  --blue-100:  #DDEAFB;
  --blue-200:  #BAD0F7;
  --blue-400:  #4B82F0;
  --blue-600:  #2563EB;   /* CTA button, link */
  --blue-800:  #1346A3;   /* Heading, text nhấn */
  --blue-950:  #0B2A66;   /* Dark heading */

  /* ── Mèo Cam H:25° ──────────────────────── */
  --orange-50:   #FEF4ED;
  --orange-100:  #FAE4D0;
  --orange-200:  #F5BF98;
  --orange-400:  #F0832A;
  --orange-600:  #E86A10;  /* Accent cam */
  --orange-800:  #9C3D08;  /* Text cam đậm */
  --orange-950:  #611F04;

  /* ── AI Violet H:268° ───────────────────── */
  --violet-50:   #F3EFFE;
  --violet-100:  #E6DDFB;
  --violet-200:  #C9B8F5;
  --violet-400:  #8B5CF6;
  --violet-600:  #7C3AED;  /* Accent violet */
  --violet-800:  #4C1D95;  /* Heading tím */
  --violet-950:  #2D0F5E;

  /* ── Growth Green H:152° ────────────────── */
  --green-50:   #EDFAF3;
  --green-100:  #D4F3E4;
  --green-200:  #A4E6C7;
  --green-400:  #34C77E;
  --green-600:  #059669;   /* Accent green */
  --green-800:  #064E3B;   /* Heading green */
  --green-950:  #022C22;

  /* ── Bloom Pink H:340° ──────────────────── */
  --pink-50:   #FEF0F5;
  --pink-100:  #FCE0EB;
  --pink-200:  #F9BAD1;
  --pink-400:  #EC4899;
  --pink-600:  #DB2777;    /* Accent pink */
  --pink-800:  #831843;    /* Heading pink */
  --pink-950:  #4A0D26;

  /* ── Magic Teal H:187° ──────────────────── */
  --teal-50:   #EDF9FA;
  --teal-100:  #D3F1F4;
  --teal-200:  #A2E2E8;
  --teal-400:  #22B8C8;
  --teal-600:  #0891B2;    /* Accent teal */
  --teal-800:  #164E63;    /* Heading teal */
  --teal-950:  #0A2E3A;

  /* ── Neutral Warm ────────────────────────── */
  --white:       #FFFFFF;
  --neutral-50:  #F9F8F6;  /* Page background mặc định */
  --neutral-100: #F2F0EC;
  --neutral-200: #E4E0D8;
  --neutral-400: #B8B0A4;
  --neutral-500: #8C8478;
  --neutral-700: #4A4540;
  --neutral-800: #2E2A24;  /* Text chính */
  --neutral-950: #1A1612;  /* Dark mode bg */

  /* ── Semantic ────────────────────────────── */
  --color-success: #059669;
  --color-warning: #D97706;
  --color-error:   #DC2626;
  --color-info:    #0891B2;

  /* ── Accent ──────────────────────────────── */
  --comic-yellow: #FACC15;

  /* ── Typography ─────────────────────────── */
  --font-heading: 'Red Rose', serif;
  --font-body:    'Montserrat', sans-serif;
  --font-mono:    'JetBrains Mono', monospace;

  /* ── Spacing (8px base) ─────────────────── */
  --space-1:  4px;
  --space-2:  8px;
  --space-3:  12px;
  --space-4:  16px;
  --space-6:  24px;
  --space-8:  32px;
  --space-12: 48px;
  --space-16: 64px;
  --space-20: 80px;

  /* ── Border Radius ──────────────────────── */
  --radius-sm:   4px;
  --radius-md:   12px;
  --radius-lg:   20px;
  --radius-xl:   24px;
  --radius-full: 9999px;

  /* ── Shadows (Mon Blue tint) ─────────────── */
  --shadow-card:        0 4px 16px rgba(19, 70, 163, 0.08);
  --shadow-card-hover:  0 12px 32px rgba(19, 70, 163, 0.14);
  --shadow-btn-active:  inset 0 2px 4px rgba(0,0,0,0.08);
  --shadow-modal:       0 24px 64px rgba(0,0,0,0.18);
  --shadow-float:       0 8px 48px rgba(19, 70, 163, 0.12);
  --shadow-nav:         0 2px 20px rgba(19, 70, 163, 0.08);

  /* ── Motion ─────────────────────────────── */
  --duration-fast:    150ms;
  --duration-default: 200ms;
  --duration-panel:   300ms;
  --duration-page:    400ms;
  --ease-default:     ease-out;
  --ease-enter:       cubic-bezier(0.0, 0.0, 0.2, 1);
  --ease-exit:        cubic-bezier(0.4, 0.0, 1, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--neutral-800);
  background-color: var(--neutral-50);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  line-height: 1.2;
  color: var(--neutral-800);
}

h1 { font-size: clamp(36px, 5vw, 56px); font-weight: 800; }
h2 { font-size: clamp(28px, 4vw, 40px); font-weight: 700; }
h3 { font-size: clamp(20px, 3vw, 28px); font-weight: 600; }
h4 { font-size: 20px; font-weight: 600; }
h5 { font-size: 18px; font-weight: 600; }

p { line-height: 1.7; }

/* ─────────────────────────────────────────────
   4. LAYOUT
───────────────────────────────────────────── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-8);
}

@media (max-width: 1280px) { .container { padding: 0 var(--space-12); } }
@media (max-width: 768px)  { .container { padding: 0 var(--space-4); } }

/* Section base — nền luôn là --white hoặc --neutral-50 (quy tắc mới) */
.section {
  padding: var(--space-20) 0;
}

/* Xen kẽ: section chẵn = --neutral-50, lẻ = --white */
.section-cream  { background-color: var(--neutral-50); }
.section-white  { background-color: var(--white); }

/* Exceptions: CTA chốt và Footer được phép full-section màu */
.section-dark-cta { background-color: var(--blue-800); }

/* ─────────────────────────────────────────────
   5. CONTENT COLUMN — Colored Block
   QUY TẮC: Màu pastel đổ vào CỘT TEXT, không đổ toàn section
   Ref: MonAI-DESIGN.md § "Quy tắc đổ màu — Column, không phải Section"
───────────────────────────────────────────── */

/* Block màu bao quanh text content, có bo góc */
.content-block {
  padding: var(--space-12) var(--space-8);
  border-radius: var(--radius-xl);
}

/* Màu theo section type */
.content-block--blue    { background: var(--blue-100);   }
.content-block--orange  { background: var(--orange-100); }
.content-block--violet  { background: var(--violet-100); }
.content-block--green   { background: var(--green-100);  }
.content-block--pink    { background: var(--pink-100);   }
.content-block--teal    { background: var(--teal-100);   }

/* Heading theo màu block */
.content-block--blue   h2,
.content-block--blue   h3 { color: var(--blue-800); }

.content-block--orange h2,
.content-block--orange h3 { color: var(--orange-800); }

.content-block--violet h2,
.content-block--violet h3 { color: var(--violet-800); }

.content-block--green  h2,
.content-block--green  h3 { color: var(--green-800); }

.content-block--pink   h2,
.content-block--pink   h3 { color: var(--pink-800); }

.content-block--teal   h2,
.content-block--teal   h3 { color: var(--teal-800); }

/* Eyebrow / section label theo màu */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 5px 12px;
  border-radius: var(--radius-full);
  margin-bottom: var(--space-4);
}

.eyebrow--blue   { color: var(--blue-800);   background: var(--blue-200);   }
.eyebrow--orange { color: var(--orange-800); background: var(--orange-200); }
.eyebrow--violet { color: var(--violet-800); background: var(--violet-200); }
.eyebrow--green  { color: var(--green-800);  background: var(--green-200);  }
.eyebrow--pink   { color: var(--pink-800);   background: var(--pink-200);   }
.eyebrow--teal   { color: var(--teal-800);   background: var(--teal-200);   }
.eyebrow--white  { color: var(--white);      background: rgba(255,255,255,0.18); }

/* ─────────────────────────────────────────────
   6. NAVBAR
───────────────────────────────────────────── */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(249, 248, 246, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--neutral-200);
  transition: box-shadow var(--duration-default) var(--ease-default);
}

.navbar.scrolled {
  box-shadow: var(--shadow-nav);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

/* Logo */
.nav-brand {
  display: flex;
  flex-direction: column;
  gap: 1px;
  text-decoration: none;
  flex-shrink: 0;
}

.nav-brand-name {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 22px;
  color: var(--blue-600);
  letter-spacing: -0.02em;
}

.nav-brand-dot { color: var(--orange-600); }

.nav-brand-sub {
  font-size: 10px;
  font-weight: 500;
  color: var(--neutral-500);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* Nav Links */
.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-1);
}

.nav-links > a,
.nav-item-dropdown > a {
  font-size: 14px;
  font-weight: 500;
  color: var(--neutral-800);
  padding: 7px 12px;
  border-radius: var(--radius-md);
  transition: color var(--duration-default), background var(--duration-default);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.nav-links > a:hover,
.nav-links > a.active,
.nav-item-dropdown > a:hover {
  color: var(--blue-600);
  background: var(--blue-50);
}

/* Dropdown arrow */
.nav-item-dropdown {
  position: relative;
}

.nav-item-dropdown > a::after {
  content: '';
  width: 0; height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 4px solid currentColor;
  transition: transform var(--duration-fast);
  opacity: 0.6;
}

.nav-item-dropdown:hover > a::after {
  transform: rotate(180deg);
}

/* Mega Menu */
.mega-menu {
  display: none;
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%);
  width: 660px;
  background: var(--white);
  border: 1px solid var(--neutral-200);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-modal);
  padding: var(--space-6);
  grid-template-columns: 1fr 1fr 1fr;
  gap: var(--space-6);
  z-index: 200;
}

.nav-item-dropdown:hover .mega-menu {
  display: grid;
  animation: fadeDown 180ms var(--ease-enter) both;
}

@keyframes fadeDown {
  from { opacity: 0; transform: translateX(-50%) translateY(-10px); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}

.mega-col-title {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--space-3);
  padding-bottom: var(--space-2);
}

/* Column 1 Blue */
.mega-col:nth-child(1) .mega-col-title {
  color: var(--blue-800);
  border-bottom: 2px solid var(--blue-100);
}

/* Column 2 Orange */
.mega-col:nth-child(2) .mega-col-title {
  color: var(--orange-800);
  border-bottom: 2px solid var(--orange-100);
}

/* Column 3 Blue (kinh doanh same hue as brand) */
.mega-col:nth-child(3) .mega-col-title {
  color: var(--violet-800);
  border-bottom: 2px solid var(--violet-100);
}

.mega-col-links {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.mega-col-links a {
  font-size: 13px;
  color: var(--neutral-700);
  padding: 6px 8px;
  border-radius: 8px;
  transition: background var(--duration-fast), color var(--duration-fast);
}

.mega-col:nth-child(1) .mega-col-links a:hover {
  background: var(--blue-50);
  color: var(--blue-800);
}

.mega-col:nth-child(2) .mega-col-links a:hover {
  background: var(--orange-50);
  color: var(--orange-800);
}

.mega-col:nth-child(3) .mega-col-links a:hover {
  background: var(--violet-50);
  color: var(--violet-800);
}

/* Lang Toggle */
.lang-toggle {
  display: flex;
  gap: 2px;
  background: var(--neutral-100);
  padding: 3px;
  border-radius: var(--radius-sm);
  margin-left: var(--space-2);
}

.lang-btn {
  border: none;
  background: transparent;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  color: var(--neutral-500);
  padding: 3px 8px;
  border-radius: 3px;
  cursor: pointer;
  transition: all var(--duration-fast);
}

.lang-btn.active {
  background: var(--white);
  color: var(--blue-600);
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

/* Nav CTA */
.nav-cta {
  font-size: 14px;
  font-weight: 600;
  color: var(--white);
  background: var(--blue-600);
  padding: 8px 18px;
  border-radius: var(--radius-md);
  transition: background var(--duration-default), transform var(--duration-fast);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: var(--space-2);
  white-space: nowrap;
  flex-shrink: 0;
}

.nav-cta:hover {
  background: var(--blue-800);
  transform: translateY(-1px);
}

/* Mobile Toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-2);
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--neutral-800);
  border-radius: 2px;
  transition: all var(--duration-panel) var(--ease-default);
}

/* ─────────────────────────────────────────────
   7. HERO SECTION
   Layout: section nền --white, cột text = --blue-100
───────────────────────────────────────────── */
.hero {
  padding-top: calc(64px + var(--space-20));
  padding-bottom: var(--space-20);
  background-color: var(--white);
  position: relative;
  overflow: hidden;
  min-height: 92vh;
  display: flex;
  align-items: center;
}

/* Subtle doodle blobs on white bg */
.hero::before {
  content: '';
  position: absolute;
  width: 520px; height: 520px;
  background: radial-gradient(circle, rgba(186, 208, 247, 0.35) 0%, transparent 68%);
  top: -80px; right: -80px;
  border-radius: 50%;
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  width: 320px; height: 320px;
  background: radial-gradient(circle, rgba(245, 191, 152, 0.22) 0%, transparent 70%);
  bottom: -60px; left: 5%;
  border-radius: 50%;
  pointer-events: none;
}

.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: var(--space-12);
  position: relative;
  z-index: 1;
}

/* Hero Content Column — đổ màu --blue-100 vào đây */
.hero-content {
  background: var(--blue-100);
  border-radius: var(--radius-xl);
  padding: var(--space-12) var(--space-8);
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: 13px;
  font-weight: 600;
  color: var(--blue-800);
  background: rgba(19, 70, 163, 0.1);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  width: fit-content;
  border: 1px solid var(--blue-200);
}

.badge-dot {
  width: 7px; height: 7px;
  background: var(--blue-600);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(0.8); }
}

.hero-title {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: clamp(34px, 4.5vw, 52px);
  line-height: 1.15;
  color: var(--blue-950);
  letter-spacing: -0.02em;
}

.hero-highlight {
  color: var(--blue-600);
  position: relative;
}

.hero-highlight::after {
  content: '';
  position: absolute;
  bottom: 3px;
  left: 0; right: 0;
  height: 4px;
  background: var(--orange-400);
  border-radius: 2px;
  opacity: 0.55;
}

.hero-desc {
  font-size: 17px;
  color: var(--blue-800);
  max-width: 460px;
  line-height: 1.65;
}

.hero-buttons {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex-wrap: wrap;
}

/* Hero Visual — mascot float tự do trên nền trắng (không có nền màu) */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.hero-mascot-placeholder {
  width: 100%;
  max-width: 400px;
  aspect-ratio: 4 / 3.2;
  background: transparent;
  border: 2px dashed var(--blue-200);
  border-radius: var(--radius-xl);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
  position: relative;
}

.mascot-svg-placeholder {
  width: 200px; height: 200px;
  opacity: 0.45;
}

.mascot-label {
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 600;
  color: var(--blue-800);
  opacity: 0.6;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.hero-scroll-hint {
  position: absolute;
  bottom: var(--space-8);
  left: 50%;
  transform: translateX(-50%);
  color: var(--blue-400);
  opacity: 0.6;
  animation: bounceY 2s ease-in-out infinite;
  text-decoration: none;
  font-size: 18px;
}

@keyframes bounceY {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(8px); }
}

/* ─────────────────────────────────────────────
   8. BUTTONS
───────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  padding: 12px 26px;
  border-radius: var(--radius-md);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--duration-default) var(--ease-default);
  text-decoration: none;
  white-space: nowrap;
  line-height: 1;
  letter-spacing: 0.01em;
}

.btn:active { box-shadow: var(--shadow-btn-active); transform: translateY(1px); }

.btn-primary {
  background: var(--blue-600);
  color: var(--white);
  border-color: var(--blue-600);
}
.btn-primary:hover {
  background: var(--blue-800);
  border-color: var(--blue-800);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(37,99,235,0.28);
}

.btn-secondary {
  background: transparent;
  color: var(--blue-600);
  border-color: var(--blue-600);
}
.btn-secondary:hover {
  background: var(--blue-600);
  color: var(--white);
  transform: translateY(-2px);
}

.btn-ghost {
  background: transparent;
  color: var(--blue-600);
  border-color: transparent;
  padding-left: 0;
}
.btn-ghost:hover {
  color: var(--blue-800);
  gap: var(--space-4);
}

.btn-dark {
  background: var(--white);
  color: var(--blue-800);
  border-color: var(--white);
}
.btn-dark:hover {
  background: var(--blue-100);
  border-color: var(--blue-100);
  transform: translateY(-2px);
}

.btn-sm { font-size: 13px; padding: 8px 18px; }
.btn:disabled { opacity: 0.4; cursor: not-allowed; transform: none !important; }

/* ─────────────────────────────────────────────
   9. STATS SECTION — nền --neutral-50
───────────────────────────────────────────── */
.stats-section {
  background: var(--neutral-50);
  padding: var(--space-12) 0;
  border-top: 1px solid var(--neutral-200);
  border-bottom: 1px solid var(--neutral-200);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: var(--space-8) var(--space-6);
  border-right: 1px solid var(--neutral-200);
}
.stat-item:last-child { border-right: none; }

.stat-number {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: clamp(36px, 4vw, 52px);
  color: var(--blue-600);
  line-height: 1;
  letter-spacing: -0.03em;
}

.stat-label {
  font-size: 14px;
  font-weight: 500;
  color: var(--neutral-500);
  margin-top: var(--space-2);
  max-width: 140px;
  line-height: 1.4;
}

/* ─────────────────────────────────────────────
   10. DEPARTMENT SECTIONS
   Layout: section nền --white / --neutral-50 (xen kẽ)
   Cột text = content-block màu tương ứng
   Cột visual = không có màu nền — thở tự do
───────────────────────────────────────────── */
.dept-section {
  padding: var(--space-20) 0;
}

.dept-section .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-12);
  align-items: center;
}

/* Reverse layout: visual bên trái, text bên phải */
.dept-section.reverse .container {
  direction: rtl;
}
.dept-section.reverse .container > * { direction: ltr; }

.dept-content {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

/* Heading màu theo block */
.dept-heading {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(22px, 3vw, 32px);
  line-height: 1.25;
}

.dept-desc {
  font-size: 16px;
  line-height: 1.7;
  color: var(--neutral-700);
  max-width: 440px;
}

/* Override trong content-block: desc màu đậm hơn */
.content-block--blue   .dept-desc { color: var(--blue-800); }
.content-block--orange .dept-desc { color: var(--orange-800); }
.content-block--violet .dept-desc { color: var(--violet-800); }

/* Service Tags */
.dept-services {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  padding-top: var(--space-1);
}

.dept-service-tag {
  font-size: 13px;
  font-weight: 500;
  padding: 5px 13px;
  border-radius: var(--radius-full);
  transition: all var(--duration-fast);
  text-decoration: none;
}

/* Tag màu theo content-block */
.content-block--blue   .dept-service-tag {
  color: var(--blue-800);
  background: rgba(19, 70, 163, 0.1);
  border: 1px solid var(--blue-200);
}
.content-block--blue   .dept-service-tag:hover { background: var(--blue-200); }

.content-block--orange .dept-service-tag {
  color: var(--orange-800);
  background: rgba(156, 61, 8, 0.09);
  border: 1px solid var(--orange-200);
}
.content-block--orange .dept-service-tag:hover { background: var(--orange-200); }

.content-block--violet .dept-service-tag {
  color: var(--violet-800);
  background: rgba(76, 29, 149, 0.09);
  border: 1px solid var(--violet-200);
}
.content-block--violet .dept-service-tag:hover { background: var(--violet-200); }

/* CTA trong content block */
.content-block--blue   .btn-dept { color: var(--blue-800); border-color: var(--blue-800); }
.content-block--blue   .btn-dept:hover { background: var(--blue-800); color: var(--white); }

.content-block--orange .btn-dept { color: var(--orange-800); border-color: var(--orange-800); }
.content-block--orange .btn-dept:hover { background: var(--orange-800); color: var(--white); }

.content-block--violet .btn-dept { color: var(--violet-800); border-color: var(--violet-800); }
.content-block--violet .btn-dept:hover { background: var(--violet-800); color: var(--white); }

/* Department Visual — không có nền, mascot float tự do */
.dept-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.dept-visual-placeholder {
  width: 100%;
  aspect-ratio: 4 / 3;
  border: 2px dashed var(--neutral-200);
  border-radius: var(--radius-xl);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
  font-size: 12px;
  font-weight: 600;
  color: var(--neutral-400);
  text-align: center;
  padding: var(--space-6);
  background: transparent;
}

.dept-visual-icon { font-size: 52px; opacity: 0.4; }

/* ─────────────────────────────────────────────
   11. WHY MONAI — section-white
   Bảng so sánh + Values
───────────────────────────────────────────── */
.why-section {
  padding: var(--space-20) 0;
}

.why-section .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-16);
  align-items: start;
}

/* Comparison Table — trong content-block--blue */
.comparison-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  margin-top: var(--space-6);
}

.comparison-table thead th {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 13px 18px;
  text-align: center;
}

.comparison-table thead th:first-child {
  text-align: left;
  background: var(--neutral-100);
  color: var(--neutral-500);
}

.comparison-table thead th.col-old {
  background: var(--neutral-200);
  color: var(--neutral-700);
}

.comparison-table thead th.col-monai {
  background: var(--blue-600);
  color: var(--white);
}

.comparison-table tbody tr {
  border-top: 1px solid var(--neutral-200);
  transition: background var(--duration-fast);
}

.comparison-table tbody tr:hover { background: var(--blue-50); }

.comparison-table tbody td {
  padding: 13px 18px;
  font-size: 13px;
  vertical-align: middle;
  text-align: center;
  background: var(--white);
}

.comparison-table tbody td:first-child {
  text-align: left;
  font-weight: 500;
  color: var(--neutral-800);
}

.comparison-table .val-old   { color: var(--neutral-400); }
.comparison-table .val-monai { color: var(--blue-800); font-weight: 600; }

/* Values List */
.values-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.value-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
  padding: var(--space-6);
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--neutral-200);
  box-shadow: var(--shadow-card);
  transition: box-shadow var(--duration-default), transform var(--duration-default);
}

.value-item:hover {
  box-shadow: var(--shadow-card-hover);
  transform: translateX(4px);
}

.value-icon {
  width: 44px; height: 44px;
  background: var(--blue-100);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.flower-hero-title {
  font-family: var(--font-heading);
  font-size: clamp(3rem, 8vw, 5.5rem);
  color: var(--flower-text-primary);
  margin-bottom: var(--space-4);
}

.flower-btn-primary {
  display: inline-block;
  background-color: var(--flower-accent);
  color: #fff;
  padding: 0.75rem 2.5rem;
  border-radius: 50px;
  text-decoration: none;
  font-family: var(--font-body);
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: all 0.3s ease;
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
  margin-top: 1rem;
}
.flower-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.15);
  opacity: 0.9;
}

.value-text h5 {
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 700;
  color: var(--blue-800);
  margin-bottom: 4px;
}

.value-text p {
  font-size: 13px;
  color: var(--neutral-500);
  line-height: 1.55;
}

/* ─────────────────────────────────────────────
   12. BLOG PREVIEW — section-cream
───────────────────────────────────────────── */
.blog-preview-section {
  padding: var(--space-20) 0;
}

.blog-section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: var(--space-12);
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}

.blog-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--neutral-200);
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  transition: box-shadow var(--duration-default), transform var(--duration-default);
  text-decoration: none;
  color: inherit;
}

.blog-card:hover {
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-4px);
}

.blog-card-thumb {
  height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 44px;
}

/* Thumb màu theo pillar — dùng pastel column style */
.blog-card-thumb--blue   { background: var(--blue-100);   }
.blog-card-thumb--orange { background: var(--orange-100); }
.blog-card-thumb--violet { background: var(--violet-100); }

.blog-card-body {
  padding: var(--space-6);
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.blog-card-tag {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.blog-card-tag--blue   { color: var(--blue-600); }
.blog-card-tag--orange { color: var(--orange-600); }
.blog-card-tag--violet { color: var(--violet-600); }

.blog-card-title {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 700;
  color: var(--neutral-800);
  line-height: 1.35;
}

.blog-card-desc {
  font-size: 14px;
  color: var(--neutral-500);
  line-height: 1.6;
  flex: 1;
}

.blog-card-footer {
  font-size: 13px;
  color: var(--blue-600);
  font-weight: 500;
  padding-top: var(--space-3);
  border-top: 1px solid var(--neutral-200);
}

/* ─────────────────────────────────────────────
   13. CTA SECTION — EXCEPTION: full section màu
   Ref: "Exception duy nhất" trong DESIGN.md
───────────────────────────────────────────── */
.cta-section {
  background: var(--blue-800);
  padding: var(--space-20) 0;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  width: 580px; height: 580px;
  background: radial-gradient(circle, rgba(75, 130, 240, 0.22) 0%, transparent 70%);
  top: -220px; right: -80px;
  border-radius: 50%;
  pointer-events: none;
}

.cta-inner {
  text-align: center;
  position: relative;
  z-index: 1;
  max-width: 580px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-6);
}

.cta-title {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: clamp(28px, 4vw, 44px);
  color: var(--white);
  line-height: 1.15;
}

.cta-desc {
  font-size: 17px;
  color: rgba(255,255,255,0.72);
  max-width: 420px;
  line-height: 1.65;
}

.cta-buttons {
  display: flex;
  gap: var(--space-4);
  justify-content: center;
  flex-wrap: wrap;
}

.cta-note {
  font-size: 13px;
  color: rgba(255,255,255,0.45);
}

/* ─────────────────────────────────────────────
   14. FOOTER — EXCEPTION: --neutral-950
───────────────────────────────────────────── */
.footer {
  background: var(--neutral-950);
  color: rgba(255,255,255,0.65);
  padding: var(--space-16) 0 var(--space-8);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-8);
  padding-bottom: var(--space-12);
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-brand-name {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 24px;
  color: var(--white);
  letter-spacing: -0.02em;
  margin-bottom: var(--space-3);
}

.footer-brand-name span { color: var(--blue-400); }

.footer-tagline {
  font-size: 14px;
  color: rgba(255,255,255,0.45);
  line-height: 1.65;
  max-width: 270px;
}

.footer-col h4 {
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--white);
  margin-bottom: var(--space-4);
}

.footer-col a {
  display: block;
  font-size: 14px;
  color: rgba(255,255,255,0.5);
  padding: 4px 0;
  transition: color var(--duration-fast);
}

.footer-col a:hover { color: var(--white); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: var(--space-6);
  font-size: 13px;
  color: rgba(255,255,255,0.28);
  flex-wrap: wrap;
  gap: var(--space-4);
}

/* ─────────────────────────────────────────────
   15. SCROLL REVEAL
───────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity var(--duration-page) var(--ease-enter),
    transform var(--duration-page) var(--ease-enter);
}

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

.reveal-delay-1 { transition-delay: 80ms;  }
.reveal-delay-2 { transition-delay: 160ms; }
.reveal-delay-3 { transition-delay: 240ms; }
.reveal-delay-4 { transition-delay: 320ms; }
.reveal-delay-5 { transition-delay: 400ms; }

/* ─────────────────────────────────────────────
   16. SECTION HEADER PATTERN
───────────────────────────────────────────── */
.section-header {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin-bottom: var(--space-12);
}

.section-header.centered {
  text-align: center;
  align-items: center;
}

.section-header p {
  font-size: 17px;
  color: var(--neutral-500);
  max-width: 540px;
}

/* ─────────────────────────────────────────────
   17. RESPONSIVE — TABLET & MOBILE
───────────────────────────────────────────── */
@media (max-width: 1100px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-item:nth-child(2) { border-right: none; }
  .stat-item:nth-child(3) { border-top: 1px solid var(--neutral-200); border-right: 1px solid var(--neutral-200); }
  .stat-item:nth-child(4) { border-top: 1px solid var(--neutral-200); }

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

  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  /* Hero: stack vertically, text block chiếm full width */
  .hero .container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-badge { margin: 0 auto; }
  .hero-desc  { max-width: 100%; }
  .hero-buttons { justify-content: center; }

  .hero-visual { order: -1; }
  .hero-mascot-placeholder { max-width: 280px; margin: 0 auto; }

  /* Dept sections: stack */
  .dept-section .container { grid-template-columns: 1fr; gap: var(--space-8); }
  .dept-section.reverse .container { direction: ltr; }

  .dept-desc { max-width: 100%; }
  .dept-services { justify-content: flex-start; }
  .dept-visual-placeholder { max-width: 380px; margin: 0 auto; }

  /* Why section: stack */
  .why-section .container { grid-template-columns: 1fr; gap: var(--space-10); }

  /* Mega menu: hide on tablet */
  .mega-menu { display: none !important; }
}

@media (max-width: 768px) {
  h1 { font-size: 30px; }
  h2 { font-size: 24px; }
  h3 { font-size: 20px; }

  .section { padding: var(--space-12) 0; }

  /* Navbar mobile */
  .nav-links {
    display: none;
    position: fixed;
    top: 64px; left: 0; right: 0; bottom: 0;
    background: rgba(249,248,246,0.97);
    backdrop-filter: blur(12px);
    flex-direction: column;
    align-items: flex-start;
    padding: var(--space-8) var(--space-6);
    gap: var(--space-1);
    z-index: 99;
    overflow-y: auto;
  }

  .nav-links.open { display: flex; }

  .nav-links > a,
  .nav-item-dropdown > a { font-size: 18px; padding: 10px var(--space-4); width: 100%; }

  .lang-toggle { margin-left: 0; margin-top: var(--space-4); }

  .nav-cta {
    width: 100%;
    justify-content: center;
    margin-left: 0;
    margin-top: var(--space-2);
  }

  .nav-toggle { display: flex; }

  .nav-toggle.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
  .nav-toggle.open span:nth-child(2) { opacity: 0; }
  .nav-toggle.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

  /* Content block: reduce padding */
  .content-block { padding: var(--space-8) var(--space-6); }

  /* Hero content block */
  .hero-content { padding: var(--space-8) var(--space-6); }

  /* Stats */
  .stats-grid { grid-template-columns: 1fr 1fr; }

  /* Blog */
  .blog-grid { grid-template-columns: 1fr; }
  .blog-section-header { flex-direction: column; align-items: flex-start; gap: var(--space-4); }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr; gap: var(--space-6); }
  .footer-bottom { flex-direction: column; text-align: center; }

  /* CTA buttons */
  .cta-buttons, .hero-buttons { flex-direction: column; align-items: center; }
  .btn { max-width: 320px; width: 100%; justify-content: center; }
}

/* ─────────────────────────────────────────────
   18. ACCESSIBILITY
───────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}

:focus-visible {
  outline: 2px solid var(--blue-600);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ─────────────────────────────────────────────
   19. UTILITY
───────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  font-size: 12px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  background: var(--blue-100);
  color: var(--blue-800);
}

.badge-yellow { background: var(--comic-yellow); color: var(--neutral-950); }

/* ─────────────────────────────────────────────
   20. MAGAZINE THEME (DARK OLIVE)
───────────────────────────────────────────── */
:root {
  --mag-bg: #1c1f1a;
  --mag-surface: #242821;
  --mag-border: #3a4034;
  --mag-text-primary: #f4f6f0;
  --mag-text-secondary: #a5b09c;
  --mag-accent: #a3b899;
}

body.magazine-theme {
  background-color: var(--mag-bg);
  color: var(--mag-text-primary);
  font-family: var(--font-body);
}

.magazine-theme h1, .magazine-theme h2, .magazine-theme h3 {
  color: var(--mag-text-primary);
  font-family: var(--font-heading);
}

.mag-nav {
  padding: var(--space-6) var(--space-8);
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--mag-border);
}

.mag-nav-brand {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mag-text-primary);
}

.mag-hero {
  min-height: 85vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: var(--space-20) var(--space-4);
  background-color: var(--mag-bg);
}

.mag-hero-title {
  font-size: clamp(48px, 10vw, 140px);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin-bottom: var(--space-4);
  font-weight: 700;
  line-height: 1;
}

.mag-collection {
  padding: var(--space-20) 0;
  border-bottom: 1px solid var(--mag-border);
}

.mag-collection:last-child {
  border-bottom: none;
}

.mag-hero-shoot {
  width: 100%;
  aspect-ratio: 16 / 9;
  background-color: var(--mag-surface);
  border: 1px dashed var(--mag-border);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--mag-text-secondary);
  margin-bottom: var(--space-8);
  border-radius: 4px;
}

.mag-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-6);
  margin-bottom: var(--space-8);
}

.mag-meta-item h4 {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--mag-text-secondary);
  margin-bottom: var(--space-2);
}

.mag-meta-item p {
  font-size: 18px;
  font-weight: 500;
  color: var(--mag-text-primary);
}

.mag-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 36px;
  border: 1px solid var(--mag-text-primary);
  color: var(--mag-text-primary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 13px;
  font-weight: 600;
  transition: all var(--duration-fast);
  cursor: pointer;
}

.mag-btn:hover {
  background-color: var(--mag-text-primary);
  color: var(--mag-bg);
}

.mag-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: var(--space-8);
  padding: var(--space-12) 0;
}

.mag-grid-item {
  background-color: var(--mag-surface);
  aspect-ratio: 3/4;
  border: 1px dashed var(--mag-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--mag-text-secondary);
}

.mag-tech-step {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-12);
  align-items: center;
  padding: var(--space-16) 0;
  border-bottom: 1px solid var(--mag-border);
}

.mag-tech-step:nth-child(even) {
  direction: rtl;
}

.mag-tech-step:nth-child(even) > * {
  direction: ltr;
}

.mag-step-number {
  font-family: var(--font-heading);
  font-size: 100px;
  color: var(--mag-surface);
  -webkit-text-stroke: 1px var(--mag-accent);
  line-height: 1;
  margin-bottom: var(--space-4);
}

.mag-fixed-cta {
  position: fixed;
  bottom: var(--space-8);
  right: var(--space-8);
  background-color: var(--mag-accent);
  color: var(--mag-bg);
  padding: 16px 28px;
  border-radius: var(--radius-full);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 13px;
  z-index: 100;
  box-shadow: 0 4px 20px rgba(0,0,0,0.5);
  border: none;
  cursor: pointer;
  transition: transform var(--duration-fast);
}

.mag-fixed-cta:hover {
  transform: translateY(-3px);
}

.mag-form {
  max-width: 600px;
  margin: 0 auto;
  padding: var(--space-12) 0;
}

.mag-form input, .mag-form textarea {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--mag-border);
  color: var(--mag-text-primary);
  padding: var(--space-4) 0;
  margin-bottom: var(--space-6);
  font-family: var(--font-body);
  font-size: 16px;
}
.mag-form input:focus, .mag-form textarea:focus {
  outline: none;
  border-bottom-color: var(--mag-accent);
}

@media (max-width: 768px) {
  .mag-tech-step {
    grid-template-columns: 1fr;
    gap: var(--space-8);
    padding: var(--space-12) 0;
  }
  .mag-tech-step:nth-child(even) {
    direction: ltr;
  }
}

/* ─────────────────────────────────────────────
   21. SCROLLING MARQUEE EFFECT
───────────────────────────────────────────── */
.marquee-container {
  overflow: hidden;
  white-space: nowrap;
  width: 100%;
  background: var(--mag-text-primary);
  color: var(--mag-bg);
  padding: var(--space-4) 0;
  display: flex;
  align-items: center;
}

.marquee-content {
  display: inline-block;
  animation: marquee-scroll 15s linear infinite;
  font-family: var(--font-heading);
  font-size: 48px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

@keyframes marquee-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ─────────────────────────────────────────────
   21. FLOWER THEME (LIGHT)
───────────────────────────────────────────── */
:root {
  --flower-bg: #FCFAF8;
  --flower-surface: #FFFFFF;
  --flower-border: #E8E2DA;
  --flower-text-primary: #2D332A;
  --flower-text-secondary: #7A8575;
  --flower-accent: #D4A373;
}

body.flower-theme {
  background-color: var(--flower-bg);
  color: var(--flower-text-primary);
  font-family: var(--font-body);
}

.flower-theme h1, .flower-theme h2, .flower-theme h3 {
  color: var(--flower-text-primary);
  font-family: var(--font-heading);
}

/* Nav */
.flower-nav {
  padding: var(--space-6) var(--space-8);
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--flower-border);
  position: relative;
  z-index: 10;
}
.flower-nav-brand {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--flower-text-primary);
}

/* Hero */
.flower-hero {
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: var(--space-20) var(--space-4);
  position: relative;
  z-index: 1;
}

.flower-hero-title {
  font-size: clamp(48px, 10vw, 120px);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-4);
  font-weight: 700;
  line-height: 1;
}

/* Falling Pattern Animation */
@keyframes fall {
  0% { transform: translateY(-10vh) rotate(0deg); opacity: 0; }
  10% { opacity: 0.5; }
  90% { opacity: 0.5; }
  100% { transform: translateY(110vh) rotate(360deg); opacity: 0; }
}

.falling-pattern-container {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 0; /* Behind content */
  overflow: hidden;
}

.pattern-flake {
  position: absolute;
  top: -100px;
  background-image: url('placeholder-pattern.png'); /* To be replaced by User */
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  opacity: 0;
  animation: fall linear infinite;
  /* Kích thước mặc định của viền mờ cho placeholder nếu chưa có ảnh */
  border: 1px dashed rgba(212, 163, 115, 0.3);
  border-radius: 50%;
}

/* Layout cho Albums Hoa */
.flower-album {
  position: relative;
  z-index: 1; /* Above falling pattern */
  padding: var(--space-20) 0;
  border-bottom: 1px dashed var(--flower-border);
}

.flower-album:last-child {
  border-bottom: none;
}

.flower-album-top {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-12);
  align-items: center;
  margin-bottom: var(--space-12);
}

.flower-album-info h2 {
  font-size: clamp(32px, 5vw, 56px);
  margin-bottom: var(--space-4);
  line-height: 1.1;
  text-transform: uppercase;
}

.flower-album-info p {
  font-size: 18px;
  color: var(--flower-text-secondary);
  line-height: 1.6;
}

.flower-img-3x4 {
  aspect-ratio: 3/4;
  background-color: var(--flower-surface);
  border: 1px dashed var(--flower-border);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--flower-text-secondary);
  text-align: center;
  padding: var(--space-4);
  border-radius: var(--radius-md);
  box-shadow: 0 8px 32px rgba(0,0,0,0.02);
  overflow: hidden;
  position: relative;
}

.flower-album-bottom {
  display: flex;
  gap: var(--space-6);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: var(--space-6); /* Không gian cho thanh cuộn */
  scrollbar-width: thin;
}

/* Thanh cuộn (Scrollbar) tùy chỉnh */
.flower-album-bottom::-webkit-scrollbar {
  height: 6px;
}
.flower-album-bottom::-webkit-scrollbar-track {
  background: var(--flower-bg);
  border-radius: 10px;
}
.flower-album-bottom::-webkit-scrollbar-thumb {
  background: var(--flower-text-secondary);
  border-radius: 10px;
}
.flower-album-bottom::-webkit-scrollbar-thumb:hover {
  background: var(--flower-text-primary);
}

/* Hiển thị 3 ảnh 1 lúc trên Desktop (tính toán trừ đi gap) */
.flower-album-bottom .flower-img-3x4 {
  flex: 0 0 calc(33.3333% - 16px);
  scroll-snap-align: start;
}

@media (max-width: 768px) {
  .flower-album-top {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }
  /* Trên Mobile, hiển thị 1 ảnh rưỡi (85%) để người dùng biết có thể vuốt tiếp */
  .flower-album-bottom .flower-img-3x4 {
    flex: 0 0 85%;
    scroll-snap-align: center;
  }
}

/* Orbit Animation cho Ảnh Gốc */
.flower-orbit-container {
  aspect-ratio: 3/4;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.orbit-center {
  position: relative;
  width: 240px; 
  height: 240px;
}

.orbit-node {
  position: absolute;
  top: 0; left: 0; 
  width: 100%; height: 100%;
  animation: orbit-spin 20s linear infinite;
}

.orbit-node-1 { animation-delay: 0s; }
.orbit-node-2 { animation-delay: -5s; }
.orbit-node-3 { animation-delay: -10s; }
.orbit-node-4 { animation-delay: -15s; }

@keyframes orbit-spin {
  0%   { transform: rotate(0deg) translateX(110px) rotate(0deg); }
  100% { transform: rotate(360deg) translateX(110px) rotate(-360deg); }
}

.orbit-img {
  position: absolute;
  top: calc(50% - 45px);
  left: calc(50% - 45px);
  width: 90px;
  height: 90px;
  background-color: var(--flower-surface);
  border: 1px dashed var(--flower-border);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center; 
  justify-content: center;
  font-size: 11px;
  color: var(--flower-text-secondary);
  text-align: center;
  box-shadow: 0 8px 24px rgba(0,0,0,0.06);
  overflow: hidden;
}
.orbit-img i {
  font-size: 20px;
  margin-bottom: 4px;
  opacity: 0.3;
}
