/* =========================================================
   HOME PAGE
   - Hero Slider
   - Hero Event Info
   - About Section
   - About KPI
   - Placeholder Sections
   - Responsive
========================================================= */


/* =========================================================
   01) HERO SLIDER
   ใช้สำหรับ:
   - พื้นหลัง slider
   - รูปในแต่ละ slide
   - overlay ทับภาพ
========================================================= */
.hero-slider {
  position: relative;
  min-height: calc(100vh - 132px);
  overflow: hidden;
  background:
    radial-gradient(circle at top left, rgba(94, 168, 255, 0.12), transparent 30%),
    linear-gradient(135deg, #081830 0%, #0b2a52 55%, #123c73 100%);
}

.hero-slider .carousel,
.hero-slider .carousel-inner,
.hero-slider .carousel-item {
  min-height: calc(100vh - 132px);
}

.hero-slider .carousel-item {
  position: relative;
  transition: transform 1.4s ease-in-out, opacity 1.4s ease-in-out;
}

.hero-slider .carousel-item::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(6, 17, 36, 0.78) 0%, rgba(6, 17, 36, 0.52) 38%, rgba(6, 17, 36, 0.18) 100%),
    linear-gradient(180deg, rgba(11, 42, 82, 0.10) 0%, rgba(11, 42, 82, 0.38) 100%);
}

.hero-slider .carousel-item img {
  width: 100%;
  height: calc(100vh - 132px);
  object-fit: cover;
  object-position: center center;
  display: block;
  transform: scale(1);
  transition: transform 7s ease;
}

.hero-slider .carousel-item.active img,
.hero-slider .carousel-item.carousel-item-start img,
.hero-slider .carousel-item.carousel-item-end img {
  transform: scale(1.08);
}


/* =========================================================
   02) HERO CAPTION
   ใช้สำหรับ:
   - กล่องข้อความบน slider
   - badge / title / description
========================================================= */
.hero-slider .carousel-caption {
  z-index: 3;
  left: 8%;
  right: auto;
  bottom: 50%;
  transform: translateY(50%);
  width: min(720px, 84%);
  text-align: left;
  padding: 0;
  margin: 0;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.55rem 1rem;
  margin-bottom: 1.2rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.hero-badge::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #f0b44c;
  box-shadow: 0 0 0 5px rgba(240, 180, 76, 0.14);
  flex: 0 0 8px;
}

.hero-title {
  margin: 0 0 1rem;
  color: #fff;
  font-size: clamp(2.2rem, 5vw, 4.8rem);
  line-height: 1.04;
  font-weight: 800;
  letter-spacing: -0.03em;
  text-shadow: 0 8px 28px rgba(0, 0, 0, 0.28);
}

.hero-title span {
  display: block;
  margin-top: 0.18rem;
  color: #f0b44c;
}

.hero-desc {
  max-width: 620px;
  margin: 0 0 1.7rem;
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.06rem;
  line-height: 1.85;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.18);
}


/* =========================================================
   03) HERO EVENT INFO
   ใช้สำหรับ:
   - วันจัดงาน
   - countdown
========================================================= */
.hero-event-info {
  margin-top: 22px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

.hero-event-date {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 20px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.10);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #fff;
  font-size: 1rem;
  font-weight: 500;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.16);
}

.hero-event-date i {
  font-size: 1rem;
}

