/* ==========================================================================
   JIPATA THAILAND (jipatathailand.com) - Visual-First & High-Conversion SEO CSS
   Brand Navy: #150958 | Brand Red: #E61E25 | Brand Yellow: #FFD43B | LINE: #06C755
   ========================================================================== */

:root {
  --navy: #150958;
  --navy-dark: #0c0538;
  --navy-soft: #23147a;
  --red: #e61e25;
  --red-dark: #c4141a;
  --yellow: #ffd43b;
  --line: #06c755;
  --line-dark: #05ad49;
  --fb: #1877f2;
  --bg: #f7f9fc;
  --surface: #ffffff;
  --surface-alt: #eef2f9;
  --text: #141829;
  --text-muted: #525b75;
  --border: #e2e8f0;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --shadow-sm: 0 4px 14px rgba(21, 9, 88, 0.06);
  --shadow-md: 0 12px 32px rgba(21, 9, 88, 0.09);
  --shadow-lg: 0 20px 48px rgba(21, 9, 88, 0.16);
  --container: 1260px;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

section[id], div[id] {
  scroll-margin-top: 84px;
}

body {
  font-family: 'Prompt', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  padding-bottom: 72px; /* space for mobile sticky bar */
}

@media (min-width: 992px) {
  body {
    padding-bottom: 0;
  }
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: all 0.2s ease;
}

ul {
  list-style: none;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

/* Top Announcement Bar */
.topbar {
  background: var(--navy-dark);
  color: #fff;
  font-size: 0.875rem;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.topbar-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.topbar-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

.topbar-badges span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
}

.dot-yellow {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--yellow);
  display: inline-block;
}

.topbar-phones {
  display: flex;
  align-items: center;
  gap: 16px;
  font-weight: 500;
}

.topbar-phones a:hover {
  color: var(--yellow);
}

/* Sticky Navbar */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 4px 20px rgba(21, 9, 88, 0.05);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 74px;
  gap: 16px;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.brand-logo img {
  width: 50px;
  height: 50px;
  object-fit: contain;
  border-radius: 8px;
}

.brand-text strong {
  display: block;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.15;
}

.brand-text span {
  display: block;
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 500;
}

.main-nav {
  display: none;
  align-items: center;
  gap: 2px;
}

@media (min-width: 1100px) {
  .main-nav {
    display: flex;
  }
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 8px 11px;
  border-radius: 10px;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text);
  white-space: nowrap;
}

.nav-link:hover, .nav-link.active {
  background: var(--surface-alt);
  color: var(--navy);
  font-weight: 600;
}

/* Dropdown for Product Categories */
.nav-dropdown {
  position: relative;
}

.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 310px;
  width: max-content;
  background: #fff;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all 0.2s ease;
}

.nav-dropdown:hover .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-dropdown-menu a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text);
  white-space: nowrap;
}

.nav-dropdown-menu a:hover {
  background: var(--surface-alt);
  color: var(--navy);
}

.nav-dropdown-menu small {
  font-size: 0.74rem;
  color: var(--red);
  font-weight: 600;
  background: #fff1f2;
  padding: 2px 10px;
  border-radius: 99px;
  white-space: nowrap;
  flex-shrink: 0;
}

.header-cta {
  display: flex;
  align-items: center;
  gap: 10px;
}

.menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--navy);
  cursor: pointer;
  font-size: 1.35rem;
}

@media (min-width: 1100px) {
  .menu-toggle {
    display: none;
  }
}

/* Mobile Slide Drawer */
.mobile-menu {
  display: none;
  background: #fff;
  border-bottom: 1px solid var(--border);
  padding: 16px 20px 24px;
}

.mobile-menu.open {
  display: block;
}

.mobile-menu a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 8px;
  border-bottom: 1px solid #f1f5f9;
  font-weight: 500;
  font-size: 1rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  border: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
  text-align: center;
  white-space: nowrap;
}

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

.btn-line {
  background: var(--line);
  color: #fff;
  box-shadow: 0 8px 20px rgba(6, 199, 85, 0.3);
}

.btn-line:hover {
  background: var(--line-dark);
}

.btn-navy {
  background: var(--navy);
  color: #fff;
  box-shadow: 0 8px 20px rgba(21, 9, 88, 0.25);
}

.btn-navy:hover {
  background: var(--navy-soft);
}

.btn-red {
  background: var(--red);
  color: #fff;
  box-shadow: 0 8px 20px rgba(230, 30, 37, 0.28);
}

.btn-red:hover {
  background: var(--red-dark);
}

.btn-outline-white {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border: 1.5px solid rgba(255, 255, 255, 0.4);
}

