/* General Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Roboto", "Merriweather", sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #f9f9f9;
  padding: 0;
  margin: 0;
  text-align: justify;
}

/* Header Styles */
header {
  background: linear-gradient(to right, #388e3c, #66bb6a); /* Green gradient */
  padding: 1rem;
  height: 30vh;
}

/* Logo Container */
.logo-container {
  display: flex;
  justify-content: center; /* Center the logo */
  align-items: center;
  padding: 0 0 0.5rem 0;
}

/* Logo Styling */
.logo {
  max-width: 150px; /* Limit the size of the logo */
  height: auto; /* Maintain aspect ratio */
}

nav {
  padding: 0rem 0.1rem;
}
/* Navbar */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(to right, #388e3c, #66bb6a); /* Green gradient */
  padding: 1rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  position: sticky;
  top: 0;
  z-index: 100;
}

.navbar li {
  list-style: none;
  border-radius: 1rem;
}

.navbar a {
  text-decoration: none;
  color: #e0f7fa; /* blue shade */
  font-weight: 500;
  transition: color 0.3s;
}

.navbar a:hover {
  color: #000; /* Darker green */
}

/* Navbar Menu */
.navbar-menu {
  display: flex;
  list-style: none;
}

.navbar-menu li {
  margin-left: 1rem;
}

.navbar-toggle {
  display: none;
  background-color: transparent;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.8rem 0;
}

/* Maps & Directions Section */
#map {
  margin-bottom: 0rem;
}

#maps-directions {
  height: 80%;
  width: 80%;
}

li {
  list-style: none;
}

/* Hero Section */
.hero {
  height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: justify;
  padding: 4rem 2rem;
  background: linear-gradient(to right, #388e3c, #66bb6a); /* Green gradient */
  color: #fff;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
  text-align: center;
}

.hero span {
  color: #ffd700;
  font-weight: bold;
}

.hero p {
  max-width: 600px;
  margin: 0 auto;
  font-size: 1.2rem;
  text-align: justify;
}

/* Section Styles */
.section {
  padding: 4rem 2rem;
  text-align: center;
  background-color: #ffffff;
  margin: 2rem 10%;
  border-radius: 12px; /* More rounded corners */
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1); /* Deep shadow for modern feel */
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.section:hover {
  transform: translateY(-5px); /* Lift effect on hover */
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3); /* Enhanced shadow on hover */
}

.section h2 {
  font-size: 2.8rem;
  text-align: center;
  margin-bottom: 1rem;
  color: #388e3c;
  font-weight: 700;
}

.section p {
  text-align: justify;
  font-size: 1.1rem;
  color: #555;
  max-width: 900px;
  margin: 0 auto;
  line-height: 1.6;
  padding: 0 1rem;
}

.section li {
  text-align: justify;
  font-size: 1.1rem;
  color: #555;
  max-width: 900px;
  margin: 0 auto;
  line-height: 1.6;
  padding: 0 1rem;
}

#news-articles p {
  text-align: center;
}

#upcoming-events p {
  text-align: center;
}

/* Links inside sections */
.section a {
  font-size: 1.1rem;
  color: #388e3c;
  text-decoration: none;
  border-bottom: 2px solid transparent;
  padding-bottom: 2px;
  transition: color 0.3s ease;
}

.section a:hover {
  color: #66bb6a; /* Lighter green */
  border-color: #66bb6a; /* Show underline effect */
}

/* Footer */
footer {
  background-color: #2c6b2f; /* Dark green */
  color: #fff;
  text-align: center;
  padding: 1.5rem 0;
  margin-top: 2rem;
}

footer p {
  margin: 0.5rem 0;
  font-size: 0.9rem;
}

footer a {
  text-decoration: none;
  color: #66bb6a; /* Lighter green */
  transition: color 0.3s;
}

footer a:hover {
  color: #ffd700;
}

/* General Styles */
body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
}

/* Gallery Grid Container */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: auto;
  grid-auto-flow: row dense;
  gap: 2rem;
  padding: 2rem;
}

