/* ========== TOP BANNER ==========
.banner-top {
  position: relative;
  padding: 14px 16px;
  background: linear-gradient(90deg, rgba(237,22,81,0.10), rgba(0,0,0,0.02));
  border-bottom: 1px solid rgba(0,0,0,0.06);
}

.banner-top__container {
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.banner-top__left {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.banner-top__pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(237, 22, 81, 0.10);
  border: 1px solid rgba(237, 22, 81, 0.22);
  color: #ed1651;
  font-weight: 900;
  font-size: 14px;
}

.banner-top__text {
  color: #2b2b2b;
  font-size: 15px;
  line-height: 1.6;
}

.banner-top__right {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* ========== TOP IMAGE BANNER ========== */

/* .top-banner-img {
  position: relative;
  width: 100%;
  height: 80vh;
  min-height: 520px;
  max-height: 760px;
  overflow: hidden;
}

/* รูปพื้นหลัง */
.top-banner-img__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover; /* ✅ เหมือน background cover */
  object-position: center;
  transform: scale(1.03);
}

/* overlay ทำให้ตัวหนังสืออ่านง่าย */
.top-banner-img__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    #ed1651 30%,
    rgba(255, 255, 255, 0.35) 60%,
    rgba(255, 0, 0, 0.15) 100%
  );
}

/* content */
.top-banner-img__content {
  position: relative;
  z-index: 2;
  max-width: 1300px;
  height: 100%;
  margin: 0 auto;
  padding: 0 20px;

  display: flex;
  flex-direction: column;
  justify-content: center;
  color: #fff;
}

.top-banner-img__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: #fff;
  font-weight: 900;
  width: fit-content;
  margin-bottom: 14px;
  color: #ed1651;
}

.top-banner-img__title {
  margin: 0 0 12px;
  font-size: 48px;
  line-height: 1.15;
  font-weight: 900;
}

.top-banner-img__title span {
  display: block;
  color: #ffb6c9;
}

.top-banner-img__subtitle {
  margin: 0 0 18px;
  font-size: 18px;
  line-height: 1.8;
  max-width: 680px;
  opacity: 0.95;
  color: #000;
}

.top-banner-img__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.banner-btn {
  appearance: none;
  border: none;
  cursor: pointer;
  border-radius: 999px;
  padding: 12px 18px;
  font-weight: 900;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition:
    transform 0.2s ease,
    background 0.2s ease;
}

.banner-btn:hover {
  transform: translateY(-2px);
}

.banner-btn--primary {
  background: #fff;
  color: #ed1651;
}

.banner-btn--ghost {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.35);
}

@media (max-width: 900px) {
  .top-banner-img {
    height: 70vh;
    min-height: 460px;
  }
  .top-banner-img__title {
    font-size: 38px;
  }
}

@media (max-width: 480px) {
  .top-banner-img {
    height: 60vh;
    min-height: 380px;
  }
  .top-banner-img__content {
    text-align: center;
    align-items: center;
  }
  .top-banner-img__title {
    font-size: 26px;
  }
  .top-banner-img__subtitle {
    font-size: 15.5px;
  }
  .top-banner-img__actions {
    justify-content: center;
  }
}
*/

/* ========== HERO YCMA ========== */
.hero-ycma {
  position: relative;
  padding: 72px 20px;
  overflow: hidden;

}

/* Background glow */
.hero-ycma::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      900px 320px at 25% 15%,
      rgba(237, 22, 81, 0.14),
      transparent 60%
    ),
    radial-gradient(
      900px 320px at 80% 30%,
      rgba(0, 0, 0, 0.06),
      transparent 60%
    );
  pointer-events: none;
  
}

.hero-ycma__container {
  max-width: 1300px;
  margin: 0 auto;
  position: relative;
}

.hero-ycma__grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 22px;
  /* align-items: center; */
  justify-content: space-evenly;
  padding: 20px;
}

/* Left copy */
.hero-ycma__copy {
  text-align: left;

}

.hero-ycma__badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(237, 22, 81, 0.08);
  border: 1px solid rgba(237, 22, 81, 0.22);
  color: #ed1651;
  font-weight: 900;
  margin-bottom: 14px;
}

.hero-ycma__title {
  margin: 0 0 12px;
  font-size: 44px;
  line-height: 1.1;
  letter-spacing: 0.2px;
  color: #111;
}

.hero-ycma__titleAccent {
  display: block;
  color: #ed1651;
  font-weight: 500;
  font-size: x-large;
  margin-top: 5px;
}

.hero-ycma__subtitle {
  margin: 0 0 16px;
  font-size: 18px;
  line-height: 1.8;
  color: #2b2b2b;
  max-width: 58ch;
}

/* Meta pills */
.hero-ycma__meta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.hero-pill__icon {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(237, 22, 81, 0.1);
  border: 1px solid rgba(237, 22, 81, 0.18);
}

/* Actions */
.hero-ycma__actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

/* Note */
.hero-ycma__note {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(237, 22, 81, 0.06);
  border: 1px solid rgba(237, 22, 81, 0.16);
  color: #2b2b2b;
}

.hero-ycma__noteIcon {
  width: 32px;
  height: 32px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(237, 22, 81, 0.1);
  border: 1px solid rgba(237, 22, 81, 0.18);
}

/* Right visual */
.hero-ycma__visual {
  position: relative;
  /* margin-right: 50px; */
  /* padding-left: 20px; */
  justify-content: center;
}

.hero-ycma__imageFrame {
  justify-content: center;
  margin: auto;
  border-radius: 22px;
  overflow: hidden;
  /* background: #fff; */
  /* border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 14px 46px rgba(0, 0, 0, 0.12); */
}

.hero-ycma__image {
  width: 100%;
  height: 520px;
  object-fit: cover;
  display: block;
}

.hero-ycma__image2 {
  width: 90%;
  /* height: auto; */
  height: 520px;
  object-fit: cover;
  display: block;

  /* ไล่เฉดบนตัวรูป */
  /* -webkit-mask-image: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 1),
    rgba(0, 0, 0, 0.7),
    rgba(0, 0, 0, 0.4),
    rgba(0, 0, 0, 0)
  );

  mask-image: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 1),
    rgba(0, 0, 0, 0.7),
    rgba(0, 0, 0, 0.4),
    rgba(0, 0, 0, 0)
  ); */
}

