/* ============================================
   TNB Logistics Website - Styles
   ============================================ */

/* CSS Variables - Design System */
:root {
  /* Colors */
  --color-primary: #033268;
  --color-primary-dark: #02185f;
  --color-primary-light: #5098ef;
  --color-navy: #1a1a2e;
  --color-navy-light: #2d2d44;
  --color-white: #ffffff;
  --color-light: #f8f9fa;
  --color-gray: #333333;
  --color-gray-light: #6b7280;
  --color-border: #e5e7eb;

  /* Typography */
  --font-family: "Sarabun", -apple-system, BlinkMacSystemFont, sans-serif;

  /* Spacing */
  --section-padding: 100px 0;
  --section-padding-mobile: 60px 0;
  --container-max: 1280px;
  --container-padding: 0 24px;

  /* Animations */
  --transition-fast: 0.2s ease;
  --transition-medium: 0.3s ease;
  --transition-slow: 0.5s ease;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.15);
  --shadow-xl: 0 20px 50px rgba(0, 0, 0, 0.2);

  /* Border Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 30px;
}

/* Reset & Base */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: var(--font-family);
  color: var(--color-gray);
  background-color: var(--color-white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition-fast);
}

ul,
ol {
  list-style: none;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-navy);
}

h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
}

h2 {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
}

h3 {
  font-size: clamp(1.25rem, 3vw, 1.5rem);
}

p {
  margin-bottom: 1rem;
}

/* Container */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: var(--container-padding);
}

/* Section Base */
.section {
  padding: var(--section-padding);
}

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

.section-title {
  margin-bottom: 20px;
  position: relative;
}

.section-subtitle {
  color: var(--color-gray-light);
  font-size: 1.125rem;
  max-width: 700px;
  margin: 0 auto;
}

/* ============================================
   Header / Navigation
   ============================================ */
.header {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  background: rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transition: var(--transition-medium);
  border-radius: 50px;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.3);
  width: auto;
  max-width: 95%;
}

.header.scrolled {
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.15);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
  padding: 12px 50px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--color-navy);
  margin-right: 0px;
  flex-shrink: 0;
}

.logo img {
  height: 40px;
  width: auto;
}

.logo-text {
  font-weight: 800;
  letter-spacing: -0.5px;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 25px;
}

.nav-link {
  font-weight: 500;
  color: var(--color-gray);
  position: relative;
  padding: 8px 0;
  white-space: nowrap;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-primary);
  transition: var(--transition-fast);
}

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

.nav-link:hover {
  color: var(--color-primary);
}

/* Dropdown Menu Styles */
.nav-dropdown {
  position: relative;
}

.dropdown-toggle {
  display: flex;
  align-items: center;
  gap: 5px;
}

.dropdown-arrow {
  font-size: 0.6rem;
  transition: var(--transition-fast);
}

.nav-dropdown:hover .dropdown-arrow {
  transform: rotate(180deg);
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: var(--radius-md);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  min-width: 220px;
  padding: 12px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateX(-50%) translateY(10px);
  transition: var(--transition-fast);
  border: 1px solid rgba(255, 255, 255, 0.3);
  margin-top: 10px;
  z-index: 1000;
}

.dropdown-menu::before {
  content: "";
  position: absolute;
  top: -10px;
  left: 0;
  right: 0;
  height: 10px;
}

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

.dropdown-menu li {
  list-style: none;
}

.dropdown-link {
  display: block;
  padding: 12px 20px;
  color: var(--color-gray);
  font-weight: 500;
  font-size: 0.9375rem;
  transition: var(--transition-fast);
  white-space: nowrap;
}

.dropdown-link:hover {
  background: var(--color-light);
  color: var(--color-primary);
  padding-left: 25px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.85rem;
  transition: var(--transition-fast);
  cursor: pointer;
  border: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--color-primary);
  color: var(--color-white);
}

.btn-primary:hover {
  background: var(--color-primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--color-primary);
  color: var(--color-primary);
}

.btn-outline:hover {
  background: var(--color-primary);
  color: var(--color-white);
}

/* Mobile Menu */
.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
}

.mobile-menu-btn span {
  display: block;
  width: 25px;
  height: 3px;
  background: var(--color-navy);
  border-radius: 2px;
  transition: var(--transition-fast);
}

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

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

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

/* ============================================
   Hero Section - New Design with Overlapping Frames
   ============================================ */
.hero-new {
  padding-top: 80px;
  padding-bottom: 0;
  background: var(--color-white);
  overflow: visible;
}

.hero-new-container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 40px 24px 0;
}

.hero-frame-wrapper {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  padding: 30px;
}


/* Glass Rounded Frame - Background layer */
.hero-glass-frame {
  position: absolute;
  top: 150px;
  left: -190px;
  width: 1280px;
  height: calc(70% - 40px);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  background: rgba(77, 77, 77, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.1);
  border-radius: 30px;
  z-index: 1;
}

/* Dark iPad-like Frame - Contains the image */
.hero-dark-frame {
  position: relative;
  z-index: 2;
  background: #1a1a2e;
  border-radius: 20px;
  padding: 15px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.3);
  margin: 0 auto;
}

.hero-main-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
}

/* Old Hero styles kept for backwards compatibility */
.hero {
  padding-top: 100px;
  background: linear-gradient(135deg,
      var(--color-primary) 0%,
      var(--color-primary-dark) 100%);
  color: var(--color-white);
  position: relative;
  overflow: hidden;
}

.hero-container {
  padding: 60px 24px 80px;
  max-width: var(--container-max);
  margin: 0 auto;
}

.hero-content {
  margin-bottom: 50px;
}

.hero-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  color: var(--color-white);
  margin-bottom: 20px;
  font-weight: 700;
}

