/* ============================================================
   modern.css — Thai Network System Co.,Ltd.
   Modern redesign overlay — loads after custom.css
   ============================================================ */

/* ── 1. Design Tokens ──────────────────────────────────────── */
:root {
  --color-primary:       #1a7a3c;
  --color-primary-light: #22a050;
  --color-primary-dark:  #145e2d;
  --color-accent:        #f0b429;

  --color-bg:            #ffffff;
  --color-bg-alt:        #f7f8f9;
  --color-border:        #e8eaed;
  --color-text-base:     #1f2329;
  --color-text-muted:    #6b7280;

  --shadow-sm:  0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.05);
  --shadow-md:  0 4px 16px rgba(0,0,0,0.10), 0 2px 6px rgba(0,0,0,0.06);
  --shadow-lg:  0 10px 30px rgba(0,0,0,0.12), 0 4px 8px rgba(0,0,0,0.06);
  --shadow-top: 0 -2px 16px rgba(0,0,0,0.07);

  --radius-sm:   6px;
  --radius-md:   14px;
  --radius-lg:   22px;
  --radius-pill: 999px;

  --font-thai: 'Prompt', sans-serif;
  --lh-thai:   1.75;
}

/* ── 2. Typography ─────────────────────────────────────────── */
body, p, h1, h2, h3, h4, h5, h6,
.btn, input, select, textarea, label, span, a, li {
  font-family: var(--font-thai) !important;
}

body {
  color: var(--color-text-base);
  font-size: 16px;
  line-height: var(--lh-thai);
  -webkit-font-smoothing: antialiased;
}

p {
  color: var(--color-text-muted) !important;
  line-height: var(--lh-thai) !important;
}

h1 { font-size: clamp(26px, 4vw, 40px) !important; font-weight: 600 !important; line-height: 1.3 !important; }
h2 { font-size: clamp(20px, 3vw, 30px) !important; font-weight: 600 !important; line-height: 1.35 !important; }
h3 { font-size: clamp(17px, 2.5vw, 22px) !important; font-weight: 500 !important; line-height: 1.4 !important; }
h4, h5, h6 { font-size: 17px !important; font-weight: 500 !important; }

/* ── 3. Color Unification ─────────────────────────────────── */
.text-primary, .text-green { color: var(--color-primary) !important; }
.text-blue { color: var(--color-primary) !important; }
.text-red { color: var(--color-accent) !important; }

html .bg-color-primary,
html .bg-primary {
  background-color: var(--color-primary) !important;
}

html .badge-primary {
  background-color: var(--color-primary) !important;
  border-radius: var(--radius-pill) !important;
  font-size: 11px !important;
  padding: 10px 13px !important;
  font-weight: 500 !important;
  transition: background-color 0.2s ease !important;
}
html .badge-primary:hover {
  background-color: var(--color-primary-light) !important;
  color: #fff !important;
}

.card-default {
  border-bottom: 3px solid var(--color-primary) !important;
}

/* ── 4. Header ─────────────────────────────────────────────── */
#header .header-body {
  background: #ffffff;
  border-top: none !important;
  border-bottom: 1px solid var(--color-border) !important;
  box-shadow: var(--shadow-sm) !important;
}

/* Top bar */
#header .header-top,
#header .header-top.header-top-default {
  background-color: var(--color-primary-dark) !important;
  min-height: 38px !important;
  font-size: 13px;
}

/* Nav bar */
#header .header-nav-bar.bg-primary {
  background-color: var(--color-primary) !important;
  box-shadow: none !important;
}

/* Logo row */
#header .header-container .header-row {
  padding-top: 10px !important;
  padding-bottom: 10px !important;
}

/* Extra info labels */
#header .header-extra-info-text label {
  font-size: 12px !important;
  color: var(--color-text-muted) !important;
  font-weight: 500 !important;
  letter-spacing: 0.02em;
}

/* Nav links — reset Porto's dropdown-light white background */
#header .header-nav-main nav > ul > li > a,
#header .header-nav-main nav > ul > li.dropdown-full-color.dropdown-light > a,
#header .header-nav.header-nav-force-light-text .header-nav-main nav > ul > li > a {
  background-color: transparent !important;
  color: rgba(255,255,255,0.92) !important;
  font-size: 14px !important;
  padding: 7px 15px !important;
  border-radius: var(--radius-pill) !important;
  font-weight: 500 !important;
  transition: background-color 0.2s ease, color 0.2s ease !important;
}

#header .header-nav-main nav > ul > li > a:hover,
#header .header-nav-main nav > ul > li.dropdown-full-color.dropdown-light > a:hover,
#header .header-nav.header-nav-force-light-text .header-nav-main nav > ul > li > a:hover {
  background-color: rgba(255,255,255,0.18) !important;
  color: #ffffff !important;
}

/* Active nav item */
html #header .header-nav:not(.header-nav-line) .header-nav-main nav > ul > li.dropdown-full-color.dropdown-light > a.active,
#header .header-nav.header-nav-force-light-text .header-nav-main nav > ul > li > a.active {
  background-color: rgba(255,255,255,0.25) !important;
  color: #ffffff !important;
}

/* Social icons in top bar */
#header .header-social-icons.social-icons li {
  border: 1px solid rgba(255,255,255,0.35) !important;
  border-radius: 50% !important;
  transition: background-color 0.2s ease !important;
}
#header .header-social-icons.social-icons li:hover {
  background: rgba(255,255,255,0.2) !important;
}
#header .header-social-icons.social-icons li a {
  color: rgba(255,255,255,0.85) !important;
}

/* Mobile hamburger button */
#header .header-btn-collapse-nav {
  background: var(--color-primary-dark) !important;
  border: none !important;
  border-radius: var(--radius-sm) !important;
  color: #fff !important;
}

/* ── 5. Breadcrumb / Page Header ──────────────────────────── */

/* Hide old theme breadcrumb if it still renders */
.page-header.page-header-classic { display: none !important; }

/* New breadcrumb wrapper */
.page-header-modern {
  background: linear-gradient(135deg, #f0f7f3 0%, #e8f4ec 100%);
  border-bottom: 1px solid var(--color-border);
  padding: 14px 0 16px;
  position: relative;
}
.page-header-modern::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, var(--color-primary-light), var(--color-primary-dark));
  border-radius: 0 3px 3px 0;
}

/* Breadcrumb list */
.breadcrumb-list {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  list-style: none;
  margin: 0 0 8px;
  padding: 0;
  gap: 4px;
}

.breadcrumb-item a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--color-primary) !important;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none !important;
  padding: 3px 8px;
  border-radius: var(--radius-pill);
  transition: background 0.18s, color 0.18s;
}
.breadcrumb-item a:hover {
  background: rgba(26,122,60,0.10);
  color: var(--color-primary-dark) !important;
}
.breadcrumb-item a .fa-home {
  font-size: 13px;
}

.breadcrumb-sep {
  color: var(--color-text-muted);
  font-size: 10px;
  line-height: 1;
  padding: 0 1px;
  list-style: none;
}

.breadcrumb-current {
  font-size: 13px;
  color: var(--color-text-muted);
  font-weight: 500;
  padding: 3px 8px;
}

/* Page title */
.page-header-title {
  font-size: 20px !important;
  font-weight: 700 !important;
  color: var(--color-text-base) !important;
  margin: 0 !important;
  line-height: 1.3 !important;
  letter-spacing: -0.01em;
}

/* ── 6. Buttons ───────────────────────────────────────────── */
.btn {
  border-radius: var(--radius-pill) !important;
  font-weight: 500 !important;
  letter-spacing: 0.02em !important;
  transition: background-color 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease !important;
}

.btn-primary {
  background-color: var(--color-primary) !important;
  color: #ffffff !important;
  border: none !important;
  padding: 10px 26px !important;
}
.btn-primary:hover {
  background-color: var(--color-primary-light) !important;
  color: #ffffff !important;
  transform: translateY(-1px);
  box-shadow: 0 5px 16px rgba(26,122,60,0.35) !important;
}

.btn-danger:hover,
.btn-success:hover {
  transform: translateY(-1px);
}

/* ── 7. Section Spacing & Backgrounds ────────────────────── */
section.section {
  position: relative;
}

/* Soften the alternating backgrounds */
section[style*="background:#F4F4F4"],
section[style*="background: #F4F4F4"],
.section[style*="background:#F4F4F4"] {
  background-color: var(--color-bg-alt) !important;
}

/* Section heading style — replace dated image bar */
img[src="img/bar-1.png"],
img[src*="bar-1.png"] {
  display: none !important;
}

.section-heading-underline {
  position: relative;
  display: inline-block;
  padding-bottom: 10px;
  margin-bottom: 24px;
}
.section-heading-underline::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 44px;
  height: 3px;
  background: var(--color-primary);
  border-radius: var(--radius-pill);
}

/* ── 8. Product / Service Cards (thumb-info) ─────────────── */
.thumb-info,
.thumb-info.thumb-info-no-borders,
.thumb-info.thumb-info-no-borders-rounded {
  border-radius: var(--radius-md) !important;
  box-shadow: var(--shadow-sm) !important;
  background: #ffffff !important;
  overflow: hidden !important;
  transition: transform 0.25s ease, box-shadow 0.25s ease !important;
  display: block !important;
}

.thumb-info:hover,
.thumb-info.thumb-info-no-borders:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md) !important;
}

