/* โหลดฟอนต์ FC Minimal (ต้องอยู่บนสุดของไฟล์ ก่อนกฎอื่น) */
@import url("../fonts/fonts.css");

:root {
  /* Color styles */
  --kpn-green-orange-orange-50: #FEF3E9;
  --kpn-green-orange-orange-100: #FCDABA;
  --kpn-green-orange-orange-200: #FBC899;
  --kpn-green-orange-orange-300: #F9AF6B;
  --kpn-green-orange-orange-400: #F89F4E;
  --kpn-green-orange-orange-500: #F68722;
  --kpn-green-orange-orange-600: #E07B1F;
  --kpn-green-orange-orange-700: #AF6018;
  --kpn-green-orange-orange-800: #874A13;
  --kpn-green-orange-orange-900: #67390E;
  --kpn-green-green-green-50: #EFF8ED;
  --kpn-green-green-green-100: #CFE8C6;
  --kpn-green-green-green-200: #B7DDAA;
  --kpn-green-green-green-300: #96CD83;
  --kpn-green-green-green-400: #82C36B;
  --kpn-green-green-green-500: #63B446;
  --kpn-green-green-green-600: #5AA440;
  --kpn-green-green-green-700: #468032;
  --kpn-green-green-green-800: #366327;
  --kpn-green-green-green-900: #2A4C1D;
  --kpn-green-blue-blue-50: #E9F7FC;
  --kpn-green-blue-blue-100: #BAE5F6;
  --kpn-green-blue-blue-200: #98D8F2;
  --kpn-green-blue-blue-300: #6AC7EC;
  --kpn-green-blue-blue-400: #4DBCE9;
  --kpn-green-blue-blue-500: #20ABE3;
  --kpn-green-blue-blue-600: #1D9CCF;
  --kpn-green-blue-blue-700: #1779A1;
  --kpn-green-blue-blue-800: #125E7D;
  --kpn-green-blue-blue-900: #0D485F;
  --kpn-green-grey-grey-50: #F0F0F0;
  --kpn-green-grey-grey-100: #CFCFCF;
  --kpn-green-grey-grey-200: #B8B8B8;
  --kpn-green-grey-grey-300: #979898;
  --kpn-green-grey-grey-400: #838484;
  --kpn-green-grey-grey-500: #646565;
  --kpn-green-grey-grey-600: #5B5C5C;
  --kpn-green-grey-grey-700: #474848;
  --kpn-green-grey-grey-800: #373838;
  --kpn-green-grey-grey-900: #2A2A2A;

  /* Text-size styles */
  --fc-minimal-display-96-semibold: 96px;
  --fc-minimal-display-96-medium: 96px;
  --fc-minimal-display-96-regular: 96px;
  --fc-minimal-display-64-semibold: 64px;
  --fc-minimal-display-64-medium: 64px;
  --fc-minimal-display-64-regular: 64px;
  --fc-minimal-heading-48-semibold: 48px;
  --fc-minimal-heading-48-medium: 48px;
  --fc-minimal-heading-48-regular: 48px;
  --fc-minimal-heading-40-semibold: 40px;
  --fc-minimal-heading-40-medium: 40px;
  --fc-minimal-heading-40-regular: 40px;
  --fc-minimal-heading-36-semibold: 36px;
  --fc-minimal-heading-36-medium: 36px;
  --fc-minimal-heading-36-regular: 36px;
  --fc-minimal-heading-36-semibold: 36px;
  --fc-minimal-heading-32-semibold: 32px;
  --fc-minimal-heading-32-medium: 32px;
  --fc-minimal-heading-32-regular: 32px;
  --fc-minimal-heading-30-semibold: 30px;
  --fc-minimal-heading-30-medium: 30px;
  --fc-minimal-heading-30-regular: 30px;
  --fc-minimal-paragraph-large-semibold: 24px;
  --fc-minimal-paragraph-large-medium: 24px;
  --fc-minimal-paragraph-large-regular: 24px;
  --fc-minimal-paragraph-regular-semibold: 20px;
  --fc-minimal-paragraph-regular-medium: 20px;
  --fc-minimal-paragraph-regular-regular: 20px;
  --fc-minimal-paragraph-small-semibold: 18px;
  --fc-minimal-paragraph-small-medium: 18px;
  --fc-minimal-paragraph-small-regular: 18px;
  --fc-minimal-paragraph-detail-semibold: 16px;
  --fc-minimal-paragraph-detail-medium: 16px;
  --fc-minimal-paragraph-detail-regular: 16px;

}

/* ==========================================================================
   HEADER (KPN)
   โครงสร้างแบบ TEBP (Bootstrap 5 navbar + dropdown + เมนูมือถือ fullscreen)
   ปรับเป็นธีม KPN: ใช้ token สี/ฟอนต์จาก :root ด้านบน
   - default                   = พื้นขาว ตัวอักษรเทา
   - .site-header--transparent = พื้นโปร่งใส ตัวอักษรขาว
   - navbar-expand-xl : เมนูเต็ม >= 1200px / ต่ำกว่านั้นเป็นเมนูมือถือ fullscreen
   ========================================================================== */

.site-header.navbar {
  padding: 0;
  background-color: #ffffff;
  box-shadow: 0 2px 3px rgba(19, 19, 22, 0.08);
  font-family: "FC Minimal", sans-serif;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 1030;
  transform: translateY(0);
  transition: background-color 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease,
    transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

/* เลื่อนลง = ซ่อน header ขึ้นด้านบน, เลื่อนขึ้น = โชว์กลับมา (setupHeaderScroll ใน kpn-header.js) */
.site-header.navbar.site-header--hidden {
  transform: translateY(-100%);
}

.site-header__inner {
  align-items: center;
  gap: 16px;
  padding: 10px 16px;
  border-bottom: 0.8px solid var(--kpn-green-grey-grey-100);
}

/* --- Logo ---
   ชุดโลโก้เลือกจาก assets/js/brand-config.js
   คุมด้วยความกว้างอย่างเดียว + height:auto เพื่อให้ ratio ตรงตามไฟล์เสมอ
   ความสูงกล่อง 60px คงไว้เพื่อล็อกความสูง header ที่ 80px (<1200px) */
.site-header__logo {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: auto;
  height: 60px;
  padding: 0;
  margin: 0;
  flex-shrink: 0;
}

.site-header__logo-img {
  display: block;
  width: clamp(112px, 12vw, 148px);
  height: auto;
}

/* ปรับขนาดตามชุดโลโก้จาก brand registry โดยไม่ทับ transform animation เดิม */
[data-kpn-logo] {
  scale: var(--kpn-brand-logo-scale, 1);
}

.site-header__logo--sm {
  width: auto;
  height: auto;
}

.site-header__logo--sm .site-header__logo-img {
  width: clamp(104px, 26vw, 132px);
  height: auto;
}

/* --- ปุ่ม hamburger --- */
.site-header .navbar-toggler {
  border: none;
}

.site-header .navbar-toggler:focus {
  box-shadow: none;
}

/* --- หัวเมนูมือถือ (โลโก้ + ปุ่มปิด) --- */
.mobile-menu-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin-bottom: 16px;
}

.mobile-menu-head .site-header__logo--sm {
  justify-content: flex-start;
  margin-right: auto;
}

.mobile-menu-head .btn-close-menu {
  margin-left: auto;
}

.btn-close-menu {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0;
  background: none;
  border: none;
  cursor: pointer;
  font-size: var(--fc-minimal-paragraph-small-regular);
  color: var(--kpn-green-green-green-600);
}

/* --- พื้นที่ขวา (top + bottom) --- */
.site-header__main {
  width: 100%;
}

/* --- แถวบน: ราคาหุ้น / SET --- */
.site-header__top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  padding: 8px 0;
}

.set-item {
  display: flex;
  align-items: center;
  padding: 6px 8px;
  font-size: var(--fc-minimal-paragraph-detail-regular);
  line-height: normal;
  white-space: nowrap;
  color: var(--kpn-green-grey-grey-500);
}

.set-item--up {
  color: var(--kpn-green-green-green-600);
}

.set-item--down {
  color: #D92D20;
}

