/* ==========================================================================
   CSS Reset & Base variables
   ========================================================================== */
:root {
  --primary-color: #0d233a; /* Dark Navy Blue */
  --accent-color: #112846; /* Deeper Blue for CTA */
  --text-color: #0c4da2; /* Vibrant Blue for navigation */
  --text-light: #ffffff;
  --font-family: "Montserrat", sans-serif;
  --transition-speed: 0.3s;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-family);
  background-color: #f8f9fa;
}

body.overflow-hidden {
  overflow: hidden;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ==========================================================================
   Header & Top Bar Styling
   ========================================================================== */
.site-header {
  width: 100%;
  position: relative;
  z-index: 1000;
}

.top-bar {
  background-color: var(--primary-color);
  padding: 12px 0;
}

.top-bar-container {
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.emergency-contact {
  display: flex;
  align-items: center;
  gap: 12px;
}

.phone-icon-wrapper {
  background-color: #ffffff;
  color: var(--primary-color);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.phone-icon {
  width: 18px;
  height: 18px;
}

.emergency-text {
  display: flex;
  flex-direction: column;
}

.availability {
  color: #a4b3c6;
  font-size: 10px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.phone-number {
  color: var(--text-light);
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.2px;
}

/* ==========================================================================
   Main Navbar Styling
   ========================================================================== */
.main-navbar {
  background-color: #ffffff;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
  padding: 15px 0;
  transition: all var(--transition-speed) ease;
}

.main-navbar.sticky {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  animation: slideDown 0.4s ease-out;
}

@keyframes slideDown {
  from {
    transform: translateY(-100%);
  }
  to {
    transform: translateY(0);
  }
}

.navbar-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
}

.logo img {
  max-height: 50px;
  width: auto;
}

/* Navigation Menu */
.nav-menu {
  display: flex;
  list-style: none;
  gap: 22px;
}

.nav-link {
  text-decoration: none;
  color: var(--text-color);
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: 0.3px;
  transition: color var(--transition-speed);
  position: relative;
  padding: 6px 0;
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary-color);
}

/* Actions Container */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 15px;
}

/* Search Utility Toggle Button */
.search-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: #333;
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    color var(--transition-speed),
    transform var(--transition-speed);
}

.search-btn:hover {
  color: var(--text-color);
  transform: scale(1.1);
}

.search-icon {
  width: 20px;
  height: 20px;
}

/* Appointment CTA Button */
.appointment-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  background-color: var(--primary-color);
  color: var(--text-light);
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 700;
  padding: 14px 24px;
  border-radius: 30px;
  box-shadow: 0 4px 10px rgba(13, 35, 58, 0.15);
  transition:
    background-color var(--transition-speed),
    transform var(--transition-speed);
}

.appointment-btn:hover {
  background-color: var(--accent-color);
  transform: translateY(-1.5px);
}

.calendar-icon {
  width: 16px;
  height: 16px;
}

/* Mobile Toggle Hamburger */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 18px;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 1010;
}

.menu-toggle .bar {
  width: 100%;
  height: 2.5px;
  background-color: var(--primary-color);
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* ==========================================================================
   Hero Section Styling (With 60% Transparency Background)
   ========================================================================== */
.hero-section {
  position: relative;
  width: 100%;
  min-height: 80vh;
  display: flex;
  align-items: center;
  background-color: #03152d;
  padding: 100px 0;
  overflow: hidden;
}

.hero-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("resources/hero-landing-shot.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.3; /* 60% transparent overlay */
  z-index: 1;
}

.hero-section::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: radial-gradient(
    rgba(255, 255, 255, 0.15) 1px,
    transparent 1px
  );
  background-size: 24px 24px;
  opacity: 0.3;
  z-index: 2;
}

.hero-container {
  position: relative;
  z-index: 10;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-badge {
  display: inline-block;
  padding: 8px 24px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background-color: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  border-radius: 50px;
  margin-bottom: 30px;
  backdrop-filter: blur(4px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.hero-title {
  font-size: clamp(32px, 5vw, 64px);
  font-weight: 800;
  color: #ffffff;
  line-height: 1.2;
  margin-bottom: 24px;
  letter-spacing: -0.5px;
}

.hero-title .highlight-text {
  color: #4da3ff;
  text-shadow: 0 4px 15px rgba(77, 163, 255, 0.2);
}

.hero-subtitle {
  font-size: clamp(14px, 2vw, 18px);
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 40px;
  font-weight: 400;
}

.hero-subtitle strong {
  color: #ffffff;
  font-weight: 600;
}

.hero-buttons {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-btn {
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  padding: 16px 36px;
  border-radius: 30px;
  transition: all var(--transition-speed) ease;
  text-align: center;
}

.hero-btn.btn-secondary {
  background-color: #0d233a;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.hero-btn.btn-secondary:hover {
  background-color: #163456;
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.3);
}

.hero-btn.btn-primary {
  background-color: #0c4da2;
  color: #ffffff;
  border: 1px solid #0c4da2;
  box-shadow: 0 6px 20px rgba(12, 77, 162, 0.4);
}

.hero-btn.btn-primary:hover {
  background-color: #0f5ec4;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(12, 77, 162, 0.5);
}

.desktop-only {
  display: block;
}

/* ==========================================================================
   Responsive Search Overlay Styling
   ========================================================================== */
.search-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(13, 35, 58, 0.98);
  z-index: 2000;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding-top: 10%;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.search-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.close-search {
  position: absolute;
  top: 30px;
  right: 40px;
  background: transparent;
  border: none;
  color: var(--text-light);
  cursor: pointer;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--transition-speed);
}

.close-search:hover {
  transform: rotate(90deg);
}

.close-search svg {
  width: 32px;
  height: 32px;
}

.search-overlay-content {
  width: 90%;
  max-width: 750px;
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.search-input-wrapper {
  position: relative;
  width: 100%;
}

#globalSearchInput {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 2px solid rgba(255, 255, 255, 0.2);
  padding: 15px 0;
  font-size: 24px;
  font-weight: 500;
  font-family: var(--font-family);
  color: var(--text-light);
  outline: none;
  transition: border-color var(--transition-speed);
}

#globalSearchInput::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.search-border-line {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--text-light);
  transition: width 0.4s ease;
}

#globalSearchInput:focus + .search-border-line {
  width: 100%;
}

.search-results-container {
  max-height: 400px;
  overflow-y: auto;
  padding-right: 10px;
}

.search-results-container::-webkit-scrollbar {
  width: 6px;
}
.search-results-container::-webkit-scrollbar-thumb {
  background-color: rgba(255, 255, 255, 0.2);
  border-radius: 4px;
}

.search-status-text {
  color: rgba(255, 255, 255, 0.5);
  font-size: 15px;
  font-style: italic;
}

.search-result-item {
  display: block;
  text-decoration: none;
  background-color: rgba(255, 255, 255, 0.05);
  padding: 20px;
  margin-bottom: 15px;
  border-radius: 8px;
  transition:
    background-color var(--transition-speed),
    transform var(--transition-speed);
}

.search-result-item:hover {
  background-color: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

.result-title {
  color: var(--text-light);
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 5px;
}

.result-snippet {
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  line-height: 1.5;
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 1024px) {
  .menu-toggle {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    left: -100%;
    top: 0;
    flex-direction: column;
    background-color: #ffffff;
    width: 75%;
    max-width: 300px;
    height: 100vh;
    padding: 80px 30px;
    box-shadow: 5px 0 15px rgba(0, 0, 0, 0.1);
    transition: left 0.4s ease;
    z-index: 1005;
    gap: 25px;
  }

  .nav-menu.active {
    left: 0;
  }

  .menu-toggle.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }
  .menu-toggle.active .bar:nth-child(2) {
    opacity: 0;
  }
  .menu-toggle.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }
}

@media (max-width: 768px) {
  .hero-section {
    min-height: auto;
    padding: 80px 0;
  }

  .desktop-only {
    display: none;
  }

  .hero-buttons {
    flex-direction: column;
    width: 100%;
    max-width: 320px;
  }

  .hero-btn {
    width: 100%;
  }
}

@media (max-width: 580px) {
  .top-bar-container {
    justify-content: center;
  }
  .appointment-btn span {
    display: none;
  }
  .appointment-btn {
    padding: 12px;
    border-radius: 50%;
  }
  .close-search {
    top: 20px;
    right: 20px;
  }
  #globalSearchInput {
    font-size: 18px;
  }
}

/* ==========================================================================
   Services & Highlights Section
   ========================================================================== */
.services-highlight-section {
  position: relative;
  width: 100%;
  padding-bottom: 80px;
  background-color: #f4f8fc; /* Off-white medical background tone */
}

/* 1. Horizontal Medical Services Bar (Dark Blue Overlay Style) */
.services-quick-bar {
  background-color: var(--primary-color);
  padding: 30px 0;
  margin-bottom: 80px;
  box-shadow: 0 10px 30px rgba(13, 35, 58, 0.1);
}

.quick-bar-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

/* Quick Service Item Link styling */
.quick-service-card {
  display: flex;
  align-items: center;
  gap: 15px;
  text-decoration: none;
  background-color: rgba(255, 255, 255, 0.05);
  padding: 18px 24px;
  border-radius: 12px;
  transition:
    background-color var(--transition-speed) ease,
    transform var(--transition-speed) ease;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.quick-service-card:hover {
  background-color: rgba(255, 255, 255, 0.12);
  transform: translateY(-3px);
}

.quick-service-icon {
  font-size: 24px;
  color: #4da3ff; /* Matching brand highlight light blue */
  display: flex;
  align-items: center;
  justify-content: center;
}

.quick-service-info h3 {
  color: var(--text-light);
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 3px;
}

.quick-service-info p {
  color: #a4b3c6;
  font-size: 11px;
  font-weight: 500;
}

/* 2. Main Info Highlights Grid (Trio Cards) */
.highlight-cards-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

/* The Beautifully Refurbished Highlight Card */
.highlight-card {
  background-color: #ffffff;
  border-radius: 24px;
  padding: 45px 35px;
  position: relative;
  box-shadow: 0 15px 40px rgba(12, 77, 162, 0.04);
  border: 1px solid rgba(12, 77, 162, 0.05);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transition:
    transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1),
    box-shadow 0.4s ease;
}

.highlight-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 25px 50px rgba(12, 77, 162, 0.08);
}

