:root {
  --plum: #b24770;
  --plum-soft: #f7e0eb;
  --navy: #071021;
  --navy-soft: #141c30;
  --accent-gold: #f5c86b;

  --text-main: #222222;
  --text-soft: #666666;
  --border-soft: #e5e5e5;
  --bg-soft: #f7f7fb;

  --radius-lg: 18px;
  --radius-md: 12px;
  --shadow-soft: 0 10px 30px rgba(0,0,0,0.05);
  --max-width: 1120px;
}

/* RESET */

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  font-family: "Kanit", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text-main);
  background-color: #ffffff;
  scroll-behavior: smooth;
}

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

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

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

/* ========== HERO + NAV ========== */

.hero-header {
  position: relative;
  padding: 120px 40px 80px;
  background:
    linear-gradient(160deg, rgba(7, 16, 33, 0.95), rgba(11, 21, 42, 0.96)),
    url("https://ccemagazine.com/wp-content/uploads/sites/11/2025/04/types-of-building-construction-types.png")
      center/cover no-repeat;
  color: #ffffff;
  overflow: hidden;
}

/* โลโก้ลอยด้านบนกลาง */

.hero-logo-floating {
  position: absolute;
  top: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-logo-floating img {
  width: 70px;
  height: auto;
}

/* layout ภายใน hero */

.hero-inner {
  max-width: 1120px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
}

/* NAV ด้านบน hero */

.hero-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 18px 40px 16px;
}

/* burger + icon user */

.nav-icon {
  background: transparent;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.nav-burger span {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: #ffffff;
  margin: 2px 0;
}

.nav-user-circle {
  width: 18px;
  height: 18px;
  border-radius: 999px;
  border: 2px solid #ffffff;
}

/* เมนูกลาง */

.hero-nav-menu {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 14px;
  text-transform: none;
}

.hero-nav-menu a {
  position: relative;
  color: rgba(255, 255, 255, 0.75);
  padding-bottom: 4px;
  transition: color 0.2s ease;
}

.hero-nav-menu a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--plum), var(--accent-gold));
  transition: width 0.2s ease;
}

.hero-nav-menu a:hover {
  color: #ffffff;
}

.hero-nav-menu a:hover::after,
.hero-nav-menu a.active::after {
  width: 100%;
}

.hero-nav-menu a.active {
  color: #ffffff;
}

/* hero content */

.hero-content {
  max-width: 780px;
  text-align: center;
  margin: 0 auto;
}

.hero-eyebrow {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 16px;
}

.hero-title-main {
  font-size: clamp(30px, 4vw, 40px);
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 18px;
  color: var(--plum);
}

.hero-subtitle-main {
  font-size: 14px;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.78);
  margin: 0 auto 26px;
}

.hero-cta-row {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-bottom: 18px;
}

.hero-btn-primary {
  padding: 10px 22px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(0, 0, 0, 0.35);
  color: #ffffff;
  font-size: 14px;
  cursor: pointer;
  backdrop-filter: blur(6px);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.45);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.hero-btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.55);
  background: rgba(0, 0, 0, 0.55);
}

.hero-btn-outline {
  padding: 9px 20px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: transparent;
  color: #ffffff;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.hero-btn-outline:hover {
  background: rgba(255, 255, 255, 0.08);
}

.hero-meta-main {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 28px;
}

/* จุดบ่งชี้ */

.hero-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
}

.hero-dots .dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.25);
}

.hero-dots .dot.active {
  width: 18px;
  background: #ffffff;
}

/* HERO RESPONSIVE */

@media (max-width: 880px) {
  .hero-header {
    padding: 110px 16px 60px;
  }

  .hero-nav {
    flex-wrap: wrap;
    justify-content: center;
    row-gap: 12px;
    padding: 16px 16px 14px;
  }

  .hero-nav-menu {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
  }

  .hero-nav-menu li a {
    font-size: 13px;
  }

  /* ซ่อน burger/user ใน mobile เพื่อไม่ให้เกะกะ */
  .nav-icon {
    display: none;
  }
}

