/* ============================================
   Phuket Trip Tour - Modern Tour Website
   Color Scheme: White BG, Orange+Gold gradient, Navy accents
   ============================================ */

:root {
  /* Primary - Orange to Gold gradient */
  --orange: #e67e22;
  --orange-dark: #d35400;
  --gold: #f39c12;
  --gold-light: #f1c40f;
  --gradient-primary: linear-gradient(135deg, #e67e22 0%, #f39c12 50%, #f1c40f 100%);
  --gradient-hover: linear-gradient(135deg, #d35400 0%, #e67e22 50%, #f39c12 100%);
  
  /* Accent - Navy/Indigo */
  --navy: #1e3a5f;
  --navy-light: #2c5282;
  --indigo: #4a5568;
  
  /* Neutrals */
  --white: #ffffff;
  --off-white: #f8f9fa;
  --gray-100: #f7fafc;
  --gray-200: #edf2f7;
  --gray-300: #e2e8f0;
  --gray-600: #718096;
  --gray-800: #2d3748;
  --gray-900: #1a202c;
  
  /* Typography */
  --font-primary: 'Kanit', 'Segoe UI', sans-serif;
  --font-arabic: 'Tajawal', 'Noto Sans Arabic', sans-serif;
  
  /* Spacing & Effects */
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 20px rgba(0,0,0,0.08);
  --shadow-lg: 0 10px 40px rgba(0,0,0,0.12);
  --radius: 12px;
  --radius-lg: 20px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* RTL Support */
[dir="rtl"] {
  font-family: var(--font-arabic);
  text-align: right;
}

/* Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-primary);
  background: var(--white);
  color: var(--gray-800);
  line-height: 1.6;
  overflow-x: hidden;
}

[dir="rtl"] body {
  font-family: var(--font-arabic);
}

/* Typography */
h1, h2, h3 {
  font-weight: 700;
  line-height: 1.2;
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ========== Header & Navigation ========== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: var(--transition);
}

/* Dark Header Style (like reference image) */
.header-dark {
  padding: 12px 24px;
}

.header-dark .header-inner {
  max-width: 1200px;
  margin: 0 auto;
  background: linear-gradient(135deg, #2d2d2d 0%, #1a1a1a 100%);
  border-radius: 50px;
  padding: 12px 32px;
  box-shadow: 0 4px 30px rgba(0,0,0,0.3);
  transition: var(--transition);
  overflow: visible;
}

.header-dark .nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0;
  max-width: none;
  margin: 0;
  padding-inline: 0;
  gap: 20px;
  transition: var(--transition);
  position: relative;
}

.header-dark .nav-menu {
  display: flex;
  align-items: center;
  flex: 1;
  min-width: 0;
  gap: 0;
}

.header-dark .nav-spacer {
  flex: 1;
  min-width: 0;
}

.header-dark .nav-spacer-right {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 14px;
  padding-left: 40px;
  transition: var(--transition);
}

/* Nav links - absolutely centered in header */
.header-dark .nav-links {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

/* Logo - image */
.header-dark .logo-link {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

.header-dark .logo-img {
  height: 42px;
  width: auto;
  object-fit: contain;
  display: block;
}

.header-dark .nav-links {
  display: flex;
  gap: 6px;
  list-style: none;
  flex-shrink: 0;
  padding: 0 32px;
}

.header-dark .nav-link {
  text-decoration: none;
  color: rgba(255,255,255,0.9);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 10px 20px;
  border-radius: 50px;
  transition: var(--transition);
}

.header-dark .nav-link:hover {
  color: var(--white);
  background: rgba(255,255,255,0.1);
}

.header-dark .nav-link.active {
  background: var(--gradient-primary);
  color: var(--white);
  box-shadow: 0 2px 15px rgba(230, 126, 34, 0.4);
}

/* Header actions: icon buttons + CTA */
.header-dark .header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.header-dark .header-icon-btn {
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
  color: var(--white);
  transition: var(--transition);
}

/* Language dropdown - dark oval style like reference */
.lang-dropdown {
  position: relative;
  z-index: 100;
}

.lang-dropdown.open {
  z-index: 1002;
}

.lang-dropdown-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  background: rgba(30, 30, 30, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50px;
  color: var(--white);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: var(--transition);
}

.lang-dropdown-btn:hover {
  border-color: rgba(255, 255, 255, 0.35);
  background: rgba(40, 40, 40, 0.95);
}

.lang-dropdown-btn .lang-flag-img {
  width: 24px;
  height: 18px;
  object-fit: cover;
  border-radius: 4px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.lang-dropdown-btn .lang-code {
  text-transform: uppercase;
}

.lang-dropdown-btn .lang-chevron {
  display: inline-block;
  width: 0;
  height: 0;
  margin-left: 6px;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid currentColor;
  opacity: 0.9;
  transition: transform 0.2s ease, opacity 0.2s ease;
  vertical-align: middle;
}

.lang-dropdown.open .lang-dropdown-btn .lang-chevron {
  transform: rotate(180deg);
}

/* Dropdown menu */
.lang-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 180px;
  background: linear-gradient(180deg, #2d2d2d 0%, #1a1a1a 100%);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 16px;
  padding: 8px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: var(--transition);
  z-index: 1002;
  pointer-events: none;
}

[dir="rtl"] .lang-dropdown-menu {
  right: auto;
  left: 0;
}

.lang-dropdown.open .lang-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.lang-option {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 12px 16px;
  background: transparent;
  border: none;
  border-radius: 12px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.95rem;
  font-family: inherit;
  cursor: pointer;
  transition: var(--transition);
  text-align: left;
}

[dir="rtl"] .lang-option {
  text-align: right;
}

.lang-option:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
}

.lang-option.active {
  background: rgba(230, 126, 34, 0.25);
  color: var(--gold-light);
}

.lang-option .lang-flag-img {
  width: 28px;
  height: 21px;
  object-fit: cover;
  border-radius: 4px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
  flex-shrink: 0;
}

.lang-option .lang-option-text {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.lang-option .lang-option-text .lang-code {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  min-width: 24px;
}

[dir="rtl"] .lang-option .lang-option-text {
  flex-direction: row-reverse;
}

/* CTA button in header */
.header-dark .btn-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: var(--gradient-primary);
  color: var(--white) !important;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-radius: 50px;
  text-decoration: none;
  transition: var(--transition);
  box-shadow: 0 2px 15px rgba(230, 126, 34, 0.4);
  white-space: nowrap;
}

.header-dark .btn-cta:hover {
  background: var(--gradient-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(230, 126, 34, 0.5);
}

/* Fallback for pages without component (legacy) */
.header:not(.header-dark) {
  background: rgba(255,255,255,0.98);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-sm);
}

.header.scrolled {
  box-shadow: var(--shadow-md);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  max-width: 1200px;
  margin: 0 auto;
  padding-inline: 24px;
}

.logo {
  font-size: 1.5rem;
  font-weight: 800;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-decoration: none;
}

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  color: var(--gray-800);
  font-weight: 600;
  font-size: 0.95rem;
  transition: var(--transition);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-primary);
  transition: var(--transition);
}

[dir="rtl"] .nav-links a::after {
  left: auto;
  right: 0;
}

.nav-links a:hover {
  color: var(--orange);
}

.nav-links a:hover::after {
  width: 100%;
}

/* Language Switcher */
.lang-switcher {
  display: flex;
  gap: 8px;
  align-items: center;
}

.lang-btn {
  padding: 6px 14px;
  border: 1px solid var(--gray-300);
  background: var(--white);
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gray-600);
  transition: var(--transition);
}

.lang-btn:hover,
.lang-btn.active {
  background: var(--gradient-primary);
  color: var(--white);
  border-color: transparent;
}

/* Mobile: actions (lang + hamburger) - hidden on desktop */
.nav-mobile-actions {
  display: none;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

/* Full-screen menu header (close button) – แสดงเฉพาะมือถือ */
.nav-menu-fullscreen-header {
  display: none;
}

/* Hamburger / Menu toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
  width: 44px;
  min-width: 44px;
  height: 44px;
  min-height: 44px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  border-radius: 8px;
  transition: var(--transition);
}

.menu-toggle:hover {
  background: transparent;
}

.menu-toggle span {
  width: 22px;
  height: 2px;
  background: var(--gray-800);
  border-radius: 2px;
  transition: var(--transition);
}

.header-dark .menu-toggle span {
  background: var(--white);
}

.menu-toggle.active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* ปุ่มเมนูที่ position absolute ต้องไม่ถูก transform ของ parent ทับ */
@media (max-width: 992px) {
  .header-dark .nav-mobile-actions .menu-toggle.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }
  .header-dark .nav-mobile-actions .menu-toggle.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }
  /* โหมดเปิดเมนู: ปุ่มเป็นวงกลมสีทอง มี X สีเข้ม (แบบรูปตัวอย่าง) */
  .header-dark .nav-mobile-actions .menu-toggle.active,
  .header .menu-toggle.active {
    background: var(--gradient-primary) !important;
    border-radius: 50% !important;
    box-shadow: 0 2px 12px rgba(230, 126, 34, 0.5) !important;
  }
  .header-dark .nav-mobile-actions .menu-toggle.active span,
  .header .menu-toggle.active span {
    background: #1a1a1a !important;
  }
}

/* ========== Hero Section ========== */
.hero {
  min-height: 72vh;
  display: flex;
  align-items: center;
  position: relative;
  padding: 96px 0 60px;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('../images/tiptour-phuket.png');
  background-size: cover;
  background-position: center;
  opacity: 0.15;
  pointer-events: none;
}

/* Hero Background Slider – มือถือเท่านั้น (P2, P8, P9, P4) */
.hero-bg-slider {
  display: none;
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.hero-bg-slider .hero-bg-slider-track {
  display: flex;
  height: 100%;
  width: 100%;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-bg-slider .hero-bg-slide {
  flex: 0 0 100%;
  min-width: 100%;
  height: 100%;
}

.hero-bg-slider .hero-bg-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-bg-slider::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.35) 0%, rgba(0,0,0,0.5) 100%);
  pointer-events: none;
}

