/* ===== V1 — Bold Editorial (light) — homepage ===== */
.hero {
  position: relative;
  overflow: hidden;
  padding-top: clamp(40px, 6vw, 72px);
  padding-bottom: clamp(28px, 3.5vw, 44px);
}
/* Giảm khoảng trống lớn giữa hero và section ngay sau nó (mặc định .section pt tới 120px). */
.hero + .section {
  padding-top: clamp(28px, 3.5vw, 48px);
}
.hero-head {
  margin-bottom: clamp(24px, 3.5vw, 44px);
}
.badge-line {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.hero h1 {
  font-size: clamp(30px, 5vw, 60px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 0.97;
  margin-bottom: 0;
  white-space: nowrap;
}
.hero h1 .red {
  color: var(--red);
}
.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: clamp(22px, 3vw, 32px);
}
.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(20px, 3vw, 40px);
  border-top: 1px solid var(--line);
  margin-top: clamp(28px, 4vw, 48px);
  padding-top: 28px;
}
.hero-stats .n {
  font-size: clamp(28px, 3.4vw, 42px);
}
/* hero visual */
.hero-r {
  position: relative;
}
.hero-photo {
  border-radius: var(--r-xl);
  overflow: hidden;
  aspect-ratio: 16/7;
  box-shadow: var(--shadow-lg);
  position: relative;
}
.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 32%;
}
.hero-r .accent {
  position: absolute;
  inset: auto auto -22px -22px;
  width: 140px;
  height: 140px;
  background: var(--red);
  border-radius: 24px;
  z-index: -1;
}
.hero-r .arc {
  position: absolute;
  top: -26px;
  right: -12px;
  width: 120px;
  height: 120px;
  border: 14px solid var(--red);
  border-right-color: transparent;
  border-bottom-color: transparent;
  border-radius: 50%;
  transform: rotate(20deg);
  z-index: -1;
  opacity: 0.85;
}
.floatcard {
  position: absolute;
  left: -26px;
  bottom: 54px;
  background: #fff;
  border-radius: 18px;
  box-shadow: var(--shadow-lg);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  border: 1px solid var(--line);
}
.floatcard .ic {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--red-tint);
  display: grid;
  place-items: center;
  color: var(--red);
  font-weight: 800;
  font-family: var(--mono);
}
.floatcard .t b {
  display: block;
  font-size: 18px;
  letter-spacing: -0.02em;
}
.floatcard .t span {
  font-size: 12.5px;
  color: var(--muted);
}
.floatcard.top {
  top: 34px;
  bottom: auto;
  left: auto;
  right: -22px;
}

/* why grid */
.why-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 30px;
  margin-bottom: 50px;
  flex-wrap: wrap;
}
.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.why {
  padding: 30px 26px;
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background: var(--card);
  position: relative;
  overflow: hidden;
  transition:
    transform 0.22s,
    box-shadow 0.25s,
    border-color 0.25s;
}
.why .num {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 700;
  color: var(--red);
  letter-spacing: 0.1em;
}
.why .ic {
  font-size: 30px;
  margin: 16px 0 14px;
  line-height: 1;
}
.why h3 {
  font-size: 19px;
  margin-bottom: 10px;
  letter-spacing: -0.02em;
}
.why p {
  font-size: 14.5px;
  color: var(--muted);
  line-height: 1.55;
  margin-bottom: 14px;
}
.why .more {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--red);
}
.why:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--red);
}

/* courses */
.sec-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 44px;
  flex-wrap: wrap;
}
.courses-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

/* Khóa học nổi bật — slider 8 khóa (cuộn ngang, snap; mũi tên dùng chung .varrow) */
.course-slider {
  position: relative;
}
.course-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 3 * 20px) / 4);
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  /* chừa chỗ cho hiệu ứng nhấc thẻ + đổ bóng khi hover, tránh bị cắt */
  padding: 8px 2px 16px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.course-track::-webkit-scrollbar {
  display: none;
}
.course-track > .course {
  scroll-snap-align: start;
}
.varrow.disabled {
  opacity: 0.35;
  pointer-events: none;
}
@media (max-width: 1080px) {
  .course-track {
    grid-auto-columns: calc((100% - 20px) / 2);
  }
}
@media (max-width: 680px) {
  .course-track {
    grid-auto-columns: 86%;
  }
}

