/* ==========================================================================
   POLYCLINIQUE MEDICO SOCIALE - ULTRA PREMIUM DESIGN SYSTEM
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Outfit:wght@400;500;600;700;800&display=swap');
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css');

:root {
  --font-primary: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-heading: 'Outfit', sans-serif;

  --navy-dark: #0b2545;
  --navy-primary: #134074;
  --blue-accent: #1d4ed8;
  --teal-accent: #06d6a0;
  --teal-glow: rgba(6, 214, 160, 0.25);

  --bg-light: #f8fafc;
  --bg-card: #ffffff;
  --bg-dark: #071327;

  --text-dark: #0f172a;
  --text-muted: #64748b;
  --text-light: #f8fafc;

  --border-light: #e2e8f0;
  --border-glow: rgba(19, 64, 116, 0.15);

  --shadow-sm: 0 2px 8px rgba(11, 37, 69, 0.04);
  --shadow-md: 0 8px 24px rgba(11, 37, 69, 0.08);
  --shadow-lg: 0 16px 40px rgba(11, 37, 69, 0.12);
  --shadow-glow: 0 0 30px rgba(6, 214, 160, 0.2);

  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;

  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Base Styles */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  overflow-x: hidden !important;
  max-width: 100%;
}

body {
  font-family: var(--font-primary);
  background-color: var(--bg-light);
  color: var(--text-dark);
  line-height: 1.6;
  overflow-x: hidden !important;
  max-width: 100%;
  width: 100%;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--navy-dark);
  line-height: 1.25;
}

a {
  color: var(--navy-primary);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--teal-accent);
}

/* Header & Glass Navbar */
.top-bar {
  background: linear-gradient(135deg, var(--navy-dark), var(--navy-primary));
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.82rem;
  padding: 0.45rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.top-bar-content {
  max-width: 1440px;
  width: 100%;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.top-bar-info {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.top-bar-info span,
.top-bar-right a {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  white-space: nowrap;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.8rem;
}

.top-bar-info i,
.top-bar-right i {
  color: var(--teal-accent);
}

.top-bar-hours {
  display: inline-flex !important;
  align-items: center;
  gap: 0.45rem;
  background: rgba(6, 214, 160, 0.15);
  border: 1px solid rgba(6, 214, 160, 0.35);
  color: var(--teal-accent) !important;
  padding: 0.2rem 0.75rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.78rem;
}

.top-bar-right a:hover {
  color: var(--teal-accent);
}

.header-glass {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
  box-shadow: 0 4px 20px rgba(11, 37, 69, 0.05);
  transition: var(--transition);
}

.navbar-container {
  max-width: 1440px;
  width: 100%;
  margin: 0 auto;
  padding: 0.75rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.25rem;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--navy-dark);
  flex-shrink: 0;
  text-decoration: none;
}

.brand-logo img {
  height: 40px;
  width: auto;
  border-radius: var(--radius-sm);
}

.brand-logo .brand-badge {
  background: linear-gradient(135deg, var(--navy-dark), var(--navy-primary));
  color: var(--teal-accent);
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  box-shadow: 0 4px 12px rgba(11, 37, 69, 0.15);
  flex-shrink: 0;
}

.brand-text-desktop {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  justify-content: center;
}

.brand-title-top {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--navy-dark);
  letter-spacing: -0.01em;
  line-height: 1.1;
}

.brand-title-sub {
  font-family: var(--font-heading);
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--teal-accent);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.1;
  margin-top: 2px;
}

.brand-text-mobile {
  display: none !important;
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--navy-dark);
  letter-spacing: 0.02em;
}

.nav-menu .mobile-only-link,
.mobile-only-link {
  display: none !important;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-shrink: 1;
}

.nav-link {
  font-weight: 600;
  color: var(--text-dark);
  font-size: 0.86rem;
  padding: 0.4rem 0.6rem;
  border-radius: 8px;
  white-space: nowrap;
  position: relative;
  transition: all 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--navy-primary);
  background: rgba(19, 64, 116, 0.06);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.mobile-toggle {
  display: none;
  font-size: 1.4rem;
  color: var(--navy-dark);
  cursor: pointer;
  background: none;
  border: none;
  padding: 0.4rem;
}