.btn-outline-white:hover {
  background: rgba(255, 255, 255, 0.22);
}

.btn-outline-navy {
  background: #fff;
  color: var(--navy);
  border: 1.5px solid var(--navy);
}

.btn-outline-navy:hover {
  background: var(--navy);
  color: #fff;
}

.btn-sm {
  padding: 9px 16px;
  font-size: 0.9rem;
}

.btn-lg {
  padding: 15px 28px;
  font-size: 1.08rem;
}

/* Hero Section */
.hero {
  background: radial-gradient(circle at 85% 20%, #2b1894 0%, var(--navy) 52%, var(--navy-dark) 100%);
  color: #fff;
  padding: 48px 0 0;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: -120px;
  right: -120px;
  width: 460px;
  height: 460px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 212, 59, 0.18) 0%, transparent 70%);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: center;
}

@media (min-width: 960px) {
  .hero-grid {
    grid-template-columns: 1.25fr 0.75fr;
  }
}

.hero-content {
  padding-bottom: 44px;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 212, 59, 0.16);
  border: 1px solid rgba(255, 212, 59, 0.45);
  color: var(--yellow);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 18px;
}

.hero h1 {
  font-size: clamp(1.7rem, 3.4vw, 2.75rem);
  line-height: 1.25;
  font-weight: 700;
  margin-bottom: 14px;
  letter-spacing: -0.01em;
}

.hero h1 .highlight {
  color: var(--yellow);
  display: inline-block;
  white-space: nowrap;
  font-size: clamp(1.15rem, 2.8vw, 2.4rem);
}

.hero-lead {
  font-size: clamp(0.98rem, 1.55vw, 1.16rem);
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 22px;
  max-width: 720px;
}

.quick-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  padding: 7px 14px;
  border-radius: 12px;
  font-size: 0.95rem;
  font-weight: 500;
  white-space: nowrap;
}

.chip-row-break {
  display: none;
}

@media (min-width: 640px) {
  .chip-row-break {
    display: block;
    flex-basis: 100%;
    height: 0;
    margin-top: -10px;
  }
}

.chip strong {
  color: var(--yellow);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-end;
}

.hero-visual img.hero-main-img {
  max-height: 460px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 20px 35px rgba(0, 0, 0, 0.4));
}

.hero-float-card {
  position: absolute;
  bottom: 24px;
  left: 10px;
  background: rgba(255, 255, 255, 0.96);
  color: var(--navy);
  padding: 12px 18px;
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 12px;
}

.hero-float-card strong {
  display: block;
  font-size: 1.15rem;
  line-height: 1.1;
  color: var(--red);
}

.hero-float-card span {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* Stats Strip */
.stats-strip {
  background: #fff;
  border-bottom: 1px solid var(--border);
  padding: 22px 0;
}

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

@media (min-width: 768px) {
  .stats-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.stat-box {
  text-align: center;
  padding: 8px;
  border-right: 1px solid var(--border);
}

.stat-box:last-child {
  border-right: none;
}

@media (max-width: 767px) {
  .stat-box:nth-child(2n) {
    border-right: none;
  }
}

.stat-num {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.15;
}

.stat-label {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-top: 4px;
  line-height: 1.45;
}

/* Section Layout */
.section {
  padding: 64px 0;
}

.section-alt {
  background: #fff;
}

.section-navy {
  background: var(--navy);
  color: #fff;
}

.section-header {
  text-align: center;
  max-width: 960px;
  margin: 0 auto 40px;
}

.section-header p {
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.single-line-h2 {
  white-space: nowrap;
  font-size: clamp(1.12rem, 2.85vw, 2.25rem) !important;
}

.section-tag {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--red);
  background: #fff1f2;
  padding: 5px 14px;
  border-radius: 999px;
  margin-bottom: 10px;
}

.section-navy .section-tag {
  background: rgba(255, 212, 59, 0.16);
  color: var(--yellow);
}

.section-header h2 {
  font-size: clamp(1.65rem, 3vw, 2.3rem);
  font-weight: 700;
  color: var(--navy);
  line-height: 1.25;
  margin-bottom: 10px;
}

.section-navy .section-header h2 {
  color: #fff;
}

.section-header p {
  font-size: 1.05rem;
  color: var(--text-muted);
}

.section-navy .section-header p {
  color: rgba(255,255,255,0.82);
}

/* Product Category Grid (Visual First!) */
.product-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 640px) {
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .product-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.product-card {
  background: #fff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: var(--navy);
}

.product-card-img {
  position: relative;
  height: 290px;
  background: linear-gradient(145deg, #f1f5fb 0%, #e4ebf7 100%);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 16px 16px 0;
  overflow: hidden;
}

.product-card-img img {
  max-height: 274px;
  width: auto;
  object-fit: contain;
  transform-origin: bottom center;
  transition: transform 0.3s ease;
}

.product-card:hover .product-card-img img {
  transform: scale(1.07);
}

.min-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  background: var(--navy);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 99px;
  box-shadow: 0 4px 10px rgba(21,9,88,0.2);
}

.min-badge.hot {
  background: var(--red);
}

.product-card-body {
  padding: 22px 24px 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.product-card-body h3 {
  font-size: 1.3rem;
  color: var(--navy);
  font-weight: 700;
  margin-bottom: 6px;
}

.product-card-body p {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 14px;
  flex: 1;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 18px;
}

.mini-tag {
  font-size: 0.8rem;
  background: var(--surface-alt);
  color: var(--navy);
  padding: 4px 10px;
  border-radius: 8px;
  font-weight: 500;
}

.product-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 14px;
  border-top: 1px solid #f1f5f9;
}

.product-card-footer .btn {
  margin-left: auto;
}

.link-arrow {
  font-weight: 600;
  color: var(--navy);
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.product-card:hover .link-arrow {
  color: var(--red);
}

/* Extra Accessories Strip */
.extra-items {
  margin-top: 24px;
  background: #fff;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  padding: 18px 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.extra-items-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
}

.extra-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  color: var(--navy);
}

.extra-item img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  background: var(--surface-alt);
  border-radius: 10px;
  padding: 4px;
}

/* Client Logo Wall */
.client-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

@media (min-width: 640px) {
  .client-grid {
    grid-template-columns: repeat(5, 1fr);
  }
}

@media (min-width: 1024px) {
  .client-grid {
    grid-template-columns: repeat(6, 1fr);
  }
}

.client-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  height: 122px;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.client-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-sm);
}

