﻿/* ==========================================================================
   EduNow – Hệ thống Giáo dục Đặc biệt
   Style.css – Bảng màu Xanh Lá Đậm / Xanh Lá Chủ Đạo / Điểm nhấn Cam
   ========================================================================== */

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

/* ── Custom Design Tokens ────────────────────────────────────────────────── */
:root {
  /* Brand Palette (Mã màu cập nhật chính xác theo yêu cầu) */
  --color-green-dark:   #14532D; /* Xanh lá đậm cho các vùng nổi bật, tiêu đề, footer */
  --color-green:        #2E7D32; /* Xanh lá chủ đạo */
  --color-green-hover:  #226326; /* Trạng thái hover xanh lá */
  --color-green-light:  #F0F8F1; /* Xanh lá nhạt cho nền nhẹ, thẻ */
  --color-green-tint:   #E2F2E4; /* Nền chuyển tiếp xanh nhẹ */
  --color-orange:       #F7941D; /* Cam điểm nhấn tiết chế cho CTA & chi tiết nổi bật */
  --color-orange-hover: #E07E0D; /* Hover cam */
  --color-orange-light: #FFF8F0; /* Nền cam nhạt tiết chế */
  --color-orange-border:#FED7AA; /* Viền cam nhạt */

  /* Aliases cho các thành phần để đồng bộ toàn diện */
  --color-navy-dark:    #0F3D21; /* Nền footer sâu */
  --color-navy:         #14532D; /* Xanh lá đậm */
  --color-blue:         #2E7D32; /* Xanh lá chủ đạo */
  --color-blue-hover:   #226326;
  --color-blue-light:   #F0F8F1; /* Xanh lá nhạt */
  --color-blue-tint:    #E2F2E4;
  --color-amber:        #F7941D; /* Cam điểm nhấn */
  --color-amber-hover:  #E07E0D;
  --color-amber-light:  #FFF8F0;
  --color-amber-border: #FED7AA;

  /* Surfaces & Neutrals (Nền trắng, chữ tối màu) */
  --color-white:        #FFFFFF;
  --color-surface-soft: #F6FAF6; /* Nền chuyển tiếp xanh lá rất nhẹ */
  --color-surface-subtle:#EDF6EE;
  --color-text-main:    #14291C; /* Chữ tiêu đề tối màu */
  --color-text-body:    #304336; /* Chữ nội dung tối màu dễ đọc */
  --color-text-muted:   #576C5F; /* Chữ phụ tối vừa */
  --color-border:       rgba(46, 125, 50, 0.16);
  --color-border-subtle:rgba(20, 83, 45, 0.08);

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

  /* Layout & Geometry */
  --max-width:         1160px;
  --radius-xs:         8px;
  --radius-sm:         12px;
  --radius-md:         18px;
  --radius-lg:         24px;
  --radius-xl:         32px;
  --radius-full:       9999px;

  /* Shadows for Depth (Đồng điệu sắc xanh lá tự nhiên) */
  --shadow-subtle:     0 2px 8px rgba(20, 83, 45, 0.04);
  --shadow-card:       0 8px 24px -4px rgba(20, 83, 45, 0.08), 0 2px 6px -1px rgba(20, 83, 45, 0.04);
  --shadow-hover:      0 16px 36px -6px rgba(46, 125, 50, 0.18), 0 4px 12px -2px rgba(20, 83, 45, 0.06);
  --shadow-hero-img:   0 20px 48px -10px rgba(20, 83, 45, 0.22), 0 4px 16px rgba(20, 83, 45, 0.08);
  --shadow-float-pill: 0 10px 28px -4px rgba(20, 83, 45, 0.12), 0 2px 8px rgba(20, 83, 45, 0.04);

  /* Transitions */
  --speed-fast:        0.18s ease;
  --speed-normal:      0.28s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ── Reset & Fundamentals ────────────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  font-family: var(--font-family);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--color-text-body);
  background-color: var(--color-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

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

a:focus-visible, button:focus-visible {
  outline: 3px solid var(--color-amber);
  outline-offset: 3px;
}

h1, h2, h3, h4 {
  color: var(--color-navy);
  font-weight: 700;
  line-height: 1.25;
}

/* ── Structure Container ─────────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: 24px;
}

/* Section Shells */
.section {
  padding-block: 84px;
  position: relative;
}

.section--alt {
  background: linear-gradient(180deg, #F6FAF6 0%, #EDF6EE 100%);
  border-top: 1px solid var(--color-border-subtle);
  border-bottom: 1px solid var(--color-border-subtle);
}

/* Section Header */
.section-header {
  text-align: center;
  max-width: 680px;
  margin-inline: auto;
  margin-bottom: 48px;
}

.section-header__tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--color-blue-light);
  color: var(--color-blue);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  margin-bottom: 14px;
  border: 1px solid rgba(46, 125, 50, 0.2);
}