/* Button Sizing & Variants */
.btn-sm {
  padding: 0.55rem 1.15rem;
  font-size: 0.84rem;
}

.btn-lg {
  padding: 0.95rem 2.2rem;
  font-size: 1rem;
}

/* Button Component System */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  font-family: var(--font-primary);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.85rem 1.8rem;
  border-radius: var(--radius-full);
  border: 1px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  box-shadow: var(--shadow-sm);
}

.btn-primary {
  background: linear-gradient(135deg, var(--navy-primary), var(--navy-dark));
  color: #ffffff;
  box-shadow: 0 6px 20px rgba(11, 37, 69, 0.25);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(11, 37, 69, 0.35);
  color: #ffffff;
}

.btn-teal {
  background: var(--teal-accent);
  color: var(--navy-dark);
  box-shadow: 0 6px 20px var(--teal-glow);
}

.btn-teal:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(6, 214, 160, 0.4);
  color: var(--navy-dark);
}

.btn-outline {
  background: transparent;
  border-color: var(--navy-primary);
  color: var(--navy-primary);
}

.btn-outline:hover {
  background: var(--navy-primary);
  color: #ffffff;
  transform: translateY(-2px);
}

.btn-white {
  background: #ffffff;
  color: var(--navy-dark);
}

.btn-white:hover {
  background: var(--bg-light);
  transform: translateY(-2px);
}

/* Modern Split Hero Section System */
.hero-modern-section {
  position: relative;
  background: linear-gradient(135deg, #071327 0%, #0b2545 45%, #134074 100%);
  color: #ffffff;
  padding: 5rem 0 6rem;
  overflow: hidden;
}

.hero-bg-video {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  min-width: 100%;
  min-height: 100%;
  z-index: 0;
  transform: translate(-50%, -50%);
  object-fit: cover;
  opacity: 0.85;
  filter: brightness(0.92);
}

.hero-video-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(7, 19, 39, 0.55) 0%, rgba(7, 19, 39, 0.35) 50%, rgba(11, 37, 69, 0.45) 100%);
  z-index: 1;
}

.hero-ambient-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  z-index: 0;
}

.glow-1 {
  width: 450px;
  height: 450px;
  background: rgba(6, 214, 160, 0.16);
  top: -100px;
  right: -50px;
}

.glow-2 {
  width: 500px;
  height: 500px;
  background: rgba(29, 78, 216, 0.22);
  bottom: -150px;
  left: -100px;
}

.hero-container {
  position: relative;
  z-index: 2;
  max-width: 1320px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3.5rem;
  align-items: center;
}

.hero-text-col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.45rem 1.1rem;
  border-radius: var(--radius-full);
  background: rgba(6, 214, 160, 0.12);
  border: 1px solid rgba(6, 214, 160, 0.35);
  color: var(--teal-accent);
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  backdrop-filter: blur(8px);
}

.badge-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--teal-accent);
  box-shadow: 0 0 10px var(--teal-accent);
  animation: pulseGlow 2s infinite;
}

@keyframes pulseGlow {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(6, 214, 160, 0.7);
  }

  70% {
    transform: scale(1);
    box-shadow: 0 0 0 10px rgba(6, 214, 160, 0);
  }

  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(6, 214, 160, 0);
  }
}

.hero-heading {
  font-size: 3.4rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.15;
  margin-bottom: 1.25rem;
  letter-spacing: -0.02em;
}

.gradient-text {
  background: linear-gradient(135deg, #60a5fa, #93c5fd);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.gradient-text-teal {
  background: linear-gradient(135deg, #2dd4bf, #06d6a0);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtext {
  font-size: 1.1rem;
  color: rgba(248, 250, 252, 0.88);
  line-height: 1.65;
  margin-bottom: 1.75rem;
  max-width: 600px;
}

.hero-trust-pills {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 2.25rem;
}

.trust-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.92);
  background: rgba(255, 255, 255, 0.08);
  padding: 0.4rem 0.85rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(6px);
}

.trust-pill i {
  color: var(--teal-accent);
}