.hero-countdown {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.count-box {
  min-width: 96px;
  padding: 10px 12px;
  border-radius: 12px;
  text-align: center;
  background: rgba(255, 255, 255, 0.92);
  color: #0f172a;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.15);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.count-box:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.18);
}

.count-box span {
  display: block;
  font-size: 1.3rem;
  font-weight: 800;
  line-height: 1.1;
}

.count-box small {
  display: block;
  margin-top: 4px;
  font-size: 0.7rem;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  font-weight: 700;
  opacity: 0.8;
}

/* กล่อง Days = สีแดง */
.hero-countdown .count-box:first-child {
  background: linear-gradient(135deg, #c62839 0%, #e3475a 100%);
  color: #fff;
  box-shadow: 0 14px 30px rgba(198, 40, 57, 0.32);
}

.hero-countdown .count-box:first-child small {
  color: rgba(255, 255, 255, 0.88);
}


/* =========================================================
   04) HERO BUTTONS
   ใช้สำหรับ:
   - ปุ่มหลักใน slider
========================================================= */
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

.btn-hero {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 170px;
  padding: 0.95rem 1.55rem;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.22s ease;
}

.btn-hero-primary {
  background: linear-gradient(135deg, #c62839 0%, #e3475a 100%);
  color: #fff;
  box-shadow: 0 16px 34px rgba(198, 40, 57, 0.28);
}

.btn-hero-primary:hover {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 20px 38px rgba(198, 40, 57, 0.35);
}

.btn-hero-outline {
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.26);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.btn-hero-outline:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
}


/* =========================================================
   05) HERO ANIMATION
   ใช้สำหรับ:
   - animation ตอน slide active
========================================================= */
.hero-slider .carousel-caption > * {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.hero-slider .carousel-item.active .hero-badge {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.25s;
}

.hero-slider .carousel-item.active .hero-title {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.45s;
}

.hero-slider .carousel-item.active .hero-desc {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.65s;
}

.hero-slider .carousel-item.active .hero-event-info {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.78s;
}

.hero-slider .carousel-item.active .hero-actions {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.85s;
}


/* =========================================================
   06) CAROUSEL CONTROLS
   ใช้สำหรับ:
   - ปุ่มเลื่อนซ้าย / ขวา
========================================================= */
.hero-slider .carousel-control-prev,
.hero-slider .carousel-control-next {
  width: 64px;
  opacity: 1;
}

.hero-slider .carousel-control-prev-icon,
.hero-slider .carousel-control-next-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  background-size: 44% 44%;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.12);
  transition: all 0.2s ease;
}

.hero-slider .carousel-control-prev:hover .carousel-control-prev-icon,
.hero-slider .carousel-control-next:hover .carousel-control-next-icon {
  background-color: rgba(255, 255, 255, 0.22);
  transform: scale(1.04);
}


/* =========================================================
   07) CAROUSEL INDICATORS
   ใช้สำหรับ:
   - จุดบอกตำแหน่ง slide
========================================================= */
.hero-slider .carousel-indicators {
  margin-bottom: 1.6rem;
  gap: 0.35rem;
}

.hero-slider .carousel-indicators [data-bs-target] {
  width: 10px;
  height: 10px;
  margin: 0 4px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.42);
  opacity: 1;
  transition: all 0.2s ease;
}

.hero-slider .carousel-indicators .active {
  width: 28px;
  border-radius: 999px;
  background: #f0b44c;
}


/* =========================================================
   08) SCROLL DOWN
   ใช้สำหรับ:
   - ปุ่ม scroll ลงไป section ถัดไป
========================================================= */
.hero-scroll-down {
  position: absolute;
  left: 50%;
  bottom: 16px;
  z-index: 5;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.22rem;
  color: rgba(255, 255, 255, 0.82);
  text-decoration: none;
  transform: translateX(-50%);
  animation: floatY 1.8s ease-in-out infinite;
}

