/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes bounce {
  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0) translateX(-50%);
  }
  40% {
    transform: translateY(-15px) translateX(-50%);
  }
  60% {
    transform: translateY(-7px) translateX(-50%);
  }
}

@keyframes typing {
  from {
    width: 0;
  }
  to {
    width: 100%;
  }
}

@keyframes blink-caret {
  from,
  to {
    border-color: transparent;
  }
  50% {
    border-color: #b68f54;
  }
}

/* Animation Classes */
.animate-fadeIn {
  animation: fadeIn 1s ease-out;
}

.animate-fadeInUp {
  animation: fadeInUp 1s ease-out;
}

.animate-bounce {
  animation: bounce 2s infinite;
}

.typing-animation {
  overflow: hidden;
  white-space: nowrap;
  animation: typing 3.5s steps(40, end), blink-caret 0.75s step-end infinite;
}

.animation-delay-300 {
  animation-delay: 0.3s;
}

.animation-delay-500 {
  animation-delay: 0.5s;
}

.animation-delay-800 {
  animation-delay: 0.8s;
}

.animation-delay-1000 {
  animation-delay: 1s;
}

.animation-delay-1500 {
  animation-delay: 1.5s;
}

.animation-delay-2500 {
  animation-delay: 2.5s;
}

.animation-fill-mode-forwards {
  animation-fill-mode: forwards;
}

.animation-iteration-count-infinite {
  animation-iteration-count: infinite;
}

.-skew-y-3 {
  transform: skewY(-3deg);
}

/* Custom Transitions */
.transition-slow {
  transition: all 0.5s ease;
}


/* Keyframes for Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.carousel-slide {
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.carousel-slide.active {
  opacity: 1;
}

.carousel-indicators .indicator.active {
  background-color: #00793e;
  transform: scale(1.25);
  box-shadow: 0 0 10px rgba(0, 121, 62, 0.5);
}

.carousel-controls button {
  transition: all 0.3s ease-in-out;
}

.carousel-controls button:hover {
  transform: scale(1.1);
}

/* Communities Section */
.communities {
  position: relative;
  padding-top: 8rem; /* Space for the wave */
}

/* Wave Styling */
.communities svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: auto;
  z-index: 10;
}

/* Section Header */
.section-header h2 {
  font-size: 2.2rem;
  color: #00793e;
  margin-bottom: 1rem;
  position: relative;
  display: inline-block;
}

.section-header h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background-color: #b68f54;
}

.section-header p {
  color: #6b7280;
  font-size: 1.1rem;
  line-height: 1.6;
}

/* Community Cards */
.community-card {
  border: 1px solid rgba(0, 121, 62, 0.1);
  transition: all 0.3s ease-in-out;
}

.community-card:hover {
  box-shadow: 0 15px 30px rgba(0, 121, 62, 0.1);
  border-color: rgba(0, 121, 62, 0.3);
}

.community-icon {
  width: 60px;
  height: 60px;
  background-color: rgba(0, 121, 62, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  color: #00793e;
  font-size: 1.5rem;
}

.community-card h3 {
  font-size: 1.3rem;
  color: #1f1f1f;
  margin-bottom: 1rem;
}

.community-card p {
  color: #6b7280;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}

.community-link {
  color: #00793e;
  text-decoration: none;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s ease-in-out;
}

.community-link:hover {
  color: #b68f54;
  gap: 0.8rem;
}

.community-link i {
  font-size: 0.8rem;
  transition: all 0.3s ease-in-out;
}

/* Call-to-Action Button */
.cta-btn {
  transition: all 0.3s ease-in-out;
}

/* Upcoming Events Section */
#events {
  position: relative;
  padding-top: 8rem; /* Space for the wave */
}

/* Wave Styling */
#events svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: auto;
  z-index: 10;
}

/* Event Cards */
.event-card {
  border: 1px solid rgba(0, 121, 62, 0.1);
  transition: all 0.3s ease-in-out;
}

.event-card:hover {
  box-shadow: 0 15px 30px rgba(0, 121, 62, 0.1);
  border-color: rgba(0, 121, 62, 0.3);
}

.event-card img {
  height: 150px; /* Fixed height for images */
  object-fit: cover;
}

.event-card h3 {
  font-size: 1.3rem;
  color: #1f1f1f;
  margin-bottom: 1rem;
}

.event-card p {
  color: #6b7280;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}

.event-link {
  color: #00793e;
  text-decoration: none;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s ease-in-out;
}

.event-link:hover {
  color: #b68f54;
  gap: 0.8rem;
}

.event-link i {
  font-size: 0.8rem;
  transition: all 0.3s ease-in-out;
}

/* Knowledge Base Section */
#knowledge-base {
  position: relative;
}