@media (max-width: 600px) {
  .hero-content {
    text-align: left;
  }

  .hero-title-main {
    font-size: 26px;
  }

  .hero-cta-row {
    justify-content: flex-start;
  }
}

/* ========== SECTIONS ทั่วไป ========== */

.section {
  padding: 56px 0;
}

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

.section-header {
  margin-bottom: 20px;
}

.section-eyebrow {
  font-size: 12px;
  font-weight: 500;
  color: var(--plum);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 4px;
}

.section-title {
  font-size: 20px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 4px;
}

.section-desc {
  font-size: 14px;
  color: var(--text-soft);
  max-width: 640px;
}

/* ABOUT */

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 32px;
  align-items: flex-start;
}

.about-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-soft);
  padding: 18px 18px 16px;
  box-shadow: var(--shadow-soft);
  font-size: 13px;
  color: var(--text-soft);
}

.about-card h3 {
  font-size: 14px;
  color: var(--navy);
  margin-bottom: 6px;
}

.about-list {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.about-list li {
  position: relative;
  padding-left: 16px;
  margin-bottom: 4px;
}

.about-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--plum);
}

/* VISION & MISSION */

.vision-mission-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
  gap: 24px;
}

.card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-soft);
  padding: 18px 18px 16px;
  box-shadow: var(--shadow-soft);
  font-size: 13px;
}

.card h3 {
  font-size: 15px;
  color: var(--navy);
  margin-bottom: 6px;
}

.mission-list {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.mission-list li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 6px;
}

.mission-list span.bullet {
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: var(--plum-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  color: var(--plum);
  flex-shrink: 0;
}

/* SCOPE / PILLARS */

.pillars-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.pillar-card {
  background: #ffffff;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-soft);
  padding: 12px 12px 10px;
  font-size: 12px;
}

.pillar-card h4 {
  font-size: 13px;
  color: var(--navy);
  margin-bottom: 4px;
}

.pillar-card p {
  color: var(--text-soft);
  line-height: 1.5;
}

/* KNOWLEDGE / ARTICLES */

.cards-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.article-card {
  background: #ffffff;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-soft);
  padding: 12px 12px 10px;
  font-size: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.article-tag {
  font-size: 11px;
  color: var(--plum);
  background: var(--plum-soft);
  border-radius: 999px;
  padding: 3px 8px;
  align-self: flex-start;
}

.article-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-main);
}

.article-meta {
  font-size: 11px;
  color: var(--text-soft);
}

/* TRAINING */

.training-note {
  font-size: 12px;
  color: var(--text-soft);
  margin-bottom: 10px;
}

.timeline {
  list-style: none;
  padding-left: 0;
  margin: 0;
  border-left: 2px solid var(--border-soft);
  margin-left: 8px;
}

.timeline li {
  position: relative;
  padding-left: 16px;
  margin-bottom: 8px;
  font-size: 12px;
}

.timeline li::before {
  content: "";
  position: absolute;
  left: -6px;
  top: 4px;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--plum);
}

/* CONTACT */

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 24px;
  font-size: 13px;
}

.contact-line {
  margin-bottom: 4px;
  color: var(--text-soft);
}

.contact-label {
  font-weight: 500;
  color: var(--text-main);
}

.contact-box {
  background: #ffffff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-soft);
  padding: 16px 16px 14px;
  box-shadow: var(--shadow-soft);
}

/* FOOTER */

.footer {
  border-top: 1px solid var(--border-soft);
  padding: 16px 0 22px;
  font-size: 12px;
  color: var(--text-soft);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: space-between;
  align-items: center;
}

/* RESPONSIVE SECTIONS */

@media (max-width: 880px) {
  .section {
    padding: 40px 0;
  }

  .about-grid,
  .vision-mission-grid,
  .pillars-grid,
  .cards-3,
  .contact-grid {
    grid-template-columns: minmax(0, 1fr);
  }

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

@media (max-width: 600px) {
  .pillars-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .cards-3 {
    grid-template-columns: minmax(0, 1fr);
  }
}