.thumb-info .thumb-info-wrapper {
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  overflow: hidden !important;
}

/* Overlay tint on hover — green instead of black */
.thumb-info .thumb-info-wrapper:after {
  background: rgba(26,122,60,0.12) !important;
}

/* Action icon */
.thumb-info .thumb-info-action-icon {
  background: var(--color-primary) !important;
  border-radius: 50% !important;
  width: 42px !important;
  height: 42px !important;
  line-height: 42px !important;
}

/* Product title */
.thumb-info .title,
.thumb-info .font-1.mt-3.title,
.thumb-info .font-1.mt-2.title {
  padding: 6px 14px !important;
  font-size: 15px !important;
  font-weight: 500 !important;
  color: var(--color-text-base) !important;
  line-height: 1.5 !important;
}

/* Price */
.thumb-info .font-1.mt-2.text-red {
  font-size: 22px !important;
  font-weight: 600 !important;
  padding: 0 14px 14px !important;
}

/* Category label badge on image */
.thumb-info-wrapper > div[style*="background:#00000099"] {
  background: rgba(0,0,0,0.5) !important;
  backdrop-filter: blur(3px);
  font-size: 11px !important;
  letter-spacing: 0.02em;
  border-radius: 0 0 var(--radius-sm) 0 !important;
}

/* ── 9. Category Cards ────────────────────────────────────── */
.category {
  position: relative;
}

.category img {
  border-radius: var(--radius-md) !important;
  transition: transform 0.25s ease, box-shadow 0.25s ease !important;
  width: 100%;
}

.category img:hover {
  transform: translateY(-3px) scale(1.015);
  box-shadow: var(--shadow-md) !important;
}

.category > div[style*="background:#D00"] {
  background: var(--color-primary) !important;
  border-radius: var(--radius-sm) 0 var(--radius-sm) 0 !important;
  font-size: 11px !important;
  padding: 2px 10px !important;
  box-shadow: var(--shadow-sm) !important;
  z-index: 2;
}

/* ── 10. Footer ──────────────────────────────────────────── */
#footer {
  background: #111827 !important;
  box-shadow: var(--shadow-top) !important;
}

#footer .text-white,
#footer p {
  color: #d1d5db !important;
  font-size: 14px !important;
  line-height: var(--lh-thai) !important;
}

#footer .text-green {
  color: #4ade80 !important;
}

#footer .text-size-1 {
  font-size: 17px !important;
  font-weight: 600 !important;
  letter-spacing: 0.01em;
}

#footer a.text-green,
#footer a {
  color: #4ade80 !important;
  transition: color 0.2s ease;
}
#footer a:hover {
  color: #86efac !important;
  text-decoration: none;
}

#footer .container > .row[style*="padding:50px"] {
  padding: 60px 10px !important;
}

#footer .footer-copyright.footer-copyright-style-2 {
  background-color: var(--color-primary-dark) !important;
  padding: 14px 10px !important;
  font-size: 13px !important;
}

#footer .footer-copyright.footer-copyright-style-2 a {
  color: rgba(255,255,255,0.8) !important;
}

#footer .social-icons li {
  border: 1px solid rgba(255,255,255,0.2) !important;
  border-radius: 50% !important;
  transition: background-color 0.2s ease !important;
}
#footer .social-icons li:hover {
  background: var(--color-primary-light) !important;
}
#footer .social-icons li a {
  color: rgba(255,255,255,0.75) !important;
}

/* ── 11. Mobile Menu ──────────────────────────────────────── */
.mobile-menu-content {
  background: var(--color-primary) !important;
  border-radius: var(--radius-sm) !important;
  filter: none !important;
  transition: background-color 0.2s ease !important;
}

.mobile-menu-content-active {
  background: var(--color-primary-dark) !important;
  border-radius: var(--radius-sm) !important;
  filter: none !important;
  box-shadow: var(--shadow-sm) !important;
}

.mobile-menu-content:hover,
.mobile-menu-content-active:hover {
  background: var(--color-primary-light) !important;
  color: #ffffff !important;
}

/* ── 12. Misc Refinements ────────────────────────────────── */

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Links */
a {
  transition: color 0.2s ease, opacity 0.2s ease;
}

/* Forms */
.form-control {
  border-radius: var(--radius-sm) !important;
  border-color: var(--color-border) !important;
  font-size: 15px !important;
  padding: 10px 14px !important;
  transition: border-color 0.2s ease, box-shadow 0.2s ease !important;
}
.form-control:focus {
  border-color: var(--color-primary) !important;
  box-shadow: 0 0 0 3px rgba(26,122,60,0.15) !important;
}

/* Alert text block */
.alert_text {
  font-size: 15px;
  color: var(--color-text-muted);
  line-height: var(--lh-thai);
}

/* Floating action button wrapper */
.kc_fab_wrapper .kc_fab_main_btn {
  background: var(--color-primary) !important;
  box-shadow: var(--shadow-md) !important;
}

/* Counter widget */
.widget-counter span {
  color: var(--color-primary) !important;
}

/* Tag badges */
.inc_tag a,
a.tag-badge {
  border-radius: var(--radius-pill) !important;
  font-size: 13px !important;
  transition: background-color 0.2s ease, color 0.2s ease !important;
}

/* Slider hero section — add overlay for legibility */
#rev_slider_wrapper::after,
.rev_slider_wrapper::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.08) 0%, rgba(0,0,0,0.18) 100%);
  pointer-events: none;
  z-index: 1;
}

/* ── 13. Contact Page ─────────────────────────────────────── */

.contact-page-section {
  background-color: var(--color-bg-alt) !important;
}

/* Hero */
.contact-hero-desc {
  font-size: 16px !important;
  max-width: 680px !important;
  margin: 0 auto !important;
  color: var(--color-text-muted) !important;
  line-height: 1.8 !important;
}

/* ── Contact Card ── */
.contact-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 36px 28px 28px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  border-bottom: 3px solid transparent;
}
.contact-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-bottom-color: var(--color-primary);
}
.contact-card--line:hover {
  border-bottom-color: #06C755;
}

/* Icon circle */
.contact-card-icon {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: rgba(26,122,60,0.10);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin-bottom: 18px;
  transition: background 0.2s ease;
}
.contact-card:hover .contact-card-icon {
  background: rgba(26,122,60,0.18);
}
.contact-card-icon--line {
  background: rgba(6,199,85,0.12);
  color: #06C755;
}
.contact-card--line:hover .contact-card-icon--line {
  background: rgba(6,199,85,0.22);
}
.contact-card-icon--email {
  background: rgba(26,122,60,0.10);
  color: var(--color-primary);
}

/* Title */
.contact-card-title {
  font-size: 15px !important;
  font-weight: 600 !important;
  color: var(--color-text-muted) !important;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 14px;
}

/* Value link */
.contact-card-value {
  display: block;
  font-size: 19px !important;
  font-weight: 600;
  color: var(--color-primary) !important;
  text-decoration: none !important;
  line-height: 1.65;
  transition: color 0.2s ease;
}
.contact-card-value:hover {
  color: var(--color-primary-light) !important;
  text-decoration: none !important;
}
.contact-card-value--line {
  color: #06C755 !important;
  font-size: 17px !important;
}
.contact-card-value--line:hover {
  color: #05a645 !important;
}
.contact-card-value--sm {
  font-size: 15px !important;
  word-break: break-all;
}

/* Sub-label (fax) */
.contact-card-sub {
  display: block;
  font-size: 13px;
  color: var(--color-text-muted);
  margin-top: 10px;
}

/* QR code */
.contact-qr {
  margin: 4px 0 14px;
}
.contact-qr-img {
  width: 160px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.contact-qr-img:hover {
  transform: scale(1.04);
  box-shadow: var(--shadow-md);
}

/* ── Address Bar ── */
.contact-address-bar {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  background: #ffffff;
  border-radius: var(--radius-md);
  padding: 22px 28px;
  box-shadow: var(--shadow-sm);
  max-width: 660px;
  margin: 0 auto 36px;
  border-left: 4px solid var(--color-accent);
}

.contact-address-icon {
  flex-shrink: 0;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(240,180,41,0.12);
  color: var(--color-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  margin-top: 2px;
}

.contact-address-body {
  display: flex;
  flex-direction: column;
  line-height: 1.7;
}
.contact-address-label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-muted);
  margin-bottom: 4px;
  display: block;
}
.contact-address-text {
  font-size: 15px;
  color: var(--color-text-base);
  line-height: 1.7;
}

/* ── CTA Buttons ── */
.btn-cta-call,
.btn-cta-line {
  padding: 13px 34px !important;
  font-size: 16px !important;
  border-radius: var(--radius-pill) !important;
  font-weight: 600 !important;
  border: none !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease !important;
  display: inline-flex;
  align-items: center;
}