.client-card img {
  max-height: 90px;
  max-width: 168px;
  width: auto;
  height: auto;
  object-fit: contain;
}

/* Audience Cards (B2B Segments) */
.segment-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
}

@media (min-width: 900px) {
  .segment-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.segment-card {
  background: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.segment-card img {
  width: 100%;
  height: 210px;
  object-fit: cover;
}

.segment-body {
  padding: 22px;
}

.segment-body h3 {
  font-size: 1.22rem;
  color: var(--navy);
  margin-bottom: 8px;
}

.segment-body ul li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 6px;
  font-size: 0.94rem;
  color: var(--text-muted);
}

.segment-body ul li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--line);
  font-weight: 700;
}

/* Techniques 3 Cards */
.tech-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

@media (min-width: 768px) {
  .tech-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.tech-card {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: var(--radius-md);
  padding: 26px;
}

.tech-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--yellow);
  color: var(--navy);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 14px;
}

.tech-card h3 {
  font-size: 1.25rem;
  margin-bottom: 8px;
  color: #fff;
}

.tech-card p {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.85);
}

/* Filter Tabs & Photo Gallery */
.filter-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 28px;
}

.tab-btn {
  padding: 9px 18px;
  border-radius: 999px;
  border: 1.5px solid var(--border);
  background: #fff;
  color: var(--text);
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.18s ease;
}

.tab-btn:hover, .tab-btn.active {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
}

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

@media (min-width: 768px) {
  .gallery-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.gallery-item {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--border);
  cursor: pointer;
  box-shadow: var(--shadow-sm);
}

