/* ==========================================================================
   home.css - Các section riêng của trang chủ
   ========================================================================== */

/* ==========================================================================
   1. HERO - kiểu A: một khối ảnh liên tục chạy full-bleed,
      nội dung chữ nằm trong .container căn giữa như phần còn lại của site.
   ========================================================================== */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 362px;
  overflow: hidden;
  background-color: var(--color-bg-alt);
}

.hero__media {
  position: absolute;
  inset: 0;
  background-image: url("../images/hero-main.jpg");
  background-size: cover;
  background-position: 72% center;
  background-repeat: no-repeat;
}

/* Chuyển tiếp mềm sang trái để chữ luôn đọc được ở mọi bề ngang màn hình.
   Không tạo cạnh dọc cứng - ảnh hero là một bố cục liền mạch. */
.hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(
    90deg,
    rgba(250, 249, 246, 0.92) 0%,
    rgba(250, 249, 246, 0.72) 22%,
    rgba(250, 249, 246, 0.18) 38%,
    rgba(250, 249, 246, 0) 50%
  );
}

.hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--space-8);
  padding-block: 24px;
}

.hero__content {
  max-width: 600px;
}

.hero__title {
  margin-bottom: 14px;
}

.hero__title span {
  display: block;
}

.hero__title-accent {
  color: var(--color-gold-ink);
}

.hero__text {
  font-size: var(--fs-lead);
  line-height: 1.55;
  max-width: 620px;
  margin-bottom: 18px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.hero__usp {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 26px;
}

.hero__usp li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--color-navy);
}

.hero__usp img {
  width: 22px;
  height: 22px;
}

/* ------------------------------------------------------- Trích dẫn hero */
.hero__quote {
  justify-self: end;
  max-width: 240px;
  color: #fff;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.45);
}

.hero__quote blockquote {
  font-size: 18px;
  font-style: italic;
  font-weight: 300;
  line-height: 1.72;
  margin-bottom: 8px;
}

.hero__quote cite {
  display: block;
  text-align: right;
  font-size: var(--fs-body);
  font-style: normal;
  font-weight: 400;
}

/* ==========================================================================
   2. DẢI SỐ LIỆU
   ========================================================================== */
.stats {
  background-color: #fff;
  padding-block: 15px;
}

.stats__list {
  display: flex;
}

.stats__item {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 14px;
  padding-left: 32px;
  min-width: 0;
}

.stats__item:first-child {
  padding-left: 24px;
}

.stats__item + .stats__item {
  border-left: 1px solid var(--color-border-soft);
}

.stats__icon {
  flex: none;
  width: 42px;
  height: 38px;
  object-fit: contain;
}

.stats__value {
  display: block;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.15;
  color: var(--color-navy);
  letter-spacing: -0.01em;
}

.stats__label {
  display: block;
  font-size: 16px;
  color: var(--color-text);
  line-height: 1.35;
}

/* ==========================================================================
   3. LỘ TRÌNH
   ========================================================================== */
.roadmap {
  background-color: var(--color-bg-alt);
  padding-block: 22px 20px;
}

.roadmap__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-8);
}

.roadmap__note {
  position: relative;
  flex: none;
  display: flex;
  align-items: center;
  gap: 10px;
  padding-top: 4px;
}

.roadmap__note img {
  width: 74px;
  height: auto;
  margin-top: 26px;
}

.roadmap__note span {
  font-family: var(--font-script);
  font-size: 34px;
  line-height: 1.1;
  font-weight: 600;
  color: var(--color-accent);
  transform: rotate(-7deg);
  max-width: 190px;
}

.roadmap__list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr) 24px) minmax(0, 1fr);
  column-gap: 10px;
  align-items: start;
  margin-top: 6px;
}

.roadmap__step {
  min-width: 0;
}

.roadmap__figure {
  display: flex;
  align-items: flex-end;
  height: 98px;
  padding-left: 34px;
  margin-bottom: 6px;
}

.roadmap__figure img {
  max-height: 100%;
  width: auto;
}

.roadmap__step-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 4px;
}

.roadmap__num {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background-color: var(--color-gold);
  color: #fff;
  font-size: var(--fs-sm);
  font-weight: 700;
}

.roadmap__step-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--color-navy);
}

.roadmap__step-text {
  font-size: 16px;
  line-height: 1.45;
  color: var(--color-text-muted);
  padding-left: 38px;
}

.roadmap__arrow {
  align-self: start;
  margin-top: 52px;
  width: 24px;
  color: var(--color-gold);
}

/* ==========================================================================
   4. KHOÁ HỌC
   ========================================================================== */
.courses {
  background-color: #fff;
  padding-block: 6px 8px;
}

.courses__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  margin-top: 10px;
}

.course-card .card__body {
  gap: 10px;
  padding: 14px 20px 20px;
}

.course-card__head {
  display: flex;
  align-items: center;
  gap: 12px;
}

.course-card__icon {
  flex: none;
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.course-card__title {
  font-size: 19px;
  font-weight: 700;
  color: var(--color-navy);
  line-height: 1.3;
}

.course-card__audience {
  display: block;
  font-size: 16px;
  font-weight: 400;
  color: var(--color-text-muted);
  line-height: 1.4;
}

.course-card__text {
  font-size: 18px;
  line-height: 1.55;
  color: var(--color-text);
  flex: 1;
}

/* ==========================================================================
   5. YOUTUBE
   ========================================================================== */
.youtube {
  background-color: var(--color-bg-alt);
  padding-block: 6px 18px;
}

.youtube__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 418px 318px;
  column-gap: 24px;
  align-items: start;
}

