/* Medicate - Final Responsive Stylesheet */
/* --- Icon Font / SVG Placeholders --- */

.logo img {
    height: 50px; /* Adjust height as needed */
    width: auto;
}
[class^="icon-"],
[class*=" icon-"] {
  font-style: normal;
}
.icon-phone::before {
  content: "📞";
  margin-right: 0.5em;
}
.icon-email::before {
  content: "✉️";
  margin-right: 0.5em;
}
.icon-facebook::before {
  content: "f";
  font-weight: bold;
}
.icon-twitter::before {
  content: "t";
  font-weight: bold;
}
.icon-instagram::before {
  content: "i";
  font-weight: bold;
}
.icon-search::before {
  content: "🔍";
  font-size: 1.2em;
}

/* --- Google Font & Base Setup --- */
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap");

:root {
    --primary-blue: #009FE3; /* CHANGED - The new vibrant blue */
    --accent-red: #D92525;   /* NEW - The accent red from the cross */
    --dark-tone: #2C3E50;    /* CHANGED - A new charcoal blue for text */
    --light-green: #C8E6C9;  /* NEW - For subtle highlights */

    /* Re-mapping old variables */
    --dark-blue: #007bb5; /* A slightly darker shade of the primary blue for contrast */
    --light-blue: var(--primary-blue);

    --text-dark: var(--dark-tone);
    --text-light: #6b7280;
    --bg-light: #f8f9fa;
    --white: #ffffff;
    --border-color: #e5e7eb;
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  font-family: "Poppins", sans-serif;
  color: var(--text-dark);
  background-color: var(--white);
  line-height: 1.6;
}
a {
  text-decoration: none;
  color: inherit;
}
ul {
  list-style: none;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
h1,
h2,
h3,
h4 {
  line-height: 1.3;
  font-weight: 700;
}

/* --- Utility Classes --- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}
.section-padding {
  padding: clamp(3rem, 8vw, 5rem) 0;
}
.text-center {
  text-align: center;
}
.section-tag {
  display: inline-block;
  background-color: #dbeafe;
  color: var(--primary-blue);
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 1rem;
}
.section-title {
  font-size: clamp(2rem, 5vw, 2.5rem);
  margin-bottom: 3rem;
}
.btn {
  display: inline-block;
  padding: 0.8rem 1.8rem;
  border-radius: 6px;
  font-weight: 600;
  text-align: center;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}
.btn-primary {
  background-color: var(--primary-blue);
  color: var(--white);
}
.btn-primary:hover {
  background-color: #1d4ed8;
}
.grid {
  display: grid;
  gap: 1.5rem;
}
.no-scroll {
  overflow: hidden;
}

/* --- Animations --- */
.fade-in-element {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.fade-in-element.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Header & Top Bar --- */
.header {
  background: var(--white);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  position: sticky;
  top: 0;
  z-index: 999;
}
.top-bar {
  background-color: var(--dark-blue);
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.875rem;
  padding: 0.5rem 1rem;
}
.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.top-bar-info {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}
.top-bar-info a {
  display: flex;
  align-items: center;
  gap: 0.5em;
}
.top-bar-info a:hover {
  color: var(--white);
}
.top-bar-social {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.top-bar-social a:hover {
  color: var(--white);
  transform: scale(1.1);
}
.top-bar svg {
  width: 16px;
  height: 16px;
}

/* --- Hero Slider --- */
.hero-slider {
  height: 90vh;
  max-height: 800px;
}
@media only screen and (min-width: 992px) and (max-width: 1199px) {
    .hero-slider {
      height: 700px;
    }
  }
  @media only screen and (min-width: 768px) and (max-width: 991px) {
    .hero-slider {
      height: 650px;
    }
  }
  @media only screen and (min-width: 576px) and (max-width: 767px) {
    .hero-slider {
      height: 600px;
    }
  }
  @media (max-width: 575px) {
    .hero-slider {
      height: 500px;
    }
  }
  .mobile_menu {
    position: absolute;
    right: 0px;
    width: 100%;
    z-index: 99;
  }
  .mobile_menu .slicknav_menu {
    background: transparent;
    margin-top: 0px !important;
  }
  .mobile_menu .slicknav_menu .slicknav_btn {
    top: -36px;
  }
  .mobile_menu .slicknav_menu .slicknav_btn .slicknav_icon-bar {
    background-color: #0f61ef !important;
  }
  .mobile_menu .slicknav_menu .slicknav_nav {
    margin-top: 15px !important;
  }
  .mobile_menu .slicknav_menu .slicknav_nav a:hover {
    background: transparent;
    color: #0f61ef;
  }
  .mobile_menu .slicknav_menu .slicknav_nav a {
    font-size: 15px;
    padding: 7px 10px;
  }
  .mobile_menu .slicknav_menu .slicknav_nav .slicknav_item a {
    padding: 0 !important;
  }
  .dropdown .dropdown-menu {
    -webkit-transition: all 0.3s;
    -moz-transition: all 0.3s;
    -ms-transition: all 0.3s;
    -o-transition: all 0.3s;
    transition: all 0.3s;
  }
.main-slider,
.main-slider .swiper-slide {
  position: relative;
  width: 100%;
  height: 100%;
}
.slide-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}
.slide-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(0, 0, 0, 0.6) 0%,
    rgba(0, 0, 0, 0.1) 100%
  );
}
.slide-content {
  position: relative;
  z-index: 2;
  max-width: 650px;
}
.slide-content .section-tag {
  background-color: rgba(37, 99, 235, 0.8);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.3);
}
.slide-content h1 {
  font-size: clamp(2.5rem, 7vw, 3.8rem);
  color: var(--white);
}
.slide-content p {
  font-size: 1.1rem;
  margin: 1rem 0 2rem;
  color: rgba(255, 255, 255, 0.9);
}
.hero-arrow {
  width: 50px;
  height: 50px;
  background-color: rgba(255, 255, 255, 0.9);
  border-radius: 6px;
  color: var(--text-dark) !important;
}