/* --- แถวล่าง: เมนู + ภาษา --- */
.site-header__bottom {
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

/* --- เมนู (navbar-nav) --- */
.main-nav {
  align-items: stretch;
}

.main-nav .nav-link {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: var(--fc-minimal-paragraph-small-regular);
  line-height: normal;
  color: var(--kpn-green-grey-grey-500);
  transition: color 0.15s ease, border-color 0.15s ease;
}

.main-nav .nav-link:hover,
.main-nav .nav-link:focus,
.main-nav .nav-item.dropdown:is(:hover, .is-mega-open)>.nav-link {
  color: var(--kpn-green-orange-orange-500) !important;
}

/* --- awwwards hover: text roll-up (mask) — ตัวอักษรเลื่อนขึ้น สำเนาเลื่อนเข้าแทน --- */
.main-nav .nav-item__label.nav-roll {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
}

.nav-roll__inner {
  position: relative;
  display: block;
  transition: transform 0.5s cubic-bezier(0.76, 0, 0.24, 1);
}

.nav-roll__text {
  display: block;
  line-height: 1.35;
  /* เผื่อสระบน/ล่างไทยไม่ให้โดน overflow ตัด */
}

.nav-roll__text--dup {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  white-space: nowrap;
}

.main-nav .nav-link:hover .nav-roll__inner,
.main-nav .nav-item.dropdown:is(:hover, .is-mega-open)>.nav-link .nav-roll__inner {
  transform: translateY(-100%);
}

.nav-item__caret {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 14px;
  width: 14px;
  height: 14px;
  color: currentColor;
  transition: transform 0.3s ease;
}

.nav-item__caret svg {
  display: block;
  width: 14px;
  height: 14px;
  transform: rotate(90deg);
  transition: transform 0.38s cubic-bezier(0.76, 0, 0.24, 1);
}

.main-nav .nav-item.dropdown:is(:hover, .is-mega-open)>.nav-link .nav-item__caret {
  transform: none;
}

.main-nav .nav-item.dropdown:is(:hover, .is-mega-open)>.nav-link .nav-item__caret svg {
  transform: rotate(-90deg);
}

/* เคารพผู้ใช้ที่ลดการเคลื่อนไหว: คงตัวอักษรนิ่ง ใช้แค่ feedback สี */
@media (prefers-reduced-motion: reduce) {

  .nav-roll__inner,
  .nav-item__caret,
  .nav-item__caret svg,
  .main-nav .dropdown-menu,
  .main-nav .dropdown-menu .dropdown-item {
    transition: none;
  }

  .main-nav .nav-link:hover .nav-roll__inner,
  .main-nav .nav-item.dropdown:is(:hover, .is-mega-open)>.nav-link .nav-roll__inner {
    transform: none;
  }
}

/* --- Dropdown (flyout บน desktop) --- */
.main-nav .dropdown-menu {
  border: none;
  border-radius: 12px;
  padding: 8px 0;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  min-width: 240px;
  font-size: var(--fc-minimal-paragraph-detail-regular);
  font-family: "FC Minimal", sans-serif;
}

.main-nav .dropdown-item {
  padding: 10px 24px;
  color: var(--kpn-green-grey-grey-500);
  white-space: normal;
}

.main-nav .dropdown-item:hover,
.main-nav .dropdown-item:focus {
  background-color: #ffffff;
  color: var(--kpn-green-orange-orange-500);
}

.dropdown-submenu-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.dropdown-group__label {
  display: block;
  padding: 10px 24px 6px;
  font-weight: 500;
  color: var(--kpn-green-green-green-600);
}

.main-nav .dropdown-submenu-list .dropdown-item {
  padding-top: 7px;
  padding-bottom: 7px;
  padding-left: 32px;
  font-size: 0.92em;
}

.main-nav .dropdown-item--topic {
  font-weight: 500;
  color: var(--kpn-green-green-green-600);
}

/* --- สลับภาษา TH | EN --- */
.lang-switch {
  display: flex;
  align-items: center;
  padding: 6px 8px 8px 8px;
}

.lang-switch__item {
  display: flex;
  align-items: center;
  height: 44px;
  padding: 8px 16px;
  font-size: var(--fc-minimal-paragraph-small-regular);
  line-height: normal;
  text-decoration: none;
  white-space: nowrap;
  color: var(--kpn-green-grey-grey-400);
}

.lang-switch__item--active {
  color: var(--kpn-green-grey-grey-500);
}

.lang-switch__divider {
  width: 1px;
  height: 20px;
  background-color: var(--kpn-green-grey-grey-200);
}

/* ==========================================================================
   HEADER — Desktop (>= 1200px : กางเมนูเต็มแนวนอน 2 แถวชิดขวา)
   ========================================================================== */
@media (min-width: 1200px) {
  .site-header__inner {
    flex-wrap: nowrap;
    padding: 0px clamp(24px, 3vw, 80px);
  }

  .site-header__main {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
  }

  .site-header__top {
    justify-content: flex-end;
    width: 100%;
    padding: 0 16px;
  }

  .set-item {
    height: 44px;
    padding: 8px;
  }

  .site-header__bottom {
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
    width: 100%;
    padding: 0 8px;
  }

  .main-nav {
    flex-direction: row;
    align-items: center;
  }

  .main-nav .nav-item.dropdown {
    position: relative;
  }

  .main-nav .nav-link {
    height: 44px;
    padding: 8px 10px;
    font-size: var(--fc-minimal-paragraph-detail-regular);
    border-bottom: 3px solid transparent;
  }

  /* .main-nav .nav-link:hover,
  .main-nav .nav-item.dropdown:is(:hover, .is-mega-open) > .nav-link {
    border-bottom-color: var(--kpn-green-orange-orange-500);
  } */

  /* เปิด dropdown ด้วย hover — fade + slide-up (awwwards reveal) */
  .main-nav .dropdown-menu {
    position: absolute;
    display: block;
    margin-top: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: opacity 0.3s ease,
      transform 0.35s cubic-bezier(0.76, 0, 0.24, 1),
      visibility 0.3s;
    pointer-events: none;
  }

  .main-nav .nav-item.dropdown:is(:hover, .is-mega-open)>.dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
  }

  .main-nav .dropdown-menu--ir {
    left: auto;
    right: 0;
    width: min(880px, calc(100vw - 48px));
    max-height: calc(100vh - 104px);
    padding: 18px;
    overflow-y: auto;
    grid-template-columns: repeat(4, minmax(180px, 1fr));
    gap: 10px 18px;
  }

  .main-nav .nav-item--ir:is(:hover, .is-mega-open)>.dropdown-menu--ir {
    display: grid;
  }

  .main-nav .dropdown-menu--ir>.dropdown-group,
  .main-nav .dropdown-menu--ir>li {
    min-width: 0;
  }

  .main-nav .dropdown-menu--ir .dropdown-group__label,
  .main-nav .dropdown-menu--ir .dropdown-item {
    padding-left: 10px;
    padding-right: 10px;
  }

  /* dropdown items เผยแบบ fade-up ไล่ทีละอัน (stagger) ตอนเปิด */
  .main-nav .dropdown-menu .dropdown-item {
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.35s ease, transform 0.35s ease,
      color 0.15s ease, background-color 0.15s ease;
  }

  .main-nav .nav-item.dropdown:is(:hover, .is-mega-open)>.dropdown-menu .dropdown-item {
    opacity: 1;
    transform: translateY(0);
  }

  /* Mega menu fallback: link text must remain visible when the menu opens
     by keyboard focus or before the editorial mega stylesheet has loaded. */
  .main-nav .nav-item--mega:is(:hover, .is-mega-open) > .dropdown-menu .dropdown-item,
  .main-nav .nav-item--mega:focus-within > .dropdown-menu .dropdown-item {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .main-nav .nav-item.dropdown:is(:hover, .is-mega-open)>.dropdown-menu li:nth-child(1) .dropdown-item {
    transition-delay: 0.04s;
  }

  .main-nav .nav-item.dropdown:is(:hover, .is-mega-open)>.dropdown-menu li:nth-child(2) .dropdown-item {
    transition-delay: 0.08s;
  }

  .main-nav .nav-item.dropdown:is(:hover, .is-mega-open)>.dropdown-menu li:nth-child(3) .dropdown-item {
    transition-delay: 0.12s;
  }

  .main-nav .nav-item.dropdown:is(:hover, .is-mega-open)>.dropdown-menu li:nth-child(4) .dropdown-item {
    transition-delay: 0.16s;
  }

  .main-nav .nav-item.dropdown:is(:hover, .is-mega-open)>.dropdown-menu li:nth-child(5) .dropdown-item {
    transition-delay: 0.20s;
  }
}

/* ==========================================================================
   HEADER — Desktop แคบ (1400–1511px : เมนูเริ่มแน่น → ลดระยะ/ฟอนต์ให้พอดี ไม่บีบ)
   ========================================================================== */
@media (min-width: 1200px) and (max-width: 1599.98px) {
  .site-header__inner {
    padding: 0 clamp(16px, 2vw, 40px);
  }

  .site-header__bottom {
    padding: 0 4px;
  }

  .main-nav .nav-link {
    padding: 8px 7px;
    font-size: 14px;
    /* ไม่มี token 14px — ใส่ตรง ๆ ตามแนวปฏิบัติระบบ */
  }

  /* คั่นเมนู/ภาษาให้กระชับ */
  .lang-switch {
    margin-left: 6px;
  }

  /* text เปลี่ยนภาษาให้เท่ากับเมนู (14px) + ลด padding ให้กระชับ */
  .lang-switch__item {
    padding: 8px 10px;
    font-size: 14px;
  }
}

/* ==========================================================================
   HEADER — Mobile (< 1200px : เมนู fullscreen overlay)
   ========================================================================== */
@media (max-width: 1199.98px) {

  /* ระยะขวาของ hamburger = padding ของ .site-header__inner (16px)
     + padding-inline ของ .navbar-toggler (12px) = 28px
     → เว้นซ้ายให้โลโก้เท่ากัน ไม่ให้ดูชิดขอบ
     ใช้ selector ลูกตรง เพื่อไม่ให้กระทบ .site-header__logo--sm ในเมนู overlay
     ที่ยึด padding 24px ของ .navbar-collapse อยู่แล้ว */
  .site-header__inner > .site-header__logo {
    padding-left: 12px;
  }

  .site-header .navbar-collapse {
    position: fixed;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    box-sizing: border-box;
    width: 100vw;
    /* iOS Safari: 100vh = ความสูงตอนแถบเครื่องมือหุบ (สูงกว่าจอที่เห็นจริง)
       ห้ามใส่ min-height: 100vh — จะทับ 100dvh ทำให้แผงสูงเกินจอ ท้ายเมนู (สลับภาษา TH/EN)
       ไปจมอยู่ใต้แถบเครื่องมือ และเลื่อนลงไปไม่ถึงเพราะเนื้อหายังไม่ล้นกล่อง */
    height: 100vh;
    height: 100dvh;
    max-height: none;
    z-index: 1050;
    background-color: #ffffff;
    padding: 1.5rem;
    padding-bottom: calc(1.5rem + env(safe-area-inset-bottom, 0px));
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    visibility: hidden;
    pointer-events: none;
    opacity: 1;
    transform: none;
    clip-path: inset(0 0 100% 0);
    box-shadow: 0 24px 64px rgba(16, 43, 47, 0.14);
    transition:
      clip-path 0.72s cubic-bezier(0.76, 0, 0.24, 1),
      visibility 0s linear 0.72s;
    will-change: clip-path;
  }

  .site-header .navbar-collapse.show {
    display: flex !important;
  }

  .site-header .navbar-collapse.collapsing {
    display: flex !important;
    height: 100dvh !important;
    overflow-y: auto;
  }

  .site-header.site-header--menu-open .navbar-collapse {
    visibility: visible;
    pointer-events: auto;
    clip-path: inset(0 0 0 0);
    transition-delay: 0s;
  }

  .site-header.site-header--menu-preparing .navbar-collapse {
    visibility: visible;
    pointer-events: none;
    clip-path: inset(0 0 100% 0);
  }

  .site-header.site-header--menu-closing .navbar-collapse {
    pointer-events: none;
    clip-path: inset(0 0 100% 0);
  }

  .site-header.site-header--menu-open .navbar-collapse .site-header__main {
    flex: 1 0 auto;
    min-height: 0;
  }

  .site-header .navbar-collapse .mobile-menu-head > *,
  .site-header .navbar-collapse .site-header__top .set-item,
  .site-header .navbar-collapse .main-nav > .nav-item,
  .site-header .navbar-collapse .lang-switch {
    opacity: 0;
    transform: translateY(26px);
    transition:
      opacity 0.38s ease,
      transform 0.68s cubic-bezier(0.16, 1, 0.3, 1);
    transition-delay: 0s;
    will-change: opacity, transform;
  }

  .site-header .navbar-collapse .mobile-menu-head > * {
    transform: translateY(-18px);
  }

  .site-header.site-header--menu-open:not(.site-header--menu-closing)
    .navbar-collapse .mobile-menu-head > *,
  .site-header.site-header--menu-open:not(.site-header--menu-closing)
    .navbar-collapse .site-header__top .set-item,
  .site-header.site-header--menu-open:not(.site-header--menu-closing)
    .navbar-collapse .main-nav > .nav-item,
  .site-header.site-header--menu-open:not(.site-header--menu-closing)
    .navbar-collapse .lang-switch {
    opacity: 1;
    transform: translateY(0);
    transition-delay: var(--menu-open-delay, 180ms);
  }

  .site-header.site-header--menu-closing
    .navbar-collapse .mobile-menu-head > *,
  .site-header.site-header--menu-closing
    .navbar-collapse .site-header__top .set-item,
  .site-header.site-header--menu-closing
    .navbar-collapse .main-nav > .nav-item,
  .site-header.site-header--menu-closing
    .navbar-collapse .lang-switch {
    opacity: 0;
    transform: translateY(-14px);
    transition-duration: 0.24s, 0.36s;
    transition-delay: var(--menu-close-delay, 0ms);
  }

  .site-header__top {
    padding: 8px 0 16px;
  }

  .main-nav {
    flex-direction: column;
  }

  .main-nav .nav-link {
    justify-content: space-between;
    padding: 14px 4px;
    border-bottom: 1px solid var(--kpn-green-grey-grey-50);
  }

  .nav-item__caret {
    flex-basis: 20px;
    width: 20px;
    height: 20px;
  }

  .nav-item__caret svg {
    width: 20px;
    height: 20px;
    transform: none;
  }

  .main-nav .nav-item.dropdown:is(:hover, .is-mega-open)>.nav-link .nav-item__caret svg {
    transform: none;
  }

  .main-nav .nav-item.dropdown:is(:hover, .is-mega-open)>.nav-link .nav-item__caret {
    transform: translateX(3px);
  }

  /* บนมือถือใช้แผง fullscreen แทน dropdown ปกติ */
  .main-nav .dropdown-menu {
    display: none !important;
  }

  .lang-switch {
    padding: 14px 4px;
  }

  @media (prefers-reduced-motion: reduce) {
    .site-header .navbar-collapse,
    .site-header .navbar-collapse .mobile-menu-head > *,
    .site-header .navbar-collapse .site-header__top .set-item,
    .site-header .navbar-collapse .main-nav > .nav-item,
    .site-header .navbar-collapse .lang-switch {
      transition-duration: 0.01ms !important;
      transition-delay: 0ms !important;
    }
  }
}

/* The loader must not remain a containing block for the fullscreen menu. */
.site-header.site-header--menu-open {
  transform: none !important;
  opacity: 1 !important;
  visibility: visible !important;
}

html.mobile-nav-open,
body.mobile-nav-open {
  overflow: hidden !important;
  overscroll-behavior: none;
}

/* ชั้นสีวางอยู่หลังแผงขาว: ตอนปิดเมนูจะเผยสีต่อท้ายเหมือน loader */
.kpn-menu-transition {
  position: fixed;
  inset: 0;
  overflow: hidden;
  visibility: hidden;
  pointer-events: none;
}

.kpn-menu-transition.is-playing {
  visibility: visible;
}

.kpn-menu-transition__layer {
  position: absolute;
  inset: -2px;
  will-change: transform;
}

.kpn-menu-transition__layer--green {
  z-index: 3;
  background: var(--kpn-green-green-green-600, #5AA440);
}

.kpn-menu-transition__layer--orange {
  z-index: 2;
  background: var(--kpn-green-orange-orange-600, #E07B1F);
}

.kpn-menu-transition__layer--blue {
  z-index: 1;
  background: var(--kpn-green-blue-blue-600, #1D9CCF);
}

.kpn-menu-transition.is-menu-close {
  z-index: 1049;
}

.kpn-menu-transition.is-menu-close .kpn-menu-transition__layer {
  transform: translate3d(0, 0, 0);
  animation: kpn-menu-trail-up 0.58s cubic-bezier(0.76, 0, 0.24, 1) both;
}

.kpn-menu-transition.is-menu-close .kpn-menu-transition__layer--green {
  animation-delay: 0.12s;
}

.kpn-menu-transition.is-menu-close .kpn-menu-transition__layer--orange {
  animation-delay: 0.18s;
}

.kpn-menu-transition.is-menu-close .kpn-menu-transition__layer--blue {
  animation-delay: 0.24s;
}

@keyframes kpn-menu-trail-up {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(0, -105%, 0); }
}

@media (prefers-reduced-motion: reduce) {
  .kpn-menu-transition {
    display: none !important;
  }
}

/* Archived draft kept out of the active cascade; the maintained component
   lives in style-mega.css and is loaded after the site system stylesheet. */
@media (min-width: 99999px) {
  .main-nav .mega-menu {
    top: 96px;
    width: min(1360px, calc(100vw - 48px));
    grid-template-columns: 270px repeat(2, minmax(240px, 1fr)) 270px;
    grid-auto-rows: minmax(76px, auto);
    column-gap: 28px;
    row-gap: 0;
    padding: 10px;
    border: 0;
    border-radius: 16px;
    background: #fcfbfc;
    box-shadow: 0 18px 50px rgba(42, 42, 42, 0.13);
    transform: translate(-50%, 40px);
    transition: opacity 0.2s ease-out,
      transform 0.2s ease-out,
      visibility 0.2s ease-out;
  }

  .main-nav .nav-item--mega:is(:hover, .is-mega-open) > .mega-menu,
  .main-nav .nav-item--mega:focus-within > .mega-menu {
    transform: translate(-50%, 0);
  }

  .mega-menu__intro {
    grid-column: 1;
    grid-row: 1 / span 3;
    justify-content: flex-start;
    min-height: 294px;
    padding: 26px 24px;
    border-radius: 8px;
    background: linear-gradient(180deg, #f3f3f3 0%, #ffffff 100%);
  }

  .mega-menu__intro::before {
    display: none;
  }

  .mega-menu__eyebrow {
    margin-bottom: 20px;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.08em;
    color: var(--kpn-green-grey-grey-500);
  }

  .mega-menu__title {
    width: 100%;
    padding: 12px 14px;
    border-radius: 7px;
    background: var(--kpn-green-green-green-100);
    font-size: 18px;
    font-weight: 500;
    line-height: 1.25;
    color: var(--kpn-green-grey-grey-900);
  }

  .mega-menu__intro p {
    display: none;
  }

  .mega-menu__intro-link {
    margin-top: auto;
    padding-top: 14px;
    border-top: 0;
    font-size: 14px;
    color: var(--kpn-green-grey-grey-700);
    text-decoration: underline;
    text-underline-offset: 5px;
  }

  .mega-menu__intro-link:hover,
  .mega-menu__intro-link:focus {
    color: var(--kpn-green-green-green-700);
    text-decoration: none;
  }

  .mega-menu__link {
    min-width: 0;
    border-bottom: 1px solid var(--kpn-green-grey-grey-50);
  }

  .mega-menu__link .dropdown-item,
  .main-nav .nav-item--mega:is(:hover, .is-mega-open) > .mega-menu .mega-menu__link .dropdown-item,
  .main-nav .nav-item--mega:focus-within > .mega-menu .mega-menu__link .dropdown-item {
    position: relative;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    min-height: 76px;
    padding: 14px 30px 14px 4px;
    border: 0;
    border-radius: 0;
    background: transparent;
    font-size: 17px;
    font-weight: 400;
    line-height: 1.25;
    color: var(--kpn-green-grey-grey-800);
    opacity: 1;
    transform: none;
    transition: color 0.2s ease;
  }

  .mega-menu__link .dropdown-item::after {
    content: "→";
    position: absolute;
    right: 4px;
    top: 50%;
    font-size: 18px;
    color: var(--kpn-green-grey-grey-300);
    transform: translateY(-50%);
    transition: transform 0.25s ease, color 0.2s ease;
  }

  .mega-menu__link .dropdown-item > span {
    display: none;
  }

  .mega-menu__link .dropdown-item:hover,
  .mega-menu__link .dropdown-item:focus,
  .main-nav .nav-item--mega:is(:hover, .is-mega-open) > .mega-menu .mega-menu__link .dropdown-item:hover,
  .main-nav .nav-item--mega:focus-within > .mega-menu .mega-menu__link .dropdown-item:focus {
    background: transparent;
    color: var(--kpn-green-green-green-700);
    transform: none;
  }

  .mega-menu__link .dropdown-item:hover::after,
  .mega-menu__link .dropdown-item:focus::after {
    color: var(--kpn-green-orange-orange-500);
    transform: translate(5px, -50%);
  }

  .mega-menu__feature {
    grid-column: 4;
    grid-row: 1 / span 3;
    min-height: 294px;
    border-radius: 8px;
    background: linear-gradient(180deg, #f3f3f3 0%, #ffffff 100%);
  }

  .mega-menu__feature::before {
    inset: 18px 18px auto;
    height: 138px;
    border-radius: 4px;
    background: var(--mega-image) center / cover no-repeat;
    transform: none;
    transition: none;
  }

  .mega-menu__feature:hover::before {
    transform: none;
  }

  .mega-menu__feature-link {
    justify-content: flex-end;
    min-height: inherit;
    padding: 176px 20px 22px;
    color: var(--kpn-green-grey-grey-800);
  }

  .mega-menu__feature-link > span:first-child {
    margin-bottom: 5px;
    font-size: 13px;
    color: var(--kpn-green-grey-grey-500);
    opacity: 1;
  }

  .mega-menu__feature-link strong {
    padding-right: 28px;
    font-size: 17px;
    font-weight: 500;
    line-height: 1.25;
  }

  .mega-menu__arrow {
    right: 18px;
    bottom: 20px;
    width: auto;
    height: auto;
    border-radius: 0;
    background: transparent;
    color: var(--kpn-green-grey-grey-500);
  }

  .mega-menu__feature-link:hover .mega-menu__arrow {
    background: transparent;
    color: var(--kpn-green-orange-orange-500);
    transform: translate(4px, -4px);
  }

  .mega-menu__feature--color::before {
    background:
      linear-gradient(135deg, rgba(99, 180, 70, 0.92), rgba(54, 99, 39, 0.96)),
      url("../images/footer-bg.webp") center / cover no-repeat;
  }

  .mega-menu--four .mega-menu__intro,
  .mega-menu--four .mega-menu__feature {
    grid-row-end: span 2;
    min-height: 230px;
  }

  .mega-menu--four .mega-menu__feature::before {
    height: 104px;
  }

  .mega-menu--four .mega-menu__feature-link {
    padding-top: 138px;
  }

  .main-nav .mega-menu--three {
    grid-template-columns: 270px repeat(3, minmax(190px, 1fr)) 270px;
    grid-auto-rows: 220px;
  }

  .mega-menu--three .mega-menu__intro,
  .mega-menu--three .mega-menu__feature {
    min-height: 220px;
  }

  .mega-menu--three .mega-menu__link {
    border-bottom: 0;
  }

  .mega-menu--three .mega-menu__link .dropdown-item {
    justify-content: flex-start;
    padding-top: 70px;
    font-size: 18px;
  }

  .mega-menu--three .mega-menu__feature::before {
    height: 96px;
  }

  .mega-menu--three .mega-menu__feature-link {
    padding-top: 130px;
  }

  .main-nav .mega-menu--ir {
    width: min(1460px, calc(100vw - 48px));
    grid-template-columns: 250px repeat(3, minmax(205px, 1fr)) 280px;
    grid-auto-rows: minmax(190px, auto);
    gap: 0 26px;
    padding: 10px;
  }

  .mega-menu--ir .mega-menu__intro,
  .mega-menu--ir .mega-menu__feature {
    min-height: 390px;
  }

  .main-nav .mega-menu--ir .dropdown-group {
    padding: 20px 0 14px;
    border: 0;
    border-bottom: 1px solid var(--kpn-green-grey-grey-50);
    border-radius: 0;
    background: transparent;
    opacity: 1;
    transform: none;
    transition: none;
  }

  .main-nav .mega-menu--ir .dropdown-group:hover {
    border-color: var(--kpn-green-grey-grey-50);
    background: transparent;
    transform: none;
  }

  .main-nav .mega-menu--ir .dropdown-group__label {
    padding: 0 0 12px;
    font-size: 16px;
    color: var(--kpn-green-grey-grey-900);
  }

  .main-nav .mega-menu--ir .dropdown-submenu-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 5px;
    padding: 0;
  }

  .main-nav .mega-menu--ir .dropdown-submenu-list .dropdown-item {
    position: relative;
    display: inline-block;
    width: fit-content;
    padding: 1px 0;
    font-size: 13px;
    line-height: 1.25;
    opacity: 1;
    transform: none;
  }

  .main-nav .mega-menu--ir .dropdown-submenu-list .dropdown-item::after {
    content: "";
    position: absolute;
    left: 0;
    right: auto;
    bottom: -1px;
    width: 0;
    height: 1px;
    background: var(--kpn-green-green-green-700);
    transition: width 0.25s ease;
  }

  .main-nav .mega-menu--ir .dropdown-submenu-list .dropdown-item:hover::after,
  .main-nav .mega-menu--ir .dropdown-submenu-list .dropdown-item:focus::after {
    width: 100%;
  }

  .mega-menu__feature--report {
    background: linear-gradient(180deg, #f3f3f3 0%, #ffffff 100%);
  }

  .mega-menu__report-link {
    display: grid;
    grid-template-rows: 170px 1fr;
    gap: 16px;
    padding: 18px;
    background: transparent;
    color: var(--kpn-green-grey-grey-900);
  }

  .mega-menu__report-link img {
    position: static;
    grid-row: 1;
    width: 100%;
    height: 170px;
    border-radius: 4px;
    object-fit: cover;
    object-position: 50% 43%;
    transform: none;
    transition: none;
  }

  .mega-menu__report-link:hover img {
    transform: none;
  }

  .mega-menu__report-copy {
    grid-row: 2;
  }

  .mega-menu__report-copy small {
    margin-bottom: 6px;
    color: var(--kpn-green-grey-grey-500);
  }

  .mega-menu__report-copy strong {
    font-size: 19px;
    line-height: 1.12;
  }

  .mega-menu__report-copy > span {
    margin-top: 10px;
    font-size: 13px;
    text-decoration: underline;
    text-underline-offset: 4px;
  }

  .mega-menu__report-copy b {
    width: auto;
    height: auto;
    border-radius: 0;
    background: transparent;
    color: var(--kpn-green-orange-orange-500);
  }

  .mega-menu__report-link:hover .mega-menu__report-copy b {
    transform: translate(3px, -3px);
  }

  .mega-menu__intro,
  .mega-menu__feature,
  .mega-menu__link,
  .mega-menu--ir .dropdown-group,
  .nav-item--mega:is(:hover, .is-mega-open) .mega-menu__intro,
  .nav-item--mega:is(:hover, .is-mega-open) .mega-menu__feature,
  .nav-item--mega:is(:hover, .is-mega-open) .mega-menu__link,
  .nav-item--mega:is(:hover, .is-mega-open) .mega-menu--ir .dropdown-group,
  .nav-item--mega:focus-within .mega-menu__intro,
  .nav-item--mega:focus-within .mega-menu__feature,
  .nav-item--mega:focus-within .mega-menu__link,
  .nav-item--mega:focus-within .mega-menu--ir .dropdown-group {
    opacity: 1;
    transform: none;
    transition-delay: 0s;
  }
}

/* ==========================================================================
   HEADER — แผง submenu เต็มจอ (เฉพาะมือถือ)
   ========================================================================== */
.mobile-submenu {
  position: fixed;
  inset: 0;
  z-index: 1060;
  display: block;
  box-sizing: border-box;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  background-color: #ffffff;
  padding: 1.5rem;
  overflow-y: auto;
  overscroll-behavior: contain;
  visibility: hidden;
  pointer-events: none;
  transform: translate3d(100%, 0, 0);
  transition: visibility 0s linear 0.42s;
  will-change: transform;
  /* ตั้งฟอนต์ที่ container ให้ลิงก์/ปุ่มย้อนกลับ inherit (กันฟอนต์หลุดเป็น default) */
  font-family: "FC Minimal", sans-serif;
}

.mobile-submenu.active {
  visibility: visible;
  pointer-events: auto;
  transform: translate3d(0, 0, 0);
  transition-delay: 0s;
  animation: kpn-submenu-in 0.42s cubic-bezier(0.76, 0, 0.24, 1) both;
}

.mobile-submenu.is-preparing {
  visibility: visible;
  pointer-events: none;
  transform: translate3d(100%, 0, 0);
  transition-delay: 0s;
  animation: none;
}

.mobile-submenu.active.is-leaving {
  pointer-events: none;
  transform: translate3d(100%, 0, 0);
  animation: kpn-submenu-out 0.42s cubic-bezier(0.76, 0, 0.24, 1) both;
}

@keyframes kpn-submenu-in {
  from { transform: translate3d(100%, 0, 0); }
  to { transform: translate3d(0, 0, 0); }
}

@keyframes kpn-submenu-out {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(100%, 0, 0); }
}

.mobile-submenu__head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.mobile-submenu .mobile-submenu__head > *,
.mobile-submenu #mobile-submenu-list > li {
  opacity: 0;
  transform: translateX(30px);
  transition:
    opacity 0.32s ease,
    transform 0.48s cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: 0s;
  will-change: opacity, transform;
}

.mobile-submenu.active:not(.is-leaving) .mobile-submenu__head > * {
  opacity: 1;
  transform: translateX(0);
  transition-delay: 70ms;
}

.mobile-submenu.active:not(.is-leaving) #mobile-submenu-list > li {
  opacity: 1;
  transform: translateX(0);
  transition-delay: var(--submenu-delay, 80ms);
}

.mobile-submenu.active.is-leaving .mobile-submenu__head > *,
.mobile-submenu.active.is-leaving #mobile-submenu-list > li {
  opacity: 0;
  transform: translateX(22px);
  transition-duration: 0.22s, 0.34s;
  transition-delay: var(--submenu-close-delay, 0ms);
}

.mobile-submenu__title {
  font-size: var(--fc-minimal-paragraph-regular-regular);
  color: var(--kpn-green-grey-grey-700);
  font-family: "FC Minimal", sans-serif;
}

.btn-back {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0;
  background: none;
  border: none;
  cursor: pointer;
  font-size: var(--fc-minimal-paragraph-small-regular);
  color: var(--kpn-green-green-green-600);
}

.mobile-submenu ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.mobile-submenu li {
  border-bottom: 1px solid var(--kpn-green-grey-grey-50);
}

.mobile-submenu li a {
  display: block;
  padding: 14px 4px;
  font-size: var(--fc-minimal-paragraph-small-regular);
  text-decoration: none;
  color: var(--kpn-green-grey-grey-500);
  background-color: #ffffff;
  transition: color 0.15s ease, background-color 0.15s ease;
}

.mobile-submenu .dropdown-group {
  padding: 4px 0 8px;
}

.mobile-submenu .dropdown-group__label {
  padding: 14px 4px 8px;
  color: var(--kpn-green-green-green-600);
}

.mobile-submenu .dropdown-submenu-list {
  padding-left: 16px;
}

.mobile-submenu .dropdown-submenu-list li {
  border-bottom-color: var(--kpn-green-grey-grey-50);
}

.mobile-submenu .dropdown-submenu-list .dropdown-item {
  padding-top: 10px;
  padding-bottom: 10px;
}

.mobile-submenu li a:hover,
.mobile-submenu li a:focus,
.mobile-submenu li a:active,
.mobile-submenu li a.active,
.mobile-submenu li a[aria-current="page"] {
  color: var(--kpn-green-orange-orange-500);
  background-color: #ffffff;
}

@media (prefers-reduced-motion: reduce) {
  .mobile-submenu,
  .mobile-submenu .mobile-submenu__head > *,
  .mobile-submenu #mobile-submenu-list > li {
    transition-duration: 0.01ms !important;
    transition-delay: 0ms !important;
  }

  .mobile-submenu {
    animation: none !important;
  }
}

/* ==========================================================================
   HEADER — variant "Header - no bg" (พื้นโปร่งใส ตัวอักษรขาว)
   หมายเหตุ: variant นี้ใช้กับโหมด desktop (เมนูแนวนอน) เป็นหลัก
   ========================================================================== */
.site-header--transparent.navbar {
  background-color: transparent;
  box-shadow: none;
}

.site-header--transparent .site-header__inner {
  border-bottom-color: rgba(0, 0, 0, 0);
}

/* สลับโลโก้เป็นเวอร์ชันขาวตอนพื้นโปร่งใส */
.site-header__logo-img--white {
  display: none;
}

.site-header--transparent .site-header__logo-img--color {
  display: none;
}

.site-header--transparent .site-header__logo-img--white {
  display: inline-block;
}

/* hamburger สีขาวตอนพื้นโปร่งใส */
.site-header--transparent .navbar-toggler {
  border-color: rgba(255, 255, 255, 0.4);
}

.site-header--transparent .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255,255,255,1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* ลูกศร dropdown เป็นสีขาวตอนพื้นโปร่งใส */
.site-header--transparent .nav-item__caret {
  color: #ffffff;
}

@media (max-width: 1199.98px) {
  .site-header--transparent.site-header--menu-open .nav-item__caret {
    color: inherit;
  }
}

@media (min-width: 1200px) {

  .site-header--transparent .set-item,
  .site-header--transparent .main-nav .nav-link,
  .site-header--transparent .lang-switch__item--active {
    color: #ffffff;
  }

  .site-header--transparent .set-item--up {
    color: var(--kpn-green-green-green-500);
  }

  /* ราคาลดลง: แดงสว่างพอให้อ่านออกบนพื้น hero สีเข้ม (ไม่เปลี่ยน = ขาวตาม .set-item) */
  .site-header--transparent .set-item--down {
    color: #FF5A4F;
  }

  .site-header--transparent .lang-switch__item {
    color: var(--kpn-green-grey-grey-200);
  }

  .site-header--transparent .lang-switch__item--active {
    color: #ffffff;
  }
}

/* ==========================================================================
   HERO SECTION
   Component: Hero Section (Figma node 47:286)
   แบนเนอร์เต็มจอ พื้นหลังเป็นวิดีโอ (assets/vdo/hero/KPN-Hero.mp4) ข้อความขาวกึ่งกลาง
   ใช้ token สี/ฟอนต์จาก :root | ไล่เฉดเขียว KPN เป็น fallback ระหว่างวิดีโอโหลด
   ========================================================================== */

.hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  min-height: 100svh;
  padding: 80px clamp(24px, 12vw, 300px);
  text-align: center;
  color: #ffffff;
  font-family: "FC Minimal", sans-serif;
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

/* วิดีโอพื้นหลัง */
.hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  /* promote เป็น GPU layer ลดการกระตุกตอน scale reveal */
  will-change: transform;
  backface-visibility: hidden;
  transform: translateZ(0);
}

/* เลเยอร์มืดทับวิดีโอ ให้ตัวอักษรขาวอ่านชัด */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background-color: rgba(0, 0, 0, 0.4);
}

.hero__content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  width: 100%;
  max-width: 1460px;
}

.hero__title {
  margin: 0;
  font-weight: 500;
  /* FC Minimal Medium */
  font-size: clamp(32px, 5vw, var(--fc-minimal-display-64-medium));
  line-height: 1.15;
  color: #ffffff;
}

.hero__subtitle {
  margin: 0;
  font-weight: 400;
  /* FC Minimal Regular */
  font-size: clamp(18px, 2.2vw, var(--fc-minimal-paragraph-large-regular));
  line-height: 1.3;
  color: #ffffff;
}

/* ==========================================================================
   ธุรกิจและบริการของเรา (BUSINESS SECTION)
   Component: Business Section (Figma node 50:15153)
   หัวข้อไล่เฉดเขียว + คำโปรย + ปุ่มดูเพิ่มเติม และการ์ดบริการ 4 ใบ
   ใช้ token สี/ฟอนต์จาก :root | การ์ดเยื้องแบบ staggered บนจอใหญ่
   ========================================================================== */

