/* ==========================================================================
   Luminar English — components.css
   Buttons, badges, headings, cards, carousel, stats, CTA, modal, forms, tabs
   ========================================================================== */

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 24px;
  border: 2px solid transparent;
  border-radius: var(--r-pill);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  white-space: nowrap;
  transition: transform 0.2s var(--ease), box-shadow 0.2s, background-color 0.2s, color 0.2s, border-color 0.2s;
}
.btn .icon {
  font-size: 18px;
  transition: transform 0.2s;
}
.btn:hover .icon-arrow {
  transform: translateX(4px);
}
.btn-primary {
  background: linear-gradient(135deg, #ff3a44 0%, var(--red-600) 100%);
  color: #fff;
  box-shadow: 0 10px 22px rgba(227, 27, 35, 0.3);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(227, 27, 35, 0.38);
}
.btn-outline {
  background: #fff;
  border-color: var(--red);
  color: var(--red);
}
.btn-outline:hover {
  background: var(--red);
  color: #fff;
}
.btn-white {
  background: #fff;
  color: var(--red);
}
.btn-white:hover {
  transform: translateY(-2px);
  box-shadow: var(--sh);
}
.btn-theme {
  background: var(--c-grad, var(--red));
  color: #fff;
  box-shadow: 0 8px 18px color-mix(in srgb, var(--c, var(--red)) 30%, transparent);
}
.btn-theme:hover {
  transform: translateY(-2px);
}
.btn-sm {
  min-height: 40px;
  padding: 8px 18px;
  font-size: 14px;
}
.btn-lg {
  min-height: 56px;
  padding: 14px 30px;
  font-size: 16px;
}
/* Full-width buttons may wrap: a nowrap label would set the min width of the card holding them */
.btn-block {
  width: 100%;
  white-space: normal;
}
@media (max-width: 599px) {
  .btn-lg {
    padding-inline: 20px;
  }
}
.btn[disabled],
.btn.is-loading {
  opacity: 0.7;
  pointer-events: none;
}
.btn.is-loading::after {
  content: "";
  width: 16px;
  height: 16px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.btn-circle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--c-grad, var(--red));
  color: #fff;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.15);
  transition: transform 0.2s;
}
.btn-circle:hover {
  transform: scale(1.1);
}
.btn-circle .icon {
  font-size: 20px;
}
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  color: var(--red);
}
.link-arrow:hover .icon {
  transform: translateX(4px);
}
.link-arrow .icon {
  transition: transform 0.2s;
}

