/* ==========================================================================
   DỰ ÁN: LANDING PAGE TÀI NĂNG KẾ TOÁN & KIỂM TOÁN - MÙA 3 (#AAT2027)
   ĐƠN VỊ: CLB KẾ TOÁN & KIỂM TOÁN A2SC - ĐH KINH TẾ - ĐH ĐÀ NẴNG
   PHONG CÁCH: DESKTOP-FIRST, THU GỌN BẰNG MAX-WIDTH MEDIA QUERIES
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. BIẾN HỆ THỐNG (CSS CUSTOM PROPERTIES)
   -------------------------------------------------------------------------- */
:root {
  /* Bảng màu chính từ tài liệu nhận diện thiết kế */
  --navy: #0A1F33;         /* Nền chính - navy sâu */
  --teal: #0E7C86;         /* Màu chủ đạo - teal đại dương */
  --aqua: #5FD1D9;         /* Nhấn sáng - aqua */
  --coral: #FF8A5B;        /* Nút hành động chính (Đăng ký) - san hô */
  --coral-hover: #fa733e;  /* Trạng thái hover của nút đăng ký */
  --text: #F2FAFB;         /* Màu chữ chính - trắng sáng hơi xanh */

  /* Màu phụ trợ & lớp phủ */
  --navy-light: #102A44;   /* Nền phụ navy sáng hơn một tông */
  --navy-card: rgba(16, 42, 68, 0.7); /* Nền cho thẻ/hộp */
  --overlay-navy: rgba(10, 31, 51, 0.82); /* Lớp phủ làm dịu ảnh nền */
  --overlay-navy-deep: rgba(10, 31, 51, 0.94); /* Lớp phủ đậm hơn ở đáy */
  --border-subtle: rgba(95, 209, 217, 0.2); /* Viền mờ màu aqua */

  /* Kiểu chữ (Google Fonts đã nạp hỗ trợ tiếng Việt) */
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'Be Vietnam Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Kích thước & Khoảng cách */
  --container-max-width: 1200px;
  --header-height: 76px;
  --section-padding-y: 88px;

  /* Bán kính bo góc */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-full: 9999px;

  /* Đổ bóng */
  --shadow-header: 0 4px 20px rgba(0, 0, 0, 0.35);
  --shadow-btn: 0 4px 14px rgba(255, 138, 91, 0.35);
  --shadow-btn-hover: 0 6px 20px rgba(255, 138, 91, 0.5);

  /* Thời gian chuyển động */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
}

/* --------------------------------------------------------------------------
   2. THIẾT LẬP NỀN TẢNG & RESET CƠ BẢN
   -------------------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

html, body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden; /* Ngăn tuyệt đối thanh cuộn ngang */
}

body {
  background-color: var(--navy);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

button {
  font-family: inherit;
  border: none;
  background: none;
  cursor: pointer;
  color: inherit;
}

ul, ol {
  list-style: none;
}

/* Hiệu ứng trạng thái Focus-Visible bằng phím Tab rõ nét */
:focus-visible {
  outline: 2px solid var(--aqua);
  outline-offset: 3px;
}

/* Khung căn giữa nội dung (Container) */
.container {
  width: 100%;
  max-width: var(--container-max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

/* --------------------------------------------------------------------------
   3. MENU CỐ ĐỊNH (HEADER)
   -------------------------------------------------------------------------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  z-index: 1000;
  background-color: rgba(10, 31, 51, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(95, 209, 217, 0.1);
  transition: background-color var(--transition-normal), box-shadow var(--transition-normal), border-color var(--transition-normal);
}

/* Kiểu header khi trang đã cuộn xuống */
.site-header.scrolled {
  background-color: rgba(10, 31, 51, 0.95);
  box-shadow: var(--shadow-header);
  border-bottom-color: rgba(95, 209, 217, 0.25);
}

.header-container {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

/* Logo A2SC bên trái */
.header-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  border-radius: var(--radius-sm);
  transition: opacity var(--transition-fast);
}

.header-logo:hover {
  opacity: 0.9;
}

.logo-img {
  width: 44px;
  height: 44px;
  object-fit: contain;
}

/* Danh sách link menu ở giữa */
.site-nav {
  display: flex;
  align-items: center;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 500;
  color: #D3E7EB;
  position: relative;
  padding: 8px 0;
  display: inline-block;
  transition: color var(--transition-fast);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--aqua);
  transition: width var(--transition-normal);
  border-radius: 2px;
}

.nav-link:hover {
  color: var(--aqua);
}

.nav-link:hover::after {
  width: 100%;
}

/* Mục menu của section đang xem (Scroll-Spy) */
.nav-link.is-active {
  color: var(--aqua);
  font-weight: 600;
}

.nav-link.is-active::after {
  width: 100%;
}

/* Khu vực hành động bên phải: Nút Đăng ký và Hamburger */
.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

/* Nút Đăng ký màu san hô (--coral) */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  text-align: center;
  border-radius: var(--radius-full);
  transition: background-color var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast);
}

.btn-register {
  background-color: var(--coral);
  color: #0A1F33; /* Chữ đậm tương phản tốt trên nền coral sáng */
  font-size: 0.95rem;
  padding: 10px 24px;
  min-height: 44px; /* Chuẩn tiếp cận trên thiết bị cảm ứng */
  box-shadow: var(--shadow-btn);
  letter-spacing: 0.3px;
}

.btn-register:hover {
  background-color: var(--coral-hover);
  color: #05101A;
  box-shadow: var(--shadow-btn-hover);
  transform: translateY(-1px);
}

.btn-register:active {
  transform: translateY(0);
}

/* Nút Hamburger cho màn hình máy tính bảng & điện thoại */
.menu-toggle {
  display: none; /* Mặc định ẩn trên Desktop */
  width: 44px;
  height: 44px;
  padding: 10px 8px;
  flex-direction: column;
  justify-content: space-around;
  align-items: center;
  border-radius: var(--radius-sm);
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  transition: background-color var(--transition-fast);
}

.menu-toggle:hover {
  background-color: rgba(95, 209, 217, 0.15);
}

.hamburger-bar {
  display: block;
  width: 22px;
  height: 2px;
  background-color: var(--text);
  border-radius: 2px;
  transition: transform var(--transition-normal), opacity var(--transition-normal), background-color var(--transition-fast);
}

/* Hiệu ứng chuyển hamburger thành dấu X khi menu mở */
.menu-toggle.is-active .hamburger-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle.is-active .hamburger-bar:nth-child(2) {
  opacity: 0;
}

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

/* --------------------------------------------------------------------------
   4. CẤU TRÚC SECTION (KHUNG RỖNG CÓ ID)
   -------------------------------------------------------------------------- */
.section {
  position: relative;
  width: 100%;
  scroll-margin-top: var(--header-height); /* Tránh header che khuất khi cuộn tới */
  background-color: var(--navy);
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
}

/* Section Hero chiếm trọn màn hình */
.section-hero {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  /* Ảnh nền Hero tải ngay từ đầu */
  background-image: 
    linear-gradient(180deg, rgba(10, 31, 51, 0.75) 0%, rgba(10, 31, 51, 0.92) 100%),
    url('../assets/bg-hero.webp');
}

