/* ============================================================
   3K SOLUTION MANAGEMENT DRIVING SCHOOL
   Main Stylesheet — style.css
   Version: 1.0 | April 2026
   ============================================================ */

/* ---- Google Fonts ---- */
@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@400;600;700;800&family=DM+Sans:wght@300;400;500;600;700&family=Noto+Sans+Thai:wght@300;400;500;600;700;800&display=swap');

/* ---- CSS Custom Properties ---- */
:root {
  --navy:        #0F2040;
  --navy-mid:    #1B3A6B;
  --blue:        #0057B8;
  --blue-light:  #1A78D4;
  --blue-glow:   #3A9EF5;
  --gold:        #C9A227;
  --gold-light:  #E8C14A;
  --white:       #FFFFFF;
  --off-white:   #F6F8FC;
  --gray-100:    #F0F3F8;
  --gray-200:    #E2E8F0;
  --gray-400:    #94A3B8;
  --gray-600:    #64748B;
  --gray-800:    #1E293B;
  --text-main:   #1A2540;
  --text-light:  #4A5568;
  --overlay:     rgba(10, 20, 50, 0.78);
  --overlay-light: rgba(10, 20, 50, 0.55);

  --font-en:     'Barlow Condensed', 'DM Sans', sans-serif;
  --font-body:   'DM Sans', 'Noto Sans Thai', sans-serif;
  --font-th:     'Noto Sans Thai', 'DM Sans', sans-serif;

  --radius:      12px;
  --radius-sm:   8px;
  --radius-lg:   20px;
  --shadow-sm:   0 2px 8px rgba(0,0,0,0.08);
  --shadow-md:   0 8px 30px rgba(0,0,0,0.12);
  --shadow-lg:   0 20px 60px rgba(0,0,0,0.18);
  --shadow-blue: 0 8px 30px rgba(0,87,184,0.25);

  --transition:  0.3s cubic-bezier(0.4,0,0.2,1);
  --transition-slow: 0.6s cubic-bezier(0.4,0,0.2,1);
  --container:   1260px;
  --section-pad: 96px;
}

/* ---- Reset & Base ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-body);
  color: var(--text-main);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Thai language body override */
body.lang-th {
  font-family: var(--font-th);
  line-height: 1.8;
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, textarea, select { font-family: inherit; }

/* ---- Language Toggle ---- */
.en-content { display: block; }
.th-content { display: none; }
body.lang-th .en-content { display: none; }
body.lang-th .th-content { display: block; }
.en-inline { display: inline; }
.th-inline { display: none; }
body.lang-th .en-inline { display: none; }
body.lang-th .th-inline { display: inline; }

/* ---- Typography ---- */
h1,h2,h3,h4,h5 {
  font-family: var(--font-en);
  font-weight: 700;
  line-height: 1.15;
  color: var(--text-main);
  letter-spacing: -0.01em;
}
body.lang-th h1,body.lang-th h2,body.lang-th h3,
body.lang-th h4,body.lang-th h5 {
  font-family: var(--font-th);
  letter-spacing: 0;
  line-height: 1.35;
}

h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.8rem); }
h4 { font-size: clamp(1.1rem, 2vw, 1.35rem); }
p  { font-size: 1.0625rem; color: var(--text-light); line-height: 1.75; }

.display-title {
  font-size: clamp(2.6rem, 6vw, 5rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.section-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  display: block;
  margin-bottom: 0.75rem;
}

/* ---- Container ---- */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}
.container-sm { max-width: 860px; margin: 0 auto; padding: 0 24px; }

/* ---- Sections ---- */
section { position: relative; }

.section-pad { padding: var(--section-pad) 0; }
.section-pad-sm { padding: 60px 0; }

.section-light { background: var(--off-white); }
.section-dark  { background: var(--navy); color: var(--white); }
.section-mid   { background: var(--navy-mid); color: var(--white); }
.section-blue  { background: var(--blue); color: var(--white); }

.section-dark p, .section-mid p, .section-blue p { color: rgba(255,255,255,0.8); }
.section-dark h1,.section-dark h2,.section-dark h3,.section-dark h4,
.section-mid h1,.section-mid h2,.section-mid h3,.section-mid h4,
.section-blue h1,.section-blue h2,.section-blue h3,.section-blue h4 { color: var(--white); }

/* ---- Section Header ---- */
.section-header { text-align: center; margin-bottom: 56px; }
.section-header h2 { margin-bottom: 16px; }
.section-header p  { max-width: 640px; margin: 0 auto; font-size: 1.1rem; }

.section-header.left { text-align: left; }
.section-header.left p { margin: 0; }

/* ---- Divider ---- */
.divider {
  width: 56px; height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  border-radius: 2px;
  display: block;
  margin: 16px auto 0;
}
.section-header.left .divider { margin: 16px 0 0; }

/* ============================================================
   PRELOADER
   ============================================================ */
#preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--navy);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}
#preloader.hidden { opacity: 0; visibility: hidden; }

.preloader-inner { text-align: center; }

.preloader-logo {
  width: 80px; height: 80px;
  margin: 0 auto 24px;
  position: relative;
}
.preloader-logo svg { width: 80px; height: 80px; }