.btn-cta-call {
  background: linear-gradient(135deg, #22a050, #1a7a3c) !important;
  color: #ffffff !important;
  box-shadow: 0 4px 14px rgba(26,122,60,0.35) !important;
}
.btn-cta-call:hover {
  color: #ffffff !important;
  transform: translateY(-2px);
  box-shadow: 0 7px 22px rgba(26,122,60,0.45) !important;
}

.btn-cta-line {
  background: linear-gradient(135deg, #07d85e, #06C755) !important;
  color: #ffffff !important;
  box-shadow: 0 4px 14px rgba(6,199,85,0.35) !important;
}
.btn-cta-line:hover {
  color: #ffffff !important;
  transform: translateY(-2px);
  box-shadow: 0 7px 22px rgba(6,199,85,0.45) !important;
}

@media (max-width: 576px) {
  .contact-card {
    padding: 28px 20px 22px;
  }
  .btn-cta-call,
  .btn-cta-line {
    width: 100%;
    justify-content: center;
    margin-right: 0 !important;
  }
  .contact-address-bar {
    padding: 18px 18px;
  }
}

/* ════════════════════════════════════════════════════════════
   §14  PROFILE PAGE
   ════════════════════════════════════════════════════════════ */

.profile-page-section {
  background-color: var(--color-bg-alt);
}

/* ── Hero ── */
.profile-hero-badge {
  display: inline-block;
  padding: 5px 22px;
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light));
  color: #fff;
  font-family: var(--font-thai);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2.5px;
  border-radius: var(--radius-pill);
  text-transform: uppercase;
}

.profile-hero-title {
  font-size: clamp(24px, 4vw, 36px);
  font-weight: 800;
  color: var(--color-primary);
  line-height: 1.3;
}

.profile-hero-subtitle {
  font-family: var(--font-thai);
  font-size: 15px;
  font-weight: 600;
  color: var(--color-text-muted);
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

/* ── Section label ── */
.profile-section-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-thai);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.profile-section-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light));
  flex-shrink: 0;
}

/* ── About card ── */
.profile-about {
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 36px 40px;
  border-top: 4px solid var(--color-primary);
}

.profile-para {
  font-family: var(--font-thai);
  font-size: 15.5px;
  line-height: 1.9;
  color: var(--color-text);
  margin-bottom: 18px;
}

/* ── Stat box ── */
.profile-stat-box {
  background: var(--color-bg-alt);
  border-radius: var(--radius-md);
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.profile-stat-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-thai);
  font-size: 14.5px;
  font-weight: 600;
  color: var(--color-text);
}

.profile-stat-item i {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  flex-shrink: 0;
}

/* ── Service intro ── */
.profile-service-intro {
  font-family: var(--font-thai);
  font-size: 15px;
  color: var(--color-text-muted);
}

/* ── Service cards ── */
.profile-service-card {
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 30px 28px 28px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  border-bottom: 4px solid var(--color-primary);
}

.profile-service-card--disinfect {
  border-bottom-color: #06C755;
}

.profile-service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.profile-service-card-header {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 22px;
}

.profile-service-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}

.profile-service-icon--disinfect {
  background: linear-gradient(135deg, #07d85e, #06C755);
}

.profile-service-num {
  font-family: var(--font-thai);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--color-primary);
  margin-bottom: 2px;
  text-transform: uppercase;
}

.profile-service-num--disinfect {
  color: #06C755;
}

.profile-service-title {
  font-family: var(--font-thai);
  font-size: 16px;
  font-weight: 700;
  color: var(--color-text);
  line-height: 1.35;
}

.profile-service-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.profile-service-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-family: var(--font-thai);
  font-size: 14.5px;
  font-weight: 600;
  color: var(--color-text);
  line-height: 1.5;
}

.profile-service-list li i {
  color: var(--color-primary);
  margin-top: 2px;
  flex-shrink: 0;
  font-size: 15px;
}

.profile-service-list--disinfect li i {
  color: #06C755;
}

@media (max-width: 767px) {
  .profile-about {
    padding: 24px 20px;
  }
  .profile-stat-box {
    margin-top: 24px;
  }
  .profile-service-card {
    padding: 24px 20px 20px;
  }
}

/* ════════════════════════════════════════════════════════════
   §15  FOOTER
   ════════════════════════════════════════════════════════════ */

/* ── Base ── */
.site-footer {
  background: #111a14;
  color: #c8d5cb;
  border-top: 3px solid var(--color-primary);
}

/* ── Main footer area ── */
.footer-main {
  padding: 60px 0 30px;
}

/* ── Brand block ── */
.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.footer-brand-th {
  font-family: var(--font-thai);
  font-size: 16px;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.4;
}

.footer-brand-en {
  font-family: var(--font-thai);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.5px;
  color: var(--color-primary-light);
  text-transform: uppercase;
}

.footer-desc {
  font-family: var(--font-thai);
  font-size: 13.5px;
  line-height: 1.8;
  color: #8fa897 !important;
  margin-bottom: 18px;
}

/* ── QR block ── */
.footer-qr-wrap {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  text-decoration: none !important;
}

.footer-qr-img {
  width: 130px;
  border-radius: var(--radius-md);
  border: 2px solid rgba(255,255,255,0.08);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.footer-qr-wrap:hover .footer-qr-img {
  transform: scale(1.04);
  border-color: var(--color-primary-light);
}

.footer-qr-label {
  font-family: var(--font-thai);
  font-size: 12.5px;
  color: #06C755;
  font-weight: 600;
}

/* ── Section headings ── */
.footer-heading {
  font-family: var(--font-thai) !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  color: #ffffff !important;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 20px !important;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  position: relative;
}

.footer-heading::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 36px;
  height: 2px;
  background: var(--color-primary-light);
  border-radius: 2px;
}

/* ── Contact list ── */
.footer-contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.footer-contact-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-family: var(--font-thai);
  font-size: 13.5px;
  line-height: 1.6;
  color: #c8d5cb;
}

.footer-contact-list li i {
  width: 18px;
  text-align: center;
  color: var(--color-primary-light);
  margin-top: 3px;
  flex-shrink: 0;
  font-size: 13px;
}

.footer-contact-list li a {
  color: #c8d5cb;
  text-decoration: none;
  transition: color 0.2s;
}

.footer-contact-list li a:hover {
  color: var(--color-primary-light);
}

.footer-addr span {
  font-size: 13px;
  line-height: 1.7;
}

/* ── Admin button ── */
.footer-admin-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 16px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-pill);
  font-family: var(--font-thai);
  font-size: 13px;
  color: #c8d5cb !important;
  text-decoration: none !important;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.footer-admin-btn:hover {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff !important;
}

/* ── Tags ── */
.footer-tags .badge,
.footer-tags a {
  display: inline-block;
  margin: 0 4px 8px 0;
  padding: 5px 12px;
  background: rgba(255,255,255,0.06) !important;
  border: 1px solid rgba(255,255,255,0.1) !important;
  border-radius: var(--radius-pill) !important;
  font-family: var(--font-thai);
  font-size: 12.5px !important;
  color: #c8d5cb !important;
  text-decoration: none !important;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  line-height: 1.4 !important;
}

.footer-tags .badge:hover,
.footer-tags a:hover {
  background: var(--color-primary) !important;
  border-color: var(--color-primary) !important;
  color: #fff !important;
}

/* ── Stats ── */
.footer-stats {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.footer-stat-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 9px 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.footer-stat-row:first-child {
  border-top: 1px solid rgba(255,255,255,0.05);
}

.footer-stat-label {
  font-family: var(--font-thai);
  font-size: 13.5px;
  color: #8fa897;
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-stat-label i {
  font-size: 12px;
  color: var(--color-primary-light);
  width: 14px;
  text-align: center;
}

.footer-stat-val {
  font-family: var(--font-thai);
  font-size: 14px;
  font-weight: 700;
  color: #ffffff;
}

.footer-stat-row--total {
  border-top: 1px solid rgba(255,255,255,0.12) !important;
  margin-top: 4px;
  padding-top: 12px !important;
}

.footer-stat-row--total .footer-stat-label {
  color: var(--color-primary-light);
  font-weight: 600;
}

.footer-stat-row--total .footer-stat-val {
  color: var(--color-primary-light);
  font-size: 16px;
}

/* ── Copyright bar ── */
.footer-bottom {
  background: var(--color-primary-dark, #145e2d);
  padding: 14px 0;
  font-family: var(--font-thai);
  font-size: 13px;
  color: rgba(255,255,255,0.75);
}

.footer-bottom a {
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-bottom a:hover {
  color: #fff;
}

.footer-bottom-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 12px;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--radius-pill);
  font-size: 13px;
  transition: background 0.2s, border-color 0.2s;
}

.footer-bottom-link:hover {
  background: rgba(255,255,255,0.1) !important;
  border-color: rgba(255,255,255,0.4) !important;
  color: #fff !important;
}

/* ── Override old footer CSS ── */
#footer,
#footer.site-footer {
  background: #111a14 !important;
  box-shadow: none !important;
  border-top: 3px solid #22a050 !important;
}

#footer .footer-copyright.footer-copyright-style-2 {
  display: none !important;
}

/* ── Responsive ── */
@media (max-width: 767px) {
  .footer-main {
    padding: 40px 0 20px;
  }
  .footer-qr-img {
    width: 110px;
  }
  .footer-bottom .col-md-6 {
    text-align: center !important;
  }
  .footer-bottom-link {
    margin-top: 8px;
  }
}

/* ════════════════════════════════════════════════════════════
   §16  SERVICE PAGE
   ════════════════════════════════════════════════════════════ */

.svc-page-section {
  background-color: var(--color-bg-alt);
}

/* ── Hero ── */
.svc-page-badge {
  display: inline-block;
  padding: 5px 22px;
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light));
  color: #fff;
  font-family: var(--font-thai);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2.5px;
  border-radius: var(--radius-pill);
}

