/**
 * Khắc Dấu Việt Hưng - Modern Design System
 * Pure Vanilla CSS - Zero Bloat - Mobile First - Core Web Vitals Optimized
 */

:root {
  /* Color Palette */
  --primary: #0f4c81;
  --primary-dark: #0a355c;
  --primary-light: #e8f1f8;
  --accent: #c92a2a;
  --accent-hover: #b02525;
  --secondary: #1e293b;
  --text: #334155;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  --bg-page: #f8fafc;
  --bg-surface: #ffffff;
  --bg-subtle: #f1f5f9;
  --border: #e2e8f0;
  --border-light: #f1f5f9;
  --success: #16a34a;
  --warning: #f59e0b;
  --zalo: #0068ff;
  --zalo-hover: #0056d6;
  --phone-green: #25d366;

  /* Typography */
  --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --font-heading: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  /* Spacing */
  --container-max: 1200px;
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;

  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.04);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.04);

  /* Radius */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-full: 9999px;

  /* Transitions */
  --transition: all 0.2s ease-in-out;
}

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

html {
  font-family: var(--font-family);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background-color: var(--bg-page);
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
  max-width: 100vw;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding-bottom: 60px; /* Space for mobile bottom bar */
  overflow-x: hidden;
  max-width: 100vw;
  width: 100%;
}

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

img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
  height: auto;
}

input, button, textarea, select {
  font: inherit;
}

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

a:hover {
  color: var(--accent);
}

ul, ol {
  list-style-position: inside;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--space-md);
  padding-right: var(--space-md);
}

/* Typography Helpers */
h1, h2, h3, h4, h5, h6 {
  color: var(--secondary);
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: var(--space-sm);
}

h1 { font-size: 1.75rem; }
h2 { font-size: 1.45rem; }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.1rem; }

@media (min-width: 768px) {
  h1 { font-size: 2.25rem; }
  h2 { font-size: 1.75rem; }
  h3 { font-size: 1.4rem; }
}

p {
  margin-bottom: var(--space-md);
}

/* Header & Navigation */
.site-topbar {
  background-color: var(--primary-dark);
  color: #fff;
  font-size: 0.85rem;
  padding: 6px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.topbar-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.topbar-info {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  flex-wrap: wrap;
}

.topbar-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #e2e8f0;
  white-space: nowrap;
}

.topbar-item a {
  color: #fff;
  font-weight: 600;
}

.topbar-item a:hover {
  color: #ffd166;
}

/* Mobile: Thu gọn Topbar thành 1 dòng duy nhất thanh thoát, căn giữa */
@media (max-width: 768px) {
  .site-topbar {
    padding: 6px 0;
  }

  .site-topbar .container {
    padding-left: 8px;
    padding-right: 8px;
  }

  .topbar-wrapper {
    justify-content: center;
    gap: 0;
  }

  /* Ẩn địa chỉ xưởng và giờ làm việc trên mobile */
  .topbar-wrapper > .topbar-info:first-child {
    display: none;
  }

  /* Cột 2: Căn giữa, ẩn hotline vì đã có nút gọi cố định ở chân trang */
  .topbar-wrapper > .topbar-info:last-child {
    width: 100%;
    justify-content: center;
    margin: 0;
    gap: 0;
  }

  .topbar-wrapper > .topbar-info:last-child > .topbar-item:last-child {
    display: none;
  }

  .topbar-wrapper > .topbar-info:last-child > .topbar-item:first-child {
    width: 100%;
    justify-content: center;
    text-align: center;
    white-space: normal;
    font-weight: 500;
    font-size: 0.78rem;
    line-height: 1.35;
    color: #f1f5f9;
  }
}

.site-header {
  background-color: var(--bg-surface);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 999;
}

.header-main {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  gap: var(--space-md);
}

.logo-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.logo-img {
  height: 52px;
  width: auto;
  object-fit: contain;
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.1;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

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

.header-actions {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.header-contact-badge {
  display: none;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, #fff5f5 0%, #fee2e2 100%);
  border: 1px solid #fecaca;
  padding: 8px 16px;
  border-radius: var(--radius-full);
}

@media (min-width: 900px) {
  .header-contact-badge {
    display: flex;
  }
}

.contact-badge-icon {
  width: 38px;
  height: 38px;
  background-color: var(--accent);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.contact-badge-text {
  display: flex;
  flex-direction: column;
}

.contact-badge-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 600;
}

.contact-badge-phone {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1.1;
}

.mobile-toggle {
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  width: 36px;
  height: 36px;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 8px;
  cursor: pointer;
}

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

.mobile-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--secondary);
  border-radius: 2px;
  transition: var(--transition);
}

