* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
@font-face {
  font-family: 'RSU';
  src: url('../rsufont/RSU_Light.ttf') format('truetype');
  font-weight: 300;
}

@font-face {
  font-family: 'RSU';
  src: url('../rsufont/RSU_Regular.ttf') format('truetype');
  font-weight: 400;
}

@font-face {
  font-family: 'RSU';
  src: url('../rsufont/RSU_BOLD.ttf') format('truetype');
  font-weight: 700;
}

body {
  font-family: 'RSU', sans-serif;
  background: linear-gradient(135deg, #ffffff );
  color: #000; 
  padding-top: 70px; 
  margin: 0;
  padding: 0;
}

h1, h2 {
  font-weight: 700; /* Bold */
}

p {
  font-weight: 400; /* Regular */
}
li {
  font-weight: 400; /* Regular */
}
.small-text {
  font-weight: 300; /* Light */
}

:root{
  --brand:#06a4ff;     
  --brand-dark:#057acc;
  --text-on:#ffffff;
  --shadow:0 2px 10px rgba(0,0,0,.12);
  --header-h:64px;    
  --header-h-sm:58px;  
}


html { scroll-behavior: smooth; }
#product, #about, #contact, #top { scroll-margin-top: var(--header-h); }

@media (max-width: 768px){
  #product, #about, #contact, #top { scroll-margin-top: var(--header-h-sm); }
}


:root{
  --brand: #0B4AA1;       /* น้ำเงิน */
  --brand-dark: #08397C;  /* น้ำเงินเข้ม */
  --text-on: #fff;
  --header-h-sm: 64px;
}

.site-header{
  background: linear-gradient(90deg, var(--brand) 0%, var(--brand-dark) 100%);
  color: var(--text-on);
  position: sticky;
  top: 0;
  z-index: 999;
}

.header-inner{
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 20px;
}

/* โลโก้ */
.logo{
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  color: #fff;
}

/* แก้ typo: 18 px -> 18px */
.logo h1{
  font-size: clamp(18px, 2.2vw, 26px);
  font-weight: 800;
  letter-spacing: .5px;
  line-height: 1;
  margin: 0;
  white-space: nowrap;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0,0,0,.25);
}



.logo img{
  height: 40px;
  width: auto;
  object-fit: contain;
}

/* เมนู: ดันไปขวา */
.nav{
  margin-left: auto;         /* ✅ ทำให้เมนูชิดขวา */
  display: flex;
  gap: clamp(12px, 2vw, 22px);
  align-items: center;
}

.nav a{
  color: var(--text-on);
  text-decoration: none;
  font-weight: 700;
  font-size: 18px;
  padding: 8px 10px;
  border-radius: 10px;
  line-height: 1;
  transition: background .15s ease, transform .15s ease;
}

.nav a:hover,
.nav a:focus-visible{
  background: rgba(255,255,255,.18);
  outline: none;
  transform: translateY(-1px);
}