.gallery-item img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.gallery-item.contain-mode img {
  object-fit: contain;
  background: #fff;
  padding: 8px;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

.gallery-caption {
  padding: 10px 14px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--navy);
  background: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.gallery-caption span {
  font-size: 0.76rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* 4 Easy Steps */
.steps-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

@media (min-width: 768px) {
  .steps-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.step-card {
  background: #fff;
  border-radius: var(--radius-md);
  padding: 24px 20px;
  border: 1px solid var(--border);
  text-align: center;
  position: relative;
  box-shadow: var(--shadow-sm);
}

.step-num {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
  font-weight: 700;
  font-size: 1.2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}

.step-card h3 {
  font-size: 1.12rem;
  color: var(--navy);
  margin-bottom: 6px;
}

.step-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Branches Grid */
.branch-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 860px) {
  .branch-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.branch-card {
  background: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.branch-card img {
  width: 100%;
  height: 250px;
  object-fit: cover;
}

.branch-body {
  padding: 24px;
}

.branch-body h3 {
  font-size: 1.3rem;
  color: var(--navy);
  margin-bottom: 8px;
}

.branch-meta {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.branch-meta p {
  margin-bottom: 6px;
}

.branch-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* Quick Spec-to-LINE Builder */
.quote-box {
  background: linear-gradient(135deg, var(--navy) 0%, #231380 100%);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-lg);
}

.quote-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

@media (min-width: 860px) {
  .quote-grid {
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
  }
}

.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-bottom: 12px;
}

@media (min-width: 600px) {
  .form-row {
    grid-template-columns: 1fr 1fr;
  }
}

.form-control {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.25);
  background: rgba(255,255,255,0.95);
  color: var(--text);
  font-family: inherit;
  font-size: 0.95rem;
}

/* Accordion FAQ (Clean UX + Rich Google FAQ Schema) */
.faq-list {
  max-width: 860px;
  margin: 0 auto;
  display: grid;
  gap: 12px;
}

.faq-item {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
}

.faq-question {
  width: 100%;
  text-align: left;
  padding: 18px 22px;
  background: #fff;
  border: none;
  font-family: inherit;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--navy);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.faq-answer {
  display: none;
  padding: 0 22px 18px;
  color: var(--text-muted);
  font-size: 0.96rem;
  border-top: 1px solid #f1f5f9;
  padding-top: 14px;
}

.faq-item.open .faq-answer {
  display: block;
}

.faq-icon {
  font-size: 1.25rem;
  color: var(--red);
  transition: transform 0.2s ease;
}

.faq-item.open .faq-icon {
  transform: rotate(45deg);
}

/* Subpage Page Hero */
.page-hero {
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 60%, #26168a 100%);
  color: #fff;
  padding: 44px 0;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.86rem;
  color: rgba(255,255,255,0.75);
  margin-bottom: 14px;
}

.breadcrumb a:hover {
  color: var(--yellow);
}

.page-hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  align-items: center;
}

@media (min-width: 900px) {
  .page-hero-grid {
    grid-template-columns: 1.2fr 0.8fr;
  }
}

.page-hero h1 {
  font-size: clamp(1.8rem, 3.5vw, 2.65rem);
  line-height: 1.22;
  margin-bottom: 12px;
}

.page-hero-img {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: var(--radius-lg);
  padding: 20px 20px 0;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  overflow: hidden;
}

.page-hero-img img {
  max-height: 330px;
  object-fit: contain;
}

/* Fabric & Size Chart Cards */
.fabric-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

@media (min-width: 768px) {
  .fabric-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1080px) {
  .fabric-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.fabric-card {
  background: #fff;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: transform 0.2s ease;
}

.fabric-card:hover {
  transform: translateY(-4px);
}

.fabric-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.fabric-card-body {
  padding: 14px 16px;
}

.fabric-card-body h3 {
  font-size: 1.05rem;
  color: var(--navy);
  margin-bottom: 4px;
}

.fabric-card-body p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.size-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
}

@media (min-width: 768px) {
  .size-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.size-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
}

.size-card img {
  width: 100%;
  height: auto;
}

.size-card-title {
  padding: 12px 18px;
  font-weight: 600;
  color: var(--navy);
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Footer */
.site-footer {
  background: var(--navy-dark);
  color: rgba(255,255,255,0.85);
  padding: 56px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  margin-bottom: 36px;
}

@media (min-width: 700px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1040px) {
  .footer-grid {
    grid-template-columns: 1.15fr 1fr 0.85fr 1.35fr;
    gap: 24px;
  }
}

.footer-col h4 {
  color: #fff;
  font-size: 1.08rem;
  margin-bottom: 14px;
  white-space: nowrap;
}

.footer-col ul li {
  margin-bottom: 8px;
  font-size: 0.9rem;
  white-space: nowrap;
}

.footer-col ul li a:hover {
  color: var(--yellow);
}

.social-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.social-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.12);
  padding: 7px 14px 7px 9px;
  border-radius: 99px;
  font-size: 0.85rem;
  font-weight: 500;
  color: #fff;
}

.social-pill img {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  border-radius: 5px;
}

.social-pill:hover {
  background: var(--yellow);
  color: var(--navy);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 20px;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.65);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
}

/* Floating Desktop LINE CTA + Mobile Sticky Bar */
.floating-cta {
  display: none;
}

@media (min-width: 992px) {
  .floating-cta {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 990;
    display: flex;
    flex-direction: column;
    gap: 10px;
  }
}

.mobile-sticky-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: #fff;
  border-top: 1px solid var(--border);
  box-shadow: 0 -6px 20px rgba(0,0,0,0.08);
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 8px;
  padding: 8px 12px;
}

@media (min-width: 992px) {
  .mobile-sticky-bar {
    display: none;
  }
}