.hero-bg-slider-btn {
  display: none;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: rgba(0,0,0,0.4);
  color: #fff;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  z-index: 2;
  pointer-events: auto;
  transition: background 0.2s ease, transform 0.2s ease;
}

.hero-bg-slider-btn:hover {
  background: rgba(0,0,0,0.6);
  transform: translateY(-50%) scale(1.05);
}

.hero-bg-slider-prev { left: 12px; }
.hero-bg-slider-next { right: 12px; }

.hero .container {
  position: relative;
  z-index: 1;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: 100%;
  background: radial-gradient(ellipse at 70% 30%, rgba(230, 126, 34, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

[dir="rtl"] .hero::before {
  right: auto;
  left: 0;
  background: radial-gradient(ellipse at 30% 30%, rgba(230, 126, 34, 0.06) 0%, transparent 70%);
}

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

.hero-text h1 {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  color: var(--white);
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}

.hero-text .highlight {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-text p {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.9);
  margin-bottom: 32px;
  max-width: 480px;
}

.hero .section-badge {
  background: rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.9);
  border-color: rgba(255,255,255,0.2);
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 16px 32px;
  font-size: 1rem;
  font-weight: 700;
  border-radius: var(--radius);
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  font-family: inherit;
}

.btn-primary {
  background: var(--gradient-primary);
  color: var(--white);
  box-shadow: 0 4px 20px rgba(230, 126, 34, 0.35);
}

.btn-primary:hover {
  background: var(--gradient-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 28px rgba(230, 126, 34, 0.45);
}

.btn-secondary {
  background: var(--white);
  color: var(--navy);
  border: 2px solid var(--navy);
}

.btn-secondary:hover {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  color: var(--white);
  border-color: var(--navy);
  transform: translateY(-2px);
}

/* Navy accent - secondary elements */
.section-badge {
  border: 1px solid rgba(30, 58, 95, 0.15);
}
.category-card:hover,
.why-card:hover {
  box-shadow: 0 4px 20px rgba(30, 58, 95, 0.08);
}

/* Hero Slider */
.hero-slider {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  touch-action: pan-y pinch-zoom;
}

.hero-slider-track {
  display: flex;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.hero-slide img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  display: block;
  cursor: pointer;
}

.hero-slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border: none;
  background: transparent;
  color: rgba(255,255,255,0.95);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  transition: var(--transition);
  filter: drop-shadow(0 1px 3px rgba(0,0,0,0.4));
}

.hero-slider-btn:hover {
  color: var(--white);
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.5));
  transform: translateY(-50%) scale(1.1);
}

.hero-slider-prev {
  left: 16px;
}

.hero-slider-next {
  right: 16px;
}

[dir="rtl"] .hero-slider-prev {
  left: auto;
  right: 16px;
}

[dir="rtl"] .hero-slider-next {
  right: auto;
  left: 16px;
}

.hero-slider-dots {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 2;
}

.hero-dot {
  width: 10px;
  height: 10px;
  border: none;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  cursor: pointer;
  padding: 0;
  transition: var(--transition);
}

.hero-dot:hover,
.hero-dot.active {
  background: var(--white);
  transform: scale(1.2);
}

/* Hero Lightbox Fullscreen */
.hero-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.9);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}

.hero-lightbox.open {
  opacity: 1;
  visibility: visible;
}

.hero-lightbox-content {
  max-width: 95vw;
  max-height: 95vh;
}

.hero-lightbox-content img {
  max-width: 100%;
  max-height: 95vh;
  object-fit: contain;
  display: block;
}

.hero-lightbox-close {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 48px;
  height: 48px;
  border: none;
  background: rgba(255,255,255,0.15);
  color: var(--white);
  font-size: 2rem;
  cursor: pointer;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  line-height: 1;
}

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

[dir="rtl"] .hero-lightbox-close {
  right: auto;
  left: 24px;
}

.hero-lightbox-prev,
.hero-lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 56px;
  height: 56px;
  border: none;
  background: transparent;
  color: rgba(255,255,255,0.95);
  font-size: 2.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  filter: drop-shadow(0 1px 4px rgba(0,0,0,0.5));
}

.hero-lightbox-prev { left: 24px; }
.hero-lightbox-next { right: 24px; }

[dir="rtl"] .hero-lightbox-prev { left: auto; right: 24px; }
[dir="rtl"] .hero-lightbox-next { right: auto; left: 24px; }

.hero-lightbox-prev:hover,
.hero-lightbox-next:hover {
  color: var(--white);
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.6));
  transform: translateY(-50%) scale(1.1);
}