.business {
  position: relative;
  background-color: #ffffff;
  padding: 80px clamp(20px, 6vw, 160px) 120px;
  font-family: "FC Minimal", sans-serif;
}

/* ภาพพื้นหลังเต็ม section จางเหลือ 40% (contain = เห็นภาพเต็มใบ ไม่ตัดขอบข้าง) */
.business::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("../images/business/choose-bg.webp");
  background-size: 85% auto;
  background-position: center;
  background-repeat: no-repeat;
  opacity: var(--biz-bg-opacity, 0.4);
  z-index: 0;
  pointer-events: none;
}

/* เนื้อหาอยู่เหนือภาพพื้นหลัง */
.business>* {
  position: relative;
  z-index: 1;
}

/* --- หัวข้อ + ปุ่ม --- */
.business__header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 70px;
}

.business__title {
  margin: 0 0 8px;
  font-weight: 500;
  font-size: clamp(28px, 4vw, var(--fc-minimal-heading-48-medium));
  line-height: 1.3;
  /* ตัวอักษรไล่เฉดเขียว (green-200 -> green-600) */
  background-image: linear-gradient(0deg, var(--kpn-green-green-green-200) 0%, var(--kpn-green-green-green-600) 76%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--kpn-green-green-green-600);
  /* fallback */
}

.business__subtitle {
  margin: 0;
  font-weight: 400;
  font-size: var(--fc-minimal-paragraph-regular-regular);
  line-height: 1.4;
  color: var(--kpn-green-grey-grey-700);
}

@media (max-width: 500px) {
  .br-business-sub {
    display: none;
  }
}

/* --- ปุ่มดูเพิ่มเติม (outline pill) --- */
.btn-more {
  display: inline-flex;
  align-items: center;
  gap: 15px;
  height: 52px;
  padding: 8px 8px 8px 25px;
  border: 2px solid var(--kpn-green-grey-grey-50);
  border-radius: 52px;
  font-size: var(--fc-minimal-paragraph-small-regular);
  color: #000000;
  background-color: transparent;
  text-decoration: none;
  white-space: nowrap;
  transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

/* hover: ทุกปุ่ม fill ส้ม orange-500 + ตัวอักษรขาว + วงกลมขาว/ลูกศรส้ม */
.btn-more:hover {
  border-color: var(--kpn-green-orange-orange-500);
  background-color: var(--kpn-green-orange-orange-500);
  color: #ffffff;
}

.btn-more:hover .btn-more__icon {
  background-color: #ffffff;
  color: var(--kpn-green-orange-orange-500);
}

.btn-more__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: #000000;
  color: #ffffff;
  /* สีลูกศร (svg ใช้ stroke=currentColor) */
  flex-shrink: 0;
  transition: background-color 0.2s ease, color 0.2s ease;
}

/* ไอคอนลูกศรเฉียง ↗ ขนาด 12px ตาม Figma */
.btn-more__icon svg {
  width: 12px;
  height: 12px;
}

/* --- พื้นที่โชว์การ์ด (ภาพพื้นหลังย้ายไปที่ .business แล้ว) --- */
.business__showcase {
  position: relative;
  padding: 40px 0;
}

.business__cards {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

/* --- การ์ดบริการ --- */
.business-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 300px;
  padding: 40px;
  border-radius: 20px;
  overflow: hidden;
  color: #ffffff;
  background-size: cover;
  background-position: center;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.22);
  /* กัน flicker ตอน GSAP เริ่มขยับ (promote เป็น GPU layer ไว้ก่อน) */
  will-change: transform;
  backface-visibility: hidden;
  transform: translateZ(0);
}

/* เลเยอร์มืดบนการ์ด ให้ตัวอักษรขาวอ่านชัด */
.business-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.4);
  z-index: 0;
}

.business-card__body {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.business-card__title {
  margin: 0;
  font-weight: 500;
  font-size: var(--fc-minimal-paragraph-large-medium);
  line-height: 1.2;
}

.business-card__desc {
  margin: 0;
  font-weight: 400;
  font-size: var(--fc-minimal-paragraph-detail-regular);
  line-height: 1.35;
}

/* --- จอกลาง: 2 คอลัมน์ --- */
@media (min-width: 768px) {
  .business__cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* --- จอใหญ่: การ์ดวางแบบ absolute กระจายอิสระเฉียง ๆ บน scene (พิกัดจริงจาก Figma) --- */
@media (min-width: 1280px) {
  .business__showcase {
    padding: 0;
  }

  .business__cards {
    display: block;
    position: relative;
    height: 920px;
    gap: 0;
  }

  .business-card {
    position: absolute;
    width: 308px;
    height: 312px;
    min-height: 0;
    margin: 0;
  }

  /* ตำแหน่งตาม design (Figma 1600x930) */
  .business-card--renew {
    left: 1%;
    top: 2%;
  }

  /* บนซ้าย */
  .business-card--solar {
    left: 14.5%;
    top: 60%;
  }

  /* ล่างซ้าย */
  .business-card--others {
    left: 59%;
    top: 54%;
  }

  /* กลางล่าง */
  .business-card--om {
    left: 79.5%;
    top: 16%;
  }

  /* ขวาบน */
}

/* ==========================================================================
   BUSINESS HORIZONTAL (SCROLL)
   Component: Business Horizon VDO Section (Figma node 90:17039)
   4 พาเนลเต็มจอ เลื่อนแนวนอนด้วย GSAP (pin + scrub)
   ใช้ token สี/ฟอนต์จาก :root | จอเล็กเรียงแนวตั้งปกติ
   ========================================================================== */

.bizh {
  position: relative;
  font-family: "FC Minimal", sans-serif;
}

.bizh__track {
  display: flex;
  flex-direction: column;
}

.bizh__panel {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 70vh;
  padding: clamp(24px, 10vw, 240px);
  color: #ffffff;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* overlay มืดให้ตัวอักษรอ่านชัด */
.bizh__panel::after {
  content: "";
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.4);
  z-index: 0;
}

.bizh__content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 32px;
  max-width: 760px;
}

.bizh__title {
  margin: 0;
  font-weight: 500;
  font-size: clamp(28px, 4vw, var(--fc-minimal-heading-48-medium));
  line-height: 1.15;
  color: #e6e6e6;
}

/* ปุ่มดูเพิ่มเติม เวอร์ชันสว่าง (บนพื้นภาพมืด) = Figma Btn-outline-default */
.btn-more--light {
  align-self: flex-start;
  /* กันปุ่มยืดเต็มความกว้างใน flex column ของ .bizh__content */
  border-color: var(--kpn-green-grey-grey-50);
  color: #ffffff;
}

.btn-more--light .btn-more__icon {
  background-color: #ffffff;
  color: #1a1a1a;
  /* สีลูกศร (svg ใช้ stroke=currentColor) */
}

/* hover: fill ส้ม orange-500 (เหมือนปุ่มเข้ม) */
.btn-more--light:hover {
  border-color: var(--kpn-green-orange-orange-500);
  background-color: var(--kpn-green-orange-orange-500);
  color: #ffffff;
}

.btn-more--light:hover .btn-more__icon {
  background-color: #ffffff;
  color: var(--kpn-green-orange-orange-500);
}

/* --- Desktop scene: เลื่อนแนวนอน (ควบคุมด้วย GSAP) ---
   ใช้ breakpoint เดียวกับการ์ดแบบ absolute เพื่อไม่ให้ layout/animation
   คนละชุดทำงานทับกันตอน resize */
@media (min-width: 1280px) {
  .bizh {
    overflow: hidden;
  }

  .bizh__track {
    flex-direction: row;
    flex-wrap: nowrap;
    width: max-content;
    height: 100vh;
    will-change: transform;
  }

  .bizh__panel {
    width: 100vw;
    height: 100vh;
    min-height: 0;
    /* แยกแต่ละพาเนลเป็น GPU layer ลดการ re-paint ตอนเลื่อน */
    transform: translateZ(0);
    backface-visibility: hidden;
  }
}

/* ==========================================================================
   RENEW ZOOM TRANSITION
   การ์ด Renewable (ใน Business Section) ขยายเต็มจอก่อนเข้า Business Horizontal
   overlay ภาพ renewable แบบ fixed ควบคุมด้วย GSAP (scrub) — transform ล้วน
   ========================================================================== */

.renew-zoom {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-image: url("../images/business-h/bg-renewable.webp");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 1020;
  /* ใต้ header (1030) */
  visibility: hidden;
  pointer-events: none;
  overflow: hidden;
  will-change: width, height, transform;
  backface-visibility: hidden;
}

.renew-zoom.is-active {
  visibility: visible;
}

/* overlay มืดบนภาพ zoom ให้โทนตรงกับพาเนล horizontal */
.renew-zoom::after {
  content: "";
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.4);
}

/* ==========================================================================
   PROJECT REF SECTION (โครงการของเรา)
   Component: Project Ref Section (Figma node 99:645)
   หัวข้อไล่เฉดเขียว + คำโปรย + ปุ่ม (ใช้ .btn-more เดิม) | แผนที่ไทย (ใส่ svg เอง)
   + การ์ดสรุปโครงการ: จำนวนโครงการ + รายการโครงการพร้อม badge จังหวัด และปุ่มวงกลม ↗
   ใช้ token สี/ฟอนต์จาก :root | หัวข้อ/คำโปรย = แพตเทิร์นเดียวกับ business section
   ========================================================================== */

.projref {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  margin-top: -1px;
  min-height: 600px;
  background-color: #000b26;
  padding: clamp(80px, 7vw, 120px) clamp(20px, 6vw, 240px);
  font-family: "FC Minimal", sans-serif;
}

/* Project artwork: dark sky continues the Story Timeline palette while the
   city and energy infrastructure anchor the map area below. */
/* 90px แรกทึบเต็มที่ #000b26 = สีเดียวกับปลายทางที่ .story-timeline ไล่มาจบ
   ทั้งสองฝั่งจึงบรรจบที่สีเดียวกัน มองไม่เห็นรอยต่อ */
.projref.project-image-section {
  background-image:
    linear-gradient(
      180deg,
      rgb(0, 11, 38) 0%,
      rgba(0, 11, 38, 0.9) 90px,
      rgba(0, 11, 38, 0.24) 24%,
      rgba(0, 8, 28, 0.12) 62%,
      rgba(0, 7, 23, 0.22) 100%
    ),
    url("../images/projects/BG-Project-1600.webp");
  background-position: center, center bottom;
  background-repeat: no-repeat;
  background-size: 100% 100%, cover;
}

.projref.project-image-section::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(
    ellipse at center,
    transparent 42%,
    rgba(0, 10, 31, 0.12) 74%,
    rgba(0, 8, 28, 0.34) 120%
  );
}

.projref.project-image-section::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.018;
  mix-blend-mode: soft-light;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='.7'/%3E%3C/svg%3E");
}

.projref.project-image-section > * {
  position: relative;
  z-index: 1;
}

.projref.project-image-section .projref__title {
  color: #ffffff;
  background-image: linear-gradient(
    0deg,
    var(--kpn-green-blue-blue-500, #39bff4) 4%,
    #ffffff 76%
  );
}

.projref.project-image-section .projref__subtitle {
  color: rgba(255, 255, 255, 0.84);
}

/* --- จอกลาง/เล็ก: ลดช่องว่างหัว section ให้ต่อกับ story timeline กระชับขึ้น
   ต่ำกว่า 1143px ค่า clamp เดิมจะติดเพดานล่างที่ 80px ซึ่งกว้างเกินไปเมื่อรวมกับ
   ช่องว่างท้าย viewport ของ story timeline --- */
@media (max-width: 991.98px) {
  .projref {
    padding-top: 52px;
  }
}

@media (max-width: 767.98px) {
  .projref {
    padding-top: 36px;
    padding-bottom: 64px;
  }

  .projref.project-image-section {
    background-size: 100% 100%, auto 78%;
  }
}

/* Tablet/mobile: การ์ดอยู่ใน document flow และไม่รับ floating transform */
@media (max-width: 1279.98px) {
  .business-card {
    transform: none;
    will-change: auto;
  }

  .bizh {
    overflow: visible;
  }

  .bizh__track {
    width: 100%;
    height: auto;
    transform: none;
    visibility: visible;
    will-change: auto;
  }

  .bizh__content {
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .renew-zoom {
    display: none;
  }
}

/* --- หัวข้อ + ปุ่ม (แพตเทิร์นเดียวกับ .business__header) --- */
.projref__header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 70px;
}

.projref__title {
  margin: 0 0 8px;
  font-weight: 500;
  font-size: clamp(28px, 4vw, var(--fc-minimal-heading-48-medium));
  line-height: 1.1;
  /* ไล่เฉดเขียว green-200 -> green-600 (เหมือน .business__title) */
  background-image: linear-gradient(0deg, var(--kpn-green-green-green-200) 0%, var(--kpn-green-green-green-600) 76%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--kpn-green-green-green-600);
  /* fallback */
}

.projref__subtitle {
  margin: 0;
  font-weight: 400;
  font-size: var(--fc-minimal-paragraph-regular-regular);
  /* 20px */
  line-height: 1.4;
  color: var(--kpn-green-grey-grey-700);
}

@media (max-width:424px) {
  .br-projref-sub {
    display: none;
  }
}

/* --- Category tabs: กลุ่มธุรกิจจาก Project List --- */
.projref-tabs {
  display: none !important;
  grid-template-columns: minmax(210px, 0.82fr) minmax(300px, 1.4fr) minmax(250px, 1.18fr) minmax(190px, 0.9fr);
  gap: 4px;
  width: 100%;
  max-width: 1180px;
  margin: 0 auto clamp(36px, 4vw, 52px);
  padding: 8px;
  border: 1px solid var(--kpn-green-grey-grey-50);
  border-radius: 26px;
  background: #f6f8f5;
  box-shadow: 0 14px 40px rgba(25, 57, 42, 0.06);
}

.projref-tab {
  --projref-tab-accent: var(--kpn-green-green-green-600);
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  min-height: 76px;
  padding: 12px 14px;
  border: 1px solid transparent;
  border-radius: 18px;
  background: transparent;
  color: var(--kpn-green-grey-grey-900);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: background-color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.projref-tab::after {
  content: none;
}

.projref-tab:hover {
  border-color: rgba(31, 49, 41, 0.06);
  background-color: rgba(255, 255, 255, 0.58);
}

.projref-tab:focus-visible {
  outline: 2px solid var(--projref-tab-accent);
  outline-offset: 3px;
}

.projref-tab.is-active {
  border-color: rgba(31, 49, 41, 0.08);
  background-color: #ffffff;
  box-shadow: 0 4px 14px rgba(25, 57, 42, 0.09);
}

.projref-tab--renewable {
  --projref-tab-accent: var(--kpn-green-green-green-600);
}

.projref-tab--all {
  --projref-tab-accent: var(--kpn-green-blue-blue-600);
}

.projref-tab--power {
  --projref-tab-accent: #3156a3;
}

.projref-tab--construction {
  --projref-tab-accent: #d93640;
}

.projref-tab__mark,
.projref-tab__energy-icons i {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--projref-tab-accent) 12%, #ffffff);
  color: var(--projref-tab-accent);
}

.projref-tab__mark svg {
  width: 21px;
  height: 21px;
}

.projref-tab--all .projref-tab__mark,
.projref-tab--power .projref-tab__mark,
.projref-tab--construction .projref-tab__mark {
  background: var(--projref-tab-accent);
  color: #ffffff;
}

.projref-tab--all .projref-tab__name {
  color: var(--kpn-green-blue-blue-600);
  white-space: nowrap;
}

.projref-tab__mark--all {
  grid-template-columns: repeat(2, 5px);
  grid-auto-rows: 5px;
  gap: 3px;
}

.projref-tab__mark--all i {
  width: 5px;
  height: 5px;
  border-radius: 1px;
  background: currentColor;
}

.projref-tab__energy-icons {
  display: flex;
  flex: 0 0 auto;
  margin-right: 4px;
}

.projref-tab__energy-icons i {
  width: 40px;
  height: 40px;
  border: 2px solid #ffffff;
  margin-left: -8px;
  box-shadow: 0 0 0 1px rgba(27, 38, 34, 0.05);
}

.projref-tab__energy-icons i:first-child {
  margin-left: 0;
}

.projref-tab__energy-icons .is-biomass {
  background: #159a55;
}

.projref-tab__energy-icons .is-solar {
  background: #ff9e22;
}

.projref-tab__energy-icons .is-waste {
  background: #111820;
}

.projref-tab__energy-icons i::before {
  content: none;
}

.projref-tab__energy-icons svg {
  display: block;
  width: 20px;
  height: 20px;
  color: #ffffff;
}

.projref-tab__copy {
  display: flex;
  flex: 1 1 auto;
  min-width: 0;
  flex-direction: column;
  gap: 3px;
}

.projref-tab__name {
  font-weight: 500;
  font-size: 15px;
  line-height: 1.15;
}

.projref-tab__meta {
  overflow: hidden;
  color: var(--kpn-green-grey-grey-500);
  font-size: 12px;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.projref-tab__count {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 28px;
  padding: 0 7px;
  border-radius: 30px;
  background: var(--kpn-green-grey-grey-50);
  color: var(--kpn-green-grey-grey-700);
  font-size: 13px;
  line-height: 1;
}

.projref-tab.is-active .projref-tab__count {
  background: var(--projref-tab-accent);
  color: #ffffff;
}

@media (max-width: 1279.98px) {
  .projref-tabs {
    display: flex;
    max-width: 100%;
    margin-right: 0;
    padding: 8px;
    overflow-x: auto;
    scrollbar-width: none;
    scroll-snap-type: x proximity;
  }

  .projref-tabs::-webkit-scrollbar {
    display: none;
  }

  .projref-tab {
    flex: 0 0 260px;
    scroll-snap-align: start;
  }

  .projref-tab:first-child {
    flex-basis: 210px;
  }
}

@media (max-width: 575.98px) {
  .projref__header {
    margin-bottom: 44px;
  }

  .projref-tabs {
    gap: 4px;
    margin-bottom: 36px;
    border-radius: 22px;
  }

  .projref-tab {
    flex-basis: 246px;
    min-height: 72px;
  }

  .projref-tab:first-child {
    flex-basis: 198px;
  }
}

/* --- แถวเนื้อหา: แผนที่ (ซ้าย 45%) + การ์ดรายละเอียด (ขวา 55%) --- */
.projref__body {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
}

.projref__map {
  position: relative;
  flex: 0 0 45%;
  max-width: 45%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.projref__detail {
  flex: 1 1 55%;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* สถานะเริ่มต้น: ซ่อน panel การ์ดและวางแผนที่ไว้กึ่งกลาง */
.projref__body:not(.is-active) .projref__detail {
  display: none;
}

.projref__body:not(.is-active) .projref__map {
  flex: 0 0 auto;
  max-width: 521px;
}

/* เมื่อเปิด panel: ฝั่งขวา (detail) ยืดสูงเท่าแผนที่ฝั่งซ้าย -> ใช้เป็นเพดานความสูงการ์ด
   ส่วนความสูง "จริง" ของการ์ดยังเป็นไปตามจำนวนโครงการ (ดู .projref-card max-height) */
.projref__body.is-active {
  align-items: stretch;
}

.projref__detail {
  position: relative;
  scroll-margin-top: 96px;
}

/* เดสก์ท็อป: การ์ดวางแบบ absolute เพื่อไม่ให้เนื้อหาดันความสูงแถว
   -> เพดาน max-height: 100% = ความสูงแผนที่ฝั่งซ้าย | เนื้อหาน้อยก็เตี้ยตามจริง */
@media (min-width: 992px) {
  .projref__detail .projref-card {
    position: absolute;
    inset: 0 0 auto 0;
    max-height: 100%;
  }
}

/* ==========================================================================
   COOKIE SETTINGS MODAL
   Component: Cookie Settings Modal (ตาม KPN Design System)
   Modal ตั้งค่า cookie เมื่อคลิก "การตั้งค่า Cookie" | ใช้ FC Minimal + token สี
   ========================================================================== */
/* --- Cookie Modal (ตั้งค่า cookie แบบกะทัดรัด) --- */
.cookie-modal {
  position: fixed;
  inset: 0;
  z-index: 1050;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  font-family: "FC Minimal", sans-serif;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.32s ease, visibility 0.32s ease;
}

.cookie-modal.is-visible {
  opacity: 1;
  visibility: visible;
}

.cookie-modal.is-visible .cookie-modal__dialog {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.cookie-modal__backdrop {
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  transition: backdrop-filter 0.32s ease;
}

.cookie-modal__dialog {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 580px;
  max-height: 85vh;
  background-color: #ffffff;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
  display: flex;
  flex-direction: column;
  transform: translateY(18px) scale(0.98);
  opacity: 0;
  will-change: transform, opacity;
  transition: transform 0.36s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.28s ease;
}

.cookie-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 24px 16px;
  border-bottom: 1px solid var(--kpn-green-grey-grey-100);
}

.cookie-modal__title {
  margin: 0;
  font-size: var(--fc-minimal-paragraph-large-medium);
  font-weight: 500;
  color: var(--kpn-green-grey-grey-900);
}

.cookie-modal__close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background-color: transparent;
  color: var(--kpn-green-grey-grey-600);
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.cookie-modal__close:hover {
  background-color: var(--kpn-green-grey-grey-50);
  color: var(--kpn-green-grey-grey-900);
}

.cookie-modal__body {
  flex: 1;
  overflow-y: auto;
  padding: 20px 24px;
}

/* --- รายการ Cookie แต่ละประเภท --- */
.cookie-item {
  border: 1px solid var(--kpn-green-grey-grey-100);
  border-radius: 12px;
  margin-bottom: 12px;
  background-color: #ffffff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.cookie-item:hover {
  border-color: var(--kpn-green-grey-grey-200);
}

.cookie-item__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px;
}

.cookie-item__toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  padding: 0;
  border: none;
  background: none;
  text-align: left;
  cursor: pointer;
  font-family: "FC Minimal", sans-serif;
}

.cookie-item__icon {
  flex-shrink: 0;
  color: var(--kpn-green-grey-grey-400);
  transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1), color 0.2s ease;
}

.cookie-item--expanded .cookie-item__icon {
  transform: rotate(180deg);
}

.cookie-item__label {
  font-size: 16px;
  font-weight: 500;
  color: var(--kpn-green-grey-grey-900);
}

.cookie-item__switch {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.cookie-lock {
  display: flex;
  color: var(--kpn-green-grey-grey-900);
}

.cookie-item__desc {
  display: grid;
  grid-template-rows: 0fr;
  padding: 0 16px 0 46px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--kpn-green-grey-grey-600);
  overflow: hidden;
  opacity: 0;
  transform: translateY(-3px);
  will-change: grid-template-rows, opacity, transform;
  transition: grid-template-rows 0.44s cubic-bezier(0.16, 1, 0.3, 1),
    opacity 0.26s ease,
    transform 0.44s cubic-bezier(0.16, 1, 0.3, 1),
    padding-bottom 0.44s cubic-bezier(0.16, 1, 0.3, 1);
}

.cookie-item__desc.is-open {
  grid-template-rows: 1fr;
  opacity: 1;
  transform: translateY(0);
  padding-bottom: 16px;
}

.cookie-item__desc p {
  margin: 0;
  overflow: hidden;
}

/* --- Toggle Switch (ขนาดเล็ก) --- */
.toggle-switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
  cursor: pointer;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-switch__slider {
  position: absolute;
  inset: 0;
  background-color: var(--kpn-green-grey-grey-100);
  border-radius: 24px;
  transition: background-color 0.3s ease;
}

.toggle-switch__slider::before {
  content: "";
  position: absolute;
  height: 18px;
  width: 18px;
  left: 3px;
  top: 3px;
  background-color: #ffffff;
  border-radius: 50%;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.toggle-switch input:checked+.toggle-switch__slider {
  background-color: var(--kpn-green-green-green-600);
}

.toggle-switch input:checked+.toggle-switch__slider::before {
  transform: translateX(20px);
}

.toggle-switch input:disabled+.toggle-switch__slider {
  background-color: var(--kpn-green-green-green-600);
  opacity: 0.6;
  cursor: not-allowed;
}

.toggle-switch input:disabled~* {
  cursor: not-allowed;
}

/* --- Footer Modal (ปรับให้กะทัดรัด - ปุ่มแนวนอน 2 ปุ่ม) --- */
.cookie-modal__footer {
  display: flex;
  flex-direction: row;
  justify-content: center;
  gap: 12px;
  padding: 16px 24px 24px;
  border-top: 1px solid var(--kpn-green-grey-grey-100);
}

.cookie-modal__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 180px;
  height: 48px;
  padding: 8px 24px;
  border: 2px solid transparent;
  border-radius: 48px;
  font-size: var(--fc-minimal-paragraph-detail-medium);
  font-family: "FC Minimal", sans-serif;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.cookie-modal__btn--accept {
  background-color: var(--kpn-green-blue-blue-600);
  color: #ffffff;
  border-color: var(--kpn-green-blue-blue-600);
}

.cookie-modal__btn--accept:hover {
  background-color: var(--kpn-green-orange-orange-500);
  border-color: var(--kpn-green-orange-orange-500);
}

.cookie-modal__btn--save {
  background-color: transparent;
  color: var(--kpn-green-grey-grey-700);
  border-color: var(--kpn-green-grey-grey-50);
}

.cookie-modal__btn--save:hover {
  background-color: var(--kpn-green-orange-orange-500);
  border-color: var(--kpn-green-orange-orange-500);
  color: #ffffff;
}

/* Responsive */
@media (max-width: 575.98px) {
  .cookie-modal__dialog {
    border-radius: 16px;
    max-width: calc(100% - 32px);
  }

  .cookie-modal__header {
    padding: 20px 20px 12px;
  }

  .cookie-modal__title {
    font-size: var(--fc-minimal-paragraph-regular-medium);
  }

  .cookie-modal__body {
    padding: 16px 20px;
  }

  .cookie-item__header {
    padding: 14px;
  }

  .cookie-item__label {
    font-size: 15px;
  }

  .cookie-item__desc {
    padding: 0 14px 0 40px;
    font-size: 13px;
  }

  .cookie-modal__footer {
    flex-direction: column;
    padding: 12px 20px 20px;
  }

  .cookie-modal__btn {
    width: 100%;
    min-width: auto;
    height: 44px;
  }
}

.cookie-modal-open {
  overflow: hidden;
}

@media (prefers-reduced-motion: reduce) {

  .cookie-modal,
  .cookie-modal__dialog,
  .cookie-item__desc,
  .cookie-item__icon,
  .toggle-switch__slider,
  .toggle-switch__slider::before {
    transition-duration: 0.01ms;
  }
}

/* แผนที่ไทย (inline svg ที่ JS inject) */
.projref__map-svg {
  position: relative;
  /* เป็นกล่องอ้างอิงของเลเยอร์หมุด (.projref__markers) → หมุดอิงพิกัดของ SVG พอดี ไม่เพี้ยนตามความกว้าง container */
  width: 100%;
  max-width: 560px;
  aspect-ratio: 873 / 1594;
  /* ตาม design (520.843px) */
}

.projref__map-svg > svg,
.projref__map-svg > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* จังหวัดทั้งหมดใช้สีน้ำเงินหลัก + ขอบเทาอ่อน (override สีจาก svg เดิม)
   ใช้ "> svg path" เจาะเฉพาะแผนที่ไทย ไม่ให้ไปโดน <svg> ไอคอนของหมุด (.projref-marker) ที่อยู่ในกล่องเดียวกัน */
.projref__map-svg > svg path {
  fill: var(--kpn-green-blue-blue-600);
  stroke: var(--kpn-green-blue-blue-100);
  stroke-width: 2px;
  transition: fill 0.3s ease;
}

.projref__map-svg > svg .projref-map-region--north {
  fill: var(--kpn-green-blue-blue-600);
}

.projref__map-svg > svg .projref-map-region--northeast {
  fill: var(--kpn-green-blue-blue-600);
}

.projref__map-svg > svg .projref-map-region--central {
  fill: var(--kpn-green-blue-blue-600);
}

.projref__map-svg > svg .projref-map-region--west {
  fill: var(--kpn-green-blue-blue-600);
}

.projref__map-svg > svg .projref-map-region--east {
  fill: var(--kpn-green-blue-blue-600);
}

.projref__map-svg > svg .projref-map-region--south {
  fill: var(--kpn-green-blue-blue-600);
}

/* --- เลเยอร์หมุดวางทับแผนที่ --- */
.projref__markers {
  position: absolute;
  inset: 0;
  pointer-events: none;
  /* ปล่อยให้คลิกทะลุได้ ยกเว้นตัวหมุด */
}

.projref-marker {
  --marker-offset-x: 0px;
  --marker-offset-y: 0px;
  position: absolute;
  transform: translate(calc(-50% + var(--marker-offset-x)), calc(-100% + var(--marker-offset-y))) rotate(-45deg);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  padding: 7px;
  border: none;
  border-radius: 50% 50% 50% 0;
  background-color: currentColor;
  color: var(--kpn-green-green-green-600);
  cursor: pointer;
  pointer-events: auto;
  box-shadow: 0 3px 9px rgba(20, 35, 28, 0.25);
  transition: transform 0.3s ease, box-shadow 0.3s ease, filter 0.2s ease;
}

.projref-marker::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  background: rgba(255, 255, 255, 0.001);
}

.projref-marker svg {
  display: block;
  width: 14px;
  height: 14px;
  transform: rotate(45deg);
  color: #ffffff;
}

.projref-marker:hover,
.projref-marker:focus-visible {
  transform: translate(calc(-50% + var(--marker-offset-x)), calc(-108% + var(--marker-offset-y))) rotate(-45deg) scale(1.12);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.3);
  outline: none;
  z-index: 20;
  /* ยกหมุดที่ hover (พร้อม tooltip) ขึ้นบนสุด กันโดนหมุดอื่นบัง */
}