.hero-scroll-down span {
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hero-scroll-down i {
  font-size: 1.08rem;
}

@keyframes floatY {
  0%, 100% {
    transform: translateX(-50%) translateY(0);
  }
  50% {
    transform: translateX(-50%) translateY(5px);
  }
}


/* =========================================================
   09) PLACEHOLDER SECTIONS
   ใช้สำหรับ:
   - section ชั่วคราว เช่น Schedule / Join / Contact
========================================================= */
.placeholder-section {
  padding: 90px 0;
  background: #ffffff;
}

.placeholder-section.section-alt {
  background: #f8fbff;
}

.placeholder-box {
  padding: 42px;
  border-radius: 24px;
  background: #fff;
  border: 1px solid rgba(12, 42, 82, 0.08);
  box-shadow: 0 18px 40px rgba(11, 42, 82, 0.06);
}

.placeholder-box h2 {
  margin-bottom: 0.75rem;
  color: #123c73;
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  font-weight: 800;
}

.placeholder-box p {
  margin-bottom: 0;
  color: #64748b;
  font-size: 1rem;
  line-height: 1.8;
}


/* =========================================================
   10) ABOUT SECTION WRAP
   ใช้สำหรับ:
   - พื้นหลัง section About
   - เอฟเฟกต์แสงด้านหลัง
========================================================= */
.about-tjsif-premium {
  position: relative;
  padding: 100px 0;
  background:
    radial-gradient(circle at top left, rgba(37, 99, 235, 0.10), transparent 28%),
    radial-gradient(circle at bottom right, rgba(245, 158, 11, 0.10), transparent 24%),
    linear-gradient(180deg, #f8fbff 0%, #eef5ff 100%);
  overflow: hidden;
}

.about-tjsif-premium::before {
  content: "";
  position: absolute;
  top: -120px;
  right: -120px;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: rgba(59, 130, 246, 0.08);
  filter: blur(30px);
  pointer-events: none;
}

.about-tjsif-box {
  position: relative;
  z-index: 2;
}


/* =========================================================
   11) ABOUT - MEDIA
   ใช้สำหรับ:
   - กลุ่มวิดีโอฝั่งซ้าย
========================================================= */
.about-media-wrap {
  position: relative;
  padding-right: 18px;
  padding-bottom: 56px;
}

.about-video-stack {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.about-video-card {
  position: relative;
  padding: 16px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.88);
  box-shadow: 0 20px 55px rgba(15, 23, 42, 0.10);
  backdrop-filter: blur(10px);
  transition: all 0.35s ease;
}

.about-video-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 25px 55px rgba(0, 0, 0, 0.15);
}

.about-video-head {
  margin-bottom: 12px;
}

.about-mini-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: linear-gradient(135deg, #eff6ff 0%, #ffffff 100%);
  border: 1px solid #dbeafe;
  color: #1d4ed8;
  font-size: 0.92rem;
  font-weight: 600;
}

.about-mini-badge i {
  font-size: 0.95rem;
}

.about-video-frame {
  overflow: hidden;
  border-radius: 22px;
  background: #000;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.about-video-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
}


/* =========================================================
   12) ABOUT - FLOATING CARD
   ใช้สำหรับ:
   - การ์ดลอยด้านล่างวิดีโอ
========================================================= */
.about-floating-card {
  position: absolute;
  right: -6px;
  bottom: 12px;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 250px;
  max-width: 300px;
  padding: 16px 18px;
  border-radius: 20px;
  background: rgba(18, 60, 115, 0.95);
  color: #fff;
  box-shadow: 0 18px 40px rgba(18, 60, 115, 0.30);
}

.floating-close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.floating-close:hover {
  background: rgba(255, 255, 255, 0.25);
}

.floating-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.15);
  font-size: 1.15rem;
  flex-shrink: 0;
}

.floating-content {
  display: flex;
  flex-direction: column;
  line-height: 1.35;
  padding-right: 18px;
}

.floating-label {
  font-size: 0.82rem;
  opacity: 0.82;
  margin-bottom: 2px;
}

.floating-content strong {
  font-size: 1rem;
  font-weight: 700;
}

.floating-animate {
  animation: floatingCard 4s ease-in-out infinite;
}

@keyframes floatingCard {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
  100% {
    transform: translateY(0);
  }
}


/* =========================================================
   13) ABOUT - CONTENT
   ใช้สำหรับ:
   - ข้อความฝั่งขวาใน section About
========================================================= */
.about-content {
  padding-left: 8px;
}

