:root{
    --fs-surface-2: #202020;
    --fs-line: rgba(255, 255, 255, 0.12);
    --fs-yellow-rgb: 243, 215, 33;
    --fs-yellow: #f3d721;
    --fs-muted: #969696;
    --fs-ink: #000000;
    --fs-gold-dark: #8d7d13;
}

.bg-surface2{
  background-color: var(--fs-surface-2);
}

.stat-num {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.4rem, 5vw, 3.4rem);
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--fs-yellow);
}
.stat-item-fornt{
    color: #FFD700; font-size: 2.2rem;
}

.hero-banner {
  position: relative;
  overflow: hidden;
  min-height: clamp(520px, 82vh, 760px);
  display: flex;
  align-items: center;
}

.hero-banner-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, var(--fs-ink) 0%, rgba(0, 0, 0, 0.82) 34%, rgba(0, 0, 0, 0.35) 70%, rgba(0, 0, 0, 0.55) 100%),
    linear-gradient(0deg, var(--fs-ink) 2%, transparent 30%);
  pointer-events: none;
}

.hero-banner-img {
  object-fit: cover;
  object-position: center right;
  z-index: 0;
}


.bg-surface{
    background-color: #181818 !important;
}

.bg-ink{
    background-color: var(--fs-ink);
}

.title-Color{
    color: #fff !important;
}

.fs-card {
  background: var(--fs-surface-2);
  border: 1px solid var(--fs-line);
  border-radius: 0;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  height: 100%;
}
.fs-card:hover {
  transform: translateY(-4px);
  border-color: rgba(var(--fs-yellow-rgb), 0.5);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
}

.fs-card-accent { position: relative; }
.fs-card-accent::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--fs-yellow);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}
.fs-card-accent:hover::before { transform: scaleX(1); }
.fs-icon-badge {
  width: 54px;
  height: 54px;
  border-radius: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(var(--fs-yellow-rgb), 0.12);
  color: var(--fs-yellow);
}
.fs-icon-img {
  width: 30px;
  height: 30px;
  object-fit: contain;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-technical);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--fs-yellow);
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--fs-yellow);
}

.btn-outline-light-soft {
  --bs-btn-color: var(--fs-text);
  --bs-btn-border-color: rgba(255, 255, 255, 0.5);
  --bs-btn-hover-color: #ffffff;
  --bs-btn-hover-bg: rgba(255, 255, 255, 0.08);
  --bs-btn-hover-border-color: #ffffff;
  --bs-btn-font-weight: 600;
  border-radius: 0;
  padding: 0.8rem 1.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.9rem;
}

.fs-highlight-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--fs-yellow);
  background:
    radial-gradient(circle at 50% 50%, rgba(var(--fs-yellow-rgb), 0.14), transparent 70%),
    var(--fs-surface);
}

.chip {
  display: inline-block;
  font-family: var(--font-technical);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.3rem 0.7rem;
  border-radius: 0;
  background: rgba(255, 255, 255, 0.05);
  color: var(--fs-muted);
  border: 1px solid var(--fs-line);
}
.chip-yellow {
  background: rgba(var(--fs-yellow-rgb), 0.12);
  color: var(--fs-yellow);
  border-color: rgba(var(--fs-yellow-rgb), 0.35);
}

