@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Sarabun:wght@300;400;500;600;700;800&display=swap');

:root {
  /* Green & White Professional Palette */
  --primary: #059669;
  /* Emerald 600 */
  --primary-dark: #047857;
  /* Emerald 700 */
  --primary-light: #d1fae5;
  /* Emerald 100 */
  --accent: #10b981;
  /* Emerald 500 */
  --bg-main: #ffffff;
  --bg-surface: #f8fafc;
  --text-main: #1e293b;
  /* Slate 800 */
  --text-muted: #64748b;
  /* Slate 500 */
  --border-color: #e2e8f0;
  --shadow-soft: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
  --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.025);
}

@media (max-width: 1280px),
(max-height: 850px) {
  html {
    font-size: 90% !important;
  }
}

@media (max-width: 1024px),
(max-height: 720px) {
  html {
    font-size: 85% !important;
  }
}

@media (max-height: 640px) {
  html {
    font-size: 78% !important;
  }
}

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

body {
  font-family: 'Sarabun', 'Inter', sans-serif;
  background-color: var(--bg-main);
  color: var(--text-main);
  min-height: 100vh;
  overflow-x: hidden;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

/* === Layout Utilities === */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-height: min-content;
}

/* Ensure sections fit */
section {
  min-height: auto;
  width: 100%;
  display: flex;
  flex-direction: column;
}

.max-w-7xl {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 5%;
}

.w-full {
  width: 100%;
}

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

/* === Navbar === */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 5%;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid var(--border-color);
}

.logo {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo img {
  height: 50px !important;
  /* 👈 USER: ปรับความสูงโลโก้ตรงนี้ได้เลย แก้ที่เดียวเปลี่ยนทั้งเว็บ! */
  width: auto;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.logo-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  line-height: 1.2;
  transition: all 0.3s ease;
}

.logo-en {
  font-weight: 700;
  color: #0f172a;
  /* Elegant dark slate brand color */
  font-family: 'Inter', sans-serif;
  letter-spacing: -0.01em;
  white-space: nowrap !important;
  font-size: 1.5rem !important;
  transition: font-size 0.2s ease !important;
}

.logo-th {
  font-weight: 500;
  color: #64748b;
  /* Soft slate grey sub-name */
  font-family: 'Sarabun', sans-serif;
  letter-spacing: 0.01em;
  white-space: nowrap !important;
  font-size: 0.85rem !important;
  transition: font-size 0.2s ease !important;
}

/* Laptops & Small Desktops (1024px - 1199px) */
@media (max-width: 1199px) {
  .logo-en {
    font-size: 1.3rem !important;
  }
  .logo-th {
    font-size: 0.78rem !important;
  }
}

/* Tablets (769px - 1023px) */
@media (max-width: 1023px) {
  .logo-en {
    font-size: 1.15rem !important;
  }
  .logo-th {
    font-size: 0.72rem !important;
  }
}

/* Standard Mobile Phones (361px - 768px) */
@media (max-width: 768px) {
  .navbar {
    padding: 10px 16px !important;
  }
  .logo img {
    height: 38px !important;
  }
  .logo-suffix,
  .logo-th-suffix {
    display: inline !important;
    /* Keep suffixes visible on mobile! */
  }
  .logo-en {
    font-size: 12.5px !important;
  }
  .logo-th {
    font-size: 9.5px !important;
  }
}

/* Tiny Mobile Phones (<= 360px) */
@media (max-width: 360px) {
  .navbar {
    padding: 8px 12px !important;
  }
  .logo img {
    height: 34px !important;
  }
  .logo-en {
    font-size: 10.5px !important;
  }
  .logo-th {
    font-size: 8px !important;
  }
}

.nav-links {
  display: flex;
  justify-content: center;
  align-items: center;
  list-style: none;
  gap: 30px;
  position: relative;
  /* Needed for marker positioning */
}

.nav-marker {
  position: absolute;
  top: 0;
  /* Move to top */
  left: 0;
  height: 4px;
  /* Maintain height for invisible track if needed, or 0 */
  background: transparent;
  /* No line */
  transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  /* Bouncy transition */
  pointer-events: none;
  z-index: 10;
}

/* Marker Star Removed */

.nav-links a {
  text-decoration: none;
  color: var(--text-muted);
  font-weight: 500;
  transition: color 0.3s;
  padding: 10px 0;
  /* Add vertical padding for marker spacing */
  position: relative;
  z-index: 1;
  /* Above marker */
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--primary);
}

/* === Background Mesh Blobs === */
.bg-mesh-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -2;
  overflow: hidden;
  background: radial-gradient(circle at 50% 50%, #ffffff 0%, #f8fafc 100%);
  pointer-events: none;
}

.mesh-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.35;
  animation: blob-float 20s infinite alternate ease-in-out;
}

.mesh-blob-1 {
  top: -10%;
  left: -10%;
  width: 50vw;
  height: 50vw;
  background: radial-gradient(circle, var(--primary-light) 0%, transparent 80%);
  animation-delay: 0s;
}

.mesh-blob-2 {
  bottom: -20%;
  right: -10%;
  width: 60vw;
  height: 60vw;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.25) 0%, transparent 80%);
  animation-delay: 4s;
}

.mesh-blob-3 {
  top: 40%;
  left: 50%;
  width: 40vw;
  height: 40vw;
  background: radial-gradient(circle, rgba(5, 150, 105, 0.15) 0%, transparent 80%);
  animation-delay: 8s;
}

@keyframes blob-float {
  0% {
    transform: translate(0, 0) scale(1);
  }

  50% {
    transform: translate(5%, 10%) scale(1.1);
  }

  100% {
    transform: translate(-5%, -5%) scale(0.9);
  }
}

/* === Buttons === */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 12px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  border: none;
  font-size: 1.05rem;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  box-shadow: 0 10px 25px rgba(5, 150, 105, 0.25);
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-3px);
  box-shadow: 0 15px 35px rgba(5, 150, 105, 0.35);
}

.btn-glass {
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-color);
  color: var(--text-main);
}

.btn-glass:hover {
  background: rgba(255, 255, 255, 0.85);
  border-color: var(--primary);
  color: var(--primary-dark);
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(5, 150, 105, 0.08);
}

/* === Components: Badge === */
.badge {
  background: rgba(5, 150, 105, 0.08);
  color: var(--primary-dark);
  border: 1px solid rgba(5, 150, 105, 0.15);
  padding: 6px 14px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 20px;
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 10px rgba(5, 150, 105, 0.05);
  transition: all 0.3s ease;
}

.badge:hover {
  background: rgba(5, 150, 105, 0.12);
  border-color: rgba(5, 150, 105, 0.25);
  transform: translateY(-1px);
}

/* === Modern Asymmetric Home (Index) === */
.hero-container {
  width: 100%;
  margin: 0;
  border-radius: 0;
  background: linear-gradient(135deg, #022c22 0%, #059669 50%, #0d9488 100%);
  position: relative;
  overflow: hidden;
  border: none;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  min-height: calc(100vh - 90px);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Overlaying dot matrix tech pattern for "เพิ่มลวดลาย" */
.hero-container::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.12) 1.5px, transparent 1.5px);
  background-size: 28px 28px;
  opacity: 0.8;
  pointer-events: none;
  z-index: 1;
}