.projref-marker.is-active {
  filter: saturate(1.2);
  box-shadow: 0 0 0 3px #ffffff, 0 0 0 5px currentColor, 0 8px 18px rgba(0, 0, 0, 0.25);
}

/* tooltip บนหมุด */
.projref-tooltip {
  position: absolute;
  bottom: 125%;
  left: 50%;
  transform: translateX(-50%) rotate(45deg);
  transform-origin: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 8px 12px;
  background-color: var(--kpn-green-grey-grey-900);
  color: #ffffff;
  border-radius: 10px;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
  pointer-events: none;
}

.projref-marker:hover .projref-tooltip,
.projref-marker:focus-visible .projref-tooltip {
  opacity: 1;
  visibility: visible;
}

.projref-tooltip__name {
  font-weight: 500;
  font-size: 14px;
}

.projref-tooltip__category {
  color: #ffffff;
  font-size: 12px;
}

.projref-tooltip__count {
  font-size: 12px;
  color: #cfddd5;
}

/* --- การ์ดสรุปโครงการ --- */
.projref-card {
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 100%;
  padding: 32px;
  background-color: #ffffff;
  border: 1px solid var(--kpn-green-grey-grey-100);
  border-radius: 24px;
}

/* หัวการ์ด: ป้ายเขียว + จำนวนโครงการ (ซ้าย) | ปุ่มปิด (ขวา) */
.projref-card__head {
  display: flex;
  flex-shrink: 0;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  text-align: start;
}

.projref-card__head-text {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* ปุ่มปิด -> กลับไปแสดงแผนที่เต็ม (สไตล์ปุ่มวงกลมตามระบบ hover ส้ม) */
.projref-card__close {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 1px solid var(--kpn-green-grey-grey-50);
  border-radius: 50%;
  background-color: #ffffff;
  color: var(--kpn-green-grey-grey-900);
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.projref-card__close:hover {
  border-color: var(--kpn-green-orange-orange-500);
  background-color: var(--kpn-green-orange-orange-500);
  color: #ffffff;
}

.projref-card__label {
  margin: 0;
  font-weight: 500;
  font-size: var(--fc-minimal-paragraph-small-medium);
  /* 18px */
  color: var(--kpn-green-green-green-600);
}

.projref-card__count {
  margin: 0;
  font-weight: 600;
  font-size: var(--fc-minimal-heading-32-semibold);
  /* 32px */
  color: var(--kpn-green-grey-grey-700);
}

/* รายการโครงการ */
.projref-card__list {
  display: flex;
  flex-direction: column;
  gap: 32px;
  /* สูงตามจำนวนโครงการจริง | เมื่อการ์ดชนเพดาน (= แผนที่) ค่อยหดแล้ว scroll */
  flex: 1 1 auto;
  min-height: 0;
  margin-right: -32px;
  padding-right: 26px;
  overflow-y: auto;
  /* ซ่อน scrollbar ตอนไม่ hover แต่จองที่ไว้ (stable) กันเนื้อหาขยับ */
  scrollbar-width: thin;
  scrollbar-color: transparent transparent;
  scrollbar-gutter: stable;
  transition: scrollbar-color 0.2s ease;
}

.projref-card__list:hover {
  scrollbar-color: var(--kpn-green-grey-grey-100) transparent;
}

/* scrollbar ให้กลมกลืนกับระบบ (โผล่ตอน hover, thumb hover ส้ม) */
.projref-card__list::-webkit-scrollbar {
  width: 6px;
}

.projref-card__list::-webkit-scrollbar-thumb {
  background-color: transparent;
  border-radius: 50px;
  transition: background-color 0.2s ease;
}

.projref-card__list:hover::-webkit-scrollbar-thumb {
  background-color: var(--kpn-green-grey-grey-100);
}

.projref-card__list:hover::-webkit-scrollbar-thumb:hover {
  background-color: var(--kpn-green-orange-orange-500);
}

/* --- การ์ดโครงการแต่ละรายการ (Item-location-card) --- */
.project-item {
  display: flex;
  gap: 32px;
  align-items: stretch;
  min-height: 160px;
  border-radius: 16px;
  transition: transform 0.3s ease;
  /* กันไม่ให้ item ถูกบีบเตี้ยกว่าเนื้อหาจริงใน list ที่ความสูงจำกัด
     (ไม่งั้นข้อความจะล้นไปทับ item ถัดไป โดยเฉพาะจอ < 1400px ที่ panel แคบ) */
  flex-shrink: 0;
}

/* .project-item:hover {
  transform: translateY(-4px);
} */

/* กรอบรูป (clip ไว้เพื่อให้ภาพ zoom ตอน hover ไม่ล้น) */
.project-item__media {
  flex-shrink: 0;
  align-self: stretch;
  width: clamp(200px, 15vw, 240px);
  border-radius: 16px;
  overflow: hidden;
}

.project-item__image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

/* placeholder รูป (mockup ยังไม่มีรูปจริง) + icon รูปภาพ */
.project-item__media--placeholder {
  background-color: var(--kpn-green-grey-grey-100);
  display: flex;
  align-items: center;
  justify-content: center;
}

.project-item__placeholder-icon {
  display: inline-flex;
  font-size: 44px;
  color: var(--kpn-green-grey-grey-300);
}

.project-item__placeholder-icon svg {
  display: block;
  width: 1em;
  height: 1em;
}

.project-item:hover .project-item__image {
  transform: scale(1.06);
}

.project-item__right {
  display: flex;
  flex: 1 1 0;
  min-width: 0;
  gap: 16px;
  align-items: stretch;
}

.project-item__body {
  display: flex;
  flex: 1 1 0;
  min-width: 0;
  flex-direction: column;
  gap: 16px;
  padding-top: 8px;
}

.project-item__title {
  margin: 0;
  font-weight: 500;
  font-size: var(--fc-minimal-paragraph-regular-medium);
  /* 20px */
  line-height: 1.2;
  color: #000000;
}

.project-item__desc {
  margin: 0;
  font-weight: 400;
  font-size: var(--fc-minimal-paragraph-detail-regular);
  /* 16px */
  line-height: 1.35;
  color: var(--kpn-green-grey-grey-700);
  /* ขยายเติมพื้นที่แนวตั้งที่เหลือ ดัน badge/ปุ่มลงไปอยู่ล่างสุด (ไม่มีช่องว่างกลาง) */
  flex: 1 1 auto;
}

.project-item__badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

/* badge จังหวัด (ไอคอนหมุด + ชื่อจังหวัด) */
.project-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  padding: 8px;
  background-color: #ffffff;
  border: 1px solid var(--kpn-green-grey-grey-50);
  border-radius: 30px;
}

.project-badge__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: var(--project-badge-icon-color, var(--kpn-green-blue-blue-600));
}

.project-badge__icon svg {
  display: block;
  width: 16px;
  height: 16px;
}

.project-type-badge {
  --project-badge-icon-color: var(--project-type-color, var(--kpn-green-green-green-600));
}

.project-badge__text {
  font-weight: 400;
  font-size: 12px;
  /* ไม่มี token 12px ใน :root -> ใช้ค่าตรงตาม design */
  color: #404038;
  /* สีเฉพาะ badge ใน design (ใกล้เคียง grey-800) */
  white-space: nowrap;
}

/* ปุ่มวงกลมลูกศร ↗ (มุมขวาล่างของแต่ละรายการ) */
.project-item__action {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  flex-shrink: 0;
}

.project-item__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border: 1px solid var(--kpn-green-grey-grey-50);
  border-radius: 50%;
  background-color: #ffffff;
  color: var(--kpn-green-grey-grey-900);
  /* สีลูกศร (svg ใช้ stroke=currentColor) */
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

/* hover: ส้ม orange-500 (ให้สอดคล้องกับปุ่มอื่นในเว็บ) */
.project-item__btn:hover {
  border-color: var(--kpn-green-orange-orange-500);
  background-color: var(--kpn-green-orange-orange-500);
  color: #ffffff;
}

/* hover การ์ด: ปุ่มเปลี่ยนเป็นส้ม + ลูกศรขยับ (ตาม spec card interaction) */
.project-item:hover .project-item__btn {
  border-color: var(--kpn-green-orange-orange-500);
  background-color: var(--kpn-green-orange-orange-500);
  color: #ffffff;
}

.project-item__btn svg {
  width: 14px;
  height: 14px;
  transition: transform 0.25s ease;
}

/* .project-item:hover .project-item__btn svg {
  transform: translate(2px, -2px);
} */

/* --- จอกลาง/แท็บเล็ต: แผนที่เต็มกว้าง | เปิดโครงการ = modal เด้งกลางจอ --- */
@media (max-width: 991.98px) {
  .projref__body {
    flex-direction: column;
  }

  .projref__map,
  .projref__detail {
    flex: none;
    width: 100%;
    max-width: 100%;
  }

  .projref-card {
    max-width: 100%;
  }
}

/* ==========================================================================
   Projref Detail — Modal (มือถือ/แท็บเล็ต)
   JS (projref-map.js) จะ "ย้าย" .projref__detail ออกไปไว้ที่ <body> ตอนเปิดบนจอเล็ก
   (portal) แล้วเติมคลาส .is-modal + สร้าง .projref-modal-backdrop → ลอยเต็มจอเหนือทุกอย่าง
   ไม่ถูก stacking context ของ .projref (z-index:2) กัก | ปิดได้ที่ปุ่ม X เท่านั้น
   ========================================================================== */

/* ฉากหลังมืดเต็มจอ (บังหมุด กันคลิกด้านนอกเพื่อปิด — ไม่มี handler ปิด) */
.projref-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1200;
  background-color: rgba(6, 9, 13, 0.55);
}

/* การ์ดรายละเอียด -> modal เด้งกลางจอ
   จัดกึ่งกลางด้วย inset:0 + margin:auto (ไม่ใช้ transform เพื่อไม่ชนกับ GSAP ที่ animate y) */
.projref__detail.is-modal {
  position: fixed;
  inset: 0;
  margin: auto;
  z-index: 1201;
  width: min(92vw, 480px);
  height: -moz-fit-content;
  height: fit-content;
  max-height: 90vh;
  /* detail ถูก portal ออกไปที่ <body> → หลุด context ฟอนต์ของ .projref ต้องประกาศเองที่นี่ */
  font-family: "FC Minimal", sans-serif;
}

/* หัวการ์ดคงที่ + รายการโครงการ scroll ภายใน modal */
.projref__detail.is-modal .projref-card {
  max-height: 90vh;
}

/* จำกัดรายการให้เห็นสูงสุด ~4 โครงการ (ความสูงจริงคำนวณแม่นยำโดย JS ตามการ์ด 4 ใบแรก)
   ค่านี้เป็น fallback เผื่อ JS ไม่ทำงาน */
.projref__detail.is-modal .projref-card__list {
  max-height: 60vh;
}

/* modal แคบเสมอ (≤480px) → บังคับ item เป็นแนวตั้ง (รูปบน / เนื้อหาล่าง) กันข้อความบีบทับกัน */
.projref__detail.is-modal .project-item {
  flex-direction: column;
  gap: 12px;
  /* สำคัญ: กันไม่ให้ flex list (มี max-height) บีบ item จนเตี้ยกว่าเนื้อหา → รูปล้นไปทับ item ถัดไป
     ตั้ง flex-shrink:0 ให้ item คงความสูงจริง แล้วปล่อยให้ list scroll แทน */
  flex-shrink: 0;
}

.projref__detail.is-modal .project-item__media {
  width: 100%;
  height: 200px;
  align-self: auto;
}

.projref__detail.is-modal .project-item__body {
  padding-top: 0;
}

/* --- จอเล็ก: รายการโครงการเรียงรูปบน เนื้อหาล่าง --- */
@media (max-width: 575.98px) {
  .project-item {
    flex-direction: column;
    gap: 16px;
  }

  .project-item__media {
    width: 100%;
    height: 200px;
  }
}

/* ==========================================================================
   ESG SECTION (Green Energy for Growth, Sustainability for All)
   Component: ESG Section (Figma node 191:4466)
   ภาพพื้นหลังเต็มจอ + overlay มืด 30% + ข้อความกึ่งกลาง
   หัวข้อ "Green Energy" ไล่เฉดเขียว (green-300) -> ขาว | ปุ่ม = .btn-more--light
   ใช้ token สี/ฟอนต์จาก :root
   ========================================================================== */

.esg {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  min-height: 100svh;
  padding: 80px clamp(24px, 6vw, 120px);
  overflow: hidden;
  text-align: center;
  color: #ffffff;
  font-family: "FC Minimal", sans-serif;
  background-image: url("../images/esg-bg.webp");
  background-size: cover;
  background-position: center;
}

/* overlay มืดทับภาพ ให้ตัวอักษรขาวอ่านชัด (ตาม design rgba(0,0,0,0.3)) */
.esg::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background-color: rgba(0, 0, 0, 0.3);
}

.esg__content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  width: 100%;
  max-width: 900px;
}

