/* Smooth Scrolling */
html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

/* General Styles */
body {
  font-family: 'Roboto', sans-serif;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

/* Default Link Styles (to override browser defaults) */
a {
  color: #1b6e20;
  text-decoration: underline; 
  transition: color 0.3s ease;
}

a:hover {
  color: #144c17;
  text-decoration: underline; 
}

/* Navbar */
.navbar {
  background-color: rgba(232, 240, 232, 0.9);
  padding: 0.4rem 0;
  border-bottom: 1px solid #4A7043;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(5px);
}

.navbar-brand img {
  height: 40px;
  margin-right: 0px;
  vertical-align: middle;
  padding-right: 0;
}

@media (max-width: 576px) {
  .navbar-brand img {
    height: 30px;
  }
}

.nav-link {
  color: #333 !important;
  font-family: 'Poppins', sans-serif;
  font-size: 1rem;
  font-weight: 500;
  padding: 0.5rem 1.25rem;
  transition: all 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
  color: #4A7043 !important;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.navbar-toggler {
  border: none;
  padding-left: 0;
}

.navbar-toggler:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(200, 230, 201, 0.5);
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%231b6e20' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Hero Section */
#hero {
  background-image: url('/img/hero-bg.webp');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  padding: 2rem;
}

#hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1;
}

#hero .container {
  position: relative;
  z-index: 2;
}

#hero h1 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.6);
}

#hero .lead {
  font-size: 1.5rem;
  margin-bottom: 2rem;
  font-weight: 500;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.6);
}

#hero .btn-primary {
  background-color: #1b5e20;
  border-color: #1b5e20;
  padding: 0.75rem 1.5rem;
  font-size: 1.1rem;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

#hero .btn-primary:hover {
  background-color: #144c17;
  border-color: #144c17;
  transform: scale(1.05);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

/* Responsive Adjustments for Hero Section */
@media (max-width: 768px) {
  #hero {
    height: 50vh;
  }

  #hero h1 {
    font-size: 2rem;
  }

  #hero .lead {
    font-size: 1.2rem;
  }

  #hero .btn-primary {
    padding: 0.5rem 1rem;
    font-size: 1rem;
  }
}

@media (max-width: 576px) {
  #hero {
    height: 40vh;
  }

  #hero h1 {
    font-size: 1.5rem;
  }

  #hero .lead {
    font-size: 1rem;
  }
  #hero {
    padding-top: 80px; /* Adjust this value based on your navbar height */
  }  
}

/* Main Content */
#main {
  background-color: #f8f9fa;
  padding: 7rem 0 5rem 0;
}

/* When breadcrumbs are present, they handle the navbar offset */
.breadcrumb-nav + main#main {
  padding-top: 3rem;
}

#main h1,
#main h2 {
  font-family: 'Raleway', sans-serif;
  color: #1b5e20;
  margin-bottom: 2rem;
}

#main p {
  font-family: 'Roboto', sans-serif;
  color: #444444;
  line-height: 1.8;
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
}

#main ul {
  font-family: 'Roboto', sans-serif;
  color: #444444;
  line-height: 1.8;
  font-size: 1.1rem;
  padding-left: 1.5rem;
  margin-bottom: 2rem;
}

#main ul li {
  margin-bottom: 1rem;
}

#main .cta {
  text-align: center;
  margin-top: 3rem;
}

#main .cta a {
  color: #1b5e20;
  font-weight: 500;
  text-decoration: none;
    font-size: 1.2rem;
    padding: 0.2rem 0.8rem;
    white-space: normal; 
    text-align: center;
    display: inline-block;
    white-space: normal; /* Allow text to wrap naturally */
    box-sizing: border-box; /* Ensure padding doesn’t increase width */
  border: 2px solid #1b5e20;
  border-radius: 25px;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

#main .cta a:hover {
  background-color: #1b5e20 !important;
  color: #ffffff !important;
  border-color: #1b5e20 !important;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

/* Blog Section */
.blog-post {
  margin-bottom: 3rem; /* Add spacing between blog posts */
}