.hero-description {
  font-size: 1rem;
  opacity: 0.95;
  max-width: 650px;
  line-height: 1.7;
  margin-bottom: 30px;
}

/* Stats Cards */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  margin-bottom: 40px;
}

.stat-card {
  display: flex;
  align-items: flex-start;
  gap: 20px;
}

.stat-icon {
  width: 50px;
  height: 50px;
  background: var(--color-white);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.stat-icon svg {
  width: 28px;
  height: 28px;
  stroke: var(--color-primary);
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 5px;
}

.stat-label {
  font-size: 0.875rem;
  opacity: 0.9;
}

.stat-title {
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 8px;
  color: var(--color-white);
}

.stat-desc {
  font-size: 0.9rem;
  opacity: 0.9;
  line-height: 1.5;
}

/* Hero Images */
.hero-images {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.hero-image-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  transition: var(--transition-medium);
}

.hero-image-card:hover {
  transform: scale(1.02);
}

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

.hero-image-card.large {
  grid-column: span 2;
}

.hero-image-card.large img {
  height: 300px;
}

/* Hero New Responsive */

/* iPad Pro 12.9" and large tablets */
@media (max-width: 1366px) {
  .hero-glass-frame {
    width: calc(100% + 100px);
    left: -50px;
  }
}

/* iPad Pro 11" / iPad Air */
@media (max-width: 1180px) {
  .hero-glass-frame {
    top: 120px;
    left: -30px;
    width: calc(100% + 60px);
    height: calc(65% - 30px);
  }

  .hero-dark-frame {
    margin-left: 30px;
  }
}

/* iPad Air / iPad Mini landscape */
@media (max-width: 1024px) {
  .hero-glass-frame {
    top: 100px;
    left: -20px;
    width: calc(100% + 40px);
    height: calc(60% - 20px);
  }

  .hero-dark-frame {
    margin-left: 20px;
    padding: 12px;
  }
}

/* iPad Mini portrait and smaller tablets */
@media (max-width: 834px) {
  .hero-glass-frame {
    top: 90px;
    left: -15px;
    width: calc(100% + 30px);
    height: calc(55% - 15px);
    border-radius: 25px;
  }

  .hero-dark-frame {
    margin-left: 15px;
    padding: 10px;
    border-radius: 16px;
  }
}

/* Mobile devices */
@media (max-width: 768px) {
  .hero-new {
    padding-top: 70px;
  }

  .hero-glass-frame {
    top: 80px;
    left: -10px;
    width: calc(100% + 20px);
    height: calc(50% - 10px);
    border-radius: 20px;
  }

  .hero-main-image {
    border-radius: 8px;
  }

  .hero-dark-frame {
    margin-left: 10px;
    padding: 8px;
    border-radius: 14px;
  }
}

/* ============================================
   Services Section
   ============================================ */
.services {
  background: var(--color-white);
  padding-top: 0;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.service-card {
  padding: 40px;
  border-radius: var(--radius-lg);
  background: #f0f0f0;
  border: 0;
  color: #242424;
  font-weight: 600;
  text-shadow: 0 0.0625em 0 #fff;
  box-shadow:
    inset 0 0.0625em 0 0 #f4f4f4,
    0 0.0625em 0 0 #efefef,
    0 0.125em 0 0 #ececec,
    0 0.25em 0 0 #e0e0e0,
    0 0.3125em 0 0 #dedede,
    0 0.375em 0 0 #dcdcdc,
    0 0.425em 0 0 #cacaca,
    0 0.425em 0.5em 0 #cecece;
  transition: translate 0.15s ease, box-shadow 0.15s ease;
  cursor: pointer;
}

.service-card:hover {
  translate: 0 0.425em;
  box-shadow:
    inset 0 0.03em 0 0 #f4f4f4,
    0 0.03em 0 0 #efefef,
    0 0.0625em 0 0 #ececec,
    0 0.125em 0 0 #e0e0e0,
    0 0.125em 0 0 #dedede,
    0 0.2em 0 0 #dcdcdc,
    0 0.225em 0 0 #cacaca,
    0 0.225em 0.375em 0 #cecece;
}

.service-card:active {
  translate: 0 0.225em;
  box-shadow:
    inset 0 0.03em 0 0 #f4f4f4,
    0 0.03em 0 0 #efefef,
    0 0.0625em 0 0 #ececec,
    0 0.125em 0 0 #e0e0e0,
    0 0.125em 0 0 #dedede,
    0 0.2em 0 0 #dcdcdc,
    0 0.225em 0 0 #cacaca,
    0 0.225em 0.375em 0 #cecece;
}

.service-icon {
  width: 60px;
  height: 60px;
  background: var(--color-white);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
}

.service-icon svg {
  width: 32px;
  height: 32px;
  stroke: var(--color-primary);
}

.service-title {
  margin-bottom: 16px;
  font-size: 1.25rem;
}

.service-desc {
  color: var(--color-gray-light);
  line-height: 1.7;
}

/* Tablet */
@media (max-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Mobile */
@media (max-width: 768px) {
  .services-grid {
    grid-template-columns: 1fr;
  }
}


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

.service-card-link {
  display: block;
  height: 100%;
}

.service-card {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}


.service-icon {
  width: 60px;
  height: 60px;
  background: var(--color-white);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
}


/* ============================================
   About Section
   ============================================ */
.about {
  background: var(--color-light);
}

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

.about-content {
  max-width: 900px;
}

.about-title {
  font-size: clamp(2.5rem, 6vw, 4rem);
  margin-bottom: 30px;
}

.about-text {
  font-size: 1.125rem;
  line-height: 1.8;
  color: var(--color-gray);
}

.about-model {
  display: flex;
  justify-content: center;
  align-items: center;
}

.about-model model-viewer {
  border-radius: var(--radius-lg);
  background: transparent;
}

@media (max-width: 992px) {
  .about-wrapper {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .about-model {
    order: -1;
  }
}

/* ============================================
   Stats with Customers Section
   ============================================ */
.stats-section {
  background: var(--color-white);
  position: relative;
}

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

.stats-info {
  padding-right: 40px;
}

.stats-intro {
  margin-bottom: 30px;
}

.stats-intro-title {
  font-size: 1.5rem;
  color: var(--color-primary);
  margin-bottom: 15px;
}

.stats-boxes {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  margin-bottom: 40px;
}

.stats-box {
  background: var(--color-light);
  padding: 30px;
  border-radius: var(--radius-md);
  text-align: center;
}

.stats-box-icon {
  width: 50px;
  height: 50px;
  background: var(--color-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 15px;
}

.stats-box-icon svg {
  width: 24px;
  height: 24px;
  stroke: var(--color-white);
}

.stats-box-number {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--color-primary);
  line-height: 1;
}

.stats-box-label {
  font-size: 0.875rem;
  color: var(--color-gray-light);
  margin-top: 8px;
}

.stats-box-title {
  font-weight: 700;
  margin-top: 15px;
  font-size: 1rem;
}

.stats-box-desc {
  font-size: 0.875rem;
  color: var(--color-gray-light);
  margin-top: 8px;
  line-height: 1.5;
}

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

.stats-image {
  border-radius: var(--radius-md);
  overflow: hidden;
}

.stats-image img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: var(--transition-medium);
}

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

.stats-image.large {
  grid-column: span 2;
}

/* ============================================
   Packaging Development Specifics
   ============================================ */
.packaging-intro-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  align-items: center;
}

.packaging-intro-grid.model-left {
  grid-template-columns: 0.8fr 1.2fr;
}

@media (max-width: 768px) {
  .packaging-intro-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

.stats-image.large img {
  height: 250px;
}

/* ============================================
   Expertise Section (Our Expertise)
   ============================================ */
.expertise-section {
  background: var(--color-white);
  position: relative;
}

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

.expertise-info {
  padding-right: 20px;
}

.expertise-title {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 800;
  color: var(--color-navy);
  margin-bottom: 30px;
  line-height: 1.2;
}

.expertise-subtitle {
  font-size: 1.25rem;
  color: var(--color-navy);
  font-weight: 600;
  margin-bottom: 20px;
  line-height: 1.6;
}

.exp.service-desc {
  font-size: 0.9375rem;
  color: var(--color-gray-light);
  line-height: 1.7;
}

.service-card-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.service-card-link .service-card {
  cursor: pointer;
}

/* ============================================
   Service Detail Page
   ============================================ */
.service-detail-hero {
  padding: 150px 0 60px;
  background: linear-gradient(135deg,
      var(--color-navy) 0%,
      var(--color-navy-light) 100%);
  color: var(--color-white);
}

.service-detail-header {
  text-align: center;
}

.service-detail-icon {
  width: 80px;
  height: 80px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 30px;
}

.service-detail-icon svg {
  width: 40px;
  height: 40px;
  stroke: var(--color-white);
}

.service-detail-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 800;
  margin-bottom: 15px;
}

.service-detail-subtitle {
  font-size: 1.25rem;
  opacity: 0.9;
}

.service-detail-content {
  background: var(--color-white);
}

.service-detail-intro {
  max-width: 900px;
  margin: 0 auto 60px;
  text-align: center;
}

.lead-text {
  font-size: 1.25rem;
  line-height: 1.8;
  color: var(--color-gray);
}

.capabilities-section {
  margin-bottom: 60px;
}

.section-title-center {
  text-align: center;
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-gray);
  margin-bottom: 10px;
}

.section-subtitle-center {
  text-align: center;
  font-size: 1rem;
  color: var(--color-gray-light);
  margin-bottom: 20px;
}

.capabilities-intro {
  text-align: center;
  font-size: 1.1rem;
  color: var(--color-gray);
  margin-bottom: 40px;
}

.capabilities-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.capability-card {
  background: var(--color-light);
  padding: 40px;
  border-radius: var(--radius-lg);
  text-align: center;
  transition: var(--transition-medium);
}

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

.capability-icon {
  width: 70px;
  height: 70px;
  background: var(--color-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 25px;
}

.capability-icon svg {
  width: 32px;
  height: 32px;
  stroke: var(--color-white);
}

.capability-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-navy);
  margin-bottom: 15px;
}