.text-muted-soft { color: var(--fs-muted) !important; }
.text-white{color: #fff !important;}
.text-yellow { color: var(--fs-yellow) !important; }

/* 1. กำหนดรูปแบบ อนิเมชันเลื่อนขึ้น (Fade In Up) */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.reveal {
  opacity: 0;
  transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}
.reveal-up { transform: translateY(38px); }
.reveal-left { transform: translateX(-42px); }
.reveal-right { transform: translateX(42px); }
.reveal-zoom { transform: scale(0.94); }
/* cinematic masked reveal — content wipes up behind a clip mask */
.reveal-mask {
  transform: translateY(24px);
  clip-path: inset(0 0 100% 0);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.7s cubic-bezier(0.22, 1, 0.36, 1),
    clip-path 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: translate(0, 0) scale(1);
  clip-path: inset(0 0 0 0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* ---------- Latest news carousel ---------- */
.fs-carousel { position: relative; }
.fs-carousel-viewport { overflow: hidden; border: 1px solid var(--fs-line); }
.fs-carousel-slide {
  display: grid;
  grid-template-columns: 1fr;
  background: var(--fs-surface-2);
}
@media (min-width: 768px) {
  .fs-carousel-slide { grid-template-columns: 1.1fr 1fr; }
}
.fs-carousel-media {
  position: relative;
  min-height: 160px;
  background-color: #0d0d0f;
  background-image: radial-gradient(circle at 50% 45%, rgba(var(--fs-yellow-rgb), 0.07), transparent 68%);
}
@media (min-width: 768px) { .fs-carousel-media { min-height: 240px; } }
.fs-carousel-media img { width: 100%; height: 100%; object-fit: contain; display: block; position: absolute; inset: 0; }
.fs-carousel-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 1.5rem 1.25rem;
}
@media (min-width: 768px) { .fs-carousel-body { padding: 1.75rem 2rem; } }
.fs-carousel-body h3 { font-size: clamp(1rem, 4vw, 1.35rem); margin-bottom: 0.75rem !important; }
.fs-carousel-body p { font-size: 0.9rem; margin-bottom: 0.75rem !important; }
.fs-carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.55);
  color: #ffffff;
  border: 1px solid var(--fs-line);
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
  z-index: 2;
}
.fs-carousel-arrow:hover { background: var(--fs-yellow); color: #000000; border-color: var(--fs-yellow); }
.fs-carousel-prev { left: 0; }
.fs-carousel-next { right: 0; }
.fs-carousel-dots {
  display: flex;
  justify-content: center;
  gap: 0.35rem;
  margin-top: 0.85rem;
}
.fs-carousel-dot {
  width: 20px;
  height: 3px;
  background: var(--fs-line);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: background 0.15s ease;
}
.fs-carousel-dot.active { background: var(--fs-yellow); }

/* ---------- Footer ---------- */
.fs-footer {
  background: #0f1114;
  border-top: 1px solid var(--fs-line);
}
.fs-footer a {
  color: var(--fs-muted);
  text-decoration: none;
  transition: color 0.15s ease;
}
.fs-footer a:hover { color: var(--fs-yellow); }
.fs-footer h6 {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fs-muted) !important;
  margin-bottom: 0.75rem !important;
}
.fs-footer a,
.fs-footer li {
  font-size: 0.82rem;
  line-height: 1.4;
}
.fs-footer .fs-foot-links { gap: 0.45rem !important; }
.fs-footer .eyebrow { font-size: 0.68rem; }
.fs-footer .small { font-size: 0.72rem; }

.fs-logo-panel {
  background: #c0c0c0;
  border-top: 3px solid var(--fs-yellow);
  padding: 1.5rem 1.5rem;
}
.fs-logo-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  align-items: center;
}
@media (min-width: 576px) { .fs-logo-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 992px) { .fs-logo-grid { grid-template-columns: repeat(5, 1fr); } }
.fs-logo-cell {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
  min-height: 68px;
  filter: grayscale(1);
  opacity: 0.7;
  transition: filter 0.2s ease, opacity 0.2s ease, transform 0.2s ease;
}
.fs-logo-cell:hover {
  filter: grayscale(0);
  opacity: 1;
  transform: translateY(-2px);
}
.fs-logo-cell img {
  max-width: 100%;
  max-height: 56px;
  width: auto;
  height: auto;
  object-fit: contain;
}

.fs-qr-container {
  flex-shrink: 0;
  width: 72px;
  padding: 0.5rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--fs-line);
  transition: background 0.2s ease, border-color 0.2s ease;
}
.fs-qr-container:hover {
  background: rgba(var(--fs-yellow-rgb), 0.08);
  border-color: rgba(var(--fs-yellow-rgb), 0.3);
}
.fs-qr-img {
  width: 100%;
  height: auto;
  display: block;
}

