/* ======================================================================
   Global Reset & Base Styles
====================================================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  font-family: 'Roboto', sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #fff;
}

/* ======================================================================
 Header Styles
====================================================================== */
/* Navbar */
.site-header {
  background-color: #fff;
  border-bottom: 1px solid #ddd;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 100%;
  padding: 0px; /* Adjust this if needed */
  margin: 0;
}

/* ✅ Increase Logo Size and Ensure Proper Scaling */
.logo img {
  max-height: 80px !important; /* Increase size and force override */
  width: auto !important; /* Maintain aspect ratio */
  display: block;
}

/* Ensure no parent container is limiting its size */
.logo {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100px; /* Ensures enough space for the logo */
}


/* Ensure navigation stays on the right */
.main-navigation {
  flex: 1; /* Allows it to take up available space */
  display: flex;
  justify-content: flex-end;
}

.main-navigation ul {
  list-style: none;
  display: flex;
  margin: 0;
  padding: 0;
}

.main-navigation ul li {
  position: relative;
}

.main-navigation ul li a {
  display: inline-block;
  padding: 15px 20px;
  text-decoration: none;
  color: #333;
  transition: color 0.3s ease;
  position: relative;
}

/* Add spacer lines */
.main-navigation ul li:not(:last-child) a::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 0;
  width: 1px;
  height: 20px;
  background-color: #ddd;
  transform: translateY(-50%);
}

.main-navigation ul li a:hover {
  color: #007BFF;
}

/* ============================= */
/* ✅ Fix Mobile Menu Text Visibility */
/* ============================= */

#mobile-menu {
  display: none; /* Ensure it's hidden initially */
  background-color: white; /* Ensure background is visible */
  color: black !important; /* Ensure text is visible */
  padding: 15px 0;
  width: 100%;
}

#mobile-menu a {
  color: black !important; /* Force text color to be visible */
  font-size: 1rem;
  padding: 10px 15px;
  display: block;
  text-align: center;
}

#mobile-menu a:hover {
  background-color: rgba(0, 0, 0, 0.1); /* Add hover effect */
}



/* Mobile Menu */
.hamburger {
  display: none;
  font-size: 24px;
  cursor: pointer;
}

@media (max-width: 768px) {
  .main-navigation ul {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 60px;
    left: 0;
    width: 100%;
    background: #ffffff;
    box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.1);
    padding: 10px;
  }
  .main-navigation ul.active {
    display: flex;
  }
  .hamburger {
    display: block;
  }
}

/* ✅ Fix Overlapping Text Between Sections */
@media (max-width: 768px) {
  /* Ensure spacing between home-intro and hospital-group-info */
  .home-intro {
      margin-bottom: 30px; /* Add spacing below intro */
  }

  .hospital-group-info {
      margin-top: 30px; /* Add spacing above hospital section */
  }

  /* Ensure paragraphs do not overlap */
  .home-intro p,
  .hospital-group-info p {
      font-size: 1rem;
      line-height: 1.6; /* Improve readability */
      margin-bottom: 20px; /* Add spacing below paragraphs */
  }
}


/* ✅ Ensure No Gap Between Header and Hero Section */
@media (max-width: 768px) {
  /* Ensure header sticks properly and covers top fully */
  .site-header {
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      z-index: 1000;
      height: 100px; /* Define fixed height */
      background-color: white; /* Ensure it's visible */
  }

  /* Ensure hero section starts directly below header */
  .hero {
      margin-top: 0; /* Remove any extra margin */
      padding-top: 80px; /* Adjust to account for header height */
      background-size: cover;
      background-position: center;
  }
}





/* ======================================================================
 Hero Section (With Background Image)
====================================================================== */
.hero {
  position: relative;
  height: 70vh; /* Adjust height as needed */
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  margin-top: 20px; /* Pushes entire hero section down */
}


.hero .hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.3); /* Reduced darkness */
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: #fff;
  margin-top: 90px;
}

.hero-content h1 {
  font-size: 2.5rem;
  font-weight: bold;
  color: #ffffff;  /* Ensure white text */
}