.hero-actions {
  display: flex;
  gap: 1.15rem;
  align-items: center;
  flex-wrap: wrap;
}

.btn-phone {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #ffffff;
  backdrop-filter: blur(8px);
}

.btn-phone:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
  transform: translateY(-2px);
}

/* Hero Visual Showcase */
.hero-visual-col {
  position: relative;
}

.hero-card-glow {
  display: none !important;
}

.hero-image-frame {
  position: relative;
  z-index: 2;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: none !important;
}

.hero-main-img {
  width: 100%;
  height: 460px;
  object-fit: cover;
  border-radius: 22px;
  display: block;
  box-shadow: none !important;
}

/* Floating Glass Badges */
.floating-badge {
  position: absolute;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 0.85rem 1.15rem;
  border-radius: 16px;
  box-shadow: 0 16px 40px rgba(7, 19, 39, 0.22);
  display: flex;
  align-items: center;
  gap: 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.9);
  z-index: 10;
  animation: floatCard 4s ease-in-out infinite;
}

.badge-top-right {
  top: -20px;
  right: 0px;
  animation-delay: 0s;
}

.badge-bottom-left {
  bottom: 30px;
  left: -30px;
  animation-delay: 1.5s;
}

.badge-bottom-right {
  bottom: -20px;
  right: 10px;
  animation-delay: 3s;
}

@keyframes floatCard {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-8px);
  }
}

.badge-icon-box {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  color: #ffffff;
  flex-shrink: 0;
}

.bg-teal {
  background: linear-gradient(135deg, #06d6a0, #059669);
}

.bg-navy {
  background: linear-gradient(135deg, #134074, #0b2545);
}

.bg-emerald {
  background: linear-gradient(135deg, #10b981, #047857);
}

.floating-badge strong {
  display: block;
  font-size: 0.9rem;
  color: var(--navy-dark);
  font-weight: 800;
  line-height: 1.2;
}

.floating-badge small {
  display: block;
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 600;
}

/* Quick Consultation Launcher Bar */
.hero-quick-launcher-wrap {
  position: relative;
  z-index: 15;
  margin-top: 3.5rem;
  margin-bottom: -4rem;
}

.quick-launcher-bar {
  background: #ffffff;
  border-radius: 20px;
  padding: 1.25rem 2rem;
  box-shadow: 0 20px 50px rgba(11, 37, 69, 0.12);
  border: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  gap: 1.5rem;
  justify-content: space-between;
}

.launcher-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex: 1;
}

.launcher-icon {
  font-size: 1.4rem;
  color: var(--navy-primary);
  background: rgba(19, 64, 116, 0.08);
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.launcher-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.06em;
  margin-bottom: 0.2rem;
}

.launcher-select,
.launcher-input {
  border: none;
  background: transparent;
  font-family: var(--font-primary);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--navy-dark);
  outline: none;
  width: 100%;
  cursor: pointer;
}

.launcher-divider {
  width: 1px;
  height: 42px;
  background: var(--border-light);
  flex-shrink: 0;
}

.launcher-btn {
  white-space: nowrap;
  padding: 0.85rem 1.75rem;
  font-size: 0.92rem;
}

/* Statistics Counter Banner */
.stats-banner {
  background: #ffffff;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  max-width: 1200px;
  margin: -3rem auto 4rem;
  padding: 2.5rem 2rem;
  position: relative;
  z-index: 10;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
  border: 1px solid var(--border-light);
}

.stat-item h3 {
  font-size: 2.75rem;
  color: var(--navy-primary);
  font-weight: 800;
  margin-bottom: 0.25rem;
}

.stat-item p {
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.95rem;
}

/* Section Headings */
.section {
  padding: 5rem 0;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 3.5rem;
}

.section-subtitle {
  color: var(--teal-accent);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.85rem;
  margin-bottom: 0.5rem;
  display: block;
}

.section-title {
  font-size: 2.5rem;
  color: var(--navy-dark);
  margin-bottom: 1rem;
}

.section-desc {
  color: var(--text-muted);
  font-size: 1.05rem;
}

/* Service Cards */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.75rem;
  width: 100%;
}