/* Các section còn lại có padding trên dưới đều nhau */
.section:not(.section-hero) {
  padding: var(--section-padding-y) 0;
  min-height: 520px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Khung chữ giữ chỗ (Placeholder) tạm thời */
.section-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.placeholder-card {
  background-color: rgba(10, 31, 51, 0.65);
  border: 1px dashed var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  max-width: 680px;
  width: 100%;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.placeholder-badge {
  display: inline-block;
  padding: 4px 14px;
  border-radius: var(--radius-full);
  background-color: rgba(14, 124, 134, 0.35);
  border: 1px solid rgba(95, 209, 217, 0.3);
  color: var(--aqua);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 16px;
  letter-spacing: 0.5px;
}

.placeholder-title {
  font-family: var(--font-heading);
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 12px;
  line-height: 1.3;
}

.placeholder-desc {
  font-size: 1.05rem;
  color: #BCD3DA;
  max-width: 500px;
  margin: 0 auto;
}

/* --------------------------------------------------------------------------
   5. ẢNH NỀN VÀ HIỆU ỨNG TẢI LƯỜI (LAZY LOAD BACKGROUND)
   -------------------------------------------------------------------------- */
/* Section Tổng quan & Thể lệ: bg-timeline.webp */
.section-tong-quan.bg-loaded,
.section-the-le.bg-loaded {
  background-image: 
    linear-gradient(180deg, rgba(10, 31, 51, 0.82) 0%, rgba(10, 31, 51, 0.94) 100%),
    url('../assets/bg-timeline.webp');
}

/* Section Giải thưởng: bg-prizes.webp */
.section-giai-thuong.bg-loaded {
  background-image: 
    linear-gradient(180deg, rgba(10, 31, 51, 0.82) 0%, rgba(10, 31, 51, 0.94) 100%),
    url('../assets/bg-prizes.webp');
}

/* Section Ban cố vấn & Nhà tài trợ: Nền gradient teal-navy nhẹ để logo/ảnh người dễ nhìn */
.section-ban-co-van {
  background: linear-gradient(180deg, #0A1F33 0%, #0c2b42 50%, #0A1F33 100%);
  border-top: 1px solid rgba(95, 209, 217, 0.08);
  border-bottom: 1px solid rgba(95, 209, 217, 0.08);
}

.section-nha-tai-tro {
  background: linear-gradient(180deg, #0A1F33 0%, #0E293F 50%, #0A1F33 100%);
  border-top: 1px solid rgba(95, 209, 217, 0.08);
  border-bottom: 1px solid rgba(95, 209, 217, 0.08);
}

/* Section Đăng ký & Liên hệ: bg-contact.webp */
.section-dang-ky.bg-loaded,
.section-lien-he.bg-loaded {
  background-image: 
    linear-gradient(180deg, rgba(10, 31, 51, 0.82) 0%, rgba(10, 31, 51, 0.95) 100%),
    url('../assets/bg-contact.webp');
}

/* --------------------------------------------------------------------------
   6. FOOTER
   -------------------------------------------------------------------------- */
.site-footer {
  width: 100%;
  background-color: #071726; /* Navy sẫm hơn ở chân trang */
  border-top: 1px solid rgba(95, 209, 217, 0.15);
  padding: 32px 0;
  font-size: 0.9rem;
  color: #BCD3DA;
}

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

.footer-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.footer-logo-img {
  height: 38px;
  width: auto;
  object-fit: contain;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-link {
  color: #BCD3DA;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color var(--transition-fast);
}

.footer-link:hover {
  color: var(--aqua);
}

.footer-copyright {
  color: #8CAAB2;
  font-size: 0.85rem;
}

/* --------------------------------------------------------------------------
   7. MEDIA QUERIES (DESKTOP-FIRST -> THU GỌN BẰNG MAX-WIDTH)
   -------------------------------------------------------------------------- */

/* Máy tính bảng & Màn hình vừa (dưới 1024px) */
@media (max-width: 1024px) {
  :root {
    --header-height: 70px;
    --section-padding-y: 72px;
  }

  /* Nút hamburger xuất hiện */
  .menu-toggle {
    display: flex;
  }

  /* Menu chuyển thành danh sách dọc thả xuống */
  .site-nav {
    position: fixed;
    top: var(--header-height);
    left: 0;
    width: 100%;
    background-color: rgba(10, 31, 51, 0.98);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-subtle);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    padding: 24px 0;
    transform: translateY(-110%);
    opacity: 0;
    visibility: hidden;
    transition: transform var(--transition-normal), opacity var(--transition-normal), visibility var(--transition-normal);
  }

  /* Trạng thái mở menu mobile/tablet */
  .site-nav.is-open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .nav-menu {
    flex-direction: column;
    align-items: center;
    gap: 16px;
    width: 100%;
  }

  .nav-link {
    font-size: 1.05rem;
    padding: 10px 20px;
    text-align: center;
    width: 100%;
    max-width: 300px;
    border-radius: var(--radius-sm);
  }

  .nav-link:hover,
  .nav-link.is-active {
    background-color: rgba(95, 209, 217, 0.1);
  }

  .nav-link::after {
    display: none; /* Tắt gạch chân trên mobile menu để hiển thị dạng button thanh lịch */
  }

  /* Nút đăng ký vẫn hiển thị ngoài menu ở header actions */
  .btn-register {
    padding: 8px 18px;
    font-size: 0.9rem;
    min-height: 40px;
  }

  .placeholder-title {
    font-size: 1.85rem;
  }

  .footer-container {
    justify-content: center;
    text-align: center;
  }
}

/* Điện thoại di động (dưới 640px) */
@media (max-width: 640px) {
  :root {
    --header-height: 64px;
    --section-padding-y: 60px;
  }

  .container {
    padding-left: 16px;
    padding-right: 16px;
  }

  .header-container {
    gap: 8px;
  }

  .header-actions {
    gap: 8px;
  }

  .logo-img {
    width: 36px;
    height: 36px;
  }

  /* Đảm bảo nút đăng ký đủ lớn, dễ bấm và không tràn */
  .btn-register {
    padding: 8px 12px;
    font-size: 0.85rem;
    min-height: 44px;
  }

  .menu-toggle {
    width: 44px;
    height: 44px;
  }

  .section:not(.section-hero) {
    min-height: 420px;
  }

  .placeholder-card {
    padding: 28px 16px;
    word-break: break-word;
  }

  .placeholder-title {
    font-size: 1.5rem;
  }

  .placeholder-desc {
    font-size: 0.95rem;
    word-break: break-word;
  }

  /* Footer xếp dọc một cột, căn giữa */
  .footer-container {
    flex-direction: column;
    align-items: center;
    gap: 16px;
    text-align: center;
  }

  .footer-links {
    flex-direction: column;
    gap: 8px;
    align-items: center;
  }

  .footer-divider {
    display: none;
  }

  .footer-link {
    min-height: 44px; /* Dễ dàng bấm trúng trên màn hình cảm ứng */
    word-break: break-word;
    text-align: center;
  }

  .footer-copyright {
    line-height: 1.5;
    padding-top: 6px;
    word-break: break-word;
    text-align: center;
  }
}

/* ==========================================================================
   HERO
   ========================================================================== */

/* Lớp ẩn trực quan cho trình đọc màn hình */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Khung căn giữa Hero */
.section-hero {
  padding-top: calc(var(--header-height) + 32px);
  padding-bottom: 48px;
}

.hero-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  max-width: 1080px;
  margin-left: auto;
  margin-right: auto;
}

/* Dòng kicker phía trên h1 */
.hero-kicker {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--aqua);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 16px;
  line-height: 1.4;
}

/* Thẻ h1 duy nhất của trang */
.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2.2rem, 3.8vw, 3.8rem);
  font-weight: 700;
  color: var(--text);
  line-height: 1.2;
  margin-bottom: 16px;
  text-shadow: 0 4px 28px rgba(0, 0, 0, 0.45);
}