.esg__title-group {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.esg__title {
  margin: 0;
  font-weight: 500;
  font-size: clamp(32px, 5vw, var(--fc-minimal-heading-48-medium));
  /* 48px */
  line-height: 1.2;
  color: #ffffff;
}

/* "Green Energy" ไล่เฉดเขียว green-300 -> ขาว (จากล่างขึ้นบน) */
.esg__title-accent {
  background-image: linear-gradient(0deg, var(--kpn-green-green-green-300) 56.7%, #ffffff 86.9%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--kpn-green-green-green-300);
  /* fallback */
}

.esg__subtitle {
  margin: 0;
  font-weight: 400;
  font-size: clamp(18px, 2.5vw, var(--fc-minimal-heading-30-regular));
  /* 30px */
  line-height: 1.4;
  color: #ffffff;
}

/* ปุ่มในนี้จัดกึ่งกลาง (override align-self ของ .btn-more--light ที่ตั้งเป็น flex-start) */
.esg .btn-more--light {
  align-self: center;
}

/* ==========================================================================
   IR SECTION (นักลงทุนสัมพันธ์)
   Component: IR Section (Figma node 165:1149)
   ภาพพื้นหลัง + overlay มืด 40% | ส่วนบน: ข้อมูลหุ้น | ส่วนล่าง: แผง glass + การ์ดเอกสาร
   ใช้ token สี/ฟอนต์จาก :root | ปุ่มใช้ .btn-more (variant primary/light)
   ========================================================================== */

/* ปุ่ม filled สีน้ำเงิน (Figma Btn-default-normal = blue-600) — reusable variant */
.btn-more--primary {
  border-color: var(--kpn-green-blue-blue-600);
  background-color: var(--kpn-green-blue-blue-600);
  color: #ffffff;
}

.btn-more--primary .btn-more__icon {
  background-color: #ffffff;
  color: var(--kpn-green-blue-blue-600);
}

/* hover -> ส้ม orange-500 จัดการโดย .btn-more:hover อยู่แล้ว (ทุกปุ่ม hover ส้ม) */

.ir {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  padding: 80px clamp(20px, 6vw, 240px);
  overflow: hidden;
  color: #ffffff;
  font-family: "FC Minimal", sans-serif;
  background-image: url("../images/IR-Section/ir-bg.webp");
  background-size: cover;
  background-position: center;
}

.ir::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background-color: rgba(0, 0, 0, 0.4);
}

.ir__top,
.ir__bottom {
  position: relative;
  z-index: 1;
  width: 100%;
}

/* ข้อความไล่เฉดน้ำเงิน -> ขาว (จากล่างขึ้นบน) */
.ir-grad {
  background-image: linear-gradient(0deg, var(--kpn-green-blue-blue-500) 5%, #ffffff 66%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--kpn-green-blue-blue-500);
  /* fallback */
}

/* --- หัวข้อ --- */
.ir__head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-bottom: 48px;
  text-align: center;
}

.ir__eyebrow {
  margin: 0;
  font-weight: 500;
  font-size: var(--fc-minimal-paragraph-small-medium);
  /* 18px */
  color: #abb6bb;
  /* สีเฉพาะ design (ฟ้าเทาอ่อน) */
}

.ir__title {
  margin: 0;
  font-weight: 600;
  font-size: clamp(32px, 5vw, var(--fc-minimal-heading-48-semibold));
  /* 48px */
  line-height: 1.35;
  /* เผื่อสระบน/ล่างของไทย ไม่ให้ gradient clip กิน */
  padding-bottom: 0.08em;
}

/* --- แถวข้อมูลหุ้น --- */
.ir__stock {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  width: 100%;
  gap: 8px 0;
}

.ir__stock-item {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  padding: 4px 24px;
  border-right: 1px solid rgba(255, 255, 255, 0.15);
}

.ir__stock-item--symbol {
  align-items: flex-start;
  padding-left: 0;
  /* ชิดขอบซ้ายให้ตรงกับกรอบด้านล่าง */
}

.ir__stock-symbol {
  margin: 0;
  font-weight: 500;
  font-size: clamp(28px, 3vw, var(--fc-minimal-heading-40-medium));
  /* 40px */
  white-space: nowrap;
}

.ir__stock-updated {
  margin: 0;
  font-weight: 400;
  font-size: var(--fc-minimal-paragraph-detail-regular);
  /* 16px */
  color: #ffffff;
}

/* คอลัมน์ค่า (แบ่งพื้นที่เท่ากัน + จัดกึ่งกลางระหว่างเส้น divider) */
.ir__stock-item:not(.ir__stock-item--symbol) {
  flex: 1 1 0;
  min-width: 0;
  align-items: center;
  text-align: center;
}

.ir__stock-label {
  margin: 0;
  font-weight: 400;
  font-size: var(--fc-minimal-paragraph-small-regular);
  /* 18px */
  color: #ffffff;
}

.ir__stock-value {
  margin: 0;
  font-weight: 500;
  font-size: var(--fc-minimal-paragraph-large-medium);
  /* 24px */
  white-space: nowrap;
}

.ir__stock-action {
  display: flex;
  align-items: center;
  justify-content: center;
  padding-left: 32px;
}

/* --- แผงเอกสาร (glass) --- */
.ir__docs {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 48px;
  width: 100%;
  padding: 36px;
  border: 1px solid rgba(220, 220, 220, 0.3);
  border-radius: 36px;
  background-color: rgba(76, 76, 76, 0.3);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.ir__docs-row {
  display: flex;
  gap: 60px;
  align-items: stretch;
  width: 100%;
}

/* การ์ดหลัก Form 56-1 (hover -> overlay เข้ม + โชว์ปุ่ม) */
.ir__feature {
  position: relative;
  flex-shrink: 0;
  display: flex;
  align-items: flex-end;
  width: 340px;
  min-height: 480px;
  padding: 36px;
  border-radius: 36px;
  overflow: hidden;
  background-image: url("../images/IR-Section/ir-form561.webp");
  background-size: cover;
  background-position: center;
}

.ir__feature::after {
  content: "";
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.2);
  transition: background-color 0.3s ease;
}

.ir__feature:hover::after {
  background-color: rgba(0, 0, 0, 0.5);
}

.ir__feature-title {
  position: relative;
  z-index: 1;
  margin: 0;
  font-weight: 500;
  font-size: clamp(24px, 2.5vw, var(--fc-minimal-heading-30-medium));
  /* 30px */
  line-height: 1.2;
  color: #ffffff;
  transition: opacity 0.25s ease;
}

/* ปุ่มซ่อนไว้ก่อน เผยตอน hover การ์ด */
.ir__feature-actions {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.ir__feature:hover .ir__feature-title {
  opacity: 0;
}

.ir__feature:hover .ir__feature-actions {
  opacity: 1;
  visibility: visible;
}

/* ปุ่มในการ์ด Form 56-1 */
.ir-feature-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  width: 176px;
  height: 48px;
  border-radius: 50px;
  font-size: var(--fc-minimal-paragraph-small-regular);
  /* 18px */
  color: #ffffff;
  text-decoration: none;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.ir-feature-btn .ir-icon {
  width: 24px;
  height: 24px;
}

.ir-feature-btn--solid {
  background-color: var(--kpn-green-blue-blue-500);
}

.ir-feature-btn--outline {
  border: 1px solid #ffffff;
}

/* hover -> ส้ม orange-500 (ให้สอดคล้องทั้งเว็บ) */
.ir-feature-btn:hover {
  background-color: var(--kpn-green-orange-orange-500);
  border-color: var(--kpn-green-orange-orange-500);
  color: #ffffff;
}

.ir__docs-right {
  display: flex;
  flex: 1 1 0;
  min-width: 0;
  flex-direction: column;
  gap: 40px;
}

.ir__docs-top {
  display: flex;
  gap: 16px;
  align-items: flex-end;
  justify-content: space-between;
}

/* จอกลาง (992-1200px): เปลี่ยนเป็นแนวตั้ง */
@media (min-width: 992px) and (max-width: 1199.98px) {
  .ir__docs-top {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
  }
}

/* จอเล็ก (ต่ำกว่า 840px): เปลี่ยนเป็นแนวตั้ง */
@media (max-width: 839.98px) {
  .ir__docs-top {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
  }
}

/* ซ่อน br ใน subtitle ช่วง 992-1300px และต่ำกว่า 840px */
@media (min-width: 992px) and (max-width: 1299.98px) {
  .ir__docs-subtitle br {
    display: none;
  }
}

@media (max-width: 839.98px) {
  .ir__docs-subtitle br {
    display: none;
  }
}

.ir__docs-heading {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.ir__docs-title {
  margin: 0;
  font-weight: 500;
  font-size: clamp(28px, 3.5vw, var(--fc-minimal-heading-48-medium));
  /* 48px */
  line-height: 1.15;
  color: #ffffff;
}

.ir__docs-subtitle {
  margin: 0;
  font-weight: 400;
  font-size: var(--fc-minimal-paragraph-regular-regular);
  /* 20px */
  line-height: 1.4;
  color: #ffffff;
}

/* ปุ่มเลื่อน prev/next */
.ir__docs-nav {
  display: flex;
  gap: 16px;
  flex-shrink: 0;
}

.ir-navbtn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 1px solid var(--kpn-green-grey-grey-50);
  border-radius: 50%;
  background-color: transparent;
  color: #ffffff;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.ir-navbtn:hover {
  border-color: var(--kpn-green-orange-orange-500);
  background-color: var(--kpn-green-orange-orange-500);
  color: #ffffff;
}

/* ปุ่มถูกปิดเมื่อสุดทางซ้าย/ขวา (Swiper เพิ่มคลาสนี้ให้) */
.ir-navbtn.swiper-button-disabled {
  opacity: 0.4;
  pointer-events: none;
}

.ir-navbtn--prev svg {
  transform: rotate(180deg);
}

/* แทร็กการ์ดเอกสาร (Swiper) */
.ir-docs-swiper {
  width: 100%;
  margin-top: auto;
  /* ดันแทร็กลงล่างให้การ์ดชิดล่างเท่ากับการ์ด Form 56-1 */
  padding-bottom: 8px;
  /* กันสไลด์ล้นตอนยังไม่ init swiper */
  overflow: hidden;
}

/* การ์ดเอกสารแต่ละใบ (เป็น swiper-slide ในตัว) */
.ir-doc {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 400px;
  height: 280px;
  padding: 36px;
  border-radius: 16px;
  overflow: hidden;
  background-color: #ffffff;
}

/* swiper-bundle.min.css โหลดหลัง style.css และตั้ง .swiper-slide { width:100%; height:100% }
   ซึ่งทับ .ir-doc (specificity เท่ากัน) → การ์ดยืดเต็มแถว — ล็อกขนาดการ์ดด้วย selector ที่เจาะจงกว่า
   และ .swiper-slide { display:block } ทับ flex → footer ไม่ถูกดันลงล่าง (เห็นชัดบนมือถือที่ height:auto) */
.ir-docs-swiper .ir-doc {
  display: flex;
  width: 400px;
  height: 280px;
}

/* จอเล็ก (ต่ำกว่า 540px): ไม่ใช้ Swiper แต่แสดงเป็น grid แทน */
@media (max-width: 539.98px) {
  /* ซ่อนปุ่ม prev/next */
  /* .ir__docs-nav {
    display: none;
  } */

  /* ปิด Swiper และแสดงเป็น grid ธรรมดา */
  .ir-docs-swiper--no-swiper .swiper-wrapper {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    transform: none !important;
    /* ปิด Swiper transform */
  }

  .ir-docs-swiper--no-swiper .swiper-slide {
    width: 100% !important;
  }

  .ir-doc,
  .ir-docs-swiper .ir-doc {
    width: 100%;
    max-width: 100%;
    height: auto;
    min-height: 220px;
    padding: 24px;
    gap: 24px;
    /* ระยะขั้นต่ำระหว่างหัวข้อกับปุ่ม กรณีหัวข้อยาวหลายบรรทัด */
  }

  .ir-doc__title {
    font-size: 20px;
    line-height: 1.3;
  }

  .ir-doc__action {
    font-size: 16px;
    gap: 8px;
  }

  .ir-doc__action .ir-icon {
    width: 20px;
    height: 20px;
  }

  .ir-doc__divider {
    height: 30px;
  }

  .ir-doc__footer {
    gap: 8px;
  }
}

/* จอเล็กมาก (ต่ำกว่า 462px): ปรับ footer เป็นแนวตั้ง */
@media (max-width: 461.98px) {
  .ir-doc {
    padding: 20px;
  }

  .ir-doc__footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .ir-doc__divider {
    display: none;
    /* ซ่อนเส้นแบ่ง */
  }

  .ir-doc__action {
    font-size: 15px;
  }

  .ir-doc__title {
    font-size: 18px;
  }
}

/* โลโก้จาง ๆ มุมการ์ด */
.ir-doc::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("../images/IR-Section/document-icon.webp");
  background-repeat: no-repeat;
  background-position: right -10% bottom -10%;
  background-size: 70%;
  opacity: 0.35;
  pointer-events: none;
  transition: transform 0.4s ease, opacity 0.4s ease;
}

/* hover: ให้เฉพาะรูปโลโก้ขยับ (ตัวการ์ดอยู่นิ่ง) */
.ir-doc:hover::before {
  transform: translate(-10px, -10px) scale(1.06);
  opacity: 0.5;
}

.ir-doc__title,
.ir-doc__footer {
  position: relative;
  z-index: 1;
}

.ir-doc__title {
  margin: 0;
  font-weight: 500;
  font-size: clamp(22px, 2.4vw, var(--fc-minimal-heading-30-medium));
  /* 30px */
  line-height: 1.25;
  color: #121212;
}

.ir-doc__footer {
  display: flex;
  align-items: center;
  gap: 24px;
}

.ir-doc__action {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: var(--fc-minimal-paragraph-regular-regular);
  /* 20px */
  color: var(--kpn-green-grey-grey-600);
  text-decoration: none;
  transition: color 0.2s ease;
}

.ir-doc__action:hover {
  color: var(--kpn-green-orange-orange-500);
}

.ir-doc__action .ir-icon {
  width: 24px;
  height: 24px;
}

.ir-doc__divider {
  width: 1px;
  height: 40px;
  background-color: var(--kpn-green-grey-grey-100);
}

.ir__docs-more {
  align-self: center;
}

/* --- จอกลาง: แผงเอกสารเรียงแนวตั้ง --- */
@media (max-width: 991.98px) {
  .ir__docs-row {
    flex-direction: column;
    gap: 32px;
  }

  .ir__feature {
    width: 100%;
    min-height: 260px;
  }
}

/* --- IR แถบหุ้น: แท็บเล็ต (768–1199px)
   แถวบน: ชื่อย่อหุ้น (ซ้าย) + ปุ่มราคาหลักทรัพย์ (ขวาสุด) | แถวล่าง: 3 ค่า --- */
@media (min-width: 768px) and (max-width: 1199.98px) {
  .ir__stock {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    column-gap: 0;
    row-gap: 20px;
    align-items: stretch;
  }

  /* ชื่อย่อหุ้น: ซ้าย กว้าง 2 คอลัมน์ แถวบน */
  .ir__stock-item--symbol {
    grid-column: 1 / 3;
    grid-row: 1;
    align-items: flex-start;
    border-right: none;
    padding: 0 0 16px;
  }

  /* ปุ่มราคาหลักทรัพย์: คอลัมน์ขวาสุด แถวบน ชิดขวา */
  .ir__stock-action {
    grid-column: 3 / 4;
    grid-row: 1;
    align-self: stretch;
    justify-content: flex-end;
    align-items: center;
    padding: 0 0 16px;
  }

  /* 3 ค่า: แถวล่าง เรียงเท่ากัน 3 คอลัมน์ */
  .ir__stock-item:nth-child(2) {
    grid-column: 1;
    grid-row: 2;
    padding-left: 0;
  }

  .ir__stock-item:nth-child(3) {
    grid-column: 2;
    grid-row: 2;
  }

  .ir__stock-item:nth-child(4) {
    grid-column: 3;
    grid-row: 2;
    border-right: none;
  }
}

/* --- IR แถบหุ้น: มือถือ (<768px) เรียงแนวตั้งทุกบรรทัด --- */
@media (max-width: 767.98px) {
  .ir__stock {
    flex-direction: column;
    align-items: stretch;
  }

  .ir__stock-item {
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.25);
    padding: 12px 0;
    align-items: center;
    text-align: center;
  }

  .ir__stock-item--symbol {
    align-items: center;
  }

  .ir__stock-action {
    justify-content: center;
    padding: 16px 0 0;
  }
}

/* ==========================================================================
   NEWS SECTION (ข่าวประชาสัมพันธ์)
   Component: News Section (Figma node 205:4270)
   หัวข้อไล่เฉดเขียว + ปุ่ม (เหมือน business/projref) | ข่าวเด่นใหญ่ (ซ้าย) + รายการข่าว 4 (ขวา)
   ใช้ token สี/ฟอนต์จาก :root
   ========================================================================== */

.news {
  position: relative;
  background-color: #ffffff;
  padding: 80px clamp(20px, 6vw, 240px);
  font-family: "FC Minimal", sans-serif;
}

/* --- หัวข้อ + ปุ่ม (แพตเทิร์นเดียวกับ business/projref) --- */
.news__header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 64px;
}

.news__title {
  margin: 0 0 8px;
  font-weight: 500;
  font-size: clamp(28px, 4vw, var(--fc-minimal-heading-48-medium));
  /* 48px */
  line-height: 1.1;
  background-image: linear-gradient(0deg, var(--kpn-green-green-green-200) 0%, var(--kpn-green-green-green-600) 76%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--kpn-green-green-green-600);
  /* fallback */
}

.news__subtitle {
  margin: 0;
  font-weight: 400;
  font-size: var(--fc-minimal-paragraph-regular-regular);
  /* 20px */
  line-height: 1.4;
  color: var(--kpn-green-grey-grey-700);
}

@media (max-width:424px) {
  .br-news-sub {
    display: none;
  }
}

/* --- เนื้อหา: ข่าวเด่น (ซ้าย) + รายการ (ขวา) --- */
.news__content {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 32px;
}

/* ข่าวเด่นใหญ่ */
.news-featured {
  position: relative;
  flex: 1 1 480px;
  min-width: 0;
  min-height: 600px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  border-radius: 24px;
  overflow: hidden;
  color: #ffffff;
  background-size: cover;
  background-position: center;
}

/* ไล่เฉดมืดน้ำเงินจากล่างขึ้น ให้ตัวอักษรอ่านชัด */
.news-featured::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(to top, var(--kpn-green-blue-blue-800) 0%, rgba(18, 94, 125, 0) 55%);
}

.news-featured__body {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 32px;
  align-items: flex-end;
  padding: 32px;
}

.news-featured__text {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.news-featured__title {
  margin: 0;
  font-weight: 500;
  font-size: clamp(22px, 2.6vw, var(--fc-minimal-heading-30-medium));
  /* 30px */
  line-height: 1.25;
  color: #ffffff;
}

.news-featured__desc {
  margin: 0;
  font-weight: 400;
  font-size: var(--fc-minimal-paragraph-small-regular);
  /* 18px */
  line-height: 1.45;
  color: #ffffff;
  /* ตัดข้อความเกิน 2 บรรทัด */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* รายการข่าวด้านขวา */
.news__list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 0 1 649px;
  min-width: 0;
}

.news-item {
  display: flex;
  gap: 32px;
  min-height: 140px;
}

.news-item__media {
  flex-shrink: 0;
  align-self: stretch;
  width: 230px;
  height: 140px;
  border-radius: 16px;
  overflow: hidden;
}

.news-item__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.news-item:hover .news-item__img {
  transform: scale(1.06);
}

.news-item__main {
  display: flex;
  flex: 1 1 0;
  min-width: 0;
  gap: 16px;
  align-items: stretch;
}

.news-item__body {
  display: flex;
  flex: 1 1 0;
  min-width: 0;
  flex-direction: column;
  gap: 8px;
  padding-top: 8px;
}

.news-item__title {
  margin: 0;
  font-weight: 500;
  font-size: var(--fc-minimal-paragraph-regular-medium);
  /* 20px */
  line-height: 1.25;
  color: #000000;
}

.news-item__desc {
  margin: 0;
  font-weight: 400;
  font-size: var(--fc-minimal-paragraph-small-regular);
  /* 18px */
  line-height: 1.4;
  color: var(--kpn-green-grey-grey-700);
  /* ตัดข้อความเกิน 2 บรรทัด */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-item__action {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  flex-shrink: 0;
}

/* ปุ่มวงกลมลูกศร ↗ (ใช้ทั้งข่าวเด่นและรายการ) */
.news-arrow-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  flex-shrink: 0;
  border: 1px solid var(--kpn-green-grey-grey-50);
  border-radius: 50%;
  background-color: #ffffff;
  color: var(--kpn-green-grey-grey-900);
  /* สีลูกศร */
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

/* ปุ่มข่าวเด่น: พื้นน้ำเงิน blue-500 ลูกศรขาว */
.news-arrow-btn--solid {
  border-color: var(--kpn-green-blue-blue-500);
  background-color: var(--kpn-green-blue-blue-500);
  color: #ffffff;
}

/* hover -> ส้ม orange-500 (สอดคล้องทั้งเว็บ) */
.news-arrow-btn:hover {
  border-color: var(--kpn-green-orange-orange-500);
  background-color: var(--kpn-green-orange-orange-500);
  color: #ffffff;
}

.news-arrow-btn svg {
  width: 14px;
  height: 14px;
}

/* --- จอกลาง: ข่าวเด่นกับรายการเรียงเป็นแนวตั้ง --- */
@media (max-width: 991.98px) {
  .news__list {
    flex: 1 1 100%;
  }

  .news-featured {
    flex: 1 1 100%;
    min-height: 420px;
  }
}

/* --- จอกลาง-ใหญ่ (992-1320px): ให้รายการข่าวขยายเต็มที่ --- */
@media (min-width: 992px) and (max-width: 1319.98px) {
  .news__list {
    flex: 1 1 100%;
  }
}

/* --- จอเล็ก: การ์ดข่าวเรียงรูปบน เนื้อหาล่าง --- */
@media (max-width: 575.98px) {
  .news-item {
    flex-direction: column;
    gap: 16px;
    padding-bottom: 12px;
  }

  .news-item__media {
    width: 100%;
    height: 180px;
  }
}

/* ==========================================================================
   FOOTER (Footer - footer,start)
   Component: Footer (Figma node 205:4598)
   ภาพพื้นหลัง + overlay มืด + มุมบนโค้ง 120px | CTA "Be Part of KPN Green" + ข้อมูลบริษัท/ลิงก์
   ใช้ token สี/ฟอนต์จาก :root | ปุ่ม reuse .btn-more--primary/.btn-more--light, gradient ใช้ .ir-grad
   ========================================================================== */

.site-footer {
  position: relative;
  padding: 80px clamp(24px, 6vw, 240px) 40px;
  border-radius: 120px 120px 0 0;
  overflow: hidden;
  color: #ffffff;
  font-family: "FC Minimal", sans-serif;
  background-image: url("../images/footer-bg.webp");
  background-size: cover;
  background-position: center;
}

/* overlay มืดให้ตัวอักษรขาวอ่านชัด */
.site-footer::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background-color: rgba(0, 0, 0, 0.2);
  border-radius: inherit;
}

.site-footer__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 80px;
  max-width: 1440px;
  margin: 0 auto;
}

/* --- CTA --- */
.footer-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 48px;
  padding: clamp(40px, 6vw, 80px) clamp(24px, 8vw, 240px);
  border-radius: 56px;
  text-align: center;
}

.footer-cta__title {
  margin: 0;
  font-weight: 500;
  font-size: clamp(32px, 5vw, var(--fc-minimal-heading-48-medium));
  /* 48px */
  line-height: 1.3;
  padding-bottom: 0.08em;
}

.footer-cta__text {
  margin: 0;
  max-width: 1201px;
  font-weight: 400;
  font-size: clamp(18px, 2.2vw, var(--fc-minimal-paragraph-large-regular));
  /* 24px */
  line-height: 1.5;
  color: #ffffff;
}

.footer-cta__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

/* --- ส่วนข้อมูลบริษัท + ลิงก์ (brand ซ้าย / ลิงก์ขวา ในแถวเดียว) --- */
.footer-main {
  display: flex;
  flex-wrap: wrap;
  gap: 60px;
  align-items: flex-start;
}

