:root {
  --bg: #f2f6f8;
  --ink: #0e1c2f;
  --muted: #4b5b73;
  --accent: #e65100;
  --accent-2: #00796b;
  --surface: #ffffff;
  --border: #d8e0e7;
  --shadow: 0 10px 30px rgba(9, 27, 52, 0.1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Bai Jamjuree", "Tahoma", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 95% -20%, rgba(0, 121, 107, 0.15), transparent 35%),
    radial-gradient(circle at -10% 20%, rgba(230, 81, 0, 0.13), transparent 40%),
    var(--bg);
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  width: min(1120px, 92vw);
  margin: 0 auto;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: #000;
  color: #fff;
  padding: 0.7rem 1rem;
  z-index: 1000;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

.site-header {
  position: relative;
  overflow: clip;
  background:
    linear-gradient(120deg, rgba(14, 28, 47, 0.92), rgba(0, 121, 107, 0.85)),
    url("../../img/map-north-bank.png") center/cover;
  color: #f8fbff;
  padding-bottom: 2.7rem;
}

.hero-glow {
  position: absolute;
  width: 450px;
  height: 450px;
  border-radius: 50%;
  filter: blur(70px);
  background: rgba(255, 183, 77, 0.4);
  top: -150px;
  right: -100px;
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
  position: relative;
  z-index: 20;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.brand img {
  width: 56px;
}

.brand strong {
  display: block;
  font-family: "Chakra Petch", sans-serif;
  letter-spacing: 0.3px;
}

.brand span {
  font-size: 0.9rem;
  opacity: 0.9;
}

.menu-toggle {
  display: none;
  border: 1px solid rgba(255, 255, 255, 0.5);
  background: transparent;
  color: #fff;
  padding: 0.45rem 0.75rem;
  border-radius: 10px;
  font: inherit;
}

.main-nav > ul {
  display: flex;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 0.35rem;
}

.main-nav a,
.main-nav button {
  border: 0;
  background: transparent;
  color: #fff;
  font: inherit;
  padding: 0.6rem 0.8rem;
  border-radius: 10px;
  cursor: pointer;
}

.main-nav a:hover,
.main-nav button:hover,
.main-nav a:focus-visible,
.main-nav button:focus-visible {
  background: rgba(255, 255, 255, 0.14);
  outline: 0;
}

.main-nav a.active,
.main-nav .has-submenu.active > button {
  background: rgba(255, 255, 255, 0.22);
}

.has-submenu {
  position: relative;
}

.submenu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 260px;
  background: #fff;
  color: var(--ink);
  border-radius: 12px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
  padding: 0.5rem;
  display: block;
  list-style: none;
  margin: 0;
  z-index: 999;
}

.submenu li {
  display: block;
  width: 100%;
}

.submenu li + li {
  margin-top: 0.12rem;
}

.submenu a {
  color: var(--ink);
  display: block;
  width: 100%;
  padding: 0.42rem 0.6rem;
  line-height: 1.35;
  border-radius: 8px;
}

.has-submenu:hover .submenu,
.has-submenu:focus-within .submenu,
.has-submenu.open .submenu {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 2rem 0 1rem;
}

.eyebrow {
  display: inline-block;
  font-weight: 600;
  color: #ffe0b2;
  background: rgba(0, 0, 0, 0.2);
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
}

h1,
h2,
h3 {
  font-family: "Chakra Petch", sans-serif;
  line-height: 1.25;
  margin-top: 0;
}

h1 {
  margin: 0.7rem 0;
  font-size: clamp(1.9rem, 4.2vw, 3rem);
}

.lead {
  max-width: 820px;
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: #e9f2ff;
}

.hero-actions {
  margin-top: 1.3rem;
  display: flex;
  gap: 0.7rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  padding: 0.7rem 1rem;
  font-weight: 600;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-outline {
  border: 1px solid rgba(255, 255, 255, 0.6);
  color: #fff;
}

.hero-meta {
  margin-top: 1rem;
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.hero-meta span {
  font-size: 0.9rem;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
}

.section {
  padding: 4rem 0;
}

.section.alt {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.8), rgba(229, 242, 240, 0.8));
}

.section h2 {
  margin-bottom: 0.6rem;
  font-size: clamp(1.4rem, 3.4vw, 2.1rem);
}

.section-lead {
  margin-top: 0;
  color: var(--muted);
}

.timeline-grid,
.activity-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.timeline-grid article,
.activity-grid article {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1rem;
  box-shadow: var(--shadow);
}

.info-banners {
  margin-top: 1.2rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.info-banners img {
  border-radius: 14px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
}

.group-summary-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 1rem 0 1.25rem;
}

.group-summary-bar span {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.4rem 0.8rem;
  box-shadow: var(--shadow);
  font-weight: 600;
}

.skill-group-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.skill-group-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 1rem;
  box-shadow: var(--shadow);
}

.group-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.8rem;
  margin-bottom: 0.9rem;
}

.group-kicker {
  margin: 0 0 0.2rem;
  color: var(--accent-2);
  font-size: 0.85rem;
  font-weight: 700;
}

.group-head h3 {
  margin: 0;
  font-size: 1.05rem;
}

.group-count {
  white-space: nowrap;
  background: rgba(0, 121, 107, 0.12);
  color: #0d5b53;
  border-radius: 999px;
  padding: 0.35rem 0.7rem;
  font-size: 0.85rem;
  font-weight: 700;
}