/* Legacy hero-image (for compatibility) */
.hero-image {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.hero-image img {
  width: 100%;
  height: 400px;
  object-fit: cover;
}

/* ========== Section Common ========== */
.section {
  padding: 80px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 56px;
}

.section-badge {
  display: inline-block;
  padding: 8px 20px;
  background: rgba(230, 126, 34, 0.1);
  color: var(--orange);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border-radius: 50px;
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(2rem, 4vw, 2.5rem);
  color: var(--gray-900);
  margin-bottom: 16px;
}

.section-desc {
  font-size: 1.1rem;
  color: var(--gray-600);
  max-width: 600px;
  margin: 0 auto;
}

/* ========== Categories ========== */
.categories {
  background: var(--white);
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 24px;
}

.category-card {
  background: var(--white);
  border: 2px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 32px 24px;
  text-align: center;
  transition: var(--transition);
  text-decoration: none;
  color: inherit;
}

.category-card:hover {
  border-color: var(--orange);
  transform: translateY(-8px);
  box-shadow: var(--shadow-md);
}

.category-card .icon {
  width: 72px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  background: linear-gradient(135deg, rgba(230, 126, 34, 0.1) 0%, rgba(243, 156, 18, 0.1) 100%);
  border-radius: 50%;
  color: var(--orange);
  transition: var(--transition);
}

.category-card:hover .icon {
  background: var(--gradient-primary);
  color: var(--white);
  transform: scale(1.1);
}

.category-card .icon svg {
  width: 32px;
  height: 32px;
}

.category-card h3 {
  font-size: 1.1rem;
  color: var(--gray-800);
}

/* ========== Service Quality (บริการของเราดีอย่างไร) ========== */
.service-quality {
  background: var(--white);
}

.service-quality-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.service-quality-title {
  position: relative;
  padding-left: 20px;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 40px;
}

.service-quality-title::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 5px;
  height: 80%;
  background: linear-gradient(180deg, var(--orange) 0%, var(--gold) 100%);
  border-radius: 3px;
}

[dir="rtl"] .service-quality-title {
  padding-left: 0;
  padding-right: 20px;
}

[dir="rtl"] .service-quality-title::before {
  left: auto;
  right: 0;
}

.service-quality-list {
  list-style: none;
}

.service-quality-list li {
  margin-bottom: 28px;
}

.service-quality-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.service-quality-label {
  font-size: 1rem;
  color: var(--gray-800);
  font-weight: 500;
}

.service-quality-pct {
  font-size: 1rem;
  font-weight: 700;
  color: var(--gray-800);
  min-width: 40px;
  text-align: right;
}

.progress-bar {
  height: 8px;
  background: var(--gray-200);
  border-radius: 10px;
  overflow: hidden;
}

.progress-fill {
  display: block;
  height: 100%;
  width: 100%;
  background: var(--gradient-primary);
  border-radius: 10px;
  transform-origin: left;
  transform: scaleX(0);
  animation: progressFill96 1.2s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

[dir="rtl"] .progress-fill {
  transform-origin: right;
}

.progress-fill[data-pct="95"] { animation-name: progressFill95; }
.progress-fill[data-pct="96"] { animation-name: progressFill96; }
.progress-fill[data-pct="97"] { animation-name: progressFill97; }
.progress-fill[data-pct="98"] { animation-name: progressFill98; }
.progress-fill[data-pct="99"] { animation-name: progressFill99; }

.service-quality-list li:nth-child(1) .progress-fill { animation-delay: 0.1s; }
.service-quality-list li:nth-child(2) .progress-fill { animation-delay: 0.25s; }
.service-quality-list li:nth-child(3) .progress-fill { animation-delay: 0.4s; }
.service-quality-list li:nth-child(4) .progress-fill { animation-delay: 0.55s; }
.service-quality-list li:nth-child(5) .progress-fill { animation-delay: 0.7s; }

@keyframes progressFill95 { to { transform: scaleX(0.95); } }
@keyframes progressFill96 { to { transform: scaleX(0.96); } }
@keyframes progressFill97 { to { transform: scaleX(0.97); } }
@keyframes progressFill98 { to { transform: scaleX(0.98); } }
@keyframes progressFill99 { to { transform: scaleX(0.99); } }

.service-quality-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.service-quality-image img {
  width: 100%;
  height: 100%;
  min-height: 350px;
  object-fit: cover;
}

/* บริการของเราดีอย่างไร – ใช้โลโก้ แสดงแบบเด่น */
.service-quality-logo {
  background: linear-gradient(145deg, #fff 0%, #f8f9fa 100%);
  padding: 48px 40px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12), 0 0 0 1px rgba(230, 126, 34, 0.15);
  border-radius: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 350px;
}

.service-quality-logo .service-quality-logo-img {
  width: 100%;
  max-width: 320px;
  height: auto;
  min-height: 0;
  object-fit: contain;
  filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.08));
}

@media (max-width: 900px) {
  .service-quality-grid {
    grid-template-columns: 1fr;
  }

  .service-quality-image {
    order: -1;
    max-height: 280px;
  }

  .service-quality-image img {
    min-height: 250px;
  }

  .service-quality-logo {
    padding: 32px 24px;
    min-height: 280px;
  }

  .service-quality-logo .service-quality-logo-img {
    max-width: 260px;
  }
}

/* ========== Featured Tours ========== */
.featured {
  background: var(--gray-100);
}

.tour-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 32px;
}

/* Force exactly 4 columns and enlarge items for Best Seller section */
.best-seller .container {
  max-width: 1400px;
}
.best-seller .tour-grid {
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

@media (max-width: 1100px) {
  .best-seller .tour-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .best-seller .tour-grid {
    grid-template-columns: 1fr;
  }
}

.tour-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.tour-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.tour-card-image {
  overflow: hidden;
  background: var(--gray-100);
  height: auto;
}

.tour-card-image img {
  width: 100%;
  height: auto;
  object-fit: contain;
  object-position: center;
  transition: transform 0.4s ease;
  display: block;
  vertical-align: top;
}

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

.tour-card-content {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.tour-card h3 {
  font-size: 1.25rem;
  color: var(--gray-900);
  margin-bottom: 8px;
}

.tour-card .tour-desc {
  font-size: 0.9rem;
  color: var(--gray-600);
  margin-bottom: 12px;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tour-card .price {
  font-size: 1.25rem;
  font-weight: 800;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 16px;
}

.tour-card .btn {
  width: 100%;
  justify-content: center;
}

/* Dual button layout for tour cards */
.tour-card-buttons {
  display: flex;
  gap: 8px;
  margin-top: auto;
  padding-top: 12px;
}
.tour-card-buttons .btn {
  flex: 1;
  padding: 10px 6px;
  font-size: 0.82rem;
  text-align: center;
  white-space: nowrap;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  cursor: pointer;
  font-family: var(--font-primary);
  width: auto;
}
.tour-card-buttons .btn-book {
  background: linear-gradient(135deg, #e67e22, #f39c12);
  color: #fff;
  border: none;
}
.tour-card-buttons .btn-book:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(230,126,34,0.35);
}
.tour-card-buttons .btn-detail {
  background: #fff;
  color: var(--navy);
  border: 2px solid var(--navy);
}
.tour-card-buttons .btn-detail:hover {
  background: var(--navy);
  color: #fff;
}

/* ========== Why Choose Us ========== */
.why-choose {
  background: var(--white);
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 32px;
}

.why-card {
  background: var(--white);
  padding: 40px 32px;
  border-radius: var(--radius);
  border: 2px solid var(--gray-200);
  transition: var(--transition);
}

.why-card:hover {
  border-color: var(--orange);
  box-shadow: var(--shadow-md);
}

.why-card .icon {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-primary);
  border-radius: 16px;
  font-size: 1.75rem;
  margin-bottom: 20px;
}

.why-card h3 {
  font-size: 1.2rem;
  color: var(--gray-900);
  margin-bottom: 12px;
}

.why-card p {
  color: var(--gray-600);
}

/* ========== About Us ========== */
.about-us {
  position: relative;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
  padding: 80px 0;
  overflow: hidden;
}

.about-us-bg {
  position: absolute;
  inset: 0;
  background-image: url('https://images.unsplash.com/photo-1552465011-b4e21bf6e79a?w=1920&q=30');
  background-size: cover;
  background-position: center;
  opacity: 0.15;
}

.about-us .container {
  position: relative;
  z-index: 1;
}

.about-us-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-us-header {
  margin-bottom: 24px;
}

.about-us-badge {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 0.9rem;
  font-weight: 600;
  color: rgba(255,255,255,0.7);
  margin-bottom: 8px;
}

.about-us-badge::before,
.about-us-badge::after {
  content: '';
  flex: 1;
  max-width: 40px;
  height: 1px;
  background: rgba(255,255,255,0.4);
}

.about-us-title {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  color: var(--white);
  font-weight: 700;
}

.about-us-desc {
  color: rgba(255,255,255,0.9);
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 28px;
}

.about-us-benefits {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 24px;
  margin-bottom: 32px;
}

.about-us-benefits li {
  display: flex;
  align-items: center;
  gap: 12px;
  color: rgba(255,255,255,0.9);
  font-size: 0.95rem;
}

.about-us-benefits .check-icon {
  width: 24px;
  height: 24px;
  min-width: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-primary);
  border-radius: 50%;
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 700;
}

.about-us-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.about-stat-card {
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius);
  padding: 32px 24px;
  text-align: center;
  transition: var(--transition);
}