@media (max-width: 768px) {
  .header-main {
    padding: 8px 0;
    gap: 8px;
  }
  .logo-wrapper {
    gap: 8px;
  }
  .logo-img {
    height: 44px;
  }
  .brand-title {
    font-size: 1.08rem;
    letter-spacing: 0.2px;
  }
  .brand-subtitle {
    font-size: 0.7rem;
  }
  .header-actions {
    gap: 8px;
  }
  .header-actions .btn-zalo-solid {
    display: none;
  }
  .mobile-toggle {
    flex-shrink: 0;
  }
}

/* Navigation Bar */
.site-nav {
  background-color: var(--primary);
  display: none;
}

@media (min-width: 992px) {
  .site-nav {
    display: block;
  }
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 2px;
  margin: 0;
  padding: 0;
  align-items: center;
}

.nav-item {
  position: relative;
}

.nav-link {
  display: block;
  padding: 12px 14px;
  color: #ffffff;
  font-weight: 600;
  font-size: 0.92rem;
  text-decoration: none;
  transition: var(--transition);
  white-space: nowrap;
}

.nav-link:hover, .nav-item.active .nav-link {
  background-color: var(--primary-dark);
  color: #ffd166;
}

.nav-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: #ffffff;
  min-width: 250px;
  box-shadow: var(--shadow-xl);
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  border-top: 3px solid var(--accent);
  list-style: none;
  padding: 8px 0;
  z-index: 1000;
}

.nav-item:hover .nav-dropdown {
  display: block;
}

.dropdown-link {
  display: block;
  padding: 9px 16px;
  color: var(--secondary);
  font-size: 0.9rem;
  font-weight: 500;
  transition: var(--transition);
}

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

/* Mobile Drawer */
.mobile-drawer {
  position: fixed;
  top: 0;
  left: -300px;
  width: 280px;
  height: 100vh;
  background-color: #fff;
  z-index: 2000;
  box-shadow: var(--shadow-xl);
  transition: left 0.3s ease;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

.mobile-drawer.open {
  left: 0;
}

.drawer-header {
  padding: 16px;
  background-color: var(--primary);
  color: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.drawer-close {
  background: transparent;
  border: none;
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
  line-height: 1;
}

.drawer-menu {
  list-style: none;
  padding: 8px 0;
  margin: 0;
}

.drawer-link {
  display: block;
  padding: 12px 16px;
  color: var(--secondary);
  font-weight: 600;
  border-bottom: 1px solid var(--border-light);
}

.drawer-link:hover {
  background-color: var(--bg-subtle);
  color: var(--primary);
}

.drawer-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1999;
  display: none;
}

.drawer-overlay.open {
  display: block;
}

/* Mobile Bottom Sticky Action Bar */
.mobile-bottom-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 56px;
  background-color: #ffffff;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  z-index: 1500;
  border-top: 1px solid var(--border);
}

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

.mobile-bar-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 700;
  text-decoration: none;
  gap: 2px;
  transition: var(--transition);
}

.btn-call {
  background-color: #eefdf3;
  color: var(--success);
}

.btn-call:hover {
  background-color: #dcfce7;
  color: var(--success);
}

.btn-zalo {
  background-color: #eff6ff;
  color: var(--zalo);
}

.btn-zalo:hover {
  background-color: #dbeafe;
  color: var(--zalo);
}

.btn-quote {
  background-color: #fff7ed;
  color: #ea580c;
}

.btn-quote:hover {
  background-color: #ffedd5;
  color: #ea580c;
}

.bar-icon {
  width: 20px;
  height: 20px;
}

/* Floating Desktop Contact Widget */
.floating-contact-widget {
  position: fixed;
  bottom: 30px;
  left: 30px;
  z-index: 990;
  display: none;
  flex-direction: column;
  gap: 14px;
}

@media (min-width: 769px) {
  .floating-contact-widget {
    display: flex;
  }
}

.float-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px 6px 6px;
  border-radius: var(--radius-full);
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  box-shadow: var(--shadow-lg);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.float-btn:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: var(--shadow-xl);
}

.float-btn-phone {
  background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
}

