/* ============================================================
   index.css  –  คลินิกแพทย์แผนโบราณ สถาพรคลินิก
   ลำดับ:
   00. Variables & Reset
   01. Base / Typography
   02. Utility Classes
   03. Buttons
   04. Scroll Reveal
   05. Navbar + Dropdown
   06. Hero
   07. Problem
   08. Solution
   09. Service
   10. Why / Doctor
   11. Awards
   12. Clinic Gallery
   13. Trust & Reviews
   14. CTA Banner
   15. Process
   16. Plan
   17. FAQ
   18. Contact
   19. Footer
   20. Responsive Overrides
   ============================================================ */


/* ─── 00. Variables & Reset ─── */

:root {
  --orange:     #D0651A;
  --orange-dark:#A84E10;
  --orange-lt:  #E8864A;
  --brown:      #7B4A1E;
  --brown-dark: #5A3210;
  --gold:       #F0A830;
  --cream:      #FDF6ED;
  --cream-mid:  #F5E9D4;
  --cream-dk:   #EDD9B8;
  --white:      #FFFFFF;
  --txt-dk:     #2C1800;
  --txt-bd:     #4A3020;
  --txt-mu:     #907060;
  --shd-sm:     0 2px 12px rgba(160,80,20,.10);
  --shd-md:     0 6px 28px rgba(160,80,20,.18);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }


/* ─── 01. Base / Typography ─── */

body {
  font-family: 'Sarabun', sans-serif;
  background: var(--cream);
  color: var(--txt-bd);
  font-size: 16px;
  line-height: 1.75;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Sarabun', sans-serif;
  color: var(--txt-dk);
  font-weight: 700;
}

img { max-width: 100%; }


/* ─── 02. Utility Classes ─── */

.sec-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  text-align: center;
  margin-bottom: .4rem;
}

.sec-sub {
  text-align: center;
  color: var(--txt-mu);
  font-size: .97rem;
  margin-bottom: 2.4rem;
}

.divider {
  width: 52px;
  height: 4px;
  background: var(--orange);
  border-radius: 4px;
  margin: 10px auto 18px;
}


/* ─── 03. Buttons ─── */

/* Base shared styles for all pill buttons */
.btn-main,
.btn-brown,
.btn-wht,
.btn-outline-wht {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: none;
  border-radius: 50px;
  font-family: 'Sarabun', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: background .25s, transform .25s, box-shadow .25s;
}

.btn-main,
.btn-brown,
.btn-wht { padding: 13px 30px; }

/* Orange */
.btn-main {
  background: var(--orange);
  color: #fff;
  box-shadow: 0 4px 18px rgba(208,101,26,.35);
}
.btn-main:hover {
  background: var(--orange-dark);
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(208,101,26,.48);
  text-decoration: none;
}

/* Orange compact variant (navbar) */
.btn-main--sm { padding: 9px 20px; font-size: .9rem; }

/* Brown */
.btn-brown {
  background: var(--brown);
  color: #fff;
  box-shadow: 0 4px 18px rgba(90,50,16,.3);
}
.btn-brown:hover {
  background: var(--brown-dark);
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(90,50,16,.45);
  text-decoration: none;
}

/* White */
.btn-wht {
  background: #fff;
  color: var(--orange);
  font-weight: 800;
  box-shadow: 0 4px 18px rgba(0,0,0,.12);
  transition: all .25s;
}
.btn-wht:hover {
  background: var(--cream);
  color: var(--orange-dark);
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(0,0,0,.18);
  text-decoration: none;
}

/* Outline white */
.btn-outline-wht {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255,255,255,.7);
  padding: 11px 28px;
  transition: all .25s;
}
.btn-outline-wht:hover {
  background: rgba(255,255,255,.18);
  color: #fff;
  text-decoration: none;
}