/* ---------- Badges / pills ---------- */
.pill {
  /* inline-block (not flex): text + <strong> must wrap as one line of text on small screens */
  display: inline-block;
  padding: 7px 18px;
  line-height: 1.45;
  border: 1.5px solid var(--red);
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.85);
  font-size: 13px;
  font-weight: 600;
  color: var(--navy);
  text-transform: uppercase;
  letter-spacing: 0.2px;
}
.pill strong {
  color: var(--red);
  font-weight: 800;
  font-size: 15px;
}
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: var(--r-pill);
  background: var(--c-50, var(--red-50));
  color: var(--c, var(--red));
  font-size: 12px;
  font-weight: 700;
}
.result-badge {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 6px 12px;
  border-radius: var(--r-sm);
  background: var(--c-grad, linear-gradient(135deg, #ff3a44, var(--red-600)));
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
  box-shadow: 0 6px 14px rgba(227, 27, 35, 0.25);
}
.result-badge small {
  display: block;
  font-size: 11px;
  font-weight: 600;
  opacity: 0.95;
}
/* ---------- Section headings ---------- */
.section-head {
  max-width: 980px;
  margin: 0 auto 40px;
  text-align: center;
}
.section-head.is-left {
  margin-inline: 0;
  text-align: left;
}
.section-head .eyebrow {
  display: block;
  margin-bottom: 6px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 4px;
  color: var(--red);
  text-transform: uppercase;
}
.section-title {
  font-size: clamp(24px, 3.2vw, 36px);
  font-weight: 900;
  line-height: 1.2;
  text-transform: uppercase;
  color: var(--red);
  letter-spacing: -0.3px;
}
.section-title .alt {
  color: var(--navy);
}
.section-desc {
  margin-top: 10px;
  font-size: 16px;
  color: var(--text);
}
.section-desc strong {
  color: var(--red);
}
/* laurel decorated heading */
.laurel-title {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
}
.laurel-title .section-title {
  font-size: clamp(24px, 2.9vw, 34px);
}
/* left branch of the logo laurel (#laurel, ratio ~0.8 : 1) */
.laurel-title .laurel {
  width: 52px;
  height: 64px;
  flex: none;
  color: var(--red);
}
.laurel-title .laurel.right {
  transform: scaleX(-1);
}
.head-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
}
.head-row .section-title {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: clamp(22px, 2.5vw, 32px);
}
.head-row .link-arrow {
  flex: none;
  white-space: nowrap;
}
.stars {
  display: inline-flex;
  gap: 2px;
  color: var(--gold);
  font-size: 22px;
}
@media (max-width: 767px) {
  .section-head {
    margin-bottom: 28px;
  }
  .section-head .eyebrow {
    letter-spacing: 2px;
  }
  /* no laurels on phones: the right one sat under the floating Zalo/phone buttons */
  .laurel-title .laurel {
    display: none;
  }
  .head-row {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ---------- Feature strip (hero highlights) ---------- */
.features {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 24px;
}
.feature {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
  color: var(--ink);
}
.feature strong {
  color: var(--red);
}
.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  color: var(--red);
}
.feature-icon .icon {
  font-size: 34px;
  stroke-width: 1.7;
}
.features.is-boxed {
  position: relative;
  z-index: 2;
  gap: 16px;
}
.features.is-boxed .feature {
  padding: 20px 16px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--sh-sm);
  font-size: 14px;
}
@media (max-width: 767px) {
  .features {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ---------- Generic card ---------- */
.card {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: #fff;
  box-shadow: var(--sh-sm);
  transition: transform 0.25s var(--ease), box-shadow 0.25s;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--sh);
}

/* ---------- Level card (Tiểu học / THCS / THPT) ----------
   Photo sits under the text at full card width, so the whole classroom scene stays visible */
.level-card {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 26px 24px 24px;
  border: 1px solid color-mix(in srgb, var(--c) 18%, #fff);
  border-radius: var(--r-lg);
  background: linear-gradient(160deg, #fff 0%, var(--c-50) 100%);
  box-shadow: var(--sh-sm);
  transition: transform 0.25s var(--ease), box-shadow 0.25s;
}
.level-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--sh);
}
.level-body {
  display: flex;
  flex: 1;
  flex-direction: column;
}
.level-head {
  display: flex;
  align-items: center;
  gap: 14px;
  width: max-content;
  margin-bottom: 16px;
  white-space: nowrap;
}
.level-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  flex: none;
  border-radius: 14px;
  background: var(--c-grad);
  color: #fff;
  box-shadow: 0 8px 18px color-mix(in srgb, var(--c) 30%, transparent);
}
.level-icon .icon {
  font-size: 28px;
}
.level-name {
  font-size: 22px;
  font-weight: 900;
  color: var(--c);
  text-transform: uppercase;
  line-height: 1.1;
}
.level-grade {
  display: block;
  margin-top: 2px;
  font-size: 20px;
  font-weight: 800;
  color: var(--c);
  text-transform: none;
}
.check-list {
  display: grid;
  gap: 8px;
  margin-bottom: 20px;
  font-size: 14px;
  color: var(--ink);
}
.check-list li {
  position: relative;
  padding-left: 26px;
  line-height: 1.45;
}
.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--c, var(--red)) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center / 11px no-repeat;
}
.dot-list {
  display: grid;
  gap: 6px;
  font-size: 14px;
  color: var(--ink);
}
.dot-list li {
  position: relative;
  padding-left: 18px;
  line-height: 1.45;
}
.dot-list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 8px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--c, var(--red));
}
.level-body .btn {
  align-self: flex-start;
  margin-top: auto;
}
.level-photo {
  width: 100%;
  max-width: 440px;
  margin: 20px auto 0;
}
.level-photo img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center bottom;
  border-radius: var(--r);
  box-shadow: var(--sh-sm);
}
@media (max-width: 1199px) {
  .level-name {
    font-size: 19px;
  }
  .level-grade {
    font-size: 17px;
  }
}
/* ---------- Course strength card (Lên 6 CLC / Vào 10 chuyên / IELTS) ---------- */
.course-card {
  position: relative;
  display: flex;
  min-height: 210px;
  overflow: hidden;
  padding: 22px 22px 20px;
  border: 1px solid color-mix(in srgb, var(--c) 16%, #fff);
  border-radius: var(--r-lg);
  background: #fff;
  box-shadow: var(--sh-sm);
  transition: transform 0.25s var(--ease), box-shadow 0.25s;
}
.course-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--sh);
}
.course-card .course-body {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  width: 56%;
}
.course-ribbon {
  display: inline-block;
  align-self: flex-start;
  margin: 0 0 14px -22px;
  padding: 8px 26px 8px 22px;
  border-radius: 0 var(--r-pill) var(--r-pill) 0;
  background: var(--c-grad);
  color: #fff;
  font-size: clamp(18px, 1.9vw, 24px);
  font-weight: 900;
  line-height: 1.1;
  white-space: nowrap;
  text-transform: uppercase;
  box-shadow: 0 8px 18px color-mix(in srgb, var(--c) 28%, transparent);
}
.course-card .dot-list {
  margin-bottom: 16px;
}
.course-card .btn-circle {
  margin-top: auto;
}
.course-card .course-photo {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 42%;
  height: 92%;
}
.course-card .course-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  border-radius: 999px 999px 0 0;
  border: 4px solid #fff;
  border-bottom: 0;
}