.about-stat-card:hover {
  background: rgba(255,255,255,0.12);
  transform: translateY(-4px);
}

.about-stat-number {
  display: block;
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--orange);
  margin-bottom: 8px;
}

.about-stat-label {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.9);
}

[dir="rtl"] .about-us-benefits li {
  flex-direction: row-reverse;
}

@media (max-width: 900px) {
  .about-us-grid {
    grid-template-columns: 1fr;
  }

  .about-us-stats {
    order: -1;
    grid-template-columns: 1fr 1fr;
  }

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

/* ========== Video Section ========== */
.video-section {
  background: var(--gray-100);
  padding: 80px 0;
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 48px;
}

.video-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
}

.video-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.video-wrapper {
  position: relative;
  width: 100%;
  background: var(--gray-900);
  line-height: 0;
}

.video-wrapper video {
  width: 100%;
  height: auto;
  display: block;
  vertical-align: middle;
}

@media (max-width: 900px) {
  .video-grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 16px;
    margin-top: 32px;
    padding-bottom: 24px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .video-grid::-webkit-scrollbar {
    display: none;
  }
  .video-card {
    flex: 0 0 calc(100% - 32px);
    scroll-snap-align: center;
  }
}

@media (max-width: 600px) {
  .video-section {
    padding: 60px 0;
  }
}

/* ========== Testimonials ========== */
.testimonials {
  background: linear-gradient(180deg, var(--gray-100) 0%, var(--white) 100%);
}

.review-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 32px;
}

.review-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  padding: 32px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  border-left: 4px solid var(--orange);
  transition: var(--transition);
}

[dir="rtl"] .review-card {
  border-left: none;
  border-right: 4px solid var(--orange);
}

.review-card:hover {
  box-shadow: var(--shadow-md);
}

.review-stars {
  color: var(--gold);
  font-size: 1.25rem;
  margin-bottom: 16px;
}

.review-card p {
  flex: 1;
  color: var(--gray-700);
  font-style: italic;
  margin-bottom: 20px;
  line-height: 1.7;
}

.reviewer {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 4px;
}

.reviewer-avatar {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gray-200);
}

.reviewer-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.reviewer-avatar:not(:has(img)) {
  background: var(--gradient-primary);
  color: var(--white);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1;
}

.reviewer-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  min-width: 0;
}

.reviewer-info h4 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--gray-900);
}

.reviewer-info span {
  margin: 0;
  font-size: 0.875rem;
  font-weight: 400;
  line-height: 1.45;
  color: var(--gray-600);
}

/* ========== Gallery (รูปผลงาน 5×4) ========== */
.gallery-section {
  padding-bottom: 0;
}

.gallery-section .container {
  margin-bottom: 40px;
}

.gallery-full {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  width: 100%;
}

.gallery-item {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  position: relative;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

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

.gallery-item {
  cursor: pointer;
}

/* Gallery Lightbox Fullscreen */
.gallery-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.92);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}

.gallery-lightbox.open {
  opacity: 1;
  visibility: visible;
}

.gallery-lightbox-content {
  max-width: 95vw;
  max-height: 95vh;
  padding: 0 60px;
}

.gallery-lightbox-content img {
  max-width: 100%;
  max-height: 95vh;
  object-fit: contain;
  display: block;
}

.gallery-lightbox-close {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 48px;
  height: 48px;
  border: none;
  background: transparent;
  color: rgba(255,255,255,0.95);
  font-size: 2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  line-height: 1;
  filter: drop-shadow(0 1px 4px rgba(0,0,0,0.5));
}

.gallery-lightbox-close:hover {
  color: var(--white);
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.6));
  transform: scale(1.1);
}

[dir="rtl"] .gallery-lightbox-close {
  right: auto;
  left: 24px;
}

.gallery-lightbox-prev,
.gallery-lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 56px;
  height: 56px;
  border: none;
  background: transparent;
  color: rgba(255,255,255,0.95);
  font-size: 2.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  filter: drop-shadow(0 1px 4px rgba(0,0,0,0.5));
}

.gallery-lightbox-prev { left: 24px; }
.gallery-lightbox-next { right: 24px; }

[dir="rtl"] .gallery-lightbox-prev { left: auto; right: 24px; }
[dir="rtl"] .gallery-lightbox-next { right: auto; left: 24px; }

.gallery-lightbox-prev:hover,
.gallery-lightbox-next:hover {
  color: var(--white);
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.6));
  transform: translateY(-50%) scale(1.1);
}

.gallery-lightbox-counter {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.9);
  font-size: 1rem;
}

@media (max-width: 992px) {
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 600px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ========== Tour Detail Modal (ทัวร์เมืองภูเก็ต) ========== */
.tour-detail-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}

.tour-detail-modal.open {
  opacity: 1;
  visibility: visible;
}

.tour-detail-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(26, 32, 44, 0.88);
}

.tour-detail-modal-inner {
  position: relative;
  display: block;
  max-width: 920px;
  width: 100%;
  max-height: 90vh;
  background: linear-gradient(160deg, #1a2332 0%, #1e3a5f 50%, #152238 100%);
  border-radius: var(--radius-lg);
  overflow-y: auto;
  overflow-x: hidden;
  box-shadow: 0 24px 64px rgba(0,0,0,0.5);
}

.tour-detail-modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 44px;
  height: 44px;
  border: none;
  background: transparent;
  color: rgba(255,255,255,0.9);
  font-size: 1.75rem;
  cursor: pointer;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  filter: drop-shadow(0 1px 3px rgba(0,0,0,0.4));
}

.tour-detail-modal-close:hover {
  color: var(--white);
  transform: scale(1.1);
}

.tour-detail-modal-left {
  width: 42%;
  display: block;
  overflow: hidden;
  line-height: 0;
  font-size: 0;
}

.tour-detail-modal-image-wrap {
  position: relative;
  width: 100%;
  height: auto;
  display: block;
  padding: 0;
  overflow: hidden;
  line-height: 0;
}

.tour-detail-modal-image-wrap img {
  width: 100%;
  height: auto;
  object-fit: unset;
  display: block;
}

.tour-detail-modal-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  padding: 8px 16px;
  background: var(--gradient-primary);
  color: var(--white);
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: 999px;
}

.tour-detail-modal-right {
  position: absolute;
  top: 0;
  right: 0;
  width: 58%;
  height: 100%;
  padding: 32px 36px 40px 28px;
  overflow-y: auto;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-height: 0;
}

.tour-detail-modal-title {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--white);
  margin: 0 0 4px 0;
  line-height: 1.2;
}

.tour-detail-modal-price {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.95);
  margin: 0 0 8px 0;
}

