:root {
  --bg: #eef4ff;
  --surface: #ffffff;
  --ink: #15235c;
  --muted: #56648d;
  --primary: #1e29b7;
  --primary-2: #5f22ff;
  --gold: #ffb400;
  --gold-2: #ffd669;
  --line: rgba(43, 67, 164, 0.12);
  --shadow: 0 14px 40px rgba(57, 84, 177, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Noto Sans Thai", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(109, 60, 255, 0.16), transparent 28%),
    radial-gradient(circle at top right, rgba(255, 195, 64, 0.18), transparent 22%),
    linear-gradient(180deg, #f6f9ff 0%, #edf3ff 100%);
}

.site-shell {
  width: min(100%, 1440px);
  margin: 0 auto;
  padding: 20px 20px 110px;
}

.web-topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 20px;
  padding: 16px 20px;
  margin-bottom: 18px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
}

.topbar-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  text-decoration: none;
  font: 800 1.6rem "Chakra Petch", sans-serif;
}

.brand-badge {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 18px;
  color: #fff;
  background: linear-gradient(135deg, #11b851, #068f3a);
  font-size: 1rem;
}

.web-nav {
  display: flex;
  justify-content: center;
  gap: 22px;
}

.web-nav a,
.section-head a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 800;
}

.topbar-actions {
  display: flex;
  gap: 12px;
}

.ghost-button,
.primary-button,
.readmore-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  padding: 0.9rem 1.2rem;
  text-decoration: none;
  font-weight: 800;
  cursor: pointer;
}

.ghost-button {
  color: var(--primary);
  background: #eef3ff;
}

.primary-button,
.readmore-button {
  color: #fff;
  background: linear-gradient(135deg, var(--primary-2), var(--primary));
}

.portal-home {
  display: grid;
  gap: 18px;
}