.hero-arrow::after {
  font-size: 1.2rem !important;
}
.slide-content .animate-up {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.slide-content .btn-primary:hover {
    background-color: var(--dark-blue);
}
.swiper-slide-active .slide-content .animate-up {
  opacity: 1;
  transform: translateY(0);
}

.swiper-slide-active .slide-content h1 {
  transition-delay: 0.2s;
}
.swiper-slide-active .slide-content p {
  transition-delay: 0.4s;
}
.swiper-slide-active .slide-content .btn {
  transition-delay: 0.6s;
}

.floating-card {
  position: absolute;
  background: var(--white);
  padding: 1rem;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  gap: 1rem;
  width: 240px;
}
.floating-card .icon {
  background-color: var(--primary-blue);
  color: var(--white);
  padding: 0.8rem;
  border-radius: 8px;
}
.floating-card span {
  font-weight: 600;
}
.card-1 {
  top: 15%;
  left: -10%;
}
.card-2 {
  bottom: 20%;
  left: -15%;
}
.card-3 {
  bottom: 10%;
  right: -10%;
}

/* --- Use Green Gradient on a section for visual interest --- */
.about-section {
    background-image: linear-gradient(to bottom, var(--white) 0%, #f5fcf5 100%);
}

/* --- Info Boxes Section --- */
.info-boxes {
  margin-top: -5rem; /* Increased overlap */
  position: relative;
  z-index: 10;
}

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

.info-box {
  padding: 2.5rem;
  color: var(--white);
  position: relative; /* For positioning the background icon */
  overflow: hidden; /* Hide the overflowing part of the bg icon */
  display: flex;
  flex-direction: column;
  border-radius: 8px;
}

/* Decorative Background Icon */
.info-box-bg-icon {
  position: absolute;
  top: -1rem;
  right: -1.5rem;
  z-index: 1;
  opacity: 0.15;
  transition: transform 0.4s ease-in-out;
}

.info-box:hover .info-box-bg-icon {
  transform: scale(1.2) rotate(5deg);
}

.info-box-bg-icon svg {
  width: 100px;
  height: 100px;
}

/* Main Content Icon */
.info-box-icon {
  z-index: 2;
  margin-bottom: 1.5rem;
}
.info-box-icon svg {
  width: 50px;
  height: 50px;
}

.info-box h3 {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 1rem;
  z-index: 2;
}

.info-box p {
  opacity: 0.85;
  margin-bottom: 1.5rem;
  flex-grow: 1; /* Pushes content below it to the bottom */
  z-index: 2;
}

/* Specific Box Colors and Radius */
.info-box-1 {
  background-color: var(--light-blue);
  border-top-left-radius: 8px;
  border-bottom-left-radius: 8px;
}

.info-box-2 {
  background-color: var(--dark-blue);
}

.info-box-3 {
  background-color: var(--light-blue);
  border-top-right-radius: 8px;
  border-bottom-right-radius: 8px;
}

/* Emergency Phone Number Style */
.info-box-phone {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.5rem;
  font-weight: 700;
  z-index: 2;
}

.info-box-phone svg {
  width: 32px;
  height: 32px;
  background-color: var(--white);
  color: var(--primary-blue);
  border-radius: 50%;
  padding: 6px;
}

/* Timetable Button Style */
.btn-timetable {
  display: inline-block;
  background-color: var(--primary-blue);
  color: var(--white);
  padding: 0.7rem 1.5rem;
  border-radius: 4px;
  font-weight: 600;
  align-self: flex-start; /* Align button to the left */
  transition: background-color 0.3s ease;
  z-index: 2;
}

.btn-timetable:hover {
  background-color: #3b82f6; /* A slightly brighter blue */
}

/* Opening Hours List Style */
.opening-hours-list {
  list-style: none;
  width: 100%;
  z-index: 2;
}

.opening-hours-list li {
  display: flex;
  justify-content: space-between;
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  font-weight: 500;
}

.opening-hours-list li:last-child {
  border-bottom: none;
}

/* --- About Section --- */
.about-section .grid {
  grid-template-columns: 1fr 1fr;
  align-items: center;
}
.about-image-wrapper {
  position: relative;
}
.about-image-wrapper img {
  border-radius: 12px;
}
.stats-overlay {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 35%;
  background-color: var(--dark-blue);
  color: var(--white);
  border-top-right-radius: 12px;
  border-bottom-right-radius: 12px;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  padding: 2rem 1rem;
  text-align: center;
}
.stat-item .number {
  font-size: 3rem;
  font-weight: 700;
}
.stat-item .label {
  font-size: 0.9rem;
  opacity: 0.8;
}

/* --- Services Section --- */
.services-section .grid {
  grid-template-columns: repeat(4, 1fr);
}
.service-card {
  background: var(--white);
  padding: 2rem;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  transition: all 0.3s ease;
}
.service-card:hover {
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
  transform: translateY(-5px);
}
.service-card .icon {
  color: var(--primary-blue);
  margin-bottom: 1rem;
}
.service-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}
.service-card p {
  color: var(--text-light);
  margin-bottom: 1rem;
}
.service-card a {
  font-weight: 600;
  color: var(--primary-blue);
}

/* --- Appointment Section --- */
.appointment-section .grid {
  grid-template-columns: 1fr 1fr;
  gap: 0;
  align-items: center;
}
.appointment-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.appointment-form-wrapper {
  background-color: var(--primary-blue);
  padding: 4rem;
  color: var(--white);
}
.appointment-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 2rem;
}

.appointment-form input {
  width: 100%;
  padding: 1rem;
  border: none;
  border-radius: 6px;
  background-color: rgba(255, 255, 255, 0.3);
  color: var(--white);
}
.appointment-form input::placeholder {
  color: rgba(255, 255, 255, 0.7);
}
.appointment-form .btn {
  grid-column: 1 / -1;
  justify-self: start;
}
.appointment-form .btn:hover {
    background-color: var(--bg-light);
}


/* ======================= FACILITIES SECTION ======================= */
.facilities-section .grid {
  grid-template-columns: repeat(3, 1fr);
}