.hero-title-sub {
  display: block;
  font-size: clamp(1.4rem, 2.9vw, 2.3rem);
  font-weight: 600;
  color: var(--aqua);
  margin-top: 10px;
  letter-spacing: 0.5px;
}

/* Slogan cuộc thi */
.hero-slogan {
  font-family: var(--font-heading);
  font-style: italic;
  font-size: clamp(1.2rem, 2.2vw, 1.7rem);
  color: #D6F1F4;
  margin-bottom: 32px;
  letter-spacing: 0.5px;
}

/* Nhãn nhỏ phía trên đồng hồ */
.hero-countdown-label {
  font-size: 0.95rem;
  font-weight: 600;
  color: #BCD3DA;
  text-transform: uppercase;
  letter-spacing: 1.8px;
  margin-bottom: 16px;
}

/* Khối đồng hồ đếm ngược */
.hero-countdown {
  width: 100%;
  display: flex;
  justify-content: center;
  margin-bottom: 32px;
}

/* Fallback chữ dự phòng khi tắt JS */
.countdown-fallback {
  display: none;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--aqua);
  background: rgba(10, 31, 51, 0.75);
  border: 1px solid var(--border-subtle);
  padding: 14px 24px;
  border-radius: var(--radius-md);
}

/* 4 ô đếm ngược nằm ngang */
.countdown-grid {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  width: 100%;
  max-width: 560px;
}

.countdown-card {
  flex: 1 1 0;
  min-width: 0;
  background-color: rgba(10, 31, 51, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(95, 209, 217, 0.32);
  border-radius: var(--radius-md);
  padding: 16px 10px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.countdown-num {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 3.8vw, 3.2rem);
  font-weight: 700;
  color: var(--text);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.countdown-unit {
  font-size: 0.85rem;
  color: #BCD3DA;
  margin-top: 6px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

/* Thông báo khi hết hạn đăng ký */
.countdown-closed {
  font-family: var(--font-heading);
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  font-weight: 700;
  color: #D3E7EB;
  background-color: rgba(10, 31, 51, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(95, 209, 217, 0.25);
  border-radius: var(--radius-md);
  padding: 18px 36px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

/* Nút Đăng ký ngay cỡ lớn ở Hero */
.hero-actions {
  display: flex;
  justify-content: center;
  width: 100%;
}

.btn-register--lg {
  padding: 14px 44px;
  font-size: 1.15rem;
  min-height: 52px;
  box-shadow: 0 6px 20px rgba(255, 138, 91, 0.42);
  letter-spacing: 0.5px;
}

.btn-register--lg:hover {
  box-shadow: 0 8px 28px rgba(255, 138, 91, 0.6);
  transform: translateY(-2px);
}

.btn-register--lg:active {
  transform: translateY(0);
}

/* Dòng chú thích thời hạn đăng ký bên dưới nút */
.hero-note {
  font-size: 0.9rem;
  color: #9ABEC8;
  margin-top: 16px;
  line-height: 1.5;
}

/* Trạng thái vô hiệu hóa khi hết hạn đăng ký (áp dụng cho cả nút menu và nút Hero) */
.btn-register.is-disabled {
  background-color: #4A5D6E !important;
  color: #B4C5D4 !important;
  box-shadow: none !important;
  cursor: not-allowed !important;
  pointer-events: none !important;
  transform: none !important;
  opacity: 0.85;
}

/* Điều chỉnh Hero responsive trên màn hình dưới 1024px */
@media (max-width: 1024px) {
  .section-hero {
    padding-top: calc(var(--header-height) + 24px);
    padding-bottom: 40px;
  }

  .countdown-grid {
    gap: 12px;
    max-width: 500px;
  }

  .countdown-card {
    padding: 14px 8px;
  }
}

/* Điều chỉnh Hero responsive trên màn hình dưới 640px */
@media (max-width: 640px) {
  .section-hero {
    padding-top: calc(var(--header-height) + 16px);
    padding-bottom: 36px;
  }

  .hero-kicker {
    font-size: 0.75rem;
    letter-spacing: 1px;
    margin-bottom: 12px;
  }

  .hero-slogan {
    margin-bottom: 24px;
  }

  .hero-countdown {
    margin-bottom: 28px;
  }

  .countdown-grid {
    gap: 8px;
    max-width: 100%;
  }

  .countdown-card {
    padding: 10px 4px;
  }

  .countdown-num {
    font-size: 1.75rem;
  }

  .countdown-unit {
    font-size: 0.75rem;
  }

  .hero-actions {
    max-width: 380px;
  }

  .btn-register--lg {
    width: 100%;
    min-height: 48px;
    padding: 12px 20px;
    font-size: 1rem;
  }

  .hero-note {
    font-size: 0.8rem;
    margin-top: 12px;
  }
}

/* Khi màn hình quá hẹp (360px trở xuống): chuyển 4 ô sang dạng lưới 2x2 */
@media (max-width: 360px) {
  .countdown-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    max-width: 260px;
  }
}

/* ==========================================================================
   TỔNG QUAN
   ========================================================================== */

/* Tiêu đề Section dùng chung */
.section-header {
  text-align: center;
  margin-bottom: 48px;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 3.6vw, 2.75rem);
  font-weight: 700;
  color: var(--text);
  line-height: 1.25;
}

.section-divider {
  width: 64px;
  height: 3px;
  background-color: var(--aqua);
  border-radius: var(--radius-full);
  margin: 14px auto 0;
  box-shadow: 0 0 10px rgba(95, 209, 217, 0.5);
}

/* Bố cục lưới 2 cột cho Tổng quan */
.overview-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  align-items: stretch;
}

/* Thẻ thông tin cột */
.overview-card {
  background-color: rgba(10, 31, 51, 0.78);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(95, 209, 217, 0.28);
  border-radius: var(--radius-lg);
  padding: 38px 34px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 28px;
  transition: transform var(--transition-normal), border-color var(--transition-normal), box-shadow var(--transition-normal);
}

.overview-card:hover {
  transform: translateY(-3px);
  border-color: rgba(95, 209, 217, 0.55);
  box-shadow: 0 14px 38px rgba(0, 0, 0, 0.45);
}

/* Khối nội dung con trong thẻ */
.overview-subblock {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.overview-subtitle {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--aqua);
  line-height: 1.3;
}

.overview-organizer {
  font-size: 0.98rem;
  color: #E2F0F4;
  line-height: 1.65;
}

.overview-rep {
  font-size: 0.9rem;
  color: #BCD3DA;
  font-style: italic;
  margin-top: 2px;
}

/* Danh sách với dấu đầu dòng tùy chỉnh màu aqua */
.overview-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.overview-list li {
  position: relative;
  padding-left: 24px;
  font-size: 0.96rem;
  color: var(--text);
  line-height: 1.6;
}

.overview-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 9px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--aqua);
  box-shadow: 0 0 8px rgba(95, 209, 217, 0.7);
}

