/* General Styling */
body {
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  margin: 0;
  padding: 0;
  background-color: #f8f9fa;
  color:#38755b !important; /* Ensure the text remains #38755b on hover */ 
  text-align: center;
  line-height: 1.6;
}

h1, h2, h3, h4 {
  font-weight: 300;
  margin: 0 0 20px 0;
  letter-spacing: 0.5px;
}

a {
  text-decoration: none;
  color: inherit;
}

/* ============================== */
/* ✅ Header Styling */
/* ============================== */
header {
  background-color: #fff;
  padding: 20px 40px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

/* ✅ Navbar */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: auto;
}

/* ✅ Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 16px;
}

.header-logo {
  width: 85px;
  height: 85px;
  border-radius: 50%;
  object-fit: cover;
}

.logo span {
  font-size: 30px;
  font-weight: 700;
  color: #38755b;
}

/* ✅ Navigation Links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 25px;
}

.nav-links a {
  color: #666;
  font-size: 16px;
  padding: 14px 20px;
  transition: color 0.3s ease;
}

.nav-links a:hover {
  color: #1e3a34;
}

/* ✅ Dropdown Menu */
.dropdown {
  position: relative;
}

.dropbtn {
  font-size: 16px;
  color: #666;
  background-color: #fff;
  border: none;
  padding: 14px 20px;
  cursor: pointer;
  transition: color 0.3s ease;
  display: flex;
  align-items: center;
}

.dropdown-content {
  display: none;
  position: absolute;
  background-color: #fff;
  min-width: 160px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  z-index: 1;
}

.dropdown-content a {
  color: #666;
  padding: 12px 16px;
  display: block;
  transition: background-color 0.3s ease;
}

.dropdown-content a:hover {
  background-color: #f1f1f1;
}

.dropdown:hover .dropdown-content {
  display: block;
}

.dropbtn::after {
  content: ' ▼';
  font-size: 20px;
  margin-left: 8px;
  transition: transform 0.3s ease;
}

.dropdown:hover .dropbtn::after {
  transform: rotate(180deg);
}

/* ✅ Book Now Button */
.book-now {
  background-color: #1E6857;
  color: #fff !important; /* Force white text color */
  padding: 12px 25px;
  border-radius: 50px;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.book-now:hover {
  background-color: #155247;
  transform: translateY(-2px);
}

/* ============================== */
/* ✅ Hamburger Menu for Mobile */
/* ============================== */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.hamburger div {
  width: 25px;
  height: 3px;
  background-color: #666;
  transition: all 0.3s ease;
}

/* ✅ Mobile Navigation (Left-Aligned) */
@media (max-width: 768px) {
  .navbar {
    position: relative;
  }

  .nav-links {
    display: flex;
    flex-direction: column;
    align-items: flex-start; /* Align items to the left */
    gap: 10px;
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    background-color: #fff;
    padding: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    z-index: 99;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
  }

  .nav-links.mobile-active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .nav-links a {
    padding: 12px;
    font-size: 16px;
    text-align: left; /* Align text to the left */
    width: 100%; /* Stretch links */
  }

  .dropdown-content {
    position: static;
    background-color: #fff;
    box-shadow: none;
    text-align: left; /* Align dropdown text to the left */
  }

  .book-now {
    width: auto;
    padding: 10px 20px;
    font-size: 16px;
  }

  .hamburger {
    display: flex;
  }
}

/* ✅ Hamburger Animation */
.hamburger.active div:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.hamburger.active div:nth-child(2) {
  opacity: 0;
}

.hamburger.active div:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* ✅ General Responsive Adjustments */
@media (max-width: 1024px) {
  .header-logo {
    width: 70px;
    height: 70px;
  }

  .logo span {
    font-size: 24px;
  }

  .nav-links {
    gap: 15px;
  }

  .book-now {
    padding: 10px 20px;
  }
}

@media (max-width: 768px) {
  .header-logo {
    width: 60px;
    height: 60px;
  }

  .nav-links a {
    font-size: 14px;
  }

  .book-now {
    padding: 10px 18px;
    font-size: 14px;
  }
}

/* Welcome Section */
.welcome {
  background-color: #eaf5ec;
  padding: 80px 20px; /* Reduced padding */
}

.container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1100px;
  margin: auto;
  gap: 40px;
}