/* ---------- Big course card (Thành tích page) ---------- */
.course-xl {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 330px;
  overflow: hidden;
  padding: 26px 24px 24px;
  border: 1px solid color-mix(in srgb, var(--c) 18%, #fff);
  border-radius: var(--r-lg);
  background: linear-gradient(160deg, #fff 0%, var(--c-50) 100%);
  box-shadow: var(--sh-sm);
}
.course-xl .xl-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 6px;
}
.course-xl .xl-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  flex: none;
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
  background: var(--c-grad);
  color: #fff;
}
.course-xl .xl-icon .icon {
  font-size: 28px;
}
.course-xl h3 {
  font-size: clamp(22px, 2.4vw, 28px);
  font-weight: 900;
  color: var(--c);
  text-transform: uppercase;
}
.course-xl .xl-sub {
  margin-bottom: 16px;
  max-width: 62%;
  font-size: 15px;
  font-weight: 600;
  color: var(--c);
}
.course-xl .xl-body {
  position: relative;
  z-index: 2;
  display: flex;
  flex: 1;
  flex-direction: column;
  width: 60%;
}
.course-xl .check-list {
  margin-bottom: 20px;
}
.course-xl .btn {
  align-self: flex-start;
  margin-top: auto;
}
.course-xl .course-photo {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 42%;
  height: 72%;
}
.course-xl .course-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  border-radius: 999px 999px 0 0;
  border: 5px solid #fff;
  border-bottom: 0;
}
@media (max-width: 479px) {
  .course-card .course-body,
  .course-xl .xl-body {
    width: 64%;
  }
  .course-card .course-photo,
  .course-xl .course-photo {
    width: 38%;
  }
}