.facility-card {
  background: var(--white);
  border-radius: 8px;
  box-shadow: 0 4px 25px rgba(0, 0, 0, 0.07);
  overflow: hidden;
  text-align: left;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.facility-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.facility-card img {
  width: 100%;
  height: 250px;
  object-fit: cover;
}

.facility-content {
  padding: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.facility-category {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--primary-blue);
  display: block;
  margin-bottom: 0.25rem;
}

.facility-content h3 {
  font-size: 1.25rem;
  color: var(--text-dark);
}

.facility-icon {
  border: 2px solid var(--border-color);
  border-radius: 8px;
  padding: 0.75rem;
  color: var(--primary-blue);
  transition: all 0.3s ease;
}

.facility-icon svg {
  width: 28px;
  height: 28px;
}

.facility-card:hover .facility-icon {
  background-color: var(--primary-blue);
  border-color: var(--primary-blue);
  color: var(--white);
}

.facilities-section .grid,
.services-section .grid {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
.about-section .grid {
  grid-template-columns: 1fr 1.1fr;
  align-items: center;
}
.info-boxes .grid {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

/* ======================= PROCESS SECTION ======================= */
.process-timeline-wrapper {
  position: relative;
  margin-top: 4rem;
}

/* The dotted connector line */
.process-timeline-wrapper::before {
  content: "";
  position: absolute;
  left: 10%;
  right: 10%;
  top: 60px; /* Vertically center with the image circles */
  height: 2px;
  background-image: linear-gradient(to right, #ccc 50%, transparent 50%);
  background-size: 15px 2px;
  z-index: 1;
}

.process-timeline {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.step-image-wrapper {
  position: relative;
  margin-bottom: 1.5rem;
  display: inline-block;
}

.step-number {
  position: absolute;
  top: -10px;
  left: -10px;
  width: 40px;
  height: 40px;
  background-color: var(--primary-blue);
  color: var(--white);
  border: 3px solid var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
  z-index: 3;
}

.step-image {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 5px solid var(--white);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.process-step h3 {
  font-size: 1.25rem;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
}

.process-step p {
  color: var(--text-light);
}

/* ======================= PORTFOLIO SECTION ======================= */
.portfolio-section {
  background-color: var(--primary-blue);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100' viewBox='0 0 100 100'%3E%3Cg fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.1'%3E%3Cpath opacity='.5' d='M96 95h4v1h-4v4h-1v-4h-9v4h-1v-4h-9v4h-1v-4h-9v4h-1v-4h-9v4h-1v-4h-9v4h-1v-4h-9v4h-1v-4h-9v4h-1v-4h-9v4h-1v-4H0v-1h15v-9H0v-1h15v-9H0v-1h15v-9H0v-1h15v-9H0v-1h15v-9H0v-1h15v-9H0v-1h15v-9H0v-1h15v-9H0v-1h15V0h1v15h9V0h1v15h9V0h1v15h9V0h1v15h9V0h1v15h9V0h1v15h9V0h1v15h9V0h1v15h4v1h-4v9h4v1h-4v9h4v1h-4v9h4v1h-4v9h4v1h-4v9h4v1h-4v9h4v1h-4v9h4v1h-4v9zm-1 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-9-10h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v--9h-9v9zm10 0h9v-9h-9v9zm9-10v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-9-10h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm9-10v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-9-10h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm9-10v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-9-10h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9z'/%3E%3Cpath d='M6 5V0h1v5h4v1H6v4H5V6H0V5h5z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.section-tag-light {
  display: inline-block;
  background-color: rgba(255, 255, 255, 0.2);
  color: var(--white);
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.section-title-light {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 3rem;
}

.portfolio-section .grid {
  grid-template-columns: repeat(4, 1fr);
}

.portfolio-item {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
}

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

.portfolio-item:hover img {
  transform: scale(1.1);
}

.portfolio-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 159, 227, 0.9) 0%, rgba(0, 159, 227, 0.3) 100%);

  opacity: 0;
  transition: opacity 0.4s ease;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

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

.plus-icon {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  width: 40px;
  height: 40px;
  background-color: var(--white);
  color: var(--primary-blue);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 300;
  transform: scale(0);
  transition: transform 0.3s ease 0.2s;
}

.portfolio-item:hover .plus-icon {
  transform: scale(1);
}

.portfolio-text {
  padding: 1.5rem;
  color: var(--white);
  text-align: left;
  transform: translateY(20px);
  transition: transform 0.3s ease;
}

.portfolio-item:hover .portfolio-text {
  transform: translateY(0);
}

.portfolio-text span {
  font-weight: 600;
  opacity: 0.8;
}

.portfolio-text h3 {
  font-size: 1.5rem;
  font-weight: 700;
}

/* ======================= RESPONSIVE DESIGN ======================= */
@media (max-width: 992px) {
  .about-section .grid {
    grid-template-columns: 1fr;
  }
  .about-image-wrapper {
    margin-top: 2rem;
  }
  .stats-overlay {
    position: static;
    width: 100%;
    border-radius: 12px;
    margin-top: -2rem;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    padding: 1rem;
  }
  .process-timeline-wrapper::before {
    display: none;
  }
  .process-timeline {
    grid-template-columns: 1fr 1fr;
  }
  .footer-main .grid {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
  }

  /* Hide desktop links and appointments button */
  .nav-links {
    display: none;
  }
  .nav-appointments-btn {
    background-color: var(--accent-red);
}
.nav-appointments-btn:hover {
    background-color: #b71c1c; /* A darker red for hover */
}

  /* Show and style the mobile menu icon */
  .menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 24px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1003;
  }
  .menu-toggle span {
    width: 30px;
    height: 3px;
    background: var(--text-dark);
    border-radius: 10px;
    transition: all 0.3s ease;
  }
  .menu-toggle.active span:nth-child(1) {
    transform: translateY(10px) rotate(45deg);
  }
  .menu-toggle.active span:nth-child(2) {
    opacity: 0;
  }
  .menu-toggle.active span:nth-child(3) {
    transform: translateY(-10px) rotate(-45deg);
  }

  /* When menu is open, this is the side panel style */
  .nav-links.open {
    display: block;
    position: fixed;
    top: 0;
    right: 0; /* Aligns to the right */
    width: 80%; /* Takes 80% of screen width */
    max-width: 320px; /* With a max width */
    height: 100%;
    background: var(--white);
    z-index: 1002;
    overflow-y: auto;
    padding: 1rem 0;
    transform: translateX(100%); /* Start off-screen */
    transition: transform 0.4s ease;
  }
  .nav-links.open {
    transform: translateX(0);
  }

  /* Show overlay when menu is open */
  .menu-overlay.open {
    display: block;
  }

  /* Style the list items for the mobile panel */
  .nav-links.open .nav-item {
    position: static;
    display: block;
    border-bottom: 1px solid var(--border-color);
  }
  .nav-links.open .nav-item > a {
    padding: 1rem 1.5rem;
    justify-content: space-between;
  }
  .nav-links.open .dropdown-menu {
    position: static;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    background: #f4f6f9;
    max-height: 0;
    overflow: hidden;
    padding: 0;
    transition: max-height 0.4s ease;
  }
  .nav-links.open .nav-item.open > .dropdown-menu {
    max-height: 500px;
  }
  .nav-links.open .dropdown-menu li a {
    padding-left: 2.5rem;
  }
}

@media (max-width: 768px) {
  .top-bar,
  .desktop-only {
    display: none !important;
  }
  .footer-newsletter .container {
    flex-direction: column;
    text-align: center;
  }
  .newsletter-form {
    width: 100%;
  }
  .footer-main .grid,
  .process-timeline {
    grid-template-columns: 1fr;
  }
  .top-bar-info span:last-child {
    display: none;
  }
}

/*nav*/
/* This is the slide-out animation. We need it outside the media query */
#nav-links {
  /* Default slide-out state for mobile panel */
  transform: translateX(100%);
  transition: transform 0.4s ease-in-out;
}

@media (min-width: 993px) {
  /* On desktop, reset mobile-specific styles */
  #nav-links {
    display: flex !important; /* Important to override mobile styles */
    position: static;
    transform: none;
    height: auto;
    width: auto;
    padding: 0;
    background: none;
    box-shadow: none;
    overflow-y: visible;
    transition: none;
  }
}

/* ======================= BLOG SLIDER (REVISED) ======================= */
.blog-slider {
  padding-bottom: 1rem;
}
.blog-slider .swiper-slide {
  height: auto;
}
.blog-card {
  background: var(--white);
  border: 1px solid var(--border-color); /* Light border */
  border-radius: 8px;
  overflow: hidden;
  text-align: left; /* Align text to the left */
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
}
.blog-card-image {
  position: relative;
}
.blog-card-date {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  background-color: var(--primary-blue);
  color: var(--white);
  padding: 0.35rem 0.75rem;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 500;
}
.blog-card-content {
  padding: 1.5rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}
.blog-card-meta {
  display: flex;
  gap: 1.5rem;
  color: var(--text-light);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}
.blog-card-meta span {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.blog-card h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  line-height: 1.4;
}
.blog-card h3 a:hover {
  color: var(--primary-blue);
}
.blog-card p {
  color: var(--text-light);
  margin-bottom: 1.5rem;
  flex-grow: 1;
}
.read-more-link {
  font-weight: 600;
  color: var(--primary-blue);
}
/* Icons for blog meta */
.icon-user::before {
  content: "👤";
}
.icon-comment::before {
  content: "💬";
}
.icon-calendar::before {
  content: "📅";
}

/* ======================= FOOTER (REVISED) ======================= */


.site-footer {
  background-color: var(--dark-tone);
  color: var(--white);
  /* Remove padding-top from here */
}

/* Newsletter Section */
.footer-newsletter {
  background-color: var(--primary-blue);
  padding: 2.5rem 0;
}
.footer-newsletter .container {
  display: flex;
  align-items: center;
  gap: 2rem;
}
.footer-newsletter button {
    color: var(--primary-blue);
}
.footer-social-icons a:hover {
    background-color: var(--primary-blue);
}
.newsletter-icon {
  flex-shrink: 0;
}
.newsletter-icon svg {
  width: 60px;
  height: 60px;
}
.newsletter-content h3 {
  font-size: 1.8rem;
  font-weight: 700;
}
.newsletter-form {
  display: flex;
  flex-grow: 1;
}
.newsletter-form input {
  flex-grow: 1;
  padding: 1rem;
  border: none;
  border-radius: 6px 0 0 6px;
  background-color: rgba(0, 0, 0, 0.2);
  color: var(--white);
}
.newsletter-form input::placeholder {
  color: rgba(255, 255, 255, 0.7);
}
.newsletter-form button {
  border-radius: 0 6px 6px 0;
  padding: 1rem 2rem;
  background-color: var(--white);
  color: var(--primary-blue);
  font-weight: 700;
}
.contact-info-list i {
    color: var(--primary-blue);
}
.recent-posts-list a:hover .post-info p {
    color: var(--primary-blue);
}

/* --- Back to Top Button --- */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 44px;
  height: 44px;
  background-color: var(--primary-blue);
  color: var(--white);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.3s ease;
}
.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.back-to-top svg {
  width: 24px;
  height: 24px;
}

/* Main Footer */
.footer-main {
  padding: 4rem 0;
}
.footer-main .grid {
  grid-template-columns: repeat(4, 1fr);
  align-items: start;
}
.footer-widget h4 {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
  font-weight: 600;
}
.footer-widget p {
  color: #d1d5db;
  line-height: 1.7;
}
.footer-social-icons {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.5rem;
}
.footer-social-icons a {
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--white);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s;
}
.footer-social-icons a:hover {
  background-color: var(--primary-blue);
}
.footer-links {
  columns: 2;
  gap: 1rem;
}
.footer-links li a {
  display: block;
  padding: 0.4rem 0;
  color: #d1d5db;
}
.footer-links li a:hover {
  color: var(--white);
  padding-left: 5px;
}
.recent-posts-list li {
  margin-bottom: 1.5rem;
}
.recent-posts-list li:last-child {
  margin-bottom: 0;
}
.recent-posts-list a {
  display: flex;
  gap: 1rem;
  align-items: center;
}
.recent-posts-list a:hover .post-info p {
  color: var(--primary-blue);
}
.recent-posts-list img {
  width: 70px;
  height: 70px;
  border-radius: 6px;
  object-fit: cover;
}
.post-info span {
  font-size: 0.8rem;
  color: #9ca3af;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.25rem;
}
.post-info p {
  color: var(--white);
  font-weight: 500;
  transition: color 0.3s;
}
.contact-info-list li {
  display: flex;
  align-items: start;
  gap: 1rem;
  color: #d1d5db;
  margin-bottom: 1rem;
}
.contact-info-list i {
  margin-top: 5px;
  color: var(--primary-blue);
}
.icon-phone::before {
  content: "📞";
}
.icon-email::before {
  content: "✉️";
}
.icon-location::before {
  content: "📍";
}