.capability-card p {
  font-size: 0.95rem;
  color: var(--color-gray);
  line-height: 1.7;
}

.back-link {
  text-align: center;
  margin-top: 40px;
}

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

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

  .service-detail-title {
    font-size: 2rem;
  }
}

.expertise-desc {
  font-size: 1rem;
  color: var(--color-gray);
  line-height: 1.8;
  margin-bottom: 40px;
}

.expertise-services-list {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.expertise-service-item {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.expertise-service-number {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--color-gray-light);
  min-width: 30px;
}

.expertise-service-content h3 {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--color-navy);
  margin-bottom: 8px;
}

.expertise-service-content p {
  font-size: 0.95rem;
  color: var(--color-gray);
  line-height: 1.6;
  margin: 0;
}

.expertise-images {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.expertise-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.expertise-image img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  transition: var(--transition-medium);
}

.expertise-image.large {
  height: 100%;
}

.expertise-image.large img {
  height: 100%;
  min-height: 600px;
  object-fit: cover;
}

.expertise-image:hover img {
  transform: scale(1.02);
}

/* Expertise Section Responsive */
@media (max-width: 992px) {
  .expertise-content {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .expertise-info {
    padding-right: 0;
  }

  .expertise-title {
    font-size: 2.5rem;
  }

  .expertise-image.large img {
    min-height: 350px;
  }

  /* Reverse order for specific sections on mobile */
  .expertise-content.mobile-reverse .expertise-info {
    order: 1;
  }

  .expertise-content.mobile-reverse .expertise-images {
    order: 2;
  }
}

@media (max-width: 768px) {
  .expertise-title {
    font-size: 2rem;
  }

  .expertise-subtitle {
    font-size: 1.1rem;
  }

  .expertise-services-list {
    gap: 25px;
  }

  .expertise-image.large img {
    min-height: 280px;
  }
}

/* Customer Logos */
.customers-section {
  padding: 60px 0;
  background: var(--color-white);
}

.customers-section .customers {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.customers {
  margin-top: 60px;
  padding-top: 60px;
  border-top: 1px solid var(--color-border);
}

.customers-title {
  text-align: center;
  font-size: 1rem;
  color: var(--color-gray-light);
  margin-bottom: 30px;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.customers-logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 40px;
}

/* Infinite Logo Slider */
.logo-slider {
  overflow: hidden;
  position: relative;
  width: 100%;
}

.logo-slider::before,
.logo-slider::after {
  content: "";
  position: absolute;
  top: 0;
  width: 100px;
  height: 100%;
  z-index: 2;
}

.logo-slider::before {
  left: 0;
  background: linear-gradient(to right, var(--color-white), transparent);
}

.logo-slider::after {
  right: 0;
  background: linear-gradient(to left, var(--color-white), transparent);
}

.logo-slider-track {
  display: flex;
  align-items: center;
  gap: 60px;
  animation: scroll-logos 30s linear infinite;
  width: max-content;
}

.logo-slider-track:hover {
  animation-play-state: paused;
}

@keyframes scroll-logos {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

.customer-logo {
  height: 40px;
  width: auto;
  opacity: 0.7;
  transition: var(--transition-fast);
  filter: grayscale(100%);
  flex-shrink: 0;
}

.customer-logo:hover {
  opacity: 1;
  filter: grayscale(0%);
}

/* Logo size modifiers */
.customer-logo.logo-sm {
  height: 28px;
}

.customer-logo.logo-lg {
  height: 55px;
}

/* ============================================
   Branches Section
   ============================================ */
.branches {
  background: var(--color-light);
}

.branches-intro {
  text-align: center;
  margin-bottom: 60px;
}

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

.branches-map {
  position: relative;
}

.branches-map img {
  width: 100%;
  max-width: 450px;
  height: 100%;
  min-height: 600px;
  object-fit: cover;
  margin: 0 auto;
  display: block;
  border-radius: 20px;
}

.branches-list {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.branch-card {
  background: var(--color-white);
  padding: 30px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  transition: var(--transition-medium);
  border-left: 4px solid var(--color-primary);
}

.branch-card:hover {
  transform: translateX(10px);
  box-shadow: var(--shadow-lg);
}

.branch-number {
  font-size: 0.875rem;
  color: var(--color-primary);
  font-weight: 700;
  margin-bottom: 10px;
}

.branch-name {
  font-size: 1.25rem;
  margin-bottom: 15px;
}

.branch-desc {
  color: var(--color-gray-light);
  line-height: 1.6;
}

.branch-icon {
  width: 50px;
  height: 50px;
  min-width: 50px;
  background: var(--color-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 15px;
}

.branch-icon svg {
  stroke: var(--color-white);
}

.branch-card:has(.branch-icon) {
  display: flex;
  flex-direction: column;
}

.section-desc {
  font-size: 1.1rem;
  color: var(--color-gray);
  line-height: 1.8;
  margin-top: 20px;
}

/* ============================================
   Timeline Section
   ============================================ */
.timeline-section {
  margin-top: 80px;
  padding-top: 60px;
  border-top: 1px solid var(--color-border);
}

.timeline-title {
  text-align: center;
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--color-navy);
  margin-bottom: 10px;
}

.timeline-subtitle {
  text-align: center;
  font-size: 1rem;
  color: var(--color-gray-light);
  margin-bottom: 50px;
}

.timeline {
  display: flex;
  justify-content: space-between;
  position: relative;
  padding: 0 20px;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 25px;
  left: 10%;
  right: 10%;
  height: 3px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-border));
  z-index: 0;
}

.timeline-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  flex: 1;
  position: relative;
  z-index: 1;
}

.timeline-number {
  width: 50px;
  height: 50px;
  background: var(--color-primary);
  color: var(--color-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 20px;
  box-shadow: 0 4px 15px rgba(220, 53, 69, 0.3);
  transition: var(--transition-medium);
}

.timeline-item:hover .timeline-number {
  transform: scale(1.1);
  box-shadow: 0 6px 25px rgba(220, 53, 69, 0.4);
}

.timeline-content {
  background: var(--color-white);
  padding: 20px 15px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  max-width: 180px;
  transition: var(--transition-medium);
}

.timeline-item:hover .timeline-content {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.timeline-content h4 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-navy);
  margin-bottom: 8px;
}

.timeline-content p {
  font-size: 0.875rem;
  color: var(--color-gray);
  line-height: 1.5;
  margin: 0;
}

@media (max-width: 992px) {
  .timeline {
    flex-direction: column;
    gap: 30px;
    padding: 0;
  }

  .timeline::before {
    top: 0;
    bottom: 0;
    left: 25px;
    right: auto;
    width: 3px;
    height: auto;
  }

  .timeline-item {
    flex-direction: row;
    text-align: left;
    gap: 20px;
  }

  .timeline-number {
    margin-bottom: 0;
    min-width: 50px;
  }

  .timeline-content {
    max-width: 100%;
    flex: 1;
  }
}

/* ============================================
   Core Services List
   ============================================ */
.core-services {
  background: var(--color-white);
}

.core-services-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

.core-service-item {
  display: flex;
  gap: 20px;
  padding: 30px;
  background: var(--color-light);
  border-radius: var(--radius-md);
  transition: var(--transition-medium);
}

.core-service-item:hover {
  background: var(--color-white);
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}

.core-service-number {
  font-size: 2rem;
  font-weight: 800;
  color: var(--color-primary);
  line-height: 1;
}

.core-service-content h3 {
  margin-bottom: 10px;
  font-size: 1.1rem;
}

.core-service-content p {
  color: var(--color-gray-light);
  font-size: 0.9rem;
  line-height: 1.6;
  margin: 0;
}

/* ============================================
   Products Section
   ============================================ */
.products {
  background: var(--color-light);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.products-carousel {
  position: relative;
  max-width: 600px;
  margin: 0 auto;
  overflow: hidden;
  border-radius: var(--radius-lg);
}

.products-carousel-track {
  position: relative;
  width: 100%;
  min-height: 380px;
}

.products-carousel-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
}

.products-carousel-slide.active {
  position: relative;
  opacity: 1;
  pointer-events: auto;
}

.products-carousel .product-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.products-carousel .product-image {
  height: 300px;
  overflow: hidden;
  background: #f8f8f8;
  display: flex;
  align-items: center;
  justify-content: center;
}

.products-carousel .product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-medium);
}

