/* ═══════════════════════════════════════════════════════════════
   site-chrome: header + footer กลางของเว็บ สำหรับหน้า landing static
   ทุก selector ขึ้นต้น .sc- เพื่อไม่ชนกับ CSS ของแต่ละหน้า
   แก้เมนู/footer: แก้ header.html / footer.html แล้วรัน
   node theconductor-nextjs/public/site-chrome/inject.mjs
   ═══════════════════════════════════════════════════════════════ */

.sc-header,
.sc-footer,
.sc-header *,
.sc-footer * {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

.sc-header {
  position: relative;
  z-index: 990;
  background: #fff;
  box-shadow: 0 2px 14px rgba(0, 32, 74, 0.08);
  font-family: "Poppins", "Prompt", "LINE Seed Sans TH", "Anuphan",
    "Noto Sans Thai", sans-serif;
}
.sc-bar {
  display: flex;
  align-items: center;
  gap: 18px;
  max-width: 1360px;
  margin: 0 auto;
  padding: 0 24px;
  /* 112px = ความสูงเมนูของหน้าเว็บหลัก (ธีมเดิม li padding 38px + line-height 34)
     ทั้งเว็บใช้ค่าเดียวกันหมด ห้ามแก้เฉพาะบางหน้า */
  min-height: 112px;
}
.sc-logo {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
}
.sc-logo img {
  height: 46px;
  width: auto;
  display: block;
}
.sc-logo .sc-logo-white {
  display: none;
}

/* ── เมนูหลัก (desktop) ── */
.sc-nav {
  flex: 1 1 auto;
  min-width: 0;
}
.sc-menu {
  list-style: none;
  display: flex;
  justify-content: center;
  align-items: center;
}
.sc-menu > li {
  position: static;
}
.sc-menu > li + li {
  margin-left: 6px;
}
.sc-menu > li > a {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 39px 8px;
  /* กำหนด line-height เอง กันหน้า Next.js รับค่าจาก style.css ของธีมมาแล้วแถบสูงไม่เท่ากัน
     34 + 39*2 = 112 เท่าความสูงแถบพอดี */
  line-height: 34px;
  font-size: 14.5px;
  font-weight: 600;
  color: #1A2F5A;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.2s ease;
}
.sc-menu > li > a:hover {
  color: #D2691E;
}
.sc-caret {
  font-size: 9px;
  line-height: 1;
}
.sc-caret::before {
  content: "▾";
}
.sc-acc {
  display: none;
}

/* ── mega panel (desktop: โชว์ตอน hover) ── */
.sc-mega {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  background: #fff;
  border-top: 3px solid #D2691E;
  border-radius: 0 0 16px 16px;
  box-shadow: 0 24px 44px rgba(0, 32, 74, 0.16);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all 0.22s ease;
  z-index: 995;
}
.sc-has-mega:hover > .sc-mega {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.sc-mega-inner {
  display: grid;
  grid-template-columns: 290px repeat(auto-fit, minmax(230px, 1fr));
  gap: 28px;
  max-width: 1140px;
  margin: 0 auto;
  padding: 30px 24px 34px;
}
.sc-mega-intro {
  border-right: 1px solid #e8eef4;
  padding-right: 26px;
}
.sc-mega-intro h3 {
  font-size: 21px;
  line-height: 1.35;
  color: #1A2F5A;
  margin-bottom: 10px;
}
.sc-mega-intro p {
  font-size: 14px;
  line-height: 1.75;
  color: #5c6b7a;
  margin-bottom: 16px;
}
.sc-mega-cta {
  display: inline-block;
  background: #D2691E;
  color: #fff;
  font-size: 13.5px;
  font-weight: 600;
  padding: 9px 18px;
  border-radius: 999px;
  text-decoration: none;
  transition: background 0.2s ease;
}
.sc-mega-cta:hover {
  background: #BF5F1B;
}
.sc-mg-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}
/* ไม่มีพื้นกระเบื้องแล้ว ตัวไอคอนวางบนพื้นขาวตรงๆ เพราะภาพมีสี CI ครบในตัวอยู่แล้ว
   กล่องยังคงไว้เพื่อกันความกว้างให้หัวข้อเรียงตรงกันทุกกลุ่ม */
.sc-mg-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  font-size: 20px;
  flex-shrink: 0;
}
/* ไฟล์ต้นทาง 48px แสดงที่ 30px ยังเหลือความละเอียด 1.6 เท่า คมบนจอ retina */
.sc-mg-icon img {
  display: block;
  width: 30px;
  height: 30px;
}
.sc-mg-title {
  font-size: 14.5px;
  font-weight: 700;
  color: #1A2F5A;
}
.sc-mega-group ul {
  list-style: none;
}
.sc-mega-group ul li + li {
  margin-top: 2px;
}
.sc-mega-group ul a {
  display: block;
  font-size: 14px;
  color: #44546a;
  text-decoration: none;
  padding: 6px 8px;
  border-radius: 8px;
  transition: all 0.15s ease;
}
.sc-mega-group ul a:hover {
  color: #D2691E;
  background: #FDF8F4;
}