.float-btn-zalo {
  background: linear-gradient(135deg, #0084ff 0%, #0068ff 100%);
}

.float-icon {
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Hero Section */
.hero-section {
  background: linear-gradient(135deg, #0f4c81 0%, #1a365d 100%);
  color: #ffffff;
  padding: var(--space-2xl) 0;
  position: relative;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
  align-items: center;
}

@media (min-width: 992px) {
  .hero-grid {
    grid-template-columns: 1.15fr 0.85fr;
  }
}

.hero-content h1 {
  color: #ffffff;
  font-size: 1.9rem;
  line-height: 1.25;
  margin-bottom: var(--space-md);
}

@media (min-width: 768px) {
  .hero-content h1 {
    font-size: 2.6rem;
  }
}

.hero-subtitle {
  font-size: 1.05rem;
  color: #e2e8f0;
  margin-bottom: var(--space-lg);
  line-height: 1.6;
}

.hero-badges {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: var(--space-xl);
}

@media (max-width: 520px) {
  .hero-badges {
    grid-template-columns: 1fr;
  }
}

.badge-item {
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
}

.badge-item svg {
  flex-shrink: 0;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
}

/* Centered Modern Hero Layout */
.hero-centered {
  max-width: 940px;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-top-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 9999px;
  padding: 6px 18px;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: #ffffff;
  margin-bottom: var(--space-md);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.hero-top-badge svg {
  color: #fbbf24;
}

.hero-centered h1 {
  color: #ffffff;
  font-size: 2.1rem;
  line-height: 1.25;
  margin-bottom: var(--space-md);
  font-weight: 800;
}

@media (min-width: 768px) {
  .hero-centered h1 {
    font-size: 2.9rem;
  }
}

.hero-centered .hero-subtitle {
  font-size: 1.08rem;
  color: #e2e8f0;
  margin: 0 auto var(--space-lg);
  max-width: 780px;
  line-height: 1.65;
}

.hero-badges-centered {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-bottom: var(--space-xl);
}

.hero-badges-centered .badge-item {
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 9999px;
  padding: 8px 18px;
  font-size: 0.88rem;
  font-weight: 600;
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.hero-cta-centered {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
}

@media (max-width: 768px) {
  .hero-section {
    padding: 24px 0 28px 0;
  }

  .hero-top-badge {
    font-size: 0.74rem;
    padding: 5px 12px;
    margin-bottom: 12px;
    letter-spacing: 0.4px;
    line-height: 1.3;
  }

  .hero-centered h1 {
    font-size: 1.45rem;
    line-height: 1.3;
    margin-bottom: 10px;
  }

  .hero-centered .hero-subtitle {
    font-size: 0.88rem;
    line-height: 1.5;
    margin-bottom: 14px;
    padding: 0 4px;
  }

  .hero-badges-centered {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    margin-bottom: 18px;
    width: 100%;
  }

  .hero-badges-centered .badge-item {
    font-size: 0.76rem;
    padding: 7px 8px;
    border-radius: var(--radius-md);
    white-space: normal;
    text-align: left;
    gap: 6px;
    line-height: 1.25;
    justify-content: flex-start;
  }

  .hero-badges-centered .badge-item svg {
    width: 15px;
    height: 15px;
    flex-shrink: 0;
  }

  .hero-cta-centered {
    flex-direction: column;
    width: 100%;
    max-width: 360px;
    gap: 10px;
  }

  .hero-cta-centered .btn {
    width: 100%;
    font-size: 0.95rem !important;
    padding: 12px 18px !important;
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  font-weight: 700;
  font-size: 0.95rem;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  line-height: 1.2;
}

.btn-primary {
  background-color: var(--accent);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(201, 42, 42, 0.35);
}

.btn-primary:hover {
  background-color: var(--accent-hover);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(201, 42, 42, 0.45);
}

.btn-secondary {
  background-color: #ffffff;
  color: var(--primary);
  box-shadow: var(--shadow-md);
}

.btn-secondary:hover {
  background-color: var(--bg-subtle);
  color: var(--primary-dark);
  transform: translateY(-2px);
}

.btn-zalo-solid {
  background-color: var(--zalo);
  color: #fff;
}

.btn-zalo-solid:hover {
  background-color: var(--zalo-hover);
  color: #fff;
}

.btn-success {
  background-color: var(--success);
  color: #fff;
}

.btn-success:hover {
  background-color: #15803d;
  color: #fff;
}

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

.btn-outline:hover {
  background: var(--bg-subtle);
  border-color: var(--text-muted);
}

.btn-block {
  width: 100%;
}

/* Quick Order Card in Hero (Legacy compatibility) */
.hero-card {
  background: #ffffff;
  color: var(--secondary);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  box-shadow: var(--shadow-xl);
  border: 1px solid rgba(255, 255, 255, 0.8);
}

.hero-card-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 4px;
}

.hero-card-subtitle {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: var(--space-md);
}

/* Modern 3-Step Fast Order Workflow Card in Hero */
.hero-process-card {
  background: #ffffff;
  color: var(--secondary);
  border-radius: var(--radius-lg);
  padding: 24px 26px;
  box-shadow: 0 20px 45px -12px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.25);
  position: relative;
  overflow: hidden;
}

.hero-process-header {
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}

.process-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #eff6ff;
  color: #1d4ed8;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  padding: 4px 12px;
  border-radius: 9999px;
  margin-bottom: 8px;
  border: 1px solid #bfdbfe;
}

.process-badge svg {
  color: #f59e0b;
}

.hero-process-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 4px;
  line-height: 1.3;
}

.hero-process-subtitle {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0;
}

.process-timeline {
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
  margin-bottom: 18px;
}

.process-step {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  position: relative;
}

.process-step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 36px;
  left: 17px;
  bottom: -12px;
  width: 2px;
  background: #e2e8f0;
}

.process-number {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.95rem;
  color: #ffffff;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.12);
  z-index: 1;
}

.process-number-1 {
  background: linear-gradient(135deg, #0068ff 0%, #0050c7 100%);
}

.process-number-2 {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

.process-number-3 {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.process-content {
  flex: 1;
}

.process-step-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--secondary);
  margin-bottom: 3px;
  line-height: 1.35;
}

.process-step-desc {
  font-size: 0.84rem;
  color: var(--text);
  line-height: 1.5;
  margin: 0;
}

.process-step-desc strong {
  color: var(--primary);
}

.process-trust-box {
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
  border-radius: var(--radius-md);
  padding: 12px 14px;
  margin-bottom: 16px;
}

.process-trust-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.process-trust-item {
  font-size: 0.82rem;
  color: var(--secondary);
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
}

.process-trust-item svg {
  flex-shrink: 0;
}

.hero-process-cta {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.order-form-group {
  margin-bottom: var(--space-md);
}

.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--secondary);
  margin-bottom: 6px;
}

.form-control {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background-color: var(--bg-surface);
  color: var(--secondary);
  transition: var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(15, 76, 129, 0.15);
}

textarea.form-control {
  resize: vertical;
  min-height: 80px;
}

/* Section Common Styles */
.section {
  padding: var(--space-2xl) 0;
}

.section-bg-subtle {
  background-color: var(--bg-subtle);
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto var(--space-2xl) auto;
}

.section-title {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--secondary);
  position: relative;
  display: inline-block;
  padding-bottom: 12px;
  margin-bottom: 8px;
}

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