.footer-brand {
  flex: 0 0 auto;
  width: 460px;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.footer-brand__logo {
  display: block;
  width: clamp(160px, 16vw, 208px);
  height: auto;
}

.footer-brand__name {
  margin: 0;
  font-weight: 500;
  font-size: var(--fc-minimal-paragraph-large-medium);
  /* 24px */
  color: #ffffff;
}

.footer-contact {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.footer-contact li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-weight: 400;
  font-size: var(--fc-minimal-paragraph-small-regular);
  /* 18px */
  line-height: 1.4;
  color: #ffffff;
}

.footer-contact__icon {
  display: flex;
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  color: #ffffff;
}

.footer-contact a {
  color: #ffffff;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-contact a:hover {
  color: var(--kpn-green-orange-orange-500);
}

/* social icons */
.footer-social {
  display: flex;
  gap: 18px;
}

.footer-social a {
  display: flex;
  width: 28px;
  height: 28px;
  color: #ffffff;
  transition: color 0.2s ease, transform 0.2s ease;
}

.footer-social a:hover {
  color: var(--kpn-green-orange-orange-500);
  transform: translateY(-2px);
}

.footer-social svg {
  width: 100%;
  height: 100%;
}

/* คอลัมน์ลิงก์ (อยู่ขวาของ brand) */
.footer-links {
  flex: 1 1 360px;
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  justify-content: space-between;
  padding-top: 48px;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.footer-col__head {
  margin: 0;
  font-weight: 500;
  font-size: var(--fc-minimal-paragraph-regular-medium);
  /* 20px */
  color: #ffffff;
}

.footer-col__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-col__list a {
  font-weight: 400;
  font-size: var(--fc-minimal-paragraph-regular-regular);
  /* 20px */
  color: #ffffff;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-col__list a:hover {
  color: var(--kpn-green-orange-orange-500);
}

/* --- แถบลิขสิทธิ์ + ลิงก์นโยบาย (เส้นแบ่งบาง บรรทัดเดียว) --- */
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.footer-bottom__copy {
  margin: 0;
  font-weight: 400;
  font-size: var(--fc-minimal-paragraph-detail-regular);
  /* 16px */
  color: rgba(255, 255, 255, 0.75);
}

.footer-bottom__links {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-bottom__links a {
  font-weight: 400;
  font-size: var(--fc-minimal-paragraph-detail-regular);
  /* 16px */
  color: #ffffff;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-bottom__links a:hover {
  color: var(--kpn-green-orange-orange-500);
}

.footer-bottom__sep {
  color: rgba(255, 255, 255, 0.4);
}

/* --- จอกลาง/เล็ก --- */
@media (max-width: 991.98px) {
  .site-footer {
    border-radius: 60px 60px 0 0;
  }

  .footer-main {
    flex-direction: column;
    gap: 48px;
  }

  .footer-brand {
    width: 100%;
  }

  .footer-links {
    padding-top: 0;
    gap: 40px;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
}

@media (max-width: 1240px) {
  .br-footer {
    display: none;
  }
}

/* ==========================================================================
   PAGE HERO (หน้า detail) — Figma node 218:11971 "Section - Detail page"
   แบนเนอร์หัวหน้าใน: รูปพื้นหลัง + gradient ทึบ + breadcrumb + หัวข้อใหญ่
   ใช้ร่วมกับ header แบบ .site-header--transparent (พื้นโปร่ง ตัวอักษรขาว)
   ใช้ token สี/ฟอนต์จาก :root เหมือน section อื่น
   ========================================================================== */

.page-hero {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 480px;
  /* เว้น header fixed แล้วจัดเนื้อหา hero ให้อยู่กลางแนวตั้ง */
  padding: 144px clamp(24px, 5vw, 300px) 72px;
  color: #ffffff;
  font-family: "FC Minimal", sans-serif;
  background-color: var(--kpn-green-grey-grey-700);
  /* fallback ระหว่างรูปโหลด */
  background-size: cover;
  background-position: center bottom;
  background-repeat: no-repeat;
  overflow: hidden;
}

/* gradient ทึบทับรูป ให้ตัวอักษรขาวอ่านชัด (ตาม Figma: บนลงล่าง + ทับทั้งภาพ) */
.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image:
    linear-gradient(180deg, rgba(0, 0, 0, 0.6) 1.45%, rgba(102, 102, 102, 0) 82.3%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.25) 0%, rgba(0, 0, 0, 0.25) 100%);
}

.page-hero__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  width: 100%;
  text-align: center;
}

/* --- breadcrumb --- */
.page-hero__breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.page-hero__breadcrumb li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  /* FC Minimal Medium */
  font-size: var(--fc-minimal-paragraph-small-medium);
  /* 18px */
  line-height: 1;
  color: #ffffff;
}

.page-hero__breadcrumb a {
  color: #ffffff;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.page-hero__breadcrumb a:hover {
  opacity: 0.75;
}

/* ตัวคั่น "-" ระหว่างรายการ (ทุกตัวยกเว้นตัวแรก) */
.page-hero__breadcrumb li+li::before {
  content: "/";
  color: #ffffff;
}

/* รายการสุดท้าย = หน้าปัจจุบัน */
.page-hero__breadcrumb li[aria-current="page"] {
  opacity: 0.9;
}

/* --- หัวข้อหน้า --- */
.page-hero__title {
  margin: 0;
  font-weight: 600;
  /* FC Minimal SemiBold */
  font-size: clamp(36px, 5vw, var(--fc-minimal-display-64-semibold));
  /* 64px */
  line-height: 1.1;
  color: #ffffff;
}

.page-hero__subtitle {
  display: none;
  margin: 0;
  font-weight: 400;
  /* FC Minimal Regular */
  font-size: clamp(16px, 2vw, var(--fc-minimal-paragraph-regular-regular));
  /* 20px */
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.9);
}

@media (max-width: 768px) {
  .page-hero {
    min-height: 420px;
    padding: 120px 24px 64px;
  }
}

/* ==========================================================================
   LEGAL / DOCUMENT PAGE (เอกสารนโยบาย เช่น Cookies Policy, Privacy)
   ยึดแพตเทิร์นระบบหลัก: พื้นขาว, หัวข้อไล่เฉดน้ำเงิน (เหมือน .ir-grad / .business__title),
   spacing โปร่ง, การ์ดขอบบาง radius ใหญ่ (เหมือน .projref-card), ตารางเรียบ
   โทนน้ำเงินอยู่ที่หัวข้อ/ลิงก์/ตาราง — ไม่ใส่ของตกแต่งเกินระบบ
   ใช้ token สี/ฟอนต์จาก :root เท่านั้น
   ========================================================================== */

.legal {
  background-color: #ffffff;
  font-family: "FC Minimal", sans-serif;
  padding: 80px clamp(20px, 6vw, 240px) 120px;
  color: var(--kpn-green-grey-grey-700);
}

.legal__inner {
  max-width: 1240px;
  margin: 0 auto;
}

/* layout 2 คอลัมน์: เนื้อหา + การ์ดไฟล์ sticky ด้านข้าง */
.legal__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 48px;
  align-items: start;
}

.legal__main {
  min-width: 0;
}

.legal__aside {
  position: sticky;
  top: 132px;
  /* เว้นระยะจาก header fixed ไม่ให้การ์ดชิดตอน scroll */
}

/* การ์ดไฟล์เอกสารฉบับนี้ */
.legal__filecard {
  padding: 28px;
  border: 2px solid var(--kpn-green-grey-grey-50);
  border-radius: 24px;
  background-color: #ffffff;
  box-shadow: 0 12px 30px rgba(13, 72, 95, 0.05);
}

.legal__filecard-eyebrow {
  margin: 0 0 16px;
  font-weight: 500;
  font-size: var(--fc-minimal-paragraph-detail-medium);
  /* 16px */
  color: var(--kpn-green-grey-grey-400);
}

.legal__filecard-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  margin-bottom: 16px;
  border-radius: 14px;
  background-color: #f6f6f6;
  color: #000;
}

.legal__filecard-icon svg {
  width: 28px;
  height: 28px;
}

.legal__filecard-title {
  margin: 0 0 8px;
  font-weight: 600;
  font-size: var(--fc-minimal-paragraph-regular-semibold);
  /* 20px */
  line-height: 1.4;
  color: var(--kpn-green-grey-grey-800);
}

.legal__filecard-meta {
  margin: 0 0 20px;
  font-size: var(--fc-minimal-paragraph-detail-regular);
  /* 16px */
  color: var(--kpn-green-grey-grey-500);
}

.legal__filecard-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* ปุ่มไฟล์ (solid = ดาวน์โหลด / outline = ดูออนไลน์) hover ส้มตามระบบ
   ใช้ .legal นำหน้าให้ specificity ชนะกฎ .legal a (กันสี/ขีดเส้นใต้ทับ) */
.legal .legal__file-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 50px;
  border-radius: 50px;
  font-size: var(--fc-minimal-paragraph-small-regular);
  /* 18px */
  text-decoration: none;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.legal .legal__file-btn svg {
  width: 22px;
  height: 22px;
}

.legal .legal__file-btn--solid {
  background-color: var(--kpn-green-blue-blue-600);
  border: 1px solid var(--kpn-green-blue-blue-600);
  color: #ffffff;
}

.legal .legal__file-btn--outline {
  background-color: transparent;
  border: 1px solid var(--kpn-green-grey-grey-50);
  color: var(--kpn-green-grey-grey-700);
}

.legal .legal__file-btn:hover {
  background-color: var(--kpn-green-orange-orange-500);
  border-color: var(--kpn-green-orange-orange-500);
  color: #ffffff;
}

/* จอเล็ก: การ์ดไฟล์ไปอยู่ล่างสุดเสมอ ไม่ sticky */
@media (max-width: 991.98px) {
  .legal__layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .legal__aside {
    position: static;
    /* คงลำดับ DOM (main -> aside) ให้การ์ดอยู่ใต้เนื้อหา */
  }
}

/* รายการหัวข้อหลัก: เลขลำดับอัตโนมัติด้วย CSS counter + เส้นคั่นบางๆ */
.legal__list {
  counter-reset: legal;
  list-style: none;
  margin: 0;
  padding: 0;
}

.legal__list>li {
  counter-increment: legal;
  scroll-margin-top: 100px;
  padding: 48px 0;
  border-top: 1px solid var(--kpn-green-grey-grey-50);
}

.legal__list>li:first-child {
  padding-top: 0;
  border-top: none;
}

/* ตัด padding ล่างของหัวข้อสุดท้าย เพื่อให้ขอบล่างคอลัมน์ซ้าย
   ตรงกับเนื้อหาจริง -> การ์ด sticky หยุดเสมอกับด้านซ้าย ไม่เหลื่อม */
.legal__list>li:last-child {
  padding-bottom: 0;
}

/* เฉพาะหน้า cookie (ol.legal__list.cookie-custom): คืน padding ล่างให้หัวข้อสุดท้าย */
.legal__list.cookie-custom>li:last-child {
  padding-bottom: 48px;
}

/* หัวข้อหลัก: ไล่เฉดน้ำเงิน (blue-400 -> blue-700) แบบเดียวกับหัวข้อ section อื่น */
.legal__heading {
  margin: 0 0 18px;
  font-weight: 600;
  font-size: clamp(22px, 3vw, var(--fc-minimal-heading-32-semibold));
  /* 32px */
  line-height: 1.4;
  /* เผื่อสระไทยไม่ให้ gradient clip กิน */
  padding-bottom: 0.06em;
  background-image: linear-gradient(0deg, var(--kpn-green-green-green-400) 0%, var(--kpn-green-green-green-700) 80%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--kpn-green-blue-blue-700);
  /* fallback */
}

.legal__heading::before {
  content: counter(legal) ". ";
}

/* หัวข้อย่อย */
.legal__subheading {
  margin: 28px 0 12px;
  font-weight: 500;
  font-size: var(--fc-minimal-paragraph-large-medium);
  /* 24px */
  line-height: 1.4;
  color: var(--kpn-green-blue-blue-700);
}

/* ชื่อนิยาม (คุกกี้แต่ละประเภท) */
.legal__term {
  margin: 24px 0 6px;
  font-weight: 600;
  font-size: var(--fc-minimal-paragraph-regular-semibold);
  /* 20px */
  color: var(--kpn-green-grey-grey-800);
}

/* ย่อหน้าเนื้อหา */
.legal p {
  margin: 0 0 16px;
  font-weight: 400;
  font-size: var(--fc-minimal-paragraph-small-regular);
  /* 18px */
  line-height: 1.8;
  color: var(--kpn-green-grey-grey-700);
}

.legal p:last-child {
  margin-bottom: 0;
}

/* ลิงก์ในเนื้อหา (น้ำเงินตามโทนหลัก) */
.legal a {
  color: var(--kpn-green-blue-blue-600);
  text-decoration: none;
  overflow-wrap: break-word; /* URL ยาว ๆ ตัดบรรทัดได้ — ไม่ใช้ anywhere/break-word ของ word-break เพราะ Safari ตัดสระไทยหลุด */
  transition: color 0.2s ease;
}

.legal a:hover {
  color: var(--kpn-green-orange-orange-500);
}

/* ลิสต์ในเนื้อหา */
.legal__bullets {
  margin: 0 0 16px;
  padding-left: 22px;
  list-style: disc;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.legal__bullets li {
  font-weight: 400;
  font-size: var(--fc-minimal-paragraph-small-regular);
  /* 18px */
  line-height: 1.7;
  color: var(--kpn-green-grey-grey-700);
}

.legal__bullets li::marker {
  color: var(--kpn-green-orange-orange-500);
}

.legal__bullets li b {
  font-weight: 600;
  color: var(--kpn-green-grey-grey-800);
}

/* ตาราง — header น้ำเงินอ่อน เส้นขอบเทา (เรียบตามระบบ) */
.legal__table-wrap {
  overflow-x: auto;
  margin: 8px 0 16px;
}

.legal__table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--fc-minimal-paragraph-detail-regular);
  /* 16px */
}

.legal__table th,
.legal__table td {
  padding: 14px 18px;
  text-align: left;
  vertical-align: top;
  line-height: 1.6;
  border: 1px solid var(--kpn-green-grey-grey-100);
}

.legal__table th {
  background-color: var(--kpn-green-blue-blue-50);
  font-weight: 600;
  color: var(--kpn-green-blue-blue-800);
  white-space: nowrap;
}

.legal__table td:first-child {
  font-weight: 500;
  color: var(--kpn-green-grey-grey-800);
  white-space: nowrap;
}

/* ตารางคำนิยาม: คอลัมน์ซ้ายเป็นศัพท์ยาว -> ให้ขึ้นบรรทัดได้ + กว้างคงที่ */
.legal__table--terms td:first-child {
  white-space: normal;
  width: 32%;
  color: var(--kpn-green-blue-blue-800);
}

/* ช่องทางติดต่อ — การ์ดขอบบาง radius ใหญ่ (แพตเทิร์นเดียวกับ .projref-card) */
.legal__contact {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 8px;
}

.legal__contact-card {
  padding: 28px;
  border: 2px solid var(--kpn-green-grey-grey-50);
  border-radius: 24px;
}

.legal__contact-card h3 {
  margin: 0 0 12px;
  font-weight: 600;
  font-size: var(--fc-minimal-paragraph-regular-semibold);
  /* 20px */
  color: var(--kpn-green-blue-blue-700);
}

.legal__contact-card p {
  margin: 0 0 6px;
  font-size: var(--fc-minimal-paragraph-detail-regular);
  /* 16px */
  line-height: 1.65;
}

/* ส่วนท้ายเอกสาร: วันที่มีผล + ลายเซ็น (เรียบ มีเส้นคั่นด้านบน) */
.legal__sign {
  margin-top: 8px;
  padding-top: 40px;
  border-top: 1px solid var(--kpn-green-grey-grey-50);
  text-align: center;
}

.legal__sign p {
  margin: 0 0 8px;
  text-align: center;
}

.legal__sign-name {
  margin-top: 36px;
  font-weight: 600;
  color: var(--kpn-green-grey-grey-800);
}

/* ==========================================================================
   DOCUMENTS / DOWNLOADS PAGE (หน้ารวมเอกสารดาวน์โหลด เช่น เอกสารและไฟล์)
   ยึดแพตเทิร์นระบบหลัก: หัวข้อกลุ่มไล่เฉดน้ำเงิน + การ์ดรายการขอบบาง
   ปุ่มวงกลม hover ส้ม (เหมือน .project-item__btn) | ใช้ token จาก :root เท่านั้น
   ========================================================================== */

.docs {
  background-color: #ffffff;
  font-family: "FC Minimal", sans-serif;
  padding: 80px clamp(20px, 6vw, 200px) 120px;
  color: var(--kpn-green-grey-grey-700);
}

.docs__inner {
  max-width: 1200px;
  margin: 0 auto;
}

/* --- แถบเครื่องมือ: ช่องค้นหา --- */
.docs__toolbar {
  margin-bottom: 32px;
}

.docs__search-field {
  position: relative;
  display: flex;
  align-items: center;
  max-width: 520px;
}

.docs__search-field svg {
  position: absolute;
  left: 18px;
  width: 20px;
  height: 20px;
  color: var(--kpn-green-grey-grey-400);
  pointer-events: none;
}

.docs__search {
  width: 100%;
  height: 52px;
  padding: 8px 20px 8px 48px;
  border: 1px solid var(--kpn-green-grey-grey-100);
  border-radius: 52px;
  font-family: "FC Minimal", sans-serif;
  font-size: var(--fc-minimal-paragraph-small-regular);
  /* 18px */
  color: var(--kpn-green-grey-grey-800);
  background-color: #ffffff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.docs__search::placeholder {
  color: var(--kpn-green-grey-grey-300);
}

.docs__search:focus {
  outline: none;
  border-color: var(--kpn-green-blue-blue-400);
  box-shadow: 0 0 0 4px rgba(32, 171, 227, 0.12);
}

/* --- รายการกลุ่ม --- */
.docs__list {
  display: flex;
  flex-direction: column;
  gap: 56px;
}

/* หัวหมวด: ชื่อ (ไล่เฉดน้ำเงิน) + จำนวนรายการ */
.doc-group__head {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin-bottom: 24px;
}

.doc-group__title {
  margin: 0;
  font-weight: 600;
  font-size: clamp(22px, 3vw, var(--fc-minimal-heading-32-semibold));
  /* 32px */
  line-height: 1.4;
  padding-bottom: 0.04em;
  background-image: linear-gradient(0deg, var(--kpn-green-green-green-200) 0%, var(--kpn-green-green-green-600) 76%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--kpn-green-green-green-600);
  /* fallback */
}

.doc-group__count {
  flex-shrink: 0;
  font-weight: 400;
  font-size: var(--fc-minimal-paragraph-detail-regular);
  /* 16px */
  color: var(--kpn-green-grey-grey-400);
  white-space: nowrap;
}

.doc-group__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(420px, 1fr));
  gap: 12px;
}

/* --- รายการเอกสารแต่ละไฟล์ --- */
.doc-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 18px;
  border: 1px solid var(--kpn-green-grey-grey-100);
  border-radius: 14px;
  background-color: #ffffff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

/* .doc-item:hover {
  border-color: var(--kpn-green-blue-blue-200);
  box-shadow: 0 8px 20px rgba(13, 72, 95, 0.06);
} */

.doc-item__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: 12px;
  background-color: #f6f6f6;
  color: #000;
}

.doc-item__icon svg {
  width: 22px;
  height: 22px;
}

.doc-item__name {
  flex: 1 1 0;
  min-width: 0;
  margin: 0;
  font-weight: 500;
  font-size: var(--fc-minimal-paragraph-detail-medium);
  /* 16px */
  line-height: 1.45;
  color: var(--kpn-green-grey-grey-800);
}

/* ปุ่ม ดาวน์โหลด / ดูออนไลน์ (แพตเทิร์นเดียวกับ .ir-doc__action) */
.doc-item__actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}

.doc-item__action {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: var(--fc-minimal-paragraph-detail-regular);
  /* 16px */
  color: var(--kpn-green-grey-grey-600);
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.2s ease;
}

.doc-item__action svg {
  width: 20px;
  height: 20px;
}

.doc-item__action:hover {
  color: var(--kpn-green-orange-orange-500);
}

.doc-item__divider {
  width: 1px;
  height: 20px;
  background-color: var(--kpn-green-grey-grey-100);
  flex-shrink: 0;
}

/* --- ปุ่มแบ่งหน้า (ย้อนกลับ / ถัดไป + เลขหน้า) --- */
.doc-group__pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 28px;
}

.docs__nav-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  flex-shrink: 0;
  border: 1px solid var(--kpn-green-grey-grey-100);
  border-radius: 50%;
  background-color: #ffffff;
  color: var(--kpn-green-grey-grey-900);
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.docs__nav-btn svg {
  width: 18px;
  height: 18px;
}

.docs__nav-btn--prev svg {
  transform: rotate(180deg);
}

.docs__nav-btn:hover:not(:disabled) {
  border-color: var(--kpn-green-orange-orange-500);
  background-color: var(--kpn-green-orange-orange-500);
  color: #ffffff;
}

.docs__nav-btn:disabled {
  opacity: 0.4;
  cursor: default;
}

.doc-group__page {
  min-width: 56px;
  text-align: center;
  font-size: var(--fc-minimal-paragraph-small-regular);
  /* 18px */
  color: var(--kpn-green-grey-grey-600);
}

/* ข้อความเมื่อค้นหาไม่พบ */
.docs__empty {
  display: none;
  padding: 40px 0;
  text-align: center;
  font-size: var(--fc-minimal-paragraph-small-regular);
  /* 18px */
  color: var(--kpn-green-grey-grey-400);
}

/* --- จอเล็ก: รายการคอลัมน์เดียว + ปุ่มลงมาอยู่ใต้ชื่อ --- */
@media (max-width: 768px) {
  .doc-group__grid {
    grid-template-columns: 1fr;
  }

  .doc-item {
    flex-wrap: wrap;
  }

  .doc-item__name {
    flex: 1 1 calc(100% - 60px);
  }

  .doc-item__actions {
    width: 100%;
    padding-left: 60px;
  }
}

/* ==========================================================================
   COOKIE CONSENT (modal มุมล่างขวา)
   ฟังก์ชันตาม TEBP / สไตล์ตามระบบ KPN
   inject จาก include/cookie.html เข้า #cookie-modal-container ผ่าน js/cookie.js
   ========================================================================== */
.cookie-consent {
  font-family: "FC Minimal", sans-serif;
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 1040;
  /* เหนือเนื้อหา/header (header = 1030) */
  display: none;
  /* js สลับเป็น flex ตอนแสดง */
  flex-direction: column;
  gap: 20px;
  width: min(400px, calc(100vw - 32px));
  padding: 28px;
  border: 1px solid var(--kpn-green-grey-grey-50);
  border-radius: 24px;
  background-color: #ffffff;
  box-shadow: 0 18px 48px rgba(13, 72, 95, 0.16);
}