/* Floating card */
.hero-ycma__floatCard {
  position: absolute;
  right: 14px;
  bottom: 14px;
  width: min(280px, 88%);
  padding: 14px 14px;
  border-radius: 18px;
  color: #fff;
  background: rgba(0, 0, 0, 0.48);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.hero-ycma__floatTitle {
  font-weight: 900;
  margin-bottom: 10px;
}

.hero-ycma__floatRow {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 8px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.hero-ycma__floatRow:first-of-type {
  border-top: none;
}

/* ========== BUTTONS (ถ้ายังไม่มีในระบบ) ========== */
.btn {
  appearance: none;
  border: none;
  cursor: pointer;
  border-radius: 999px;
  padding: 10px 14px;
  font-weight: 900;
  transition:
    transform 0.2s ease,
    opacity 0.2s ease,
    background 0.2s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn:hover {
  transform: translateY(-2px);
}
.btn:active {
  transform: translateY(0px);
}

.btn--primary {
  background: #ed1651;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn--ghost {
  background: rgba(237, 22, 81, 0.08);
  color: #ed1651;
  border: 1px solid rgba(237, 22, 81, 0.22);
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1000px) {
  .hero-ycma__grid {
    grid-template-columns: 1fr;
  }

  .hero-ycma__title {
    font-size: 35px;
  }

  .hero-ycma__image {
    height: 420px;
  }

  .hero-ycma__copy {
    text-align: center;
  }

  .hero-ycma__subtitle {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-ycma__meta,
  .hero-ycma__actions {
    justify-content: center;
  }

  .hero-ycma__note {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .hero-ycma {
    padding: 5px 14px;
  }

  .hero-ycma__image2 {
    width: 90%;
    /* height: auto; */
    height: 520px;
    object-fit: cover;
    display: block;
    justify-content: center;
    margin: auto;
  }
  /* .hero-ycma__title {
    font-size: 26px;
  } */

  .hero-ycma__subtitle {
    font-size: 15.5px;
  }

  .hero-ycma__image {
    height: 260px;
    margin: auto;
    justify-content: center;
  }

  .hero-ycma__floatCard {
    position: static;
    width: 100%;
    margin-top: 12px;
    border-radius: 16px;
  }
}

/* ========== section 1 ========== */
.scholarship-section {
  text-align: center;
  padding: 56px 20px;
}

.scholarship-content {
  font-style: italic;
  margin-top: 40px;
  max-width: 980px;
  margin-left: auto;
  margin-right: auto;
}

.scholarship-title {
  font-size: 50px;
  line-height: 1.12;
  margin: 0 0 10px;
  letter-spacing: 0.2px;
}

.scholarship-subtitle {
  color: #ed1651;
  font-size: 40px;
  line-height: 1.2;
  font-weight: 600;
  margin: 0 0 14px;
}

.scholarship-description {
  font-size: 20px;
  line-height: 1.7;
  margin: 0 auto;
}

.scholarship-description .highlight {
  font-weight: 700;
}

.scholarship-round {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 22px;
  padding: 10px 18px;
  border: 2px solid #ed1651;
  border-radius: 999px;
  color: #ed1651;
  font-weight: 700;
  background: rgba(237, 22, 81, 0.06);
}

/* ===============================
   PREMIUM DESIGN SYSTEM
================================ */

body {
  /* font-family: "Prompt", sans-serif; */
  background: #fff;
  color: #020617;
}

.scholarship-premium {
  padding: 10px 10px;
  /* padding: 120px 20px; */
  background: #ffffff;
}

/* ================= CONTAINER ================= */

.sp-container {
  max-width: 1500px;
  margin: auto;
}

/* ================= HEADER ================= */

.sp-header {
  text-align: center;
  margin-bottom: 20px;
}

.sp-badge {
  background: #000;
  color: #fff;

  padding: 10px 28px;
  border-radius: 50px;

  font-size: 0.9rem;
  font-weight: 600;

  letter-spacing: 1px;
}

.sp-header h2 {
  font-size: 40px;
  font-weight: 500;

  margin: 28px 0 18px;

  letter-spacing: 1px;
}

.sp-header p {
  font-size: 1.2rem;
  color: #334155;

  max-width: 600px;
  margin: auto;

  line-height: 1.8;
}

/* ================= GRID ================= */

.sp-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 10px;
  align-items: center;
}

/* ================= IMAGE SYSTEM ================= */

.sp-images {
  position: relative;
  min-height: 520px;
  transform: translateY(-6px);
}

/* Hover Effect */
.sp-images:hover {
  /* color: #ed1651;
  font-weight: 600; */
  transform: translateX(6px);
}

/* Main */
.img-main {
  width: 80%;
}

.img-main img {
  width: 100%;
  border-radius: 36px;

  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.2);
}

/* Floating */
.img-float {
  position: absolute;

  right: 0;
  bottom: 0;

  width: 60%;
}

.img-float img {
  width: 100%;
  border-radius: 28px;

  border: 6px solid #fff;

  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
}

/* Tag */
.img-tag {
  position: absolute;

  top: 40%;
  left: -30px;

  background: #ed1651;
  color: #fff;

  padding: 16px 22px;

  border-radius: 14px;

  font-size: 0.85rem;
  font-weight: 700;

  letter-spacing: 2px;

  text-align: center;

  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

/* ================= CONTENT ================= */

.sp-card {
  background: #fff;

  border-radius: 38px;

  padding: 25px 30px;

  border: 1px solid #e5e7eb;

  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.08);

  transition: 0.3s;
  width: 800px;
}

.sp-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 35px 90px rgba(0, 0, 0, 0.12);
}

/* ================= TEXT ================= */

.sp-card h3 {
  font-size: 29px;
  font-weight: 500;

  margin-bottom: 20px;
  margin-top: 35px;
}

.sp-card h3:first-child {
  margin-top: 0;
}

.sp-card p {
  font-size: 1.05rem;
  line-height: 1.9;

  color: #1f2937;

  margin-bottom: 18px;
}

/* Highlight */
.sp-highlight {
  /* background: #f9fafb; */
  /* text-align: initial; */
  /* border-left: 5px solid #ed1651; */
  padding: 18px 22px;
  border-radius: 14px;
  font-weight: 600;
  margin: 28px 0;
}

.big-quote {
  /* font-family: "Prompt", sans-serif; */
  font-family: "Kanit", "DM Sans", sans-serif;

  /* font-style: italic; */
  position: relative;

  font-size: 1.4rem;
  font-weight: 500;

  text-align: center;

  /* line-height: 1.9; */

  max-width: 700px;
  margin: 80px auto;

  padding: 40px 60px;

  color: #ed1651;
}

/* " เปิด */
.big-quote::before {
  content: "“";

  position: absolute;

  top: -25px;
  left: 0;

  font-size: 5rem; /* ความใหญ่ */
  font-weight: 900;

  color: #ed1651;

  /* opacity: 0.15; */
}

/* " ปิด */
.big-quote::after {
  content: "”";

  position: absolute;

  bottom: -25px;
  right: 0;

  font-size: 5rem; /* ความใหญ่ */
  font-weight: 900;
  color: #ed1651;
}

/* ================= LIST ================= */

.sp-list {
  list-style: none;
  padding: 0;

  margin-top: 25px;
}

.sp-list li {
  padding: 12px 0;

  font-size: 1.05rem;
  font-weight: 500;

  border-bottom: 1px solid #f1f5f9;
}

.sp-list li:last-child {
  border-bottom: none;
}

/* ================= RESPONSIVE ================= */

@media (max-width: 992px) {
  .sp-grid {
    grid-template-columns: 1fr;
    gap: 70px;
  }

  .sp-header h2 {
    font-size: 2.4rem;
  }

  .sp-images {
    min-height: 420px;
  }

  .img-main img {
    padding-left: 20px;
    justify-content: center;
  }
  .sp-card {
    border-radius: 28px;
    margin-top: -50px;
    width: 400px;
    /* margin-bottom: 50px; */
  }
}

@media (max-width: 576px) {
  .sp-header h2 {
    font-size: 35px;
  }

  .sp-header p {
    font-size: 15.5px;
  }

  .sp-card {
    border-radius: 28px;
    margin-top: -50px;
    width: 100%;
    /* margin-bottom: 50px; */
  }

  /* กล่องครอบรูป */
  .sp-images {
    display: flex; /* ใช้ flex */
    justify-content: center; /* กลางแนวนอน */
    align-items: center; /* กลางแนวตั้ง */
    margin: 0 auto;
    width: 100%;
  }

  /* รูปหลัก */
  .img-main {
    margin-top: -50px;
    margin-bottom: -50px;
    display: flex;
    justify-content: center;
  }

  .img-main img {
    padding-left: 0; /* เอา padding ซ้ายออก */
    max-width: 100%; /* กันล้นจอ */
    height: auto;
    display: block;
    margin: 0 auto; /* บังคับให้อยู่กลาง */
  }

  .img-tag {
    display: none;
  }
}

/* ===============================
   ADVANCED TREE VIEW
================================ */

.tree,
.tree ul {
  list-style: none;
  margin: 0;
  padding-left: 5px;
  position: relative;
}

/* เส้นแนวตั้ง */
/* .tree ul::before {
  content: "";

  position: absolute;
  top: 0;
  left: 10px;

  width: 2px;
  height: 100%;

  background: linear-gradient(to bottom, #cbd5f5, #94a3b8);

  border-radius: 2px;
} */

/* แต่ละ item */
.tree li {
  position: relative;

  padding: 10px 0 10px 28px;

  font-size: 1.05rem;
  color: #000;

  cursor: pointer;

  transition: all 0.3s ease;
}

/* เส้นแนวนอน */
/* .tree li::before {
  content: "";

  position: absolute;
  top: 22px;
  left: 10px;

  width: 18px;
  height: 2px;

  background: #cbd5f5;

  transition: all 0.3s ease;
}


.tree li::after {
  content: "";

  position: absolute;

  top: 17px;
  left: 5px;

  width: 12px;
  height: 12px;

  background: linear-gradient(135deg, #ed1651, #ed1651);

  border-radius: 50%;

  box-shadow: 0 0 0 4px rgba(237, 22, 81, 0.05);

  transition: all 0.3s ease;
} */

/* Hover Effect */
/* .tree li:hover {
  color: #ed1651;
  font-weight: 600;
  transform: translateX(6px);
} */

/* เส้น Hover */
.tree li:hover::before {
  background: #ed1651;
}

/* Node Hover */
/* .tree li:hover::after {
  transform: scale(1.3);
  box-shadow: 0 0 12px rgba(237,22,81, 0.25);
} */

/* ลบเส้น item สุดท้าย */
.tree li:last-child::before {
  background: transparent;
}

/* Root */
.tree > li::before,
.tree > li::after {
  display: none;
}

.tree > li {
  padding-left: 6px;
  font-weight: 500;
}

/* Fade In Animation */
.tree li {
  animation: fadeTree 0.6s ease both;
}

@keyframes fadeTree {
  from {
    opacity: 0;
    transform: translateX(-10px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}
/* ===================================================
   MOBILE TREE VIEW (RESPONSIVE)
=================================================== */

@media (max-width: 768px) {
  /* ===============================
     TREE CONTAINER
  =============================== */

  .tree,
  .tree ul {
    padding-left: 1px; /* ลดระยะซ้าย */
  }

  /* ===============================
     VERTICAL LINE
  =============================== */

  /* .tree ul::before {
    left: 6px;
    width: 2px;
    opacity: 0.6;
  } */

  /* ===============================
     TREE ITEM
  =============================== */

  .tree li {
    padding: 12px 0 12px 22px; /* เพิ่มพื้นที่กด */
    font-size: 14px; /* เหมาะมือถือ */
    line-height: 1.6;

    border-radius: 8px;
  }

  /* ===============================
     HORIZONTAL LINE
  =============================== */
  /* 
  .tree li::before {
    top: 24px;
    left: 6px;

    width: 12px;
    height: 2px;
  } */

  /* ===============================
     NODE DOT
  =============================== */

  /* .tree li::after {
    top: 19px;
    left: 1px;

    width: 10px;
    height: 10px;

    box-shadow: 0 0 0 3px rgba(237, 22, 81, 0.08);
  } */

  /* ===============================
     ROOT ITEM
  =============================== */

  .tree > li {
    padding-left: 4px;
    font-size: 15px;
  }

  /* ===============================
     TOUCH EFFECT
  =============================== */

  .tree li:active {
    background: rgba(237, 22, 81, 0.08);
  }

  /* ===============================
     DISABLE HOVER (MOBILE)
  =============================== */

  .tree li:hover {
    transform: none;
    font-weight: normal;
    color: inherit;
  }
}

/* ===============================
   SECTION 3 : COMPETITION STYLE
================================ */

.section-3 {
  /* background: #ffffff; */
  /* padding: 30px 10px; */
  padding-bottom: 100px;
  margin-top: 50px;
}

/* .section-3 h2 {
  font-size: 40px;
  font-weight: 500;

  margin: 28px 0 18px;

  letter-spacing: 1px;
} */
.section-3-title {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;

  flex-wrap: wrap;
}

/* h2 */

.section-3-title h2 {
  font-size: 40px;
  font-weight: 500;

  margin: 0;

  letter-spacing: 1px;
  white-space: nowrap;
}

.section-3__container {
  max-width: 1400px;
  margin: auto;
}

/* ================= Header ================= */

.section-3__header {
  text-align: center;
  margin-bottom: 30px;
}

.section-3__header h1 {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 800;

  color: #ed1651;

  letter-spacing: -0.02em;

  margin-bottom: 20px;
}
/* 
.section-3__lead {
  max-width: 850px;
  margin: auto;

  font-size: 1.15rem;
  line-height: 1.9;

  color: #334155;
} */

/* Desktop / Default */
.section-3__lead {
  /* font-size: 16px; */
  line-height: 1.8;
  max-width: 850px;
  margin: auto;

  font-size: 1.15rem;
  line-height: 1.9;

  color: #334155;
}

.mobile-break {
  display: inline;
}

/* Highlight */
.section-3__lead .highlight {
  color: #000;
  font-weight: 700;
  position: relative;
}

.section-3__lead .highlight::after {
  content: "";

  position: absolute;
  left: 0;
  bottom: 2px;

  width: 100%;
  height: 6px;

  background: rgba(0, 0, 0, 0.08);

  z-index: -1;
}

/* ================= Grid ================= */

.section-3__grid {
  display: grid;

  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));

  gap: 35px;
}

/* ================= Card ================= */

.section-3__card {
  background: #fff;

  padding: 40px 35px;

  border-radius: 24px;

  border: 1px solid #e5e7eb;

  text-align: center;

  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);

  transition: all 0.4s ease;

  position: relative;
  overflow: hidden;
}

/* Glow Border */
.section-3__card::before {
  content: "";

  position: absolute;
  inset: 0;

  border-radius: inherit;

  background: linear-gradient(
    135deg,
    transparent,
    rgba(0, 0, 0, 0.08),
    transparent
  );

  opacity: 0;

  transition: 0.4s;
}

/* Hover Card */
.section-3__card:hover {
  transform: translateY(-12px) scale(1.02);

  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.12);
}