.service-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  overflow: hidden;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: var(--border-glow);
}

.service-img-wrap {
  height: 220px;
  position: relative;
  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.08);
}

.service-icon-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  width: 38px;
  height: 38px;
  background: rgba(11, 37, 69, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--teal-accent);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(6, 214, 160, 0.4);
  z-index: 2;
  transition: transform 0.3s ease, background 0.3s ease;
}

.service-card:hover .service-icon-badge {
  transform: scale(1.08);
  background: var(--navy-primary);
}

.service-content {
  padding: 1.75rem 1.5rem 1.5rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.service-title {
  font-size: 1.35rem;
  margin-bottom: 0.75rem;
}

.service-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 1.25rem;
  flex-grow: 1;
}

.service-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1rem;
  border-top: 1px solid var(--border-light);
}

.service-price {
  font-weight: 700;
  color: var(--navy-primary);
  font-size: 0.9rem;
}

/* Doctors Section */
.doctors-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.doctor-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  overflow: hidden;
  text-align: center;
  transition: var(--transition);
}

.doctor-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.doctor-photo-wrap {
  height: 280px;
  overflow: hidden;
  position: relative;
  background: var(--bg-light);
}

.doctor-photo-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.doctor-card:hover .doctor-photo-wrap img {
  transform: scale(1.05);
}

.doctor-info {
  padding: 1.5rem;
}

.doctor-name {
  font-size: 1.25rem;
  margin-bottom: 0.25rem;
}

.doctor-spec {
  color: var(--teal-accent);
  font-weight: 700;
  font-size: 0.875rem;
  margin-bottom: 0.75rem;
  display: block;
}

.doctor-qual {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-bottom: 1.25rem;
}

/* Gallery Masonry & Filters */
.gallery-filters {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

.filter-btn {
  padding: 0.6rem 1.4rem;
  border-radius: var(--radius-full);
  background: #ffffff;
  border: 1px solid var(--border-light);
  color: var(--text-dark);
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.filter-btn.active,
.filter-btn:hover {
  background: var(--navy-primary);
  color: #ffffff;
  border-color: var(--navy-primary);
}

.gallery-masonry {
  column-count: 3;
  column-gap: 1.5rem;
}

@media (max-width: 900px) {
  .gallery-masonry {
    column-count: 2;
  }
}

@media (max-width: 600px) {
  .gallery-masonry {
    column-count: 1;
  }
}

.gallery-item {
  break-inside: avoid;
  margin-bottom: 1.5rem;
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
}

.gallery-item img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.4s ease;
}

.gallery-item:hover img {
  transform: scale(1.06);
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(11, 37, 69, 0.85), transparent);
  opacity: 0;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.5rem;
  color: #ffffff;
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

/* Testimonials */
.testimonials-slider {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

.testimonial-card {
  background: rgba(255, 255, 255, 0.98);
  padding: 2.25rem 2rem;
  border-radius: var(--radius-lg, 16px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.testimonial-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.18);
}

.quote-watermark {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  font-size: 2.75rem;
  color: rgba(19, 64, 116, 0.08);
  pointer-events: none;
}

.testimonial-quote {
  color: #2b3a4a;
  font-style: italic;
  margin-bottom: 1.75rem;
  font-size: 1.05rem;
  line-height: 1.65;
  position: relative;
  z-index: 1;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: auto;
  padding-top: 1.25rem;
  border-top: 1px dashed rgba(0, 0, 0, 0.08);
}

.testimonial-monogram {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--teal-accent, #14b8a6), var(--navy-primary, #134074));
  color: #ffffff;
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(20, 184, 166, 0.25);
  flex-shrink: 0;
}

.testimonial-author-name {
  color: var(--navy-dark, #0b2545);
  font-size: 1.05rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  line-height: 1.2;
}

.verified-badge {
  color: var(--teal-accent, #14b8a6);
  font-size: 0.88rem;
}

.testimonial-author-role {
  font-size: 0.85rem;
  color: var(--text-muted, #64748b);
  display: block;
  margin-top: 0.2rem;
}

.rating-stars {
  color: #f59e0b;
  margin-bottom: 1rem;
  font-size: 0.95rem;
  letter-spacing: 2px;
}

/* FAQs Accordion */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition);
}

.faq-question {
  width: 100%;
  padding: 1.25rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: none;
  border: none;
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--navy-dark);
  cursor: pointer;
  text-align: left;
}

.faq-question i {
  transition: transform 0.3s ease;
  color: var(--navy-primary);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0, 1, 0, 1);
  padding: 0 1.5rem;
  color: var(--text-muted);
}

.faq-item.active .faq-answer {
  max-height: 500px;
  padding: 0 1.5rem 1.25rem;
  transition: max-height 0.4s cubic-bezier(1, 0, 1, 0);
}

.faq-item.active .faq-question i {
  transform: rotate(180deg);
}

/* Contact Form & Input Styling */
.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--navy-dark);
  font-size: 0.9rem;
}

