/* ==========================================================================
   KIDO · Home sections
   Nhịp điệu: trắng → xanh nhạt → kem → navy, có sóng phân cách.
   ========================================================================== */

/* --- Khối chung ------------------------------------------------------------ */
.section {
  position: relative;
  padding-block: clamp(3rem, 6vw, 5.5rem);
}

.section--soft {
  background: var(--sky-50);
}

.section--cream {
  background: var(--cream);
}

.section--navy {
  background: var(--navy-900);
  color: rgba(255, 255, 255, 0.76);
}

.section--navy h2,
.section--navy h3 {
  color: #fff;
}

.section-head {
  max-width: 720px;
  margin: 0 auto clamp(2rem, 4vw, 3rem);
  text-align: center;
}

.section-head .eyebrow {
  margin-bottom: var(--sp-3);
}

.section-head h2 {
  margin-bottom: 0.4em;
}

.section-head p {
  font-size: var(--fs-md);
  color: var(--body);
  margin: 0;
}

.section-head--left {
  margin-inline: 0;
  text-align: left;
  max-width: 640px;
}

.section-head--split {
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  gap: var(--sp-5);
  flex-wrap: wrap;
  max-width: none;
  margin-bottom: clamp(1.75rem, 3vw, 2.5rem);
}

.section-head--split {
  text-align: left;
}

.section-head--split .eyebrow {
  justify-content: flex-start;
}

.section-head--split .section-head__body {
  max-width: 620px;
}

/* Sóng phân cách */
.wave-top {
  position: absolute;
  top: -1px;
  left: 0;
  right: 0;
  line-height: 0;
  transform: rotate(180deg);
}

.wave-top svg {
  width: 100%;
  height: clamp(48px, 6vw, 80px);
  display: block;
}

/* --- Dấu hiệu cần chú ý ---------------------------------------------------- */
.sign-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(0.9rem, 1.8vw, 1.35rem);
}

.sign {
  display: flex;
  gap: var(--sp-4);
  padding: clamp(1.05rem, 2vw, 1.4rem);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  transition: transform var(--dur-2) var(--ease), box-shadow var(--dur-2) var(--ease),
    border-color var(--dur-2) var(--ease);
}

.sign:hover {
  transform: translateY(-3px);
  border-color: var(--amber-200);
  box-shadow: var(--shadow-md);
}

.sign__icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  flex: none;
  background: var(--amber-50);
  color: var(--amber-700);
}

.sign:nth-child(3n + 2) .sign__icon {
  background: var(--mint-50);
  color: var(--mint);
}
.sign:nth-child(3n + 3) .sign__icon {
  background: var(--sky-50);
  color: var(--navy);
}

.sign h3 {
  margin: 0 0 0.2em;
  font-size: var(--fs-md);
}

.sign p {
  margin: 0;
  font-size: var(--fs-sm);
  line-height: 1.55;
  color: var(--muted);
}

.signs__note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-4);
  flex-wrap: wrap;
  margin-top: var(--sp-7);
}

.signs__note p {
  margin: 0;
  font-size: var(--fs-sm);
  color: var(--muted);
}

/* --- Chương trình ---------------------------------------------------------- */
.program-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(0.9rem, 1.8vw, 1.4rem);
}

.program {
  display: flex;
  flex-direction: column;
  gap: 0.55em;
  padding: clamp(1.15rem, 2.2vw, 1.6rem);
  border-radius: var(--r-xl);
  background: var(--tone-50, #fff);
  border: 1px solid var(--tone-100, var(--line));
  transition: transform var(--dur-2) var(--ease), box-shadow var(--dur-2) var(--ease);
}

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

.program--sky {
  --tone-50: #eaf5ff;
  --tone-100: #d3e8ff;
  --tone-ink: #1d5fa8;
  --tone-soft: #5aa9f0;
}
.program--mint {
  --tone-50: #e6f6f0;
  --tone-100: #c8ece0;
  --tone-ink: #2c6f61;
  --tone-soft: #3f8f7f;
}
.program--peach {
  --tone-50: #fff0e6;
  --tone-100: #ffdcc6;
  --tone-ink: #a85a22;
  --tone-soft: #f6a97e;
}
.program--lilac {
  --tone-50: #f2edfd;
  --tone-100: #e2d8fa;
  --tone-ink: #5b4a99;
  --tone-soft: #8b7bc4;
}

.program__top {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: var(--sp-2);
  margin-bottom: var(--sp-3);
}

.program__icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #fff;
  color: var(--tone-ink, var(--navy));
  box-shadow: 0 6px 14px -8px rgba(11, 36, 68, 0.35);
  flex: none;
}