/* Icon Bubble Wrapper */
.card-icon-wrapper {
  width: 60px;
  height: 60px;
  background-color: rgba(77, 163, 255, 0.1);
  color: var(--text-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 25px;
  transition:
    background-color var(--transition-speed) ease,
    color var(--transition-speed) ease;
}

.highlight-card:hover .card-icon-wrapper {
  background-color: var(--text-color);
  color: var(--text-light);
}

/* Title & Decorative Elements */
.card-title {
  color: var(--primary-color);
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 15px;
}

.card-divider {
  display: block;
  width: 50px;
  height: 3px;
  background-color: rgba(12, 77, 162, 0.15);
  border-radius: 2px;
  margin-bottom: 25px;
  transition:
    width 0.4s ease,
    background-color 0.4s ease;
}

.highlight-card:hover .card-divider {
  width: 100px;
  background-color: #4da3ff;
}

.card-description {
  color: #556c86;
  font-size: 14.5px;
  line-height: 1.7;
  font-weight: 500;
  margin-bottom: 30px;
}

/* Action Trigger Outbound Icon Anchor */
.card-action-link {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background-color: #f4f8fc;
  color: var(--text-color);
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: flex-end;
  margin-top: auto; /* Pushes button beautifully to the bottom corner */
  transition:
    background-color var(--transition-speed) ease,
    color var(--transition-speed) ease,
    transform var(--transition-speed) ease;
  text-decoration: none;
}

.card-action-link i {
  font-size: 16px;
}

.card-action-link:hover {
  background-color: var(--text-color);
  color: var(--text-light);
  transform: scale(1.05);
}

/* ==========================================================================
   Responsive Adjustments
   ========================================================================== */
@media (max-width: 1100px) {
  .quick-bar-container {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }

  .highlight-cards-container {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .services-quick-bar {
    margin-bottom: 40px;
  }

  .quick-bar-container {
    grid-template-columns: 1fr;
    padding: 0 10px;
  }

  .highlight-cards-container {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .highlight-card {
    padding: 35px 25px;
  }
}

/* ==========================================================================
   Benefits / "What We Offer You" Section Styling
   ========================================================================== */
.benefits-section {
  padding: 90px 0;
  background-color: #ffffff; /* Solid clean white background to contrast with the page background */
  position: relative;
  width: 100%;
}

/* Section Header Typography */
.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 70px auto;
}

.benefits-badge {
  display: inline-block;
  padding: 6px 18px;
  background-color: rgba(12, 77, 162, 0.08);
  color: var(--text-color);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  border-radius: 30px;
  margin-bottom: 20px;
}

.benefits-main-title {
  font-size: clamp(28px, 4vw, 42px);
  color: var(--primary-color);
  font-weight: 800;
  margin-bottom: 20px;
}

.benefits-subtitle {
  color: #556c86;
  font-size: 15px;
  line-height: 1.7;
  font-weight: 500;
}

/* Dynamic Grid Structure */
.benefits-grid {
  display: grid;
  grid-template-columns: 1fr 320px 1fr;
  gap: 30px;
  align-items: center;
}

.benefits-column {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

/* Custom layout adjustments to mirror original design alignment */
.benefits-left {
  align-items: flex-end;
}

.benefits-left .benefit-display-card {
  text-align: right;
  flex-direction: row-reverse; /* Reverses the layout of icons for the left column cards */
}

.benefits-right {
  align-items: flex-start;
}

.benefits-right .benefit-display-card {
  text-align: left;
  flex-direction: row;
}

/* The Beautiful Benefit display cards */
.benefit-display-card {
  display: flex;
  gap: 20px;
  background-color: #ffffff;
  border-radius: 18px;
  padding: 30px 25px;
  width: 100%;
  max-width: 400px;
  box-shadow: 0 10px 30px rgba(12, 77, 162, 0.03);
  border: 1px solid rgba(12, 77, 162, 0.03);
  transition:
    transform var(--transition-speed) ease,
    box-shadow var(--transition-speed) ease;
}

.benefit-display-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 15px 35px rgba(12, 77, 162, 0.06);
}

/* Custom Soft-colored Circular Icon Box */
.benefit-icon-box {
  width: 54px;
  height: 54px;
  background-color: rgba(77, 163, 255, 0.12);
  color: var(--text-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.benefit-card-content h3 {
  color: var(--primary-color);
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 8px;
}

.benefit-card-content p {
  color: #657d95;
  font-size: 14px;
  line-height: 1.6;
  font-weight: 500;
}

/* Center Image Container styles */
.benefits-center-graphic {
  display: flex;
  justify-content: center;
  align-items: center;
}

.center-medical-img {
  max-width: 100%;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 15px 30px rgba(12, 77, 162, 0.08));
  animation: floatingGraphic 6s ease-in-out infinite; /* Adds a nice micro-interaction float! */
}

/* Floating animation effect */
@keyframes floatingGraphic {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

/* ==========================================================================
   Responsive Adjustments
   ========================================================================== */
@media (max-width: 1100px) {
  .benefits-grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }

  /* Hide the center graphic on tablet & mobile devices to save real estate */
  .benefits-center-graphic {
    display: none;
  }

  /* Standardize alignments on medium viewport devices */
  .benefits-left {
    align-items: stretch;
  }

  .benefits-left .benefit-display-card {
    text-align: left;
    flex-direction: row;
  }

  .benefit-display-card {
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  .benefits-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .benefits-column {
    gap: 20px;
  }

  .section-header {
    margin-bottom: 40px;
  }

  .benefit-display-card {
    padding: 25px 20px;
  }
}

/* ==========================================================================
   Horizontal Services Infinite Slider
   ========================================================================== */
.services-slider-section {
  padding: 90px 0;
  background-color: #f4f8fc; /* Beautiful light background contrast */
  overflow: hidden;
  width: 100%;
  position: relative;
}

/* Marquee Outer Container */
.marquee-wrapper {
  display: flex;
  overflow: hidden;
  user-select: none;
  width: 100%;
  position: relative;
  padding: 20px 0;
}

/* Creates a soft fade vignette on the left and right edges */
.marquee-wrapper::before,
.marquee-wrapper::after {
  content: "";
  position: absolute;
  top: 0;
  width: 120px;
  height: 100%;
  z-index: 5;
  pointer-events: none;
}
.marquee-wrapper::before {
  left: 0;
  background: linear-gradient(to right, #f4f8fc 0%, transparent 100%);
}
.marquee-wrapper::after {
  right: 0;
  background: linear-gradient(to left, #f4f8fc 0%, transparent 100%);
}

/* Flex track containing lists moving horizontally */
.marquee-track {
  display: flex;
  width: max-content;
  animation: scrollSlide 80s linear infinite; /* Smooth slow slide across all 19 cards */
}

/* Pauses track animation on card focus/hover */
.marquee-wrapper:hover .marquee-track {
  animation-play-state: paused;
}

/* Individual slider list groups */
.marquee-group {
  display: flex;
  gap: 30px;
  padding-right: 30px; /* Aligns smoothly with gap spacing */
}

/* Refined Service Card design */
.service-slide-card {
  background-color: #ffffff;
  width: 360px; /* Firm layout sizing */
  border-radius: 20px;
  padding: 40px 35px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  box-shadow: 0 10px 30px rgba(12, 77, 162, 0.03);
  border: 1px solid rgba(12, 77, 162, 0.04);
  transition:
    transform 0.3s cubic-bezier(0.165, 0.84, 0.44, 1),
    box-shadow 0.3s ease,
    border-color 0.3s ease;
  flex-shrink: 0; /* Ensures cards are never squeezed */
}

.service-slide-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(12, 77, 162, 0.07);
  border-color: rgba(77, 163, 255, 0.3);
}

/* Tiny Top Category Identifier */
.service-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-color);
  letter-spacing: 1px;
  margin-bottom: 20px;
  text-transform: uppercase;
}

.service-slide-card h3 {
  font-size: 20px;
  color: var(--primary-color);
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 15px;
}

.service-slide-card p {
  font-size: 14px;
  color: #556c86;
  line-height: 1.6;
  font-weight: 500;
}

/* ==========================================================================
   CSS Keyframe slide transitions (Translating strictly 50%)
   ========================================================================== */
@keyframes scrollSlide {
  0% {
    transform: translateX(0);
  }
  100% {
    /* Translates exactly half of duplicate container track width to loop cleanly */
    transform: translateX(-50%);
  }
}

/* Responsive speed control */
@media (max-width: 768px) {
  .marquee-track {
    animation-duration: 50s; /* Slides slightly quicker on smaller viewports */
  }
  .service-slide-card {
    width: 300px;
    padding: 30px 25px;
  }
}

/* ==========================================================================
   Appointment Booking Section
   ========================================================================== */
.appointment-section {
  padding: 100px 0;
  background-color: #ffffff;
  width: 100%;
  position: relative;
}

.appointment-container {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 60px;
  align-items: center;
}

/* 1. Left Graphic Column Stylings */
.appointment-graphic-column {
  position: relative;
  width: 100%;
}

.appointment-img-wrapper {
  position: relative;
  border-radius: 30px;
  overflow: visible; /* Allows the badge to float cleanly */
  box-shadow: 0 15px 40px rgba(12, 77, 162, 0.08);
}

.appointment-main-img {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 30px;
  display: block;
}

/* Floating Response Time Badge */
.response-time-badge {
  position: absolute;
  bottom: -20px;
  left: 30px;
  right: 30px;
  background-color: #fdf5ea; /* Warm creamy yellow background matching your old UI */
  border-radius: 20px;
  padding: 22px 28px;
  display: flex;
  align-items: center;
  gap: 18px;
  box-shadow: 0 10px 30px rgba(223, 137, 34, 0.15);
  border: 1px solid rgba(223, 137, 34, 0.1);
  transform: translateY(0);
  transition: transform var(--transition-speed) ease;
}

.appointment-img-wrapper:hover .response-time-badge {
  transform: translateY(-5px);
}

.badge-icon-box {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: #0c4da2;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.badge-text-box {
  display: flex;
  flex-direction: column;
}

.badge-label {
  font-size: 11px;
  font-weight: 600;
  color: #a08465;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.badge-time {
  font-size: 16px;
  font-weight: 800;
  color: #0d233a;
}

/* 2. Right Form Column Stylings */
.appointment-form-column {
  width: 100%;
}

.form-header {
  margin-bottom: 40px;
}

.form-main-title {
  font-size: clamp(28px, 4vw, 42px);
  color: var(--primary-color);
  font-weight: 800;
  line-height: 1.25;
  margin-top: 15px;
}

.form-main-title .thin-text {
  font-weight: 400;
  color: #556c86;
}

/* Form Layout */
.appointment-form {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.form-grid-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 25px;
}

.form-group {
  width: 100%;
}

/* Clean Underlined Input Fields */
.appointment-form input[type="text"],
.appointment-form input[type="email"],
.appointment-form input[type="tel"],
.appointment-form textarea {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1.5px solid #dcdfe4;
  padding: 15px 0;
  font-family: var(--font-family);
  font-size: 15px;
  font-weight: 500;
  color: var(--primary-color);
  outline: none;
  transition: border-color var(--transition-speed) ease;
}

.appointment-form input::placeholder,
.appointment-form textarea::placeholder {
  color: #a4b3c6;
  font-weight: 500;
}

.appointment-form input:focus,
.appointment-form textarea:focus {
  border-color: var(--text-color);
}

/* Submit CTA Button */
.submit-btn {
  align-self: flex-start;
  display: flex;
  align-items: center;
  gap: 12px;
  background-color: #1a4da2; /* Elegant clinical blue */
  color: #ffffff;
  border: none;
  font-size: 13px;
  font-weight: 700;
  padding: 16px 36px;
  border-radius: 30px;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(26, 77, 162, 0.25);
  transition:
    background-color var(--transition-speed) ease,
    transform var(--transition-speed) ease,
    box-shadow var(--transition-speed) ease;
}

.submit-btn:hover {
  background-color: #0c3d85;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(26, 77, 162, 0.35);
}

.btn-plane-icon {
  font-size: 12px;
}

/* Status Notifications styling */
.form-status-msg {
  font-size: 14.5px;
  font-weight: 600;
  padding: 12px 18px;
  border-radius: 10px;
  display: none; /* Controlled via JS */
}

.form-status-msg.success {
  display: block;
  background-color: #e6f7ed;
  color: #1e7e34;
  border: 1px solid #c3e6cb;
}

.form-status-msg.error {
  display: block;
  background-color: #fdf2f2;
  color: #dc3545;
  border: 1px solid #f5c6cb;
}

/* ==========================================================================
   Responsive Viewport Adjustments
   ========================================================================== */
@media (max-width: 1024px) {
  .appointment-container {
    grid-template-columns: 1fr;
    gap: 60px;
  }

  .appointment-graphic-column {
    max-width: 600px;
    margin: 0 auto;
  }
}

@media (max-width: 580px) {
  .form-grid-row {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .response-time-badge {
    left: 15px;
    right: 15px;
    padding: 15px;
  }

  .submit-btn {
    width: 100%;
    justify-content: center;
  }
}

/* ==========================================================================
   Spectacular Rebranded Footer Section
   ========================================================================== */
.site-footer {
  background-color: #061220; /* Ultra-deep premium dark blue */
  color: #a4b3c6;
  padding-top: 80px;
  width: 100%;
  position: relative;
  font-family: var(--font-family);
  border-top: 4px solid var(--text-color);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 1.1fr 1fr 1.3fr;
  gap: 40px;
  padding-bottom: 60px;
}

.footer-column {
  display: flex;
  flex-direction: column;
}

/* 1. Brand & Bio Column */
.footer-logo {
  display: inline-block;
  margin-bottom: 25px;
}

.footer-logo-img {
  max-height: 55px;
  width: auto;
  filter: brightness(0) invert(1); /* Smooth white color transformation for dark backgrounds */
}

.footer-bio {
  font-size: 14px;
  line-height: 1.7;
  font-weight: 500;
  color: #8da2bb;
}

/* Title Header Styles */
.footer-title {
  font-size: 18px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 25px;
  position: relative;
  padding-bottom: 10px;
}

.footer-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 35px;
  height: 3px;
  background-color: #4da3ff; /* Accent blue decoration line */
  border-radius: 2px;
}

/* 2. Quick Links styling */
.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a {
  color: #8da2bb;
  text-decoration: none;
  font-size: 14.5px;
  font-weight: 600;
  transition:
    color var(--transition-speed) ease,
    padding-left var(--transition-speed) ease;
}

.footer-links a:hover {
  color: #ffffff;
  padding-left: 5px;
}

/* 3. Visiting Time Layout */
.visiting-hours {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.hour-row {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  font-weight: 600;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding-bottom: 8px;
}

.hour-row .day {
  color: #ffffff;
}

.hour-row .time {
  color: #8da2bb;
}

.emergency-notice {
  display: flex;
  align-items: center;
  gap: 10px;
  background-color: rgba(77, 163, 255, 0.08);
  padding: 12px 15px;
  border-radius: 8px;
  border-left: 3px solid #4da3ff;
  font-size: 12px;
  font-weight: 600;
  color: #ffffff;
  line-height: 1.4;
}

.emergency-notice i {
  color: #4da3ff;
  font-size: 14px;
}

/* 4. Address & Contact Layout */
.address-text {
  font-size: 14.5px;
  line-height: 1.6;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 20px;
}

.footer-contacts {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #8da2bb;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  transition: color var(--transition-speed) ease;
}

.contact-item i {
  color: #4da3ff;
  font-size: 15px;
}

.contact-item:hover {
  color: #ffffff;
}

/* 5. Map & Social Grid */
.social-grid {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
}

.social-icon {
  width: 38px;
  height: 38px;
  background-color: rgba(255, 255, 255, 0.05);
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 15px;
  transition:
    background-color var(--transition-speed) ease,
    transform var(--transition-speed) ease;
}

.social-icon:hover {
  background-color: #1a4da2;
  transform: translateY(-2px);
}

/* Sleek Map Container */
.footer-map-container {
  width: 100%;
  height: 120px;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-map-container iframe {
  width: 100%;
  height: 100%;
}

/* ==========================================================================
   Bottom Copyright Bar
   ========================================================================== */
.footer-bottom {
  background-color: #030a12; /* Darkest matching shade for separation */
  padding: 25px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.footer-bottom-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.copyright-text {
  font-size: 13.5px;
  font-weight: 500;
  color: #657d95;
  line-height: 1.5;
}

.developer-credit {
  font-weight: 700;
  color: #ffffff;
}

.footer-legal {
  display: flex;
  gap: 20px;
}

.footer-legal a {
  color: #657d95;
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 600;
  transition: color var(--transition-speed) ease;
}

.footer-legal a:hover {
  color: #ffffff;
}

/* ==========================================================================
   Responsive Adjustments
   ========================================================================== */
@media (max-width: 1200px) {
  .footer-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
  }
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-bottom-container {
    flex-direction: column-reverse;
    text-align: center;
  }

  .footer-legal {
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
  }
}

@media (max-width: 580px) {
  .site-footer {
    padding-top: 60px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 35px;
  }
}

/* Footer Refinement */
.footer-logo-img {
  max-height: 50px;
  width: auto;
}

.footer-bio {
  font-size: 13.5px;
  color: #94a3b8;
  line-height: 1.6;
}

.emergency-tag {
  margin-top: 15px;
  background: #0ea5e9;
  color: #fff;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  display: inline-block;
}

.footer-bottom {
  background-color: #020617;
  padding: 20px 0;
  border-top: 1px solid #1e293b;
}

.footer-bottom-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* ==========================================================================
   About Page Hero Section
   ========================================================================== */
.about-hero-section {
  position: relative;
  width: 100%;
  min-height: 55vh; /* Sleek, shorter height tailored for subpages */
  display: flex;
  align-items: center;
  background-color: #03152d; /* Premium dark navy blue base */
  padding: 90px 0;
  overflow: hidden;
}

/* Subtle modern background texture and radial aura glow */
.about-hero-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image:
    radial-gradient(
      circle at 80% 20%,
      rgba(77, 163, 255, 0.12) 0%,
      transparent 50%
    ),
    radial-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size:
    100% 100%,
    24px 24px;
  z-index: 1;
}

.about-hero-container {
  position: relative;
  z-index: 10;
}

.about-hero-content {
  max-width: 850px;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Elegant Pill Badge */
.about-hero-badge {
  display: inline-block;
  padding: 8px 24px;
  border: 1px solid rgba(77, 163, 255, 0.3);
  background-color: rgba(77, 163, 255, 0.08);
  color: #4da3ff; /* Accent light blue */
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  border-radius: 50px;
  margin-bottom: 25px;
  backdrop-filter: blur(4px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Page Title Typography */
.about-hero-title {
  font-size: clamp(30px, 4.5vw, 56px);
  font-weight: 800;
  color: #ffffff;
  line-height: 1.25;
  margin-bottom: 35px;
  letter-spacing: -0.5px;
}

.about-hero-title .highlight-text {
  color: #4da3ff;
  text-shadow: 0 4px 20px rgba(77, 163, 255, 0.25);
}

/* Buttons Alignment */
.about-hero-buttons {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
  width: 100%;
}

.about-hero-btn {
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  padding: 16px 36px;
  border-radius: 30px;
  transition: all var(--transition-speed) ease;
  text-align: center;
}

/* Glowing Primary Action Button */
.about-hero-btn.btn-primary {
  background-color: #0c4da2;
  color: #ffffff;
  border: 1px solid #0c4da2;
  box-shadow: 0 6px 20px rgba(12, 77, 162, 0.4);
}

.about-hero-btn.btn-primary:hover {
  background-color: #0f5ec4;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(12, 77, 162, 0.5);
}

/* Transparent-dark styled Secondary Button */
.about-hero-btn.btn-secondary {
  background-color: rgba(255, 255, 255, 0.05);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(5px);
}

.about-hero-btn.btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.12);
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.3);
}

/* ==========================================================================
   Responsive Adjustments
   ========================================================================== */
@media (max-width: 768px) {
  .about-hero-section {
    min-height: auto;
    padding: 70px 0;
  }

  .about-hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  .about-hero-btn {
    width: 100%;
    max-width: 320px;
  }
}

/* ==========================================================================
   About Page Detail Section
   ========================================================================== */
.about-details-section {
  padding: 100px 0;
  background-color: #ffffff;
  width: 100%;
  position: relative;
  overflow: hidden;
}

.about-details-container {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 70px;
  align-items: center;
}

/* 1. Left Column: Image & Overlay Card */
.about-graphic-col {
  position: relative;
  width: 100%;
}

.about-img-frame {
  position: relative;
  padding-right: 30px;
  padding-bottom: 30px;
}

/* Base structural image mask matching home cards */
.about-frame-img {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 40px;
  box-shadow: 0 20px 45px rgba(12, 77, 162, 0.08);
  display: block;
  transition: transform var(--transition-speed) ease;
}

/* Dynamic floating card overlay */
.founder-tribute-card {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 280px;
  background-color: #0c1e33; /* Deep dark blue background */
  border-radius: 24px;
  padding: 30px;
  box-shadow: 0 15px 35px rgba(13, 35, 58, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.05);
  z-index: 5;
  transition: transform var(--transition-speed) ease;
}

.about-img-frame:hover .about-frame-img {
  transform: scale(1.02);
}

.about-img-frame:hover .founder-tribute-card {
  transform: translateY(-5px);
}

.tribute-line {
  display: block;
  width: 40px;
  height: 3px;
  background-color: #4da3ff;
  border-radius: 2px;
  margin-bottom: 15px;
}

.tribute-year {
  color: #ffffff;
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 8px;
  letter-spacing: -0.5px;
}

.tribute-founder {
  color: #a4b3c6;
  font-size: 13.5px;
  line-height: 1.5;
}

.tribute-founder strong {
  color: #ffffff;
  font-weight: 700;
}

/* 2. Right Column: Narrative Typographic Content */
.about-narrative-col {
  width: 100%;
}

.narrative-header {
  margin-bottom: 35px;
}

.narrative-main-title {
  font-size: clamp(30px, 4vw, 44px);
  color: var(--primary-color);
  font-weight: 800;
  line-height: 1.2;
  margin-top: 15px;
}

.narrative-main-title .highlight-text {
  color: var(--text-color);
}

.narrative-body {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 40px;
}

.narrative-body p {
  font-size: 15.5px;
  color: #556c86;
  line-height: 1.75;
  font-weight: 500;
}

.narrative-body .narrative-lead {
  font-size: 17px;
  color: var(--primary-color);
  line-height: 1.7;
  font-weight: 600;
}

.narrative-body .narrative-highlight {
  border-left: 3px solid #4da3ff;
  padding-left: 20px;
  font-style: italic;
  color: #475569;
}

/* Bottom feature row */
.narrative-feature-row {
  display: flex;
  gap: 30px;
  flex-wrap: wrap;
}

.narrative-badge {
  display: flex;
  align-items: center;
  gap: 12px;
}

.narrative-badge .badge-icon {
  width: 44px;
  height: 44px;
  background-color: rgba(12, 77, 162, 0.08);
  color: var(--text-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}

.narrative-badge span {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--primary-color);
}

/* ==========================================================================
   Responsive Adjustments
   ========================================================================== */
@media (max-width: 1024px) {
  .about-details-container {
    grid-template-columns: 1fr;
    gap: 60px;
  }

  .about-graphic-col {
    max-width: 600px;
    margin: 0 auto;
  }
}

@media (max-width: 580px) {
  .about-img-frame {
    padding-right: 0;
    padding-bottom: 80px; /* Space for the floating card at the bottom */
  }

  .founder-tribute-card {
    width: 100%;
    left: 0;
    right: auto;
  }

  .narrative-feature-row {
    flex-direction: column;
    gap: 20px;
  }
}

/* ==========================================================================
   Refurbished Mission, Vision & Core Values Section
   ========================================================================== */
.values-section {
  padding: 100px 0;
  background-color: #f8fafc; /* Crisp, clean clinical gray background */
  width: 100%;
  position: relative;
}

/* 1. Refined Mission & Vision Cards */
.mv-split-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-bottom: 90px;
}

.mv-card {
  background-color: #ffffff;
  border-radius: 28px;
  padding: 50px 45px;
  display: flex;
  gap: 30px;
  align-items: flex-start;
  box-shadow: 0 10px 30px rgba(12, 77, 162, 0.02);
  border: 1px solid rgba(12, 77, 162, 0.04);
  position: relative;
  overflow: hidden;
  transition:
    transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1),
    box-shadow 0.4s ease;
}

/* Beautiful dark background overlay variant for Vision to keep contrast elegant */
.mv-card.vision-card {
  background-color: var(--primary-color);
  border: 1px solid rgba(255, 255, 255, 0.03);
}

.mv-card:hover {
  transform: translateY(-5px);
}

.mv-card.mission-card:hover {
  box-shadow: 0 20px 40px rgba(12, 77, 162, 0.06);
}

.mv-card.vision-card:hover {
  box-shadow: 0 20px 40px rgba(13, 35, 58, 0.3);
}

/* Icons styling */
.mv-icon-wrapper {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  flex-shrink: 0;
}

.mission-card .mv-icon-wrapper {
  background-color: rgba(12, 77, 162, 0.08);
  color: var(--text-color);
}

.vision-card .mv-icon-wrapper {
  background-color: rgba(255, 255, 255, 0.08);
  color: #4da3ff;
}

/* Text Content within Mission/Vision */
.mv-card-content h3 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 15px;
}

.mission-card .mv-card-content h3 {
  color: var(--primary-color);
}

.vision-card .mv-card-content h3 {
  color: #ffffff;
}

.mv-card-content p {
  font-size: 15px;
  line-height: 1.7;
  font-weight: 500;
}

.mission-card .mv-card-content p {
  color: #556c86;
}

.vision-card .mv-card-content p {
  color: rgba(255, 255, 255, 0.8);
}

/* 2. Reimagined Core Values Layout */
.values-grid-wrapper {
  width: 100%;
}

.values-grid-header {
  display: flex;
  align-items: center;
  gap: 25px;
  margin-bottom: 50px;
}

.values-grid-header h3 {
  font-size: 24px;
  font-weight: 800;
  color: var(--primary-color);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  flex-shrink: 0;
}

.values-line-decorator {
  flex-grow: 1;
  height: 2px;
  background: linear-gradient(
    to right,
    rgba(12, 77, 162, 0.15) 0%,
    transparent 100%
  );
}

/* Core Values Grid */
.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

/* Premium Value Cards */
.value-item-card {
  background-color: #ffffff;
  border-radius: 20px;
  padding: 40px 30px;
  border: 1px solid rgba(12, 77, 162, 0.03);
  box-shadow: 0 10px 30px rgba(12, 77, 162, 0.02);
  transition:
    transform var(--transition-speed) ease,
    box-shadow var(--transition-speed) ease,
    border-color var(--transition-speed) ease;
}

.value-item-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 15px 35px rgba(12, 77, 162, 0.05);
  border-color: rgba(12, 77, 162, 0.08);
}