/* ---------- Why card (icon + text) ---------- */
.why-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  height: 100%;
  padding: 22px 20px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: #fff;
  box-shadow: var(--sh-sm);
  transition: transform 0.25s var(--ease), box-shadow 0.25s;
}
.why-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--sh);
}
.why-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  flex: none;
  border-radius: 16px;
  background: var(--c-50, var(--red-50));
  color: var(--c, var(--red));
}
.why-icon .icon {
  font-size: 32px;
  stroke-width: 1.8;
}
.why-icon.is-gold {
  background: var(--gold-50);
  color: var(--gold);
}
.why-card h3 {
  margin-bottom: 6px;
  font-size: 17px;
  font-weight: 800;
  color: var(--c, var(--red));
}
.why-card p {
  font-size: 14px;
  line-height: 1.55;
}
.why-card.is-stacked {
  flex-direction: column;
  align-items: center;
  text-align: center;
}
/* ---------- Testimonial / achievement card (home carousel) ---------- */
/* no height:100% – it disables the flex stretch that keeps the carousel cards the same height */
.testi-card {
  display: flex;
  flex-direction: column;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: #fff;
  box-shadow: var(--sh-sm);
}
.testi-top {
  display: flex;
  gap: 14px;
  margin-bottom: 14px;
}
.testi-avatar {
  width: 104px;
  height: 130px;
  flex: none;
  overflow: hidden;
  border-radius: var(--r-sm);
  background: var(--red-50);
}
.testi-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}
.testi-card .school-list {
  justify-content: flex-start;
  margin-top: 0;
}
.testi-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}
.testi-name {
  font-size: 15px;
  font-weight: 800;
  color: var(--ink);
}
.testi-class {
  font-size: 13px;
  color: var(--muted);
}
.quote {
  position: relative;
  padding-left: 22px;
  font-size: 14px;
  font-style: italic;
  line-height: 1.55;
  color: var(--text);
}
.quote::before {
  content: "\201C";
  position: absolute;
  left: 0;
  top: -8px;
  font-family: Georgia, serif;
  font-size: 34px;
  font-style: normal;
  line-height: 1;
  color: var(--red);
}

/* ---------- School teacher card (home) ---------- */
.school-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: #fff;
  box-shadow: var(--sh-sm);
  text-align: center;
  transition: transform 0.25s var(--ease), box-shadow 0.25s;
}
.school-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--sh);
}
.school-media {
  position: relative;
  height: 150px;
}
.school-media .bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.school-media .avatar {
  position: absolute;
  left: 50%;
  bottom: -44px;
  width: 104px;
  height: 104px;
  border: 4px solid #fff;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: var(--sh);
  transform: translateX(-50%);
}
.school-body {
  padding: 54px 18px 22px;
}
.school-body h3 {
  margin-bottom: 6px;
  font-size: 17px;
  font-weight: 800;
  color: var(--red);
}
.school-body p {
  font-size: 14px;
  line-height: 1.55;
}

/* ---------- Teacher card (teacher page) ---------- */
/* no height:100% here: it would cancel the carousel track's stretch and leave uneven cards */
.teacher-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: #fff;
  box-shadow: var(--sh-sm);
}
.teacher-photo {
  position: relative;
  aspect-ratio: 1 / 0.82;
  overflow: hidden;
  background: linear-gradient(160deg, #ffe9ec, #fff);
}
.teacher-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}
.teacher-name {
  position: absolute;
  left: 0;
  bottom: 14px;
  padding: 7px 22px 7px 16px;
  clip-path: polygon(0 0, 100% 0, calc(100% - 12px) 50%, 100% 100%, 0 100%);
  background: linear-gradient(135deg, #ff3a44, var(--red-700));
  color: #fff;
  font-size: 16px;
  font-weight: 800;
}
.teacher-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 12px;
  padding: 16px 18px 20px;
  font-size: 13.5px;
}
.teacher-school {
  font-weight: 600;
  color: var(--ink);
}
.teacher-line {
  display: flex;
  gap: 10px;
  line-height: 1.45;
}
.teacher-line .icon {
  margin-top: 1px;
  font-size: 20px;
  color: var(--red);
}
.teacher-quote {
  padding: 10px 12px 10px 34px;
  border-radius: var(--r-sm);
  background: var(--red-50);
  color: var(--red-700);
}
.teacher-quote.quote::before {
  left: 10px;
  top: 4px;
}
.teacher-line strong {
  color: var(--ink);
}
.teacher-role {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 5px 12px;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--sh-sm);
  color: var(--red-700);
  font-size: 12px;
  font-weight: 800;
}
.teacher-name {
  max-width: calc(100% - 12px);
}
/* Long mottos are shown in full in the profile dialog. Bottom spacing is a transparent border, not
   padding, because overflow clips at the padding edge and would show part of the 5th line.
   The motto sits at the foot of the card (margin-top:auto), so mottos line up across a row */