.program__age {
  padding: 0.3em 0.7em;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.75);
  color: var(--tone-ink, var(--navy));
  font-size: var(--fs-xs);
  font-weight: 700;
  white-space: nowrap;
}

.program h3 {
  margin: 0;
  font-size: var(--fs-lg);
  line-height: 1.3;
}

.program p {
  margin: 0;
  font-size: var(--fs-sm);
  line-height: 1.6;
  color: var(--ink-soft);
  flex: 1;
}

.program__meta {
  display: flex;
  align-items: center;
  gap: 0.4em;
  padding-top: var(--sp-3);
  border-top: 1px dashed rgba(16, 35, 63, 0.14);
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--tone-ink, var(--navy));
}

.program__link {
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
  font-size: var(--fs-sm);
  font-weight: 700;
  color: var(--tone-ink, var(--navy));
  text-decoration: none;
}

.program__link svg {
  transition: transform var(--dur-2) var(--ease);
}

.program:hover .program__link svg {
  transform: translateX(4px);
}

/* --- Tại sao chọn KIDO — lưới 6 thẻ --------------------------------------- */
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(0.9rem, 1.8vw, 1.4rem);
}

.why-card {
  --wc: var(--navy);
  --wb: var(--navy-50);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: clamp(1.15rem, 2.2vw, 1.6rem);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  transition: transform var(--dur-2) var(--ease), box-shadow var(--dur-2) var(--ease),
    border-color var(--dur-2) var(--ease);
}

.why-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: var(--wc);
}

.why-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: color-mix(in srgb, var(--wc) 35%, #fff);
}

.why-card__num {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  margin-bottom: 0.85rem;
  border-radius: 11px;
  background: var(--wb);
  color: var(--wc);
  font-size: var(--fs-sm);
  font-weight: 800;
  letter-spacing: 0.02em;
}

.why-card__title {
  margin: 0 0 0.4em;
  font-size: var(--fs-lg);
  line-height: 1.3;
  color: var(--navy-900);
}

.why-card__text {
  margin: 0;
  font-size: var(--fs-sm);
  line-height: 1.6;
  color: var(--body);
}

.why-card--mint  { --wc: var(--mint);  --wb: var(--mint-50); }
.why-card--amber { --wc: var(--amber-600); --wb: var(--amber-50); }
.why-card--coral { --wc: #C0553F; --wb: var(--peach-50); }
.why-card--sky   { --wc: var(--navy-500); --wb: var(--sky-50); }
.why-card--lilac { --wc: var(--lilac); --wb: var(--lilac-50); }
.why-card--navy  { --wc: var(--navy);  --wb: var(--navy-50); }

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

@media (max-width: 640px) {
  .why-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* --- Quy trình ------------------------------------------------------------- */
.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(1rem, 2.2vw, 1.75rem);
  counter-reset: step;
}

.step {
  position: relative;
  text-align: center;
  padding-inline: 0.35rem;
}

.step__num {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin: 0 auto var(--sp-4);
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--amber);
  color: var(--navy);
  font-size: 1.25rem;
  font-weight: 800;
  box-shadow: 0 0 0 8px rgba(255, 255, 255, 0.6);
}

.step::before {
  content: "";
  position: absolute;
  top: 32px;
  left: 50%;
  right: -50%;
  height: 2px;
  background: repeating-linear-gradient(90deg, var(--amber-300) 0 8px, transparent 8px 16px);
  z-index: 0;
}

