/* ==========================================================================
   ДКЦ "Св. Иван Рилски" – гр. Търговище
   Модерен дизайн и стил за медицински портал
   ========================================================================== */

@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&family=Outfit:wght@500;600;700;800&display=swap');

:root {
  --primary: #0284c7;
  --primary-hover: #0369a1;
  --primary-dark: #075985;
  --primary-light: #e0f2fe;
  --primary-50: #f0f9ff;
  
  --secondary: #0d9488;
  --secondary-hover: #0f766e;
  --secondary-light: #ccfbf1;
  
  --accent-cyan: #06b6d4;
  --accent-emerald: #10b981;
  --accent-amber: #f59e0b;
  --accent-rose: #f43f5e;
  
  --dark: #0f172a;
  --slate-900: #0f172a;
  --slate-800: #1e293b;
  --slate-700: #334155;
  --slate-600: #475569;
  --slate-500: #64748b;
  --slate-400: #94a3b8;
  --slate-300: #cbd5e1;
  --slate-200: #e2e8f0;
  --slate-100: #f1f5f9;
  --slate-50: #f8fafc;
  --white: #ffffff;
  
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-heading: 'Outfit', 'Plus Jakarta Sans', sans-serif;
  
  --shadow-xs: 0 1px 2px rgba(15, 23, 42, 0.05);
  --shadow-sm: 0 2px 6px -1px rgba(15, 23, 42, 0.08), 0 1px 3px -1px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 8px 20px -3px rgba(15, 23, 42, 0.08), 0 4px 8px -2px rgba(15, 23, 42, 0.03);
  --shadow-lg: 0 16px 32px -4px rgba(15, 23, 42, 0.1), 0 6px 12px -3px rgba(15, 23, 42, 0.04);
  --shadow-xl: 0 24px 48px -12px rgba(15, 23, 42, 0.16);
  --shadow-glow: 0 0 30px rgba(2, 132, 199, 0.25);
  
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --radius-full: 9999px;
  
  --transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-slow: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font-sans);
  background-color: var(--slate-50);
  color: var(--slate-700);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--slate-900);
  line-height: 1.25;
  font-weight: 700;
}

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

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

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

/* ==========================================================================
   Layout Containers
   ========================================================================== */
.container {
  width: 100%;
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.container-narrow {
  width: 100%;
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

/* ==========================================================================
   Top Notification Banner
   ========================================================================== */
.top-notice-bar {
  background: linear-gradient(90deg, #0284c7 0%, #0d9488 100%);
  color: var(--white);
  padding: 0.65rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
}

.top-notice-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.top-notice-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(255, 255, 255, 0.2);
  padding: 0.2rem 0.65rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.top-notice-links {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.top-notice-links a {
  color: var(--white);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  opacity: 0.95;
  font-size: 0.8125rem;
}

.top-notice-links a:hover {
  opacity: 1;
  text-decoration: underline;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--slate-200);
  box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.04);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
}

.brand-icon-box {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  box-shadow: 0 8px 16px -2px rgba(2, 132, 199, 0.35);
  transition: var(--transition);
}

.brand-logo:hover .brand-icon-box {
  transform: scale(1.05) rotate(-2deg);
}

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

.brand-name {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--slate-900);
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.brand-tagline {
  font-size: 0.75rem;
  color: var(--slate-500);
  font-weight: 500;
  letter-spacing: 0.02em;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  list-style: none;
}

.nav-link {
  color: var(--slate-700);
  font-weight: 600;
  font-size: 0.9375rem;
  padding: 0.5rem 0.25rem;
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

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

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--primary);
  border-radius: var(--radius-full);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 1.25rem;
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  white-space: nowrap;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, #0369a1 100%);
  color: var(--white);
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.3);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #0369a1 0%, #075985 100%);
  color: var(--white);
  box-shadow: 0 6px 18px rgba(2, 132, 199, 0.4);
  transform: translateY(-2px);
}

