:root {
  --navy: #0b1f3a;
  --navy-soft: #132b4f;
  --white: #ffffff;
  --gold: #c9a34a;
  --text: #1a1a1a;
  --muted: #5e6470;
  --bg-soft: #f4f7fb;
  --shadow: 0 10px 25px rgba(11, 31, 58, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Noto Sans Thai", sans-serif;
  color: var(--text);
  line-height: 1.7;
  background: var(--white);
}

.container {
  width: min(1120px, 92%);
  margin: 0 auto;
}

.section {
  padding: 82px 0;
}

.section h2 {
  margin-top: 0;
  font-size: clamp(1.7rem, 2.3vw, 2.3rem);
  color: var(--navy);
  margin-bottom: 1.2rem;
}

.section-alt {
  background: var(--bg-soft);
}

.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(11, 31, 58, 0.96);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.nav-wrapper {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
}

.brand-mark {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--gold);
  color: var(--navy);
  border-radius: 50%;
  font-weight: 800;
}

.brand-text {
  color: var(--white);
  font-weight: 700;
  letter-spacing: 0.3px;
}

.nav {
  display: flex;
  gap: 1.2rem;
}

.nav a {
  color: var(--white);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.96rem;
  opacity: 0.92;
}

.nav a:hover {
  color: var(--gold);
}

.menu-toggle {
  display: none;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: var(--white);
  padding: 0.35rem 0.6rem;
  border-radius: 8px;
  font-size: 1.1rem;
}

.hero {
  position: relative;
  min-height: 78vh;
  display: grid;
  place-items: center;
  color: var(--white);
  background:
    linear-gradient(rgba(11, 31, 58, 0.8), rgba(11, 31, 58, 0.75)),
    radial-gradient(circle at 20% 10%, #23497f, transparent 40%),
    radial-gradient(circle at 80% 80%, #17396a, transparent 35%),
    #0b1f3a;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0), rgba(11, 31, 58, 0.2));
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: left;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 0.9rem;
  color: var(--gold);
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-size: 0.85rem;
}

.hero h1 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.2;
}

.hero h1 span {
  color: var(--gold);
}

.hero-description {
  max-width: 780px;
  margin: 1.1rem 0 1.6rem;
  color: #f2f5fa;
}

.btn {
  display: inline-block;
  border: 0;
  text-decoration: none;
  cursor: pointer;
  border-radius: 999px;
  padding: 0.78rem 1.35rem;
  font-weight: 700;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--gold);
  color: var(--navy);
  box-shadow: 0 8px 18px rgba(201, 163, 74, 0.3);
}

.grid-3,
.about-grid,
.about-images,
.info-grid,
.contact-grid,
.footer-grid {
  display: grid;
  gap: 1.1rem;
}

.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.about-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.about-images {
  margin-top: 1.1rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.management-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.1rem;
}

.partners-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.2rem;
  align-items: stretch;
}

.partner-card {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  height: 100%;
}

.partner-link {
  display: block;
  border-radius: 12px;
  overflow: hidden;
}

.partner-link img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  display: block;
  border-radius: 12px;
  transition: transform 0.25s ease, filter 0.25s ease;
}

.partner-link:hover img {
  transform: scale(1.03);
  filter: brightness(0.97);
}

.partner-card h3 {
  margin: 0.15rem 0 0.1rem;
}

.partner-card .btn {
  margin-top: auto;
  align-self: flex-start;
}

.manager-card h3 {
  margin-bottom: 0.2rem;
}

.manager-role {
  margin-top: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.btn-line {
  margin-top: 0.8rem;
  background: #06c755;
  color: #fff;
  box-shadow: 0 8px 18px rgba(6, 199, 85, 0.25);
}

.image-card {
  padding: 0.6rem;
}

.zoomable-image {
  display: block;
  border-radius: 10px;
  overflow: hidden;
  cursor: zoom-in;
}

.zoomable-image img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  border-radius: 10px;
  display: block;
  transition: transform 0.25s ease, filter 0.25s ease;
}

