/* ===== Học phí ===== */
.phero {
  background: var(--paper-2);
  color: var(--ink);
  padding-block: clamp(56px, 8vw, 90px);
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.phero::after {
  content: "";
  position: absolute;
  right: -60px;
  top: -60px;
  width: 340px;
  height: 340px;
  border: 60px solid var(--red);
  border-radius: 50%;
  opacity: 0.12;
  border-right-color: transparent;
  border-bottom-color: transparent;
}
.phero .crumb {
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: 0.1em;
  color: var(--muted);
  text-transform: uppercase;
  margin-bottom: 18px;
}
.phero .crumb a {
  color: var(--muted);
}
.phero .crumb a:hover {
  color: var(--red);
}
.phero h1 {
  color: var(--ink);
  font-size: clamp(38px, 6vw, 72px);
  letter-spacing: -0.04em;
}
.phero p {
  color: var(--muted);
  font-size: clamp(17px, 1.8vw, 20px);
  max-width: 60ch;
  margin-top: 20px;
}

/* Gói học phí — slider cuộn ngang (kéo/swipe + mũi tên .varrow) */
.plan-slider {
  position: relative;
}
.plans {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 2 * 22px) / 3);
  gap: 22px;
  align-items: stretch;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  /* chừa chỗ cho thẻ 'pop' nhấc lên + nhãn pop-tag + đổ bóng, tránh bị cắt */
  padding: 26px 2px 22px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.plans::-webkit-scrollbar {
  display: none;
}
.plans > .plan {
  scroll-snap-align: start;
}
.plan {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: relative;
}
.plan.pop {
  border-color: var(--red);
  box-shadow: var(--shadow-lg);
  transform: translateY(-8px);
}
.plan .pop-tag {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--red);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 6px 16px;
  border-radius: 999px;
  white-space: nowrap;
}
.plan .pname {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.plan .pdesc {
  font-size: 13.5px;
  color: var(--muted);
}
.plan .pprice {
  display: flex;
  align-items: baseline;
  gap: 10px;
}
.plan .pprice .now {
  font-size: 34px;
  font-weight: 800;
  color: var(--red);
  letter-spacing: -0.03em;
}
.plan .pprice .was {
  font-size: 15px;
  color: var(--faint);
  text-decoration: line-through;
}
.plan ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 11px;
  font-size: 14.5px;
  flex: 1;
}
.plan ul li {
  display: flex;
  gap: 10px;
}
.plan ul li::before {
  content: "✓";
  color: var(--red);
  font-weight: 800;
}

/* mũi tên điều hướng cho .plan-slider */
.varrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  display: grid;
  place-items: center;
  cursor: pointer;
  z-index: 6;
  font-size: 20px;
  color: var(--ink);
  transition: 0.2s;
}
.varrow:hover {
  background: var(--red);
  color: #fff;
  border-color: var(--red);
}
.varrow.prev {
  left: -24px;
}
.varrow.next {
  right: -24px;
}
.varrow.disabled {
  opacity: 0.35;
  pointer-events: none;
}
@media (max-width: 760px) {
  .varrow.prev {
    left: 8px;
  }
  .varrow.next {
    right: 8px;
  }
  .varrow {
    width: 42px;
    height: 42px;
    font-size: 17px;
  }
}

.tablewrap {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--card);
}
.tablewrap table {
  width: 100%;
  border-collapse: collapse;
  min-width: 640px;
}
.tablewrap th,
.tablewrap td {
  text-align: left;
  padding: 18px 22px;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
}
.tablewrap th {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--paper-2);
}
.tablewrap tr:last-child td {
  border-bottom: none;
}
.tablewrap td .was {
  color: var(--faint);
  text-decoration: line-through;
  font-size: 13px;
  margin-right: 8px;
}
.tablewrap td .now {
  color: var(--red);
  font-weight: 800;
}
.tablewrap tbody tr:hover {
  background: var(--paper-2);
}

.pol-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.pol {
  padding: 28px 24px;
  border-radius: var(--r-lg);
  background: var(--card);
  border: 1px solid var(--line);
}
.pol .ic {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--red);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 23px;
  margin-bottom: 16px;
}
.pol h3 {
  font-size: 18px;
  margin-bottom: 9px;
}
.pol p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.55;
}

[data-acc] {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.acc {
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--card);
  overflow: hidden;
}
.acc-q {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 20px 22px;
  cursor: pointer;
  font-weight: 700;
  font-size: 16.5px;
}
.acc-q .pm {
  flex: 0 0 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--red-tint);
  color: var(--red);
  display: grid;
  place-items: center;
  font-size: 18px;
  transition: 0.25s;
}
.acc.open .acc-q .pm {
  transform: rotate(45deg);
  background: var(--red);
  color: #fff;
}
.acc-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}
.acc.open .acc-a {
  max-height: 260px;
}
.acc-a p {
  padding: 0 22px 20px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
}
@media (max-width: 980px) {
  .pol-grid {
    grid-template-columns: 1fr;
  }
  /* slider: hiện ~1 gói/khung, hé lộ gói kế bên để biết còn kéo được */
  .plans {
    grid-auto-columns: min(340px, 84%);
  }
  .plan.pop {
    transform: none;
  }
}