/* Copyright Bar */
.footer-copyright {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1.5rem 0;
  text-align: center;
  font-size: 0.9rem;
  color: #9ca3af;
}

/* Back to Top Button */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 44px;
  height: 44px;
  background-color: var(--primary-blue);
  color: var(--white);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.3s ease;
}
.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.back-to-top svg {
  width: 24px;
  height: 24px;
}

/* --- Responsive Design --- */
@media (max-width: 992px) {
  .grid {
    gap: 1.5rem;
  }
  .hero .grid,
  .about-section .grid {
    grid-template-columns: 1fr;
  }
  .hero-content {
    text-align: center;
  }
  .floating-card {
    display: none;
  }
  .info-boxes .grid {
    grid-template-columns: 1fr;
  }
  .info-box {
    border-radius: 8px !important;
    margin-bottom: 1rem;
  }
  .services-section .grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .blog-section .grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-main .grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-newsletter .container {
    flex-direction: column;
    text-align: center;
    gap: 2rem;
  }
  .newsletter-form {
    width: 100%;
  }


}
@media (max-width: 768px) {
  .section-title {
    font-size: 2rem;
  }

  .top-bar {
    display: none;
  }
  .appointment-section .grid {
    grid-template-columns: 1fr;
  }
  .appointment-form-wrapper {
    padding: 2rem;
  }
  .appointment-form {
    grid-template-columns: 1fr;
  }
  .stats-overlay {
    position: static;
    width: 100%;
    border-radius: 12px;
    margin-top: 2rem;
  }
  .services-section .grid,
  .blog-section .grid,
  .footer-main .grid {
    grid-template-columns: 1fr;
  }
}