.step:last-child::before {
  display: none;
}

.step h3 {
  margin: 0 0 0.25em;
  font-size: var(--fs-md);
}

.step p {
  margin: 0;
  font-size: var(--fs-sm);
  line-height: 1.55;
  color: var(--muted);
}

/* --- Đánh giá phụ huynh: slider thẻ + lightbox ------------------------------ */
.section-head--split > .btn {
  margin-left: auto;
}

.rv-slider {
  position: relative;
}

.rv-slider__viewport {
  --per-view: 3;
  align-items: flex-start;
  --slide-gap: clamp(0.9rem, 1.8vw, 1.4rem);
  display: flex;
  gap: var(--slide-gap);
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding-block: 4px;
  scrollbar-width: none;
}

.rv-slider__viewport::-webkit-scrollbar {
  display: none;
}

.rv-card {
  flex: 0 0 calc((100% - (var(--per-view) - 1) * var(--slide-gap)) / var(--per-view));
  scroll-snap-align: start;
  scroll-snap-stop: always;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: transform var(--dur-2) var(--ease), box-shadow var(--dur-2) var(--ease);
}

.rv-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.rv-card:not(.rv-card--photo) {
  cursor: zoom-in;
}

.rv-card__media {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  padding: 0;
  border: 0;
  background: var(--sky-50);
  overflow: hidden;
  cursor: zoom-in;
}

.rv-card--photo .rv-card__media {
  aspect-ratio: auto;
  height: clamp(280px, 28vw, 350px);
  background: #fff;
  padding: 10px;
}

.rv-card--photo .rv-card__media img {
  object-fit: contain;
  object-position: center;
  border-radius: 10px;
}

.rv-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform var(--dur-3) var(--ease);
}

.rv-card:hover .rv-card--photo .rv-card__media {
  aspect-ratio: auto;
  height: clamp(280px, 28vw, 350px);
  background: #fff;
  padding: 10px;
}

.rv-card--photo .rv-card__media img {
  object-fit: contain;
  object-position: center;
  border-radius: 10px;
}

.rv-card__media img {
  transform: scale(1.04);
}

.rv-card__ph {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  color: var(--navy-300);
}

.rv-card__zoom {
  position: absolute;
  right: 12px;
  bottom: 12px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.94);
  color: var(--navy);
  box-shadow: var(--shadow-sm);
  opacity: 0;
  transform: translateY(4px);
  transition: opacity var(--dur-2) var(--ease), transform var(--dur-2) var(--ease);
}

.rv-card:hover .rv-card__zoom,
.rv-card__media:focus-visible .rv-card__zoom {
  opacity: 1;
  transform: none;
}

.rv-card__body {
  display: flex;
  flex-direction: column;
  gap: 0.6em;
  padding: 1.1rem 1.15rem 1.2rem;
  flex: 1;
}

.rv-card__quote {
  margin: 0;
  font-size: var(--fs-sm);
  line-height: 1.6;
  color: var(--ink-soft);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.rv-card:not(.rv-card--photo) .rv-card__media {
  aspect-ratio: 3 / 2;
}

.rv-card__who {
  display: flex;
  align-items: center;
  gap: 0.65em;
  margin-top: 0.85rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--line);
}

.rv-card__av {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex: none;
  border-radius: 50%;
  background: var(--navy-50);
  color: var(--navy);
  font-size: var(--fs-xs);
  font-weight: 800;
}

.rv-card__who strong {
  display: block;
  font-size: var(--fs-sm);
  color: var(--ink);
}

.rv-card__who small {
  display: block;
  font-size: var(--fs-xs);
  color: var(--muted);
}

.rv-slider__navs {
  position: absolute;
  left: -22px;
  right: -22px;
  top: 34%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  pointer-events: none;
}

.rv-slider__btn {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  flex: none;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
  color: var(--navy);
  box-shadow: var(--shadow-md);
  cursor: pointer;
  pointer-events: auto;
  transition: transform var(--dur-2) var(--ease), background-color var(--dur-2) var(--ease),
    color var(--dur-2) var(--ease), opacity var(--dur-2) var(--ease);
}