.products-carousel .product-card:hover .product-image img {
  transform: scale(1.05);
}

.products-carousel .product-info {
  padding: 20px;
  text-align: center;
}

.products-carousel .product-name {
  font-size: 1.1rem;
  font-weight: 600;
}

/* Carousel Arrows */
.products-carousel-prev,
.products-carousel-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  border: none;
  cursor: pointer;
  font-size: 1.2rem;
  color: var(--color-navy);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  transition: var(--transition-fast);
  z-index: 10;
}

.products-carousel-prev {
  left: 12px;
}

.products-carousel-next {
  right: 12px;
}

.products-carousel-prev:hover,
.products-carousel-next:hover {
  background: var(--color-primary);
  color: var(--color-white);
  transform: translateY(-50%) scale(1.1);
}

/* Carousel Dots */
.products-carousel-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 20px;
  padding-bottom: 5px;
}

.products-carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--color-border);
  cursor: pointer;
  transition: var(--transition-fast);
}

.products-carousel-dot.active {
  background: var(--color-primary);
  transform: scale(1.2);
}

/* "ดูเพิ่มเติม" Button */
.products-more-btn {
  display: flex;
  justify-content: center;
  margin-top: 40px;
}

.products-more-btn a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 36px;
  background: var(--color-primary);
  color: var(--color-white);
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  transition: var(--transition-medium);
  box-shadow: 0 4px 15px rgba(23, 23, 23, 0.3);
}