.hero-content p {
  font-size: 1.2rem;
  color: #ffffff;  /* Ensure white text */
}

.learn-more-btn {
  background-color: #2e46fa;
  color: white;
  padding: 12px 24px;
  border-radius: 5px;
  text-decoration: none;
  display: inline-block;
  margin-top: 10px; /* Increase this value for more space */
}

.learn-more-btn:hover {
  background-color: #0056b3;
}


/* ======================================================================
 Introductory Section
====================================================================== */
.home-intro {
  text-align: center;
  padding: 60px 20px;
  margin-top: -20px;
}

.home-intro h2 {
  font-size: 2rem;
  color: #000000;
}

/* ======================================================================
 Hospital & Group Information
====================================================================== */
.hospital-group-info {
  max-width: 1000px;
  margin: 0 auto;
  padding: 20px;
  text-align: justify;
  margin-top: -50px;
}

.hospital-group-info p {
  font-size: 1rem;
  color: #444;
  line-height: 1.8;
  margin-top: -20px;
}

/* ======================================================================
 Two-Column Layout
====================================================================== */
.info-locations {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  max-width: 1000px;
  margin: 50px auto;
  gap: 30px;
  margin-top: 10px;
}

.info-left {
  flex: 1.5;
  min-width: 40%;
  text-align: justify;
}

.info-left p {
  font-size: 1rem;
  line-height: 1.8;
  color: #444;
}

.image-row {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 20px;
}

.image-row img {
  width: 100%;
  max-width: 150px;
  height: auto;
  border-radius: 8px;
}

.info-right {
  flex: none;  /* Remove flex growth so it fits content */
  width: auto; /* Let it adjust based on content */
  max-width: 50%; /* Prevent it from getting too wide */
  background: #fff;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  display: inline-block; /* Shrink-wrap the box around content */
}


.info-right h3 {
  font-size: 1.4rem;
  color: #2e46fa;
  margin-bottom: 10px;
}

.info-right ul {
  list-style-type: none;
  padding: 0;
}

.info-right ul li {
  font-size: 1rem;
  color: #444;
  margin-bottom: 8px;
}

/* ======================================================================
   Call-to-Action Box (Consistent Across All Pages)
====================================================================== */
.call-to-action {
  background-color: #2e46fa;
  color: #ffffff;
  text-align: center;
  padding: 15px;
  font-size: 1rem;
}

.call-to-action a {
  color: #ffffff;
  text-decoration: none;
  font-size: 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  border-radius: 5px;
  transition: background-color 0.3s ease;
}

.call-to-action a:hover {
  background-color: #0056b3;
}

.call-to-action i {
  margin-right: 8px;  /* Adds spacing between the icon & text */
  font-size: 1.2rem;  /* Adjusts icon size */
}

html {
  scroll-behavior: smooth;
}



/* ======================================================================
 Footer
====================================================================== */
.site-footer {
  background-color: #222;
  color: #fff;
  text-align: center;
  padding: 15px;
  font-size: 0.9rem;
}

/* ======================================================================
   Universal Page Intro Section (Applied to All Pages)
====================================================================== */
.page-intro {
  text-align: center;
  padding: 50px 10px; /* Adjust height */
  background-color: #f5f5f5;
  display: flex;
  flex-direction: column;
  justify-content: center; /* Centers text vertically */
  align-items: center;
  margin-top: 100px;
}

.page-intro h1 {
  font-size: 2.5rem;
  color: #2e46fa;
  margin-bottom: 10px;
}

.page-intro p {
  font-size: 1.1rem;
  color: #444;
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.6;
}


/* ======================================================================
 Responsive Design
====================================================================== */
@media (max-width: 1024px) {
  .info-locations {
    flex-direction: column;
  }

  .info-left, .info-right {
    min-width: 100%;
  }

  .image-row {
    flex-direction: column;
    align-items: center;
  }
}