.rv-slider__btn:hover:not(:disabled) {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
  transform: scale(1.06);
}

.rv-slider__btn:disabled {
  opacity: 0.35;
  cursor: default;
  box-shadow: var(--shadow-xs);
}

/* --- Lightbox -------------------------------------------------------------- */
.lightbox {
  width: min(92vw, 900px);
  max-width: none;
  max-height: 92vh;
  padding: 0;
  border: 0;
  border-radius: var(--r-lg);
  background: #fff;
  overflow: hidden;
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.6);
}

.lightbox::backdrop {
  background: rgba(11, 36, 68, 0.72);
  backdrop-filter: blur(3px);
}

.lightbox__figure {
  margin: 0;
  display: flex;
  flex-direction: column;
  max-height: 92vh;
}

.lightbox__img {
  width: 100%;
  max-height: calc(92vh - 64px);
  object-fit: contain;
  display: block;
  background: var(--navy-50);
}

.lightbox__cap {
  padding: 0.85rem 1.15rem;
  font-size: var(--fs-sm);
  color: var(--body);
  border-top: 1px solid var(--line);
}

.lightbox__close {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  color: var(--navy);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
}

.lightbox__close:hover {
  background: #fff;
}

body.lb-open {
  overflow: hidden;
}

@media (max-width: 1080px) {
  .rv-slider__viewport { --per-view: 2.2; }
}

@media (max-width: 900px) {
  .rv-slider__viewport { --per-view: 2; }
  .rv-slider__navs {
    position: static;
    transform: none;
    justify-content: center;
    gap: var(--sp-3);
    margin-top: var(--sp-5);
  }
}

@media (max-width: 640px) {
  .rv-slider__viewport { --per-view: 1.1; }
  .lightbox { width: 94vw; }
}

/* --- Cơ sở vật chất: album collage ---------------------------------------- */
.album {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  grid-template-rows: repeat(2, minmax(0, 232px));
  gap: clamp(0.6rem, 1.1vw, 0.9rem);
}

.album__tile {
  position: relative;
  display: block;
  padding: 0;
  border: 0;
  overflow: hidden;
  border-radius: var(--r-lg);
  background: var(--sky-50);
  cursor: zoom-in;
  isolation: isolate;
}

.album__tile--big {
  grid-row: span 2;
}

/* Bố cục 4 ảnh: lớn bên trái, ảnh 2 nằm ngang phía trên, 2 ảnh nhỏ phía dưới */
.album__tile:nth-child(2) {
  grid-column: 2 / 4;
}

.album__tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform var(--dur-3) var(--ease);
}

.album__tile:hover img,
.album__tile:focus-visible img {
  transform: scale(1.045);
}

.album__tile::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 55%;
  background: linear-gradient(to top, rgba(8, 26, 51, 0.55), rgba(8, 26, 51, 0));
  pointer-events: none;
}

.album__cap {
  position: absolute;
  left: 12px;
  bottom: 12px;
  z-index: 2;
  max-width: calc(100% - 24px);
  padding: 0.45em 0.8em;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.95);
  color: var(--navy);
  font-size: var(--fs-xs);
  font-weight: 700;
  line-height: 1.25;
  text-align: left;
}

.album__zoom {
  position: absolute;
  right: 12px;
  top: 12px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  color: var(--navy);
  box-shadow: var(--shadow-sm);
  opacity: 0;
  transform: translateY(4px);
  transition: opacity var(--dur-2) var(--ease), transform var(--dur-2) var(--ease);
}

.album__tile:hover .album__zoom,
.album__tile:focus-visible .album__zoom {
  opacity: 1;
  transform: none;
}

.album__tile:focus-visible {
  outline: 3px solid var(--navy-300);
  outline-offset: 3px;
}

@media (max-width: 900px) {
  .album {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: none;
  }
  .album__tile {
    aspect-ratio: 4 / 3;
  }
  .album__tile--big,
  .album__tile:nth-child(2),
  .album__tile:last-child {
    grid-column: 1 / 3;
    grid-row: auto;
  }
}

