* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }
body {  }

:root {
  --site-content-width: 1200px;
}


/* HERO BANNER SLIDER */
.hero-banner-section {
  width: 100%;
  padding: 24px 16px 0;

}

.hero-banner-container {
  width: 100%;
  max-width: var(--site-content-width);
  margin: 0 auto;
}

.hero-banner-carousel {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 16px;
  background: #f0ebe4;
}

.hero-banner-carousel .carousel-inner,
.hero-banner-carousel .carousel-item {
  width: 100%;
}

.hero-banner-carousel .carousel-item {
  aspect-ratio: 1200 / 630;
}

.hero-banner-carousel .carousel-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-banner-carousel .hero-banner-control {
  top: 50%;
  bottom: auto;
  width: clamp(42px, 4.5vw, 58px);
  height: clamp(42px, 4.5vw, 58px);
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.42);
  opacity: 1;
  transform: translateY(-50%);
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.hero-banner-carousel .carousel-control-prev {
  left: clamp(10px, 2vw, 24px);
}

.hero-banner-carousel .carousel-control-next {
  right: clamp(10px, 2vw, 24px);
}

.hero-banner-carousel .hero-banner-control:hover,
.hero-banner-carousel .hero-banner-control:focus-visible {
  background: rgba(0, 100, 90, 0.88);
}

.hero-banner-carousel .hero-banner-control:active {
  transform: translateY(-50%) scale(0.94);
}

.hero-banner-carousel .carousel-control-prev-icon,
.hero-banner-carousel .carousel-control-next-icon {
  width: clamp(18px, 2vw, 26px);
  height: clamp(18px, 2vw, 26px);
  background-size: 100% 100%;
}

.hero-banner-frame {
  width: 100%;
  aspect-ratio: 1200 / 630;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 1px dashed #cfcfcf;
  border-radius: 16px;
  background: #f0ebe4;
  color: #9a9a9a;
  font-family: "Noto Sans Thai", Tahoma, Arial, sans-serif;
  font-size: clamp(14px, 1.3vw, 18px);
}

.hero-banner-frame img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.hero-banner-frame.has-banner {
  /* aspect-ratio: 1900 / 550; */
  border: 0;
}

.hero-banner-frame.has-banner picture,
.hero-banner-frame.has-banner img {
  display: block;
  width: 100%;
  height: 100%;
}

@media (max-width: 575.98px) {
  .hero-banner-section {
    padding: 16px 12px 0;
  }

  .hero-banner-carousel {
    border-radius: 12px;
  }

  .hero-banner-carousel .hero-banner-control {
    width: 40px;
    height: 40px;
  }
}
.age-well-intro, .healthy-aging-section, .aging-checkup-section{
  padding: 5rem 2rem;
}

/* ==================================================
   AGE WELL INTRO
   Centered copy section based on the supplied reference.
================================================== */
.age-well-intro {
  width: 100%;

  background: #ffffff;
  font-family: "IBM Plex Sans Thai", sans-serif;
  text-align: center;
}

.age-well-intro-container {
  width: 100%;
  max-width: var(--site-content-width);
  margin: 0 auto;
}

.age-well-intro-title {
  margin: 0 0 12px;
  color: #be4e2c;
  font-family: "IBM Plex Sans Thai", sans-serif;
  font-size: clamp(34px, 3.3vw, 52px);
  font-weight: 600;
  line-height: 1.08;
}

.age-well-intro-lead {
  margin: 0 0 16px;
  color: #af9f2d;
  font-size: clamp(21px, 2vw, 31px);
  font-weight: 400;
  line-height: 1.45;
}

.age-well-intro-copy {
  margin: 0 auto 18px;
  color: #231f20;
  font-size: clamp(16px, 1.25vw, 18px);
  font-weight: 400;
  line-height: 1.65;
}

.age-well-intro-kicker {
  margin: 0 0 1px;
  color: #be4e2c;
  font-family: "IBM Plex Sans Thai", sans-serif;
  font-size: clamp(17px, 1.4vw, 22px);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: .02em;
}

.age-well-intro-closing {
  margin: 0;
  color: #231f20;
  font-size: clamp(14px, 1.08vw, 17px);
  font-weight: 500;
  line-height: 1.45;
}

@media (max-width: 767px) {
  .age-well-intro {
    padding: 34px 18px 32px;
  }

  .age-well-intro-title {
    margin-bottom: 10px;
  }

  .age-well-intro-lead {
    margin-bottom: 14px;
  }

  .age-well-intro-copy br {
    display: none;
  }
}

.healthy-aging-section {
  --green: #af9f2d;
  --orange: #be4e2c;
  --title-green: #af9f2d;
  --title-orange: #be4e2c;
  --bg: #fff9f4;
  width: 100%;

  background: var(--bg);
  font-family: "Noto Sans Thai", Tahoma, Arial, sans-serif;
}

.healthy-aging-container {
  width: 100%;
  max-width: var(--site-content-width);
  margin-left: auto;
  margin-right: auto;
}