.tour-detail-modal-times h4,
.tour-detail-modal-block h4 {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--gold-light);
  margin: 0 0 10px 0;
  text-transform: none;
}

.tour-detail-modal-times ul,
.tour-detail-modal-block ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.tour-detail-modal-times ul li,
.tour-detail-modal-block ul li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 6px;
  color: rgba(255,255,255,0.9);
  font-size: 0.95rem;
  line-height: 1.5;
}

.tour-detail-modal-times ul li::before,
.tour-detail-modal-block ul li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--gold-light);
  font-weight: 700;
}

.tour-detail-modal-block {
  margin: 0;
}

.tour-detail-modal-condition-text {
  margin: 0;
  padding-left: 20px;
  color: rgba(255,255,255,0.85);
  font-size: 0.95rem;
  line-height: 1.6;
}

[dir="rtl"] .tour-detail-modal-close {
  right: auto;
  left: 20px;
}

[dir="rtl"] .tour-detail-modal-badge {
  left: auto;
  right: 16px;
}

[dir="rtl"] .tour-detail-modal-right {
  right: auto;
  left: 0;
  padding: 32px 28px 40px 36px;
}

[dir="rtl"] .tour-detail-modal-times ul li,
[dir="rtl"] .tour-detail-modal-block ul li {
  padding-left: 0;
  padding-right: 20px;
}

[dir="rtl"] .tour-detail-modal-times ul li::before,
[dir="rtl"] .tour-detail-modal-block ul li::before {
  left: auto;
  right: 0;
}

[dir="rtl"] .tour-detail-modal-condition-text {
  padding-left: 0;
  padding-right: 20px;
}

.tour-detail-modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
  padding-bottom: 8px;
}

.tour-detail-modal-actions .btn {
  flex: 1;
  min-width: 140px;
}

.tour-detail-modal-actions .btn-outline-light {
  background: transparent;
  color: var(--white);
  border: 2px solid var(--gold-light);
}

.tour-detail-modal-actions .btn-outline-light:hover {
  background: rgba(241, 196, 15, 0.15);
  color: var(--gold-light);
}

@media (max-width: 768px) {
  .tour-detail-modal {
    padding: 8px;
  }

  .tour-detail-modal-inner {
    display: block;
    max-height: 95vh;
  }

  .tour-detail-modal-left {
    width: 100%;
    max-height: none;
  }

  .tour-detail-modal-image-wrap {
    display: block;
    height: auto;
  }

  .tour-detail-modal-image-wrap img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: unset;
  }

  .tour-detail-modal-right {
    position: relative;
    width: 100%;
    height: auto;
    padding: 24px 20px;
    overflow-y: visible;
  }
}

/* ========== FAQ ========== */
.faq-list {
  max-width: 720px;
  margin: 0 auto;
}

.faq-item {
  border: 2px solid var(--gray-200);
  border-radius: var(--radius);
  margin-bottom: 16px;
  overflow: hidden;
  transition: var(--transition);
}

.faq-item:hover,
.faq-item.open {
  border-color: var(--orange);
  box-shadow: var(--shadow-sm);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  background: var(--white);
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--gray-900);
  text-align: start;
  transition: var(--transition);
}

.faq-question:hover {
  background: var(--gray-50);
}

.faq-icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  position: relative;
}

.faq-icon::before,
.faq-icon::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  background: var(--orange);
  transition: var(--transition);
}

.faq-icon::before {
  width: 12px;
  height: 2px;
  margin: -1px 0 0 -6px;
}

.faq-icon::after {
  width: 2px;
  height: 12px;
  margin: -6px 0 0 -1px;
}

.faq-item.open .faq-icon::after {
  transform: rotate(90deg);
  opacity: 0;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}

.faq-answer p {
  margin: 0 24px 20px;
  padding: 16px 0 0;
  border-top: 1px solid var(--gray-100);
  color: var(--gray-600);
  line-height: 1.7;
}

.faq-item.open .faq-answer {
  max-height: 400px;
}

[dir="rtl"] .faq-question {
  text-align: right;
}

/* ========== CTA Section ========== */
.cta-section {
  background: var(--navy);
  padding: 80px 0;
  text-align: center;
}

.cta-section h2 {
  color: var(--white);
  font-size: clamp(2rem, 4vw, 2.5rem);
  margin-bottom: 16px;
}

.cta-section p {
  color: rgba(255,255,255,0.9);
  font-size: 1.15rem;
  margin-bottom: 32px;
}

.cta-section .btn-secondary {
  background: var(--white);
  color: var(--orange);
  border-color: var(--white);
}

.cta-section .btn-secondary:hover {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}

/* ========== Footer ========== */
.footer {
  position: relative;
  overflow: hidden;
  background: var(--gradient-primary);
  color: var(--white);
  padding: 64px 0 0;
}

.footer::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('../images/tiptour-phuket.png');
  background-size: cover;
  background-position: center;
  opacity: 0.15;
  pointer-events: none;
  z-index: 0;
}

.footer::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: 100%;
  background: radial-gradient(ellipse at 70% 30%, rgba(255,255,255,0.06) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.footer .container {
  position: relative;
  z-index: 1;
  width: 100%;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(260px, 1.2fr) repeat(3, 1fr);
  gap: 48px 30px;
  padding-bottom: 48px;
  align-items: start;
}

.footer-brand {
  max-width: 360px;
}

.footer-brand .logo-link {
  display: inline-block;
  margin-bottom: 20px;
}

.footer-brand .logo-img-footer {
  height: 88px;
  width: auto;
  max-width: 200px;
  object-fit: contain;
  display: block;
  transition: var(--transition);
}

.footer-brand .logo-link:hover .logo-img-footer {
  transform: scale(1.03);
}

.footer-desc {
  color: rgba(255,255,255,0.88);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 24px;
}

/* Footer Social Icons */
.footer-social {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.footer-social-icon {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  min-width: 40px;
  min-height: 40px;
  background: rgba(255,255,255,0.15);
  color: var(--white);
  border-radius: 10px;
  transition: var(--transition);
}

.footer-social-icon:hover {
  background: rgba(255,255,255,0.95);
  color: var(--navy);
  transform: translateY(-2px);
}

.footer-social-icon svg {
  width: 20px;
  height: 20px;
}

/* Footer Columns */
.footer-col {
  min-width: 0;
  display: block;
  visibility: visible;
}

.footer-title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--white);
  letter-spacing: 0.02em;
}

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

.footer-links li {
  margin-bottom: 14px;
}

.footer-links a {
  display: inline-block;
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  font-size: 0.95rem;
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--white);
  transform: translateX(4px);
}

[dir="rtl"] .footer-links a:hover {
  transform: translateX(-4px);
}

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

.footer a:hover {
  color: var(--white);
}

.footer-bottom {
  padding: 24px 0 32px;
  border-top: 1px solid rgba(255,255,255,0.15);
  text-align: center;
  color: rgba(255,255,255,0.75);
  font-size: 0.9rem;
}

/* Footer Responsive */
@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px 32px;
  }

  .footer-brand {
    max-width: 100%;
    grid-column: 1 / -1;
  }
}

@media (max-width: 600px) {
  .footer {
    padding: 48px 0 0;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 36px;
    padding-bottom: 40px;
    text-align: center;
  }

  .footer-brand {
    text-align: center;
  }

  .footer-brand .logo-link {
    display: flex;
    justify-content: center;
  }

  .footer-brand .logo-img-footer {
    margin: 0 auto;
  }

  .footer-social {
    justify-content: center;
  }

  .footer-col {
    text-align: center;
  }

  .footer-links a:hover {
    transform: none;
  }
}

@media (max-width: 480px) {
  .footer-brand .logo-img-footer {
    height: 72px;
  }
}