@media (max-width: 640px) {
  .album {
    grid-template-columns: 1fr;
    grid-template-rows: none;
  }
  .album__tile,
  .album__tile--big,
  .album__tile:nth-child(2),
  .album__tile:last-child {
    grid-column: auto;
    grid-row: auto;
    aspect-ratio: 4 / 3;
  }
}

/* --- Tin tức --------------------------------------------------------------- */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1rem, 2vw, 1.5rem);
}

.post {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: transform var(--dur-2) var(--ease), box-shadow var(--dur-2) var(--ease);
}

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

.post__media {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--sky-50);
  color: var(--navy);
}

.post__media--sky {
  background: linear-gradient(145deg, #eaf5ff, #d5eaff);
  color: #2a6fbf;
}
.post__media--mint {
  background: linear-gradient(145deg, #e9f7f1, #cdece1);
  color: #2c7f6d;
}
.post__media--peach {
  background: linear-gradient(145deg, #fff2e8, #ffdfca);
  color: #b4601f;
}

.post__media svg {
  opacity: 0.9;
}

.post__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--dur-3) var(--ease);
}

.post:hover .post__media img {
  transform: scale(1.04);
}

.post__body {
  display: flex;
  flex-direction: column;
  gap: 0.45em;
  padding: clamp(1rem, 1.8vw, 1.35rem);
  flex: 1;
}

.post__cat {
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--amber-700);
}

.post h3 {
  margin: 0;
  font-size: var(--fs-md);
  line-height: 1.35;
}

.post h3 a {
  color: var(--ink);
  text-decoration: none;
}

.post h3 a:hover {
  color: var(--navy);
}

.post p {
  margin: 0;
  font-size: var(--fs-sm);
  color: var(--body);
  flex: 1;
}

.post__link {
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
  padding-top: 0.35em;
  font-size: var(--fs-sm);
  font-weight: 700;
  color: var(--navy);
  text-decoration: none;
}

/* --- FAQ ------------------------------------------------------------------- */
.faq {
  max-width: 820px;
  margin-inline: auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: clamp(0.5rem, 1.5vw, 1rem) clamp(1.1rem, 2.4vw, 1.8rem);
}

.faq__item {
  border-bottom: 1px solid var(--line);
}

.faq__item:last-child {
  border-bottom: 0;
}

.faq__item summary {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: var(--sp-4);
  padding: 1.1em 0;
  cursor: pointer;
  list-style: none;
  font-size: var(--fs-md);
  font-weight: 700;
  color: var(--ink);
}

.faq__item summary::-webkit-details-marker {
  display: none;
}

.faq__item summary:hover {
  color: var(--navy);
}

.faq__icon {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--sky-50);
  color: var(--navy);
  flex: none;
  transition: transform var(--dur-2) var(--ease), background-color var(--dur-2) var(--ease);
}

.faq__item[open] .faq__icon {
  transform: rotate(45deg);
  background: var(--amber);
  color: var(--navy-900);
}

.faq__answer {
  padding: 0 0 1.2em;
  font-size: var(--fs-base);
  line-height: 1.7;
  color: var(--body);
  max-width: 68ch;
}

/* --- CTA + form (bầu trời) -------------------------------------------------- */
.cta {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #ffffff 0%, #eef7ff 24%, #e0f0ff 58%, #cfe6ff 86%, #bcdcf7 100%);
  color: var(--ink-soft);
  padding-block: clamp(3.5rem, 7vw, 6rem) clamp(4rem, 8vw, 7rem);
}

.cta > .container {
  position: relative;
  z-index: 2;
}

