/* =========================================================
   TƯ HOÀNG ĐẠT | PREMIUM INSTITUTIONAL DESIGN SYSTEM
   ========================================================= */

/* --- FONTS --- */
@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/PlayfairDisplay-Regular.ttf') format('truetype');
}
@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/PlayfairDisplay-SemiBold.ttf') format('truetype');
}
@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/PlayfairDisplay-Bold.ttf') format('truetype');
}

/* --- ROOT VARIABLES --- */
:root {
  /* Colors */
  --thd-green-dark: #0A3D2E;
  --thd-green: #145A46;
  --thd-green-light: #227961;
  --thd-gold: #D4AF37;
  --thd-gold-light: #E8CA65;
  --text-dark: #2C3531;
  --text-light: #F4F7F6;
  --bg-white: #FFFFFF;
  --bg-off-white: #F9FAF9;
  --bg-gray: #EAECEA;

  /* Typography */
  --font-heading: 'Playfair Display', serif;
  --font-body: 'Inter', 'Segoe UI', sans-serif;

  /* Spacing */
  --sp-xs: 0.5rem;
  --sp-sm: 1rem;
  --sp-md: 2rem;
  --sp-lg: 4rem;
  --sp-xl: 8rem;

  /* Other */
  --transition: all 0.3s ease;
  --max-width: 1440px;
}

/* --- RESET & GLOBAL --- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  font-family: var(--font-body);
  color: var(--text-dark);
  background-color: var(--bg-white);
  line-height: 1.6;
  font-size: 16px;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

[id] {
  scroll-margin-top: 114px; /* 82px header + 32px offset */
}

ul {
  list-style: none;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--sp-md);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  line-height: 1.2;
  font-weight: 400;
  color: var(--thd-green-dark);
}

h1 { font-size: clamp(3rem, 5vw, 4.5rem); }
h2 { font-size: clamp(2.2rem, 4vw, 3.5rem); margin-bottom: var(--sp-md); }
h3 { font-size: 1.8rem; margin-bottom: var(--sp-sm); }
h4 { font-size: 1.4rem; }

p {
  margin-bottom: var(--sp-sm);
  font-size: 1.1rem;
}

.text-gold { color: var(--thd-gold); }
.text-white { color: var(--text-light); }
.bg-green { background-color: var(--thd-green-dark); color: var(--text-light); }
.bg-green h1, .bg-green h2, .bg-green h3, .bg-green h4 { color: var(--text-light); }

/* Buttons */
.btn {
  display: inline-block;
  padding: 1rem 2rem;
  font-family: var(--font-body);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  background-color: var(--thd-gold);
  color: var(--thd-green-dark);
  border: 2px solid var(--thd-gold);
  cursor: pointer;
  transition: var(--transition);
  font-size: 0.95rem;
}

.btn:hover {
  background-color: transparent;
  color: var(--thd-gold);
}

.btn-secondary {
  background-color: transparent;
  border-color: var(--thd-green-dark);
  color: var(--thd-green-dark);
}

.btn-secondary:hover {
  background-color: var(--thd-green-dark);
  color: var(--text-light);
}

.bg-green .btn-secondary {
  border-color: var(--text-light);
  color: var(--text-light);
}
.bg-green .btn-secondary:hover {
  background-color: var(--text-light);
  color: var(--thd-green-dark);
}

