/* ==========================================================================
   OPTIMA HEALTHCARE SERVICES - CORE DESIGN SYSTEM & STYLESHEET
   Official Brand Palette: Deep Medical Navy (#0e2246) & Medical Crimson Red (#cc1e28)
   Google Maps Verified Location: Hyderabad
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,400;1,600&family=Outfit:wght@400;500;600;700;800&display=swap');

:root {
  /* Brand Primary: Deep Medical Navy */
  --primary: #0e2246;
  --primary-dark: #07152d;
  --primary-light: #1b3d75;
  --primary-soft: #edf3fb;
  --primary-glow: rgba(14, 34, 70, 0.16);

  /* Brand Accent: Medical Crimson Red */
  --accent: #cc1e28;
  --accent-hover: #a8151d;
  --accent-soft: #fef2f2;
  --accent-border: #fecaca;
  --accent-glow: rgba(204, 30, 40, 0.18);

  /* Backgrounds */
  --bg-page: #f8fafc;
  --bg-card: #ffffff;
  --bg-secondary: #f1f5f9;

  /* Typography & Slate */
  --text-main: #0f172a;
  --text-muted: #475569;
  --text-light: #94a3b8;
  --text-white: #ffffff;

  /* Borders & Dividers */
  --border-light: #e2e8f0;
  --border-subtle: #edf2f7;

  /* Status Colors */
  --success: #059669;
  --success-bg: #ecfdf5;
  --warning: #d97706;
  --danger: #cc1e28;

  --radius-xs: 4px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-full: 9999px;

  --shadow-sm: 0 1px 3px rgba(14, 34, 70, 0.05);
  --shadow-md: 0 6px 20px rgba(14, 34, 70, 0.08);
  --shadow-lg: 0 14px 35px rgba(14, 34, 70, 0.12);
  --shadow-xl: 0 22px 50px rgba(14, 34, 70, 0.16);

  --font-main: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --container-max: 1240px;
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

body {
  line-height: 1.6;
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
}

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

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

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

button {
  cursor: pointer;
  border: none;
  background: none;
}

ul,
ol {
  list-style: none;
}

/* --------------------------------------------------------------------------
   CONTAINER & SECTIONS
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

.section {
  padding: 48px 0;
  position: relative;
}

.section-sm {
  padding: 32px 0;
}

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

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

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

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

.section-header {
  margin-bottom: 28px;
}

.section-header.text-center {
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}

.badge-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background-color: var(--primary-soft);
  color: var(--primary);
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  border-radius: var(--radius-full);
  margin-bottom: 12px;
}

.badge-tag.red {
  background-color: var(--accent-soft);
  color: var(--accent);
  border: 1px solid var(--accent-border);
}

.section-title {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.25;
  margin-bottom: 12px;
  letter-spacing: -0.5px;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* --------------------------------------------------------------------------
   BUTTONS
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-weight: 700;
  font-size: 0.9375rem;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  transition: all var(--transition-base);
  text-align: center;
  white-space: nowrap;
}

.btn-primary {
  background-color: var(--primary);
  color: #ffffff;
  box-shadow: 0 4px 12px var(--primary-glow);
}

.btn-primary:hover {
  background-color: var(--primary-light);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px var(--primary-glow);
}

.btn-accent {
  background-color: var(--accent);
  color: #ffffff;
  box-shadow: 0 4px 12px var(--accent-glow);
}

.btn-accent:hover {
  background-color: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px var(--accent-glow);
}

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

.btn-outline:hover {
  background-color: var(--primary);
  color: #ffffff;
  transform: translateY(-2px);
}

.btn-outline-red {
  border: 1.5px solid var(--accent);
  color: var(--accent);
  background-color: transparent;
}

.btn-outline-red:hover {
  background-color: var(--accent);
  color: #ffffff;
}

.btn-lg {
  padding: 15px 30px;
  font-size: 1.05rem;
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.84rem;
}

/* --------------------------------------------------------------------------
   TOP BAR & NAVIGATION HEADER
   -------------------------------------------------------------------------- */
.top-notice-bar {
  background-color: var(--primary-dark);
  color: #cbd5e1;
  font-size: 0.8125rem;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.top-notice-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.top-notice-left {
  display: flex;
  align-items: center;
  gap: 20px;
}

.top-notice-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.top-notice-item svg {
  width: 14px;
  height: 14px;
  color: var(--accent);
}

.metro-pill {
  background-color: rgba(204, 30, 40, 0.18);
  color: #fca5a5;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--radius-xs);
  font-size: 0.75rem;
  border: 1px solid rgba(204, 30, 40, 0.3);
}

.rating-pill {
  background-color: #fef3c7;
  color: #92400e;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--radius-xs);
  font-size: 0.75rem;
}

.top-notice-right a:hover {
  color: #ffffff;
}

/* Top notice bar removed as requested */
.top-notice-bar {
  display: none !important;
}

/* Main Site Header */
.site-header {
  background-color: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid var(--border-light);
  transition: all var(--transition-fast);
}

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

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 98px;
}

/* Logo Image & Text */
.brand-logo {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}

.brand-logo-img {
  height: 78px;
  max-height: 84px;
  width: auto;
  object-fit: contain;
  background: transparent;
  transition: transform var(--transition-fast);
}

.brand-logo:hover .brand-logo-img {
  transform: scale(1.02);
}

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

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

.brand-name span {
  color: var(--accent);
}

.brand-tagline {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: var(--accent);
  text-transform: uppercase;
}

/* Nav Menu */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 26px;
}

.nav-link {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-muted);
  position: relative;
  padding: 6px 0;
  transition: color var(--transition-fast);
}

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

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2.5px;
  background-color: var(--accent);
  border-radius: var(--radius-full);
}

/* Header Actions Right */
.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.phone-quick-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--primary);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  background-color: var(--primary-soft);
  transition: all var(--transition-fast);
}

.phone-quick-btn:hover {
  background-color: var(--primary);
  color: #ffffff;
}

.phone-quick-btn svg {
  width: 16px;
  height: 16px;
  color: var(--accent);
}

.phone-quick-btn:hover svg {
  color: #ffffff;
}

/* Hamburger & Mobile Drawer */
.mobile-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 44px;
  height: 44px;
  background-color: var(--primary-soft);
  border-radius: var(--radius-sm);
  gap: 5px;
  cursor: pointer;
}

.mobile-toggle span {
  width: 22px;
  height: 2px;
  background-color: var(--primary);
  transition: all var(--transition-base);
}

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

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

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

.mobile-drawer {
  position: fixed;
  top: 84px;
  left: 0;
  width: 100%;
  height: calc(100vh - 84px);
  background-color: #ffffff;
  border-top: 1px solid var(--border-light);
  transform: translateX(-100%);
  transition: transform var(--transition-base);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  padding: 24px 20px;
  overflow-y: auto;
  box-shadow: 0 10px 30px rgba(14, 34, 70, 0.15);
}

.mobile-drawer.open {
  transform: translateX(0);
}

.mobile-drawer .nav-menu {
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  gap: 8px;
  width: 100%;
  margin-bottom: 24px;
}

.mobile-drawer .nav-link {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--primary);
  width: 100%;
  padding: 12px 16px;
  border-radius: 10px;
  border: 1px solid rgba(14, 34, 70, 0.06);
  background: #f8fafc;
  transition: all 0.2s ease;
  text-decoration: none;
}

.mobile-drawer .nav-link:hover,
.mobile-drawer .nav-link.active {
  background: var(--primary-soft);
  color: var(--primary);
  font-weight: 700;
  border-color: rgba(14, 34, 70, 0.18);
}

.mobile-drawer-footer {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--border-subtle);
}

/* --------------------------------------------------------------------------
   HERO SECTION (Matching Screen 01)
   -------------------------------------------------------------------------- */