.cta__grid {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 0.92fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

/* Bầu trời: mặt trời, mây, máy bay */
.sky {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.sky__sun {
  position: absolute;
  bottom: clamp(-70px, -5vw, -34px);
  left: 3%;
  width: clamp(150px, 16vw, 200px);
  aspect-ratio: 1;
  animation: skyFloat 12s var(--ease) infinite;
}

.sky__cloud {
  position: absolute;
  width: clamp(90px, 12vw, 170px);
  color: #fff;
  filter: drop-shadow(0 12px 18px rgba(90, 169, 240, 0.35));
  animation: skyDrift 22s var(--ease) infinite;
}

.sky__cloud--1 {
  top: 13%;
  left: 6%;
  width: clamp(80px, 9vw, 130px);
}

.sky__cloud--2 {
  top: 4%;
  left: 26%;
  width: clamp(60px, 7vw, 96px);
  opacity: 0.85;
  animation-duration: 28s;
  animation-direction: reverse;
}

.sky__cloud--3 {
  bottom: 12%;
  left: 27%;
  width: clamp(52px, 6vw, 80px);
  opacity: 0.75;
  animation-duration: 34s;
}

.sky__plane {
  position: absolute;
  top: 9%;
  left: 17%;
  width: clamp(56px, 6.5vw, 86px);
  transform: rotate(-6deg);
  animation: skyFly 16s var(--ease) infinite;
}

@media (max-width: 960px) {
  .cta__grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .sky__cloud--3,
  .sky__plane,
  .sky__cloud--2 {
    display: none;
  }
}

@media (max-width: 640px) {
  .sky__sun {
    top: -22px;
    right: -14px;
    left: auto;
    bottom: auto;
    width: 128px;
  }
  .sky__cloud--1 {
    top: 4%;
    left: 4%;
    width: 74px;
  }
}

@keyframes skyFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@keyframes skyDrift {
  0% { transform: translateX(-14px); }
  50% { transform: translateX(14px); }
  100% { transform: translateX(-14px); }
}

@keyframes skyFly {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  50% { transform: translate(26px, -14px) rotate(-3deg); }
}

.cta h2 {
  color: var(--navy-900);
  margin-bottom: 0.35em;
}

.cta .eyebrow {
  color: var(--amber-700);
}

.cta__lead {
  max-width: 46ch;
  margin-bottom: var(--sp-5);
  font-size: var(--fs-md);
  color: var(--body);
}

.cta__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.6em;
}

.cta__list li {
  display: flex;
  align-items: center;
  gap: 0.55em;
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--ink-soft);
}

.cta__list svg {
  color: var(--mint);
  flex: none;
}

.form-card {
  padding: clamp(1.2rem, 2.6vw, 2rem);
  background: #fff;
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255, 255, 255, 0.9);
}

.form-card h3 {
  margin: 0 0 0.25em;
  font-size: var(--fs-lg);
}

.form-card > p {
  margin: 0 0 var(--sp-4);
  font-size: var(--fs-sm);
  color: var(--muted);
}

.form {
  display: grid;
  gap: var(--sp-3);
}

.form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-3);
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.field label {
  font-size: var(--fs-xs);
  font-weight: 700;
  color: var(--ink-soft);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 46px;
  padding: 0.6rem 0.85rem;
  border: 1.5px solid var(--line-strong);
  border-radius: var(--r-sm);
  background: #fff;
  font-size: var(--fs-base);
  color: var(--ink);
  transition: border-color var(--dur-1) var(--ease), box-shadow var(--dur-1) var(--ease);
}

.field textarea {
  min-height: 88px;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--navy-300);
  box-shadow: 0 0 0 4px rgba(25, 71, 137, 0.1);
}

.form__consent {
  display: flex;
  gap: 0.55em;
  align-items: flex-start;
  margin: 0;
  font-size: var(--fs-xs);
  color: var(--muted);
  line-height: 1.5;
}

.form__consent input {
  width: 17px;
  height: 17px;
  margin-top: 2px;
  accent-color: var(--navy);
  flex: none;
}

.form__note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4em;
  margin: 0;
  font-size: var(--fs-xs);
  color: var(--muted);
}

.form__note svg {
  color: var(--mint);
}

/* --- Thanh hành động mobile ------------------------------------------------ */
.action-bar {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 70;
  gap: 6px;
  padding: 8px 8px calc(8px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--line);
}