.section-header h2 {
  font-size: clamp(1.65rem, 3.2vw, 2.3rem);
  color: var(--color-navy);
  margin-bottom: 14px;
  letter-spacing: -0.02em;
}

.section-header p {
  font-size: 1.05rem;
  color: var(--color-text-muted);
  line-height: 1.6;
}

.section-header__line {
  width: 50px;
  height: 4px;
  background: var(--color-amber);
  border-radius: var(--radius-full);
  margin: 18px auto 0;
}

/* ── Action Buttons ──────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 24px;
  font-family: var(--font-family);
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  cursor: pointer;
  border: 1px solid transparent;
  text-decoration: none;
  transition: all var(--speed-normal);
  white-space: nowrap;
}

.btn svg {
  flex-shrink: 0;
  transition: transform var(--speed-fast);
}

.btn:hover svg {
  transform: translateX(3px);
}

.btn--primary {
  background: var(--color-blue);
  color: var(--color-white);
  box-shadow: 0 4px 14px rgba(46, 125, 50, 0.26);
}

.btn--primary:hover, .btn--primary:focus-visible {
  background: var(--color-navy);
  color: var(--color-white);
  box-shadow: 0 6px 20px rgba(20, 83, 45, 0.32);
  transform: translateY(-2px);
}

.btn--outline {
  background: var(--color-white);
  color: var(--color-navy);
  border-color: rgba(20, 83, 45, 0.25);
  box-shadow: var(--shadow-subtle);
}

.btn--outline:hover, .btn--outline:focus-visible {
  background: var(--color-blue-light);
  color: var(--color-blue);
  border-color: var(--color-blue);
  transform: translateY(-2px);
}

.btn--accent {
  background: var(--color-amber);
  color: var(--color-white);
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(247, 148, 29, 0.32);
}

.btn--accent:hover, .btn--accent:focus-visible {
  background: var(--color-amber-hover);
  color: var(--color-white);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(247, 148, 29, 0.42);
}

.btn--sm {
  min-height: 40px;
  padding: 8px 18px;
  font-size: 0.88rem;
  border-radius: var(--radius-xs);
}

.btn--disabled, .btn[aria-disabled="true"] {
  background: #EBF1EC !important;
  color: #798D80 !important;
  border-color: transparent !important;
  box-shadow: none !important;
  cursor: default !important;
  pointer-events: none !important;
  transform: none !important;
}

/* ── Skip Link ───────────────────────────────────────────────────────────── */
.skip-link {
  position: absolute;
  top: -100px;
  left: 20px;
  z-index: 9999;
  background: var(--color-navy);
  color: var(--color-white);
  padding: 10px 18px;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  font-weight: 600;
  transition: top 0.2s;
}
.skip-link:focus {
  top: 0;
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   1. HEADER & TOP NAV
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--color-border);
  box-shadow: 0 2px 14px rgba(20, 83, 45, 0.05);
  transition: all var(--speed-normal);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 78px;
  gap: 20px;
}

/* Logo Brand Group */
.nav__brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex-shrink: 0;
}

.nav__logo-img {
  height: 46px;
  width: auto;
  border-radius: var(--radius-xs);
  object-fit: contain;
}

.nav__brand-info {
  display: flex;
  flex-direction: column;
}

.nav__brand-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--color-navy);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.nav__brand-title span {
  color: var(--color-blue);
}

.nav__brand-subtitle {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--color-text-muted);
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

/* Nav Menu Items */
.nav__right-group {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav__links {
  display: flex;
  list-style: none;
  gap: 4px;
  align-items: center;
}

.nav__links a {
  display: flex;
  align-items: center;
  padding: 8px 16px;
  min-height: 44px;
  font-size: 0.94rem;
  font-weight: 600;
  color: var(--color-text-main);
  border-radius: var(--radius-xs);
  transition: all var(--speed-fast);
}

.nav__links a:hover, .nav__links a:focus-visible {
  color: var(--color-blue);
  background: var(--color-blue-light);
}

/* Header Prominent CTA */
.nav__cta-btn {
  display: inline-flex;
}

/* Mobile Toggle Hamburger */
.nav__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 44px;
  height: 44px;
  background: transparent;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xs);
  cursor: pointer;
  padding: 10px;
  transition: all var(--speed-fast);
}