.section-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background-color: var(--accent);
  border-radius: 2px;
}

.section-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin: 0;
}

/* Categories Grid */
.category-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-md);
}

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

@media (min-width: 1024px) {
  .category-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-lg);
  }
}

.category-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  text-align: center;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  box-shadow: var(--shadow-sm);
}

.category-card:hover {
  transform: translateY(-4px);
  border-color: var(--primary);
  box-shadow: var(--shadow-lg);
}

.category-icon-box {
  width: 64px;
  height: 64px;
  background-color: var(--primary-light);
  color: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-md);
  transition: var(--transition);
}

.category-card:hover .category-icon-box {
  background-color: var(--primary);
  color: #fff;
}

.category-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--secondary);
  margin-bottom: 4px;
}

.category-badge {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* Product Cards Grid */
.product-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-md);
}

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

@media (min-width: 1024px) {
  .product-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-lg);
  }
}

.product-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
}

.product-card:hover {
  transform: translateY(-4px);
  border-color: #cbd5e1;
  box-shadow: var(--shadow-lg);
}

.product-card-img-wrap {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background-color: #f1f5f9;
  position: relative;
}

.product-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

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

.product-card-body {
  padding: var(--space-md);
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.product-card-cat {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 4px;
}

.product-card-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--secondary);
  margin-bottom: 8px;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.7em;
}

.product-card:hover .product-card-title {
  color: var(--primary);
}

.product-card-price {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--accent);
  margin-top: auto;
  margin-bottom: var(--space-sm);
}

.product-card-action {
  margin-top: 4px;
}

/* Feature & Trust Grid */
.trust-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
}

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

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

.trust-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-sm);
  box-shadow: var(--shadow-sm);
}

.trust-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background-color: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.trust-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--secondary);
  margin: 0;
}

.trust-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.5;
}

/* Process Section */
.process-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
  counter-reset: process-step;
}

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

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

.process-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  position: relative;
  box-shadow: var(--shadow-sm);
}

.process-step-num {
  counter-increment: process-step;
  position: absolute;
  top: -14px;
  left: 20px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: var(--accent);
  color: #fff;
  font-weight: 800;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(201, 42, 42, 0.4);
}

.process-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--secondary);
  margin-top: 6px;
  margin-bottom: 6px;
}

.process-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.5;
}

/* Pricing Table */
.price-table-wrap {
  overflow-x: auto;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  margin-bottom: var(--space-lg);
}

.price-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  min-width: 600px;
}

.price-table th {
  background-color: var(--primary);
  color: #fff;
  padding: 14px 16px;
  font-weight: 700;
  font-size: 0.95rem;
  vertical-align: middle;
}

.price-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
  vertical-align: middle;
}

.price-table tr:last-child td {
  border-bottom: none;
}