.section-3__card:hover::before {
  opacity: 1;
}

/* ================= Icon ================= */

.section-3__icon {
  font-size: 3rem;

  width: 70px;
  height: 70px;

  margin: 0 auto 20px;

  display: flex;
  align-items: center;
  justify-content: center;

  background: rgba(0, 0, 0, 0.04);

  border-radius: 50%;

  transition: all 0.4s ease;
}

/* Icon Hover */
.section-3__card:hover .section-3__icon {
  background: #ed1651;
  color: #fff;

  transform: rotate(10deg) scale(1.1);
}

/* ================= Text ================= */

.section-3__cardTitle {
  font-size: 1.4rem;
  font-weight: 700;

  margin-bottom: 12px;

  color: #020617;
}

.section-3__cardText {
  font-size: 1rem;

  line-height: 1.8;

  color: #475569;
}

/* ================= Accent Card ================= */

/* .section-3__card--accent {
  border: 1px solid #000;
} */

.section-3__card--accent::after {
  content: "⭐ Highlight";

  position: absolute;
  top: 15px;
  right: -35px;

  background: #ed1651;
  color: #fff;

  padding: 6px 45px;

  font-size: 0.7rem;
  font-weight: 600;

  transform: rotate(45deg);
}

/* ================= Responsive ================= */

@media (max-width: 768px) {
  .section-3__icon {
    font-size: 2rem;

    width: 50px;
    height: 50px;

    margin: 0 auto 20px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: rgba(0, 0, 0, 0.04);

    border-radius: 50%;

    transition: all 0.4s ease;
  }

  .section-3 {
    padding: 70px 15px;
  }
  .section-3__card {
    padding: 30px 25px;
    width: 100%;
    height: 200px;
  }

  .section-3__cardTitle {
    font-size: 18.5px;
  }
  .section-3__cardText {
    font-size: 14.5px;
  }

  .section-3-title {
    flex-direction: column;
    gap: 0; /* ตัด gap ทิ้ง */
    margin-bottom: 10px;
  }

  .section-3-title h2 {
    margin: 0 !important; /* บังคับลบ margin เดิม */
    padding: 0;

    line-height: 1.15; /* ชิดมากขึ้น */
    font-size: 28px;
  }
  .section-3__grid {
    gap: 10px;
  }
}

@media (max-width: 576px) {
  .section-3 {
    padding: 1px;
    padding-bottom: 50px;
  }

  .section-3__card {
    padding: 30px 25px;
  }

  .section-3__container {
    max-width: 370px;
    margin: auto;
  }

  .section-3 h2 {
    font-size: 35px;
    font-weight: 500;

    margin: 28px 0 18px;

    letter-spacing: 1px;
  }
  /* .section-3__lead {
    font-size: 15.5px;
  } */

  .section-3__lead {
    text-align: center;
    font-size: 15px;
  }

  /* บังคับขึ้นบรรทัดใหม่ */
  .mobile-break {
    display: block;
    margin-top: 6px;
  }
  .section-3__grid {
    gap: 10px;
  }

  /* .section-3__grid {
    max-width: 500px;
    margin: auto;
  } */
}

/* ===================================================
   SECTION 4 - PREMIUM STYLE (FULL WIDTH VERSION)
=================================================== */

:root {
  --premium-white: #ffffff;
  --premium-black: #000000;

  --premium-gray-100: #f5f5f5;
  --premium-gray-200: #e5e5e5;
  --premium-gray-400: #a3a3a3;
  --premium-gray-600: #525252;
}

/* ===================================================
   BASE
=================================================== */

* {
  box-sizing: border-box;
}

.section-4 {
  position: relative;
  background: var(--premium-white);
  overflow: hidden;

  /* padding: 0px 0; */
}

.section-4__container {
  max-width: 1600px;
  margin: 0 auto;

  padding: 0 24px;

  position: relative;
  z-index: 2;
}

/* ===================================================
   BACKGROUND
=================================================== */

.premium-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.premium-bg__circle {
  position: absolute;
  border-radius: 50%;
  opacity: 0.03;
}

.premium-bg__circle--1 {
  width: 700px;
  height: 700px;
  top: -300px;
  right: -200px;
}

.premium-bg__circle--2 {
  width: 500px;
  height: 500px;
  bottom: -250px;
  left: -150px;
}