.btn-lab {
  background: linear-gradient(135deg, #0d9488 0%, #0f766e 100%);
  color: var(--white);
  box-shadow: 0 4px 12px rgba(13, 148, 136, 0.3);
}

.btn-lab:hover {
  background: linear-gradient(135deg, #0f766e 0%, #115e59 100%);
  color: var(--white);
  box-shadow: 0 6px 18px rgba(13, 148, 136, 0.4);
  transform: translateY(-2px);
}

.btn-outline {
  background: var(--white);
  color: var(--slate-700);
  border-color: var(--slate-300);
}

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

.btn-outline-white {
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(8px);
}

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

.btn-sm {
  padding: 0.45rem 0.85rem;
  font-size: 0.8125rem;
  border-radius: var(--radius-sm);
}

.btn-lg {
  padding: 0.85rem 1.75rem;
  font-size: 1.0625rem;
  border-radius: var(--radius-lg);
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--slate-700);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.5rem;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-section {
  position: relative;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 60%, #0c4a6e 100%);
  color: var(--white);
  padding: 4.5rem 0 5.5rem;
  overflow: hidden;
}

.hero-bg-accent {
  position: absolute;
  top: -20%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(2, 132, 199, 0.25) 0%, rgba(13, 148, 136, 0.05) 70%, transparent 100%);
  filter: blur(80px);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 3.5rem;
  position: relative;
  z-index: 2;
}

.hero-content h1 {
  font-size: 2.75rem;
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.hero-content h1 .text-highlight {
  background: linear-gradient(90deg, #38bdf8 0%, #2dd4bf 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-lead {
  font-size: 1.125rem;
  color: var(--slate-300);
  margin-bottom: 2rem;
  line-height: 1.65;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(2, 132, 199, 0.2);
  border: 1px solid rgba(56, 189, 248, 0.35);
  color: #7dd3fc;
  padding: 0.35rem 0.95rem;
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.hero-stat-item .stat-num {
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--white);
  font-family: var(--font-heading);
}

.hero-stat-item .stat-label {
  font-size: 0.8125rem;
  color: var(--slate-400);
  font-weight: 500;
}

.hero-visual {
  position: relative;
}

.hero-image-wrapper {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.hero-image-wrapper img {
  width: 100%;
  height: 380px;
  object-fit: cover;
  object-position: left center;
  transition: transform 0.6s ease;
}

.hero-image-wrapper:hover img {
  transform: scale(1.03);
}

.hero-floating-card {
  position: absolute;
  bottom: -24px;
  left: -24px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  padding: 1rem 1.25rem;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  gap: 0.85rem;
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--slate-200);
  max-width: 290px;
}

.floating-icon {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-md);
  background: var(--secondary-light);
  color: var(--secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.floating-text h4 {
  font-size: 0.875rem;
  color: var(--slate-900);
  margin-bottom: 0.15rem;
}

.floating-text p {
  font-size: 0.75rem;
  color: var(--slate-600);
  line-height: 1.3;
}

/* ==========================================================================
   Quick Access Cards Section
   ========================================================================== */
.quick-cards-section {
  margin-top: -3.5rem;
  position: relative;
  z-index: 10;
  margin-bottom: 4rem;
}

.quick-cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.quick-card {
  background: var(--white);
  padding: 1.65rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--slate-200);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.quick-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
  border-color: var(--primary-light);
}

.quick-card-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.icon-blue { background: #e0f2fe; color: #0284c7; }
.icon-teal { background: #ccfbf1; color: #0d9488; }
.icon-emerald { background: #d1fae5; color: #059669; }
.icon-amber { background: #fef3c7; color: #d97706; }

.quick-card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}

.quick-card p {
  font-size: 0.875rem;
  color: var(--slate-600);
  line-height: 1.5;
  margin-bottom: 1.25rem;
  flex-grow: 1;
}

.quick-card-link {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.quick-card-link:hover {
  gap: 0.6rem;
}

/* ==========================================================================
   Section Headings & Common Blocks
   ========================================================================== */
.section {
  padding: 4.5rem 0;
}

.section-bg-light {
  background: var(--slate-100);
}

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

.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 3rem;
}

.section-tag {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--primary);
  background: var(--primary-light);
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  margin-bottom: 0.75rem;
}

.section-title {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--slate-900);
  margin-bottom: 0.85rem;
  letter-spacing: -0.01em;
}

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

/* ==========================================================================
   Doctors & Specialties Catalog
   ========================================================================== */
.filter-controls {
  background: var(--white);
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--slate-200);
  margin-bottom: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.search-input-wrapper {
  position: relative;
  width: 100%;
}

.search-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--slate-400);
  pointer-events: none;
}

.doctor-search-input {
  width: 100%;
  padding: 0.85rem 1rem 0.85rem 2.85rem;
  border: 1px solid var(--slate-300);
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  font-family: inherit;
  transition: var(--transition);
  outline: none;
}

.doctor-search-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15);
}