/* --- Animation Classes --- */
.fade-in-element {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in-element.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Services Section (IMPROVED) --- */
.services-section .grid {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.service-card {
  background: var(--white);
  padding: 2rem;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  text-align: center;
  transition: all 0.3s ease;
}

.service-card:hover {
  box-shadow: 0 10px 30px rgba(37, 99, 235, 0.1);
  transform: translateY(-10px);
}

.service-icon-wrapper {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem;
  border-radius: 50%;
  background-color: #e0f2fe; /* Light blue background */
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s ease;
}

.service-icon-wrapper svg {
  width: 40px;
  height: 40px;
  color: var(--primary-blue);
  transition: color 0.3s ease;
}

.service-card:hover .service-icon-wrapper {
  background-color: var(--primary-blue);
}

.service-card:hover .service-icon-wrapper svg {
  color: var(--white);
}

.service-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  color: var(--text-dark);
}

.service-card p {
  color: var(--text-light);
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}

.service-card a {
  font-weight: 600;
  color: var(--primary-blue);
  position: relative;
}

.service-card a::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -4px;
  left: 0;
  background-color: var(--primary-blue);
  transition: width 0.3s ease;
}

.service-card:hover a::after {
  width: 100%;
}

/* --- Partners Slider Section --- */
.partners-section {
  background-color: var(--white);
}

.partners-slider .swiper-slide {
  display: flex;
  justify-content: center;
  align-items: center;
}

.partners-slider img {
  max-height: 40px;
  width: auto;
  filter: grayscale(100%);
  opacity: 0.6;
  transition: all 0.3s ease;
}

.partners-slider img:hover {
  filter: grayscale(0%);
  opacity: 1;
}

/* --- Blog Slider Section --- */
.swiper-container-wrapper {
  position: relative;
  padding: 0 2.5rem; /* Space for arrows */
}

.blog-slider {
  padding-bottom: 3rem; /* Space for pagination */
}

.blog-slider .swiper-slide {
  height: auto;
}

.blog-slider .blog-card {
  width: 100%;
  height: 100%;
  margin: 0;
}

/* Custom Swiper Navigation Arrows */
.swiper-button-next,
.swiper-button-prev {
  width: 44px;
  height: 44px;
  background-color: var(--white);
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  color: var(--primary-blue) !important;
  transition: background-color 0.3s ease;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
  background-color: var(--primary-blue);
  color: var(--white) !important;
}

.swiper-button-next::after,
.swiper-button-prev::after {
  font-size: 1.2rem !important;
  font-weight: 700;
}

.swiper-button-prev {
  left: 0;
}
.swiper-button-next {
  right: 0;
}

/*Hero Slider*/

/* --- Hero Slider Section --- */
.hero-slider {
  width: 100%;
  height: 90vh; /* You can adjust this height */
  max-height: 800px;
  position: relative;
  color: var(--white);
}

.main-slider {
  width: 100%;
  height: 100%;
}

.main-slider .swiper-slide {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.slide-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  z-index: 1;
}

/* Add a dark overlay for better text readability */
.slide-bg::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    rgba(0, 0, 0, 0.5) 0%,
    rgba(0, 0, 0, 0.1) 100%
  );
}

.slide-content {
  position: relative;
  z-index: 2;
  max-width: 650px; /* Limit the width of the content */
}

