/* ==========================================================================
   AL-NOOR CLINIC & DIAGNOSTIC CENTRE - STYLESHEET
   100% Fully Responsive Medical UI (Mobile-First + Desktop Optimized)
   ========================================================================== */

:root {
  --primary: #007791;          /* Deep Medical Teal */
  --primary-dark: #005669;
  --primary-light: #e6f6f8;
  --accent-pink: #d84572;      /* Mother & Child Rose Accent */
  --accent-pink-soft: #fde8ef;
  --secondary: #0ea5e9;        /* Sky Cyan */
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;
  --dark: #0f172a;
  --dark-light: #1e293b;
  --gray-700: #334155;
  --gray-500: #64748b;
  --gray-300: #cbd5e1;
  --gray-100: #f1f5f9;
  --white: #ffffff;
  --surface: #ffffff;
  --surface-alt: #f8fafc;
  
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 10px 25px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.04);
  --shadow-xl: 0 20px 30px -6px rgba(0, 86, 105, 0.15);
  
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  
  --transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--gray-700);
  background-color: #f8fbfd;
  line-height: 1.6;
  overflow-x: hidden;
  width: 100%;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

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

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ==========================================================================
   TOP EMERGENCY BAR
   ========================================================================== */
.top-bar {
  background: linear-gradient(90deg, #0f2b38 0%, #004d61 100%);
  color: #e2e8f0;
  font-size: 0.82rem;
  padding: 0.45rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

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

.top-bar-left, .top-bar-right {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.top-badge {
  background: var(--accent-pink);
  color: #fff;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  animation: pulse-badge 2s infinite;
}

@keyframes pulse-badge {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.85; transform: scale(1.03); }
}

.top-bar a {
  color: #fff;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: var(--transition);
}

.top-bar a:hover {
  color: #38bdf8;
}

/* ==========================================================================
   HEADER & NAVIGATION
   ========================================================================== */
.main-header {
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 999;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  transition: var(--transition);
  width: 100%;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.8rem 1.25rem;
}

.logo-area {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 0;
}

.logo-icon-box {
  width: 42px;
  height: 42px;
  min-width: 42px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: #fff;
  border-radius: var(--radius-md);
  display: grid;
  place-items: center;
  font-size: 1.25rem;
  box-shadow: 0 6px 14px rgba(0, 119, 145, 0.25);
}

.logo-text {
  min-width: 0;
}

.logo-text h1 {
  font-size: 1.18rem;
  font-weight: 800;
  color: var(--dark);
  line-height: 1.15;
  white-space: nowrap;
}

.logo-text span {
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  display: block;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.4rem;
}

.nav-links li a {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--gray-700);
  transition: var(--transition);
  position: relative;
  padding: 0.25rem 0;
}

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

.nav-links li a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background: var(--primary);
  transition: var(--transition);
}

.nav-links li a:hover::after, .nav-links li a.active::after {
  width: 100%;
}

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

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--dark);
  cursor: pointer;
  padding: 0.25rem;
  line-height: 1;
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 1.25rem;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: var(--transition);
  border: 1px solid transparent;
  white-space: nowrap;
  touch-action: manipulation;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, #0284c7 100%);
  color: #fff;
  box-shadow: 0 4px 14px rgba(0, 119, 145, 0.22);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 119, 145, 0.32);
}

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

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

.btn-pink {
  background: linear-gradient(135deg, var(--accent-pink) 0%, #f43f5e 100%);
  color: #fff;
  box-shadow: 0 4px 14px rgba(216, 69, 114, 0.25);
}

.btn-pink:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(216, 69, 114, 0.35);
}

.btn-sm {
  padding: 0.4rem 0.85rem;
  font-size: 0.8rem;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero-section {
  position: relative;
  padding: 3.5rem 0 3rem;
  background: radial-gradient(circle at top right, #e0f2fe 0%, #f0fdfa 45%, #ffffff 100%);
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 2.5rem;
}

.hero-badge-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.85rem;
  background: #e0f2fe;
  color: #0369a1;
  font-size: 0.8rem;
  font-weight: 700;
  border-radius: var(--radius-full);
  margin-bottom: 1rem;
  border: 1px solid #bae6fd;
}

.hero-badge-tag i {
  color: var(--accent-pink);
}

.hero-title {
  font-size: clamp(1.85rem, 4.5vw, 2.75rem);
  line-height: 1.2;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 1rem;
  word-break: break-word;
}

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

.hero-title span.highlight-teal {
  color: var(--primary);
}

.hero-description {
  font-size: 1rem;
  color: var(--gray-500);
  margin-bottom: 1.75rem;
  max-width: 580px;
}

.hero-cta-group {
  display: flex;
  gap: 0.85rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.hero-highlights {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  border-top: 1px solid var(--gray-300);
  padding-top: 1.5rem;
}

.hl-item h4 {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 0.1rem;
}

.hl-item p {
  font-size: 0.8rem;
  color: var(--gray-500);
  font-weight: 500;
}

/* Quick Action Box */
.hero-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-xl);
  border: 1px solid rgba(0, 119, 145, 0.12);
  position: relative;
}