.zoomable-image:hover img {
  transform: scale(1.02);
  filter: brightness(0.97);
}

.image-card figcaption {
  margin-top: 0.65rem;
  color: var(--muted);
  font-size: 0.92rem;
  text-align: center;
}

.info-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.contact-grid {
  grid-template-columns: 1fr 1fr;
}

.footer-grid {
  grid-template-columns: 1.2fr 1fr 1fr;
}

.card {
  background: var(--white);
  border: 1px solid #e6eaf0;
  border-radius: 14px;
  padding: 1.2rem 1.1rem;
  box-shadow: var(--shadow);
}

.card h3 {
  margin-top: 0;
  color: var(--navy);
}

.service-card .icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: #eef3fb;
  margin-bottom: 0.7rem;
  font-size: 1.2rem;
}

.info-item {
  background: linear-gradient(180deg, #ffffff, #f9fbff);
  border: 1px solid #dfe6f1;
  border-left: 4px solid var(--gold);
  border-radius: 12px;
  padding: 1rem;
}

.info-item .label {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.info-item .value {
  margin: 0.3rem 0 0;
  color: var(--navy);
  font-size: 1.15rem;
  font-weight: 700;
}

.map-wrap {
  margin-top: 0.8rem;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #dce4f1;
}

.map-wrap iframe {
  width: 100%;
  height: 250px;
  border: 0;
}

.form-group {
  display: flex;
  flex-direction: column;
  margin-bottom: 0.85rem;
}

.form-group label {
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 0.35rem;
}

.form-group input,
.form-group textarea {
  border: 1px solid #cad5e4;
  border-radius: 10px;
  padding: 0.72rem 0.85rem;
  font: inherit;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201, 163, 74, 0.2);
}

.error-message {
  min-height: 1em;
  margin-top: 0.28rem;
  color: #cc2b2b;
  font-size: 0.83rem;
}

.form-success {
  margin-top: 0.85rem;
  color: #12733c;
  font-weight: 600;
}

.footer {
  background: var(--navy);
  color: #f0f3f8;
  padding-top: 42px;
}

.footer-logo {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--gold);
  margin-top: 0;
}

.footer-title {
  color: var(--gold);
  font-weight: 700;
  margin-top: 0;
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-links li + li {
  margin-top: 0.4rem;
}

.footer-links a {
  color: #f0f3f8;
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--gold);
}

.copyright {
  text-align: center;
  margin-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  padding: 14px 0 18px;
  font-size: 0.9rem;
  color: #d7deea;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal.show {
  opacity: 1;
  transform: translateY(0);
}

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(6, 12, 24, 0.92);
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 1rem;
  z-index: 2000;
}

.lightbox.show {
  display: flex;
}

.lightbox img {
  max-width: min(1200px, 96vw);
  max-height: 82vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
  background: #fff;
}

#lightboxCaption {
  margin: 0.75rem 0 0;
  color: #f5f7fb;
  font-size: 1rem;
  text-align: center;
}

.lightbox-close {
  position: absolute;
  top: 14px;
  right: 18px;
  border: 0;
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  font-size: 1.65rem;
  line-height: 1;
  cursor: pointer;
}

@media (max-width: 992px) {
  .grid-3,
  .about-grid,
  .about-images,
  .info-grid,
  .management-grid,
  .partners-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .contact-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .menu-toggle {
    display: inline-block;
  }

  .nav {
    position: absolute;
    top: 72px;
    right: 4%;
    left: 4%;
    background: var(--navy-soft);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 0.8rem;
    display: none;
    flex-direction: column;
  }

  .nav.show {
    display: flex;
  }

  .grid-3,
  .about-grid,
  .about-images,
  .info-grid,
  .management-grid,
  .partners-grid {
    grid-template-columns: 1fr;
  }

  .zoomable-image img {
    height: auto;
    max-height: 420px;
  }

  .lightbox img {
    max-width: 96vw;
    max-height: 76vh;
  }

  .hero {
    min-height: 72vh;
  }

  .section {
    padding: 64px 0;
  }
}