/* Service/Product illustration containers */
.fs-service-image-container {
  width: 100%;
  max-width: 260px;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(var(--fs-yellow-rgb), 0.06) 0%, rgba(var(--fs-yellow-rgb), 0.02) 100%);
  border: 1px solid var(--fs-line);
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.3s ease, border-color 0.3s ease;
}
.fs-service-image-container:hover {
  transform: translateY(-4px);
  border-color: rgba(var(--fs-yellow-rgb), 0.4);
}
.fs-service-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 1rem;
}
.fs-service-thumb {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  border-radius: 6px;
  padding: 0.4rem;
}
.fs-service-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.btn-yellow {
  --bs-btn-color: #000000;
  --bs-btn-bg: var(--fs-yellow);
  --bs-btn-border-color: var(--fs-yellow);
  --bs-btn-hover-color: #000000;
  --bs-btn-hover-bg: var(--fs-gold-dark);
  --bs-btn-hover-border-color: var(--fs-gold-dark);
  --bs-btn-active-bg: var(--fs-gold-dark);
  --bs-btn-active-border-color: var(--fs-gold-dark);
  --bs-btn-font-weight: 600;
  border-radius: 0;
  padding: 0.8rem 1.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.9rem;
}

/* เลือก strong ทุกตัวที่อยู่ใน product-description */
.product-description strong {
    display: block; /* ทำให้ขึ้นบรรทัดใหม่เหมือนหัวข้อ */
    font-size: 1.25rem; /* ขนาดเท่ากับ class .h5 ของ Bootstrap */
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
    color: var(--fs-yellow); 
}

.product-description p {
    font-size: 1.25rem;
    margin-bottom: 0;
    color: var(--fs-muted);
}

.product-description ul{
    font-size: 1.25rem; /* ขนาดเท่ากับ class .h5 ของ Bootstrap */
    margin-bottom: 0; /* ระยะห่างเท่ากับ class .mb-2 ของ Bootstrap */
    color: var(--fs-muted); /* สีเหลืองตามต้องการ (หรือเปลี่ยนเป็นสี .text-yellow ของโครงการ) */
}

.text-detail ul{
    font-size: 1.25rem; /* ขนาดเท่ากับ class .h5 ของ Bootstrap */
    margin-bottom: 0; /* ระยะห่างเท่ากับ class .mb-2 ของ Bootstrap */
    color: var(--fs-muted); /* สีเหลืองตามต้องการ (หรือเปลี่ยนเป็นสี .text-yellow ของโครงการ) */
}

.bubbles {
  display: inline-flex;
  align-items: flex-end;
  gap: 4px;
}
.bubbles span {
  display: block;
  border-radius: 50%;
  background: var(--fs-yellow);
}
.bubbles span:nth-child(1) { width: 6px; height: 6px; opacity: 0.6; }
.bubbles span:nth-child(2) { width: 9px; height: 9px; opacity: 0.8; }
.bubbles span:nth-child(3) { width: 13px; height: 13px; }

.mb-4{
  margin-bottom: 20px;
}

.logo-img-partner{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 1.5rem;
    box-sizing: border-box;
}

.text-Upper{
  text-transform: uppercase!important;
  font-weight: bold !important;
}

/* ทำงานเฉพาะหน้าจอขนาด xl ขึ้นไป (>= 1200px) */
@media (min-width: 1200px) {
    .custom-logo-margin {
        margin-left: 327px !important;
    }
}

/* กำหนด position relative ให้แท็ก <a> เพื่อให้ ::after แสดงผลตรงตำแหน่ง */
/* .header-nav .navbar-nav > li > a {
    position: relative !important;
    display: inline-block !important;
} */

/* สร้างขีดสีเหลืองให้เมนูที่ติด class .active */
/* .header-nav .navbar-nav > li > a.active::after {
    content: "" ;
    background: var(--fs-yellow, #ffc107) ; 
    height: 2px ;
    position: absolute ;
    bottom: -2px ;
    left: .9rem ;
    right: .9rem ;
} */

/* กำหนดตำแหน่งให้อ้างอิงขอบของแท็ก <a> */
.header-nav .navbar-nav > li > a {
    position: relative !important;
    display: inline-block !important;
}