.form-control {
  width: 100%;
  padding: 0.85rem 1.2rem;
  font-family: var(--font-primary);
  font-size: 0.95rem;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  background: #ffffff;
  color: var(--text-dark);
  transition: var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--navy-primary);
  box-shadow: 0 0 0 3px rgba(19, 64, 116, 0.15);
}

textarea.form-control {
  resize: vertical;
  min-height: 120px;
}

/* Toast Notifications */
.toast-container {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.toast {
  background: #ffffff;
  color: var(--navy-dark);
  padding: 1rem 1.5rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  border-left: 4px solid var(--navy-primary);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 600;
  animation: slideInRight 0.3s ease forwards;
}

.toast-success {
  border-left-color: var(--teal-accent);
}

.toast-error {
  border-left-color: #ef4444;
}

@keyframes slideInRight {
  from {
    transform: translateX(100%);
    opacity: 0;
  }

  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* Footer */
.footer {
  background: var(--navy-dark);
  color: rgba(255, 255, 255, 0.8);
  padding: 5rem 0 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 3rem;
  margin-bottom: 4rem;
}

.footer-brand h3 {
  color: #ffffff;
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.footer-col h4 {
  color: #ffffff;
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.75);
}

.footer-links a:hover {
  color: var(--teal-accent);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.875rem;
}

/* Modal System Styling - Strictly Hidden Offscreen Until Opened */
.modal-backdrop,
#appointmentModal {
  display: none !important;
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  background: rgba(11, 37, 69, 0.82) !important;
  backdrop-filter: blur(8px) !important;
  -webkit-backdrop-filter: blur(8px) !important;
  z-index: 99999 !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 1rem !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  transition: opacity 0.3s ease, visibility 0.3s ease !important;
}

.modal-backdrop.open,
#appointmentModal.open {
  display: flex !important;
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
}

.modal-box {
  background: #ffffff !important;
  width: 100% !important;
  max-width: 580px !important;
  max-height: 90vh !important;
  overflow-y: auto !important;
  padding: 2rem !important;
  border-radius: 24px !important;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.4) !important;
  transform: translateY(20px) scale(0.95);
  transition: transform 0.3s ease !important;
  color: var(--navy-dark) !important;
  position: relative !important;
}

.modal-backdrop.open .modal-box,
#appointmentModal.open .modal-box {
  transform: translateY(0) scale(1);
}

.modal-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--navy-dark);
  cursor: pointer;
  line-height: 1;
  transition: var(--transition);
}

.modal-close:hover {
  color: var(--teal-accent);
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--navy-dark);
  cursor: pointer;
  padding: 0.4rem;
}

/* About Section CSS Rules */
.about-grid-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-img-col {
  position: relative;
  width: 100%;
  max-width: 100%;
}

.about-facility-img {
  width: 100%;
  max-width: 100%;
  height: 420px;
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
  object-fit: cover;
  display: block;
}