.preloader-k {
  animation: preloaderPulse 1.2s ease-in-out infinite alternate;
}
@keyframes preloaderPulse {
  from { filter: drop-shadow(0 0 6px rgba(0,87,184,0.6)); }
  to   { filter: drop-shadow(0 0 20px rgba(58,158,245,0.9)); }
}

.preloader-text {
  font-family: var(--font-en);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.25em;
  color: var(--white);
  text-transform: uppercase;
  margin-bottom: 32px;
  opacity: 0;
  animation: fadeInUp 0.6s 0.4s ease forwards;
}
.preloader-sub {
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  color: var(--gold);
  text-transform: uppercase;
  opacity: 0;
  animation: fadeInUp 0.5s 0.7s ease forwards;
}

.preloader-bar {
  width: 200px; height: 2px;
  background: rgba(255,255,255,0.12);
  border-radius: 2px;
  margin: 20px auto 0;
  overflow: hidden;
}
.preloader-progress {
  height: 100%;
  background: linear-gradient(90deg, var(--blue), var(--gold));
  border-radius: 2px;
  animation: progressBar 1.8s ease-in-out forwards;
}
@keyframes progressBar {
  from { width: 0%; }
  to   { width: 100%; }
}

/* ============================================================
   HEADER / NAVIGATION
   ============================================================ */
#header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  transition: background var(--transition), box-shadow var(--transition), padding var(--transition);
  padding: 20px 0;
}
#header.scrolled {
  background: rgba(10, 20, 50, 0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 2px 20px rgba(0,0,0,0.3);
  padding: 14px 0;
}
#header.transparent { background: transparent; }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex-shrink: 0;
}
.logo-mark {
  width: 44px; height: 44px;
  background: var(--blue);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-en);
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -1px;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
}
.logo-mark::after {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 0; height: 0;
  border-top: 14px solid var(--gold);
  border-left: 14px solid transparent;
}
.logo-text { line-height: 1.15; }
.logo-name {
  font-family: var(--font-en);
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--white);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  display: block;
}
.logo-tagline {
  font-size: 0.62rem;
  color: var(--gold);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  display: block;
}

/* Nav */
.main-nav { display: flex; align-items: center; gap: 4px; }
.nav-link {
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(255,255,255,0.88);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  transition: color var(--transition), background var(--transition);
  white-space: nowrap;
  position: relative;
}
body.lang-th .nav-link { font-family: var(--font-th); }
.nav-link:hover, .nav-link.active {
  color: var(--white);
  background: rgba(255,255,255,0.1);
}
.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 4px; left: 50%;
  transform: translateX(-50%);
  width: 16px; height: 2px;
  background: var(--gold);
  border-radius: 1px;
}

/* Dropdown */
.nav-dropdown { position: relative; }
.dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--navy);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius);
  padding: 8px;
  min-width: 220px;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity var(--transition), transform var(--transition), visibility var(--transition);
  transform: translateX(-50%) translateY(8px);
}
.nav-dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: all;
  transform: translateX(-50%) translateY(0);
}
.dropdown-menu a {
  display: block;
  padding: 9px 14px;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.85);
  border-radius: var(--radius-sm);
  transition: background var(--transition), color var(--transition);
}
.dropdown-menu a:hover {
  background: rgba(0,87,184,0.3);
  color: var(--white);
}

/* Header Right */
.header-right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

/* Language Toggle */
.lang-toggle {
  display: flex;
  background: rgba(255,255,255,0.1);
  border-radius: 20px;
  padding: 3px;
  gap: 2px;
}
.lang-btn {
  padding: 5px 12px;
  border-radius: 16px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: rgba(255,255,255,0.7);
  transition: all var(--transition);
  cursor: pointer;
}
.lang-btn.active {
  background: var(--blue);
  color: var(--white);
  box-shadow: 0 2px 8px rgba(0,87,184,0.4);
}

/* CTA Button in header */
.btn-header {
  background: var(--gold);
  color: var(--navy);
  font-weight: 700;
  font-size: 0.82rem;
  padding: 9px 18px;
  border-radius: 20px;
  letter-spacing: 0.03em;
  transition: all var(--transition);
  white-space: nowrap;
}
.btn-header:hover {
  background: var(--gold-light);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(201,162,39,0.4);
}

/* Mobile hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  cursor: pointer;
}
.hamburger span {
  display: block;
  width: 22px; height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all var(--transition);
}
.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }

/* Mobile Nav Drawer */
.mobile-nav {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: var(--navy);
  z-index: 999;
  padding: 100px 32px 40px;
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform var(--transition-slow);
}
.mobile-nav.open { transform: translateX(0); }
.mobile-nav .nav-link {
  display: block;
  font-size: 1.2rem;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  color: var(--white);
}
.mobile-nav .btn-cta { display: block; text-align: center; margin-top: 24px; }
.mobile-nav .lang-toggle { margin-top: 24px; justify-content: center; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 30px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  transition: all var(--transition);
  cursor: pointer;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
body.lang-th .btn { font-family: var(--font-th); }

.btn-primary {
  background: var(--blue);
  color: var(--white);
  box-shadow: var(--shadow-blue);
}
.btn-primary:hover {
  background: var(--blue-light);
  transform: translateY(-2px);
  box-shadow: 0 12px 36px rgba(0,87,184,0.35);
}

.btn-gold {
  background: var(--gold);
  color: var(--navy);
}
.btn-gold:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(201,162,39,0.35);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.5);
}
.btn-outline:hover {
  background: rgba(255,255,255,0.12);
  border-color: var(--white);
  transform: translateY(-2px);
}
.btn-outline-blue {
  background: transparent;
  color: var(--blue);
  border: 2px solid var(--blue);
}
.btn-outline-blue:hover {
  background: var(--blue);
  color: var(--white);
}

