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

:root {
  --navy: #0b1f3a;
  --navy-light: #14335c;
  --blue-accent: #2f6fed;
  --blue-accent-hover: #245ad1;
  --white: #ffffff;
  --gray-bg: #f5f7fa;
  --gray-border: #e3e7ee;
  --text-dark: #101828;
  --text-muted: #5a6472;
  --radius: 14px;
  --container: 1140px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Kanit", "Segoe UI", sans-serif;
  color: var(--text-dark);
  background: var(--white);
  line-height: 1.6;
}

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

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

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

section {
  padding: 80px 0;
}

.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 48px;
}

.section-tag {
  display: inline-block;
  color: var(--blue-accent);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.section-head h2 {
  font-size: 2.1rem;
  color: var(--navy);
  margin-bottom: 12px;
}

.section-head p {
  color: var(--text-muted);
}

.bg-alt {
  background: var(--gray-bg);
}

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.2s ease;
  border: 2px solid transparent;
  cursor: pointer;
}

.btn-primary {
  background: var(--blue-accent);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--blue-accent-hover);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  border-color: var(--white);
  color: var(--white);
}

.btn-outline:hover {
  background: var(--white);
  color: var(--navy);
}

.btn-outline-navy {
  background: transparent;
  border-color: var(--navy);
  color: var(--navy);
}

.btn-outline-navy:hover {
  background: var(--navy);
  color: var(--white);
}

/* ===== Header / Nav ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--gray-border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
}

.logo {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: 0.02em;
}

.logo span {
  color: var(--blue-accent);
}

.logo-img {
  height: 34px;
  width: auto;
}

.footer-logo .logo-img {
  height: 30px;
  width: auto;
  filter: brightness(0) invert(1);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav-links a {
  font-weight: 500;
  color: var(--text-dark);
  position: relative;
  padding: 6px 0;
}

.nav-links a.active,
.nav-links a:hover {
  color: var(--blue-accent);
}

.nav-cta {
  margin-left: 8px;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}

.nav-toggle span {
  width: 26px;
  height: 3px;
  background: var(--navy);
  border-radius: 2px;
}

/* ===== Hero (Home) ===== */
.hero {
  position: relative;
  min-height: 620px;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 55%, #1c4b8f 100%);
  color: var(--white);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 85% 20%, rgba(47, 111, 237, 0.35), transparent 55%),
    radial-gradient(circle at 15% 85%, rgba(47, 111, 237, 0.25), transparent 50%);
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
  width: 100%;
}

.hero-badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 0.85rem;
  margin-bottom: 20px;
}

.hero-text h1 {
  font-size: 3rem;
  line-height: 1.2;
  margin-bottom: 20px;
}

.hero-text h1 em {
  font-style: normal;
  color: #7fa8ff;
}

.hero-text p {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 32px;
  max-width: 520px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-banner {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: linear-gradient(160deg, #1c4b8f, #0b1f3a);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 24px 48px rgba(11, 31, 58, 0.35);
}

.hero-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-banner .placeholder-label {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
  text-align: center;
  padding: 24px;
}

.hero-stats {
  display: flex;
  gap: 40px;
  margin-top: 40px;
  flex-wrap: wrap;
}

.hero-stats div strong {
  display: block;
  font-size: 1.6rem;
  color: var(--white);
}

.hero-stats div span {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
}

/* ===== Page Header (inner pages) ===== */
.page-header {
  background: linear-gradient(135deg, var(--navy), var(--navy-light));
  color: var(--white);
  padding: 90px 0 60px;
  text-align: center;
}

.page-header .section-tag {
  color: #9db8ff;
}

.page-header h1 {
  font-size: 2.4rem;
  margin-bottom: 14px;
}

.page-header p {
  color: rgba(255, 255, 255, 0.8);
  max-width: 560px;
  margin: 0 auto;
}

/* ===== Cards / Grid ===== */
.grid {
  display: grid;
  gap: 28px;
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

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

.card {
  background: var(--white);
  border: 1px solid var(--gray-border);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 32px rgba(11, 31, 58, 0.08);
}

.card-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: rgba(47, 111, 237, 0.12);
  color: var(--blue-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 18px;
}

.card-icon svg {
  width: 26px;
  height: 26px;
}

.card h3 {
  color: var(--navy);
  margin-bottom: 10px;
  font-size: 1.15rem;
}

.card p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* ===== CTA Band ===== */
.cta-band {
  background: var(--navy);
  color: var(--white);
  text-align: center;
  padding: 64px 0;
}

.cta-band h2 {
  font-size: 1.9rem;
  margin-bottom: 14px;
}

.cta-band p {
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 28px;
}

/* ===== Footer ===== */
.site-footer {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.75);
  padding: 56px 0 24px;
}

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

.footer-grid h4 {
  color: var(--white);
  margin-bottom: 16px;
  font-size: 1rem;
}

.footer-grid .logo {
  color: var(--white);
  margin-bottom: 12px;
  display: block;
}

.footer-grid p {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.65);
}

.footer-grid ul li {
  margin-bottom: 10px;
  font-size: 0.9rem;
}

.footer-grid ul li a:hover {
  color: var(--white);
}

.footer-bottom {
  padding-top: 20px;
  text-align: center;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
}

/* ===== Utility ===== */
.mt-40 { margin-top: 40px; }
.text-center { text-align: center; }

.data-status {
  text-align: center;
  color: var(--text-muted);
  padding: 32px 0;
}

.data-status[hidden] {
  display: none;
}

.price-tag {
  margin: 16px 0;
  font-weight: 700;
  color: var(--navy);
  font-size: 1.2rem;
}

.duration-tag {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-bottom: 20px;
}

.student-name {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 20px;
}

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
  }

  .hero-banner {
    order: -1;
    aspect-ratio: 16 / 9;
  }

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

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

@media (max-width: 720px) {
  .nav-links {
    position: fixed;
    top: 68px;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    align-items: flex-start;
    padding: 20px 24px;
    gap: 18px;
    border-bottom: 1px solid var(--gray-border);
    transform: translateY(-150%);
    opacity: 0;
    transition: all 0.25s ease;
    pointer-events: none;
  }

  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-toggle {
    display: flex;
  }

  .hero-text h1 {
    font-size: 2.1rem;
  }

  section {
    padding: 56px 0;
  }

  .grid-3,
  .grid-2 {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero-stats {
    gap: 24px;
  }
}