@media (max-width: 768px) {
  .site-header .container {
    flex-direction: row;
    align-items: center;
  }

  .main-navigation ul {
    flex-direction: row;
  }

  .hero {
    height: 50vh;
  }

  .home-intro {
    padding: 20px;
  }
}

@media (max-width: 480px) {
  .info-left p,
  .hospital-group-info p {
    font-size: 1rem;
  }

  .call-to-action {
    font-size: 0.9rem;
  }
}

/* ======================================================================
 Contact Page Styles (With Hover Shadow Effect)
====================================================================== */
.contact-info {
  width: 100%;
  padding: 20px;
  background: #fff;
  margin: 0;
  box-sizing: border-box;
  margin-top: 120px;
  text-align: center;
}

.contact-info h1 {
  color: #2e46fa;
  margin-bottom: 20px;
  font-size: 2rem;
}

.contact-info p {
  font-size: 1rem;
  color: #555;
  margin-bottom: 20px;
}

/* ======================================================================
   Contact Form & Details Layout
====================================================================== */
.contact-container {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 50px;
  flex-wrap: wrap;
  padding: 30px;
}

/* Shared Box Styles */
.contact-form, .hospital-info {
  width: 30%;
  padding: 30px;
  background-color: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

/* Hover Effect */
.contact-form:hover, .hospital-info:hover {
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
  transform: translateY(-5px);
}

/* Form Styling */
.contact-form label {
  font-weight: bold;
  display: block;
  text-align: left;
  margin-bottom: 8px;
  color: #333;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 5px;
  margin-bottom: 15px;
  font-size: 1rem;
}

/* Submit Button */
.contact-form button {
  background-color: #2e46fa;
  color: #fff;
  padding: 12px 20px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.contact-form button:hover {
  background-color: #1a2bb8;
}

/* Contact Details Box */
.hospital-info h2 {
  font-size: 1.5rem;
  color: #2e46fa;
  margin-bottom: 15px;
}

.hospital-info h3 {
  font-size: 1.3rem;
  color: #2e46fa;
  margin-bottom: 8px;
  margin-top: 20px;


}

.hospital-info p, .hospital-info ul li {
  font-size: 1rem;
  line-height: 1.6;
  color: #444;
  margin-bottom: 10px;
  font-weight: bold;
}

.hospital-info ul {
  list-style: none;
  padding: 0;
}

.admin-contact img {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 10px;
}


/* Google Maps Full Width */
.map-container iframe {
  width: 100%;
  height: 400px;
  border: none;
  margin-bottom: -10px;
  margin-top: -20px;
}

/* Responsive Design */
@media (max-width: 768px) {
  .contact-container {
    flex-direction: column;
    align-items: center;
  }

  .contact-form, .hospital-info {
    width: 90%;
  }
}


/* ===========================================================
   WHO WE ARE PAGE STYLES (Without Bootstrap)
=========================================================== */

/* Team Section */
.team-section {
  padding: 40px 20px;
  background-color: #fff;
}

.team-container {
  display: flex;
  flex-wrap: wrap;             
  justify-content: center;      
  gap: 20px;                    
  padding: 20px;
  max-width: 1200px;            
  margin: 0 auto;
  margin-top: -20px;
}

.team-member {
  background-color: #fff;
  border: 1px solid #ccc;
  border-radius: 10px;
  padding: 20px;               
  text-align: center;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1); 
  transition: transform 0.3s, box-shadow 0.3s;
  width: 300px;                
  box-sizing: border-box;
}

.team-member:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.zoom {
  object-fit: cover;
}

.team-member img {
  width: 100%;
  height: 350px;  
  object-fit: cover; 
}


.team-member h3 {
  margin: 15px 0 8px;       
  font-size: 1.4rem;        
  color: #2e46fa;
}

.team-member p {
  font-size: 1rem;       
  color: #555;
  margin: 5px 0;
}

/* Responsive Design */
@media (max-width: 768px) {
  .team-container {
    justify-content: center;
  }

  .team-member {
    width: 100%;
    max-width: 280px;
  }
}



/* ======================================================================
   Resources Section
====================================================================== */
.resources-section {
  padding: 50px 20px;
  background-color: #ffffff;
  text-align: center;
}

.resources-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); /* Responsive grid */
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