.btn-outline-white {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255,255,255,0.6);
}
.btn-outline-white:hover {
  background: rgba(255,255,255,0.15);
  border-color: #fff;
  color: #fff;
}

.btn-sm { padding: 10px 20px; font-size: 0.875rem; }
.btn-lg { padding: 17px 36px; font-size: 1.05rem; }

.btn-group { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }

/* ============================================================
   PAGE HERO
   ============================================================ */
.page-hero {
  position: relative;
  padding: 140px 0 80px;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 60%, var(--blue) 100%);
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('../images/hero-building-crop.jpg') center/cover no-repeat;
  opacity: 0.18;
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  color: var(--white);
  margin-bottom: 16px;
}
.page-hero-sub {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.8);
  max-width: 640px;
}
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
  margin-bottom: 16px;
}
.breadcrumb a { color: var(--gold); }
.breadcrumb .sep { opacity: 0.5; }

/* ============================================================
   HERO SLIDER
   ============================================================ */
.hero-slider {
  position: relative;
  height: 100vh;
  min-height: 640px;
  max-height: 900px;
  overflow: hidden;
}

.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.2s ease;
  display: flex;
  align-items: center;
}
.slide.active { opacity: 1; z-index: 2; }
.slide.prev   { opacity: 0; z-index: 1; }

.slide-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.05);
  transition: transform 8s ease;
}
.slide.active .slide-bg { transform: scale(1); }

.slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(10,20,50,0.88) 0%,
    rgba(10,20,50,0.65) 55%,
    rgba(10,20,50,0.35) 100%
  );
}

.slide-content {
  position: relative;
  z-index: 3;
  max-width: 680px;
  padding: 0 24px;
  margin: 0 auto;
  padding-left: max(24px, calc((100vw - 1260px)/2 + 24px));
}

.slide-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(201,162,39,0.18);
  border: 1px solid var(--gold);
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 20px;
  margin-bottom: 20px;
  opacity: 0;
  transform: translateY(20px);
  animation: none;
}
.slide.active .slide-badge {
  animation: slideInUp 0.6s 0.2s ease forwards;
}

.slide-title {
  font-size: clamp(2.4rem, 5.5vw, 4.2rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1.08;
  margin-bottom: 20px;
  opacity: 0;
  transform: translateY(24px);
}
body.lang-th .slide-title { font-family: var(--font-th); line-height: 1.2; }
.slide.active .slide-title {
  animation: slideInUp 0.7s 0.35s ease forwards;
}

.slide-sub {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.85);
  line-height: 1.7;
  margin-bottom: 32px;
  max-width: 520px;
  opacity: 0;
  transform: translateY(20px);
}
.slide.active .slide-sub {
  animation: slideInUp 0.7s 0.5s ease forwards;
}

.slide-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  opacity: 0;
  transform: translateY(20px);
}
.slide.active .slide-actions {
  animation: slideInUp 0.6s 0.65s ease forwards;
}

@keyframes slideInUp {
  to { opacity: 1; transform: translateY(0); }
}

/* Slider Controls */
.slider-controls {
  position: absolute;
  bottom: 36px;
  left: max(24px, calc((100vw - 1260px)/2 + 24px));
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 16px;
}
.slider-dots {
  display: flex;
  gap: 8px;
}
.dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.35);
  cursor: pointer;
  transition: all var(--transition);
  border: none;
}
.dot.active {
  background: var(--gold);
  transform: scale(1.3);
}

.slider-arrows {
  display: flex;
  gap: 8px;
}
.arrow-btn {
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.3);
  background: rgba(255,255,255,0.08);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
  cursor: pointer;
  font-size: 1rem;
}
.arrow-btn:hover {
  background: var(--blue);
  border-color: var(--blue);
}

/* Slider Progress Bar */
.slider-progress {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: rgba(255,255,255,0.1);
  z-index: 10;
}
.slider-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--blue), var(--gold));
  width: 0%;
  transition: width linear;
}

/* Trust Bar */
.trust-bar {
  background: var(--navy-mid);
  padding: 16px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.trust-items {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 24px;
  font-size: 0.8rem;
  font-weight: 600;
  color: rgba(255,255,255,0.8);
  letter-spacing: 0.04em;
  border-right: 1px solid rgba(255,255,255,0.15);
}
body.lang-th .trust-item { font-family: var(--font-th); }
.trust-item:last-child { border-right: none; }
.trust-item .icon {
  font-size: 1rem;
  color: var(--gold);
}

/* ============================================================
   CARDS
   ============================================================ */
.card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.card-img { aspect-ratio: 16/9; overflow: hidden; }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.card:hover .card-img img { transform: scale(1.04); }

.card-body { padding: 24px; }
.card-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 8px;
  display: block;
}
.card-title { font-size: 1.15rem; margin-bottom: 10px; }
.card-text { font-size: 0.9rem; color: var(--text-light); }

