/* Google Fonts Import */
@import url("https://fonts.googleapis.com/css2?family=Quicksand:wght@300;400;500;600;700&family=Roboto:wght@300;400;500;700&display=swap");

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Base Font Settings */
body {
  font-family: "Roboto", sans-serif;
  font-weight: 400;
  line-height: 1.6;
  color: #333;
  font-size: 16px;
}

/* Headings use Quicksand */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Quicksand", sans-serif;
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 1rem;
}

/* Ensure all text elements use Roboto by default */
p,
span,
div,
a,
li,
td,
th,
input,
textarea,
select,
button {
  font-family: "Roboto", sans-serif;
}

/* Special classes can override to use Quicksand */
.quicksand-font {
  font-family: "Quicksand", sans-serif;
}

:root {
  --primary-color: #0337af;
  --secondary-color: #f80203;
  --accent-color: #6de0fb;
}

body {
  font-family: "Roboto", sans-serif !important;
  overflow-x: hidden !important;
  font-size: 16px;
  line-height: 1.6;
  color: #333;
  font-weight: 400;
  letter-spacing: 0.01em;
}

html {
  overflow-x: hidden !important;
}

h1,
h2,
h3,
h4,
h5,
h6,
.label {
  font-family: "Quicksand", sans-serif !important;
  line-height: 1.2;
  margin-bottom: 1rem;
  font-weight: 600;
}

p {
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 1.25rem;
}

@media (max-width: 768px) {
  h1 {
    font-size: 2.5rem;
  }

  h2 {
    font-size: 2rem;
  }

  h3 {
    font-size: 1.5rem;
  }

  body {
    font-size: 15px;
  }
}

@media (max-width: 576px) {
  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.75rem;
  }

  h3 {
    font-size: 1.375rem;
  }

  body {
    font-size: 14px;
  }
}

a {
  text-decoration: none;
}

ul {
  list-style-type: none;
  padding-left: 0;
}

/* Stats number animation style */
.stats-number {
  transition: color 0.3s, transform 0.3s;
  will-change: contents;
}

/* --- Hero Slider Animations --- */
.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  z-index: 1;
  display: none;
  pointer-events: none;
  transition: opacity 0.9s cubic-bezier(0.4, 0, 0.2, 1);
  animation: none;
}

.hero-slide.active {
  opacity: 1;
  z-index: 2;
  display: block;
  pointer-events: auto;
  animation: heroFadeIn 1.1s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes heroFadeIn {
  0% {
    opacity: 0;
  }

  100% {
    opacity: 1;
  }
}

/* Animate hero text content */
.hero-slide {
  opacity: 0;
  transition: opacity 0.7s, transform 0.7s;
  color: white;
}

.hero-slide.active {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.2s;
}

/* Animate hero title */
.hero-title {
  animation: heroTitleSlideIn 1s cubic-bezier(0.4, 0, 0.2, 1);
  font-weight: 800 !important;
  font-size: 4rem;
  color: var(--accent-color);
  text-shadow: 2px 4px 8px rgba(0, 0, 0, 0.5);
  font-family: "Quicksand", sans-serif !important;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 2.8rem;
  }
}

@media (max-width: 576px) {
  .hero-title {
    font-size: 2.2rem;
  }
}

@keyframes heroTitleSlideIn {
  0% {
    opacity: 0;
    transform: translateY(30px) scale(0.98);
  }

  60% {
    opacity: 1;
    transform: translateY(-8px) scale(1.03);
  }

  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Animate hero buttons */
.hero-buttons {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s 0.3s, transform 0.7s 0.3s;
}

.hero-slide.active .hero-buttons {
  opacity: 1;
  transform: translateY(0);
}

/* Animate hero paragraph */
.hero-slide p {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s 0.15s, transform 0.7s 0.15s;
  text-shadow: 2px 4px 8px rgba(0, 0, 0, 0.5);
  font-size: 1.125rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.95);
  max-width: 600px;
  margin-bottom: 2rem;
}

.hero-slide.active p {
  opacity: 1;
  transform: translateY(0);
}

/* Animate hero h6 */
.hero-slide h6 {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.7s 0.1s, transform 0.7s 0.1s;
  text-shadow: 2px 4px 8px rgba(0, 0, 0, 0.5);
  color: white;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.hero-slide.active h6 {
  opacity: 1;
  transform: translateY(0);
}

/* Hero Slider Styles */
.hero-slider-section {
  position: relative;
  overflow: hidden;
}

.hero-slider {
  position: relative;
  width: 100%;
  height: 70vh;
  min-height: 500px;
  /* Increased from 350px to prevent overlap */
}

/* Ensure adequate height on smaller screens to prevent homepage services overlap */
@media (max-height: 768px) {
  .hero-slider {
    min-height: 600px;
  }
}

@media (max-height: 650px) {
  .hero-slider {
    min-height: 650px;
  }
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1;
  display: none;
}

.hero-slide.active {
  opacity: 1;
  z-index: 2;
  display: block;
}

.hero-slide-1 {
  background: linear-gradient(
      90deg,
      rgba(0, 0, 0, 0.7) 0%,
      rgba(0, 0, 0, 0.4) 50%,
      rgba(0, 0, 0, 0.2) 100%
    ),
    url("../images/atasemanso_old_building.jpg") center/cover no-repeat;
}

.hero-slide-2 {
  background: linear-gradient(
      90deg,
      rgba(0, 0, 0, 0.7) 0%,
      rgba(0, 0, 0, 0.4) 50%,
      rgba(0, 0, 0, 0.2) 100%
    ),
    url("../images/atasemanso_old_building_inside.jpg") center/cover no-repeat;
}

.hero-slide-3 {
  background: linear-gradient(
      90deg,
      rgba(0, 0, 0, 0.7) 0%,
      rgba(0, 0, 0, 0.4) 50%,
      rgba(0, 0, 0, 0.2) 100%
    ),
    url("../images/atasemanso-hospital.jpeg") center/cover no-repeat;
}

.hero-slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  background: rgba(255, 255, 255, 0.7);
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  cursor: pointer;
  transition: background 0.2s;
}

.hero-slider-arrow.left {
  left: 24px;
}

.hero-slider-arrow.right {
  right: 24px;
}

.hero-slider-arrow:hover {
  background: #0337af;
  color: #fff;
}

.hero-slider-dots {
  position: absolute;
  width: 100%;
  display: flex;
  justify-content: center;
  bottom: 32px;
  z-index: 1;
}

.hero-slider-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #fff;
  opacity: 0.6;
  margin: 0 6px;
  display: inline-block;
  cursor: pointer;
  border: 2px solid #0337af;
  transition: opacity 0.2s, background 0.2s;
}

.hero-slider-dot.active {
  opacity: 0.9;
  background: #fff;
}

@media (max-width: 768px) {
  .hero-slider,
  .hero-slide {
    height: 80vh;
    min-height: 220px;
  }

  .hero-slider-arrow.left {
    left: 8px;
  }

  .hero-slider-arrow.right {
    right: 8px;
  }

  .hero-slider-dots {
    bottom: 12px;
  }
}

.top-nav {
  background: linear-gradient(135deg, #6de0fb, #0337af);
  /* background: var(--primary-color); */
  color: white;
  font-weight: 600;
  padding: 5px 0;
}

.top-nav p {
  margin: 0;
  font-size: 14px;
}

.top-social-media-icons a {
  color: white;
}

.navbar-nav {
  border-left: 1px solid black;
  padding-left: 30px !important;
}

.navbar-brand {
  font-family: "Quicksand", sans-serif !important;
  font-weight: 600;
  font-size: 1.6rem;
  color: #202c45 !important;
}

.nav-link {
  font-weight: 500;
  color: #202c45 !important;
  margin-right: 15px;
  transition: color 0.3s ease;
}

.nav-link:hover {
  color: var(--secondary-color) !important;
}

/* Appointment Button */
.btn-appointment {
  background-color: var(--accent-color);
  color: #fff;
  border-radius: 30px;
  padding: 8px 20px;
  transition: background 0.3s ease;
}

.btn-appointment:hover {
  background-color: var(--primary-color);
  color: white;
}

/* Legendary Dropdown */
.dropdown-menu {
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px) scale(0.95);
  border-radius: 12px;
  padding: 10px 0;
  border: none;
  box-shadow: 0 20px 30px rgba(0, 0, 0, 0.1);
  background-color: #fff;
  min-width: 200px;
  transition: all 0.4s ease-in-out !important;
}

.dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0px) scale(1);
  display: block;
}

.dropdown-item {
  padding: 10px 20px;
  font-weight: 500;
  color: #202c45;
  position: relative;
  transition: all 0.3s ease;
}

.dropdown-item::after {
  content: "→";
  position: absolute;
  right: 20px;
  opacity: 0;
  transform: translateX(-10px);
  transition: all 0.3s ease;
  font-size: 14px;
}

.dropdown-item:hover {
  background-color: #f8f9fa;
  color: var(--secondary-color);
  padding-left: 25px;
}

.dropdown-item:hover::after {
  opacity: 1;
  transform: translateX(0px);
}

.logo {
  max-height: 50px;
}

.more-about-us-btn {
  padding: 10px 20px;
  border: none;
  border-radius: 30px;
  background: white;
  box-shadow: rgba(100, 100, 111, 0.2) 0px 7px 29px 0px;
  transition: all 0.4s ease-in-out;
  font-weight: 600;
}