/* ── ปุ่ม CTA ขวา ── */
.sc-cta {
  flex: 0 0 auto;
  background: #1A2F5A;
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  padding: 16px 36px;
  line-height: 1.24; /* รวมแล้วสูง 50.6px เท่าปุ่ม Contact Us ของหน้าเว็บหลัก */
  border-radius: 999px;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.2s ease;
}
.sc-cta:hover {
  background: #D2691E;
  color: #fff;
}

/* ── sticky ตอน scroll (chrome.js เติม .sc-stuck) ── */
.sc-header.sc-stuck {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: #1A2F5A;
  box-shadow: 0 4px 18px rgba(0, 22, 51, 0.3);
  animation: scSlideDown 0.35s ease;
}
@keyframes scSlideDown {
  from {
    transform: translateY(-100%);
  }
  to {
    transform: translateY(0);
  }
}
.sc-header.sc-stuck .sc-bar {
  min-height: 86px; /* เท่า .stricky-fixed ของธีมเดิม */
}
.sc-header.sc-stuck .sc-logo-dark {
  display: none;
}
.sc-header.sc-stuck .sc-logo-white {
  display: block;
  height: 40px;
}
.sc-header.sc-stuck .sc-menu > li > a {
  color: #fff;
  padding-top: 26px; /* 34 + 26*2 = 86 */
  padding-bottom: 26px;
}
.sc-header.sc-stuck .sc-menu > li > a:hover {
  color: #EBBC9A;
}
.sc-header.sc-stuck .sc-cta {
  background: #D2691E;
}
.sc-header.sc-stuck .sc-cta:hover {
  background: #BF5F1B;
}
/* กันเนื้อหากระโดดตอน header เปลี่ยนเป็น fixed */
.sc-spacer {
  display: none;
}
.sc-spacer.sc-on {
  display: block;
  height: 112px; /* เท่าความสูงแถบตอนยังไม่ติดบน กันเนื้อหากระโดด */
}

/* ── hamburger (ซ่อนบน desktop) ── */
.sc-burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  margin-left: auto;
  padding: 8px;
  background: none;
  border: 2px solid #1A2F5A;
  border-radius: 8px;
  cursor: pointer;
}
.sc-burger span {
  display: block;
  height: 2.5px;
  border-radius: 2px;
  background: #1A2F5A;
  transition: all 0.2s ease;
}
.sc-header.sc-stuck .sc-burger {
  border-color: #fff;
}
.sc-header.sc-stuck .sc-burger span {
  background: #fff;
}