.hero-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(90deg, var(--accent-pink), var(--primary), var(--secondary));
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.quick-box-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 0.35rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.quick-box-subtitle {
  font-size: 0.82rem;
  color: var(--gray-500);
  margin-bottom: 1.25rem;
}

.quick-action-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.qa-card {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.85rem;
  background: var(--surface-alt);
  border-radius: var(--radius-md);
  border: 1px solid var(--gray-100);
  cursor: pointer;
  transition: var(--transition);
}

.qa-card:hover {
  background: #ffffff;
  border-color: var(--primary);
  transform: translateX(3px);
  box-shadow: var(--shadow-sm);
}

.qa-icon {
  width: 40px;
  height: 40px;
  min-width: 40px;
  border-radius: 10px;
  background: #e0f2fe;
  color: var(--primary);
  display: grid;
  place-items: center;
  font-size: 1.15rem;
}

.qa-icon.pink {
  background: var(--accent-pink-soft);
  color: var(--accent-pink);
}

.qa-icon.green {
  background: #d1fae5;
  color: #059669;
}

.qa-info {
  min-width: 0;
}

.qa-info h5 {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 0.1rem;
}

.qa-info p {
  font-size: 0.76rem;
  color: var(--gray-500);
}

/* ==========================================================================
   SECTIONS GENERAL
   ========================================================================== */
.section {
  padding: 4.5rem 0;
}

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

.section-tag {
  display: inline-block;
  padding: 0.3rem 0.8rem;
  background: var(--primary-light);
  color: var(--primary);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  border-radius: var(--radius-full);
  margin-bottom: 0.65rem;
}

.section-head h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.25rem);
  font-weight: 800;
  color: var(--dark);
  line-height: 1.22;
  margin-bottom: 0.65rem;
}

.section-head p {
  font-size: 0.95rem;
  color: var(--gray-500);
}

/* ==========================================================================
   SERVICES GRID (6 MAIN SERVICES)
   ========================================================================== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.service-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 1.75rem 1.5rem;
  border: 1px solid rgba(226, 232, 240, 0.8);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

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

.service-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--primary);
  opacity: 0;
  transition: var(--transition);
}

.service-card:hover::after {
  opacity: 1;
}

.card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1.15rem;
}

.card-icon {
  width: 50px;
  height: 50px;
  border-radius: var(--radius-md);
  background: var(--primary-light);
  color: var(--primary);
  display: grid;
  place-items: center;
  font-size: 1.4rem;
  transition: var(--transition);
}

.service-card:hover .card-icon {
  background: var(--primary);
  color: #fff;
  transform: rotate(6deg);
}

.service-card.pink-accent:hover .card-icon {
  background: var(--accent-pink);
  color: #fff;
}

.service-badge {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
  background: #f1f5f9;
  color: var(--gray-700);
}

.service-badge.pink {
  background: var(--accent-pink-soft);
  color: var(--accent-pink);
}

.service-card h3 {
  font-size: 1.18rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 0.65rem;
}

.service-card p.service-desc {
  font-size: 0.86rem;
  color: var(--gray-500);
  line-height: 1.55;
  margin-bottom: 1.15rem;
}

.feature-list {
  margin-bottom: 1.35rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.feature-list li {
  font-size: 0.8rem;
  color: var(--gray-700);
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.feature-list li i {
  color: var(--success);
  font-size: 0.72rem;
}

.service-meta {
  margin-top: auto;
  border-top: 1px dashed var(--gray-300);
  padding-top: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.service-price {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--primary);
}

/* ==========================================================================
   MATERNITY SPECIAL BANNER
   ========================================================================== */