.products-more-btn a:hover {
  background: var(--color-primary-dark);
  transform: translateY(-3px);
  box-shadow: 0 6px 25px rgba(23, 23, 23, 0.4);
}

/* Product card fallback (for other pages) */
.product-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-medium);
}

.product-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-xl);
}

.product-image {
  height: 280px;
  overflow: hidden;
  background: #f8f8f8;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-medium);
}

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

.product-info {
  padding: 20px;
  text-align: center;
}

.product-name {
  font-size: 1rem;
  font-weight: 600;
}

/* ============================================
   Contact Section
   ============================================ */
.contact {
  background: var(--color-white);
}

.contact-content {
  text-align: center;
  margin-bottom: 50px;
}

.contact-title {
  font-size: clamp(2rem, 5vw, 3rem);
  margin-bottom: 20px;
}

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

.contact-info {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 40px;
  margin-bottom: 50px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 15px;
}

.contact-icon {
  width: 50px;
  height: 50px;
  min-width: 50px;
  flex-shrink: 0;
  background: var(--color-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-icon svg {
  width: 24px;
  height: 24px;
  stroke: var(--color-white);
}

.contact-text {
  text-align: left;
}

.contact-label {
  font-size: 0.875rem;
  color: var(--color-gray-light);
}

.contact-value {
  font-weight: 600;
}

.map-container {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.map-container iframe {
  width: 100%;
  height: 400px;
  display: block;
  border: none;
}

/* ============================================
   Footer
   ============================================ */
.footer {
  background: var(--color-white);
  border-top: 1px solid var(--color-border);
  padding: 40px 0;
}

.footer-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-nav {
  display: flex;
  gap: 30px;
}

.footer-link {
  color: var(--color-gray);
  font-weight: 500;
}

.footer-link:hover {
  color: var(--color-primary);
}

.footer-copyright {
  color: var(--color-gray-light);
  font-size: 0.875rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--color-primary);
  font-weight: 600;
}

/* ============================================
   Animations
   ============================================ */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.fade-in-up {
  animation: fadeInUp 0.6s ease forwards;
}

.fade-in {
  animation: fadeIn 0.6s ease forwards;
}

/* Scroll Animations */
.animate-on-scroll {
  opacity: 0.1;
  transform: translateY(40px);
  transition: all 0.6s ease;
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   Responsive Design
   ============================================ */
@media (max-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stats-content,
  .branches-content {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .stats-info {
    padding-right: 0;
  }

  .branches-map {
    order: -1;
  }

  .core-services-list {
    grid-template-columns: 1fr;
  }

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

/* iPad Air - Hamburger Menu */
@media (max-width: 1180px) {
  .header {
    top: 10px;
    left: 10px;
    right: 10px;
    transform: none;
    border-radius: 25px;
    max-width: calc(100% - 20px);
  }

  .nav {
    justify-content: space-between;
    padding: 10px 20px;
    gap: 15px;
  }

  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 350px;
    height: 100vh;
    background: var(--color-white);
    flex-direction: column;
    align-items: flex-start;
    padding: 80px 30px 30px;
    box-shadow: var(--shadow-xl);
    transition: var(--transition-medium);
    gap: 20px;
    border-radius: 0;
  }

  .nav-menu.active {
    right: 0;
  }

  .mobile-menu-btn {
    display: flex;
  }
}

@media (max-width: 768px) {
  :root {
    --section-padding: 60px 0;
  }

  /* Header Mobile - already handled by 1180px */
  .header {
    top: 10px;
    left: 10px;
    right: 10px;
    transform: none;
    border-radius: 25px;
    max-width: calc(100% - 20px);
  }

  .nav {
    justify-content: space-between;
    padding: 10px 20px;
    gap: 15px;
  }

  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 350px;
    height: 100vh;
    background: var(--color-white);
    flex-direction: column;
    align-items: flex-start;
    padding: 80px 30px 30px;
    box-shadow: var(--shadow-xl);
    transition: var(--transition-medium);
    gap: 20px;
    border-radius: 0;
  }

  .nav-menu.active {
    right: 0;
  }

  .mobile-menu-btn {
    display: flex;
  }

  /* Hero Mobile */
  .hero-container {
    padding: 40px 24px 60px;
  }

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

  .hero-images {
    grid-template-columns: 1fr;
  }

  .hero-image-card.large {
    grid-column: span 1;
  }

  .hero-image-card img,
  .hero-image-card.large img {
    height: 200px;
  }

  /* Services Mobile */
  .services-grid {
    grid-template-columns: 1fr;
  }

  /* Stats Mobile */
  .stats-boxes {
    grid-template-columns: 1fr;
  }

  .stats-images {
    grid-template-columns: 1fr;
  }

  .stats-image.large {
    grid-column: span 1;
  }

  /* Products Mobile */
  .products-grid {
    grid-template-columns: 1fr;
  }

  /* Contact Mobile */
  .contact-info {
    flex-direction: column;
    align-items: center;
  }

  .contact-item {
    width: 100%;
    max-width: 300px;
  }

  /* Footer Mobile */
  .footer-content {
    flex-direction: column;
    text-align: center;
  }

  .footer-nav {
    flex-wrap: wrap;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 1.5rem;
  }

  .stat-number {
    font-size: 2rem;
  }

  .stats-box-number {
    font-size: 2rem;
  }

  .product-image {
    height: 220px;
  }
}

/* ============================================
   VMI System Section
   ============================================ */
.vmi-section {
  background: var(--color-light);

  background-color: #f8f9fa;
  /* Light gray */
}

.vmi-benefits-title {
  text-align: center;
  margin: 60px 0 40px;
  font-size: 1.75rem;
}

.vmi-benefits-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  max-width: 1100px;
  margin: 0 auto;
}

/* Make the last 2 items centered if there are 5 items? 
   No, standard grid flow. 3 on top, 2 on bot centered?
   We can use flexible wrapping or just specific grid placement.
   Let's use auto-fit or specific classes. 
   For 5 items: 3 top, 2 bottom centered looks best. */
.vmi-benefits-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

.vmi-card {
  flex: 0 0 calc(33.333% - 20px);
  background: var(--color-white);
  padding: 30px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  text-align: center;
  transition: var(--transition-medium);
  border-top: 4px solid var(--color-primary);
  margin-bottom: 20px;
}

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

.vmi-card-number {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--color-primary);
  margin-bottom: 10px;
  line-height: 1.2;
}

.vmi-card-title {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--color-navy);
}