.youtube__intro {
  max-width: 505px;
}

.youtube__intro .section__title {
  margin-bottom: 6px;
}

.youtube__text {
  font-size: var(--fs-lead);
  line-height: 1.55;
  margin-bottom: 10px;
}

/* --------------------------------------------------------- Video chính */
.video-card {
  position: relative;
  display: block;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.video-card__poster {
  width: 100%;
  aspect-ratio: 418 / 212;
  object-fit: cover;
}

.video-card__play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 52px;
  height: 52px;
  transition: transform var(--dur) var(--ease);
}

.video-card:hover .video-card__play {
  transform: translate(-50%, -50%) scale(1.08);
}

.video-card__title {
  position: absolute;
  left: 16px;
  right: 130px;
  bottom: 14px;
  color: #fff;
  font-size: var(--fs-h3);
  font-weight: 500;
  line-height: 1.28;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.5);
}

.video-card__duration {
  position: absolute;
  right: 14px;
  bottom: 14px;
  color: #fff;
  font-size: var(--fs-sm);
  font-weight: 500;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.6);
}

/* --------------------------------------------------- Danh sách video nhỏ */
.video-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.video-list__item {
  display: grid;
  grid-template-columns: 129px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

.video-list__thumb {
  position: relative;
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.video-list__thumb img {
  width: 100%;
  aspect-ratio: 129 / 63;
  object-fit: cover;
}

.video-list__time {
  position: absolute;
  right: 6px;
  bottom: 6px;
  padding: 1px 6px;
  border-radius: 4px;
  background-color: rgba(0, 0, 0, 0.82);
  color: #fff;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.5;
}

.video-list__title {
  padding-bottom: 12px;
  border-bottom: 1px solid var(--color-border);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--color-navy);
}

.video-list__item:last-of-type .video-list__title {
  border-bottom: 0;
}

.video-list__more {
  align-self: flex-end;
  margin-top: 2px;
}

/* ==========================================================================
   6. TIN TỨC
   ========================================================================== */
.news {
  background-color: #fff;
  padding-block: 14px 26px;
}

/* Tiêu đề section này dài nên mockup dùng cỡ nhỏ hơn H2 chuẩn */
.news .section__title {
  font-size: 29px;
  margin-bottom: 6px;
}

.news .section__subtitle {
  font-size: 16px;
}

.news .section__subtitle {
  font-style: italic;
}

.news__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.23fr) minmax(0, 1fr);
  gap: 38px;
  align-items: start;
}

.news__main {
  min-width: 0;
}

.news__aside {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 11px;
  min-width: 0;
}

.news__aside .news-list {
  width: 100%;
}

/* ------------------------------------------------------ Bài nổi bật */
.news-featured {
  display: grid;
  grid-template-columns: minmax(0, 357fr) minmax(0, 321fr);
  gap: 27px;
  align-items: start;
  margin-top: 12px;
}

.news-featured__media {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.news-featured__media img {
  width: 100%;
  aspect-ratio: 374 / 288;
  object-fit: cover;
}

.news-featured__body {
  padding-top: 2px;
}

.news-featured .badge {
  margin-bottom: 12px;
}

.news-featured__date {
  display: block;
  font-size: var(--fs-xs);
  color: var(--color-text-soft);
  margin-bottom: 8px;
}

.news-featured__title {
  font-size: 21px;
  line-height: 1.32;
  margin-bottom: 10px;
}

.news-featured__excerpt {
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--color-text);
  margin-bottom: 16px;
}

/* --------------------------------------------------- Danh sách tin */
.news-list {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.news-list__item {
  display: grid;
  grid-template-columns: 174px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.news-list__thumb {
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.news-list__thumb img {
  width: 100%;
  aspect-ratio: 174 / 74;
  object-fit: cover;
}

.news-list__date {
  display: block;
  font-size: 12.5px;
  color: var(--color-text-soft);
  margin-bottom: 2px;
}

.news-list__title {
  font-size: 13px;
  font-weight: 700;
  line-height: 1.34;
  color: var(--color-navy);
  margin-bottom: 3px;
}

.news-list__text {
  font-size: 13px;
  line-height: 1.45;
  color: var(--color-text-muted);
}

/* ==========================================================================
   7. DẢI CTA
   ========================================================================== */
.cta-band {
  position: relative;
  min-height: 102px;
  box-sizing: border-box;
  background-color: var(--color-ink);
  background-image: radial-gradient(
    120% 180% at 22% 50%,
    var(--color-ink-2) 0%,
    var(--color-ink) 62%
  );
  display: flex;
  align-items: center;
  overflow: hidden;
  color: var(--color-on-dark);
  padding-block: 7px;
}

.cta-band__decor {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 332px;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.cta-band__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--space-7);
}

.cta-band__content {
  text-align: center;
}

.cta-band__title {
  font-size: 22.5px;
  line-height: 1.24;
  color: #fff;
  margin-bottom: 2px;
}

.cta-band__text {
  font-size: 13.5px;
  color: var(--color-on-dark-muted);
  margin-bottom: 8px;
}

.cta-band__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.cta-band__actions .btn {
  min-height: 30px;
  padding: 0 18px;
  font-size: 14px;
}

.cta-band__features {
  display: flex;
  align-items: stretch;
  gap: 0;
}

.cta-band__feature {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 5px;
  padding: 0 22px;
  text-align: center;
  font-size: 13px;
  color: var(--color-on-dark);
}

.cta-band__feature + .cta-band__feature {
  border-left: 1px solid var(--color-border-dark);
}

.cta-band__feature img {
  width: 27px;
  height: 27px;
}