/* High-end Variable Controlled Accent Icon Container */
.value-icon-box {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  background-color: rgba(255, 255, 255, 1);
  color: var(--value-accent);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.03);
  border: 1.5px solid rgba(12, 77, 162, 0.03);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  margin-bottom: 25px;
  transition:
    background-color var(--transition-speed) ease,
    color var(--transition-speed) ease;
}

.value-item-card:hover .value-icon-box {
  background-color: var(--value-accent);
  color: #ffffff;
  border-color: var(--value-accent);
}

.value-item-card h4 {
  font-size: 18px;
  color: var(--primary-color);
  font-weight: 700;
  margin-bottom: 12px;
}

.value-item-card p {
  font-size: 14px;
  color: #657d95;
  line-height: 1.6;
  font-weight: 500;
}

/* ==========================================================================
   Responsive Adjustments
   ========================================================================== */
@media (max-width: 1024px) {
  .values-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .mv-split-container {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .mv-card {
    padding: 40px 30px;
    flex-direction: column;
    gap: 20px;
  }

  .values-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

/* ==========================================================================
   Home Healthcare Section Styling
   ========================================================================== */
.home-healthcare-section {
  padding: 100px 0;
  background-color: #ffffff; /* Contrast off of the previous section's light grey */
  width: 100%;
  position: relative;
  overflow: hidden;
}

.healthcare-grid-container {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 80px;
  align-items: center;
}

/* 1. Left Side: Structured Portrait Frame with offset depth */
.healthcare-graphic-col {
  position: relative;
  width: 100%;
  display: flex;
  justify-content: center;
}

.portrait-box-frame {
  position: relative;
  width: 100%;
  max-width: 440px;
  padding-bottom: 20px;
}

/* Decorative Background depth sheet */
.portrait-depth-card {
  position: absolute;
  top: 25px;
  left: -25px;
  width: 100%;
  height: 100%;
  background-color: #f4f8fc;
  border: 2px solid rgba(12, 77, 162, 0.04);
  border-radius: 40px 10px 40px 40px; /* Sophisticated asymmetric corners */
  z-index: 1;
}

/* Main Masked Photo Wrapper */
.portrait-image-wrapper {
  position: relative;
  width: 100%;
  border-radius: 40px 40px 10px 40px; /* Opposite asymmetry curves */
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(12, 77, 162, 0.08);
  z-index: 2;
}

.portrait-img {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
  transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.portrait-box-frame:hover .portrait-img {
  transform: scale(1.03);
}

/* Floating overlay badge */
.doorstep-care-badge {
  position: absolute;
  bottom: -10px;
  right: -15px;
  background-color: #0c1e33; /* Matches global darker card schemes */
  border-radius: 20px;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 15px;
  box-shadow: 0 10px 30px rgba(12, 77, 162, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.06);
  z-index: 5;
  transform: translateY(0);
  transition: transform var(--transition-speed) ease;
}

.portrait-box-frame:hover .doorstep-care-badge {
  transform: translateY(-5px);
}

.doorstep-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: #ef4444; /* Vivid medical red/pink accent */
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.doorstep-text {
  display: flex;
  flex-direction: column;
}

.doorstep-text span {
  font-size: 11px;
  color: #a4b3c6;
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.doorstep-text strong {
  font-size: 14.5px;
  color: #ffffff;
  font-weight: 700;
}

/* 2. Right Side: Typographic Structure */
.healthcare-narrative-col {
  width: 100%;
}

.healthcare-body {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 35px;
}

.healthcare-body .lead-text {
  font-size: 17px;
  color: var(--primary-color);
  font-weight: 600;
  line-height: 1.7;
}

.healthcare-body .closing-text {
  font-size: 15px;
  color: #556c86;
  line-height: 1.7;
  font-weight: 500;
}

/* Checklist items design */
.healthcare-checklist {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin: 10px 0;
}

.healthcare-checklist li {
  display: flex;
  align-items: center;
  gap: 15px;
}

.check-icon {
  font-size: 18px;
  color: var(--text-color);
  display: flex;
  align-items: center;
  justify-content: center;
}

.healthcare-checklist span {
  font-size: 15.5px;
  font-weight: 700;
  color: var(--primary-color);
}

/* Core CTA Button block */
.healthcare-cta-btn {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background-color: #1a4da2;
  color: #ffffff;
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 700;
  padding: 16px 36px;
  border-radius: 30px;
  box-shadow: 0 6px 20px rgba(26, 77, 162, 0.25);
  transition:
    background-color var(--transition-speed) ease,
    transform var(--transition-speed) ease,
    box-shadow var(--transition-speed) ease;
}

.healthcare-cta-btn:hover {
  background-color: #0c3d85;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(26, 77, 162, 0.35);
}

.healthcare-cta-btn i {
  font-size: 12px;
}

/* ==========================================================================
   Responsive Adjustments
   ========================================================================== */
@media (max-width: 1024px) {
  .healthcare-grid-container {
    grid-template-columns: 1fr;
    gap: 60px;
  }

  .healthcare-graphic-col {
    order: 2; /* Push picture below copy on tablet formats */
  }
}

@media (max-width: 580px) {
  .portrait-depth-card {
    display: none; /* Simplify on ultra narrow devices */
  }

  .doorstep-care-badge {
    width: calc(100% - 30px);
    left: 15px;
    right: 15px;
    bottom: 15px;
    justify-content: center;
  }

  .healthcare-cta-btn {
    display: flex;
    width: 100%;
    justify-content: center;
  }
}

/* ==========================================================================
   Health Insurance Partners Section
   ========================================================================== */
.partners-section {
  padding: 80px 0 100px 0;
  background-color: #f8fafc; /* Subtle off-white to alternate section backgrounds */
  width: 100%;
  overflow: hidden;
  position: relative;
  border-bottom: 1px solid rgba(12, 77, 162, 0.05);
}

/* Outer Carousel Wrapper */
.logo-marquee-wrapper {
  display: flex;
  overflow: hidden;
  user-select: none;
  width: 100%;
  position: relative;
  padding: 20px 0;
}

/* Creates a soft fade visual overlay on both edges of the sliding strip */
.logo-marquee-wrapper::before,
.logo-marquee-wrapper::after {
  content: "";
  position: absolute;
  top: 0;
  width: 150px;
  height: 100%;
  z-index: 5;
  pointer-events: none;
}

.logo-marquee-wrapper::before {
  left: 0;
  background: linear-gradient(to right, #f8fafc 0%, transparent 100%);
}

.logo-marquee-wrapper::after {
  right: 0;
  background: linear-gradient(to left, #f8fafc 0%, transparent 100%);
}

/* Sliding Track */
.logo-marquee-track {
  display: flex;
  width: max-content;
  animation: logoScroll 30s linear infinite; /* Glides continuously without breaks */
}

/* Pause scroll when a visitor hovers over any partner */
.logo-marquee-wrapper:hover .logo-marquee-track {
  animation-play-state: paused;
}

/* Flex Group holding 7 logos */
.logo-marquee-group {
  display: flex;
  align-items: center;
  gap: 60px; /* Spacious gaps for a cleaner presentation */
  padding-right: 60px;
}

/* Refined Partner Logo Box */
.partner-logo-box {
  height: 70px;
  width: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform var(--transition-speed) ease;
}

.partner-logo-box img {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
  filter: grayscale(100%) opacity(0.5); /* Unified elegant corporate style */
  transition: filter var(--transition-speed) ease;
}

/* Active Hover States: Pops to life */
.partner-logo-box:hover {
  transform: scale(1.08);
}

.partner-logo-box:hover img {
  filter: grayscale(0%) opacity(1); /* Smooth transition back to original colors */
}

/* ==========================================================================
   CSS Keyframe for Logo Scrolling Loop
   ========================================================================== */
@keyframes logoScroll {
  0% {
    transform: translateX(0);
  }
  100% {
    /* Loops flawlessly by shifting exactly half the total cloned track length */
    transform: translateX(-50%);
  }
}

/* ==========================================================================
   Responsive Adjustments
   ========================================================================== */
@media (max-width: 768px) {
  .partners-section {
    padding: 60px 0 80px 0;
  }

  .logo-marquee-group {
    gap: 40px;
    padding-right: 40px;
  }

  .partner-logo-box {
    height: 55px;
    width: 130px;
  }

  .logo-marquee-wrapper::before,
  .logo-marquee-wrapper::after {
    width: 80px; /* Thinner side vignettes on mobile screens */
  }
}

/* ==========================================================================
   Services Page Hero Section
   ========================================================================== */
.services-hero-section {
  position: relative;
  width: 100%;
  min-height: 65vh; /* Standard subpage height to comfortably accommodate stats */
  display: flex;
  align-items: center;
  background-color: #03152d; /* Premium deep navy blue base */
  padding: 100px 0;
  overflow: hidden;
}

/* Subtle dot and glowing radial background mask */
.services-hero-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image:
    radial-gradient(
      circle at 20% 80%,
      rgba(77, 163, 255, 0.12) 0%,
      transparent 50%
    ),
    radial-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size:
    100% 100%,
    24px 24px;
  z-index: 1;
}

.services-hero-container {
  position: relative;
  z-index: 10;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 60px;
  align-items: center;
}

/* 1. Left Text Column */
.services-hero-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.services-hero-badge {
  display: inline-block;
  padding: 8px 24px;
  border: 1px solid rgba(77, 163, 255, 0.3);
  background-color: rgba(77, 163, 255, 0.08);
  color: #4da3ff;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  border-radius: 50px;
  margin-bottom: 25px;
  backdrop-filter: blur(4px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.services-hero-title {
  font-size: clamp(30px, 4vw, 48px);
  font-weight: 800;
  color: #ffffff;
  line-height: 1.25;
  margin-bottom: 25px;
  letter-spacing: -0.5px;
}

.services-hero-title .highlight-text {
  color: #4da3ff;
  text-shadow: 0 4px 20px rgba(77, 163, 255, 0.25);
}

.services-hero-subtitle {
  font-size: 16px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.8);
  font-weight: 500;
}

/* 2. Right Stats Dashboard Column */
.services-hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

/* Gorgeous Stat Dashboard Card Box */
.stat-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 35px 20px;
  text-align: center;
  backdrop-filter: blur(10px);
  transition:
    transform var(--transition-speed) ease,
    border-color var(--transition-speed) ease,
    background-color var(--transition-speed) ease;
}

.stat-card:hover {
  transform: translateY(-5px);
  border-color: rgba(77, 163, 255, 0.3);
  background: rgba(255, 255, 255, 0.05);
}

.stat-icon-box {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: rgba(77, 163, 255, 0.1);
  color: #4da3ff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  margin-bottom: 15px;
}

.stat-number {
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 5px;
  letter-spacing: -0.5px;
}

.stat-label {
  font-size: 12px;
  font-weight: 600;
  color: #8da2bb;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ==========================================================================
   Responsive Viewport Adjustments
   ========================================================================== */
@media (max-width: 1024px) {
  .services-hero-container {
    grid-template-columns: 1fr;
    gap: 50px;
    text-align: center;
  }

  .services-hero-text {
    align-items: center;
  }
}

@media (max-width: 580px) {
  .services-hero-stats {
    grid-template-columns: 1fr;
    gap: 15px;
    width: 100%;
    max-width: 320px;
    margin: 0 auto;
  }

  .stat-card {
    padding: 25px;
  }
}

/* ==========================================================================
   Refurbished Specialty Services Grid
   ========================================================================== */
.services-grid-section {
  padding: 100px 0;
  background-color: #ffffff;
  width: 100%;
  position: relative;
}

/* 3-Column Balanced Grid Layout */
.clinical-services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

/* Elegant Service Card Surface */
.clinical-card {
  background-color: #ffffff;
  border-radius: 24px;
  padding: 40px 35px;
  border: 1px solid rgba(12, 77, 162, 0.05);
  box-shadow: 0 10px 30px rgba(12, 77, 162, 0.02);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transition:
    transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1),
    box-shadow 0.4s ease,
    border-color 0.4s ease;
}

.clinical-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 45px rgba(12, 77, 162, 0.06);
  border-color: rgba(12, 77, 162, 0.1);
}

/* Header element inside card */
.clinical-icon-header {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 25px;
  width: 100%;
}

.clinical-icon-box {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  background-color: rgba(255, 255, 255, 1);
  color: var(--clinical-accent);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.03);
  border: 1.5px solid rgba(12, 77, 162, 0.03);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
  transition:
    background-color var(--transition-speed) ease,
    color var(--transition-speed) ease;
}

.clinical-card:hover .clinical-icon-box {
  background-color: var(--clinical-accent);
  color: #ffffff;
  border-color: var(--clinical-accent);
}

.clinical-tag {
  font-size: 11px;
  font-weight: 700;
  color: #657d95;
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* Title & Description */
.clinical-title {
  font-size: 20px;
  color: var(--primary-color);
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 12px;
}

.clinical-description {
  font-size: 14px;
  color: #556c86;
  line-height: 1.6;
  font-weight: 500;
  margin-bottom: 30px;
  flex-grow: 1; /* Pushes explore link to the bottom consistently */
}

/* Explore Link with sliding arrow action */
.explore-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  font-size: 12px;
  font-weight: 800;
  color: var(--text-color);
  letter-spacing: 0.5px;
  transition: color var(--transition-speed) ease;
}

.explore-link i {
  font-size: 11px;
  transition: transform var(--transition-speed) ease;
}

.clinical-card:hover .explore-link {
  color: var(--primary-color);
}

.clinical-card:hover .explore-link i {
  transform: translateX(5px);
}

/* ==========================================================================
   Responsive Adjustments
   ========================================================================== */
@media (max-width: 1100px) {
  .clinical-services-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
  }
}

@media (max-width: 768px) {
  .services-grid-section {
    padding: 60px 0;
  }

  .clinical-services-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .clinical-card {
    padding: 30px 25px;
  }
}

/* ==========================================================================
   Glassmorphic Testimonials Section
   ========================================================================== */
.testimonials-section {
  padding: 100px 0;
  background-color: #031224; /* Deep premium midnight blue background */
  width: 100%;
  overflow: hidden;
  position: relative;
}

/* Background glows for enhanced glass effect */
.testimonials-section::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(
    circle,
    rgba(77, 163, 255, 0.08) 0%,
    transparent 70%
  );
  z-index: 1;
  pointer-events: none;
}

/* Specific Badge styling variant on dark colors */
.benefits-badge.badge-light {
  background-color: rgba(255, 255, 255, 0.08);
  color: #4da3ff;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.text-white {
  color: #ffffff;
}

.text-light {
  color: #8da2bb;
}

/* Horizontal sliding track setup */
.testimonials-wrapper {
  display: flex;
  overflow: hidden;
  user-select: none;
  width: 100%;
  position: relative;
  padding: 30px 0;
  z-index: 5;
}

/* Vignette fade boundaries */
.testimonials-wrapper::before,
.testimonials-wrapper::after {
  content: "";
  position: absolute;
  top: 0;
  width: 150px;
  height: 100%;
  z-index: 10;
  pointer-events: none;
}
.testimonials-wrapper::before {
  left: 0;
  background: linear-gradient(to right, #031224 0%, transparent 100%);
}
.testimonials-wrapper::after {
  right: 0;
  background: linear-gradient(to left, #031224 0%, transparent 100%);
}

.testimonials-track {
  display: flex;
  width: max-content;
  animation: testimonialScroll 45s linear infinite;
}

.testimonials-wrapper:hover .testimonials-track {
  animation-play-state: paused;
}

.testimonials-group {
  display: flex;
  gap: 30px;
  padding-right: 30px;
}

/* ==========================================================================
   True Glassmorphic Card Styling
   ========================================================================== */
.glass-testimonial-card {
  background: rgba(255, 255, 255, 0.03); /* Semi-transparent background */
  backdrop-filter: blur(12px); /* High blur to distort background light */
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.07); /* Thin, sharp glowing border */
  border-radius: 24px;
  padding: 40px 35px;
  width: 400px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
  transition:
    transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1),
    background-color 0.4s ease,
    border-color 0.4s ease;
  flex-shrink: 0;
}

.glass-testimonial-card:hover {
  transform: translateY(-8px);
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(77, 163, 255, 0.25);
  box-shadow: 0 25px 45px rgba(0, 0, 0, 0.3);
}

/* Highlights the second testimonial slightly just like the original UI blueprint */
.glass-testimonial-card.highlight-glow {
  background: rgba(12, 77, 162, 0.12);
  border-color: rgba(77, 163, 255, 0.2);
}

/* Beautiful Accent Quotation Mark */
.quote-icon {
  font-size: 32px;
  color: rgba(77, 163, 255, 0.25);
  margin-bottom: 25px;
  transition: color 0.3s ease;
}

.glass-testimonial-card:hover .quote-icon {
  color: #4da3ff;
}

.testimonial-text {
  font-size: 15px;
  line-height: 1.7;
  color: #cbd5e1;
  font-weight: 500;
  font-style: italic;
  margin-bottom: 30px;
}

/* Author block */
.patient-info {
  margin-top: auto;
}

.patient-name {
  font-size: 16px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 4px;
}

.patient-department {
  font-size: 11px;
  font-weight: 700;
  color: #4da3ff;
  letter-spacing: 1px;
}

/* ==========================================================================
   CSS Keyframes For Loop Animation
   ========================================================================== */
@keyframes testimonialScroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* Responsive constraints */
@media (max-width: 768px) {
  .glass-testimonial-card {
    width: 320px;
    padding: 30px 25px;
  }

  .testimonials-track {
    animation-duration: 35s;
  }

  .testimonials-wrapper::before,
  .testimonials-wrapper::after {
    width: 80px;
  }
}

/* ==========================================================================
   Services Promises / Trust Bar Section Styling
   ========================================================================== */
.services-promises-section {
  padding: 80px 0 100px 0;
  background-color: #ffffff; /* Seamless off-ramp before the deep dark footer */
  width: 100%;
  position: relative;
}

/* 3-Column Trust Grid */
.promises-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  align-items: stretch;
}