.cookie-consent__logo {
  display: flex;
  justify-content: center;
}

.cookie-consent__logo img {
  width: clamp(104px, 22vw, 124px);
  height: auto;
}

.cookie-consent__text {
  margin: 0;
  font-size: 14px;
  /* ไม่มี token 14px -> ใส่ค่าตรง */
  line-height: 1.6;
  color: var(--kpn-green-grey-grey-500);
}

/* ลิงก์ "นโยบายคุกกี้" ใช้ระบบลิงก์เดียวกับ .legal a (น้ำเงิน -> hover ส้ม) */
.cookie-consent__text a {
  color: var(--kpn-green-blue-blue-600);
  text-decoration: none;
  transition: color 0.2s ease;
}

.cookie-consent__text a:hover {
  color: var(--kpn-green-orange-orange-500);
}

.cookie-consent__actions {
  display: flex;
  justify-content: center;
  gap: 16px;
}

/* ปุ่มยอมรับ (solid น้ำเงิน) และปุ่มตั้งค่า (outline) */
.cookie-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 46px;
  padding: 0 28px;
  border-radius: 50px;
  font-family: "FC Minimal", sans-serif;
  font-size: var(--fc-minimal-paragraph-small-regular);
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.cookie-btn--solid {
  background-color: var(--kpn-green-blue-blue-600);
  border: 2px solid var(--kpn-green-blue-blue-600);
  color: #ffffff;
}

.cookie-btn--outline {
  background-color: transparent;
  border: 2px solid var(--kpn-green-grey-grey-50);
  color: var(--kpn-green-grey-grey-700);
}

/* hover: ทุกปุ่ม fill ส้ม orange-500 (ตามระบบ) */
.cookie-btn:hover {
  background-color: var(--kpn-green-orange-orange-500);
  border-color: var(--kpn-green-orange-orange-500);
  color: #ffffff;
}