.premium-bg__grid {
  position: absolute;
  inset: 0;

  background-image:
    linear-gradient(#eee 1px, transparent 1px),
    linear-gradient(90deg, #eee 1px, transparent 1px);

  background-size: 60px 60px;
  opacity: 0.2;
}

/* ===================================================
   HEADER
=================================================== */

.section-4__header {
  text-align: center;
  margin-bottom: 30px;
}

.section-4__header h2 {
  font-size: 40px;
  font-weight: 500;

  margin: 28px 0 18px;

  letter-spacing: 1px;
}

.title-4__main {
  font-size: 44px;
  font-weight: 500;
  letter-spacing: -1px;
  color: var(--premium-black);
}

/* ===================================================
   MAIN
=================================================== */

.section-4__main {
  display: flex;
  justify-content: center;
}

/* ===================================================
   CARD
=================================================== */

.premium-card {
  width: 1300px;
  max-width: 1300px;

  /* background: var(--premium-white); */

  /* border: none; ลบเส้นขอบ */

  /* border-radius: 22px; */

  /* padding: 50px 50px; */

  /* box-shadow: 0 25px 60px rgba(0,0,0,0.08); */
}

/* ===================================================
   GRID
=================================================== */

.premium-list-grid {
  display: grid;

  grid-template-columns: 1fr 1fr;

  gap: 28px;

  margin-bottom: 60px;
}

.premium-list-column {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

/* ===================================================
   LIST ITEM
=================================================== */

/* 
.premium-list__item {
  position: relative;
  overflow: hidden;
} */

.premium-list__item {
  /* text-align: right; */
  height: 100px;
  /* width: 20px; */
  position: relative;

  display: flex;
  align-items: center;

  gap: 16px;
  padding: 18px 20px 18px 16px;

  min-height: 100px;

  background: var(--premium-white);
  /* border-color: #334155; */

  /* border: #000; */

  border: none;

  border-radius: 14px;

  transition: all 0.3s ease;

  overflow: hidden;

  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.171);
  margin-bottom: 20px;
}

/* Left Line */
.premium-list__item::before {
  content: "";

  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;

  width: 3px;

  background: var(--premium-black);

  transform: scaleY(0);

  transition: 0.3s ease;
}

/* Hover */
.premium-list__item:hover {
  transform: translateX(6px);

  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.08);
}

.premium-list__item:hover::before {
  transform: scaleY(1);
}

/* ===================================================
   ICON
=================================================== */

.premium-list__icon {
  position: absolute;

  /* left: -20px; */

  top: 50%;
  transform: translateY(-50%);

  font-size: 55px;

  color: #ed1651;

  opacity: 0.9;

  pointer-events: none;

  transition: 0.3s ease;
}

/* .premium-list__item:hover .premium-list__icon {
  opacity: 1;
  transform: scale(1.1);
} */

/* ===================================================
   CONTENT
=================================================== */

.premium-list__content {
  padding-left: 100px;
  flex: 1;

  display: flex;
  flex-direction: column;

  gap: 6px;
}

.premium-list__title {
  font-size: 18px;
  font-weight: 600;

  margin: 0;

  color: var(--premium-black);
}

.premium-list__desc {
  font-size: 15px;

  color: #555;

  line-height: 1.6;

  margin: 0;
}

/* ===================================================
   HIGHLIGHT
=================================================== */

.premium-highlight {
  background: #ed1651;
  /* background: var(--premium-black); */

  color: #fff;

  padding: 2px 6px;

  border-radius: 4px;

  font-size: 13px;
}

/* ===================================================
   DOCUMENT
=================================================== */

.premium-documents__header {
  display: flex;
  align-items: center;

  gap: 12px;

  padding-bottom: 18px;
  margin-bottom: 24px;

  border: none;
}

.premium-documents__icon {
  width: 38px;
  height: 38px;

  display: flex;
  align-items: center;
  justify-content: center;

  background: var(--premium-black);

  color: #fff;

  border-radius: 10px;
}

.premium-documents__title h3 {
  margin: 0;

  font-size: 19px;
}

.premium-doc-item {
  display: flex;
  align-items: center;

  gap: 16px;

  padding: 18px;

  background: var(--premium-gray-100);

  border-radius: 12px;

  border: none;
}

.premium-doc-item__icon {
  font-size: 26px;
}

.premium-doc-item__content h5 {
  margin: 0 0 6px;

  font-size: 15px;
}

.premium-doc-item__note {
  font-size: 13px;

  color: var(--premium-gray-600);
}

/* ===================================================
   RESPONSIVE FIX (PRO VERSION)
=================================================== */

/* ====== Large Desktop ( >1400px ) ====== */
@media (min-width: 2000px) {
  .premium-card {
    width: 100%;
    max-width: 2000px;
  }

  .premium-list__content {
    padding-left: 110px;
  }
}

/* ====== Desktop / Laptop ====== */
@media (max-width: 1200px) {
  .premium-card {
    width: 100%;
    max-width: 100%;
  }

  .premium-list__content {
    padding-left: 90px;
  }
}

/* ====== Tablet ( iPad ) ====== */
@media (max-width: 980px) {
  .section-4__container {
    max-width: 500px;
    margin: 0 auto;

    position: relative;
    z-index: 2;
  }

  .premium-list-grid {
    grid-template-columns: 1fr;
  }

  .premium-list__item {
    height: auto;
    min-height: 110px;
  }

  .premium-list__icon {
    font-size: 50px;
    left: -15px;
  }

  .premium-list__content {
    padding-left: 60px;
  }
}

/* ===================================================
   MOBILE UI - PREMIUM CARD (FULL VERSION)
   LEFT ALIGN + APP STYLE
=================================================== */

@media (max-width: 768px) {
  /* ===============================
     GLOBAL
  =============================== */

  body {
    background: #f8fafc;
  }

  /* ===============================
     HIDE ICON
  =============================== */

  .premium-list__icon,
  .premium-documents__icon,
  .premium-doc-item__icon {
    display: none !important;
  }

  /* ===============================
     CONTAINER
  =============================== */

  .section-4 {
    padding: 16px 10px;
    background: #f8fafc;
  }

  .section-4__main {
    max-width: 100%;
    /* padding: 0 4px; */
  }

  /* ===============================
     HEADER
  =============================== */

  .section-4__container {
    max-width: 470px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
  }

  .section-4__header {
    margin-bottom: 18px;
    text-align: center;
  }

  .section-4__header h2 {
    font-size: 35px;
    margin-bottom: 6px;
    line-height: 1.3;
  }

  .title-4__main {
    font-size: 18px;
    opacity: 0.9;
  }

  /* ===============================
     MAIN CARD
  =============================== */

  .premium-card {
    width: 100%;
    max-width: 100%;

    padding: 20px 20px 0 0;
    padding-left: 16px;

    background: #ffffff;

    border-radius: 16px;

    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
  }

  /* ===============================
     LIST GRID
  =============================== */

  .premium-list-grid {
    display: grid;
    /* grid-template-columns: 1fr; */

    gap: 0;

    /* margin-bottom: 10px; */
  }

  /* ===============================
     LIST ITEM (LEFT ALIGN)
  =============================== */

  .premium-list__item {
    height: auto;
    min-height: 60px;
    display: flex;
    flex-direction: row; /* ซ้าย → ขวา */
    align-items: flex-start; /* ชิดบน */

    /* gap: 5px; */

    padding: 1px 0;

    background: transparent;

    border-bottom: 1px solid #eee;

    box-shadow: none;

    transform: none !important;

    position: relative;
  }

  .premium-list__item:last-child {
    border-bottom: none;
  }

  .premium-list__item::before {
    display: none;
  }

  /* ===============================
     LIST CONTENT
  =============================== */

  .premium-list__content {
    flex: 1;

    display: flex;
    flex-direction: column;

    gap: 2px;

    padding-left: 0;

    text-align: left;
  }

  /* ===============================
     TEXT
  =============================== */

  .premium-list__title {
    font-size: 15px;
    font-weight: 600;

    color: #111;

    line-height: 1.4;

    text-align: left;
  }

  .premium-list__desc {
    font-size: 13px;

    color: #555;

    line-height: 1.6;

    text-align: left;
  }

  /* ===============================
     HIGHLIGHT BADGE
  =============================== */

  .premium-highlight {
    display: inline-block;

    font-size: 10px;

    padding: 2px 6px;

    border-radius: 6px;

    background: #fee2e2;
    color: #b91c1c;

    font-weight: 500;
  }

  /* ===============================
     DOCUMENT SECTION
  =============================== */

  .premium-documents__header {
    padding-bottom: 10px;

    margin-bottom: 14px;

    border-bottom: 1px solid #eee;
  }

  .premium-documents__title h3 {
    font-size: 15px;
  }

  /* ===============================
     DOCUMENT ITEM
  =============================== */

  .premium-doc-item {
    display: flex;
    flex-direction: column;

    gap: 2px;

    padding: 10px 0;

    background: transparent;

    border-bottom: 1px solid #eee;
  }

  .premium-doc-item:last-child {
    border-bottom: none;
  }

  /* ===============================
     DOCUMENT TEXT
  =============================== */

  .premium-doc-item__content h5 {
    font-size: 13px;

    margin-bottom: 2px;

    text-align: left;
  }

  .premium-doc-item__note {
    font-size: 11.5px;

    color: #666;

    text-align: left;
  }

  /* ===============================
     OPTIONAL: LEFT INDICATOR LINE
     (APP STYLE)
  =============================== */

  .premium-list__item::after {
    content: "";

    position: absolute;

    left: -6px;
    top: 16px;

    width: 3px;
    height: 24px;

    background: #ed1651;

    border-radius: 2px;

    opacity: 0.7;
  }
}

/* ====== Small Mobile ====== */
/* @media (max-width: 480px) {
  .premium-card {
    padding: 5px;
    width: 350px;
  }

  .premium-list__item {
    padding: 12px;
    min-height: auto;
  }

  .premium-list__icon {
    font-size: 35px;
    left: -8px;
    opacity: 0.35;
  }

  .premium-list__content {
    padding-left: 45px;
  }

  .premium-list__title {
    font-size: 15px;
  }

  .premium-list__desc {
    font-size: 13px;
  }
} */

/* ================================== */

/* section 5 โครงสร้างข้อสอบ (Blueprint)*/

/* ================================= */

/* ================= GOOGLE FONT ================= */
/* @import url("https://fonts.googleapis.com/css2?family=Prompt:wght@300;400;500;600;700&display=swap"); */

/* body {
    font-family: "Prompt", sans-serif;
    background: #f4f7fb;
    color: #1f2937;
} */

/* ================= SECTION ================= */

.exam-v3 {
  padding: 20px 10px;
}

.exam-v3__container {
  max-width: 1300px;
  margin: auto;
}

/* ================= HEADER ================= */

.exam-v3__head {
  text-align: center;
  margin-bottom: 60px;
}

.exam-v3__title h2 {
  font-size: 40px;
  font-weight: 500;
  color: #0f172a;
  margin-bottom: 16px;
}

.exam-v3__lead {
  max-width: 720px;
  margin: auto;
  font-size: 18px;
  line-height: 1.7;
  color: #475569;
}

/* ================= CHIPS ================= */

.exam-v3__chips {
  margin-top: 32px;
  display: flex;
  justify-content: center;
  gap: 16px;
}

.chip {
  background: linear-gradient(135deg, #ed1651, #d45577);
  /* background: linear-gradient(135deg,#2563eb,#1e40af); */
  color: #fff;
  padding: 10px 22px;
  border-radius: 999px;
  font-size: 15px;
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.25);
}

.chip b {
  font-size: 18px;
}

/* ================= GRID ================= */

.exam-v3__grid {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

/* ================= PANEL ================= */

.panel {
  background: #ffffff;
  border-radius: 20px;
  padding: 32px;
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.08);
  transition: all 0.3s ease;
  position: relative;
}

.panel:hover {
  transform: translateY(-4px);
  box-shadow: 0 28px 60px rgba(15, 23, 42, 0.12);
}

.panel--horizontal {
  /* display: grid; */
  grid-template-columns: 1.2fr 1fr;
  gap: 32px;
  align-items: center;
}

.panel-highlight {
  /* padding: 2px 6px; */
  border-radius: 4px;
  font-size: 16px;

  font-weight: 600; /* หนากำลังดี */
}

/* ================= PANEL TITLE ================= */

.panel__title {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 20px;
}

/* ================= ROW LIST ================= */

/* ทำให้ rows เป็นหลายคอลัมน์ */
.rows-choice {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* 2 คอลัมน์ */
  gap: 16px 20px; /* แนวตั้ง / แนวนอน */
  margin-top: 16px;
}

/* การ์ดแต่ละแถว */
.row-choice {
  background: #f8fafc;
  padding: 16px 18px;
  border-radius: 12px;
  border-left: 4px solid #ed1651;
  min-height: 100%;
}

/* ข้อความ */
.row__text {
  font-size: 15px;
  line-height: 1.6;
  color: #334155;
}

/* Responsive มือถือ */
@media (max-width: 768px) {
  .rows-choice {
    grid-template-columns: 1fr; /* มือถือ = 1 คอลัมน์ */
  }
}

/* ================= PARTS ================= */

.parts {
  display: grid;
  gap: 14px;
}

.part {
  background: #f1f5f9;
  border-radius: 14px;
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.part__k {
  font-weight: 600;
  color: #2563eb;
}

.part__v {
  font-weight: 500;
}

.part__s {
  font-size: 14px;
  color: #64748b;
}

/* ================= METRIC GRID ================= */

.metricGrid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.metric {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  padding: 18px;
  text-align: center;
  backdrop-filter: blur(6px);
}

.metric__label {
  font-size: 14px;
  opacity: 0.85;
}

.metric__value {
  font-size: 26px;
  font-weight: 600;
  margin-top: 6px;
}

/* ================= BUTTON ================= */

.btn {
  border: none;
  outline: none;
  cursor: pointer;
  font-family: inherit;
}

.btn--primary {
  /* background: linear-gradient(135deg, #2563eb, #1d4ed8); */
  /* color: #fff; */
  padding: 14px 28px;
  font-size: 16px;
  border-radius: 12px;
  /* box-shadow: 0 10px 30px rgba(237,22,81, 0.35); */
  transition: all 0.25s ease;
}

.btn--primary:hover {
  transform: translateY(-2px) scale(1.02);
  border-color: #000;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
}
/* ================= REPORT ================= */

.report__lead {
  font-size: 16px;
  color: #64748b;
  margin-top: 6px;
}

.report__list {
  display: grid;
  gap: 12px;
}

.rItem {
  background: #f8fafc;
  padding: 12px 18px;
  border-radius: 10px;
  border-left: 4px solid #0ea5e9;
  font-size: 15px;
}

/* ================= ACTION BOX ================= */

.panel__actionBox {
  display: flex;
  justify-content: center;
  align-items: center;
}

/* กล่องขวา */
.actionCard {
  background: linear-gradient(135deg, #f8fafc, #eef2ff);
  border-radius: 18px;
  padding: 24px 26px;
  text-align: center;
  width: 100%;
  max-width: 260px;

  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.12);
}

/* ไอคอน */
.actionIcon {
  font-size: 36px;
  margin-bottom: 8px;
}

/* ข้อความ */
.actionText p {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 2px;
}

.actionText span {
  font-size: 13px;
  color: #64748b;
}

/* ปุ่ม */
.actionCard .btn {
  width: 100%;
  margin-top: 14px;
}

/* ================= RESPONSIVE ================= */

@media (max-width: 900px) {
  .panel--horizontal {
    grid-template-columns: 1fr;
  }

  .exam-v3__title h2 {
    font-size: 28px;
  }

  .metricGrid {
    grid-template-columns: 1fr;
  }
}

/* ===================================================
   MOBILE UI - EXAM V3 (APP STYLE)
=================================================== */

@media (max-width: 768px) {
  /* ===============================
     SECTION
  =============================== */

  .exam-v3 {
    padding: 14px 10px;
    background: #f8fafc;
  }

  .exam-v3__container {
    padding: 0 6px;
  }

  /* ===============================
     HEADER
  =============================== */

  .exam-v3__head {
    margin-bottom: 32px;
  }

  .exam-v3__title h2 {
    font-size: 35px;
    line-height: 1.3;
  }

  .exam-v3__lead {
    font-size: 16px;
    line-height: 1.6;
    padding: 10px;
  }

  /* ===============================
     CHIPS
  =============================== */

  .exam-v3__chips {
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
  }

  .chip {
    padding: 7px 14px;
    font-size: 13px;
  }

  .chip b {
    font-size: 15px;
  }

  /* ===============================
     GRID
  =============================== */

  .exam-v3__grid {
    gap: 20px;
  }

  /* ===============================
     PANEL (CARD)
  =============================== */

  .panel {
    padding: 18px 16px;
    border-radius: 16px;

    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.08);
  }

  .panel:hover {
    transform: none;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.08);
  }

  .panel--horizontal {
    max-width: 370px;
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin: auto;
  }

  /* ===============================
     PANEL TITLE
  =============================== */

  .panel__title {
    font-size: 22px;
    margin-bottom: 14px;
  }

  /* ===============================
     ROW LIST
  =============================== */

  .rows-choice {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .row-choice {
    padding: 12px 14px;
    border-radius: 10px;
  }

  .row__text {
    font-size: 14px;
  }

  /* ===============================
     PARTS
  =============================== */

  .parts {
    gap: 10px;
  }

  .part {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;

    padding: 12px 14px;
    border-radius: 12px;
  }

  .part__k {
    font-size: 14px;
  }

  .part__v {
    font-size: 14px;
  }

  .part__s {
    font-size: 12px;
  }

  /* ===============================
     METRIC
  =============================== */

  .metricGrid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .metric {
    padding: 14px;
    border-radius: 12px;
  }

  .metric__label {
    font-size: 13px;
  }

  .metric__value {
    font-size: 22px;
  }

  /* ===============================
     BUTTON
  =============================== */

  .btn--primary {
    width: 190px;
    padding: 12px 16px;
    font-size: 15px;
    border-radius: 10px;
  }

  .btn--primary:hover {
    transform: none;
    box-shadow: none;
  }

  /* ===============================
     REPORT
  =============================== */

  .report__lead {
    font-size: 14px;
  }

  .rItem {
    font-size: 14px;
    padding: 10px 14px;
  }

  /* ===============================
     ACTION BOX
  =============================== */

  .panel__actionBox {
    justify-content: stretch;
  }

  .actionCard {
    max-width: 100%;
    padding: 18px 16px;
    border-radius: 14px;
  }

  .actionIcon {
    font-size: 30px;
  }

  .actionText p {
    font-size: 14px;
  }

  .actionText span {
    font-size: 12px;
  }
}

/* ========== modal แสดง blueprint ========== */
.modal {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 9999;
  /* height: screen; */
}

.modal.is-open {
  display: block;
}

.modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
}