.hero-section {
  padding: 38px 0 44px 0;
  background: linear-gradient(180deg, #edf3fb 0%, #f8fafc 100%);
  position: relative;
  overflow: hidden;
}

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

.hero-tag {
  color: var(--accent);
  font-size: 0.8125rem;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 16px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.hero-tag::before {
  content: '';
  display: inline-block;
  width: 24px;
  height: 2px;
  background-color: var(--accent);
}

.hero-title {
  font-size: 3.25rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.15;
  letter-spacing: -1px;
  margin-bottom: 20px;
}

.hero-subtitle {
  font-size: 1.125rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 32px;
  max-width: 540px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-media-wrapper {
  position: relative;
}

.hero-image-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  border: 4px solid #ffffff;
}

.hero-image-card img {
  width: 100%;
  height: 480px;
  object-fit: cover;
  transition: transform 0.6s ease;
}

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

.hero-floating-badge {
  position: absolute;
  bottom: -20px;
  left: -20px;
  background-color: #ffffff;
  border-radius: var(--radius-md);
  padding: 16px 22px;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 14px;
  border: 1px solid var(--border-light);
}

.badge-avatar-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  background-color: var(--accent-soft);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
}

.floating-badge-text strong {
  display: block;
  font-size: 1.125rem;
  color: var(--primary);
  line-height: 1.2;
}

.floating-badge-text span {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* ==========================================================================
   HERO PACKAGES 1 AND 1/2 SLIDING CAROUSEL (Dynamic from packages.json)
   ========================================================================== */
.hero-packages-hero {
  padding: 34px 0 38px 0;
  background: linear-gradient(180deg, #edf4fb 0%, #f8fafc 100%);
  position: relative;
  overflow: hidden;
}

.hero-top-container {
  margin-bottom: 18px;
}

.hero-header-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.hero-intro-text {
  flex: 1;
  max-width: 680px;
}

/* Quick Diagnostic Assistance & Booking Desk Card */
.hero-quick-card {
  width: 380px;
  max-width: 100%;
  flex-shrink: 0;
  background: linear-gradient(145deg, #ffffff 0%, #f4f8fe 100%);
  border: 1.5px solid rgba(14, 34, 70, 0.12);
  border-radius: 20px;
  box-shadow: 0 12px 32px rgba(14, 34, 70, 0.08);
  padding: 20px 22px;
  position: relative;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.hero-quick-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 38px rgba(14, 34, 70, 0.12);
  border-color: rgba(14, 34, 70, 0.22);
}

.hero-quick-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.quick-status-dot {
  width: 10px;
  height: 10px;
  background-color: #10b981;
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  animation: pulseGreen 2s infinite;
  flex-shrink: 0;
}

@keyframes pulseGreen {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  }

  70% {
    transform: scale(1);
    box-shadow: 0 0 0 7px rgba(16, 185, 129, 0);
  }

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

.quick-badge {
  font-size: 0.7rem;
  font-weight: 800;
  color: #047857;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  display: block;
}

.quick-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--primary);
  margin: 2px 0 0 0;
  line-height: 1.25;
}

.quick-desc {
  font-size: 0.8125rem;
  color: #475569;
  line-height: 1.45;
  margin: 0 0 14px 0;
}

.hero-quick-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 12px;
}

.quick-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 0.8125rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.quick-action-btn svg {
  width: 18px !important;
  height: 18px !important;
  max-width: 18px !important;
  max-height: 18px !important;
  min-width: 18px !important;
  min-height: 18px !important;
  flex-shrink: 0 !important;
}

.quick-action-btn.phone {
  background-color: var(--primary);
  color: #ffffff;
  box-shadow: 0 3px 8px rgba(14, 34, 70, 0.2);
}

.quick-action-btn.phone:hover {
  background-color: var(--primary-light);
  transform: translateY(-1px);
}

.quick-action-btn.whatsapp {
  background-color: #25d366;
  color: #ffffff;
  box-shadow: 0 3px 8px rgba(37, 211, 102, 0.25);
}

.quick-action-btn.whatsapp:hover {
  background-color: #1ebc57;
  transform: translateY(-1px);
}

.quick-features {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.72rem;
  font-weight: 700;
  color: #059669;
  border-top: 1px dashed rgba(14, 34, 70, 0.12);
  padding-top: 10px;
  flex-wrap: wrap;
}

@media (max-width: 991px) {
  .hero-header-flex {
    flex-direction: column;
    align-items: stretch;
    gap: 20px;
    width: 100%;
  }

  .hero-intro-text {
    width: 100%;
    max-width: 100%;
  }

  .hero-quick-card {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    box-sizing: border-box !important;
  }
}

@media (max-width: 440px) {
  .hero-quick-actions {
    grid-template-columns: 1fr !important;
    gap: 8px !important;
  }

  .quick-action-btn {
    width: 100% !important;
  }
}


.hero-tag .tag-pulse {
  display: inline-block;
  width: 8px;
  height: 8px;
  background-color: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(204, 30, 40, 0.7);
  animation: pulseTag 2s infinite;
  margin-right: 4px;
}

@keyframes pulseTag {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(204, 30, 40, 0.7);
  }

  70% {
    transform: scale(1);
    box-shadow: 0 0 0 8px rgba(204, 30, 40, 0);
  }

  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(204, 30, 40, 0);
  }
}

.hero-title span {
  color: var(--accent);
}

/* Slider Track Wrapper */
.hero-slider-wrapper {
  position: relative;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  margin-top: 10px;
}

.hero-slider-container {
  position: relative;
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

.hero-slider-viewport {
  overflow: hidden;
  width: 100%;
  padding: 10px 4px 18px 4px;
  cursor: grab;
  user-select: none;
}

.hero-slider-viewport.grabbing {
  cursor: grabbing;
}

.hero-slider-track {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: stretch !important;
  gap: 24px;
  transition: transform 0.55s cubic-bezier(0.25, 1, 0.5, 1);
  will-change: transform;
}

/* 1 and 1/2 Visible Card Sizing */
@media (min-width: 992px) {
  .hero-package-slide {
    width: calc((100% - 24px) / 1.5);
    /* Exactly 1.5 cards visible in viewport */
    flex-shrink: 0;
  }
}

@media (min-width: 641px) and (max-width: 991px) {
  .hero-package-slide {
    width: calc((100% - 20px) / 1.32);
    flex-shrink: 0;
  }
}

@media (max-width: 640px) {
  .hero-package-slide {
    width: 88%;
    flex-shrink: 0;
  }
}

/* Individual Package Banner Card (Matching Reference Screenshot) */
.hero-package-slide {
  display: flex;
  height: auto;
}

.pkg-banner-card {
  position: relative;
  background: linear-gradient(135deg, #f0f7ff 0%, #ffffff 42%, #eef5fc 100%);
  border: 1.5px solid rgba(14, 34, 70, 0.08);
  border-radius: 22px;
  box-shadow: 0 10px 30px rgba(14, 34, 70, 0.07);
  display: flex;
  overflow: hidden;
  width: 100%;
  min-height: 350px;
  transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.pkg-banner-card:hover {
  box-shadow: 0 16px 42px rgba(14, 34, 70, 0.12);
  border-color: rgba(14, 34, 70, 0.18);
}

/* Top-Left Discount Banner Ribbon */
.pkg-discount-ribbon {
  position: absolute;
  top: 0;
  left: 0;
  background: linear-gradient(135deg, #e11d48 0%, #cc1e28 100%);
  color: #ffffff;
  padding: 6px 16px 7px 16px;
  border-radius: 20px 0 14px 0;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.4px;
  box-shadow: 0 4px 12px rgba(204, 30, 40, 0.25);
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 5px;
}

/* Center Glow (soft decorative heart/circle gradient from reference image) */
.pkg-decor-glow {
  position: absolute;
  top: -12px;
  left: 42%;
  width: 95px;
  height: 95px;
  background: radial-gradient(circle, rgba(244, 63, 94, 0.22) 0%, rgba(204, 30, 40, 0.04) 55%, transparent 75%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 1;
}

/* Card Left Column */
.pkg-card-left {
  position: relative;
  z-index: 2;
  flex: 1 1 58%;
  padding: 28px 20px 22px 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.pkg-tagline {
  font-size: 0.92rem;
  font-weight: 600;
  color: #475569;
  line-height: 1.35;
  margin-bottom: 4px;
}

.pkg-headline {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.25;
  margin-bottom: 10px;
  letter-spacing: -0.3px;
  font-family: 'Outfit', var(--font-main);
}

.pkg-test-count {
  font-size: 0.88rem;
  font-weight: 700;
  color: #0284c7;
  background: #e0f2fe;
  padding: 2px 8px;
  border-radius: 6px;
  display: inline-block;
  margin-left: 6px;
  vertical-align: middle;
}

/* Pricing Row with Dual Badges (Book for 1 @ ₹... & Book for 2 @ ₹...) */
.pkg-pricing-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 6px;
  align-items: center;
}

.pkg-price-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  padding: 5px 11px;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  color: #334155;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.pkg-price-pill .pill-label {
  color: #64748b;
  font-size: 0.76rem;
}

.pkg-price-pill .price-del {
  text-decoration: line-through;
  color: #94a3b8;
  font-size: 0.76rem;
  font-weight: 500;
}

.pkg-price-pill .price-strong {
  color: var(--primary);
  font-size: 0.94rem;
  font-weight: 800;
}

.pkg-discount-subtext {
  font-size: 0.75rem;
  color: #64748b;
  margin-top: 2px;
  margin-bottom: 12px;
}

.pkg-card-left > div:last-child {
  flex-shrink: 0;
  margin-top: 8px;
}

/* Action Button */
.pkg-btn-book {
  align-self: flex-start;
  flex-shrink: 0;
  background-color: var(--primary);
  color: #ffffff;
  padding: 10px 24px;
  border-radius: 9999px;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.3px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.25s ease;
  box-shadow: 0 4px 12px rgba(14, 34, 70, 0.22);
}

.pkg-btn-book:hover {
  background-color: var(--accent);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(204, 30, 40, 0.35);
}

/* Right Doctor Visual (Masked blend into background) */
.pkg-card-right {
  position: relative;
  flex: 1 1 42%;
  min-width: 170px;
  height: 100%;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
}

.pkg-doctor-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  mask-image: linear-gradient(to right, transparent 0%, rgba(0, 0, 0, 0.85) 25%, black 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, rgba(0, 0, 0, 0.85) 25%, black 100%);
  transition: transform 0.6s ease;
  pointer-events: none;
}

.pkg-banner-card:hover .pkg-doctor-img {
  transform: scale(1.04);
}

/* Mobile Adjustments for Card */
@media (max-width: 640px) {
  .pkg-banner-card {
    flex-direction: column;
    height: auto;
    min-height: auto !important;
    max-height: none;
  }

  .pkg-card-left {
    padding: 34px 18px 16px 18px;
  }

  .pkg-card-right {
    height: 190px;
    max-height: 190px;
    width: 100%;
  }

  .pkg-doctor-img {
    height: 100%;
    max-height: 190px;
    object-position: center 15%;
    mask-image: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.9) 20%, black 100%);
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.9) 20%, black 100%);
  }
}