.blog-post h3 {
  font-family: 'Raleway', sans-serif;
  font-size: 1.5rem;
  color: #1b5e20; /* Match the dark green theme */
  margin-bottom: 0.5rem;
}

.blog-post h3 a {
  color: #1b5e20; /* Ensure the link color matches the theme */
  text-decoration: none;
  transition: color 0.3s ease;
}

.blog-post h3 a:hover {
  color: #144c17; /* Slightly darker green on hover */
  text-decoration: underline;
}

.blog-post .date {
  font-family: 'Roboto', sans-serif;
  font-size: 0.9rem;
  color: #666666;
  margin-bottom: 0.5rem;
}

.blog-post p {
  font-family: 'Roboto', sans-serif;
  color: #444444;
  line-height: 1.8;
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

.blog-post .read-more {
  color: #1b5e20;
  font-weight: 500;
  text-decoration: none;
    font-size: 1.2rem;
    padding: 0.2rem 0.8rem;
    white-space: normal; 
    text-align: center;
    display: inline-block;
    white-space: normal; /* Allow text to wrap naturally */
    box-sizing: border-box; /* Ensure padding doesn’t increase width */
  border: 2px solid #1b5e20;
  border-radius: 25px;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.blog-post .read-more:hover {
  background-color: #1b5e20;
  color: #ffffff;
  border-color: #1b5e20;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3); /* Match the hover shadow */
}

/* Responsive Adjustments for Blog Section */
@media (max-width: 768px) {
  .blog-post h3 {
    font-size: 1.3rem;
  }

  .blog-post p {
    font-size: 1rem;
  }

  .blog-post .read-more {
    font-size: 1.1rem; 
    padding: 0.4rem 0.8rem;
  }
}

@media (max-width: 576px) {
  /* CTA Button */
  #main .cta a {
    font-size: 1.1rem;
    padding: 0.4rem 0.8rem;
    white-space: normal; 
    text-align: center;
    display: inline-block;
    max-width: 300px; /* Optional: cap the width */
    white-space: normal; /* Allow text to wrap naturally */
    box-sizing: border-box; /* Ensure padding doesn’t increase width */
  }
  
  .blog-post .read-more {
    font-size: 1.1rem;
    padding: 0.4rem 0.8rem;
    white-space: normal;
    text-align: center;
    display: inline-block; 
    max-width: 300px; /* Optional: cap the width */
    white-space: normal; /* Allow text to wrap naturally */
    box-sizing: border-box; /* Ensure padding doesn’t increase width */
  }

}

/* Breadcrumbs */
.breadcrumb-nav {
  background-color: #f8f9fa;
  padding: 0.6rem 0;
  padding-top: 5rem;
}

.breadcrumb-nav .breadcrumb {
  background: none;
  padding: 0;
  font-family: 'Roboto', sans-serif;
  font-size: 0.9rem;
}

.breadcrumb-nav .breadcrumb-item a {
  color: #1b5e20;
  text-decoration: none;
}

.breadcrumb-nav .breadcrumb-item a:hover {
  color: #144c17;
  text-decoration: underline;
}

.breadcrumb-nav .breadcrumb-item.active {
  color: #666;
}

.breadcrumb-nav .breadcrumb-item + .breadcrumb-item::before {
  color: #999;
}

/* Footer */
footer {
  background-color: #f5f9fc;
  color: #444444;
  font-family: 'Roboto', sans-serif;
  border-top: 1px solid #e0e0e0;
  padding: 2rem 0;
}

footer a {
  color: #1b5e20;
  text-decoration: none;
}

footer a:hover {
  color: #144c17;
  text-decoration: underline;
}

/* Pagination */
.pagination .page-link {
  color: #1b5e20;
  border-color: #dee2e6;
}

.pagination .page-item.active .page-link {
  background-color: #1b5e20;
  border-color: #1b5e20;
  color: #fff;
}

.pagination .page-link:hover {
  color: #144c17;
  background-color: #e8f0e8;
}

/* Mobile adjustments for footer */
@media (max-width: 576px) {
  footer .footer-content {
    flex-direction: column;
    text-align: center;
  }
  footer .footer-content p,
  footer .footer-content a {
    margin-bottom: 0.5rem;
  }
}