.maternity-section {
  background: linear-gradient(135deg, #fff0f5 0%, #fdf2f8 100%);
  padding: 4rem 0;
  border-top: 1px solid #fbcfe8;
  border-bottom: 1px solid #fbcfe8;
}

.maternity-feature-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 2.5rem;
}

.maternity-tag {
  color: var(--accent-pink);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  display: inline-block;
  margin-bottom: 0.35rem;
}

.maternity-heading {
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  font-weight: 800;
  color: #831843;
  margin-bottom: 1rem;
  line-height: 1.25;
}

.maternity-desc {
  color: #475569;
  margin-bottom: 1.35rem;
  font-size: 0.92rem;
}

.maternity-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-bottom: 1.75rem;
}

.maternity-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  color: #334155;
  font-size: 0.88rem;
}

.maternity-list li i {
  color: var(--accent-pink);
  margin-top: 4px;
}

.maternity-img-wrap img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  border: 4px solid #fff;
  width: 100%;
}

/* ==========================================================================
   DOCTORS ROSTER SECTION
   ========================================================================== */
.doctors-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.35rem;
}

.doctor-card {
  background: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-100);
  transition: var(--transition);
}

.doctor-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.doctor-img-wrap {
  height: 190px;
  position: relative;
  overflow: hidden;
  background: #e2e8f0;
}

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

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

.doc-exp-badge {
  position: absolute;
  bottom: 8px;
  left: 8px;
  background: rgba(15, 23, 42, 0.78);
  backdrop-filter: blur(4px);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 4px;
}

.doctor-info {
  padding: 1.15rem;
}

.doctor-info h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 0.2rem;
}

.doc-qual {
  font-size: 0.72rem;
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.doc-role {
  font-size: 0.8rem;
  color: var(--gray-500);
  margin-bottom: 0.65rem;
}

.doc-timing {
  font-size: 0.72rem;
  background: var(--surface-alt);
  padding: 0.35rem 0.55rem;
  border-radius: var(--radius-sm);
  color: var(--gray-700);
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 0.85rem;
}

/* ==========================================================================
   LABORATORY PRICE CATALOG
   ========================================================================== */
.lab-section {
  background: #f1f7fa;
}

.lab-panel {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--gray-300);
}

.lab-filter-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.35rem;
}

.search-input-wrap {
  position: relative;
  width: 320px;
  max-width: 100%;
}

.search-input-wrap i {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gray-500);
}

.search-input-wrap input {
  width: 100%;
  padding: 0.65rem 1rem 0.65rem 2.4rem;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius-full);
  font-size: 0.86rem;
  outline: none;
  transition: var(--transition);
}

.search-input-wrap input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0, 119, 145, 0.15);
}

.lab-table-container {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-sm);
}

.custom-table {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.86rem;
}

.custom-table th {
  background: var(--surface-alt);
  color: var(--dark);
  font-weight: 700;
  padding: 0.75rem 0.85rem;
  border-bottom: 2px solid var(--gray-300);
  white-space: nowrap;
}

.custom-table td {
  padding: 0.75rem 0.85rem;
  border-bottom: 1px solid var(--gray-100);
  color: var(--gray-700);
}

.custom-table tr:hover td {
  background: #f8fafc;
}

.dept-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: var(--radius-full);
  background: #e0f2fe;
  color: #0369a1;
  white-space: nowrap;
}

/* ==========================================================================
   LIVE RECEPTIONIST & QUEUE DESK
   ========================================================================== */
.queue-section {
  background: #ffffff;
}

.desk-grid {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 1.75rem;
}

.desk-control-card, .queue-board-card {
  background: var(--surface-alt);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  border: 1px solid var(--gray-300);
}

.card-heading-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.15rem;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.card-heading-row h3 {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--dark);
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.live-indicator {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--success);
  background: #dcfce7;
  padding: 2px 8px;
  border-radius: var(--radius-full);
}

.live-dot {
  width: 7px;
  height: 7px;
  background: var(--success);
  border-radius: 50%;
  animation: pulse-dot 1.5s infinite;
}

@keyframes pulse-dot {
  0% { transform: scale(0.9); opacity: 0.8; }
  50% { transform: scale(1.4); opacity: 1; }
  100% { transform: scale(0.9); opacity: 0.8; }
}

.quick-form {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

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

.form-group label {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--gray-700);
}

.form-control {
  width: 100%;
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius-sm);
  font-size: 0.86rem;
  outline: none;
  background: #ffffff;
  transition: var(--transition);
}