/* --- HEADER & NAVIGATION --- */
.site-header {
  position: absolute;
  width: 100%;
  top: 0;
  z-index: 1000;
  background: linear-gradient(to bottom, rgba(10,61,46,0.85) 0%, rgba(10,61,46,0.4) 50%, rgba(10,61,46,0) 100%);
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.hero-brand {
  width: 300px;
  height: 120px;
  background: #ffffff;
  margin-left: -8px;
  border: none;
  border-radius: 0;
  box-shadow: none;
  flex-shrink: 0;
  z-index: 1001;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.header-logo-group {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  text-decoration: none;
  padding: 0 15px;
}

.header-logo-combined {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: width 0.3s ease, height 0.3s ease;
}

.main-nav {
  display: block;
  margin-top: 3.5rem;
}

.nav-list {
  display: flex;
  gap: 3rem;
  align-items: center;
}

.nav-link {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.15rem;
  text-transform: none;
  letter-spacing: 0.5px;
  color: var(--text-light);
  padding: 0.5rem 0;
  position: relative;
  opacity: 0.95;
  text-shadow: 0 2px 4px rgba(0,0,0,0.4);
}

.nav-link:hover {
  opacity: 1;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--thd-gold);
  transition: width 0.3s ease;
}

.nav-link:hover::after {
  width: 100%;
}

/* Mega Menu */
.nav-item {
  padding-bottom: 1.5rem; /* Bridges the gap for mega menu */
}

.has-mega {
  position: relative;
}

.mega-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  width: 720px;
  background-color: #ffffff;
  color: var(--text-dark);
  padding: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 200ms ease, transform 200ms ease;
  transform: translateX(-50%) translateY(15px);
  border-top: 2px solid var(--thd-gold);
  box-shadow: 0 15px 35px rgba(0,0,0,0.15);
  border-radius: 0 0 8px 8px;
  overflow: hidden;
}