/* Reimagined Promise Card Surface */
.promise-card {
  background-color: #ffffff;
  border-radius: 24px;
  padding: 40px 35px;
  display: flex;
  gap: 25px;
  align-items: center;
  border: 1px solid rgba(12, 77, 162, 0.04);
  box-shadow: 0 10px 35px rgba(12, 77, 162, 0.02);
  position: relative;
  overflow: hidden;
  transition:
    transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1),
    box-shadow 0.4s ease,
    border-color 0.4s ease;
}

/* Invisible left-accent border that slides in on hover */
.promise-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background-color: var(--promise-color);
  transform: scaleY(0);
  transition: transform 0.3s ease;
  transform-origin: bottom;
}

/* Hover States */
.promise-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 45px rgba(12, 77, 162, 0.06);
  border-color: rgba(12, 77, 162, 0.08);
}

.promise-card:hover::before {
  transform: scaleY(1);
}

/* Soft-colored Icon Box */
.promise-icon-wrapper {
  width: 60px;
  height: 60px;
  border-radius: 18px;
  background-color: rgba(255, 255, 255, 1);
  color: var(--promise-color);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.03);
  border: 1.5px solid rgba(12, 77, 162, 0.03);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  flex-shrink: 0;
  transition:
    background-color 0.3s ease,
    color 0.3s ease;
}

.promise-card:hover .promise-icon-wrapper {
  background-color: var(--promise-color);
  color: #ffffff;
}

/* Typography Layout inside Card */
.promise-content {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.promise-content h3 {
  font-size: 19px;
  color: var(--primary-color);
  font-weight: 700;
  letter-spacing: -0.3px;
}

.promise-content p {
  font-size: 14.5px;
  color: #556c86;
  line-height: 1.5;
  font-weight: 500;
}

/* ==========================================================================
   Responsive Viewport Adjustments
   ========================================================================== */
@media (max-width: 1024px) {
  .promises-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    max-width: 600px;
    margin: 0 auto;
  }

  .promise-card {
    padding: 30px 25px;
  }
}

@media (max-width: 480px) {
  .promise-card {
    flex-direction: column;
    text-align: center;
    gap: 15px;
  }

  .promise-card::before {
    width: 100%;
    height: 4px;
    top: 0;
    left: 0;
    transform: scaleX(0);
    transform-origin: left;
  }

  .promise-card:hover::before {
    transform: scaleX(1);
  }
}

/* ==========================================================================
   Team Page Hero Section
   ========================================================================== */
.team-hero-section {
  position: relative;
  width: 100%;
  min-height: 55vh; /* Sleek, shorter height tailored for subpages */
  display: flex;
  align-items: center;
  background-color: #03152d; /* Premium deep navy blue base */
  padding: 100px 0;
  overflow: hidden;
}

/* Subtle dot-grid texture and background radial glows */
.team-hero-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image:
    radial-gradient(
      circle at 80% 80%,
      rgba(77, 163, 255, 0.1) 0%,
      transparent 50%
    ),
    radial-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size:
    100% 100%,
    24px 24px;
  z-index: 1;
}

.team-hero-container {
  position: relative;
  z-index: 10;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 60px;
  align-items: center;
}

/* 1. Left Text Column */
.team-hero-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.team-hero-badge {
  display: inline-block;
  padding: 8px 24px;
  border: 1px solid rgba(77, 163, 255, 0.3);
  background-color: rgba(77, 163, 255, 0.08);
  color: #4da3ff;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  border-radius: 50px;
  margin-bottom: 25px;
  backdrop-filter: blur(4px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.team-hero-title {
  font-size: clamp(30px, 4vw, 48px);
  font-weight: 800;
  color: #ffffff;
  line-height: 1.25;
  margin-bottom: 25px;
  letter-spacing: -0.5px;
}

.team-hero-title .highlight-text {
  color: #4da3ff;
  text-shadow: 0 4px 20px rgba(77, 163, 255, 0.25);
}

.team-hero-subtitle {
  font-size: 16px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.8);
  font-weight: 500;
}

/* 2. Right Experience Showcase Column */
.team-hero-highlight {
  display: flex;
  justify-content: center;
  align-items: center;
}

.experience-showcase-card {
  position: relative;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 28px;
  padding: 45px 40px;
  width: 100%;
  max-width: 400px;
  backdrop-filter: blur(10px);
  overflow: hidden;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.2);
  transition:
    transform var(--transition-speed) ease,
    border-color var(--transition-speed) ease;
}

.experience-showcase-card:hover {
  transform: translateY(-5px);
  border-color: rgba(77, 163, 255, 0.25);
}

/* Dynamic abstract gradient aurora behind card contents */
.card-glow-aurora {
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200px;
  height: 200px;
  background: radial-gradient(
    circle,
    rgba(77, 163, 255, 0.15) 0%,
    transparent 75%
  );
  z-index: 1;
  pointer-events: none;
}

.showcase-content {
  position: relative;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.showcase-icon-box {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background-color: rgba(77, 163, 255, 0.1);
  color: #4da3ff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 25px;
}

.showcase-content h3 {
  font-size: 22px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 12px;
  letter-spacing: -0.3px;
}

.showcase-content p {
  font-size: 14.5px;
  line-height: 1.6;
  color: #8da2bb;
  font-weight: 500;
  margin-bottom: 25px;
}

.decorative-accent-bar {
  display: block;
  width: 50px;
  height: 3px;
  background-color: #4da3ff;
  border-radius: 2px;
}

/* ==========================================================================
   Responsive Viewport Adjustments
   ========================================================================== */
@media (max-width: 1024px) {
  .team-hero-container {
    grid-template-columns: 1fr;
    gap: 50px;
    text-align: center;
  }

  .team-hero-text {
    align-items: center;
  }

  .team-hero-highlight {
    width: 100%;
  }
}

@media (max-width: 580px) {
  .experience-showcase-card {
    padding: 35px 25px;
  }
}

/* ==========================================================================
   Refurbished Specialty Team Directory - Simple & Classic
   ========================================================================== */
.team-directory-section {
  padding: 80px 0;
  background-color: #ffffff;
  width: 100%;
}

/* Category Tabs Navigation */
.team-filter-tabs {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 50px;
}

.filter-tab {
  background-color: #f4f8fc;
  color: var(--primary-color);
  border: 1px solid rgba(12, 77, 162, 0.04);
  padding: 10px 20px;
  border-radius: 30px;
  font-family: var(--font-family);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition-speed) ease;
}

.filter-tab:hover,
.filter-tab.active {
  background-color: var(--text-color);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(12, 77, 162, 0.12);
}

/* 4-Column Classic Grid */
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 25px;
  transition: all 0.4s ease;
}

/* Base Team Cards (Compact & Elegant) */
.team-card {
  background-color: #ffffff;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(12, 77, 162, 0.04);
  box-shadow: 0 5px 15px rgba(12, 77, 162, 0.01);
  display: flex;
  flex-direction: column;
  transition:
    transform var(--transition-speed) ease,
    box-shadow var(--transition-speed) ease,
    opacity 0.4s ease,
    scale 0.4s ease;
}

.team-card.hide {
  display: none;
}

.team-card.show {
  animation: fadeInScale 0.4s ease forwards;
}

.team-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 25px rgba(12, 77, 162, 0.06);
}

/* Portrait Image container box (Tightened Aspect Ratio) */
.team-img-box {
  width: 100%;
  aspect-ratio: 1 / 1.25; /* Sleek, less elongated vertical ratio */
  overflow: hidden;
  background-color: #031224;
  position: relative;
}

.team-img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.team-card:hover .team-img-box img {
  transform: scale(1.03);
}

/* Text Detail Info Block (Tighter Paddings) */
.team-card-info {
  padding: 15px 15px 20px 15px;
  text-align: center;
}

.team-role {
  font-size: 9.5px;
  font-weight: 700;
  color: var(--text-color);
  letter-spacing: 0.8px;
  text-transform: uppercase;
  display: block;
  margin-bottom: 6px;
}

.team-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--primary-color);
  line-height: 1.3;
}

/* ==========================================================================
   Compact Interactive Bio Cover (Moses Ebenezer Special Card)
   ========================================================================== */
.special-bio-card .bio-hover-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(13, 35, 58, 0.97);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 15px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
  z-index: 10;
}

.special-bio-card:hover .bio-hover-overlay {
  opacity: 1;
  pointer-events: auto;
}

.bio-overlay-content {
  position: relative;
  z-index: 5;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  transform: translateY(15px);
  transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.special-bio-card:hover .bio-overlay-content {
  transform: translateY(0);
}

.bio-name {
  font-size: 16px;
  color: #ffffff;
  font-weight: 800;
}

.bio-sub {
  font-size: 11px;
  font-weight: 700;
  color: #4da3ff;
  letter-spacing: 0.3px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 4px;
  width: 100%;
}

.bio-text {
  font-size: 11.5px;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.5;
  font-weight: 500;
}

.bio-call-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: #ffffff;
  color: var(--primary-color);
  text-decoration: none;
  font-size: 11px;
  font-weight: 800;
  padding: 8px 16px;
  border-radius: 20px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  margin-top: 5px;
  transition: transform 0.2s ease;
}

.bio-call-btn:hover {
  transform: scale(1.05);
}

/* Floating Hearts Background (Optimized for Smaller Space) */
.bio-heart-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.particle {
  position: absolute;
  color: rgba(77, 163, 255, 0.15);
  font-size: 14px;
  bottom: -15px;
  animation: driftHeartCompact 4s infinite linear;
}

.p1 {
  left: 15%;
  animation-delay: 0s;
  animation-duration: 4.5s;
}
.p2 {
  left: 45%;
  font-size: 18px;
  animation-delay: 1s;
  animation-duration: 5s;
}
.p3 {
  left: 70%;
  animation-delay: 0.5s;
  animation-duration: 4s;
}
.p4 {
  left: 85%;
  animation-delay: 1.5s;
  animation-duration: 4.8s;
}

@keyframes driftHeartCompact {
  0% {
    transform: translateY(0) rotate(0deg);
    opacity: 0;
  }
  10% {
    opacity: 0.6;
  }
  90% {
    opacity: 0.2;
  }
  100% {
    transform: translateY(-160px) rotate(45deg);
    opacity: 0;
  }
}

/* ==========================================================================
   Responsive Adjustments
   ========================================================================== */
@media (max-width: 1150px) {
  .team-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }
}

@media (max-width: 850px) {
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}

@media (max-width: 580px) {
  .team-directory-section {
    padding: 50px 0;
  }
  /* Constrains the mobile cards so they never look "over big" and stretch out */
  .team-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    max-width: 310px;
    margin: 0 auto;
  }
  .filter-tab {
    padding: 8px 16px;
    font-size: 12px;
  }
}

/* ==========================================================================
   Refurbished Team Strengths Section
   ========================================================================== */
.team-strengths-section {
  padding: 80px 0 100px 0;
  background-color: #f8fafc; /* Alternating page background color before footer */
  width: 100%;
  position: relative;
  overflow: hidden;
}

/* Elegant 3-Column Grid */
.strengths-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  position: relative;
  z-index: 5;
}

/* High-End Strength Card Surface */
.strength-card {
  position: relative;
  background-color: #ffffff;
  border-radius: 24px;
  padding: 40px 35px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
  border: 1px solid rgba(12, 77, 162, 0.04);
  box-shadow: 0 10px 30px rgba(12, 77, 162, 0.02);
  overflow: hidden;
  transition:
    transform var(--transition-speed) ease,
    box-shadow var(--transition-speed) ease,
    border-color var(--transition-speed) ease;
}

.strength-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 45px rgba(12, 77, 162, 0.06);
  border-color: rgba(12, 77, 162, 0.08);
}

/* Subtle corner aura glow inside the card on hover */
.strength-card-glow {
  position: absolute;
  top: -50%;
  right: -50%;
  width: 180px;
  height: 180px;
  background: radial-gradient(circle, var(--card-accent) 0%, transparent 75%);
  opacity: 0.03;
  pointer-events: none;
  z-index: 1;
  transition: opacity var(--transition-speed) ease;
}

.strength-card:hover .strength-card-glow {
  opacity: 0.08;
}

.strength-content {
  position: relative;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
}

/* Colored Icon Box */
.strength-icon-box {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  background-color: #ffffff;
  color: var(--card-accent);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.03);
  border: 1.5px solid rgba(12, 77, 162, 0.03);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 25px;
  transition:
    background-color var(--transition-speed) ease,
    color var(--transition-speed) ease;
}

.strength-card:hover .strength-icon-box {
  background-color: var(--card-accent);
  color: #ffffff;
  border-color: var(--card-accent);
}

/* Text Elements inside Card */
.strength-tag {
  font-size: 10px;
  font-weight: 700;
  color: var(--card-accent);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.strength-content h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 12px;
  letter-spacing: -0.3px;
}

.strength-content p {
  font-size: 14px;
  color: #556c86;
  line-height: 1.6;
  font-weight: 500;
  margin-bottom: 30px;
}

/* Floating Status Pill */
.strength-status-badge {
  position: relative;
  z-index: 5;
  font-size: 11px;
  font-weight: 700;
  color: var(--card-accent);
  background-color: rgba(255, 255, 255, 1);
  padding: 6px 16px;
  border-radius: 20px;
  border: 1px solid rgba(12, 77, 162, 0.05);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.02);
  align-self: flex-start;
}

/* ==========================================================================
   Responsive Adjustments
   ========================================================================== */
@media (max-width: 1024px) {
  .strengths-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
  }
}

@media (max-width: 768px) {
  .team-strengths-section {
    padding: 60px 0;
  }
  /* Constrain mobile width so cards never stretch or look "over big" */
  .strengths-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    max-width: 320px;
    margin: 0 auto;
  }
  .strength-card {
    padding: 30px 25px;
  }
}

/* ==========================================================================
   Gallery Page Hero Section (70% Transparency Background)
   ========================================================================== */
.gallery-hero-section {
  position: relative;
  width: 100%;
  min-height: 55vh; /* Standard sleek subpage height */
  display: flex;
  align-items: center;
  background-color: #03152d; /* Premium deep navy base */
  padding: 90px 0;
  overflow: hidden;
}

/* Background Image with 70% Transparency / 30% Opacity */
.gallery-hero-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* Replace with your preferred gallery hero background in resources folder */
  background-image: url("resources/gallery-hero-bg.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.3; /* 30% opacity = 70% transparent */
  z-index: 1;
}

/* Diagonal dot pattern grid on top of the image */
.gallery-hero-section::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: radial-gradient(
    rgba(255, 255, 255, 0.05) 1px,
    transparent 1px
  );
  background-size: 24px 24px;
  opacity: 0.4;
  z-index: 2;
}

.gallery-hero-container {
  position: relative;
  z-index: 10;
}

.gallery-hero-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Pill Badge styling */
.gallery-hero-badge {
  display: inline-block;
  padding: 8px 24px;
  border: 1px solid rgba(77, 163, 255, 0.3);
  background-color: rgba(77, 163, 255, 0.08);
  color: #4da3ff;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  border-radius: 50px;
  margin-bottom: 25px;
  backdrop-filter: blur(4px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Header typography */
.gallery-hero-title {
  font-size: clamp(30px, 4.5vw, 54px);
  font-weight: 800;
  color: #ffffff;
  line-height: 1.25;
  margin-bottom: 20px;
  letter-spacing: -0.5px;
}

.gallery-hero-title .highlight-text {
  color: #4da3ff;
  text-shadow: 0 4px 20px rgba(77, 163, 255, 0.25);
}

/* Subtitle description copy */
.gallery-hero-subtitle {
  font-size: clamp(14px, 2vw, 17px);
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.8);
  font-weight: 500;
}

/* ==========================================================================
   Responsive Adjustments
   ========================================================================== */
@media (max-width: 768px) {
  .gallery-hero-section {
    min-height: auto;
    padding: 80px 0;
  }
}

/* ==========================================================================
   Interactive 30-Photo Gallery Section
   ========================================================================== */
.gallery-grid-section {
  padding: 80px 0;
  background-color: #ffffff;
}

/* 4-Column Classic Masonry-vibe Grid */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

/* Card item wrappers */
.gallery-item {
  background-color: #ffffff;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(12, 77, 162, 0.04);
  box-shadow: 0 5px 15px rgba(12, 77, 162, 0.01);
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition:
    transform var(--transition-speed) ease,
    box-shadow var(--transition-speed) ease;
}

.gallery-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(12, 77, 162, 0.08);
}

/* Photo Aspect container */
.gallery-img-box {
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background-color: #031224;
  position: relative;
}

.gallery-img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
}

/* Maximize Overlay Icon Trigger on Hover */
.gallery-hover-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(13, 35, 58, 0.6); /* Soft navy filter */
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition-speed) ease;
  z-index: 5;
}