.hero-asymmetric {
  max-width: 100%;
  width: 100%;
  margin: 0;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 40px 5% 100px 5%;
  z-index: 2;
}

.hero-left {
  padding-right: 30px;
  z-index: 10;
  position: relative;
  text-align: left;
}

.hero-right {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-container .display-text {
  font-size: clamp(1.8rem, 2.2vw, 3.2rem) !important;
  font-weight: 800;
  line-height: 1.25 !important;
  letter-spacing: normal;
  color: white !important;
  margin-bottom: 20px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
  white-space: nowrap !important;
  /* บังคับอยู่บรรทัดเดียวกว้างๆ บนหน้าจอเดสก์ท็อป */
}

.hero-container .hero-desc {
  font-size: 1.2rem !important;
  line-height: 1.6 !important;
  opacity: 0.95;
  color: rgba(255, 255, 255, 0.9) !important;
  margin-bottom: 35px;
  max-width: 550px;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
}

/* === Customizer Bar (Career Shark Style Search/Filter Bar) === */
.customizer-bar {
  display: flex;
  align-items: center;
  background: white;
  border-radius: 50px;
  padding: 8px 8px 8px 30px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
  margin-top: 30px;
  width: 100%;
  max-width: 750px;
  z-index: 20;
  position: relative;
  transition: all 0.3s ease;
}

.customizer-bar:focus-within {
  transform: translateY(-2px);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.2);
}

.customizer-select {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.customizer-select label {
  font-size: 0.75rem;
  color: #64748b;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-family: 'Sarabun', sans-serif;
  margin: 0;
  padding: 0;
}

.select-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.customizer-select select {
  border: none;
  background: transparent;
  font-size: 0.95rem;
  font-weight: 700;
  color: #1e293b;
  width: 100%;
  padding-right: 20px;
  cursor: pointer;
  outline: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  font-family: 'Sarabun', sans-serif;
}

.select-wrapper i {
  position: absolute;
  right: 5px;
  font-size: 0.8rem;
  color: #94a3b8;
  pointer-events: none;
}

.customizer-divider {
  width: 1px;
  height: 35px;
  background: #e2e8f0;
  margin: 0 20px;
}

.customizer-btn {
  width: 52px;
  height: 52px;
  background: var(--primary);
  border: none;
  border-radius: 50%;
  color: white;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.customizer-btn:hover {
  background: var(--primary-dark);
  transform: scale(1.08);
  box-shadow: 0 5px 15px rgba(5, 150, 105, 0.3);
}

/* === Product Dual Showcase (Web Mockup & Print Mockup) === */
.product-composition {
  position: relative;
  width: 100%;
  max-width: 520px;
  height: 480px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: all 0.5s ease;
}

/* Web Mockup (Sleek Glass Browser) */
.web-mockup {
  position: absolute;
  top: 10%;
  left: 5%;
  width: 78%;
  height: 62%;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 16px;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
  z-index: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.web-header {
  height: 36px;
  background: #f1f5f9;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  padding: 0 14px;
}

.web-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 6px;
}

.web-dot.red {
  background: #ef4444;
}

.web-dot.yellow {
  background: #f59e0b;
}

.web-dot.green {
  background: #10b981;
}

.web-address {
  flex: 1;
  background: white;
  height: 20px;
  border-radius: 4px;
  border: 1px solid #e2e8f0;
  margin: 0 15px;
  font-size: 0.68rem;
  color: #94a3b8;
  display: flex;
  align-items: center;
  padding-left: 8px;
  font-family: 'Inter', sans-serif;
}

.web-content {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
  background: white;
}

.web-hero-sim {
  height: 70px;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(16, 185, 129, 0.02));
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 12px;
  gap: 6px;
}

.sim-line-1 {
  width: 40%;
  height: 6px;
  background: var(--primary);
  border-radius: 3px;
}

.sim-line-2 {
  width: 75%;
  height: 4px;
  background: rgba(5, 150, 105, 0.3);
  border-radius: 2px;
}

.web-grid-sim {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.sim-item {
  height: 52px;
  background: #f8fafc;
  border: 1px solid #f1f5f9;
  border-radius: 6px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4px;
  font-size: 0.58rem;
  font-weight: 700;
  color: var(--text-main);
  font-family: 'Sarabun', sans-serif;
}

.sim-item i {
  font-size: 0.8rem;
  color: var(--primary);
}

/* Print Mockup (3D School Journal Book) */
.print-mockup {
  position: absolute;
  bottom: 8%;
  right: 5%;
  width: 50%;
  height: 64%;
  background: linear-gradient(135deg, #065f46, #047857);
  border-radius: 12px;
  box-shadow: -20px 25px 45px rgba(0, 0, 0, 0.25);
  z-index: 2;
  display: flex;
  overflow: hidden;
  color: white;
  transform: rotate(-3deg);
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  animation: bookFloat 5s ease-in-out infinite;
}

@keyframes bookFloat {

  0%,
  100% {
    transform: translateY(0px) rotate(-3deg);
  }

  50% {
    transform: translateY(-10px) rotate(-1.5deg);
  }
}

.print-spine {
  width: 14px;
  background: linear-gradient(to right, rgba(0, 0, 0, 0.25), rgba(255, 255, 255, 0.15) 30%, rgba(0, 0, 0, 0.2) 60%, rgba(255, 255, 255, 0.1) 90%);
  border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.print-cover {
  flex: 1;
  padding: 24px 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.print-badge {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(4px);
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  align-self: flex-start;
  font-family: 'Inter', sans-serif;
}

.print-title {
  font-size: 1.2rem;
  font-weight: 800;
  line-height: 1.35;
  font-family: 'Sarabun', sans-serif;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

.print-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: 10px;
  font-size: 0.65rem;
  font-family: 'Inter', sans-serif;
  opacity: 0.9;
}

/* Hover Interactive Scaling */
.product-composition:hover .web-mockup {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.2);
}

.product-composition:hover .print-mockup {
  transform: translateY(-18px) rotate(-1deg) scale(1.03);
  box-shadow: -25px 35px 60px rgba(0, 0, 0, 0.35);
}

/* === Fluid Wave Shapes === */
.hero-waves {
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 100%;
  height: 240px;
  pointer-events: none;
  z-index: 2;
}

.hero-waves svg {
  width: 100%;
  height: 100%;
}

.text-gradient {
  background: linear-gradient(135deg, var(--primary-dark), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-shape {
  position: absolute;
  top: -10%;
  right: -20%;
  width: 120%;
  height: 120%;
  background: radial-gradient(circle at center, var(--primary-light) 0%, transparent 70%);
  opacity: 0.5;
  z-index: -1;
  border-radius: 50%;
  filter: blur(80px);
}

/* Hero Visual Container - Floating Cards Grid */
.hero-visual {
  position: relative;
  width: 100%;
  height: 500px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 25px;
  padding: 20px;
  z-index: 10;
}

.visual-card {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.04), inset 0 0 0 1px rgba(255, 255, 255, 0.5);
  border-radius: 28px;
  padding: 35px 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 15px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.visual-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(5, 150, 105, 0.1), transparent);
  opacity: 0;
  transition: opacity 0.3s;
  z-index: 0;
}

.visual-card:hover::before {
  opacity: 1;
}

.visual-card:hover {
  background: rgba(255, 255, 255, 0.95);
  transform: translateY(-12px) scale(1.03);
  border-color: rgba(5, 150, 105, 0.3);
  box-shadow: 0 30px 60px rgba(5, 150, 105, 0.15);
}

.visual-card i {
  font-size: 2.8rem;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 4px 8px rgba(5, 150, 105, 0.15));
  transition: all 0.3s;
  position: relative;
  z-index: 1;
}

.visual-card:hover i {
  transform: scale(1.18) rotate(5deg);
}

.visual-card span {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-main);
  text-align: center;
  position: relative;
  z-index: 1;
  transition: color 0.3s;
}

.visual-card:hover span {
  color: var(--primary-dark);
}

/* Individual Card Animations */
.visual-card.card-1 {
  animation: float 6s ease-in-out infinite;
  animation-delay: 0s;
}

.visual-card.card-2 {
  animation: float 6s ease-in-out infinite;
  animation-delay: 1.5s;
}

.visual-card.card-3 {
  animation: float 6s ease-in-out infinite;
  animation-delay: 3s;
}

.visual-card.card-4 {
  animation: float 6s ease-in-out infinite;
  animation-delay: 4.5s;
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-20px);
  }
}