.svc-page-title {
  font-size: clamp(22px, 3.5vw, 34px) !important;
  font-weight: 800 !important;
  color: var(--color-primary) !important;
}

.svc-page-desc {
  font-family: var(--font-thai);
  font-size: 15px;
  color: var(--color-text-muted) !important;
  max-width: 560px;
  margin: 0 auto;
}

/* ── Card ── */
.svc-card {
  background: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.28s ease, box-shadow 0.28s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}

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

/* ── Image ── */
.svc-card-img-wrap {
  display: block;
  position: relative;
  overflow: hidden;
  text-decoration: none !important;
}

.svc-card-img {
  width: 100%;
  padding-top: 65%;
  background-size: cover;
  background-position: center;
  transition: transform 0.4s ease;
}

.svc-card:hover .svc-card-img {
  transform: scale(1.06);
}

/* ── Overlay ── */
.svc-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(26,122,60,0.75) 0%, rgba(26,122,60,0.0) 55%);
  opacity: 0;
  transition: opacity 0.3s ease;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  padding: 16px;
}

.svc-card:hover .svc-card-overlay {
  opacity: 1;
}

.svc-card-overlay-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #fff;
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  transform: translateY(10px);
  transition: transform 0.3s ease;
}

.svc-card:hover .svc-card-overlay-btn {
  transform: translateY(0);
}

/* ── Body ── */
.svc-card-body {
  padding: 20px 22px 22px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.svc-card-title {
  font-family: var(--font-thai) !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  line-height: 1.45 !important;
  margin-bottom: 10px !important;
  color: var(--color-text-base) !important;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.svc-card-title a {
  color: inherit !important;
  text-decoration: none !important;
  transition: color 0.2s;
}

.svc-card-title a:hover {
  color: var(--color-primary) !important;
}

.svc-card-desc {
  font-family: var(--font-thai);
  font-size: 13.5px !important;
  color: var(--color-text-muted) !important;
  line-height: 1.7 !important;
  margin-bottom: 16px !important;
  flex: 1;
}

.svc-card-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: var(--font-thai);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--color-primary) !important;
  text-decoration: none !important;
  margin-top: auto;
  transition: gap 0.2s, color 0.2s;
}

.svc-card-btn:hover {
  gap: 8px;
  color: var(--color-primary-dark, #145e2d) !important;
}

/* ── CTA section ── */
.svc-cta-text {
  font-family: var(--font-thai);
  font-size: 16px;
  color: var(--color-text-muted) !important;
}

/* ── Responsive ── */
@media (max-width: 575px) {
  .svc-card-img {
    padding-top: 60%;
  }
  .svc-card-body {
    padding: 16px 16px 18px;
  }
}

/* ════════════════════════════════════════════════════════════
   §17  ARTICLE PAGE
   ════════════════════════════════════════════════════════════ */

.art-page-section {
  background-color: var(--color-bg-alt);
}

/* ── Hero ── */
.art-page-badge {
  display: inline-block;
  padding: 5px 20px;
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light));
  color: #fff;
  font-family: var(--font-thai);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  border-radius: var(--radius-pill);
}

.art-page-title {
  font-size: clamp(22px, 3.5vw, 34px) !important;
  font-weight: 800 !important;
  color: var(--color-primary) !important;
}

.art-page-desc {
  font-family: var(--font-thai);
  font-size: 15px;
  color: var(--color-text-muted) !important;
  max-width: 560px;
  margin: 0 auto;
}

/* ── Base card ── */
.art-card {
  background: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.28s ease, box-shadow 0.28s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}

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

/* ── Image wrap ── */
.art-card-img-wrap {
  display: block;
  position: relative;
  overflow: hidden;
  text-decoration: none !important;
}

.art-card-img {
  width: 100%;
  padding-top: 58%;
  background-size: cover;
  background-position: center;
  transition: transform 0.4s ease;
}

.art-card:hover .art-card-img {
  transform: scale(1.05);
}

.art-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.35) 0%, transparent 60%);
  transition: opacity 0.3s;
}

/* ── Featured card ── */
.art-card--featured {
  flex-direction: row;
  border-radius: var(--radius-lg);
}

.art-card-img-wrap--featured {
  flex: 0 0 48%;
  max-width: 48%;
}

.art-card-img-wrap--featured .art-card-img {
  padding-top: 0;
  height: 100%;
  min-height: 280px;
}

.art-card-body--featured {
  flex: 1;
  padding: 32px 36px !important;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.art-card-title--featured {
  font-size: clamp(18px, 2.5vw, 24px) !important;
  -webkit-line-clamp: 3 !important;
}

.art-card-desc--featured {
  -webkit-line-clamp: 4 !important;
}

.art-card-featured-badge {
  background: var(--color-accent);
  color: #1f2329;
  font-size: 11px !important;
  font-weight: 700;
  padding: 2px 10px;
  border-radius: var(--radius-pill);
  letter-spacing: 0.5px;
}

/* ── Card body ── */
.art-card-body {
  padding: 20px 22px 22px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

/* ── Meta ── */
.art-card-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 10px;
}

.art-card-meta span {
  font-family: var(--font-thai);
  font-size: 12px !important;
  color: var(--color-text-muted) !important;
  display: flex;
  align-items: center;
}

.art-card-meta i {
  color: var(--color-primary-light);
  font-size: 11px;
}

/* ── Title ── */
.art-card-title {
  font-family: var(--font-thai) !important;
  font-size: 15.5px !important;
  font-weight: 700 !important;
  line-height: 1.5 !important;
  color: var(--color-text-base) !important;
  margin-bottom: 10px !important;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.art-card-title a {
  color: inherit !important;
  text-decoration: none !important;
  transition: color 0.2s;
}

.art-card-title a:hover {
  color: var(--color-primary) !important;
}

/* ── Excerpt ── */
.art-card-desc {
  font-family: var(--font-thai);
  font-size: 13.5px !important;
  color: var(--color-text-muted) !important;
  line-height: 1.7 !important;
  margin-bottom: 14px !important;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ── Read more btn ── */
.art-card-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-thai);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--color-primary) !important;
  text-decoration: none !important;
  margin-top: auto;
  transition: gap 0.2s, color 0.2s;
}

.art-card-btn:hover {
  gap: 10px;
  color: var(--color-primary-dark, #145e2d) !important;
}

/* ── Responsive ── */
@media (max-width: 767px) {
  .art-card--featured {
    flex-direction: column;
  }
  .art-card-img-wrap--featured {
    flex: none;
    max-width: 100%;
  }
  .art-card-img-wrap--featured .art-card-img {
    padding-top: 55%;
    height: auto;
    min-height: unset;
  }
  .art-card-body--featured {
    padding: 20px 20px !important;
  }
}

@media (max-width: 575px) {
  .art-card-img {
    padding-top: 60%;
  }
}

/* ════════════════════════════════════════════════════════════
   §18  Gallery Manager (page-product-edit)
════════════════════════════════════════════════════════════ */
.gallery-mgr-wrap {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,.08);
  overflow: hidden;
  margin-bottom: 30px;
}
.gallery-mgr-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  background: var(--color-primary);
  color: #fff;
  font-family: var(--font-thai);
  font-size: 16px;
  font-weight: 600;
}
.gallery-mgr-add-btn {
  cursor: pointer;
  background: rgba(255,255,255,.18);
  border: 1.5px solid rgba(255,255,255,.5);
  border-radius: 20px;
  padding: 5px 16px;
  font-size: 14px;
  font-weight: 500;
  transition: background .2s;
}
.gallery-mgr-add-btn:hover { background: rgba(255,255,255,.32); }

/* Drop zone */
.gallery-drop-zone {
  border: 2px dashed #c5dfc9;
  border-radius: 10px;
  margin: 16px;
  padding: 28px 20px;
  text-align: center;
  color: #888;
  cursor: pointer;
  transition: border-color .2s, background .2s;
  font-family: var(--font-thai);
}
.gallery-drop-zone i { font-size: 36px; color: var(--color-primary); margin-bottom: 8px; }
.gallery-drop-zone p { margin: 4px 0; font-size: 15px; }
.gallery-drop-hint { font-size: 12px !important; color: #aaa; }
.gallery-drop-zone:hover,
.gallery-drop-zone.drag-over {
  border-color: var(--color-primary);
  background: #f0f9f2;
}

/* Progress bar */
.gallery-progress-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 20px;
  background: #f8f9fa;
  font-family: var(--font-thai);
  font-size: 13px;
  color: #555;
}
.gallery-progress-bar {
  height: 8px;
  width: 0%;
  border-radius: 4px;
  background: var(--color-primary);
  transition: width .3s;
  flex: 1;
}