/* ========== Page: Services ========== */
.services-hero {
  padding: 140px 0 60px;
  background: linear-gradient(180deg, var(--gray-100) 0%, var(--white) 100%);
  text-align: center;
}

.services-hero h1 {
  font-size: clamp(2.5rem, 5vw, 3rem);
  color: var(--gray-900);
  margin-bottom: 16px;
}

.services-hero p {
  font-size: 1.2rem;
  color: var(--gray-600);
  max-width: 600px;
  margin: 0 auto;
}

.service-detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 40px;
}

.service-detail-card {
  display: flex;
  gap: 24px;
  background: var(--white);
  padding: 40px;
  border-radius: var(--radius);
  border: 2px solid var(--gray-200);
  transition: var(--transition);
}

.service-detail-card:hover {
  border-color: var(--orange);
  box-shadow: var(--shadow-md);
}

.service-detail-card .icon-box {
  width: 80px;
  height: 80px;
  min-width: 80px;
  background: var(--gradient-primary);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
}

.service-detail-card h3 {
  font-size: 1.35rem;
  color: var(--gray-900);
  margin-bottom: 12px;
}

.service-detail-card p {
  color: var(--gray-600);
  line-height: 1.7;
}

/* ========== Page: Reviews ========== */
.reviews-hero {
  padding: 140px 0 60px;
  background: linear-gradient(180deg, var(--gray-100) 0%, var(--white) 100%);
  text-align: center;
}

.reviews-hero h1 {
  font-size: clamp(2.5rem, 5vw, 3rem);
  color: var(--gray-900);
  margin-bottom: 16px;
}

/* ========== Page: Contact ========== */
.contact-hero {
  padding: 140px 0 60px;
  background: linear-gradient(180deg, var(--gray-100) 0%, var(--white) 100%);
  text-align: center;
}

.contact-hero h1 {
  font-size: clamp(2.5rem, 5vw, 3rem);
  color: var(--gray-900);
  margin-bottom: 16px;
}

/* ========== Page: Privacy Policy ========== */
.privacy-hero {
  padding: 140px 0 60px;
  background: linear-gradient(180deg, var(--gray-100) 0%, var(--white) 100%);
  text-align: center;
}

.privacy-hero .section-badge {
  display: inline-block;
  padding: 8px 20px;
  border-radius: 50px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--navy);
  background: rgba(30, 58, 95, 0.08);
  border: 1px solid rgba(30, 58, 95, 0.15);
  margin-bottom: 16px;
}

.privacy-hero h1 {
  font-size: clamp(2.5rem, 5vw, 3rem);
  color: var(--gray-900);
  margin-bottom: 16px;
}

.privacy-hero-desc {
  max-width: 640px;
  margin: 0 auto;
  font-size: 1.1rem;
  color: var(--gray-600);
  line-height: 1.7;
}

.privacy-main {
  padding: 40px 0 80px;
  background: var(--white);
}

.privacy-content {
  max-width: 800px;
  margin: 0 auto;
}

.privacy-section {
  margin-bottom: 48px;
  padding: 32px 36px;
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-200);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.privacy-section:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--gray-300);
}

.privacy-section-title {
  font-size: 1.5rem;
  color: var(--navy);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--orange);
}

.privacy-text {
  color: var(--gray-800);
  margin-bottom: 20px;
  line-height: 1.75;
  font-size: 1rem;
}

.privacy-block {
  margin-bottom: 20px;
  padding: 20px 24px;
  background: var(--gray-100);
  border-radius: var(--radius);
  border-left: 4px solid var(--orange);
  transition: var(--transition);
}

[dir="rtl"] .privacy-block {
  border-left: none;
  border-right: 4px solid var(--orange);
}

.privacy-block:hover {
  background: var(--gray-200);
}

.privacy-block:last-child {
  margin-bottom: 0;
}

.privacy-block h3 {
  font-size: 1.05rem;
  color: var(--gray-900);
  margin-bottom: 8px;
  font-weight: 600;
}

.privacy-block p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--gray-700);
  line-height: 1.65;
}

.privacy-section-cta {
  background: linear-gradient(135deg, rgba(30, 58, 95, 0.04) 0%, rgba(230, 126, 34, 0.06) 100%);
  border-color: rgba(230, 126, 34, 0.25);
}

.privacy-contact-box {
  padding: 28px 32px;
  background: var(--white);
  border-radius: var(--radius);
  border: 2px solid var(--gray-200);
  margin-top: 16px;
}

.privacy-contact-box p {
  margin-bottom: 12px;
  font-size: 1rem;
  color: var(--gray-800);
}

.privacy-contact-box p:last-of-type {
  margin-bottom: 0;
}

.privacy-contact-box a {
  color: var(--orange);
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition);
}

.privacy-contact-box a:hover {
  color: var(--orange-dark);
  text-decoration: underline;
}

@media (max-width: 768px) {
  .privacy-section {
    padding: 24px 20px;
  }
  .privacy-block {
    padding: 16px 18px;
  }
}

.contact-grid {
  display: grid;
  grid-template-columns: 4fr 5.5fr;
  gap: 40px;
  align-items: start;
}

@media (max-width: 900px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .qr-grid {
    grid-template-columns: repeat(1, 1fr);
    gap: 32px;
    max-width: 320px;
    margin: 0 auto;
  }
}

.contact-info-card {
  background: var(--white);
  padding: 40px;
  border-radius: var(--radius);
  border: 2px solid var(--gray-200);
}

.contact-info-card h3 {
  color: var(--gray-900);
  margin-bottom: 24px;
  font-size: 1.25rem;
}

.contact-item {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
  align-items: flex-start;
}

.contact-item .icon {
  width: 48px;
  height: 48px;
  min-width: 48px;
  background: linear-gradient(135deg, #FFB75E 0%, #ED8F03 100%);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(237, 143, 3, 0.3);
}

.contact-item h4 {
  font-size: 0.95rem;
  color: var(--gray-800);
  margin-bottom: 4px;
}

.contact-item p {
  color: var(--gray-600);
  font-size: 0.95rem;
}

.contact-info-card .contact-item p a {
  color: var(--gray-600);
  text-decoration: none;
}

.contact-info-card .contact-item p a:hover {
  color: var(--gray-800);
  text-decoration: underline;
}

.contact-qr-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  height: 100%;
}

.qr-title {
  color: #000000;
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 32px;
}

.qr-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  width: 100%;
}

.qr-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  width: 100%;
}

.qr-card {
  background: var(--white);
  padding: 10px;
  border-radius: 20px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  aspect-ratio: 1/1;
}