.mobile-sticky-bar a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 11px 8px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.88rem;
  text-align: center;
}

.m-line { background: var(--line); color: #fff; }
.m-call { background: var(--navy); color: #fff; }
.m-fb   { background: var(--fb); color: #fff; }

/* Lightbox Modal */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(10, 6, 36, 0.88);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.lightbox.open {
  display: flex;
}

.lightbox-inner {
  background: #fff;
  border-radius: var(--radius-md);
  max-width: 920px;
  width: 100%;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  position: relative;
}

.lightbox-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: var(--navy);
  color: #fff;
  font-size: 1.3rem;
  cursor: pointer;
}

.lightbox-img-wrap {
  background: #f8fafc;
  display: flex;
  align-items: center;
  justify-content: center;
  max-height: 75vh;
  overflow: auto;
  padding: 16px;
}

.lightbox-img-wrap img {
  max-height: 70vh;
  width: auto;
  object-fit: contain;
}

.lightbox-bar {
  padding: 14px 20px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  border-top: 1px solid var(--border);
}

.lightbox-title {
  font-weight: 700;
  color: var(--navy);
  font-size: 1.05rem;
}

/* Mobile Viewport Polish (< 992px & < 640px) */
@media (max-width: 991px) {
  .site-footer {
    padding-bottom: 88px;
  }
}

@media (max-width: 639px) {
  .topbar-badges {
    display: none;
  }
  .topbar-inner {
    justify-content: center;
  }
  .topbar-phones {
    font-size: 0.78rem;
    gap: 12px;
  }
  .nav-inner {
    min-height: 64px;
    gap: 8px;
  }
  .brand-logo img {
    width: 42px;
    height: 42px;
  }
  .brand-text strong {
    font-size: 1.05rem;
  }
  .brand-text span {
    font-size: 0.72rem;
  }
  .header-cta .btn {
    display: none;
  }
  .hero {
    padding-top: 28px;
  }
  .hero-content {
    padding-bottom: 12px;
  }
  .hero h1 .highlight {
    font-size: clamp(1.05rem, 4.7vw, 1.45rem);
  }
  .hero-actions .btn {
    width: 100%;
  }
  .stat-num {
    font-size: 1.4rem;
  }
  .stat-label {
    font-size: 0.78rem;
  }
  .section {
    padding: 44px 0;
  }
  .btn {
    white-space: normal;
  }
  .footer-col ul li {
    white-space: normal;
  }
  .hide-mobile {
    display: none;
  }
  .nb {
    display: inline-block;
    white-space: nowrap;
  }
  .hero-content {
    text-align: center;
  }
  .hero-lead {
    font-size: min(0.95rem, 3.05vw);
    line-height: 1.8;
    margin-left: auto;
    margin-right: auto;
  }
  .lead-line {
    display: block;
    white-space: nowrap;
  }
  .quick-chips,
  .hero-actions {
    justify-content: center;
  }
  .hero h1 .highlight {
    display: block;
  }
  .hero-kicker {
    font-size: 0.82rem;
    padding: 6px 12px;
  }
  .section-header h2 {
    font-size: 1.45rem;
    text-wrap: balance;
  }
  .section-header p {
    font-size: 0.95rem;
    text-wrap: balance;
  }
  .chip {
    font-size: 0.88rem;
    padding: 6px 12px;
  }
  .client-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }
  .client-card {
    height: 84px;
    padding: 8px;
    border-radius: 12px;
    min-width: 0;
  }
  .client-card img {
    max-width: 100%;
    max-height: 64px;
  }
}

/* ===== Checklist CTA (guides) + global mobile polish ===== */
.cta-title { margin-bottom: 18px; line-height: 1.35; }
.cta-title span { display: inline-block; white-space: nowrap; }
.prep-list { list-style: none; margin: 0 auto 24px; padding: 0; max-width: 460px; text-align: left; display: grid; gap: 10px; }
.prep-list li { display: flex; align-items: center; gap: 14px; background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.2); border-radius: 14px; padding: 11px 16px; color: #fff; font-weight: 500; }
.prep-list li b { flex: 0 0 30px; height: 30px; border-radius: 50%; background: var(--yellow); color: var(--navy); display: inline-flex; align-items: center; justify-content: center; font-size: 0.95rem; }
.cta-line-btn { white-space: nowrap; }
.cta-note { margin-top: 12px; font-size: 0.88rem; color: rgba(255,255,255,0.75); }

@media (max-width: 639px) {
  .btn-lg { padding: 14px 18px; font-size: min(1rem, 4.2vw); }
  .btn-line, .btn-navy, .btn-outline-navy, .btn-outline-white { white-space: nowrap; }
  .hero-actions .btn { white-space: nowrap; font-size: min(0.98rem, 4.1vw); padding-left: 12px; padding-right: 12px; }
  .cta-title { font-size: min(1.45rem, 6vw); }
  .cta-line-btn { width: 100%; }
  .quote-box { padding: 26px 18px; }
  .quote-grid h2 { text-wrap: balance; }
  h1, h2, h3 { text-wrap: balance; }
  p { text-wrap: pretty; }
  .container { padding-left: 18px; padding-right: 18px; }
  img { max-width: 100%; }
  body { overflow-x: hidden; }
}
@media (max-width: 639px) {
  .btn { font-size: min(1rem, 3.9vw); padding-left: 14px; padding-right: 14px; }
  .btn-sm { font-size: min(0.9rem, 3.7vw); }
}
/* ===== One-line card titles (scale with card width) ===== */
.product-card, .segment-card, .branch-card, .fabric-card { container-type: inline-size; }
.product-card-body h3 { white-space: nowrap; text-wrap: nowrap; font-size: 1.05rem; font-size: min(1.3rem, calc(5.3cqw - 2px)); }
.segment-body h3 { white-space: nowrap; text-wrap: nowrap; font-size: 1rem; font-size: min(1.2rem, calc(5cqw - 1px)); }
.branch-body h3 { white-space: nowrap; text-wrap: nowrap; font-size: 1rem; font-size: min(1.3rem, calc(5.6cqw - 1px)); }
.fabric-card-body h3 { white-space: nowrap; text-wrap: nowrap; font-size: 0.95rem; font-size: min(1.05rem, calc(5.2cqw - 1px)); }
/* ===== Centered "สั่งทำ" buttons + tidy premium strip ===== */
.product-card-footer { justify-content: center; }
.product-card-footer .btn { margin: 0 auto; min-width: 150px; }

.extra-items { flex-direction: column; justify-content: center; text-align: center; gap: 18px; }
.extra-items-list { width: 100%; justify-content: center; gap: 14px 28px; }
.extra-items-list > strong { flex: 0 0 100%; text-align: center; font-size: 1.05rem; color: var(--navy); }
.extra-item { flex-direction: column; text-align: center; gap: 8px; }
.extra-item img { width: 64px; height: 64px; }
.extra-items > .btn { min-width: 160px; margin: 0 auto; }

@media (max-width: 639px) {
  .extra-items { padding: 20px 14px; }
  .extra-items-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px 8px; }
  .extra-items-list > strong { grid-column: 1 / -1; }
  .extra-item { font-size: 0.9rem; }
  .extra-item img { width: 60px; height: 60px; }
  .product-card-footer .btn { width: 100%; }
}
/* ===== Equal-width "สั่งทำ" buttons ===== */
.product-card-footer .btn,
.extra-items > .btn { width: 100%; min-width: 0; max-width: none; }
@media (min-width: 640px) {
  .product-card-footer .btn { width: 180px; }
  .extra-items > .btn { width: 180px; }
}
/* ===== Stats strip: 4 rows on mobile ===== */
@media (max-width: 767px) {
  .stats-grid { grid-template-columns: 1fr; gap: 0; }
  .stat-box { border-right: none; border-bottom: 1px solid var(--border); padding: 14px 8px; }
  .stat-box:last-child { border-bottom: none; }
  .stat-num { font-size: 1.6rem; }
  .stat-label { font-size: 0.92rem; white-space: nowrap; }
}
/* ===== Stats strip: pretty cards on mobile ===== */
@media (max-width: 767px) {
  .stats-strip { background: linear-gradient(180deg, #f4f6fd 0%, #ffffff 100%); padding: 22px 0 26px; }
  .stats-grid { gap: 12px; }
  .stat-box {
    position: relative;
    display: grid;
    grid-template-columns: 52px 1fr;
    column-gap: 14px;
    align-items: center;
    text-align: left;
    background: #fff;
    border: 1px solid var(--border);
    border-left: 5px solid var(--red);
    border-radius: 16px;
    padding: 14px 16px;
    box-shadow: 0 6px 18px rgba(21, 9, 88, 0.07);
  }
  .stat-box:nth-child(2) { border-left-color: var(--yellow); }
  .stat-box:nth-child(3) { border-left-color: var(--navy); }
  .stat-box:nth-child(4) { border-left-color: var(--line); }
  .stat-box:last-child { border-bottom: 1px solid var(--border); }
  .stat-box::before {
    grid-row: 1 / span 2;
    width: 52px; height: 52px;
    border-radius: 14px;
    background: var(--surface-alt);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.6rem;
  }
  .stat-box:nth-child(1)::before { content: "🏆"; }
  .stat-box:nth-child(2)::before { content: "👕"; }
  .stat-box:nth-child(3)::before { content: "📍"; }
  .stat-box:nth-child(4)::before { content: "⏱️"; }
  .stat-num { font-size: 1.5rem; line-height: 1.2; }
  .stat-label { font-size: min(0.9rem, 3.5vw); margin-top: 2px; }
}
/* ===== Two-line branch title + overflow safety ===== */
.branch-title-2l span { display: block; white-space: nowrap; }
.branch-body h3.branch-title-2l { font-size: min(1.25rem, calc(5.2cqw - 1px)); line-height: 1.4; }
.branch-meta p, .segment-body li, .faq-answer, .step-card p, .tech-card p, .fabric-card-body p, .footer-col p { overflow-wrap: anywhere; }
.branch-card, .segment-card, .product-card, .fabric-card, .step-card { min-width: 0; }
/* Branch title: one line on wide cards, two lines on narrow ones */
@container (min-width: 520px) {
  .branch-title-2l span { display: inline; }
  .branch-title-2l span + span::before { content: " "; }
}
/* ===== Phone numbers never break ===== */
a[href^="tel:"], .topbar-phones a, .footer-col a[href^="tel:"] { white-space: nowrap; }
@media (max-width: 639px) {
  .topbar { padding: 6px 0; }
  .topbar-phones { flex-direction: column; align-items: center; gap: 2px; font-size: 0.82rem; width: 100%; }
  .topbar-phones a { display: block; text-align: center; }
  .branch-meta p { font-size: 0.95rem; }
  .branch-actions { flex-direction: column; align-items: stretch; }
  .branch-actions .btn { width: 100%; }
}
/* Keep short phrases together (no mid-phrase breaks) */
.nb { display: inline-block; white-space: nowrap; }
.footer-col p { line-height: 1.8; }
/* ===== Products: 2 compact cards per row on mobile ===== */
@media (max-width: 639px) {
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .product-card { border-radius: 16px; }
  .product-card:hover { transform: none; }
  .product-card-img { height: 170px; padding: 10px 8px 0; }
  .product-card-img img { max-height: 160px; max-width: 100%; }
  .min-badge { top: 8px; right: 8px; font-size: 0.68rem; padding: 3px 8px; }
  .product-card-body { padding: 12px 10px 12px; }
  .product-card-body p, .product-card-body .tag-row { display: none; }
  .product-card-body h3,
  .product-card-body h3 a {
    white-space: normal; text-wrap: balance;
    font-size: 0.92rem; line-height: 1.35; text-align: center; margin-bottom: 10px;
  }
  .product-card-footer { padding-top: 0; border-top: none; }
  .product-card-footer .btn { width: 100%; padding: 9px 8px; font-size: 0.9rem; }
}
/* Product titles: Thai on line 1, English on line 2 (mobile) */
@media (max-width: 639px) {
  .product-card-body h3 a { display: block; white-space: nowrap; font-size: min(0.88rem, 3.7vw); }
  .product-card-body h3 .th, .product-card-body h3 .en { display: block; }
  .product-card-body h3 .en { font-weight: 500; font-size: 0.82em; color: var(--text-muted); }
}

/* ===== 21-Photo Front/Back Product Showcase ===== */
.showcase-tabs {
  margin-bottom: 24px;
}

@media (max-width: 639px) {
  .showcase-tabs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }
  .showcase-tabs .tab-btn {
    padding: 9px 6px;
    font-size: min(0.86rem, 3.6vw);
    white-space: nowrap;
    text-align: center;
  }
}

.showcase-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-bottom: 40px;
}