.category-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.category-tag-btn {
  background: var(--slate-100);
  color: var(--slate-700);
  border: 1px solid transparent;
  padding: 0.45rem 0.95rem;
  border-radius: var(--radius-full);
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.category-tag-btn:hover {
  background: var(--primary-light);
  color: var(--primary-dark);
}

.category-tag-btn.active {
  background: var(--primary);
  color: var(--white);
  box-shadow: 0 2px 8px rgba(2, 132, 199, 0.3);
}

.specialties-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.specialty-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--slate-200);
  overflow: hidden;
  box-shadow: var(--shadow-xs);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

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

.specialty-header {
  padding: 1.25rem 1.25rem 0.85rem;
  background: linear-gradient(to bottom, var(--slate-50), var(--white));
  border-bottom: 1px solid var(--slate-100);
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
}

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

.specialty-title-wrap h3 {
  font-size: 1.05rem;
  line-height: 1.35;
  color: var(--slate-900);
}

.specialty-tag {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 0.2rem;
  display: inline-block;
}

.specialty-body {
  padding: 1.25rem;
  flex-grow: 1;
}

.specialty-desc {
  font-size: 0.875rem;
  color: var(--slate-600);
  line-height: 1.55;
  margin-bottom: 0.85rem;
}

.specialty-services-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.specialty-service-item {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.8125rem;
  color: var(--slate-700);
  line-height: 1.4;
}

.specialty-service-item svg {
  color: var(--primary);
  flex-shrink: 0;
  margin-top: 0.15rem;
}

/* ==========================================================================
   Laboratory Callout Section
   ========================================================================== */
.lab-banner-section {
  background: linear-gradient(135deg, #042f2e 0%, #0f766e 50%, #0d9488 100%);
  color: var(--white);
  padding: 4rem 0;
  border-radius: var(--radius-xl);
  margin: 3rem 0;
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 40px -10px rgba(13, 148, 136, 0.4);
}

.lab-banner-accent {
  position: absolute;
  top: -50px;
  right: -50px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(20, 184, 166, 0.4) 0%, transparent 70%);
  pointer-events: none;
}

.lab-banner-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
  gap: 3rem;
  position: relative;
  z-index: 2;
  padding: 0 2rem;
}

.lab-banner-content h2 {
  color: var(--white);
  font-size: 2.25rem;
  margin-bottom: 1rem;
}

.lab-banner-content p {
  color: #ccfbf1;
  font-size: 1.05rem;
  line-height: 1.6;
  margin-bottom: 1.75rem;
}

.lab-features {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.lab-feature-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--white);
  font-size: 0.9375rem;
}

.lab-feature-item svg {
  color: #5eead4;
  flex-shrink: 0;
}

.lab-portal-box {
  background: rgba(255, 255, 255, 0.95);
  color: var(--slate-900);
  padding: 2.25rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  text-align: center;
}