/* Individual Resource Cards */
.resource-card {
  background: #f8f9fa;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.resource-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.resource-card i {
  font-size: 40px;
  color: #2e46fa;
  margin-bottom: 15px;
}

.resource-card h3 {
  font-size: 1.4rem;
  color: #333;
  margin-bottom: 10px;
}

.resource-card p {
  font-size: 1rem;
  color: #666;
  margin-bottom: 15px;
}

.resource-card a {
  display: inline-block;
  padding: 10px 15px;
  background: #2e46fa;
  color: white;
  border-radius: 5px;
  text-decoration: none;
  transition: background 0.3s ease;
}

.resource-card a:hover {
  background: #1a2bb8;
}

/* Responsive Design */
@media (max-width: 768px) {
  .resources-container {
    grid-template-columns: 1fr;
  }
}


/* ======================================================================
Our Fees CSS
====================================================================== */
/* Fees Page Main Container */
.fees-container {
  text-align: center;
  padding: 60px 20px;
  max-width: 1000px;
  margin: 0 auto;
}

.fees-container h2 {
  font-size: 2rem;
  color: #2e46fa;
  margin-bottom: 20px;
}

.fees-container p {
  font-size: 1.1rem;
  color: #444;
  line-height: 1.6;
  margin-bottom: 40px;
}

/* Payment Options Layout */
.fees-options {
  display: flex;
  justify-content: space-between;
  align-items: stretch; /* Ensures equal height for all columns */
  text-align: center;
  gap: 0; /* No extra space between items */
  max-width: 900px;
  margin: 0 auto;
  position: relative;
}

/* Individual Fee Section */
.fee-item {
  flex: 1; /* Makes sure all columns have equal width */
  text-align: center;
  padding: 0 20px;
  position: relative;
}

/* BLUE Headers for Each Payment Type */
.fee-item h3 {
  font-size: 1.3rem;
  color: #2e46fa; /* Blue headers */
  margin-bottom: 10px;
  padding-bottom: 5px;
  border-bottom: 2px solid #ccc; /* Adds horizontal line under headers */
}

/* Vertical Line Separator (Inside Only, No Outside Borders) */
.fee-item:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 10%;
  right: 0;
  width: 2px;
  height: 80%;
  background-color: #ccc;
}

/* Description Text */
.fee-item p {
  font-size: 1rem;
  color: #444;
  line-height: 1.5;
  margin-top: 15px;
}

/* Additional Fee Information Text */
.fees-info {
  text-align: center;
  font-size: 1.1rem;
  color: #444;
  margin-top: -35px;
  margin-bottom: 20px;
}

/* Make "Contact Us" Link Blue */
.fees-info a {
  color: #2e46fa;
  text-decoration: none;
  font-weight: bold;
}

.fees-info a:hover {
  text-decoration: underline;
}


/* Responsive Design */
@media (max-width: 768px) {
  .fees-options {
      flex-direction: column;
      gap: 30px;
  }

  .fee-item:not(:last-child)::after {
      display: none; /* Remove vertical lines on small screens */
  }
}


/* ===========================================================
   WHAT WE DO PAGE STYLES
=========================================================== */

/* Main Content Container */
.what-we-do-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 60px 20px;
  text-align: justify;
}

/* Section Headings */
.what-we-do-container h2 {
  font-size: 2rem;
  color: #2e46fa;
  text-align: left;
  margin-bottom: 5px;
  margin-top: -30px;
}

.what-we-do-container h3 {
  font-size: 1.6rem;
  color: #2e46fa;
  margin-top: 30px;
  border-left: 5px solid #2e46fa;
  padding-left: 10px;
}

.what-we-do-container p {
  font-size: 1rem;
  line-height: 1.8;
  color: #444;
  margin-bottom: 20px;
}

/* ======================================================================
   Anaesthetic Types (Cards at Bottom)
====================================================================== */
.anaesthetic-cards {
  padding: 40px 20px;
  background-color: #ffffff;
  text-align: center;
}