.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0, 119, 145, 0.12);
}

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

/* Queue List */
.queue-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  max-height: 400px;
  overflow-y: auto;
}

.queue-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #fff;
  padding: 0.8rem 1rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--gray-100);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  gap: 0.5rem;
  flex-wrap: wrap;
}

.queue-token-badge {
  background: #0f172a;
  color: #fff;
  font-size: 0.8rem;
  font-weight: 800;
  padding: 0.3rem 0.6rem;
  border-radius: 6px;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.queue-patient-meta h5 {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--dark);
}

.queue-patient-meta p {
  font-size: 0.75rem;
  color: var(--gray-500);
}

.status-badge {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: var(--radius-full);
  white-space: nowrap;
  user-select: none;
}

.status-Waiting {
  background: #fef3c7;
  color: #92400e;
}

.status-In-Consultation {
  background: #dbeafe;
  color: #1e40af;
}

.status-Completed {
  background: #dcfce7;
  color: #166534;
}

/* ==========================================================================
   REPORT BANNER SECTION
   ========================================================================== */
.report-banner {
  background: linear-gradient(135deg, #093746 0%, #005a70 100%);
  color: #fff;
  padding: 3rem 1.5rem;
  border-radius: var(--radius-lg);
  margin: 1.5rem 0;
  position: relative;
  overflow: hidden;
}

.report-banner-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.75rem;
  flex-wrap: wrap;
}

.report-banner-text {
  max-width: 580px;
}

.report-banner-text h3 {
  font-size: clamp(1.4rem, 3.5vw, 1.85rem);
  font-weight: 800;
  margin-bottom: 0.5rem;
  line-height: 1.25;
}

.report-banner-text p {
  font-size: 0.92rem;
  color: #cbd5e1;
}

.report-search-box {
  display: flex;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.12);
  padding: 0.45rem;
  border-radius: var(--radius-full);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  max-width: 100%;
}

.report-search-box input {
  padding: 0.6rem 1.15rem;
  background: transparent;
  border: none;
  color: #fff;
  outline: none;
  font-size: 0.9rem;
  min-width: 220px;
}

.report-search-box input::placeholder {
  color: #94a3b8;
}

/* ==========================================================================
   PHARMACY SECTION
   ========================================================================== */
.pharmacy-section {
  background: #ffffff;
}

.pharmacy-feature-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 2.5rem;
  align-items: center;
}

.pharmacy-img-wrap img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  width: 100%;
}

.pharmacy-tag {
  background: #dcfce7;
  color: #166534;
}

.pharmacy-heading {
  font-size: clamp(1.6rem, 3.5vw, 2.15rem);
  font-weight: 800;
  color: var(--dark);
  margin: 0.4rem 0 0.85rem;
  line-height: 1.25;
}

.pharmacy-desc {
  color: var(--gray-500);
  margin-bottom: 1.35rem;
  font-size: 0.92rem;
}

.pharmacy-perks-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
  margin-bottom: 1.75rem;
}

.pharmacy-perk-card {
  background: var(--surface-alt);
  padding: 0.85rem;
  border-radius: var(--radius-md);
}

.pharmacy-perk-card h5 {
  color: var(--dark);
  font-weight: 700;
  margin-bottom: 0.2rem;
  font-size: 0.88rem;
}

.pharmacy-perk-card p {
  font-size: 0.78rem;
  color: var(--gray-500);
}

/* ==========================================================================
   CONTACT SECTION
   ========================================================================== */
.contact-section {
  background: #f8fafc;
  border-top: 1px solid var(--gray-300);
}

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

.contact-card {
  background: #fff;
  padding: 1.75rem 1.25rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-100);
  text-align: center;
}

.contact-card-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  margin: 0 auto 0.85rem;
  font-size: 1.25rem;
}

.contact-card-icon.blue {
  background: #e0f2fe;
  color: var(--primary);
}

.contact-card-icon.pink {
  background: var(--accent-pink-soft);
  color: var(--accent-pink);
}

.contact-card-icon.green {
  background: #dcfce7;
  color: #166534;
}

.contact-card h4 {
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 0.4rem;
  font-size: 1.05rem;
}