.vmi-card-desc {
  font-size: 0.95rem;
  color: var(--color-gray-light);
}

@media (max-width: 900px) {
  .vmi-card {
    flex: 0 0 calc(50% - 20px);
  }
}

@media (max-width: 600px) {
  .vmi-card {
    flex: 0 0 100%;
  }
}

/* ============================================
   VMI Page Utilities
   ============================================ */
.bg-light {
  background-color: var(--color-light);
}

.section-padding {
  padding: 60px 0;
}

/* Specific grid for Core Functions (2x2 on Desktop) */
.core-functions-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  max-width: 850px;
  margin: 0 auto;
}

.core-functions-grid .vmi-card {
  margin-bottom: 0;
  padding: 25px;
}

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

/* ============================================
   Carousel Styles (VMI Benefits)
   ============================================ */
.carousel-container {
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 40px;
}

.vmi-benefits-grid {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  gap: 20px;
  padding-bottom: 20px;
  scrollbar-width: none;
  /* Firefox */
  -ms-overflow-style: none;
  /* IE/Edge */
}

.vmi-benefits-grid::-webkit-scrollbar {
  display: none;
}

.vmi-benefits-grid .vmi-card {
  min-width: 280px;
  flex: 0 0 auto;
  scroll-snap-align: center;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: #fff;
  border: 1px solid #eee;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  z-index: 10;
  font-size: 1.2rem;
  color: var(--color-primary);
  transition: all 0.3s ease;
}

.carousel-btn:hover {
  background: var(--color-primary);
  color: #fff;
}

.carousel-btn.prev {
  left: -10px;
}

.carousel-btn.next {
  right: -10px;
}

@media (max-width: 768px) {
  .carousel-container {
    padding: 0;
  }

  .carousel-btn {
    display: none;
  }
}

/* ============================================
   Warehouse Carousel Styles
   ============================================ */
.warehouse-carousel {
  width: 100%;
  max-width: 100%;
}