.healthy-aging-title {
  gap: 16px;
  margin: 0 0 38px;
  font-size: clamp(31px, 3vw, 53px);
  font-weight: 600;
  line-height: 1.18;
  letter-spacing: -0.02em;
}
.healthy-aging-title .title-black { color: #292925; }
.healthy-aging-title .title-green { color: var(--title-green); }
.healthy-aging-title .title-orange { color: var(--title-orange); }

/* ==================================================
   DESKTOP LAYOUT
   - การ์ดยังแยกเป็น 4 ใบเหมือนเดิม
   - ทางม้าลายเป็นภาพเดียวพาดต่อเนื่องด้านล่าง
================================================== */
.healthy-aging-grid {
  position: relative;
  width: 100%;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(18px, 2.2vw, 12px);
}

/* บน desktop ให้ wrapper ของแต่ละคู่ไม่สร้าง layout เพิ่ม */
.healthy-aging-row { display: contents; }

/* Do not clip hover movement at grid/row level. */
.healthy-aging-grid,
.healthy-aging-row {
  overflow: visible;
}

.health-card {
  position: relative;
  min-width: 0;
  height: clamp(500px, 39vw, 590px);
  /* Allow the person image to remain visible when hover moves it outside the card.
     The card background still respects border-radius. */
  overflow: visible;
  border-radius: 38px;
  cursor: pointer;
}
.health-card.card-green { background: var(--green); }
.health-card.card-orange { background: var(--orange); }

.health-copy {
  position: relative;
  z-index: 9;
  padding: 30px 18px;
  color: #fff;
  opacity: 1;
  transform: translateY(0);
  transition: transform .55s ease;
}
.health-copy h3 {
  margin: 0 0 14px;
  color: #fff;
  font-size: clamp(24px, 1.25vw, 34px);
  font-weight: 400;
  line-height: 1.35;
  letter-spacing: -0.015em;
}
.health-copy p {
  margin: 0;
  color: rgba(255,255,255,.95);
  font-size: clamp(17px, 1vw, 22px);
  font-weight: 300;
  line-height: 1.52;
}

/* ==================================================
   PEOPLE
   z-index มากกว่าทางม้าลาย เพื่อให้เท้ายืนทับบนทางม้าลาย
================================================== */
.health-person {
  position: absolute;
  z-index: 8;
  display: block;
  object-fit: contain;
  transform-origin: 50% 100%;
  transform: translate3d(0,0,0) scale(1) rotate(0deg);
  filter: drop-shadow(0 8px 7px rgba(0,0,0,.10));
  transition: transform .72s cubic-bezier(.2,.7,.25,1), filter .72s ease;
  pointer-events: none;
  will-change: transform;
}
.person-1 { width: 100%; right: -13%; bottom: 28px; }
.person-2 { width: 100%; right: -17%; bottom: 24px; }
.person-3 { width: 100%; right: -18%; bottom: 24px; }
.person-4 { width: 100%; right: -17%; bottom: 24px; }

/* ==================================================
   REAL CROSSWALK IMAGE
   ใช้ไฟล์จากภาพที่ผู้ใช้ให้มา ไม่สร้างด้วย CSS gradient
================================================== */
.crosswalk-strip {
  position: absolute;
  z-index: 2;
  left: 0;
  bottom: 0;
  width: 100%;
  height: auto;
  display: block;
  pointer-events: none;
  user-select: none;
}

/* Desktop ใช้ภาพเต็มทั้ง 4 การ์ด */
.crosswalk-full { display: block; }
.crosswalk-row { display: none; }

/* ==================================================
   HOVER EFFECT — คง effect เดิมไว้
================================================== */
.health-card:hover .health-person,
.health-card:focus-within .health-person {
  transform: translate3d(0,-13px,0) scale(1.035) rotate(-.3deg);
  filter: drop-shadow(0 16px 15px rgba(0,0,0,.16));
}
.health-card:hover .health-copy,
.health-card:focus-within .health-copy {
  transform: translateY(7px);
}

.healthy-pagination {
  gap: 14px;
  padding-top: 29px;
  display: none !important;
}
.healthy-pagination span {
  width: 13px;
  height: 13px;
  display: block;
  border-radius: 999px;
  background: #deded9;
}
.healthy-pagination span.active {
  width: 38px;
  background: #af9f2d;
}

/* ==================================================
   TABLET
   แบ่งเป็น 2 การ์ดต่อแถว และใช้ภาพทางม้าลายครึ่งซ้าย/ขวา
   เพื่อให้แต่ละแถวต่อกันเหมือน desktop
================================================== */
@media (max-width: 1100px) {
  .healthy-aging-grid {
    display: block;
  }

  .healthy-aging-row {
    position: relative;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
  }

  .healthy-aging-row + .healthy-aging-row {
    margin-top: 24px;
  }

  .health-card { height: 570px; }

  .crosswalk-full { display: none; }
  .crosswalk-row { display: block; }
}

@media (max-width: 767px) {
  .healthy-aging-section { padding: 30px 16px 24px; }
  .healthy-aging-title {
    flex-wrap: wrap;
    gap: 4px 10px;
    margin-bottom: 25px;
    text-align: center;
    font-size: 30px;
  }

  .healthy-aging-row {
    gap: 12px;
  }

  .healthy-aging-row + .healthy-aging-row {
    margin-top: 12px;
  }

  .health-card { height: 370px; border-radius: 22px; }
  .health-copy { padding: 20px 15px; }
  .health-copy h3 { margin-bottom: 13px; font-size: 19px; line-height: 1.35; }
  .health-copy p { font-size: 13px; line-height: 1.45; }
  .person-1, .person-2, .person-3, .person-4 {
    width: 103%;
    right: -25%;
    bottom: 14px;
  }
}

@media (max-width: 480px) {
  .healthy-aging-title { font-size: 27px; }
  .healthy-aging-row { gap: 8px; }
  .healthy-aging-row + .healthy-aging-row { margin-top: 8px; }
  .health-card { height: 330px; border-radius: 18px; }
  .health-copy { padding: 24px 18px }
  .health-copy h3 { font-size: 20px; }
  .health-copy p { font-size: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  .health-person, .health-copy { transition: none; }
}

/* Reveal each landing page section once as it enters the viewport. */
@media (prefers-reduced-motion: no-preference) {
  .landing-reveal-ready body > section {
    opacity: 0;
    transition: opacity .85s ease;
  }

  .landing-reveal-ready body > section.is-visible {
    opacity: 1;
  }
}

/* ==================================================
   MOBILE: ONE-CARD SWIPE SLIDER
   - Desktop / tablet rules above stay unchanged.
   - Show one card at a time with a small peek of the next card.
   - Keep the existing people/text hover layers untouched.
================================================== */
@media (max-width: 767px) {
  .healthy-aging-grid {
    /* Native horizontal swipe with one-card snapping. */
    display: flex;
    width: 100%;
    gap: 12px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: 0;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
    padding: 16px 0 18px;
    margin-top: -16px;
    margin-bottom: -18px;
  }

  .healthy-aging-grid::-webkit-scrollbar {
    display: none;
  }

  /* Flatten tablet row wrappers so all 4 cards become one continuous slider. */
  .healthy-aging-row {
    display: contents;
  }

  .healthy-aging-row + .healthy-aging-row {
    margin-top: 0;
  }

  .health-card {
    /* 88% leaves a subtle preview of the following card. */
    flex: 0 0 88%;
    width: 88%;
    min-width: 88%;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    overflow: visible;
  }

  /* On mobile each card receives its own quarter of the real crosswalk image.
     The people remain z-index:8, so they still stand above the crosswalk. */
  .health-card::after {
    content: "";
    position: absolute;
    z-index: 2;
    left: 0;
    right: 0;
    bottom: 0;
    height: 108px;
    border-radius: 0 0 22px 22px;
    background-image: url('../assets/images/crosswalk.png');
    background-size: 400% 100%;
    background-repeat: no-repeat;
    pointer-events: none;
    user-select: none;
  }

  .row-1 .health-card:nth-child(1)::after { background-position: 0% 100%; }
  .row-1 .health-card:nth-child(2)::after { background-position: 33.333% 100%; }
  .row-2 .health-card:nth-child(1)::after { background-position: 66.667% 100%; }
  .row-2 .health-card:nth-child(2)::after { background-position: 100% 100%; }

  /* Hide desktop/tablet crosswalk strips only on mobile; the pseudo layer above replaces them. */
  .crosswalk-full,
  .crosswalk-row {
    display: none !important;
  }

  /* Four cards = four mobile indicators. Keep desktop's original indicators unchanged. */
  .healthy-pagination span:nth-child(n+5) {
    display: none;
  }

  .healthy-pagination {
    padding-top: 24px;
  }

  .healthy-pagination span {
    cursor: pointer;
    transition: width .25s ease, background-color .25s ease;
  }
}

@media (max-width: 480px) {
  .healthy-aging-grid {
    gap: 10px;
  }

  .health-card {
    flex-basis: 88%;
    width: 88%;
    min-width: 88%;
  }

  .health-card::after {
    height: 96px;
    border-radius: 0 0 18px 18px;
  }
}

/* ==================================================
   MOBILE V5: DEDICATED ONE-CARD SLIDER
   This block intentionally comes last so it overrides the old mobile grid rules.
   Desktop/tablet are untouched.
================================================== */
.healthy-aging-mobile-slider {
  display: none;
}

@media (max-width: 767px) {
  /* The original desktop/tablet grid stays in the DOM, but the cards are moved
     into the dedicated mobile track by mobile-slider.js. */
  .healthy-aging-grid {
    display: none !important;
  }

  .healthy-aging-mobile-slider {
    display: flex;
    width: calc(100% + 16px);
    margin-right: -16px;
    gap: 12px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-padding-left: 0;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    touch-action: pan-x;
    scrollbar-width: none;
    padding: 14px 16px 18px 0;
    margin-top: -14px;
    margin-bottom: -18px;
  }

  .healthy-aging-mobile-slider::-webkit-scrollbar {
    display: none;
  }

  .healthy-aging-mobile-slider .health-card {
    /* One main card + a small preview of the next card. */
    flex: 0 0 86%;
    width: 86%;
    min-width: 86%;
    height: 370px;
    border-radius: 22px;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    overflow: visible;
  }

  /* Rebuild the exact crosswalk as a per-card slice on mobile only.
     z-index remains below people (8) and copy (9), so all old effects stay intact. */
  .healthy-aging-mobile-slider .health-card::after {
    content: "";
    position: absolute;
    z-index: 2;
    left: 0;
    right: 0;
    bottom: 0;
    height: 108px;
    border-radius: 0 0 22px 22px;
    background-image: url('../assets/images/education-section/crosswalk_crosswalk.png');
    background-size: 400% 100%;
    background-repeat: no-repeat;
    pointer-events: none;
    user-select: none;
  }

  .healthy-aging-mobile-slider .health-card[data-slide="0"]::after { background-position: 0% 100%; }
  .healthy-aging-mobile-slider .health-card[data-slide="1"]::after { background-position: 33.333% 100%; }
  .healthy-aging-mobile-slider .health-card[data-slide="2"]::after { background-position: 66.667% 100%; }
  .healthy-aging-mobile-slider .health-card[data-slide="3"]::after { background-position: 100% 100%; }

  /* Keep the person layers/effects exactly as before. */
  .healthy-aging-mobile-slider .person-1,
  .healthy-aging-mobile-slider .person-2,
  .healthy-aging-mobile-slider .person-3,
  .healthy-aging-mobile-slider .person-4 {
    width: 103%;
    right: -25%;
    bottom: 14px;
  }

  .healthy-pagination span:nth-child(n+5) {
    display: none;
  }

  .healthy-pagination {
    padding-top: 24px;
  }

  .healthy-pagination span {
    cursor: pointer;
    transition: width .25s ease, background-color .25s ease;
  }
}

@media (max-width: 480px) {
  .healthy-aging-mobile-slider {
    gap: 10px;
  }

  .healthy-aging-mobile-slider .health-card {
    flex-basis: 86%;
    width: 86%;
    min-width: 86%;
    height: 330px;
    border-radius: 18px;
  }

  .healthy-aging-mobile-slider .health-card::after {
    height: 96px;
    border-radius: 0 0 18px 18px;
  }
}

/* ==================================================
   MOBILE V6: KEEP PEOPLE INSIDE CARD HEIGHT
   Desktop/tablet and all existing effects remain unchanged.
   The image box is capped to the card height above the feet baseline,
   so the person no longer protrudes above the card in the resting state.
================================================== */
@media (max-width: 767px) {
  .healthy-aging-mobile-slider .health-person {
    /* Preserve each cutout's aspect ratio while fitting its full height
       inside the card. The existing bottom position keeps the feet on
       the crosswalk. */
    width: 103%;
    height: calc(100% - 14px);
    max-height: calc(100% - 14px);
    object-fit: contain;
    object-position: center bottom;
  }

  .healthy-aging-mobile-slider .person-1,
  .healthy-aging-mobile-slider .person-2,
  .healthy-aging-mobile-slider .person-3,
  .healthy-aging-mobile-slider .person-4 {
    bottom: 14px;
  }
}

/* ==================================================
   PHYATHAI HEADER — Bootstrap 5
   Scoped to .site-header so the Healthy Aging artwork/effects are untouched.
================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1020;
  min-height: 98px;
  border-top: 1px solid #333;
  font-family: "Noto Sans Thai", Tahoma, Arial, sans-serif;
  color: #303030;
  border-bottom: 1px solid #eeeeee;
}

#package-promotion {
  scroll-margin-top: 110px;
}

.site-header .site-header-inner {
  width: 100%;
  max-width: var(--site-content-width);
  min-height: 97px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 14px;
  padding-right: 14px;
}

.site-header .site-logo-wrap {
  flex: 0 0 auto;
}

.site-header .site-logo {
  width: 142px;
  height: auto;
}

.site-header .navbar-collapse {
  flex-grow: 1;
}

.site-header .site-nav-layout {
  min-width: 0;
}

.site-header a {
  color: #303030;
}

.site-header a:hover,
.site-header a:focus {
  color: #af9f2d;
}

.site-header .site-phone {
  flex: 0 0 auto;
  gap: 10px;
  margin-left: 30px;
  font-size: 17px;
  font-weight: 400;
  white-space: nowrap;
}

.site-header .site-phone svg,
.site-header .site-action svg {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.55;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.site-header .site-phone svg {
  width: 19px;
  height: 19px;
  fill: currentColor;
  stroke: none;
}

.site-header .site-main-menu {
  flex: 0 0 auto;
  justify-content: flex-end;
  gap: clamp(12px, 1.7vw, 24px);
  margin: 0 0 0 auto;
}

.site-header .site-menu-link {
  gap: 7px;
  padding: 8px 0 !important;
  color: #303030;
  font-size: 18px;
  font-weight: 400;
  white-space: nowrap;
}

.site-header .menu-chevron {
  width: 13px;
  height: 13px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.35;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.site-header .site-header-actions {
  flex: 0 0 auto;
  gap: 24px;
  white-space: nowrap;
}

.site-header .site-action {
  gap: 8px;
  font-size: 17px;
  font-weight: 400;
}

.site-header .site-login svg {
  width: 20px;
  height: 20px;
}

.site-header .site-language svg {
  width: 20px;
  height: 20px;
}

.site-header .site-search {
  width: 26px;
  height: 40px;
}

.site-header .site-search svg {
  width: 19px;
  height: 19px;
}

.site-header .header-divider {
  width: 1px;
  height: 34px;
  background: #d5d5d5;
}

@media (max-width: 1199.98px) and (min-width: 992px) {
  .site-header .site-logo { width: 136px; }
  .site-header .site-phone { margin-left: 24px; }
  .site-header .site-main-menu {
    gap: 12px;
    margin-left: auto;
    margin-right: 0;
  }
  .site-header .site-header-actions { gap: 17px; }
  .site-header .site-menu-link,
  .site-header .site-phone,
  .site-header .site-action { font-size: 16px; }
}

@media (max-width: 991.98px) {
  .site-header {
    min-height: 72px;
  }

  #package-promotion {
    scroll-margin-top: 82px;
  }

  .site-header .site-header-inner {
    min-height: 71px;
    padding-left: 16px;
    padding-right: 16px;
  }

  .site-header .site-logo {
    width: 126px;
  }

  .site-header .navbar-toggler {
    padding: 8px 0 8px 12px;
  }

  .site-header .navbar-collapse {
    margin: 0 -16px;
    padding: 12px 16px 20px;
    border-top: 1px solid #ececec;
    background: #fff;
  }

  .site-header .site-phone {
    margin: 0;
    padding: 10px 0;
  }

  .site-header .site-main-menu {
    display: block;
    margin: 4px 0 0;
    text-align: right;
  }

  .site-header .site-menu-link {
    justify-content: flex-end;
    padding: 10px 0 !important;
  }

  .site-header .site-header-actions {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 16px;
    padding-top: 12px;
    border-top: 1px solid #ececec;
  }

  .site-header .site-search {
    width: 28px;
  }
}

/* ==================================================
   PHYATHAI FOOTER — Bootstrap 5
   Scoped to .site-footer so the Healthy Aging section and header stay untouched.
================================================== */
.site-footer {
  position: relative;
  z-index: 20;
  padding: 54px 0 38px;
  border-top: 1px solid #f1f1f1;
  font-family: "Noto Sans Thai", Tahoma, Arial, sans-serif;
  color: #77747b;
}

.site-footer .footer-container {
  max-width: var(--site-content-width);
}

.site-footer a {
  color: inherit;
}

.site-footer a:hover,
.site-footer a:focus {
  color: #af9f2d;
}

.site-footer .footer-logo {
  width: 176px;
  height: auto;
}

.site-footer .footer-tagline {
  margin-top: 22px;
  color: #6f6b70;
  font-size: 15px;
  font-weight: 600;
}

.site-footer .footer-description {
  color: #858187;
  font-size: 15px;
  line-height: 1.65;
}

.site-footer .footer-contact {
  gap: 16px;
  color: #111;
}

.site-footer .footer-contact-icon {
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
}

.site-footer .footer-contact-icon svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 3.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.site-footer .footer-contact small,
.site-footer .footer-contact strong {
  display: block;
  line-height: 1.15;
}

.site-footer .footer-contact small {
  margin-bottom: 4px;
  font-size: 14px;
  font-weight: 400;
}

.site-footer .footer-contact strong {
  color: #111;
  font-size: 16px;
  font-weight: 600;
}

.site-footer .footer-menu-col h3,
.site-footer .footer-follow-copy h3 {
  margin: 0 0 24px;
  color: #111;
  font-size: 16px;
  font-weight: 600;
}

.site-footer .footer-menu-col {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.site-footer .footer-menu-col a {
  text-decoration: none;
  color: #8b868b;
  font-size: 15px;
  line-height: 1.25;
}

.site-footer .footer-mid {
  margin-top: 36px;
}

.site-footer .footer-socials {
  gap: 12px;
}

.site-footer .footer-socials a {
  display: inline-flex;
  width: 47px;
  height: 47px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #c8f0dd;
  color: #af9f2d;
  text-decoration: none;
  font-family: Arial, sans-serif;
  font-size: 26px;
  line-height: 1;
  border: 1px solid rgba(175,159,45,.04);
}

.site-footer .footer-socials .footer-line {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: -.04em;
}

.site-footer .footer-socials svg {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
}

.site-footer .health-up-card {
  width: 246px;
  min-height: 74px;
  margin-top: 24px;
  padding: 12px 14px;
  border: 1px solid #bfead8;
  border-radius: 8px;
  color: #77747b;
  background: #fff;
}

.site-footer .health-up-mark {
  color: #af9f2d;
  font-size: 11px;
  font-weight: 700;
  line-height: .95;
  transform: rotate(-4deg);
}

.site-footer .health-up-mark b {
  display: inline-block;
  margin-left: 8px;
  color: #f7ae29;
  font-size: 25px;
  line-height: .9;
}

.site-footer .health-up-copy {
  margin-left: 28px;
  font-size: 12px;
  line-height: 1.25;
}

.site-footer .health-up-download svg {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: #a5a1a6;
  stroke-width: 1.3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.site-footer .footer-subscribe-wrap {
  display: flex;
  align-items: flex-start;
  gap: 36px;
  padding-top: 2px;
}

.site-footer .footer-follow-copy {
  min-width: 190px;
}

.site-footer .footer-follow-copy h3 {
  margin-bottom: 2px;
}

.site-footer .footer-follow-copy p {
  color: #8b868b;
  font-size: 14px;
  white-space: nowrap;
}

.site-footer .footer-subscribe {
  position: relative;
  display: flex;
  align-items: center;
  width: min(100%, 480px);
  height: 56px;
  margin-left: auto;
  border: 1px solid #dedbdd;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}

.site-footer .footer-email-icon {
  display: inline-flex;
  margin-left: 14px;
  color: #a4a1a5;
}

.site-footer .footer-email-icon svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
}

.site-footer .footer-subscribe input {
  min-width: 0;
  flex: 1 1 auto;
  height: 100%;
  padding: 0 12px;
  border: 0;
  outline: none;
  color: #444;
  font: inherit;
  font-size: 14px;
  background: transparent;
}

.site-footer .footer-subscribe input::placeholder {
  color: #b5b1b5;
  opacity: 1;
}

.site-footer .footer-subscribe button {
  height: 100%;
  padding: 0 28px;
  border: 0;
  background: transparent;
  color: #af9f2d;
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
}

.site-footer .footer-bottom {
  gap: 28px;
  margin-top: 52px;
}

.site-footer .footer-copyright,
.site-footer .footer-policy-links a {
  color: #a19aa6;
  font-size: 14px;
}

.site-footer .footer-policy-wrap {
  justify-content: flex-end;
  gap: 34px;
}

.site-footer .footer-policy-links {
  max-width: 490px;
  justify-content: flex-end;
  gap: 24px 42px;
}

.site-footer .footer-policy-links a {
  text-decoration: none;
  white-space: nowrap;
}

.site-footer .footer-dbd {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #2b2f86;
  font-family: Arial, sans-serif;
  font-weight: 800;
  line-height: .8;
  transform: skew(-10deg);
}

.site-footer .footer-dbd span {
  font-size: 25px;
}

.site-footer .footer-dbd small {
  margin-top: 7px;
  color: #0083c9;
  font-size: 8px;
  transform: skew(10deg);
}

.site-footer .footer-float-actions {
  position: absolute;
  right: 8px;
  bottom: 63px;
  gap: 8px;
}

.site-footer .float-action {
  display: inline-flex;
  width: 58px;
  height: 58px;
  align-items: center;
  justify-content: center;
  border: 1px solid #e5e2e4;
  border-radius: 5px;
  text-decoration: none;
}

.site-footer .float-action svg {
  width: 27px;
  height: 27px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.site-footer .float-top {
  color: #af9f2d;
  background: #fff;
}

.site-footer .float-chat {
  color: #fff;
  background: #6fd29a;
  border-color: #6fd29a;
}

.site-footer .float-cart {
  color: #fff;
  background: #af9f2d;
  border-color: #af9f2d;
}

@media (max-width: 1199.98px) {
  .site-footer .footer-container {
    max-width: 960px;
  }

  .site-footer .footer-subscribe-wrap {
    gap: 22px;
  }

  .site-footer .footer-policy-links {
    gap: 20px 28px;
  }
}

@media (max-width: 991.98px) {
  .site-footer {
    padding-top: 44px;
  }

  .site-footer .footer-menu-col h3 {
    margin-bottom: 6px;
  }

  .site-footer .footer-mid {
    margin-top: 8px;
  }

  .site-footer .footer-subscribe-wrap {
    flex-direction: column;
  }

  .site-footer .footer-subscribe {
    margin-left: 0;
  }

  .site-footer .footer-bottom {
    margin-top: 40px;
  }

  .site-footer .footer-policy-wrap,
  .site-footer .footer-policy-links {
    justify-content: flex-start;
  }
}

@media (max-width: 575.98px) {
  .site-footer {
    padding: 38px 0 28px;
  }

  .site-footer .footer-logo {
    width: 154px;
  }

  .site-footer .footer-tagline {
    margin-top: 16px;
  }

  .site-footer .footer-top {
    --bs-gutter-y: 2.25rem;
  }

  .site-footer .footer-menu-col {
    gap: 12px;
  }

  .site-footer .footer-menu-col h3 {
    font-size: 15px;
  }

  .site-footer .footer-menu-col a {
    font-size: 14px;
  }

  .site-footer .footer-socials a {
    width: 42px;
    height: 42px;
  }

  .site-footer .health-up-card {
    width: 100%;
    max-width: 280px;
  }

  .site-footer .footer-subscribe {
    height: 52px;
  }

  .site-footer .footer-subscribe button {
    padding: 0 14px;
    font-size: 13px;
  }

  .site-footer .footer-policy-links {
    gap: 14px 22px;
  }
}

/* ==================================================
   AGING WELL CHECKUP SECTION
   4 columns x 2 rows on desktop, inspired by supplied reference
================================================== */
.aging-checkup-section {
  width: 100%;

  background: #ffffff;
  font-family: "IBM Plex Sans Thai", sans-serif;
}

.aging-checkup-container {
  width: 100%;
  max-width: var(--site-content-width);
  margin: 0 auto;
}

.aging-checkup-heading {
  margin-bottom: 30px;
}

.aging-checkup-heading h2 {
  margin: 0;
  font-size: clamp(30px, 3vw, 46px);
  font-weight: 600;
  line-height: 1.2;
}

.aging-title-green {
  color: #af9f2d;
}

.aging-title-orange {
  color: #be4e2c;
}

.aging-checkup-heading p {
  margin: 4px 0 0;
  color: #77756f;
  font-size: clamp(16px, 1.15vw, 20px) !important;
  font-weight: 500;
}

.aging-check-card {
  min-height: 250px;
  padding: 24px 18px 22px;
  border: 1px solid #fff9f4;
  border-radius: 4px;
  background: #fff9f4;
  box-shadow: 0 8px 24px rgba(116, 100, 81, .04);
}

.aging-icon-frame {
  width: 92px;
  height: 92px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  border: 1.5px solid #be4e2c;
  border-radius: 50%;
  background: #fff9f4;
  color: #be4e2c;
}


.aging-icon-frame span {
  display: inline-flex;
  width: 58px;
  height: 58px;
  align-items: center;
  justify-content: center;
  border: 1px dashed #be4e2c;
  border-radius: 50%;
  font-family: Arial, sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
}

.aging-check-card h3 {
  margin: 0 0 7px;
  color: #af9f2d;
  font-size: clamp(16px, 1.28vw, 20px);
  font-weight: 600;
  line-height: 1.35;
}

.aging-check-card p {
  margin: 0;
  color: #231f20;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.55;
}

.aging-insight {
  margin-top: 28px;
  color: #af9f2d;
  line-height: 1.25;
}

.aging-insight strong,
.aging-insight span {
  display: block;
}

.aging-insight strong {
  font-size: 13px;
  letter-spacing: .04em;
}

.aging-insight span {
  margin-top: 3px;
  color: #8a867f;
  font-size: 11px;
  letter-spacing: .06em;
}

/* ==================================================
   PRIVILEGE BANNER SLIDER
   1200 x 630 placeholders, ready to replace with real images
================================================== */
.privilege-section {
  width: 100%;
  padding: 24px 16px 64px;
  background: #ffffff;
  font-family: "IBM Plex Sans Thai", sans-serif;
}

.privilege-container {
  width: 100%;
  max-width: var(--site-content-width);
  margin: 0 auto;
}

.privilege-heading {
  margin-bottom: 22px;
}

.privilege-heading h2 {
  margin: 0;
  color: #be4e2c;
  font-size: clamp(28px, 2.7vw, 42px);
  font-weight: 500;
}

.privilege-heading p {
  margin: 5px 0 0;
  color: #8a867f;
  font-size: 17px;
  font-weight: 600;
}

.privilege-carousel {
  padding-bottom: 34px;
}

.privilege-banner-frame {
  width: 100%;
  aspect-ratio: 1900 / 550;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 1px dashed #d7c5b6;
  border-radius: 14px;
  background:
    linear-gradient(135deg, rgba(239,226,210,.82), rgba(247,243,236,.96)),
    #f4eee6;
  color: #9c806d;
  text-align: center;
}

.privilege-banner-frame.has-banner {
  border: 0;
}

.privilege-banner-frame.has-banner picture,
.privilege-banner-frame.has-banner img {
  display: block;
  width: 100%;
  height: 100%;
}

.privilege-banner-frame > div {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.privilege-terms-action {
  margin-top: 20px;
}

.privilege-terms-button {
  min-width: 220px;
  padding: 10px 24px;
  border: 1px solid #00826a;
  border-radius: 999px;
  background: #00826a;
  color: #ffffff;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.4;
}

.privilege-terms-button:hover,
.privilege-terms-button:focus {
  border-color: #231f20;
  background: #231f20;
  color: #ffffff;
}

.privilege-banner-frame strong {
  font-size: clamp(20px, 2vw, 32px);
  font-weight: 600;
}

.privilege-banner-frame span {
  font-size: clamp(13px, 1.1vw, 17px);
  letter-spacing: .04em;
}

.privilege-control {
  width: 8%;
  opacity: .72;
}

.privilege-control .carousel-control-prev-icon,
.privilege-control .carousel-control-next-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background-color: rgba(95, 91, 77, .68);
  background-size: 18px 18px;
}

.privilege-indicators {
  bottom: 0;
  margin-bottom: 0;
  gap: 7px;
}

.privilege-indicators [data-bs-target] {
  width: 9px;
  height: 9px;
  margin: 0;
  border: 0;
  border-radius: 50%;
  background-color: #d8d4cc;
  opacity: 1;
}

.privilege-indicators .active {
  width: 32px;
  border-radius: 999px;
  background-color: #af9f2d;
}

@media (max-width: 991.98px) {
  .aging-checkup-section {
    padding-top: 46px;
  }

  .aging-check-card {
    min-height: 235px;
  }

  .aging-icon-frame {
    width: 82px;
    height: 82px;
  }

  .aging-icon-frame span {
    width: 52px;
    height: 52px;
  }
}

@media (max-width: 575.98px) {
  .aging-checkup-section {
    padding: 38px 12px 42px;
  }

  .aging-checkup-heading {
    margin-bottom: 22px;
  }

  .aging-checkup-heading h2 {
    font-size: 27px;
  }

  .aging-checkup-heading h2 span {
    display: block;
  }

  .aging-check-card {
    min-height: 220px;
    padding: 18px 10px 16px;
  }

  .aging-icon-frame {
    width: 70px;
    height: 70px;
    margin-bottom: 13px;
  }

  .aging-icon-frame span {
    width: 44px;
    height: 44px;
    font-size: 9px;
  }

  .aging-check-card h3 {
    font-size: 14px;
  }

  .aging-check-card p {
    font-size: 11px;
    line-height: 1.45;
  }

  .privilege-section {
    padding: 18px 12px 48px;
  }

  .privilege-heading {
    margin-bottom: 16px;
  }

  .privilege-heading h2 {
    font-size: 28px;
  }

  .privilege-heading p {
    font-size: 13px;
  }

  .privilege-banner-frame {
    border-radius: 10px;
  }

  .hero-banner-frame.has-banner,
  .privilege-banner-frame {
    aspect-ratio: 1080 / 600;
  }

  .privilege-control .carousel-control-prev-icon,
  .privilege-control .carousel-control-next-icon {
    width: 34px;
    height: 34px;
    background-size: 14px 14px;
  }
}


/* ==================================================
   PACKAGE HIGHLIGHT
   3 cards desktop / one-card scroll-snap slider mobile
================================================== */
.package-highlight-section {
  width: 100%;
  padding: 72px 16px 76px;
  background: #ffffff;
  font-family: "IBM Plex Sans Thai", "Noto Sans Thai", sans-serif;
}

.package-highlight-container {
  width: 100%;
  max-width: var(--site-content-width);
  margin: 0 auto;
}

.package-highlight-heading {
  margin-bottom: 42px;
}

.package-highlight-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  margin-bottom: 8px;
  padding: 7px 22px;
  border-radius: 0 0 12px 12px;
  background: #dcece8;
  color: #ffffff;
  font-size: 17px;
  font-weight: 600;
}

.package-highlight-heading h2 {
  margin: 0;
  color: #be4e2c;
  font-size: clamp(28px, 2.4vw, 38px);
  font-weight: 600;
  line-height: 1.25;
}

.package-highlight-heading p {
  margin: 4px 0 0;
  color: #8a7669;
  font-size: clamp(16px, 1.15vw, 20px) !important;
  font-weight: 500;
  line-height: 1.3;
}

.package-highlight-track {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  align-items: stretch;
  max-width: 940px;
  margin: 0 auto;
}

.package-card {
  min-width: 0;
  overflow: hidden;
  border: 0;
  border-radius: 56px 56px 15px 15px;
  background: #ffffff;
  box-shadow: none;
}

.package-image-frame {
  width: 100%;
  aspect-ratio: 305 / 470;
  display: block;
  overflow: hidden;
  padding: 0;
  border: 0;
  border-radius: 56px 56px 0 0;
  background: transparent;
  box-shadow: none;
  line-height: 0;
}

.package-card-image {
  width: 111.4754%;
  max-width: none;
  height: 100%;
  display: block;
  margin-left: -6.2295%;
  padding: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  object-fit: fill;
}

.package-image-green {
  background: linear-gradient(160deg, #dfe9d6 0%, #cfdcbc 100%);
}

.package-image-beige {
  background: linear-gradient(160deg, #efe5d5 0%, #dfcfb8 100%);
}

.package-image-orange {
  background: linear-gradient(160deg, #f1d8cc 0%, #dfad95 100%);
}

.package-card-body {
  padding: 20px 18px 18px;
}

.package-card h3 {
  min-height: 58px;
  margin: 0 0 17px;
  color: #231f20;
  font-size: 19px;
  font-weight: 700;
  line-height: 1.45;
}

.package-price-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  margin-bottom: 3px;
}

.package-old-price {
  color: #999999;
  font-size: 14px;
  text-decoration: line-through;
}

.package-discount {
  color: #e12c2c;
  font-size: 15px;
  font-weight: 700;
}

.package-current-price {
  margin-bottom: 17px;
  color: #00826a;
  font-size: 26px;
  font-weight: 700;
  line-height: 1.25;
}

.package-buy-button {
  width: 100%;
  padding: 10px 16px;
  border: 1px solid #00826a;
  border-radius: 9px;
  background: #00826a;
  color: #ffffff;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.35;
}

.package-buy-button:hover,
.package-buy-button:focus {
  border-color: #231f20;
  background: #231f20;
  color: #ffffff;
}

.package-mobile-hint {
  margin-top: 22px;
}

.package-mobile-hint span {
  display: inline-block;
  width: 10px;
  height: 10px;
  margin: 0 5px;
  border-radius: 999px;
  background: #deded9;
}

.package-mobile-hint span.active {
  width: 34px;
  background: #af9f2d;
}

@media (max-width: 991.98px) and (min-width: 768px) {
  .package-highlight-track {
    gap: 18px;
  }

  .package-card-body {
    padding-left: 15px;
    padding-right: 15px;
  }

  .package-card h3 {
    font-size: 17px;
  }

  .package-current-price {
    font-size: 23px;
  }
}

@media (max-width: 767px) {
  .package-highlight-section {
    padding: 48px 0 54px;
  }

  .package-highlight-container {
    max-width: none;
  }

  .package-highlight-heading {
    padding: 0 18px;
    margin-bottom: 28px;
  }

  .package-highlight-badge {
    min-height: 34px;
    padding: 6px 18px;
    font-size: 15px;
  }

  .package-highlight-track {
    display: flex;
    width: 100%;
    max-width: none;
    gap: 14px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-padding-left: 18px;
    padding: 4px 18px 18px;
    margin: 0;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
  }

  .package-highlight-track::-webkit-scrollbar {
    display: none;
  }

  .package-card {
    flex: 0 0 84%;
    width: 84%;
    min-width: 84%;
    scroll-snap-align: start;
    scroll-snap-stop: always;
  }

  .package-card h3 {
    min-height: auto;
  }

  .package-image-frame {
    aspect-ratio: 305 / 470;
  }
}

@media (max-width: 480px) {
  .package-highlight-track {
    gap: 12px;
  }

  .package-card {
    flex-basis: 86%;
    width: 86%;
    min-width: 86%;
  }

  .package-card-body {
    padding: 18px 16px 16px;
  }

  .package-card h3 {
    font-size: 18px;
  }

  .package-current-price {
    font-size: 24px;
  }
}

/* ==================================================
   PACKAGES BY HOSPITAL BRANCH
================================================== */
.branch-package-section {
  width: 100%;
  padding: 52px 16px 66px;
  background: #ffffff;
  font-family: "IBM Plex Sans Thai", "Noto Sans Thai", sans-serif;
}

.branch-package-container {
  width: 100%;
  max-width: var(--site-content-width);
  margin: 0 auto;
}

.branch-package-heading {
  margin-bottom: 28px;
}

.branch-package-heading h2 {
  margin: 0;
  color: #be4e2c;
  font-size: clamp(27px, 2.3vw, 36px);
  font-weight: 600;
  line-height: 1.25;
}

.branch-package-heading p {
  margin: 6px 0 0;
  color: #85766d;
  font-size: 16px;
}

.branch-tabs-wrap {
  display: flex;
  justify-content: center;
  gap: 8px;
  overflow-x: auto;
  overflow-y: hidden;
  border-bottom: 0;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.branch-tabs-wrap::-webkit-scrollbar {
  display: none;
}

.branch-tab {
  position: relative;
  flex: 0 0 auto;
  min-width: 110px;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 28px 11px;
  border: 0;
  border-radius: 2px 2px 0 0;
  background: #f7f7f7;
  color: #003f36;
  cursor: pointer;
  transition: background-color .25s ease, color .25s ease;
}

.branch-tab-logo {
  display: none;
}

.branch-tab-label {
  display: block;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
  white-space: nowrap;
}

.branch-tab.active {
  background: #e6f4f0;
}

.branch-tab::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: transparent;
  transition: background-color .25s ease;
}

.branch-tab.active::after {
  background: #009b83;
}

.branch-tab:hover,
.branch-tab:focus-visible {
  background: #e3f5ef;
  outline: none;
}

.branch-logo-mark {
  grid-row: 1;
  align-self: center;
  color: #af9f2d;
  font-size: 18px;
  line-height: 1;
}

.branch-logo-copy {
  grid-row: 1;
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: .95;
}

.branch-logo-copy strong {
  font-family: Arial, sans-serif;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .04em;
}

.branch-logo-copy small {
  margin-top: 3px;
  color: #af9f2d;
  font-family: Arial, sans-serif;
  font-size: 6px;
  font-weight: 700;
  letter-spacing: .1em;
}

.branch-code {
  grid-row: 1;
  align-self: center;
  font-family: Arial, sans-serif;
  font-size: 18px;
  font-weight: 700;
}

.branch-name {
  grid-column: 1 / -1;
  grid-row: 2;
  margin-top: 3px;
  color: #77847f;
  font-family: Arial, sans-serif;
  font-size: 6px;
  font-weight: 600;
  letter-spacing: .08em;
}

.branch-package-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 28px;
  align-items: center;
  margin-top: 18px;
  padding: 24px 20px;
  border: 1px solid #e1e5e3;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 4px 10px rgba(30, 55, 48, .12);
}

.branch-package-list {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.branch-package-list[hidden] {
  display: none;
}

.branch-package-list .branch-package-card {
  margin-top: 0;
}

.branch-package-modal {
  width: min(960px, calc(100vw - 32px));
  height: min(760px, calc(100dvh - 40px));
  max-height: calc(100dvh - 40px);
  padding: 0;
  border: 0;
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 18px 55px rgba(0, 0, 0, .2);
  font-family: "IBM Plex Sans Thai", "Noto Sans Thai", sans-serif;
  color: #231f20;
  overflow: hidden;
}

.branch-package-modal[open] {
  display: flex;
  flex-direction: column;
}

.branch-package-modal::backdrop {
  background: rgba(0, 0, 0, .55);
}

.branch-modal-header {
  position: relative;
  flex: 0 0 auto;
  padding: 26px 34px 18px;
  border-bottom: 1px solid #e1e5e3;
}

.branch-modal-body {
  flex: 1 1 auto;
  min-height: 0;
  padding: 12px 34px 34px;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.branch-modal-close {
  position: absolute;
  top: 18px;
  right: 22px;
  border: 0;
  background: transparent;
  color: #555;
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
}

.branch-modal-branch {
  margin: 0 35px 4px 0;
  color: #af9f2d;
  font-weight: 600;
}

.branch-package-modal h3 {
  margin:14px 36px 0 0;
  font-size: clamp(20px, 2vw, 22px);
  font-weight: 700;
}

.branch-package-modal h4 {
  margin: 20px 0 8px;
  font-size: 24px;
  font-weight: 700;
}

.branch-modal-description {
  margin: 0;
  line-height: 1.65;
  white-space: pre-line;
}

.branch-package-modal ol {
  margin: 0 0 2rem 0;
  padding-left: 1.7em;
  font-size: 18px;
  line-height: 1.7;
}

.branch-package-modal .branch-modal-terms > li:nth-child(5) {
  color: #be4e2c;
}

.branch-package-modal [hidden],
.branch-package-card [hidden] {
  display: none;
}

.branch-package-modal li {
  padding-left: 4px;
  margin-bottom: 7px;
}

.branch-package-copy h3 {
  margin: 0 0 5px;
  color: #231f20;
  font-size: clamp(20px, 2vw, 20px);
  font-weight: 600;
  line-height: 1.2;
}

.branch-package-detail {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #00826a;
  font-size: 17px;
  text-decoration: none;
}

.branch-package-detail svg,
.branch-buy-button svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.branch-package-price {
  min-width: 180px;
  text-align: right;
}

.branch-old-price {
  display: block;
  margin-bottom: 3px;
  color: #b6b6b6;
  font-size: 14px;
  text-decoration: line-through;
}

.branch-old-price:empty,
.branch-discount:empty {
  display: none;
}

.branch-current-price {
  display: block;
  color: #262626;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
}

.branch-package-buy {
  min-width: 175px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}

.branch-discount {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 12px;
  border-radius: 999px;
  background: #ffe4e4;
  color: #be4e2c;
  font-size: 15px;
  font-weight: 700;
}

.branch-buy-button {
  min-width: 155px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 8px 14px;
  border: 1px solid #00826a;
  border-radius: 999px;
  background: #00826a;
  color: #ffffff;
  font-size: 18px;
  font-weight: 600;
}

.branch-buy-button:hover,
.branch-buy-button:focus {
  border-color:#231f20;
  background: #231f20;
  color: #ffffff;
}

.branch-marketplace {
  padding-top: 34px;
}

.branch-shopee-button {
  min-width: 158px;
  min-height: 64px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 11px;
  background: #be4e2c;
  color: #ffffff;
  font-family: Arial, sans-serif;
  font-size: 19px;
  font-weight: 500;
  text-decoration: none;
  box-shadow: 0 7px 14px rgba(93, 41, 25, .2);
}

.branch-shopee-button:hover,
.branch-shopee-button:focus {
  background: #be4e2c;
  color: #ffffff;
}

.shopee-bag {
  width: 22px;
  height: 23px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #ffffff;
  border-radius: 3px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
}

@media (max-width: 991.98px) {
  .branch-package-card {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .branch-package-price {
    grid-column: 1;
    grid-row: 2;
    text-align: left;
  }

  .branch-package-buy {
    grid-column: 2;
    grid-row: 1 / span 2;
  }
}

@media (max-width: 767px) {
  .branch-package-section {
    padding: 42px 0 54px;
  }

  .branch-package-heading {
    padding: 0 14px;
    margin-bottom: 20px;
  }

  .branch-package-heading h2 {
    font-size: 26px;
  }

  .branch-package-heading p {
    font-size: 14px;
  }

  .branch-tabs-wrap {
    display: flex;
    justify-content: flex-start;
    gap: 8px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 0 14px;
    border-bottom: 0;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .branch-tabs-wrap::-webkit-scrollbar {
    display: none;
  }

  .branch-tab {
    flex: 0 0 auto;
    width: auto;
    min-width: 104px;
    min-height: 44px;
    padding: 10px 18px 11px;
    scroll-snap-align: start;
  }

  .branch-tab-label {
    font-size: 14px;
  }

  .branch-package-list {
    gap: 12px;
    margin: 14px 14px 0;
  }

  .branch-package-list .branch-package-card {
    margin: 0;
  }

  .branch-package-modal {
    width: calc(100vw - 20px);
    height: calc(100dvh - 20px);
    max-height: calc(100dvh - 20px);
  }

  .branch-modal-header {
    padding: 20px 42px 14px 18px;
  }

  .branch-modal-body {
    padding: 8px 18px 24px;
  }

  .branch-package-modal h4 {
    font-size: 19px;
  }

  .branch-package-modal ol {
    font-size: 17px;
  }

  .branch-modal-close {
    top: 12px;
    right: 14px;
  }

  .branch-logo-mark {
    font-size: 14px;
  }

  .branch-logo-copy strong {
    font-size: 9px;
  }

  .branch-logo-copy small {
    font-size: 5px;
  }

  .branch-code {
    font-size: 14px;
  }

  .branch-name {
    font-size: 5px;
  }

  .branch-package-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px 14px;
    margin: 14px 14px 0;
    padding: 17px 14px 15px;
    border-radius: 6px;
  }

  .branch-package-copy {
    grid-column: 1 / -1;
  }

  .branch-package-copy h3 {
    margin-bottom: 2px;
    font-size: 18px;
  }

  .branch-package-detail {
    font-size: 14px;
  }

  .branch-package-price {
    min-width: 0;
    grid-column: 1;
    grid-row: 2;
    align-self: end;
    text-align: left;
  }

  .branch-old-price {
    margin-bottom: 2px;
    font-size: 11px;
  }

  .branch-current-price {
    font-size: 19px;
  }

  .branch-package-buy {
    min-width: 0;
    grid-column: 2;
    grid-row: 2;
    align-items: flex-end;
    gap: 5px;
  }

  .branch-discount {
    min-height: 20px;
    padding: 2px 7px;
    font-size: 10px;
  }

  .branch-buy-button {
    min-width: 100px;
    padding: 7px 10px;
    font-size: 15px;
  }

  .branch-buy-button svg {
    width: 16px;
    height: 16px;
  }

  .branch-marketplace {
    padding-top: 42px;
  }

  .branch-shopee-button {
    min-width: 118px;
    min-height: 48px;
    padding: 9px 17px;
    border-radius: 8px;
    font-size: 15px;
  }

  .shopee-bag {
    width: 18px;
    height: 19px;
    font-size: 10px;
  }
}


/* ==================================================
   RELATED HEALTH ARTICLES SLIDER
================================================== */
.related-articles-section {
  width: 100%;
  padding: 66px 16px 72px;
  background: #ffffff;
  font-family: "IBM Plex Sans Thai", "Noto Sans Thai", sans-serif;
}

.related-articles-container {
  width: 100%;
  max-width: var(--site-content-width);
  margin: 0 auto;
}

.related-articles-heading {
  margin-bottom: 30px;
}

.related-articles-heading h2 {
  margin: 0;
  color: #be4e2c;
  font-size: clamp(28px, 2.35vw, 36px);
  font-weight: 600;
  line-height: 1.25;
}

.related-articles-track {
  display: flex;
  align-items: stretch;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-inline: contain;
  cursor: grab;
  outline: none;
}

.related-articles-track::-webkit-scrollbar {
  display: none;
}

.related-articles-track.is-dragging {
  cursor: grabbing;
  scroll-behavior: auto;
  user-select: none;
}

/* trailing space lets the final cards snap to the start like a true slider */
.related-articles-track::after {
  content: "";
  flex: 0 0 66.6667%;
}

.related-article-card {
  position: relative;
  flex: 0 0 33.3333%;
  width: 33.3333%;
  min-width: 33.3333%;
  padding: 0 20px;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

.related-article-card:first-child {
  padding-left: 0;
}

.related-article-card::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 1px;
  height: 100%;
  background: #eeeeec;
}

.related-article-image-link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.related-article-image,
.related-article-placeholder {
  width: 100%;
  aspect-ratio: 390 / 207;
  display: block;
  overflow: hidden;
  border-radius: 3px;
}

.related-article-image {
  object-fit: contain;
  background: #f7f7f7;
}

.related-article-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px dashed rgba(175, 159, 45, .25);
  color: rgba(175, 159, 45, .62);
  font-family: Arial, sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .06em;
}

.related-placeholder-green {
  background: linear-gradient(135deg, #eef6f0 0%, #dce9d8 100%);
}

.related-placeholder-orange {
  border-color: rgba(198, 104, 69, .28);
  background: linear-gradient(135deg, #fbf1eb 0%, #efd9cd 100%);
  color: rgba(163, 78, 48, .72);
}

.related-article-body {
  padding: 28px 0 2px;
}

.related-article-body h3 {
  height: 2.84em;
  min-height: 0;
  margin: 0 0 20px;
  overflow: hidden;
  color: #252525;
  font-size: clamp(19px, 1.55vw, 23px);
  font-weight: 700;
  line-height: 1.42;
}

.related-article-body h3 a {
  display: -webkit-box;
  overflow: hidden;
  text-overflow: ellipsis;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  color: inherit;
  text-decoration: none;
}

.related-article-body h3 a:hover,
.related-article-body h3 a:focus,
.related-article-more:hover,
.related-article-more:focus {
  color: #af9f2d;
}

.related-article-body p {
  height: 3.4em;
  min-height: 0;
  display: -webkit-box;
  overflow: hidden;
  margin: 0 0 28px;
  text-overflow: ellipsis;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  color: #7b7f89;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.7;
}

.related-article-more {
  display: inline-flex;
  align-items: center;
  color: #313131;
  font-size: 18px;
  font-weight: 400;
  text-decoration: none;
  transition: color .2s ease;
}

.related-articles-pagination {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 9px;
  margin-top: 18px;
  padding-left: 4px;
}

.related-articles-pagination button {
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: #d7d7d7;
  cursor: pointer;
  transition: width .25s ease, background-color .25s ease;
}

.related-articles-pagination button.active {
  width: 27px;
  background: #252525;
}

.related-articles-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 18px;
}

.related-articles-controls .related-articles-pagination {
  margin-top: 0;
}

.related-articles-arrows {
  display: flex;
  gap: 8px;
  flex: 0 0 auto;
}

.related-articles-arrows button {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid #af9f2d;
  border-radius: 50%;
  background: #fff;
  color: #af9f2d;
  cursor: pointer;
  transition: background-color .2s ease, color .2s ease;
}

.related-articles-arrows button:hover:not(:disabled),
.related-articles-arrows button:focus-visible:not(:disabled) {
  background: #af9f2d;
  color: #fff;
}

.related-articles-arrows button:focus-visible {
  outline: 2px solid #af9f2d;
  outline-offset: 3px;
}

.related-articles-arrows button:disabled {
  opacity: .35;
  cursor: not-allowed;
}

.related-articles-arrows svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@media (max-width: 991.98px) {
  .related-articles-track::after {
    flex-basis: 50%;
  }

  .related-article-card {
    flex-basis: 50%;
    width: 50%;
    min-width: 50%;
  }
}

@media (max-width: 767px) {
  .related-articles-section {
    padding: 46px 0 54px;
  }

  .related-articles-heading {
    margin-bottom: 24px;
    padding: 0 16px;
  }

  .related-articles-heading h2 {
    font-size: 27px;
  }

  .related-articles-track {
    padding-left: 16px;
    scroll-padding-left: 16px;
  }

  .related-articles-track::after {
    flex-basis: 14%;
  }

  .related-article-card,
  .related-article-card:first-child {
    flex-basis: 86%;
    width: 86%;
    min-width: 86%;
    padding: 0 14px 0 0;
  }

  .related-article-card::after {
    display: none;
  }

  .related-article-body {
    padding-top: 20px;
  }

  .related-article-body h3 {
    margin-bottom: 13px;
    font-size: 20px;
  }

  .related-article-body p {
    height: 3.3em;
    margin-bottom: 20px;
    font-size: 14px;
    line-height: 1.65;
  }

  .related-article-more {
    font-size: 16px;
  }

  .related-articles-pagination {
    margin-top: 18px;
    padding-left: 16px;
  }

  .related-articles-controls {
    padding: 0 16px;
  }

  .related-articles-controls .related-articles-pagination {
    padding-left: 0;
  }

  .related-articles-arrows button {
    width: 36px;
    height: 36px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .related-articles-track {
    scroll-behavior: auto;
  }
}


/* ==================================================
   RELATED VIDEOS
================================================== */
.related-videos-section {
  width: 100%;
  padding: 58px 16px 74px;
  background: #ffffff;
  font-family: "IBM Plex Sans Thai", "Noto Sans Thai", sans-serif;
}

.related-videos-container {
  width: 100%;
  max-width: var(--site-content-width);
  margin: 0 auto;
}

.related-videos-heading {
  margin-bottom: 28px;
}

.related-videos-heading h2 {
  margin: 0;
  color: #be4e2c;
  font-size: clamp(28px, 2.35vw, 36px);
  font-weight: 600;
  line-height: 1.25;
}

.related-videos-layout {
  margin-left: 0;
  margin-right: 0;
}

.related-videos-layout > [class*="col-"] {
  padding-left: 0;
  padding-right: 0;
}

@media (min-width: 992px) {
  .related-videos-layout {
    column-gap: 18px;
  }

  .related-videos-layout > .col-lg-8 {
    flex: 0 0 calc(68% - 9px);
    width: calc(68% - 9px);
  }

  .related-videos-layout > .col-lg-4 {
    flex: 0 0 calc(32% - 9px);
    width: calc(32% - 9px);
  }
}

.video-feature-card {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 5px;
  background: #be4e2c;
  text-decoration: none;
}

.video-feature-card img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.video-main-play {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 72px;
  height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: #ff0033;
  color: #ffffff;
  transform: translate(-50%, -50%);
  box-shadow: 0 8px 22px rgba(0, 0, 0, .18);
  transition: transform .25s ease, box-shadow .25s ease;
}

.video-main-play svg {
  width: 32px;
  height: 32px;
  fill: currentColor;
}

.video-feature-card:hover .video-main-play,
.video-feature-card:focus .video-main-play {
  transform: translate(-50%, -50%) scale(1.06);
  box-shadow: 0 11px 28px rgba(0, 0, 0, .24);
}

.related-video-side {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.video-subscribe-wrap {
  display: flex;
  justify-content: center;
  margin: 0 0 18px;
}

.video-subscribe-button {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 8px 18px;
  border-radius: 999px;
  background: #ff0000;
  color: #ffffff;
  font-family: Arial, sans-serif;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  transition: transform .2s ease, background-color .2s ease;
}

.video-subscribe-button:hover,
.video-subscribe-button:focus {
  background: #e60000;
  color: #ffffff;
  transform: translateY(-1px);
}

.video-subscribe-button svg {
  width: 20px;
  height: 20px;
  fill: #ffffff;
}

.video-playlist {
  max-height: 410px;
  overflow-y: auto;
  overflow-x: hidden;
  border: 1px solid #dfe9e5;
  border-radius: 6px;
  background: #ffffff;
  scrollbar-width: thin;
  scrollbar-color: #be4e2c #e8f3ee;
}

.video-playlist::-webkit-scrollbar {
  width: 7px;
}

.video-playlist::-webkit-scrollbar-track {
  background: #e8f3ee;
  border-radius: 999px;
}

.video-playlist::-webkit-scrollbar-thumb {
  background: #be4e2c;
  border-radius: 999px;
}

.video-playlist-item {
  position: relative;
  display: grid;
  grid-template-columns: 18px 114px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-height: 82px;
  padding: 10px 10px 10px 12px;
  color: #111111;
  text-decoration: none;
  border-bottom: 1px solid #edf1ef;
  transition: background-color .2s ease, color .2s ease;
}

.video-playlist-item:last-child {
  border-bottom: 0;
}

.video-playlist-item.active,
.video-playlist-item:hover,
.video-playlist-item:focus {
  background: #eff8f3;
  color: #be4e2c;
}

.video-list-play {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #be4e2c;
}

.video-list-play svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.video-playlist-item img {
  width: 114px;
  height: 68px;
  display: block;
  object-fit: cover;
}

.video-playlist-title {
  display: -webkit-box;
  overflow: hidden;
  color: inherit;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.45;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

@media (max-width: 991.98px) {
  .related-videos-layout {
    row-gap: 18px;
  }

  .video-subscribe-wrap {
    justify-content: center;
    margin-top: 0;
    margin-bottom: 14px;
  }

  .video-playlist {
    max-height: 390px;
  }
}

@media (max-width: 767px) {
  .related-videos-section {
    padding: 40px 12px 54px;
  }

  .related-videos-heading {
    margin-bottom: 18px;
    text-align: left !important;
  }

  .related-videos-heading h2 {
    font-size: 27px;
  }

  .video-feature-card {
    border-radius: 5px;
  }

  .video-main-play {
    width: 58px;
    height: 42px;
    border-radius: 12px;
  }

  .video-main-play svg {
    width: 27px;
    height: 27px;
  }

  .video-subscribe-wrap {
    margin-top: 14px;
    margin-bottom: 14px;
  }

  .video-subscribe-button {
    min-height: 36px;
    padding: 8px 15px;
    font-size: 13px;
  }

  .video-playlist {
    max-height: 296px;
    border-radius: 5px;
  }

  .video-playlist-item {
    grid-template-columns: 16px 94px minmax(0, 1fr);
    gap: 8px;
    min-height: 66px;
    padding: 7px 8px;
  }

  .video-playlist-item img {
    width: 94px;
    height: 56px;
  }

  .video-list-play svg {
    width: 16px;
    height: 16px;
  }

  .video-playlist-title {
    font-size: 12.5px;
    line-height: 1.4;
    -webkit-line-clamp: 3;
  }
}

@media (prefers-reduced-motion: reduce) {
  .video-main-play,
  .video-subscribe-button {
    transition: none;
  }
}

/* ==================================================
   BRANCH PACKAGE - FADE CONTENT ON BRANCH CHANGE
   Added in V18. Scoped to this section only.
================================================== */
.branch-package-card {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
  transition:
    opacity .2s ease,
    transform .28s ease,
    filter .2s ease,
    box-shadow .25s ease;
  will-change: opacity, transform, filter;
}

.branch-package-card.is-switching {
  opacity: 0;
  transform: translateY(7px);
  filter: blur(2px);
  pointer-events: none;
}

.branch-package-card.is-revealing {
  animation: branchPackageFadeIn .36s ease both;
}

.branch-package-list.is-switching .branch-package-card {
  opacity: 0;
  transform: translateY(7px);
  filter: blur(2px);
  pointer-events: none;
}

.branch-package-list .branch-package-card.is-revealing {
  animation-delay: var(--branch-reveal-delay, 0ms);
}

@keyframes branchPackageFadeIn {
  from {
    opacity: 0;
    transform: translateY(7px);
    filter: blur(2px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .branch-package-card,
  .branch-package-card.is-switching,
  .branch-package-card.is-revealing {
    animation: none !important;
    transition: none !important;
    opacity: 1;
    transform: none;
    filter: none;
  }

  .branch-package-list.is-switching .branch-package-card {
    opacity: 1;
    transform: none;
    filter: none;
  }
}

/* ==================================================
   RELATED VIDEOS - INTERACTIVE PLAYLIST (V19)
   Click a playlist item to preview it on the left;
   click the large preview to load the YouTube player.
================================================== */
.video-feature-card {
  cursor: pointer;
}

.video-feature-card.is-changing .video-feature-poster {
  opacity: .34;
  transform: scale(1.012);
}

.video-feature-poster {
  opacity: 1;
  transform: scale(1);
  transition: opacity .22s ease, transform .3s ease;
}

.video-main-play {
  border: 0;
  padding: 0;
  cursor: pointer;
  z-index: 3;
}

.video-feature-player {
  position: absolute;
  inset: 0;
  z-index: 4;
  width: 100%;
  height: 100%;
  display: none;
  border: 0;
  background: #000;
}

.video-feature-player.is-active,
.video-feature-card.is-playing .video-feature-player {
  display: block;
}

.video-playlist-item {
  cursor: pointer;
}

.video-playlist-item.active {
  box-shadow: inset 3px 0 0 #be4e2c;
}

@media (prefers-reduced-motion: reduce) {
  .video-feature-poster {
    transition: none;
  }
}


/* ==================================================
   STICKY BACK TO TOP
   Standalone fixed control so it stays at the bottom-right
   while scrolling and does not affect footer/header/sections.
================================================== */
.back-to-top-sticky {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 1080;
  width: 52px;
  height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #af9f2d;
  background: rgba(255, 255, 255, .96);
  border: 1px solid #dfe6e3;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0, 83, 70, .13);
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease;
}

.back-to-top-sticky svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.1;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.back-to-top-sticky:hover,
.back-to-top-sticky:focus-visible {
  color: #af9f2d;
  background: #fff;
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(0, 83, 70, .18);
}

.back-to-top-sticky:focus-visible {
  outline: 3px solid rgba(175, 159, 45, .2);
  outline-offset: 3px;
}

@media (max-width: 767.98px) {
  .back-to-top-sticky {
    right: 14px;
    bottom: 14px;
    width: 46px;
    height: 46px;
    border-radius: 9px;
  }

  .back-to-top-sticky svg {
    width: 23px;
    height: 23px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .back-to-top-sticky { transition: none; }
}