.more-about-us-btn:hover {
  background: var(--accent-color);
  color: white;
  transform: translateY(-5px);
}

.appointment-icon-btn {
  padding: 10px;
  border: none;
  border-radius: 100%;
  width: 50px;
  height: 50px;
  background: white;
  color: var(--primary-color);
  box-shadow: rgba(100, 100, 111, 0.2) 0px 7px 29px 0px;
  transition: all 0.3s ease-in;
  color: black;
  font-weight: 600;
}

.appointment-icon-btn:hover {
  background: var(--accent-color);
  transform: translateY(-5px);
  color: white;
}

.homepage-services {
  margin-top: -80px;
  position: relative;
  z-index: 2;
}

.home-service-item {
  background: white;
  /* border-right: 1px solid black; */
  box-shadow: rgba(100, 100, 111, 0.2) 0px 7px 29px 0px;
  border-radius: 10px;
}

.home-service-item img {
  width: 50px;
  margin-bottom: 20px;
}

.home-service-item a {
  color: var(--secondary-color);
  font-weight: 600;
  margin-top: 50px;
}

.home-service-item a:hover {
  transform: translateX(5px);
}

.home-service-item h6 {
  font-size: 1.125rem;
  margin-bottom: 0;
  color: #1a1a1a;
  text-shadow: none;
  font-weight: 600;
  line-height: 1.4;
}

.home-service-note {
  background: var(--accent-color);
  height: 100%;
  border-radius: 15px;
  box-shadow: rgba(100, 100, 111, 0.2) 0px 7px 29px 0px;
  color: white;
}

.home-service-note p {
  margin-bottom: 15px;
  font-size: 1rem;
  line-height: 1.6;
}

.home-services-btn {
  border: none;
  background: white;
  padding: 10px 20px;
  border-radius: 20px;
  font-weight: 600;
  box-shadow: rgba(100, 100, 111, 0.2) 0px 7px 29px 0px;
  transition: all 0.3s ease-out;
}

.home-services-btn:hover {
  transform: translateY(-5px);
  background: var(--accent-color);
  color: white;
}

.stats-title-text {
  color: var(--primary-color);
  font-weight: 600;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
  line-height: 1.5;
}

.stats-title {
  font-size: 3rem;
  font-weight: 800;
  line-height: 1.2;
  color: #1a1a1a;
  margin-bottom: 1.5rem;
}

@media (max-width: 768px) {
  .stats-title {
    font-size: 2.25rem;
  }
}

@media (max-width: 576px) {
  .stats-title {
    font-size: 1.875rem;
  }
}

.nurse-img-gradient-wrap {
  position: relative;
  display: inline-block;
}

.nurse-img-gradient-wrap img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 20px;
  /* object-fit: cover; */
}

.nurse-img-gradient-wrap::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 40%;
  pointer-events: none;
  background: linear-gradient(
    to top,
    rgba(3, 55, 175, 0.6),
    rgba(255, 255, 255, 0)
  );
  border-radius: 20px;
}

.stats-number {
  font-size: 6rem;
  color: var(--primary-color);
  font-weight: 800;
  line-height: 1;
  margin-bottom: 0.5rem;
}

@media (max-width: 768px) {
  .stats-number {
    font-size: 4rem;
  }
}

@media (max-width: 576px) {
  .stats-number {
    font-size: 3rem;
  }
}

.stats-note-area img {
  width: 100px;
}

.find-a-doctor-btn {
  background: var(--primary-color);
  border: none;
  padding: 10px 20px;
  color: white;
  border-radius: 25px;
  transition: all 0.4s ease-in-out;
}

.find-a-doctor-btn:hover {
  transform: translateX(5px);
  color: var(--accent-color);
}

.homepage-bg-overlay {
  width: 100%;
  height: 10vh;
  background: #6de1fba5;
  margin-top: -110px;
}