/* environment tabs */
.env {
  background: var(--card);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.env-inner {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 0;
}
.env-photo {
  position: relative;
  min-height: 440px;
  background: var(--paper-2);
}
.env-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.5s;
}
.env-photo img.active {
  opacity: 1;
}
.env-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    120deg,
    rgba(220, 0, 0, 0.18),
    transparent 60%
  );
}
.env-body {
  padding: clamp(32px, 4vw, 56px);
}
.env-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
}
.env-tabs button {
  background: var(--paper-2);
  border: 1px solid var(--line);
  color: var(--muted);
  padding: 9px 16px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: 0.2s;
  font-family: inherit;
}
.env-tabs button:hover {
  border-color: var(--ink);
  color: var(--ink);
}
.env-tabs button.active {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
}
.env-panel {
  display: none;
  animation: fade 0.4s;
}
.env-panel.active {
  display: block;
}
@keyframes fade {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.env-panel h3 {
  font-size: clamp(24px, 2.6vw, 32px);
  margin-bottom: 20px;
  color: var(--ink);
}
.env-panel ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.env-panel li {
  display: flex;
  gap: 14px;
  font-size: 15.5px;
  color: var(--muted);
  line-height: 1.5;
}
.env-panel li b {
  color: var(--ink);
}
.env-panel li::before {
  content: "";
  flex: 0 0 22px;
  height: 22px;
  border-radius: 6px;
  margin-top: 2px;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='white' d='M9 16.2l-3.5-3.5L4 14.2l5 5 11-11-1.5-1.4z'/%3E%3C/svg%3E")
    center/16px no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='white' d='M9 16.2l-3.5-3.5L4 14.2l5 5 11-11-1.5-1.4z'/%3E%3C/svg%3E")
    center/16px no-repeat;
  background: var(--red);
}

/* commitments */
.commit-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.commit {
  padding: 28px 24px;
  border-radius: var(--r-lg);
  background: var(--card);
  border: 1px solid var(--line);
}
.commit .ic {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--red);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 24px;
  margin-bottom: 18px;
}
.commit h3 {
  font-size: 18px;
  margin-bottom: 9px;
}
.commit p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.55;
}

/* faculty */
.fac-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.fac {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--paper-2);
  aspect-ratio: 3/3.7;
}
.fac img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.5s;
}
.fac:hover img {
  transform: scale(1.05);
}
.fac .info {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 46px 20px 18px;
  color: #fff;
  background: linear-gradient(
    to top,
    rgba(22, 17, 15, 0.92),
    transparent
  );
}
.fac .info b {
  display: block;
  font-size: 18px;
  letter-spacing: -0.02em;
}
.fac .info span {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.8);
}
.fac .yrs {
  position: absolute;
  top: 14px;
  left: 14px;
}

/* testimonials */
.tst-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.tst {
  padding: 28px;
  border-radius: var(--r-lg);
  background: var(--card);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.tst .stars {
  color: var(--red);
  letter-spacing: 3px;
  font-size: 15px;
}
.tst p {
  font-size: 15.5px;
  line-height: 1.6;
}
.tst .who {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: auto;
}
.tst .av {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 15px;
}
.tst .who b {
  display: block;
  font-size: 15px;
}
.tst .who span {
  font-size: 13px;
  color: var(--muted);
}

/* CTA band kèm form đăng ký */
.ctaband--form {
  display: grid;
  grid-template-columns: 1fr 0.95fr;
  gap: clamp(28px, 4vw, 52px);
  align-items: center;
}
.ctaband--form .ct {
  margin: 0;
}
.ctaband--form .actions {
  margin-top: 24px;
}
@media (max-width: 900px) {
  .ctaband--form {
    grid-template-columns: 1fr;
  }
}

/* news */
.news-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 20px;
}
.news-feat {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  min-height: 380px;
  color: #fff;
  display: flex;
  align-items: flex-end;
}
.news-feat img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.news-feat::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(22, 17, 15, 0.92),
    rgba(22, 17, 15, 0.1)
  );
}
.news-feat .bd {
  position: relative;
  z-index: 2;
  padding: 30px;
}
.news-feat h3 {
  font-size: 24px;
  margin: 12px 0 8px;
  color: #fff;
}
.news-side {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.news-item {
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 20px;
  transition: 0.2s;
  background: var(--card);
}
.news-item:hover {
  border-color: var(--red);
  transform: translateY(-3px);
}
.news-item .date {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--red);
  font-weight: 700;
}
.news-item h4 {
  font-size: 16px;
  margin-top: 8px;
  letter-spacing: -0.01em;
  line-height: 1.3;
}
.news-side .news-item {
  flex: 1;
}