.hero-banner,
.announce-strip,
.home-section,
.content-card {
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.hero-banner {
  position: relative;
  overflow: hidden;
  min-height: 420px;
  padding: 32px 34px;
  background:
    radial-gradient(circle at 18% 30%, rgba(255, 255, 255, 0.82), transparent 30%),
    linear-gradient(120deg, #eef3ff 0%, #dce9ff 42%, #cfe3ff 62%, #f3f7ff 100%);
}

.hero-ribbon {
  position: absolute;
  left: -6%;
  width: 72%;
  height: 32px;
  border-radius: 999px;
  transform: rotate(-4deg);
  background: linear-gradient(90deg, var(--gold), #ffd86f 28%, #7f17ff 30%, #3c0acf 68%, #6e12ff);
}

.hero-ribbon-top {
  top: -10px;
  left: 44%;
  width: 40%;
  transform: rotate(2deg);
}

.hero-ribbon-bottom {
  bottom: 38px;
  left: -4%;
  width: 62%;
  box-shadow: 0 14px 28px rgba(85, 32, 190, 0.2);
}

.hero-content {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 220px 1fr 360px;
  align-items: center;
  gap: 26px;
  min-height: 356px;
}

.hero-seal {
  display: grid;
  place-items: center;
}

.seal-ring {
  width: 206px;
  height: 206px;
  padding: 14px;
  border-radius: 50%;
  background:
    linear-gradient(135deg, #6a27ff, #1938d8),
    #fff;
  box-shadow: inset 0 0 0 10px #ffffff, 0 20px 38px rgba(67, 73, 187, 0.18);
}

.seal-core {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 5px solid #f1b414;
  background: radial-gradient(circle at 30% 30%, #fff8e4, #fff 66%);
  color: #d29200;
  font: 700 2.2rem "Chakra Petch", sans-serif;
}

.hero-copy h1,
.hero-copy h2,
.hero-copy p,
.section-head h3,
.service-card h4,
.service-card p,
.news-card h4,
.news-meta,
.contact-chip p {
  margin: 0;
}

.hero-copy h1 {
  font: 700 clamp(4rem, 8vw, 6rem) "Chakra Petch", sans-serif;
  line-height: 0.88;
  letter-spacing: -0.04em;
  color: #1b33d0;
}

.hero-copy h2 {
  font: 700 clamp(2.2rem, 4vw, 3.4rem) "Chakra Petch", sans-serif;
  color: #1929b4;
  line-height: 1;
}

.hero-org {
  margin-top: 12px;
  font-size: 2rem;
  font-weight: 800;
  color: #1b276e;
}

.hero-quote {
  margin-top: 14px;
  font-size: 1.45rem;
  font-weight: 700;
  color: #5f22ff;
}

.hero-building {
  position: relative;
  align-self: stretch;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  padding-bottom: 12px;
}

.building-card {
  position: relative;
  width: 100%;
  max-width: 340px;
  height: 226px;
  border-radius: 22px 22px 0 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.94)),
    linear-gradient(180deg, #ecefff, #dbe6ff);
  box-shadow: 0 20px 34px rgba(62, 87, 176, 0.16);
}

.building-roof {
  position: absolute;
  left: 10%;
  right: 10%;
  top: 24px;
  height: 22px;
  border-radius: 10px 10px 2px 2px;
  background: linear-gradient(180deg, #e8eefb, #bfcdf3);
}

.building-columns {
  position: absolute;
  left: 12%;
  right: 12%;
  top: 48px;
  bottom: 26px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
}

.building-columns span {
  border-radius: 14px 14px 4px 4px;
  background: linear-gradient(180deg, #ffffff, #d8e0f4);
  box-shadow: inset 0 0 0 1px rgba(67, 91, 177, 0.08);
}

.building-base {
  position: absolute;
  left: 8%;
  right: 8%;
  bottom: 10px;
  height: 18px;
  border-radius: 6px;
  background: linear-gradient(180deg, #e5ebfa, #c6d3f1);
}

.flag {
  position: absolute;
  right: 12px;
  width: 56px;
  height: 34px;
  border-radius: 3px;
  box-shadow: 0 12px 18px rgba(54, 77, 152, 0.16);
}

.flag::before {
  content: "";
  position: absolute;
  left: -5px;
  top: -20px;
  bottom: -20px;
  width: 3px;
  background: #7d859a;
}

.flag-main {
  top: 26px;
  background: linear-gradient(180deg, #da2027 0 20%, #ffffff 20% 40%, #213db6 40% 60%, #ffffff 60% 80%, #da2027 80%);
}

.flag-sub {
  right: 116px;
  bottom: 70px;
  width: 34px;
  height: 24px;
  background: linear-gradient(180deg, #da2027 0 20%, #ffffff 20% 40%, #213db6 40% 60%, #ffffff 60% 80%, #da2027 80%);
}

.announce-strip {
  display: grid;
  grid-template-columns: 72px 120px 1fr 60px;
  align-items: center;
  gap: 18px;
  padding: 16px 18px;
}

.announce-icon {
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  border-radius: 18px;
  color: #fff;
  background: linear-gradient(135deg, #6b1fff, #9133ff);
  font-size: 1.8rem;
}

.announce-label {
  padding-right: 16px;
  border-right: 1px solid #dde5ff;
  color: #5f22ff;
  font-size: 1.7rem;
  font-weight: 800;
}

.announce-text {
  font-size: 1.5rem;
  font-weight: 700;
}

.announce-arrow {
  border: 0;
  background: none;
  color: #5f22ff;
  font-size: 3rem;
  cursor: pointer;
}

.home-section,
.content-card {
  padding: 20px;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}

.section-head h3 {
  font-size: 2rem;
  font-weight: 800;
}

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

.service-card {
  position: relative;
  overflow: hidden;
  min-height: 240px;
  padding: 22px 20px 26px;
  border: 1px solid rgba(104, 128, 220, 0.14);
  border-radius: 24px;
  text-decoration: none;
  color: var(--ink);
  box-shadow: inset 0 0 0 4px rgba(255, 255, 255, 0.6);
}

.service-card::before {
  content: "";
  position: absolute;
  inset: 20px 16px auto auto;
  width: 120px;
  height: 100px;
  opacity: 0.18;
  border-radius: 18px;
  background:
    linear-gradient(90deg, transparent 0 36%, currentColor 36% 38%, transparent 38% 100%),
    linear-gradient(transparent 0 72%, currentColor 72% 74%, transparent 74% 100%);
}

.tint-blue { background: linear-gradient(180deg, #f3f7ff, #eef4ff); color: #215ccf; }
.tint-violet { background: linear-gradient(180deg, #f7f3ff, #f3edff); color: #6731ec; }
.tint-orange { background: linear-gradient(180deg, #fff8ef, #fff3e3); color: #f19a14; }
.tint-green { background: linear-gradient(180deg, #eefbf3, #eaf8ef); color: #1ba84c; }
.tint-cyan { background: linear-gradient(180deg, #f0fbff, #ebf8ff); color: #1aa5cc; }
.tint-purple { background: linear-gradient(180deg, #f8f2ff, #f4eeff); color: #7a2cf6; }

.service-illustration {
  font-size: 4.8rem;
  line-height: 1;
}

.service-card h4 {
  margin-top: 18px;
  font-size: 2rem;
  font-weight: 800;
}

.service-card p {
  margin-top: 4px;
  font-size: 1.3rem;
  color: #3b4576;
}

.service-arrow {
  position: absolute;
  right: 18px;
  bottom: 18px;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  color: #fff;
  font-size: 1.2rem;
}

.service-arrow.blue { background: #2675ff; }
.service-arrow.violet { background: #7a2cf6; }
.service-arrow.orange { background: #ffab1d; }
.service-arrow.green { background: #24b649; }
.service-arrow.cyan { background: #16afd0; }
.service-arrow.purple { background: #7b31f6; }

.dual-grid {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 18px;
}

.news-media {
  position: relative;
  overflow: hidden;
  height: 250px;
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(50, 88, 178, 0.04), rgba(11, 22, 78, 0.3)),
    linear-gradient(135deg, #9ebd5c, #d3b17c 42%, #445d9f 100%);
}

.news-badge {
  position: absolute;
  left: 14px;
  top: 12px;
  padding: 0.5rem 0.95rem;
  border-radius: 999px;
  background: #ff455b;
  color: #fff;
  font-weight: 800;
}

.news-people {
  position: absolute;
  inset: auto 10% 16px 8%;
  display: flex;
  align-items: flex-end;
  gap: 26px;
}

.news-people span {
  position: relative;
  display: block;
  width: 68px;
  height: 150px;
  border-radius: 34px 34px 14px 14px;
  background: linear-gradient(180deg, #d6c29a 0 18%, #c79d63 18% 26%, #e7d8bd 26% 30%, #d7af69 30% 36%, #c7a573 36% 100%);
}

.news-people span::before {
  content: "";
  position: absolute;
  left: 12px;
  top: -18px;
  width: 44px;
  height: 26px;
  border-radius: 20px 20px 8px 8px;
  background: #80623e;
}

.news-card h4 {
  margin-top: 16px;
  font-size: 2rem;
  line-height: 1.3;
}

.news-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-top: 18px;
  color: var(--muted);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.stat-box {
  padding: 18px;
  border-radius: 20px;
}

.stat-blue { background: linear-gradient(180deg, #eef5ff, #f6fbff); }
.stat-violet { background: linear-gradient(180deg, #f6eeff, #fbf7ff); }
.stat-green { background: linear-gradient(180deg, #ebfff1, #f5fff8); }
.stat-mint { background: linear-gradient(180deg, #effff7, #f9fffb); }

.stat-icon {
  font-size: 2rem;
}

.stat-box strong {
  display: block;
  margin-top: 8px;
  font: 700 2.6rem "Chakra Petch", sans-serif;
  color: #1649cb;
}

.stat-box p {
  margin: 4px 0 0;
  line-height: 1.45;
  color: #384574;
  font-weight: 700;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
}

.contact-chip {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 16px;
  border: 1px solid rgba(104, 128, 220, 0.14);
  border-radius: 22px;
  background: #fff;
  color: var(--ink);
  text-decoration: none;
}

.chip-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  font-size: 1.8rem;
  font-weight: 800;
}

.chip-icon.green { color: #1fa85f; background: #e7fff1; }
.chip-icon.emerald { color: #19a64e; background: #ebfff1; }
.chip-icon.red { color: #ff5252; background: #fff0f0; }
.chip-icon.blue { color: #2c66e8; background: #edf2ff; }
.chip-icon.ocean { color: #1b78d0; background: #eef8ff; }

.contact-chip strong {
  display: block;
  font-size: 1.08rem;
}

.contact-chip p {
  color: var(--muted);
}

.bottom-nav {
  position: fixed;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  z-index: 40;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  width: min(1100px, calc(100% - 36px));
  padding: 12px;
  border-radius: 28px;
  background: linear-gradient(135deg, #1222a5, #122580, #081a6b);
  box-shadow: 0 20px 44px rgba(12, 28, 110, 0.28);
}

.bottom-nav a {
  display: grid;
  place-items: center;
  gap: 4px;
  padding: 10px 8px;
  color: rgba(255, 255, 255, 0.88);
  text-decoration: none;
  font-weight: 700;
}

.bottom-nav span {
  font-size: 1.9rem;
}

.bottom-nav a.is-active {
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.1);
}

@media (max-width: 1200px) {
  .hero-content {
    grid-template-columns: 180px 1fr 280px;
  }

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

@media (max-width: 980px) {
  .web-topbar,
  .hero-content,
  .dual-grid,
  .service-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .web-topbar {
    justify-items: start;
  }

  .web-nav,
  .topbar-actions {
    flex-wrap: wrap;
  }

  .hero-building {
    min-height: 240px;
  }

  .announce-strip {
    grid-template-columns: 60px 1fr 44px;
  }

  .announce-label {
    display: none;
  }
}

@media (max-width: 720px) {
  .site-shell {
    padding: 12px 12px 102px;
  }

  .web-topbar {
    padding: 14px;
    gap: 14px;
  }

  .topbar-brand {
    font-size: 1.2rem;
  }

  .brand-badge {
    width: 46px;
    height: 46px;
  }

  .web-nav {
    display: none;
  }

  .hero-banner {
    min-height: auto;
    padding: 18px;
  }

  .hero-content {
    gap: 14px;
    min-height: auto;
  }

  .seal-ring {
    width: 126px;
    height: 126px;
    padding: 10px;
  }

  .seal-core {
    font-size: 1.45rem;
  }

  .hero-copy h1 {
    font-size: 3.4rem;
  }

  .hero-copy h2 {
    font-size: 1.8rem;
  }

  .hero-org {
    font-size: 1.1rem;
  }

  .hero-quote {
    font-size: 0.98rem;
  }

  .announce-strip,
  .home-section,
  .content-card {
    padding: 14px;
    border-radius: 22px;
  }

  .announce-strip {
    gap: 12px;
  }

  .announce-icon {
    width: 48px;
    height: 48px;
    font-size: 1.4rem;
  }

  .announce-text {
    font-size: 1rem;
    line-height: 1.45;
  }

  .section-head h3 {
    font-size: 1.4rem;
  }

  .service-card {
    min-height: 184px;
  }

  .service-illustration {
    font-size: 3.2rem;
  }

  .service-card h4,
  .news-card h4 {
    font-size: 1.4rem;
  }

  .service-card p,
  .stat-box p,
  .contact-chip strong,
  .contact-chip p {
    font-size: 0.96rem;
  }

  .news-media {
    height: 180px;
  }

  .news-people span {
    width: 44px;
    height: 100px;
  }

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

  .stat-box strong {
    font-size: 1.8rem;
  }

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

  .contact-chip {
    padding: 12px;
  }

  .chip-icon {
    width: 42px;
    height: 42px;
    font-size: 1.35rem;
  }

  .bottom-nav {
    width: calc(100% - 18px);
    bottom: 8px;
    padding: 8px;
    border-radius: 22px;
  }

  .bottom-nav span {
    font-size: 1.4rem;
  }

  .bottom-nav small {
    font-size: 0.72rem;
  }
}
