/* styles.css - Ambient Grounds Full Styles */

:root {
    --primary: #4e5d4e; /* Earthy Green */
    --secondary: #bfae9b; /* Soft Sand */
    --tertiary: #cb7747; /* Burnt Orange */
    --text: #1f1f1f; /* Basic Black */
    --background: #f8f8f8;
    --hover: #bb6633;
  }

  *,
*::before,
*::after {
  box-sizing: border-box;
}

  body {
    margin: 0;
    font-family: 'Montserrat', sans-serif;
    background-color: var(--background);
    color: var(--text);
    overflow-x: hidden; /*Double Check if this causes issues */
  }

  .container {
    padding: 2vw;
  }
  
  .navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background-color: var(--primary);
    color: white;
    position: sticky;
    top: 0;
    z-index: 1000;
  }
  
  .logo {
    font-size: 1.5rem;
    font-weight: bold;
  }
  
  .logo a {
    color: white;
    text-decoration: none;
    cursor: pointer;
  }
  
  .logo a:hover {
    text-decoration: none;
  }
  
  .nav-links-wrapper {
    display: flex;
    align-items: center;
    gap: 1.5rem;
  }
  
  nav ul {
    list-style: none;
    display: flex;
    gap: 1.5rem;
    margin: 0;
    padding: 0;
  }
  
  nav ul li a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
  }
  
  nav ul li a:hover {
    color: var(--hover);
  }
  
  /* ===SPECIFIC TO NAVBAR CTA=== */
  .navbar-contact {
    display: inline-block;
  }
  
  /* Default: hide mobile version of contact */
  .mobile-contact {
    display: none;
  }
  
  .hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
  }
  
  .hamburger span {
    height: 3px;
    width: 25px;
    background-color: white;
    border-radius: 2px;
    transition: all 0.3s ease;
  }
  
  /* On small screens */
  @media (max-width: 768px) {
    .navbar-contact {
      display: none !important;
    }
  
    .mobile-contact {
      display: list-item !important;
    }
  
    .nav-links {
      position: absolute;
      top: 100%;
      left: 0;
      right: 0;
      background-color: var(--primary);
      flex-direction: column;
      align-items: center;
      max-height: 0;
      overflow: hidden;
      transition: max-height 0.4s ease;
    }
  
    .nav-links.open {
      display: flex;
      flex-direction: column;
      align-items: center;
      max-height: 300px;
      padding: 1rem 0;
    }
  
    nav ul {
      flex-direction: column;
    }

    @media (max-width: 600px) {
      .logo {
        font-size: 1.25rem; /* or whatever fits */
        white-space: nowrap; /* prevents line breaks */
      }
    
      .nav-links-wrapper {
        gap: 1rem; /* reduce spacing if needed */
      }
    }
    
  
    .hamburger {
      display: flex !important;
    }
  }
  
  /* ===HERO SECTION STYLES=== */
  .hero {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 4rem 2rem;
    /* background: linear-gradient(135deg, var(--secondary), var(--background)); */
    background-color: rgb(0, 0, 0);
    background-image: url(Images/hero_1_resize.webp);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-blend-mode: lighten;
    color: var(--text);
  }
  
  .hero-content {
    max-width: 700px;
    animation: fadeInUp 1.2s ease;
  }
  
  .hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #F5F5F5;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.4);

  }
  
  .hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: #EDEDED;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.4);

  }
  
  .cta-button {
    background-color: var(--tertiary);
    color: white;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    white-space: nowrap;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    position: relative; /* ADDED: Required for ::before positioning */
    z-index: 1;         /* ADDED: To layer text above ::before background */
  }
  
  /* ADDED: Creates sliding color effect on hover */
  .cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0%; /* Start fully hidden */
    height: 100%;
    background-color: var(--hover); /* The hover color background */
    z-index: -1; /* Keep it behind the text */
    transition: width 0.4s ease; /* Animate the width expansion */
  }
  
  /* CHANGED: Use ::before instead of background-color */
  .cta-button:hover::before {
    width: 100%; /* Expands from left to right */
  }
  
  /* KEEP: Ensure text color remains legible */
  .cta-button:hover {
    color: white;
  }
  
  /* ===HERO ANIMATIONS AND MOBILE===*/
  @keyframes fadeInUp {
    from {
      opacity: 0;
      transform: translateY(30px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  @media (max-width: 850px) {
    .cta-button {
      font-size: 0.9rem;
      padding: 0.6rem 1.2rem;
    }
  }

  @media (max-width: 600px) {
    .hero {
      height: 80svh; /* use svh for real mobile height */
      overflow: hidden;
      position: relative;
      display: flex;
      align-items: center;
      justify-content: center;
      margin: 0;
      padding: 0;
    }
    
    .hero-image {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      object-fit: cover;
      z-index: -1;
    }
    
    /* .hero-text {
      z-index: 1;
      color: white;
      text-align: center;
      padding: 1rem;
      max-width: 90%;
    } */
    
  }
  
  
  /* ===PROGRAM CARDS SECTION=== */
  .programs {
    padding: 4rem 2rem;
    /* background-color: #fff; */
  }
  
  .cards {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
  }

  .card {
    background-color: var(--background);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    padding: 2rem;
    flex: 1 1 300px;
    max-width: 320px;
    transition: transform 0.3s ease;
    text-align: center;
    text-decoration: none;
  }
  
  .card:hover {
    transform: scale(1.05);
  }
  
  .card h2 {
    margin-bottom: 1rem;
    color: var(--primary);
  }
  
  .card p {
    color: #444;
    font-size: 1rem;
    line-height: 1.5;
  }

  /* ===MISSION SPOTLIGHT SECTION=== */
.mission-spotlight {
  background-color: var(--background);
  padding: 4rem 2rem;
}

.mission-content {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  align-items: center;
}

.mission-text {
  max-width: 700px;
  text-align: center;
}

.mission-text h2 {
  font-size: 2rem;
  color: var(--primary);
  margin-bottom: 1rem;
}

.mission-text p {
  font-size: 1.1rem;
  color: #444;
  line-height: 1.6;
}

.mission-images {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  justify-content: center;
}

.mission-images img {
  max-width: 100%;
  height: auto;
  width: 100%;
  max-width: 500px;
  border-radius: 10px;
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
}

/* Responsive Adjustments */
@media (min-width: 768px) {
  .mission-content {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }

  .mission-text {
    flex: 1 1 50%;
    text-align: left;
  }

  .mission-images {
    flex: 1 1 45%;
    justify-content: flex-end;
  }
}

/* ===WAVE DIVIDER=== */
.wave-divider {
  line-height: 0;
  position: relative;
  width: 100%;
  overflow: hidden;
}

.wave-divider svg {
  display: block;
  width: 100%;
  height: 100px;
}

.wave-divider-bottom {
  margin-top: -3.1rem;
}

/* ===TESTIMONIALS=== */
.testimonials {
  padding: 4rem 2rem;
  background-color: var(--background);
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.testimonial-block {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.testimonial-block.reverse {
  flex-direction: row-reverse;
}

.testimonial-image img {
  width: 300px;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
}

.testimonial-text {
  max-width: 600px;
  text-align: left;
}

.testimonial-name {
  font-size: 1.25rem;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.testimonial-text hr {
  border: none;
  border-top: 2px solid var(--secondary);
  width: 60px;
  margin: 0 0 1rem 0;
}

.testimonial-text p {
  font-size: 1.05rem;
  line-height: 1.6;
  color: #444;
  font-style: italic;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .testimonial-block,
  .testimonial-block.reverse {
    flex-direction: column;
    text-align: center;
  }

  .testimonial-text {
    text-align: center;
  }

  .testimonial-text hr {
    margin: 0.5rem auto 1rem auto;
  }
}

/* ===UPCOMING EVENTS=== */
.upcoming-events {
  background-image: url(Images/nature_background.jpg);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  margin-top: -2rem;
  margin-bottom: 5rem;
  /* background-color: #fff; */
  padding: 4rem 2rem;
  text-align: center;
}

.upcoming-events h2 {
  font-size: 2.5rem;
  /* color: var(--primary); */
  color: var(--background);
  margin-bottom: 8rem;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.4);
}

.event-card {
  background-color: var(--background);
  border-radius: 10px;
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
  padding: 2rem;
  margin-bottom: 2rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  text-align: left;
  transition: transform 0.3s ease;
}

.event-card:hover {
  transform: scale(1.05);
}

.event-card h3 {
  margin-top: 0;
  color: var(--primary);
  font-size: 1.4rem;
}

.event-location {
  font-weight: 700;
  font-size: 1.2rem;
  color: #666;
  margin: 0.5rem 0 1rem;
  /* text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1); */
}

.event-card p {
  margin-bottom: 1rem;
  color: var(--text);
  line-height: 1.5;
}

.event-contact-link {
  display: inline-block;
  margin-top: 0.5rem;
  color: var(--tertiary);
  text-decoration: underline;
  font-weight: 600;
  transition: color 0.3s ease;
  transition: all .2s ease-in-out; 
}

.event-contact-link:hover {
  color: var(--hover);
  transform: scale(1.03);
}

/* Responsive Styling */
@media (max-width: 400px) {
  .event-card {
    padding: 1rem;
    max-width: 94%;
    max-height: 65%;
  }
}

/* ===DONATE SECTION=== */
.donate-section {
  padding: 60px 20px;
  margin-bottom: 3rem;
  background-color: #f8f8f8; /* matches site background */
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.donate-section h2 {
  font-size: 2rem;
  margin-bottom: 40px;
  color: var(--primary);
  text-align: center;
}

.donate-section p {
  max-width: 600px;
  margin: 0 auto 30px auto;
  font-size: 1.1rem;
  color: #4e5d4e; /* primary earthy green for emphasis */
  line-height: 1.6;
}

.donate-section .cta-button {
  font-size: 1.1rem;
  padding: 12px 30px;
  border-radius: 30px;
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2); /* your preferred shadow */
}


/* ===PARTNER SECTION=== */
.partners {
  padding: 4rem 2rem;
  /* background-color: #fff; */
  text-align: center;
}

.partners h2 {
  font-size: 2rem;
  margin-bottom: 2rem;
  color: var(--primary);
}

.partner-logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
}

.partner-logo {
  flex: 0 1 150px;
  max-width: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background-color: var(--background);
  border-radius: 8px;
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
}

.partner-logo img {
  max-width: 100%;
  max-height: 60px;
  object-fit: contain;
}

.partner-logo:hover {
  transform: scale(1.05);
}

@media (max-width: 600px) {
  .partner-logo {
    flex: 0 1 100px;
    padding: 0.5rem;
  }

  .partner-logo img {
    max-height: 40px;
  }
}

  /* ===SOUND EXPLORERS=== */
  .carousel {
    display: flex;
    overflow-x: auto;
    scroll-behavior: smooth;
    gap: 1rem;
    padding: 1rem 0;
  }

  .carousel img {
    flex: 0 0 auto;
    width: 250px;
    height: 150px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
  }
  
  @media (min-width: 900px) {
    .carousel img {
      width: 400px;
      height: 240px;
    }
  }
  
  .info-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 2rem;
    justify-content: center;
    width: 75vw;
    margin-left: auto;
    margin-right: auto;
  }

  .info-card {
    flex: 1 1 calc(45% - 1rem);
    min-width: 280px;
    /* background: rgb(217, 178, 101); */
    background: linear-gradient(var(--secondary), var(--background));
    background-color: var(--secondary);
    border-radius: 10px;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
    padding: 2rem 1rem;
    transition: transform 0.2s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
  }

  .info-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 0.75rem;
  }

  .info-card:hover {
    transform: scale(1.03);
  }

  @media (max-width: 600px) {
    .info-card {
      flex: 1 1 100%;
      aspect-ratio: auto;
    }
    .info-cards {
        width: auto;
      }
  }

  /* ===NEWSLETTER=== */
.form-section {
  max-width: 700px;
  margin: 4rem auto 2rem auto;
  padding: 2rem;
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 5px 12px rgba(0, 0, 0, 0.05);
  text-align: center;
}

.form-section h1 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: var(--primary);
}

.form-section p {
  font-size: 1rem;
  margin-bottom: 2rem;
  color: #444;
}

.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  max-width: 600px;
  margin: 1rem auto;
  width: 100%;
}