/* Image grid */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 12px;
  padding: 16px;
}
.gallery-item {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 1;
  background: #f0f0f0;
  box-shadow: 0 2px 8px rgba(0,0,0,.1);
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .3s;
}
.gallery-item:hover img { transform: scale(1.05); }
.gallery-item-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.45);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  opacity: 0;
  transition: opacity .25s;
}
.gallery-item:hover .gallery-item-overlay { opacity: 1; }
.gallery-item-btn {
  background: rgba(255,255,255,.22);
  border: 1.5px solid #fff;
  border-radius: 50%;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 15px;
  cursor: pointer;
  transition: background .2s;
  text-decoration: none;
}
.gallery-item-btn:hover { background: rgba(255,255,255,.42); color:#fff; }
.gallery-del-btn:hover  { background: rgba(220,53,69,.7) !important; }

/* Empty state */
.gallery-empty {
  grid-column: 1/-1;
  text-align: center;
  padding: 40px 20px;
  color: #bbb;
  font-family: var(--font-thai);
}
.gallery-empty i { font-size: 48px; margin-bottom: 12px; }
.gallery-empty p { font-size: 15px; margin: 0; }

/* ── Gallery Modal / Lightbox ──────────────────────────────── */
.gmodal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0,0,0,.88);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.gmodal-box {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 960px;
  width: 100%;
  max-height: 92vh;
}
.gmodal-close {
  position: absolute;
  top: -44px;
  right: 0;
  background: rgba(255,255,255,.12);
  border: 1.5px solid rgba(255,255,255,.35);
  border-radius: 50%;
  width: 38px;
  height: 38px;
  color: #fff;
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s;
}
.gmodal-close:hover { background: rgba(255,255,255,.28); }

/* Nav arrows */
.gmodal-nav {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,.14);
  border: 1.5px solid rgba(255,255,255,.3);
  border-radius: 50%;
  width: 48px;
  height: 48px;
  color: #fff;
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s;
  z-index: 10000;
}
.gmodal-nav:hover { background: rgba(255,255,255,.28); }
.gmodal-prev { left: 16px; }
.gmodal-next { right: 16px; }

/* Image area */
.gmodal-img-wrap {
  position: relative;
  max-height: 78vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
#gmodalImg {
  max-width: 100%;
  max-height: 78vh;
  object-fit: contain;
  border-radius: 6px;
  transition: opacity .25s;
  display: block;
}
.gmodal-loader {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 32px;
}

/* Footer bar */
.gmodal-footer {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 10px;
  color: rgba(255,255,255,.75);
  font-family: var(--font-thai);
  font-size: 13px;
  flex-wrap: wrap;
  justify-content: center;
}
#gmodalName { color: #fff; font-weight: 500; word-break: break-all; }
#gmodalCount { color: rgba(255,255,255,.55); }
.gmodal-dl-btn {
  color: #fff;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.3);
  border-radius: 14px;
  padding: 3px 12px;
  font-size: 12px;
  text-decoration: none;
  transition: background .2s;
}
.gmodal-dl-btn:hover { background: rgba(255,255,255,.25); color:#fff; }

@media (max-width:600px) {
  .gmodal-nav { width:38px; height:38px; font-size:16px; }
  .gmodal-prev { left:6px; }
  .gmodal-next { right:6px; }
}

/* ════════════════════════════════════════════════════════════
   §19  Hero Slider  (modernized)
════════════════════════════════════════════════════════════ */

/* ── Wrapper ───────────────────────────────────────────── */
.hero-slider-wrap {
  position: relative;
  width: 100%;
  overflow: hidden;
  line-height: 0;            /* kill inline-block gap */
}

/* ── Carousel container + inner — explicit height ─────── */
.hero-carousel,
.hero-carousel .carousel-inner {
  height: min(70vh, 600px);
  max-height: 600px;
}
@media (max-width: 767px) {
  .hero-carousel,
  .hero-carousel .carousel-inner {
    height: min(70vh, 420px);
    max-height: 420px;
  }
}
@media (max-width: 480px) {
  .hero-carousel,
  .hero-carousel .carousel-inner {
    height: min(65vh, 340px);
    max-height: 340px;
  }
}
.hero-carousel { margin: 0; }
.hero-carousel .carousel-inner { overflow: hidden; }

/* ── Slide item ─────────────────────────────────────────── */
.carousel-item.hero-item {
  position: relative !important;
  width: 100%;
  height: 100%;               /* fill carousel-inner */
  overflow: hidden;
}

/* ── Background image + Ken Burns ──────────────────────── */
.hero-bg {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transform: scale(1.0);
  transition: transform 7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: transform;
}
.carousel-item.active .hero-bg {
  transform: scale(1.07);
}

/* ── Multi-layer overlay ────────────────────────────────── */
.hero-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background:
    linear-gradient(to top,   rgba(0,0,0,.70) 0%, transparent 55%),
    linear-gradient(to right, rgba(0,0,0,.48) 0%, transparent 65%);
  z-index: 1;
}

/* ── Caption ────────────────────────────────────────────── */
.hero-caption {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  padding: 0 72px 52px;
  z-index: 2;
  line-height: normal;
}
@media (max-width: 991px) { .hero-caption { padding: 0 40px 40px; } }
@media (max-width: 575px) { .hero-caption { padding: 0 20px 28px; } }

/* Accent bar */
.hero-caption-accent {
  display: block;
  width: 44px; height: 4px;
  background: #f0b429;
  border-radius: 2px;
  margin-bottom: 14px;
  opacity: 0;
  transform: scaleX(0);
  transform-origin: left;
  transition: none;
}

/* Caption text — hidden by default */
.carousel-item .hero-caption-accent,
.carousel-item .hero-caption-title,
.carousel-item .hero-caption-sub,
.carousel-item .hero-caption-btn {
  opacity: 0;
  transition: none;
}
.carousel-item .hero-caption-title,
.carousel-item .hero-caption-sub,
.carousel-item .hero-caption-btn {
  transform: translateY(24px);
}
.carousel-item .hero-caption-accent {
  transform: scaleX(0);
}

/* Animate IN when active */
.carousel-item.active .hero-caption-accent {
  opacity: 1; transform: scaleX(1);
  transition: opacity .4s .05s ease, transform .4s .05s ease;
}
.carousel-item.active .hero-caption-title {
  opacity: 1; transform: translateY(0);
  transition: opacity .6s .15s ease, transform .6s .15s ease;
}
.carousel-item.active .hero-caption-sub {
  opacity: 1; transform: translateY(0);
  transition: opacity .6s .30s ease, transform .6s .30s ease;
}
.carousel-item.active .hero-caption-btn {
  opacity: 1; transform: translateY(0);
  transition: opacity .6s .48s ease, transform .6s .48s ease;
}

/* Caption text styles */
.hero-caption-title {
  font-family: var(--font-thai);
  font-size: clamp(1.5rem, 3.8vw, 2.75rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.3;
  margin: 0 0 10px;
  max-width: 700px;
  text-shadow: 0 2px 12px rgba(0,0,0,.4);
}
.hero-caption-sub {
  font-family: var(--font-thai);
  font-size: clamp(0.9rem, 1.8vw, 1.08rem);
  color: rgba(255,255,255,.88);
  margin: 0 0 24px;
  max-width: 520px;
  line-height: 1.7;
  text-shadow: 0 1px 6px rgba(0,0,0,.3);
}
.hero-caption-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 30px;
  border-radius: 4px;
  font-family: var(--font-thai);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  color: #fff;
  background: var(--color-primary);
  border: 2px solid transparent;
  box-shadow: 0 4px 20px rgba(0,0,0,.3);
  transition: background .25s, transform .22s, box-shadow .22s;
}
.hero-caption-btn:hover {
  background: var(--color-primary-light);
  color: #fff;
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(0,0,0,.35);
}

/* ── Progress bar (pure CSS) ────────────────────────────── */
.hero-progress-bar {
  position: absolute;
  bottom: 0; left: 0;
  height: 3px;
  background: #f0b429;
  z-index: 20;
  width: 0%;
}
.carousel-item.active .hero-progress-bar {
  animation: heroProgress 5s linear forwards;
}
@keyframes heroProgress {
  from { width: 0%; }
  to   { width: 100%; }
}

/* ── Pill indicators ────────────────────────────────────── */
.hero-indicators {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 15;
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 6px;
}
.hero-indicators li {
  width: 8px; height: 8px;
  border-radius: 4px;
  background: rgba(255,255,255,.45);
  border: none;
  margin: 0;
  cursor: pointer;
  transition: width .35s ease, background .25s ease;
  text-indent: -9999px;
  overflow: hidden;
}
.hero-indicators li.active {
  width: 28px;
  background: #fff;
}

/* ── Arrows ─────────────────────────────────────────────── */
.hero-arrow {
  width: auto;
  opacity: 1;
  z-index: 15;
}
.carousel-control-prev.hero-arrow { left: 20px; }
.carousel-control-next.hero-arrow { right: 20px; }
.hero-arrow-icon {
  width: 42px; height: 42px;
  background: rgba(255,255,255,.15);
  border: 1.5px solid rgba(255,255,255,.4);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 15px;
  transition: background .22s, transform .22s;
}
.hero-arrow:hover .hero-arrow-icon {
  background: rgba(255,255,255,.32);
  transform: scale(1.08);
}
@media (max-width: 575px) {
  .carousel-control-prev.hero-arrow { left: 8px; }
  .carousel-control-next.hero-arrow { right: 8px; }
  .hero-arrow-icon { width: 34px; height: 34px; font-size: 13px; }
}

/* ── Admin shortcut ─────────────────────────────────────── */
.hero-slider-admin-btn {
  position: absolute;
  top: 14px; right: 14px;
  z-index: 100;
  background: rgba(0,0,0,.48);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: #fff !important;
  border-radius: 20px;
  padding: 5px 14px;
  font-size: 12px;
  font-family: var(--font-thai);
  text-decoration: none !important;
  border: 1px solid rgba(255,255,255,.3);
  transition: background .2s;
}
.hero-slider-admin-btn:hover { background: rgba(0,0,0,.7); }