/* ปุ่ม hamburger */
.nav-toggle{
  display: none;
  border: 0;
  background: transparent;
  color: var(--text-on);
  width: 40px; height: 40px;
  border-radius: 10px;
}
.nav-toggle:focus-visible{ outline: 2px solid #fff; outline-offset: 2px; }
.nav-toggle .icon{ display: block; }

/* มือถือ */
@media (max-width: 768px){
  .nav-toggle{ display: grid; place-items: center; }

  .nav{
    position: fixed;
    top: var(--header-h-sm);
    left: 0;
    right: 0;
    display: grid;
    gap: 8px;
    background: linear-gradient(180deg, var(--brand) 0%, var(--brand-dark) 100%);
    padding: 12px;
    transform: translateY(-120%);
    transition: transform .2s ease;
    box-shadow: 0 8px 18px rgba(0,0,0,.18);
    margin-left: 0; /* กันค่า margin-left:auto มีผลตอน fixed */
  }

  .nav.open{ transform: translateY(0%); }

  .nav a{
    padding: 14px 12px;
    font-size: 16px;
    border-radius: 12px;
    background: rgba(255,255,255,.06);
  }
}

/* ลดแอนิเมชัน */
@media (prefers-reduced-motion: reduce){
  .nav, .nav a{ transition: none !important; }
}

/* มือถือ: ลดระยะห่างบนลงนิด */
@media (max-width: 768px){
  :root{ --header-h: 64px; }
  .banner{ margin: calc(var(--header-h)) auto 16px; padding: 0 12px; }
}

.hero-text h1 span {
  color: #000;
}
  
.hero-slider {
  width: 100%;
  height: auto;
}

.hero-slider .swiper-slide {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-slider .swiper-slide img {
  width: 100%;
  height: auto;          /* ยืดสูงตามอัตราส่วน */
  object-fit: contain;   /* เห็นรูปครบ */
}

.hero {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;   
  align-items: center;       
  padding: 3rem 2rem;
  gap: 2rem;               
  text-align: left;
}

.hero-text {
  max-width: 500px;
}

.hero-text h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.hero-text span {
  color: #ffffff;
  font-weight: bold;
}

.hero-text p {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;  
}

.hero-img img {
  max-width: 400px;
  width: 100%;
  height: auto;
}

.buttons .btn {
  padding: 0.8rem 1.5rem;
  border: none;
  margin-right: 10px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: bold;
  display: inline-block;
}

.line {
  background: #00c300;
  color: #fff;
}

.program {
  background: #3ec6f0;
  color: #fff;
}

.social-icons {
  position: fixed;
  top: 50%;
  right: 10px;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.social-icons img {
  width: 32px;
  height: 32px;
}

.slider {
  position: relative;
  width: 50%;
  max-width: 600px;
  overflow: hidden;
}

.slides {
  display: flex;
  transition: transform 0.5s ease-in-out;
}

.slide {
  min-width: 100%;
  height: auto;
}

.navigation {
  position: absolute;
  width: 100%;
  top: 45%;
  display: flex;
  justify-content: space-between;
  padding: 0 10px;
}

.navigation button {
  background: rgba(255, 255, 255, 0.5);
  border: none;
  font-size: 2rem;
  cursor: pointer;
}

/* .contact-section {
  background: #2f51af;
  color: #fff;
  padding: 4rem 2rem;
} */

.contact-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  gap: 2rem;
}

.contact-left img {
  width: 100%;
  max-width: 400px;
  border-radius: 100px 0 100px 0;
}

.contact-right {
  max-width: 500px;
  flex: 1;
}

.contact-right h2 {
  margin-bottom: 1rem;
}

form input,
form textarea {
  width: 100%;
  margin-bottom: 1rem;
  padding: 0.8rem;
  border: none;
  border-radius: 5px;
}

form textarea {
  resize: vertical;
  height: 120px;
}

form button {
  width: 100%;
  padding: 1rem;
  border: none;
  background: linear-gradient(to right, #922fff, #c03fff);
  color: white;
  font-weight: bold;
  border-radius: 30px;
  cursor: pointer;
}


:root{
  --brand:#004aad;         
  --brand-2:#06a4ff;       
  --bg:#00a2ff;            
  --card:#0f1b45cc;       
  --text:#eaf1ff;          
  --muted:#b8c4e3;         
  --ring:#3a62ff33;         
}

.contact-section{
  font-family: 'RSU', sans-serif;
  color: #fff;
  background: linear-gradient(180deg, #1f56b7 0%, #153f90 100%);
  padding: clamp(20px, 4vw, 48px) 16px;
}

.footer{
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr;
  max-width: 1100px;
  margin: 0 auto;
  border: 1px solid var(--ring);
  border-radius: 16px;
  padding: clamp(16px, 3vw, 28px);
  /* backdrop-filter: blur(6px); */
  /* box-shadow: 0 10px 30px rgba(0,0,0,.25); */
}

.footer-left, .footer-right{
  min-width: 0; 
}

.company{
  font-size: clamp(16px, 2vw, 20px);
  line-height: 1.4;
  margin-bottom: 8px;
}

.addr, .contact{
  font-style: normal;
  color: var(--muted);
  line-height: 1.8;
  margin: 6px 0;
}

.contact a{
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-right{
  display: flex;
  align-items: center;
}

.social-icons-horizontal{
  display: flex;
  gap: clamp(12px, 2vw, 18px);
  flex-wrap: wrap;
}

.social-icons-horizontal .icon{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: clamp(44px, 8vw, 56px);
  height: clamp(44px, 8vw, 56px);
  border-radius: 12px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  transition: transform .15s ease, background .15s ease, border-color .15s ease;
}

.social-icons-horizontal .icon:hover{
  transform: translateY(-2px);
  background: rgba(255,255,255,.12);
  border-color: var(--brand-2);
}

.social-icons-horizontal img{
  width: 60%;
  height: 60%;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 2px 2px rgba(0,0,0,.25));
}


@media (min-width: 720px){
  .footer{
    grid-template-columns: 1.2fr .8fr;
  }
}

@media (max-width: 719.98px){
  .footer-right{
    justify-content: flex-start;
  }
}


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

.social-icons-horizontal {
  display: flex;
  gap: 20px;
}

.social-icons-horizontal img {
  width: 45px;
  height: 45px;
  background-color: #002c6e;
  padding: 6px;
  border-radius: 4px;
}

/* ====== SECTION / TYPO ====== */
/* ===== Section wrapper ===== */
.dot-matrix-section{
  padding: 60px 20px;
  text-align: center;
}

.product-container{
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
  position: relative;
}

.product-title{
  margin: 0 0 18px;
  font-size: clamp(20px, 3vw, 28px);
  color: #0e2a55;
  font-weight: 800;
}

/* ===== Swiper base ===== */
.productSwiper{
  position: relative;
  padding: 10px 56px 60px; /* space ซ้ายขวาเผื่อปุ่ม, ล่างเผื่อ dots */
  overflow: visible;       /* ให้เงาการ์ดล้นได้สวย */
}

.productSwiper .swiper-wrapper{
  align-items: stretch; /* ให้สไลด์ยืดสูงเท่ากัน */
}

.productSwiper .swiper-slide{
  /* ความกว้างสไลด์ (ให้ Swiper จัดแถว) */
  width: 320px;                 /* base width (จะถูก override ด้วย breakpoints ของ Swiper) */
  display: flex;                /* สำคัญ: ให้ยืดการ์ดสูงเท่ากัน */
  justify-content: center;
  height: auto !important;      /* ป้องกัน autoHeight ของ Swiper มาบีบ */
}

/* ===== Card ===== */
.product-card{
  background: #fff;
  border-radius: 20px;
  padding: 20px;
  width: 320px;
  box-shadow: 0 10px 24px rgba(0,0,0,.08);
  text-align: left;
  position: relative;

  /* สำคัญ: ทำให้ทุกการ์ดสูงเท่ากัน */
  height: 100%;
  display: flex;
  flex-direction: column;
}

.product-card img{
  width: 100%;
  height: auto;
  border-radius: 10px;
  margin-bottom: 10px;
  display: block;
  object-fit: contain;
}

.product-card h3{
  font-size: 18px;
  margin: 10px 0 0;
}

.product-card .sub{
  color:#000;
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 10px;
}

.product-card ul{
  list-style: none;
  padding: 0;
  font-size: 16px;
  margin: 8px 0 15px;
  color:#333;
}


.product-card .note{
  font-size: 18px;
  color:#888;
  margin-bottom: 12px;
}

/* ===== Promo Section  ===== */
.promo-hero{
  padding: 48px 20px;
}

.promo-title{
  text-align: center;
  font-size: clamp(20px, 2.2vw, 28px);
  margin: 0 0 26px;
  font-weight: 800;
}

/* ซ้าย: Swiper */
.promoSwiper{
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(0,0,0,.08);
}

.promoSwiper .swiper-slide{
  display:flex;
  justify-content:center;
  align-items:center;
}

.promoSwiper img{
  width: 100%;
  height: auto;
  display:block;
  object-fit: contain;
}

/* ปุ่มลูกศร/จุด ของโปรโมชัน */
.promoSwiper .promo-nav{
  color: #0b4fb3;
}

.promoSwiper .promo-dots .swiper-pagination-bullet{
  opacity: .35;
}
.promoSwiper .promo-dots .swiper-pagination-bullet-active{
  opacity: 1;
}

/* ขวา: กล่องการ์ด + ปุ่ม */
.promo-side{
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.promo-section{
  display: flex;
  flex-direction: column; 
  gap: 16px;
}

/* การ์ดสีน้ำเงิน */
.promo-card{
  animation: fadeUp .6s ease both;
  background: linear-gradient(180deg, #1f56b7 0%, #153f90 100%);
  color: #fff;
  border-radius: 18px;
  padding: 18px 18px 16px;
  box-shadow: 0 18px 40px rgba(0,0,0,.12);
  border: 1px solid rgba(255,255,255,.12);
}

.promo-card h4{
  margin: 0 0 10px;
  font-size: 20px;
  font-weight: 800;
}

.promo-card p{
  margin: 0 0 10px;
  font-size: 18px;
  opacity: .95;
}

.promo-card strong{
  color: #ffd54a;
}

.promo-card ul{
  margin: 0;
  padding-left: 0;
  list-style: none;
  display: grid;
  gap: 8px;
  font-size: 16px;
}

.promo-card ul li{
  position: relative;
  padding-left: 16px;
  opacity: .95;
}

.promo-card ul li::before{
  content: "•";
  position: absolute;
  left: 0;
  top: 0;
  opacity: .9;
}

.promo-card:hover li{
  transform: translateX(4px);
}

/* mobile: ลดแรง hover */
@media (max-width: 768px){
  .promo-card:hover{
    transform: none;
    box-shadow: 0 10px 22px rgba(0,0,0,.18);
  }
}


/* Responsive */
@media (max-width: 992px){
  .promo-layout{
    grid-template-columns: 1fr; /* มือถือเรียงลง */
  }
}

.hero{
  display: grid;
  grid-template-columns: minmax(320px, 520px) minmax(260px, 420px);
  gap: 28px;
  align-items: start;
}

/* ให้หัวข้อเต็มบรรทัดด้านบน */
.hero > h2{
  grid-column: 1 / -1;
  text-align: center;
  margin: 0 0 6px;
}

/* มือถือให้เรียงลง */
@media (max-width: 900px){
  .hero{ grid-template-columns: 1fr; }
  .promo-section{ max-width: 100%; }
}

/* layout หลัก */
.promo-layout{
  display: grid;
  grid-template-columns: 60% 40%;
  gap: 28px;
  align-items: start;
  max-width: 1100px;
  margin: 0 auto;
}

/* ===== ซ้าย : slider ===== */
.promo-left{
  width: 100%;
}

.promo-slider{
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  object-fit: cover;
}

/* track */
.promo-track{
  position: relative;
  width: 100%;
  height: 100%;
}

/* slide */
.promo-slide{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;   /* เปลี่ยนเป็น cover ได้ */
  opacity: 0;
}

.promo-slide.active{
  opacity: 1;
}

/* ปุ่ม */
.promo-prev,
.promo-next{
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(0,0,0,0.35); /* โปร่ง */
  color: #fff;
  border: none;
  font-size: 26px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .2s ease;
}

.promo-prev{ left: 14px; }
.promo-next{ right: 14px; }

.promo-prev:hover,
.promo-next:hover{
  opacity: 1;
  background: rgba(0,0,0,.55);
  transform: translateY(-50%) scale(1.08);
}

/* ===== ขวา : card ===== */
.promo-right{
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* ===== Responsive ===== */
@media (max-width: 992px){
  .promo-layout{
    grid-template-columns: 1fr;
  }
}



@media (max-width: 768px){
  .promo-slider{
    max-width: 100%;
    height: auto;       /* เปลี่ยนจาก 240px เป็น auto */
    border-radius: 14px;
    position: relative;
  }

  .promo-slide img{
    width: 100%;
    height: auto;
    display: block;
  }
}


/* layoutba */
/* Business Application Section */
.business-section {
  font-family: 'RSU', sans-serif;
  background: linear-gradient(180deg, #1f56b7 0%, #153f90 100%);
  padding: 40px 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  padding: 60px 0;
  color: #fff;
}

.BA-layout {
  max-width: 1200px;
  width: 100%;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  padding: 20px;
}

.BA-image-container {
  flex: 1;
  max-width: 45%; /* Control the width of the image */
}

.BA-image {
  width: 100%;
  height: auto;
  border-radius: 10px;
}

.BA-text-container {
  flex: 1;
  color: #fff;
  max-width: 45%; /* Control the width of the text */
}

.BA-title {
  font-size: 70px;
  line-height: 1.6;
  font-weight: bold;
  margin-bottom: 10px;
}

.BA-description {
  font-size: 20px;
  line-height: 1.6;
  max-width: 900px;
  margin: 0 auto;
}

.learn-more-btn {
  display: inline-block;
  margin-top: 20px;
  padding: 12px 30px;
  background-color: #7a7a7a;
  color: white;
  font-size: 1rem;
  font-weight: bold;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 50px;
  transition: background-color 0.3s;
}

.learn-more-btn:hover {
  background-color: #555;
}

/* สำหรับมือถือ */
@media only screen and (max-width: 768px) {
  .BA-layout {
    text-align: center;
    flex-direction: column; /* เปลี่ยนจากแนวนอนเป็นแนวตั้ง */
    align-items: center; /* จัดกลาง */
    gap: 20px; /* เพิ่มช่องว่างระหว่างคอลัมน์ */
  }

  .BA-image-container,
  .BA-text-container {
    max-width: 90%; /* ลดขนาดคอนเทนต์ให้พอดีกับหน้าจอ */
    width: 100%;
  }

  .BA-title {
    font-size: 2rem; /* ลดขนาดฟอนต์ */
  }

  .BA-description {
    font-size: 1rem; /* ลดขนาดฟอนต์คำอธิบาย */
    text-align: center; /* จัดข้อความให้กลาง */
  }

  .learn-more-btn {
    text-align: center;
    padding: 10px 20px; /* ปรับขนาดปุ่มให้เหมาะกับมือถือ */
  }
}

/* ===== Steps ===== */

.SPsection {
      padding: 60px 20px;
    }

.card-section {
      display: flex;
      justify-content: center;
      gap: 20px;
      flex-wrap: wrap;
      padding: 60px 0px;
    }

    .card {
      background: linear-gradient(180deg, #1f56b7 0%, #153f90 100%);
      color: #ffffff;
      border-radius: 16px;
      padding: 20px;
      max-width: 350px;
      box-shadow: 0 4px 20px rgba(0,0,0,0.1);
      transition: transform 0.3s ease, box-shadow 0.3s ease;
    }

    .card:hover {
      transform: translateY(-8px);
      box-shadow: 0 8px 30px rgba(0,0,0,0.2);
    }

    .card p {
      color: #ffffff;
      border-top: 1px solid #eee;
      padding-top: 10px;
      margin: 0 0 10px;
      font-size: 18px;
      opacity: .95;
    }

    /* ===== Steps Section (Responsive) ===== */
:root{
  --brand: #004aad;
  --card-bg: #fff;
  --text: #ffffff;
  --muted:#ffffff;
  --ring:#e9eef8;
  --shadow: 0 6px 20px rgba(0,0,0,.08);
}

.steps-section{
  border-radius: 16px;
  margin: 0 auto;
  max-width: 1100px;
  background: linear-gradient(180deg, #1f56b7 0%, #153f90 100%);
  color: #fff;
  text-align: center;
  padding: clamp(60px, 4vw, 60px) clamp(20px, 4vw, 24px);
  box-shadow: var(--shadow);
}

.steps-section h2{
  color: #fff;
  margin: 0 0 clamp(18px, 3vw, 40px);
  font-size: clamp(18px, 2.6vw, 28px);
}

/* ใช้ CSS Grid แทน flex เพื่อยืดหยุ่นขึ้น */
.steps-container{
  display: grid;
  grid-template-columns: repeat(4, minmax(180px, 1fr));
  gap: clamp(14px, 2.5vw, 24px);
  max-width: 1000px;
  margin: 0 auto;
  padding-top: clamp(16px, 2.5vw, 30px);
  border-top: 3px solid #eee;
}


/* วงกลมหมายเลข ปรับขนาดตามหน้าจอด้วย clamp */
.step-number{
  width: clamp(48px, 6vw, 64px);
  height: clamp(48px, 6vw, 64px);
  background: #fff;
  color: #000000;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 24px;
  font-weight: 700;
  margin: 0 auto 10px;
  box-shadow: 0 6px 12px rgba(0,0,0,.12);
}

/* หัวข้อ/คำอธิบาย */
.step-title{
  font-weight: 700;
  color: #fff;
  margin-bottom: 6px;
  font-size: 20px;
}
.step-desc{
  font-size: 16px;
  color: #fff;
  line-height: 1.6;
}

/* Breakpoints: 2 คอลัมน์บนแท็บเล็ต, 1 คอลัมน์บนมือถือ */
@media (max-width: 900px){
  .steps-container{
    grid-template-columns: repeat(2, minmax(180px, 1fr));
  }
  /* ซ่อนเส้นเชื่อมใน layout ซ้อน */
  .step::after{ display: none; }
}
@media (max-width: 560px){
  .steps-container{
    grid-template-columns: 1fr;
  }
}

/* ลด motion เมื่อผู้ใช้ตั้งค่า */
@media (prefers-reduced-motion: reduce){
  .step{ transition: none !important; }
}


/* ===== Arrows ===== */
.productSwiper .swiper-button-prev { left: 16px; }
.productSwiper .swiper-button-next { right: 16px; }
.productSwiper .swiper-button-prev,
.productSwiper .swiper-button-next{
  color:#004aad; background:#fff; border-radius:50%;
  width:40px; height:40px; display:flex; justify-content:center; align-items:center;
  box-shadow:0 2px 6px rgba(0,0,0,.2); z-index:10; transition:all .25s ease;
}
.productSwiper .swiper-button-prev::after,
.productSwiper .swiper-button-next::after{ font-size:18px; }
.productSwiper .swiper-button-prev:hover,
.productSwiper .swiper-button-next:hover{ background:#004aad; color:#fff; transform:scale(1.08); }

/* ===== Dots (center) ===== */
.productSwiper > .product-dots{
  position:absolute; left:50% !important; right:auto !important;
  transform:translateX(-50%); bottom:14px; width:max-content !important;
  margin:0; display:flex; gap:6px; align-items:center; justify-content:center; z-index:5;
}
.productSwiper .swiper-pagination-bullet{ opacity:.5; background:#004aad; }
.productSwiper .swiper-pagination-bullet-active{ opacity:1; }

/* ===== Responsive paddings & arrow sizes ===== */
@media (max-width: 1024px){
  .productSwiper{ padding: 10px 48px 56px; }
}
@media (max-width: 768px){
  .productSwiper{ padding: 10px 40px 52px; }
  .productSwiper .swiper-button-prev,
  .productSwiper .swiper-button-next{ width:36px; height:36px; }
  .productSwiper .swiper-button-prev::after,
  .productSwiper .swiper-button-next::after{ font-size:16px; }
}
@media (max-width: 480px){
  .productSwiper{ padding: 8px 32px 48px; }
  .productSwiper .swiper-button-prev,
  .productSwiper .swiper-button-next{ width:32px; height:32px; }
  .productSwiper .swiper-button-prev::after,
  .productSwiper .swiper-button-next::after{ font-size:14px; }
}

/* ข้อความหลัก */
h1, h2, h3, p {
  line-height: 1.4;
  word-wrap: break-word;
}

/* Responsive สำหรับมือถือ */
@media (max-width: 768px) {
  .logo {
    font-size: 14px; /* ย่อข้อความโลโก้ */
  }

  h1 {
    font-size: 20px; /* ข้อความหัวเรื่อง */
  }

  h2 {
    font-size: 18px;
  }

  p {
    font-size: 14px;
  }

  /* ปรับ section header */
  .section-title {
    font-size: 16px;
    text-align: center; /* จัดกลางเวลาอยู่บนมือถือ */
    margin: 10px 0;
  }

  /* ปรับระยะห่างข้อความในกล่อง */
  .card p {
    font-size: 13px;
    margin: 4px 0;
  }
}

/* Responsive สำหรับจอเล็กมาก (<480px) */
@media (max-width: 480px) {
  h1 {
    font-size: 18px;
  }
  p {
    font-size: 12px;
  }
  .section-title {
    font-size: 14px;
  }
}

:root{
  --sc-size: 48px;  
  --sc-gap: 8px;   
  --sc-radius: 12px;  
  --sc-shadow: 0 4px 12px rgba(0,0,0,.25);
  --fb: #3b5998;
  --line: #00c300;
  --call: #e53935;
}

.side-contact{
  position: fixed;
  top: 40%;
  right: 0;
  transform: translateY(-50%);
  z-index: 9999;
  display: grid;
  gap: var(--sc-gap);
  padding-right: max(0px, env(safe-area-inset-right)); /* ป้องกันติดขอบบน iPhone */
}

.sc-item{
  display: grid;
  place-items: center;
  width: var(--sc-size);
  height: var(--sc-size);
  border-radius: var(--sc-radius) 0 0 var(--sc-radius);
  box-shadow: var(--sc-shadow);
  transition: transform .18s ease, filter .18s ease;
}

.sc-item img{
  width: 24px;
  height: 24px;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,.3));
}

/* สีแต่ละปุ่ม */
.sc-item.fb{ background: var(--fb); }
.sc-item.line{ background: var(--line); }
.sc-item.call{ background: var(--call); }

/* effect hover */
.sc-item:hover{
  transform: translateX(-4px) scale(1.05);
  filter: brightness(1.05);
}

/* มือถือ: ขนาดเล็กลงนิด */
@media (max-width: 768px){
  :root{
    --sc-size: 44px;
    --sc-radius: 10px;
  }
}

.popup-overlay {
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background: rgba(0,0,0,0.7);
      display: none;
      justify-content: center;
      align-items: center;
      z-index: 999;
      padding: 10px;
    }

    /* ----- กล่อง Popup ----- */
    .popup {
      position: relative;
      background: #fff;
      border-radius: 10px;
      overflow: hidden;
      box-shadow: 0 0 20px rgba(0,0,0,0.3);
      animation: fadeIn 0.4s ease;
      width: 80%;           /* 👈 ปรับให้กว้าง 80% ของหน้าจอ */
      max-width: 900px;     /* 👈 จำกัดขนาดสูงสุดสำหรับจอใหญ่ */
    }

    /* ----- รูปภาพใน Popup ----- */
    .popup img {
      display: block;
      width: 100%;
      height: auto;
    }

    /* ----- ปุ่มปิด (กากบาท) ----- */
    .close-btn {
      position: absolute;
      top: 10px;
      right: 10px;
      background: #ff4d4d;
      color: white;
      border: none;
      font-size: 24px;
      cursor: pointer;
      border-radius: 50%;
      width: 38px;
      height: 38px;
      line-height: 34px;
      text-align: center;
      box-shadow: 0 0 6px rgba(0,0,0,0.4);
      transition: 0.2s;
      z-index: 10;
    }

    .close-btn:hover {
      background: #e60000;
      transform: scale(1.1);
    }

    /* ----- เอฟเฟกต์เปิด Popup ----- */
    @keyframes fadeIn {
      from {opacity: 0; transform: scale(0.8);}
      to {opacity: 1; transform: scale(1);}
    }

    /* ----- Responsive: สำหรับหน้าจอเล็ก ----- */
    @media (max-width: 768px) {
      .popup {
        width: 90%;
        max-width: 100%;
      }

      .close-btn {
        top: 6px;
        right: 6px;
        font-size: 20px;
        width: 32px;
        height: 32px;
        line-height: 28px;
      }
    }

    @media (max-width: 480px) {
      .popup {
        width: 95%;
      }
    }

.ytsection {
  font-family: 'RSU', sans-serif;
  background: linear-gradient(180deg, #1f56b7 0%, #153f90 100%);
  padding: 40px 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  padding: 60px 0;
  color: #fff;
}

.yt-wrap{
  position: relative;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  aspect-ratio: 16 / 9;
  border-radius: 14px;
  overflow: hidden;
}
.yt-wrap iframe{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
}

.passection {
  font-family: 'RSU', sans-serif;
  padding: 40px 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  padding: 60px 0;
  text-align: center; /* จัดข้อความให้กลาง */
}

.passection img {
  max-width: 80%; /* ขนาดไม่เกิน container */
  height: auto; /* รักษาสัดส่วนของภาพ */
  object-fit: contain; /* ทำให้ภาพยืดหยุ่นและไม่เสียสัดส่วน */
  margin-top: 20px; /* เพิ่มระยะห่างจากข้อความ */
}


  .logo-strip{
    position: relative;
    width: 100%;
    padding: 26px 56px;                 /* เว้นที่ให้ลูกศร */
    /* background: linear-gradient(135deg,#0b1b3f,#0a2a63); */
    /* border-radius: 14px; */
    overflow: hidden;
    font-family: 'RSU', sans-serif;
    background: linear-gradient(180deg, #1f56b7 0%, #153f90 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    color: #fff;
  }

  .logo-viewport{ overflow: hidden; width: 100%; }

  .logo-track{
    display: flex;
    gap: 28px;
    align-items: center;
    will-change: transform;
    transform: translate3d(0,0,0);
  }

  .logo-card{
    flex: 0 0 auto;
    width: 210px;
    height: 210px;
    background: #fff;
    border-radius: 0;
    display: grid;
    place-items: center;
    text-decoration: none;
    box-shadow: 0 6px 18px rgba(0,0,0,.18);
  }
  .logo-card img{
    width: 78%;
    height: 78%;
    object-fit: contain;
    display: block;
  }

  /* ปุ่มลูกศร */
  .logo-nav{
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px; height: 40px;
    border: 0; border-radius: 999px;
    background: rgba(255,255,255,.18);
    color: #fff; font-size: 22px;
    cursor: pointer;
    display: grid; place-items: center;
    backdrop-filter: blur(6px);
    z-index: 2;
  }
  .logo-nav:hover{ background: rgba(255,255,255,.28); }
  .logo-nav.prev{ left: 12px; }
  .logo-nav.next{ right: 12px; }

  .logo-strip.infinite:hover .logo-track{ cursor: grab; }

  @media (max-width: 640px){
    .logo-strip{ padding: 18px 46px; }
    .logo-track{ gap: 16px; }
    .logo-card{ width: 170px; height: 170px; }
  }