/* ── มือถือ / จอแคบ ── */
@media (max-width: 1199.98px) {
  /* มือถือใช้พื้น navy โลโก้ขาว ชุดเดียวกับเมนูมือถือของหน้าเว็บหลัก */
  .sc-header {
    background: #1A2F5A;
  }
  .sc-bar {
    min-height: 82px; /* เท่าเมนูมือถือของหน้าเว็บหลัก */
    gap: 12px;
    padding: 0 16px;
  }
  .sc-logo img {
    height: 52px;
  }
  .sc-logo .sc-logo-dark {
    display: none;
  }
  .sc-logo .sc-logo-white {
    display: block;
  }
  .sc-burger {
    border-color: #fff;
  }
  .sc-burger span {
    background: #fff;
  }
  .sc-burger {
    display: flex;
  }
  .sc-cta {
    display: none;
  }
  .sc-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    box-shadow: 0 18px 30px rgba(0, 32, 74, 0.18);
    max-height: calc(100vh - 64px);
    overflow-y: auto;
    z-index: 996;
  }
  .sc-header.sc-open .sc-nav {
    display: block;
  }
  .sc-menu {
    display: block;
    padding: 8px 0 16px;
  }
  .sc-menu > li + li {
    margin-left: 0;
    border-top: 1px solid #eef2f6;
  }
  .sc-menu > li > a {
    padding: 14px 20px;
    font-size: 15.5px;
  }
  .sc-menu > li.sc-has-mega {
    position: relative;
  }
  .sc-has-mega > a {
    padding-right: 60px;
  }
  .sc-acc {
    display: block;
    position: absolute;
    top: 7px;
    right: 12px;
    width: 38px;
    height: 38px;
    background: #f2f6fa;
    border: none;
    border-radius: 8px;
    color: #1A2F5A;
    font-size: 13px;
    cursor: pointer;
  }
  .sc-acc::before {
    content: "▾";
  }
  .sc-acc-open > .sc-acc {
    background: #1A2F5A;
    color: #fff;
  }
  .sc-acc-open > .sc-acc::before {
    content: "▴";
  }
  .sc-mega {
    display: none;
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    border-top: none;
    border-radius: 0;
    box-shadow: none;
    background: #f8fafc;
  }
  .sc-acc-open > .sc-mega {
    display: block;
  }
  .sc-mega-inner {
    display: block;
    padding: 6px 20px 14px;
  }
  .sc-mega-intro {
    display: none;
  }
  .sc-mega-group {
    padding-top: 12px;
  }
  .sc-mega-group ul a {
    padding: 8px 10px;
  }
  /* มือถือไม่ต้องย่อแถบตอนติดบน (สูง 82 เท่าเดิม) กันเมนูขยับ */
  .sc-header.sc-stuck .sc-bar {
    min-height: 82px;
  }
  /* ติดบนบนมือถือ: คงพื้น navy ชุดเดิมไว้ เปลี่ยนแค่เงา */
  .sc-header.sc-stuck {
    background: #1A2F5A;
    box-shadow: 0 4px 18px rgba(0, 22, 51, 0.3);
  }
  .sc-header.sc-stuck .sc-logo-dark {
    display: none;
  }
  .sc-header.sc-stuck .sc-logo-white {
    display: block;
    height: 52px;
  }
  .sc-header.sc-stuck .sc-burger {
    border-color: #fff;
  }
  .sc-header.sc-stuck .sc-burger span {
    background: #fff;
  }
  .sc-spacer.sc-on {
    height: 82px;
  }
}

/* ═══ footer ═══ */
.sc-footer {
  text-align: left;
  background: #f5f5f5;
  font-family: "Poppins", "Prompt", "LINE Seed Sans TH", "Anuphan",
    "Noto Sans Thai", sans-serif;
  /* เว้นให้เห็นพื้นหลังของหน้าคั่นก่อนถึง footer
     หน้า landing พื้น navy จะได้เห็นเป็นกรอบล้อมแผงเนื้อหามุมมน
     ไม่ใช่แผงสว่างชนขอบ footer พอดีจนดูเหมือนโดนตัดกลาง */
  margin-top: 34px;
}
.sc-footer-main {
  max-width: 1360px;
  margin: 0 auto;
  padding: 56px 24px 40px;
  display: grid;
  grid-template-columns: 1.1fr 1.4fr 1fr 1.3fr 0.9fr;
  gap: 32px;
}
.sc-footer-logo img {
  height: 52px;
  width: auto;
  display: block;
}
.sc-social {
  display: flex;
  gap: 10px;
  margin-top: 18px;
}
/* ลุคเดียวกับ footer เว็บหลัก: วงกลมเทาอ่อน ไอคอนสีแบรนด์
   (.sc-footer นำหน้าเพื่อชนะกฎสีตัวหนังสือรวมของ footer ที่อยู่ท้ายไฟล์) */