@media (min-width: 768px) {
  .showcase-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
  }
}

.showcase-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.showcase-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.showcase-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.showcase-head h3 {
  font-size: 1.06rem;
  font-weight: 700;
  color: var(--navy);
  white-space: nowrap;
  margin: 0;
}

@media (max-width: 639px) {
  .showcase-card {
    padding: 12px;
  }
  .showcase-card:hover {
    transform: none;
  }
  .showcase-head h3 {
    font-size: min(0.95rem, 4.1vw);
  }
}

.showcase-badge {
  font-size: 0.76rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--surface-alt);
  color: var(--navy);
  white-space: nowrap;
  flex-shrink: 0;
}

.showcase-badge.emb {
  background: #eef2ff;
  color: var(--navy);
}

.showcase-badge.scr {
  background: #fff1f2;
  color: var(--red);
}

.showcase-badge.sub {
  background: #ecfdf5;
  color: #047857;
}

.showcase-photos {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.showcase-photos.single {
  grid-template-columns: minmax(0, 1fr);
  max-width: calc(50% - 5px);
  width: 100%;
  margin: 0 auto;
}

.showcase-shot {
  border-radius: 12px;
  overflow: hidden;
  background: #e6e8ee;
  border: 1px solid #e2e8f0;
  cursor: pointer;
  display: flex;
  flex-direction: column;
}

.showcase-shot img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  display: block;
  transition: transform 0.28s ease;
}