/* Khối nổi bật Lệ phí */
.overview-fee-block {
  background: rgba(14, 124, 134, 0.2);
  border: 1px solid rgba(95, 209, 217, 0.32);
  border-radius: var(--radius-md);
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  margin-top: auto;
}

.fee-display {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
}

.fee-amount {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 3.2vw, 2.6rem);
  font-weight: 700;
  color: var(--aqua);
  line-height: 1;
}

.fee-unit {
  font-size: 1rem;
  color: #BCD3DA;
  font-weight: 500;
}

/* Link chữ cuộn tới Hướng dẫn đăng ký */
.overview-fee-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  padding: 6px 0;
  border-bottom: 1px dashed rgba(95, 209, 217, 0.6);
  transition: color var(--transition-fast), border-color var(--transition-fast), transform var(--transition-fast);
}

.overview-fee-link:hover {
  color: var(--aqua);
  border-bottom-color: var(--aqua);
  transform: translateX(3px);
}

.overview-fee-link:focus-visible {
  outline: 2px solid var(--aqua);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

/* Tôn trọng prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
  .overview-card:hover {
    transform: none;
  }
  .overview-fee-link:hover {
    transform: none;
  }
}

/* Điều chỉnh responsive cho Tổng quan */
@media (max-width: 1024px) {
  .section-header {
    margin-bottom: 38px;
  }

  .overview-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .overview-card {
    padding: 30px 24px;
    gap: 24px;
  }
}

@media (max-width: 640px) {
  .section-header {
    margin-bottom: 30px;
  }

  .overview-card {
    padding: 24px 18px;
    gap: 20px;
    border-radius: var(--radius-md);
  }

  .overview-subtitle {
    font-size: 1.25rem;
  }

  .overview-list li {
    padding-left: 20px;
    font-size: 0.92rem;
  }

  .overview-list li::before {
    top: 8px;
    width: 7px;
    height: 7px;
  }

  .overview-fee-block {
    padding: 18px 16px;
  }

  .overview-fee-link {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }
}

/* ==========================================================================
   THỂ LỆ
   ========================================================================== */

/* 1. Track timeline trên Desktop (đường kẻ ngang + 4 chấm tròn) */
.the-le-track {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  position: relative;
  margin-bottom: 24px;
}

.the-le-track::before {
  content: "";
  position: absolute;
  top: 50%;
  left: calc((100% - 72px) / 8);
  right: calc((100% - 72px) / 8);
  height: 2px;
  background: var(--aqua);
  transform: translateY(-50%);
  opacity: 0.65;
  z-index: 1;
}

.the-le-track-item {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  z-index: 2;
  transition: transform 0.25s ease;
}

.the-le-track-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--aqua);
  border: 2.5px solid var(--navy);
  box-shadow: 0 0 10px rgba(95, 209, 217, 0.6);
  transition: transform 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.the-le-track-item.is-active .the-le-track-dot {
  transform: scale(1.35);
  background: #ffffff;
  border-color: var(--teal);
  box-shadow: 0 0 16px rgba(95, 209, 217, 1);
}

/* 2. Lưới 4 thẻ vòng và khối chi tiết */
.the-le-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  align-items: stretch;
}

/* 3. Thẻ vòng thi */
.the-le-card {
  background: rgba(10, 31, 51, 0.78);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(95, 209, 217, 0.28);
  border-radius: var(--radius-lg);
  padding: 28px 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 20px;
  position: relative;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.the-le-card:hover {
  transform: translateY(-2px);
  border-color: rgba(95, 209, 217, 0.55);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.the-le-card.is-open {
  border-color: var(--aqua);
  box-shadow: 0 0 0 1px var(--aqua), 0 10px 28px rgba(0, 0, 0, 0.45);
}

.the-le-card-content {
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex-grow: 1;
}

.the-le-badge {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--aqua);
}

.the-le-card-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.35;
}

.the-le-format {
  font-size: 0.92rem;
  color: rgba(242, 250, 251, 0.82);
  line-height: 1.5;
}

.the-le-time {
  font-size: 0.92rem;
  color: var(--text);
  line-height: 1.5;
  margin-top: auto;
}

.the-le-time strong {
  color: #ffffff;
  font-weight: 700;
}

/* 4. Nút Xem chi tiết / Thu gọn */
.the-le-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 10px 16px;
  min-height: 44px;
  background: transparent;
  color: var(--aqua);
  border: 1.5px solid var(--aqua);
  border-radius: var(--radius-full);
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  margin-top: auto;
}

.the-le-btn:hover {
  background: rgba(95, 209, 217, 0.12);
  color: #ffffff;
  border-color: #ffffff;
  box-shadow: 0 0 14px rgba(95, 209, 217, 0.35);
}

.the-le-btn:focus-visible {
  outline: none;
  border-color: var(--aqua);
  box-shadow: 0 0 0 3px rgba(95, 209, 217, 0.5);
}

.the-le-btn-icon {
  display: inline-block;
  font-size: 0.85rem;
  transition: transform 0.3s ease;
}

.the-le-card.is-open .the-le-btn-icon {
  transform: rotate(180deg);
}

.the-le-card.is-open .the-le-btn {
  background: rgba(95, 209, 217, 0.16);
  color: #ffffff;
}

/* 5. Khối chi tiết vòng thi */
.the-le-detail {
  grid-column: 1 / -1;
  background: rgba(10, 31, 51, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(95, 209, 217, 0.38);
  border-radius: var(--radius-lg);
  padding: 36px 40px;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.45);
  animation: theLeFadeIn 0.3s ease;
}

@keyframes theLeFadeIn {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.the-le-detail-inner {
  display: flex;
  flex-direction: column;
}

.the-le-detail-title {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--aqua);
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(95, 209, 217, 0.2);
}

.the-le-detail-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.the-le-detail-list > li {
  position: relative;
  padding-left: 24px;
  font-size: 0.98rem;
  line-height: 1.65;
  color: var(--text);
}

.the-le-detail-list > li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--aqua);
  box-shadow: 0 0 6px rgba(95, 209, 217, 0.6);
}

.the-le-sublist {
  list-style: none;
  padding: 0;
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-left: 8px;
}

.the-le-sublist > li {
  position: relative;
  padding-left: 20px;
  font-size: 0.94rem;
  line-height: 1.6;
  color: rgba(242, 250, 251, 0.9);
}

.the-le-sublist > li::before {
  content: "–";
  position: absolute;
  left: 0;
  color: var(--aqua);
  font-weight: 700;
}