/* Navigation Arrows (Prev & Next Floating Buttons) */
.hero-slider-nav {
  position: absolute;
  top: calc(50% - 16px);
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #ffffff;
  color: var(--primary);
  box-shadow: 0 4px 16px rgba(14, 34, 70, 0.16);
  border: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  line-height: 1;
  z-index: 10;
  cursor: pointer;
  transition: all 0.2s ease;
}

.hero-slider-nav:hover {
  background: var(--primary);
  color: #ffffff;
  box-shadow: 0 6px 20px rgba(14, 34, 70, 0.28);
  transform: translateY(-50%) scale(1.08);
}

.hero-slider-nav.prev {
  left: 6px;
}

.hero-slider-nav.next {
  right: 6px;
}

@media (max-width: 768px) {
  .hero-slider-nav {
    display: none;
    /* Mobile uses intuitive touch swipe */
  }
}

/* Slider Controls: Counter ("3 / 7") and Pill Dots */
.hero-slider-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 16px;
}

.hero-slider-counter {
  background-color: var(--primary);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 3px 11px;
  border-radius: 9999px;
  letter-spacing: 1px;
  box-shadow: 0 2px 6px rgba(14, 34, 70, 0.2);
}

.hero-slider-dots {
  display: flex;
  align-items: center;
  gap: 7px;
}

.hero-slider-dot {
  width: 14px;
  height: 6px;
  background-color: #cbd5e1;
  border-radius: 9999px;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
  padding: 0;
}

.hero-slider-dot.active {
  width: 26px;
  background-color: var(--primary);
}

/* --------------------------------------------------------------------------
   FEATURE BADGES STRIP (6 Badges)
   -------------------------------------------------------------------------- */
.badges-strip {
  background-color: #ffffff;
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
  padding: 18px 0;
  box-shadow: var(--shadow-sm);
}

.badges-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}

.badge-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 14px 10px;
  background-color: #ffffff;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  transition: all var(--transition-base);
}

.badge-card:hover {
  border-color: var(--accent-border);
  background-color: var(--bg-page);
  transform: translateY(-3px);
}

.badge-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  background-color: var(--primary-soft);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
  transition: all var(--transition-fast);
}

.badge-card:hover .badge-icon {
  background-color: var(--accent);
  color: #ffffff;
}

.badge-icon svg {
  width: 22px;
  height: 22px;
}

.badge-card h4 {
  font-size: 0.84375rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.35;
}

.badge-card span {
  font-size: 0.71875rem;
  color: var(--text-muted);
  margin-top: 2px;
}

/* --------------------------------------------------------------------------
   IDENTITY & ABOUT SECTION
/* --------------------------------------------------------------------------
   IDENTITY & ABOUT SECTION (Modern Detailing & Trust Showcase)
   -------------------------------------------------------------------------- */
.identity-section {
  padding: 48px 0 52px 0;
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 50%, #f1f5f9 100%);
  position: relative;
  overflow: hidden;
}

.identity-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-light), transparent);
}

.identity-header-wrapper {
  max-width: 860px;
  margin: 0 auto 26px auto;
  text-align: center;
}

.identity-badge-row {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.identity-badge-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background-color: var(--accent-soft);
  color: var(--accent);
  border: 1px solid var(--accent-border);
  padding: 5px 14px;
  border-radius: var(--radius-full);
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.identity-legacy-tag {
  display: inline-flex;
  align-items: center;
  background: #0e2246;
  color: #ffffff;
  padding: 5px 14px;
  border-radius: var(--radius-full);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.3px;
}

.identity-main-title {
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.25;
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}

.identity-main-subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin: 0;
}

.identity-showcase-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 36px;
  align-items: stretch;
}

/* Left Showcase: Evolution & Clinical Trust Dashboard */
.identity-trust-card {
  background: linear-gradient(145deg, #0e2246 0%, #152c59 100%);
  color: #ffffff;
  border-radius: var(--radius-xl);
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 20px 45px -10px rgba(14, 34, 70, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
  overflow: hidden;
}

.identity-trust-card::after {
  content: '';
  position: absolute;
  top: -60px;
  right: -60px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(204, 30, 40, 0.25) 0%, transparent 70%);
  pointer-events: none;
}

.trust-brand-evolution {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  margin-bottom: 14px;
}

.brand-step {
  display: flex;
  flex-direction: column;
}

.brand-step-label {
  font-size: 0.68rem;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.65);
  font-weight: 700;
  letter-spacing: 0.5px;
  margin-bottom: 2px;
}

.brand-step-name {
  font-size: 1.05rem;
  font-weight: 800;
  color: #ffffff;
}

.brand-step.new .brand-step-name {
  color: #fca5a5;
}

.brand-step-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(204, 30, 40, 0.3);
  color: #ffffff;
  flex-shrink: 0;
}

.brand-step-arrow svg {
  width: 18px;
  height: 18px;
}

.trust-card-location {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #cbd5e1;
  font-size: 0.8125rem;
  font-weight: 600;
  margin-bottom: 28px;
}

.trust-card-location svg {
  width: 16px;
  height: 16px;
  color: #fca5a5;
  flex-shrink: 0;
}

.identity-stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 28px;
}

.identity-stat-box {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  padding: 16px 14px;
  transition: all var(--transition-fast);
}

.identity-stat-box:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-2px);
}

.stat-number {
  font-size: 1.9rem;
  font-weight: 900;
  line-height: 1;
  color: #ffffff;
  margin-bottom: 6px;
  display: flex;
  align-items: baseline;
  gap: 2px;
}

.stat-plus {
  color: #fca5a5;
  font-size: 1.3rem;
}

.stat-star {
  color: #fbbf24;
  font-size: 1.25rem;
}

.stat-unit {
  font-size: 1.1rem;
  color: #67e8f9;
  margin-left: 2px;
}

.stat-title {
  font-size: 0.84rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 2px;
}

.stat-desc {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.35;
}

.identity-accreditation-bar {
  display: flex;
  flex-direction: column;
  gap: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: 20px;
}

.accreditation-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8125rem;
  color: #e2e8f0;
  font-weight: 600;
}

.accreditation-pill svg {
  width: 16px;
  height: 16px;
  color: #34d399;
  flex-shrink: 0;
}

/* Right Showcase: 4 Diagnostic Pillars */
.identity-pillars-column {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.pillar-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 20px 22px;
  display: flex;
  align-items: flex-start;
  gap: 18px;
  box-shadow: 0 4px 16px rgba(14, 34, 70, 0.04);
  transition: all 0.25s ease;
}

.pillar-card:hover {
  transform: translateY(-3px);
  border-color: #cbd5e1;
  box-shadow: 0 12px 28px -6px rgba(14, 34, 70, 0.1);
}

.pillar-icon-box {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.pillar-icon-box svg {
  width: 24px;
  height: 24px;
}

.pillar-icon-box.blue {
  background: #e0f2fe;
  color: #0284c7;
}

.pillar-icon-box.emerald {
  background: #d1fae5;
  color: #059669;
}

.pillar-icon-box.crimson {
  background: var(--accent-soft);
  color: var(--accent);
}

.pillar-icon-box.amber {
  background: #fef3c7;
  color: #d97706;
}

.pillar-content {
  flex: 1;
}

.pillar-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--primary);
  margin: 0 0 4px 0;
}

.pillar-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin: 0 0 8px 0;
}

.pillar-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--primary);
  background: #f8fafc;
  padding: 3px 8px;
  border-radius: 4px;
  border: 1px solid #e2e8f0;
}

/* Action Footer */
.identity-action-footer {
  margin-top: 24px;
  padding: 18px 22px;
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  box-shadow: 0 4px 16px rgba(14, 34, 70, 0.04);
}