/* ══════════════════════════════════════════════════════════════
   §20 — Homepage Layout (page-main)
   ══════════════════════════════════════════════════════════════ */

/* ── Section base ──────────────────────────────────────────── */
.hm-section {
  padding: 72px 0;
}
.hm-section-alt   { background: #f7f8f9; }
.hm-section-white { background: #ffffff; }

/* ── Section header ────────────────────────────────────────── */
.hm-section-hd {
  text-align: center;
  margin-bottom: 44px;
}
.hm-section-badge {
  display: inline-block;
  background: var(--color-primary);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: 4px 14px;
  border-radius: var(--radius-pill);
  margin-bottom: 12px;
}
.hm-section-title {
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 700;
  color: var(--color-text-base) !important;
  margin: 0 0 14px;
  line-height: 1.3;
}
.hm-section-rule {
  width: 44px;
  height: 4px;
  background: var(--color-primary);
  border-radius: 4px;
  margin: 0 auto;
}

/* ── Intro section ─────────────────────────────────────────── */
.hm-intro-section {
  background: #fff;
  padding: 60px 0 64px;
  border-bottom: 1px solid var(--color-border);
}
.hm-intro-inner {
  display: flex;
  align-items: center;
  gap: 48px;
}
.hm-intro-copy {
  flex: 1 1 0;
  min-width: 0;
}
.hm-intro-title {
  font-size: clamp(24px, 3.5vw, 38px);
  font-weight: 800;
  color: var(--color-text-base) !important;
  line-height: 1.25;
  margin-bottom: 14px;
}
.hm-intro-desc {
  font-size: 16px;
  color: var(--color-text-muted) !important;
  line-height: 1.8;
  margin-bottom: 24px;
  max-width: 520px;
}

/* Trust pills */
.hm-trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.hm-trust-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #edf7f0;
  color: var(--color-primary-dark);
  border: 1px solid #b8e0c7;
  border-radius: var(--radius-pill);
  padding: 5px 14px;
  font-size: 13px;
  font-weight: 500;
}
.hm-trust-pill i {
  color: var(--color-primary);
  font-size: 12px;
}

/* Contact card */
.hm-contact-card {
  flex: 0 0 300px;
  background: #fff;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}
.hm-contact-card-head {
  background: var(--color-primary);
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.hm-contact-card-body {
  padding: 18px 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.hm-contact-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: var(--radius-pill);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none !important;
  transition: opacity .2s, transform .15s;
  color: #fff !important;
}
.hm-contact-btn:hover {
  opacity: .88;
  transform: translateY(-1px);
}
.hm-contact-btn-phone { background: #dc3545; }
.hm-contact-btn-line  { background: #06c755; }

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 768px) {
  .hm-section { padding: 52px 0; }
  .hm-intro-section { padding: 44px 0 48px; }
  .hm-intro-inner {
    flex-direction: column;
    gap: 32px;
  }
  .hm-contact-card {
    flex: none;
    width: 100%;
  }
  .hm-intro-desc { max-width: 100%; }
}
@media (max-width: 575px) {
  .hm-section { padding: 40px 0; }
  .hm-section-hd { margin-bottom: 32px; }
  .hm-trust-row { gap: 8px; }
  .hm-trust-pill { font-size: 12px; padding: 4px 12px; }
}


/* ═══════════════════════════════════════════════════════════════
   §21 — Tag Page
   ═══════════════════════════════════════════════════════════════ */

/* ── Hero ──────────────────────────────────────────────────── */
.tag-hero {
  background: linear-gradient(135deg, var(--color-primary-dark) 0%, var(--color-primary) 60%, var(--color-primary-light) 100%);
  padding: 56px 0 48px;
  color: #fff;
}
.tag-hero-inner { max-width: 700px; }
.tag-hero-label {
  display: inline-block;
  background: rgba(255,255,255,.18);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  padding: 4px 14px;
  border-radius: var(--radius-pill);
  margin-bottom: 12px;
}
.tag-hero-title {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 800;
  color: #fff !important;
  margin: 0 0 16px;
  line-height: 1.2;
}
.tag-hero-count {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  color: rgba(255,255,255,.85);
}
.tag-hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 13px;
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 600;
}
.tag-hero-pill--product { background: rgba(255,255,255,.22); color: #fff; }
.tag-hero-pill--service { background: rgba(255,200,0,.25);   color: #ffe066; }
.tag-hero-pill--article { background: rgba(100,200,255,.25); color: #a8e6ff; }
.tag-hero-empty { color: rgba(255,255,255,.7); font-size: 16px; margin-top: 8px; }

/* ── Tab bar ──────────────────────────────────────────────── */
.tag-tabs-bar {
  background: #fff;
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,.06);
}
.tag-tabs {
  display: flex;
  gap: 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.tag-tab {
  flex-shrink: 0;
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  padding: 14px 22px;
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text-muted);
  cursor: pointer;
  transition: color .2s, border-color .2s;
  white-space: nowrap;
}
.tag-tab:hover  { color: var(--color-primary); }
.tag-tab.active { color: var(--color-primary); border-bottom-color: var(--color-primary); }

/* ── Section shared ───────────────────────────────────────── */
.tag-section       { padding: 60px 0; background: #fff; }
.tag-section--alt  { background: #f7f8f9; }
.tag-section--first{ padding-top: 60px; }

.tag-section-hd    { text-align: center; margin-bottom: 40px; }
.tag-section-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: 4px 14px;
  border-radius: var(--radius-pill);
  margin-bottom: 10px;
}
.tag-section-badge--product { background: var(--color-primary); color: #fff; }
.tag-section-badge--service { background: #e67e22; color: #fff; }
.tag-section-badge--article { background: #2980b9; color: #fff; }
.tag-section-title  { font-size: clamp(20px,2.8vw,28px); font-weight: 700; margin-bottom: 10px; }
.tag-section-rule   { width: 40px; height: 4px; background: var(--color-primary); border-radius: 4px; margin: 0 auto; }
.tag-section-rule--service { background: #e67e22; }
.tag-section-rule--article { background: #2980b9; }

/* ── Product cards ───────────────────────────────────────── */
.tag-product-card {
  display: block;
  text-decoration: none !important;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: box-shadow .25s, transform .2s;
  height: 100%;
}
.tag-product-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.tag-product-img {
  width: 100%;
  padding-top: 120%;
  background-size: cover;
  background-position: center;
  background-color: #f3f4f6;
}
.tag-product-body { padding: 14px; }
.tag-product-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text);
  line-height: 1.5;
  max-height: 42px;
  overflow: hidden;
  margin-bottom: 8px;
}
.tag-product-price { font-size: 22px; font-weight: 700; color: #dc3545; margin-bottom: 8px; }
.tag-product-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 600;
  color: var(--color-primary);
}

/* ── Service cards ───────────────────────────────────────── */
.tag-svc-card {
  background: #fff;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
  transition: box-shadow .25s, transform .2s;
  height: 100%;
  display: flex;
  flex-direction: column;
}
.tag-svc-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.tag-svc-img-wrap { display: block; position: relative; overflow: hidden; }
.tag-svc-img { width:100%; padding-top:65%; background-size:cover; background-position:center; background-color:#f3f4f6; }
.tag-svc-overlay {
  position:absolute; inset:0; background:rgba(26,122,60,.55);
  display:flex; align-items:center; justify-content:center;
  opacity:0; transition:opacity .25s;
  color:#fff; font-size:22px;
}
.tag-svc-card:hover .tag-svc-overlay { opacity:1; }
.tag-svc-body { padding:18px; flex:1; display:flex; flex-direction:column; }
.tag-svc-title { font-size:16px; font-weight:700; margin-bottom:8px; }
.tag-svc-title a { color:var(--color-text) !important; text-decoration:none !important; }
.tag-svc-title a:hover { color:var(--color-primary) !important; }
.tag-svc-desc { font-size:13px; color:var(--color-text-muted); flex:1; margin-bottom:14px; }
.tag-svc-btn { font-size:13px; font-weight:600; color:var(--color-primary) !important; text-decoration:none !important; margin-top:auto; }

/* ── Article cards ───────────────────────────────────────── */
.tag-art-card {
  background:#fff;
  border:1px solid var(--color-border);
  border-radius:var(--radius-md);
  overflow:hidden;
  transition:box-shadow .25s, transform .2s;
  height:100%; display:flex; flex-direction:column;
}
.tag-art-card:hover { box-shadow:var(--shadow-md); transform:translateY(-3px); }
.tag-art-card--featured { flex-direction:row; min-height:280px; }
.tag-art-img-wrap { display:block; position:relative; overflow:hidden; }
.tag-art-img-wrap--featured { flex:0 0 45%; }
.tag-art-img { width:100%; padding-top:65%; background-size:cover; background-position:center; background-color:#f3f4f6; }
.tag-art-img-wrap--featured .tag-art-img { padding-top:0; height:100%; min-height:280px; }
.tag-art-overlay { position:absolute; inset:0; background:rgba(0,0,0,.18); transition:background .25s; }
.tag-art-card:hover .tag-art-overlay { background:rgba(0,0,0,.3); }
.tag-art-body { padding:20px; flex:1; display:flex; flex-direction:column; }
.tag-art-body--featured { padding:28px 32px; }
.tag-art-meta { font-size:12px; color:var(--color-text-muted); display:flex; flex-wrap:wrap; gap:12px; margin-bottom:10px; }
.tag-art-featured-badge { background:var(--color-primary); color:#fff; border-radius:var(--radius-pill); padding:2px 10px; font-size:11px; font-weight:700; }
.tag-art-title { font-weight:700; margin-bottom:8px; }
.tag-art-title a { color:var(--color-text) !important; text-decoration:none !important; }
.tag-art-title a:hover { color:var(--color-primary) !important; }
.tag-art-title--featured { font-size:clamp(18px,2.4vw,26px); }
.tag-art-desc { font-size:13px; color:var(--color-text-muted); flex:1; margin-bottom:14px; }
.tag-art-desc--featured { font-size:15px; max-width:520px; }
.tag-art-btn { font-size:13px; font-weight:600; color:var(--color-primary) !important; text-decoration:none !important; margin-top:auto; }

/* ── Empty state ─────────────────────────────────────────── */
.tag-empty-section { padding:80px 0; }
.tag-empty-box { max-width:480px; margin:0 auto; text-align:center; }
.tag-empty-icon { font-size:52px; color:var(--color-border); margin-bottom:20px; }
.tag-empty-title { font-size:22px; font-weight:700; margin-bottom:10px; }
.tag-empty-desc { color:var(--color-text-muted); margin-bottom:24px; }

/* ── Tag cloud ───────────────────────────────────────────── */
.tag-cloud-section {
  background: #f7f8f9;
  padding: 40px 0 48px;
  border-top: 1px solid var(--color-border);
}
.tag-cloud-hd {
  font-size: 14px;
  font-weight: 700;
  color: var(--color-text-muted);
  letter-spacing: .06em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.tag-cloud-wrap { display:flex; flex-wrap:wrap; gap:8px; }
.tag-cloud-wrap .badge { font-size:13px !important; padding:6px 14px !important; }

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 768px) {
  .tag-hero { padding: 40px 0 36px; }
  .tag-art-card--featured { flex-direction: column; }
  .tag-art-img-wrap--featured { flex: none; }
  .tag-art-img-wrap--featured .tag-art-img { padding-top: 56%; min-height: 0; height: auto; }
  .tag-art-body--featured { padding: 20px; }
}
@media (max-width: 575px) {
  .tag-tab { padding: 12px 16px; font-size: 13px; }
  .tag-section { padding: 44px 0; }
  .tag-hero-title { font-size: 26px; }
}

/* ══════════════════════════════════════════════════════════════
   §22 — Site Header & Navigation (modern redesign)
   ══════════════════════════════════════════════════════════════ */

/* ── Reset Porto header interference ── */
#header { display: none !important; }
.site-header { position: relative; z-index: 999; }

/* ── Top bar ─────────────────────────────────────────────────── */
.site-topbar {
  background: var(--color-primary-dark);
  color: rgba(255,255,255,0.85);
  font-size: 12.5px;
  padding: 5px 0;
}
.site-topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.site-topbar-left {
  display: flex;
  align-items: center;
  gap: 6px;
}
.site-topbar-left i { font-size: 11px; opacity: .8; }
.site-topbar-left a {
  color: rgba(255,255,255,0.9);
  text-decoration: none;
  font-weight: 500;
  transition: color .2s;
}
.site-topbar-left a:hover { color: #fff; }
.site-topbar-sep { opacity: .4; margin: 0 2px; }
.site-topbar-right { display: flex; align-items: center; gap: 2px; }
.site-topbar-social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px; height: 28px;
  color: rgba(255,255,255,0.75);
  border-radius: 50%;
  text-decoration: none;
  transition: background .2s, color .2s;
}
.site-topbar-social:hover {
  background: rgba(255,255,255,0.15);
  color: #fff;
}

/* ── Main navbar ─────────────────────────────────────────────── */
.site-navbar {
  background: #fff;
  box-shadow: 0 1px 0 rgba(0,0,0,0.07);
  transition: box-shadow .3s;
  position: relative;
}
.site-navbar--sticky {
  position: fixed !important;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  box-shadow: var(--shadow-md);
  animation: navbarSlideDown .25s ease;
}
@keyframes navbarSlideDown {
  from { transform: translateY(-100%); opacity: 0; }
  to   { transform: translateY(0);     opacity: 1; }
}
/* push body down when sticky kicks in */
body.nav-sticky-active { padding-top: 70px; }

.site-navbar-inner {
  display: flex;
  align-items: center;
  height: 68px;
  gap: 0;
}

/* Logo */
.site-navbar-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  margin-right: 28px;
  text-decoration: none;
}
.site-navbar-logo img {
  height: 48px;
  width: auto;
  display: block;
}

/* Desktop nav links */
.site-nav-menu {
  display: flex;
  align-items: center;
  list-style: none;
  margin: 0; padding: 0;
  gap: 2px;
  flex: 1;
}
.site-nav-link {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 8px 13px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text-base);
  text-decoration: none;
  white-space: nowrap;
  transition: background .2s, color .2s;
  position: relative;
}
.site-nav-link i { font-size: 12px; opacity: .7; }
.site-nav-link:hover {
  background: rgba(26,122,60,.07);
  color: var(--color-primary);
}
.site-nav-link--active {
  color: var(--color-primary);
  font-weight: 600;
}
.site-nav-link--active::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 13px; right: 13px;
  height: 2px;
  background: var(--color-primary);
  border-radius: 2px;
}

/* Right actions */
.site-navbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
  flex-shrink: 0;
}

/* AI Search button */
.site-search-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-pill);
  background: var(--color-bg-alt);
  color: var(--color-text-muted);
  font-size: 13px;
  cursor: pointer;
  transition: border-color .2s, box-shadow .2s, background .2s;
  white-space: nowrap;
}
.site-search-btn:hover {
  border-color: var(--color-primary);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(26,122,60,.08);
  color: var(--color-primary);
}
.site-search-btn .ai-badge {
  font-size: 9px;
  font-weight: 700;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: #fff;
  padding: 1px 5px;
  border-radius: 4px;
  letter-spacing: .03em;
}

/* CTA phone button */
.site-navbar-cta {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 18px;
  background: var(--color-primary);
  color: #fff !important;
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: background .2s, transform .15s;
  white-space: nowrap;
}
.site-navbar-cta:hover {
  background: var(--color-primary-dark);
  transform: translateY(-1px);
}
.site-navbar-cta i { font-size: 12px; }

/* Hamburger */
.site-navbar-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px; height: 40px;
  padding: 6px;
  background: none;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: border-color .2s;
}
.site-navbar-toggle span {
  display: block;
  width: 22px; height: 2px;
  background: var(--color-text-base);
  border-radius: 2px;
  transition: transform .3s, opacity .3s;
  transform-origin: center;
}
.site-navbar-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.site-navbar-toggle.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.site-navbar-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Mobile drawer ───────────────────────────────────────────── */
.site-nav-drawer {
  display: none;
  flex-direction: column;
  background: #fff;
  border-top: 1px solid var(--color-border);
  box-shadow: var(--shadow-md);
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s ease;
}
.site-nav-drawer.open { max-height: 600px; }
.site-nav-drawer-menu {
  list-style: none;
  margin: 0; padding: 12px 0;
}
.site-nav-drawer-menu li a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  font-size: 15px;
  color: var(--color-text-base);
  text-decoration: none;
  border-left: 3px solid transparent;
  transition: background .15s, border-color .15s, color .15s;
}
.site-nav-drawer-menu li a i { width: 18px; text-align: center; opacity: .6; }
.site-nav-drawer-menu li a:hover,
.site-nav-drawer-menu li a.nav-link--active,
.site-nav-drawer-menu li a.site-nav-link--active {
  background: rgba(26,122,60,.06);
  border-left-color: var(--color-primary);
  color: var(--color-primary);
}
.site-nav-drawer-contact {
  border-top: 1px solid var(--color-border);
  margin-top: 4px;
  padding-top: 4px;
}
.site-nav-drawer-contact a { font-weight: 600; }

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 991px) {
  .site-nav-menu   { display: none; }
  .site-navbar-cta { display: none !important; }
  .site-navbar-toggle { display: flex; }
  .site-nav-drawer  { display: flex; }
  .site-navbar-inner { height: 60px; }
  .site-navbar-logo img { height: 42px; }
}

/* ══════════════════════════════════════════════════════════════
   §23 — AI Search Overlay
   ══════════════════════════════════════════════════════════════ */

.ai-search-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(15,20,30,0.55);
  backdrop-filter: blur(4px);
  align-items: flex-start;
  justify-content: center;
  padding-top: 80px;
}
.ai-search-overlay.open { display: flex; animation: fadeIn .2s ease; }

.ai-search-modal {
  background: #fff;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  width: 100%;
  max-width: 640px;
  margin: 0 16px;
  overflow: hidden;
}

.ai-search-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--color-border);
}
.ai-search-icon-wrap {
  display: flex; align-items: center; justify-content: center;
  width: 36px; height: 36px;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  border-radius: 8px;
  flex-shrink: 0;
}
.ai-search-icon-wrap i { color: #fff; font-size: 15px; }
.ai-search-label {
  font-size: 13px; color: var(--color-text-muted);
  line-height: 1.3;
}
.ai-search-label strong { display: block; color: var(--color-text-base); font-size: 14px; }
.ai-search-close {
  margin-left: auto;
  background: none; border: none;
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 6px; cursor: pointer;
  color: var(--color-text-muted); font-size: 18px;
  transition: background .15s;
}
.ai-search-close:hover { background: var(--color-bg-alt); }

.ai-search-input-wrap {
  display: flex;
  align-items: center;
  padding: 14px 18px;
  gap: 10px;
  border-bottom: 1px solid var(--color-border);
}
.ai-search-input-wrap i { color: var(--color-text-muted); font-size: 16px; flex-shrink: 0; }
#aiSearchInput {
  flex: 1;
  border: none; outline: none;
  font-size: 17px;
  font-family: var(--font-thai);
  color: var(--color-text-base);
  background: transparent;
}
#aiSearchInput::placeholder { color: #b0b7c0; }
.ai-search-kbd {
  font-size: 11px; color: var(--color-text-muted);
  border: 1px solid var(--color-border);
  border-radius: 4px; padding: 2px 6px;
  background: var(--color-bg-alt);
  flex-shrink: 0;
}