.scrollview_blueprint {
  overflow-y: auto;
  flex: 1 1 auto;
  -webkit-overflow-scrolling: touch;
}

/* modal สูงสุดตามหน้าจอ + เลื่อนใน content */
.modal__panel {
  position: relative;
  width: min(920px, calc(100% - 24px));
  margin: 70px auto;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
  overflow: hidden;
  animation: modalPop 0.18s ease-out;

  /* ✅ สำคัญ: ทำให้ header/footer อยู่กับที่ */
  display: flex;
  flex-direction: column;

  /* ✅ จำกัดความสูงให้ไม่ล้นจอ */
  max-height: calc(100vh - 140px); /* 70px top + 70px bottom */
}

/* ✅ ให้เฉพาะ content เลื่อนขึ้น-ลง */
.modal__content {
  padding: 16px;

  overflow-y: auto; /* scroll แนวตั้ง */
  -webkit-overflow-scrolling: touch; /* iOS smooth */
  flex: 1 1 auto; /* กินพื้นที่ที่เหลือ */
}

/* (ทางเลือก) ถ้าอยากให้ scroll นุ่มและสวยขึ้น */
.modal__content {
  scrollbar-gutter: stable; /* กัน layout กระตุกตอนมี scrollbar */
}

/* header/footer ไม่ต้องแก้ เพิ่มความแน่น */
.modal__header,
.modal__footer {
  flex: 0 0 auto;
}

/*  ให้ tableWrap เลื่อนซ้าย-ขวาเฉพาะแนวนอน (ไม่ไปชนกับ scroll แนวตั้งของ content) */
.tableWrap {
  overflow-x: auto;
  overflow-y: hidden;
}

@keyframes modalPop {
  from {
    transform: translateY(10px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.modal__header {
  display: flex;
  gap: 10px;
  justify-content: space-between;
  align-items: flex-start;
  padding: 16px 16px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  background: radial-gradient(
    700px 240px at 0% 0%,
    rgba(237, 22, 81, 0.08),
    transparent 60%
  );
}

.modal__badge {
  display: inline-flex;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(237, 22, 81, 0.1);
  border: 1px solid rgba(237, 22, 81, 0.22);
  color: #ed1651;
  font-weight: 800;
  margin-bottom: 8px;
}

.modal__title {
  margin: 0 0 4px;
  font-size: 18px;
}

.modal__subtitle {
  margin: 0;
  color: #2b2b2b;
  opacity: 0.85;
  font-size: 14px;
  line-height: 1.5;
}

.modal__close {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  background: #fff;
  cursor: pointer;
}

.modal__content {
  padding: 16px;
}

.modal__footer {
  padding: 14px 16px;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.modal__hint {
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(237, 22, 81, 0.06);
  border: 1px solid rgba(237, 22, 81, 0.16);
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: #2b2b2b;
}

.text-sub {
  margin-top: 10px;
  padding: 10px;
}
.text-sub-2 {
  color: #000;
}
.text-sub-3 {
  color: #ed1651;
  font:
    italic bold,
    serif;
}

/* Table */
.tableWrap {
  overflow: auto;
  border-radius: 14px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  background: #fff;
}

.blueprintTable {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px; /* ทำให้มือถือเลื่อนซ้าย-ขวา */
}

.blueprintTable th,
.blueprintTable td {
  padding: 12px 12px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  text-align: left;
  vertical-align: top;
}

.blueprintTable thead th {
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 1;
  border-bottom: 1px solid rgba(0, 0, 0, 0.12);
}

.blueprintTable tfoot td {
  background: rgba(0, 0, 0, 0.02);
  font-weight: 800;
}

/* ================= AWARD MODAL ================= */

.award-block {
  background: #ffffff;
  border-radius: 16px;
  padding: 24px 26px;
  margin-bottom: 28px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}

.award-head {
  text-align: center;
}

.award-title {
  font-size: 22px;
  font-weight: 600;
  color: #0f172a;
  margin-bottom: 6px;
}

.award-subtitle {
  font-size: 15px;
  color: #475569;
  margin-bottom: 16px;
  line-height: 1.6;
}

.award-subhead {
  margin: 20px 0 10px;
  font-size: 16px;
  font-weight: 600;
}

.award-list {
  padding-left: 20px;
  margin-bottom: 14px;
}

.award-list li {
  margin-bottom: 6px;
  font-size: 15px;
  line-height: 1.6;
}

.award-hightligh {
  font-weight: 1000; /* Bold */
}

.award-table {
  width: 100%;
  border-collapse: collapse;
  margin: 12px 0 14px;
  font-size: 14px;
}

.award-table th,
.award-table td {
  padding: 10px 12px;
  border: 1px solid #e2e8f0;
  text-align: center;
}

.award-table th {
  background: #f1f5f9;
  font-weight: 600;
}

.award-note {
  font-size: 13px;
  color: #64748b;
  margin-top: 8px;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 900px) {
  .section-5__grid {
    grid-template-columns: 1fr;
  }

  .section-5__title {
    font-size: 28px;
  }
  .section-5__lead {
    font-size: 17px;
  }

  .modal__panel {
    margin: 18px auto;
  }
}

@media (max-width: 480px) {
  .section-5 {
    padding: 46px 14px;
  }
  .section-5__title {
    font-size: 22px;
  }
  .section-5__lead {
    font-size: 15.5px;
  }

  .section-5__card {
    padding: 16px;
  }

  .section-5__mini {
    grid-template-columns: 1fr 1fr;
  }
}

/* ===== Section 5: Report Card ===== */
.section-5__card--report {
  position: relative;
  overflow: hidden;
  margin-top: 10px;
}

.section-5__cardHeader {
  margin-bottom: 12px;
}

.section-5__chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(237, 22, 81, 0.08);
  border: 1px solid rgba(237, 22, 81, 0.22);
  color: #ed1651;
  font-weight: 800;
  margin-bottom: 10px;
}

/* list */
.report-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.report-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 12px 12px;
  margin-bottom: 10px;
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.03);
  transition:
    transform 0.25s ease,
    background 0.25s ease;
}

.report-list li:hover {
  transform: translateX(6px);
  background: rgba(237, 22, 81, 0.08);
}

.report-icon {
  width: 36px;
  height: 36px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(237, 22, 81, 0.12);
  border: 1px solid rgba(237, 22, 81, 0.22);
  flex-shrink: 0;
  margin-top: 2px;
  font-size: 18px;
}

.report-text {
  font-size: 16px;
  line-height: 1.7;
  color: #2b2b2b;
}

/* note */
.report-note {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-top: 12px;
  padding: 12px 12px;
  border-radius: 14px;
  background: rgba(237, 22, 81, 0.06);
  border: 1px solid rgba(237, 22, 81, 0.16);
  color: #2b2b2b;
}

.report-note__icon {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(237, 22, 81, 0.1);
  border: 1px solid rgba(237, 22, 81, 0.18);
  flex-shrink: 0;
  margin-top: 2px;
}

/* responsive */
@media (max-width: 900px) {
  .report-text {
    font-size: 15.5px;
  }
}

@media (max-width: 480px) {
  .report-list li {
    padding: 10px 10px;
  }

  .report-icon {
    width: 34px;
    height: 34px;
    border-radius: 12px;
    font-size: 17px;
  }

  .report-text {
    font-size: 15px;
  }
}

/* ================= CRITERIA LAYOUT ================= */

.criteria-section {
  margin: auto;
  width: 90%;
  padding: 60px 0;
  background: #fff;
}

.panel--criteria {
  /* background: linear-gradient(135deg,#f8fafc,#eef2ff); */
  border-radius: 28px;

  padding: 50px;

  overflow: hidden;
}

.criteria-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
}