@media (max-width: 1080px) {
  .why-grid,
  .courses-grid,
  .commit-grid,
  .fac-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .tst-grid,
  .news-grid {
    grid-template-columns: 1fr;
  }
  .env-inner {
    grid-template-columns: 1fr;
  }
  .env-photo {
    min-height: 320px;
  }
}
@media (max-width: 760px) {
  .hero-body {
    grid-template-columns: 1fr;
  }
  .hero h1 {
    white-space: normal;
  }
  .hero-stats {
    grid-template-columns: repeat(2, 1fr);
  }
  .hero-r {
    order: -1;
  }
  .why-grid,
  .courses-grid,
  .commit-grid,
  .fac-grid {
    grid-template-columns: 1fr;
  }
  .news-grid {
    grid-template-columns: 1fr;
  }
}

/* ===== video slider (Trang chủ) — dùng chung markup/JS với trang Tin tức ===== */
.vsec {
  background: var(--paper-2);
}
.vstage {
  position: relative;
  max-width: 980px;
  margin: 0 auto;
}
.vframe {
  position: relative;
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: #000;
  aspect-ratio: 16/9;
}
.vslide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.45s ease;
}
.vslide.active {
  opacity: 1;
  visibility: visible;
}
.vslide iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}
.ytfacade {
  position: absolute;
  inset: 0;
  cursor: pointer;
  overflow: hidden;
}
.ytfacade img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}
.ytfacade:hover img {
  transform: scale(1.04);
}
.ytfacade::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(22, 17, 15, 0.82), rgba(22, 17, 15, 0.05) 55%);
}
.ytplay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background: var(--red);
  display: grid;
  place-items: center;
  z-index: 3;
  box-shadow: 0 14px 40px -6px rgba(220, 0, 0, 0.7);
  transition: transform 0.2s;
}
.ytfacade:hover .ytplay {
  transform: translate(-50%, -50%) scale(1.08);
}
.ytplay::before {
  content: "";
  border-style: solid;
  border-width: 13px 0 13px 22px;
  border-color: transparent transparent transparent #fff;
  margin-left: 5px;
}
.ytcap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 26px 28px;
  z-index: 3;
  color: #fff;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
}
.ytcap b {
  font-size: clamp(17px, 2vw, 22px);
  font-weight: 800;
  letter-spacing: -0.02em;
  max-width: 30ch;
}
.ytcap .ch {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.8);
  text-transform: uppercase;
  white-space: nowrap;
}
.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;
}
.vdots {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-top: 24px;
}
.vdots button {
  width: 32px;
  height: 6px;
  border-radius: 999px;
  border: 0;
  background: var(--line);
  cursor: pointer;
  transition: 0.2s;
  padding: 0;
}
.vdots button.active {
  background: var(--red);
  width: 46px;
}
@media (max-width: 760px) {
  .varrow.prev {
    left: 8px;
  }
  .varrow.next {
    right: 8px;
  }
  .varrow {
    width: 42px;
    height: 42px;
    font-size: 17px;
  }
  .ytplay {
    width: 66px;
    height: 66px;
  }
}