.about-kicker {
  display: inline-block;
  margin-bottom: 12px;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.08);
  color: #1d4ed8;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.about-title {
  margin: 0 0 8px;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.18;
  font-weight: 800;
  color: #0f172a;
}

.about-title span {
  position: relative;
  color: #123c73;
}

.about-title span::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 4px;
  width: 100%;
  height: 10px;
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.22);
  z-index: -1;
}

.about-subtitle {
  margin-bottom: 18px;
  font-size: 1.06rem;
  color: #2563eb;
  font-weight: 600;
}

.about-desc {
  margin-bottom: 14px;
  font-size: 1rem;
  line-height: 1.82;
  color: #475569;
}


/* =========================================================
   14) ABOUT - FEATURE LIST
   ใช้สำหรับ:
   - ไฮไลต์ 3 กล่องใน About
========================================================= */
.about-feature-list {
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.about-feature-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 18px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: 18px;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.05);
  transition: all 0.3s ease;
}

.about-feature-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 35px rgba(0, 0, 0, 0.08);
}

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #dbeafe 0%, #eff6ff 100%);
  color: #1d4ed8;
  font-size: 1.05rem;
  flex-shrink: 0;
}

.feature-text h5 {
  margin: 2px 0 6px;
  font-size: 1rem;
  font-weight: 700;
  color: #0f172a;
}

.feature-text p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.7;
  color: #64748b;
}


/* =========================================================
   16) REVEAL ANIMATION
   ใช้สำหรับ:
   - animation ตอนเลื่อนหน้าจอแล้ว element โผล่ขึ้นมา
========================================================= */
.reveal-up {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.9s ease;
}

.reveal-up.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 {
  transition-delay: 0.1s;
}

.reveal-delay-2 {
  transition-delay: 0.2s;
}

.reveal-delay-3 {
  transition-delay: 0.3s;
}


/* =========================================================
   17) RESPONSIVE - DESKTOP / TABLET
========================================================= */
@media (max-width: 1199.98px) {
  .hero-slider,
  .hero-slider .carousel,
  .hero-slider .carousel-inner,
  .hero-slider .carousel-item {
    min-height: calc(100vh - 124px);
  }

  .hero-slider .carousel-item img {
    height: calc(100vh - 124px);
  }

  .hero-slider .carousel-caption {
    left: 6.5%;
    width: min(700px, 86%);
  }
}


/* =========================================================
   18) RESPONSIVE - TABLET
========================================================= */
@media (max-width: 991.98px) {
  .hero-slider .carousel-caption {
    left: 50%;
    right: auto;
    width: min(720px, 88%);
    text-align: center;
    transform: translate(-50%, 50%);
  }

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

  .hero-event-info {
    align-items: center;
  }

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

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

  .hero-slider .carousel-control-prev,
  .hero-slider .carousel-control-next {
    display: none;
  }

  .about-tjsif-premium {
    padding: 80px 0;
  }

  .about-media-wrap {
    padding-right: 0;
    padding-bottom: 0;
  }

  .about-floating-card {
    position: static;
    margin-top: 16px;
    max-width: 100%;
  }

  .about-content {
    padding-left: 0;
  }

  .about-kpi-grid {
    grid-template-columns: 1fr;
  }
}