/* Text Content */
.text-content {
  max-width: 50%;
  text-align: left;
}

.subheading {
  font-size: 18px;
  font-weight: 600;
  color: #38755b;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.main-heading {
  font-size: 40px;
  font-weight: 700;
  color: #1e3a34;
  margin-bottom: 20px;
}

.description {
  font-size: 16px; /* Slightly smaller for better fit */
  color: #555;
  margin-bottom: 24px;
}

/* Image Section */
.image-content {
  width: 50%;
  display: flex;
  justify-content: center; /* Center image horizontally */
}

.image-content img {
  width: 100%;
  max-width: 450px; /* Limit image size */
  border-radius: 12px;
  box-shadow: 5px 8px 20px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease;
}

.image-content img:hover {
  transform: scale(1.02);
}

/* ✅ Mobile Styling */
@media (max-width: 768px) {
  .container {
    flex-direction: column; /* Stack content vertically */
    text-align: center;
    gap: 30px;
  }

  .text-content {
    max-width: 100%; /* Full width for text */
    text-align: center;
  }

  .main-heading {
    font-size: 32px; /* Adjust size for smaller screens */
  }

  .description {
    font-size: 14px; /* Scale down for mobile */
    margin-bottom: 20px;
  }

  .image-content {
    width: 100%; /* Let image scale naturally */
    display: flex;
    justify-content: center;
  }

  .image-content img {
    max-width: 300px; /* Reduce max size for better scaling */
    margin: 0 auto; /* Center image */
  }
}

/* Who We Are Section */
.section.who-we-are {
  background-color: #1E6857;
  color: #fff;
  padding: 60px 20px;
}

.section.who-we-are p {
  max-width: 900px;
  margin: auto;
  font-size: 18px;
}

/* Our Caregiving Approach Section */
.section.exceptional-care {
  background-color: #f4f9f4;
  padding: 60px 20px;
  text-align: center;
}

.approach-container {
  display: flex;
  justify-content: center;
  gap: 30px;
  max-width: 1200px;
  margin: auto;
  flex-wrap: wrap; /* Ensure wrapping on smaller screens */
}

.approach-item {
  flex: 1;
  background-color: #fff;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
  text-align: center;
  transition: transform 0.3s ease;
  max-width: 320px;
}

.approach-item:hover {
  transform: translateY(-5px);
}

.approach-item img {
  width: 120px; /* Increased size */
  height: 120px; /* Increased size */
  margin-bottom: 15px;
  border-radius: 50%;
  object-fit: cover; /* Ensures images are not distorted */
}

.approach-item h3 {
  margin-bottom: 10px;
  color: #2c3e50;
  font-size: 22px;
  font-weight: 600;
}

.approach-item p {
  color: #555;
  font-size: 16px;
}

/* Button Styles for Approach Section */
.approach-item button,
.approach-item a.btn-consultation {
  background-color: #d5e8d4;
  color: #2c3e50;
  padding: 12px 20px;
  border-radius: 20px;
  font-size: 16px;
  font-weight: bold;
  transition: background 0.3s ease;
  display: inline-block;
  border: none;
}

.approach-item button:hover,
.approach-item a.btn-consultation:hover {
  background-color: #b3d6b1;
}

/* ✅ Mobile Responsive Fixes */
@media (max-width: 1024px) {
  .approach-container {
    gap: 20px; /* Reduce gap on smaller screens */
  }

  .approach-item {
    flex: 1 1 calc(50% - 20px); /* Show 2 items per row on tablets */
    padding: 25px;
  }

  .approach-item h3 {
    font-size: 20px;
  }

  .approach-item p {
    font-size: 14px;
  }
}