.ai-search-body { padding: 12px 0; min-height: 80px; }

/* Quick links */
.ai-search-quick { padding: 0 18px 8px; }
.ai-search-quick-label {
  font-size: 11px; font-weight: 600; color: var(--color-text-muted);
  text-transform: uppercase; letter-spacing: .06em;
  margin-bottom: 8px;
}
.ai-search-quick-tags {
  display: flex; flex-wrap: wrap; gap: 6px;
}
.ai-search-quick-tag {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 5px 12px;
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  font-size: 12.5px; color: var(--color-text-base);
  cursor: pointer; text-decoration: none;
  transition: border-color .15s, background .15s;
}
.ai-search-quick-tag:hover {
  border-color: var(--color-primary);
  background: rgba(26,122,60,.06);
  color: var(--color-primary);
}

/* Results */
.ai-search-results { padding: 0 10px 4px; }
.ai-search-result-item {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 10px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  color: var(--color-text-base);
  transition: background .15s;
}
.ai-search-result-item:hover { background: var(--color-bg-alt); }
.ai-search-result-icon {
  width: 36px; height: 36px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  border-radius: 8px; font-size: 14px;
}
.ai-result-product .ai-search-result-icon { background: #fff4e6; color: #e67e00; }
.ai-result-service .ai-search-result-icon { background: #e6f4ea; color: var(--color-primary); }
.ai-result-article .ai-search-result-icon { background: #e8eaff; color: #4f46e5; }
.ai-search-result-text strong { display: block; font-size: 14px; }
.ai-search-result-text span  { font-size: 12px; color: var(--color-text-muted); }
.ai-search-result-type {
  margin-left: auto; flex-shrink: 0;
  font-size: 11px; padding: 2px 8px;
  border-radius: var(--radius-pill);
  font-weight: 600;
}
.ai-result-product .ai-search-result-type { background: #fff4e6; color: #e67e00; }
.ai-result-service .ai-search-result-type { background: #e6f4ea; color: var(--color-primary); }
.ai-result-article .ai-search-result-type { background: #e8eaff; color: #4f46e5; }

.ai-search-no-result {
  text-align: center; padding: 24px 20px;
  color: var(--color-text-muted); font-size: 14px;
}
.ai-search-no-result i { font-size: 28px; display: block; margin-bottom: 8px; opacity: .4; }

.ai-search-footer {
  padding: 10px 18px;
  border-top: 1px solid var(--color-border);
  display: flex; align-items: center; justify-content: space-between;
  font-size: 11.5px; color: var(--color-text-muted);
}
.ai-search-footer-badge {
  display: flex; align-items: center; gap: 5px;
}
.ai-powered-dot {
  display: inline-block; width: 7px; height: 7px;
  border-radius: 50%;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: .6; transform: scale(1.3); }
}

@media (max-width: 575px) {
  .ai-search-overlay { padding-top: 16px; align-items: flex-start; }
  .ai-search-modal { margin: 0; border-radius: 0 0 var(--radius-md) var(--radius-md); }
  #aiSearchInput { font-size: 16px; }
}

/* ── Profile Gallery ───────────────────────────────────────── */
.profile-gallery-item {
  display: block;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,.10);
  aspect-ratio: 15 / 20;
}
.profile-gallery-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s ease, filter .35s ease;
}
.profile-gallery-item:hover .profile-gallery-img {
  transform: scale(1.06);
  filter: brightness(0.88);
}

/* ── Admin Hero Slide Manager ──────────────────────────────── */

/* Page wrapper */
.slide-manager-page {
  min-height: 80vh;
  background: linear-gradient(135deg, #f0f7f3 0%, #e8f4ec 100%);
  padding: 40px 0 64px;
}

/* Top bar */
.slide-mgr-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 32px;
  flex-wrap: wrap;
  gap: 12px;
}
.slide-mgr-topbar-title {
  display: flex;
  align-items: center;
  gap: 12px;
}
.slide-mgr-topbar-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg,#28a745,#20c997);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 20px;
  box-shadow: 0 4px 14px rgba(40,167,69,.3);
}
.slide-mgr-topbar h4 {
  margin: 0; font-size: 1.3rem; font-weight: 800; color: #1a3c2a;
}
.slide-mgr-topbar p {
  margin: 0; font-size: 12px; color: #9aab9e;
}
.slide-mgr-add-btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: linear-gradient(135deg,#28a745,#20c997);
  color: #fff !important; border: none;
  padding: 10px 22px; border-radius: 50px;
  font-size: 13px; font-weight: 700;
  box-shadow: 0 4px 14px rgba(40,167,69,.3);
  text-decoration: none !important;
  transition: transform .2s, box-shadow .2s;
  cursor: pointer;
}
.slide-mgr-add-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(40,167,69,.4);
  color: #fff !important;
}

/* Count badge */
.slide-mgr-count {
  display: inline-flex; align-items: center; gap: 6px;
  background: #fff; border: 1.5px solid #d4edda;
  color: #28a745; font-size: 12px; font-weight: 700;
  padding: 5px 14px; border-radius: 50px;
  box-shadow: 0 1px 6px rgba(0,0,0,.06);
}

/* Cards */
.slide-mgr-card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 2px 16px rgba(0,0,0,.08);
  border: 1.5px solid transparent;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
  height: 100%;
  display: flex; flex-direction: column;
}
.slide-mgr-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(0,0,0,.14);
  border-color: #c3e6cb;
}