.price-table tr:hover td {
  background-color: var(--bg-subtle);
}

/* FAQ Accordion */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.faq-item {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.faq-question {
  width: 100%;
  background: transparent;
  border: none;
  padding: 16px 20px;
  text-align: left;
  font-size: 1rem;
  font-weight: 700;
  color: var(--secondary);
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  transition: var(--transition);
}

.faq-question:hover {
  background-color: var(--bg-subtle);
  color: var(--primary);
}

.faq-icon {
  font-size: 1.2rem;
  font-weight: 400;
  transition: transform 0.2s ease;
}

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

.faq-answer {
  padding: 0 20px 16px 20px;
  font-size: 0.92rem;
  color: var(--text);
  line-height: 1.6;
  display: none;
}

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

/* Page Header & Breadcrumb */
.page-header {
  background-color: var(--primary-light);
  border-bottom: 1px solid var(--border);
  padding: var(--space-xl) 0;
  margin-bottom: var(--space-xl);
}

.page-title {
  font-size: 1.75rem;
  color: var(--secondary);
  margin-bottom: var(--space-xs);
}

@media (min-width: 768px) {
  .page-title {
    font-size: 2.2rem;
  }
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text-muted);
  list-style: none;
  margin: 0;
  padding: 0;
}

.breadcrumb a {
  color: var(--primary);
  text-decoration: none;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

.breadcrumb-separator {
  color: var(--text-light);
}

/* Product Detail Page Specifics */
.product-detail-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
  margin-bottom: var(--space-2xl);
}

@media (min-width: 900px) {
  .product-detail-layout {
    grid-template-columns: 1fr 1.2fr;
  }
}

.product-gallery {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-md);
}

.main-product-img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: var(--radius-sm);
  margin-bottom: var(--space-sm);
}

.product-features-box {
  background: #fdf2f8;
  border: 1px solid #fbcfe8;
  border-radius: var(--radius-md);
  padding: var(--space-md);
  margin-top: var(--space-md);
}

.feature-check-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.feature-check-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.88rem;
  margin-bottom: 6px;
  color: #831843;
}

.product-info-panel h1 {
  font-size: 1.6rem;
  margin-bottom: var(--space-xs);
}

.product-price-tag {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--accent);
  margin-bottom: var(--space-md);
  display: flex;
  align-items: center;
  gap: 12px;
}

.product-sales-count {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
  background: var(--bg-subtle);
  padding: 4px 10px;
  border-radius: var(--radius-full);
}

.shipping-notice-box {
  background-color: #ecfdf5;
  border: 1px solid #a7f3d0;
  border-radius: var(--radius-md);
  padding: 12px 16px;
  font-size: 0.88rem;
  color: #065f46;
  margin-bottom: var(--space-md);
}

/* Product Guarantee & Service Box (Replaces mini form) */
.product-guarantee-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-md);
  padding: 18px 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.product-guarantee-title {
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 10px;
  border-bottom: 1px solid #e2e8f0;
}

.product-guarantee-list {
  list-style: none;
  padding: 0;
  margin: 0 0 16px 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.product-guarantee-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--secondary);
}

.product-guarantee-icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  border-radius: 50%;
  background: #eff6ff;
  color: #0068ff;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
}

.product-guarantee-footer {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: 0.84rem;
  color: var(--text-muted);
  line-height: 1.5;
  text-align: center;
}

.product-guarantee-footer strong {
  color: var(--accent);
}

/* Article / Rich Content Typography */
.article-content {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-xl);
  line-height: 1.8;
  font-size: 1rem;
  color: var(--text);
  box-shadow: var(--shadow-sm);
}

@media (max-width: 768px) {
  .article-content {
    padding: var(--space-md);
  }
}

.article-meta-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  padding-bottom: 14px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--border);
  font-size: 0.88rem;
  color: var(--text-muted);
}

.article-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.article-meta-item svg {
  color: var(--primary);
  flex-shrink: 0;
}

.article-content h2 {
  font-size: 1.35rem;
  margin-top: 2rem;
  margin-bottom: 0.85rem;
  color: var(--primary);
  border-left: 4px solid var(--accent);
  padding-left: 12px;
  line-height: 1.4;
}

.article-content h3 {
  font-size: 1.15rem;
  margin-top: 1.5rem;
  margin-bottom: 0.65rem;
  color: var(--secondary);
  font-weight: 700;
  line-height: 1.4;
}

.article-content h4 {
  font-size: 1.02rem;
  margin-top: 1.2rem;
  margin-bottom: 0.5rem;
  color: var(--secondary);
  font-weight: 700;
}

.article-content p {
  margin-bottom: 1rem;
  line-height: 1.8;
  color: var(--text);
}

.article-content strong,
.article-content b {
  color: var(--secondary);
}