.departments {
  background: linear-gradient(to bottom, #6de1fba5, white);
}

.departments-button {
  padding: 10px 20px;
  border-radius: 25px;
  color: white;
  background: var(--accent-color);
  border: none;
  transition: all 0.4s ease-in-out;
}

.departments-button:hover {
  color: var(--primary-color);
  transform: translateX(5px);
}

.core-values-button {
  border: none;
  background-color: transparent;
  color: var(--primary-color);
  transition: all 0.4s ease-out;
}

.core-values-button-arrow {
  background: var(--primary-color);
  color: white;
  width: 20px;
  height: 20px;
  border-radius: 100%;
  padding: 3px;
}

.core-values-button:hover {
  transform: translateX(5px);
}

.depts-item.active {
  box-shadow: rgba(100, 100, 111, 0.2) 0px 7px 29px 0px;
  border-radius: 20px;
  border-bottom: 2px solid var(--accent-color);
}

.depts-item img {
  border-radius: 20px;
}

.depts-item-content h5 {
  font-size: 1.5rem;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 1rem;
  line-height: 1.3;
}

.depts-item-content p {
  font-size: 1rem;
  line-height: 1.6;
  color: #555;
  margin-bottom: 1.5rem;
}

.read-more-button {
  background: none;
  border: 1px solid var(--primary-color);
  color: var(--primary-color);
  padding: 10px 20px;
  border-radius: 25px;
  vertical-align: middle;
  font-weight: 600;
  transition: all 0.4s ease-in-out;
}

.read-more-button:hover {
  background: var(--accent-color);
  color: white;
  transform: translateY(-5px);
  border: none;
}

.read-more-button.active {
  background: var(--accent-color);
  border: none;
  color: white;
  vertical-align: middle;
}

.commitment-section-image {
  position: relative;
  right: 0;
  width: 100%;
  z-index: 1;
}

.commitment-section-image img {
  border-radius: 20px;
}

.highlight-items {
  position: absolute;
  top: 30%;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 2;
}

.highlight-item img {
  width: 40px;
  margin-right: 10px;
}

.highlight-item {
  background: white;
  padding: 16px;
  border-radius: 20px;
  margin-left: -10px;
  box-shadow: rgba(100, 100, 111, 0.2) 0px 7px 29px 0px;
}

.highlight-item h6 {
  margin-bottom: 0;
}

.px-0 > * {
  padding-right: calc(var(--bs-gutter-x) * 0);
  padding-left: calc(var(--bs-gutter-x) * 0);
}

.commitment-section {
  background: linear-gradient(to top, #6de1fba5, white);
}

.testimonials-section {
  padding: 5rem 0;
  position: relative;
  overflow: hidden;
}

.testimonial-card {
  border: none;
  border-radius: var(--border-radius-lg);
  background: white;
  box-shadow: var(--box-shadow);
  transition: transform 0.3s ease;
  height: 100%;
  position: relative;
  overflow: hidden;
  margin: 0 15px;
  padding: 2rem;
}

.testimonial-card:hover {
  transform: translateY(-5px);
}

.testimonial-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 5px;
  height: 100%;
  background: linear-gradient(
    to bottom,
    var(--primary-color),
    var(--accent-color)
  );
}

.quote-icon {
  color: var(--accent-color);
  font-size: 2.5rem;
  opacity: 0.2;
  position: absolute;
  top: 1rem;
  right: 1.5rem;
}

.patient-img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid white;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.patient-name {
  color: var(--primary-color);
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.patient-treatment {
  color: var(--secondary-color);
  font-size: 0.85rem;
  font-weight: 600;
}

.testimonial-text {
  color: #333;
  line-height: 1.7;
  margin: 1.5rem 0;
  font-size: 1rem;
  font-style: italic;
}

.patient-name {
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 0.25rem;
}

.patient-treatment {
  color: #666;
  font-size: 0.875rem;
  font-weight: 500;
}

.rating {
  color: #ffc107;
  margin-bottom: 1rem;
  font-size: 1rem;
}

.section-title {
  color: #1a1a1a;
  font-weight: 700;
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  position: relative;
  display: inline-block;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: var(--secondary-color);
}

.section-subtitle {
  color: #555;
  max-width: 700px;
  margin: 0 auto 3rem;
  font-size: 1.125rem;
  line-height: 1.6;
}

@media (max-width: 768px) {
  .section-title {
    font-size: 2rem;
  }
}

@media (max-width: 576px) {
  .section-title {
    font-size: 1.75rem;
  }
}

.testimonial-title {
  font-size: 3.5rem;
  font-weight: 800;
  color: #1a1a1a;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}

@media (max-width: 768px) {
  .testimonial-title {
    font-size: 2.5rem;
  }
}

@media (max-width: 576px) {
  .testimonial-title {
    font-size: 2rem;
  }
}

/* Carousel Controls */
.testimonial-carousel .carousel-control-prev,
.testimonial-carousel .carousel-control-next {
  width: 40px;
  height: 40px;
  background-color: var(--primary-color);
  border-radius: 50%;
  top: 50%;
  transform: translateY(-50%);
  opacity: 1;
}

.testimonial-carousel .carousel-control-prev {
  left: -20px;
}

.testimonial-carousel .carousel-control-next {
  right: -20px;
}

.testimonial-carousel .carousel-indicators {
  bottom: -50px;
}

.testimonial-carousel .carousel-indicators button {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: var(--accent-color);
  opacity: 0.5;
  margin: 0 5px;
  border: none;
}

.testimonial-carousel .carousel-indicators button.active {
  opacity: 1;
  background-color: var(--primary-color);
}

@media (max-width: 768px) {
  .testimonial-carousel .carousel-control-prev {
    left: 0;
  }

  .testimonial-carousel .carousel-control-next {
    right: 0;
  }

  .testimonial-card {
    margin: 0 5px;
  }
}

/* Legendary Footer Styles */
.footer-legendary {
  position: relative;
  overflow: hidden;
}

.footer-background {
  background: url("../images/atasemanso-hospital.jpeg") center/cover no-repeat;
  position: relative;
  padding: 4rem 0 0;
}

.footer-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    rgba(3, 55, 175, 0.95) 0%,
    rgba(13, 71, 161, 0.98) 100%
  );
  z-index: 1;
}

.footer-legendary .container {
  position: relative;
  z-index: 2;
}

.footer-brand {
  margin-bottom: 2rem;
}

.footer-brand img {
  border-radius: 15px;
}

.footer-logo-legendary {
  height: 60px;
  margin-bottom: 1.5rem;
  filter: brightness(1.2);
}

.footer-description {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.1rem;
  line-height: 1.7;
  margin-bottom: 2rem;
}

.social-media-legendary {
  display: flex;
  gap: 1rem;
}

.social-icon-legendary {
  width: 45px;
  height: 45px;
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.2rem;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.social-icon-legendary:hover {
  background: rgba(109, 224, 251, 0.9);
  border-color: #6de0fb;
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(109, 224, 251, 0.3);
  color: white;
}

.footer-section {
  margin-bottom: 2rem;
}

.footer-title-legendary {
  color: #6de0fb;
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  position: relative;
  padding-bottom: 0.5rem;
}

.footer-title-legendary::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 3px;
  background: linear-gradient(90deg, #6de0fb, transparent);
  border-radius: 2px;
}

.footer-links-legendary {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links-legendary li {
  margin-bottom: 0.8rem;
}

.footer-links-legendary a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  font-size: 1rem;
  transition: all 0.3s ease;
  position: relative;
  padding-left: 0;
}

.footer-links-legendary a::before {
  content: "▶";
  position: absolute;
  left: -15px;
  opacity: 0;
  transition: all 0.3s ease;
  font-size: 0.8rem;
  color: #6de0fb;
}

.footer-links-legendary a:hover {
  color: #6de0fb;
  padding-left: 20px;
}

.footer-links-legendary a:hover::before {
  opacity: 1;
  left: 0;
}

.contact-info-legendary {
  margin-bottom: 2rem;
}

.contact-item-legendary {
  display: flex;
  align-items: center;
  margin-bottom: 1.2rem;
  gap: 1rem;
}

.contact-icon-legendary {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, #6de0fb, #0337af);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.1rem;
  flex-shrink: 0;
  box-shadow: 0 5px 15px rgba(109, 224, 251, 0.3);
}

.contact-text-legendary p {
  color: rgba(255, 255, 255, 0.9);
  margin: 0;
  font-size: 1rem;
  line-height: 1.5;
}

.newsletter-legendary {
  margin-top: 2rem;
}

.newsletter-title {
  color: #6de0fb;
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.newsletter-form {
  display: flex;
  gap: 0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.newsletter-input-legendary {
  flex: 1;
  padding: 12px 15px;
  border: none;
  background: rgba(255, 255, 255, 0.95);
  color: #333;
  font-size: 1rem;
  outline: none;
}

.newsletter-input-legendary::placeholder {
  color: #666;
}

.newsletter-btn-legendary {
  padding: 12px 20px;
  background: linear-gradient(135deg, #6de0fb, #0337af);
  border: none;
  color: white;
  font-size: 1.1rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.newsletter-btn-legendary:hover {
  background: linear-gradient(135deg, #0337af, #6de0fb);
  transform: scale(1.05);
}

.footer-bottom-legendary {
  margin-top: 3rem;
  padding: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(10px);
}

.copyright-text {
  color: rgba(255, 255, 255, 0.8);
  margin: 0;
  font-size: 1rem;
}

.footer-bottom-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.footer-bottom-link {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.3s ease;
}

.footer-bottom-link:hover {
  color: #6de0fb;
}

.link-separator {
  color: rgba(255, 255, 255, 0.5);
  margin: 0 0.5rem;
}

/* Animations */
@keyframes footerFadeIn {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.footer-brand,
.footer-section {
  animation: footerFadeIn 0.8s ease-out;
}

.footer-section:nth-child(2) {
  animation-delay: 0.2s;
}

.footer-section:nth-child(3) {
  animation-delay: 0.4s;
}

.footer-section:nth-child(4) {
  animation-delay: 0.6s;
}

/* Responsive Design */
@media (max-width: 768px) {
  .footer-background {
    padding: 3rem 0 0;
  }

  .footer-title-legendary {
    font-size: 1.2rem;
    text-align: center;
  }

  .footer-title-legendary::after {
    left: 50%;
    transform: translateX(-50%);
  }

  .footer-links-legendary {
    text-align: center;
  }

  .contact-item-legendary {
    justify-content: center;
    text-align: center;
  }

  .social-media-legendary {
    justify-content: center;
  }

  .footer-bottom-links {
    justify-content: center;
    margin-top: 1rem;
  }

  .newsletter-form {
    margin: 0 auto;
    max-width: 300px;
  }
}

/* Legendary About Header */
.about-header-legendary {
  position: relative;
  min-height: 80vh;
  overflow: hidden;
}

.about-header-background {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, #0d47a1 0%, #1565c0 50%, #1976d2 100%);
}

.about-header-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("../images/physician-measuring-heart-rate.jpg") center/cover
    no-repeat;
  opacity: 0.1;
  z-index: 1;
}

.about-header-particles {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="particles" width="50" height="50" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="2" fill="%23ffffff" opacity="0.1"><animate attributeName="opacity" values="0.1;0.3;0.1" dur="3s" repeatCount="indefinite"/></circle><circle cx="40" cy="30" r="1.5" fill="%2381d4fa" opacity="0.2"><animate attributeName="opacity" values="0.2;0.5;0.2" dur="4s" repeatCount="indefinite"/></circle><circle cx="25" cy="45" r="1" fill="%236de0fb" opacity="0.15"><animate attributeName="opacity" values="0.15;0.4;0.15" dur="5s" repeatCount="indefinite"/></circle></pattern></defs><rect width="100" height="100" fill="url(%23particles)"/></svg>');
  z-index: 2;
}

.about-header-legendary .container {
  position: relative;
  z-index: 10;
}

.about-header-content-modern {
  padding: 2rem 0;
  animation: slideInFromLeft 1.2s ease-out;
}

.breadcrumb-modern {
  display: flex;
  align-items: center;
  margin-bottom: 2rem;
  font-size: 0.95rem;
}

.breadcrumb-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255, 255, 255, 0.8);
}

.breadcrumb-item a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: color 0.3s ease;
}

.breadcrumb-item a:hover {
  color: #6de0fb;
}

.breadcrumb-separator {
  margin: 0 1rem;
  color: rgba(255, 255, 255, 0.5);
}

.breadcrumb-current {
  color: #6de0fb;
  font-weight: 600;
}

.about-page-title-legendary {
  font-size: 4rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 2rem;
  color: white;
}

.title-line-1 {
  display: block;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.7em;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 0.5rem;
}

.title-line-2 {
  display: block;
  background: linear-gradient(135deg, #6de0fb, #ffffff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 5px 15px rgba(109, 224, 251, 0.3);
}

.about-page-subtitle-legendary {
  font-size: 1.3rem;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.7;
  margin-bottom: 3rem;
  max-width: 500px;
}

.about-header-features {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 3rem;
}

.feature-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.1);
  padding: 0.8rem 1.2rem;
  border-radius: 50px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  color: white;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.3s ease;
}

.feature-badge:hover {
  background: rgba(109, 224, 251, 0.2);
  border-color: #6de0fb;
  transform: translateY(-2px);
}

.feature-badge i {
  color: #6de0fb;
  font-size: 1.1rem;
}

.about-header-actions {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.btn-legendary {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  padding: 1rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  font-size: 1rem;
}

.btn-legendary.primary {
  background: linear-gradient(135deg, #6de0fb, #0337af);
  color: white;
  border: 2px solid transparent;
  box-shadow: 0 10px 25px rgba(109, 224, 251, 0.3);
}

.btn-legendary.primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 35px rgba(109, 224, 251, 0.4);
  color: white;
}

.btn-legendary.secondary {
  background: rgba(255, 255, 255, 0.1);
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(10px);
}

.btn-legendary.secondary:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-3px);
  color: white;
}

.about-header-visual {
  position: relative;
  height: 600px;
  animation: slideInFromRight 1.2s ease-out;
}

@media (max-width: 992px) {
  .about-header-visual {
    display: none;
  }
}

.hero-image-container {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 400px;
  height: 400px;
  border-radius: 50%;
  overflow: hidden;
  border: 5px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.hero-image:hover {
  transform: scale(1.1);
}

.image-glow {
  position: absolute;
  top: -50%;
  left: -50%;
  right: -50%;
  bottom: -50%;
  background: radial-gradient(
    circle,
    rgba(109, 224, 251, 0.3) 0%,
    transparent 70%
  );
  animation: glow 3s ease-in-out infinite alternate;
}

@keyframes glow {
  from {
    opacity: 0.5;
    transform: scale(1);
  }

  to {
    opacity: 0.8;
    transform: scale(1.1);
  }
}

.floating-card {
  position: absolute;
  background: rgba(255, 255, 255, 0.95);
  padding: 1rem 1.5rem;
  border-radius: 15px;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  gap: 0.8rem;
  color: #0d47a1;
  font-weight: 600;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  animation: pulseRotate 4s ease-in-out infinite;
}

.floating-card i {
  font-size: 1.5rem;
  color: #1565c0;
}

.card-1 {
  top: 10%;
  right: 10%;
  animation-delay: 0s;
}

.card-2 {
  bottom: 30%;
  left: 5%;
  animation-delay: 1s;
}

.card-3 {
  top: 60%;
  right: 5%;
  animation-delay: 2s;
}

@keyframes pulseRotate {
  0%,
  100% {
    transform: translateY(0px) scale(1) rotate(0deg);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
  }

  25% {
    transform: translateY(-5px) scale(1.05) rotate(1deg);
    box-shadow: 0 20px 35px rgba(0, 0, 0, 0.15);
  }

  50% {
    transform: translateY(-8px) scale(1.1) rotate(0deg);
    box-shadow: 0 25px 40px rgba(0, 0, 0, 0.2);
  }

  75% {
    transform: translateY(-5px) scale(1.05) rotate(-1deg);
    box-shadow: 0 20px 35px rgba(0, 0, 0, 0.15);
  }
}

@keyframes slideInFromLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInFromRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Responsive Design */
@media (max-width: 991px) {
  .about-header-legendary {
    padding: 6rem 0 4rem;
  }

  .about-page-title-legendary {
    font-size: 3rem;
  }

  .about-header-visual {
    height: 400px;
    margin-top: 3rem;
  }

  .hero-image-container {
    width: 300px;
    height: 300px;
  }

  .floating-card {
    position: relative;
    margin: 1rem 0;
  }

  .card-1,
  .card-2,
  .card-3 {
    position: relative;
    top: auto;
    right: auto;
    bottom: auto;
    left: auto;
  }
}

@media (max-width: 768px) {
  .about-page-title-legendary {
    font-size: 2.5rem;
  }

  .about-page-subtitle-legendary {
    font-size: 1.1rem;
  }

  .about-header-actions {
    justify-content: center;
  }

  .about-header-features {
    justify-content: center;
  }

  .breadcrumb-modern {
    justify-content: center;
  }
}

/* About Page Styles */
/* Vision & Mission Section */
.vision-mission {
  background: linear-gradient(135deg, #f8f9fa 0%, #e3f2fd 100%);
  position: relative;
  overflow: hidden;
}

.vision-mission::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="%23ffffff" opacity="0.1"/><circle cx="75" cy="75" r="1" fill="%23ffffff" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
  opacity: 0.3;
}

.vision-card,
.mission-card {
  background: rgba(255, 255, 255, 0.95);
  padding: 2.5rem;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  position: relative;
  cursor: pointer;
}

.vision-card:hover,
.mission-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.vision-icon,
.mission-icon {
  margin-bottom: 1.5rem;
  opacity: 0.8;
}

/* Our Story Section */
.our-story {
  background: #ffffff;
}

.our-story .section-title {
  font-size: 2.5rem;
  /* color: #1565c0; */
  font-weight: 700;
  margin-bottom: 2rem;
}

.our-story .section-text {
  font-size: 1.1rem;
  color: #455a64;
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.story-image {
  position: relative;
}

.story-image img {
  border-radius: 15px;
  transition: transform 0.3s ease;
}

.story-image:hover img {
  transform: scale(1.05);
}

/* Key Statistics Section */
.key-statistics {
  background: url("../images/doctor-with-clients.jpg") center/cover no-repeat;
  color: white;
  position: relative;
  overflow: hidden;
}

.key-statistics::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    rgba(21, 101, 192, 0.85) 0%,
    rgba(13, 71, 161, 0.9) 100%
  );
  z-index: 1;
}

.key-statistics::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="dots" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="2" fill="%23ffffff" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23dots)"/></svg>');
  z-index: 2;
}