/* Gallery Grid Items */
.gallery-item {
  position: relative;
  background-color: #fff;
  border-radius: 8px;
  overflow: hidden;
}

/* Aspect Ratio for 1x1 */
.gallery-item-1x1 {
  grid-column: span 1;
  grid-row: span 1;
}

.gallery-item-1x1::before {
  content: "";
  display: block;
  padding-top: 100%; /* 1:1 aspect ratio */
}

/* Aspect Ratio for 1x2 */
.gallery-item-1x2 {
  grid-column: span 2;
  grid-row: span 1;
}

.gallery-item-1x2::before {
  content: "";
  display: block;
  padding-top: 50%; /* 2:1 aspect ratio */
}

/* Aspect Ratio for 2x1 */
.gallery-item-2x1 {
  grid-column: span 1;
  grid-row: span 2;
}

.gallery-item-2x1::before {
  content: "";
  display: block;
  padding-top: 200%; /* 1:2 aspect ratio */
}

/* Aspect Ratio for 2x2 */
.gallery-item-2x2 {
  grid-column: span 2;
  grid-row: span 2;
}

.gallery-item-2x2::before {
  content: "";
  display: block;
  padding-top: 100%; /* 2:2 aspect ratio */
}

/* Images and Captions */
.gallery-item img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-item .caption {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  color: #fff;
  padding: 0.5rem;
  box-sizing: border-box;
  font-size: 1rem;
  text-align: center;
}

/* Hero Section Styles */
.hero {
  background-color: #388e3c;
  color: #fff;
  padding: 2rem;
  text-align: center;
}

/* Search Bar Styles */
.search-bar {
  text-align: center;
  margin: 2rem 0;
}

.search-bar input {
  width: 80%;
  padding: 0.75rem;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 4px;
}

.search-bar input:focus {
  border-color: #388e3c;
  outline: none;
}

/* Service Listings Styles */
.service-list {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
}

.service {
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  padding: 1.5rem;
  width: 80%;
  max-width: 350px;
}

.service h3 {
  color: #388e3c;
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.service p {
  font-size: 1rem;
  color: #555;
  line-height: 1.6;
}

.service a {
  color: #388e3c;
  text-decoration: none;
}

.service a:hover {
  text-decoration: underline;
}

/* Map Styles */
.map iframe {
  border-radius: 8px;
}

/* Footer Styles */
footer {
  background-color: #333;
  color: #fff;
  padding: 0;
  text-align: center;
}

.service {
  width: 30%;
}

.map-container {
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* Aspect ratio: 16:9 */
  overflow: hidden;
}

.map-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .navbar {
    padding: 2.5rem 0 0 0;
    gap: 1rem;
  }
  .hero {
    padding: 3rem 1.5rem;
  }
  .hero h1 {
    font-size: 2.5rem;
  }
  .service {
    width: calc(100% - 2rem); /* Full width with padding */
    max-width: 350px;
  }
}

@media (max-width: 768px) {
  .navbar {
    flex-direction: column;
    align-items: center;
  }

  .navbar-menu {
    display: none;
    flex-direction: column;
    align-items: center;
    width: 100%;
    transition: display 0.3s ease;
  }

  .navbar-menu li {
    margin: 1rem 0;
  }

  .navbar a {
    font-size: 1rem;
  }

  .navbar-toggle {
    display: block;
    background-color: transparent;
    border: none;
    font-size: 2rem; /* Adjust the size of the icon */
    cursor: pointer;
    position: absolute; /* Absolute positioning to center the button */
    left: 50%;
    transform: translateX(-50%); /* Center the button horizontally */
    z-index: 101; /* Ensure the toggle button stays on top of the navbar items */
  }

  .navbar.active {
    display: flex;
  }

  .hero h1 {
    font-size: 1.8rem;
  }

  .hero p {
    font-size: 0.9rem;
  }

  .section h2 {
    font-size: 1.5rem;
  }

  .section p {
    font-size: 0.9rem;
  }
}