.identity-action-left {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.identity-action-contact {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
}

.contact-label {
  color: var(--text-muted);
  font-weight: 600;
}

.contact-phone {
  color: var(--primary);
  font-weight: 800;
  text-decoration: none;
  transition: color var(--transition-fast);
}

.contact-phone:hover {
  color: var(--accent);
}

.contact-divider {
  color: var(--text-muted);
}

/* Legacy layout support for about.html */
.identity-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 55px;
  align-items: center;
}

.identity-image-wrap {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-light);
}

.identity-image-wrap img {
  width: 100%;
  height: 420px;
  object-fit: cover;
}

.identity-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: var(--accent-soft);
  color: var(--accent);
  border: 1px solid var(--accent-border);
  padding: 5px 14px;
  border-radius: var(--radius-full);
  font-size: 0.8125rem;
  font-weight: 700;
  margin-bottom: 16px;
  align-self: flex-start;
}

.identity-title {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.25;
  margin-bottom: 18px;
}

.identity-text {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 24px;
}

.identity-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 30px;
}

.feature-point {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--primary);
}

.feature-check {
  width: 20px;
  height: 20px;
  border-radius: var(--radius-full);
  background-color: var(--accent-soft);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
}

@media (max-width: 991px) {
  .identity-showcase-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .identity-action-footer {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 640px) {
  .identity-header-wrapper {
    margin: 0 auto 18px auto;
  }
  .identity-badge-row {
    margin-bottom: 10px;
    gap: 6px;
  }
  .identity-badge-tag, .identity-legacy-tag {
    font-size: 0.72rem;
    padding: 4px 10px;
  }
  .identity-main-title {
    font-size: 1.5rem;
    line-height: 1.25;
    margin-bottom: 8px;
  }
  .identity-main-subtitle {
    font-size: 0.85rem;
    line-height: 1.5;
  }
  .identity-trust-card {
    padding: 20px 16px;
  }
  .trust-card-header {
    margin-bottom: 16px;
  }
  .trust-card-location {
    font-size: 0.78rem;
    margin-bottom: 18px;
  }
  .trust-brand-evolution {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  .brand-step-arrow {
    transform: rotate(90deg);
    align-self: center;
  }
  .identity-stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 18px;
  }
  .identity-stat-box {
    padding: 12px 10px;
  }
  .stat-number {
    font-size: 1.45rem;
    margin-bottom: 3px;
  }
  .stat-plus, .stat-star {
    font-size: 1.1rem;
  }
  .stat-title {
    font-size: 0.75rem;
  }
  .stat-desc {
    font-size: 0.67rem;
    line-height: 1.3;
  }
  .identity-accreditation-bar {
    padding-top: 14px;
    gap: 6px;
  }
  .accreditation-pill {
    font-size: 0.75rem;
  }
  .pillar-card {
    padding: 14px 14px;
    gap: 12px;
  }
  .pillar-icon-box {
    width: 40px;
    height: 40px;
  }
  .pillar-icon-box svg {
    width: 20px;
    height: 20px;
  }
  .pillar-title {
    font-size: 0.95rem;
    margin-bottom: 3px;
  }
  .pillar-desc {
    font-size: 0.8125rem;
    line-height: 1.45;
    margin-bottom: 6px;
  }
  .pillar-tag {
    font-size: 0.7rem;
    padding: 2px 6px;
  }
  .identity-action-footer {
    margin-top: 16px;
    padding: 14px 16px;
  }
  .identity-action-left {
    flex-direction: column;
    width: 100%;
    gap: 8px;
  }
  .identity-action-left .btn {
    width: 100%;
    text-align: center;
    justify-content: center;
    padding: 11px 18px;
    font-size: 0.875rem;
  }
  .identity-action-contact {
    flex-wrap: wrap;
    font-size: 0.8125rem;
    gap: 6px;
  }
}

/* --------------------------------------------------------------------------
   SERVICES GRID (Matching Screen 02)
   -------------------------------------------------------------------------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

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

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent-border);
}

.service-img-wrap {
  position: relative;
  height: 210px;
  overflow: hidden;
}

.service-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.service-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background-color: rgba(14, 34, 70, 0.9);
  backdrop-filter: blur(4px);
  color: #ffffff;
  padding: 4px 10px;
  border-radius: var(--radius-xs);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.service-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.service-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 8px;
  line-height: 1.35;
}

.service-desc {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 20px;
  flex: 1;
}

.service-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border-subtle);
  padding-top: 16px;
  margin-top: auto;
}

.service-link {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.service-link:hover {
  color: var(--accent);
}

.circle-arrow-btn {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  background-color: var(--accent-soft);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.service-card:hover .circle-arrow-btn {
  background-color: var(--accent);
  color: #ffffff;
  transform: translateX(3px);
}

.service-meta-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px dashed var(--border-light);
}

.service-price-tag {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--accent);
}

.service-price-tag small {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 600;
  display: block;
}

.service-turnaround-badge {
  font-size: 0.75rem;
  background-color: var(--primary-soft);
  color: var(--primary);
  font-weight: 700;
  padding: 3px 8px;
  border-radius: var(--radius-xs);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.service-fasting-note {
  font-size: 0.78rem;
  color: #64748b;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* --------------------------------------------------------------------------
   HEALTH PACKAGES GRID (Matching Screen 03)
   -------------------------------------------------------------------------- */
.filter-tabs-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.filter-tab {
  padding: 10px 22px;
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  background-color: #ffffff;
  color: var(--text-muted);
  border: 1px solid var(--border-light);
  transition: all var(--transition-fast);
}

.filter-tab:hover {
  color: var(--primary);
  border-color: var(--primary-light);
}

.filter-tab.active {
  background-color: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
  box-shadow: 0 4px 12px var(--primary-glow);
}

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

.package-card {
  background-color: #ffffff;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  transition: all var(--transition-base);
}

.package-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent-border);
}

.package-card.popular {
  border-color: var(--accent);
  box-shadow: 0 10px 25px rgba(204, 30, 40, 0.15);
}

.package-ribbon {
  position: absolute;
  top: 14px;
  right: -32px;
  background-color: var(--accent);
  color: #ffffff;
  padding: 4px 34px;
  font-size: 0.6875rem;
  font-weight: 800;
  text-transform: uppercase;
  transform: rotate(45deg);
  box-shadow: var(--shadow-sm);
  letter-spacing: 0.8px;
}

.package-header-img {
  height: 140px;
  width: 100%;
  object-fit: cover;
  border-bottom: 1px solid var(--border-subtle);
}

.package-card-body {
  padding: 22px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.package-category-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--accent);
  margin-bottom: 4px;
}

.package-title {
  font-size: 1.1875rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.3;
  margin-bottom: 14px;
}

.package-pricing {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px dashed var(--border-light);
}

.current-price {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--primary);
}

.original-price {
  font-size: 0.9375rem;
  color: var(--text-light);
  text-decoration: line-through;
}

.discount-badge {
  background-color: var(--accent-soft);
  color: var(--accent);
  font-size: 0.6875rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: var(--radius-xs);
}

.package-tests-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 22px;
  flex: 1;
}

.package-test-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.84375rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.package-test-item svg {
  width: 14px;
  height: 14px;
  color: var(--accent);
  flex-shrink: 0;
  margin-top: 3px;
}

.package-card-footer {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: auto;
}

.package-card-btn-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}

.btn-card-book {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  padding: 10px 16px;
  font-size: 0.9375rem;
  border-radius: var(--radius-sm);
  background-color: var(--primary);
  color: #ffffff;
  text-decoration: none;
  border: 1.5px solid var(--primary);
  transition: all 0.2s ease;
  cursor: pointer;
}

.btn-card-book:hover {
  background-color: var(--primary-dark);
  border-color: var(--primary-dark);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(7, 21, 45, 0.25);
  transform: translateY(-1px);
}

.btn-view-package {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  padding: 9px 16px;
  font-size: 0.875rem;
  border-radius: var(--radius-sm);
  background-color: #ffffff;
  color: var(--primary);
  border: 1.5px solid var(--primary);
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-view-package:hover {
  background-color: #f8fafc;
  border-color: var(--primary-dark);
  color: var(--primary-dark);
  box-shadow: 0 2px 8px rgba(7, 21, 45, 0.1);
  transform: translateY(-1px);
}

.package-view-details-link {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-muted);
  text-align: center;
}

.package-view-details-link:hover {
  color: var(--primary);
}

/* --------------------------------------------------------------------------
   GALLERY & CONTACT
   -------------------------------------------------------------------------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.gallery-item {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  aspect-ratio: 16 / 11;
  background-color: #e2e8f0;
}

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

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

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(14, 34, 70, 0.92) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 20px;
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-caption-title {
  color: #ffffff;
  font-size: 1rem;
  font-weight: 700;
}

.gallery-caption-cat {
  color: #fca5a5;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
}

/* Contact Section */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
}

.contact-info-card {
  background-color: #ffffff;
  border-radius: var(--radius-lg);
  padding: 40px;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
}