.key-statistics .section-title {
  color: white;
  font-size: 2.5rem;
  font-weight: 700;
  position: relative;
  z-index: 3;
}

.stat-card {
  background: rgba(255, 255, 255, 0.15);
  padding: 2.5rem 1.5rem;
  border-radius: 20px;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(15px);
  position: relative;
  z-index: 3;
  cursor: pointer;
}

.stat-card:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.stat-icon {
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 3;
}

.stat-icon i {
  color: #81d4fa !important;
}

.stat-label {
  font-size: 1.1rem;
  color: #e3f2fd;
  font-weight: 500;
  position: relative;
  z-index: 3;
}

/* Why Choose Us Section - Legendary Design */
.why-choose-us {
  background: linear-gradient(135deg, #f8f9fa 0%, #e8f4f8 100%);
  position: relative;
  overflow: hidden;
  min-height: 100vh;
}

.why-choose-image-container {
  position: relative;
  height: 100vh;
  min-height: 600px;
  overflow: hidden;
}

.why-choose-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.why-choose-image:hover {
  transform: scale(1.05);
}

.image-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    rgba(21, 101, 192, 0.3) 0%,
    rgba(13, 71, 161, 0.6) 100%
  );
  z-index: 2;
}

.why-choose-content {
  position: relative;
  z-index: 10;
  margin-left: -150px;
  padding: 3rem;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border-radius: 30px;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  min-height: 80vh;
  display: flex;
  align-items: center;
}

.content-wrapper {
  width: 100%;
}

.why-choose-us .section-title {
  font-size: 3rem;
  color: #1565c0;
  font-weight: 800;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.section-subtitle {
  font-size: 1.2rem;
  color: #546e7a;
  line-height: 1.7;
  margin-bottom: 2.5rem;
}

.reasons-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.reason-item-modern {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 15px;
  transition: all 0.3s ease;
  border: 1px solid rgba(21, 101, 192, 0.1);
  cursor: pointer;
}

.reason-item-modern:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(21, 101, 192, 0.1);
  background: rgba(255, 255, 255, 0.95);
  border-color: #1565c0;
}

.reason-icon-modern {
  background: linear-gradient(135deg, #1565c0, #0d47a1);
  color: white;
  width: 50px;
  height: 50px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
  box-shadow: 0 8px 20px rgba(21, 101, 192, 0.3);
}

.reason-content-modern {
  flex: 1;
}

.reason-title-modern {
  font-size: 1.1rem;
  color: #263238;
  font-weight: 700;
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.reason-text-modern {
  font-size: 0.95rem;
  color: #546e7a;
  line-height: 1.6;
  margin: 0;
}

/* Animations */
@keyframes slideInFromLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInFromRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Why choose animations removed - using AOS instead */

/* Reason item animations removed - using AOS instead */

.reason-item-modern:nth-child(5) {
  animation-delay: 0.9s;
}

.reason-item-modern:nth-child(6) {
  animation-delay: 1s;
}

/* Responsive Design */
@media (max-width: 991px) {
  .why-choose-content {
    margin-left: 0;
    margin-top: -100px;
    min-height: auto;
    padding: 2rem;
  }

  .why-choose-image-container {
    height: 60vh;
    min-height: 400px;
  }

  .reasons-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .why-choose-us .section-title {
    font-size: 2.2rem;
  }
}

@media (max-width: 768px) {
  .why-choose-content {
    padding: 1.5rem;
    border-radius: 20px;
  }

  .reason-item-modern {
    padding: 1rem;
  }

  .reason-icon-modern {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
  }

  .why-choose-us .section-title {
    font-size: 1.8rem;
  }
}

/* General Section Styles */
.section-title {
  font-size: 2.2rem;
  /* color: #1565c0; */
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.section-text {
  font-size: 1.1rem;
  color: #455a64;
  line-height: 1.7;
}

/* Animations removed - using AOS instead */

/* Animation rules removed - using AOS instead */

/* Reason card animations removed - using AOS instead */

/* Responsive Design */
@media (max-width: 768px) {
  .section-title {
    font-size: 1.8rem;
  }

  .stats-number {
    font-size: 2.5rem;
  }

  .vision-card,
  .mission-card,
  .stat-card,
  .reason-card {
    margin-bottom: 2rem;
  }
}

/* About page stats number styling */
.about-stats-number {
  font-size: 3.5rem;
  font-weight: 800;
  color: white;
  margin-bottom: 0.75rem;
  transition: color 0.3s, transform 0.3s;
  will-change: contents;
  position: relative;
  z-index: 3;
  line-height: 1;
}

.stat-label {
  font-size: 1rem;
  font-weight: 500;
  color: #555;
  line-height: 1.4;
}

@media (max-width: 768px) {
  .about-stats-number {
    font-size: 2.5rem;
  }
}

@media (max-width: 576px) {
  .about-stats-number {
    font-size: 2rem;
  }
}

/* ===== ENHANCED DEPARTMENTS GRID SECTION ===== */

/* Departments Grid Section */
.departments-grid {
  /* background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%); */
  position: relative;
  padding: 6rem 0;
}

.departments-grid::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="%23ffffff" stroke-width="0.5" opacity="0.3"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
  opacity: 0.1;
  pointer-events: none;
}

/* Section Header */
.departments-grid .section-header {
  position: relative;
  z-index: 2;
  margin-bottom: 4rem;
}

.departments-grid .section-title {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 1rem;
  position: relative;
}

.departments-grid .section-title::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: var(--accent-color);
  border-radius: 2px;
}

.departments-grid .section-subtitle {
  font-size: 1.2rem;
  color: #6c757d;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Department Card Base Styling */
.department-card {
  background: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.department-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.1),
    rgba(255, 255, 255, 0.05)
  );
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.department-card:hover::before {
  opacity: 1;
}

.department-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 60px rgba(0, 123, 191, 0.2);
  border-color: rgba(0, 123, 191, 0.3);
}