/* Enhanced Stats Float */
.stats-float {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(16px);
  padding: 25px 35px;
  border-radius: 24px;
  border: 1px solid rgba(5, 150, 105, 0.2);
  box-shadow: 0 20px 50px rgba(5, 150, 105, 0.15);
  display: flex;
  gap: 40px;
  position: absolute;
  bottom: -5%;
  left: 0;
  right: 0;
  margin: 0 auto;
  z-index: 30;
  max-width: 600px;
  animation: slideUp 1s ease-out 0.5s both;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(50px);
  }

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

.stat-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  padding: 10px;
  border-radius: 12px;
  transition: all 0.3s;
}

.stat-box:hover {
  background: var(--primary-light);
  transform: translateY(-5px);
}

.stat-box h3 {
  font-size: 2.8rem;
  color: var(--primary);
  margin-bottom: 5px;
  line-height: 1;
  font-weight: 900;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.stat-box p {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* === Feature Sections === */
.section-full {
  padding: 80px 0;
}

.grid-4 {
  display: grid;
  margin-bottom: 20px;
  transition: 0.3s;
}

.card-service:hover .card-icon {
  background: var(--primary);
  color: white;
}

.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  margin-bottom: 100px;
}

.feature-row.reverse {
  direction: rtl;
}

.feature-row.reverse .feature-text {
  direction: ltr;
  /* Reset text direction inside container */
}

.feature-visual {
  background: var(--bg-surface);
  border-radius: 30px;
  height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.feature-icon-lg {
  font-size: 8rem;
  color: var(--primary-light);
}

/* === Sub-Page Styles (Services, Contact, Order) === */
.page-header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 30px;
  /* Reduced margin */
  padding-top: 20px;
  /* Reduced padding */
  flex-shrink: 0;
  /* Don't shrink header */
}

.page-header h1 {
  font-size: 2.5rem;
  /* Slightly smaller */
  color: var(--text-main);
  margin-bottom: 10px;
}

.service-detail-wrapper,
.contact-wrapper,
.order-wrapper {
  background: white;
  border-radius: 24px;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--border-color);
  overflow: hidden;
  margin: 0 auto 30px auto;
  /* Center Center */
  display: flex;
  width: 100%;
  max-width: 1100px;
  min-height: 500px;
  /* Flexible minimum height */
  height: auto;
  flex: none;
}

/* Service Detail Specifics */
.detail-left {
  flex: 0.8;
  padding: 30px;
  border-right: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow-y: auto;
  /* Allow internal scroll if needed */
}

.detail-right {
  flex: 1.2;
  padding: 30px;
  background: var(--bg-surface);
  overflow-y: auto;
  /* Critical: Internal scroll */
}

.detail-img-box {
  width: 100%;
  height: 250px;
  /* Reduced height */
  background: var(--bg-surface);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  color: var(--primary);
  margin-bottom: 20px;
  flex-shrink: 0;
}

.detail-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  /* Split into 2 columns */
  gap: 20px;
  /* Increased gap */
}

.detail-item {
  display: flex;
  align-items: flex-start;
  /* Align top for multi-line text */
  gap: 15px;
  padding: 20px;
  background: white;
  border: 1px solid var(--border-color);
  border-radius: 16px;
  transition: 0.2s;
  height: 100%;
  /* Fill grid height */
}

.detail-item:hover {
  border-color: var(--primary);
}

.timeline::before {
  content: '';
  position: absolute;
  left: 7px;
  top: 5px;
  bottom: 0;
  width: 2px;
  background: var(--border-color);
}

.timeline-item {
  position: relative;
  margin-bottom: 40px;
}

.timeline-dot {
  position: absolute;
  left: -30px;
  top: 0;
  width: 16px;
  height: 16px;
  background: white;
  border: 3px solid var(--primary);
  border-radius: 50%;
  z-index: 2;
}

/* === Polish: Services Page (Premium Cards) === */
/* === Polish: Services Page (Premium Cards) === */
.services-grid-page {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  /* Balanced gap */
  padding: 0 40px 20px 40px;
  /* Reduced padding */
  height: 100%;
  align-content: center;
  /* Center vertically */
  /* Compact container for 2 items */
  max-width: 1200px;
  /* Enlarged from 900px */
  margin: 0 auto;
}

.service-card-premium {
  background: white;
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 25px;
  /* Compact padding */
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 450px;
  /* Enlarged from 350px */
  height: auto;
  box-shadow: var(--shadow-sm);
  align-items: flex-start;
  text-align: left;
  justify-content: space-between;
  /* Distribute content */
}

.card-image-header {
  display: none;
  /* Hide top image if using Icons per example */
}

/* Restore Icon */
.service-icon-lg {
  width: 90px;
  height: 90px;
  background: var(--bg-surface);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--primary);
  margin-bottom: 25px;
  transition: 0.3s;
  display: flex !important;
  /* Force show */
}

.service-card-premium:hover .service-icon-lg {
  background: var(--primary);
  color: white;
  transform: rotateY(180deg);
  /* Add premium flip effect */
}

.card-content {
  padding: 0;
  /* Remove wrapper padding since card has it */
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-content h3 {
  font-size: 1.8rem;
  margin-bottom: 15px;
}

.card-content p {
  color: var(--text-muted);
  margin-bottom: 20px;
  line-height: 1.6;
}

.card-content ul {
  display: flex;
  gap: 15px;
  margin: 10px 0 !important;
}

.card-content h3 {
  margin-bottom: 5px !important;
}

.card-content p {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 5px !important;
}

/* Helper for icon in horizontal */
.service-icon-lg {
  display: none;
  /* Hide big icon in horizontal mode, rely on image */
}

/* === Polish: Order Page (Timeline Animation) === */
.timeline-dot.pulse {
  animation: pulse-green 2s infinite;
}

@keyframes pulse-green {
  0% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4);
  }

  70% {
    box-shadow: 0 0 0 10px rgba(16, 185, 129, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
  }
}

.timeline-line-active {
  background: var(--primary) !important;
}

/* === Polish: Contact Page (Interactive Info) === */
.info-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  border-radius: 12px;
  border: 1px solid transparent;
  transition: 0.2s;
  cursor: default;
}