.teacher-card .teacher-quote {
  margin-top: auto;
  display: -webkit-box;
  overflow: hidden;
  padding-bottom: 0;
  border-bottom: 10px solid transparent;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
  line-clamp: 4;
}
.teacher-more {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 6px;
  margin-top: auto;
  font-size: 14px;
  font-weight: 700;
  color: var(--red);
}
.teacher-quote + .teacher-more {
  margin-top: 0;
}
.teacher-more .icon {
  font-size: 16px;
  transition: transform 0.2s;
}
.teacher-more:hover .icon-arrow {
  transform: translateX(4px);
}
html:not(.js) .teacher-more {
  display: none;
}

/* ---------- Teacher profile dialog ---------- */
.profile-dialog {
  width: min(640px, calc(100% - 32px));
  max-height: calc(100vh - 40px);
  padding: 0;
  overflow-y: auto;
  border: 0;
  border-radius: var(--r-lg);
  background: #fff;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.3);
  color: var(--text);
}
.profile-dialog::backdrop {
  background: rgba(30, 10, 15, 0.55);
}
.profile-head {
  position: relative;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 22px 64px 22px 22px;
  background: linear-gradient(135deg, #ff3a44, var(--red-700));
  color: #fff;
}
.profile-photo {
  flex: none;
  width: 96px;
  height: 96px;
  border: 3px solid rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  background: #fff;
  object-fit: cover;
  object-position: top center;
}
.profile-role {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  opacity: 0.9;
}
.profile-head h2 {
  margin-top: 2px;
  font-size: 22px;
  font-weight: 900;
  line-height: 1.25;
  color: #fff;
}
.profile-school {
  margin-top: 4px;
  font-size: 14px;
  opacity: 0.95;
}
.profile-body {
  padding: 22px 26px 26px;
}
.profile-body .teacher-quote {
  margin-bottom: 4px;
}
.profile-body h3 {
  margin: 18px 0 10px;
  font-size: 15px;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--red);
}
.profile-body .check-list {
  margin-bottom: 0;
}
@media (max-width: 599px) {
  /* bottom sheet, like the register modal */
  .profile-dialog {
    width: 100%;
    max-width: none;
    max-height: 92vh;
    margin: auto 0 0;
    border-radius: var(--r-lg) var(--r-lg) 0 0;
  }
  .profile-head {
    gap: 14px;
    padding: 18px 56px 18px 18px;
  }
  .profile-photo {
    width: 72px;
    height: 72px;
  }
  .profile-head h2 {
    font-size: 19px;
  }
  .profile-body {
    padding: 18px 20px 24px;
  }
}