/* Card Image Container */
.card-image {
  position: relative;
  height: 250px;
  overflow: hidden;
  background: linear-gradient(135deg, #667eea, #764ba2);
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
  filter: brightness(0.9) contrast(1.1);
}

.department-card:hover .card-image img {
  transform: scale(1.05);
}

/* Card Overlay */
.card-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    rgba(0, 123, 191, 0.8) 0%,
    rgba(26, 188, 156, 0.7) 50%,
    rgba(52, 152, 219, 0.8) 100%
  );
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: all 0.4s ease;
}

.department-card:hover .card-overlay {
  opacity: 1;
}

/* Overlay Icon */
.overlay-icon {
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(15px);
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: scale(0.8) rotate(-10deg);
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.department-card:hover .overlay-icon {
  transform: scale(1) rotate(0deg);
}

.overlay-icon i {
  font-size: 2rem;
  color: #ffd700;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

/* Card Content */
.card-content {
  padding: 2rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 2;
}

/* Department Title */
.department-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 1rem;
  position: relative;
  transition: color 0.3s ease;
}

.department-card:hover .department-title {
  color: var(--secondary-color);
}

.department-title::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 30px;
  height: 3px;
  background: var(--accent-color);
  border-radius: 2px;
  transition: width 0.3s ease;
}

.department-card:hover .department-title::after {
  width: 50px;
}

/* Department Description */
.department-description {
  font-size: 1rem;
  line-height: 1.7;
  color: #666;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

/* Department Details */
.department-details {
  margin-bottom: 2rem;
  background: rgba(248, 249, 250, 0.5);
  padding: 1.5rem;
  border-radius: 15px;
  border-left: 4px solid var(--accent-color);
}

/* Services List */
.services-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.services-list li {
  display: flex;
  align-items: center;
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(0, 123, 191, 0.1);
  transition: all 0.3s ease;
  position: relative;
  cursor: pointer;
}

.services-list li:last-child {
  border-bottom: none;
}

.services-list li::before {
  content: "";
  position: absolute;
  left: -1.5rem;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 0;
  background: var(--primary-color);
  transition: height 0.3s ease;
}

.services-list li:hover::before {
  height: 100%;
}

.services-list li:hover {
  background: rgba(0, 123, 191, 0.05);
  padding-left: 1rem;
  border-radius: 8px;
  transform: translateX(5px);
}

.services-list li i {
  color: var(--primary-color);
  font-size: 1.1rem;
  margin-right: 1rem;
  min-width: 20px;
  transition: all 0.3s ease;
}

.services-list li:hover i {
  transform: scale(1.2);
  color: var(--secondary-color);
}

/* Department Features */
.department-features {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: auto;
  padding-top: 1rem;
}

.feature-tag {
  background: var(--accent-color);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 25px;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: inline-block;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 123, 191, 0.3);
}

.feature-tag::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );
  transition: left 0.5s ease;
}

.feature-tag:hover::before {
  left: 100%;
}

.feature-tag:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 123, 191, 0.4);
}

/* Enhanced Department Grid Layout */
@media (min-width: 992px) {
  .departments-grid .row.g-4 {
    gap: 2rem;
  }

  .department-card {
    min-height: 600px;
  }
}

/* Mobile responsive for departments grid */
@media (max-width: 991px) {
  .departments-grid {
    padding: 4rem 0;
  }

  .departments-grid .section-title {
    font-size: 2.5rem;
  }

  .card-image {
    height: 200px;
  }

  .card-content {
    padding: 1.5rem;
  }

  .department-details {
    padding: 1rem;
  }
}

@media (max-width: 768px) {
  .departments-grid .section-title {
    font-size: 2rem;
  }

  .departments-grid .section-subtitle {
    font-size: 1rem;
  }

  .card-image {
    height: 180px;
  }

  .department-title {
    font-size: 1.3rem;
  }

  .feature-tag {
    font-size: 0.8rem;
    padding: 0.4rem 0.8rem;
  }
}

/* Department card animations removed - using AOS instead */

/* fadeInUp keyframe removed - using AOS instead */

/* ===== DEPARTMENTS HEADER LEGENDARY DESIGN ===== */

/* Main Departments Header Section */
.departments-header-legendary {
  position: relative;
  /* min-height: 100vh; */
  padding: 40px 0;
  display: flex;
  align-items: center;
  background: linear-gradient(
      135deg,
      rgba(26, 188, 156, 0.6) 0%,
      rgba(52, 152, 219, 0.6) 50%,
      rgba(0, 123, 191, 0.6) 100%
    ),
    url("../images/group-africa-doctors.png");
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  overflow: hidden;
}

/* Hero Overlay for Departments */
.hero-overlay-departments {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(0, 123, 191, 0.85) 0%,
    rgba(26, 188, 156, 0.75) 35%,
    rgba(52, 152, 219, 0.8) 70%,
    rgba(0, 123, 191, 0.9) 100%
  );
  backdrop-filter: blur(2px);
  z-index: 1;
}

/* Animated Particles Background */
.hero-particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}

.hero-particles::before,
.hero-particles::after {
  content: "";
  position: absolute;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  animation: float 6s ease-in-out infinite;
}

.hero-particles::before {
  top: 20%;
  left: 10%;
  animation-delay: 0s;
}

.hero-particles::after {
  bottom: 20%;
  right: 10%;
  animation-delay: 3s;
  width: 200px;
  height: 200px;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0px) rotate(0deg);
  }

  50% {
    transform: translateY(-30px) rotate(180deg);
  }
}

/* Hero Content Container */
.hero-content-departments {
  position: relative;
  z-index: 3;
  text-align: center;
  color: white;
  /* animation removed - using AOS */
}

/* fadeInUp keyframe removed - using AOS instead */

/* Hero Badge */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 0.75rem 1.5rem;
  border-radius: 50px;
  margin-bottom: 2rem;
  font-size: 0.9rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  animation: slideInDown 1s ease-out 0.3s both;
}

.hero-badge i {
  font-size: 1.2rem;
  color: #ffd700;
}

@keyframes slideInDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Hero Title */
.hero-title-departments {
  font-size: 4rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  animation: titleGlow 2s ease-in-out infinite alternate;
}

@keyframes titleGlow {
  from {
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  }

  to {
    text-shadow: 0 4px 30px rgba(255, 255, 255, 0.3);
  }
}

/* Hero Subtitle */
.hero-subtitle-departments {
  font-size: 1.5rem;
  font-weight: 300;
  margin-bottom: 1rem;
  opacity: 0.95;
  animation: fadeIn 1.5s ease-out 0.6s both;
}

/* Hero Divider */
.hero-divider-departments {
  width: 80px;
  height: 4px;
  background: var(--accent-color);
  margin: 0.5rem auto;
  border-radius: 2px;
  animation: expandWidth 1.5s ease-out 0.9s both;
}

@keyframes expandWidth {
  from {
    width: 0;
  }

  to {
    width: 80px;
  }
}

/* Hero Description */
.hero-description-departments {
  font-size: 1.1rem;
  line-height: 1.8;
  max-width: 600px;
  margin: 0 auto 3rem;
  opacity: 0.9;
  animation: fadeIn 1.5s ease-out 1.2s both;
}

/* Hero Stats Container */
.hero-stats-departments {
  display: flex;
  justify-content: center;
  gap: 3rem;
  margin: 3rem 0;
  flex-wrap: wrap;
  animation: slideInUp 1.5s ease-out 1.5s both;
}

.stat-item-departments {
  text-align: center;
  animation: bounceIn 1s ease-out calc(1.8s + var(--delay, 0s)) both;
}

.stat-item-departments:nth-child(1) {
  --delay: 0s;
}

.stat-item-departments:nth-child(2) {
  --delay: 0.2s;
}

.stat-item-departments:nth-child(3) {
  --delay: 0.4s;
}

.stat-item-departments:nth-child(4) {
  --delay: 0.6s;
}

@keyframes bounceIn {
  0% {
    opacity: 0;
    transform: scale(0.3) translateY(30px);
  }

  50% {
    opacity: 1;
    transform: scale(1.05) translateY(-10px);
  }

  70% {
    transform: scale(0.9) translateY(5px);
  }

  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

/* Stat Circles */
.stat-circle {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(15px);
  border: 2px solid rgba(255, 255, 255, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.stat-circle::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    45deg,
    transparent,
    rgba(255, 255, 255, 0.1),
    transparent
  );
  transform: rotate(45deg);
  transition: transform 0.6s ease;
}

.stat-circle:hover::before {
  transform: rotate(45deg) translateX(100%);
}

.stat-circle:hover {
  transform: translateY(-5px) scale(1.1);
  box-shadow: 0 10px 30px rgba(255, 255, 255, 0.2);
}

.stat-number-departments {
  font-size: 1.8rem;
  font-weight: 800;
  color: #ffd700;
  z-index: 1;
}

.stat-label-departments {
  font-size: 0.9rem;
  font-weight: 500;
  opacity: 0.9;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Quick Navigation */

.navigations {
  margin-top: -100px;
  padding: 20px 0;
  position: relative;
  z-index: 10;
}

.hero-quick-nav {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 3rem;
  flex-wrap: wrap;
  animation: slideInUp 1.5s ease-out 2.1s both;
}

.quick-nav-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 2rem 2.5rem;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 15px;
  color: black;
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.quick-nav-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: left 0.5s ease;
}

.quick-nav-btn:hover::before {
  left: 100%;
}

.quick-nav-btn:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
  color: black;
}