.info-card:hover {
  background: var(--bg-surface);
  border-color: var(--border-color);
}

.info-icon-box {
  width: 50px;
  height: 50px;
  background: #e0f2fe;
  /* Light Blue/Teal */
  color: var(--primary);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.info-card:nth-child(2) .info-icon-box {
  background: #d1fae5;
  color: #059669;
}

/* Green */
.info-card:nth-child(3) .info-icon-box {
  background: #fee2e2;
  color: #dc2626;
}

/* Red */
.info-card:nth-child(4) .info-icon-box {
  background: #fef3c7;
  color: #d97706;
}

/* Yellow */

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

.full-width {
  grid-column: span 2;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-label {
  font-weight: 500;
  font-size: 0.9rem;
}

.form-control {
  padding: 12px 16px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  font-size: 1rem;
  transition: 0.2s;
  font-family: inherit;
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-light);
}

/* === Polish: Order Page (Tabs) === */
.tabs-container {
  width: 100%;
  padding: 0 40px;
  margin-bottom: 20px;
  display: flex;
  justify-content: center;
}

.tabs-header {
  display: flex;
  background: var(--bg-surface);
  padding: 5px;
  border-radius: 50px;
  border: 1px solid var(--border-color);
  gap: 5px;
}

.tab-trigger {
  padding: 10px 30px;
  border-radius: 40px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.tab-trigger:hover {
  color: var(--primary);
}

.tab-trigger.active {
  background: white;
  color: var(--primary);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.tab-content {
  display: none;
  animation: fadeIn 0.4s ease;
  height: 100%;
  flex-direction: column;
}

.tab-content.active {
  display: flex;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

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

.form-embed-container {
  flex: 1;
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.02);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

/* === Map & Mourning Ribbon Overlay === */
.map-wrapper {
  position: relative;
  width: 100%;
  border-radius: 20px;
  overflow: hidden;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-soft);
}

.map-wrapper iframe {
  width: 100%;
  height: 100%;
  min-height: 350px;
  border: 0;
}

/* === Mobile Navigation (Side Drawer) === */
.menu-toggle {
  display: none;
  /* Hidden on Desktop */
  font-size: 1.5rem;
  color: var(--primary);
  cursor: pointer;
  z-index: 1100;
}


/* iPad / Tablet Adjustments (Portrait & Landscape) */
@media (max-width: 1024px) {
  .hero-asymmetric {
    grid-template-columns: 1fr;
    text-align: center;
    min-height: auto;
    padding-top: 40px;
    padding-bottom: 40px;
  }

  .display-text {
    font-size: clamp(1.6rem, 4vw, 2.8rem) !important;
    line-height: 1.25 !important;
    white-space: normal !important;
    word-break: keep-all !important;
  }

  /* Compact Navbar for Tablets */
  .navbar {
    padding: 10px 5% !important;
  }

  .nav-links {
    gap: 15px !important;
  }

  .hero-left {
    padding-right: 0;
    margin-bottom: 20px;
  }

  .hero-right {
    min-height: 300px;
  }

  .hero-visual {
    height: auto;
    gap: 15px;
  }

  /* Keep 2 columns on tablets (landscape) but smaller */
  .feature-row {
    grid-template-columns: 1fr 1fr !important;
    gap: 30px !important;
    margin-bottom: 40px !important;
  }

  @media (max-width: 820px) {
    .display-text {
      font-size: clamp(1.4rem, 4.5vw, 2.2rem) !important;
      line-height: 1.25 !important;
      white-space: normal !important;
      word-break: keep-all !important;
    }

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

    .feature-row {
      grid-template-columns: 1fr !important;
    }
  }

  .stats-float {
    position: relative;
    max-width: 100%;
    margin-top: 30px;
    gap: 20px;
  }

  .grid-4,
  .feature-row {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .feature-row.reverse {
    direction: ltr;
  }

  /* Collapse Sub-Page Wrappers */
  .service-detail-wrapper,
  .contact-wrapper,
  .order-wrapper {
    flex-direction: column;
    height: auto;
  }

  .detail-left,
  .timeline-section,
  .contact-info-section {
    border-right: none;
    border-bottom: 1px solid var(--border-color);
    padding: 30px;
    flex: none;
  }

  .detail-right,
  .form-section {
    padding: 30px;
  }

  /* Navbar Mobile Adjustment */
  .navbar {
    padding: 16px 16px !important;
  }

  /* Edge-to-Edge Tabs */
  .tabs-container {
    padding: 0 10px;
    width: 100%;
  }

  .tab-trigger {
    padding: 8px 15px;
    font-size: 0.85rem;
  }

  .map-section {
    min-height: 300px;
  }

  /* === Mourning Ribbon (Global) === */
}

/* === Mourning Ribbon (Global) === */
.mourning-ribbon {
  position: fixed;
  bottom: 0;
  /* Changed from top: 0 to bottom: 0 */
  left: 0;
  width: 100px;
  height: auto;
  z-index: 9999;
  pointer-events: none;
  /* Original transform or none if image is already correct */
  transform: none;
}

/* Ensure it stays visible on all devices */
@media (max-width: 1024px) {
  .mourning-ribbon {
    display: block !important;
    width: 80px;
    /* Slightly smaller on mobile */
  }
}

/* === New Order Page Redesign (Steps & Actions) : VIBRANT EDITION === */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 50px;
}

.step-card {
  background: white;
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 30px 20px;
  text-align: center;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  min-height: 320px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  position: relative;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.03);
}

/* Individual Step Colors */
/* Step 1: Blue (Document) */
.step-card:nth-child(1) {
  --step-color: #3b82f6;
  --step-bg: #eff6ff;
}

/* Step 2: Orange (Calc) */
.step-card:nth-child(2) {
  --step-color: #f59e0b;
  --step-bg: #fffbeb;
}

/* Step 3: Purple (Production) */
.step-card:nth-child(3) {
  --step-color: #8b5cf6;
  --step-bg: #f3e8ff;
}

/* Step 4: Rose (Delivery) */
.step-card:nth-child(4) {
  --step-color: #f43f5e;
  --step-bg: #fff1f2;
}

/* Dynamic Hover Effects */
.step-card:hover {
  transform: translateY(-10px) scale(1.02);
  border-color: var(--step-color);
  box-shadow: 0 20px 40px -10px var(--step-color);
  /* Colored Glow */
}

.step-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--step-bg);
  opacity: 0;
  transition: 0.3s;
  z-index: 0;
}

.step-card:hover::before {
  opacity: 1;
  /* Tint background on hover */
}

.step-icon {
  font-size: 3.5rem;
  margin-bottom: 25px;
  color: #94a3b8;
  /* Default Gray */
  transition: 0.3s;
  position: relative;
  z-index: 1;
}

.step-card:hover .step-icon {
  color: var(--step-color);
  /* Switch to Step Color */
  transform: scale(1.1) rotate(5deg);
  filter: drop-shadow(0 5px 10px rgba(0, 0, 0, 0.1));
}

.step-card h3 {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 5px;
  position: relative;
  z-index: 1;
  transition: 0.3s;
}

.step-card:hover h3 {
  color: var(--step-color);
}

.step-card h4 {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
}