.has-mega:hover .mega-menu,
.has-mega:focus-within .mega-menu,
.has-mega.is-open .mega-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.has-mega.force-close .mega-menu {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

.mega-menu-right {
  left: auto;
  right: 0;
  transform: translateY(15px);
}

.has-mega:hover .mega-menu.mega-menu-right,
.has-mega:focus-within .mega-menu.mega-menu-right,
.has-mega.is-open .mega-menu.mega-menu-right {
  transform: translateY(0);
}

.mega-container.mega-2col {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 0;
  padding: 0;
}

.mega-visual {
  background-size: cover;
  background-position: center;
  height: 100%;
  min-height: 100%;
  background-color: var(--thd-green-dark);
}

.mega-links {
  padding: var(--sp-md) 2.5rem;
  column-count: 2;
  column-gap: 24px;
  min-width: 0;
}

.mega-link {
  display: inline-block;
  width: 100%;
  break-inside: avoid;
  color: var(--thd-green-dark);
  font-size: 1.1rem;
  font-family: var(--font-body);
  font-weight: 500;
  margin-bottom: 0;
  padding: 0.85rem 0;
  border-bottom: 1px solid rgba(10, 61, 46, 0.08);
  opacity: 0.9;
  transition: color 0.2s ease, transform 0.2s ease;
  white-space: nowrap;
}

.mega-link:last-child {
  border-bottom: none;
}

.mega-link:hover {
  opacity: 1;
  color: var(--thd-green);
  transform: translateX(5px);
}

/* --- STICKY HEADER --- */
.site-header {
  transition: background-color 0.3s ease, padding 0.3s ease, box-shadow 0.3s ease;
}

.site-header.is-sticky {
  position: fixed;
  background-color: var(--thd-green);
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
  animation: slideDown 0.3s ease;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

@keyframes slideDown {
  from { transform: translateY(-100%); }
  to { transform: translateY(0); }
}

.site-header.is-sticky .hero-brand {
  width: 230px;
  height: 81px;
  transition: width 0.3s ease, height 0.3s ease;
}

.site-header.is-sticky .header-logo-group {
  padding: 0 10px;
}

.site-header.is-sticky .header-logo-combined {
  width: 100%;
  height: 100%;
}

.site-header.is-sticky .main-nav {
  margin-top: 0;
  height: 81px;
  display: flex;
  align-items: center;
}

.site-header.is-sticky .nav-item {
  padding-bottom: 0;
  display: flex;
  align-items: center;
  height: 100%;
}

.site-header.is-sticky .nav-link {
  padding: 1.5rem 0;
}

.site-header.is-sticky .mega-menu {
  top: 82px;
}

/* Mobile Menu Button */
.mobile-menu-btn {
  display: block;
  background: none;
  border: none;
  font-size: 2rem;
  color: var(--thd-green-dark);
  cursor: pointer;
}

/* Mobile Drawer */
.mobile-drawer {
  position: fixed;
  top: 0;
  right: -100%;
  width: 100%;
  max-width: 400px;
  height: 100vh;
  background-color: var(--thd-green-dark);
  z-index: 2000;
  transition: var(--transition);
  padding: var(--sp-lg) var(--sp-md);
  overflow-y: auto;
}

.mobile-drawer.active {
  right: 0;
}

.drawer-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  color: var(--text-light);
  font-size: 3rem;
  cursor: pointer;
  line-height: 1;
}

.mobile-nav-list {
  margin-top: var(--sp-md);
}

.mobile-nav-link {
  display: block;
  color: var(--text-light);
  font-size: 1.5rem;
  font-family: var(--font-heading);
  padding: 1rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.expand-btn {
  background: none;
  border: none;
  color: var(--thd-gold);
  font-size: 1.5rem;
  cursor: pointer;
}

.mobile-sub-nav {
  display: none;
  padding-left: 1.5rem;
  background-color: rgba(0,0,0,0.1);
}

.mobile-sub-nav.active {
  display: block;
}

.mobile-sub-link {
  display: block;
  color: var(--text-light);
  font-size: 1.1rem;
  padding: 0.8rem 0;
  opacity: 0.8;
}

/* --- HERO SECTION (EDITORIAL) --- */
.hero-editorial {
  position: relative;
  width: 100%;
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  padding-bottom: 6rem;
  overflow: hidden;
  background-color: var(--thd-green-dark);
}

/* --- HERO CAROUSEL --- */
.hero-carousel-track {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.8s ease-in-out, visibility 0.8s ease-in-out;
  display: flex;
  align-items: flex-end;
  padding-bottom: 6rem;
  z-index: 0;
}

.hero-slide.active {
  opacity: 1;
  visibility: visible;
  z-index: 1;
}

@media (prefers-reduced-motion: no-preference) {
  .hero-slide .hero-image-wrapper img {
    transform: scale(1.05);
    transition: transform 7s ease-out;
  }
  
  .hero-slide.active .hero-image-wrapper img {
    transform: scale(1);
  }
}

.hero-carousel-controls {
  position: relative;
  z-index: 10;
  width: 100%;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 1.5rem;
}

.hero-carousel-buttons {
  display: flex;
  gap: 1rem;
}

.hero-carousel-btn {
  background: rgba(10, 61, 46, 0.6);
  border: 1px solid var(--thd-gold);
  color: var(--thd-gold);
  border-radius: 50%;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.hero-carousel-btn:hover,
.hero-carousel-btn:focus-visible {
  background: var(--thd-gold);
  color: var(--thd-green-dark);
  outline: none;
}

.hero-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.hero-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  z-index: 0;
}

.hero-overlay-sophisticated {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(10,61,46,0.5) 0%, rgba(0,0,0,0) 30%, rgba(0,0,0,0.2) 100%);
  z-index: 1;
}

.hero-content-editorial {
  position: relative;
  z-index: 2;
  width: 100%;
  display: flex;
  justify-content: flex-end;
}

.hero-message-panel {
  background-color: rgba(212, 175, 55, 0.35); /* THD Gold with increased transparency */
  padding: 4rem 4rem;
  max-width: 600px;
  border-top-left-radius: 60px;
  box-shadow: 0 30px 60px rgba(0,0,0,0.25);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.hero-message-panel .hero-title {
  color: #FFFFFF;
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  text-shadow: 0 2px 4px rgba(10, 61, 46, 0.22);
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.hero-message-panel .hero-subtitle {
  color: var(--thd-green-dark);
  font-family: var(--font-heading);
  font-size: 1.5rem;
  text-transform: none;
  letter-spacing: 1px;
  margin-bottom: 2.5rem;
  font-style: italic;
}

.hero-message-panel .btn {
  background-color: var(--thd-green-dark);
  color: var(--thd-gold);
  border-color: var(--thd-green-dark);
  padding: 1.2rem 2.5rem;
  font-size: 1rem;
}

.hero-message-panel .btn:hover {
  background-color: var(--bg-white);
  color: var(--thd-green-dark);
  border-color: var(--bg-white);
}

/* --- EDITORIAL SECTIONS --- */
.section {
  padding: var(--sp-xl) 0;
}

.section-narrow {
  max-width: 900px;
  margin: 0 auto;
}

.section-title {
  text-align: center;
}

.section-title.left {
  text-align: left;
}

/* --- SECTION 02: TƯ HOÀNG ĐẠT INTRODUCTION --- */
.thd-intro-section {
  background-color: var(--bg-white);
  padding: var(--sp-xl) 0;
  display: flex;
  justify-content: center;
  align-items: center;
}

.thd-intro-composition {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  position: relative;
}

.intro-image-field {
  width: 100%;
  position: relative;
  z-index: 1;
}

.intro-photo {
  width: 100%;
  height: 50vh;
  object-fit: cover;
}

.intro-text-field {
  background-color: var(--bg-white);
  padding: 3rem;
  position: relative;
  z-index: 2;
  margin-top: -3rem;
  width: 90%;
  margin-left: auto;
  margin-right: auto;
  box-shadow: 0 10px 40px rgba(0,0,0,0.05);
}

.intro-marker {
  display: inline-block;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--thd-gold);
  margin-bottom: 1rem;
  font-weight: 600;
}

.intro-heading {
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  color: var(--thd-green-dark);
  margin-bottom: 0.5rem;
  line-height: 1.1;
}

.intro-brand-line {
  font-family: var(--font-heading);
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  font-style: italic;
  color: var(--thd-green-dark);
  margin-bottom: 1.5rem;
}

.intro-body {
  font-size: 1.15rem;
  line-height: 1.7;
  color: #444;
  margin-bottom: 2rem;
  max-width: 600px;
}

.intro-cta {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-body);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--thd-green-dark);
  font-size: 0.95rem;
  transition: color 0.3s ease;
}