.quick-nav-btn i {
  font-size: 2.5rem;
  color: var(--secondary-color);
  font-weight: 900;
}

.quick-nav-btn span {
  font-size: 0.85rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

@keyframes bounceUpDown {
  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateX(-50%) translateY(0);
  }

  40% {
    transform: translateX(-50%) translateY(-10px);
  }

  60% {
    transform: translateX(-50%) translateY(-5px);
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero-title-departments {
    font-size: 2.5rem;
  }

  .hero-subtitle-departments {
    font-size: 1.2rem;
  }

  .hero-stats-departments {
    gap: 1.5rem;
  }

  .stat-circle {
    width: 60px;
    height: 60px;
  }

  .stat-number-departments {
    font-size: 1.4rem;
  }

  .hero-quick-nav {
    gap: 0.5rem;
  }

  .quick-nav-btn {
    padding: 0.75rem 1rem;
    min-width: 120px;
  }
}

@media (max-width: 480px) {
  .hero-title-departments {
    font-size: 2rem;
  }

  .hero-description-departments {
    font-size: 1rem;
  }

  .hero-stats-departments {
    gap: 1rem;
  }

  .quick-nav-btn {
    flex: 1 1 calc(50% - 0.25rem);
    min-width: auto;
  }
}

.call-us-now-button {
  display: inline-flex;
  align-items: center;
  padding: 0.75rem 1.5rem;
  background: var(--accent-color);
  color: white;
  border: none;
  border-radius: 30px;
  text-decoration: none;
  transition: all 0.3s ease;
  margin-top: 20px;
}

.call-us-now-button:hover {
  transform: translateY(-5px);
}

.call-us-now .container {
  background: linear-gradient(
    135deg,
    var(--primary-color) 0%,
    #1565c0 50%,
    #0d47a1 100%
  );
  color: white;
  border-top-right-radius: 50px;
  border-bottom-left-radius: 50px;
  position: relative;
  overflow: hidden;
}

.call-us-now .container::before {
  content: "";
  position: absolute;
  bottom: -10px;
  right: -10px;
  width: 120px;
  height: 120px;
  border: 3px solid transparent;
  border-radius: 50%;
  background: linear-gradient(
        45deg,
        rgba(255, 255, 255, 0.3),
        rgba(255, 255, 255, 0.1)
      )
      padding-box,
    linear-gradient(45deg, #64b5f6, #42a5f5, #2196f3) border-box;
  animation: rotateGradient 8s linear infinite;
}

.call-us-now .container::after {
  content: "";
  position: absolute;
  bottom: -20px;
  right: -20px;
  width: 80px;
  height: 80px;
  border: 2px solid transparent;
  border-radius: 50%;
  background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.2),
        rgba(255, 255, 255, 0.05)
      )
      padding-box,
    linear-gradient(135deg, #90caf9, #64b5f6, #42a5f5) border-box;
  animation: rotateGradient 6s linear infinite reverse;
}

@keyframes rotateGradient {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

.services-container {
  max-width: 95%;
  margin: 10px auto;
  padding: 9rem 2rem;
  background: linear-gradient(
      135deg,
      rgba(255, 255, 255, 0.1),
      rgba(255, 255, 255, 0.05)
    ),
    url("../images/nurses-services-background.jpg");
  border-radius: 50px;
}

.services-page-title {
  font-size: 4rem;
  color: var(--accent-color);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.services-page-text {
  font-size: 1.2rem;
  color: black;
  /* text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5); */
}

.services-page-btn {
  padding: 0.7rem 2rem;
  background: var(--accent-color);
  margin-top: 20px;
  border-radius: 15px;
  font-weight: 600;
  color: white;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transform: translateY(0);
  border: 2px solid transparent;
  transition: all 0.5s ease-in-out;
}

.services-page-btn:hover {
  transform: translateY(5px);
  background: white;
  color: var(--accent-color);
}

/* Top Services Cards Styles */
.top-service-card-item {
  position: relative;
  height: 300px;
  border-radius: 15px;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  z-index: 1;
}

.top-services-card-item h3 {
  font-family: "Quicksand", sans-serif !important;
}

.top-service-card-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.tsc-1 {
  background-image: linear-gradient(
      -360deg,
      rgba(0, 0, 0, 7) 0%,
      rgba(0, 0, 0, 0.8) 20%,
      rgba(26, 188, 156, 0.4) 40%,
      rgba(52, 152, 219, 0.2) 70%,
      rgba(0, 123, 191, 0.05) 100%
    ),
    url("../images/physician-measuring-heart-rate.jpg");
}

.tsc-2 {
  background-image: linear-gradient(
      -360deg,
      rgba(0, 0, 0, 7) 0%,
      rgba(0, 0, 0, 0.8) 20%,
      rgba(26, 188, 156, 0.4) 40%,
      rgba(52, 152, 219, 0.2) 70%,
      rgba(0, 123, 191, 0.05) 100%
    ),
    url("../images/in-patient-service.jpg");
}

.tsc-3 {
  background-image: linear-gradient(
      -360deg,
      rgba(0, 0, 0, 7) 0%,
      rgba(0, 0, 0, 0.8) 20%,
      rgba(26, 188, 156, 0.4) 40%,
      rgba(52, 152, 219, 0.2) 70%,
      rgba(0, 123, 191, 0.05) 100%
    ),
    url("../images/surgical_services.jpg");
}

.top-service-card-item .card-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px;
  color: white;
  /* z-index: 3; */
}

.top-service-card-item .card-content h3 {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 10px;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7);
}

.top-service-card-item .card-content p {
  font-size: 0.9rem;
  line-height: 1.4;
  margin: 0;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
  opacity: 0.95;
}

/* Services Read More Button */
.services-read-more-button {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 300px;
  background: linear-gradient(
    135deg,
    var(--accent-color),
    var(--primary-color)
  );
  border-radius: 15px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.services-read-more-button:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.services-read-more-button a {
  text-decoration: none;
  color: white;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.services-read-more-button a i {
  font-size: 3rem;
  margin-bottom: 10px;
}

.services-read-more-button a p {
  font-size: 1.2rem;
  font-weight: 600;
  margin: 0;
}

/* Legendary Services Section */
.services-section {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.section-header {
  margin-bottom: 4rem;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: #2c3e50;
  margin-bottom: 1rem;
  position: relative;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(
    135deg,
    var(--accent-color),
    var(--primary-color)
  );
  border-radius: 2px;
}

.section-subtitle {
  font-size: 1.2rem;
  color: #7f8c8d;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Legendary Service Cards */
.service-card-legendary {
  background: white;
  border-radius: 20px;
  padding: 2.5rem 2rem;
  height: 100%;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(26, 188, 156, 0.1);
}

.service-card-legendary::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(
    135deg,
    var(--accent-color),
    var(--primary-color)
  );
  transform: scaleX(0);
  transition: transform 0.4s ease;
}

.service-card-legendary:hover::before {
  transform: scaleX(1);
}

.service-card-legendary:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
  border-color: rgba(26, 188, 156, 0.3);
}

.service-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(
    135deg,
    var(--accent-color),
    var(--primary-color)
  );
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  position: relative;
  overflow: hidden;
}

.service-icon::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    45deg,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );
  transform: rotate(45deg);
  transition: all 0.6s ease;
  opacity: 0;
}

.service-card-legendary:hover .service-icon::before {
  animation: shimmer 0.6s ease;
}

@keyframes shimmer {
  0% {
    transform: translateX(-100%) translateY(-100%) rotate(45deg);
    opacity: 0;
  }

  50% {
    opacity: 1;
  }

  100% {
    transform: translateX(100%) translateY(100%) rotate(45deg);
    opacity: 0;
  }
}

.service-icon i {
  font-size: 2.2rem;
  color: white;
  z-index: 2;
  position: relative;
}

.service-content {
  margin-bottom: 2rem;
}

.service-card-legendary .service-title {
  font-size: 1.4rem;
  font-weight: 600;
  color: #2c3e50;
  margin-bottom: 1rem;
  line-height: 1.3;
}

.service-card-legendary .service-description {
  color: #7f8c8d;
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.service-features {
  list-style: none;
  padding: 0;
  margin: 0;
}

.service-features li {
  display: flex;
  align-items: center;
  padding: 0.4rem 0;
  color: #5a6c7d;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.service-features li:hover {
  color: var(--accent-color);
  transform: translateX(5px);
}

.service-features li i {
  color: var(--accent-color);
  font-size: 0.8rem;
  margin-right: 0.8rem;
  width: 16px;
  flex-shrink: 0;
}

.service-cta {
  margin-top: auto;
  padding-top: 1.5rem;
  border-top: 1px solid #f1f2f6;
}

.service-btn {
  display: inline-flex;
  align-items: center;
  color: var(--accent-color);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  position: relative;
}

.service-btn::before {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(
    135deg,
    var(--accent-color),
    var(--primary-color)
  );
  transition: width 0.3s ease;
}

.service-btn:hover {
  color: var(--primary-color);
  transform: translateX(5px);
}

.service-btn:hover::before {
  width: 100%;
}

.service-btn i {
  margin-left: 0.5rem;
  font-size: 0.8rem;
  transition: transform 0.3s ease;
}

.service-btn:hover i {
  transform: translateX(3px);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .section-title {
    font-size: 2rem;
  }

  .service-card-legendary {
    padding: 2rem 1.5rem;
  }

  .service-icon {
    width: 70px;
    height: 70px;
  }

  .service-icon i {
    font-size: 2rem;
  }
}

.request-an-appointment .container {
  background: url("../images/doctor-with-clients.jpg") center/cover no-repeat;
  color: white;
  position: relative;
  overflow: hidden;
  border-top-left-radius: 50px;
  border-bottom-right-radius: 50px;
}

.request-an-appointment .container::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    rgba(21, 101, 192, 0.85) 0%,
    rgba(13, 71, 161, 0.9) 100%
  );
  z-index: 1;
}