/* ============================================================
   STATS / COUNTERS
   ============================================================ */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgba(255,255,255,0.1);
}
.stat-item {
  padding: 40px 24px;
  text-align: center;
  background: var(--navy);
  position: relative;
}
.stat-item::after {
  content: '';
  position: absolute;
  right: 0; top: 20%; bottom: 20%;
  width: 1px;
  background: rgba(255,255,255,0.12);
}
.stat-item:last-child::after { display: none; }

.stat-number {
  font-family: var(--font-en);
  font-size: 3.2rem;
  font-weight: 800;
  color: var(--white);
  line-height: 1;
  margin-bottom: 8px;
}
.stat-suffix { color: var(--gold); }
.stat-label {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.7);
  font-weight: 500;
}
body.lang-th .stat-label { font-family: var(--font-th); }

/* ============================================================
   WHY CHOOSE US - Feature Cards
   ============================================================ */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.feature-card {
  padding: 32px 28px;
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--gray-200);
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}
.feature-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--blue), var(--blue-glow));
  transform: scaleX(0);
  transition: transform var(--transition);
}
.feature-card:hover::before { transform: scaleX(1); }
.feature-card:hover {
  box-shadow: var(--shadow-md);
  border-color: transparent;
  transform: translateY(-3px);
}

.feature-icon {
  width: 52px; height: 52px;
  background: rgba(0,87,184,0.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 20px;
}
.feature-card h4 { font-size: 1.1rem; margin-bottom: 10px; }
.feature-card p  { font-size: 0.9rem; }

/* ============================================================
   SERVICE CARDS
   ============================================================ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.service-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
}
.service-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}
.service-card-img {
  aspect-ratio: 16/9;
  overflow: hidden;
  position: relative;
}
.service-card-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.service-card:hover .service-card-img img { transform: scale(1.05); }
.service-card-img .img-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10,20,50,0.5), transparent);
}

.service-card-body {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.service-icon {
  font-size: 1.6rem;
  margin-bottom: 12px;
}
.service-card-body h4 { font-size: 1.1rem; margin-bottom: 10px; color: var(--navy); }
.service-card-body p  { font-size: 0.88rem; flex: 1; }
.service-card-body .link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--blue);
  margin-top: 16px;
  transition: gap var(--transition), color var(--transition);
}
.service-card-body .link-arrow:hover { gap: 10px; color: var(--navy); }

/* ============================================================
   COURSE CARDS
   ============================================================ */
.course-filter {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 40px;
}
.filter-btn {
  padding: 9px 20px;
  border-radius: 20px;
  border: 2px solid var(--gray-200);
  background: var(--white);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-light);
  transition: all var(--transition);
  cursor: pointer;
}
body.lang-th .filter-btn { font-family: var(--font-th); }
.filter-btn:hover { border-color: var(--blue); color: var(--blue); }
.filter-btn.active {
  background: var(--blue);
  border-color: var(--blue);
  color: var(--white);
}

.courses-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.course-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
  border: 1px solid var(--gray-200);
}
.course-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
  border-color: var(--blue);
}
.course-card.featured {
  border: 2px solid var(--gold);
  position: relative;
}
.course-card.featured::before {
  content: '⭐ FEATURED';
  position: absolute;
  top: 12px; right: 12px;
  background: var(--gold);
  color: var(--navy);
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  padding: 4px 10px;
  border-radius: 10px;
  z-index: 2;
}

.course-card-header {
  padding: 20px 22px 16px;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%);
  color: var(--white);
}
.course-category {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 6px;
  display: block;
}
.course-card-header h4 {
  font-size: 1.05rem;
  color: var(--white);
  line-height: 1.25;
}

.course-card-body {
  padding: 20px 22px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.course-meta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.course-meta-item {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.82rem;
  color: var(--text-light);
}
.course-meta-item .icon { font-size: 0.85rem; }
.course-desc { font-size: 0.875rem; color: var(--text-light); flex: 1; }

.course-price {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-top: 4px;
}
.price-current {
  font-family: var(--font-en);
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--blue);
  line-height: 1;
}
.price-old {
  font-size: 0.9rem;
  color: var(--gray-400);
  text-decoration: line-through;
}
.price-label { font-size: 0.78rem; color: var(--text-light); }

.course-card-footer {
  padding: 16px 22px;
  border-top: 1px solid var(--gray-200);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.cert-badge {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.75rem;
  font-weight: 600;
  color: #16a34a;
  background: rgba(22,163,74,0.08);
  padding: 4px 10px;
  border-radius: 10px;
}

/* ============================================================
   TEAM CARDS
   ============================================================ */
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.team-grid.three-col { grid-template-columns: repeat(3, 1fr); }

.team-card {
  text-align: center;
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px 20px 24px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
  transition: all var(--transition);
}
.team-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
  border-color: var(--blue);
}
.team-avatar {
  width: 88px; height: 88px;
  border-radius: 50%;
  margin: 0 auto 16px;
  overflow: hidden;
  border: 3px solid var(--blue);
  box-shadow: 0 4px 16px rgba(0,87,184,0.2);
}
.team-avatar img { width: 100%; height: 100%; object-fit: cover; object-position: top; }