.contact-info-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin: 30px 0;
}

.contact-info-row {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

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

.contact-row-icon svg {
  width: 20px;
  height: 20px;
}

.contact-row-text h4 {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 4px;
}

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

.metro-highlight-box {
  background-color: var(--accent-soft);
  border-left: 4px solid var(--accent);
  padding: 14px 18px;
  border-radius: 6px;
  margin-top: 10px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.metro-highlight-box span {
  font-size: 0.875rem;
  font-weight: 700;
  color: #991b1b;
}

.opening-hours-card {
  margin-top: 24px;
  padding: 18px 20px;
  background-color: var(--bg-page);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
}

.opening-hours-card h5 {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.hours-table {
  width: 100%;
  font-size: 0.84375rem;
  color: var(--text-muted);
}

.hours-table td {
  padding: 4px 0;
}

.contact-media-card {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.clinic-photo-preview {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-light);
  height: 260px;
}

.clinic-photo-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.contact-form-box {
  background-color: #ffffff;
  border-radius: var(--radius-lg);
  padding: 34px;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
}

.form-group {
  margin-bottom: 18px;
}

.form-label {
  display: block;
  font-size: 0.84375rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 6px;
}

.form-control {
  width: 100%;
  padding: 12px 16px;
  font-size: 0.9375rem;
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-sm);
  background-color: #ffffff;
  color: var(--text-main);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

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

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

/* --------------------------------------------------------------------------
   APPOINTMENT BOOKING WIZARD (Matching Screen 07)
   -------------------------------------------------------------------------- */
.booking-wizard-wrapper {
  background-color: #ffffff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  max-width: 1060px;
  margin: 0 auto;
}

.stepper-header {
  background-color: var(--primary-dark);
  padding: 24px 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 2px solid var(--accent);
}

.step-indicator {
  display: flex;
  align-items: center;
  gap: 12px;
  opacity: 0.5;
  transition: opacity var(--transition-fast);
}

.step-indicator.active {
  opacity: 1;
}

.step-indicator.completed {
  opacity: 0.95;
}

.step-number {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  background-color: rgba(255, 255, 255, 0.15);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.875rem;
}

.step-indicator.active .step-number {
  background-color: var(--accent);
  color: #ffffff;
}

.step-indicator.completed .step-number {
  background-color: var(--success);
  color: #ffffff;
}

.step-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: #ffffff;
}

.step-divider {
  flex: 1;
  height: 2px;
  background-color: rgba(255, 255, 255, 0.15);
  margin: 0 16px;
  max-width: 60px;
}

.wizard-step-body {
  padding: 40px;
  display: none;
}

.wizard-step-body.active {
  display: block;
  animation: fadeIn 0.35s ease;
}

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

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

.booking-grid-split {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: 28px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  align-items: start;
}

.package-picker-box {
  background-color: var(--bg-page);
  border-radius: var(--radius-md);
  padding: 24px;
  border: 1px solid var(--border-light);
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

.package-detail-summary-card {
  background-color: #ffffff;
  border-radius: var(--radius-md);
  padding: 24px;
  border: 1.5px solid var(--primary);
  box-shadow: var(--shadow-sm);
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
  word-break: break-word;
}

.included-tests-checklist {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 18px;
}

.test-check-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.875rem;
  color: var(--primary);
  font-weight: 600;
}

.test-check-item svg {
  width: 16px;
  height: 16px;
  color: var(--accent);
}

.visit-mode-toggle {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 20px 0;
}

.mode-radio-card {
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: all var(--transition-fast);
}

.mode-radio-card.active {
  border-color: var(--primary);
  background-color: var(--primary-soft);
}

.date-time-layout {
  display: grid;
  grid-template-columns: 1.1fr 1.2fr;
  gap: 36px;
}

.calendar-wrapper {
  background-color: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 20px;
  box-shadow: var(--shadow-sm);
}

.calendar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.calendar-month-title {
  font-weight: 700;
  font-size: 1.0625rem;
  color: var(--primary);
}

.calendar-nav-btn {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--bg-page);
  color: var(--primary);
  cursor: pointer;
}

.calendar-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-light);
  margin-bottom: 8px;
}

.calendar-days-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
}

.cal-day {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-fast);
  color: var(--text-main);
  border: 1px solid transparent;
}

.cal-day:hover:not(.disabled) {
  background-color: var(--primary-soft);
  color: var(--primary);
}

.cal-day.selected {
  background-color: var(--primary) !important;
  color: #ffffff !important;
  font-weight: 700;
}

.cal-day.today {
  border-color: var(--accent);
}

.cal-day.disabled {
  color: #cbd5e1;
  cursor: not-allowed;
}

.time-slots-wrapper {
  background-color: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 20px;
}

.time-slots-header {
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

.slot-chip {
  padding: 10px 8px;
  font-size: 0.8125rem;
  font-weight: 600;
  text-align: center;
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-sm);
  background-color: var(--bg-page);
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.slot-chip:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.slot-chip.selected {
  background-color: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
}

.form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

/* Person / Plan Selection Cards (1 Person, 2 Persons, 4 Persons) */
.person-plan-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 8px;
}

.person-plan-card {
  position: relative;
  background: #ffffff;
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 14px 10px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
  user-select: none;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 86px;
}

.person-plan-card:hover {
  border-color: var(--primary);
  background-color: #f8fafc;
}

.person-plan-card.active {
  border-color: var(--primary);
  background-color: #edf5ff;
  box-shadow: 0 4px 12px rgba(14, 34, 70, 0.1);
}

.person-plan-tag {
  position: absolute;
  top: -9px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: #ffffff;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 10px;
  white-space: nowrap;
  letter-spacing: 0.3px;
}

.person-plan-title {
  font-size: 0.84rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 2px;
}

.person-plan-price {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--accent);
}

.person-plan-sub {
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-top: 2px;
  font-weight: 500;
}

@media (max-width: 640px) {
  .person-plan-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }
}

/* Beneficiaries dynamic form styling in Step 3 */
.beneficiaries-list-wrap {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 20px;
}

.beneficiary-card {
  background: #ffffff;
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  box-shadow: 0 2px 8px rgba(14, 34, 70, 0.04);
  transition: border-color 0.2s ease;
}

.beneficiary-card:focus-within {
  border-color: var(--primary);
}

.beneficiary-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-light);
}

.beneficiary-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 0.8125rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 6px;
}

.beneficiary-card-grid {
  display: grid;
  grid-template-columns: 1.5fr 0.8fr 1fr 1fr;
  gap: 14px;
}

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

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

.wizard-footer-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 40px;
  background-color: var(--bg-page);
  border-top: 1px solid var(--border-light);
}

/* --------------------------------------------------------------------------
   STRUCTURED HOSPITAL CONFIRMATION SLIP (Redesigned with Logo & Pass format)
   -------------------------------------------------------------------------- */
.hospital-slip-card {
  max-width: 780px;
  margin: 0 auto;
  background-color: #ffffff;
  border-radius: var(--radius-lg);
  border: 2px solid var(--primary);
  box-shadow: var(--shadow-xl);
  overflow: hidden;
  text-align: left;
}

.hospital-slip-header {
  background-color: var(--primary);
  padding: 24px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 3px solid var(--accent);
}

.slip-header-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.slip-header-brand img {
  height: 54px;
  width: auto;
}

.slip-header-title {
  color: #ffffff;
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: 1px;
}

.slip-header-sub {
  color: #fca5a5;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.slip-status-badge {
  background-color: #ecfdf5;
  color: #047857;
  border: 1px solid #a7f3d0;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.8125rem;
  font-weight: 800;
  letter-spacing: 0.5px;
}

.hospital-slip-body {
  padding: 32px;
}

.slip-meta-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: var(--bg-page);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 12px 20px;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 12px;
}

.slip-ref-code {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: 1.5px;
}

.slip-sections-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 24px;
}

.slip-box {
  background-color: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 18px;
}

.slip-box-title {
  font-size: 0.8125rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--accent);
  margin-bottom: 12px;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 6px;
}

.slip-data-row {
  display: flex;
  justify-content: space-between;
  padding: 5px 0;
  font-size: 0.875rem;
}

.slip-data-label {
  color: var(--text-muted);
}

.slip-data-val {
  font-weight: 700;
  color: var(--text-main);
}

.slip-instructions-box {
  background-color: var(--accent-soft);
  border-left: 4px solid var(--accent);
  border-radius: 4px;
  padding: 16px 20px;
  margin-bottom: 24px;
}

.slip-instructions-box strong {
  display: block;
  font-size: 0.875rem;
  color: #991b1b;
  margin-bottom: 6px;
}

.slip-instructions-box ul {
  padding-left: 18px;
  color: #7f1d1d;
  font-size: 0.8125rem;
  line-height: 1.5;
  margin: 0;
}

.slip-actions-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  padding-top: 10px;
}

