/* Khóa học ngắn hạn — /tin-tuc/khoa-hoc-ngan-han */
.stc-landing {
  --about-page-width: min(1280px, 100%);
  --about-page-pad: clamp(16px, 3vw, 40px);
  --stc-navy: var(--brand-navy, #131743);
  --stc-orange: var(--brand-orange, #ea9a22);
  --stc-card-bg: #d9a04f;
  --stc-card-gradient: linear-gradient(
    102deg,
    #f5e6c8 0%,
    #ecd18e 24%,
    #e2bc6e 52%,
    #d9a85c 78%,
    #cf9a55 100%
  );
  position: relative;
  z-index: 30;
  background: #fff;
  color: var(--stc-navy);
  font-family: var(--font-content, "Be Vietnam Pro", sans-serif);
}

/* Hero */
.stc-hero {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: var(--stc-navy);
  color: #fff;
}

.stc-hero__media {
  position: relative;
  display: grid;
  grid-template: minmax(0, auto) / minmax(0, 1fr);
  width: 100%;
  max-height: calc(100svh - var(--header-h, 120px));
}

.stc-hero__banner {
  grid-area: 1 / 1;
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  vertical-align: top;
  object-fit: cover;
}

.stc-hero__shade {
  grid-area: 1 / 1;
  z-index: 1;
  background: linear-gradient(
    90deg,
    rgba(19, 23, 67, 0.55) 0%,
    rgba(19, 23, 67, 0.35) 45%,
    rgba(19, 23, 67, 0.15) 100%
  );
  pointer-events: none;
  min-height: 100%;
}

.stc-hero__fallback {
  grid-area: 1 / 1;
  min-height: clamp(280px, 38vw, 420px);
  background-color: var(--stc-navy);
  background-image: url("../../assets/images/bg-promo.svg");
  background-repeat: no-repeat;
  background-position: center bottom;
  background-size: cover;
}

.stc-hero__inner {
  grid-area: 1 / 1;
  position: relative;
  z-index: 2;
  box-sizing: border-box;
  width: min(var(--about-page-width), 100%);
  max-width: var(--about-page-width);
  margin: 0 auto;
  padding: clamp(1.75rem, 4vw, 3rem) var(--about-page-pad);
  display: flex;
  align-items: center;
  align-self: stretch;
  min-height: clamp(220px, 32vw, 360px);
}

.stc-hero--has-banner .stc-hero__inner {
  min-height: 0;
  align-self: stretch;
}

.stc-hero__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem 2rem;
  width: 100%;
}

.stc-hero__copy {
  flex: 1 1 280px;
  min-width: 0;
  text-align: left;
}

.stc-hero__title {
  margin: 0;
  font-family: var(--font-title, inherit);
  font-weight: 800;
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  line-height: 1.12;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.stc-hero__tagline {
  margin: 0.65rem 0 0;
  font-size: clamp(0.95rem, 1.35vw, 1.1rem);
  line-height: 1.45;
  opacity: 0.92;
}

.stc-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 0.75rem;
  flex-shrink: 0;
}

.stc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0.55rem 1.15rem;
  border-radius: 999px;
  font-family: var(--font-title, inherit);
  font-size: clamp(0.68rem, 0.85vw, 0.78rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.stc-btn--outline {
  border: 2px solid #fff;
  background: transparent;
  color: #fff;
}

.stc-btn--outline:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

/* Khóa học — lưới & kích thước ô giống .vn9-majors */
.stc-courses {
  padding: clamp(2rem, 5vw, 3rem) 0 clamp(2.5rem, 6vw, 3.5rem);
  background: #fff;
}

.stc-courses__inner {
  width: var(--about-page-width);
  max-width: var(--about-page-width);
  margin-inline: auto;
  padding-inline: var(--about-page-pad);
  box-sizing: border-box;
}

.stc-courses__title {
  margin: 0 0 clamp(1.25rem, 3vw, 1.75rem);
  text-align: center;
  font-family: var(--font-title, inherit);
  font-weight: 800;
  font-size: clamp(1.15rem, 2.2vw, 1.65rem);
  line-height: 1.25;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--stc-navy);
}

.stc-courses__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(12px, 1.8vw, 18px);
  margin: 0;
  padding: 0;
  list-style: none;
}