/* Initials fallback avatar */
.avatar-initials {
  width: 88px; height: 88px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-en);
  font-weight: 800;
  font-size: 1.4rem;
  color: var(--white);
  margin: 0 auto 16px;
  border: 3px solid var(--blue);
  flex-shrink: 0;
}
.bg-blue1 { background: linear-gradient(135deg,#0057B8,#1A78D4); }
.bg-blue2 { background: linear-gradient(135deg,#0F2040,#1B3A6B); }
.bg-gold  { background: linear-gradient(135deg,#C9A227,#E8C14A); }
.bg-teal  { background: linear-gradient(135deg,#0891B2,#22D3EE); }

.team-card h4 { font-size: 1rem; margin-bottom: 4px; }
.team-role {
  font-size: 0.8rem;
  color: var(--blue);
  font-weight: 600;
  margin-bottom: 8px;
  display: block;
}
.team-dept {
  font-size: 0.75rem;
  color: var(--text-light);
  background: var(--gray-100);
  padding: 3px 10px;
  border-radius: 10px;
  display: inline-block;
}

/* Leadership cards (larger) */
.leader-card {
  display: flex;
  align-items: center;
  gap: 28px;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--gray-200);
}
.leader-avatar {
  width: 110px; height: 110px;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid var(--blue);
  flex-shrink: 0;
}
.leader-avatar img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.leader-body h3 { font-size: 1.3rem; margin-bottom: 4px; }
.leader-title { color: var(--blue); font-weight: 600; margin-bottom: 10px; display: block; }
.leader-body p { font-size: 0.9rem; }

/* ============================================================
   FACILITIES
   ============================================================ */
.facilities-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.facility-card {
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  aspect-ratio: 4/3;
  cursor: pointer;
}
.facility-card img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.facility-card:hover img { transform: scale(1.06); }
.facility-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10,20,50,0.85), rgba(10,20,50,0.1));
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
  transition: background var(--transition);
}
.facility-card-overlay h4 { color: var(--white); margin-bottom: 4px; }
.facility-card-overlay p  { color: rgba(255,255,255,0.75); font-size: 0.85rem; }
.facility-stat {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--blue);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 10px;
  margin-bottom: 10px;
  align-self: flex-start;
}

/* ============================================================
   GALLERY
   ============================================================ */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-sm);
  cursor: pointer;
  aspect-ratio: 1;
}
.gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.gallery-item:hover img { transform: scale(1.1); }
.gallery-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,87,184,0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition);
  color: var(--white);
  font-size: 1.8rem;
}
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-item.wide { grid-column: span 2; }
.gallery-item.tall { grid-row: span 2; }

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 9000;
  background: rgba(5,10,25,0.96);
  display: none;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(8px);
}
.lightbox.open { display: flex; }
.lightbox-inner {
  position: relative;
  max-width: 90vw;
  max-height: 88vh;
}
.lightbox-inner img {
  max-width: 90vw;
  max-height: 86vh;
  object-fit: contain;
  border-radius: var(--radius);
}
.lightbox-close {
  position: absolute;
  top: -40px; right: 0;
  color: var(--white);
  font-size: 1.5rem;
  cursor: pointer;
  width: 36px; height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  transition: background var(--transition);
}
.lightbox-close:hover { background: rgba(255,255,255,0.25); }
.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  gap: 0;
  justify-content: space-between;
  width: calc(100% + 80px);
  left: -40px;
  pointer-events: none;
}
.lightbox-prev, .lightbox-next {
  pointer-events: all;
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.3);
  background: rgba(10,20,50,0.6);
  color: var(--white);
  font-size: 1.1rem;
  cursor: pointer;
  transition: all var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox-prev:hover, .lightbox-next:hover {
  background: var(--blue);
  border-color: var(--blue);
}

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.testimonial-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius);
  padding: 28px;
}
.testimonial-stars {
  color: var(--gold);
  font-size: 0.9rem;
  margin-bottom: 14px;
  letter-spacing: 2px;
}
.testimonial-text {
  font-size: 0.95rem;
  line-height: 1.75;
  color: rgba(255,255,255,0.85);
  font-style: italic;
  margin-bottom: 20px;
}
.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}
.testimonial-avatar {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-weight: 700;
  font-size: 0.9rem;
  flex-shrink: 0;
}
.testimonial-name {
  font-weight: 600;
  color: var(--white);
  font-size: 0.9rem;
  display: block;
}
.testimonial-company {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.55);
}