.gallery-hover-overlay i {
  color: #ffffff;
  font-size: 22px;
  transform: scale(0.8);
  transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.gallery-item:hover .gallery-img-box img {
  transform: scale(1.05);
}

.gallery-item:hover .gallery-hover-overlay {
  opacity: 1;
}

.gallery-item:hover .gallery-hover-overlay i {
  transform: scale(1);
}

/* Caption details underneath card frame */
.gallery-details {
  padding: 15px 20px 18px 20px;
  background-color: #ffffff;
  border-top: 1px solid rgba(12, 77, 162, 0.03);
}

.gallery-details h3 {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 4px;
  line-height: 1.3;
}

.gallery-details p {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-color);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ==========================================================================
   Premium Fullscreen Lightbox Modal
   ========================================================================== */
.lightbox-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(3, 15, 33, 0.98); /* Rich ultra-dark navy backdrop */
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 3000;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  padding: 40px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.lightbox-modal.active {
  opacity: 1;
  pointer-events: auto;
}

/* Main Close Button */
.lightbox-close {
  position: absolute;
  top: 30px;
  right: 35px;
  background: transparent;
  border: none;
  color: #ffffff;
  font-size: 44px;
  font-weight: 300;
  cursor: pointer;
  line-height: 1;
  z-index: 3100;
  transition:
    transform var(--transition-speed),
    color var(--transition-speed);
}

.lightbox-close:hover {
  color: #ef4444;
  transform: rotate(90deg);
}

/* Navigation Handles */
.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #ffffff;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 18px;
  z-index: 3100;
  transition:
    background-color var(--transition-speed),
    transform var(--transition-speed);
}

.lightbox-nav:hover {
  background-color: var(--text-color);
  transform: translateY(-50%) scale(1.05);
}

.lightbox-prev {
  left: 40px;
}
.lightbox-next {
  right: 40px;
}

/* Image Viewport Container */
.lightbox-viewport {
  flex-grow: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 900px;
  height: calc(100vh - 180px);
  overflow: hidden;
  margin-top: 30px;
}

/* Active Image Rendering Styles */
.lightbox-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.5);
  user-select: none;
  -webkit-user-drag: none;
  transition: transform 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
  transform: scale(var(--zoom-level, 1)); /* Controls dynamic scale actions */
}

/* Footer Control Deck */
.lightbox-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  max-width: 1000px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 25px;
  z-index: 3100;
}

.lightbox-meta h4 {
  font-size: 18px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 4px;
}

.lightbox-meta p {
  font-size: 11px;
  font-weight: 700;
  color: #4da3ff;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Zoom Control Actions Dock */
.lightbox-controls {
  display: flex;
  gap: 12px;
}

.control-btn {
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #ffffff;
  font-family: var(--font-family);
  font-size: 13px;
  font-weight: 700;
  padding: 10px 18px;
  border-radius: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition:
    background-color var(--transition-speed),
    border-color var(--transition-speed);
}

.control-btn:hover {
  background-color: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.2);
}

/* ==========================================================================
   Responsive Viewport Adjustments
   ========================================================================== */
@media (max-width: 1200px) {
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }
}

@media (max-width: 850px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .lightbox-nav {
    width: 44px;
    height: 44px;
    font-size: 15px;
  }
  .lightbox-prev {
    left: 15px;
  }
  .lightbox-next {
    right: 15px;
  }
}

@media (max-width: 580px) {
  .gallery-grid-section {
    padding: 50px 0;
  }
  /* Prevents the cards from stretching too wide on small screens */
  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    max-width: 320px;
    margin: 0 auto;
  }

  .lightbox-modal {
    padding: 20px;
  }
  .lightbox-close {
    top: 15px;
    right: 20px;
  }
  .lightbox-nav {
    display: none; /* Swipe & keyboard control focus for small mobile viewports */
  }
  .lightbox-footer {
    flex-direction: column;
    gap: 15px;
    text-align: center;
    padding-top: 15px;
  }
}

/* ==========================================================================
   Gallery Page Video Tour & CTA Section
   ========================================================================== */
.gallery-cta-section {
  padding: 100px 0;
  background-color: #f8fafc; /* Crisp, alternating clean grey backdrop */
  width: 100%;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid rgba(12, 77, 162, 0.03);
}

.gallery-cta-container {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 70px;
  align-items: center;
}

/* 1. Left Column: Video Preview Frame with Play Ripples */
.video-teaser-column {
  position: relative;
  width: 100%;
}

.video-preview-box {
  position: relative;
  border-radius: 30px;
  overflow: hidden;
  box-shadow: 0 20px 45px rgba(12, 77, 162, 0.08);
  border: 1px solid rgba(12, 77, 162, 0.04);
}

.video-poster-img {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
  filter: brightness(0.7) contrast(1.1); /* Darkens the image slightly to make the play icon pop */
  transition: transform 0.5s ease;
}

.video-preview-box:hover .video-poster-img {
  transform: scale(1.03);
}

/* Play Ripple Button System */
.play-ripple-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 70px;
  height: 70px;
  background-color: #0c4da2; /* Vibrant Clinical Blue */
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  z-index: 10;
  box-shadow: 0 10px 25px rgba(12, 77, 162, 0.4);
  transition:
    transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275),
    background-color 0.3s ease;
}

.play-ripple-btn:hover {
  transform: translate(-50%, -50%) scale(1.08);
  background-color: #1a4da2;
}

.play-symbol {
  font-size: 20px;
  margin-left: 4px; /* Perfectly centers the triangle visually */
}

/* Infinite Pulse Ripple Animations */
.ripple-wave {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background-color: rgba(12, 77, 162, 0.4);
  z-index: -1;
  pointer-events: none;
  animation: ripplePulse 3s infinite ease-out;
}

.r1 {
  animation-delay: 0s;
}
.r2 {
  animation-delay: 1s;
}
.r3 {
  animation-delay: 2s;
}

@keyframes ripplePulse {
  0% {
    transform: scale(1);
    opacity: 0.8;
  }
  100% {
    transform: scale(2.2);
    opacity: 0;
  }
}

/* 2. Right Column: Content Narrative */
.cta-narrative-column {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.cta-header {
  margin-bottom: 25px;
}

.cta-main-title {
  font-size: clamp(28px, 4vw, 42px);
  color: var(--primary-color);
  font-weight: 800;
  line-height: 1.25;
  margin-top: 15px;
}

.cta-main-title .highlight-text {
  color: var(--text-color);
}

.cta-description {
  font-size: 15.5px;
  line-height: 1.75;
  color: #556c86;
  font-weight: 500;
  margin-bottom: 35px;
}

/* Call to Action Button group */
.cta-actions-group {
  display: flex;
  gap: 15px;
  width: 100%;
  flex-wrap: wrap;
}

.cta-btn {
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 700;
  padding: 16px 32px;
  border-radius: 30px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: all var(--transition-speed) ease;
  text-align: center;
  justify-content: center;
}

/* Primary Appointment button */
.cta-btn.btn-primary {
  background-color: #1a4da2;
  color: #ffffff;
  box-shadow: 0 6px 20px rgba(26, 77, 162, 0.25);
}

.cta-btn.btn-primary:hover {
  background-color: #0c3d85;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(26, 77, 162, 0.35);
}

/* Secondary Directions button */
.cta-btn.btn-secondary {
  background-color: #ffffff;
  color: var(--primary-color);
  border: 1.5px solid #dcdfe4;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.02);
}

.cta-btn.btn-secondary:hover {
  border-color: var(--text-color);
  color: var(--text-color);
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(12, 77, 162, 0.06);
}

/* ==========================================================================
   Responsive Viewport Adjustments
   ========================================================================== */
@media (max-width: 1024px) {
  .gallery-cta-container {
    grid-template-columns: 1fr;
    gap: 50px;
  }

  .video-teaser-column {
    max-width: 600px;
    margin: 0 auto;
  }

  .cta-narrative-column {
    align-items: center;
    text-align: center;
  }

  .cta-actions-group {
    justify-content: center;
  }
}

@media (max-width: 580px) {
  .gallery-cta-section {
    padding: 60px 0;
  }

  .cta-actions-group {
    flex-direction: column;
  }

  .cta-btn {
    width: 100%;
  }

  .play-ripple-btn {
    width: 60px;
    height: 60px;
  }

  .play-symbol {
    font-size: 16px;
  }
}

/* ==========================================================================
   Contact Page Hero Section (70% Transparency Background)
   ========================================================================== */
.contact-hero-section {
  position: relative;
  width: 100%;
  min-height: 55vh; /* Standard sleek subpage height */
  display: flex;
  align-items: center;
  background-color: #03152d; /* Premium deep navy base */
  padding: 90px 0;
  overflow: hidden;
}

/* Background Image with 70% Transparency / 30% Opacity */
.contact-hero-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("resources/contact-hero-bg.jpg"); /* Put your hospital coordinate bg here */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.3; /* 30% opacity = 70% transparent */
  z-index: 1;
}

/* Subtle dot overlay pattern */
.contact-hero-section::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: radial-gradient(
    rgba(255, 255, 255, 0.05) 1px,
    transparent 1px
  );
  background-size: 24px 24px;
  opacity: 0.4;
  z-index: 2;
}

.contact-hero-container {
  position: relative;
  z-index: 10;
}

.contact-hero-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Pill Badge styling */
.contact-hero-badge {
  display: inline-block;
  padding: 8px 24px;
  border: 1px solid rgba(77, 163, 255, 0.3);
  background-color: rgba(77, 163, 255, 0.08);
  color: #4da3ff;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  border-radius: 50px;
  margin-bottom: 25px;
  backdrop-filter: blur(4px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Header typography */
.contact-hero-title {
  font-size: clamp(30px, 4.5vw, 54px);
  font-weight: 800;
  color: #ffffff;
  line-height: 1.25;
  margin-bottom: 20px;
  letter-spacing: -0.5px;
}

.contact-hero-title .highlight-text {
  color: #4da3ff;
  text-shadow: 0 4px 20px rgba(77, 163, 255, 0.25);
}

/* Subtitle description copy */
.contact-hero-subtitle {
  font-size: clamp(14px, 2vw, 17px);
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.8);
  font-weight: 500;
}

/* ==========================================================================
   Responsive Adjustments
   ========================================================================== */
@media (max-width: 768px) {
  .contact-hero-section {
    min-height: auto;
    padding: 80px 0;
  }
}

/* ==========================================================================
   Contact Page Layout & Components Styling
   ========================================================================== */

/* --- 1. Quick-Contact Trust Row --- */
.contact-cards-section {
  padding: 60px 0;
  background-color: #ffffff;
  width: 100%;
}

.contact-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

/* Elegant Contact Card Layout */
.quick-contact-card {
  background-color: #ffffff;
  border-radius: 20px;
  padding: 30px 25px;
  display: flex;
  align-items: center;
  gap: 20px;
  text-decoration: none;
  border: 1px solid rgba(12, 77, 162, 0.04);
  box-shadow: 0 8px 25px rgba(12, 77, 162, 0.02);
  position: relative;
  overflow: hidden;
  transition:
    transform var(--transition-speed) ease,
    box-shadow var(--transition-speed) ease,
    border-color var(--transition-speed) ease;
}

.quick-contact-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 4px;
  height: 100%;
  background-color: var(--contact-accent);
  transform: scaleY(0);
  transition: transform 0.3s ease;
  transform-origin: bottom;
}

.quick-contact-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(12, 77, 162, 0.06);
  border-color: rgba(12, 77, 162, 0.08);
}

.quick-contact-card:hover::before {
  transform: scaleY(1);
}

/* Icon box */
.contact-card-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background-color: rgba(255, 255, 255, 1);
  color: var(--contact-accent);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.03);
  border: 1.5px solid rgba(12, 77, 162, 0.03);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
  transition:
    background-color var(--transition-speed) ease,
    color var(--transition-speed) ease;
}

.quick-contact-card:hover .contact-card-icon {
  background-color: var(--contact-accent);
  color: #ffffff;
}

/* Content details */
.contact-card-content {
  flex-grow: 1;
}

.contact-card-content span {
  font-size: 11px;
  font-weight: 700;
  color: #657d95;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  display: block;
  margin-bottom: 5px;
}

.contact-card-content h3 {
  font-size: 15.5px;
  color: var(--primary-color);
  font-weight: 700;
  margin-bottom: 2px;
  line-height: 1.3;
}

.contact-card-content p {
  font-size: 13px;
  color: #8da2bb;
  font-weight: 500;
}

/* Dynamic arrow indicator */
.contact-card-arrow {
  font-size: 14px;
  color: #c4d1df;
  transition:
    transform var(--transition-speed),
    color var(--transition-speed);
}

.quick-contact-card:hover .contact-card-arrow {
  color: var(--contact-accent);
  transform: translateX(5px);
}

/* --- 2. Interactive Split Section (Form & Map) --- */
.contact-interactive-section {
  padding: 100px 0;
  background-color: #f8fafc; /* Alternating section background color */
  width: 100%;
}

.contact-interactive-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 60px;
  align-items: start;
}

/* Form Container */
.contact-form-wrapper {
  background-color: #ffffff;
  border-radius: 28px;
  padding: 50px 45px;
  border: 1px solid rgba(12, 77, 162, 0.03);
  box-shadow: 0 15px 35px rgba(12, 77, 162, 0.02);
}

.contact-form-wrapper h3 {
  font-size: 24px;
  font-weight: 800;
  color: var(--primary-color);
  margin-bottom: 8px;
}

.form-instructions {
  font-size: 14px;
  color: #657d95;
  line-height: 1.6;
  font-weight: 500;
  margin-bottom: 40px;
}

/* Form Groups & Inputs */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.form-row {
  width: 100%;
}

.form-row.split-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 25px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}

.form-group label {
  font-size: 13px;
  font-weight: 700;
  color: var(--primary-color);
}

.form-group label span {
  color: #ef4444; /* Mandatory marker star */
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 15px 20px;
  border-radius: 12px;
  border: 1.5px solid #e2e8f0;
  background-color: #f8fafc;
  font-family: var(--font-family);
  font-size: 14px;
  color: var(--primary-color);
  font-weight: 500;
  transition:
    border-color var(--transition-speed) ease,
    background-color var(--transition-speed) ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(
    --text-color
  ); /* Highlight clinical blue border on active focus */
  background-color: #ffffff;
}

/* Custom Submit Button */
.contact-submit-btn {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background-color: #1a4da2;
  color: #ffffff;
  border: none;
  font-family: var(--font-family);
  font-size: 13.5px;
  font-weight: 700;
  padding: 16px 36px;
  border-radius: 30px;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(26, 77, 162, 0.25);
  transition:
    background-color var(--transition-speed) ease,
    transform var(--transition-speed) ease,
    box-shadow var(--transition-speed) ease;
}

.contact-submit-btn:hover {
  background-color: #0c3d85;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(26, 77, 162, 0.35);
}

.contact-submit-btn i {
  font-size: 12px;
  transition: transform var(--transition-speed) ease;
}

.contact-submit-btn:hover i {
  transform: translateX(4px);
}

/* Sidebar Details Card */
.sidebar-details-card {
  background-color: #ffffff;
  border-radius: 28px;
  padding: 45px 40px;
  border: 1px solid rgba(12, 77, 162, 0.03);
  box-shadow: 0 15px 35px rgba(12, 77, 162, 0.02);
}

.sidebar-details-card h3 {
  font-size: 20px;
  font-weight: 800;
  color: var(--primary-color);
  margin-bottom: 8px;
}

.sidebar-lead {
  font-size: 13.5px;
  color: #657d95;
  font-weight: 500;
  line-height: 1.5;
  margin-bottom: 35px;
}

/* Side Contact rows */
.sidebar-contact-list {
  display: flex;
  flex-direction: column;
  gap: 25px;
  margin-bottom: 40px;
}

.sidebar-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 15px;
}

.sidebar-contact-item .item-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: rgba(12, 77, 162, 0.05);
  color: var(--text-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  flex-shrink: 0;
}

.sidebar-contact-item .item-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.sidebar-contact-item .item-text span {
  font-size: 11px;
  font-weight: 700;
  color: #8da2bb;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.sidebar-contact-item .item-text strong {
  font-size: 14px;
  color: var(--primary-color);
  line-height: 1.5;
  font-weight: 600;
}

/* Sidebar embedded map frame */
.sidebar-map-frame {
  width: 100%;
  height: 220px;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(12, 77, 162, 0.08);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.03);
}

.sidebar-map-frame iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

/* --- 3. Careers & Partnerships Section --- */
.join-team-section {
  padding: 100px 0;
  background-color: #ffffff;
  width: 100%;
}

.join-team-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

/* Team Card Surfaces */
.join-card {
  background-color: #ffffff;
  border-radius: 24px;
  padding: 45px 40px;
  border: 1px solid rgba(12, 77, 162, 0.04);
  box-shadow: 0 10px 30px rgba(12, 77, 162, 0.02);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition:
    transform var(--transition-speed) ease,
    box-shadow var(--transition-speed) ease;
}

.join-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(12, 77, 162, 0.05);
}

.join-icon-box {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background-color: rgba(12, 77, 162, 0.05);
  color: var(--text-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 25px;
}

.join-card h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 12px;
}

.join-card p {
  font-size: 14px;
  color: #556c86;
  line-height: 1.6;
  font-weight: 500;
  margin-bottom: 30px;
  max-width: 440px;
}

/* Hollow Outline Button */
.join-outline-btn {
  display: inline-block;
  background: transparent;
  color: var(--primary-color);
  border: 1.5px solid rgba(12, 77, 162, 0.15);
  text-decoration: none;
  font-size: 12.5px;
  font-weight: 800;
  padding: 12px 36px;
  border-radius: 30px;
  letter-spacing: 0.5px;
  transition:
    background-color var(--transition-speed) ease,
    border-color var(--transition-speed) ease,
    color var(--transition-speed) ease;
}

.join-outline-btn:hover {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  color: #ffffff;
}

/* ==========================================================================
   Responsive Viewport Adjustments
   ========================================================================== */
@media (max-width: 1100px) {
  .contact-cards-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .contact-interactive-grid {
    grid-template-columns: 1fr;
    gap: 50px;
  }

  .contact-form-wrapper {
    padding: 40px 30px;
  }
}

@media (max-width: 768px) {
  .contact-interactive-section,
  .join-team-section {
    padding: 60px 0;
  }

  .join-team-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .form-row.split-row {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .join-card {
    padding: 35px 25px;
  }
}

/* ==========================================================================
   Refurbished 4-Column FAQ Grid Layout (Simple & Classic)
   ========================================================================== */
.contact-faq-section {
  padding: 100px 0;
  background-color: #f8fafc; /* Alternating off-white background */
  width: 100%;
  position: relative;
}

/* 4-Column Responsive Grid Setup */
.faq-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 25px;
}