/* Print Specific Styling */
@media print {
  body * {
    visibility: hidden;
  }

  .hospital-slip-card,
  .hospital-slip-card * {
    visibility: visible;
  }

  .hospital-slip-card {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    border: none;
    box-shadow: none;
  }

  .slip-actions-bar,
  .site-header,
  .site-footer,
  .top-notice-bar {
    display: none !important;
  }
}

/* --------------------------------------------------------------------------
   FOOTER (Designed in reference to the 4-column logo-themed reference image)
   -------------------------------------------------------------------------- */
.site-footer {
  background-color: #07152d;
  color: #94a3b8;
  margin-top: auto;
  border-top: 4px solid var(--accent);
}

.footer-top {
  padding: 42px 0 30px 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.15fr 1.35fr;
  gap: 36px;
}

.footer-brand-col {
  border-right: 1px solid rgba(255, 255, 255, 0.12);
  padding-right: 32px;
}

.footer-brand-logo {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  background: transparent;
  padding: 0;
  border-radius: 0;
  box-shadow: none;
  margin-bottom: 16px;
  text-decoration: none;
  transition: transform var(--transition-fast), opacity var(--transition-fast);
}

.footer-brand-logo:hover {
  transform: translateY(-2px);
  opacity: 0.92;
}

.footer-brand-logo img,
.footer-brand-logo .footer-logo-img {
  height: 68px;
  max-width: 220px;
  width: auto;
  object-fit: contain;
  display: block;
}

.footer-brand-desc {
  font-size: 0.9rem;
  line-height: 1.6;
  margin: 12px 0 18px 0;
  color: #cbd5e1;
}

.footer-social-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 20px;
}

.footer-social-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  text-decoration: none;
  transition: all var(--transition-fast);
}

.footer-social-btn:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(204, 30, 40, 0.35);
}

.footer-social-btn svg {
  width: 17px;
  height: 17px;
  fill: currentColor;
}

.footer-col-title {
  color: #ffffff;
  font-size: 0.9375rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 8px;
}

.footer-col-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 28px;
  height: 2.5px;
  background-color: var(--accent);
  border-radius: 2px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.footer-links a {
  font-size: 0.9rem;
  color: #94a3b8;
  text-decoration: none;
  transition: all var(--transition-fast);
  display: inline-block;
}

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

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.875rem;
  margin-bottom: 14px;
  color: #cbd5e1;
  line-height: 1.5;
}

.footer-contact-item svg {
  width: 18px;
  height: 18px;
  color: var(--accent);
  flex-shrink: 0;
  margin-top: 3px;
}

.footer-contact-item a {
  color: #ffffff;
  text-decoration: none;
  transition: color var(--transition-fast);
}

.footer-contact-item a:hover {
  color: #fca5a5;
  text-decoration: underline;
}

.footer-bottom {
  background-color: #040c1a;
  padding: 18px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.8125rem;
  color: #94a3b8;
}

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

.footer-agency-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #94a3b8;
  font-size: 0.8125rem;
}

.footer-agency-badge a,
.footer-agency-badge strong {
  color: #ffffff;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: 0.3px;
  transition: all var(--transition-fast);
}

.footer-agency-badge a:hover {
  color: #ef4444;
}

.footer-agency-heart {
  color: #ef4444;
  display: inline-block;
  margin: 0 1px;
}

/* Sticky Mobile Action Bar */
.mobile-sticky-cta {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: #ffffff;
  box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.1);
  padding: 10px 16px;
  z-index: 998;
  border-top: 1px solid var(--border-light);
}

.mobile-cta-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 10px;
}

/* Modals & Toasts */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background-color: rgba(7, 21, 45, 0.8);
  backdrop-filter: blur(5px);
  z-index: 1100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

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

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

.modal-close-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  background-color: var(--bg-page);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-muted);
}

.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 1200;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast {
  padding: 14px 22px;
  border-radius: var(--radius-sm);
  background-color: var(--primary-dark);
  color: #ffffff;
  font-size: 0.875rem;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 12px;
  animation: slideInRight 0.3s ease;
}

.toast.success {
  border-left: 4px solid var(--success);
}

.toast.error {
  border-left: 4px solid var(--danger);
}

