:root {
  --navy-950: #0a0e27;
  --navy-900: #0d1230;
  --navy-800: #141a3d;
  --navy-border: rgba(255, 255, 255, 0.1);
  --gold-100: #f9e8b8;
  --gold-300: #f0c96b;
  --gold-500: #e0b04a;
  --gold-700: #c9992f;
  --text-white: #ffffff;
  --text-muted: #b9bdd6;
  --cream-bg: #fbf7ee;
  --cream-border: #efe4cd;
  --text-gray: #6b7280;
  --pink-500: #e86a88;
  --purple-500: #8e6fd9;
  --blue-500: #4a90d9;
  --font-display: "Montserrat", sans-serif;
  --font-body: "Be Vietnam Pro", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--navy-950);
  color: var(--text-white);
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9375rem;
  text-decoration: none;
  padding: 12px 26px;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-gold {
  background: linear-gradient(180deg, var(--gold-300), var(--gold-700));
  color: #241a05;
  box-shadow: 0 8px 20px rgba(201, 153, 47, 0.35);
}

.btn-gold:hover {
  box-shadow: 0 12px 26px rgba(201, 153, 47, 0.45);
}

.btn-outline {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.55);
  color: var(--text-white);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: #fff;
}

.btn-lg {
  padding: 15px 32px;
  font-size: 1rem;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 14, 39, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--navy-border);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 76px;
}

/* Cao hơn (0,3,0) so với .header-inner { height } ở mọi breakpoint nên
   luôn thắng — mở menu mobile thì bỏ chiều cao cố định để nav/CTA xuống
   dòng không bị cắt. */
.site-header.is-menu-open .header-inner {
  height: auto;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}

.logo-icon {
  width: 30px;
  height: 30px;
  flex-shrink: 0;
}

.logo-text {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.125rem;
  letter-spacing: 0.02em;
  line-height: 1.05;
  color: var(--gold-300);
  display: flex;
  flex-direction: column;
}

.logo-year {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.6875rem;
  letter-spacing: 0.12em;
  color: var(--text-muted);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  margin: 0 auto;
}

.main-nav a {
  color: var(--text-white);
  text-decoration: none;
  font-size: 0.9375rem;
  font-weight: 500;
  transition: color 0.15s ease;
  white-space: nowrap;
}

.main-nav a:hover {
  color: var(--gold-300);
}

.btn-nav-cta {
  flex-shrink: 0;
  padding: 10px 22px;
  font-size: 0.875rem;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
}

.menu-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text-white);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.menu-toggle.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle.is-open span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  min-height: 768px; /* = chiều cao gốc của images/hero-banner.png, hiện đủ 100% ảnh không bị cắt */
  display: flex;
  align-items: center;
  padding: 56px 0;
}

/* Ảnh nền (images/hero-banner.png — 2 bé MC + sân khấu khán giả, đã có sẵn
   chữ "Young Voices / Brighten Vietnam") giữ ĐÚNG kích thước gốc
   (background-size: auto, không cover/không zoom), neo mép trên ngay dưới
   header (background-position: top) — không dùng cover vì sẽ phóng to/crop
   khác tỉ lệ gốc. .hero có min-height bằng đúng chiều cao gốc của ảnh
   (768px) để hiển thị đủ 100% chiều cao, không bị cắt ở đáy. Lớp gradient
   tối dần vẫn để riêng background-size: cover để luôn phủ kín toàn bộ
   section. Đã bỏ lớp gradient tối bên trái theo yêu cầu — ảnh hiển thị
   nguyên vẹn không bị che mờ. */
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: url("../images/hero-banner.png");
  background-repeat: no-repeat;
  background-position: right top;
  background-size: auto;
}

/* .hero-inner dùng chung class .container (max-width 1280px, canh giữa)
   với header — nhưng ở hero thì bỏ canh giữa đó đi, cho khối chữ nằm sát
   về bên trái thật của màn hình (chỉ còn padding 24px) thay vì bị kẹp
   giữa 2 khoảng trắng đối xứng như trước — đây chính là hiệu ứng "dịch
   chữ sang trái" nhìn thấy rõ nhất ở màn hình rộng. */
.hero-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: none;
  margin: 0;
}

.hero-content {
  max-width: 620px;
}

.hero-title {
  margin: 0 0 6px;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2.4rem, 4.4vw, 3.75rem);
  line-height: 1.05;
  letter-spacing: -0.01em;
  background: linear-gradient(180deg, var(--gold-100), var(--gold-500) 55%, var(--gold-700));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-title-year {
  background: inherit;
  -webkit-background-clip: text;
  background-clip: text;
}