.intro-cta:hover {
  color: var(--thd-gold);
}

.intro-cta-arrow {
  margin-left: 0.5rem;
  font-family: monospace;
  font-size: 1.2rem;
  color: var(--thd-gold);
  transition: transform 0.3s ease;
}

.intro-cta:hover .intro-cta-arrow {
  transform: translateX(4px);
}

/* --- SECTION 03: PROGRAM SHOWCASE --- */
.showcase-section {
  padding: 6rem 0 8rem 0;
  background-color: var(--bg-white);
  overflow: hidden;
}

.showcase-header {
  text-align: left;
  margin-bottom: 3rem;
  max-width: 800px;
}

.showcase-marker {
  display: inline-block;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--thd-gold);
  margin-bottom: 1rem;
  font-weight: 600;
}

.showcase-title {
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  color: var(--thd-green-dark);
  margin-bottom: 0;
  line-height: 1.1;
}

.showcase-selector {
  display: flex;
  flex-wrap: wrap;
  gap: 2.5rem;
  margin-bottom: 4rem;
  border-bottom: 1px solid rgba(10, 61, 46, 0.1);
  padding-bottom: 0;
}

.showcase-tab {
  background: none;
  border: none;
  font-family: var(--font-body);
  font-size: 1.15rem;
  font-weight: 600;
  color: rgba(10, 61, 46, 0.5);
  cursor: pointer;
  padding: 0 0 1rem 0;
  position: relative;
  transition: color 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.showcase-tab:hover,
.showcase-tab:focus-visible {
  color: var(--thd-green-dark);
  outline: none;
}

.showcase-tab.active {
  color: var(--thd-green-dark);
}

.showcase-tab::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--thd-gold);
  transition: width 0.3s ease;
}

.showcase-tab.active::after {
  width: 100%;
}

.showcase-panels-container {
  position: relative;
  width: 100%;
}

.showcase-panel {
  display: none;
  width: 100%;
  animation: fade-in 0.4s ease forwards;
}

.showcase-panel.active {
  display: block;
}