@keyframes slideInRight {
  from {
    transform: translateX(100%);
    opacity: 0;
  }

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

/* --------------------------------------------------------------------------
   RESPONSIVENESS (Mobile First & Every Screen Size Friendly)
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 36px;
  }

  .hero-subtitle {
    margin-left: auto;
    margin-right: auto;
  }

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

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

  .badges-grid {
    grid-template-columns: repeat(3, 1fr);
  }

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

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

  .identity-grid {
    grid-template-columns: 1fr;
    gap: 36px;
    text-align: center;
  }

  .identity-content {
    margin: 0 auto;
  }

  .identity-image-wrap img {
    max-height: 380px;
    width: 100%;
    object-fit: cover;
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 36px;
  }

  .footer-brand-col {
    border-right: none;
    padding-right: 0;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .date-time-layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .slip-sections-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {

  /* Header & Navigation: Clean & Uncluttered */
  .header-container {
    height: 84px;
    padding: 0 16px;
  }

  .brand-logo-img {
    height: 64px;
    max-height: 70px;
    width: auto;
    object-fit: contain;
  }

  .top-notice-bar {
    display: none;
  }

  .site-header .nav-menu {
    display: none !important;
  }

  .container {
    padding-left: 16px !important;
    padding-right: 16px !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .header-actions>.btn {
    display: none !important;
  }

  /* Quick Phone Call Icon Button on Mobile Header */
  .phone-quick-btn {
    display: flex !important;
    width: 42px !important;
    height: 42px !important;
    padding: 0 !important;
    border-radius: var(--radius-full) !important;
    justify-content: center !important;
    align-items: center !important;
    background-color: var(--primary-soft) !important;
    color: var(--primary) !important;
  }

  .phone-quick-btn span {
    display: none !important;
  }

  .phone-quick-btn svg {
    width: 18px !important;
    height: 18px !important;
    margin: 0 !important;
  }

  .mobile-toggle {
    display: flex;
  }

  /* Mobile Sticky Bottom CTA removed per user specification */
  .mobile-sticky-cta {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
  }

  body {
    padding-bottom: 0 !important;
  }

  /* Anti horizontal scroll guard for mobile */
  .site-header,
  .site-footer,
  main,
  section,
  .hero-section,
  .packages-catalog-section,
  .gallery-grid,
  .contact-grid {
    max-width: 100vw !important;
    box-sizing: border-box !important;
    overflow-x: hidden;
  }

  /* Hero & Sections */
  .hero-title {
    font-size: 2.15rem;
    line-height: 1.25;
  }

  .hero-subtitle {
    font-size: 0.95rem;
  }

  .hero-actions {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 12px;
  }

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

  .hero-image-card img {
    height: 260px;
    object-fit: cover;
  }

  .hero-experience-badge {
    bottom: 12px;
    left: 12px;
    padding: 8px 12px;
    font-size: 0.75rem;
  }

  .section {
    padding: 32px 0;
  }

  .section-sm {
    padding: 22px 0;
  }

  .section-header {
    margin-bottom: 20px;
  }

  .section-title {
    font-size: 1.65rem;
    line-height: 1.25;
    margin-bottom: 8px;
  }

  .section-subtitle {
    font-size: 0.875rem;
    line-height: 1.5;
  }

  /* Cards & Grids */
  .badges-strip {
    padding: 14px 0;
  }

  .badges-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px 8px;
  }

  .badge-card {
    padding: 10px 8px;
  }

  .badge-icon {
    width: 36px;
    height: 36px;
    margin-bottom: 6px;
  }

  .badge-icon svg {
    width: 18px;
    height: 18px;
  }

  .badge-card h4 {
    font-size: 0.78125rem;
    line-height: 1.25;
  }

  .badge-card span {
    font-size: 0.6875rem;
  }

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

  .package-card {
    padding: 0 !important;
  }

  .package-card-body {
    padding: 18px 16px !important;
  }

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

  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  /* Filter Tabs with Smooth Horizontal Touch Scroll Edge-to-Edge */
  .filter-tabs-wrapper {
    display: flex !important;
    overflow-x: auto !important;
    flex-wrap: nowrap !important;
    -webkit-overflow-scrolling: touch !important;
    padding: 6px 16px 14px 16px !important;
    margin-left: -16px !important;
    margin-right: -16px !important;
    margin-bottom: 18px !important;
    gap: 8px !important;
    justify-content: flex-start !important;
    scrollbar-width: none !important;
    scroll-snap-type: x proximity;
  }

  .filter-tabs-wrapper::-webkit-scrollbar {
    display: none !important;
  }

  .filter-tab {
    flex-shrink: 0 !important;
    white-space: nowrap !important;
    font-size: 0.8125rem !important;
    padding: 8px 16px !important;
    border-radius: var(--radius-full) !important;
    scroll-snap-align: start;
    -webkit-tap-highlight-color: transparent;
  }

  .contact-form-box,
  .contact-info-card {
    padding: 22px 16px !important;
    border-radius: 14px !important;
  }

  /* Booking Wizard Form & Steps */
  .booking-wizard-wrapper {
    border-radius: var(--radius-md);
    margin: 0 4px;
  }

  .stepper-header {
    padding: 14px 10px;
    justify-content: space-between;
    gap: 6px;
  }

  .step-indicator {
    gap: 6px;
  }

  .step-number {
    width: 28px;
    height: 28px;
    font-size: 0.8rem;
  }

  .step-divider {
    margin: 0 4px;
    min-width: 8px;
    max-width: 32px;
  }

  .step-label {
    display: none;
  }

  .wizard-step-body {
    padding: 20px 14px;
  }

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

  .visit-mode-toggle {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .date-time-layout {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .calendar-wrapper,
  .time-slots-wrapper {
    padding: 16px 12px;
  }

  .slots-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }

  .slot-chip {
    padding: 8px 6px;
    font-size: 0.78rem;
  }

  .cal-day {
    font-size: 0.8125rem;
    min-height: 36px;
  }

  .form-grid-2 {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .wizard-footer-actions {
    padding: 14px;
    flex-wrap: wrap;
    gap: 10px;
  }

  .wizard-footer-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .wizard-footer-actions div {
    width: 100%;
    margin-left: 0 !important;
  }

  /* Hospital Confirmation Slip (Fully Responsive & Collision-Free) */
  .hospital-slip-card {
    border-radius: var(--radius-md);
    border-width: 1.5px;
    width: 100%;
  }

  .hospital-slip-header {
    flex-direction: column !important;
    align-items: flex-start !important;
    padding: 18px 16px !important;
    gap: 14px !important;
  }

  .slip-header-brand {
    gap: 12px !important;
    width: 100% !important;
  }

  .slip-header-brand img {
    height: 42px !important;
    max-width: 75px !important;
  }

  .slip-header-title {
    font-size: 1.05rem !important;
    line-height: 1.3 !important;
  }

  .slip-header-sub {
    font-size: 0.7rem !important;
  }

  .slip-status-badge {
    align-self: flex-start !important;
    font-size: 0.75rem !important;
    padding: 6px 14px !important;
    margin-top: 2px !important;
  }

  .hospital-slip-body {
    padding: 18px 14px !important;
  }

  .slip-meta-bar {
    padding: 12px 14px !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 8px !important;
  }

  .slip-meta-bar div:last-child {
    text-align: left !important;
  }

  .slip-sections-grid {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }

  .slip-box {
    padding: 14px 14px !important;
  }

  .slip-data-row {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 3px !important;
    padding: 7px 0 !important;
  }

  .slip-data-val {
    text-align: left !important;
  }

  .slip-instructions-box {
    padding: 14px 14px !important;
    font-size: 0.8rem !important;
  }

  .slip-actions-bar {
    flex-direction: column !important;
    width: 100% !important;
    gap: 10px !important;
  }

  .slip-actions-bar .btn {
    width: 100% !important;
    text-align: center !important;
    justify-content: center !important;
  }

  /* Footer Mobile 2-Column Responsive Layout */
  .footer-top {
    padding: 38px 0 26px 0;
  }

  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 26px 16px !important;
  }

  .footer-brand-col {
    grid-column: 1 / -1 !important;
    border-right: none !important;
    padding-right: 0 !important;
    margin-bottom: 4px;
  }

  .footer-brand-logo {
    padding: 6px 14px;
    border-radius: 10px;
    margin-bottom: 12px;
  }

  .footer-brand-logo img,
  .footer-brand-logo .footer-logo-img {
    height: 48px;
    max-width: 190px;
    width: auto;
    display: block;
  }

  .footer-brand-desc {
    font-size: 0.8125rem;
    line-height: 1.5;
    margin: 8px 0 12px 0;
  }

  .footer-social-row {
    margin-top: 8px;
    gap: 8px;
  }

  .footer-social-btn {
    width: 32px;
    height: 32px;
  }

  .footer-social-btn svg {
    width: 14px;
    height: 14px;
  }

  /* Quick Links (Col 2) & Our Services (Col 3) - 2 Columns Side-by-Side */
  .footer-col-title {
    font-size: 0.84rem !important;
    margin-bottom: 12px !important;
    letter-spacing: 0.5px !important;
    padding-bottom: 6px !important;
  }

  .footer-col-title::after {
    width: 20px !important;
    height: 2px !important;
  }

  .footer-links {
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
  }

  .footer-links a {
    font-size: 0.8125rem !important;
    line-height: 1.35 !important;
    color: #cbd5e1 !important;
    word-break: break-word;
  }

  /* Contact Us (Col 4) spans 2 columns at the bottom */
  .footer-grid>div:nth-child(4) {
    grid-column: 1 / -1 !important;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    margin-top: 4px;
  }

  .footer-contact-item {
    font-size: 0.8125rem;
    gap: 10px;
    margin-bottom: 10px;
    line-height: 1.45;
  }

  .footer-contact-item svg {
    width: 16px;
    height: 16px;
    margin-top: 2px;
  }

  .footer-bottom-inner {
    flex-direction: column;
    text-align: center;
    gap: 8px;
    font-size: 0.75rem;
  }

  .modal-dialog {
    padding: 20px 16px;
    margin: 12px;
    max-width: calc(100vw - 24px);
  }
}

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

  .section-title {
    font-size: 1.55rem;
  }

  .badges-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 8px !important;
  }

  .badge-card {
    padding: 9px 6px !important;
  }

  .badge-icon {
    width: 34px !important;
    height: 34px !important;
    margin-bottom: 5px !important;
  }

  .badge-icon svg {
    width: 17px !important;
    height: 17px !important;
  }

  .badge-card h4 {
    font-size: 0.75rem !important;
    line-height: 1.25 !important;
  }

  .badge-card span {
    font-size: 0.65rem !important;
  }

  .service-card {
    border-radius: var(--radius-sm);
  }

  .service-body {
    padding: 18px 16px;
  }

  .service-meta-strip {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .stepper-header {
    padding: 12px 6px;
  }

  .step-number {
    width: 26px;
    height: 26px;
    font-size: 0.75rem;
  }

  .step-divider {
    min-width: 4px;
    max-width: 18px;
  }

  .cal-day {
    font-size: 0.75rem;
    min-height: 32px;
  }

  .calendar-weekdays {
    font-size: 0.7rem;
  }

  .mobile-cta-grid {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .mobile-cta-grid .btn {
    padding: 9px 6px;
    font-size: 0.75rem;
  }

  /* Ensure footer 2-column keeps optimal compact sizing on small smartphones */
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 20px 12px !important;
  }

  .footer-brand-logo {
    padding: 5px 12px;
  }

  .footer-brand-logo img,
  .footer-brand-logo .footer-logo-img {
    height: 42px;
    max-width: 165px;
    width: auto;
    display: block;
  }

  .footer-col-title {
    font-size: 0.8rem !important;
  }

  .footer-links a {
    font-size: 0.78rem !important;
  }
}

/* ==========================================================================
   BOOKING APPOINTMENT CATALOG TABS & INTERACTIVE CARDS
   ========================================================================== */
.booking-catalog-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 8px;
  margin-bottom: 12px;
  scrollbar-width: thin;
}

.booking-catalog-tabs::-webkit-scrollbar {
  height: 4px;
}

.booking-catalog-tabs::-webkit-scrollbar-thumb {
  background: var(--border-light);
  border-radius: 4px;
}

.catalog-tab-btn {
  white-space: nowrap;
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: 20px;
  padding: 6px 14px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.catalog-tab-btn:hover {
  background: #f1f5f9;
  border-color: var(--primary);
  color: var(--primary);
}

.catalog-tab-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #ffffff;
  box-shadow: 0 2px 6px rgba(14, 34, 70, 0.2);
}

.catalog-search-wrap {
  position: relative;
  margin-bottom: 12px;
}

.booking-cards-carousel {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 10px;
  max-height: 270px;
  overflow-y: auto;
  padding: 8px;
  border: 1px solid var(--border-light);
  border-radius: 8px;
  background: #f8fafc;
  margin-bottom: 14px;
  scrollbar-width: thin;
  width: 100%;
  box-sizing: border-box;
  min-width: 0;
}

.booking-cards-carousel::-webkit-scrollbar {
  width: 6px;
}

.booking-cards-carousel::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}

.catalog-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: 8px;
  padding: 10px 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  user-select: none;
}

.catalog-card:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.catalog-card.active {
  border: 2px solid var(--accent);
  background: #fffafa;
  box-shadow: 0 4px 12px rgba(204, 30, 40, 0.12);
}

.catalog-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.catalog-card-badge {
  font-size: 0.6875rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  text-transform: uppercase;
}

.catalog-card-badge.pkg {
  background: #e0f2fe;
  color: #0369a1;
}