.request-an-appointment .container::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="dots" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="2" fill="%23ffffff" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23dots)"/></svg>');
  z-index: 2;
}

.request-content {
  color: white;
  position: relative;
  z-index: 5 !important;
}

.request-title {
  font-size: 3.5rem;
}

.c-benefits-content h2 {
  font-size: 3rem;
  font-weight: 900;
}

.c-benefits img {
  border-radius: 30px;
}

/*Benefits Section */
.benefits-section-modern {
  position: relative;
}

.benefits-section-modern::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 300px;
  height: 300px;
  background: linear-gradient(
    135deg,
    rgba(26, 188, 156, 0.1),
    rgba(52, 152, 219, 0.1)
  );
  border-radius: 50%;
  transform: translate(50%, -50%);
  z-index: 1;
}

.benefits-content-modern {
  position: relative;
  z-index: 2;
}

.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(
    135deg,
    var(--accent-color),
    var(--primary-color)
  );
  color: white;
  padding: 8px 16px;
  border-radius: 25px;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.section-badge i {
  font-size: 1rem;
}

.benefits-title {
  font-size: 2.2rem;
  font-weight: 700;
  color: #2c3e50;
  line-height: 1.3;
  margin-bottom: 1.5rem;
}

.benefits-description {
  font-size: 1.1rem;
  color: #7f8c8d;
  line-height: 1.6;
  margin-bottom: 2.5rem;
}

.benefits-list {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.benefit-item {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  padding: 1.5rem;
  background: white;
  border-radius: 15px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  border: 1px solid rgba(26, 188, 156, 0.1);
}

.benefit-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  border-color: rgba(26, 188, 156, 0.3);
}

.benefit-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(
    135deg,
    var(--accent-color),
    var(--primary-color)
  );
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.benefit-icon i {
  font-size: 1.5rem;
  color: white;
}

.benefit-content h4 {
  font-size: 1.375rem;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

.benefit-content p {
  font-size: 1rem;
  color: #555;
  line-height: 1.6;
  margin: 0;
}

/* Benefits Image Container */
.benefits-image-container {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.benefits-image {
  width: 100%;
  height: auto;
  transition: transform 0.3s ease;
}

.benefits-image-container:hover .benefits-image {
  transform: scale(1.05);
}

.image-overlay-gradient {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    rgba(26, 188, 156, 0.2) 0%,
    rgba(52, 152, 219, 0.2) 100%
  );
  z-index: 1;
}

.floating-stats {
  position: absolute;
  bottom: 20px;
  right: 20px;
  background: white;
  padding: 1.5rem;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  z-index: 2;
  text-align: center;
  min-width: 120px;
}

.stat-number {
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent-color);
  line-height: 1;
}

.stat-label {
  font-size: 0.8rem;
  color: white;
  font-weight: 600;
  margin-top: 0.25rem;
}

/* Patients & Visitors Section - Legendary Design */
.patients-visitors-section {
  background-color: #f8f9fa;
  position: relative;
  overflow: hidden;
}

.patients-visitors-section::before {
  content: "";
  position: absolute;
  top: -10%;
  right: -5%;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(26, 188, 156, 0.1) 0%,
    rgba(26, 188, 156, 0.05) 50%,
    rgba(26, 188, 156, 0) 70%
  );
  z-index: 0;
}

.patients-visitors-section::after {
  content: "";
  position: absolute;
  bottom: -10%;
  left: -5%;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(52, 152, 219, 0.1) 0%,
    rgba(52, 152, 219, 0.05) 50%,
    rgba(52, 152, 219, 0) 70%
  );
  z-index: 0;
}

/* Info Card Styles */
.pv-info-card {
  position: relative;
  z-index: 1;
  padding: 3rem 2rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.pv-icon-container {
  width: 85px;
  height: 85px;
  border-radius: 20px;
  background: linear-gradient(135deg, #1abc9c, #3498db);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  box-shadow: 0 10px 30px rgba(26, 188, 156, 0.3);
  position: relative;
  overflow: hidden;
}

.pv-icon-container::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    45deg,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );
  transform: rotate(45deg);
  animation: pvShine 3s infinite;
}

@keyframes pvShine {
  0% {
    transform: translate(-100%, -100%) rotate(45deg);
  }

  100% {
    transform: translate(100%, 100%) rotate(45deg);
  }
}

.pv-icon-container i {
  font-size: 2.5rem;
  color: white;
}

.pv-title {
  font-size: 2.2rem;
  font-weight: 700;
  color: #2c3e50;
  margin-bottom: 1rem;
  position: relative;
}

.pv-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -10px;
  width: 60px;
  height: 4px;
  background: linear-gradient(135deg, #1abc9c, #3498db);
  border-radius: 2px;
}

.pv-description {
  font-size: 1.1rem;
  line-height: 1.7;
  color: #7f8c8d;
  margin-top: 1.5rem;
}

/* Details Card Styles */
.pv-details-card {
  background: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
  height: 100%;
  transition: all 0.3s ease;
  position: relative;
  z-index: 1;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.pv-details-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
  border-color: rgba(26, 188, 156, 0.2);
}

.pv-image-container {
  position: relative;
  overflow: hidden;
  height: 220px;
}

.pv-section-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all 0.5s ease;
}

.pv-details-card:hover .pv-section-image {
  transform: scale(1.05);
}

.pv-image-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(0, 0, 0, 0.6) 100%
  );
  display: flex;
  align-items: flex-end;
  padding: 1.5rem;
}

.pv-image-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #1abc9c, #3498db);
  color: white;
  padding: 8px 16px;
  border-radius: 30px;
  font-size: 0.9rem;
  font-weight: 600;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  transform: translateY(0);
  transition: all 0.3s ease;
}

.pv-details-card:hover .pv-image-badge {
  transform: translateY(-5px);
}

.pv-image-badge i {
  font-size: 1rem;
}

/* Hours List Styles */
.pv-hours-list {
  padding: 1.5rem;
}

.pv-hour-item {
  display: flex;
  align-items: center;
  padding: 0.8rem 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.pv-hour-item:last-child {
  border-bottom: none;
}

.pv-hour-item:hover {
  transform: translateX(10px);
}

.pv-hour-icon {
  width: 45px;
  height: 45px;
  border-radius: 12px;
  background: linear-gradient(
    135deg,
    rgba(26, 188, 156, 0.1),
    rgba(52, 152, 219, 0.1)
  );
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 1rem;
  flex-shrink: 0;
}

.pv-hour-icon i {
  font-size: 1.2rem;
  color: #1abc9c;
}

.pv-hour-content h4 {
  font-size: 1rem;
  font-weight: 600;
  color: #2c3e50;
  margin-bottom: 0.2rem;
}

.pv-hour-content p {
  font-size: 0.9rem;
  color: #7f8c8d;
  margin: 0;
}

/* Benefits Grid Styles */
.pv-benefits-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  padding: 1.5rem;
}

.pv-benefit-item {
  background: linear-gradient(
    135deg,
    rgba(26, 188, 156, 0.05),
    rgba(52, 152, 219, 0.05)
  );
  padding: 1.2rem;
  border-radius: 15px;
  transition: all 0.3s ease;
  border: 1px solid rgba(26, 188, 156, 0.1);
}

.pv-benefit-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
  background: linear-gradient(
    135deg,
    rgba(26, 188, 156, 0.1),
    rgba(52, 152, 219, 0.1)
  );
  border-color: rgba(26, 188, 156, 0.2);
}

.pv-benefit-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1abc9c, #3498db);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.pv-benefit-icon i {
  font-size: 1.3rem;
  color: white;
}

.pv-benefit-content h4 {
  font-size: 1rem;
  font-weight: 600;
  color: #2c3e50;
  margin-bottom: 0.5rem;
}

.pv-benefit-content p {
  font-size: 0.85rem;
  color: #7f8c8d;
  margin: 0;
}

/* Contact Grid Styles */
.pv-contact-grid {
  padding: 1.5rem;
}

.pv-contact-item {
  display: flex;
  align-items: center;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.pv-contact-item:last-child {
  border-bottom: none;
}

.pv-contact-item:hover {
  transform: translateX(10px);
}

.pv-contact-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1abc9c, #3498db);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 1rem;
  flex-shrink: 0;
}

.pv-contact-icon i {
  font-size: 1.3rem;
  color: white;
}

.pv-contact-content h4 {
  font-size: 1rem;
  font-weight: 600;
  color: #2c3e50;
  margin-bottom: 0.2rem;
}

.pv-contact-content p {
  font-size: 0.9rem;
  color: #7f8c8d;
  margin: 0 0 0.3rem;
}