/* 6. Bảng điểm Vòng 3 */
.the-le-scoring-wrap {
  margin: 20px 0;
  padding: 18px 22px;
  background: rgba(4, 28, 48, 0.65);
  border: 1px solid rgba(95, 209, 217, 0.22);
  border-radius: var(--radius-md);
}

.the-le-scoring-desc {
  font-size: 0.94rem;
  font-style: italic;
  color: rgba(242, 250, 251, 0.88);
  margin-bottom: 14px;
  line-height: 1.5;
}

.the-le-table-responsive {
  width: 100%;
  overflow-x: auto;
}

.the-le-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.94rem;
}

.the-le-table th,
.the-le-table td {
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid rgba(95, 209, 217, 0.16);
  line-height: 1.5;
}

.the-le-table th {
  font-weight: 600;
  color: var(--aqua);
  font-size: 0.88rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1.5px solid rgba(95, 209, 217, 0.35);
}

.the-le-table tbody tr:last-child td {
  border-bottom: none;
}

.the-le-table .text-right {
  text-align: right;
  white-space: nowrap;
}

.the-le-table td strong {
  color: var(--aqua);
  font-size: 1.05rem;
}

/* 7. Fallback khi tắt JavaScript */
html:not(.js) .the-le-btn {
  display: none !important;
}

html:not(.js) .the-le-detail {
  display: block !important;
  margin-top: 24px;
}

/* 8. Tắt chuyển động mượt khi người dùng yêu cầu */
@media (prefers-reduced-motion: reduce) {
  .the-le-detail {
    animation: none;
  }
  .the-le-btn-icon {
    transition: none;
  }
}

/* 9. Điều chỉnh responsive cho Thể lệ */
@media (max-width: 1024px) {
  .the-le-track {
    display: none;
  }

  .the-le-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    position: relative;
    padding-left: 28px;
  }

  /* Đường kẻ dọc nối các vòng */
  .the-le-grid::before {
    content: "";
    position: absolute;
    left: 7px;
    top: 28px;
    bottom: 28px;
    width: 2px;
    background: var(--aqua);
    opacity: 0.65;
  }

  /* Chấm tròn dọc bên trái mỗi thẻ */
  .the-le-card::before {
    content: "";
    position: absolute;
    left: -28px;
    top: 28px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--aqua);
    border: 2.5px solid var(--navy);
    box-shadow: 0 0 8px rgba(95, 209, 217, 0.6);
    transform: translateX(-50%);
    z-index: 2;
    transition: transform 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
  }

  .the-le-card.is-open::before {
    transform: translateX(-50%) scale(1.25);
    background: #ffffff;
    box-shadow: 0 0 14px rgba(95, 209, 217, 1);
  }

  /* Sắp xếp thứ tự để khối chi tiết N nằm ngay dưới thẻ N */
  .the-le-card--1 { order: 1; }
  .the-le-detail--1 { order: 2; }
  .the-le-card--2 { order: 3; }
  .the-le-detail--2 { order: 4; }
  .the-le-card--3 { order: 5; }
  .the-le-detail--3 { order: 6; }
  .the-le-card--4 { order: 7; }
  .the-le-detail--4 { order: 8; }

  .the-le-detail {
    padding: 30px 24px;
  }
}

@media (max-width: 640px) {
  .the-le-grid {
    padding-left: 22px;
    gap: 16px;
  }

  .the-le-grid::before {
    left: 5px;
  }

  .the-le-card::before {
    left: -22px;
    width: 12px;
    height: 12px;
  }

  .the-le-card {
    padding: 22px 18px;
    gap: 16px;
    border-radius: var(--radius-md);
  }

  .the-le-card-title {
    font-size: 1.15rem;
  }

  .the-le-btn {
    min-height: 44px;
    padding: 12px 14px;
    font-size: 0.92rem;
  }

  .the-le-detail {
    padding: 24px 16px;
    border-radius: var(--radius-md);
  }

  .the-le-detail-title {
    font-size: 1.15rem;
    margin-bottom: 16px;
  }

  .the-le-detail-list > li {
    font-size: 0.92rem;
    padding-left: 20px;
  }

  .the-le-detail-list > li::before {
    top: 8px;
    width: 6px;
    height: 6px;
  }

  .the-le-scoring-wrap {
    padding: 14px 12px;
  }

  .the-le-table th,
  .the-le-table td {
    padding: 10px 8px;
    font-size: 0.88rem;
  }

  .the-le-table td {
    word-break: break-word;
    overflow-wrap: break-word;
  }
}

/* ==========================================================================
   GIẢI THƯỞNG
   ========================================================================== */

/* 1. Khối tổng giá trị tiền thưởng */
.prizes-total-box {
  display: flex;
  justify-content: center;
  margin: -8px 0 44px;
}

.prizes-total-wrap {
  text-align: center;
  padding: 18px 36px;
  background: rgba(10, 31, 51, 0.72);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(95, 209, 217, 0.35);
  border-radius: var(--radius-full);
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.35);
}

.prizes-total-label {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(242, 250, 251, 0.82);
}

.prizes-total-amount {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 3.2vw, 2.5rem);
  font-weight: 700;
  color: var(--aqua);
  line-height: 1.2;
  text-shadow: 0 0 18px rgba(95, 209, 217, 0.35);
}

/* 2. Lưới hiển thị các thẻ giải thưởng và quyền lợi */
.prizes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: stretch;
}

/* 3. Thẻ giải thưởng Hàng 1 (Chính) */
.prize-card {
  background: rgba(10, 31, 51, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(95, 209, 217, 0.28);
  border-radius: var(--radius-lg);
  padding: 32px 26px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.prize-card:hover {
  transform: translateY(-2px);
  border-color: rgba(95, 209, 217, 0.55);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.38);
}

/* Làm nổi bật thẻ Quán quân */
.prize-card--champion {
  border: 1.5px solid var(--aqua);
  background: rgba(10, 35, 58, 0.88);
  box-shadow: 0 0 20px rgba(95, 209, 217, 0.25), 0 10px 30px rgba(0, 0, 0, 0.45);
}

.prize-card--champion:hover {
  transform: translateY(-3px);
  border-color: #ffffff;
  box-shadow: 0 0 26px rgba(95, 209, 217, 0.4), 0 14px 36px rgba(0, 0, 0, 0.5);
}

.prize-card-header {
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
}

.prize-card-badge {
  align-self: flex-start;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--aqua);
  background: rgba(95, 209, 217, 0.12);
  padding: 4px 10px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(95, 209, 217, 0.28);
}

.prize-icon-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(95, 209, 217, 0.14);
  color: var(--aqua);
  border: 1px solid rgba(95, 209, 217, 0.3);
  margin-top: 4px;
}

.prize-card-title {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.35;
}

.prize-card--champion .prize-card-title {
  color: #ffffff;
}

.prize-reward-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.prize-reward-list > li {
  position: relative;
  padding-left: 22px;
  font-size: 0.96rem;
  line-height: 1.55;
  color: var(--text);
}

.prize-reward-list > li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--aqua);
  box-shadow: 0 0 6px rgba(95, 209, 217, 0.6);
}

/* 4. Tiêu đề phân cách Hàng 2 */
.prizes-subheading-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin: 52px 0 28px;
}