/* ================= LEFT ================= */

.criteria-left {
  margin-left: 60px;
  padding-right: 20px;
}

.criteria-left .btn {
  margin-top: 20px;
}

/* ================= RIGHT ================= */

.criteria-right {
  position: relative;
}

.criteria-slider {
  width: 100%;
  height: 320px;

  border-radius: 22px;
  overflow: hidden;

  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.18);

  position: relative;
}

.slide {
  position: absolute;
  inset: 0;

  opacity: 0;
  transform: scale(1.05);

  transition: all 0.8s ease;
}

.slide.active {
  opacity: 1;
  transform: scale(1);
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ================= RESPONSIVE ================= */

@media (max-width: 900px) {
  .criteria-layout {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .criteria-slider {
    height: 240px;
  }
}

/* ================= CRITERIA LAYOUT ================= */

.criteria-section {
  padding: 60px 0;
}

.panel--criteria {
  /* Background Soft */
  background: linear-gradient(135deg, #ffffff, #fafbff);

  /* Border */
  border: 2px solid rgba(0, 0, 0, 0.078);

  /* Shape */
  border-radius: 30px;
  padding: 20px;

  /* Shadow */
  box-shadow:
    0 10px 30px rgba(0, 0, 0, 0.06),
    inset 0 0 0 1px rgba(255, 255, 255, 0.6);

  /* Fix */
  overflow: hidden;

  position: relative;
}
.criteria-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
}

/* ================= LEFT ================= */

.criteria-left {
  padding-right: 20px;
}

.criteria-left .btn {
  margin-top: 20px;
}

/* ================= RIGHT ================= */

.criteria-right {
  position: relative;
}

.criteria-slider {
  width: 100%;
  height: 320px;

  border-radius: 22px;
  overflow: hidden;

  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.18);

  position: relative;
}

.slide {
  position: absolute;
  inset: 0;

  opacity: 0;
  transform: scale(1.05);

  transition: all 0.8s ease;
}

.slide.active {
  opacity: 1;
  transform: scale(1);
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ================= RESPONSIVE ================= */

@media (max-width: 900px) {
  .criteria-layout {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .criteria-slider {
    height: 240px;
  }
}

/* ================= SLIDER BUTTON ================= */

.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);

  width: 44px;
  height: 44px;

  border-radius: 50%;
  border: none;

  background: #ed1651;
  color: #fff;

  font-size: 26px;
  font-weight: bold;

  cursor: pointer;

  display: flex;
  align-items: center;
  justify-content: center;

  box-shadow: 0 6px 16px rgba(237, 22, 81, 0.45);

  transition: all 0.25s ease;

  z-index: 10;
}

/* Left */
.slider-btn.prev {
  left: 12px;
}

/* Right */
.slider-btn.next {
  right: 12px;
}

.slider-btn:hover {
  transform: translateY(-50%) scale(1.12);
  background: #c91345;
}

.slider-btn:active {
  transform: translateY(-50%) scale(0.95);
}

/* ----------------------------------- */
/* ========== SECTION 6 Minimal ========== */
.s6-min {
  padding: 64px 20px;
}

/* .s6-bg {
  background-color: #b1acacbe;
  width: 100%;
} */

.s6-min__container {
  max-width: 1300px;
  margin: 0 auto;
}

.s6-min__head {
  text-align: center;
  max-width: 860px;
  margin: 0 auto 18px;
}

.s6-min__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(237, 22, 81, 0.08);
  border: 1px solid rgba(237, 22, 81, 0.22);
  color: #ed1651;
  font-weight: 900;
  margin-bottom: 10px;
}

.s6-min__title {
  margin: 0 0 10px;
  font-size: 34px;
  line-height: 1.2;
}

.s6-min__lead {
  margin: 0;
  font-size: 17px;
  line-height: 1.8;
  color: #2b2b2b;
}

.s6-min__hl {
  color: #ed1651;
  font-weight: 800;
}

/* layout */
.s6-min__grid {
  margin-top: 18px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 16px;
  align-items: stretch;
}

/* card */
.s6-min__card {
  background: #fff;
  border-radius: 18px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  padding: 18px;
}

.s6-min__cardTop {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 12px;
}

.s6-min__medal {
  width: 44px;
  height: 44px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(237, 22, 81, 0.1);
  border: 1px solid rgba(237, 22, 81, 0.18);
  flex-shrink: 0;
  font-size: 20px;
}

.s6-min__kicker {
  color: #ed1651;
  font-weight: 900;
  margin-bottom: 6px;
}

.s6-min__cardTitle {
  margin: 0 0 6px;
  font-size: 20px;
  line-height: 1.25;
}

.s6-min__sub {
  margin: 0;
  color: #2b2b2b;
  opacity: 0.9;
  line-height: 1.7;
}

/* list */
.s6-min__list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.s6-min__list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 10px 10px;
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.03);
  margin-top: 10px;
}

.s6-min__dot {
  width: 34px;
  height: 34px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(237, 22, 81, 0.1);
  border: 1px solid rgba(237, 22, 81, 0.18);
  flex-shrink: 0;
  margin-top: 2px;
}

.s6-min__note {
  margin-top: 12px;
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 12px 12px;
  border-radius: 14px;
  background: rgba(237, 22, 81, 0.06);
  border: 1px solid rgba(237, 22, 81, 0.16);
  color: #2b2b2b;
  line-height: 1.7;
}

.s6-min__noteIcon {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(237, 22, 81, 0.1);
  border: 1px solid rgba(237, 22, 81, 0.18);
  flex-shrink: 0;
  margin-top: 2px;
}

/* media */
.s6-min__media {
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  background: #fff;
}

.s6-min__img {
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
  display: block;
}

/* responsive */
@media (max-width: 1000px) {
  .s6-min__grid {
    grid-template-columns: 1fr;
  }
  .s6-min__img {
    min-height: 260px;
  }
}

@media (max-width: 480px) {
  .s6-min {
    padding: 46px 14px;
  }
  .s6-min__title {
    font-size: 22px;
  }
  .s6-min__lead {
    font-size: 15.5px;
  }
  .s6-min__card {
    padding: 16px;
  }
}

/* ========== SECTION 7 (International Style) ========== */
/* ========== SECTION 7 SLIDER ========== */
.s7-slider {
  padding: 64px 20px;
  position: relative;
}
.s7-slider::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    1000px 320px at 30% 0%,
    rgba(237, 22, 81, 0.1),
    transparent 60%
  );
  pointer-events: none;
}
.s7-slider__container {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
}

.s7-slider__header {
  text-align: center;
  max-width: 920px;
  margin: 0 auto 14px;
}
.s7-slider__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(237, 22, 81, 0.08);
  border: 1px solid rgba(237, 22, 81, 0.22);
  color: #ed1651;
  font-weight: 900;
  margin-bottom: 10px;
}
.s7-slider__title {
  margin: 0 0 10px;
  font-size: 34px;
  line-height: 1.2;
}
.s7-slider__lead {
  margin: 0;
  font-size: 18px;
  line-height: 1.8;
  color: #2b2b2b;
}

/* Controls */
.s7-slider__controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 14px 0 10px;
}
.s7-nav {
  width: 44px;
  height: 44px;
  border-radius: 16px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: #fff;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  font-weight: 900;
}
.s7-nav:active {
  transform: translateY(1px);
}

.s7-dots {
  display: flex;
  gap: 8px;
  align-items: center;
}
.s7-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.18);
  border: 1px solid rgba(0, 0, 0, 0.1);
}
.s7-dot.is-active {
  width: 26px;
  background: rgba(237, 22, 81, 0.75);
  border-color: rgba(237, 22, 81, 0.3);
}

/* Track */
.s7-track {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 8px 2px 2px;
  -webkit-overflow-scrolling: touch;
}
.s7-track::-webkit-scrollbar {
  height: 10px;
}
.s7-track::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.15);
  border-radius: 999px;
}
.s7-track::-webkit-scrollbar-track {
  background: transparent;
}

/* Slide */
.s7-slide {
  scroll-snap-align: start;
  flex: 0 0 100%;
  min-width: 100%;
}