.card-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); /* Responsive grid */
  gap: 30px;
  max-width: 900px;
  margin: 0 auto;
}

/* Clickable Cards */
.info-card {
  background: #f8f9fa;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-decoration: none; /* Remove default underline */
  color: inherit; /* Maintain text color */
  display: block;
}

.info-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  background-color: #e9ecef;
}

.info-card i {
  font-size: 40px;
  color: #2e46fa;
  margin-bottom: 15px;
}

.info-card h3 {
  font-size: 1.4rem;
  color: #333;
  margin-bottom: 10px;
}

.info-card p {
  font-size: 1rem;
  color: #666;
  margin-bottom: 15px;
}

/* Simple Resources Text Link */
.resources-text {
  text-align: center;
  font-size: 1.1rem;
  margin-top: -60px;
  margin-bottom: 20px;
}

.resources-text a {
  color: #2e46fa; /* Blue color for link */
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

.resources-text a:hover {
  color: #1a2bb8; /* Darker blue on hover */
}

/* Responsive Design */
@media (max-width: 768px) {
  .card-container {
    grid-template-columns: 1fr;
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero {
    height: 50vh;
  }

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

  .hero-content p {
    font-size: 1rem;
  }

  .what-we-do-container {
    padding: 40px 15px;
  }

  .what-we-do-container h2 {
    font-size: 1.8rem;
  }

  .what-we-do-container h3 {
    font-size: 1.4rem;
  }
}

/* ======================================================================
Responsive Design
====================================================================== */
@media (max-width: 768px) {
  .contact-container {
      flex-direction: column;
      align-items: center;
  }

  .contact-form,
  .hospital-info {
      width: 90%;
      margin-bottom: 20px;
  }

  .map-container iframe {
      height: 300px;
  }
}

@media (max-width: 480px) {
  .contact-info h1 {
      font-size: 1.5rem;
  }

  .contact-form input,
  .contact-form textarea {
      padding: 12px;
  }

  .contact-form button {
      padding: 12px 20px;
      font-size: 0.9rem;
  }

  .call-to-action a {
      font-size: 0.8rem;
      padding: 8px 15px;
  }
}


/* Mobile Menu */
.hamburger {
  display: none;
  font-size: 24px;
  cursor: pointer;
}

@media (max-width: 768px) {
  .hamburger {
    display: block;
  }

  .main-navigation ul {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 60px;
    left: 0;
    width: 100%;
    background: #ffffff;
    box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.1);
    padding: 10px;
  }

  .main-navigation ul.active {
    display: flex;
  }

  .main-navigation ul li {
    text-align: center;
    width: 100%;
  }

  .main-navigation ul li a {
    display: block;
    padding: 15px;
  }
}


/* ============================= */
/* ✅ Mobile Responsiveness Fixes */
/* ============================= */

/* Ensure sections have proper padding on mobile */
@media (max-width: 768px) {
    section {
        padding: 20px 5%;
    }

    /* Ensure images scale correctly */
    img {
        max-width: 100%;
        height: auto;
    }

    /* Stack flex columns vertically on mobile */
    .info-locations {
        flex-direction: column;
    }

    .info-left, .info-right {
        width: 100%;
        text-align: center;
    }

    /* Center-align text for better readability */
    h1, h2, h3, p {
        text-align: center;
    }
}

/* ============================= */
/* ✅ Responsive Navigation Fixes */
/* ============================= */

@media (max-width: 768px) {
    /* Ensure navbar collapses properly */
    .hamburger {
        display: block;
    }

    .main-navigation ul {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 60px;
        left: 0;
        width: 100%;
        background: #ffffff;
        box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.1);
        padding: 10px;
        z-index: 999;
    }

    .main-navigation ul.active {
        display: flex;
    }

    .main-navigation ul li {
        text-align: center;
        width: 100%;
    }

    .main-navigation ul li a {
        display: block;
        padding: 15px;
    }
}

/* ============================= */
/* ✅ Button & Touch-Friendly Fixes */
/* ============================= */