@keyframes fade-in {
  from { opacity: 0; transform: translateY(15px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .showcase-panel {
    animation: none;
  }
}

.showcase-feature {
  display: flex;
  align-items: center;
  position: relative;
}

.showcase-image-col {
  width: 68%;
  height: 600px;
  position: relative;
}

.showcase-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.showcase-content-col {
  width: 40%;
  margin-left: -8%;
  position: relative;
  z-index: 2;
}

.showcase-info {
  background-color: var(--thd-green-dark);
  padding: 4rem 3.5rem;
  color: var(--text-light);
  box-shadow: 0 15px 45px rgba(0,0,0,0.15);
}

.showcase-name {
  font-size: clamp(2rem, 3.5vw, 3rem);
  color: var(--text-light);
  margin-bottom: 1.5rem;
  line-height: 1.1;
  font-family: var(--font-heading);
}

.showcase-desc {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.9);
  line-height: 1.6;
  margin-bottom: 2.5rem;
  max-width: 420px;
}

.showcase-cta {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-body);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--thd-gold);
  font-size: 0.95rem;
  transition: color 0.3s ease;
}

.showcase-cta:hover {
  color: var(--text-light);
}

.showcase-cta .cta-arrow {
  margin-left: 0.5rem;
  font-family: monospace;
  font-size: 1.2rem;
  transition: transform 0.3s ease;
}

.showcase-cta:hover .cta-arrow {
  transform: translateX(4px);
}

@media (max-width: 1024px) {
  .showcase-feature {
    flex-direction: column;
    align-items: stretch;
  }
  .showcase-image-col {
    width: 100%;
    height: 400px;
  }
  .showcase-content-col {
    width: 90%;
    margin-left: auto;
    margin-right: auto;
    margin-top: -3rem;
  }
  .showcase-selector {
    gap: 1.5rem;
  }
}

/* Subjects Academic Layout */
.subjects-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-md);
}

.subject-card {
  display: flex;
  background-color: var(--bg-white);
  border: 1px solid var(--bg-gray);
  border-radius: 8px;
  overflow: hidden;
  transition: var(--transition);
  text-decoration: none;
}

.subject-card:hover {
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
  transform: translateX(5px);
}

.subject-card-image {
  flex: 0 0 150px;
  background-color: var(--bg-off-white);
  padding: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.subject-card-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.subject-card-content {
  flex: 1;
  padding: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.subject-card-content h3 {
  font-size: 1.5rem;
  margin: 0;
  color: var(--thd-green-dark);
}

.subject-arrow {
  color: var(--thd-gold);
  font-size: 2rem;
  font-family: monospace;
}

/* Achievements & Trust Section */
.achievements-trust-section {
  background-color: var(--bg-off-white);
  padding: 8rem 0;
  position: relative;
  z-index: 1;
}

.achievements-trust-header {
  text-align: left;
  margin-bottom: 4rem;
}

.achievements-trust-marker {
  display: inline-block;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--thd-gold);
  margin-bottom: 1rem;
  font-weight: 600;
}

.achievements-trust-title {
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  color: var(--thd-green-dark);
  margin-bottom: 0;
  line-height: 1.1;
}

.achievements-trust-composition {
  display: flex;
  flex-direction: column;
  gap: 4rem;
}

/* Part A: Achievement Feature */
.achievement-feature-part {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.achievement-feature-image {
  width: 100%;
}

.achievement-feature-image img {
  width: 100%;
  height: 400px;
  object-fit: cover;
}

.achievement-feature-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-top: 1.5rem;
}

.achievement-student-name {
  font-size: clamp(1.875rem, 3vw, 2.625rem);
  color: var(--thd-green-dark);
  margin-bottom: 0.5rem;
  font-family: var(--font-heading);
  line-height: 1.2;
}

.achievement-student-desc {
  font-size: 1.15rem;
  color: #444;
  margin-bottom: 2rem;
  max-width: 500px;
}

/* Part B: Testimonial */
.testimonial-feature-part {
  padding: 3rem 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  position: relative;
}

.testimonial-quote-mark {
  font-family: var(--font-heading);
  font-size: 8rem;
  color: var(--thd-gold);
  line-height: 0.8;
  opacity: 0.3;
  margin-bottom: 1rem;
}

.testimonial-large-quote {
  font-family: var(--font-heading);
  font-size: clamp(1.875rem, 2.5vw, 2.625rem);
  color: var(--thd-green-dark);
  line-height: 1.4;
  font-style: italic;
  margin-bottom: 2rem;
  max-width: 800px;
}

.testimonial-attribution {
  font-size: 1.05rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #666;
  margin-bottom: 2rem;
}

.editorial-cta {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-body);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--thd-green-dark);
  font-size: 0.95rem;
  transition: color 0.3s ease;
}