.about-features-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.about-experience-badge {
  position: absolute;
  bottom: -15px;
  right: 0px;
  background: var(--navy-dark);
  color: #ffffff;
  padding: 1.25rem 1.5rem;
  border-radius: 16px;
  text-align: center;
  box-shadow: 0 15px 35px rgba(11, 37, 69, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.about-badge-num {
  font-size: 2.2rem;
  color: var(--teal-accent);
  font-weight: 800;
  line-height: 1;
}

.about-badge-txt {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.85);
  margin-top: 0.25rem;
}

/* Responsive Media Queries */
@media (max-width: 1200px) {
  .nav-menu {
    gap: 0.5rem;
  }

  .nav-link {
    font-size: 0.82rem;
    padding: 0.35rem 0.45rem;
  }
}

@media (max-width: 1199px) {
  .top-bar {
    overflow-x: auto;
    white-space: nowrap;
    padding: 0.35rem 0.75rem;
    font-size: 0.75rem;
    -webkit-overflow-scrolling: touch;
  }

  .top-bar-content {
    display: inline-flex;
    min-width: max-content;
    gap: 1.25rem;
  }

  .top-bar-addr {
    display: none;
  }

  /* Brand text & Responsive Nav Rules */
  .brand-text-desktop {
    display: none !important;
  }

  .brand-text-mobile {
    display: inline-block !important;
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--navy-dark);
    letter-spacing: 0.02em;
  }

  .nav-actions {
    display: none !important;
  }

  .mobile-only-link {
    display: block !important;
  }

  .mobile-toggle {
    display: block;
  }

  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #ffffff;
    flex-direction: column;
    padding: 1.5rem 2rem;
    box-shadow: 0 16px 40px rgba(11, 37, 69, 0.15);
    border-top: 1px solid var(--border-light);
    gap: 0.5rem;
    z-index: 999;
  }

  .nav-menu.open {
    display: flex;
  }

  .nav-link {
    font-size: 1rem;
    padding: 0.65rem 0;
    border-bottom: 1px solid #f1f5f9;
    width: 100%;
  }

  /* Hero Section Mobile Layout */
  .hero-modern-section {
    min-height: calc(85vh - 70px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3.5rem 1.25rem 3rem;
  }

  .hero-container {
    width: 100%;
  }

  .hero-bg-video {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    opacity: 0.85 !important;
    filter: brightness(0.9) !important;
  }

  .hero-video-overlay {
    background: linear-gradient(135deg, rgba(7, 19, 39, 0.6) 0%, rgba(7, 19, 39, 0.4) 100%) !important;
  }

  .hero-grid {
    grid-template-columns: 1fr !important;
    text-align: center;
    gap: 1.75rem;
  }

  .hero-text-col {
    align-items: center;
  }

  .hero-heading {
    font-size: 1.95rem;
    line-height: 1.25;
    margin-bottom: 0.85rem;
  }

  .hero-subtext {
    font-size: 0.95rem;
    line-height: 1.5;
    margin: 0 auto 1.25rem;
    max-width: 100%;
  }

  .hero-trust-pills {
    justify-content: center;
    gap: 0.4rem;
    margin-bottom: 1.25rem;
  }

  .trust-pill {
    font-size: 0.78rem;
    padding: 0.35rem 0.65rem;
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
    gap: 0.75rem;
  }

  .hero-actions .btn {
    width: 100%;
    justify-content: center;
    padding: 0.75rem 1.25rem;
    font-size: 0.95rem;
  }

  .hero-visual-col {
    display: none !important;
  }

  .quick-launcher-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
    padding: 1.25rem;
  }

  .launcher-divider {
    display: none;
  }

  .launcher-btn {
    width: 100%;
  }

  /* About Section Mobile Layout */
  .about-clinic-a {
    padding-top: 1rem !important;
    padding-bottom: 2.5rem !important;
  }

  .about-grid-container {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
  }

  /* Cancer Screening Section Mobile Layout */
  .cancer-grid-container {
    grid-template-columns: 1fr !important;
    gap: 2.5rem !important;
  }

  .cancer-screening-section {
    padding-top: 3rem !important;
    padding-bottom: 3rem !important;
  }

  .cancer-visual-col img {
    height: 280px !important;
  }

  .about-img-col {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 auto !important;
  }

  .about-facility-img {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    max-height: 280px !important;
    border-radius: 16px !important;
    object-fit: cover !important;
    display: block !important;
  }

  .about-experience-badge {
    position: relative !important;
    bottom: auto !important;
    right: auto !important;
    margin: -1.25rem auto 0 !important;
    width: max-content !important;
    max-width: 90% !important;
    padding: 0.75rem 1.25rem !important;
    border-radius: 14px !important;
  }

  .about-badge-num {
    font-size: 1.6rem !important;
  }

  .stats-banner {
    grid-template-columns: repeat(2, 1fr);
    margin: 1.5rem auto 1.5rem !important;
    padding: 1.5rem 1.25rem !important;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
}