.lab-portal-box h3 {
  font-size: 1.35rem;
  margin-bottom: 0.75rem;
}

.lab-portal-box p {
  font-size: 0.875rem;
  color: var(--slate-600);
  margin-bottom: 1.5rem;
}

/* ==========================================================================
   Working Hours & Location Section
   ========================================================================== */
.schedule-location-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.info-box-card {
  background: var(--white);
  padding: 2.25rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--slate-200);
  box-shadow: var(--shadow-sm);
}

.info-box-header {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--slate-100);
}

.info-box-header h3 {
  font-size: 1.35rem;
}

.schedule-table {
  width: 100%;
  border-collapse: collapse;
}

.schedule-table tr {
  border-bottom: 1px solid var(--slate-100);
}

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

.schedule-table td {
  padding: 0.85rem 0.5rem;
  font-size: 0.9375rem;
}

.schedule-table .day-name {
  font-weight: 600;
  color: var(--slate-800);
}

.schedule-table .day-hours {
  text-align: right;
  font-weight: 700;
  color: var(--primary-dark);
}

.schedule-table .day-off {
  color: var(--slate-400);
  font-style: italic;
  font-weight: 500;
}

.status-indicator {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.8125rem;
  font-weight: 700;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-full);
  margin-bottom: 1.25rem;
}

.status-open {
  background: #dcfce7;
  color: #15803d;
}

.status-closed {
  background: #fee2e2;
  color: #b91c1c;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: var(--radius-full);
  background: currentColor;
}

.location-details {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.contact-pill {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
}

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

.contact-pill-text h4 {
  font-size: 0.95rem;
  margin-bottom: 0.2rem;
}

.contact-pill-text p, .contact-pill-text a {
  font-size: 0.875rem;
  color: var(--slate-600);
}

/* ==========================================================================
   Patient Info Page Specific Styles
   ========================================================================== */
.page-hero {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 70%, #0369a1 100%);
  color: var(--white);
  padding: 3.5rem 0 4.5rem;
  text-align: center;
  position: relative;
}

.page-hero-title {
  font-size: 2.5rem;
  color: var(--white);
  margin-bottom: 1rem;
}

.page-hero-subtitle {
  font-size: 1.15rem;
  color: var(--slate-300);
  max-width: 760px;
  margin: 0 auto 1.5rem;
}

.breadcrumbs {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--slate-400);
  background: rgba(255, 255, 255, 0.08);
  padding: 0.35rem 1rem;
  border-radius: var(--radius-full);
}

.breadcrumbs a {
  color: #7dd3fc;
}

.breadcrumbs span {
  color: var(--slate-300);
}

/* Process Timeline */
.process-steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-bottom: 4rem;
}

.process-step-card {
  background: var(--white);
  padding: 1.75rem 1.5rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--slate-200);
  box-shadow: var(--shadow-sm);
  position: relative;
  display: flex;
  flex-direction: column;
}

.step-num-badge {
  width: 36px;
  height: 36px;
  background: var(--primary);
  color: var(--white);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1rem;
  margin-bottom: 1rem;
  box-shadow: 0 4px 10px rgba(2, 132, 199, 0.3);
}

.process-step-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.process-step-card p {
  font-size: 0.875rem;
  color: var(--slate-600);
  line-height: 1.5;
}

/* Official NZOK Articles Cards */
.nzok-articles-container {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.nzok-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--slate-200);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: var(--transition);
}

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

.nzok-card-header {
  padding: 1.25rem 1.75rem;
  background: var(--slate-50);
  border-bottom: 1px solid var(--slate-200);
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
}

.nzok-card-title-group {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.nzok-num-tag {
  background: var(--primary-light);
  color: var(--primary-dark);
  font-weight: 800;
  font-size: 0.875rem;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-sm);
  letter-spacing: 0.03em;
}

.nzok-card-header h3 {
  font-size: 1.15rem;
}