.hero-subtitle {
  margin: 0 0 14px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.1rem, 1.9vw, 1.5rem);
  line-height: 1.3;
  color: var(--text-white);
}

.hero-desc {
  margin: 0 0 28px;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 36px;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 12px;
}

.stat-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, var(--gold-300), var(--gold-700));
  box-shadow: 0 4px 12px rgba(201, 153, 47, 0.3);
}

.stat-icon svg {
  width: 22px;
  height: 22px;
}

.stat-text {
  display: flex;
  flex-direction: column;
  font-size: 0.8125rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.stat-text strong {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9375rem;
  color: var(--text-white);
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  /* Header dùng flex-wrap thay vì absolute+offset đoán số px: logo/toggle
     giữ nguyên hàng 1 (order 1/2), nav và nút CTA tự xuống hàng riêng theo
     flow bình thường (order 3/4, width:100%) — không lệ thuộc chiều cao
     thật của menu nên không bao giờ chồng lên nhau dù số mục nav đổi. */
  .header-inner {
    flex-wrap: wrap;
  }

  .logo {
    order: 1;
  }

  .menu-toggle {
    order: 2;
    display: flex;
    margin-left: auto;
  }

  .main-nav {
    order: 3;
    display: none;
    width: 100%;
  }

  .btn-nav-cta {
    order: 4;
    display: none;
    width: 100%;
  }

  .site-header.is-menu-open .main-nav {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 16px 0 4px;
    border-top: 1px solid var(--navy-border);
  }

  .site-header.is-menu-open .main-nav a {
    width: 100%;
    padding: 10px 0;
  }

  .site-header.is-menu-open .btn-nav-cta {
    display: inline-flex;
    justify-content: center;
    margin-bottom: 20px;
  }

}

/* Dưới 1024px, chữ và ảnh không còn đủ chỗ để đứng cạnh nhau kiểu full-bleed
   — chữ bắt đầu đè lên mặt 2 bé, mất chữ lẫn ảnh. Chuyển hẳn sang bố cục
   xếp chồng: ảnh nguyên trạng làm banner trên cùng (ngay dưới header,
   background-size: cover chỉ trong khung banner này — không phải cắt/zoom
   cả section như bên desktop), chữ xuống hẳn bên dưới trên nền đặc, không
   cần gradient che chữ nữa vì chữ không còn nằm trên ảnh. */
@media (max-width: 1024px) {
  .hero {
    display: block;
    min-height: 0;
    padding: 0;
  }

  .hero-bg {
    position: relative;
    inset: auto;
    width: 100%;
    height: 280px;
    background-image: url("../images/hero-banner.png");
    background-repeat: no-repeat;
    background-position: right top;
    background-size: cover;
  }

  .hero-inner {
    display: block;
  }

  .hero-content {
    max-width: none;
    background: var(--navy-950);
    margin: 0 -24px;
    padding: 32px 24px 40px;
  }
}

@media (max-width: 640px) {
  .header-inner {
    height: 64px;
  }

  .hero-bg {
    height: 220px;
  }

  .hero-actions {
    flex-direction: column;
  }

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

  .hero-stats {
    gap: 16px 20px;
  }
}

/* ---------- Section 2: Giới thiệu + Đối tượng tham gia ---------- */
.features {
  background: var(--cream-bg);
  padding: 72px 0;
}

.section-eyebrow {
  margin: 0 0 8px;
  text-align: center;
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--navy-900);
}

.section-title {
  margin: 0 0 48px;
  text-align: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.5rem, 2.6vw, 2.125rem);
  line-height: 1.25;
  color: var(--navy-950);
}

.section-subtitle {
  margin: -32px 0 40px;
  text-align: center;
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--text-gray);
}

.age-groups-title {
  margin-top: 8px;
}

/* ---- 4 thẻ lợi ích ---- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 72px;
}

.feature-card {
  background: #fff;
  border: 1px solid var(--cream-border);
  border-radius: 20px;
  padding: 32px 22px;
  text-align: center;
}

.feature-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.feature-icon svg {
  width: 26px;
  height: 26px;
}

.feature-icon-pink { background: var(--pink-500); }
.feature-icon-purple { background: var(--purple-500); }
.feature-icon-blue { background: var(--blue-500); }
.feature-icon-gold { background: linear-gradient(180deg, var(--gold-300), var(--gold-700)); }

.feature-card h3 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.0625rem;
  color: var(--navy-950);
}

.feature-card p {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--text-gray);
}

/* ---- 3 thẻ nhóm tuổi ---- */
.age-groups-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.age-card {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: 20px;
  overflow: hidden;
  background-size: cover;
  background-position: center;
}