.nav__toggle:hover {
  background: var(--color-blue-light);
  border-color: var(--color-blue);
}

.nav__toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--color-navy);
  border-radius: 2px;
  transition: transform var(--speed-normal), opacity var(--speed-fast);
}

.nav__toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
.nav__toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.nav__toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* Responsive Mobile Navigation */
@media (max-width: 900px) {
  .nav {
    height: 70px;
  }
  .nav__brand-subtitle {
    display: none;
  }
  .nav__toggle {
    display: flex;
  }
  .nav__right-group {
    display: none;
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: var(--color-white);
    border-bottom: 2px solid var(--color-border);
    flex-direction: column;
    padding: 24px;
    gap: 16px;
    box-shadow: 0 16px 32px rgba(20, 83, 45, 0.12);
  }
  .nav__right-group.is-open {
    display: flex;
  }
  .nav__links {
    flex-direction: column;
    width: 100%;
    gap: 6px;
  }
  .nav__links a {
    width: 100%;
    padding: 12px 18px;
    font-size: 1.02rem;
    border-radius: var(--radius-sm);
    justify-content: flex-start;
  }
  .nav__cta-btn {
    width: 100%;
    justify-content: center;
  }
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   2. HERO / PHẦN MỞ ĐẦU (Visual Depth & Rich Composition)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.hero {
  position: relative;
  padding-block: 76px 88px;
  background: radial-gradient(120% 90% at 85% 15%, #F0F8F1 0%, #FFFFFF 65%);
  overflow: hidden;
}

/* Soft decorative ambient glow circles */
.hero__bg-shape {
  position: absolute;
  top: -120px;
  right: -100px;
  width: 560px;
  height: 560px;
  background: radial-gradient(circle, rgba(46, 125, 50, 0.08) 0%, rgba(247, 148, 29, 0.04) 50%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 52px;
  align-items: center;
}

/* Left Content */
.hero__content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.hero__tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--color-blue-light);
  border: 1px solid rgba(46, 125, 50, 0.2);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--color-blue);
  margin-bottom: 20px;
}

.hero__tag svg {
  color: var(--color-amber);
}

.hero__title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  color: var(--color-navy);
  line-height: 1.18;
  letter-spacing: -0.025em;
  margin-bottom: 20px;
}

.hero__title-sub {
  color: var(--color-blue);
  display: block;
}

.hero__intro-text {
  font-size: 1.06rem;
  color: var(--color-text-body);
  line-height: 1.75;
  margin-bottom: 24px;
}

.highlight--first {
  color: var(--color-navy);
  font-weight: 800;
  background: linear-gradient(120deg, rgba(46, 125, 50, 0.16) 0%, rgba(247, 148, 29, 0.16) 100%);
  padding: 2px 8px;
  border-radius: 4px;
}

/* Điểm nhấn cấp phép bằng chữ (Official Licensing Highlight Bar) */
.hero__license-bar {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: var(--color-blue-light);
  border: 1px solid rgba(46, 125, 50, 0.22);
  border-left: 4px solid var(--color-blue);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  margin-bottom: 32px;
  width: 100%;
}

.hero__license-icon {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-xs);
  background: var(--color-white);
  color: var(--color-navy);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(20, 83, 45, 0.08);
  margin-top: 2px;
}

.hero__license-text {
  font-size: 0.92rem;
  color: #1E3825;
  font-weight: 500;
  line-height: 1.55;
}

.hero__license-text strong {
  color: var(--color-navy);
  font-weight: 700;
}

.hero__actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* Right Visual / Photographic Layering */
.hero__visual {
  position: relative;
  display: flex;
  justify-content: center;
}

.hero__image-composition {
  position: relative;
  width: 100%;
  max-width: 520px;
}

.hero__image-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-hero-img);
  border: 4px solid var(--color-white);
  background: var(--color-surface-subtle);
}

.hero__image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.hero__image-frame:hover img {
  transform: scale(1.02);
}

/* Floating message card (Layered element) */
.hero__floating-card {
  position: absolute;
  bottom: -22px;
  left: -20px;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(46, 125, 50, 0.2);
  border-radius: var(--radius-md);
  padding: 14px 20px;
  box-shadow: var(--shadow-float-pill);
  display: flex;
  align-items: center;
  gap: 14px;
  z-index: 2;
  max-width: 320px;
}

.hero__floating-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: var(--color-blue-light);
  color: var(--color-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.hero__floating-title {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--color-navy);
  line-height: 1.25;
}