.nzok-card-body {
  padding: 1.75rem;
  line-height: 1.7;
}

.nzok-specialties-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.badge-specialty {
  background: var(--slate-100);
  color: var(--slate-700);
  font-size: 0.775rem;
  font-weight: 600;
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--slate-200);
}

.rights-highlight-box {
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
  border-left: 4px solid var(--primary);
  padding: 1.5rem 1.75rem;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  margin: 2.5rem 0;
}

.rights-highlight-box h3 {
  color: var(--primary-dark);
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.rights-highlight-box p {
  color: var(--slate-700);
  font-size: 0.95rem;
}

/* FAQ Accordion */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition);
}

.faq-question {
  padding: 1.25rem 1.5rem;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--slate-800);
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  background: var(--white);
  transition: var(--transition);
  border: none;
  width: 100%;
  text-align: left;
}

.faq-question:hover {
  color: var(--primary);
  background: var(--slate-50);
}

.faq-chevron {
  transition: transform 0.3s ease;
  color: var(--slate-400);
}

.faq-item.active .faq-chevron {
  transform: rotate(180deg);
  color: var(--primary);
}

.faq-answer {
  padding: 0 1.5rem;
  max-height: 0;
  overflow: hidden;
  transition: all 0.3s ease-out;
  color: var(--slate-600);
  font-size: 0.9375rem;
  line-height: 1.65;
}

.faq-item.active .faq-answer {
  padding: 0 1.5rem 1.25rem;
  max-height: 400px;
}

/* Checklist Cards */
.doc-checklist {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.doc-check-card {
  background: var(--white);
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--slate-200);
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.check-icon-box {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-full);
  background: #dcfce7;
  color: #16a34a;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.doc-check-card h4 {
  font-size: 1rem;
  margin-bottom: 0.35rem;
}

.doc-check-card p {
  font-size: 0.8125rem;
  color: var(--slate-600);
}

/* ==========================================================================
   Appointment Booking Modal
   ========================================================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

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

.modal-container {
  background: var(--white);
  width: 100%;
  max-width: 600px;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  overflow: hidden;
  transform: translateY(20px) scale(0.97);
  transition: var(--transition-slow);
  max-height: 90vh;
  display: flex;
  flex-direction: column;
}

.modal-overlay.active .modal-container {
  transform: translateY(0) scale(1);
}

.modal-header {
  padding: 1.5rem 1.75rem;
  background: linear-gradient(135deg, var(--slate-900) 0%, var(--primary-dark) 100%);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-header h3 {
  color: var(--white);
  font-size: 1.35rem;
}

.modal-close-btn {
  background: rgba(255, 255, 255, 0.15);
  border: none;
  color: var(--white);
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}

.modal-close-btn:hover {
  background: rgba(255, 255, 255, 0.3);
}

.modal-body {
  padding: 1.75rem;
  overflow-y: auto;
}

.booking-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-group label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--slate-800);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--slate-300);
  border-radius: var(--radius-md);
  font-family: inherit;
  font-size: 0.9375rem;
  transition: var(--transition);
  outline: none;
  background: var(--white);
}

.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15);
}

.form-radios {
  display: flex;
  gap: 1.5rem;
  padding: 0.25rem 0;
}

.radio-label {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.875rem;
  cursor: pointer;
}

/* Toast Notification */
.toast-notice {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: var(--slate-900);
  color: var(--white);
  padding: 1rem 1.5rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xl);
  display: flex;
  align-items: center;
  gap: 0.85rem;
  z-index: 2000;
  transform: translateY(100px);
  opacity: 0;
  transition: var(--transition);
}

.toast-notice.show {
  transform: translateY(0);
  opacity: 1;
}

.toast-icon {
  color: var(--accent-emerald);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: var(--slate-900);
  color: var(--slate-300);
  padding: 4.5rem 0 2rem;
  border-top: 1px solid var(--slate-800);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3.5rem;
}