/* Ảnh nền tạm bằng gradient (chưa có ảnh thật) — xoá 2 dòng
   background/background-image này khi AGE_GROUPS trong js/script.js có
   imageUrl thật, lúc đó JS tự thêm inline style ghi đè. */
.age-card-placeholder-1 { background: linear-gradient(160deg, #2a3563, var(--navy-950)); }
.age-card-placeholder-2 { background: linear-gradient(160deg, #3a2f63, var(--navy-950)); }
.age-card-placeholder-3 { background: linear-gradient(160deg, #1f3a52, var(--navy-950)); }

.age-card-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 20px;
  background: linear-gradient(180deg, rgba(10, 14, 39, 0.35) 0%, rgba(10, 14, 39, 0.55) 45%, rgba(10, 14, 39, 0.9) 100%);
}

.age-card-header {
  display: flex;
  flex-direction: column;
}

.age-card-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.375rem;
  color: var(--gold-300);
  line-height: 1.2;
}

.age-card-range {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9375rem;
  color: var(--text-white);
}

.age-card-badges {
  display: flex;
  gap: 10px;
}

.age-badge {
  flex: 1;
  text-align: center;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 10px;
  padding: 8px 6px;
  backdrop-filter: blur(4px);
}

.age-badge strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.8125rem;
  color: var(--text-white);
}

.age-badge span {
  display: block;
  font-size: 0.6875rem;
  color: var(--text-muted);
}

@media (max-width: 900px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .age-groups-grid {
    grid-template-columns: 1fr;
    max-width: 420px;
    margin: 0 auto;
  }
}

@media (max-width: 640px) {
  .features {
    padding: 48px 0;
  }

  .features-grid {
    grid-template-columns: 1fr;
    gap: 16px;
    margin-bottom: 48px;
  }

  .section-title {
    margin-bottom: 32px;
  }

  .section-subtitle {
    margin-top: -24px;
  }
}

/* ---------- Section 3: Lộ trình cuộc thi ---------- */
.roadmap {
  position: relative;
  overflow: hidden;
  padding: 80px 0;
}

/* Nền "sân khấu đèn vàng" vẽ hoàn toàn bằng CSS (không dùng ảnh) — 2 quầng
   sáng vàng ở góc trái/phải + vài vệt sáng dọc mờ gợi ánh đèn sân khấu,
   giữ đúng tông navy/vàng xuyên suốt các section. */
.roadmap-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse 55% 60% at 12% 15%, rgba(240, 201, 107, 0.16), transparent 65%),
    radial-gradient(ellipse 55% 60% at 88% 85%, rgba(240, 201, 107, 0.14), transparent 65%),
    linear-gradient(180deg, var(--navy-900), var(--navy-950));
}

.roadmap-bg::before,
.roadmap-bg::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 140px;
  background: linear-gradient(180deg, rgba(240, 201, 107, 0.1), transparent 70%);
  clip-path: polygon(48% 0, 52% 0, 80% 100%, 20% 100%);
}

.roadmap-bg::before { left: 4%; }
.roadmap-bg::after { right: 4%; }

.roadmap-inner {
  position: relative;
  z-index: 1;
}

.section-eyebrow-gold {
  color: var(--gold-300);
}

.section-title-gold {
  color: var(--text-white);
}

/* ---- Track 3 mốc thời gian ---- */
.roadmap-track {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 28px;
  margin-top: 56px;
}

.roadmap-track::before {
  content: "";
  position: absolute;
  top: 8px;
  left: calc(100% / 6);
  right: calc(100% / 6);
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(240, 201, 107, 0.5) 15%, rgba(240, 201, 107, 0.5) 85%, transparent);
  z-index: 0;
}

.roadmap-item {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.roadmap-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-bottom: 28px;
  background: linear-gradient(180deg, var(--gold-300), var(--gold-700));
  box-shadow: 0 0 0 5px rgba(240, 201, 107, 0.18);
}

.roadmap-card {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(240, 201, 107, 0.35);
  border-radius: 16px;
  padding: 20px 22px;
  backdrop-filter: blur(2px);
}

