/* Updated root variables with correct color #00674A */
:root {
  --primary-color: #00674a;
  --primary-dark: #005238;
  --primary-light: #007d5a;
  --text-dark: #2c3e50;
  --text-muted: #6c757d;
  --bg-light: #f8f9fa;
}

/* Updated Global Styles with Baloo Bhai 2 font */
body {
  font-family: "Baloo Bhai 2", sans-serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
  color: var(--text-dark);
  line-height: 1.6;
  margin: 0;
  padding: 0;
}

/* Removed overflow-x: hidden from html and body to fix scrollbar issues */
html,
body {
  overflow-x: clip;
  max-width: 100%;
}

/* Bootstrap Override */
.btn-primary {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

.btn-primary:hover {
  background-color: var(--primary-dark);
  border-color: var(--primary-dark);
}

.bg-primary {
  background-color: var(--primary-color) !important;
}

.text-primary {
  color: var(--primary-color) !important;
}

/* Navigation */
.navbar {
  padding: 1rem 0;
}

.navbar-brand {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.header-logo {
  height: 60px;
  width: auto;
}

.nav-link {
  color: var(--text-dark);
  font-weight: 500;
  padding: 0.5rem 1rem;
}

/* Added mobile menu alignment to left */
@media (max-width: 991px) {
  .navbar-nav {
    align-items: flex-start !important;
  }

  .navbar-nav .nav-item {
    width: 100%;
  }

  .navbar-nav .btn {
    text-align: left;
    width: auto;
  }
}

/* Hero Section */
.hero-section {
  height: 500px;
  position: relative;
  width: 100%;
}

.hero-image-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

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

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to right, rgba(0, 103, 74, 0.7) 0%, rgba(0, 103, 74, 0.5) 50%, transparent 100%);
  z-index: 1;
}

.hero-content {
  bottom: 80px;
  left: 0;
  right: 0;
  z-index: 2;
}

.hero-decoration {
  position: absolute;
  right: -100px;
  top: 0;
  width: 400px;
  height: 100%;
  background: white;
  border-radius: 50% 0 0 50%;
  z-index: 1;
}

/* Content Section */
.content-section {
  padding: 4rem 0;
}

.section-title {
  color: var(--primary-color);
  font-weight: 600;
  font-size: 1.5rem;
}

.section-subtitle {
  font-weight: 600;
  font-size: 1.2rem;
}

.content-text p {
  margin-bottom: 1.5rem;
  text-align: justify;
}

/* Doctor Section */
.doctor-section {
  padding: 5rem 0;
}

.doctor-image-container {
  max-width: 450px;
}

.doctor-logo-overlay {
  position: absolute;
  top: 20px;
  left: 20px;
  z-index: 2;
}

/* Removed background-color: white and border-radius: 50% to show transparent logo properly */
.doctor-overlay-logo {
  width: 80px;
  height: auto;
  padding: 10px;
}

.doctor-info h2 {
  font-weight: 700;
  color: var(--text-dark);
}

.doctor-info ul li {
  padding: 0.5rem 0;
}

.bi-check-circle-fill {
  font-size: 1.2rem;
}

/* Footer */
.footer {
  position: relative;
  background-color: var(--primary-color) !important;
  margin: 0;
  padding-bottom: 2rem;
}

/* Removed background-color: white and border-radius: 50% to show transparent logo properly */
.footer-logo {
  width: 60px;
  height: auto;
  padding: 10px;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a:hover {
  text-decoration: underline !important;
}

.footer-decoration {
  position: absolute;
  right: -200px;
  bottom: -100px;
  width: 600px;
  height: 600px;
  border: 80px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  pointer-events: none;
}

/* CTA Banner */
.cta-banner {
  background: linear-gradient(135deg, #23A681 0%, #00674a 100%);
  border-left: 4px solid #005238;
  color: white;
}

.cta-banner h4 {
  color: white;
}

.cta-banner .text-muted {
  color: rgba(255, 255, 255, 0.9) !important;
}

.cta-banner .btn-success {
  background-color: #25d366;
  border-color: #25d366;
  font-weight: 600;
  transition: all 0.3s ease;
}

.cta-banner .btn-success:hover {
  background-color: #20ba5a;
  border-color: #20ba5a;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
}

/* Treatment Items with Images */
.treatment-item-with-image {
  transition: all 0.3s ease;
}

.treatment-image-wrapper {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.treatment-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
  border-radius: 12px;
  transition: transform 0.5s ease;
}

.treatment-image-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(0, 103, 74, 0.6) 0%, rgba(0, 125, 90, 0.3) 100%);
  border-radius: 12px;
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

.treatment-item-with-image:hover .treatment-image-wrapper {
  box-shadow: 0 8px 24px rgba(0, 103, 74, 0.2);
  transform: translateY(-5px);
}

.treatment-item-with-image:hover .treatment-image {
  transform: scale(1.05);
}

.treatment-item-with-image:hover .treatment-image-overlay {
  opacity: 0.5;
}

/* Responsive adjustments for treatment images */
@media (max-width: 767px) {
  .treatment-image {
    height: 200px;
  }

  .treatment-item-with-image .col-md-4 {
    margin-top: 1rem;
  }
}


/* Responsive Styles */
@media (max-width: 991px) {
  .navbar-brand {
    position: static;
    transform: none;
  }

  .hero-section {
    height: 400px;
  }

  .hero-content {
    bottom: 40px;
    padding: 0 15px;
  }

  .hero-content h1 {
    font-size: 2rem;
  }

  .hero-decoration {
    display: none;
  }

  .doctor-image-container {
    max-width: 100%;
  }

  .footer-decoration {
    width: 400px;
    height: 400px;
  }
}

@media (max-width: 767px) {
  .hero-section {
    height: 350px;
  }

  .hero-content h1 {
    font-size: 1.5rem;
  }

  .content-text p {
    text-align: left;
  }
}