.hero__floating-desc {
  font-size: 0.78rem;
  color: var(--color-text-muted);
  line-height: 1.4;
  margin-top: 2px;
}

@media (max-width: 900px) {
  .hero {
    padding-block: 48px 64px;
  }
  .hero__inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .hero__visual {
    order: 2;
  }
  .hero__content {
    order: 1;
  }
  .hero__floating-card {
    position: relative;
    bottom: auto;
    left: auto;
    margin-top: 16px;
    max-width: 100%;
  }
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   3. CÁC KÊNH KẾT NỐI (Facebook, Website, TikTok – Modern Brand Strip)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.social-hub {
  padding-block: 64px;
  background: var(--color-surface-soft);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

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

/* Channel Card */
.social-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: var(--color-white);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-md);
  padding: 22px 24px;
  box-shadow: var(--shadow-subtle);
  text-decoration: none;
  color: inherit;
  transition: all var(--speed-normal);
  position: relative;
}

.social-item--active:hover, .social-item--active:focus-visible {
  border-color: var(--color-blue);
  box-shadow: var(--shadow-hover);
  transform: translateY(-3px);
}

.social-item--inactive {
  opacity: 0.85;
  cursor: default;
}

.social-item__left {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 1;
}

.social-item__icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform var(--speed-fast);
}

.social-item:hover .social-item__icon {
  transform: scale(1.06);
}

.social-item__icon--fb {
  background: #E8F2FE;
  color: #1877F2;
}

.social-item__icon--web {
  background: var(--color-blue-light);
  color: var(--color-blue);
}

.social-item__icon--tt {
  background: #F4F0FA;
  color: #111111;
}

.social-item__text {
  display: flex;
  flex-direction: column;
}

.social-item__name {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-navy);
  line-height: 1.25;
}

.social-item__desc {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  line-height: 1.45;
  margin-top: 3px;
}

.social-item__arrow {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-full);
  background: var(--color-surface-soft);
  color: var(--color-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all var(--speed-fast);
  border: 1px solid rgba(46, 125, 50, 0.12);
}

.social-item:hover .social-item__arrow {
  background: var(--color-blue);
  color: var(--color-white);
  transform: translate(2px, -2px);
}

.social-item__status {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--color-text-muted);
  font-style: italic;
}

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

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   4. CỔNG TRUY CẬP GIÁO VIÊN & PHỤ HUYNH (2 Distinct Feature Cards)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.portals-section {
  padding-block: 84px;
  background: var(--color-white);
}

.portals-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

/* Feature Showcase Box */
.portal-card {
  position: relative;
  border-radius: var(--radius-lg);
  padding: 40px 36px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid transparent;
  transition: all var(--speed-normal);
  text-decoration: none;
  color: inherit;
  overflow: hidden;
}

/* Background Gradients */
.portal-card--teacher {
  background: linear-gradient(145deg, #F0F8F1 0%, #E2F2E4 100%);
  border-color: rgba(46, 125, 50, 0.22);
  box-shadow: 0 8px 24px rgba(20, 83, 45, 0.06);
}

.portal-card--teacher:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(46, 125, 50, 0.18);
  border-color: var(--color-blue);
}

.portal-card--parent {
  background: linear-gradient(145deg, #FFFDF8 0%, #FFF5EB 100%);
  border-color: rgba(247, 148, 29, 0.28);
  box-shadow: 0 8px 24px rgba(247, 148, 29, 0.08);
}

.portal-card--parent.portal-card--active:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(247, 148, 29, 0.22);
  border-color: var(--color-amber);
}

.portal-card--inactive {
  cursor: default;
}

/* Portal Card Header */
.portal-card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}

.portal-card__badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 6px 14px;
  border-radius: var(--radius-full);
}

.portal-card--teacher .portal-card__badge {
  background: var(--color-white);
  color: var(--color-blue);
  border: 1px solid rgba(46, 125, 50, 0.25);
}

.portal-card--parent .portal-card__badge {
  background: var(--color-white);
  color: #B56100;
  border: 1px solid rgba(247, 148, 29, 0.35);
}

.portal-card__icon-box {
  width: 72px;
  height: 72px;
  border-radius: var(--radius-md);
  background: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(20, 83, 45, 0.06);
  flex-shrink: 0;
}

.portal-card--teacher .portal-card__icon-box {
  color: var(--color-blue);
}

.portal-card--parent .portal-card__icon-box {
  color: var(--color-amber);
}

.portal-card__title {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--color-navy);
  margin-bottom: 10px;
  line-height: 1.25;
}