.pv-contact-status {
  display: inline-block;
  font-size: 0.75rem;
  padding: 3px 10px;
  border-radius: 12px;
  background: linear-gradient(
    135deg,
    rgba(26, 188, 156, 0.15),
    rgba(52, 152, 219, 0.15)
  );
  color: #1abc9c;
}

/* Responsive Adjustments */
@media (max-width: 991px) {
  .pv-info-card {
    padding: 2rem 1rem;
    margin-bottom: 2rem;
  }

  .pv-icon-container {
    width: 70px;
    height: 70px;
  }

  .pv-icon-container i {
    font-size: 2rem;
  }

  .pv-title {
    font-size: 1.8rem;
  }

  .pv-benefits-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767px) {
  .pv-image-container {
    height: 180px;
  }

  .pv-hour-item,
  .pv-contact-item {
    flex-direction: column;
    /* align-items: flex-start; */
    text-align: center;
  }

  .pv-hour-icon,
  .pv-contact-icon {
    margin: 0 auto 1rem;
  }

  .pv-contact-content {
    text-align: center;
    width: 100%;
  }

  .contact-item-card {
    margin-bottom: 20px;
  }
}

.contact-us-page-header {
  padding: 6rem 0;
  background-image: linear-gradient(
      -360deg,
      rgba(0, 0, 0, 0.7) 0%,
      rgba(0, 0, 0, 0.5) 20%,
      rgba(0, 0, 0, 0.4) 40%,
      rgba(0, 0, 0, 0.3) 70%,
      rgba(0, 0, 0, 0.2) 100%
    ),
    url("../images/hospital-admininstration.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.contact-us-header-content {
  color: white;
}

.contact-us-header-content h1 {
  font-size: 5rem;
  font-weight: 900;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.contact-info-title h1 {
  font-size: 60px;
  font-weight: 900;
}

.cc-title {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 auto;
  padding: 0.5rem 1rem;
  background: white;
  box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;
  width: 250px;
  border-radius: 30px;
}

.cc-title i {
  color: var(--primary-color);
}

.cc-title h3 {
  font-size: 1.2rem;
  text-transform: uppercase;
  font-weight: 600;
  padding: 0.5rem 1rem;
  margin-bottom: 0;
}

.contact-item-card {
  display: flex;
  justify-content: center;
  flex-direction: column;
  box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;
  padding: 20px;
  border-radius: 30px;
}

.contact-item-icon {
  display: flex;
  align-items: end;
  gap: 12px;
}

.contact-item-icon i {
  font-size: 2.5rem;
  color: var(--primary-color);
  font-weight: 900;
}

.icon-details h6 {
  margin-bottom: 1px;
}

.icon-details p {
  margin-bottom: 3px;
  margin-top: 0;
  font-size: 20px;
  font-weight: 800;
  color: var(--secondary-color);
}

.contact-item-details {
  margin-top: 10px;
  font-weight: 600;
  color: rgb(124, 124, 124);
}

/* ===============================
   CONTACT FORM SECTION STYLING
   =============================== */

.contact-form {
  padding: 80px 0;
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
}

/* Call to Action Section */
.contact-cta-wrapper {
  padding: 40px 0;
}

.contact-cta-content {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.contact-cta-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: #2c3e50;
  margin-bottom: 20px;
  line-height: 1.2;
}

.contact-cta-description {
  font-size: 1.1rem;
  color: #6c757d;
  margin-bottom: 40px;
  line-height: 1.6;
}

.contact-cta-features {
  margin-bottom: 40px;
}

.contact-cta-feature {
  display: flex;
  align-items: center;
  margin-bottom: 25px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.contact-cta-feature:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.contact-cta-feature-icon {
  width: 50px;
  height: 50px;
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--accent-color)
  );
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 20px;
  flex-shrink: 0;
}

.contact-cta-feature-icon i {
  color: white;
  font-size: 1.2rem;
}

.contact-cta-feature-text h6 {
  color: #2c3e50;
  font-weight: 600;
  margin-bottom: 5px;
  font-size: 1rem;
}

.contact-cta-feature-text p {
  color: #6c757d;
  margin: 0;
  font-size: 0.9rem;
}

.contact-cta-emergency {
  margin-top: 30px;
}

.emergency-call-box {
  background: linear-gradient(135deg, var(--secondary-color), #ff4444);
  padding: 25px;
  border-radius: 15px;
  display: flex;
  align-items: center;
  box-shadow: 0 6px 20px rgba(248, 2, 3, 0.2);
}

.emergency-icon {
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 20px;
}

.emergency-icon i {
  color: white;
  font-size: 1.3rem;
}

.emergency-text {
  display: flex;
  flex-direction: column;
}

.emergency-label {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.9rem;
  font-weight: 500;
}

.emergency-number {
  color: white;
  font-size: 1.3rem;
  font-weight: 700;
}

/* Contact Form Section */
.contact-form-wrapper {
  background: white;
  padding: 40px;
  border-radius: 20px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
  height: 100%;
}

.contact-form-header {
  text-align: center;
  margin-bottom: 40px;
}

.contact-form-title {
  font-size: 2rem;
  font-weight: 700;
  color: #2c3e50;
  margin-bottom: 10px;
}

.contact-form-subtitle {
  color: #6c757d;
  font-size: 1rem;
  margin: 0;
}

.modern-contact-form {
  width: 100%;
}

.form-input-group {
  position: relative;
  margin-bottom: 25px;
}

.form-input-field {
  width: 100%;
  padding: 18px 20px;
  border: 2px solid #e9ecef;
  border-radius: 12px;
  font-size: 1rem;
  color: #2c3e50;
  background: #f8f9fa;
  transition: all 0.3s ease;
  outline: none;
  resize: none;
}

.form-input-field:focus {
  border-color: var(--primary-color);
  background: white;
  box-shadow: 0 0 0 3px rgba(3, 55, 175, 0.1);
}

.form-input-field::placeholder {
  color: #adb5bd;
  font-weight: 500;
}

.form-textarea {
  min-height: 120px;
  font-family: "Roboto", sans-serif !important;
}

.form-input-field:focus + .form-input-border {
  width: 100%;
  border: none;
}

.form-submit-btn {
  width: 100%;
  padding: 18px 30px;
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--accent-color)
  );
  border: none;
  border-radius: 12px;
  color: white;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 4px 15px rgba(3, 55, 175, 0.3);
}

.form-submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(3, 55, 175, 0.4);
}

.form-submit-btn:active {
  transform: translateY(0);
}

.btn-text {
  transition: transform 0.3s ease;
}

.btn-icon {
  transition: transform 0.3s ease;
}

.form-submit-btn:hover .btn-icon {
  transform: translateX(5px);
}

.form-input-field:focus {
  outline: none;
  border: none !important;
}

@media (max-width: 768px) {
  .top-contacts {
    flex-direction: column;
    gap: 5px !important;
  }

  .homepage-services {
    position: relative;
    margin-top: 0px;
  }

  .home-service-note {
    margin-left: 0 !important;
  }

  .about-header-legendary {
    min-height: 100vh;
  }
}

@media (max-width: 1200px) {
  .homepage-services {
    margin-top: 0px;
  }
}

/* Responsive Design */
@media (max-width: 992px) {
  .contact-cta-title {
    font-size: 2rem;
  }

  .contact-form-wrapper {
    padding: 30px 20px;
  }

  .contact-form-title {
    font-size: 1.8rem;
  }
}

@media (max-width: 768px) {
  .contact-form {
    padding: 60px 0;
  }

  .contact-cta-wrapper {
    padding: 20px 0;
    margin-bottom: 30px;
  }

  .contact-cta-title {
    font-size: 1.8rem;
  }

  .contact-cta-feature {
    padding: 15px;
  }

  .contact-form-wrapper {
    padding: 25px 15px;
  }

  .form-input-field {
    padding: 15px 18px;
  }

  .form-submit-btn {
    padding: 15px 25px;
    font-size: 1rem;
  }
}

@media (max-width: 576px) {
  .contact-cta-title {
    font-size: 1.6rem;
  }

  .contact-form-title {
    font-size: 1.5rem;
  }

  .emergency-call-box {
    padding: 20px;
  }

  .emergency-number {
    font-size: 1.1rem;
  }
}

/* Gallery Section Styles */
.custom-gallery-tabs .nav-link {
  color: #555;
  background-color: #f8f9fa;
  border-radius: 50px;
  padding: 10px 30px;
  margin: 0 10px;
  font-weight: 600;
  transition: all 0.3s ease;
  border: 1px solid #e9ecef;
}

.custom-gallery-tabs .nav-link:hover {
  background-color: #e9ecef;
  color: var(--primary-color);
}

.custom-gallery-tabs .nav-link.active {
  background-color: var(--primary-color);
  color: #fff  !important;
  box-shadow: 0 4px 10px rgba(3, 55, 175, 0.3);
  border-color: var(--primary-color);
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 15px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
  cursor: pointer;
  height: 300px; /* Fixed height for uniformity */
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-item:hover img {
  transform: scale(1.1);
}

.gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to top,
    rgba(3, 55, 175, 0.9),
    rgba(3, 55, 175, 0.4)
  );
  display: flex;
  align-items: flex-end;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-content {
  color: #fff;
  transform: translateY(20px);
  transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-content {
  transform: translateY(0);
}

.gallery-content h5 {
  font-size: 1.2rem;
  margin-bottom: 5px;
  font-weight: 700;
}

.gallery-content p {
  font-size: 0.9rem;
  margin-bottom: 0;
  opacity: 0.9;
}