/* LINE button */
.btn-line {
  display: inline-block;
  margin-top: 8px;
  background: #06C755;
  color: #fff;
  padding: 8px 16px;
  border-radius: 30px;
  font-size: .85rem;
  font-weight: 700;
  text-decoration: none;
}
.btn-line:hover { background: #05a847; color: #fff; }


/* ─── 04. Scroll Reveal ─── */

.rv { opacity: 0; transform: translateY(26px); transition: opacity .6s ease, transform .6s ease; }
.rv.show { opacity: 1; transform: translateY(0); }
.d1 { transition-delay: .10s; }
.d2 { transition-delay: .20s; }
.d3 { transition-delay: .30s; }
.d4 { transition-delay: .40s; }


/* ─── 05. Navbar + Dropdown ─── */

.navbar {
  background: #fff;
  box-shadow: 0 2px 16px rgba(160,80,20,.10);
  padding: 10px 0;
  position: sticky;
  top: 0;
  z-index: 1050;
}

/* ชดเชยความสูง sticky navbar สำหรับทุก anchor section */
section[id],
div[id] {
  scroll-margin-top: 80px;
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--orange) !important;
  text-decoration: none;
}

.brand-ico {
  width: 44px;
  height: 44px;
  background: var(--orange);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.15rem;
  flex-shrink: 0;
}

.navbar-nav .nav-link {
  color: var(--brown) !important;
  font-weight: 600;
  font-size: .95rem;
  padding: 8px 14px !important;
  transition: color .2s;
}
.navbar-nav .nav-link:hover { color: var(--orange) !important; }

.navbar-toggler { border-color: var(--orange); }
.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%23D0651A' stroke-linecap='round' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Dropdown: item base style */
.navbar-nav .dropdown-item {
  color: var(--brown);
  font-weight: 600;
  font-size: .92rem;
  padding: 8px 14px;
  border-radius: 8px;
  transition: background .2s, color .2s;
}
.navbar-nav .dropdown-item:hover,
.navbar-nav .dropdown-item:focus {
  background: var(--cream-mid);
  color: var(--orange);
}

/* Dropdown desktop (≥992px): เปิดด้วย hover, ไม่มี gap */
@media (min-width: 992px) {
  .navbar-nav .dropdown-menu {
    border: 1px solid var(--cream-dk);
    border-radius: 12px;
    box-shadow: var(--shd-sm);
    padding: 8px;
    margin-top: 0;
    position: absolute;
  }
  .navbar-nav .dropdown:hover > .dropdown-menu { display: block; }
  /* invisible bridge ปิด gap ระหว่าง toggle กับ menu */
  .navbar-nav .dropdown-menu::before {
    content: '';
    position: absolute;
    top: -8px; left: 0; right: 0;
    height: 8px;
  }
}


/* ─── 06. Hero ─── */

.hero { background: var(--cream); padding: 56px 0 48px; }

.hero-badge {
  display: inline-block;
  background: var(--orange);
  color: #fff;
  font-size: .82rem;
  font-weight: 700;
  padding: 5px 16px;
  border-radius: 50px;
  margin-bottom: 16px;
}

.hero-title {
  font-size: clamp(1.7rem, 4vw, 2.4rem);
  font-weight: 800;
  line-height: 1.4;
  margin-bottom: 18px;
}
.hero-title span { color: var(--orange); }

.hero-img {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shd-md);
}
.hero-img img { width: 100%; height: 390px; object-fit: cover; display: block; }

/* YouTube embed wrapper */
.hero-video-wrap {
  border-radius: 20px 20px 0 0;
  overflow: hidden;
  box-shadow: var(--shd-md);
}
.hero-video-iframe { display: block; }

/* Doctor name card below video */
.hero-doctor-info {
  background: #fff;
  border-radius: 0 0 20px 20px;
  padding: 20px 24px;
  text-align: center;
  box-shadow: var(--shd-md);
  margin-top: 0;
}
.hero-doctor-name { font-size: 1.2rem; font-weight: 800; color: var(--txt-dk); }
.hero-doctor-title { font-size: .95rem; font-weight: 600; color: var(--orange); margin-top: 4px; }

/* Hero body text & button row */
.hero-desc    { color: var(--txt-mu); margin-bottom: 28px; }
.hero-btn-row { gap: 12px; margin-top: 8px; }