.prizes-subheading-line {
  flex: 1;
  max-width: 140px;
  height: 1px;
  background: rgba(95, 209, 217, 0.3);
}

.prizes-subheading {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--aqua);
  text-align: center;
  letter-spacing: 0.02em;
}

/* 5. Thẻ quyền lợi Hàng 2 (Nhỏ gọn hơn Hàng 1) */
.benefit-card {
  background: rgba(10, 31, 51, 0.72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(95, 209, 217, 0.22);
  border-radius: var(--radius-md);
  padding: 24px 22px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.benefit-card:hover {
  transform: translateY(-2px);
  border-color: rgba(95, 209, 217, 0.48);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.benefit-card-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--aqua);
  line-height: 1.35;
}

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

.benefit-list > li {
  position: relative;
  padding-left: 20px;
  font-size: 0.92rem;
  line-height: 1.55;
  color: rgba(242, 250, 251, 0.9);
}

.benefit-list > li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--aqua);
  opacity: 0.85;
}

/* 6. Tắt chuyển động mượt khi người dùng yêu cầu */
@media (prefers-reduced-motion: reduce) {
  .prize-card,
  .benefit-card {
    transition: none;
  }
  .prize-card:hover,
  .benefit-card:hover {
    transform: none;
  }
}

/* 7. Điều chỉnh responsive cho Giải thưởng */
@media (max-width: 1024px) {
  .prizes-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  /* Thẻ thứ 3 của mỗi hàng chiếm trọn 2 cột để không bị lẻ */
  .prizes-grid--main .prize-card:nth-child(3) {
    grid-column: 1 / -1;
  }

  .prizes-grid--benefits .benefit-card:nth-child(3) {
    grid-column: 1 / -1;
  }

  .prizes-total-wrap {
    padding: 14px 28px;
  }

  .prizes-subheading-wrap {
    margin: 40px 0 24px;
  }
}

@media (max-width: 640px) {
  .prizes-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .prizes-grid--main .prize-card:nth-child(3) {
    grid-column: auto;
  }

  .prizes-grid--benefits .benefit-card:nth-child(3) {
    grid-column: auto;
  }

  .prizes-total-box {
    margin-bottom: 32px;
  }

  .prizes-total-wrap {
    padding: 12px 22px;
    border-radius: var(--radius-lg);
    width: 100%;
  }

  .prizes-total-amount {
    font-size: 1.75rem;
  }

  .prize-card {
    padding: 22px 18px;
    gap: 16px;
    border-radius: var(--radius-md);
  }

  .prize-card-title {
    font-size: 1.2rem;
  }

  .prize-reward-list > li {
    font-size: 0.92rem;
  }

  .prizes-subheading-wrap {
    margin: 34px 0 20px;
    gap: 12px;
  }

  .prizes-subheading {
    font-size: 1.15rem;
  }

  .prizes-subheading-line {
    max-width: 50px;
  }

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

  .benefit-card-title {
    font-size: 1.05rem;
  }

  .benefit-list > li {
    font-size: 0.88rem;
  }
}

/* ==========================================================================
   BAN CỐ VẤN
   ========================================================================== */

/* 1. Lưới 4 thẻ Ban cố vấn */
.advisors-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  align-items: stretch;
}

/* 2. Thẻ thành viên Ban cố vấn */
.advisor-card {
  background: rgba(10, 31, 51, 0.78);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(95, 209, 217, 0.28);
  border-radius: var(--radius-lg);
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.advisor-card:hover {
  transform: translateY(-2px);
  border-color: rgba(95, 209, 217, 0.55);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.38);
}

/* 3. Khung ảnh cố vấn */
.advisor-img-wrap {
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
  background-color: rgba(13, 76, 92, 0.35);
  border: 1.5px solid rgba(95, 209, 217, 0.35);
  margin-bottom: 20px;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.advisor-card:hover .advisor-img-wrap {
  border-color: var(--aqua);
  box-shadow: 0 0 14px rgba(95, 209, 217, 0.35);
}

.advisor-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  transition: transform 0.35s ease;
}

.advisor-card:hover .advisor-img {
  transform: scale(1.03);
}

/* 4. Khối thông tin họ tên & chức danh */
.advisor-info {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex-grow: 1;
}

.advisor-name {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.35;
}

.advisor-title {
  font-family: var(--font-body);
  font-size: 0.92rem;
  color: rgba(242, 250, 251, 0.82);
  line-height: 1.5;
}

/* 5. Tắt chuyển động khi người dùng yêu cầu */
@media (prefers-reduced-motion: reduce) {
  .advisor-card,
  .advisor-img {
    transition: none;
  }
  .advisor-card:hover {
    transform: none;
  }
  .advisor-card:hover .advisor-img {
    transform: none;
  }
}

/* 6. Điều chỉnh responsive cho Ban cố vấn */
@media (max-width: 1024px) {
  .advisors-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .advisor-card {
    padding: 22px 18px;
  }

  .advisor-img-wrap {
    margin-bottom: 16px;
  }
}

@media (max-width: 640px) {
  .advisors-grid {
    grid-template-columns: 1fr;
    gap: 18px;
    max-width: 300px;
    margin: 0 auto;
  }

  .advisor-card {
    padding: 20px 18px;
    border-radius: var(--radius-md);
  }

  .advisor-img-wrap {
    max-width: 250px;
    margin: 0 auto 16px;
  }

  .advisor-name {
    font-size: 1.15rem;
  }

  .advisor-title {
    font-size: 0.88rem;
  }
}


/* ==========================================================================
   NHÀ TÀI TRỢ
   ========================================================================== */

/* Biến kích thước ô logo — điều chỉnh từng nhóm độc lập */
:root {
  --logo-w-gold:     280px;
  --logo-h-gold:     150px;
  --logo-w-silver:   230px;
  --logo-h-silver:   125px;
  --logo-w-bronze:   190px;
  --logo-h-bronze:   105px;
  --logo-w-academic: 160px;
  --logo-h-academic:  90px;
}

/* Mỗi nhóm tài trợ */
.sponsor-group {
  margin-bottom: 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.sponsor-group:last-child {
  margin-bottom: 0;
}

/* Nhãn nhóm h3 — chữ hoa nhỏ, màu aqua, có đường kẻ hai bên */
.sponsor-group-label {
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--aqua);
  text-align: center;
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0;
}

.sponsor-group-label::before,
.sponsor-group-label::after {
  content: "";
  display: block;
  width: 60px;
  height: 1px;
  background: rgba(100, 180, 180, 0.35);
}

/* Danh sách logo mỗi nhóm */
.sponsor-logo-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 24px;
}

/* Ô nền trắng chứa logo */
.sponsor-logo-box {
  background: #ffffff;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px 24px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  /* Kích thước mặc định — override bằng class modifier */
  width: var(--logo-w-academic);
  height: var(--logo-h-academic);
}

.sponsor-logo-box:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