.warehouse-carousel .carousel-container {
  position: relative;
  width: 100%;
  max-width: 100%;
  padding: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.warehouse-carousel .carousel-slides {
  position: relative;
  width: 100%;
  height: 350px;
}

.warehouse-carousel .carousel-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.warehouse-carousel .carousel-slide.active {
  opacity: 1;
}

.warehouse-carousel .carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-lg);
}

.warehouse-carousel .carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.9);
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  z-index: 10;
  color: var(--color-primary);
  transition: var(--transition-fast);
}

.warehouse-carousel .carousel-btn:hover {
  background: var(--color-primary);
  color: #fff;
}

.warehouse-carousel .carousel-prev {
  left: 10px;
}

.warehouse-carousel .carousel-next {
  right: 10px;
}

.warehouse-carousel .carousel-dots {
  position: absolute;
  bottom: 15px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
}

.warehouse-carousel .carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: var(--transition-fast);
}

.warehouse-carousel .carousel-dot.active {
  background: var(--color-primary);
}

.warehouse-carousel .carousel-dot:hover {
  background: rgba(255, 255, 255, 0.8);
}

@media (max-width: 992px) {
  .warehouse-carousel .carousel-slides {
    height: 280px;
  }
}

@media (max-width: 768px) {
  .warehouse-carousel .carousel-slides {
    height: 220px;
  }

  .warehouse-carousel .carousel-btn {
    width: 32px;
    height: 32px;
  }
}

/* ============================================
   Slide-in-right Animation
   ============================================ */
@keyframes slideInFromRight {
  0% {
    opacity: 0;
    transform: translateX(100px);
  }

  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

.slide-in-right {
  opacity: 0;
  transform: translateX(100px);
  transition:
    opacity 0.8s ease-out,
    transform 0.8s ease-out;
}

.slide-in-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* Slide-in-left Animation */
.slide-in-left {
  opacity: 0;
  transform: translateX(-100px);
  transition:
    opacity 0.8s ease-out,
    transform 0.8s ease-out;
}

.slide-in-left.visible {
  opacity: 1;
  transform: translateX(0);
}

/* Company Page Specific Styles */
.company-text-content p {
  margin-bottom: 20px;
}

.company-text-content p:last-child {
  margin-bottom: 0;
}

/* Partners Grid */
.partners-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  justify-items: center;
  align-items: center;
  margin-top: 20px;
}

.partners-grid .customer-logo {
  width: 100%;
  max-width: 120px;
  height: auto;
  object-fit: contain;
  /* Ensure grayscale by default as per existing .customer-logo class, 
     but if we want them to look good in grid we might want to ensure spacing */
}

@media (max-width: 768px) {
  .partners-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}

.service-title {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1.4;
}


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

/* ===== BODY ===== */
/*body {
  font-family: "Inter", "Segoe UI", sans-serif;
  background: linear-gradient(180deg, #f7f9fc, #ffffff);
  color: #1f2937;
}*/

/* ===== SECTION ===== */
.investment-modern {
  padding: 80px 20px;
}

.section-title {
  text-align: center;
  font-size: 36px;
  margin-bottom: 50px;
}

.section-title span {
  color: #000000;
  font-weight: 600;
}

/* ===== SECTION ===== */
.branch-simple {
  padding: 70px 20px;
}

.section-title {
  text-align: center;
  font-size: 34px;
  margin-bottom: 50px;
}

.section-title span {
  color: #000000;
}

/* ===== LAYOUT ===== */
.branch-wrapper {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 40px;
  max-width: 1200px;
  margin: auto;
  align-items: center;
}

/* ===== IMAGE ===== */
.branch-image {
  background: #ffffff;
  padding: 25px;
  border-radius: 20px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
  transition: transform .3s ease;
}

.branch-image:hover {
  transform: translateY(-6px);
}

.branch-image img {
  width: 100%;
  height: auto;
}

/* ===== CONTENT ===== */
.branch-content {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.branch-item {
  display: flex;
  gap: 18px;
  background: #ffffff;
  padding: 18px 20px;
  border-radius: 16px;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.06);
  transition: transform .3s ease;
}

.branch-item:hover {
  transform: translateX(6px);
}

.branch-item h3 {
  font-size: 17px;
  margin-bottom: 4px;
}

.branch-item p {
  font-size: 14px;
  color: #4b5563;
  line-height: 1.5;
}

.no {
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  background: var(--color-primary);
  color: #fff;
  border-radius: 50%;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: flex-start;
}

.emp {
  display: inline-block;
  margin-top: 6px;
  font-size: 13px;
  color: var(--color-primary);
  font-weight: 600;
}