.qr-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.app-icon-wrap {
  font-size: 2.25rem;
  margin-top: 8px;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

.qr-subtitle {
  color: #000000;
  font-size: 0.85rem;
  font-weight: 500;
  margin: 0;
  white-space: normal;
  text-align: center;
  line-height: 1.3;
}

/* ========== Mobile Responsive ========== */
@media (max-width: 992px) {
  .header-dark .header-inner {
    position: relative;
    overflow: visible;
    padding-left: 12px;
    padding-right: 44px; /* พื้นที่ปุ่มเมนู (ไอคอนเท่านั้น) ชิดขวา */
  }

  .header-dark .nav {
    justify-content: space-between;
    gap: 0;
    overflow: visible;
    position: relative;
    min-height: 52px;
    align-items: center;
  }

  /* บล็อกมือถือ: โลโก้ + ปุ่มภาษา (กลางแถบ) + ปุ่มเมนู (ชิดขวา) */
  .nav-mobile-actions {
    display: flex !important;
    align-items: center;
    flex: 1;
    min-width: 0;
    margin-left: 12px;
    padding-right: 52px;
    /* ไม่ตั้ง position เพื่อให้ปุ่มภาษาอ้างอิงจาก .nav */
  }

  .nav-mobile-spacer {
    display: none;
  }

  /* ปุ่มเปลี่ยนภาษา – กึ่งกลางแถบ header จริง (อ้างอิงจาก .nav ที่กว้างเต็ม) */
  .header-dark .nav .lang-dropdown-mobile {
    position: absolute !important;
    left: 50% !important;
    top: 50% !important;
    transform: translate(-50%, -50%) !important;
    flex-shrink: 0;
    z-index: 1001;
  }

  .header-dark .nav {
    position: relative;
  }

  /* ปุ่มเมนู – เฉพาะไอคอน 3 ขีด ไม่มีพื้นหลัง ชิดขวาสุด */
  .header-dark .nav-mobile-actions .menu-toggle,
  .header .menu-toggle {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto;
    position: absolute !important;
    right: -4px !important;
    top: 50% !important;
    margin: 0 !important;
    transform: translateY(-50%) !important;
    flex-shrink: 0;
    min-width: 44px;
    width: 44px;
    height: 44px;
    z-index: 1002;
    background: transparent !important;
    border: none !important;
    border-radius: 0;
    box-shadow: none;
    transition: transform 0.2s ease, opacity 0.2s ease;
  }

  .header-dark .nav-mobile-actions .menu-toggle:hover,
  .header .menu-toggle:hover {
    background: transparent !important;
    border: none !important;
    opacity: 0.85;
  }

  /* RTL (อาหรับ): ให้ปุ่มเมนูอยู่ด้านซ้ายของ header เพื่อไม่ให้หาย */
  [dir="rtl"] .header-dark .nav-mobile-actions .menu-toggle,
  [dir="rtl"] .header .menu-toggle {
    right: auto !important;
    left: -4px !important;
  }

  .header-dark .logo-link {
    flex-shrink: 0;
  }

  .header-dark .logo-img {
    max-height: 40px;
    width: auto;
    display: block;
  }

  .header-dark .nav-menu {
    position: fixed;
    top: 0 !important;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    min-height: 100vh;
    min-height: 100dvh;
    margin: 0;
    background: #1a1f2e;
    background: linear-gradient(180deg, #1e2a3d 0%, #151920 100%);
    flex-direction: column;
    padding: 0;
    gap: 0;
    border-radius: 0;
    box-shadow: none;
    transform: translateX(100%);
    opacity: 1;
    visibility: hidden;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.35s ease;
    z-index: 10010;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    justify-content: flex-start;
    align-items: stretch;
    pointer-events: none;
  }

  .header-dark .nav-menu.active {
    transform: translateX(0) !important;
    visibility: visible !important;
    pointer-events: auto !important;
  }

  [dir="rtl"] .header-dark .nav-menu {
    transform: translateX(-100%);
  }

  [dir="rtl"] .header-dark .nav-menu.active {
    transform: translateX(0);
  }

  .header-dark .nav-spacer {
    display: none;
  }

  .header-dark .nav-menu .nav-spacer-right {
    flex: none;
    order: 2;
    margin-top: auto;
    padding: 24px 24px 32px;
    justify-content: stretch;
    padding-left: 24px;
    padding-right: 24px;
  }

  .header-dark .nav-links {
    position: static;
    transform: none;
    flex-direction: column;
    gap: 0;
    width: 100%;
    padding: 0;
    list-style: none;
    order: 1;
    flex: 1;
    min-height: 0;
    background: transparent !important;
  }

  .header-dark .nav-links li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  }

  .header-dark .nav-links li:last-child {
    border-bottom: none;
  }

  .header-dark .nav-links .nav-link {
    display: block;
    padding: 18px 24px;
    font-size: 1.05rem;
    border-radius: 0;
    width: 100%;
    text-align: left;
    color: #f0f2f5;
    border-left: 4px solid transparent;
  }

  [dir="rtl"] .header-dark .nav-links .nav-link {
    border-left: none;
    border-right: 4px solid transparent;
  }

  .header-dark .nav-links .nav-link:hover {
    background: rgba(255, 255, 255, 0.06);
  }

  .header-dark .nav-links .nav-link.active {
    background: rgba(230, 126, 34, 0.25);
    color: #f1c40f;
    border-left-color: #e67e22;
  }

  [dir="rtl"] .header-dark .nav-links .nav-link.active {
    border-right-color: var(--gold);
    border-left-color: transparent;
  }

  .header-dark .nav-menu .header-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .header-dark .nav-menu .lang-dropdown {
    display: none;
  }

  .header-dark .nav-menu .btn-cta {
    width: 100%;
    justify-content: center;
    padding: 16px 24px;
    border-radius: 16px;
    font-size: 1rem;
    background: var(--gradient-primary);
    color: #fff !important;
  }

  .nav-menu-fullscreen-header {
    display: none;
  }

  @media (max-width: 992px) {
    .nav-menu-fullscreen-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 16px 20px 12px;
      flex-shrink: 0;
      min-height: 56px;
    }
    .nav-menu-fullscreen-spacer {
      flex: 1;
    }
    .nav-menu-close {
      width: 44px;
      height: 44px;
      min-width: 44px;
      min-height: 44px;
      border: none;
      background: rgba(255, 255, 255, 0.1);
      border-radius: 50%;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      position: relative;
      flex-shrink: 0;
      transition: background 0.2s ease;
    }
    .nav-menu-close:hover {
      background: rgba(255, 255, 255, 0.18);
    }
    .nav-menu-close span {
      position: absolute;
      width: 22px;
      height: 2px;
      background: #f0f2f5;
      border-radius: 2px;
    }
    .nav-menu-close span:nth-child(1) {
      transform: rotate(45deg);
    }
    .nav-menu-close span:nth-child(2) {
      transform: rotate(-45deg);
    }
  }

  .lang-dropdown-mobile .lang-dropdown-btn {
    min-height: 44px;
    padding: 10px 14px;
    border-radius: 12px;
    transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  }

  .nav-overlay {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    -webkit-tap-highlight-color: transparent;
  }

  .nav-overlay.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }
}

@media (max-width: 768px) {
  .header-dark {
    padding: 10px 12px;
  }

  .header-dark .header-inner {
    padding: 10px 44px 10px 12px; /* ปุ่มเมนู (ไอคอน) ชิดขวา */
    border-radius: 24px;
  }

  .header .nav-mobile-actions,
  .header .menu-toggle {
    display: flex !important;
  }

  .header .menu-toggle {
    right: -4px;
  }

  /* เมนูมือถือแบบ slide (header-dark) ใช้ .nav-menu.active ไม่ใช้ .nav-links – อย่าให้กฎด้านล่างไปทับ */
  .header-dark .nav-menu .nav-links,
  .header-dark .nav-links {
    position: static !important;
    transform: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    background: transparent !important;
  }

  .nav-links {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 24px;
    gap: 16px;
    box-shadow: var(--shadow-lg);
    transform: translateY(-150%);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
  }

  .nav-links.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .hero {
    padding-top: 116px;
    padding-bottom: 48px;
  }

  .hero .container {
    padding-top: 8px;
  }

  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-text .section-badge {
    margin-top: 0;
    display: inline-block;
  }

  .hero-text p {
    margin-inline: auto;
  }

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

  /* มือถือ: แสดงสไลด์พื้นหลัง P2/P8/P9/P4 และซ่อนสไลด์ R1-R4 */
  .hero-bg-slider {
    display: block;
    pointer-events: none;
  }
  .hero-bg-slider .hero-bg-slider-btn {
    display: none !important;
  }
  .hero-bg-slider::after {
    background: linear-gradient(135deg, rgba(26, 26, 46, 0.82) 0%, rgba(22, 33, 62, 0.88) 50%, rgba(15, 52, 96, 0.92) 100%);
  }
  .hero .hero-bg {
    opacity: 0;
  }
  .hero-slider,
  .hero-image {
    display: none !important;
  }

  .hero-slider-btn {
    width: 44px;
    height: 44px;
  }

  .hero-slide img {
    height: 320px;
  }

  .section {
    padding: 60px 0;
  }

  .category-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .category-grid {
    grid-template-columns: 1fr;
  }

  .hero-buttons {
    flex-direction: column;
  }

  .hero-buttons .btn {
    width: 100%;
    justify-content: center;
  }

  .footer-brand .logo-img-footer {
    height: 72px;
  }
}