.newsletter-signup-section {
  margin: 1vh 1vw;
}

.newsletter-form input,
.newsletter-form textarea,
.newsletter-form select {
  font-family: inherit;
  font-size: 1rem;
  padding: 0.75rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  width: 100%;
  box-sizing: border-box;
}

.newsletter-form textarea {
  resize: vertical;
}

.newsletter-form button {
  padding: 0.75rem 1.5rem;
  background-color: var(--tertiary);
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.newsletter-form button:hover {
  background-color: var(--hover);
}

@media (max-width: 768px) {
  .newsletter-form input,
.newsletter-form textarea,
.newsletter-form select {
  font-size: .8rem;
  }
}

/* ===NEWSLETTER ARCHIVE=== */
.newsletter-archive {
  padding: 4rem 2rem;
  text-align: center;
  background-color: var(--background);
}

.newsletter-archive h2 {
  font-size: 1.75rem;
  margin-bottom: 2rem;
  color: var(--primary);
}

.newsletter-archive .cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
}

.newsletter-archive .card {
  background-color: white;
  border-radius: 10px;
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
  padding: 1.5rem;
  max-width: 300px;
  flex: 1 1 280px;
  transition: transform 0.3s ease;
  text-align: left;
}

.newsletter-archive .card:hover {
  transform: scale(1.03);
}