.roadmap-num {
  flex-shrink: 0;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 2rem;
  color: var(--text-white);
  line-height: 1;
}

.roadmap-divider {
  flex-shrink: 0;
  width: 1px;
  height: 38px;
  background: rgba(255, 255, 255, 0.25);
}

.roadmap-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.roadmap-text strong {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9375rem;
  color: var(--text-white);
  white-space: nowrap;
}

.roadmap-text span {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--gold-300);
  white-space: nowrap;
}

@media (max-width: 768px) {
  .roadmap-track {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .roadmap-track::before {
    top: 8px;
    bottom: 8px;
    left: 8px;
    right: auto;
    width: 2px;
    height: auto;
    background: linear-gradient(180deg, transparent, rgba(240, 201, 107, 0.5) 10%, rgba(240, 201, 107, 0.5) 90%, transparent);
  }

  .roadmap-item {
    flex-direction: row;
    align-items: center;
    gap: 20px;
    padding-bottom: 24px;
  }

  .roadmap-item:last-child {
    padding-bottom: 0;
  }

  .roadmap-dot {
    margin-bottom: 0;
  }
}

@media (max-width: 640px) {
  .roadmap {
    padding: 56px 0;
  }

  .roadmap-track {
    margin-top: 40px;
  }

  .roadmap-card {
    padding: 16px;
    gap: 12px;
  }

  .roadmap-num {
    font-size: 1.5rem;
  }
}

/* ---------- Section 4a: Chinh phục chiếc Mic Vàng (ảnh thật, không chữ) ---------- */
/* Ảnh có chữ sát tận 2 mép trái/phải (không như hero chỉ có chữ 1 bên) —
   nếu dùng "auto" (giữ kích thước gốc) như hero thì màn hình hẹp hơn
   2172px sẽ luôn bị crop mất chữ ở 1 hoặc cả 2 bên. Giải pháp: ép
   .conquer đúng tỉ lệ khung hình gốc của ảnh (2172:724) bằng aspect-ratio,
   để background-size: cover luôn vừa khít 100% ảnh, không crop, không
   méo, ở MỌI độ rộng màn hình. */
.conquer {
  position: relative;
  overflow: hidden;
  aspect-ratio: 2172 / 724;
}

.conquer-bg {
  position: absolute;
  inset: 0;
  background-image: url("../images/conquer-banner.png");
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
}

/* ---- Phần thi chung kết ---- */
.finals {
  position: relative;
  z-index: 2;
  /* margin-top âm theo % (luôn tính theo CHIỀU RỘNG khung chứa, kể cả cho
     margin-top — quy tắc CSS) — .conquer cao đúng bằng 724/2172 ≈ 33.3%
     chiều rộng (aspect-ratio cố định), nên -5% chiều rộng ở đây tương
     đương chồng lên đúng 15% chiều cao ảnh .conquer, giữ tỉ lệ chồng
     không đổi ở mọi kích thước màn hình. */
  margin-top: -5%;
  background: #fff;
  border-radius: 28px 28px 0 0;
  padding: 72px 0;
}

.finals-title {
  margin: 0 0 40px;
  text-align: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.5rem, 2.6vw, 2.125rem);
  color: var(--navy-950);
}

.finals-frame {
  background: var(--cream-bg);
  border: 1px solid var(--cream-border);
  border-radius: 24px;
  padding: 20px;
}

.finals-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.final-card {
  position: relative;
  aspect-ratio: 16 / 10;
  border-radius: 20px;
  overflow: hidden;
  background-size: cover;
  background-position: center;
}

.final-card-placeholder-1 { background: linear-gradient(135deg, #1a2550, var(--navy-950)); }
.final-card-placeholder-2 { background: linear-gradient(135deg, #4a1f3a, var(--navy-950)); }

.final-card-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 28px 32px;
  background: linear-gradient(90deg, rgba(10, 14, 39, 0.92) 0%, rgba(10, 14, 39, 0.62) 55%, rgba(10, 14, 39, 0.2) 100%);
}

.final-card-overlay h3 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--gold-300);
}

.final-card-overlay p {
  margin: 0;
  max-width: 260px;
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--text-white);
}

@media (max-width: 900px) {
  .finals-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .finals {
    padding: 48px 0;
  }

  .finals-frame {
    padding: 12px;
    border-radius: 18px;
  }

  .final-card-overlay p {
    max-width: none;
  }
}