/* ===== UPCOMING ===== */
.upcoming {
  background: linear-gradient(135deg, #c3e7ff, #ffffff);
}

.upcoming .no {
  background: var(--color-primary);
}

/* ===== TOTAL ===== */
.branch-total {
  margin-top: 18px;
  padding: 18px;
  background: var(--color-primary);
  color: #fff;
  border-radius: 16px;
  text-align: center;
  font-size: 18px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 992px) {
  .branch-wrapper {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .section-title {
    font-size: 26px;
  }

  .branch-item {
    flex-direction: column;
  }
}

/* ขยับ section ที่อยู่ถัดจาก header ลงมา */
.header+.container {
  padding-top: 120px;
}

/* ขยับ section แรกหลัง header */
.header+.section-page-header {
  padding-top: 120px;
}

/* ขยับ section Branch ลงมา */
.header+.branch-simple {
  padding-top: 120px;
}

/* Custom Layout Modifiers for Service Pages */
@media (min-width: 992px) {
  .packaging-intro-grid.image-left-layout {
    display: flex;
    flex-direction: row-reverse;
    gap: 40px;
    align-items: center;
  }

  .packaging-intro-grid.image-left-layout .packaging-intro-text {
    flex: 1.2;
    /* Larger portion for text */
  }

  .packaging-intro-grid.image-left-layout .packaging-intro-model {
    flex: 0.8;
    /* Smaller portion for image */
  }
}

/* ============================================
   UTILITY CLASSES
   ============================================ */

/* Section Page Header - adds padding-top for pages */
.section-page-header {
  padding-top: 150px;
}

/* Text alignment */
.text-left {
  text-align: left;
}

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

/* Spacing utilities */
.mt-60 {
  margin-top: 60px;
}

.mb-60 {
  margin-bottom: 60px;
}

.mb-50 {
  margin-bottom: 50px;
}

/* Image styling utility */
.img-rounded-shadow {
  width: 100%;
  height: 350px;
  object-fit: cover;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

/* ============================================
   LOGISTICS FLOW CARDS
   Used in: domestic.html, nationwide_distribution.html
   ============================================ */

/* Section container */
.logistics-pro {
  padding: 100px 20px;
  background: #f4f6fa;
  font-family: "Sarabun", sans-serif;
}

/* Section title styling */
.logistics-pro .section-title {
  text-align: center;
  font-size: 32px;
  font-weight: 700;
  color: #000000;
  margin-bottom: 70px;
}

/* Flow grid layout */
.logistics-flow {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  gap: 30px;
  align-items: stretch;
  max-width: 1280px;
  margin: 0 auto;
}

/* Flow card */
.flow-card {
  background: #ffffff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.flow-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.15);
}

/* Image box */
.image-box {
  height: 230px;
  background-size: cover;
  background-position: center;
}

/* Page-specific images - domestic.html */
.port-img {
  background-image: url("scr/assets/img/other/Inboundlogistics.webp");
}

.container-img {
  background-image: url("scr/assets/img/other/distributioncenter.webp");
}

.delivery-img {
  background-image: url("scr/assets/img/other/outboundlogistics.webp");
}

/* Page-specific images - shuttletruckservice.html */
.suppliers-img {
  background-image: url("scr/assets/img/other/suppliersfactories.jpeg");
}

.shuttle-img {
  background-image: url("scr/assets/img/other/shuttletruckservice.jpeg");
}

.customer-img {
  background-image: url("scr/assets/img/other/destinationscustomers.jpeg");
}

/* Page-specific images - import-export.html */
.port-img {
  background-image: url("scr/assets/img/other/portterminal.webp");
}

.container-img {
  background-image: url("scr/assets/img/other/containertransportation.webp");
}

.deliverys-img {
  background-image: url("scr/assets/img/other/factorywarehouse.webp");
}


/* Page-specific images - container_arrangement.html */
.receive-img {
  background-image: url("scr/assets/img/other/containerreceiving.webp");
}

.yard-img {
  background-image: url("scr/assets/img/other/containeryard.webp");
}

.dispatch-img {
  background-image: url("scr/assets/img/other/containerdispatch.webp");
}


/* Page-specific images - nationwide_distribution.html */
.firstmile-img {
  background-image: url("scr/assets/img/other/firstmiledelivery.webp");
}

.middlemile-img {
  background-image: url("scr/assets/img/other/middlemiledistribution.webp");
}

.lastmile-img {
  background-image: url("scr/assets/img/other/lastmiledelivery.webp");
}


/* Page-specific images - truck_fleetsupport.html */
.parking-img {
  background-image: url("scr/assets/img/other/truckparking2.webp");
}

.fleet-img {
  background-image: url("scr/assets/img/other/fleetmanagement.webp");
}

.support-img {
  background-image: url("https://images.unsplash.com/photo-1587293852726-70cdb56c2866");
}

/* Content box */
.content-box {
  padding: 25px;
  text-align: center;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.content-box h3 {
  font-size: 20px;
  margin-bottom: 12px;
  color: #0a2a66;
}

.content-box p {
  font-size: 14px;
  line-height: 1.7;
  color: #555;
}

/* Arrow between cards */
.flow-arrow {
  font-size: 42px;
  color: #999;
  text-align: center;
  align-self: center;
}

/* Fade up animation for flow cards */
.fade-up {
  opacity: 0;
  transform: translateY(40px);
  animation: fadeUpFlow 1s ease forwards;
}

.delay-1 {
  animation-delay: 0.3s;
}

.delay-2 {
  animation-delay: 0.6s;
}

@keyframes fadeUpFlow {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive - logistics flow */
@media (max-width: 992px) {
  .logistics-flow {
    grid-template-columns: 1fr;
  }

  .flow-arrow {
    display: none;
  }

  .logistics-pro {
    padding: 60px 20px;
  }
}

/* ============================================
   Language Toggle Button
   ============================================ */
.nav-lang-switcher {
  list-style: none;
  display: flex;
  align-items: center;
  margin-left: 8px;
}

.lang-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 16px;
  border: 2px solid var(--color-primary);
  border-radius: 50px;
  background: transparent;
  color: var(--color-primary);
  font-size: 0.85rem;
  font-weight: 700;
  font-family: "Sarabun", sans-serif;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.lang-toggle-btn:hover {
  background: var(--color-primary);
  color: #fff;
}

.lang-toggle-btn .lang-flag {
  font-size: 1.1rem;
  line-height: 1;
}

/* Mobile: language toggle in hamburger menu */
@media (max-width: 1024px) {
  .nav-lang-switcher {
    width: 100%;
    justify-content: center;
    margin: 15px 0 5px;
    padding: 0;
  }

  .lang-toggle-btn {
    width: 80%;
    justify-content: center;
    padding: 12px 20px;
    font-size: 1rem;
  }
}