/* Slide 1 layout */
.s7-slide__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  align-items: stretch;
}

/* Media */
.s7-media {
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  background: #fff;
  position: relative;
}
.s7-img {
  width: 100%;
  height: 100%;
  min-height: 340px;
  object-fit: cover;
  display: block;
}
.s7-imgTag {
  position: absolute;
  left: 14px;
  bottom: 14px;
  padding: 10px 12px;
  border-radius: 14px;
  color: #fff;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  font-weight: 900;
}

/* Card */
.s7-card {
  background: #fff;
  border-radius: 18px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  padding: 18px;
  position: relative;
  overflow: hidden;
}
.s7-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    800px 260px at 0% 0%,
    rgba(237, 22, 81, 0.1),
    transparent 60%
  );
  pointer-events: none;
}
.s7-chip {
  display: inline-flex;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(237, 22, 81, 0.1);
  border: 1px solid rgba(237, 22, 81, 0.22);
  color: #ed1651;
  font-weight: 900;
  margin-bottom: 10px;
}
.s7-card__title {
  margin: 0 0 6px;
  font-size: 20px;
}
.s7-card__sub {
  margin: 0;
  color: #2b2b2b;
  opacity: 0.9;
  line-height: 1.7;
}

/* Table */
.s7-tableScroll {
  margin-top: 12px;
  overflow: auto;
  border-radius: 14px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  background: #fff;
}
.s7-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 520px;
}
.s7-table th,
.s7-table td {
  padding: 12px 12px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  text-align: left;
}
.s7-table thead th {
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 1;
}

.s7-note {
  margin-top: 12px;
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 12px;
  border-radius: 16px;
  background: rgba(237, 22, 81, 0.06);
  border: 1px solid rgba(237, 22, 81, 0.16);
  color: #2b2b2b;
  line-height: 1.7;
}
.s7-note__icon {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(237, 22, 81, 0.1);
  border: 1px solid rgba(237, 22, 81, 0.18);
  flex-shrink: 0;
  margin-top: 2px;
}

/* Award slides */
.s7-award {
  background: #fff;
  border-radius: 18px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  padding: 18px;
  position: relative;
  overflow: hidden;
}
.s7-award::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    900px 260px at 0% 0%,
    rgba(237, 22, 81, 0.1),
    transparent 60%
  );
  pointer-events: none;
}
.s7-award__top {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 12px;
}
.s7-award__medal {
  width: 44px;
  height: 44px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(237, 22, 81, 0.1);
  border: 1px solid rgba(237, 22, 81, 0.18);
  flex-shrink: 0;
  font-size: 20px;
}
.s7-award__kicker {
  font-weight: 900;
  color: #ed1651;
  margin-bottom: 6px;
}
.s7-award__title {
  margin: 0 0 6px;
  font-size: 20px;
}
.s7-award__sub {
  margin: 0;
  color: #2b2b2b;
  opacity: 0.9;
  line-height: 1.7;
}

.s7-award__list {
  list-style: none;
  padding: 0;
  margin: 12px 0 0;
}
.s7-award__list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 12px 12px;
  border-radius: 16px;
  background: rgba(0, 0, 0, 0.03);
  margin-top: 10px;
}
.s7-ico {
  width: 36px;
  height: 36px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(237, 22, 81, 0.1);
  border: 1px solid rgba(237, 22, 81, 0.18);
  flex-shrink: 0;
  margin-top: 2px;
}

/* Responsive */
@media (max-width: 1000px) {
  .s7-slide__grid {
    grid-template-columns: 1fr;
  }
  .s7-img {
    min-height: 260px;
  }
  .s7-slider__title {
    font-size: 28px;
  }
  .s7-slider__lead {
    font-size: 17px;
  }
}

@media (max-width: 480px) {
  .s7-slider {
    padding: 46px 14px;
  }
  .s7-slider__title {
    font-size: 22px;
  }
  .s7-slider__lead {
    font-size: 15.5px;
  }
  .s7-nav {
    width: 40px;
    height: 40px;
    border-radius: 14px;
  }
}

/* ========== SECTION 8 (Cards) ========== */
.s8 {
  padding: 64px 20px;
}
.s8__container {
  max-width: 1100px;
  margin: 0 auto;
  justify-content: center;
  margin: auto;
}
.s8__head {
  text-align: center;
  max-width: 820px;
  margin: 0 auto 18px;
}
.s8__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(237, 22, 81, 0.08);
  border: 1px solid rgba(237, 22, 81, 0.22);
  color: #ed1651;
  font-weight: 900;
  margin-bottom: 10px;
}
.s8__title {
  margin: 0 0 10px;
  font-size: 40px;
  line-height: 1.2;
}
.s8__lead {
  margin: 0;
  font-size: 18px;
  line-height: 1.8;
  color: #2b2b2b;
}

.s8__grid {
  margin-top: 18px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

/* Cards as buttons */
.s8-card {
  width: 100%;
  text-align: left;
  border: 1px solid rgba(0, 0, 0, 0.06);
  background: #fff;
  border-radius: 18px;
  padding: 18px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  cursor: pointer;
  display: grid;
  grid-template-columns: 52px 1fr auto;
  gap: 14px;
  align-items: center;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    border-color 0.25s ease;
  position: relative;
  overflow: hidden;
}

.s8-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    850px 280px at 0% 0%,
    rgba(237, 22, 81, 0.1),
    transparent 60%
  );
  pointer-events: none;
  opacity: 0;
}

.s8-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.14);
  border-color: rgba(237, 22, 81, 0.22);
}
.s8-card:hover::before {
  opacity: 1;
}

.s8-card__icon {
  width: 52px;
  height: 52px;
  border-radius: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(237, 22, 81, 0.1);
  border: 1px solid rgba(237, 22, 81, 0.18);
  font-size: 22px;
}

.s8-card__kicker {
  font-weight: 900;
  color: #ed1651;
  margin-bottom: 4px;
}
.s8-card__title {
  font-weight: 500;
  color: #111;
  line-height: 1.25;
}
.s8-card__meta {
  margin-top: 6px;
  color: #2b2b2b;
  opacity: 0.9;
  font-weight: 700;
}
.s8-card__cta {
  font-weight: 900;
  color: #111;
  opacity: 0.75;
}

/* ========== MODAL (M8) ========== */
.m8 {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 9999;
}
.m8.is-open {
  display: block;
}

.m8__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
}

.m8__panel {
  position: relative;
  width: min(920px, calc(100% - 24px));
  margin: 70px auto;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
  overflow: hidden;
  animation: m8Pop 0.18s ease-out;
  max-height: calc(100vh - 120px);
  display: flex;
  flex-direction: column;
}