.portal-card__desc {
  font-size: 0.98rem;
  color: var(--color-text-body);
  line-height: 1.6;
  margin-bottom: 32px;
}

.portal-card__footer {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

@media (max-width: 820px) {
  .portals-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .portal-card {
    padding: 30px 24px;
  }
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   5. CÁC CHƯƠNG TRÌNH CÙA THẦY PHAN XUÂN THÔNG (Course Showcase)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.programs-section {
  padding-block: 88px;
  background: linear-gradient(180deg, #F6FAF6 0%, #FFFFFF 100%);
}

.programs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  align-items: stretch;
}

/* Program Card */
.program-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  transition: all var(--speed-normal);
}

.program-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(46, 125, 50, 0.35);
}

/* Image Container (Ensure exact 3:2 aspect-ratio, crisp, uncropped, unskewed) */
.program-card__media {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 2;
  background: var(--color-surface-soft);
  overflow: hidden;
  border-bottom: 1px solid var(--color-border-subtle);
}

.program-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

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

/* Card Body */
.program-card__body {
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.program-card__tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-blue);
  background: var(--color-blue-light);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  margin-bottom: 12px;
  width: fit-content;
}

.program-card__title {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--color-navy);
  line-height: 1.25;
  margin-bottom: 6px;
}

.program-card__subtitle {
  font-size: 0.94rem;
  font-weight: 600;
  color: var(--color-blue);
  font-style: italic;
  margin-bottom: 20px;
}

/* Structured Meta Sections (Đối tượng, Nội dung, Mục tiêu) */
.program-card__details {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 28px;
  background: var(--color-surface-soft);
  border-radius: var(--radius-sm);
  padding: 16px;
  border: 1px solid rgba(46, 125, 50, 0.08);
}

.program-detail {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--color-text-body);
}

.program-detail__label {
  font-weight: 700;
  color: var(--color-navy);
  white-space: nowrap;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.program-detail__label svg {
  color: var(--color-blue);
  flex-shrink: 0;
}

.program-card__action {
  margin-top: auto;
  width: 100%;
}

.program-card__action .btn {
  width: 100%;
}

@media (max-width: 1024px) and (min-width: 768px) {
  .programs-grid {
    grid-template-columns: 1fr 1fr;
  }
  .program-card:last-child {
    grid-column: 1 / -1;
    max-width: 580px;
    margin-inline: auto;
    width: 100%;
  }
}

@media (max-width: 767px) {
  .programs-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   6. FOOTER
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.site-footer {
  background: var(--color-navy);
  color: rgba(255, 255, 255, 0.88);
  padding-block: 72px 30px;
  position: relative;
  overflow: hidden;
}

/* Subtle top border glow */
.site-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--color-blue) 0%, var(--color-amber) 50%, var(--color-blue) 100%);
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 0.9fr 0.9fr 1.2fr;
  gap: 40px;
  margin-bottom: 50px;
}

/* Brand Column */
.footer__brand {
  display: flex;
  flex-direction: column;
}

.footer__brand-logo-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.footer__logo-img {
  height: 44px;
  width: auto;
  border-radius: var(--radius-xs);
  background: var(--color-white);
  padding: 3px;
}

.footer__brand-title {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--color-white);
}

.footer__brand-title span {
  color: var(--color-amber);
}

.footer__brand-desc {
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.65;
  margin-bottom: 20px;
}

/* Nav & Info Columns */
.footer__col h3 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-white);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}

.footer__col h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 28px;
  height: 2px;
  background: var(--color-amber);
  border-radius: var(--radius-full);
}

.footer__links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer__links a {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.92rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all var(--speed-fast);
}

.footer__links a:hover {
  color: var(--color-amber);
  transform: translateX(4px);
}

/* Contact List */
.footer__contact-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.footer__contact-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.5;
}

.footer__contact-list li svg {
  flex-shrink: 0;
  margin-top: 3px;
  color: var(--color-amber);
}

.footer__contact-list a {
  color: rgba(255, 255, 255, 0.92);
}

.footer__contact-list a:hover {
  color: var(--color-amber);
}

/* Footer Bottom Bar */
.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.footer__copyright {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
}

.footer__note {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.55);
  display: flex;
  align-items: center;
  gap: 6px;
}

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

@media (max-width: 600px) {
  .footer__grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .footer__bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ── Animation Reveal Classes ────────────────────────────────────────────── */
.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.55s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.55s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.fade-up.is-visible {
  opacity: 1;
  transform: translateY(0);
}