/* =========================================================
   19) RESPONSIVE - MOBILE
========================================================= */
@media (max-width: 767.98px) {
  .hero-slider,
  .hero-slider .carousel,
  .hero-slider .carousel-inner,
  .hero-slider .carousel-item {
    min-height: calc(100vh - 118px);
  }

  .hero-slider .carousel-item img {
    height: calc(100vh - 118px);
  }

  .hero-slider .carousel-item::before {
    background: linear-gradient(180deg, rgba(7, 20, 40, 0.42) 0%, rgba(7, 20, 40, 0.56) 35%, rgba(7, 20, 40, 0.76) 100%);
  }

  .hero-slider .carousel-caption {
    width: 90%;
  }

  .hero-title {
    font-size: clamp(2rem, 8vw, 3.2rem);
  }

  .hero-desc {
    font-size: 0.98rem;
    line-height: 1.75;
  }

  .hero-countdown {
    gap: 8px;
  }

  .count-box {
    min-width: 72px;
    padding: 8px 10px;
  }

  .count-box span {
    font-size: 1.08rem;
  }

  .btn-hero {
    width: 100%;
    min-width: 0;
  }

  .placeholder-section {
    padding: 70px 0;
  }

  .placeholder-box {
    padding: 28px 22px;
    border-radius: 20px;
  }
}


/* =========================================================
   20) RESPONSIVE - SMALL MOBILE
========================================================= */
@media (max-width: 575.98px) {
  .hero-badge {
    font-size: 0.72rem;
    padding: 0.5rem 0.85rem;
  }

  .hero-title {
    font-size: clamp(1.8rem, 8vw, 2.7rem);
  }

  .hero-desc {
    font-size: 0.93rem;
  }

  .hero-event-date {
    font-size: 0.92rem;
    padding: 7px 12px;
  }

  .hero-countdown {
    gap: 6px;
  }

  .count-box {
    min-width: 64px;
    padding: 7px 8px;
    border-radius: 10px;
  }

  .count-box span {
    font-size: 1rem;
  }

  .count-box small {
    font-size: 0.62rem;
  }

  .hero-slider .carousel-indicators {
    margin-bottom: 1rem;
  }

  .about-video-card {
    padding: 12px;
    border-radius: 22px;
  }

  .about-video-frame {
    border-radius: 16px;
  }

  .about-feature-item {
    padding: 14px;
  }

  .feature-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    font-size: 0.98rem;
  }

  .about-floating-card {
    min-width: auto;
    border-radius: 18px;
    padding: 14px 16px;
  }

  .floating-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
  }
}


/* =========================================================
   15) ABOUT - KPI CARDS
   ใช้สำหรับ:
   - การ์ดตัวเลข Participants / Projects / Organizations
   - layout grid
   - hover effect ที่ทั้งการ์ด
   - responsive บน tablet / mobile
========================================================= */
.about-kpi-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 26px 0 30px;
}

/* wrapper ที่ใช้ร่วมกับ reveal animation */
.about-kpi-grid > .reveal-up {
  min-width: 0;
}

.about-kpi-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  height: 100%;
  padding: 16px 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(18, 60, 115, 0.10);
  box-shadow: 0 14px 34px rgba(15, 35, 70, 0.08);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease, background 0.28s ease;
  cursor: pointer;
}

.about-kpi-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(15, 35, 70, 0.14);
  border-color: rgba(37, 99, 235, 0.22);
  background: rgba(255, 255, 255, 0.88);
}

.about-kpi-label {
  font-size: 0.7rem;
  font-weight: 700;
  color: #5f6f86;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  margin-bottom: 4px;
}

.about-kpi-number {
  font-size: 1.55rem;
  font-weight: 800;
  line-height: 1;
  color: #123c73;
  margin-bottom: 6px;
}

.about-kpi-sub {
  margin: 0;
  font-size: 0.85rem;
  color: #6e7d92;
  line-height: 1.45;
}

.about-kpi-icon {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #eaf3ff 0%, #dcecff 100%);
  color: #123c73;
  font-size: 1.15rem;
  flex-shrink: 0;
}

/* =========================================================
   15.1) ABOUT KPI - TABLET
   ใช้สำหรับ:
   - ลดจาก 3 คอลัมน์ เหลือ 2 คอลัมน์
========================================================= */
@media (max-width: 991.98px) {
  .about-kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* =========================================================
   15.2) ABOUT KPI - MOBILE
   ใช้สำหรับ:
   - เรียงการ์ดเป็น 1 คอลัมน์
   - ปรับ spacing ให้พอดีกับจอเล็ก