@media (max-width: 768px) {
  .approach-container {
    gap: 15px;
  }

  .approach-item {
    flex: 1 1 100%; /* Show 1 item per row on mobile */
    padding: 20px;
  }

  .approach-item img {
    width: 70px;
    height: 70px;
  }

  .approach-item h3 {
    font-size: 18px;
  }

  .approach-item p {
    font-size: 14px;
  }

  .approach-item button,
  .approach-item a.btn-consultation {
    font-size: 14px;
    padding: 10px 18px;
  }
}

/* Founders Section */
.section.founders {
  background-color: #F9F9F9;
  padding: 60px 20px;
  text-align: center;
}

.founders-container {
  display: flex;
  justify-content: center;
  gap: 30px;
  max-width: 1200px;
  margin: auto;
  flex-wrap: wrap; /* Ensure wrapping on smaller screens */
}

.founder-item {
  background: #fff;
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
  text-align: center;
  flex: 1;
  max-width: 320px;
  transition: transform 0.3s ease;
}

.founder-item:hover {
  transform: translateY(-5px);
}

.founder-item img {
  width: 260px; /* Fixed width */
  height: 260px; /* Fixed height */
  object-fit: cover; /* Prevent distortion while covering the area */
  border-radius: 12px;
  margin-bottom: 15px;
}

.founder-item h3 {
  font-size: 22px;
  color: #2C3E50;
  font-weight: 600;
}

.founder-item h4 {
  font-size: 18px;
  color: #7D8A92;
  font-weight: 500;
  margin-bottom: 10px;
}

.founder-item p {
  font-size: 16px;
  color: #555;
}

/* Button for Founders */
.founder-item button,
.founder-item .btn-contact-us {
  background-color: #d5e8d4;
  color: #2C3E50;
  padding: 12px 20px;
  border-radius: 20px;
  font-size: 16px;
  font-weight: bold;
  transition: background 0.3s ease;
  border: none;
  cursor: pointer;
}

.founder-item button:hover,
.founder-item .btn-contact-us:hover {
  background-color: #b3d6b1;
}

/* ✅ Mobile Responsive Fixes */
@media (max-width: 1024px) {
  .founders-container {
    gap: 20px; /* Reduce gap on smaller screens */
  }

  .founder-item {
    flex: 1 1 calc(50% - 20px); /* Display 2 items per row on tablets */
  }
}

@media (max-width: 768px) {
  .founders-container {
    gap: 15px; /* Smaller gap for mobile */
  }

  .founder-item {
    flex: 1 1 100%; /* Display 1 item per row on mobile */
    padding: 20px; /* Adjust padding */
  }

  .founder-item img {
    max-width: 220px; /* Slightly smaller images on mobile */
  }

  .founder-item h3 {
    font-size: 20px;
  }

  .founder-item h4 {
    font-size: 16px;
  }

  .founder-item p {
    font-size: 14px;
  }

  .founder-item button,
  .founder-item .btn-contact-us {
    font-size: 14px;
    padding: 10px 18px; /* Adjust button size */
  }
}

/* Testimonials Section */
.testimonial-container {
  max-width: 1200px;
  margin: auto;
  padding: 40px;
  position: relative;
  background-color: #1E6857;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.testimonial-img {
  width: 200px;
  height: 300px;
  object-fit: cover;
  border-radius: 8px;
  margin-right: 40px;
}

.testimonial-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 25px;
  border-radius: 8px;
  background: linear-gradient(145deg, #fff, #f4f4f4);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08);
  transition: box-shadow 0.3s ease;
  margin-bottom: 30px;
}