@media (max-width: 576px) {
  .top-bar {
    display: none !important;
  }

  /* Hide topbar on small screens for maximum header cleanliness */
  .navbar-container {
    padding: 0.65rem 1rem;
    gap: 0.5rem;
  }

  .brand-logo .brand-badge {
    width: 34px;
    height: 34px;
    font-size: 1.05rem;
  }

  .hero-modern-section {
    min-height: calc(85vh - 60px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2.75rem 0.85rem 2.25rem;
  }

  .hero-heading {
    font-size: 1.8rem;
    line-height: 1.22;
  }

  .hero-main-img {
    height: 220px;
  }

  .about-section,
  .section.about-section {
    padding-top: 0.5rem !important;
    padding-bottom: 1.75rem !important;
  }

  .stats-banner {
    grid-template-columns: 1fr;
    gap: 1.25rem;
    text-align: center;
    margin: 1rem auto 1rem !important;
    padding: 1.25rem 1rem !important;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .modal-box {
    padding: 1.25rem !important;
    margin: 0.5rem !important;
    max-height: 85vh !important;
  }

  img {
    max-width: 100%;
    height: auto;
  }

  .table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}

/* Frontend Pagination System */
nav[role="navigation"] svg,
.pagination svg {
  width: 1.25rem !important;
  height: 1.25rem !important;
  display: inline-block;
  vertical-align: middle;
}

.section nav[role="navigation"] a,
.section nav[role="navigation"] span[aria-current="page"]>span,
.section nav[role="navigation"] span[aria-disabled="true"]>span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 0.65rem;
  border-radius: 8px !important;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--navy-dark) !important;
  background: #ffffff !important;
  border: 1px solid var(--border-light) !important;
  text-decoration: none;
  transition: all 0.2s ease;
}

.section nav[role="navigation"] a:hover {
  background: var(--navy-primary) !important;
  color: #ffffff !important;
  border-color: var(--navy-primary) !important;
}

.section nav[role="navigation"] span[aria-current="page"]>span {
  background: var(--navy-primary) !important;
  color: #ffffff !important;
  border-color: var(--navy-primary) !important;
}

/* Emergency Banner Styling System */
.emergency-banner {
  background: linear-gradient(135deg, var(--navy-dark), var(--navy-primary));
  color: #ffffff;
  padding: 3.5rem 0;
}

.emergency-banner-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.emergency-banner-text h3 {
  font-size: 2rem;
  color: #ffffff;
  margin-bottom: 0.4rem;
}

.emergency-banner-text p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.05rem;
}

.emergency-banner-actions {
  display: flex;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
}

.emergency-btn {
  border-radius: 14px !important;
  padding: 0.75rem 1.4rem !important;
  font-size: 0.95rem !important;
  white-space: nowrap;
}

@media (max-width: 991px) {
  .emergency-banner {
    padding: 2.5rem 0;
  }

  .emergency-banner-container {
    flex-direction: column;
    text-align: center;
    gap: 1.25rem;
  }

  .emergency-banner-text h3 {
    font-size: 1.4rem;
    line-height: 1.25;
  }

  .emergency-banner-text p {
    font-size: 0.9rem;
  }

  .emergency-banner-actions {
    flex-direction: column;
    width: 100%;
    gap: 0.75rem;
  }

  .emergency-btn {
    width: 100% !important;
    justify-content: center !important;
    font-size: 0.9rem !important;
    padding: 0.8rem 1rem !important;
    border-radius: 12px !important;
  }
}

@media (max-width: 576px) {
  .services-grid {
    grid-template-columns: 1fr !important;
    width: 100% !important;
    gap: 1.25rem !important;
  }
}