.newsletter-archive .card h2 {
  margin-top: 0;
  color: var(--primary);
}

.newsletter-archive .card p {
  margin-bottom: 0;
  color: #444;
}

/* ===FOOTER=== */
.site-footer {
  background-color: var(--primary);
  color: white;
  text-align: center;
  padding-top: 0;
  margin-top: 1rem;
  font-size: 0.95rem;
  overflow-x: hidden;
}

.footer-wave {
  position: relative;
  width: 100%;
  top: -1px;
  overflow: hidden;
  margin-bottom: -1rem;
}

.footer-wave svg {
  display: block;
  margin-bottom: -1px;
  /* width: 100%; */
  /* height: 20px; */
  background: var(--background);
  /* background-color: var(--background); */
  width: 100%;
  overflow-x: hidden;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2rem 1rem;
  margin: 0;
  width: 100%;
  box-sizing: border-box;
}

.footer-content p,
.footer-content a {
  margin: 0.3rem 0;
  color: white;
  text-decoration: none;
}

.footer-content a:hover {
  text-decoration: underline;
}

.footer-nav {
  margin: 1rem 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

.social-media {
  margin-top: 1rem;
}

/* ===CONTACT + NEWSLETTER SHARED STYLES=== */

.newsletter-signup {
  padding: 4rem 2rem;
  background-color: var(--background);
  display: flex;
  justify-content: center;
}

.form-container {
  background-color: #fff;
  border-radius: 10px;
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
  padding: 2rem;
  width: 100%;
  max-width: 600px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.form-container h2 {
  margin-bottom: 2rem;
  color: var(--primary);
  text-align: center;
}

.form-container p {
  margin-bottom: 2rem;
}

.form-container form {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-container label {
  display: block;
  margin-bottom: 0.2rem;
  padding-left: 0.1rem; /* Align with input padding */
}


.form-container input,
.form-container select,
.form-container textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-family: 'Montserrat', sans-serif;
  font-size: 1rem;
  transition: border 0.3s ease;
}

.form-container input:focus,
.form-container select:focus,
.form-container textarea:focus {
  outline: none;
  border-color: var(--primary);
}

.form-container button {
  background-color: var(--tertiary);
  color: white;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 5px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  align-self: flex-start;
  transition: background-color 0.3s ease;
}

.form-container button:hover {
  background-color: var(--hover);
}

/* CONTACT FORM NEW DROPDOWN FEATURE */

.dropdown-multiselect {
  position: relative;
  width: 100%;
  font-family: inherit;
  /* margin-bottom: 1.5rem; */
}

.dropdown-label {
  flex-grow: 1;
  margin-left: -3px;  /* adjust this value to line up perfectly */
}


.dropdown-btn {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 1rem;
  background-color: #f0f0f0;
  border: 1px solid #ccc;
  border-radius: 6px;
  cursor: pointer;
  font-size: 1rem;
  text-align: left;
  width: 100%;
}

.dropdown-icon {
  margin-left: auto;
  pointer-events: none;
}


.dropdown-content {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background: #f0f0f0;
  border: 1px solid #ccc;
  border-radius: 6px;
  z-index: 10;
  margin-top: 0.25rem;
  padding: 1rem;
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
}

.dropdown-content label {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1rem;
  margin-bottom: 0.5rem;
  color: var(--text);
  cursor: pointer;
}

.dropdown-content input[type="checkbox"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
}

.dropdown-multiselect.open .dropdown-content {
  display: block;
}

/* Responsive styles */
@media (max-width: 768px) {
  .form-container button,
  .form-container input,
  .form-container select,
  .form-container textarea {
    font-size: 0.85rem;
  }

  .form-container h2 {
    font-size: 1.25rem;
  }

  .form-container label,
  .dropdown-content label {
    font-size: 0.95rem;
  }

  .dropdown-content {
    position: absolute;
    margin-top: 0.25rem;
    width: calc(100% + 40px); /* expand wider than button */
    left: 50%;
    transform: translateX(-50%); /* center-align with button */
    background-color: #f4f4f4;
    padding: 1rem;
    border-radius: 0.5rem;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
    z-index: 10;
  }
  

  .dropdown-content input[type="checkbox"] {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
  }
}

/* ===PROGRAMS=== */
section.programs-overview {
  background-color: #f8f8f8;
  padding: 4rem 2rem;
  text-align: center;
}

.overview-container {
  max-width: 900px;
  margin: 0 auto;
}

.overview-container h2 {
  font-size: 2.2rem;
  margin-bottom: 1rem;
  color: var(--primary);
}

.overview-container img {
  width: 100%;
  max-width: 600px;
  height: auto;
  margin: 2rem 0;
  border-radius: 10px;
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
}

.overview-container p {
  font-size: 1.1rem;
  color: #444;
  line-height: 1.6;
}

section.program-feature {
  padding: 4rem 2rem;
  /* background-color: #fff; */
}

.program-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  max-width: 1100px;
  margin: 0 auto;
}

.program-content.image-left {
  flex-direction: row;
}

.program-content.image-right {
  flex-direction: row-reverse;
}

.program-content img {
  width: 100%;
  max-width: 450px;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
}

.text-content {
  flex: 1;
  max-width: 500px;
}

.text-content h3 {
  color: var(--primary);
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

.text-content p {
  font-size: 1.05rem;
  color: #444;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

@media (max-width: 768px) {
  .program-content {
    flex-direction: column !important;
  }

  .program-content img {
    max-width: 100%;
  }

  .text-content {
    max-width: 100%;
    text-align: left;
  }

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

/* ===ABOUT=== */
.about-hero {
  position: relative;
  background-image: url('Images/country_road4k_1.1.1PRODUCTION.webp');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: white;
  overflow: hidden;
  max-height: 60svh;
}

.about-hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.3); /* Adjust the opacity as needed */
  z-index: 0;
}

.about-hero .hero-content {
  position: relative;
  z-index: 1; /* Keeps your text above the dark overlay */
}


/* Slide-in animations for headings */
@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInText {
  to {
    opacity: 1;
  }
}

@keyframes underlineSlideIn {
  to {
    transform: translateX(0) translateY(0.2em);
    opacity: 1;
  }
}

@keyframes underlineSlideInLeft {
  to {
    transform: translateX(0) translateY(0.2em);
    opacity: 1;
  }
}

.slide-in-left,
.slide-in-right {
  opacity: 0;
  transition: opacity 0.6s ease, transform 0.6s ease;
  will-change: transform, opacity;
}

.slide-in-left.appear {
  animation: slideInLeft 0.8s ease forwards;
}

.slide-in-right.appear {
  animation: slideInRight 0.8s ease forwards;
}

.underline-word,
.underline-left {
  position: relative;
  display: inline-block;
  color: inherit;
  opacity: 0;
}

.underline-word.appear,
.underline-left.appear {
  animation: fadeInText 0.4s ease forwards;
  animation-delay: 0.5s;
}

.underline-word::after,
.underline-left::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 4px;
  background-color: #4e5d4e;
  transform: translateY(0.2em);
  opacity: 0;
  z-index: -1;
}

.underline-word.appear::after {
  transform: translateX(100%) translateY(0.2em);
  animation: underlineSlideIn 0.6s ease forwards;
  animation-delay: 0.7s;
}

.underline-left.appear::after {
  transform: translateX(-100%) translateY(0.2em);
  animation: underlineSlideInLeft 0.6s ease forwards;
  animation-delay: 0.7s;
}