/* Step Description Text */
.step-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-top: auto;
  line-height: 1.5;
  opacity: 0.8;
  padding-top: 15px;
}

.step-card:hover .step-desc {
  color: var(--step-color);
  font-weight: 600;
  /* Make it pop */
  opacity: 1;
  text-shadow: 0 0 1px currentColor;
  /* Slight glow effect */
}


/* Action Buttons - Multi Colored */
.action-buttons-row {
  display: flex;
  justify-content: center;
  gap: 25px;
  margin-top: 60px;
  flex-wrap: wrap;
}

.btn-action-large {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px 30px;
  font-size: 1.1rem;
  font-weight: 700;
  border-radius: 12px;
  text-decoration: none;
  min-width: 280px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  border: 1px solid transparent;
  /* Prepare for border */
  color: white;
  /* Default text white for filled buttons */
}

/* Button 1: Printing (Indigo/Blue Theme) */
.action-buttons-row a:nth-child(1) {
  background: white;
  color: #4f46e5;
  /* Indigo 600 */
  border: 2px solid #4f46e5;
}

.action-buttons-row a:nth-child(1):hover {
  background: #4f46e5;
  color: white;
  box-shadow: 0 10px 25px rgba(79, 70, 229, 0.4);
  transform: translateY(-3px);
}

/* Button 2: Website (Teal/Cyan Theme) */
.action-buttons-row a:nth-child(2) {
  background: white;
  color: #0d9488;
  /* Teal 600 */
  border: 2px solid #0d9488;
}

.action-buttons-row a:nth-child(2):hover {
  background: #0d9488;
  color: white;
  box-shadow: 0 10px 25px rgba(13, 148, 136, 0.4);
  transform: translateY(-3px);
}

/* Mobile Adjustments */
/* Mobile Adjustments */
/* Mobile Adjustments */
@media (max-width: 1024px) {

  /* Global Page Text Scale for Mobile */
  .page-header h1 {
    font-size: 1.4rem !important;
    /* Even smaller header */
    margin-bottom: 8px;
  }

  .page-header p {
    font-size: 0.8rem !important;
    padding: 0 5px;
  }

  .steps-grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 12px;
    padding: 5px 15px 25px 15px;
    /* Adjust padding for balance */
    -ms-overflow-style: none;
    scrollbar-width: none;
  }

  .steps-grid::-webkit-scrollbar {
    display: none;
  }

  .step-card {
    min-width: 80%;
    flex: 0 0 80%;
    scroll-snap-align: center;

    min-height: auto;
    padding: 15px 10px;
    /* Minimal padding */
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 6px;
    border-radius: 12px;
    margin-bottom: 5px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  }

  .step-card h3 {
    font-size: 0.7rem;
    /* Micro label */
    margin-bottom: 1px;
    letter-spacing: 0.5px;
    opacity: 0.9;
  }

  .step-card h4 {
    font-size: 0.85rem;
    /* Micro Title */
    margin-bottom: 3px;
    line-height: 1.25;
  }

  .step-desc {
    font-size: 0.75rem;
    /* Micro Description */
    line-height: 1.35;
    word-break: break-word;
    padding: 0;
    color: var(--text-muted);
  }

  /* Show icon gradient by default on mobile */
  .step-icon {
    color: var(--step-color) !important;
    font-size: 1.8rem;
    /* Micro Icon */
    height: 40px;
    margin-bottom: 2px;
  }

  .step-card::before {
    display: none;
  }

  .step-lines {
    display: none;
  }

  .action-buttons-row {
    flex-direction: column;
    width: 100%;
    gap: 8px;
    margin-top: 15px;
    padding: 0 15px;
  }

  .btn-action-large {
    width: 100%;
    padding: 8px 10px;
    /* Micro Button Padding */
    font-size: 0.75rem;
    /* Micro Button Text */
    min-width: 0;
    line-height: 1.25;
    text-align: center;
    height: auto;
    min-height: 40px;
    border-radius: 8px;

    white-space: normal;
    overflow-wrap: break-word;
    word-wrap: break-word;
    /* Ensure wrapping */
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
}

@media (max-width: 1024px) {
  .services-grid-page {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 20px;
    padding: 20px;
    height: auto !important;
  }

  @media (max-width: 768px) {
    .services-grid-page {
      grid-template-columns: 1fr !important;
    }
  }

  .service-card-premium {
    min-width: unset;
    flex: unset;
    scroll-snap-align: none;
    background: white;
    border-radius: 20px;
    padding: 25px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    min-height: auto !important;
    height: auto;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    position: relative;
    border: 1px solid var(--border-color);
  }

  /* Make Icons Big & Circular (Scaled Down) */
  .service-icon-lg {
    width: 70px;
    /* Reduced from 90px */
    height: 70px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-light), white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    /* Reduced font */
    color: var(--primary);
    margin-bottom: 10px;
    box-shadow: 0 4px 10px rgba(5, 150, 105, 0.15);
  }

  .service-card-premium h3 {
    font-size: 1.4rem !important;
    margin-bottom: 10px;
    color: var(--primary-dark);
  }

  .service-card-premium p {
    font-size: 0.95rem !important;
    margin-bottom: 15px;
  }

  .service-card-premium ul {
    text-align: left;
    width: 100%;
    padding-left: 10px;
  }

  .service-card-premium .btn {
    border-radius: 50px;
    margin-top: 15px;
    /* Fixed spacing */
    padding: 10px 20px;
    font-size: 0.9rem;
    width: 100%;
    /* Ensure full width button */
  }
}