.stc-courses__item {
  min-width: 0;
  isolation: isolate;
  border-radius: 14px;
}

.stc-courses__grid:has(.stc-courses__item:nth-child(5):last-child) .stc-courses__item:nth-child(4) {
  grid-column: 2;
}

.stc-courses__grid:has(.stc-courses__item:nth-child(5):last-child) .stc-courses__item:nth-child(5) {
  grid-column: 3;
}

.stc-courses__item .stc-course-card {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: 100%;
  min-height: clamp(148px, 19vw, 210px);
  height: 100%;
  padding: clamp(0.9rem, 1.6vw, 1.15rem) clamp(1rem, 1.8vw, 1.25rem);
  border-radius: 14px;
  box-sizing: border-box;
  border: none;
  background-color: #fff;
  background-image: none;
  background-clip: padding-box;
  color: var(--stc-navy);
  text-decoration: none;
  box-shadow:
    0 3px 12px rgba(19, 23, 67, 0.1),
    inset 0 0 0 1px rgba(19, 23, 67, 0.06);
  overflow: hidden;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  transition:
    color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.2s ease,
    filter 0.2s ease,
    background-color 0.2s ease,
    background-image 0.2s ease;
}

a.stc-course-card {
  cursor: pointer;
}

.stc-courses__item:hover .stc-course-card,
.stc-courses__item:focus-within .stc-course-card,
a.stc-course-card:hover,
a.stc-course-card:focus-visible {
  color: #fff;
  filter: brightness(1.04);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(180, 130, 60, 0.22);
  background-color: var(--stc-card-bg);
  background-image:
    linear-gradient(345deg, rgba(255, 255, 255, 0.28) 0%, rgba(255, 255, 255, 0) 45%),
    var(--stc-card-gradient);
}

.stc-course-card__kicker {
  display: block;
  align-self: flex-start;
  margin: 0 0 0.35rem;
  font-family: var(--font-title, inherit);
  font-size: clamp(0.72rem, 0.9vw, 0.82rem);
  font-weight: 600;
  line-height: 1.2;
  color: var(--stc-navy);
  transition: color 0.22s ease;
}

.stc-courses__item:hover .stc-course-card__kicker,
.stc-courses__item:focus-within .stc-course-card__kicker,
a.stc-course-card:hover .stc-course-card__kicker,
a.stc-course-card:focus-visible .stc-course-card__kicker {
  color: #fff;
}

.stc-course-card__name {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0.35rem 0 0;
  padding: 0 0.25rem;
  text-align: center;
  font-family: var(--font-title, inherit);
  font-weight: 800;
  font-size: clamp(0.95rem, 1.45vw, 1.2rem);
  line-height: 1.22;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: inherit;
}

/* FAQ — căn giữa (cùng THN 9+ / tuyển sinh) */
.stc-faq .about-faq__inner.about-page-frame {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: var(--about-page-width);
  max-width: var(--about-page-width);
  margin-inline: auto;
  padding-inline: var(--about-page-pad);
  box-sizing: border-box;
}

.stc-faq .about-faq__inner.about-page-frame > * {
  grid-column: auto;
  width: 100%;
  max-width: min(920px, 100%);
}

.stc-faq .about-faq__title {
  text-align: center;
}

.stc-faq .about-faq__list {
  margin-inline: auto;
}

@media (max-width: 991.98px) {
  .stc-hero__row {
    flex-direction: column;
    align-items: flex-start;
  }

  .stc-courses__grid {
    grid-template-columns: 1fr;
  }

  .stc-courses__grid:has(.stc-courses__item:nth-child(5):last-child) .stc-courses__item:nth-child(4),
  .stc-courses__grid:has(.stc-courses__item:nth-child(5):last-child) .stc-courses__item:nth-child(5) {
    grid-column: auto;
  }
}

@media (min-width: 576px) and (max-width: 991.98px) {
  .stc-courses__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