/* ---------- Assistant (trợ giảng) ---------- */
.uni-strip {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
  padding: 14px;
  margin-bottom: 26px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: #fff;
  box-shadow: var(--sh-sm);
}
.uni {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  line-height: 1.3;
  color: var(--text);
}
.uni strong {
  display: block;
  color: var(--red);
  font-weight: 700;
}
.uni-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  flex: none;
  border-radius: 50%;
  background: var(--u, var(--red));
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: -0.3px;
  box-shadow: inset 0 0 0 3px rgba(255, 255, 255, 0.5);
}
/* flex (not grid) so an incomplete last row stays centred. Shared by the assistant and student grids */
.assistant-grid,
.student-grid {
  --cols: 6;
  --gap-x: 16px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px var(--gap-x);
}
.assistant,
.student {
  flex: 0 0 calc((100% - var(--gap-x) * (var(--cols) - 1)) / var(--cols));
  min-width: 0;
  text-align: center;
}
.assistant img {
  width: 100%;
  aspect-ratio: 1;
  margin-bottom: 8px;
  border: 3px solid #fff;
  border-radius: 22px;
  object-fit: cover;
  box-shadow: var(--sh-sm);
  background: var(--red-50);
}
.assistant b {
  display: block;
  font-size: 14px;
  font-weight: 800;
  color: var(--red);
  line-height: 1.3;
}
.assistant span {
  display: block;
  margin-top: 3px;
  font-size: 12px;
  line-height: 1.4;
  color: var(--muted);
}
.assistant-role {
  display: block;
  margin-top: 2px;
  font-size: 11.5px;
  font-style: normal;
  font-weight: 700;
  color: var(--navy);
}
/* Fact chips: assistants' scores, and the schools a student got into (coloured by the programme theme) */
.assistant-facts,
.school-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px;
  margin-top: 8px;
}
.assistant-facts li,
.school-list li {
  padding: 3px 8px;
  border: 1px solid var(--c-100, var(--red-100));
  border-radius: 8px;
  background: #fff;
  color: var(--c-700, var(--red-700));
  font-size: 11.5px;
  font-weight: 600;
  line-height: 1.35;
}
@media (max-width: 1023px) {
  .uni-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .assistant-grid,
  .student-grid {
    --cols: 4;
  }
}
@media (max-width: 599px) {
  .uni-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .assistant-grid,
  .student-grid {
    --cols: 2;
    --gap-x: 12px;
    row-gap: 20px;
  }
}
/* ---------- Achievement groups (Thành tích page): one block per programme ---------- */
.ach-group {
  padding: 24px 20px 28px;
  border: 1px solid color-mix(in srgb, var(--c) 16%, #fff);
  border-radius: var(--r-lg);
  background: linear-gradient(180deg, var(--c-50) 0%, #fff 240px);
}
.ach-group + .ach-group {
  margin-top: 28px;
}
.ach-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
}
.ach-head .xl-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  flex: none;
  border-radius: 12px;
  background: var(--c-grad);
  color: #fff;
}
.ach-head .xl-icon .icon {
  font-size: 24px;
}
.ach-head h3 {
  font-size: 18px;
  font-weight: 900;
  color: var(--c);
  text-transform: uppercase;
}
.ach-head p {
  font-size: 13px;
  color: var(--muted);
}
.student-photo {
  position: relative;
  margin-bottom: 10px;
}
.student-photo img {
  width: 100%;
  aspect-ratio: 4 / 5;
  border: 3px solid #fff;
  border-radius: 18px;
  object-fit: cover;
  box-shadow: var(--sh-sm);
  background: var(--c-50);
}
.student-photo .result-badge {
  position: absolute;
  left: 50%;
  bottom: 10px;
  width: 88%;
  transform: translateX(-50%);
  font-size: 13px;
}
.student b {
  display: block;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.3;
  color: var(--c-700);
}
@media (max-width: 599px) {
  .ach-group {
    padding: 20px 14px 24px;
  }
}