.showcase-shot:hover img {
  transform: scale(1.04);
}

.shot-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 7px 10px;
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--navy);
  white-space: nowrap;
}

.shot-label i {
  font-style: normal;
  font-size: 0.74rem;
  color: var(--text-muted);
  font-weight: 500;
}

.portfolio-subhead {
  text-align: center;
  margin: 8px 0 22px;
}

.portfolio-subhead h3 {
  font-size: 1.28rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 4px;
}

.portfolio-subhead p {
  font-size: 0.94rem;
  color: var(--text-muted);
}

/* ===== Hero Showcase Video Card ===== */
.hero-visual {
  align-items: center;
  padding-bottom: 36px;
}

.hero-video-wrap {
  width: 100%;
  max-width: 430px;
  border-radius: 22px;
  overflow: hidden;
  background: #0e063e;
  border: 2px solid rgba(255, 212, 59, 0.48);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.42);
}

.hero-video {
  display: block;
  width: 100%;
  aspect-ratio: 5 / 6;
  object-fit: cover;
  background: #0e063e;
}

.hero-video-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 14px;
  background: rgba(14, 6, 62, 0.98);
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.hero-video-bar span {
  font-size: 0.86rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.92);
  white-space: nowrap;
}

.hero-sound-btn {
  border: none;
  border-radius: 999px;
  padding: 6px 14px;
  background: var(--yellow);
  color: var(--navy-dark);
  font-family: inherit;
  font-size: 0.84rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.16s ease, background 0.16s ease;
}