/* Smooth animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-on-scroll {
  animation: fadeInUp 0.6s ease-out forwards;
}

/* ============================================
   Scroll Reveal - สไลด์เข้ามาเมื่อเลื่อนดู
   ============================================ */
.scroll-reveal {
  opacity: 0;
  transform: translateY(56px);
  transition: opacity 2.7s cubic-bezier(0.22, 1, 0.36, 1),
              transform 2.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.scroll-reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ลูกเล่น: สไลด์จากซ้าย/ขวา (ใช้กับ section-header ได้) */
.scroll-reveal--left {
  transform: translateX(-48px) translateY(0);
}
.scroll-reveal--left.revealed {
  transform: translateX(0) translateY(0);
}

.scroll-reveal--right {
  transform: translateX(48px) translateY(0);
}
.scroll-reveal--right.revealed {
  transform: translateX(0) translateY(0);
}

/* Stagger: รายการในกริดสไลด์เข้ามาทีละอัน */
.scroll-reveal-stagger > * {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 2.5s cubic-bezier(0.22, 1, 0.36, 1),
              transform 2.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.scroll-reveal-stagger.revealed > *:nth-child(1) { transition-delay: 0.2s; opacity: 1; transform: translateY(0); }
.scroll-reveal-stagger.revealed > *:nth-child(2) { transition-delay: 0.4s; opacity: 1; transform: translateY(0); }
.scroll-reveal-stagger.revealed > *:nth-child(3) { transition-delay: 0.6s; opacity: 1; transform: translateY(0); }
.scroll-reveal-stagger.revealed > *:nth-child(4) { transition-delay: 0.8s; opacity: 1; transform: translateY(0); }
.scroll-reveal-stagger.revealed > *:nth-child(5) { transition-delay: 1s; opacity: 1; transform: translateY(0); }
.scroll-reveal-stagger.revealed > *:nth-child(6) { transition-delay: 1.2s; opacity: 1; transform: translateY(0); }
.scroll-reveal-stagger.revealed > *:nth-child(7) { transition-delay: 1.4s; opacity: 1; transform: translateY(0); }
.scroll-reveal-stagger.revealed > *:nth-child(8) { transition-delay: 1.6s; opacity: 1; transform: translateY(0); }
.scroll-reveal-stagger.revealed > *:nth-child(9) { transition-delay: 1.8s; opacity: 1; transform: translateY(0); }
.scroll-reveal-stagger.revealed > *:nth-child(10) { transition-delay: 2s; opacity: 1; transform: translateY(0); }
.scroll-reveal-stagger.revealed > *:nth-child(n+11) { transition-delay: 2.2s; opacity: 1; transform: translateY(0); }

/* ============================================
   Floating Action Button (FAB) - มุมขวาล่าง
   ============================================ */
@keyframes fab-ripple {
  0% {
    transform: scale(0.8);
    opacity: 0.6;
    border-width: 2px;
  }
  100% {
    transform: scale(1.6);
    opacity: 0;
    border-width: 1px;
  }
}

.fab-container {
  position: fixed;
  bottom: 20px;
  right: 12px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.fab-menu {
  display: flex;
  flex-direction: column-reverse;
  align-items: center;
  gap: 12px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px) scale(0.9);
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
}

.fab-container.is-open .fab-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.fab-menu .fab-item {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  min-width: 48px;
  min-height: 48px;
  background: var(--white);
  color: var(--navy);
  border-radius: 50%;
  box-shadow: var(--shadow-lg);
  transition: var(--transition);
}

.fab-menu .fab-item:hover {
  transform: scale(1.1);
  background: var(--off-white);
  color: var(--orange-dark);
}

.fab-menu .fab-item svg {
  width: 24px;
  height: 24px;
}

.fab-toggle {
  position: relative;
  width: 56px;
  height: 56px;
  min-width: 56px;
  min-height: 56px;
  border: none;
  border-radius: 50%;
  background: var(--gradient-primary);
  color: var(--white);
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(230, 126, 34, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  overflow: visible;
}

.fab-toggle::before,
.fab-toggle::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 100%;
  height: 100%;
  margin: -50% 0 0 -50%;
  border-radius: 50%;
  border: 2px solid rgba(243, 156, 18, 0.6);
  pointer-events: none;
  animation: fab-ripple 2s ease-out infinite;
}

.fab-toggle::after {
  animation-delay: 1s;
}

.fab-toggle:hover {
  background: var(--gradient-hover);
  transform: scale(1.05);
  box-shadow: 0 6px 24px rgba(230, 126, 34, 0.5);
}

.fab-toggle .fab-toggle-icon {
  width: 26px;
  height: 26px;
  position: absolute;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.fab-toggle .fab-icon-share {
  opacity: 1;
  transform: rotate(0deg);
}

.fab-toggle .fab-icon-close {
  opacity: 0;
  transform: rotate(-90deg);
}

.fab-container.is-open .fab-toggle .fab-icon-share {
  opacity: 0;
  transform: rotate(90deg);
}

.fab-container.is-open .fab-toggle .fab-icon-close {
  opacity: 1;
  transform: rotate(0deg);
}

/* ========== Policy Pages ========== */
.policy-page {
  padding: 120px 0 80px;
  background-color: var(--gray-100);
}

.policy-header {
  text-align: center;
  margin-bottom: 40px;
}

.policy-header h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--navy);
  margin-top: 16px;
  margin-bottom: 16px;
  font-weight: 800;
}

.policy-header p {
  color: var(--gray-600);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
}

.policy-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 40px;
  margin-bottom: 40px;
  position: relative;
  overflow: hidden;
}

@media (max-width: 768px) {
  .policy-card {
    padding: 24px;
  }
}

.policy-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: var(--gradient-primary);
}

.policy-section {
  margin-bottom: 32px;
}

.policy-section:last-child {
  margin-bottom: 0;
}

.policy-section h2 {
  font-size: 1.5rem;
  color: var(--navy);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--gray-200);
  display: flex;
  align-items: center;
  gap: 12px;
}

.policy-section h2::before {
  content: '';
  display: block;
  width: 4px;
  height: 24px;
  background: var(--orange);
  border-radius: 4px;
}

.policy-section h3 {
  font-size: 1.25rem;
  color: var(--gray-800);
  margin-top: 24px;
  margin-bottom: 12px;
}

.policy-section p {
  color: var(--gray-600);
  margin-bottom: 16px;
  line-height: 1.7;
}

.policy-section ul {
  list-style: none;
  padding-left: 20px;
  margin-bottom: 16px;
}

[dir="rtl"] .policy-section ul {
  padding-left: 0;
  padding-right: 20px;
}

.policy-section ul li {
  position: relative;
  color: var(--gray-600);
  margin-bottom: 8px;
  line-height: 1.6;
}

.policy-section ul li::before {
  content: "•";
  color: var(--orange);
  font-weight: bold;
  font-size: 1.5em;
  position: absolute;
  left: -20px;
  top: -4px;
}

[dir="rtl"] .policy-section ul li::before {
  left: auto;
  right: -20px;
}