/* Feature list inside hero */
.fi-row { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 16px; }
.fi-ico {
  width: 46px;
  height: 46px;
  background: var(--cream-mid);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--orange);
  font-size: 1.1rem;
}
.fi-label { font-weight: 700; font-size: .95rem; color: var(--txt-dk); margin-bottom: 2px; }
.fi-desc  { font-size: .87rem; color: var(--txt-mu); margin: 0; line-height: 1.5; }


/* ─── 07. Problem ─── */

.problem { background: var(--white); padding: 64px 0; }

.prob-card {
  background: var(--cream);
  border: 1.5px solid var(--cream-dk);
  border-radius: 20px;
  padding: 36px 28px;
  text-align: center;
  height: 100%;
  transition: box-shadow .25s, border-color .25s, transform .25s;
}
.prob-card:hover {
  box-shadow: var(--shd-md);
  border-color: var(--orange-lt);
  transform: translateY(-4px);
}

.prob-ico {
  width: 90px;
  height: 90px;
  background: transparent;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--orange);
  font-size: 2rem;
  margin: 0 auto 20px;
}
.prob-ico img {
  width: 90px;
  height: 90px;
  object-fit: contain;
  display: block;
}

.prob-title { font-weight: 700; font-size: 1.05rem; color: var(--txt-dk); margin-bottom: 10px; }
.prob-desc  { font-size: .9rem; color: var(--txt-mu); margin: 0; line-height: 1.65; }

.prob-cta {
  background: linear-gradient(135deg, var(--orange), var(--brown));
  border-radius: 16px;
  padding: 32px 28px;
  text-align: center;
  color: #fff;
}
.prob-cta h4 { color: #fff; font-size: 1.3rem; margin-bottom: 10px; }
.prob-cta p  { color: rgba(255,255,255,.85); font-size: .95rem; margin-bottom: 20px; }


/* ─── 08. Solution ─── */

.solution { background: var(--cream); padding: 80px 0; }

.sol-box {
  background: var(--cream-mid);
  border-radius: 28px;
  padding: 50px;
  box-shadow: var(--shd-md);
}

.sol-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--brown);
  color: #fff;
  font-size: .85rem;
  font-weight: 700;
  padding: 6px 18px;
  border-radius: 50px;
  margin-bottom: 18px;
}

.sol-heading {
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  font-weight: 800;
  margin-bottom: 26px;
  line-height: 1.4;
}

.sol-list { list-style: none; padding: 0; margin: 0; }

.sol-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 22px;
}

.sol-check {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--brown);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1rem;
}

.sol-item h6 { font-weight: 700; font-size: 1rem; margin-bottom: 4px; color: var(--txt-dk); }
.sol-item p  { font-size: .9rem; color: var(--txt-bd); margin: 0; line-height: 1.6; }

.sol-img-wrap { border-radius: 20px; overflow: hidden; height: 100%; }
.sol-img-wrap img { width: 100%; height: 100%; min-height: 360px; object-fit: cover; display: block; }


/* ─── 09. Service ─── */