========================================================= */
@media (max-width: 767.98px) {
  .about-kpi-grid {
    grid-template-columns: 1fr;
    gap: 12px;
    margin: 22px 0 26px;
  }

  .about-kpi-card {
    padding: 14px 16px;
    border-radius: 16px;
  }

  .about-kpi-number {
    font-size: 1.4rem;
  }

  .about-kpi-sub {
    font-size: 0.82rem;
  }

  .about-kpi-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    font-size: 1rem;
  }
}

/* =========================================================
   KEY DATES V2
   Animated / Premium Version
========================================================= */
.home-keydates-v2 {
  position: relative;
  padding: 100px 0;
  background:
    radial-gradient(circle at top left, rgba(78, 149, 255, 0.10), transparent 28%),
    linear-gradient(180deg, #f8fbff 0%, #edf4fb 100%);
  overflow: hidden;
}

/* ลายพื้นหลังเบา ๆ */
.home-keydates-v2::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 12% 18%, rgba(255,255,255,0.42), transparent 24%),
    radial-gradient(circle at 88% 82%, rgba(94,168,255,0.10), transparent 22%);
  pointer-events: none;
}

/* แสงลอย ๆ เคลื่อนช้า ๆ */
.home-keydates-v2::after {
  content: "";
  position: absolute;
  width: 520px;
  height: 520px;
  top: -140px;
  right: -120px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(83, 155, 255, 0.18) 0%, rgba(83, 155, 255, 0.05) 35%, transparent 70%);
  filter: blur(10px);
  animation: keydatesFloatGlow 10s ease-in-out infinite;
  pointer-events: none;
}

.keydates-v2-wrap {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 0.95fr 1.45fr;
  gap: 42px;
  align-items: start;
}

/* =========================================================
   ฝั่ง intro
========================================================= */
.keydates-v2-intro {
  position: sticky;
  top: 110px;
}

.keydates-mini-label {
  display: inline-block;
  margin-bottom: 16px;
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(18, 60, 115, 0.08);
  color: #123c73;
  font-size: 0.80rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow: 0 8px 20px rgba(18, 60, 115, 0.06);
}

.keydates-v2-intro h2 {
  margin: 0 0 14px;
  font-size: clamp(2.1rem, 4vw, 3.2rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: #0e2f5a;
}

.keydates-v2-intro p {
  margin: 0 0 22px;
  max-width: 440px;
  color: #5f6f87;
  font-size: 1rem;
  line-height: 1.9;
}

.keydates-intro-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 16px;
  background: rgba(255,255,255,0.72);
  border: 1px solid rgba(18, 60, 115, 0.08);
  box-shadow: 0 10px 24px rgba(18, 60, 115, 0.06);
  color: #123c73;
  font-size: 0.95rem;
  font-weight: 600;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.badge-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ff7a00;
  box-shadow: 0 0 0 0 rgba(255, 122, 0, 0.32);
  animation: dotPulse 2s infinite;
}

/* =========================================================
   ฝั่ง list
========================================================= */
.keydates-v2-list {
  position: relative;
  display: grid;
  gap: 18px;

  /* ค่า fallback เผื่อ JS ยังไม่ทำงาน */
  --line-start: 40px;
  --line-end: 520px;
}

.keydates-v2-list::before {
  content: "";
  position: absolute;
  top: var(--line-start);
  height: calc(var(--line-end) - var(--line-start));
  left: 38px;
  width: 2px;
  border-radius: 999px;
  background: linear-gradient(
    180deg,
    rgba(18, 60, 115, 0.10) 0%,
    rgba(18, 60, 115, 0.22) 30%,
    rgba(18, 60, 115, 0.10) 100%
  );
}

