/* Custom CSS */
:root {
  --primary-color: #1a5276;
  --secondary-color: #2ecc71;
  --light-bg: #f8f9fa;
  --dark-bg: #2c3e50;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  color: #333;
  line-height: 1.6;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 600;
  color: var(--primary-color);
}

.navbar {
  background-color: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar-brand img {
  max-height: 50px;
}

.navbar-nav .nav-link {
  color: var(--primary-color);
  font-weight: 500;
  padding: 0.5rem 1rem;
  transition: all 0.3s ease;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: var(--secondary-color);
}

.dropdown-menu {
  border: none;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.dropdown-item:hover {
  background-color: var(--light-bg);
  color: var(--primary-color);
}

.hero-section {
  background: linear-gradient(rgba(26, 82, 118, 0.8), rgba(26, 82, 118, 0.9)),
    url("/api/placeholder/1920/1080") center/cover no-repeat;
  color: #fff;
  padding: 6rem 0;
  margin-bottom: 3rem;
}

.btn-primary {
  background-color: var(--secondary-color);
  border-color: var(--secondary-color);
  padding: 0.6rem 1.5rem;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  background-color: #27ae60;
  border-color: #27ae60;
  transform: translateY(-2px);
}

.service-card {
  border: none;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  margin-bottom: 1.5rem;
  height: 100%;
}

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

.service-icon {
  font-size: 2.5rem;
  color: var(--secondary-color);
  margin-bottom: 1rem;
}

.testimonial-section {
  background-color: var(--light-bg);
  padding: 4rem 0;
}

.testimonial-card {
  background-color: #fff;
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  margin-bottom: 1.5rem;
  height: 100%;
}

.testimonial-card img {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 1rem;
}

.cta-section {
  background-color: var(--primary-color);
  color: #fff;
  padding: 4rem 0;
}

footer {
  background-color: var(--dark-bg);
  color: #fff;
  padding: 3rem 0 1rem;
}

footer a {
  color: #fff;
  text-decoration: none;
  transition: all 0.3s ease;
}

footer a:hover {
  color: var(--secondary-color);
  text-decoration: none;
}

.social-icons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  margin-right: 0.5rem;
  transition: all 0.3s ease;
}

.social-icons a:hover {
  background-color: var(--secondary-color);
  transform: translateY(-3px);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.5rem;
  margin-top: 2rem;
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-header h2 {
  position: relative;
  display: inline-block;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
}

.section-header h2::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 50px;
  height: 3px;
  background-color: var(--secondary-color);
}

.condition-item {
  padding: 1.5rem;
  border-radius: 5px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  margin-bottom: 1.5rem;
  transition: all 0.3s ease;
  background-color: #fff;
}

.condition-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.back-to-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: var(--secondary-color);
  color: #fff;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 1000;
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
}

/* Schema markup styling */
.schema-info {
  display: none;
}
.navbar-brand img {
  max-height: 70px !important; /* Increased size */
  width: auto;
}

footer .logo img, /* This targets any image inside an element with class "logo" in the footer */
footer img[alt="Holistic Healthcare Clinics Logo"] {
  /* This targets the specific image by its alt text */
  max-height: 200px !important;
  width: auto;
}

/* Base navbar styling */
.navbar {
  padding: 0.5rem 1rem;
}

/* Desktop logo size */
.navbar-brand img {
  max-height: 80px;
  width: auto;
}

/* Menu spacing for desktop */
@media (min-width: 992px) {
  .navbar-nav {
    width: 100%;
    display: flex;
    justify-content: space-between;
  }

  .navbar-nav .nav-item {
    padding: 0 10px;
  }

  /* Simplify the dropdown name to save space */
  .nav-link.dropdown-toggle {
    white-space: nowrap;
  }

  /* Prevent wrapping for About Us and Contact Us */
  .nav-item:nth-last-child(2) .nav-link,
  .nav-item:last-child .nav-link {
    white-space: nowrap;
  }

  /* Make the menu container wider */
  .navbar-collapse {
    flex-grow: 2;
  }

  /* Add non-breaking spaces in text */
  .nav-link {
    font-size: 0.95rem; /* Slightly smaller font */
  }
}

/* Mobile specific styles */
@media (max-width: 991.98px) {
  /* Mobile logo size - slightly smaller */
  .navbar-brand img {
    max-height: 50px;
  }

  /* Ensure the mobile nav wrapper keeps everything on one line */
  .mobile-nav-wrapper {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
  }

  /* Make menu full width below the top row */
  .navbar-collapse {
    width: 100%;
  }
}