.catalog-card-badge.srv {
  background: #fef3c7;
  color: #92400e;
}

.catalog-card-price {
  font-size: 0.9375rem;
  font-weight: 800;
  color: var(--accent);
}

.catalog-card-title {
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.25;
  margin-bottom: 4px;
}

.catalog-card-meta {
  font-size: 0.72rem;
  color: var(--text-muted);
}

/* ==========================================================================
   TABLET, LAPTOP & MOBILE RESPONSIVE GUARDS
   Prevents "Key Tests Included" summary card from overflowing screen
   ========================================================================== */
@media (max-width: 1120px) {
  .booking-grid-split {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  .package-detail-summary-card {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .date-time-layout {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
  }
}

@media (max-width: 640px) {
  .booking-cards-carousel {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 8px !important;
    max-height: 240px !important;
  }

  .package-picker-box,
  .package-detail-summary-card {
    padding: 16px 12px !important;
  }

  .catalog-tab-btn {
    padding: 5px 12px !important;
    font-size: 0.75rem !important;
  }
}

@media (max-width: 440px) {
  .booking-cards-carousel {
    grid-template-columns: 1fr !important;
  }
}

/* ==========================================================================
   OFFICIAL CLINICAL PACKAGE CATALOG & DETAIL MODAL SYSTEM
   ========================================================================== */
.catalog-toolbar-wrapper {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  box-shadow: 0 2px 8px rgba(14, 34, 70, 0.04);
}

.catalog-search-box {
  flex: 1;
  min-width: 260px;
  position: relative;
}

.catalog-search-box input {
  width: 100%;
  padding: 10px 16px 10px 38px;
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  background-color: #f8fafc;
  color: var(--text-dark);
  transition: all var(--transition-fast);
}

.catalog-search-box input:focus {
  background-color: #ffffff;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(14, 34, 70, 0.1);
  outline: none;
}

.catalog-search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  color: var(--text-muted);
  pointer-events: none;
}

.catalog-filters-right {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.catalog-sort-select {
  padding: 8px 14px;
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary);
  background-color: #f8fafc;
  cursor: pointer;
}

.catalog-count-badge {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--primary);
  background-color: var(--primary-soft);
  padding: 6px 12px;
  border-radius: var(--radius-full);
  white-space: nowrap;
}

.btn-reset-filters {
  background: transparent;
  border: 1px dashed #94a3b8;
  color: #64748b;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-reset-filters:hover {
  background-color: #f1f5f9;
  color: var(--accent);
  border-color: var(--accent);
}

@media (max-width: 768px) {
  .catalog-toolbar-wrapper {
    padding: 12px 14px !important;
    margin-bottom: 20px !important;
    border-radius: 14px !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
    background: #ffffff !important;
    border: 1px solid var(--border-light) !important;
    box-shadow: 0 4px 16px rgba(14, 34, 70, 0.05) !important;
  }

  .catalog-search-box {
    width: 100% !important;
    min-width: 0 !important;
    flex: none !important;
    position: relative !important;
  }

  .catalog-search-box input {
    height: 44px !important;
    padding: 10px 14px 10px 40px !important;
    font-size: 0.875rem !important;
    border-radius: 10px !important;
    background-color: #f8fafc !important;
    border: 1.5px solid var(--border-light) !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .catalog-search-box input:focus {
    background-color: #ffffff !important;
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 3px rgba(14, 34, 70, 0.1) !important;
  }

  .catalog-search-icon {
    left: 14px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: 18px !important;
    height: 18px !important;
  }

  .catalog-filters-right {
    width: 100% !important;
    display: grid !important;
    grid-template-columns: 1fr auto !important;
    align-items: center !important;
    gap: 8px !important;
  }

  .catalog-sort-select {
    order: 1 !important;
    width: 100% !important;
    height: 38px !important;
    padding: 0 10px !important;
    font-size: 0.8125rem !important;
    font-weight: 600 !important;
    border-radius: 8px !important;
    background-color: #f8fafc !important;
    border: 1.5px solid var(--border-light) !important;
    color: var(--primary) !important;
    box-sizing: border-box !important;
  }

  .btn-reset-filters {
    order: 2 !important;
    height: 38px !important;
    padding: 0 12px !important;
    font-size: 0.8125rem !important;
    font-weight: 600 !important;
    border-radius: 8px !important;
    white-space: nowrap !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-sizing: border-box !important;
  }

  .catalog-count-badge {
    order: 3 !important;
    grid-column: 1 / -1 !important;
    width: 100% !important;
    text-align: center !important;
    font-size: 0.75rem !important;
    font-weight: 600 !important;
    line-height: 1.35 !important;
    padding: 6px 10px !important;
    white-space: normal !important;
    border-radius: 8px !important;
    box-sizing: border-box !important;
    background-color: var(--primary-soft) !important;
    color: var(--primary) !important;
    display: block !important;
  }
}

/* Package Card Layout Enhancements */
.package-card-top {
  position: relative;
  overflow: hidden;
}

.package-brand-pill {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(14, 34, 70, 0.85);
  color: #ffffff;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  backdrop-filter: blur(4px);
}

.package-param-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: #10b981;
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.package-category-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.package-fasting-tag {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
  white-space: nowrap;
}

.package-fasting-tag.fasting-required {
  background-color: #fef3c7;
  color: #b45309;
}

.package-fasting-tag.fasting-optional {
  background-color: #e0f2fe;
  color: #0369a1;
}

.package-short-desc {
  font-size: 0.8125rem;
  color: #64748b;
  line-height: 1.45;
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 38px;
}

.package-pricing-box {
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px dashed var(--border-light);
}

.package-main-price {
  display: flex;
  align-items: baseline;
  gap: 3px;
}

.package-main-price .currency {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--primary);
}

.package-main-price .amount {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.5px;
}

.package-main-price .pricing-basis-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 600;
  margin-left: 4px;
}

.tests-list-title {
  font-size: 0.72rem;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 800;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}

.btn-view-pkg-details {
  background-color: #f8fafc;
  color: var(--primary);
  border: 1.5px solid #cbd5e1;
  font-size: 0.8125rem;
  font-weight: 700;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-view-pkg-details:hover {
  background-color: #e2e8f0;
  color: var(--accent);
  border-color: var(--accent);
}

/* ==========================================================================
   PACKAGE DETAIL MODAL
   ========================================================================== */
.pkg-modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(14, 34, 70, 0.72);
  backdrop-filter: blur(6px);
  z-index: 99999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.pkg-modal-backdrop.open,
.pkg-modal-backdrop.active {
  display: flex !important;
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
}

.pkg-modal-dialog {
  background: #ffffff;
  border-radius: 16px;
  width: 100%;
  max-width: 820px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(14, 34, 70, 0.35);
  animation: modalSlideUp 0.3s ease-out;
}

@keyframes modalSlideUp {
  from {
    transform: translateY(20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.pkg-modal-header {
  padding: 20px 24px;
  background: linear-gradient(135deg, #0e2246 0%, #1e3a6d 100%);
  color: #ffffff;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.pkg-modal-title-group {
  flex: 1;
}

.pkg-modal-badge-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.pkg-modal-brand {
  font-size: 0.7rem;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.2);
  padding: 2px 8px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.pkg-modal-title {
  font-size: 1.4rem;
  font-weight: 800;
  color: #ffffff;
  margin: 0;
  line-height: 1.3;
}

.pkg-modal-price-tag {
  background: #ffffff;
  color: var(--primary);
  padding: 8px 16px;
  border-radius: 10px;
  text-align: right;
  flex-shrink: 0;
}

.pkg-modal-price-val {
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--accent);
  line-height: 1;
}

.pkg-modal-price-sub {
  font-size: 0.7rem;
  color: var(--text-muted);
  font-weight: 700;
  display: block;
  margin-top: 2px;
}

.pkg-modal-close-btn {
  background: rgba(255, 255, 255, 0.15);
  border: none;
  color: #ffffff;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.25rem;
  line-height: 1;
  transition: all var(--transition-fast);
}

.pkg-modal-close-btn:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: rotate(90deg);
}

.pkg-modal-body {
  padding: 24px;
  overflow-y: auto;
  flex: 1;
}

.pkg-modal-meta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 14px 16px;
  margin-bottom: 20px;
}

.pkg-meta-item strong {
  display: block;
  font-size: 0.72rem;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 800;
  letter-spacing: 0.5px;
  margin-bottom: 2px;
}

.pkg-meta-item span {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--primary);
}

.pkg-modal-section-title {
  font-size: 1rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.pkg-modal-footer {
  padding: 16px 24px;
  background: #f8fafc;
  border-top: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

@media (max-width: 640px) {
  .pkg-modal-header {
    flex-direction: column;
  }
  .pkg-modal-price-tag {
    text-align: left;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  .pkg-modal-footer {
    flex-direction: column-reverse;
  }
  .pkg-modal-footer .btn {
    width: 100%;
  }
}