.keydates-v2-list::after {
  content: "";
  position: absolute;
  top: var(--line-start);
  height: calc(var(--line-end) - var(--line-start));
  left: 35px;
  width: 8px;
  border-radius: 999px;
  background: linear-gradient(
    180deg,
    rgba(255,255,255,0) 0%,
    rgba(83,155,255,.98) 50%,
    rgba(255,255,255,0) 100%
  );
  background-size: 100% 90px;
  background-repeat: no-repeat;
  background-position: 0 0;
  filter: blur(1px);
  animation: lineRunnerFull 4.5s linear infinite;
  pointer-events: none;
}

/* แถวแต่ละรายการ */
.keydate-row {
  position: relative;
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 18px;
  align-items: stretch;
}

/* เลขลำดับ */
.keydate-no {
  position: relative;
  z-index: 2;
  width: 76px;
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 14px;
  border-radius: 24px;
  background: linear-gradient(135deg, #ffffff 0%, #eef5ff 100%);
  border: 1px solid rgba(18, 60, 115, 0.08);
  box-shadow:
    0 14px 30px rgba(18, 60, 115, 0.08),
    0 4px 10px rgba(18, 60, 115, 0.04);
  color: #123c73;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  transition: transform .28s ease, box-shadow .28s ease;
  animation: floatBadge 4.2s ease-in-out infinite;
}

.keydate-row:hover .keydate-no {
  transform: translateY(-4px) scale(1.04);
  box-shadow:
    0 18px 34px rgba(18, 60, 115, 0.12),
    0 8px 16px rgba(18, 60, 115, 0.06);
}

/* ตัวเนื้อหา */
.keydate-content {
  position: relative;
  padding: 24px 26px;
  border-radius: 26px;
  background: rgba(255,255,255,0.84);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(18, 60, 115, 0.08);
  box-shadow:
    0 16px 34px rgba(18, 60, 115, 0.08),
    0 5px 12px rgba(18, 60, 115, 0.04);
  transition: transform .32s ease, box-shadow .32s ease, border-color .32s ease;
  overflow: hidden;
}

/* แสงเฉียงบนการ์ด */
.keydate-content::before {
  content: "";
  position: absolute;
  top: -120%;
  left: -35%;
  width: 42%;
  height: 280%;
  transform: rotate(22deg);
  background: linear-gradient(
    180deg,
    rgba(255,255,255,0) 0%,
    rgba(255,255,255,.65) 50%,
    rgba(255,255,255,0) 100%
  );
  opacity: 0;
  transition: opacity .2s ease;
  pointer-events: none;
}

.keydate-content:hover {
  transform: translateY(-8px);
  box-shadow:
    0 24px 42px rgba(18, 60, 115, 0.12),
    0 8px 16px rgba(18, 60, 115, 0.05);
  border-color: rgba(18, 60, 115, 0.16);
}

.keydate-content:hover::before {
  opacity: 1;
  animation: cardShine 1s ease;
}

.keydate-topline {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 12px;
  align-items: center;
  margin-bottom: 10px;
}

.keydate-date {
  color: #e45a2a;
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.keydate-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 12px;
  border-radius: 999px;
  background: #edf4ff;
  color: #123c73;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: transform .25s ease, background .25s ease;
}

.keydate-row:hover .keydate-tag {
  transform: translateY(-1px);
  background: #dfeeff;
}

.keydate-content h3 {
  margin: 0 0 10px;
  font-size: 1.22rem;
  font-weight: 800;
  line-height: 1.45;
  color: #0f2f59;
}

.keydate-content p {
  margin: 0;
  color: #607089;
  font-size: 0.96rem;
  line-height: 1.8;
}

/* featured row */
.keydate-row.featured .keydate-no {
  background: linear-gradient(135deg, #ffb347 0%, #ff8a1d 100%);
  color: #ffffff;
  border-color: rgba(255, 138, 29, 0.28);
  box-shadow:
    0 16px 34px rgba(255, 138, 29, 0.22),
    0 6px 14px rgba(255, 138, 29, 0.10);
}

.keydate-row.featured .keydate-content {
  background: linear-gradient(135deg, #0d2d58 0%, #123c73 62%, #1c5cab 100%);
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow:
    0 24px 46px rgba(18, 60, 115, 0.20),
    0 10px 18px rgba(18, 60, 115, 0.10);
}

.keydate-row.featured .keydate-content::after {
  content: "";
  position: absolute;
  inset: auto -20% -55% auto;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.18) 0%, rgba(255,255,255,0.05) 35%, transparent 72%);
  pointer-events: none;
}

.keydate-row.featured .keydate-date {
  color: #ffd166;
}

.keydate-row.featured .keydate-tag {
  background: rgba(255,255,255,0.14);
  color: #ffffff;
}

.keydate-row.featured h3,
.keydate-row.featured p {
  color: #ffffff;
}

/* =========================================================
   Reveal Animation
========================================================= */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity .8s ease,
    transform .8s ease;
  transition-delay: var(--delay, 0s);
  will-change: opacity, transform;
}