.contact-card p {
  font-size: 0.85rem;
  color: var(--gray-500);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.main-footer {
  background: #091e28;
  color: #94a3b8;
  padding: 4rem 0 1.5rem;
  font-size: 0.88rem;
}

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

.footer-col h4 {
  color: #fff;
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 1.15rem;
}

.footer-col p {
  line-height: 1.55;
  margin-bottom: 1rem;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.footer-links a {
  color: #94a3b8;
  transition: var(--transition);
}

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

.footer-contact-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.footer-contact-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
}

.footer-contact-list li i {
  color: var(--primary);
  margin-top: 3px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 1.35rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* ==========================================================================
   MODALS (APPOINTMENT TOKEN & DIAGNOSTIC REPORT)
   ========================================================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(5px);
  display: grid;
  place-items: center;
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  padding: 1rem;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-content {
  background: #ffffff;
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 620px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  animation: slide-up 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.modal-report-size {
  max-width: 780px;
}

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

.modal-header {
  padding: 1.15rem 1.35rem;
  border-bottom: 1px solid var(--gray-100);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-header h3 {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--dark);
}

.modal-close-btn {
  background: none;
  border: none;
  font-size: 1.25rem;
  color: var(--gray-500);
  cursor: pointer;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  transition: var(--transition);
}

.modal-close-btn:hover {
  background: var(--gray-100);
  color: var(--danger);
}

.modal-body {
  padding: 1.35rem;
}

/* Printable Token Card */
.token-slip {
  border: 2px dashed #007791;
  border-radius: var(--radius-md);
  padding: 1.25rem;
  background: #fcfefe;
  text-align: center;
  margin-top: 0.5rem;
}

.token-slip-header {
  border-bottom: 1px solid var(--gray-300);
  padding-bottom: 0.65rem;
  margin-bottom: 0.85rem;
}

.token-number-box {
  background: linear-gradient(135deg, var(--primary) 0%, #0284c7 100%);
  color: #fff;
  padding: 0.65rem;
  border-radius: var(--radius-md);
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: 1.5px;
  margin: 0.85rem 0;
}

.token-details-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.65rem;
  text-align: left;
  font-size: 0.82rem;
  background: #f8fafc;
  padding: 0.85rem;
  border-radius: var(--radius-sm);
  margin-bottom: 1rem;
}

.token-details-grid p strong {
  color: var(--dark);
}

/* Diagnostic Report Paper */
.report-paper {
  background: #fff;
  border: 1px solid #cbd5e1;
  padding: 1.75rem;
  border-radius: 8px;
  font-family: inherit;
}

.report-clinic-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  border-bottom: 3px double var(--primary);
  padding-bottom: 0.85rem;
  margin-bottom: 1rem;
  gap: 1rem;
  flex-wrap: wrap;
}

.report-patient-meta {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 0.75rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.55rem;
  font-size: 0.8rem;
  margin-bottom: 1.25rem;
}

.report-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1.25rem;
  font-size: 0.84rem;
}

.report-table th, .report-table td {
  border: 1px solid #e2e8f0;
  padding: 0.6rem 0.75rem;
}

.report-table th {
  background: #f1f5f9;
  font-weight: 700;
}

.report-impression {
  background: #f0fdfa;
  border-left: 4px solid var(--primary);
  padding: 0.85rem;
  border-radius: 0 6px 6px 0;
  font-size: 0.84rem;
  margin-bottom: 1.25rem;
}

.report-signatures {
  display: flex;
  justify-content: space-between;
  margin-top: 1.75rem;
  padding-top: 0.85rem;
  border-top: 1px solid #e2e8f0;
  font-size: 0.78rem;
}

/* ==========================================================================
   FLOATING MOBILE ACTION BAR (PHONE ONLY)
   ========================================================================== */
.mobile-bottom-bar {
  display: none;
}

/* Toast Container */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.toast {
  background: #0f172a;
  color: #fff;
  padding: 0.8rem 1.15rem;
  border-radius: var(--radius-md);
  font-size: 0.84rem;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 0.55rem;
  animation: toast-in 0.3s ease;
  border-left: 4px solid var(--primary);
}

@keyframes toast-in {
  from { transform: translateX(50px); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* ==========================================================================
   PRINT MEDIA QUERY
   ========================================================================== */
@media print {
  body * {
    visibility: hidden;
  }
  .printable-area, .printable-area * {
    visibility: visible;
  }
  .printable-area {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    margin: 0;
    padding: 15px;
    background: #fff;
    box-shadow: none !important;
    border: none !important;
  }
  .no-print, .mobile-bottom-bar, .main-header, .top-bar, .main-footer {
    display: none !important;
  }
}

/* ==========================================================================
   RESPONSIVE BREAKPOINTS (TABLETS & DESKTOP)
   ========================================================================== */
@media (max-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .doctors-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 2.25rem;
  }
  .desk-grid {
    grid-template-columns: 1fr;
  }
  .maternity-feature-grid, .pharmacy-feature-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .maternity-img-wrap, .pharmacy-img-wrap {
    order: -1;
  }
}

/* ==========================================================================
   RESPONSIVE BREAKPOINTS (MOBILE DEVICES <= 768PX)
   ========================================================================== */
@media (max-width: 768px) {
  body {
    padding-bottom: 60px; /* Space for mobile sticky bottom bar */
  }

  .section {
    padding: 3rem 0;
  }

  .top-bar {
    font-size: 0.75rem;
    padding: 0.35rem 0;
  }

  .top-bar-left {
    display: none; /* Hide generic OPD text on mobile topbar, keep emergency click-to-call visible */
  }

  .top-bar-right {
    width: 100%;
    justify-content: space-between;
  }

  /* Nav Links Mobile Slide-Down Drawer */
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #ffffff;
    flex-direction: column;
    padding: 1.25rem;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.12);
    border-bottom: 2px solid var(--primary);
    gap: 0;
    z-index: 998;
  }

  .nav-links.active {
    display: flex;
    animation: slide-menu 0.25s ease-out;
  }

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

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

  .nav-links li a {
    display: block;
    padding: 0.8rem 1rem;
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    font-weight: 700;
  }

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

  .nav-links li a::after {
    display: none;
  }

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

  /* Header action button adjustment on small screens */
  #openBookModalBtn {
    padding: 0.5rem 0.85rem;
    font-size: 0.82rem;
  }

  /* Hero Adjustments */
  .hero-section {
    padding: 2.25rem 0 2rem;
  }

  .hero-highlights {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
    text-align: center;
  }

  .hl-item h4 {
    font-size: 1.25rem;
  }

  .hl-item p {
    font-size: 0.72rem;
  }

  /* Single Column Layouts */
  .services-grid {
    grid-template-columns: 1fr;
  }

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

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

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }

  /* Report Search Box Stack */
  .report-banner {
    padding: 2rem 1.25rem;
  }

  .report-banner-inner {
    flex-direction: column;
    align-items: stretch;
  }

  .report-search-box {
    flex-direction: column;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.18);
  }

  .report-search-box input {
    min-width: 100%;
    text-align: center;
  }

  .report-search-box button {
    width: 100%;
  }

  /* Report Modal Meta Stack */
  .report-patient-meta {
    grid-template-columns: 1fr 1fr;
  }

  .report-paper {
    padding: 1.15rem;
  }

  /* Modal Form on Mobile */
  .form-row-2col {
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }

  .token-details-grid {
    grid-template-columns: 1fr;
  }

  /* Mobile Floating Bottom Bar */
  .mobile-bottom-bar {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(12px);
    box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.1);
    z-index: 9998;
    border-top: 1px solid var(--gray-300);
    align-items: stretch;
  }

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

  .mobile-bar-btn i {
    font-size: 1.15rem;
  }

  .mobile-bar-btn.call-btn {
    color: var(--accent-pink);
    border-right: 1px solid var(--gray-100);
  }

  .mobile-bar-btn.book-btn {
    background: linear-gradient(135deg, var(--primary) 0%, #0284c7 100%);
    color: #fff;
  }

  .mobile-bar-btn.wa-btn {
    color: #10b981;
    border-left: 1px solid var(--gray-100);
  }

  .toast-container {
    bottom: 72px; /* Position above bottom bar */
    right: 16px;
    left: 16px;
  }
}

/* ==========================================================================
   SMALL PHONES (<= 480PX)
   ========================================================================== */
@media (max-width: 480px) {
  .logo-text h1 {
    font-size: 1.05rem;
  }

  .logo-text span {
    font-size: 0.62rem;
  }

  #openBookModalBtn span, #openBookModalBtn {
    font-size: 0.78rem;
    padding: 0.45rem 0.75rem;
  }

  .hero-cta-group {
    flex-direction: column;
  }

  .hero-cta-group .btn {
    width: 100%;
  }

  .hero-highlights {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .pharmacy-perks-grid {
    grid-template-columns: 1fr;
  }

  .report-patient-meta {
    grid-template-columns: 1fr;
  }

  .search-input-wrap {
    width: 100%;
  }
}