/* ============================================================
   PRICING
   ============================================================ */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.pricing-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  box-shadow: var(--shadow-sm);
  border: 2px solid var(--gray-200);
  transition: all var(--transition);
  position: relative;
}
.pricing-card.popular {
  border-color: var(--blue);
  box-shadow: var(--shadow-blue);
}
.pricing-card.popular::before {
  content: 'MOST POPULAR';
  position: absolute;
  top: -12px; left: 50%;
  transform: translateX(-50%);
  background: var(--blue);
  color: var(--white);
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  padding: 4px 16px;
  border-radius: 10px;
}
.pricing-name {
  font-size: 1.0rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 4px;
}
.pricing-duration {
  font-size: 0.85rem;
  color: var(--text-light);
  margin-bottom: 20px;
}
.pricing-price {
  font-family: var(--font-en);
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--blue);
  line-height: 1;
  margin-bottom: 4px;
}
.pricing-price-old {
  font-size: 1.1rem;
  color: var(--gray-400);
  text-decoration: line-through;
  margin-bottom: 20px;
}
.pricing-features {
  border-top: 1px solid var(--gray-200);
  padding-top: 20px;
  margin-bottom: 24px;
}
.pricing-feature {
  display: flex;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--text-light);
  padding: 6px 0;
}
.pricing-feature .check { color: #16a34a; }

/* ============================================================
   CTA BANNER
   ============================================================ */
.cta-banner {
  background: linear-gradient(135deg, var(--navy) 0%, var(--blue) 100%);
  position: relative;
  overflow: hidden;
  padding: 80px 0;
}
.cta-banner::before {
  content: '';
  position: absolute;
  top: -50%; right: -10%;
  width: 500px; height: 500px;
  border-radius: 50%;
  background: rgba(255,255,255,0.04);
}
.cta-banner::after {
  content: '';
  position: absolute;
  bottom: -30%; left: -5%;
  width: 360px; height: 360px;
  border-radius: 50%;
  background: rgba(201,162,39,0.08);
}
.cta-banner .container { position: relative; z-index: 1; }
.cta-inner {
  text-align: center;
}
.cta-banner h2 { color: var(--white); margin-bottom: 16px; }
.cta-banner p  { color: rgba(255,255,255,0.8); font-size: 1.1rem; max-width: 560px; margin: 0 auto 36px; }
.cta-banner .btn-group { justify-content: center; }

/* ============================================================
   FORMS
   ============================================================ */
.form-group {
  margin-bottom: 20px;
}
.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 7px;
}
body.lang-th .form-label { font-family: var(--font-th); }
.form-label .req { color: var(--blue); margin-left: 2px; }

.form-control {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-family: var(--font-body);
  color: var(--text-main);
  background: var(--white);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
  -webkit-appearance: none;
}
body.lang-th .form-control { font-family: var(--font-th); }
.form-control:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(0,87,184,0.1);
}
.form-control::placeholder { color: var(--gray-400); }

textarea.form-control {
  resize: vertical;
  min-height: 120px;
}
select.form-control { cursor: pointer; }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-error {
  font-size: 0.78rem;
  color: #dc2626;
  margin-top: 5px;
  display: block;
}
.form-control.error { border-color: #dc2626; }

/* Form Tabs */
.form-tabs {
  display: flex;
  border-bottom: 2px solid var(--gray-200);
  margin-bottom: 28px;
  gap: 0;
}
.form-tab {
  padding: 12px 20px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-light);
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}
body.lang-th .form-tab { font-family: var(--font-th); }
.form-tab.active {
  color: var(--blue);
  border-bottom-color: var(--blue);
}
.form-panel { display: none; }
.form-panel.active { display: block; }

/* Success modal */
.success-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0,0,0,0.5);
  align-items: center;
  justify-content: center;
}
.success-modal.open { display: flex; }
.success-box {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 48px 40px;
  text-align: center;
  max-width: 440px;
  margin: 24px;
  box-shadow: var(--shadow-lg);
}
.success-icon {
  width: 64px; height: 64px;
  background: rgba(22,163,74,0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin: 0 auto 20px;
}
.success-box h3 { margin-bottom: 12px; }
.success-box p  { margin-bottom: 24px; }

/* ============================================================
   ACCORDIONS / FAQ
   ============================================================ */
.faq-list { display: flex; flex-direction: column; gap: 8px; }

.faq-item {
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color var(--transition);
}
.faq-item.open { border-color: var(--blue); }

.faq-question {
  padding: 18px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  cursor: pointer;
  background: var(--white);
  transition: background var(--transition);
}
.faq-item.open .faq-question { background: rgba(0,87,184,0.04); }
.faq-question h4 {
  font-size: 1.0rem;
  font-weight: 600;
  color: var(--text-main);
  margin: 0;
  flex: 1;
  line-height: 1.35;
}
body.lang-th .faq-question h4 { font-family: var(--font-th); }
.faq-icon {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--gray-100);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  flex-shrink: 0;
  transition: all var(--transition);
  color: var(--text-light);
}
.faq-item.open .faq-icon {
  background: var(--blue);
  color: var(--white);
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}
.faq-item.open .faq-answer { max-height: 600px; }
.faq-answer-inner {
  padding: 0 22px 18px;
  font-size: 0.925rem;
  color: var(--text-light);
  line-height: 1.75;
}
body.lang-th .faq-answer-inner { font-family: var(--font-th); }

/* ============================================================
   NEWS / BLOG
   ============================================================ */