.reveal-left {
  transform: translateX(-34px);
}

.reveal.is-visible {
  opacity: 1;
  transform: translate(0, 0);
}

/* =========================================================
   Keyframes
========================================================= */
@keyframes keydatesFloatGlow {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(-20px, 18px, 0) scale(1.06); }
}

@keyframes dotPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 122, 0, 0.34);
  }
  70% {
    box-shadow: 0 0 0 12px rgba(255, 122, 0, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(255, 122, 0, 0);
  }
}

@keyframes floatBadge {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

@keyframes lineRunnerFull {
  0% {
    background-position: 0 0;
    opacity: 0;
  }
  8% {
    opacity: 1;
  }
  90% {
    opacity: .95;
  }
  100% {
    background-position: 0 100%;
    opacity: 0;
  }
}

@keyframes cardShine {
  0% {
    transform: translateX(-180%) rotate(22deg);
  }
  100% {
    transform: translateX(420%) rotate(22deg);
  }
}

/* =========================================================
   Responsive
========================================================= */
@media (max-width: 1199.98px) {
  .keydates-v2-wrap {
    grid-template-columns: 0.95fr 1.3fr;
    gap: 30px;
  }

  .keydate-content {
    padding: 22px 22px;
  }
}

@media (max-width: 991.98px) {
  .home-keydates-v2 {
    padding: 84px 0;
  }

  .keydates-v2-wrap {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .keydates-v2-intro {
    position: relative;
    top: auto;
  }
}

@media (max-width: 575.98px) {
  .home-keydates-v2 {
    padding: 72px 0;
  }

  .home-keydates-v2::after {
    width: 340px;
    height: 340px;
    top: -90px;
    right: -110px;
  }

  .keydate-row {
    grid-template-columns: 58px 1fr;
    gap: 14px;
  }

  .keydates-v2-list::before {
    left: 28px;
  }

  .keydates-v2-list::after {
    left: 25px;
  }

  .keydate-no {
    width: 58px;
    height: 58px;
    border-radius: 18px;
    font-size: 1rem;
    margin-top: 10px;
  }

  .keydate-content {
    padding: 18px 16px;
    border-radius: 20px;
  }

  .keydate-content h3 {
    font-size: 1.04rem;
  }

  .keydate-content p {
    font-size: 0.92rem;
  }

  .keydates-v2-intro h2 {
    font-size: 2rem;
  }

  .keydates-v2-intro p {
    font-size: 0.95rem;
    line-height: 1.75;
  }
}

/* ลด motion สำหรับเครื่องที่ตั้งค่า reduce motion */
@media (prefers-reduced-motion: reduce) {
  .home-keydates-v2::after,
  .badge-dot,
  .keydate-no,
  .keydates-v2-list::after {
    animation: none !important;
  }

  .reveal,
  .keydate-content,
  .keydate-no,
  .keydate-tag {
    transition: none !important;
  }
}