/* Base Static FAQ Card (Compact, Stylish, & Fast) */
.faq-card {
  background-color: #ffffff;
  border-radius: 20px;
  padding: 30px 25px;
  border: 1px solid rgba(12, 77, 162, 0.04);
  box-shadow: 0 5px 15px rgba(12, 77, 162, 0.01);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  position: relative;
  overflow: hidden;
  transition:
    transform var(--transition-speed) ease,
    box-shadow var(--transition-speed) ease,
    border-color var(--transition-speed) ease;
}

/* Subtle left indicator accent bar on hover */
.faq-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background-color: var(
    --card-accent,
    #1a4da2
  ); /* Blue by default, red on overrides */
  transform: scaleY(0);
  transition: transform 0.3s ease;
  transform-origin: bottom;
}

.faq-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 25px rgba(12, 77, 162, 0.06);
  border-color: rgba(12, 77, 162, 0.08);
}

.faq-card:hover::before {
  transform: scaleY(1);
}

/* Compact Icon Header */
.faq-icon-header {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background-color: rgba(12, 77, 162, 0.04);
  color: var(--card-accent, #1a4da2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  margin-bottom: 20px;
  transition:
    background-color var(--transition-speed) ease,
    color var(--transition-speed) ease;
}

.faq-card:hover .faq-icon-header {
  background-color: var(--card-accent, #1a4da2);
  color: #ffffff;
}

/* Card Titles */
.faq-card h3 {
  font-size: 15.5px;
  font-weight: 700;
  color: var(--primary-color);
  line-height: 1.4;
  margin-bottom: 12px;
  letter-spacing: -0.2px;
}

/* Card Answer Paragraphs */
.faq-card p {
  font-size: 13.5px;
  color: #556c86;
  line-height: 1.6;
  font-weight: 500;
}

/* ==========================================================================
   Responsive Viewport Adjustments
   ========================================================================== */
@media (max-width: 1200px) {
  .faq-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }
}

@media (max-width: 900px) {
  .faq-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}

@media (max-width: 580px) {
  .contact-faq-section {
    padding: 60px 0;
  }
  /* Constrains the mobile cards so they never look stretched or "over big" */
  .faq-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    max-width: 310px;
    margin: 0 auto;
  }
  .faq-card {
    padding: 25px 20px;
  }
}

/* Ensure Font Awesome nav icons align and scale cleanly */
.nav-actions .search-icon,
.nav-actions .calendar-icon {
  font-size: 18px; /* Perfectly sized matching your layout */
  display: inline-block;
  vertical-align: middle;
  transition:
    transform var(--transition-speed) ease,
    color var(--transition-speed) ease;
}

/* Adds a tiny gap between button text and calendar icon on desktop */
.appointment-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.appointment-btn:hover .calendar-icon {
  transform: scale(1.1);
}

.search-btn:hover .search-icon {
  transform: scale(1.1);
}

/* ==========================================================================
   Appointment Page Hero Section (70% Transparency Background)
   ========================================================================== */
.appointment-hero-section {
  position: relative;
  width: 100%;
  min-height: 55vh; /* Unified sleek subpage height */
  display: flex;
  align-items: center;
  background-color: #03152d; /* Premium deep navy base */
  padding: 100px 0;
  overflow: hidden;
}

/* Background Image with 70% Transparency / 30% Opacity */
.appointment-hero-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("resources/appointment-hero-bg.jpg"); /* Replace with your booking hero bg */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.3; /* 30% opacity = 70% transparent */
  z-index: 1;
}

/* Elegant dot texture grid overlay */
.appointment-hero-section::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: radial-gradient(
    rgba(255, 255, 255, 0.05) 1px,
    transparent 1px
  );
  background-size: 24px 24px;
  opacity: 0.4;
  z-index: 2;
}

.appointment-hero-container {
  position: relative;
  z-index: 10;
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 60px;
  align-items: center;
}

/* 1. Left Text Column */
.appointment-hero-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.appointment-hero-badge {
  display: inline-block;
  padding: 8px 24px;
  border: 1px solid rgba(77, 163, 255, 0.3);
  background-color: rgba(77, 163, 255, 0.08);
  color: #4da3ff;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  border-radius: 50px;
  margin-bottom: 25px;
  backdrop-filter: blur(4px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.appointment-hero-title {
  font-size: clamp(30px, 4vw, 48px);
  font-weight: 800;
  color: #ffffff;
  line-height: 1.25;
  margin-bottom: 25px;
  letter-spacing: -0.5px;
}

.appointment-hero-title .highlight-text {
  color: #4da3ff;
  text-shadow: 0 4px 20px rgba(77, 163, 255, 0.25);
}

.appointment-hero-subtitle {
  font-size: 16px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.8);
  font-weight: 500;
}

/* 2. Right Fast-Track Highlight Card */
.appointment-hero-highlight {
  display: flex;
  justify-content: center;
  align-items: center;
}

.fast-track-card {
  position: relative;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 28px;
  padding: 45px 40px;
  width: 100%;
  max-width: 400px;
  backdrop-filter: blur(10px);
  overflow: hidden;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.2);
  transition:
    transform var(--transition-speed) ease,
    border-color var(--transition-speed) ease;
}

.fast-track-card:hover {
  transform: translateY(-5px);
  border-color: rgba(77, 163, 255, 0.25);
}

/* Light abstract background glow */
.card-glow-aurora {
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200px;
  height: 200px;
  background: radial-gradient(
    circle,
    rgba(77, 163, 255, 0.15) 0%,
    transparent 75%
  );
  z-index: 1;
  pointer-events: none;
}

.fast-track-content {
  position: relative;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.fast-track-icon-box {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background-color: rgba(77, 163, 255, 0.1);
  color: #4da3ff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 25px;
}

.fast-track-content h3 {
  font-size: 22px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 12px;
  letter-spacing: -0.3px;
}

.fast-track-content p {
  font-size: 14.5px;
  line-height: 1.6;
  color: #8da2bb;
  font-weight: 500;
  margin-bottom: 25px;
}

.decorative-accent-bar {
  display: block;
  width: 50px;
  height: 3px;
  background-color: #4da3ff;
  border-radius: 2px;
}

/* ==========================================================================
   Responsive Viewport Adjustments
   ========================================================================== */
@media (max-width: 1024px) {
  .appointment-hero-container {
    grid-template-columns: 1fr;
    gap: 50px;
    text-align: center;
  }

  .appointment-hero-text {
    align-items: center;
  }

  .appointment-hero-highlight {
    width: 100%;
  }
}

@media (max-width: 580px) {
  .fast-track-card {
    padding: 35px 25px;
  }
}

/* ==========================================================================
   Refurbished Interactive Split Booking Container
   ========================================================================== */
.booking-section {
  padding: 80px 0;
  background-color: #f1f5f9; /* Warm corporate background tone */
  width: 100%;
}

.booking-split-container {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  background-color: #ffffff;
  border-radius: 32px;
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(12, 77, 162, 0.08);
  border: 1px solid rgba(12, 77, 162, 0.04);
}

/* --- 1. Left Hand Value Panel (Dark Theme) --- */
.booking-info-panel {
  background-color: #03152d; /* Premium deep clinical navy */
  padding: 60px 50px;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}

/* Diagonal dot grid matching hero background */
.booking-info-panel::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: radial-gradient(
    rgba(255, 255, 255, 0.03) 1px,
    transparent 1px
  );
  background-size: 20px 20px;
  opacity: 0.8;
  pointer-events: none;
}

.info-tag-badge {
  display: inline-block;
  padding: 6px 16px;
  background-color: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 30px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: #4da3ff;
  align-self: flex-start;
  margin-bottom: 25px;
}

.info-panel-title {
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 15px;
  letter-spacing: -0.5px;
}

.info-panel-subtitle {
  font-size: 14px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 500;
  margin-bottom: 40px;
}

/* Core Values Props */
.info-value-props {
  display: flex;
  flex-direction: column;
  gap: 30px;
  margin-bottom: 50px;
  z-index: 5;
}

.prop-item {
  display: flex;
  align-items: flex-start;
  gap: 20px;
}

.prop-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background-color: rgba(77, 163, 255, 0.1);
  color: #4da3ff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.prop-text h4 {
  font-size: 15.5px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 5px;
}

.prop-text p {
  font-size: 13px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.6);
  font-weight: 500;
}

/* Call details footer */
.info-panel-footer {
  display: flex;
  flex-direction: column;
  gap: 6px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 25px;
  z-index: 5;
}

.info-panel-footer span {
  font-size: 12px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.info-phone-link {
  font-size: 20px;
  font-weight: 800;
  color: #ffffff;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: color 0.3s ease;
}

.info-phone-link:hover {
  color: #4da3ff;
}

/* --- 2. Right Hand Booking Panel (White Theme) --- */
.booking-form-panel {
  padding: 60px 50px;
  background-color: #ffffff;
}

.form-panel-header {
  margin-bottom: 35px;
}

.form-panel-header h3 {
  font-size: 24px;
  font-weight: 800;
  color: var(--primary-color);
  margin-bottom: 6px;
}

.form-panel-header p {
  font-size: 14px;
  color: #657d95;
  font-weight: 500;
}

/* Unified Grid form */
.appointment-grid-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 25px;
}

.form-field-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-field-group.full-width-field {
  grid-column: span 2;
}

.form-field-group label {
  font-size: 13px;
  font-weight: 700;
  color: var(--primary-color);
}

.form-field-group label span {
  color: #ef4444; /* Mandatory Star Indicator */
}

/* Form Inputs & Selects dropdowns styling */
.form-field-group input,
.form-field-group select,
.form-field-group textarea {
  width: 100%;
  padding: 14px 18px;
  border-radius: 12px;
  border: 1.5px solid #e2e8f0;
  background-color: #f8fafc;
  font-family: var(--font-family);
  font-size: 13.5px;
  font-weight: 500;
  color: var(--primary-color);
  transition:
    border-color var(--transition-speed) ease,
    background-color var(--transition-speed) ease;
}

.form-field-group input:focus,
.form-field-group select:focus,
.form-field-group textarea:focus {
  outline: none;
  border-color: var(--text-color);
  background-color: #ffffff;
}

/* Custom Interactive Radio Buttons */
.patient-status-options {
  display: flex;
  gap: 20px;
  align-items: center;
  height: 100%;
}

.custom-radio {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-family: var(--font-family);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--primary-color);
}

.custom-radio input {
  display: none; /* Hide standard browser radio dots */
}

.radio-mark {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid #cbd5e1;
  display: inline-block;
  position: relative;
  transition: border-color 0.3s ease;
}

.custom-radio input:checked ~ .radio-mark {
  border-color: #1a4da2;
}

.radio-mark::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #1a4da2;
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.custom-radio input:checked ~ .radio-mark::after {
  transform: translate(-50%, -50%) scale(1);
}

/* Elegant Action Submit Button */
.booking-submit-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background-color: #1a4da2;
  color: #ffffff;
  border: none;
  font-family: var(--font-family);
  font-size: 14px;
  font-weight: 700;
  padding: 16px;
  border-radius: 30px;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(26, 77, 162, 0.2);
  transition:
    background-color var(--transition-speed) ease,
    transform var(--transition-speed) ease,
    box-shadow var(--transition-speed) ease;
}

.booking-submit-btn:hover {
  background-color: #0c3d85;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(26, 77, 162, 0.3);
}

.booking-submit-btn i {
  font-size: 13px;
  transition: transform var(--transition-speed) ease;
}

.booking-submit-btn:hover i {
  transform: translate(3px, -2px); /* Paper-plane launch trajectory hover */
}

/* ==========================================================================
   Responsive Viewport Adjustments
   ========================================================================== */
@media (max-width: 1100px) {
  .booking-split-container {
    grid-template-columns: 1fr;
  }
  .booking-info-panel,
  .booking-form-panel {
    padding: 50px 40px;
  }
}

@media (max-width: 768px) {
  .booking-section {
    padding: 60px 0;
  }
  .appointment-grid-form {
    grid-template-columns: 1fr;
  }
  .form-field-group.full-width-field {
    grid-column: span 1;
  }
  .booking-info-panel,
  .booking-form-panel {
    padding: 40px 25px;
  }
}

/* ==========================================================================
   Header & Navbar Layout Spacing Adjustments (Desktop Focused)
   ========================================================================== */

/* Main Navbar Container spacing rules */
@media (min-width: 1025px) {
  .navbar-container {
    display: flex;
    align-items: center;
    justify-content: space-between; /* Pushes the logo to the absolute left and actions to the right */
    width: 100%;
    max-width: 1400px; /* Expands container limit slightly for wider desktop displays */
    padding: 0 40px; /* Secure padding edge safety */
  }

  /* 1. Logo Spacing Adjustments */
  .logo {
    margin-right: auto; /* Acts as a flex-pusher to send the menus and actions to the right side */
    padding-right: 40px; /* Safe buffer zone to prevent menu collision */
    display: flex;
    align-items: center;
  }

  /* 2. Navigation Menu Spacing */
  .nav-menu {
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    /* Adds a luxury gap between menu items (HOME, ABOUT US, OUR SERVICES, etc.) */
    gap: 32px;
    margin-right: 40px; /* Safe spacing buffer right before the action buttons */
  }

  /* Clean formatting adjustments for navigation link triggers */
  .nav-link {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-decoration: none;
    padding: 10px 0;
    position: relative;
    transition: color var(--transition-speed) ease;
  }
}

/* ==========================================================================
   Privacy Policy Page Style Modules (70% Transparency Hero & Split Layout)
   ========================================================================== */
.privacy-hero-section {
  position: relative;
  width: 100%;
  min-height: 50vh;
  display: flex;
  align-items: center;
  background-color: #03152d;
  padding: 80px 0;
  overflow: hidden;
}

.privacy-hero-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("resources/privacy-hero-bg.jpg"); /* Put your privacy theme bg here */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.3; /* 30% Opacity = 70% Transparent */
  z-index: 1;
}

.privacy-hero-container {
  position: relative;
  z-index: 10;
}

.privacy-hero-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.privacy-hero-badge {
  display: inline-block;
  padding: 8px 24px;
  border: 1px solid rgba(77, 163, 255, 0.3);
  background-color: rgba(77, 163, 255, 0.08);
  color: #4da3ff;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  border-radius: 50px;
  margin-bottom: 20px;
}

.privacy-hero-title {
  font-size: clamp(28px, 4.5vw, 48px);
  font-weight: 800;
  color: #ffffff;
  line-height: 1.25;
  margin-bottom: 20px;
  letter-spacing: -0.5px;
}

.privacy-hero-title .highlight-text {
  color: #4da3ff;
  text-shadow: 0 4px 20px rgba(77, 163, 255, 0.25);
}

.privacy-hero-subtitle {
  font-size: 15.5px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.8);
  font-weight: 500;
  margin-bottom: 20px;
}

.privacy-last-updated {
  display: inline-block;
  padding: 6px 16px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 20px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 12px;
  font-weight: 600;
}

/* --- Split Panel Dashboard Layout --- */
.privacy-body-section {
  padding: 80px 0;
  background-color: #f8fafc;
}

.privacy-split-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 50px;
  align-items: start;
}

/* Vertical Sticky Sidebar Navigation */
.privacy-sidebar {
  position: sticky;
  top: 100px;
  z-index: 100;
}

.sticky-nav-card {
  background-color: #ffffff;
  border-radius: 20px;
  padding: 25px 20px;
  border: 1px solid rgba(12, 77, 162, 0.04);
  box-shadow: 0 10px 30px rgba(12, 77, 162, 0.02);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.p-nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--primary-color);
  text-decoration: none;
  border-radius: 12px;
  transition: all var(--transition-speed) ease;
}

.p-nav-link i {
  font-size: 15px;
  color: #8da2bb;
  transition: color 0.3s ease;
}

.p-nav-link:hover {
  background-color: #f4f8fc;
  color: var(--text-color);
}

.p-nav-link.active {
  background-color: #1a4da2;
  color: #ffffff;
}

.p-nav-link.active i {
  color: #ffffff;
}

/* Main content wrapper panel */
.privacy-content-panel {
  display: flex;
  flex-direction: column;
  gap: 35px;
}

.p-intro-text {
  font-size: 15.5px;
  line-height: 1.75;
  color: #556c86;
  font-weight: 500;
}