button, a {
    padding: 12px 20px;
    font-size: 16px;
    touch-action: manipulation;
}

/* Fix overlap issue on homepage */
.hero-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    z-index: 2;
    padding: 20px;
}

/* Ensure hero section has enough spacing */
.hero {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh;
    position: relative;
    overflow: hidden;
}

/* Ensure text is not overlapping */
.hero-content h1 {
    font-size: 2rem;
    margin-bottom: 10px;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 15px;
    max-width: 80%;
}

/* ============================= */
/* ✅ Mobile Responsiveness Fixes */
/* ============================= */

@media (max-width: 768px) {
    /* Ensure sections have proper padding on mobile */
    section {
        padding: 20px 5%;
    }

    /* Stack flexbox containers vertically on small screens */
    .flex {
        flex-direction: column;
    }

    /* Ensure images scale correctly */
    img {
        max-width: 100%;
        height: auto;
    }

    /* Make sure text is centered on mobile */
    h1, h2, h3, p {
        text-align: center;
    }
}

/* ============================= */
/* ✅ Fix Navigation Menu for Mobile */
/* ============================= */

#mobile-menu {
    display: none; /* Hide menu initially */
}

#mobile-menu.active {
    display: flex;
    flex-direction: column;
}

/* Make hamburger button always visible on mobile */
@media (max-width: 768px) {
    .hamburger {
        display: block;
    }
}

/* ============================= */
/* ✅ Mobile Navigation Fixes */
/* ============================= */

@media (max-width: 768px) {
    /* Fix logo size on mobile */
    .logo img {
        max-height: 50px; /* Adjust logo size for mobile */
        width: auto;
    }

    /* Ensure hamburger menu is properly aligned */
    .hamburger {
        font-size: 1.5rem; /* Reduce size */
        position: absolute;
        right: 20px; /* Move to the right */
        top: 50%;
        transform: translateY(-50%);
    }

    /* Ensure navbar is correctly spaced */
    .site-header .container {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 0 15px;
    }
}

/* ============================= */
/* ✅ Fix Homepage Background & Logo Positioning */
/* ============================= */

/* Ensure hero section background scales correctly */
.hero {
    background-size: cover; /* Ensures full coverage */
    background-position: center;
    height: 80vh; /* Adjust height to prevent overflow */
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Fix logo size & positioning */
.logo img {
    max-height: 70px; /* Adjusted to maintain visibility */
    width: auto;
}

/* ============================= */
/* ✅ Fix Text Overlap on Mobile */
/* ============================= */

@media (max-width: 768px) {
    /* Adjust hero content padding */
    .hero-content {
        padding: 10px;
        position: relative;
        z-index: 2;
    }

    /* Ensure header text does not overlap */
    .hero-content h1 {
        font-size: 2rem;
        margin-bottom: 10px;
    }

    .hero-content p {
        font-size: 1.2rem;
        margin-bottom: 15px;
        max-width: 90%;
    }
}

/* ============================= */
/* ✅ Fix Homepage Background Image */
/* ============================= */

.hero {
    background-size: cover; /* Ensure the background image fits properly */
    background-position: center; /* Center the image */
    height: 80vh; /* Reduce height to avoid excessive space */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

/* ============================= */
/* ✅ Fix Logo Size & Position */
/* ============================= */

.logo img {
    max-height: 60px; /* Adjust logo size to be more balanced */
    width: auto;
    display: block;
}

/* ============================= */
/* ✅ Fix Overlapping Heading on Mobile */
/* ============================= */

@media (max-width: 768px) {
    /* Ensure hero section text does not overlap */
    .hero-content {
        padding: 30px 5%;
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    /* Ensure heading has enough spacing from paragraph */
    .hero-content h1 {
        font-size: 2rem;
        margin-bottom: 15px;
    }

    .hero-content p {
        font-size: 1.2rem;
        margin-top: 0px;
        padding: 0 5%;
        max-width: 90%;
    }
}

/* ============================= */
/* ✅ Fix Overlapping Text in Hero Section */
/* ============================= */

@media (max-width: 768px) {
    /* Ensure hero section text does not overlap */
    .hero-content {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 40px 5%;
    }

    /* Ensure heading has proper spacing from paragraph */
    .hero-content h1 {
        font-size: 2rem;
        margin-bottom: 15px;
    }

    .hero-content p {
        font-size: 1.2rem;
        margin-top: 10px; /* Added spacing */
        padding: 0 5%;
        max-width: 90%;
    }
}

/* ============================= */
/* ✅ Fix Overlapping Text in Hero Section */
/* ============================= */

@media (max-width: 768px) {
    /* Ensure hero section text does not overlap */
    .hero-content {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 50px 5%;
    }

    /* Ensure heading has proper spacing from paragraph */
    .hero-content h1 {
        font-size: 2rem;
        margin-bottom: 20px;
    }

    .hero-content p {
        font-size: 1.2rem;
        margin-top: 15px; /* Increased spacing */
        padding: 0 5%;
        max-width: 90%;
    }
}

/* ============================= */
/* ✅ Fix Navigation Menu on Mobile */
/* ============================= */

#mobile-menu {
    display: none; /* Ensure it's hidden initially */
}

#mobile-menu.active {
    display: flex;
    flex-direction: column;
}

/* ============================= */
/* ✅ Fix Mobile Menu Text Visibility */
/* ============================= */

#mobile-menu {
    display: none; /* Ensure it's hidden initially */
    background-color: white; /* Ensure background is visible */
    color: black; /* Ensure text is visible */
    padding: 15px 0;
    width: 100%;
}