/* Service Detail Page Mobile Redesign (Magazine/Print/Web) */
@media (max-width: 1024px) {
  .service-detail-wrapper {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    overflow: visible !important;
  }

  .detail-left {
    padding: 0 5px !important;
    /* Add slight breather */
    background: transparent !important;
    border: none !important;
    margin-bottom: 40px;
    /* More separation */
  }

  .detail-right {
    padding: 0 5px !important;
    background: transparent !important;
    overflow: visible !important;
  }

  .detail-img-box {
    border-radius: 20px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    height: auto !important;
    /* Auto scale */
    aspect-ratio: 16/10;
    /* Maintain ratio */
    margin-bottom: 20px;
    width: 100%;
  }

  .detail-left h3 {
    font-size: 1.6rem;
    /* Larger Title */
    margin-bottom: 15px;
    font-weight: 700;
  }

  .detail-left p {
    font-size: 1.05rem !important;
    /* Larger readable text */
    line-height: 1.7;
    color: var(--text-color);
    /* Ensure contrast */
    margin-bottom: 25px;
  }

  .detail-right {
    width: 100%;
    /* Keep within container */
    margin: 0;
    padding: 0 !important;
  }

  .detail-list {
    display: flex !important;
    flex-wrap: nowrap !important;
    /* Force single row */
    overflow-x: auto !important;
    gap: 15px;
    padding: 10px 5px 20px 5px;
    /* Internal padding */
    scroll-snap-type: x mandatory;
    grid-template-columns: none !important;
    scrollbar-width: none;
    -ms-overflow-style: none;
    /* IE/Edge */
  }

  .detail-list::-webkit-scrollbar {
    display: none;
  }

  .detail-item {
    background: white;
    border-radius: 18px;
    padding: 25px 20px;
    margin-bottom: 0;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.05);
    min-width: 85%;
    flex: 0 0 85%;
    /* Enforce width */
    scroll-snap-align: center;
  }

  /* Key Mobile Resets & Compact Fit */
  body,
  html {
    height: auto !important;
    min-height: 100vh;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    width: 100%;
    max-width: 100%;
  }

  .container {
    height: auto !important;
    min-height: auto !important;
    overflow: visible !important;
    display: block !important;
    padding: 0 15px 50px 15px;
    max-width: 100%;
  }

  /* Compact Typography Overrides */
  .detail-left h3 {
    font-size: 1.35rem;
    margin-bottom: 10px;
  }

  .detail-left p {
    font-size: 0.95rem !important;
    line-height: 1.5;
    margin-bottom: 20px;
  }

  /* Ensure wrapper adapts */
  .service-detail-wrapper {
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
  }

  .detail-left .btn {
    width: 100%;
    border-radius: 50px;
    padding: 14px;
    /* Slightly compact */
    font-size: 1rem;
    box-shadow: 0 10px 25px rgba(5, 150, 105, 0.3);
  }

  /* Fix for hero visual grid on mobile */
  .hero-visual {
    grid-template-columns: 1fr !important;
    height: auto !important;
    gap: 15px !important;
  }

  .visual-card {
    padding: 20px !important;
  }

  /* Shrink-to-Fit Padding Reductions for Short Screens */
  @media (max-height: 800px) {
    .page-header {
      margin-bottom: 5px !important;
      padding-top: 5px !important;
    }

    section {
      padding: 10px 0 !important;
    }

    .service-card-premium {
      padding: 12px !important;
      min-height: auto !important;
    }

    .service-icon-lg {
      width: 45px !important;
      height: 45px !important;
      font-size: 1.2rem !important;
      margin-bottom: 5px !important;
    }

    .service-card-premium h3 {
      font-size: 1rem !important;
      margin-bottom: 2px !important;
    }

    .service-card-premium p {
      font-size: 0.8rem !important;
      margin-bottom: 5px !important;
    }
  }

  /* Force vertical scroll accessibility */
  body,
  html {
    height: auto !important;
    min-height: 100vh !important;
    overflow-y: auto !important;
    display: block !important;
  }

  /* ===== Services Page Responsive Fix ===== */
  .services-page {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
  }

  .services-wrapper-clean {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    min-height: auto !important;
    height: auto !important;
    overflow: visible !important;
    display: block !important;
    margin-bottom: 0 !important;
  }

  .services-grid-page {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(280px, 1fr)) !important;
    gap: 24px !important;
    padding: 0 !important;
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    align-items: stretch;
    height: auto !important;
  }

  .service-card-premium {
    min-height: unset !important;
    height: 100% !important;
    padding: 24px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    text-align: left !important;
    justify-content: flex-start !important;
    border-radius: 20px;
  }

  .service-card-premium h3 {
    margin-bottom: 10px !important;
    font-size: 1.25rem !important;
    line-height: 1.4;
  }

  .service-text {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 16px;
    flex: 0 0 auto;
  }

  .service-list-clean {
    list-style: none;
    margin: 0 0 20px 0;
    padding: 0;
    width: 100%;
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.7;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
  }

  .service-list-clean li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
  }

  .service-list-clean i {
    color: var(--primary);
    margin-top: 4px;
    flex-shrink: 0;
  }

  .service-btn {
    justify-content: center;
    width: 100%;
    margin-top: auto;
  }

  .footer-simple {
    position: static !important;
    width: 100%;
    min-height: 24px;
    margin-top: 8px;
  }

  /* ปรับ icon ของ service page ให้คงที่ */
  .services-grid-page .service-icon-lg {
    display: flex !important;
    width: 72px !important;
    height: 72px !important;
    border-radius: 18px !important;
    margin-bottom: 18px !important;
    font-size: 1.8rem !important;
    flex-shrink: 0;
  }

  /* Tablet */
  @media (max-width: 991px) {
    .services-page {
      padding-top: 0 !important;
      padding-bottom: 0 !important;
    }

    .services-grid-page {
      grid-template-columns: 1fr !important;
      max-width: 720px;
      gap: 20px !important;
    }

    .service-card-premium {
      padding: 22px !important;
    }
  }

  /* Mobile */
  @media (max-width: 768px) {
    .container.services-page {
      padding-left: 16px !important;
      padding-right: 16px !important;
    }

    .page-header {
      margin-bottom: 20px !important;
      padding-top: 10px !important;
    }

    .page-header h1 {
      font-size: 1.8rem !important;
    }

    .page-header p {
      font-size: 0.92rem !important;
      line-height: 1.6;
    }

    .services-grid-page .service-icon-lg {
      width: 64px !important;
      height: 64px !important;
      font-size: 1.5rem !important;
      margin-bottom: 14px !important;
    }

    .service-card-premium {
      padding: 18px !important;
      border-radius: 18px;
    }

    .service-card-premium h3 {
      font-size: 1.1rem !important;
    }

    .service-text,
    .service-list-clean {
      font-size: 0.88rem !important;
    }

    .service-btn {
      min-height: 44px;
    }
  }

  /* Small mobile */
  @media (max-width: 480px) {
    .services-page {
      padding-top: 0 !important;
      padding-bottom: 0 !important;
    }

    .container.services-page {
      padding-left: 12px !important;
      padding-right: 12px !important;
    }

    .page-header h1 {
      font-size: 1.55rem !important;
    }

    .page-header p {
      font-size: 0.86rem !important;
    }

    .service-card-premium {
      padding: 16px !important;
    }

    .service-card-premium h3 {
      font-size: 1rem !important;
    }

    .service-text,
    .service-list-clean {
      font-size: 0.84rem !important;
      line-height: 1.6;
    }

    .services-grid-page .service-icon-lg {
      width: 58px !important;
      height: 58px !important;
      font-size: 1.3rem !important;
    }
  }
}

/* =========================
   Responsive Services Page
   ========================= */

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

html,
body {
  overflow-x: hidden;
}

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

/* layout */
.container.services-page {
  width: min(1120px, calc(100% - 32px));
  margin-inline: auto;
  padding-top: clamp(20px, 4vw, 48px) !important;
  padding-bottom: clamp(32px, 5vw, 64px) !important;
}

.services-wrapper-clean {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  min-height: auto !important;
  height: auto !important;
  overflow: visible !important;
}

/* header */
.page-header {
  text-align: center;
  margin-bottom: clamp(20px, 3vw, 36px) !important;
}

.page-header h1 {
  font-size: clamp(1.6rem, 3vw, 2.6rem) !important;
  line-height: 1.2;
  margin-bottom: 10px;
}

.page-header p {
  font-size: clamp(0.92rem, 1.6vw, 1.05rem) !important;
  line-height: 1.6;
  color: var(--text-muted);
  max-width: 680px;
  margin: 0 auto;
}

/* flexible grid */
.services-grid-page {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)) !important;
  gap: clamp(16px, 2.4vw, 28px) !important;
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  padding: 0 !important;
  align-items: stretch;
}

/* card */
.service-card-premium {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  justify-content: flex-start !important;
  width: 100%;
  min-width: 0;
  height: 100% !important;
  min-height: unset !important;
  padding: clamp(16px, 2.2vw, 24px) !important;
  border-radius: 20px;
  text-align: left !important;
  overflow: hidden;
}