.service { background: #FBF8F2; padding: 90px 0 80px; }

.service-card {
  background: #fff;
  border: 1px solid var(--cream-dk);
  border-radius: 20px;
  padding: 50px 32px;
  text-align: center;
  height: 100%;
  transition: all .3s ease;
  box-shadow: 0 4px 20px rgba(0,0,0,.04);
}
.service-card:hover { transform: translateY(-6px); box-shadow: 0 14px 35px rgba(0,0,0,.08); }

.service-icon-wrap {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 22px;
}
.service-icon-wrap i   { font-size: 26px; color: #6B7C59; }
.service-icon-wrap img {
  width: 96px;
  height: 96px;
  object-fit: contain;
  display: block;
}

.service-card h5 { font-weight: 700; margin-bottom: 14px; color: var(--txt-dk); font-size: 1.05rem; }
.service-card p  { font-size: .9rem; color: var(--txt-bd); line-height: 1.65; margin: 0; }

.service-note { text-align: center; font-size: .8rem; color: var(--txt-mu); margin-top: 50px; }


/* ─── 10. Why / Doctor ─── */

.why2 {
  background: var(--cream);
  background-image: var(--noise);
  padding: 80px 0;
}

.why-main { align-items: center; }

.why-img {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
}
.why-img img {
  max-width: 520px;
  width: 100%;
  border-radius: 20px;
  box-shadow: var(--shd-lg);
}

/* Card: ขาวบนครีม — contrast ชัด อ่านง่าย */
.why-card {
  display: flex;
  gap: 16px;
  background: var(--white);
  border: 1px solid var(--cream-dk);
  padding: 18px 22px;
  border-radius: 14px;
  margin-bottom: 12px;
  box-shadow: var(--shd-sm);
  transition: box-shadow .2s, transform .2s;
}
.why-card:hover {
  box-shadow: var(--shd-md);
  transform: translateX(4px);
}

.why-icon {
  width: 42px;
  height: 42px;
  background: rgba(184,92,56,.10);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--orange);
  font-size: 15px;
  flex-shrink: 0;
}

.why-card h6 { font-weight: 700; margin-bottom: 3px; color: var(--txt-dk); }
.why-card p  { font-size: .87rem; color: var(--txt-mu); margin: 0; line-height: 1.6; }


/* ─── 11. Awards ─── */

.awards-box {
  background: #fff;
  border-radius: 20px;
  padding: 50px;
  margin-top: 60px;
  box-shadow: 0 20px 40px rgba(0,0,0,.1);
  text-align: center;
}
.awards-box h3 { font-weight: 700; margin-bottom: 6px; }
.awards-sub    { color: #777; margin-bottom: 30px; }

.award-img {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 12px;
  overflow: hidden;
  margin: 0 auto 12px;
  background: var(--cream-mid);
  border: 1px solid var(--cream-dk);
  box-shadow: var(--shd-sm);
  position: relative;
}
.award-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .3s;
  display: block;
}
.award-img:hover img { transform: scale(1.04); }

/* คลิกได้ — cursor + zoom icon */
.award-img--clickable { cursor: pointer; }
.award-zoom {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(44,24,0,.0);
  transition: background .25s;
}
.award-zoom i {
  color: #fff;
  font-size: 1.4rem;
  opacity: 0;
  transform: scale(.8);
  transition: opacity .25s, transform .25s;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,.4));
}
.award-img--clickable:hover .award-zoom { background: rgba(44,24,0,.35); }
.award-img--clickable:hover .award-zoom i { opacity: 1; transform: scale(1); }

/* Award Lightbox overlay */
.award-lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 3000;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.award-lightbox.active { display: flex; }

.award-lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.85);
  cursor: pointer;
}

.award-lightbox-box {
  position: relative;
  z-index: 1;
  max-width: 860px;
  width: 100%;
  text-align: center;
  animation: lbFadeIn .2s ease;
}
@keyframes lbFadeIn {
  from { opacity: 0; transform: scale(.95); }
  to   { opacity: 1; transform: scale(1); }
}

.award-lightbox-img {
  max-width: 100%;
  max-height: 82vh;
  border-radius: 14px;
  box-shadow: 0 24px 64px rgba(0,0,0,.5);
  display: block;
  margin: 0 auto;
}

.award-lightbox-caption {
  color: rgba(255,255,255,.8);
  font-size: .92rem;
  margin-top: 14px;
  margin-bottom: 0;
}

.award-lightbox-close {
  position: absolute;
  top: -14px;
  right: -14px;
  width: 40px; height: 40px;
  background: var(--orange);
  color: #fff;
  border: none;
  border-radius: 50%;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(0,0,0,.3);
  transition: background .2s, transform .2s;
}
.award-lightbox-close:hover {
  background: var(--orange-dark);
  transform: scale(1.1);
}

@media (max-width: 767px) {
  .award-lightbox-close { top: 6px; right: 6px; }
}

.award-item h6 { font-weight: 700; margin-bottom: 4px; }
.award-item p  { font-size: .85rem; color: #777; margin: 0; }


/* ─── 12. Clinic Gallery ─── */

.clinic-gallery { background: #fff; padding: 80px 0; }

.clinic-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  grid-template-rows: 200px 200px;
  gap: 14px;
}

.clinic-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(0,0,0,.12);
  transition: transform .3s ease;
}
.clinic-grid img:hover { transform: scale(1.03); }