/* Use a different style for the tag on the dark background */
.slide-content .section-tag {
  background-color: rgba(37, 99, 235, 0.8);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.slide-content h1 {
  font-size: 3.8rem;
  color: var(--white);
  line-height: 1.2;
  margin-bottom: 1rem;
  font-weight: 700;
}

.slide-content p {
  font-size: 1.1rem;
  margin-bottom: 2rem;
  color: rgba(255, 255, 255, 0.9);
}

/* Hero Slider Navigation Arrows */
.hero-arrow {
  width: 50px;
  height: 50px;
  background-color: rgba(255, 255, 255, 0.9);
  border-radius: 6px;
  color: var(--text-dark) !important;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.hero-arrow:hover {
  background-color: var(--white);
  transform: scale(1.1);
}

.hero-arrow::after {
  font-size: 1.2rem !important;
  font-weight: 700;
}

/* Slide Content Animations */
.slide-content .animate-up {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* When slide is active, trigger animations with delays */
.swiper-slide-active .slide-content .animate-up {
  opacity: 1;
  transform: translateY(0);
}

.swiper-slide-active .slide-content h1 {
  transition-delay: 0.2s;
}

.swiper-slide-active .slide-content p {
  transition-delay: 0.4s;
}

.swiper-slide-active .slide-content .btn {
  transition-delay: 0.6s;
}


 /* Home end */

 /* About Us */

 .page-banner {
    background-color: var(--primary-blue);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100' viewBox='0 0 100 100'%3E%3Cg fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.1'%3E%3Cpath opacity='.5' d='M96 95h4v1h-4v4h-1v-4h-9v4h-1v-4h-9v4h-1v-4h-9v4h-1v-4h-9v4h-1v-4h-9v4h-1v-4h-9v4h-1v-4h-9v4h-1v-4h-9v4h-1v-4H0v-1h15v-9H0v-1h15v-9H0v-1h15v-9H0v-1h15v-9H0v-1h15v-9H0v-1h15v-9H0v-1h15v-9H0v-1h15v-9H0v-1h15V0h1v15h9V0h1v15h9V0h1v15h9V0h1v15h9V0h1v15h9V0h1v15h9V0h1v15h9V0h1v15h4v1h-4v9h4v1h-4v9h4v1h-4v9h4v1h-4v9h4v1h-4v9h4v1h-4v9h4v1h-4v9h4v1h-4v9zm-1 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-9-10h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm9-10v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-9-10h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm9-10v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-9-10h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm9-10v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-9-10h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9z'/%3E%3Cpath d='M6 5V0h1v5h4v1H6v4H5V6H0V5h5z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    padding: 4rem 0;
    text-align: center;
    color: var(--white);
}

.page-banner h1 {
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

.page-banner p {
    font-size: 1rem;
    opacity: 0.8;
}

.page-banner a:hover {
    text-decoration: underline;
}

/* --- Team Section --- */
.team-section .grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.team-card {
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.team-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.team-card-image {
    position: relative;
}

.team-card-image img {
    width: 100%;
    height: auto;
}

.team-social-links {
    position: absolute;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.75rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.team-card:hover .team-social-links {
    opacity: 1;
}

.team-social-links a {
    width: 40px;
    height: 40px;
    background-color: var(--white);
    color: var(--primary-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.team-social-links a:hover {
    background-color: var(--primary-blue);
    color: var(--white);
}

.team-card-info {
    background-color: var(--white);
    padding: 1.5rem;
    border: 1px solid var(--border-color);
    border-top: none;
    border-radius: 0 0 8px 8px;
}

.team-card-info h3 {
    font-size: 1.25rem;
    color: var(--text-dark);
    margin-bottom: 0.25rem;
}

.team-card-info p {
    color: var(--text-light);
}

/* --- Feature List in About Section --- */
.feature-list {
    list-style: none;
    margin: 1.5rem 0;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}
.feature-list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 500;
}
.icon-checkmark::before {
    content: '✔';
    color: var(--primary-blue);
    font-weight: bold;
}

/* --- Stats Counter Section --- */
.stats-section {
    background-color: var(--primary-blue);
    color: var(--white);
}
.stats-section .grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}
.stat-card {
    text-align: center;
    padding: 2rem 1rem;
}
.stat-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}
/* Placeholder icons */
.icon-stat-experience::before { content: '🏆'; }
.icon-stat-doctor::before { content: '👨‍⚕️'; }
.icon-stat-patient::before { content: '😊'; }
.icon-stat-award::before { content: '🏅'; }

.stat-number {
    font-size: 3.5rem;
    font-weight: 700;
}
.stat-label {
    font-size: 1rem;
    opacity: 0.8;
}

/* --- Testimonials Section --- */
.testimonials-section {
    background-color: var(--white);
}
.testimonials-slider {
    padding-bottom: 3rem; /* Space for pagination */
}
.testimonial-card {
    padding: 2rem;
    background-color: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    height: 100%;
}
.testimonial-quote {
    font-size: 1.1rem;
    font-style: italic;
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 2rem;
    position: relative;
    padding-left: 3rem;
}
.testimonial-quote::before {
    content: '“';
    font-size: 5rem;
    color: var(--primary-blue);
    opacity: 0.2;
    position: absolute;
    left: 0;
    top: -1.5rem;
    line-height: 1;
}
.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}
.testimonial-author img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
}
.testimonial-author h4 {
    font-size: 1.1rem;
    color: var(--text-dark);
}
.testimonial-author span {
    color: var(--text-light);
    font-size: 0.9rem;
}
.testimonials-pagination.swiper-pagination-bullets .swiper-pagination-bullet {
    background-color: var(--primary-blue);
}

/* =================================================================== */
/*          MISSION & VISION SECTION STYLES (for About Page)           */
/* =================================================================== */

.mission-vision-section {
  background-color: var(--white);
}

.mission-vision-section .grid {
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.mission-card {
  padding: 2.5rem;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.mission-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 30px rgba(37, 99, 235, 0.1);
}

.mission-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem;
  border-radius: 50%;
  background-color: #e0f2fe; /* Light blue background */
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  color: var(--primary-blue);
}

/* Placeholder Icons */
.icon-mission::before { content: '🎯'; }
.icon-vision::before { content: '👁️'; }

.mission-card h3 {
  font-size: 1.5rem;
  color: var(--text-dark);
  margin-bottom: 1rem;
}

.mission-card p {
  color: var(--text-light);
  line-height: 1.7;
}

/* Responsive adjustment for mission/vision cards */
@media (max-width: 768px) {
  .mission-vision-section .grid {
      grid-template-columns: 1fr;
  }
}

/* =================================================================== */
/*                       SERVICES PAGE STYLES                          */
/* =================================================================== */

/* --- Services Page Grid --- */
.services-page-section .grid {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.service-card-full {
  background: var(--white);
  padding: 2.5rem;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  text-align: center;
  transition: all 0.3s ease;
}

.service-card-full:hover {
  box-shadow: 0 10px 30px rgba(37, 99, 235, 0.1);
  transform: translateY(-10px);
}

.service-card-full .service-icon-wrapper {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem;
  border-radius: 50%;
  background-color: #e0f2fe;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  color: var(--primary-blue);
  transition: background-color 0.3s ease, color 0.3s ease;
}

.service-card-full:hover .service-icon-wrapper {
  background-color: var(--accent-blue);
  color: var(--white);
}

.service-card-full h3 {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
  color: var(--text-dark);
}

.service-card-full p {
  color: var(--text-light);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

/* Placeholder icons for services */
.icon-cardiology::before { content: '❤️'; }
.icon-angioplasty::before { content: '🩹'; }
.icon-dental::before { content: '🦷'; }
.icon-neurology::before { content: '🧠'; }
.icon-orthopedics::before { content: '🦴'; }
.icon-pediatrics::before { content: '👶'; }

/* --- How We Can Help Section --- */
.how-we-help-section .grid {
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 3rem;
}

.how-we-help-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
}

.how-we-help-content .section-title {
  text-align: left;
}

.how-we-help-content p {
  margin-bottom: 1.5rem;
  color: var(--text-light);
  line-height: 1.8;
}

@media (max-width: 992px) {
  .how-we-help-section .grid {
      grid-template-columns: 1fr;
  }
}

/* --- Appointment Form Section (Global Styles) --- */
.appointment-section .grid-no-gap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  align-items: center;
}

.appointment-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.appointment-form-wrapper {
  background-color: var(--light-blue);
  padding: clamp(2rem, 8vw, 5rem);
  color: var(--white);
}

.section-tag-light {
  display: inline-block;
  background-color: rgba(255,255,255,0.2);
  color: var(--white);
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.section-title-light {
  font-size: clamp(2rem, 5vw, 2.5rem);
  color: var(--white);
  margin-bottom: 2rem;
}

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

.appointment-form input {
  width: 100%;
  padding: 1rem;
  border: none;
  border-radius: 6px;
  background-color: rgba(255,255,255,0.3);
  color: var(--white);
}

.appointment-form input::placeholder {
  color: rgba(255,255,255,0.7);
}

.appointment-form .btn {
  grid-column: 1 / -1;
  justify-self: start;
  background-color: var(--white);
  color: var(--primary-blue);
}

@media (max-width: 768px) {
  .appointment-section .grid-no-gap,
  .appointment-form {
      grid-template-columns: 1fr;
  }
}

/* =================================================================== */
/*                       GALLERY PAGE STYLES                           */
/* =================================================================== */

/* --- Gallery Filters --- */
.gallery-filters {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.filter-btn {
  background: none;
  border: 1px solid var(--border-color);
  padding: 0.75rem 1.5rem;
  border-radius: 9999px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.filter-btn:hover {
  background-color: var(--primary-blue);
  color: var(--white);
  border-color: var(--primary-blue);
}

.filter-btn.active {
  background-color: var(--primary-blue);
  color: var(--white);
  border-color: var(--primary-blue);
}

/* --- Gallery Grid --- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.gallery-item {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

.gallery-item.hidden {
  display: none;
}

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

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

/* --- Gallery Overlay --- */
.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  text-align: center;
  padding: 1.5rem;
  color: var(--white);
  opacity: 0;
  transition: opacity 0.4s ease;
}

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

.gallery-zoom-icon {
  width: 50px;
  height: 50px;
  border: 2px solid var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  font-weight: 300;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.5);
  opacity: 0;
  transition: all 0.4s ease;
}

.gallery-item:hover .gallery-zoom-icon {
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
}

.gallery-overlay h4 {
  font-size: 1.2rem;
  transform: translateY(20px);
  transition: transform 0.4s ease 0.1s;
}

.gallery-item:hover .gallery-overlay h4 {
  transform: translateY(0);
}

/* --- Lightbox Styles --- */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

.lightbox.active {
  opacity: 1;
  visibility: visible;
}

.lightbox-content {
  max-width: 90%;
  max-height: 90%;
  transform: scale(0.8);
  transition: transform 0.4s ease;
}

.lightbox.active .lightbox-content {
  transform: scale(1);
}

.lightbox-close {
  position: absolute;
  top: 2rem;
  right: 2rem;
  background: none;
  border: none;
  color: var(--white);
  font-size: 3rem;
  font-weight: 300;
  cursor: pointer;
  line-height: 1;
}
/* --- Lightbox Navigation Buttons --- */
.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.4);
  border: none;
  color: var(--white);
  font-size: 2rem;
  cursor: pointer;
  width: 50px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s ease;
  user-select: none; /* Prevents text selection on rapid clicks */
}

.lightbox-nav:hover {
  background: rgba(0, 0, 0, 0.7);
}

.lightbox-prev {
  left: 2rem;
  border-radius: 0 4px 4px 0;
}

.lightbox-next {
  right: 2rem;
  border-radius: 4px 0 0 4px;
}

/* =================================================================== */
/*                       BLOG & BLOG DETAILS STYLES                    */
/* =================================================================== */

/* --- Main Layout with Sidebar --- */
.grid-sidebar {
  display: grid;
  grid-template-columns: 1fr 300px; /* Main content and sidebar */
  gap: 2.5rem;
}
.main-content { min-width: 0; }
.sidebar { min-width: 0; }

@media (max-width: 992px) {
  .grid-sidebar { grid-template-columns: 1fr; }
  .sidebar { margin-top: 3rem; }
}

/* --- Blog Grid --- */
.blog-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}
@media (max-width: 768px) {
  .blog-grid { grid-template-columns: 1fr; }
}
.load-more-container {
    text-align: center;
    margin-top: 3rem;
}
.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff; /* The color of the spinning part */
    animation: spin 1s ease-in-out infinite;
    -webkit-animation: spin 1s ease-in-out infinite;
    margin-right: 0.5rem;
    vertical-align: middle;
}