/* Glass-tinted content cards */
.policy-card {
  background-color: #ffffff;
  border-radius: 24px;
  padding: 45px 40px;
  border: 1px solid rgba(12, 77, 162, 0.04);
  box-shadow: 0 10px 30px rgba(12, 77, 162, 0.02);
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.policy-card-header {
  display: flex;
  align-items: center;
  gap: 15px;
}

.step-num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: rgba(12, 77, 162, 0.06);
  color: #1a4da2;
  font-size: 13px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

.policy-card h3 {
  font-size: 20px;
  font-weight: 800;
  color: var(--primary-color);
  letter-spacing: -0.3px;
}

.card-p {
  font-size: 14.5px;
  line-height: 1.6;
  color: #556c86;
  font-weight: 500;
}

/* Column lists inside Card 1 */
.policy-split-lists {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}

.policy-list-col {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.policy-list-col h4 {
  font-size: 15px;
  font-weight: 750;
  color: var(--primary-color);
  display: flex;
  align-items: center;
  gap: 10px;
}

.policy-list-col h4 i {
  color: #1a4da2;
}

.policy-list-col ul,
.p-details-bullet-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.policy-list-col li {
  font-size: 14px;
  color: #556c86;
  font-weight: 500;
  position: relative;
  padding-left: 15px;
}

.policy-list-col li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background-color: #8da2bb;
}

/* Tags Cloud in Card 2 */
.policy-tags-container {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.policy-pill {
  padding: 8px 18px;
  background-color: #f1f5f9;
  color: var(--primary-color);
  font-size: 12.5px;
  font-weight: 700;
  border-radius: 30px;
}

.policy-warning-note {
  display: flex;
  align-items: center;
  gap: 15px;
  background-color: #fffbeb;
  border: 1px solid #fef3c7;
  padding: 18px 24px;
  border-radius: 16px;
}

.policy-warning-note i {
  color: #d97706;
  font-size: 20px;
}

.policy-warning-note p {
  font-size: 13.5px;
  color: #92400e;
  font-weight: 600;
  line-height: 1.5;
}

/* Security Props Grid in Card 3 */
.policy-grid-props {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.prop-box {
  background-color: #f8fafc;
  border-radius: 16px;
  padding: 25px 15px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  border: 1px solid rgba(12, 77, 162, 0.02);
}

.prop-box i {
  font-size: 24px;
  color: #1a4da2;
}

.prop-box strong {
  font-size: 13px;
  color: var(--primary-color);
  font-weight: 700;
}

/* Bullet details lists in Card 4 */
.p-details-bullet-list li {
  font-size: 14px;
  line-height: 1.6;
  color: #556c86;
  font-weight: 500;
  position: relative;
  padding-left: 20px;
}

.p-details-bullet-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: #1a4da2;
}

.p-details-bullet-list strong {
  color: var(--primary-color);
}

/* Check Icons lists in Card 5 */
.p-icon-bullet-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.p-icon-bullet-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14.5px;
  color: var(--primary-color);
  font-weight: 600;
}

.p-icon-bullet-list li i {
  color: #10b981;
  font-size: 16px;
}

/* Closing Inquiries Card 6 */
.contact-inquiries-card {
  background-color: #03152d; /* Premium deep dark slate footer block */
  color: #ffffff;
  align-items: center;
  text-align: center;
}

.contact-inquiries-card h3 {
  color: #ffffff;
}

.contact-inquiries-card p {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 500;
}

.inquiry-connections {
  display: flex;
  gap: 30px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 10px;
}

.inquiry-item {
  color: #ffffff;
  text-decoration: none;
  font-size: 14.5px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: color 0.3s ease;
}

.inquiry-item i {
  color: #4da3ff;
}

.inquiry-item:hover {
  color: #4da3ff;
}

/* ==========================================================================
   Responsive Viewport Adjustments
   ========================================================================== */
@media (max-width: 1100px) {
  .privacy-split-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .privacy-sidebar {
    position: static;
    width: 100%;
  }
  .sticky-nav-card {
    flex-direction: row;
    overflow-x: auto;
    white-space: nowrap;
    padding: 15px;
  }
  .p-nav-link {
    padding: 10px 16px;
    font-size: 12.5px;
  }
}

@media (max-width: 768px) {
  .privacy-body-section {
    padding: 60px 0;
  }
  .policy-card {
    padding: 30px 20px;
    gap: 20px;
  }
  .policy-split-lists {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .policy-grid-props {
    grid-template-columns: 1fr;
  }
  .inquiry-connections {
    flex-direction: column;
    gap: 15px;
  }
}

/* ==========================================================================
   Terms & Conditions Style Modules (70% Transparency Hero & Table of Contents)
   ========================================================================== */
.terms-hero-section {
  position: relative;
  width: 100%;
  min-height: 50vh;
  display: flex;
  align-items: center;
  background-color: #03152d;
  padding: 80px 0;
  overflow: hidden;
}

.terms-hero-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("resources/terms-hero-bg.jpg"); /* Put your terms theme bg here */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.3; /* 30% Opacity = 70% Transparent */
  z-index: 1;
}

.terms-hero-container {
  position: relative;
  z-index: 10;
}

.terms-hero-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.terms-hero-badge {
  display: inline-block;
  padding: 8px 24px;
  border: 1px solid rgba(77, 163, 255, 0.3);
  background-color: rgba(77, 163, 255, 0.08);
  color: #4da3ff;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  border-radius: 50px;
  margin-bottom: 20px;
}

.terms-hero-title {
  font-size: clamp(28px, 4.5vw, 48px);
  font-weight: 800;
  color: #ffffff;
  line-height: 1.25;
  margin-bottom: 20px;
  letter-spacing: -0.5px;
}

.terms-hero-title .highlight-text {
  color: #4da3ff;
  text-shadow: 0 4px 20px rgba(77, 163, 255, 0.25);
}

.terms-hero-subtitle {
  font-size: 15.5px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.8);
  font-weight: 500;
  margin-bottom: 20px;
}

.terms-last-updated {
  display: inline-block;
  padding: 6px 16px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 20px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 12px;
  font-weight: 600;
}

/* --- Terms Split Layout Grid --- */
.terms-body-section {
  padding: 80px 0;
  background-color: #f8fafc;
}

.terms-split-grid {
  display: grid;
  grid-template-columns: 310px 1fr;
  gap: 50px;
  align-items: start;
}

/* Sticky TOC Sidebar */
.terms-sidebar {
  position: sticky;
  top: 100px;
  z-index: 100;
}

.sticky-toc-card {
  background-color: #ffffff;
  border-radius: 24px;
  padding: 30px 24px;
  border: 1px solid rgba(12, 77, 162, 0.04);
  box-shadow: 0 10px 30px rgba(12, 77, 162, 0.02);
}

.sticky-toc-card h3 {
  font-size: 16px;
  font-weight: 800;
  color: var(--primary-color);
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid #f1f5f9;
}

.toc-links-wrapper {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.t-nav-link {
  display: block;
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 700;
  color: #657d95;
  text-decoration: none;
  border-radius: 10px;
  transition: all var(--transition-speed) ease;
}

.t-nav-link:hover {
  background-color: #f4f8fc;
  color: var(--text-color);
}

.t-nav-link.active {
  background-color: #1a4da2;
  color: #ffffff;
}

/* Right Content panel stream */
.terms-content-panel {
  display: flex;
  flex-direction: column;
  gap: 35px;
}

.t-intro-text {
  font-size: 15px;
  line-height: 1.75;
  color: #556c86;
  font-weight: 500;
}

/* Base Content Cards */
.terms-card {
  background-color: #ffffff;
  border-radius: 24px;
  padding: 45px 40px;
  border: 1px solid rgba(12, 77, 162, 0.04);
  box-shadow: 0 10px 30px rgba(12, 77, 162, 0.02);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.terms-card-header {
  display: flex;
  align-items: center;
  gap: 15px;
}

.terms-step-num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: rgba(12, 77, 162, 0.06);
  color: #1a4da2;
  font-size: 13px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

.terms-card h3 {
  font-size: 18.5px;
  font-weight: 800;
  color: var(--primary-color);
  letter-spacing: -0.3px;
}

.card-p {
  font-size: 14px;
  line-height: 1.6;
  color: #556c86;
  font-weight: 500;
}

.inline-terms-link {
  color: #1a4da2;
  text-decoration: none;
  font-weight: 700;
}

.inline-terms-link:hover {
  text-decoration: underline;
}

/* Bullet list markers */
.t-details-bullet-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.t-details-bullet-list li {
  font-size: 13.5px;
  line-height: 1.6;
  color: #556c86;
  font-weight: 500;
  position: relative;
  padding-left: 20px;
}

.t-details-bullet-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background-color: #1a4da2;
}

/* Red Medical Warning box styling */
.terms-alert-warning {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  background-color: #fef2f2;
  border: 1px solid #fecaca;
  padding: 22px 25px;
  border-radius: 16px;
}

.alert-icon-box {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: rgba(239, 68, 68, 0.1);
  color: #ef4444;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.alert-text-box {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.alert-text-box strong {
  font-size: 14.5px;
  color: #991b1b;
  font-weight: 750;
}

.alert-text-box p {
  font-size: 13px;
  line-height: 1.6;
  color: #7f1d1d;
  font-weight: 600;
}

/* Base Contact & Legal Card (navy themed footer box) */
.contact-legal-card {
  background-color: #ffffff;
  gap: 30px;
}

.legal-contact-box {
  background-color: #03152d;
  border-radius: 20px;
  padding: 35px;
  color: #ffffff;
}

.legal-contact-box h4 {
  font-size: 16px;
  font-weight: 800;
  margin-bottom: 12px;
}

.legal-address {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.5;
  font-weight: 500;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 25px;
}

.legal-address i {
  color: #4da3ff;
  font-size: 15px;
  margin-top: 2px;
}

.legal-links-flex {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 20px;
}

.legal-contact-link {
  color: #ffffff;
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: color 0.3s ease;
}

.legal-contact-link i {
  color: #4da3ff;
}

.legal-contact-link:hover {
  color: #4da3ff;
}

/* Footer Stamp */
.legal-stamp-footer {
  text-align: center;
  border-top: 1px solid #f1f5f9;
  padding-top: 25px;
}

.legal-stamp-footer strong {
  font-size: 14.5px;
  color: var(--primary-color);
  font-weight: 800;
  display: block;
  margin-bottom: 6px;
}

.legal-stamp-footer p {
  font-size: 12.5px;
  color: #657d95;
  font-weight: 500;
  line-height: 1.5;
}

/* ==========================================================================
   Responsive Viewport Adjustments
   ========================================================================== */
@media (max-width: 1100px) {
  .terms-split-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .terms-sidebar {
    position: static;
    width: 100%;
  }
  .sticky-toc-card {
    padding: 15px;
  }
  .sticky-toc-card h3 {
    display: none; /* Hide TOC Title header on mobile navigation bars */
  }
  .toc-links-wrapper {
    flex-direction: row;
    overflow-x: auto;
    white-space: nowrap;
    padding-bottom: 5px;
  }
  .t-nav-link {
    padding: 10px 16px;
    font-size: 12.5px;
  }
}

@media (max-width: 768px) {
  .terms-body-section {
    padding: 60px 0;
  }
  .terms-card {
    padding: 30px 20px;
  }
  .terms-alert-warning {
    flex-direction: column;
    gap: 12px;
    padding: 20px;
  }
  .legal-contact-box {
    padding: 25px 20px;
  }
  .legal-links-flex {
    flex-direction: column;
    gap: 15px;
  }
}

/* ==========================================================================
   Clinical Service Subpage Framework Styling (Primary Care Target)
   ========================================================================== */
.service-hero-section {
  position: relative;
  width: 100%;
  min-height: 45vh;
  display: flex;
  align-items: center;
  background-color: #03152d; /* Corporate deep clinical navy base */
  padding: 60px 0 80px 0;
  overflow: hidden;
}

/* 70% Transparency Hero Background Image Adjustment */
.service-hero-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("resources/service-hero-bg.jpg"); /* General clean hospital room backdrop */
  background-size: cover;
  background-position: center;
  opacity: 0.3; /* 30% Opacity = 70% Transparent */
  z-index: 1;
}

/* Dynamic Back Link */
.back-home-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 35px;
  position: relative;
  z-index: 10;
  transition: color 0.3s ease;
}

.back-home-link:hover {
  color: #4da3ff;
}

.service-hero-content {
  position: relative;
  z-index: 10;
  max-width: 800px;
}

.service-dept-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  color: #4da3ff;
  letter-spacing: 1.5px;
  margin-bottom: 15px;
}

.service-hero-title {
  font-size: clamp(32px, 5vw, 46px);
  font-weight: 800;
  color: #ffffff;
  line-height: 1.2;
  margin-bottom: 20px;
  letter-spacing: -0.5px;
}

.service-hero-subtitle {
  font-size: 16px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.85);
  font-weight: 500;
}

/* Core Content Split Section */
.service-details-section {
  padding: 80px 0;
  background-color: #ffffff;
}

.service-split-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 60px;
  align-items: start;
}

/* Left Column content elements */
.service-main-text h2 {
  font-size: 28px;
  font-weight: 800;
  color: var(--primary-color);
  margin-bottom: 20px;
  letter-spacing: -0.5px;
}

.service-p {
  font-size: 15px;
  line-height: 1.8;
  color: #556c86;
  font-weight: 500;
  margin-bottom: 35px;
}

/* Feature Check list styling */
.service-check-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.service-check-list li {
  font-size: 15px;
  font-weight: 700;
  color: var(--primary-color);
  display: flex;
  align-items: center;
  gap: 12px;
}

.service-check-list li i {
  color: #1a4da2; /* Secondary blue accent check icon */
  font-size: 16px;
}

/* Right Sidebar callout card widget */
.consultation-widget-card {
  background-color: #f4f8fc;
  border-radius: 24px;
  padding: 40px 35px;
  border: 1px solid rgba(12, 77, 162, 0.04);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.consultation-widget-card h3 {
  font-size: 18px;
  font-weight: 800;
  color: var(--primary-color);
  margin-bottom: 8px;
}

.consultation-widget-card p {
  font-size: 14px;
  color: #657d95;
  font-weight: 500;
  margin-bottom: 25px;
}

.widget-action-buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}

.widget-btn-primary,
.widget-btn-secondary {
  display: block;
  width: 100%;
  padding: 14px;
  border-radius: 12px;
  font-family: var(--font-family);
  font-size: 13.5px;
  font-weight: 700;
  text-decoration: none;
  transition: all var(--transition-speed) ease;
}

.widget-btn-primary {
  background-color: var(--primary-color);
  color: #ffffff;
}

.widget-btn-primary:hover {
  background-color: var(--text-color);
}

.widget-btn-secondary {
  background-color: transparent;
  color: var(--primary-color);
  border: 1.5px solid var(--primary-color);
}

.widget-btn-secondary:hover {
  background-color: rgba(3, 21, 45, 0.04);
}

/* Bottom Department Router Elements */
.other-depts-section {
  padding: 40px 0 80px 0;
  background-color: #ffffff;
  border-top: 1px solid #f1f5f9;
}

.depts-title {
  font-size: 16px;
  font-weight: 800;
  color: var(--primary-color);
  margin-bottom: 20px;
}

.depts-link-row {
  display: flex;
  gap: 25px;
  flex-wrap: wrap;
}

.dept-route-link {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

.dept-route-link:hover {
  color: var(--primary-color);
  text-decoration: underline;
}

/* ==========================================================================
   Responsive Viewport Scale Handlers
   ========================================================================== */
@media (max-width: 991px) {
  .service-split-grid {
    grid-template-columns: 1fr;
    gap: 45px;
  }
  .service-sidebar {
    width: 100%;
    max-width: 450px;
  }
}

@media (max-width: 580px) {
  .service-hero-section {
    padding: 40px 0 60px 0;
  }
  .consultation-widget-card {
    padding: 30px 20px;
  }
}

/* ==========================================================================
   Diagnostics Subpage Styling Modules
   ========================================================================== */
.diagnostic-facility-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 30px;
}

/* Glass-morphic facility card item */
.facility-card-item {
  background: #ffffff;
  border: 1.5px solid rgba(12, 77, 162, 0.05);
  border-radius: 16px;
  padding: 24px 28px;
  display: flex;
  align-items: center;
  gap: 24px;
  transition:
    transform var(--transition-speed) ease,
    box-shadow var(--transition-speed) ease;
}

.facility-card-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(12, 77, 162, 0.04);
  border-color: rgba(12, 77, 162, 0.1);
}

/* Custom rounded blue icon container */
.facility-icon-box {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background-color: rgba(12, 77, 162, 0.05);
  color: var(--text-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
  transition:
    background-color var(--transition-speed) ease,
    color var(--transition-speed) ease;
}

.facility-card-item:hover .facility-icon-box {
  background-color: var(--primary-color);
  color: #ffffff;
}

/* Facility typography */
.facility-details-box h3 {
  font-size: 16px;
  font-weight: 800;
  color: var(--primary-color);
  margin-bottom: 6px;
  letter-spacing: -0.3px;
}

.facility-details-box p {
  font-size: 13.5px;
  line-height: 1.6;
  color: #556c86;
  font-weight: 500;
}

/* ==========================================================================
   Responsive Scales
   ========================================================================== */
@media (max-width: 768px) {
  .facility-card-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
    padding: 20px;
  }
}

/* ==========================================================================
   Surgery Department Layout Properties
   ========================================================================== */
.surgery-specialties-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 30px;
}

/* Modifies the background transition color specifically for surgical themed modules */
.surgery-specialties-list .facility-card-item:hover .facility-icon-box {
  background-color: #03152d; /* Rich deep navy hover inversion */
  color: #ffffff;
}

/* ==========================================================================
   Pharmacy Department Custom Style Overrides
   ========================================================================== */
.pharmacy-specialties-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 30px;
}

/* Pharmacy specific hover inversion (Emerald color accent representation) */
.pharmacy-specialties-list .facility-card-item:hover .facility-icon-box {
  background-color: #10b981; /* Premium pharmacy green */
  color: #ffffff;
}

/* ==========================================================================
   Advanced Services Additions: Anaesthesia, Pain, and Aesthetic Mega Cards
   ========================================================================== */

/* Compact Sub-columns inside traditional cards */
.service-sub-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: 20px 0 25px 0;
  text-align: left;
}

.sub-col h4 {
  font-size: 13px;
  font-weight: 800;
  color: var(--primary-color);
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.sub-col ul {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sub-col li {
  font-size: 12.5px;
  color: #556c86;
  font-weight: 500;
  position: relative;
  padding-left: 12px;
}

.sub-col li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background-color: var(--text-color);
}

/* Aesthetic Medicine Mega Layout Box (Spans full grid width) */
.full-width-service-card {
  grid-column: 1 / -1; /* Spans across all columns of your CSS Grid */
  background-color: #ffffff;
  border-radius: 28px;
  border: 1.5px solid rgba(12, 77, 162, 0.04);
  box-shadow: 0 10px 35px rgba(12, 77, 162, 0.02);
  overflow: hidden;
}

.aesthetic-mega-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 25px;
  margin: 30px 0;
  text-align: left;
}

.mega-col h4 {
  font-size: 14px;
  font-weight: 800;
  color: var(--primary-color);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.mega-col h4 i {
  color: var(--text-color);
  font-size: 14px;
}

.mega-col ul {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mega-col li {
  font-size: 12px;
  color: #556c86;
  font-weight: 500;
  line-height: 1.4;
  position: relative;
  padding-left: 12px;
}

.mega-col li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background-color: var(--text-color);
}

/* Expanded Card Hover/Interactive States */
.service-card-expanded {
  background: #ffffff;
  border: 1.5px solid rgba(12, 77, 162, 0.04);
  border-radius: 24px;
  padding: 40px;
  position: relative;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.service-card-expanded:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(12, 77, 162, 0.06);
}

/* ==========================================================================
   Responsive Scaling
   ========================================================================== */
@media (max-width: 1200px) {
  .aesthetic-mega-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }
}

@media (max-width: 900px) {
  .aesthetic-mega-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .service-sub-columns {
    grid-template-columns: 1fr;
    gap: 15px;
  }
}

@media (max-width: 580px) {
  .aesthetic-mega-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }
  .service-card-expanded {
    padding: 25px 20px;
  }
}

/* ==========================================================================
   Comprehensive Sub-Service Page Stylesheet (Updated)
   ========================================================================== */