.article-content ul,
.article-content ol {
  margin-bottom: 1.25rem;
  padding-left: 24px;
}

.article-content li {
  margin-bottom: 8px;
  line-height: 1.7;
}

.article-content img {
  border-radius: var(--radius-md);
  margin: var(--space-md) auto;
  box-shadow: var(--shadow-sm);
  display: block;
  max-width: 100%;
  height: auto;
}

.article-lead {
  font-size: 1.05rem;
  line-height: 1.8;
  color: #1e293b;
  background: #f8fafc;
  padding: 16px 20px;
  border-left: 4px solid var(--primary);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  margin-bottom: 24px;
}

.article-callout {
  background: #f8fafc;
  border-left: 4px solid var(--primary);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 16px 20px;
  margin: 20px 0;
  box-shadow: var(--shadow-sm);
}

.article-callout-warning {
  background: #fffbeb;
  border-left-color: #f59e0b;
}

.article-callout-success {
  background: #f0fdf4;
  border-left-color: #16a34a;
}

.article-callout-info {
  background: #eff6ff;
  border-left-color: #3b82f6;
}

.article-callout-title {
  font-weight: 700;
  color: var(--secondary);
  margin-bottom: 6px;
  font-size: 0.98rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.article-img-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 12px;
  margin: 24px auto;
  text-align: center;
  max-width: 720px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

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

.article-img-card img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-sm);
  margin: 0 auto 8px;
}

.article-img-card .img-caption {
  font-size: 0.88rem;
  color: var(--text-muted);
  font-style: italic;
  margin: 0;
  padding: 4px 0 0;
}

/* Sidebar Layout */
.layout-with-sidebar {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
}

@media (min-width: 992px) {
  .layout-with-sidebar {
    grid-template-columns: 280px 1fr;
  }
}

.sidebar-widget {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  margin-bottom: var(--space-lg);
  box-shadow: var(--shadow-sm);
}

.widget-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--secondary);
  border-bottom: 2px solid var(--primary-light);
  padding-bottom: 8px;
  margin-bottom: var(--space-md);
  position: relative;
}

.widget-title::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 40px;
  height: 2px;
  background-color: var(--primary);
}

.widget-menu {
  list-style: none;
  padding: 0;
  margin: 0;
}

.widget-menu-item {
  border-bottom: 1px dashed var(--border);
}

.widget-menu-item:last-child {
  border-bottom: none;
}

.widget-menu-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  color: var(--text);
  font-size: 0.9rem;
}

.widget-menu-link:hover {
  color: var(--primary);
  padding-left: 4px;
}

/* Footer */
.site-footer {
  background-color: #0b1e33;
  color: #cbd5e1;
  font-size: 0.9rem;
  padding-top: var(--space-2xl);
  margin-top: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
  padding-bottom: var(--space-2xl);
}

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

@media (min-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
  }
}

.footer-col h3, .footer-col h4 {
  color: #ffffff;
  font-size: 1.1rem;
  margin-bottom: var(--space-md);
  position: relative;
  padding-bottom: 8px;
}

.footer-col h3::after, .footer-col h4::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 36px;
  height: 2px;
  background-color: var(--accent);
}

.footer-desc {
  line-height: 1.6;
  margin-bottom: var(--space-md);
  color: #94a3b8;
}

.footer-contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.footer-contact-item a {
  color: #f1f5f9;
}

.footer-contact-item a:hover {
  color: #ffd166;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-links a {
  color: #94a3b8;
}

.footer-links a:hover {
  color: #ffffff;
  padding-left: 4px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 16px 0;
  text-align: center;
  font-size: 0.82rem;
  color: #64748b;
}

/* Modal Popup */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  z-index: 3000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: var(--space-md);
}

.modal-backdrop.open {
  display: flex;
}

.modal-box {
  background: #ffffff;
  border-radius: var(--radius-lg);
  max-width: 500px;
  width: 100%;
  padding: var(--space-xl);
  box-shadow: var(--shadow-xl);
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: var(--bg-subtle);
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.2rem;
  color: var(--secondary);
}

.modal-title {
  font-size: 1.3rem;
  color: var(--primary);
  margin-bottom: 4px;
}

/* Showcase Section Styling */
.showcase-section {
  padding: 40px 0;
  border-bottom: 1px solid var(--border);
}

.showcase-section:nth-child(even) {
  background-color: var(--bg-subtle);
}

.showcase-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  flex-wrap: wrap;
  gap: 12px;
  border-bottom: 2px solid var(--primary-light);
  padding-bottom: 10px;
}

.showcase-title {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--primary);
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.showcase-title::before {
  content: "";
  display: inline-block;
  width: 5px;
  height: 22px;
  background-color: var(--accent);
  border-radius: 3px;
}