@keyframes m8Pop {
  from {
    transform: translateY(10px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.m8__header {
  display: flex;
  gap: 10px;
  justify-content: space-between;
  align-items: flex-start;
  padding: 16px 16px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  background: radial-gradient(
    700px 240px at 0% 0%,
    rgba(237, 22, 81, 0.08),
    transparent 60%
  );
}

.m8__chip {
  display: inline-flex;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(237, 22, 81, 0.1);
  border: 1px solid rgba(237, 22, 81, 0.22);
  color: #ed1651;
  font-weight: 900;
  margin-bottom: 8px;
}

.m8__title {
  margin: 0 0 4px;
  font-size: 18px;
}
.m8__sub {
  margin: 0;
  color: #2b2b2b;
  opacity: 0.85;
  font-size: 14px;
  line-height: 1.5;
}

.m8__close {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  background: #fff;
  cursor: pointer;
}

.m8__content {
  padding: 16px;
  overflow: auto; /* ✅ scroll ใน modal */
}

.m8__footer {
  padding: 14px 16px;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  display: flex;
  justify-content: flex-end;
}

/* Table */
.m8__tableWrap {
  overflow: auto;
  border-radius: 14px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  background: #fff;
}

.m8__table {
  width: 100%;
  border-collapse: collapse;
  min-width: 520px;
}

.m8__table th,
.m8__table td {
  padding: 12px 12px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  text-align: left;
  vertical-align: top;
}

.m8__table thead th {
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 1;
  border-bottom: 1px solid rgba(0, 0, 0, 0.12);
}

.m8__hint {
  margin-top: 12px;
  padding: 12px;
  border-radius: 14px;
  background: rgba(237, 22, 81, 0.06);
  border: 1px solid rgba(237, 22, 81, 0.16);
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: #2b2b2b;
  line-height: 1.7;
}

.m8__hintIcon {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(237, 22, 81, 0.1);
  border: 1px solid rgba(237, 22, 81, 0.18);
  flex-shrink: 0;
  margin-top: 2px;
}

.text_m8_table {
  font-weight: 700;
}

/* Responsive */
@media (max-width: 900px) {
  .s8__grid {
    grid-template-columns: 1fr;
  }
  .s8__title {
    font-size: 35px;
  }
  .s8__lead {
    font-size: 17px;
  }
  .m8__panel {
    margin: 18px auto;
  }
}

@media (max-width: 480px) {
  .s8 {
    padding: 50px 16px;
  }

  .s8__title {
    font-size: 32px;
    line-height: 1.3;
    text-align: center;
  }

  .s8__lead {
    font-size: 15px;
    text-align: center;
    opacity: 0.9;
  }

  .m8__table {
    width: 100%;
    border-collapse: collapse;
    min-width: 350px;
  }

  /* ⭐ การ์ดจัดกลางจริง */
  .s8-card {
    display: grid;

    /* เปลี่ยนเป็นคอลัมน์เดียว */
    grid-template-columns: 1fr;

    row-gap: 12px;

    justify-items: center; /* กลางแนวนอน */
    align-items: center; /* กลางแนวตั้ง */

    text-align: center; /* ตัวหนังสือกลาง */
  }

  /* ปุ่ม */
  .s8-card__cta {
    width: 250px;
    max-width: 100%;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;

    margin: 12px auto; /* กลางจริง */

    background: #ed1651;
    color: #fff;

    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-decoration: none;

    border-radius: 14px;
    border: none;

    box-shadow: 0 6px 14px rgba(237, 22, 81, 0.35);

    cursor: pointer;
    -webkit-tap-highlight-color: transparent;

    transition:
      transform 0.2s ease,
      box-shadow 0.2s ease,
      opacity 0.2s ease;
  }

  .s8-card__cta:hover {
    opacity: 0.9;
  }

  .s8-card__cta:active {
    transform: scale(0.95);
    box-shadow: 0 3px 8px rgba(237, 22, 81, 0.3);
  }
}

/* ================= Accordion Container ================= */
.accordion {
  width: 100%;
  max-width: 1200px;
  margin: 40px auto;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 18px;
  overflow: hidden;

  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(237, 22, 81, 0.25);

  backdrop-filter: blur(8px);
  transition: all 0.3s ease;
}

/* ================= Accordion Item ================= */
.accordion-item {
  border-bottom: 1px solid rgba(237, 22, 81, 0.2);
}

.accordion-item:last-child {
  border-bottom: none;
}

/* ================= Title ================= */
.accordion-title {
  display: flex;
  justify-content: space-between;
  align-items: center;

  cursor: pointer;
  padding: 20px 26px;

  background: #ffffff;
  color: #222;

  font-weight: 600;
  font-size: 1.1rem;

  transition: all 0.25s ease;
  position: relative;
}

/* Hover Effect */
.accordion-title:hover {
  background: rgba(237, 22, 81, 0.06);
  color: #ed1651;
}

/* Active */
.accordion-title.active {
  background: linear-gradient(135deg, #ed1651, #ff4f7b);
  color: #fff;
}

/* ================= Arrow ================= */
.accordion-title .arrow {
  font-size: 1.3rem;
  color: #ed1651;

  transition: all 0.3s ease;
}

.accordion-title.active .arrow {
  color: #fff;
  transform: rotate(90deg);
}

/* ================= Content ================= */
/* Base */
.accordion-content {
  max-height: 0;
  overflow: hidden;

  padding: 0 26px;

  background: #fafafa;
  color: #333;

  opacity: 0;

  border-left: 5px solid transparent;

  /* Smooth */
  transition:
    max-height 0.45s cubic-bezier(0.4, 0, 0.2, 1),
    padding 0.3s ease,
    opacity 0.25s ease,
    background 0.3s ease,
    box-shadow 0.3s ease;
}

/* Open */
.accordion-content.open {
  max-height: 100%; /* กันล้น */

  padding: 22px 26px;

  opacity: 1;

  border-left-color: #ed1651;

  background: linear-gradient(to right, #ffffff, #fff5f8);

  box-shadow:
    inset 0 0 0 rgba(0, 0, 0, 0),
    0 4px 12px rgba(237, 22, 81, 0.12);
}

/* ================= Highlight ================= */
.highlight {
  color: #ed1651;
  font-weight: 600;
}

/* ================= Mobile ================= */
@media (max-width: 768px) {
  .accordion {
    margin: 20px 1px;
    border-radius: 14px;
  }

  .accordion-title {
    padding: 16px 18px;
    font-size: 1rem;
  }

  .accordion-content.open {
    padding: 16px 18px;
  }
}

/* ===== List Container ===== */
.exam-center-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

/* ===== Card Item ===== */
.exam-center-item {
  background: #ffffff;
  border: 1px solid #eee;
  border-radius: 14px;

  padding: 18px 20px;
  margin-bottom: 16px;

  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);

  transition: all 0.25s ease;
}

/* Hover Effect */
.exam-center-item:hover {
  /* transform: translateY(-2px); */
  /* box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08); */
  border-color: #ed1651;
}

/* ===== Title ===== */
.center-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: #222;

  margin-bottom: 12px;
  padding-bottom: 6px;

  border-bottom: 1px solid #f0f0f0;
}

/* ===== Info Vertical Layout ===== */
.center-info {
  display: flex;
  flex-direction: column; /* แนวตั้ง */
  gap: 8px;

  font-size: 0.95rem;
  color: #444;
}

/* Each Line */
.center-info span {
  display: flex;
  justify-content: space-between;
  align-items: center;

  background: #fafafa;
  padding: 8px 12px;
  border-radius: 8px;

  border-left: 4px solid #ed1651;

  transition: background 0.2s ease;
}

.center-info-gride {
  /* justify-content: space-around; */
  display: flex;
  grid-template-columns: 1fr; /* 1 คอลัมน์ */
  gap: 8px;

  font-size: 0.95rem;
  color: #444;
  margin-bottom: 10px;
}

/* Each Line */
.center-info-gride span {
  width: 50%;
  display: flex;
  justify-content: space-between;
  align-items: center;

  background: #fafafa;
  padding: 8px 12px;
  border-radius: 8px;

  border-left: 4px solid #ed1651;

  transition: background 0.2s ease;
}

/* Hover Line */
.center-info span:hover {
  background: #fff0f5;
}

/* Highlight Important */
/* .center-info */
/* .center-info span:nth-child(4)  */
/* {
  background: #fff5f8;
  color: #ed1651;
  font-weight: 500;
} */

.center-title-hi {
  color: #ed1651;
  padding-top: 10px;
}

/* ===== Mobile ===== */
@media (max-width: 600px) {
  .exam-center-item {
    padding: 14px 16px;
  }

  .center-title {
    font-size: 1rem;
  }

  .center-info {
    font-size: 0.88rem;
  }

  .center-info span {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
}

.stem-guarantee-box {
  background: #fff;
  border: 1px solid #eee;
  border-left: 5px solid var(#00a2f2);
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
  overflow: hidden;
  padding: 25px;
  position: relative;
  transition: all 0.3s ease;
}

/* ===== Main Box ===== */
.stem-box {
  margin-top: -50px;
  max-width: 1200px;
  margin: 40px auto;
  padding: 26px 24px;

  background: #fff;
  border-radius: 16px;

  border: 1px solid rgba(237, 22, 81, 0.2);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

/* ===== Text ===== */
.stem-text {
  font-size: 1rem;
  line-height: 1.7;
  color: #444;

  margin: 0;
}

/* ===== Title ===== */
.stem-title {
  display: block;
  text-align: center;
  font-weight: 600;
  color: #ed1651;
  margin-bottom: 6px;
}

/* ===== Org ===== */
.stem-org {
  display: block;
  text-align: center;

  font-weight: 600;
  /* color: #ed1651; */
  margin-bottom: 16px;
}

/* ===== Lines ===== */
.stem-line {
  display: block;
  margin-bottom: 6px;
}
/* เดิม (Desktop) */
.stem-line-sub {
  display: block;
  margin-bottom: 6px;
  width: 800px;
  text-align: center;
  margin: auto;
  line-height: 1.6;
}
/* Center */
.stem-line.center {
  text-align: center;
}

/* Left (เดิม padding-right เยอะ) */
.stem-line.left {
  padding-left: 40px;
}

/* Left More */
.stem-line.left2 {
  padding-left: 80px;
}

/* Right (เดิม padding-left เยอะ) */
.stem-line.right {
  padding-left: 120px;
}

/* Right More */
.stem-line.right2 {
  padding-left: 60px;
}

/* ===== Mobile Fix ===== */
@media (max-width: 768px) {
  .stem-line.left,
  .stem-line.left2,
  .stem-line.right,
  .stem-line.right2 {
    padding-left: 0;
    text-align: left;
  }

  .stem-title strong {
    display: block;
    margin-top: 4px;
  }
  .stem-org {
    font-size: 0.95rem;
  }

  .stem-line-sub {
    width: 110%; /* เต็มจอ */
    max-width: 100%;
    padding: 0 15px; /* เว้นขอบซ้ายขวา */
    font-size: 15px; /* ลดขนาดตัวอักษร */
    text-align: left; /* อ่านง่ายขึ้น */
  }
}

/* ===== Section Title Base ===== */

/* =========================
   Section Title
========================= */

.sec-title {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Tagline */
.sec-title__tagline {
  font-size: 15px;
  font-weight: 600;
  color: #ed1651;
  letter-spacing: 1px;
  margin-bottom: 6px;
}

/* Title */
.sec-title__title {
  font-size: 38px;
  font-weight: 700;
  color: #222;
  line-height: 1.3;
  margin-bottom: 18px;
}

/* เส้นใต้ Title */
.sec-title__title::after {
  content: "";
  display: block;

  width: 60px;
  height: 4px;

  background: #ed1651;
  margin: 12px auto 0;

  border-radius: 2px;
}

/* Description Box */
.sec-title__desc {
  max-width: 900px;
  margin: 0 auto;

  font-size: 17px;
  color: #666;
  line-height: 1.8;

  text-align: center;
}

/* Paragraph */
.sec-title__desc p {
  margin: 6px 0;
}

/* Default = Desktop / จอใหญ่ */
.sec-title__project {
  display: inline-block;

  font-size: 20px;
  font-weight: 700;
  color: #ed1651;

  line-height: 1.4;
}

/* ให้ span ต่อกันเป็นบรรทัดเดียว */
.sec-title__project span {
  display: inline;
}

/* เว้นวรรคระหว่างคำ */
.sec-title__project .line1::after {
  content: " ";
}

/* =========================
   Mobile Responsive
========================= */

@media (max-width: 576px) {
  .sec-title {
    padding: 0 14px;
  }

  .sec-title__tagline {
    font-size: 13px;
    letter-spacing: 0.5px;
  }

  .sec-title__title {
    font-size: 26px;
    line-height: 1.4;
    margin-bottom: 12px;
  }

  .sec-title__title::after {
    width: 40px;
    height: 3px;
    margin-top: 8px;
  }

  .sec-title__desc {
    font-size: 15px;
    line-height: 1.7;
  }

  .sec-title__project {
    text-align: center;
    font-size: 17px;
  }

  /* แยกบรรทัดในมือถือ */
  .sec-title__project span {
    display: block;
  }

  .sec-title__project .line1::after {
    content: "";
  }

  .sec-title__desc p {
    margin: 4px 0;
  }
}

/* //////////////////////////////////////////////////////////////////////////////// */
/* //////////////////////////////////////////////////////////////////////////////// */
/* //////////////////////////////////////////////////////////////////////////////// */