@keyframes spin {
    to { -webkit-transform: rotate(360deg); }
}
@-webkit-keyframes spin {
    to { -webkit-transform: rotate(360deg); }
}

/* --- Blog Card Styles (reused from homepage) --- */
/* You might already have these, but ensure they are up to date */
.blog-card { background: var(--white); border: 1px solid var(--border-color); border-radius: 8px; overflow: hidden; text-align: left; height: 100%; display: flex; flex-direction: column; }
.blog-card-image a { display: block; }
.blog-card-image img { width: 100%; height: auto; transition: transform 0.3s ease; }
.blog-card:hover .blog-card-image img { transform: scale(1.05); }
.blog-card-content { padding: 1.5rem; flex-grow: 1; display: flex; flex-direction: column; }
.blog-card-meta { display: flex; gap: 1.5rem; color: var(--text-light); font-size: 0.8rem; margin-bottom: 1rem; }
.blog-card h3 { font-size: 1.25rem; margin-bottom: 0.75rem; }
.blog-card h3 a:hover { color: var(--primary-blue); }
.blog-card p { color: var(--text-light); margin-bottom: 1.5rem; flex-grow: 1; }
.read-more-link { font-weight: 600; color: var(--primary-blue); }

/* --- Pagination --- */
.pagination { display: flex; justify-content: center; align-items: center; gap: 0.5rem; margin-top: 3rem; }
.page-number { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border: 1px solid var(--border-color); border-radius: 4px; font-weight: 600; }
.page-number:hover { background-color: var(--primary-blue); color: var(--white); border-color: var(--primary-blue); }
.page-number.active { background-color: var(--primary-blue); color: var(--white); border-color: var(--primary-blue); }
.page-number.disabled { opacity: 0.5; cursor: not-allowed; }