.news-featured {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 32px;
  margin-bottom: 48px;
  align-items: stretch;
}
.news-featured-img {
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 16/9;
}
.news-featured-img img { width: 100%; height: 100%; object-fit: cover; }
.news-featured-body { padding: 8px 0; display: flex; flex-direction: column; }

.news-tag {
  display: inline-block;
  background: rgba(0,87,184,0.1);
  color: var(--blue);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 10px;
  margin-bottom: 12px;
  align-self: flex-start;
}
.news-featured-body h2 { font-size: 1.7rem; line-height: 1.2; margin-bottom: 14px; }
.news-featured-body p  { flex: 1; margin-bottom: 20px; }
.news-meta {
  display: flex;
  gap: 16px;
  align-items: center;
  font-size: 0.8rem;
  color: var(--text-light);
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* ============================================================
   CONTACT
   ============================================================ */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 48px;
  align-items: start;
}

.contact-info-card {
  background: var(--navy);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  color: var(--white);
}
.contact-info-card h3 { color: var(--white); margin-bottom: 8px; }
.contact-info-card > p { color: rgba(255,255,255,0.75); margin-bottom: 32px; font-size: 0.9rem; }

.contact-detail {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 20px;
}
.contact-icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
  color: var(--gold);
}
.contact-detail-text { font-size: 0.9rem; }
.contact-detail-label {
  font-size: 0.72rem;
  color: var(--gold);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 3px;
  display: block;
}
.contact-detail-text a { color: rgba(255,255,255,0.85); }
.contact-detail-text a:hover { color: var(--gold); }
.contact-detail-text span { color: rgba(255,255,255,0.85); }

.social-links {
  display: flex;
  gap: 10px;
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.1);
}
.social-link {
  width: 40px; height: 40px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.7);
  font-size: 1rem;
  transition: all var(--transition);
}
.social-link:hover {
  background: var(--blue);
  border-color: var(--blue);
  color: var(--white);
}

/* Map placeholder */
.map-placeholder {
  background: var(--gray-100);
  border-radius: var(--radius);
  overflow: hidden;
  height: 340px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  border: 2px dashed var(--gray-200);
}
.map-placeholder iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* ============================================================
   FOOTER
   ============================================================ */
#footer {
  background: var(--navy);
  color: rgba(255,255,255,0.75);
  padding: 72px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 48px;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-brand .logo { margin-bottom: 16px; }
.footer-desc {
  font-size: 0.875rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.6);
  margin-bottom: 20px;
}
body.lang-th .footer-desc { font-family: var(--font-th); }

.cert-badges {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.cert-badge-item {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.75);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 5px 10px;
  border-radius: 6px;
  text-transform: uppercase;
}

.footer-col h4 {
  font-family: var(--font-en);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}
body.lang-th .footer-col h4 { font-family: var(--font-th); letter-spacing: 0; }

.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links a {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.65);
  transition: color var(--transition);
  display: flex;
  align-items: center;
  gap: 6px;
}
body.lang-th .footer-links a { font-family: var(--font-th); }
.footer-links a:hover { color: var(--gold); }

.footer-contact { display: flex; flex-direction: column; gap: 14px; }
.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.875rem;
}
body.lang-th .footer-contact-item { font-family: var(--font-th); }
.footer-contact-item .ico {
  color: var(--gold);
  font-size: 0.9rem;
  flex-shrink: 0;
  margin-top: 2px;
}
.footer-contact-item span,
.footer-contact-item a { color: rgba(255,255,255,0.65); }
.footer-contact-item a:hover { color: var(--gold); }

.footer-bottom {
  padding: 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.footer-copy {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.4);
}
.footer-legal {
  display: flex;
  gap: 16px;
}
.footer-legal a {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.4);
  transition: color var(--transition);
}
.footer-legal a:hover { color: rgba(255,255,255,0.7); }

/* ============================================================
   SCROLL ANIMATIONS
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }

/* ============================================================
   UTILITIES
   ============================================================ */
.text-center  { text-align: center; }
.text-blue    { color: var(--blue) !important; }
.text-gold    { color: var(--gold) !important; }
.text-white   { color: var(--white) !important; }
.text-light   { color: var(--text-light) !important; }
.text-navy    { color: var(--navy) !important; }

.bg-white  { background: var(--white); }
.bg-gray   { background: var(--off-white); }
.bg-navy   { background: var(--navy); }
.bg-blue   { background: var(--blue); }

.mb-0  { margin-bottom: 0; }
.mb-1  { margin-bottom: 8px; }
.mb-2  { margin-bottom: 16px; }
.mb-3  { margin-bottom: 24px; }
.mb-4  { margin-bottom: 32px; }
.mb-5  { margin-bottom: 48px; }
.mb-6  { margin-bottom: 64px; }
.mt-3  { margin-top: 24px; }
.mt-4  { margin-top: 32px; }
.mt-5  { margin-top: 48px; }
.pt-0  { padding-top: 0 !important; }