/* ---------- Stats ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  padding: 28px 24px;
  border-radius: var(--r-lg);
  background: linear-gradient(135deg, #fff 0%, var(--red-50) 100%);
  border: 1px solid var(--line);
}
.stat {
  display: flex;
  align-items: center;
  gap: 14px;
}
.stat-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  flex: none;
  color: var(--red);
}
.stat-icon .icon {
  font-size: 44px;
  stroke-width: 1.7;
}
.stat-icon.is-gold {
  color: var(--gold);
}
.stat-num {
  display: block;
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 900;
  line-height: 1;
  color: var(--red);
}
.stat-num small {
  font-size: 0.55em;
  font-weight: 800;
}
.stat-label {
  display: block;
  margin-top: 4px;
  font-size: 14px;
  font-weight: 700;
  color: var(--red);
}
.stat-desc {
  display: block;
  font-size: 12.5px;
  color: var(--muted);
}
@media (max-width: 1023px) {
  .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 479px) {
  .stats {
    grid-template-columns: 1fr;
  }
}

/* ---------- CTA band ---------- */
.cta-band {
  position: relative;
  overflow: hidden;
  padding: 40px 32px;
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  background:
    radial-gradient(40% 80% at 0% 50%, rgba(255, 201, 207, 0.55), transparent 70%),
    radial-gradient(40% 80% at 100% 50%, rgba(255, 201, 207, 0.55), transparent 70%),
    #fff;
  box-shadow: var(--sh-sm);
  text-align: center;
}
.cta-band h2 {
  font-size: clamp(22px, 2.3vw, 28px);
  font-weight: 900;
  color: var(--red);
  text-transform: uppercase;
}
.cta-band p {
  margin: 10px auto 0;
  max-width: 640px;
  color: var(--navy);
}
.cta-band .hero-actions {
  justify-content: center;
}
.cta-band .cta-script {
  position: absolute;
  top: 50%;
  margin: 0;
  max-width: 210px;
  line-height: 1.3;
  color: var(--red);
  font-size: 24px;
  opacity: 0.85;
  transform: translateY(-50%) rotate(-8deg);
}
.cta-band .cta-script.left {
  left: 28px;
}
.cta-band .cta-script.right {
  right: 32px;
  transform: translateY(-50%) rotate(-6deg);
}
@media (min-width: 1024px) {
  .cta-band:has(.cta-script) {
    padding-inline: 220px;
  }
}
@media (max-width: 1023px) {
  .cta-band .cta-script {
    display: none;
  }
}
@media (max-width: 599px) {
  .cta-band {
    padding: 30px 18px;
  }
}
/* ---------- Carousel ---------- */
.carousel {
  position: relative;
  --per-view: 4;
  --gap: 20px;
}
.carousel-viewport {
  overflow: hidden;
  margin: -12px;
  padding: 12px;
}
.carousel-track {
  display: flex;
  gap: var(--gap);
  transition: transform 0.5s var(--ease);
  will-change: transform;
  touch-action: pan-y;
}
.carousel-track > * {
  flex: 0 0 calc((100% - var(--gap) * (var(--per-view) - 1)) / var(--per-view));
  min-width: 0;
}
.carousel-btn {
  position: absolute;
  top: 50%;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
  color: var(--red);
  box-shadow: var(--sh);
  transform: translateY(-50%);
  transition: background-color 0.2s, color 0.2s, opacity 0.2s;
}
.carousel-btn:hover {
  background: var(--red);
  color: #fff;
}
.carousel-btn[disabled] {
  opacity: 0.35;
  pointer-events: none;
}
.carousel-btn .icon {
  font-size: 22px;
}
.carousel-btn.prev {
  left: -22px;
}
.carousel-btn.next {
  right: -22px;
}
.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 22px;
}
.carousel-dots button {
  width: 10px;
  height: 10px;
  border-radius: var(--r-pill);
  background: var(--red-200);
  transition: width 0.25s, background-color 0.25s;
}
.carousel-dots button[aria-current="true"] {
  width: 26px;
  background: var(--red);
}
/* The -22px arrows need ~2px of page margin outside the 20px gutter; up to ~1260px (with a desktop
   scrollbar) the container has none, so pull them in */
@media (max-width: 1279px) {
  .carousel-btn.prev {
    left: -8px;
  }
  .carousel-btn.next {
    right: -8px;
  }
}
@media (max-width: 1023px) {
  .carousel {
    --per-view: 2;
  }
}
@media (max-width: 599px) {
  .carousel {
    --per-view: 1;
    --gap: 14px;
  }
  .carousel-btn {
    width: 38px;
    height: 38px;
  }
  .carousel-btn.prev {
    left: -4px;
  }
  .carousel-btn.next {
    right: -4px;
  }
}

