/* Trung học nghề 9+ — /tin-tuc/trung-hoc-nghe-9 */
.vn9-landing {
  --about-page-width: min(1280px, 100%);
  --about-page-pad: clamp(16px, 3vw, 40px);
  --vn9-navy: var(--brand-navy, #131743);
  --vn9-orange: var(--brand-orange, #ea9a22);
  --vn9-card-bg: #d9a04f;
  --vn9-card-gradient: linear-gradient(
    102deg,
    #f5e6c8 0%,
    #ecd18e 24%,
    #e2bc6e 52%,
    #d9a85c 78%,
    #cf9a55 100%
  );
  --vn9-card-label: var(--vn9-navy);
  position: relative;
  z-index: 30;
  background: #fff;
  color: var(--vn9-navy);
  font-family: var(--font-content, "Be Vietnam Pro", sans-serif);
}

/* Hero — ảnh banner full khối, chữ/nút đè bên phải */
.vn9-hero {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: var(--vn9-orange);
  color: #fff;
}

.vn9-hero__media {
  position: relative;
  display: grid;
  grid-template: minmax(0, auto) / minmax(0, 1fr);
  width: 100%;
  max-height: calc(100svh - var(--header-h, 120px));
}

.vn9-hero__banner {
  grid-area: 1 / 1;
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  vertical-align: top;
}

.vn9-hero__fallback {
  grid-area: 1 / 1;
  min-height: clamp(280px, 38vw, 420px);
  background-color: var(--vn9-orange);
  background-image: url("../../assets/images/bg-promo.svg");
  background-repeat: no-repeat;
  background-position: center bottom;
  background-size: cover;
}

.vn9-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.5rem, 4vw, 2.75rem) var(--about-page-pad);
  display: flex;
  align-items: center;
  align-self: stretch;
  justify-content: flex-end;
  justify-self: center;
  min-height: clamp(200px, 28vw, 320px);
  pointer-events: none;
}

.vn9-hero--has-banner .vn9-hero__inner {
  min-height: 0;
  align-self: stretch;
}

.vn9-hero__copy {
  max-width: min(520px, 48%);
  text-align: left;
  pointer-events: auto;
}

.vn9-hero__title {
  margin: 0 0 0.65rem;
  font-family: var(--font-title, inherit);
  font-weight: 800;
  font-size: clamp(1.65rem, 3.2vw, 2.35rem);
  line-height: 1.15;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.vn9-hero__tagline {
  margin: 0 0 1.25rem;
  font-family: var(--font-title, inherit);
  font-size: clamp(0.95rem, 1.35vw, 1.1rem);
  font-style: italic;
  line-height: 1.45;
  opacity: 0.95;
}

.vn9-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 0.75rem;
  pointer-events: auto;
}

.vn9-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: filter 0.2s ease, transform 0.2s ease;
}

.vn9-btn--navy {
  background: var(--vn9-navy);
  color: #fff;
}

.vn9-btn--navy:hover {
  filter: brightness(1.08);
  color: #fff;
  transform: translateY(-1px);
}

/* Majors grid */
.vn9-majors {
  padding: clamp(2rem, 5vw, 3rem) 0 clamp(2.5rem, 6vw, 3.5rem);
  background: #fff;
}

.vn9-majors__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;
}

.vn9-majors__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(--vn9-navy);
}

.vn9-majors__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(12px, 1.8vw, 18px);
  margin: 0;
  padding: 0;
  list-style: none;
}

.vn9-majors__item {
  min-width: 0;
}

/* 5 thẻ: hàng 2 căn giữa 2 ô */
.vn9-majors__grid:has(.vn9-majors__item:nth-child(5):last-child) .vn9-majors__item:nth-child(4) {
  grid-column: 2;
}

.vn9-majors__grid:has(.vn9-majors__item:nth-child(5):last-child) .vn9-majors__item:nth-child(5) {
  grid-column: 3;
}