/* 70% Transparent wellness-focused backdrop */
.wellness-hero-bg::before {
  background-image: url("resources/wellness-hero-bg.jpg"); /* Put a high quality clean wellness image here */
  background-size: cover;
  background-position: center;
}

/* Service Page Main Representative Photo Container */
.service-representative-image-container {
  width: 100%;
  border-radius: 24px;
  overflow: hidden;
  margin-bottom: 35px;
  border: 1px solid rgba(12, 77, 162, 0.04);
  box-shadow: 0 12px 35px rgba(12, 77, 162, 0.03);
}

.service-main-image {
  width: 100%;
  height: auto;
  max-height: 420px;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.service-representative-image-container:hover .service-main-image {
  transform: scale(1.03);
}

/* Quote Accent Box */
.service-quote-box {
  background-color: #f8fafc;
  border-left: 4px solid #1a4da2;
  padding: 24px 30px;
  border-radius: 0 16px 16px 0;
  margin: 35px 0;
}

.service-quote-box p {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.6;
  color: #1e3a5f;
  font-style: italic;
}

/* Simple checkmarks list */
.service-feature-checklist-simple {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 40px;
}

.service-feature-checklist-simple li {
  font-size: 14.5px;
  color: #556c86;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 12px;
}

.service-feature-checklist-simple li i {
  color: #1a4da2;
  font-size: 16px;
}

/* Subtitles for listed sections */
.sub-list-title {
  font-size: 22px;
  font-weight: 800;
  color: #03152d;
  margin-bottom: 25px;
}

/* Step list card rows */
.numbered-steps-container {
  display: flex;
  flex-direction: column;
  gap: 25px;
  margin-bottom: 50px;
}

.step-card-item {
  background-color: #ffffff;
  border-radius: 20px;
  padding: 30px;
  border: 1px solid rgba(12, 77, 162, 0.04);
  box-shadow: 0 10px 25px rgba(12, 77, 162, 0.01);
  display: flex;
  gap: 25px;
  align-items: flex-start;
  transition: transform 0.3s ease;
}

.step-card-item:hover {
  transform: translateY(-2px);
}

.step-card-num {
  font-size: 24px;
  font-weight: 800;
  color: rgba(26, 77, 162, 0.15);
  background-color: rgba(26, 77, 162, 0.04);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.step-card-content h3 {
  font-size: 16px;
  font-weight: 800;
  color: #03152d;
  margin-bottom: 8px;
}

.step-card-content p {
  font-size: 13.5px;
  line-height: 1.65;
  color: #556c86;
  font-weight: 500;
}

/* Right Sidebar: Midnight Action Box */
.consultation-action-box {
  background-color: #03152d;
  color: #ffffff;
  border-radius: 24px;
  padding: 40px 30px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  box-shadow: 0 15px 35px rgba(3, 21, 45, 0.15);
}

.consultation-action-box h3 {
  font-size: 18px;
  font-weight: 800;
  line-height: 1.4;
}

.consultation-action-box p {
  font-size: 13px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 500;
  margin-bottom: 10px;
}

.sidebar-action-btn {
  display: block;
  width: 100%;
  padding: 15px;
  background-color: #1a4da2;
  color: #ffffff;
  font-size: 12.5px;
  font-weight: 800;
  border-radius: 30px;
  text-decoration: none;
  letter-spacing: 0.5px;
  box-shadow: 0 6px 15px rgba(26, 77, 162, 0.2);
  transition:
    background-color 0.3s ease,
    transform 0.3s ease;
}

.sidebar-action-btn:hover {
  background-color: #0c3d85;
  transform: translateY(-2px);
}

/* Sidebar: Trust Checklist Widget */
.sidebar-trust-box {
  background-color: #ffffff;
  border-radius: 20px;
  padding: 30px;
  border: 1px solid rgba(12, 77, 162, 0.04);
  width: 100%;
}

.sidebar-trust-box h4,
.sidebar-navigation-box h4 {
  font-size: 14.5px;
  font-weight: 800;
  color: #03152d;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid #f1f5f9;
}

.trust-icons-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.trust-icons-list li {
  font-size: 13.5px;
  font-weight: 700;
  color: #03152d;
  display: flex;
  align-items: center;
  gap: 12px;
}

.trust-icons-list li i {
  color: #1a4da2;
  font-size: 15px;
  width: 20px;
}

/* Sidebar: Link Index Widget */
.sidebar-navigation-box {
  background-color: #ffffff;
  border-radius: 20px;
  padding: 30px;
  border: 1px solid rgba(12, 77, 162, 0.04);
  width: 100%;
}

.sidebar-nav-links {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.sidebar-nav-links a {
  display: block;
  padding: 10px 14px;
  font-size: 13.5px;
  font-weight: 700;
  color: #657d95;
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.sidebar-nav-links a:hover {
  background-color: #f4f8fc;
  color: #1a4da2;
}

/* --- Social Sharing Engine Styles --- */
.service-share-container {
  display: flex;
  align-items: center;
  gap: 20px;
  border-top: 1px solid #f1f5f9;
  padding-top: 35px;
  margin-top: 40px;
  position: relative;
  flex-wrap: wrap;
}

.share-label {
  font-size: 13.5px;
  font-weight: 700;
  color: #657d95;
}

.share-links-flex {
  display: flex;
  gap: 10px;
  align-items: center;
}

.share-btn-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background-color: #f1f5f9;
  color: #657d95;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.share-btn-icon:hover {
  color: #ffffff;
  transform: translateY(-2px);
}

/* Social Hover Colors */
.share-btn-icon.facebook:hover {
  background-color: #1877f2;
}
.share-btn-icon.twitter-classic:hover {
  background-color: #1da1f2;
} /* Classical Twitter Blue Brand Color */
.share-btn-icon.whatsapp:hover {
  background-color: #25d366;
}
.share-btn-icon.instagram:hover {
  background-color: #e1306c;
}
.share-btn-icon.copy-link:hover {
  background-color: #1a4da2;
}

/* Alert Prompt */
.copy-alert {
  position: absolute;
  bottom: -30px;
  left: 155px;
  background-color: #03152d;
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 4px;
  opacity: 0;
  transform: translateY(5px);
  transition: all 0.3s ease;
  pointer-events: none;
}

.copy-alert.show {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   Responsive Viewport Scale Handlers
   ========================================================================== */
@media (max-width: 768px) {
  .step-card-item {
    flex-direction: column;
    gap: 15px;
  }
}

/* 70% Transparent medical consultation backdrop */
.consultation-hero-bg::before {
  background-image: url("resources/services/consultation-hero-bg.jpg"); /* Representative consultation background image */
  background-size: cover;
  background-position: center;
}

/* 70% Transparent clinical pharmacy backdrop */
.pharmacy-hero-bg::before {
  background-image: url("resources/services/pharmacy-hero-bg.jpg"); /* Representative pharmacy background image */
  background-size: cover;
  background-position: center;
}

/* 70% Transparent family medicine clinical backdrop */
.family-medicine-hero-bg::before {
  background-image: url("resources/services/family-medicine-hero-bg.jpg"); /* Representative family medicine background image */
  background-size: cover;
  background-position: center;
}

/* 70% Transparent chronic care clinical backdrop */
.chronic-care-hero-bg::before {
  background-image: url("resources/services/chronic-care-hero-bg.jpg"); /* Representative chronic care background image */
  background-size: cover;
  background-position: center;
}

/* 70% Transparent oncology clinical backdrop */
.oncology-hero-bg::before {
  background-image: url("resources/services/oncology-hero-bg.jpg"); /* Representative oncology background image */
  background-size: cover;
  background-position: center;
}

/* 70% Transparent Emergency/Trauma clinical backdrop */
.emergency-hero-bg::before {
  background-image: url("resources/services/emergency-hero-bg.jpg"); /* Representative emergency background image */
  background-size: cover;
  background-position: center;
}

/* 70% Transparent Obstetrics & Gynecology backdrop */
.obgyn-hero-bg::before {
  background-image: url("resources/services/obgyn-hero-bg.jpg"); /* Representative maternity background image */
  background-size: cover;
  background-position: center;
}

/* 70% Transparent Pediatrics backdrop */
.pediatrics-hero-bg::before {
  background-image: url("resources/services/pediatrics-hero-bg.jpg"); /* Representative child health background image */
  background-size: cover;
  background-position: center;
}

/* 70% Transparent ENT clinical backdrop */
.ent-hero-bg::before {
  background-image: url("resources/services/ent-hero-bg.jpg"); /* Representative ENT background image */
  background-size: cover;
  background-position: center;
}

/* 70% Transparent Physiotherapy backdrop */
.physiotherapy-hero-bg::before {
  background-image: url("resources/services/physiotherapy-hero-bg.jpg"); /* Representative physiotherapy background image */
  background-size: cover;
  background-position: center;
}

/* 70% Transparent Surgery Service backdrop */
.surgery-service-hero-bg::before {
  background-image: url("resources/services/surgery-service-hero-bg.jpg"); /* Representative surgery service background image */
  background-size: cover;
  background-position: center;
}

/* 70% Transparent Laboratory Service backdrop */
.lab-service-hero-bg::before {
  background-image: url("resources/services/lab-service-hero-bg.jpg"); /* Representative lab service background image */
  background-size: cover;
  background-position: center;
}

/* 70% Transparent Digital X-Ray backdrop */
.xray-hero-bg::before {
  background-image: url("resources/services/xray-hero-bg.jpg"); /* Representative digital X-ray background image */
  background-size: cover;
  background-position: center;
}

/* 70% Transparent High-Res Ultrasound backdrop */
.ultrasound-hero-bg::before {
  background-image: url("resources/services/ultrasound-hero-bg.jpg"); /* Representative ultrasound background image */
  background-size: cover;
  background-position: center;
}

/* 70% Transparent Home Healthcare clinical backdrop */
.home-health-hero-bg::before {
  background-image: url("resources/services/home-health-hero-bg.jpg"); /* Representative home health background image */
  background-size: cover;
  background-position: center;
}

/* 70% Transparent Clinical Onboarding & IT Training backdrop */
.training-hero-bg::before {
  background-image: url("resources/services/training-hero-bg.jpg"); /* Representative training background image */
  background-size: cover;
  background-position: center;
}

/* 70% Transparent Orthopedics backdrop */
.orthopedics-hero-bg::before {
  background-image: url("resources/services/orthopedics-hero-bg.jpg"); /* Representative orthopedic background image */
  background-size: cover;
  background-position: center;
}

/* 70% Transparent Ophthalmology backdrop */
.ophthalmology-hero-bg::before {
  background-image: url("resources/services/ophthalmology-hero-bg.jpg"); /* Representative eye care background image */
  background-size: cover;
  background-position: center;
}

/* 70% Transparent Anaesthesia backdrop */
.anaesthesia-hero-bg::before {
  background-image: url("resources/services/anaesthesia-hero-bg.jpg"); /* Representative anesthesia background image */
  background-size: cover;
  background-position: center;
}

/* 70% Transparent Pain Management backdrop */
.pain-hero-bg::before {
  background-image: url("resources/services/pain-hero-bg.jpg"); /* Representative pain management background image */
  background-size: cover;
  background-position: center;
}

/* 70% Transparent Aesthetic Medicine backdrop */
.aesthetics-hero-bg::before {
  background-image: url("resources/services/aesthetics-hero-bg.jpg"); /* Representative aesthetic medicine background image */
  background-size: cover;
  background-position: center;
}

/* ==========================================================================
   Weight Loss Service Specific Styling
   ========================================================================== */
.weight-loss-hero-bg {
  position: relative;
}

/* 70% Transparent Weight Loss Medicine Backdrop Overlay */
.weight-loss-hero-bg::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url("resources/services/weight-loss-hero-bg.jpg"); /* Place your background image here */
  background-size: cover;
  background-position: center;
  opacity: 0.3; /* Sets transparency so text remains highly readable */
  z-index: 1;
}

.weight-loss-hero-bg .container {
  position: relative;
  z-index: 2; /* Ensures content sits above background overlay */
}
/* ==========================================================================
   1. Dynamic Global Resets for Responsive Stability
   ========================================================================== */
*,
*::before,
*::after {
  box-sizing: border-box; /* Force padding and borders inside defined widths */
}

html,
body {
  width: 100%;
  margin: 0;
  padding: 0;
  overflow-x: hidden; /* Bulletproof horizontal scroll elimination */
  position: relative;
}

img {
  max-width: 100%; /* Stop large images from pushing out screen widths */
  height: auto;
}

/* ==========================================================================
   2. Mobile-Specific Overrides (Targeting screens under 768px)
   ========================================================================== */
@media screen and (max-width: 768px) {
  /* Force Containers to Sit Fluidly inside Mobile viewports */
  .container {
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
    overflow: hidden; /* Keep grids from leaking */
  }

  /* Reduce Header & Nav spacing to save space */
  .site-header {
    width: 100% !important;
    overflow: hidden;
  }

  .main-navbar {
    padding: 10px 0 !important; /* Narrower height */
  }

  .navbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 15px !important;
  }

  /* Scale Down Logo to fit cleanly without squishing */
  .logo img {
    width: 155px !important; /* Perfect reduction so it doesn't crowd actions */
    height: auto !important;
  }

  /* Ensure Nav Actions (Search, Menu Toggles) sit aligned */
  .nav-actions {
    display: flex;
    align-items: center;
    gap: 12px !important; /* Clean layout spacing */
  }

  /* Smooth out mobile drawer boundaries */
  .nav-menu {
    position: fixed;
    top: 60px; /* Aligns right beneath the stickied mobile header */
    right: -100%;
    width: 280px; /* Solid, off-screen panel width */
    height: calc(100vh - 60px);
    background-color: #03152d;
    flex-direction: column;
    justify-content: flex-start;
    padding: 40px 20px !important;
    transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 999;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.2);
  }

  .nav-menu.active {
    right: 0 !important; /* Smooth slide-in action */
  }

  /* Hide Desktop Appointment button inside Nav Actions on mobile */
  .nav-actions .appointment-btn {
    display: none !important;
  }

  /* Optional: Show alternative simplified Appt link inside Mobile Menu drawer */
  .nav-menu .appointment-btn {
    display: flex !important;
    width: 100%;
    justify-content: center;
    margin-top: 20px;
  }
}

/* ==========================================================================
   Blog Page Stylesheet Additions
   ========================================================================== */
.blog-hero-section {
  position: relative;
  background-color: #03152d;
  padding: 100px 0;
  text-align: center;
  overflow: hidden;
}

.blog-hero-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url("resources/blog-hero-bg.jpg"); /* Place your background image here */
  background-size: cover;
  background-position: center;
  opacity: 0.25;
  z-index: 1;
}

.blog-hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
}

.blog-dept-badge {
  display: inline-block;
  background-color: rgba(0, 201, 167, 0.15);
  color: #00c9a7;
  padding: 8px 16px;
  border-radius: 50px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  margin-bottom: 20px;
}

.blog-hero-title {
  color: #ffffff;
  font-size: 42px;
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.2;
}

.blog-hero-subtitle {
  color: #cbd5e0;
  font-size: 16px;
  line-height: 1.6;
}

/* Utilities Filter & Search Bar */
.blog-grid-section {
  padding: 80px 0;
  background-color: #f8fafc;
}

.blog-utilities-panel {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 50px;
  border-bottom: 1px solid #e2e8f0;
  padding-bottom: 25px;
}

.blog-categories-tabs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.blog-tab {
  background-color: #ffffff;
  border: 1px solid #e2e8f0;
  color: #4a5568;
  padding: 10px 20px;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.blog-tab:hover,
.blog-tab.active {
  background-color: #03152d;
  color: #ffffff;
  border-color: #03152d;
}

.blog-search-box {
  position: relative;
  width: 300px;
}

.blog-search-box input {
  width: 100%;
  padding: 12px 40px 12px 16px;
  border: 1px solid #e2e8f0;
  border-radius: 4px;
  font-family: inherit;
  font-size: 14px;
  outline: none;
  background-color: #ffffff;
  transition: border-color 0.3s ease;
}

.blog-search-box input:focus {
  border-color: #00c9a7;
}

.blog-search-box i {
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: #a0aec0;
}

/* Empty State Styling */
.blog-empty-state {
  text-align: center;
  padding: 60px 20px;
  max-width: 500px;
  margin: 0 auto;
}

.blog-empty-state i {
  font-size: 50px;
  color: #a0aec0;
  margin-bottom: 20px;
}

.blog-empty-state h3 {
  color: #03152d;
  font-size: 20px;
  margin-bottom: 10px;
}

.blog-empty-state p {
  color: #718096;
  font-size: 14px;
  line-height: 1.6;
}

/* Newsletter CTA Section */
.blog-cta-section {
  background-color: #03152d;
  padding: 60px 0;
  border-top: 4px solid #00c9a7;
}

.blog-cta-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
  gap: 40px;
}

.blog-cta-info h2 {
  color: #ffffff;
  font-size: 28px;
  margin-bottom: 15px;
}

.blog-cta-info p {
  color: #cbd5e0;
  font-size: 15px;
  line-height: 1.6;
}

.blog-newsletter-form {
  display: flex;
  gap: 10px;
}

.blog-newsletter-form input {
  flex: 1;
  padding: 15px;
  border: none;
  border-radius: 4px;
  font-size: 14px;
  outline: none;
}

.newsletter-submit-btn {
  background-color: #00c9a7;
  color: #ffffff;
  border: none;
  padding: 15px 25px;
  border-radius: 4px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: background-color 0.3s ease;
}

.newsletter-submit-btn:hover {
  background-color: #00b092;
}

/* Responsive Rules for Blog components */
@media screen and (max-width: 991px) {
  .blog-cta-grid {
    grid-template-columns: 1fr;
    gap: 30px;
    text-align: center;
  }
  .blog-newsletter-form {
    max-width: 500px;
    margin: 0 auto;
    width: 100%;
  }
}

@media screen and (max-width: 768px) {
  .blog-hero-title {
    font-size: 32px;
  }
  .blog-search-box {
    width: 100%;
  }
  .blog-utilities-panel {
    flex-direction: column;
    align-items: stretch;
  }
  .blog-categories-tabs {
    justify-content: center;
  }
}