.editorial-cta:hover {
  color: var(--thd-gold);
}

.editorial-cta .cta-arrow {
  margin-left: 0.5rem;
  font-family: monospace;
  font-size: 1.2rem;
  transition: transform 0.3s ease;
}

.editorial-cta:hover .cta-arrow {
  transform: translateX(4px);
}

/* --- TUYỂN DỤNG (RECRUITMENT) --- */
.recruitment-full-bleed {
  position: relative;
  width: 100%;
  min-height: 500px;
  display: flex;
  align-items: center;
  padding: 0;
  overflow: hidden;
  background-color: var(--thd-green-dark);
}

.recruitment-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.recruitment-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.recruitment-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to right, rgba(10, 61, 46, 0.9) 0%, rgba(10, 61, 46, 0.75) 45%, rgba(10, 61, 46, 0.15) 100%);
}

.recruitment-content-container {
  position: relative;
  z-index: 2;
  width: 100%;
  padding-top: var(--sp-xl);
  padding-bottom: var(--sp-xl);
}

.recruitment-content-box {
  max-width: 600px;
  color: var(--text-light);
}

.recruitment-marker {
  display: inline-block;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--thd-gold);
  margin-bottom: 1.5rem;
  font-weight: 600;
}

.recruitment-heading {
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  color: var(--text-light);
  margin-bottom: 1rem;
  line-height: 1.1;
  font-family: var(--font-heading);
}

.recruitment-body {
  font-size: 1.15rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 3rem;
  max-width: 480px;
}

.recruitment-pathways {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.pathway-divider {
  display: none;
}

.recruitment-pathway-link {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-body);
  font-size: 1.1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-light);
  transition: color 0.3s ease;
}

.recruitment-pathway-link:hover {
  color: var(--thd-gold);
}

.pathway-arrow {
  margin-left: 0.75rem;
  font-family: monospace;
  font-size: 1.25rem;
  color: var(--thd-gold);
  transition: transform 0.3s ease;
}

.recruitment-pathway-link:hover .pathway-arrow {
  transform: translateX(5px);
}

/* Consultation Form */
.form-section {
  background-color: var(--thd-green-dark);
  color: var(--text-light);
}

.form-wrapper {
  max-width: 800px;
  margin: 0 auto;
  background-color: var(--bg-white);
  padding: var(--sp-lg);
  color: var(--text-dark);
  box-shadow: 0 20px 50px rgba(0,0,0,0.1);
  transform: translateY(4rem);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--thd-green-dark);
}

.form-control {
  width: 100%;
  padding: 1rem;
  border: 1px solid #ccc;
  font-family: var(--font-body);
  font-size: 1rem;
  background-color: var(--bg-off-white);
}

.form-control:focus {
  outline: none;
  border-color: var(--thd-gold);
  background-color: var(--bg-white);
}

textarea.form-control {
  height: 150px;
  resize: vertical;
}

/* Global CTA */
.global-cta {
  background-color: var(--thd-gold);
  padding: var(--sp-md) 0;
  text-align: center;
  margin-top: 4rem;
}

.global-cta-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  justify-content: center;
  align-items: center;
}

.global-cta-link {
  font-family: var(--font-heading);
  font-size: 2rem;
  color: var(--thd-green-dark);
  position: relative;
}

.global-cta-link:hover {
  color: var(--bg-white);
}