.footer-brand h3 {
  color: var(--white);
  font-size: 1.35rem;
  margin-bottom: 0.85rem;
}

.footer-brand p {
  font-size: 0.9125rem;
  line-height: 1.6;
  color: var(--slate-400);
  margin-bottom: 1.25rem;
}

.footer-col h4 {
  color: var(--white);
  font-size: 1.05rem;
  margin-bottom: 1.25rem;
  position: relative;
  padding-bottom: 0.5rem;
}

.footer-col h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 32px;
  height: 2px;
  background: var(--primary);
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.footer-links a {
  color: var(--slate-400);
  font-size: 0.875rem;
  transition: var(--transition);
}

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

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid var(--slate-800);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.8125rem;
  color: var(--slate-500);
}

.footer-bottom a {
  color: var(--slate-400);
}

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

/* ==========================================================================
   Responsive Breakpoints & Mobile Optimization
   ========================================================================== */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .quick-cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .specialties-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .lab-banner-grid {
    grid-template-columns: 1fr;
  }
  
  .process-steps-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .doc-checklist {
    grid-template-columns: 1fr;
  }
  
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  body {
    padding-bottom: 74px; /* Space for mobile sticky action bar */
  }

  .site-header {
    border-bottom: 1px solid var(--slate-200);
  }

  .navbar {
    height: 72px;
  }

  .nav-menu {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 1.5rem 1.25rem;
    box-shadow: 0 20px 30px rgba(15, 23, 42, 0.12);
    border-bottom: 1px solid var(--slate-200);
    display: none;
    gap: 0.25rem;
    max-height: calc(100vh - 72px);
    overflow-y: auto;
  }
  
  .nav-menu.show {
    display: flex;
    animation: slideDownNav 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  }

  @keyframes slideDownNav {
    from {
      opacity: 0;
      transform: translateY(-8px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  .nav-menu li {
    width: 100%;
  }

  .nav-link {
    width: 100%;
    padding: 0.85rem 1rem;
    border-radius: var(--radius-md);
    font-size: 1rem;
  }

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

  .nav-link.active::after {
    display: none;
  }

  .mobile-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: var(--radius-md);
    background: var(--slate-100);
    color: var(--slate-800);
    border: none;
    cursor: pointer;
    transition: var(--transition);
  }

  .mobile-toggle:active {
    background: var(--slate-200);
  }
  
  .nav-actions .btn-lab {
    display: none;
  }

  .btn-call-header .phone-label-desktop {
    display: none;
  }

  .btn-call-header .phone-label-mobile {
    display: inline;
  }

  /* Hero Mobile Tweaks */
  .hero-section {
    padding: 3rem 0 3.5rem;
  }
  
  .hero-content h1 {
    font-size: 2rem;
  }

  .hero-lead {
    font-size: 1rem;
    margin-bottom: 1.5rem;
  }

  .hero-actions {
    flex-direction: column;
    gap: 0.75rem;
  }

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

  .hero-image-wrapper img {
    height: 230px;
    object-fit: cover;
    object-position: left center;
  }

  .hero-floating-card {
    position: static;
    margin-top: 1rem;
    max-width: 100%;
    box-shadow: var(--shadow-sm);
  }

  .hero-stats {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
    padding-top: 1.5rem;
  }

  .hero-stat-item .stat-num {
    font-size: 1.45rem;
  }

  .hero-stat-item .stat-label {
    font-size: 0.75rem;
  }

  /* Quick cards */
  .quick-cards-section {
    margin-top: 1.5rem;
    margin-bottom: 2.5rem;
  }

  .quick-cards-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .quick-card {
    padding: 1.35rem;
  }

  /* Swipeable Horizontal Filter Tabs */
  .filter-controls {
    padding: 1rem;
    gap: 1rem;
  }

  .doctor-search-input {
    font-size: 16px; /* Prevents auto-zoom in iOS Safari */
    padding: 0.75rem 1rem 0.75rem 2.65rem;
  }

  .category-tags {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding: 0.2rem 0.25rem 0.5rem;
    margin: 0 -0.25rem;
    gap: 0.5rem;
    scrollbar-width: none;
  }

  .category-tags::-webkit-scrollbar {
    display: none;
  }

  .category-tag-btn {
    white-space: nowrap;
    flex-shrink: 0;
    padding: 0.5rem 0.85rem;
    font-size: 0.8125rem;
  }

  /* Specialties Grid */
  .specialties-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .specialty-card {
    border-radius: var(--radius-md);
  }

  .specialty-header {
    padding: 1rem 1.15rem;
  }

  .specialty-body {
    padding: 1rem 1.15rem;
  }

  /* Lab banner */
  .lab-banner-section {
    padding: 2.5rem 1.25rem;
    margin: 2rem 0;
    border-radius: var(--radius-lg);
  }

  .lab-banner-grid {
    padding: 0;
    gap: 2rem;
  }

  .lab-banner-content h2 {
    font-size: 1.75rem;
  }

  .lab-portal-box {
    padding: 1.5rem;
  }

  /* Schedule & Location */
  .schedule-location-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .info-box-card {
    padding: 1.5rem;
  }

  .schedule-table td {
    padding: 0.7rem 0.35rem;
    font-size: 0.875rem;
  }

  /* Patient Info Page Mobile */
  .page-hero {
    padding: 2.75rem 0 3.25rem;
  }

  .page-hero-title {
    font-size: 1.85rem;
  }

  .process-steps-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .nzok-card-header {
    padding: 1rem 1.25rem;
  }

  .nzok-card-body {
    padding: 1.25rem;
  }

  .nzok-card-title-group h3 {
    font-size: 1rem;
  }

  .faq-question {
    padding: 1rem 1.25rem;
    font-size: 0.95rem;
  }

  /* Footer */
  .site-footer {
    padding: 3rem 0 1.5rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 2.5rem;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 0.5rem;
  }
}

@media (max-width: 480px) {
  .brand-name {
    font-size: 1.05rem;
  }

  .brand-tagline {
    font-size: 0.6875rem;
  }

  .hero-content h1 {
    font-size: 1.7rem;
  }

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

  .hero-stats .hero-stat-item:last-child {
    grid-column: span 2;
  }
}

/* ==========================================================================
   Mobile Bottom Sticky Action Bar
   ========================================================================== */
.mobile-bottom-bar {
  display: none;
}

@media (max-width: 768px) {
  .mobile-bottom-bar {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    z-index: 999;
    padding: 0.5rem 0.75rem calc(0.5rem + env(safe-area-inset-bottom, 0px));
    gap: 0.5rem;
    box-shadow: 0 -6px 20px rgba(0, 0, 0, 0.25);
  }

  .mobile-bar-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    padding: 0.5rem 0.25rem;
    border-radius: var(--radius-md);
    color: var(--white);
    font-size: 0.75rem;
    font-weight: 700;
    text-decoration: none;
    transition: var(--transition);
  }

  .mobile-bar-btn:active {
    transform: scale(0.96);
  }

  .mobile-bar-call {
    background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  }

  .mobile-bar-lab {
    background: linear-gradient(135deg, #0d9488 0%, #0f766e 100%);
  }

  .mobile-bar-map {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
  }
}

/* ==========================================================================
   Floating Scroll To Top Button
   ========================================================================== */
.scroll-to-top-btn {
  position: fixed;
  bottom: 86px;
  right: 1.25rem;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  background: var(--white);
  color: var(--slate-800);
  border: 1px solid var(--slate-200);
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: var(--transition);
  z-index: 900;
}

.scroll-to-top-btn.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.scroll-to-top-btn:hover {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}

@media (min-width: 769px) {
  .scroll-to-top-btn {
    bottom: 2rem;
  }
}