.testimonial-item:hover {
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.testimonial-text {
  flex: 1;
  color: #333;
  font-size: 1.1rem;
  font-style: italic;
}

.testimonial-text h4 {
  margin-top: 15px;
  font-size: 1.2rem;
  font-weight: bold;
  color: #006400;
}

/* Navigation Arrows for Testimonials */
.testimonial-prev, .testimonial-next {
  background: transparent;
  border: none;
  font-size: 2.5rem;
  color: #fff;
  cursor: pointer;
  padding: 15px 20px;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  transition: transform 0.3s ease, color 0.3s ease;
  z-index: 10;
}

.testimonial-prev {
  left: 10px;
}

.testimonial-next {
  right: 10px;
}

.testimonial-prev:hover, .testimonial-next:hover {
  color: #004d00;
  transform: translateY(-50%) scale(1.1);
}

/* Testimonials Overall Section */
.testimonials {
  background: #e6f2e6;
  padding: 50px 20px;
}

/* Contact Section */
.contact-us {
  background-color: #f7fcf7;
  padding: 60px 20px;
  text-align: center;
}

.contact-us h2 {
  font-size: 42px;
  font-weight: 600;
  color: #38755b;
  margin-bottom: 15px;
}

.contact-us p {
  font-size: 18px;
  color: #888;
  max-width: 700px;
  margin: 0 auto 30px;
}

.btn-consultation {
  background-color: #215c4a;
  color: #fff;
  padding: 12px 24px;
  border-radius: 30px;
  font-size: 16px;
  font-weight: bold;
  transition: background-color 0.3s ease;
  display: inline-block;
}

.btn-consultation:hover {
  background-color: #1a4a3a;
}

/* ========== FOOTER ========== */
footer {
  background-color: #2d3d33;
  padding: 50px 10%;
  color: #ffffff;
  text-align: center;
}

.footer-container {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 30px;
  align-items: flex-start;
}

.footer-logo {
  flex: 1;
  min-width: 200px;
  text-align: left;
}

.footer-logo .logo-placeholder {
  width: 60px;
  height: 60px;
  background-color: #ffffff;
  color: #2d3d33;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 18px;
  border-radius: 50%;
  margin-bottom: 12px;
}

.footer-logo p {
  font-size: 14px;
  opacity: 0.7;
  line-height: 1.6;
}

/* Footer Links Styling */
.footer-links,
.footer-services,
.footer-social {
  flex: 1;
  min-width: 150px;
  text-align: left;
}

.footer-links h4,
.footer-services h4,
.footer-social h4 {
  font-size: 16px;
  margin-bottom: 14px;
  font-weight: 600;
  color: #e9c46a; /* Gold Accent */
}

.footer-links ul,
.footer-services ul,
.footer-social ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li,
.footer-services li,
.footer-social li {
  margin-bottom: 10px;
}

.footer-links a,
.footer-services a,
.footer-social a {
  color: #ffffff;
  font-size: 14px;
  opacity: 0.8;
  transition: color 0.3s ease, opacity 0.3s ease;
  text-decoration: none;
  display: inline-block;
}

.footer-links a:hover,
.footer-services a:hover,
.footer-social a:hover {
  color: #e9c46a;
  opacity: 1;
}

/* Footer Logo */
.footer-logo-img {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  margin-bottom: 12px;
}

/* Social Media Icons */
.footer-social .social-icons {
  display: flex;
  gap: 12px;
  margin-top: 10px;
}

.footer-social .social-icons a {
  color: #ffffff;
  font-size: 20px;
  transition: color 0.3s ease, transform 0.3s ease;
}

.footer-social .social-icons a:hover {
  color: #e9c46a;
  transform: translateY(-3px);
}

/* ✅ Responsive Styling */
@media (max-width: 1024px) {
  .footer-container {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
    align-items: flex-start;
    padding: 40px 20px;
  }

  .footer-logo {
    text-align: center;
    margin-bottom: 20px;
  }

  .footer-links,
  .footer-services,
  .footer-social {
    flex: 1 1 calc(50% - 30px); /* Ensure two columns on tablets */
    text-align: left;
  }

  .footer-social .social-icons {
    justify-content: flex-start;
  }
}

@media (max-width: 768px) {
  .footer-container {
    flex-direction: column;
    gap: 20px;
    padding: 30px 15px;
  }

  .footer-logo,
  .footer-links,
  .footer-services,
  .footer-social {
    text-align: center;
    width: 100%; /* Full width on smaller screens */
  }

  .footer-social .social-icons {
    justify-content: center;
  }
}