/* style.css ของธีมสั่ง br{display:none} ไว้ใน @media (max-width:1199px)
   = ต่ำกว่า 1200px ทุก <br> ทั้งเว็บหาย ที่อยู่ใน footer เลยต่อกันเป็นพืดไม่มีเว้นวรรค
   ต้องเจาะจงกว่า br เปล่าๆ ถึงจะชนะ จึงนำหน้าด้วย .sc-footer
   ห้ามลดเหลือ br เปล่าๆ เพราะจะไปเปิด <br> ในหัวข้อ hero ของธีมที่เขาตั้งใจซ่อนบนจอเล็ก */
.sc-footer br {
  display: block;
}

.sc-footer .sc-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #eceff3;
  text-decoration: none;
  transition: background 0.2s ease;
}
.sc-footer .sc-social a[aria-label="LinkedIn"] {
  color: #0a66c2;
}
.sc-footer .sc-social a[aria-label="Facebook"] {
  color: #1877f2;
}
.sc-footer .sc-social a:hover {
  background: #dde3ea;
}
.sc-fw-title {
  font-size: 17px;
  font-weight: 700;
  color: #1A2F5A;
  margin-bottom: 16px;
}
.sc-footer p,
.sc-footer li,
.sc-footer a {
  font-size: 14.5px;
  line-height: 1.8;
  color: #55606c;
  text-decoration: none;
}
.sc-footer-col p + p {
  margin-top: 6px;
}
.sc-footer-col ul {
  list-style: none;
}
.sc-footer-col ul a:hover {
  color: #D2691E;
}
.sc-footer-bottom {
  border-top: 1px solid #e2e8f0;
  text-align: center;
  padding: 18px 24px;
}
.sc-footer-bottom p {
  font-size: 13.5px;
  color: #7a8694;
}
@media (max-width: 991.98px) {
  .sc-footer-main {
    grid-template-columns: 1fr 1fr;
    padding: 44px 20px 30px;
  }
}
@media (max-width: 575.98px) {
  .sc-footer-main {
    grid-template-columns: 1fr;
    gap: 26px;
  }
  .sc-footer {
    margin-top: 22px;
  }
}

/* ── รายการเมนูที่ยังไม่เปิดใช้งาน (ไม่ใช่ลิงก์ กดไม่ได้) ── */
.sc-mega .sc-soon {
  display: block;
  padding: 7px 10px;
  font-size: 14px;
  color: #9AA5B4;
  cursor: default;
}
.sc-mega .sc-soon em {
  font-style: normal;
  font-size: 11.5px;
  letter-spacing: 0.02em;
  color: #B6BFCB;
  white-space: nowrap;
}
/* ตัวเดียวกันในฝั่ง footer ซึ่งพื้นสว่างกว่า จึงต้องกำหนดสีแยก
   (.sc-footer นำหน้าเพื่อชนะกฎสีตัวหนังสือรวมของ footer ที่อยู่ท้ายไฟล์) */
.sc-footer .sc-soon {
  display: inline-block;
  font-size: 14.5px;
  line-height: 1.8;
  color: #9AA5B4;
  cursor: default;
}
.sc-footer .sc-soon em {
  font-style: normal;
  font-size: 11.5px;
  letter-spacing: 0.02em;
  color: #B6BFCB;
  white-space: nowrap;
}