.service-card-premium h3 {
  margin: 0 0 10px !important;
  font-size: clamp(1rem, 1.7vw, 1.25rem) !important;
  line-height: 1.4;
  word-break: break-word;
}

.service-text {
  margin: 0 0 16px;
  font-size: clamp(0.88rem, 1.4vw, 0.96rem);
  line-height: 1.7;
  color: var(--text-muted);
}

.services-grid-page .service-icon-lg {
  width: clamp(56px, 6vw, 72px) !important;
  height: clamp(56px, 6vw, 72px) !important;
  font-size: clamp(1.25rem, 2vw, 1.8rem) !important;
  margin-bottom: 16px !important;
  flex-shrink: 0;
}

/* list */
.service-list-clean {
  list-style: none;
  width: 100%;
  margin: 0 0 20px;
  padding: 0;
  display: grid;
  gap: 8px;
  flex: 1;
  color: var(--text-muted);
  font-size: clamp(0.84rem, 1.3vw, 0.92rem);
  line-height: 1.65;
}

.service-list-clean li {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 8px;
  align-items: start;
  min-width: 0;
}

.service-list-clean li span {
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.service-list-clean i {
  color: var(--primary);
  margin-top: 3px;
}

/* button */
.service-btn {
  width: 100%;
  margin-top: auto;
  justify-content: center;
  min-height: 44px;
}

/* footer */
.footer-simple {
  position: static !important;
  width: 100%;
  min-height: 24px;
  margin-top: 8px;
}

/* =========================
   Flexible Navbar
   ========================= */

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

.logo img {
  height: clamp(40px, 5vw, 50px);
  width: auto;
}

.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
}

/* desktop nav */
@media (min-width: 901px) {
  .nav-links {
    display: flex !important;
    position: static !important;
    width: auto !important;
    height: auto !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 20px !important;
    padding: 0 !important;
    margin: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    overflow: visible !important;
  }

  .nav-overlay {
    display: none !important;
  }
}

/* tablet + mobile nav */
@media (max-width: 900px) {
  .navbar {
    flex-wrap: nowrap !important;
  }

  .menu-toggle {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: var(--bg-surface) !important;
    border: 1px solid var(--border-color) !important;
    color: var(--primary) !important;
    font-size: 1.3rem !important;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 1300 !important;
  }

  .menu-toggle.active {
    background: var(--primary-light) !important;
    color: var(--primary) !important;
    border-color: var(--primary) !important;
  }

  .nav-links {
    position: fixed !important;
    top: 0;
    right: -100%;
    width: min(280px, 75vw) !important;
    height: 100dvh !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    justify-content: flex-start !important;
    gap: 8px !important;
    padding: 90px 20px 30px 20px !important;
    margin: 0 !important;
    background: rgba(255, 255, 255, 0.98) !important;
    backdrop-filter: blur(20px) !important;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.08) !important;
    transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
    z-index: 1200 !important;
    overflow-y: auto;
  }

  .nav-links.active {
    right: 0 !important;
  }

  .nav-links li {
    width: 100% !important;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .nav-links a {
    display: flex !important;
    align-items: center !important;
    width: 100% !important;
    padding: 14px 20px !important;
    color: var(--text-muted) !important;
    font-weight: 600 !important;
    font-size: 1.05rem !important;
    text-decoration: none !important;
    border-radius: 12px !important;
    transition: all 0.3s ease !important;
    border-bottom: none !important;
    text-align: left !important;
  }

  .nav-links a:hover,
  .nav-links a.active {
    background: var(--primary-light) !important;
    color: var(--primary) !important;
    transform: translateX(6px);
  }

  .nav-marker {
    display: none !important;
  }

  .nav-overlay {
    position: fixed !important;
    inset: 0 !important;
    background: rgba(15, 23, 42, 0.3) !important;
    backdrop-filter: blur(8px) !important;
    opacity: 0;
    visibility: hidden;
    transition: all 0.35s ease;
    z-index: 999 !important;
  }

  .nav-overlay.active {
    opacity: 1 !important;
    visibility: visible !important;
  }
}

/* small screens */
@media (max-width: 480px) {
  .container.services-page {
    width: min(100%, calc(100% - 24px));
  }

  .service-card-premium {
    border-radius: 16px;
  }

  .nav-links {
    width: min(300px, 86vw) !important;
    padding: 76px 16px 20px !important;
  }
}

/* === Hero Glass Card Wrapper (Bento Grid Left) === */
.hero-glass-card {
  background: rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 36px;
  padding: 45px;
  box-shadow:
    0 30px 60px rgba(15, 23, 42, 0.04),
    inset 0 0 0 1px rgba(255, 255, 255, 0.5),
    0 1px 3px rgba(0, 0, 0, 0.02);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  z-index: 10;
}

.hero-glass-card:hover {
  background: rgba(255, 255, 255, 0.55);
  border-color: rgba(255, 255, 255, 0.8);
  transform: translateY(-4px);
  box-shadow:
    0 35px 70px rgba(5, 150, 105, 0.06),
    inset 0 0 0 1px rgba(255, 255, 255, 0.6);
}

.hero-glass-card .display-text {
  font-size: 3.5rem !important;
  font-weight: 800;
  line-height: 1.1 !important;
  letter-spacing: normal;
  color: var(--text-main);
  margin-bottom: 15px;
}