/* ขีดสีเหลืองใต้เมนูที่ติด class .active */
.header-nav .navbar-nav > li > a.active::after {
    content: "";
    display: block;
    position: absolute;
    
    top: 100% !important;        /* ดันลงมาเริ่มที่จุดล่างสุดของตัวอักษร 100% */
    bottom: auto !important;     /* ยกเลิกการอ้างอิง bottom เดิม */
    margin-top: -20px;            /* ระยะห่างระหว่างตัวอักษรกับเส้น (ปรับ 2px - 6px ตามชอบ) */
    
    left: 50% !important;
    transform: translateX(-50%) !important;
    width: 100%;                 /* ความยาวขีดเท่ากับความกว้างตัวอักษร */
    height: 3px;                 /* ความหนาเส้น */
    background-color: var(--fs-yellow, #ffc107);
    z-index: 2;
}

@media (max-width: 767px) {
  .header-nav .navbar-nav > li > a.active::after {
    display: none !important;
  }
}

.title-s-color{
  color: #9aa7b5 !important;
}
/* จัดการ footer */
@media (min-width: 992px) and (max-width: 1199.98px) {
  .fs-navbar > .container {
    width: 100%;
    max-width: none !important;
    padding-left: 20px;
    padding-right: 20px;
  }

  .fs-navbar .navbar-brand {
    flex-shrink: 0;
  }

  .fs-navbar .nav-link {
    white-space: nowrap;
    padding-left: 0.55rem !important;
    padding-right: 0.55rem !important;
  }
}

.fs-vision-content > :last-child {
    margin-bottom: 0;
}

.fs-mission-content {
    counter-reset: mission;
    font-size: 14px;
    line-height: 1.6;
}

.fs-mission-content ol,
.fs-mission-content ul {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.fs-mission-content li {
    counter-increment: mission;
    display: grid;
    grid-template-columns: 1.5rem 1fr;
    gap: 0.75rem;
}

.fs-mission-content li::before {
    content: counter(mission, decimal-leading-zero);
    color: var(--fs-yellow, #f3d721);
    font-size: 16px;
    font-weight: 700;
}

.fs-mission-content li p {
    margin: 0;
}

.fs-history-item {
    display: grid;
    grid-template-columns: 4.5rem minmax(0, 1fr);
    column-gap: 1.5rem;
    align-items: start;
}

.fs-history-item > p {
    margin: 0;
}

.fs-history-item > p:first-child {
    grid-column: 1;
    color: var(--fs-yellow, #f3d721);
    font-size: 1.3rem;
    font-weight: 700;
    white-space: nowrap;
}

.fs-history-item > p:first-child span {
    color: inherit !important;
}

.fs-history-item > p:not(:first-child) {
    grid-column: 2;
    color: var(--fs-muted, #969696);
    font-size: 1.25rem;
    line-height: 1.5;
}

.service-detail-content img {
        max-width: 100%;
        height: auto;
}

.job-responsibilities {
    font-size: 16px !important;
}

.job-responsibilities ul {
    padding-left: 1.5rem;
}

.job-responsibilities ul > li {
    display: list-item;
    list-style-type: disc !important;
    margin-bottom: .5rem;
}

.job-responsibilities ul > li::marker {
    color: #f8e71c;
}

.job-responsibilities li p {
    margin-bottom: 0;
}

.benefit-text {
  font-size: 14px !important;
}

.benefit-text ul > li {
    display: list-item;
    list-style-type: disc !important;
    margin-bottom: .5rem;
}

.benefit-text ul > li::marker {
    color: #f8e71c;
}

.benefit-text li p {
    margin-bottom: 0;
}
.text-decoration-none{text-decoration:none!important}

.fs-footer-contact-layout {
    display: flex;
    flex-wrap: nowrap;
    align-items: flex-start;
    gap: 1rem;
}

.fs-footer-contact-details {
    flex: 1 1 0;
    min-width: 0;
    overflow-wrap: anywhere;
}

@media (max-width: 637px) {
    .fs-footer-contact-layout {
        flex-direction: column;
    }

    .fs-footer-contact-details {
        flex: none;
        width: 100%;
    }
}
.fs-qr-container {
    flex-shrink: 0;
    width: 72px;
    padding: .5rem;
    background: rgba(255, 255, 255, .05);
    border: 1px solid var(--fs-line);
}

.fs-qr-img {
    display: block;
    width: 100%;
    height: auto;
}