.hero-sound-btn:hover {
  transform: translateY(-1px);
  background: #ffe066;
}

.hero-sound-btn.unmuted {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
}

@media (max-width: 639px) {
  .hero-visual {
    padding-bottom: 24px;
  }
  .hero-video-wrap {
    max-width: 100%;
    border-radius: 18px;
  }
  .hero-video-bar span {
    font-size: 0.8rem;
  }
  .hero-sound-btn {
    font-size: 0.78rem;
    padding: 6px 12px;
  }
}

/* ===== 103-Photo Showcase Gallery Grid ===== */
.showcase-gallery-grid {
  margin-bottom: 36px;
}
.showcase-gallery-grid .gallery-item.contain-mode img {
  aspect-ratio: 1 / 1;
  background: #e8ecf2;
  padding: 6px;
}
.showcase-gallery-grid .gallery-caption {
  gap: 8px;
  padding: 9px 10px;
}
.showcase-gallery-grid .cap-title {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--navy);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
  flex: 1;
}
@media (max-width: 639px) {
  .showcase-tabs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 7px;
  }
  .showcase-tabs .tab-btn {
    padding: 7px 11px;
    font-size: 0.8rem;
  }
  .showcase-gallery-grid {
    gap: 10px;
  }
  .showcase-gallery-grid .gallery-caption {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 8px;
  }
  .showcase-gallery-grid .cap-title {
    width: 100%;
    font-size: 0.78rem;
  }
}
/* ===== Inline Facebook Link & Show-All Showcase Button ===== */
.fb-inline-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #1877f2;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.fb-inline-link:hover {
  color: var(--navy);
}
.showcase-more-wrap {
  display: flex;
  justify-content: center;
  margin: -12px 0 36px;
}
/* ===== Pretty "แสดงทั้งหมด" Button ===== */
.btn-show-all {
  background: linear-gradient(135deg, var(--navy) 0%, #2b1894 100%);
  color: #fff;
  border: 2px solid rgba(255, 212, 59, 0.55);
  padding: 12px 32px;
  font-size: 1rem;
  font-weight: 700;
  border-radius: 999px;
  box-shadow: 0 10px 24px rgba(21, 9, 88, 0.22);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.btn-show-all:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(21, 9, 88, 0.30);
}
/* ===== Hero YouTube Embed ===== */
.hero-yt-wrap {
  max-width: 520px;
}
.hero-yt-frame {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: none;
  background: #0e063e;
}
/* ===== Larger YouTube Hero Layout ===== */
@media (min-width: 960px) {
  .hero-grid {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 36px;
  }
}
.hero-yt-wrap {
  max-width: 100%;
  width: 100%;
}