.action-bar a {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 8px 4px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--navy);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.01em;
  text-decoration: none;
  transition: background-color var(--dur-1) var(--ease), transform var(--dur-1) var(--ease);
}

.action-bar a:active {
  transform: scale(0.97);
}

.action-bar a svg {
  color: inherit;
}

/* Mỗi nút một màu chữ cho nổi bật */
.action-bar a:nth-child(1) {
  color: #E5342B; /* đỏ tươi — gọi ngay */
}

.action-bar a:nth-child(2) {
  color: #0068ff; /* xanh Zalo */
}

.action-bar a:nth-child(3),
.action-bar a.a--primary {
  color: var(--navy);
}

/* --- Responsive ------------------------------------------------------------ */
@media (max-width: 1080px) {
  .program-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .sign-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: var(--sp-8);
  }
  .step:nth-child(2)::before {
    display: none;
  }
  .gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: 190px;
  }
}

/* Sao đánh giá (toàn site) */
.stars {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  color: var(--amber);
}

.stars svg {
  fill: currentColor;
  stroke: none;
}

@media (max-width: 900px) {
  .reviews,
  .news-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .reviews__photo {
    aspect-ratio: 16 / 9;
  }
  .cta__grid {
    grid-template-columns: minmax(0, 1fr);
  }
  /* Thanh hành động hiện từ tablet trở xuống */
  .action-bar {
    display: flex;
  }
  body {
    padding-bottom: 92px;
  }
}

@media (max-width: 640px) {
  .sign-grid,
  .program-grid,
  .steps {
    grid-template-columns: minmax(0, 1fr);
  }
  .step::before {
    display: none;
  }
  .form__row {
    grid-template-columns: 1fr;
  }
  .gallery {
    grid-auto-rows: 160px;
  }
}

/* --- Khoá học: slider 4 thẻ ------------------------------------------------- */
.courses-slider {
  position: relative;
}

.courses-slider__viewport {
  --per-view: 4;
  --slide-gap: clamp(0.9rem, 1.8vw, 1.4rem);
  display: flex;
  gap: var(--slide-gap);
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding-block: 4px;
  scrollbar-width: none;
}

.courses-slider__viewport::-webkit-scrollbar {
  display: none;
}

.courses-slider__viewport > .program {
  flex: 0 0 calc((100% - (var(--per-view) - 1) * var(--slide-gap)) / var(--per-view));
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

.courses-slider__navs {
  position: absolute;
  left: -22px;
  right: -22px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  pointer-events: none;
}

.courses-slider__btn {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  flex: none;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
  color: var(--navy);
  box-shadow: var(--shadow-md);
  cursor: pointer;
  pointer-events: auto;
  transition: transform var(--dur-2) var(--ease), background-color var(--dur-2) var(--ease),
    color var(--dur-2) var(--ease), opacity var(--dur-2) var(--ease);
}

.courses-slider__btn:hover:not(:disabled) {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
  transform: scale(1.06);
}

.courses-slider__btn:disabled {
  opacity: 0.35;
  cursor: default;
  box-shadow: var(--shadow-xs);
}

.courses-slider__btn:focus-visible {
  outline: 3px solid var(--navy-300);
  outline-offset: 2px;
}

/* Tablet: 3 thẻ / lượt */
@media (max-width: 1080px) {
  .courses-slider__viewport {
    --per-view: 3;
  }
}

/* Nhỏ hơn: 2 thẻ / lượt, nút xuống dưới */
@media (max-width: 900px) {
  .courses-slider__viewport {
    --per-view: 2;
  }
  .courses-slider__navs {
    position: static;
    transform: none;
    justify-content: center;
    gap: var(--sp-3);
    margin-top: var(--sp-5);
  }
}

@media (max-width: 640px) {
  .courses-slider__viewport {
    --per-view: 1.15;
  }
}

/* Nút “xem thêm” canh giữa cuối section ------------------------------------- */
.section-more {
  display: flex;
  justify-content: center;
  margin: clamp(1.25rem, 2.6vw, 1.9rem) 0 0;
}