/* === Index Page Mobile Optimization === */
@media (max-width: 768px) {
  .hero-container {
    margin: 0 !important;
    padding: 60px 16px 80px 16px !important;
    min-height: auto !important;
  }

  .hero-asymmetric {
    grid-template-columns: 1fr !important;
    gap: 30px !important;
    padding: 0 !important;
    text-align: center !important;
  }

  .hero-left {
    padding-right: 0 !important;
    width: 100% !important;
    text-align: center !important;
  }

  .hero-container .display-text {
    font-size: clamp(1.3rem, 5vw, 2.0rem) !important;
    line-height: 1.3 !important;
    letter-spacing: normal !important;
    white-space: normal !important;
    word-break: keep-all !important;
  }

  .hero-container .hero-desc {
    font-size: 0.98rem !important;
    line-height: 1.5 !important;
    margin-bottom: 25px !important;
    padding: 0 !important;
  }

  /* Stack Customizer Bar on mobile */
  .customizer-bar {
    flex-direction: column !important;
    border-radius: 20px !important;
    padding: 20px !important;
    gap: 15px !important;
    margin-top: 20px !important;
  }

  .customizer-divider {
    display: none !important;
  }

  .customizer-select {
    width: 100% !important;
    text-align: left !important;
  }

  .customizer-select select {
    border: 1px solid #e2e8f0 !important;
    border-radius: 10px !important;
    padding: 12px 30px 12px 12px !important;
    background: #f8fafc !important;
    width: 100% !important;
  }

  .select-wrapper i {
    right: 15px !important;
  }

  .customizer-btn {
    width: 100% !important;
    height: 48px !important;
    border-radius: 50px !important;
  }

  .hero-right {
    margin-top: 10px !important;
  }

  /* Product Dual Composition mobile scaling */
  .product-composition {
    height: 380px !important;
    margin-top: 20px !important;
    max-width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  .web-mockup {
    height: 240px !important;
    top: 5% !important;
    width: 82% !important;
  }

  .web-content {
    padding: 12px !important;
    gap: 8px !important;
  }

  .web-hero-sim {
    height: 54px !important;
  }

  .sim-item {
    height: 44px !important;
  }

  .print-mockup {
    height: 250px !important;
    bottom: 5% !important;
    width: 54% !important;
  }

  .print-cover {
    padding: 16px 12px !important;
  }

  .print-title {
    font-size: 1.05rem !important;
  }

  .hero-waves {
    height: 60px !important;
  }
}

/* === Full Screen Lock for Index Page (Desktop & Tablet) === */
@media (min-width: 769px) {
  body.index-page {
    height: 100vh !important;
    min-height: 100vh !important;
    overflow: hidden !important;
  }

  body.index-page .hero-container {
    flex: 1 !important;
    min-height: 0 !important;
  }
}

/* === High-End Responsive Scaling for Ultra-Wide Screens (4K and Large Monitors) === */
@media (min-width: 1400px) {
  .hero-asymmetric {
    max-width: 100% !important;
    grid-template-columns: 1.15fr 0.85fr !important;
    gap: clamp(60px, 6vw, 180px) !important;
    padding: 60px 5% 120px 5% !important;
  }

  .hero-container .display-text {
    font-size: clamp(3.2rem, 3.8vw, 6.2rem) !important;
    line-height: 1.15 !important;
    margin-bottom: 25px !important;
  }

  .hero-container .hero-desc {
    font-size: clamp(1.15rem, 1.25vw, 1.9rem) !important;
    line-height: 1.65 !important;
    max-width: clamp(550px, 45vw, 1100px) !important;
    margin-bottom: 45px !important;
  }

  .customizer-bar {
    transform: scale(clamp(1, 1.1vw, 1.38)) !important;
    transform-origin: left center !important;
  }

  .product-composition {
    max-width: clamp(520px, 20vw, 850px) !important;
    height: clamp(480px, 18vw, 750px) !important;
    width: 100% !important;
  }

  .web-mockup {
    width: 78% !important;
  }

  .print-mockup {
    width: 52% !important;
    bottom: 5% !important;
    right: 2% !important;
  }

  .print-title {
    font-size: clamp(1.2rem, 1.4vw, 2.2rem) !important;
    line-height: 1.3 !important;
  }

  .hero-waves {
    height: clamp(240px, 8vw, 360px) !important;
  }
}

/* =========================
   Vibrant Floating FAB Navigation
   ========================= */
.fab-nav-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 2000;
  display: none; /* Only visible on mobile/tablet */
  flex-direction: column;
  align-items: flex-end;
  gap: 16px;
  pointer-events: none;
}

@media (max-width: 900px) {
  .fab-nav-container {
    display: flex;
  }
  
  /* Hide the old navbar menu toggle button since we use the FAB */
  .menu-toggle {
    display: none !important;
  }
  
  /* Enforce premium single-line full name logo */
  .logo-en,
  .logo-th {
    white-space: nowrap !important;
  }
}

.fab-trigger-btn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #ffffff !important;
  color: var(--primary) !important;
  border: 1px solid rgba(5, 150, 105, 0.15) !important;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15) !important;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  pointer-events: auto;
  outline: none;
  z-index: 2002;
}

.fab-trigger-btn:hover {
  transform: scale(1.08) translateY(-2px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.22) !important;
  border-color: var(--primary) !important;
}

.fab-trigger-btn:active {
  transform: scale(0.95);
}

.fab-trigger-btn.active {
  background: #ffffff !important;
  color: #dc2626 !important; /* Vibrant red for active close icon */
  border-color: rgba(220, 38, 38, 0.2) !important;
  box-shadow: 0 10px 30px rgba(220, 38, 38, 0.15) !important;
  transform: rotate(90deg);
}

.fab-menu-items {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
  visibility: hidden;
  opacity: 0;
  transform: translateY(20px) scale(0.95);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  pointer-events: none;
}

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

.fab-menu-item {
  display: flex;
  align-items: center;
  text-decoration: none;
  pointer-events: auto;
  opacity: 0;
  transform: translateY(15px);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Staggered entry animation when active */
.fab-menu-items.active .fab-menu-item {
  opacity: 1;
  transform: translateY(0);
}

.fab-menu-items.active .fab-menu-item[data-index="0"] { transition-delay: 0.05s; }
.fab-menu-items.active .fab-menu-item[data-index="1"] { transition-delay: 0.10s; }
.fab-menu-items.active .fab-menu-item[data-index="2"] { transition-delay: 0.15s; }
.fab-menu-items.active .fab-menu-item[data-index="3"] { transition-delay: 0.20s; }

.fab-label {
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(8px);
  color: white;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
  margin-right: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-family: 'Sarabun', sans-serif;
  opacity: 0;
  transform: translateX(10px);
  transition: all 0.3s ease;
}

.fab-menu-item:hover .fab-label {
  background: var(--primary-dark);
}

.fab-menu-items.active .fab-menu-item .fab-label {
  opacity: 1;
  transform: translateX(0);
}

/* Delay labels slightly to animate nicely after the icons pop up */
.fab-menu-items.active .fab-menu-item[data-index="0"] .fab-label { transition-delay: 0.15s; }
.fab-menu-items.active .fab-menu-item[data-index="1"] .fab-label { transition-delay: 0.20s; }
.fab-menu-items.active .fab-menu-item[data-index="2"] .fab-label { transition-delay: 0.25s; }
.fab-menu-items.active .fab-menu-item[data-index="3"] .fab-label { transition-delay: 0.30s; }

.fab-icon-box {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: white;
  color: var(--primary);
  border: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.fab-menu-item:hover .fab-icon-box {
  background: var(--primary);
  color: white;
  transform: scale(1.1) rotate(8deg);
  box-shadow: 0 8px 20px rgba(5, 150, 105, 0.25);
}

.fab-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.25);
  backdrop-filter: blur(4px);
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s ease;
  z-index: 1999;
}

.fab-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* === Services Page Desktop Full Screen Lock === */
@media (min-width: 769px) {
  body.services-page {
    height: 100vh !important;
    min-height: 100vh !important;
    overflow: hidden !important;
    display: flex !important;
    flex-direction: column !important;
  }

  body.services-page .container {
    flex: 1 !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    padding-top: 1vh !important;
    padding-bottom: 2vh !important;
    height: calc(100vh - 70px) !important;
    overflow: hidden !important;
    max-width: 1200px !important;
    margin: 0 auto !important;
  }

  body.services-page .page-header {
    margin-bottom: 1.5vh !important;
  }

  body.services-page .page-header h1 {
    font-size: 2.2rem !important;
    margin-top: 0 !important;
    margin-bottom: 5px !important;
  }

  body.services-page .page-header p {
    font-size: 0.95rem !important;
    margin-bottom: 0 !important;
  }

  body.services-page .service-detail-wrapper {
    width: 100% !important;
    flex: 1 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    overflow: hidden !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  body.services-page .services-grid-page {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 30px !important;
    width: 100% !important;
    max-width: 960px !important; /* Elegant compact size on desktop */
    padding: 0 !important;
    align-self: center !important;
  }

  body.services-page .service-card-premium {
    min-height: 380px !important; /* Perfectly compact to prevent overflow */
    padding: 30px !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
  }
}