.vn9-majors__item .vn9-major-card {
  display: flex;
  flex-direction: column;
  min-height: clamp(148px, 19vw, 210px);
  padding: clamp(0.9rem, 1.6vw, 1.15rem) clamp(1rem, 1.8vw, 1.25rem);
  border-radius: 14px;
  overflow: hidden;
  background-color: var(--vn9-card-bg);
  background-image:
    linear-gradient(345deg, rgba(255, 255, 255, 0.28) 0%, rgba(255, 255, 255, 0) 45%),
    var(--vn9-card-gradient);
  color: #fff;
  text-decoration: none;
  box-shadow: 0 3px 12px rgba(180, 130, 60, 0.18);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.vn9-majors__item .vn9-major-card:hover {
  color: #fff;
  filter: brightness(1.04);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(180, 130, 60, 0.22);
}

.vn9-major-card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.vn9-major-card__kicker,
.vn9-major-card__code-label {
  color: var(--vn9-card-label);
  font-family: var(--font-title, inherit);
  font-size: clamp(0.58rem, 0.75vw, 0.68rem);
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.vn9-major-card__icon {
  flex-shrink: 0;
  box-sizing: border-box;
  width: clamp(40px, 4.8vw, 50px);
  height: clamp(40px, 4.8vw, 50px);
  padding: clamp(5px, 0.6vw, 7px);
  border-radius: 50%;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(180, 130, 60, 0.12);
}

.vn9-major-card__icon img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.vn9-major-card__icon--empty {
  background: #fff;
}

.vn9-major-card__name {
  flex: 1 1 auto;
  display: block;
  margin: 0.35rem 0 0.85rem;
  padding-right: 0.25rem;
  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;
  color: #ffffff;
  text-transform: uppercase;
}

.vn9-major-card__foot {
  margin-top: auto;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.75rem;
}

.vn9-major-card__code {
  color: #ffffff;
  font-family: var(--font-title, inherit);
  font-size: clamp(0.78rem, 1vw, 0.92rem);
  font-weight: 800;
  letter-spacing: 0.03em;
  line-height: 1;
}

/* FAQ — căn giữa (cùng landing tuyển sinh) */
.vn9-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;
}

.vn9-faq .about-faq__inner.about-page-frame > * {
  grid-column: auto;
  width: 100%;
  max-width: min(920px, 100%);
}

.vn9-faq .about-faq__title {
  text-align: center;
}

.vn9-faq .about-faq__list {
  margin-inline: auto;
}

.vn9-landing .about-consult__inner.about-page-frame {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: clamp(16px, 2.5vh, 24px) clamp(20px, 3vw, 32px);
  width: var(--about-page-width);
  max-width: var(--about-page-width);
  margin-inline: auto;
  padding-inline: var(--about-page-pad);
  box-sizing: border-box;
  text-align: left;
}

@media (max-width: 991.98px) {
  .vn9-hero__inner {
    justify-content: flex-start;
    align-items: flex-end;
    padding-bottom: clamp(1rem, 3vw, 1.5rem);
  }

  .vn9-hero__copy {
    max-width: none;
  }

  .vn9-majors__grid {
    grid-template-columns: 1fr;
  }

  .vn9-majors__grid:has(.vn9-majors__item:nth-child(5):last-child) .vn9-majors__item:nth-child(4),
  .vn9-majors__grid:has(.vn9-majors__item:nth-child(5):last-child) .vn9-majors__item:nth-child(5) {
    grid-column: auto;
  }
}

@media (max-width: 575.98px) {
  .vn9-hero__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .vn9-btn {
    white-space: normal;
    text-align: center;
  }

  .vn9-landing .about-consult__inner.about-page-frame {
    flex-direction: column;
    align-items: flex-start;
  }

  .vn9-landing .about-consult__btn {
    width: 100%;
    max-width: 320px;
  }
}

@media (min-width: 576px) and (max-width: 991.98px) {
  .vn9-majors__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .vn9-majors__grid:has(.vn9-majors__item:nth-child(5):last-child) .vn9-majors__item:nth-child(4),
  .vn9-majors__grid:has(.vn9-majors__item:nth-child(5):last-child) .vn9-majors__item:nth-child(5) {
    grid-column: auto;
  }
}