/* Footer */
.site-footer {
  background-color: var(--text-dark);
  color: var(--text-light);
  padding: var(--sp-xl) 0 var(--sp-md);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-lg);
  margin-bottom: var(--sp-lg);
}

.footer-brand .footer-logo img {
  height: 80px;
  margin-bottom: var(--sp-sm);
  filter: brightness(0) invert(1);
}

.footer-tagline {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-style: italic;
  color: var(--thd-gold);
  margin-bottom: 1rem;
}

.footer-links h4 {
  color: var(--thd-gold);
  font-family: var(--font-body);
  font-size: 1rem;
  letter-spacing: 2px;
  margin-bottom: 1.5rem;
}

.footer-links ul li {
  margin-bottom: 0.8rem;
}

.footer-links a:hover {
  color: var(--thd-gold);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: var(--sp-md);
  text-align: center;
  font-size: 0.9rem;
  opacity: 0.6;
}

/* --- RESPONSIVE DESKTOP --- */
@media (min-width: 1024px) {
  .mobile-menu-btn { display: none; }
  .main-nav { display: block; }

  .thd-intro-section {
    min-height: 680px;
    max-height: 820px;
  }

  .thd-intro-composition {
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
  }
  
  .intro-image-field {
    width: 62%;
    height: 700px;
  }

  .intro-photo {
    height: 100%;
  }

  .intro-text-field {
    width: 42%;
    margin-top: 0;
    margin-left: -100px;
    padding: 5rem 4rem;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.05);
  }

  .intro-heading {
    font-size: clamp(3.25rem, 4vw, 4rem);
  }

  .intro-brand-line {
    font-size: 1.625rem;
  }

  .intro-body {
    font-size: 1.1875rem;
  }
  
  .programs-interactive-layout {
    flex-direction: row;
    height: 80vh;
    min-height: 600px;
  }
  
  .programs-visual-display {
    width: 65%;
    height: 100%;
  }
  
  .programs-index {
    width: 35%;
    padding: 5rem 4rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
  
  .program-visual-content {
    bottom: 5rem;
    left: 5rem;
  }
  
  .program-visual-content h3 {
    font-size: 4rem;
  }

  .programs-index-title {
    font-size: 3.5rem;
    margin-bottom: 3rem;
  }

  .program-tab {
    font-size: 2rem;
    padding: 1rem 0;
  }

  .subjects-layout {
    grid-template-columns: repeat(2, 1fr);
  }

  .achievements-trust-composition {
    flex-direction: row;
    align-items: center;
    gap: 6rem;
  }
  
  .achievement-feature-part {
    flex: 1;
    max-width: 45%;
  }

  .achievement-feature-image img {
    height: 500px;
  }
  
  .testimonial-feature-part {
    flex: 1;
    padding: 0;
  }

  .recruitment-full-bleed {
    min-height: 700px;
  }

  .recruitment-heading {
    font-size: clamp(3.25rem, 4vw, 4.25rem);
  }

  .recruitment-pathways {
    flex-direction: row;
    align-items: center;
    gap: 2.5rem;
  }

  .pathway-divider {
    display: block;
    width: 1px;
    height: 24px;
    background-color: rgba(255, 255, 255, 0.3);
  }

  .global-cta-list {
    flex-direction: row;
    gap: 4rem;
  }

  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr 1fr;
  }
  
  .hero-fullbleed {
    height: 85vh;
  }
}
/* ==========================================================================
   06 & 07. PRE-FOOTER & FOOTER
   ========================================================================== */

.site-footer-wrapper {
  position: relative;
  width: 100%;
  color: #fff;
  /* Deliberate separation from Recruitment Section (05) */
  margin-top: 0;
}

.site-footer-background {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 1;
}

.site-footer-background .footer-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.site-footer-background .footer-bg-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(135deg, rgba(10, 61, 46, 0.76) 0%, rgba(20, 90, 70, 0.68) 100%);
}