.d-flex { display: flex; }
.align-center { align-items: center; }
.justify-between { justify-content: space-between; }
.flex-wrap { flex-wrap: wrap; }
.gap-2 { gap: 16px; }
.gap-3 { gap: 24px; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.grid-2-equal { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }

.rounded { border-radius: var(--radius); }
.overflow-hidden { overflow: hidden; }
.position-relative { position: relative; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 12px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.badge-blue   { background: rgba(0,87,184,0.1); color: var(--blue); }
.badge-gold   { background: rgba(201,162,39,0.1); color: var(--gold); }
.badge-green  { background: rgba(22,163,74,0.1); color: #16a34a; }
.badge-navy   { background: var(--navy); color: var(--white); }

/* Highlight box */
.highlight-box {
  background: linear-gradient(135deg, rgba(0,87,184,0.07), rgba(0,87,184,0.03));
  border-left: 4px solid var(--blue);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 16px 20px;
  margin: 16px 0;
}
.highlight-box.gold {
  background: linear-gradient(135deg, rgba(201,162,39,0.08), rgba(201,162,39,0.03));
  border-left-color: var(--gold);
}

/* Warning */
.alert-box {
  background: rgba(220,38,38,0.06);
  border: 1px solid rgba(220,38,38,0.2);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  font-size: 0.875rem;
  color: #b91c1c;
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.alert-box.warning { background: rgba(234,179,8,0.08); border-color: rgba(234,179,8,0.3); color: #854d0e; }
.alert-box.success { background: rgba(22,163,74,0.08); border-color: rgba(22,163,74,0.3); color: #166534; }

/* ============================================================
   RESPONSIVE — TABLET (≤1024px)
   ============================================================ */
@media (max-width: 1024px) {
  :root { --section-pad: 70px; }

  .main-nav { display: none; }
  .btn-header { display: none; }
  .hamburger { display: flex; }

  .features-grid  { grid-template-columns: repeat(2,1fr); }
  .services-grid  { grid-template-columns: repeat(2,1fr); }
  .courses-grid   { grid-template-columns: repeat(2,1fr); }
  .team-grid      { grid-template-columns: repeat(3,1fr); }
  .testimonials-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid    { grid-template-columns: 1fr 1fr; gap: 36px; }
  .pricing-grid   { grid-template-columns: 1fr 1fr; }
  .stats-grid     { grid-template-columns: repeat(2,1fr); }
  .stats-grid .stat-item:nth-child(even)::after { display: none; }
  .gallery-grid   { grid-template-columns: repeat(3,1fr); }
  .contact-layout { grid-template-columns: 1fr; }
  .news-featured  { grid-template-columns: 1fr; }
  .news-grid      { grid-template-columns: repeat(2,1fr); }
  .grid-2         { grid-template-columns: 1fr; gap: 36px; }
  .grid-2-equal   { grid-template-columns: 1fr; }
  .leader-card    { flex-direction: column; text-align: center; }
  .form-row       { grid-template-columns: 1fr; }
}

/* ============================================================
   RESPONSIVE — MOBILE (≤768px)
   ============================================================ */
@media (max-width: 768px) {
  :root { --section-pad: 56px; }

  h1 { font-size: 2rem; }
  h2 { font-size: 1.7rem; }

  .hero-slider { height: 88vh; max-height: none; }

  .slide-content {
    padding: 0 20px;
    padding-left: 20px;
  }
  .slide-title { font-size: clamp(2rem,8vw,3rem); }

  .trust-items   { gap: 0; }
  .trust-item    { padding: 6px 12px; font-size: 0.72rem; }

  .features-grid    { grid-template-columns: 1fr; }
  .services-grid    { grid-template-columns: 1fr; }
  .courses-grid     { grid-template-columns: 1fr; }
  .team-grid        { grid-template-columns: repeat(2,1fr); }
  .team-grid.three-col { grid-template-columns: 1fr 1fr; }
  .testimonials-grid  { grid-template-columns: 1fr; }
  .pricing-grid       { grid-template-columns: 1fr; }
  .stats-grid         { grid-template-columns: 1fr 1fr; }
  .gallery-grid       { grid-template-columns: repeat(2,1fr); }
  .facilities-grid    { grid-template-columns: 1fr 1fr; }
  .news-grid          { grid-template-columns: 1fr; }
  .footer-grid        { grid-template-columns: 1fr; }
  .footer-bottom      { flex-direction: column; text-align: center; }
  .slider-controls    { bottom: 20px; }
  .btn-group          { flex-direction: column; align-items: flex-start; }
  .btn-group.centered { align-items: center; }
  .section-header     { margin-bottom: 36px; }
  .cta-banner         { padding: 56px 0; }
}

@media (max-width: 480px) {
  .team-grid        { grid-template-columns: 1fr 1fr; }
  .gallery-grid     { grid-template-columns: repeat(2,1fr); }
  .facilities-grid  { grid-template-columns: 1fr; }
  .trust-item       { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.1); width: 100%; justify-content: center; }
  .stats-grid       { grid-template-columns: 1fr 1fr; }
  .stat-item        { padding: 28px 16px; }
  .stat-number      { font-size: 2.4rem; }
}

/* ============================================================
   PRINT
   ============================================================ */
@media print {
  #header, #footer, .hero-slider, .preloader, .cta-banner { display: none; }
  body { font-size: 12pt; }
}