.gallery-main  { grid-row: 1 / span 2; }
.gallery-small { height: 100%; }



/* ─── 13. Trust & Reviews ─── */

.trust-block { background: #fff; padding: 80px 0; }

/* Main image */
.gallery-main-wrap {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shd-md);
  margin-bottom: 12px;
}
.gallery-main-img {
  width: 100%;
  height: 380px;
  object-fit: cover;
  display: block;
  transition: opacity .25s;
}

/* Thumbnail strip */
.gallery-thumbs {
  display: flex;
  gap: 10px;
}
.gallery-thumb {
  flex: 1;
  height: 80px;
  object-fit: cover;
  border-radius: 10px;
  cursor: pointer;
  opacity: .55;
  border: 2px solid transparent;
  transition: opacity .2s, border-color .2s, transform .2s;
}
.gallery-thumb:hover  { opacity: .85; transform: translateY(-2px); }
.gallery-thumb.active {
  opacity: 1;
  border-color: var(--orange);
  transform: translateY(-2px);
}

.trust-review {
  background: var(--cream);
  border-radius: 14px;
  padding: 20px;
  margin-bottom: 14px;
  box-shadow: 0 6px 20px rgba(0,0,0,.08);
}

.review-name { font-size: .85rem; color: #777; margin-top: 8px; }


/* ─── 14. CTA Banner ─── */

.cta-wrap { padding: 0 0 60px; background: var(--cream); }

.cta-box {
  background: linear-gradient(120deg, var(--orange) 0%, var(--brown) 100%);
  border-radius: 20px;
  padding: 52px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-box::before {
  content: '';
  position: absolute;
  top: -60%; left: -60%;
  width: 220%; height: 220%;
  background: radial-gradient(circle at 60% 40%, rgba(255,255,255,.07), transparent 60%);
  pointer-events: none;
}
.cta-box h3 { color: #fff; font-size: 1.65rem; font-weight: 800; margin-bottom: 10px; }
.cta-box p  { color: rgba(255,255,255,.88); font-size: 1rem; margin-bottom: 24px; }


/* ─── 15. Process ─── */

.process { background: var(--white); padding: 64px 0; }

.step-box { text-align: center; padding: 10px 12px; position: relative; }

.step-ico {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
  background: transparent;
  transition: transform .25s;
  position: relative;
}
.step-ico img {
  width: 96px;
  height: 96px;
  object-fit: contain;
  display: block;
}
.step-ico i { color: var(--orange); font-size: 1.5rem; }
.step-ico .sn {
  position: absolute;
  top: -2px; right: -2px;
  width: 24px; height: 24px;
  background: var(--orange);
  color: #fff;
  border-radius: 50%;
  font-size: .7rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #fff;
  box-shadow: var(--shd-sm);
}
.step-box:hover .step-ico { transform: translateY(-4px); }

.step-lbl { font-size: .78rem; color: var(--orange); font-weight: 700; margin-bottom: 5px; }
.step-box h6 { font-weight: 700; font-size: .95rem; margin-bottom: 8px; }
.step-box p  { font-size: .85rem; color: var(--txt-mu); line-height: 1.55; }


/* ─── 16. Plan ─── */

.plan { background: var(--cream); padding: 64px 0; }

.plan-box {
  background: var(--white);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shd-sm);
  border: 1px solid var(--cream-dk);
  height: 100%;
}
.plan-box--img { overflow: hidden; }

.plan-body { padding: 32px; }

.plan-row {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--cream-dk);
}
.plan-row:last-child { border-bottom: none; }

.plan-dot { width: 10px; height: 10px; background: var(--orange); border-radius: 50%; flex-shrink: 0; margin-top: 8px; }
.plan-rl  { font-weight: 700; color: var(--txt-dk); font-size: .97rem; }
.plan-rd  { font-size: .88rem; color: var(--txt-mu); margin-top: 2px; }

.plan-note {
  background: var(--cream-mid);
  border-radius: 12px;
  padding: 14px 16px;
  font-size: .87rem;
  color: var(--txt-bd);
  margin-top: 20px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.plan-note i { color: var(--orange); flex-shrink: 0; margin-top: 3px; }

.plan-img { width: 100%; height: 100%; min-height: 260px; object-fit: cover; display: block; }


/* ─── 17. FAQ ─── */

.faq { background: var(--white); padding: 64px 0; }

.faq-item { border-bottom: 1px solid var(--cream-dk); }

.faq-q {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 0;
  cursor: pointer;
  font-weight: 600;
  font-size: .97rem;
  color: var(--txt-dk);
}

.faq-ico {
  width: 34px;
  height: 34px;
  background: var(--cream-mid);
  color: var(--orange);
  border-radius: 50%;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background .2s, color .2s;
}
.faq-q:hover .faq-ico,
.faq-q.open  .faq-ico { background: var(--orange); color: #fff; }

.faq-arrow { margin-left: auto; color: var(--orange); transition: transform .3s; }
.faq-q.open .faq-arrow { transform: rotate(180deg); }

.faq-a { display: none; padding: 0 0 18px 48px; font-size: .92rem; color: var(--txt-bd); line-height: 1.7; }
.faq-a.show { display: block; }


/* ─── 18. Contact ─── */

.contact {
  background: linear-gradient(160deg, #A95016, #C6671E);
  padding: 80px 0;
  color: #fff;
}

.contact-title { text-align: center; font-weight: 800; font-size: 1.9rem; margin-bottom: 6px; color: #fff; }
.contact-sub   { text-align: center; opacity: .9; margin-bottom: 40px; }
.contact-grid  { align-items: stretch; }

.contact-card {
  background: #fff;
  border-radius: 22px;
  padding: 34px;
  color: var(--txt-dk);
  box-shadow: 0 20px 40px rgba(0,0,0,.2);
  height: 100%;
}

.contact-card-title { font-weight: 800; font-size: 1.2rem; margin-bottom: 18px; }
.contact-text  { font-size: .92rem; color: #555; margin-bottom: 14px; line-height: 1.7; }
.contact-list  { font-size: .9rem; color: #444; padding-left: 16px; margin-bottom: 16px; }
.contact-note  { font-size: .85rem; color: #666; margin-bottom: 14px; }

.contact-row { display: flex; gap: 14px; margin-bottom: 18px; }

.contact-ico {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #EFE7DE;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brown);
  font-size: 15px;
  flex-shrink: 0;
}

.contact-label { font-weight: 700; font-size: .9rem; }
.contact-value { font-size: .88rem; color: #555; }

.map-title { font-weight: 700; margin-top: 20px; margin-bottom: 10px; }
.map-box   { border-radius: 12px; overflow: hidden; }
.map-iframe { border: 0; }


/* ─── 19. Footer ─── */

footer {
  background: var(--txt-dk);
  color: rgba(255,255,255,.7);
  padding: 44px 0 20px;
}

.ft-brand      { font-size: 1.05rem; font-weight: 800; color: #fff; margin-bottom: 10px; }
.ft-brand-icon { color: var(--orange); }

footer p  { font-size: .87rem; line-height: 1.7; }
footer h6 { color: #fff; font-weight: 700; margin-bottom: 14px; font-size: .95rem; }
footer a  { color: rgba(255,255,255,.65); font-size: .87rem; display: block; margin-bottom: 8px; text-decoration: none; transition: color .2s; }
footer a:hover { color: var(--orange-lt); text-decoration: none; }

.ft-contact-row  { font-size: .87rem; }
.ft-contact-icon { color: var(--orange); }

/* Social icon buttons — ไม่มีขีดเส้นใต้เมื่อ hover */
.soc {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: rgba(255,255,255,.10);
  border-radius: 50%;
  color: rgba(255,255,255,.75);
  font-size: .9rem;
  margin-right: 6px;
  transition: background .25s, color .25s, transform .25s;
  text-decoration: none;
}
.soc:hover {
  background: var(--orange);
  color: #fff;
  transform: translateY(-2px);
  text-decoration: none;
}

/* Footer bottom bar: copyright + privacy link */
.ft-hr   { border-color: rgba(255,255,255,.10); margin: 28px 0 0; }

.ft-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  padding: 14px 0 4px;
}
.ft-copy { font-size: .8rem; color: rgba(255,255,255,.35); margin: 0; }

.ft-privacy-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: .8rem;
  color: rgba(255,255,255,.35);
  text-decoration: none;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 50px;
  padding: 3px 12px;
  transition: color .2s, border-color .2s;
}
.ft-privacy-link:hover {
  color: var(--orange-lt);
  border-color: var(--orange-lt);
  text-decoration: none;
}




/* ─── 20. Responsive Overrides ─── */

@media (max-width: 991px) {
  /* Solution box */
  .sol-box { padding: 35px 25px; }
  .sol-img-wrap img { min-height: 260px; }

  /* Navbar padding */
  .navbar-brand,
  .navbar-nav .btn-main--sm { padding-left: 8px; }

  /* Dropdown mobile: Bootstrap collapse จัดการ show/hide */
  .navbar-nav .dropdown-menu {
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0 0 4px 16px;
    position: static;
    float: none;
    width: auto;
  }
}

@media (max-width: 768px) {
  /* Clinic grid: stack single column */
  .clinic-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }
  .gallery-main { grid-row: auto; }
}

@media (max-width: 767px) {
  .hero-img img { height: 230px; }
  .cta-box { padding: 36px 20px; }
}

/* ─── Cookie Consent Banner ─── */

.cookie-banner {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 9999;
  background: var(--txt-bd);
  border-top: 3px solid var(--orange);
  box-shadow: 0 -4px 24px rgba(0,0,0,.25);
  padding: 8px 0;
}
.cookie-banner.show { display: block; }

.cookie-inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.cookie-text {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  flex: 1;
  min-width: 240px;
}

.cookie-icon {
  color: var(--gold);
  font-size: 1.3rem;
  margin-top: 3px;
  flex-shrink: 0;
}

.cookie-text strong {
  display: block;
  color: #fff;
  font-size: .9rem;
  margin-bottom: 3px;
}
.cookie-text p {
  color: rgba(255,255,255,.7);
  font-size: .75rem;
  line-height: 1.55;
  margin: 0;
}
.cookie-link {
  color: var(--orange-lt);
  text-decoration: underline;
}
.cookie-link:hover { color: var(--gold); }

.cookie-actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

.cookie-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: none;
  border-radius: 50px;
  padding: 10px 22px;
  font-family: 'Sarabun', sans-serif;
  font-size: .8rem;
  font-weight: 700;
  cursor: pointer;
  transition: background .2s, transform .15s;
  white-space: nowrap;
}
.cookie-btn--accept {
  background: var(--orange);
  color: #fff;
}
.cookie-btn--accept:hover {
  background: var(--orange-dark);
  transform: translateY(-1px);
}
.cookie-btn--reject {
  background: transparent;
  color: rgba(255,255,255,.65);
  border: 1px solid rgba(255,255,255,.25);
}
.cookie-btn--reject:hover {
  background: rgba(255,255,255,.08);
  color: #fff;
}

/* กล่องแสดงเมื่อถูก block */
.cookie-blocked-msg {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--cream-mid);
  border-radius: 12px;
  padding: 24px;
  min-height: 120px;
  text-align: center;
  flex-direction: column;
  color: var(--txt-mu);
  font-size: .9rem;
}
.cookie-blocked-msg i { font-size: 1.5rem; color: var(--txt-mu); }
.cookie-blocked-msg a { color: var(--orange); text-decoration: underline; }

/* Footer privacy link */
.ft-privacy-link {
  color: rgba(255,255,255,.45);
  text-decoration: none;
  transition: color .2s;
}
.ft-privacy-link:hover { color: var(--orange-lt); }

/* Mobile cookie banner */
@media (max-width: 767px) {
  .cookie-inner { flex-direction: column; gap: 14px; }
  .cookie-actions { width: 100%; }
  .cookie-btn { flex: 1; justify-content: center; }
}