/* animation เข้า/ออก (ตาม TEBP slide-up/down + fade) */
@keyframes kpnCookieIn {
  from {
    opacity: 0;
    transform: translateY(40px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes kpnCookieOut {
  from {
    opacity: 1;
    transform: translateY(0);
  }

  to {
    opacity: 0;
    transform: translateY(40px);
  }
}

.cookie-consent.is-in {
  animation: kpnCookieIn 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

.cookie-consent.is-out {
  animation: kpnCookieOut 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* จอเล็ก: ขยายเต็มความกว้าง ชิดขอบล่าง */
@media (max-width: 575.98px) {
  .cookie-consent {
    right: 16px;
    left: 16px;
    bottom: 16px;
    width: auto;
    padding: 24px;
  }

  .cookie-consent__actions {
    flex-direction: column;
    width: 100%;
  }

  .cookie-btn {
    width: 100%;
  }
}

/* ==========================================================================
   COMPLAINT CHANNEL (ช่องทางการร้องเรียน)
   หน้าฟอร์มร้องเรียน — ยึดแพตเทิร์นระบบ: พื้นขาว, FC Minimal, โทนน้ำเงิน,
   input ขอบบาง radius, focus เรืองน้ำเงิน (เหมือน .docs__search), ปุ่ม hover ส้ม
   ใช้ token สี/ฟอนต์จาก :root เท่านั้น
   ========================================================================== */
.complaint {
  padding: clamp(48px, 7vw, 100px) clamp(20px, 6vw, 240px);
  background-color: #ffffff;
  font-family: "FC Minimal", sans-serif;
}

.complaint__inner {
  max-width: 1200px;
  margin: 0 auto;
}

.complaint__intro {
  margin-bottom: 40px;
}

.complaint__title {
  margin: 0 0 12px;
  font-weight: 600;
  font-size: clamp(28px, 4vw, var(--fc-minimal-heading-40-semibold));
  /* 40px */
  background-image: linear-gradient(0deg, var(--kpn-green-green-green-200) 0%, var(--kpn-green-green-green-600) 76%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--kpn-green-green-green-600);
}

.complaint__lead {
  margin: 0;
  font-weight: 400;
  font-size: var(--fc-minimal-paragraph-small-regular);
  /* 18px */
  line-height: 1.6;
  color: var(--kpn-green-grey-grey-500);
}

.complaint__req,
.form-field__req {
  color: var(--kpn-green-orange-orange-500);
}

/* --- โครงฟอร์ม --- */
.complaint__form {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.form-field--full {
  width: 100%;
}

.form-field--center {
  align-items: center;
}

.form-field__label {
  font-weight: 500;
  font-size: var(--fc-minimal-paragraph-small-medium);
  /* 18px */
  color: var(--kpn-green-grey-grey-800);
}

/* --- input / select / textarea ฐานเดียวกัน --- */
.form-control,
.form-select,
.form-textarea {
  width: 100%;
  padding: 14px 18px;
  border: 1px solid var(--kpn-green-grey-grey-100);
  border-radius: 12px;
  font-family: "FC Minimal", sans-serif;
  font-size: var(--fc-minimal-paragraph-small-regular);
  /* 18px */
  color: var(--kpn-green-grey-grey-800);
  background-color: #ffffff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-control {
  height: 54px;
}

.form-textarea {
  min-height: 140px;
  resize: vertical;
  line-height: 1.6;
}

.form-control::placeholder,
.form-textarea::placeholder {
  color: var(--kpn-green-grey-grey-300);
}

.form-control:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--kpn-green-orange-orange-400);
  box-shadow: none;
}

/* field ที่ตรวจแล้วไม่ผ่าน */
.form-control.is-invalid,
.form-textarea.is-invalid {
  border-color: var(--kpn-green-orange-orange-500);
  box-shadow: 0 0 0 4px rgba(246, 135, 34, 0.12);
}

/* --- select + ลูกศร custom --- */
.form-select-wrap {
  position: relative;
}

.form-select {
  height: 54px;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: none;
  /* ปิดลูกศรที่ Bootstrap .form-select ใส่มา (กันลูกศรซ้อน 2 อัน) */
  padding-right: 48px;
  cursor: pointer;
}

.form-select-wrap__icon {
  position: absolute;
  top: 50%;
  right: 18px;
  transform: translateY(-50%);
  width: 22px;
  height: 22px;
  color: var(--kpn-green-grey-grey-500);
  pointer-events: none;
  transition: transform 0.2s ease, color 0.2s ease;
}

/* ขณะเปิด dropdown (select ได้ focus): ลูกศรหมุน + เปลี่ยนเป็นน้ำเงิน */
.form-select:focus+.form-select-wrap__icon {
  transform: translateY(-50%) rotate(180deg);
}

.form-select-wrap__icon svg {
  width: 100%;
  height: 100%;
}

/* --- file upload: drop zone (คลิกที่กรอบเท่านั้นเพื่อเลือกไฟล์) --- */
.form-file {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 32px 24px;
  border: 1.5px dashed var(--kpn-green-grey-grey-200);
  border-radius: 16px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease;
  position: relative;
}

.form-file:hover,
.form-file.is-dragover {
  border-color: var(--kpn-green-orange-orange-400);
  background-color: var(--kpn-green-orange-orange-50);
}

/* ป้องกัน child elements ขัดขวาง drag event */
.form-file>* {
  pointer-events: none;
}

.form-file__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin-bottom: 4px;
  border-radius: 50%;
  background-color: #f6f6f6;
  color: #000;
}

.form-file__icon svg {
  width: 24px;
  height: 24px;
}

.form-file__cta {
  font-size: var(--fc-minimal-paragraph-small-regular);
  /* 18px */
  color: var(--kpn-green-grey-grey-700);
}

.form-file__cta-link {
  font-weight: 600;
  color: var(--kpn-green-blue-blue-600);
}

.form-file__desc {
  font-size: var(--fc-minimal-paragraph-detail-regular);
  /* 16px */
  color: var(--kpn-green-grey-grey-400);
}

.form-file__input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

/* รายการไฟล์ที่เลือก */
.form-file__list {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.form-file__list:empty {
  display: none;
}

.form-file__list-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  border: 1px solid var(--kpn-green-grey-grey-50);
  border-radius: 12px;
  background-color: var(--kpn-green-grey-grey-50);
  font-size: var(--fc-minimal-paragraph-detail-regular);
  /* 16px */
  color: var(--kpn-green-grey-grey-700);
}

.form-file__list-name {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.form-file__list-size {
  flex-shrink: 0;
  color: var(--kpn-green-grey-grey-400);
}

.form-file__list-remove {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background-color: transparent;
  color: var(--kpn-green-grey-grey-500);
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.form-file__list-remove:hover {
  background-color: var(--kpn-green-orange-orange-500);
  color: #ffffff;
}

.form-file__list-remove svg {
  width: 14px;
  height: 14px;
}

/* ข้อความ error ของการแนบไฟล์ */
.form-file__error {
  margin: 8px 0 0;
  font-size: var(--fc-minimal-paragraph-detail-regular);
  /* 16px */
  color: var(--kpn-green-orange-orange-600);
}

.form-file__error:empty {
  display: none;
}

/* --- checkbox ยินยอม --- */
.form-check {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  cursor: pointer;
  padding-left: 0;
}

.form-check__input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.form-check__box {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  margin-top: 2px;
  border: 1px solid var(--kpn-green-grey-grey-200);
  border-radius: 6px;
  color: #ffffff;
  background-color: #ffffff;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.form-check__box svg {
  width: 16px;
  height: 16px;
  opacity: 0;
  transition: opacity 0.15s ease;
}

.form-check__input:checked+.form-check__box {
  background-color: var(--kpn-green-blue-blue-600);
  border-color: var(--kpn-green-blue-blue-600);
}

.form-check__input:checked+.form-check__box svg {
  opacity: 1;
}

.form-check__input:focus-visible+.form-check__box {
  box-shadow: 0 0 0 4px rgba(32, 171, 227, 0.12);
}

.form-check__label {
  font-size: var(--fc-minimal-paragraph-detail-regular);
  /* 16px */
  line-height: 1.6;
  color: var(--kpn-green-grey-grey-600);
}

.form-check__label a {
  color: var(--kpn-green-blue-blue-600);
  text-decoration: none;
  transition: color 0.2s ease;
}

.form-check__label a:hover {
  color: var(--kpn-green-orange-orange-500);
}

/* --- ปุ่มส่ง (pill น้ำเงิน hover ส้ม ตามระบบ) --- */
.complaint__actions {
  display: flex;
  justify-content: center;
}

/* ปุ่มส่งใช้สไตล์ .btn-more--primary | button ไม่ inherit font/cursor เอง */
button.btn-more {
  font-family: "FC Minimal", sans-serif;
  cursor: pointer;
}

/* --- ข้อความสถานะหลังส่ง --- */
.complaint__status {
  margin: 0;
  font-size: var(--fc-minimal-paragraph-detail-medium);
  /* 16px */
}

.complaint__status:empty {
  display: none;
}

.complaint__status.is-success {
  color: var(--kpn-green-green-green-600);
}

.complaint__status.is-error {
  color: var(--kpn-green-orange-orange-600);
}

/* --- จอเล็ก: ฟอร์มคอลัมน์เดียว --- */
@media (max-width: 575.98px) {
  .form-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   VISION / MISSION PAGE (Figma node 561:11118 — Design วิสัยทัศน์ V2)
   ยึด token สี/ฟอนต์จาก :root | หัวข้อไล่เฉด (เหมือน .ir-grad) | การ์ด radius ใหญ่
   ========================================================================== */

/* badge pill "Our Vision / Our Mission" (Figma Border 219:12587) */
.vm-badge {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 6px 15px;
  border-radius: 30px;
  font-family: "FC Minimal", sans-serif;
  font-weight: 500;
  font-size: var(--fc-minimal-paragraph-detail-medium);
  /* 16px */
  color: #404038;
  white-space: nowrap;
}

/* เส้นขอบไล่เฉด (gradient border 1px) — พื้นในโปร่งใส คงมุมโค้ง pill */
.vm-badge::before {
  content: "";
  position: absolute;
  inset: 0;
  padding: 1px;
  border-radius: inherit;
  background: linear-gradient(33deg,
      rgba(220, 220, 220, 0.30) 0.53%,
      #dcdcdc 50.48%,
      rgba(220, 220, 220, 0.30) 99.47%);
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

/* ข้อความไล่เฉด (clip text) — ล่างขึ้นบน ตาม Figma */
.vm-grad {
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.vm-grad--green {
  background-image: linear-gradient(0deg,
      var(--kpn-green-green-green-600) 13%,
      var(--kpn-green-green-green-300) 43%);
}

.vm-grad--blue {
  background-image: linear-gradient(0deg,
      var(--kpn-green-blue-blue-600) 34%,
      var(--kpn-green-blue-blue-300) 95%);
}

.vm-grad--green-blue {
  background-image: linear-gradient(90deg,
      var(--kpn-green-green-green-400) 0%,
      var(--kpn-green-blue-blue-500) 65%);
}

/* ---------------------------------------------------------------- VISION */
.vm-vision {
  position: relative;
  overflow: hidden;
  padding: 180px 0 180px;
  background-color: #ffffff;
}

/* ลายพื้นหลังจาง 50% (Figma pattern-bg) */
.vm-vision__bg {
  position: absolute;
  inset: 0;
  background-image: url("../images/vision-mission/pattern-bg.webp");
  background-size: cover;
  background-position: center;
  opacity: 0.5;
  pointer-events: none;
}

.vm-vision__inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1920px;
  margin: 0 auto;
  height: clamp(700px, 62vw, 1060px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.vm-vision__content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  text-align: center;
  max-width: 1400px;
  padding: 0 20px;
}

.vm-vision__title {
  margin: 0;
  font-family: "FC Minimal", sans-serif;
  font-weight: 500;
  font-size: clamp(28px, 3.35vw, var(--fc-minimal-display-64-medium));
  /* 64px */
  line-height: 1.2;
  color: #000000;
  padding-bottom: 0.08em;
}

/* คำไล่เฉดใหญ่กว่าข้อความหลัก (80px ใน Figma) */
.vm-vision__title .vm-grad {
  font-size: clamp(36px, 4.2vw, 80px);
  line-height: 1;
}

.vm-vision__sub {
  margin: 0;
  max-width: 720px;
  font-family: "FC Minimal", sans-serif;
  font-weight: 500;
  font-size: clamp(22px, 2.6vw, var(--fc-minimal-heading-40-medium));
  /* 40px */
  line-height: 1.3;
  color: #000000;
}

/* รูป collage ลอยรอบ (ตกแต่ง) — ซ่อนบนจอเล็ก */
.vm-collage {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.vm-collage__img {
  position: absolute;
  width: 220px;
  height: 235px;
  object-fit: cover;
  border-radius: 24px;
  box-shadow: 0 24px 48px rgba(20, 45, 65, 0.16);
  animation: vmFloat 6s ease-in-out infinite;
}

/* ตำแหน่งกระจายออกรอบนอก (แปลงจาก Figma กรอบ 1920x1408) */
.vm-collage__img--1 {
  left: 2%;
  top: 13%;
  animation-delay: 0s;
}

.vm-collage__img--2 {
  left: 57%;
  top: 1%;
  animation-delay: -1.2s;
}

.vm-collage__img--3 {
  right: 2%;
  top: 40%;
  animation-delay: -2.4s;
}

.vm-collage__img--4 {
  left: 60%;
  top: 80%;
  animation-delay: -3s;
}

.vm-collage__img--5 {
  left: 8%;
  top: 66%;
  animation-delay: -4.2s;
}

/* ลอยเบาๆ ขึ้นลง */
@keyframes vmFloat {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-14px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .vm-collage__img {
    animation: none;
  }
}

@media (max-width: 1200px) {
  .vm-collage__img {
    width: 150px;
    height: 165px;
    border-radius: 18px;
  }
}

@media (max-width: 992px) {
  .vm-vision {
    padding: 100px 24px 100px;
  }

  .vm-vision__inner {
    height: auto;
    padding: 40px 0;
  }

  .vm-collage {
    display: none;
  }
}

/* --------------------------------------------------------------- MISSION */
.vm-mission {
  position: relative;
  overflow: visible;
  /* ให้พื้นหลัง solar ยืดเลยขอบล่างไปหลัง footer ได้ */
  padding: 80px 240px 180px;
  /* bottom 180px = เท่าระยะบนของ Our Vision */
  background-color: #ffffff;
}

/* พื้นหลัง Mission: รองรับวิดีโอ + fallback รูป + ไล่ขาวจางจากบน (Figma Rectangle1 561:10729 / 561:10730)
   ยืดเลยขอบล่าง section ลงไป 160px เพื่อให้ footer (มุมโค้ง 120px) มาวางทับบนรูป = ฟีลเลเยอร์ซ้อน */
.vm-mission__bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: -160px;
  z-index: 0;
  overflow: hidden;
  background-color: #d9d9d9;
  /* พื้นรองหลังสื่อ (Figma 561:10729) */
  pointer-events: none;
}

/* รูป fallback และวิดีโอ ครอบเต็มพื้นที่เท่ากัน (opacity 90% ตาม Figma) */
.vm-mission__bg-img,
.vm-mission__bg-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 70% center;
  /* เลื่อนภาพไปทางซ้าย (เพิ่ม % = เลื่อนซ้ายมากขึ้น, ลด % = กลับมาขวา) */
  opacity: 1;
}

/* วิดีโอวางทับรูป — ถ้าไม่มี source/เล่นไม่ได้ จะโปร่งใสเผยรูปด้านล่าง */
.vm-mission__bg-video {
  z-index: 1;
}

/* ไล่ขาวจางจากบน วางทับสื่อทั้งหมด ให้หัวข้อด้านบนอ่านชัด */
.vm-mission__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background-image: linear-gradient(180deg, #ffffff 3%, rgba(255, 255, 255, 0) 27%);
}

.vm-mission__inner {
  position: relative;
  z-index: 1;
  max-width: 1356px;
  margin: 0 auto;
}

.vm-mission__head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 40px;
  padding: 0 15px;
}

.vm-mission__title {
  margin: 0;
  font-family: "FC Minimal", sans-serif;
  font-weight: 500;
  font-size: clamp(30px, 3.4vw, var(--fc-minimal-heading-48-medium));
  /* 48px */
  line-height: 1.2;
  color: #000000;
  padding-bottom: 0.08em;
}

/* ---- การ์ดพันธกิจ: Grid responsive (mobile-first) ----
   mobile <768: 1 คอลัมน์ | tablet 768–1199: 2 คอลัมน์ | desktop ≥1200: 3 คอลัมน์ stagger */
.vm-cards {
  display: grid;
  grid-template-columns: minmax(0, 422px);
  justify-content: center;
  gap: 24px;
}

.vm-card {
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 100%;
  max-width: 422px;
  padding: 10px;
  background-color: #f5f5f5;
  border-radius: 20px;
}

/* Tablet: 2 คอลัมน์ การ์ดใบสุดท้ายจัดกลาง */
@media (min-width: 768px) {
  .vm-cards {
    grid-template-columns: repeat(2, minmax(0, 422px));
    gap: 30px;
  }

  .vm-card:nth-child(5) {
    grid-column: 1 / -1;
    justify-self: center;
  }
}

/* Desktop: 3 คอลัมน์ stagger ทแยง (landor .tpservices2__up / Figma 561:10730)
   คอลัมน์ 1 = การ์ดเดียวลอยกลาง | คอลัมน์ 3 = การ์ด 4,5 ยกขึ้น -100px */
@media (min-width: 1200px) {
  .vm-cards {
    grid-template-columns: repeat(3, minmax(0, 422px));
    grid-template-rows: auto auto;
    align-items: start;
    gap: 30px;
  }

  .vm-card:nth-child(1) {
    grid-column: 1;
    grid-row: 1 / span 2;
    align-self: center;
  }

  .vm-card:nth-child(2) {
    grid-column: 2;
    grid-row: 1;
  }

  .vm-card:nth-child(3) {
    grid-column: 2;
    grid-row: 2;
  }

  .vm-card:nth-child(4) {
    grid-column: 3;
    grid-row: 1;
    justify-self: stretch;
  }

  .vm-card:nth-child(5) {
    grid-column: 3;
    grid-row: 2;
    justify-self: stretch;
  }

  /* ยกคอลัมน์ 3 ด้วย position/top (ไม่ใช้ transform เพื่อปล่อยให้ GSAP animate ได้) */
  .vm-card:nth-child(4),
  .vm-card:nth-child(5) {
    position: relative;
    top: -100px;
  }
}

@media (max-width: 1199.98px) {
  .vm-mission__head {
    align-items: center;

  }
}

.vm-grad-first {
  display: none;
}

.vm-grad-lasted {
  display: none;
}

@media (max-width: 611.98px) {
  .vm-grad-first {
    display: block;
  }

  .vm-grad-lasted {
    display: block;
  }
}

@media (max-width: 454.98px) {
  .br-vission-sub {
    display: none;
  }
}

@media (max-width: 367.98px) {
  .vm-grad-first {
    display: none;
  }

  .vm-grad-lasted {
    display: none;
  }
}

.vm-card__media {
  position: relative;
  border-radius: 15px;
  overflow: hidden;
}

/* การ์ด "สร้างนวัตกรรม" มี overlay ดำจางทับรูป (Figma 219:12679) */
.vm-card__media--dark::after {
  content: "";
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.2);
  border-radius: 15px;
  pointer-events: none;
}

.vm-card__media img {
  display: block;
  width: 100%;
  height: 165px;
  object-fit: cover;
  border-radius: 15px;
}

.vm-card__body {
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 0 30px 20px;
}

.vm-card__title {
  margin: 0;
  padding: 3px 0;
  font-family: "FC Minimal", sans-serif;
  font-weight: 500;
  font-size: var(--fc-minimal-paragraph-regular-medium);
  /* 20px */
  line-height: 1.2;
  color: #000000;
}

.vm-card__text {
  margin: 0;
  font-family: "FC Minimal", sans-serif;
  font-weight: 400;
  font-size: var(--fc-minimal-paragraph-small-regular);
  /* 16px */
  line-height: 1.35;
  color: var(--kpn-green-grey-grey-700);
}

@media (max-width: 1400px) {
  .vm-mission {
    padding: 80px 60px 180px;
  }
}

@media (max-width: 992px) {
  .vm-mission {
    padding: 64px 40px 100px;
  }

  /* bottom 100px = เท่าระยะบน Vision (มือถือ) */
}

@media (max-width: 768px) {
  .vm-mission {
    padding: 56px 24px 100px;
  }
}

@media (max-width: 480px) {
  .vm-mission {
    padding: 48px 16px 100px;
  }

  .vm-card__body {
    padding: 0 20px 20px;
  }
}

/* ========================================================================== 
   KPN editorial mega menu
   ========================================================================== */
.mega-menu__mobile-home {
  display: none;
}

@media (min-width: 1200px) {
  .main-nav .nav-item--mega {
    position: static;
  }

  .main-nav .mega-menu {
    position: fixed;
    top: 96px;
    left: 50%;
    right: auto;
    display: grid;
    width: min(1440px, calc(100vw - 48px));
    min-width: 0;
    max-width: none;
    max-height: calc(100vh - 116px);
    grid-template-columns: minmax(220px, 1.08fr) repeat(2, minmax(180px, 1fr)) minmax(260px, 1.18fr);
    grid-auto-rows: minmax(86px, auto);
    gap: 10px;
    padding: 12px;
    margin: 0;
    overflow: auto;
    border: 1px solid rgba(207, 207, 207, 0.72);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 26px 70px rgba(42, 76, 29, 0.16);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translate(-50%, 18px) scale(0.985);
    transform-origin: 50% 0;
    transition: opacity 0.24s ease,
      transform 0.44s cubic-bezier(0.22, 1, 0.36, 1),
      visibility 0.24s;
    isolation: isolate;
  }

  .main-nav .nav-item--mega:is(:hover, .is-mega-open) > .mega-menu,
  .main-nav .nav-item--mega:focus-within > .mega-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translate(-50%, 0) scale(1);
  }

  .mega-menu > li {
    min-width: 0;
    list-style: none;
  }

  .mega-menu__intro {
    grid-column: 1;
    grid-row: 1 / span 3;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-end;
    min-height: 286px;
    padding: 24px;
    overflow: hidden;
    border-radius: 15px;
    background:
      radial-gradient(circle at 8% 6%, rgba(99, 180, 70, 0.22), transparent 34%),
      var(--kpn-green-green-green-50);
  }

  .mega-menu__intro::before {
    content: "";
    width: 32px;
    height: 3px;
    margin-bottom: auto;
    border-radius: 99px;
    background: var(--kpn-green-orange-orange-500);
    transform-origin: left center;
    transition: width 0.5s cubic-bezier(0.22, 1, 0.36, 1);
  }

  .nav-item--mega:is(:hover, .is-mega-open) .mega-menu__intro::before {
    width: 66px;
  }

  .mega-menu__eyebrow {
    margin-bottom: 12px;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.12em;
    color: var(--kpn-green-green-green-700);
  }

  .mega-menu__title {
    font-size: clamp(24px, 1.7vw, 32px);
    font-weight: 500;
    line-height: 1.06;
    color: var(--kpn-green-grey-grey-900);
  }

  .mega-menu__intro p {
    max-width: 260px;
    margin: 14px 0 0;
    font-size: 15px;
    line-height: 1.38;
    color: var(--kpn-green-grey-grey-500);
  }

  .mega-menu__intro-link {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    margin-top: 18px;
    padding-top: 12px;
    border-top: 1px solid rgba(70, 128, 50, 0.2);
    font-size: 15px;
    color: var(--kpn-green-green-green-700);
    text-decoration: none;
  }

  .mega-menu__link .dropdown-item {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 100%;
    height: 100%;
    min-height: 86px;
    padding: 15px 17px;
    border: 1px solid rgba(207, 207, 207, 0.68);
    border-radius: 15px;
    background: #f8f9f7;
    font-size: 17px;
    font-weight: 400;
    line-height: 1.18;
    color: var(--kpn-green-grey-grey-800);
    white-space: normal;
    transition: color 0.25s ease, background-color 0.25s ease,
      border-color 0.25s ease, transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  }

  .mega-menu__link .dropdown-item > span {
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.08em;
    color: var(--kpn-green-grey-grey-300);
    transition: color 0.25s ease;
  }

  .mega-menu__link .dropdown-item:hover,
  .mega-menu__link .dropdown-item:focus {
    background: var(--kpn-green-green-green-50);
    border-color: var(--kpn-green-green-green-200);
    color: var(--kpn-green-green-green-700);
    transform: translateY(-3px);
  }

  .mega-menu__link .dropdown-item:hover > span,
  .mega-menu__link .dropdown-item:focus > span {
    color: var(--kpn-green-orange-orange-500);
  }

  .mega-menu__feature {
    position: relative;
    grid-column: 4;
    grid-row: 1 / span 3;
    min-height: 286px;
    overflow: hidden;
    border-radius: 15px;
    background: var(--kpn-green-green-green-800);
  }

  .mega-menu__feature::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
      linear-gradient(180deg, rgba(15, 35, 10, 0.02) 14%, rgba(15, 35, 10, 0.82) 100%),
      var(--mega-image) center / cover no-repeat;
    transition: transform 0.75s cubic-bezier(0.22, 1, 0.36, 1);
  }

  .mega-menu__feature:hover::before {
    transform: scale(1.045);
  }

  .mega-menu__feature-link {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    width: 100%;
    height: 100%;
    min-height: inherit;
    padding: 22px;
    color: #fff;
    text-decoration: none;
  }

  .mega-menu__feature-link > span:first-child {
    margin-bottom: 8px;
    font-size: 13px;
    opacity: 0.76;
  }

  .mega-menu__feature-link strong {
    padding-right: 40px;
    font-size: 23px;
    font-weight: 500;
    line-height: 1.12;
  }

  .mega-menu__arrow {
    position: absolute;
    right: 20px;
    bottom: 20px;
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border-radius: 50%;
    background: #fff;
    color: var(--kpn-green-grey-grey-900);
    transition: transform 0.42s cubic-bezier(0.22, 1, 0.36, 1),
      background-color 0.25s ease, color 0.25s ease;
  }

  .mega-menu__feature-link:hover .mega-menu__arrow {
    background: var(--kpn-green-orange-orange-500);
    color: #fff;
    transform: rotate(45deg);
  }

  .mega-menu--four .mega-menu__intro,
  .mega-menu--four .mega-menu__feature {
    grid-row-end: span 2;
    min-height: 230px;
  }

  .main-nav .mega-menu--three {
    grid-template-columns: minmax(230px, 1.08fr) repeat(3, minmax(170px, 1fr)) minmax(260px, 1.18fr);
    grid-auto-rows: 220px;
  }

  .mega-menu--three .mega-menu__intro,
  .mega-menu--three .mega-menu__feature {
    grid-row: 1;
    min-height: 220px;
  }

  .mega-menu--three .mega-menu__feature {
    grid-column: 5;
  }

  .mega-menu--three .mega-menu__link .dropdown-item {
    justify-content: flex-end;
    font-size: 20px;
  }

  .mega-menu__feature--color::before {
    background:
      radial-gradient(circle at 82% 18%, rgba(246, 135, 34, 0.8) 0 7%, transparent 7.5%),
      radial-gradient(circle at 76% 26%, rgba(255, 255, 255, 0.16) 0 16%, transparent 16.5%),
      linear-gradient(135deg, var(--kpn-green-green-green-800), var(--kpn-green-green-green-500));
  }

  .main-nav .mega-menu--ir {
    width: min(1560px, calc(100vw - 48px));
    grid-template-columns: minmax(230px, 0.95fr) repeat(3, minmax(190px, 1fr)) minmax(270px, 1.08fr);
    grid-auto-rows: minmax(204px, auto);
    gap: 10px;
    padding: 12px;
    overflow: auto;
  }

  .main-nav .nav-item--ir:is(:hover, .is-mega-open) > .mega-menu--ir,
  .main-nav .nav-item--ir:focus-within > .mega-menu--ir {
    display: grid;
  }

  .mega-menu--ir .mega-menu__intro {
    grid-column: 1;
    grid-row: 1 / span 2;
    min-height: 418px;
  }

  .mega-menu--ir .mega-menu__feature {
    grid-column: 5;
    grid-row: 1 / span 2;
    min-height: 418px;
  }

  .mega-menu__feature--report::before {
    display: none;
  }

  .mega-menu__report-link {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    min-height: inherit;
    padding: 20px;
    overflow: hidden;
    background: var(--kpn-green-grey-grey-900);
    color: #fff;
    text-decoration: none;
  }

  .mega-menu__report-copy {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
  }

  .mega-menu__report-copy small {
    margin-bottom: 10px;
    font-size: 10px;
    letter-spacing: 0.12em;
    color: var(--kpn-green-green-green-300);
  }

  .mega-menu__report-copy strong {
    font-size: 25px;
    font-weight: 500;
    line-height: 1.05;
  }

  .mega-menu__report-copy > span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 14px;
    font-size: 14px;
  }

  .mega-menu__report-copy b {
    display: grid;
    width: 28px;
    height: 28px;
    place-items: center;
    border-radius: 50%;
    background: var(--kpn-green-orange-orange-500);
    font-weight: 400;
    transition: transform 0.42s cubic-bezier(0.22, 1, 0.36, 1);
  }

  .mega-menu__report-link:hover .mega-menu__report-copy b {
    transform: rotate(45deg);
  }

  .mega-menu__report-link img {
    position: absolute;
    right: -25%;
    bottom: -6%;
    width: 118%;
    height: 72%;
    object-fit: cover;
    object-position: 50% 42%;
    transform: rotate(-5deg);
    transform-origin: center bottom;
    transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  }

  .mega-menu__report-link:hover img {
    transform: rotate(-2deg) scale(1.035);
  }

  .main-nav .mega-menu--ir .dropdown-group {
    min-width: 0;
    padding: 14px 15px;
    border: 1px solid rgba(207, 207, 207, 0.68);
    border-radius: 15px;
    background: #f8f9f7;
    transition: background-color 0.25s ease, border-color 0.25s ease,
      transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  }

  .main-nav .mega-menu--ir .dropdown-group:hover {
    border-color: var(--kpn-green-green-green-200);
    background: var(--kpn-green-green-green-50);
    transform: translateY(-3px);
  }

  .main-nav .mega-menu--ir .dropdown-group__label {
    padding: 0 0 8px;
    font-size: 16px;
    font-weight: 500;
    color: var(--kpn-green-green-green-700);
  }

  .main-nav .mega-menu--ir .dropdown-submenu-list .dropdown-item {
    padding: 3px 0;
    background: transparent;
    font-size: 13px;
    line-height: 1.18;
    color: var(--kpn-green-grey-grey-500);
  }

  .main-nav .mega-menu--ir .dropdown-submenu-list .dropdown-item:hover,
  .main-nav .mega-menu--ir .dropdown-submenu-list .dropdown-item:focus {
    color: var(--kpn-green-orange-orange-500);
  }

  .mega-menu__intro,
  .mega-menu__feature,
  .mega-menu__link,
  .mega-menu--ir .dropdown-group {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 0.35s ease,
      transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
  }

  .nav-item--mega:is(:hover, .is-mega-open) .mega-menu__intro,
  .nav-item--mega:is(:hover, .is-mega-open) .mega-menu__feature,
  .nav-item--mega:is(:hover, .is-mega-open) .mega-menu__link,
  .nav-item--mega:is(:hover, .is-mega-open) .mega-menu--ir .dropdown-group,
  .nav-item--mega:focus-within .mega-menu__intro,
  .nav-item--mega:focus-within .mega-menu__feature,
  .nav-item--mega:focus-within .mega-menu__link,
  .nav-item--mega:focus-within .mega-menu--ir .dropdown-group {
    opacity: 1;
    transform: translateY(0);
  }

  .nav-item--mega:is(:hover, .is-mega-open) .mega-menu > li:nth-child(2),
  .nav-item--mega:focus-within .mega-menu > li:nth-child(2) {
    transition-delay: 0.04s;
  }

  .nav-item--mega:is(:hover, .is-mega-open) .mega-menu > li:nth-child(n+3),
  .nav-item--mega:focus-within .mega-menu > li:nth-child(n+3) {
    transition-delay: 0.08s;
  }
}

@media (max-width: 1199.98px) {
  .mobile-submenu .mega-menu__intro,
  .mobile-submenu .mega-menu__feature {
    display: none;
  }

  .mobile-submenu .mega-menu__mobile-home {
    display: block;
  }

  .mobile-submenu .mega-menu__link .dropdown-item > span {
    display: none;
  }
}

@media (min-width: 1200px) and (max-height: 760px) {
  .main-nav .mega-menu {
    top: 90px;
    max-height: calc(100vh - 104px);
  }

  .mega-menu__intro,
  .mega-menu__feature {
    min-height: 250px;
  }

  .main-nav .mega-menu--ir {
    grid-auto-rows: minmax(184px, auto);
  }

  .mega-menu--ir .mega-menu__intro,
  .mega-menu--ir .mega-menu__feature {
    min-height: 378px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .main-nav .mega-menu,
  .mega-menu__intro,
  .mega-menu__feature,
  .mega-menu__link,
  .mega-menu--ir .dropdown-group,
  .mega-menu__feature::before,
  .mega-menu__report-link img {
    transition: none;
  }
}

/* ==========================================================================
   LEGACY CHAIRMAN PROTOTYPE (INACTIVE)
   Active page styles moved to assets/css/chairman-statement.css.
   Keep this old prototype inert until the next global stylesheet cleanup.
   ========================================================================== */
@media not all {
.chairman-statement {
  position: relative;
  overflow: hidden;
  padding: clamp(72px, 8vw, 148px) clamp(20px, 6vw, 160px) clamp(88px, 10vw, 176px);
  background: radial-gradient(circle at 8% 8%, rgba(183, 221, 170, 0.28), transparent 26%), linear-gradient(180deg, #ffffff 0%, #fbfcfa 100%);
  font-family: "FC Minimal", sans-serif;
}

.chairman-statement__inner,
.chairman-closing__inner {
  width: min(100%, 1460px);
  margin: 0 auto;
}

.chairman-statement__layout {
  display: grid;
  grid-template-columns: minmax(340px, 0.82fr) minmax(0, 1.18fr);
  gap: clamp(48px, 7vw, 112px);
  align-items: start;
}

.chairman-statement__visual {
  position: sticky;
  top: 118px;
  min-height: 690px;
  overflow: hidden;
  border-radius: 36px;
  isolation: isolate;
  color: #ffffff;
  box-shadow: 0 26px 70px rgba(42, 76, 29, 0.13);
}

.chairman-statement__visual-media,
.chairman-statement__visual-overlay {
  position: absolute;
  inset: 0;
}

.chairman-statement__visual-media {
  z-index: -2;
  background-image: url("../images/vision-mission/mission-bg.webp");
  background-size: cover;
  background-position: 70% center;
  transform: scale(1.03);
}

.chairman-statement__visual-overlay {
  z-index: -1;
  background: linear-gradient(180deg, rgba(18, 31, 18, 0.22) 0%, rgba(12, 31, 20, 0.06) 38%, rgba(14, 41, 24, 0.88) 100%), linear-gradient(130deg, rgba(90, 164, 64, 0.34), transparent 48%);
}

.chairman-statement__visual-top,
.chairman-statement__visual-bottom {
  position: absolute;
  left: 0;
  right: 0;
  display: flex;
  padding: clamp(24px, 3vw, 40px);
}

.chairman-statement__visual-top {
  top: 0;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.chairman-statement__visual-bottom {
  bottom: 0;
  flex-direction: column;
  gap: 14px;
}

.chairman-statement__year {
  font-size: var(--fc-minimal-paragraph-detail-medium);
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.82);
}

.chairman-statement__eyebrow,
.chairman-closing__eyebrow {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 10px;
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.14em;
  line-height: 1;
  color: var(--kpn-green-green-green-700);
}

.chairman-statement__eyebrow::before,
.chairman-closing__eyebrow::before {
  content: "";
  width: 28px;
  height: 2px;
  border-radius: 99px;
  background-color: var(--kpn-green-orange-orange-500);
}

.chairman-statement__eyebrow--light {
  color: rgba(255, 255, 255, 0.92);
}

.chairman-statement__visual-kicker {
  margin: 0;
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.12em;
  color: var(--kpn-green-green-green-100);
}

.chairman-statement__visual-quote {
  max-width: 480px;
  margin: 0;
  font-weight: 500;
  font-size: clamp(28px, 2.5vw, var(--fc-minimal-heading-40-medium));
  line-height: 1.24;
  color: #ffffff;
}

.chairman-statement__article {
  min-width: 0;
}

.chairman-statement__head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 22px;
  margin-bottom: clamp(56px, 6vw, 88px);
}

.chairman-statement__title {
  margin: 0;
  max-width: 820px;
  padding-bottom: 0.08em;
  font-weight: 500;
  font-size: clamp(36px, 4.1vw, var(--fc-minimal-display-64-medium));
  line-height: 1.13;
  color: var(--kpn-green-grey-grey-900);
}

.chairman-statement__grad {
  color: var(--kpn-green-green-green-600);
  background-image: linear-gradient(90deg, var(--kpn-green-green-green-400) 0%, var(--kpn-green-blue-blue-500) 82%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.chairman-statement__lead {
  max-width: 760px;
  margin: 0;
  padding-left: 22px;
  border-left: 3px solid var(--kpn-green-green-green-400);
  font-weight: 400;
  font-size: clamp(20px, 2vw, var(--fc-minimal-paragraph-large-regular));
  line-height: 1.6;
  color: var(--kpn-green-grey-grey-600);
}

.chairman-statement__copy {
  display: flex;
  flex-direction: column;
}

.chairman-statement__chapter {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 24px;
  padding: clamp(40px, 5vw, 64px) 0;
  border-top: 1px solid var(--kpn-green-grey-grey-100);
}

.chairman-statement__chapter:first-child {
  padding-top: 0;
  border-top: 0;
}

.chairman-statement__chapter--last {
  padding-bottom: 0;
}

.chairman-statement__chapter-no {
  padding-top: 7px;
  font-weight: 500;
  font-size: var(--fc-minimal-paragraph-detail-medium);
  letter-spacing: 0.08em;
  color: var(--kpn-green-orange-orange-500);
}

.chairman-statement__chapter p {
  margin: 0 0 24px;
  font-weight: 400;
  font-size: clamp(18px, 1.35vw, var(--fc-minimal-paragraph-regular-regular));
  line-height: 1.85;
  color: var(--kpn-green-grey-grey-700);
}

.chairman-statement__chapter p:last-child {
  margin-bottom: 0;
}

.chairman-statement__pullquote {
  position: relative;
  margin: clamp(44px, 5vw, 68px) 0;
  padding: clamp(32px, 4vw, 52px);
  overflow: hidden;
  border-radius: 28px;
  background: radial-gradient(circle at 95% 0%, rgba(32, 171, 227, 0.16), transparent 34%), var(--kpn-green-green-green-50);
}

.chairman-statement__pullquote-mark {
  position: absolute;
  top: -8px;
  right: 24px;
  font-family: Georgia, serif;
  font-size: 148px;
  line-height: 1;
  color: rgba(90, 164, 64, 0.12);
}

.chairman-statement__pullquote p {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin: 0;
  font-weight: 500;
  font-size: clamp(26px, 3vw, var(--fc-minimal-heading-40-medium));
  line-height: 1.35;
  color: var(--kpn-green-green-green-800);
}

.chairman-statement__signature {
  display: grid;
  grid-template-columns: 84px 132px minmax(0, 1fr);
  gap: 20px;
  align-items: center;
  margin-top: clamp(64px, 8vw, 112px);
  padding-top: 32px;
  border-top: 1px solid var(--kpn-green-grey-grey-100);
}

.chairman-statement__signature-line {
  width: 64px;
  height: 2px;
  background-color: var(--kpn-green-orange-orange-500);
}

.chairman-statement__signature img {
  display: block;
  width: 118px;
  height: auto;
}

.chairman-statement__signature-copy {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.chairman-statement__signature-copy strong {
  font-weight: 500;
  font-size: var(--fc-minimal-paragraph-regular-medium);
  color: var(--kpn-green-grey-grey-900);
}

.chairman-statement__signature-copy span {
  font-size: var(--fc-minimal-paragraph-detail-regular);
  line-height: 1.4;
  color: var(--kpn-green-grey-grey-500);
}

.chairman-closing {
  position: relative;
  display: flex;
  min-height: clamp(380px, 42vw, 620px);
  align-items: flex-end;
  overflow: hidden;
  padding: clamp(56px, 8vw, 112px) clamp(20px, 8vw, 180px);
  font-family: "FC Minimal", sans-serif;
  background-image: linear-gradient(90deg, rgba(20, 44, 25, 0.92) 0%, rgba(20, 44, 25, 0.58) 54%, rgba(20, 44, 25, 0.22) 100%), url("../images/vision-mission/mission-bg.webp");
  background-size: cover;
  background-position: center 58%;
}

.chairman-closing__eyebrow {
  margin-bottom: 20px;
  color: var(--kpn-green-green-green-100);
}

.chairman-closing__inner p {
  max-width: 920px;
  margin: 0;
  font-weight: 500;
  font-size: clamp(34px, 4.4vw, var(--fc-minimal-display-64-medium));
  line-height: 1.16;
  color: #ffffff;
}

@media (max-width: 1199.98px) {
  .chairman-statement__layout {
    grid-template-columns: minmax(300px, 0.72fr) minmax(0, 1.28fr);
    gap: 48px;
  }

  .chairman-statement__visual {
    min-height: 620px;
  }
}

@media (max-width: 991.98px) {
  .chairman-statement__layout {
    grid-template-columns: 1fr;
    gap: 64px;
  }

  .chairman-statement__visual {
    position: relative;
    top: auto;
    min-height: clamp(460px, 68vw, 620px);
  }

  .chairman-statement__visual-media {
    background-position: center 62%;
  }
}

@media (max-width: 575.98px) {
  .chairman-statement {
    padding-left: 16px;
    padding-right: 16px;
  }

  .chairman-statement__layout {
    gap: 48px;
  }

  .chairman-statement__visual {
    min-height: 430px;
    border-radius: 24px;
  }

  .chairman-statement__visual-top,
  .chairman-statement__visual-bottom {
    padding: 24px;
  }

  .chairman-statement__year {
    display: none;
  }

  .chairman-statement__chapter {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .chairman-statement__chapter-no {
    padding-top: 0;
  }

  .chairman-statement__pullquote {
    border-radius: 22px;
  }

  .chairman-statement__signature {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .chairman-statement__signature-line {
    width: 48px;
  }

  .chairman-closing__inner p br {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .chairman-statement__visual-media {
    transform: none;
  }
}
}