/* --- Sidebar Widgets --- */
.widget { margin-bottom: 2.5rem; }
.widget-title { font-size: 1.25rem; padding-bottom: 0.75rem; margin-bottom: 1.5rem; border-bottom: 2px solid var(--primary-blue); }
.search-form { display: flex; }
.search-form input { flex-grow: 1; border: 1px solid var(--border-color); padding: 0.75rem; border-radius: 4px 0 0 4px; }
.search-form button { background: var(--primary-blue); color: var(--white); border: none; padding: 0 1rem; border-radius: 0 4px 4px 0; }
.widget-list { list-style: none; padding: 0; }
.widget-list li a { display: flex; justify-content: space-between; padding: 0.75rem 0; border-bottom: 1px dashed var(--border-color); color: var(--text-light); }
.widget-list li a:hover { color: var(--primary-blue); }
.widget-list li a span { font-weight: 600; }
.recent-posts-widget-list a { display: flex; gap: 1rem; margin-bottom: 1rem; }
.recent-posts-widget-list img { width: 70px; height: 70px; object-fit: cover; border-radius: 4px; }
.recent-posts-widget-list .post-date { font-size: 0.8rem; color: var(--text-light); }
.recent-posts-widget-list p { font-weight: 600; color: var(--text-dark); line-height: 1.3; }
.recent-posts-widget-list a:hover p { color: var(--primary-blue); }

/* --- Single Blog Post --- */
.blog-post .post-featured-image { width: 100%; border-radius: 8px; margin-bottom: 1.5rem; }
.post-meta { display: flex; flex-wrap: wrap; gap: 1.5rem; color: var(--text-light); font-size: 0.9rem; margin-bottom: 1rem; }
.post-title { font-size: 2.5rem; margin-bottom: 1.5rem; }
.post-content { line-height: 1.8; }
.post-content p, .post-content ul, .post-content h3 { margin-bottom: 1.5rem; }
.post-content h3 { font-size: 1.5rem; }
.post-content ul { list-style-position: inside; }
.post-content blockquote { border-left: 4px solid var(--primary-blue); padding-left: 1.5rem; margin: 2rem 0; font-style: italic; font-size: 1.1rem; }
.post-author-box { display: flex; gap: 1.5rem; background: var(--bg-light); padding: 2rem; border-radius: 8px; margin-top: 3rem; }
.post-author-box img { width: 80px; height: 80px; border-radius: 50%; }
.author-info h4 { font-size: 1.2rem; }

.post-downloads {
  background-color: var(--bg-light);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 1.5rem 2rem;
  margin: 2rem 0;
}

.post-downloads h4 {
  font-size: 1.25rem;
  color: var(--text-dark);
  margin-top: 0;
  margin-bottom: 1.5rem;
}

.download-link {
  display: flex;
  align-items: center;
  gap: 1rem;
  background-color: var(--white);
  border: 1px solid var(--border-color);
  padding: 1rem;
  border-radius: 6px;
  margin-bottom: 1rem;
  transition: all 0.3s ease;
}

.download-link:last-child {
  margin-bottom: 0;
}

.download-link:hover {
  border-color: var(--primary-blue);
  background-color: #f0f9ff; /* Very light blue */
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.download-icon {
  flex-shrink: 0;
  width: 50px;
  height: 50px;
  background-color: #e0f2fe;
  color: var(--primary-blue);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.download-icon svg {
  width: 28px;
  height: 28px;
}

.download-info {
  display: flex;
  flex-direction: column;
}

.file-name {
  font-weight: 600;
  color: var(--text-dark);
}

.download-link:hover .file-name {
  color: var(--primary-blue);
}

.file-size {
  font-size: 0.85rem;
  color: var(--text-light);
}

/* =================================================================== */
/*                       CONTACT US PAGE STYLES                        */
/* =================================================================== */

.contact-wrapper.grid {
  grid-template-columns: 2fr 1fr; /* Form takes 2/3, info takes 1/3 */
  gap: 3rem;
  align-items: start;
}

@media (max-width: 992px) {
  .contact-wrapper.grid {
      grid-template-columns: 1fr;
  }
  .contact-info-container {
      margin-top: 3rem;
  }
}

/* --- Contact Form --- */
.contact-form-container .subtitle {
  color: var(--text-light);
  font-size: 1.1rem;
  margin-top: -2.5rem;
  margin-bottom: 2rem;
}

.contact-page-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.form-group.full-width {
  grid-column: 1 / -1;
}

.contact-page-form input,
.contact-page-form textarea {
  width: 100%;
  border: 1px solid var(--border-color);
  padding: 1rem;
  border-radius: 6px;
  font-family: inherit;
  font-size: 1rem;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.contact-page-form input:focus,
.contact-page-form textarea:focus {
  outline: none;
  border-color: var(--primary-blue);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
}

.contact-page-form button {
  font-size: 1rem;
  width: auto;
}

/* --- Contact Info --- */
.contact-info-container {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-info-card {
  background-color: var(--bg-light);
  padding: 2rem;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.contact-info-card .info-icon {
  width: 60px;
  height: 60px;
  background-color: #e0f2fe;
  color: var(--primary-blue);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

.contact-info-card h4 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.contact-info-card p {
  color: var(--text-light);
  line-height: 1.6;
}

/* --- Map Section --- */
.map-section {
  width: 100%;
  height: 450px;
}

.map-section iframe {
  width: 100%;
  height: 100%;
}