/* Modifier kích thước theo hạng */
.sponsor-logo-box--gold     { width: var(--logo-w-gold);     height: var(--logo-h-gold);     }
.sponsor-logo-box--silver   { width: var(--logo-w-silver);   height: var(--logo-h-silver);   }
.sponsor-logo-box--bronze   { width: var(--logo-w-bronze);   height: var(--logo-h-bronze);   }
.sponsor-logo-box--academic { width: var(--logo-w-academic); height: var(--logo-h-academic); }

/* Ảnh logo — object-fit: contain để không bị méo */
.sponsor-logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
}

/* Tắt chuyển động cho người dùng prefer-reduced-motion */
@media (prefers-reduced-motion: reduce) {
  .sponsor-logo-box { transition: none; }
  .sponsor-logo-box:hover { transform: none; }
}

/* Responsive — tablet (≤ 1024px) */
@media (max-width: 1024px) {
  .sponsor-logo-box--gold     { width: 224px; height: 120px; }
  .sponsor-logo-box--silver   { width: 184px; height: 100px; }
  .sponsor-logo-box--bronze   { width: 152px; height:  84px; }
  .sponsor-logo-box--academic { width: 128px; height:  72px; }

  .sponsor-group { margin-bottom: 38px; }
}

/* Responsive — mobile (≤ 640px) */
@media (max-width: 640px) {
  .sponsor-logo-box--gold     { width: 160px; height:  90px; }
  .sponsor-logo-box--silver   { width: 136px; height:  76px; }
  .sponsor-logo-box--bronze   { width: 118px; height:  66px; }
  .sponsor-logo-box--academic { width: 100px; height:  56px; }

  .sponsor-logo-box { padding: 10px 14px; }
  .sponsor-logo-list { gap: 16px; }
  .sponsor-group { margin-bottom: 30px; }

  /* Tiêu đề section dài — cho phép xuống dòng thay vì tràn ngang */
  .section-nha-tai-tro .section-title {
    font-size: clamp(1.5rem, 7vw, 2rem);
    overflow-wrap: break-word;
    word-break: break-word;
  }
}


/* ==========================================================================
   ĐĂNG KÝ VÀ FAQ
   ========================================================================== */

/* Lưới 2 cột: Cột trái (Đăng ký) 5fr, Cột phải (FAQ) 6fr */
.registration-faq-grid {
  display: grid;
  grid-template-columns: 5fr 6fr;
  gap: 36px;
  align-items: start;
}

/* Tiêu đề mỗi cột */
.reg-col-title {
  font-family: var(--font-heading);
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--text);
  margin-top: 0;
  margin-bottom: 24px;
  letter-spacing: 0.3px;
}

/* Danh sách 2 bước đăng ký */
.reg-steps-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* Thẻ kính mờ cho từng bước đăng ký */
.reg-step-card {
  background-color: rgba(10, 31, 51, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(95, 209, 217, 0.28);
  border-radius: var(--radius-lg);
  padding: 30px 28px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  display: flex;
  gap: 22px;
  align-items: flex-start;
  transition: transform var(--transition-normal), border-color var(--transition-normal), box-shadow var(--transition-normal);
}

.reg-step-card:hover {
  transform: translateY(-2px);
  border-color: rgba(95, 209, 217, 0.55);
  box-shadow: 0 14px 38px rgba(0, 0, 0, 0.45);
}

/* Số thứ tự bước lớn */
.reg-step-badge {
  font-family: var(--font-heading);
  font-size: 2.8rem;
  font-weight: 700;
  line-height: 1;
  color: var(--aqua);
  flex-shrink: 0;
  width: 36px;
  text-align: center;
  padding-top: 2px;
}

/* Nội dung bước đăng ký */
.reg-step-content {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* Tiêu đề của bước */
.reg-step-heading {
  font-family: var(--font-body);
  font-size: 1.15rem;
  font-weight: 700;
  color: #FFFFFF;
  line-height: 1.4;
  margin: 0;
}

/* Nút đăng ký trong Bước 1 */
.reg-step-action {
  margin-top: 4px;
}

.reg-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-weight: 700;
  font-size: 1rem;
  padding: 12px 28px;
  border-radius: var(--radius-full);
  min-height: 46px;
}

.reg-btn:focus-visible {
  outline: 3px solid var(--aqua);
  outline-offset: 3px;
}

/* Ghi chú thời gian đăng ký */
.reg-step-note {
  font-size: 0.88rem;
  color: #9ABEC8;
  line-height: 1.5;
  margin: 0;
}

/* Câu dẫn bước 2 */
.reg-step-lead {
  font-size: 0.96rem;
  color: var(--text);
  line-height: 1.6;
  margin: 0;
}

/* Khối thông tin chuyển khoản */
.transfer-info-wrap {
  margin-top: 4px;
}

.transfer-info-list {
  margin: 0;
  padding: 18px 20px;
  background: rgba(5, 16, 26, 0.72);
  border: 1px solid rgba(95, 209, 217, 0.22);
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.transfer-info-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 14px;
}

.transfer-label {
  font-size: 0.92rem;
  color: #9ABEC8;
  font-weight: 500;
  white-space: nowrap;
  flex-shrink: 0;
}

.transfer-value {
  font-size: 0.96rem;
  color: #FFFFFF;
  font-weight: 600;
  text-align: right;
  margin: 0;
}

/* Cho phép bôi đen dễ dàng để sao chép thông tin tài khoản và cú pháp */
.transfer-value--copyable {
  user-select: all;
  -webkit-user-select: all;
  cursor: text;
}

/* Đoạn mã cú pháp chuyển khoản */
.transfer-code {
  font-family: Consolas, "Courier New", Courier, monospace;
  background-color: rgba(10, 31, 51, 0.95);
  color: var(--aqua);
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(95, 209, 217, 0.35);
  font-size: 0.92rem;
  display: inline-block;
  line-height: 1.4;
}

/* ==========================================================================
   ACCORDION FAQ (CỘT PHẢI)
   ========================================================================== */

.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* Thẻ kính mờ cho mỗi câu hỏi FAQ */
.faq-item {
  background-color: rgba(10, 31, 51, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(95, 209, 217, 0.24);
  border-radius: var(--radius-md);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
  transition: border-color var(--transition-normal), box-shadow var(--transition-normal), background-color var(--transition-normal);
  overflow: hidden;
}

.faq-item:hover {
  border-color: rgba(95, 209, 217, 0.5);
}

/* Trạng thái câu hỏi đang mở */
.faq-item[open] {
  border-color: var(--aqua);
  box-shadow: 0 8px 26px rgba(95, 209, 217, 0.18);
  background-color: rgba(10, 31, 51, 0.92);
}

/* Thanh tiêu đề câu hỏi bấm được */
.faq-summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  min-height: 48px;
  cursor: pointer;
  list-style: none;
  font-family: var(--font-body);
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.45;
  user-select: none;
  transition: color var(--transition-fast);
}

/* Ẩn dấu tam giác mặc định của trình duyệt */
.faq-summary::-webkit-details-marker,
.faq-summary::marker {
  display: none;
}

.faq-summary:hover {
  color: #FFFFFF;
}

.faq-summary:focus-visible {
  outline: 2px solid var(--aqua);
  outline-offset: -2px;
}

.faq-question {
  flex: 1;
}

/* Biểu tượng mũi tên mở rộng bằng CSS */
.faq-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  position: relative;
}