.group-items {
  display: grid;
  gap: 0.65rem;
}

.group-item {
  background: #f9fbfc;
  border: 1px solid #edf2f5;
  border-radius: 14px;
  padding: 0.8rem;
}

.group-item-main {
  display: grid;
  gap: 0.15rem;
  margin-bottom: 0.45rem;
}

.group-item-main .en {
  color: var(--muted);
  font-size: 0.9rem;
}

.meta-row.compact {
  font-size: 0.85rem;
}

.home-groups .group-preview-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.45rem;
}

.home-groups .group-preview-list li {
  display: flex;
  justify-content: space-between;
  gap: 0.7rem;
  background: #f9fbfc;
  border: 1px solid #edf2f5;
  border-radius: 12px;
  padding: 0.6rem 0.75rem;
}

.home-groups .group-preview-list small {
  color: var(--muted);
  white-space: nowrap;
}

.section-actions {
  margin-top: 1.2rem;
}

.skill-card {
  background: #fff;
  border-radius: 16px;
  border: 1px solid var(--border);
  padding: 0.95rem;
  display: grid;
  gap: 0.4rem;
  box-shadow: var(--shadow);
}

.skill-card .index {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  background: rgba(0, 121, 107, 0.12);
}

.skill-card h3 {
  margin: 0;
  font-size: 1rem;
}

.skill-card .en {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.meta-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
}

.type {
  font-size: 0.85rem;
  color: #2f3f56;
}

.status {
  font-size: 0.8rem;
  border-radius: 999px;
  padding: 0.2rem 0.55rem;
  font-weight: 600;
}

.status.open {
  color: #0d6c62;
  background: #dbf3ef;
}

.status.soon {
  color: #8d4f00;
  background: #ffefd5;
}

.notice-box,
.contact-box {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1rem;
  box-shadow: var(--shadow);
}

.notice-box ul {
  margin-bottom: 0;
}

.split-layout {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 1.2rem;
  align-items: center;
}

.image-frame {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 1rem;
  box-shadow: var(--shadow);
}

.region-grid,
.stake-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.region-card,
.stake-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.region-card img {
  aspect-ratio: 16 / 8;
  object-fit: cover;
}

.region-card h3,
.region-card p,
.stake-card h3,
.stake-card p {
  padding-inline: 1rem;
}

.region-card h3,
.stake-card h3 {
  margin: 1rem 0 0.4rem;
}

.region-card p,
.stake-card p {
  margin: 0 0 1rem;
  color: var(--muted);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.chips span {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.38rem 0.8rem;
  box-shadow: var(--shadow);
}

.text-link {
  color: #005fb8;
  text-decoration: underline;
}

.media-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.media-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.embed-wrap {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #0f233a;
}

.embed-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.media-card-body {
  padding: 0.95rem 1rem 1rem;
}

.media-card-body h3 {
  margin: 0 0 0.35rem;
}

.media-card-body p {
  margin: 0 0 0.65rem;
  color: var(--muted);
}

.site-footer {
  background: #0f233a;
  color: #e7f0fb;
  padding: 1.3rem 0;
}

.footer-layout {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-host-link {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  margin-top: 0.35rem;
  padding: 0.5rem 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  transition: background 0.2s ease, transform 0.2s ease;
}

.footer-host-link:hover,
.footer-host-link:focus-visible {
  background: rgba(255, 255, 255, 0.14);
  transform: translateY(-1px);
  outline: 0;
}

.footer-host-logo {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  object-fit: contain;
  background: #fff;
  padding: 0.25rem;
  flex: 0 0 auto;
}

.footer-social {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-top: 0.4rem;
  padding: 0.55rem 0.85rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  font-weight: 600;
  transition: background 0.2s ease, transform 0.2s ease;
}

.footer-social:hover,
.footer-social:focus-visible {
  background: rgba(255, 255, 255, 0.18);
  transform: translateY(-1px);
  outline: 0;
}

.footer-social-icon {
  width: 1.1rem;
  height: 1.1rem;
  flex: 0 0 auto;
}

@media (max-width: 960px) {
  .timeline-grid,
  .activity-grid,
  .split-layout {
    grid-template-columns: 1fr;
  }

  .skill-group-grid,
  .skills-grid,
  .region-grid,
  .stake-grid,
  .info-banners,
  .media-card-grid {
    grid-template-columns: 1fr;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .main-nav {
    position: absolute;
    right: 0;
    top: calc(100% + 0.4rem);
    width: min(360px, 92vw);
    background: #10233b;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 14px;
    box-shadow: var(--shadow);
    padding: 0.5rem;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity 0.25s ease, transform 0.25s ease;
  }

  .main-nav.open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .main-nav > ul {
    flex-direction: column;
    align-items: stretch;
  }

  .has-submenu > button,
  .main-nav > ul > li > a {
    width: 100%;
    text-align: left;
  }

  .has-submenu .submenu {
    position: static;
    display: none;
    margin-top: 0.2rem;
    min-width: 0;
    padding: 0.35rem;
    opacity: 1;
    max-height: none;
    overflow: visible;
    pointer-events: auto;
    transform: none;
    transition: none;
  }

  .has-submenu.open .submenu {
    display: block;
  }

  .group-head,
  .home-groups .group-preview-list li {
    flex-direction: column;
  }

  .home-groups .group-preview-list small {
    white-space: normal;
  }
}