/* Resource Cards */
.resource-card {
  border: 1px solid rgba(0, 121, 62, 0.1);
  transition: all 0.3s ease-in-out;
}

.resource-card:hover {
  box-shadow: 0 15px 30px rgba(0, 121, 62, 0.1);
  border-color: rgba(0, 121, 62, 0.3);
}

.resource-icon {
  width: 60px;
  height: 60px;
  background-color: rgba(0, 121, 62, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: flex-start; /* Align icon to the left */
  margin-bottom: 1.5rem;
  color: #00793e;
  font-size: 1.5rem;
}

.resource-card h3 {
  font-size: 1.3rem;
  color: #1f1f1f;
  margin-bottom: 1rem;
}

.resource-card p {
  color: #6b7280;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}

.resource-link {
  color: #00793e;
  text-decoration: none;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s ease-in-out;
}

.resource-link:hover {
  color: #b68f54;
  gap: 0.8rem;
}

.resource-link i {
  font-size: 0.8rem;
  transition: all 0.3s ease-in-out;
}

/* Blogs Section */
#blogs {
  position: relative;
}

/* Blog Cards */
.blog-card {
  border: 1px solid rgba(0, 121, 62, 0.1);
  transition: all 0.3s ease-in-out;
}

.blog-card:hover {
  box-shadow: 0 15px 30px rgba(0, 121, 62, 0.1);
  border-color: rgba(0, 121, 62, 0.3);
}

.blog-card img {
  height: 150px; /* Fixed height for images */
  object-fit: cover;
}

.blog-card h3 {
  font-size: 1.3rem;
  color: #1f1f1f;
  margin-bottom: 1rem;
}

.blog-card p {
  color: #6b7280;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}

.blog-link {
  color: #00793e;
  text-decoration: none;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s ease-in-out;
}

.blog-link:hover {
  color: #b68f54;
  gap: 0.8rem;
}

.blog-link i {
  font-size: 0.8rem;
  transition: all 0.3s ease-in-out;
}

/* Projects Section */
#projects {
  position: relative;
}

/* Project Cards */
.project-card {
  border: 1px solid rgba(0, 121, 62, 0.1);
  transition: all 0.3s ease-in-out;
}

.project-card:hover {
  box-shadow: 0 15px 30px rgba(0, 121, 62, 0.1);
  border-color: rgba(0, 121, 62, 0.3);
}

.project-card img {
  height: 150px; /* Fixed height for images */
  object-fit: cover;
}

.project-card h3 {
  font-size: 1.3rem;
  color: #1f1f1f;
  margin-bottom: 1rem;
}

.project-card p {
  color: #6b7280;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}

.project-link {
  color: #00793e;
  text-decoration: none;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s ease-in-out;
}

.project-link:hover {
  color: #b68f54;
  gap: 0.8rem;
}

.project-link i {
  font-size: 0.8rem;
  transition: all 0.3s ease-in-out;
}

/* Contact Section */
#contact {
  position: relative;
}

/* Map Container */
.map-container iframe {
  width: 100%;
  height: 450px; /* Fixed height for the map */
  border-radius: 8px; /* Rounded corners */
}

/* Form Container */
.form-container {
  padding: 2rem;
  background-color: #f9fafb;
}

.form-container h3 {
  font-size: 1.5rem;
  color: #00793e;
  margin-bottom: 1rem;
}

.form-container p {
  color: #6b7280;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

/* Input Fields and Textarea */
.form-container input,
.form-container textarea {
  background-color: #fff;
  border: 1px solid #d1d5db;
  transition: all 0.3s ease-in-out;
}

.form-container input:focus,
.form-container textarea:focus {
  border-color: #00793e;
  box-shadow: 0 0 0 4px rgba(0, 121, 62, 0.1);
}

/* Submit Button */
.form-container button {
  background-color: #00793e;
  color: #fff;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease-in-out;
}

.form-container button:hover {
  background-color: #b68f54;
}

/* Contact Details */
.grid.grid-cols-1.md\:grid-cols-3.gap-8 > div {
  padding: 1.5rem;
  border: 1px solid rgba(0, 121, 62, 0.1);
  border-radius: 8px;
  transition: all 0.3s ease-in-out;
}

.grid.grid-cols-1.md\:grid-cols-3.gap-8 > div:hover {
  border-color: #00793e;
  box-shadow: 0 4px 6px rgba(0, 121, 62, 0.1);
}