/* ---------- Modal ---------- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s, visibility 0.25s;
}
.modal.is-open {
  opacity: 1;
  visibility: visible;
}
.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(30, 10, 15, 0.55);
}
.modal-dialog {
  position: relative;
  width: 100%;
  max-width: 560px;
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  border-radius: var(--r-lg);
  background: #fff;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.3);
  transform: translateY(20px) scale(0.98);
  transition: transform 0.3s var(--ease);
}
.modal.is-open .modal-dialog {
  transform: none;
}
.modal-head {
  position: relative;
  padding: 24px 60px 18px 28px;
  background: linear-gradient(135deg, #ff3a44, var(--red-700));
  color: #fff;
}
.modal-head h2 {
  color: #fff;
  font-size: 22px;
  font-weight: 900;
  text-transform: uppercase;
}
.modal-head p {
  margin-top: 4px;
  font-size: 14px;
  opacity: 0.95;
}
.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
}
.modal-close:hover {
  background: rgba(255, 255, 255, 0.3);
}
.modal-close .icon {
  font-size: 20px;
}
.modal-body {
  padding: 22px 28px 28px;
}
@media (max-width: 599px) {
  .modal {
    padding: 0;
    align-items: flex-end;
  }
  .modal-dialog {
    max-height: 92vh;
    border-radius: var(--r-lg) var(--r-lg) 0 0;
  }
  .modal-head,
  .modal-body {
    padding-inline: 20px;
  }
}
/* ---------- Forms ---------- */
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 16px;
}
.form-grid .full {
  grid-column: 1 / -1;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.field label {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}
.field label .req {
  color: var(--red);
}
.input,
.select,
.textarea {
  width: 100%;
  min-height: 48px;
  padding: 11px 14px;
  border: 1.5px solid #ecd3d7;
  border-radius: 12px;
  background: #fff;
  font-size: 15px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.textarea {
  min-height: 90px;
  resize: vertical;
}
.select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 40px;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e31b23' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") right 14px center / 16px no-repeat;
}
.input:focus,
.select:focus,
.textarea:focus {
  outline: none;
  border-color: var(--red);
  box-shadow: 0 0 0 4px rgba(227, 27, 35, 0.12);
}
.field.has-error .input,
.field.has-error .select,
.field.has-error .textarea {
  border-color: #dc2626;
  background-color: #fff8f8;
}
.field-error {
  display: none;
  font-size: 12.5px;
  color: #dc2626;
}
.field.has-error .field-error {
  display: block;
}
.hp-field {
  position: absolute !important;
  left: -9999px !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.form-note {
  margin-top: 12px;
  font-size: 12.5px;
  color: var(--muted);
  text-align: center;
}
.form-status {
  display: none;
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 12px;
  font-size: 14px;
  line-height: 1.5;
}
.form-status.is-error {
  display: block;
  border: 1px solid #fecaca;
  background: #fff1f1;
  color: #b91c1c;
}
.form-status.is-success {
  display: block;
  border: 1px solid #bbf7d0;
  background: #effcf3;
  color: #15803d;
}
.form-status a {
  font-weight: 700;
  text-decoration: underline;
}
.form-actions {
  margin-top: 18px;
}
@media (max-width: 599px) {
  /* minmax(0,…): a plain 1fr track grows to the longest <select> option and pushes the card off-screen */
  .form-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ---------- Tabs ---------- */
.tabs-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 32px;
}
.tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 46px;
  padding: 10px 20px;
  border: 1.5px solid color-mix(in srgb, var(--c, var(--red)) 30%, #fff);
  border-radius: var(--r-pill);
  background: #fff;
  color: var(--c, var(--red));
  font-size: 15px;
  font-weight: 700;
  transition: background-color 0.2s, color 0.2s, box-shadow 0.2s;
}
.tab-btn[aria-selected="true"] {
  border-color: transparent;
  background: var(--c-grad, var(--red));
  color: #fff;
  box-shadow: 0 8px 18px color-mix(in srgb, var(--c, var(--red)) 30%, transparent);
}
@media (max-width: 599px) {
  /* one swipeable row instead of three stacked pills */
  .tabs-nav {
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    margin-inline: calc(var(--gutter) * -1);
    padding: 4px var(--gutter) 14px;
    scrollbar-width: none;
  }
  .tabs-nav::-webkit-scrollbar {
    display: none;
  }
  .tab-btn {
    flex: none;
    padding-inline: 16px;
  }
}
.tab-panel[hidden] {
  display: none;
}
.js .tab-panel {
  animation: fadeUp 0.4s var(--ease);
}
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* ---------- FAQ ---------- */
.faq {
  display: grid;
  gap: 12px;
  max-width: 880px;
  margin-inline: auto;
}
.faq details {
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: #fff;
  box-shadow: var(--sh-sm);
}
.faq summary {
  position: relative;
  padding: 18px 56px 18px 20px;
  font-weight: 700;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: "+";
  position: absolute;
  right: 18px;
  top: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--red-50);
  color: var(--red);
  font-size: 20px;
  font-weight: 700;
  transform: translateY(-50%);
}
.faq details[open] summary::after {
  content: "\2013";
}
.faq details[open] summary {
  color: var(--red);
}
.faq-body {
  padding: 0 20px 18px;
  font-size: 15px;
}