.showcase-view-all {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--primary);
  background-color: #ffffff;
  border: 1px solid var(--border);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  transition: var(--transition);
}

.showcase-view-all:hover {
  background-color: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
  transform: translateX(3px);
}

.showcase-intro {
  font-size: 0.95rem;
  color: var(--text);
  line-height: 1.6;
  margin-bottom: 20px;
  max-width: 960px;
}

/* Home Banners */
.home-hero-banners {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 30px;
}

.home-banner-img {
  width: 100%;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
}

/* District Chips */
.district-grid-chips {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 20px;
}

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

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

.district-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #ffffff;
  border: 1px solid var(--border);
  padding: 12px 16px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--secondary);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  min-width: 0;
  overflow: hidden;
}

@media (max-width: 520px) {
  .district-grid-chips {
    gap: 8px;
  }

  .district-chip {
    padding: 9px 10px;
    font-size: 0.8rem;
    gap: 6px;
    white-space: normal;
    word-break: break-word;
    line-height: 1.25;
  }
}

.district-chip svg {
  flex-shrink: 0;
  color: var(--primary);
  transition: var(--transition);
}

.district-chip:hover {
  border-color: var(--primary);
  color: var(--primary);
  background-color: var(--primary-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.district-chip:hover svg {
  transform: scale(1.15);
}

/* News Archive Cards */
.news-archive-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

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

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

.news-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.news-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: #cbd5e1;
}

.news-card-thumb-wrap {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #f1f5f9;
  position: relative;
}

.news-card-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.news-card:hover .news-card-thumb {
  transform: scale(1.05);
}

.news-card-date-badge {
  position: absolute;
  bottom: 10px;
  left: 10px;
  background: rgba(15, 76, 129, 0.9);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  backdrop-filter: blur(4px);
}

.news-card-body {
  padding: 18px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.news-card-title {
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 10px;
  color: var(--secondary);
}

.news-card-title a {
  color: var(--secondary);
}

.news-card-title a:hover {
  color: var(--accent);
}

.news-card-excerpt {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 16px;
  flex-grow: 1;
}

.news-card-readmore {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--primary);
}

.news-card-readmore:hover {
  color: var(--accent);
}

/* ==========================================================================
   Price Page & Rich Article Enhancements
   ========================================================================== */
.article-img-wrap {
  text-align: center;
  margin: 24px 0;
}

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

.rounded-img {
  border-radius: var(--radius-md);
}

.shadow-img {
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
}

.img-caption {
  font-size: 0.86rem;
  color: var(--text-muted);
  font-style: italic;
  margin-top: 8px;
  text-align: center;
}

.price-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: var(--radius-full);
  letter-spacing: 0.3px;
  white-space: nowrap;
}

.price-badge-hot {
  background: #fee2e2;
  color: #b91c1c;
}

.price-badge-popular {
  background: #e0e7ff;
  color: #3730a3;
}

.price-badge-fast {
  background: #dcfce7;
  color: #15803d;
}

.price-badge-legal {
  background: #fef3c7;
  color: #92400e;
}

.price-note-box {
  background: #f0fdf4;
  border-left: 4px solid #16a34a;
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  margin: 18px 0;
  font-size: 0.92rem;
  color: #166534;
  line-height: 1.5;
}

.toc-container {
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 18px 22px;
  margin: 24px 0;
}

.toc-title {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--secondary);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.toc-list {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.toc-list li {
  margin-bottom: 8px;
  font-size: 0.92rem;
}

.toc-list li a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
}

.toc-list li a:hover {
  color: var(--accent);
  text-decoration: underline;
}

.toc-sublist {
  list-style: none;
  padding-left: 20px;
  margin-top: 6px;
}

.toc-sublist li {
  margin-bottom: 6px;
  font-size: 0.88rem;
}

.procedure-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin: 20px 0;
}

.procedure-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.procedure-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary);
}

.procedure-step-num {
  display: inline-flex;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--primary-light);
  color: var(--primary);
  font-weight: 800;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  font-size: 0.95rem;
}

.procedure-card-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--secondary);
  margin-bottom: 8px;
}

.procedure-card-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin: 0;
}

.benefit-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin: 20px 0;
}

.benefit-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  transition: var(--transition);
}

.benefit-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-sm);
}

.benefit-icon {
  color: #16a34a;
  flex-shrink: 0;
  margin-top: 2px;
}

.benefit-content h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--secondary);
  margin-bottom: 4px;
}

.benefit-content p {
  font-size: 0.86rem;
  color: var(--text-muted);
  line-height: 1.45;
  margin: 0;
}