#mobile-menu a {
    color: black !important; /* Force text color to be visible */
    font-size: 1rem;
    padding: 10px 15px;
    display: block;
    text-align: center;
}

#mobile-menu a:hover {
    background-color: rgba(0, 0, 0, 0.1); /* Add hover effect */
}

/* ============================= */
/* ✅ Fix Overlapping Text on Small Screens */
/* ============================= */

@media (max-width: 768px) {
    .hero-content {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 50px 5%;
    }

    /* Ensure heading and paragraph have enough spacing */
    .hero-content h1 {
        font-size: 2rem;
        margin-bottom: 20px;
        line-height: 1.2;
    }

    .hero-content p {
        font-size: 1.2rem;
        margin-top: 15px;
        padding: 0 5%;
        max-width: 90%;
        line-height: 1.5;
    }

    /* Ensure sections have proper spacing */
    section {
        padding: 40px 5%;
    }

    /* Prevent flexbox elements from overlapping */
    .info-locations {
        flex-direction: column;
        gap: 20px;
    }

    .info-left, .info-right {
        width: 100%;
        text-align: center;
    }
}

/* ============================= */
/* ✅ Final Fix: Ensure Proper Text Spacing and Menu Visibility */
/* ============================= */

@media (max-width: 768px) {
    /* Fix overlapping text in hero section */
    .hero-content {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 50px 5%;
    }

    .hero-content h1 {
        font-size: 2rem;
        margin-bottom: 20px;
        line-height: 1.3;
    }

    .hero-content p {
        font-size: 1.2rem;
        margin-top: 15px;
        padding: 0 5%;
        max-width: 90%;
        line-height: 1.6;
    }

    /* Ensure sections have proper padding and do not overlap */
    section {
        padding: 40px 5%;
    }

    /* Prevent flexbox elements from overlapping */
    .info-locations {
        flex-direction: column;
        gap: 20px;
    }

    .info-left, .info-right {
        width: 100%;
        text-align: center;
    }

    /* Fix mobile menu text visibility */
    #mobile-menu {
        display: none; /* Hide by default */
        background-color: white;
        color: black;
        width: 100%;
        padding: 15px 0;
    }

    #mobile-menu a {
        color: black !important;
        font-size: 1rem;
        padding: 10px 15px;
        display: block;
        text-align: center;
    }

    #mobile-menu a:hover {
        background-color: rgba(0, 0, 0, 0.1);
    }
}