/* Image area */
.slide-mgr-img {
  position: relative;
  height: 180px;
  background-size: cover;
  background-position: center;
  background-color: #e9ecef;
}
.slide-mgr-img-placeholder {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  color: #adb5bd; font-size: 13px; gap: 6px;
}
.slide-mgr-badge {
  position: absolute; top: 10px; right: 10px;
  font-size: 11px; padding: 4px 10px; border-radius: 50px;
  font-weight: 700; letter-spacing: .5px;
}
.slide-mgr-order {
  position: absolute; top: 10px; left: 10px;
  background: rgba(0,0,0,.55); color: #fff;
  font-size: 11px; font-weight: 700;
  padding: 3px 9px; border-radius: 50px;
}

/* Body */
.slide-mgr-body {
  padding: 14px 16px 10px;
  flex: 1;
}
.slide-mgr-title {
  font-size: 14px; font-weight: 700; color: #1a3c2a;
  margin-bottom: 4px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.slide-mgr-sub {
  font-size: 12px; color: #6c757d; line-height: 1.4;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.slide-mgr-btn-preview {
  display: inline-flex; align-items: center; gap: 5px;
  background: #e8f4ec; color: #28a745;
  font-size: 11px; font-weight: 600;
  padding: 3px 10px; border-radius: 50px;
  margin-top: 8px;
}

/* Footer actions */
.slide-mgr-footer {
  display: flex; gap: 6px;
  padding: 10px 12px 14px;
  border-top: 1px solid #f0f0f0;
}
.slide-mgr-footer .btn {
  flex: 1; font-size: 12px; font-weight: 600;
  padding: 6px 4px; border-radius: 8px;
}

/* Empty state */
.slide-mgr-empty {
  text-align: center; padding: 60px 20px;
  background: #fff; border-radius: 16px;
  box-shadow: 0 2px 16px rgba(0,0,0,.06);
}
.slide-mgr-empty-icon {
  width: 72px; height: 72px;
  background: #e8f4ec; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px;
  font-size: 30px; color: #28a745;
}

/* Upload area */
.slide-upload-area {
  border: 2px dashed #c3e6cb;
  border-radius: 12px;
  background: #f8fff9;
  padding: 28px 16px;
  text-align: center;
  cursor: pointer;
  position: relative;
  transition: border-color .2s, background .2s;
}
.slide-upload-area:hover {
  border-color: #28a745;
  background: #f0f9f2;
}
.slide-file-input {
  position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%;
}

/* Modal polish */
.slide-modal-header {
  background: linear-gradient(135deg,#28a745,#20c997);
  color: #fff; border-radius: 16px 16px 0 0;
  padding: 18px 24px;
}
.slide-modal-header .close { color: #fff; opacity: .8; font-size: 1.5rem; }
.slide-modal-header .close:hover { opacity: 1; }