.site-footer-content-layer {
  position: relative;
  z-index: 2;
  padding-top: 60px;
  padding-bottom: 20px;
  display: flex;
  flex-direction: column;
  min-height: 720px;
}

/* 06. PRE-FOOTER CTA CIRCLES */
.pre-footer-cta-section {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 80px;
}

.cta-circles-container {
  display: flex;
  gap: 40px;
  justify-content: center;
  flex-wrap: wrap;
}

.cta-circle-link {
  text-decoration: none;
  color: #fff;
}

.cta-circle {
  width: 210px;
  height: 210px;
  border-radius: 50%;
  background-color: rgba(20, 90, 70, 0.5);
  border: 1px solid transparent;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  backdrop-filter: blur(4px);
}

.cta-circle-link:focus .cta-circle,
.cta-circle-link:hover .cta-circle {
  border: 2px solid var(--thd-gold);
  transform: translateY(-5px);
  background-color: rgba(20, 90, 70, 0.95);
}

.cta-circle-link:focus {
  outline: 2px solid var(--thd-gold);
  outline-offset: 4px;
}

.cta-circle-icon {
  margin-bottom: 15px;
  color: #fff;
  transition: transform 0.3s ease;
}

.cta-circle-link:hover .cta-circle-icon {
  transform: scale(1.1);
}

.cta-circle-label {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.125rem;
  letter-spacing: 0.05em;
  color: #fff;
}

@media (prefers-reduced-motion: reduce) {
  .cta-circle, .cta-circle-icon {
    transition: none;
  }
  .cta-circle-link:hover .cta-circle {
    transform: none;
  }
}

/* 07. MAIN FOOTER CONTENT */
.site-footer-main {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.footer-top-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 60px;
  gap: 40px;
  max-width: 1360px;
  margin-left: auto;
  margin-right: auto;
}

.footer-logo-col {
  flex: 0 0 auto;
}

.footer-logo-group {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #fff;
  padding: 15px 20px;
  border-radius: 4px;
  flex-shrink: 0;
  text-decoration: none;
  width: 230px;
}

.footer-logo-combined {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

.footer-info-grid {
  flex: 1;
  display: grid;
  grid-template-columns: min-content auto auto;
  align-items: start;
  column-gap: 68px;
  row-gap: 10px;
}

.info-cell p, .info-cell a {
  margin: 0;
}

.company-name {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.5;
  color: #fff;
  white-space: nowrap;
}

.contact-item {
  font-size: 15px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.9);
  white-space: nowrap;
}

.contact-item-flex {
  display: flex;
  gap: 24px;
}

.contact-item a {
  color: #fff;
  text-decoration: none;
  transition: color 0.3s ease;
}

.contact-item a:hover {
  color: var(--thd-gold);
}

.nav-cell a {
  color: #fff;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  text-transform: uppercase;
  line-height: 1.5;
  text-decoration: none;
  letter-spacing: 0.02em;
  white-space: nowrap;
  transition: color 0.3s ease;
  display: block;
}

.nav-cell a:hover,
.nav-cell a:focus {
  color: var(--thd-gold);
  outline: none;
}

.social-cell {
  grid-column: 2 / -1;
  display: flex;
  align-items: flex-start;
}

.footer-social-links {
  display: flex;
  gap: 15px;
}

.social-icon-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  color: #fff;
  text-decoration: none;
  transition: all 0.3s ease;
}

.social-icon-link:hover,
.social-icon-link:focus {
  background-color: var(--thd-gold);
  color: var(--thd-green-dark);
}

.footer-programs-row {
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding-top: 40px;
  margin-bottom: 30px;
}

.program-logos {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  align-items: center;
  justify-content: center;
}

.program-logo-link {
  display: block;
  background: rgba(255, 255, 255, 0.95);
  padding: 8px;
  border-radius: 4px;
  transition: transform 0.3s ease;
}

.program-logo-link:hover {
  transform: translateY(-3px);
}

.program-logo-link img {
  height: 50px;
  width: auto;
  object-fit: contain;
  display: block;
}

.footer-bottom-bar {
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 20px;
}

.copyright {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.6);
}