.article-cta-box {
  background: linear-gradient(135deg, #0f4c81 0%, #1e3a8a 100%);
  color: #ffffff;
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  margin: 32px 0;
  text-align: center;
  box-shadow: var(--shadow-md);
}

.article-cta-box h3 {
  color: #ffffff;
  margin-bottom: 8px;
  font-size: 1.35rem;
}

.article-cta-box p {
  color: #e2e8f0;
  font-size: 0.95rem;
  max-width: 620px;
  margin: 0 auto 20px;
  line-height: 1.5;
}

.article-cta-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

/* ==========================================================================
   Contact Page Enhancements
   ========================================================================== */
.contact-intro-badge {
  display: inline-block;
  background: var(--primary-light);
  color: var(--primary);
  font-weight: 700;
  font-size: 0.82rem;
  padding: 4px 14px;
  border-radius: var(--radius-full);
  margin-bottom: 14px;
}

.contact-branches-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-bottom: 24px;
}

.branch-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 22px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: var(--transition);
}

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

.branch-card.featured {
  border-color: var(--primary);
  border-width: 2px;
  background: #fafcff;
}

.branch-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid #f1f5f9;
}

.branch-card-title {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--secondary);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.branch-tag {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  background: #e0f2fe;
  color: #0369a1;
}

.branch-tag.tag-main {
  background: #dbeafe;
  color: #1d4ed8;
}

.branch-info-list {
  list-style: none;
  padding: 0;
  margin: 0 0 16px 0;
  font-size: 0.9rem;
  line-height: 1.6;
}

.branch-info-item {
  display: flex;
  gap: 10px;
  margin-bottom: 10px;
  align-items: flex-start;
}

.branch-info-item svg {
  flex-shrink: 0;
  color: var(--primary);
  margin-top: 3px;
}

.branch-old-notice {
  background: #fff1f2;
  border: 1px dashed #f43f5e;
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: 0.85rem;
  color: #9f1239;
  margin-top: auto;
  line-height: 1.45;
}

.contact-map-wrapper {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  margin-bottom: 24px;
  background: #ffffff;
}

.contact-map-wrapper iframe {
  display: block;
  width: 100%;
  border: none;
}

.map-actions-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 12px 18px;
  background: #f8fafc;
  border-top: 1px solid var(--border);
}

.contact-guide-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
  margin: 24px 0;
}

.contact-guide-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
  display: flex;
  flex-direction: column;
}

.contact-guide-card h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--secondary);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.contact-guide-card p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0;
}

/* About Us Page Components */
.about-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--primary-light);
  color: var(--primary);
  font-weight: 700;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  margin-bottom: 12px;
  border: 1px solid rgba(15, 76, 129, 0.15);
}

.about-intro-highlight {
  background: linear-gradient(135deg, #f8fafc 0%, #edf4fa 100%);
  border-left: 4px solid var(--primary);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 18px 22px;
  margin-bottom: 24px;
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--secondary);
  font-weight: 500;
}

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

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

.about-stat-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px 16px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.about-stat-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
}

.about-stat-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary);
}

.about-stat-number {
  font-size: 2rem;
  font-weight: 900;
  color: var(--primary);
  line-height: 1.1;
  margin-bottom: 4px;
}

.about-stat-label {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--secondary);
  margin-bottom: 4px;
}

.about-stat-desc {
  font-size: 0.76rem;
  color: var(--text-muted);
  line-height: 1.3;
}

.about-values-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  margin: 24px 0;
}

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

.about-value-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 22px 18px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.about-value-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
}

.about-value-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}

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

.about-value-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0;
}

.about-gallery-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin: 20px 0;
}

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

.about-gallery-item {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  background: #ffffff;
}

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

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

.about-gallery-caption {
  padding: 10px 12px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--secondary);
  text-align: center;
  background: #fafcff;
  border-top: 1px solid var(--border-light);
}

.about-services-catalog {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin: 20px 0;
}

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

.about-service-item {
  display: flex;
  gap: 14px;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px;
  transition: var(--transition);
  text-decoration: none;
  color: inherit;
}

.about-service-item:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.about-service-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: #eff6ff;
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}

.about-service-body h4 {
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--secondary);
  margin-bottom: 4px;
}

.about-service-body p {
  font-size: 0.84rem;
  color: var(--text-muted);
  line-height: 1.4;
  margin: 0;
}

.about-commit-box {
  background: linear-gradient(135deg, #0a355c 0%, #0f4c81 100%);
  color: #ffffff;
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  margin: 28px 0;
  box-shadow: var(--shadow-md);
}

.about-commit-box h3 {
  color: #ffffff;
  font-size: 1.35rem;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.about-commit-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

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

.about-commit-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.92rem;
  line-height: 1.5;
  color: #e2e8f0;
}

.about-commit-item svg {
  flex-shrink: 0;
  color: #4ade80;
  margin-top: 2px;
}