.faq-icon::before {
  content: "";
  display: block;
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--aqua);
  border-bottom: 2px solid var(--aqua);
  transform: rotate(45deg);
  transition: transform 0.25s ease;
}

/* Khi mục FAQ đang mở: mũi tên xoay ngược lên */
.faq-item[open] .faq-icon::before {
  transform: rotate(-135deg);
}

/* Khối nội dung câu trả lời */
.faq-answer {
  padding: 0 20px 20px 20px;
  border-top: 1px solid rgba(95, 209, 217, 0.15);
  margin-top: 0;
}

.faq-answer p {
  color: #D3E0EA;
  font-size: 0.93rem;
  line-height: 1.68;
  margin: 14px 0 0 0;
}

/* Tắt chuyển động cho người dùng có cài đặt giảm chuyển động */
@media (prefers-reduced-motion: reduce) {
  .reg-step-card,
  .faq-item,
  .faq-icon::before {
    transition: none;
  }

  .reg-step-card:hover {
    transform: none;
  }
}

/* ==========================================================================
   RESPONSIVE CHO ĐĂNG KÝ VÀ FAQ
   ========================================================================== */

/* Dưới 1024px: Chuyển lưới thành 1 cột dọc */
@media (max-width: 1024px) {
  .registration-faq-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .reg-col-title {
    margin-bottom: 20px;
  }
}

/* Dưới 640px: Tối ưu cho thiết bị di động */
@media (max-width: 640px) {
  /* Tiêu đề section dài — cho phép xuống dòng vừa vặn trên điện thoại */
  .section-dang-ky .section-title {
    font-size: clamp(1.45rem, 6.5vw, 1.85rem);
    overflow-wrap: break-word;
    word-break: break-word;
  }

  .reg-step-card {
    padding: 20px 16px;
    gap: 14px;
    border-radius: var(--radius-md);
  }

  .reg-step-badge {
    font-size: 2.2rem;
    width: 28px;
  }

  .reg-step-heading {
    font-size: 1.05rem;
  }

  .reg-btn {
    width: 100%;
    min-height: 48px;
    padding: 12px 16px;
    font-size: 0.95rem;
  }

  .transfer-info-list {
    padding: 14px 14px;
  }

  /* Hàng chuyển khoản xếp dọc để nội dung dài không tràn ngang */
  .transfer-info-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .transfer-label {
    white-space: normal;
    font-size: 0.88rem;
  }

  .transfer-value {
    text-align: left;
    width: 100%;
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .transfer-code {
    display: block;
    width: 100%;
    box-sizing: border-box;
    overflow-wrap: anywhere;
    word-break: break-all;
    white-space: normal;
    font-size: 0.86rem;
  }

  .faq-summary {
    padding: 14px 16px;
    min-height: 44px;
    font-size: 0.94rem;
  }

  .faq-question {
    overflow-wrap: break-word;
    word-break: break-word;
  }

  .faq-answer {
    padding: 0 16px 18px 16px;
  }

  .faq-answer p {
    font-size: 0.9rem;
    line-height: 1.62;
  }
}


/* ==========================================================================
   LIÊN HỆ
   ========================================================================== */

/* Dòng dẫn ngắn bên dưới tiêu đề section */
.section-lead {
  font-family: var(--font-body);
  font-size: 1.05rem;
  color: #B4C5D4;
  margin-top: 14px;
  margin-bottom: 0;
  line-height: 1.6;
  text-align: center;
}

/* Lưới 2 thẻ liên hệ: Fanpage và Email */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
  align-items: stretch;
}

/* Thẻ kính mờ liên hệ */
.contact-card {
  background-color: rgba(10, 31, 51, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(95, 209, 217, 0.28);
  border-radius: var(--radius-lg);
  padding: 38px 30px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 18px;
  transition: transform var(--transition-normal), border-color var(--transition-normal), box-shadow var(--transition-normal);
}

.contact-card:hover {
  transform: translateY(-2px);
  border-color: rgba(95, 209, 217, 0.55);
  box-shadow: 0 14px 38px rgba(0, 0, 0, 0.45);
}

/* Nhãn nhỏ trên đầu thẻ (h3) */
.contact-card-label {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--aqua);
  margin: 0;
}

/* Khối hiển thị logo hoặc biểu tượng đại diện */
.contact-media {
  width: 84px;
  height: 84px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  margin: 4px 0;
}

/* Ô nền trắng chứa logo CLB A2SC */
.contact-media--logo {
  background: #ffffff;
  padding: 6px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.contact-logo-img {
  width: 72px;
  height: 72px;
  object-fit: contain;
  display: block;
  border-radius: 50%;
}

/* Ô chứa biểu tượng thư tín cho Email */
.contact-media--icon {
  background: rgba(5, 16, 26, 0.75);
  border: 1px solid rgba(95, 209, 217, 0.35);
  color: var(--aqua);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.contact-icon-svg {
  width: 38px;
  height: 38px;
  display: block;
}

/* Tên Fanpage và Địa chỉ Email */
.contact-card-title {
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.5;
  margin: auto 0; /* Tự động căn giữa theo chiều dọc mà không dùng display:flex làm vỡ wrap */
  text-align: center;
  width: 100%;
  overflow-wrap: break-word;
  word-break: break-word;
}

.contact-card-title--email {
  font-size: 1.08rem;
  color: #FFFFFF;
}

/* Khu vực nút hành động */
.contact-card-action {
  width: 100%;
  display: flex;
  justify-content: center;
  margin-top: 4px;
}

/* Kiểu nút viền outline màu aqua */
.btn-outline-aqua {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 28px;
  min-height: 44px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--aqua);
  background-color: transparent;
  border: 1.5px solid var(--aqua);
  border-radius: var(--radius-full);
  text-decoration: none;
  transition: background-color var(--transition-fast), color var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast);
}

.btn-outline-aqua:hover {
  background-color: rgba(95, 209, 217, 0.14);
  color: #FFFFFF;
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(95, 209, 217, 0.28);
}

.btn-outline-aqua:active {
  transform: translateY(0);
}

.btn-outline-aqua:focus-visible {
  outline: 3px solid var(--aqua);
  outline-offset: 3px;
}

/* Tắt chuyển động cho người dùng prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
  .contact-card,
  .btn-outline-aqua {
    transition: none;
  }

  .contact-card:hover,
  .btn-outline-aqua:hover {
    transform: none;
  }
}

/* ==========================================================================
   RESPONSIVE CHO LIÊN HỆ
   ========================================================================== */

/* Dưới 1024px: Giữ 2 thẻ, giảm padding */
@media (max-width: 1024px) {
  .contact-grid {
    gap: 24px;
  }

  .contact-card {
    padding: 30px 22px;
  }
}

/* Dưới 640px: Chuyển 1 cột dọc */
@media (max-width: 640px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .contact-card {
    padding: 26px 20px;
    border-radius: var(--radius-md);
  }

  .contact-btn {
    width: 100%;
    min-height: 44px;
  }

  .section-lead {
    font-size: 0.98rem;
    padding-left: 8px;
    padding-right: 8px;
  }
}
