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

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: #333;
  background: #f5f7fa;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  height: auto;
}

/* Header */
header {
  background-color: #2e8b57;
  color: white;
  padding: 15px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transition: background-color 0.3s;
}

header:hover {
  background-color: #3cb371;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: auto;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

#nav-logo {
  font-size: 1.8rem;
  font-weight: bold;
  letter-spacing: 1px;
}

#nav-menu {
  display: flex;
  list-style: none;
  gap: 30px;
  align-items: center;
}

#nav-menu li a {
  font-weight: 500;
  transition: color 0.3s;
  padding: 5px 10px;
}

#nav-menu li a:hover {
  color: #ffd700;
}

.active-page {
  color: #ffd700;
  border-bottom: 2px solid #ffd700;
  padding-bottom: 3px;
}

#nav-menu li a img {
  vertical-align: middle;
  transition: transform 0.3s;
}

#nav-menu li a:hover img {
  transform: scale(1.1);
}

/* --- Left to Right Hover Animation --- */
.hover-slide {
  position: relative;
  overflow: hidden;
}

.hover-slide img,
.hover-slide .about-text,
.hover-slide .events-text,
.hover-slide .volunteer-text {
  transition: transform 0.6s ease;
}

/* Hover effect for left-right motion */
.hover-slide:hover img {
  transform: translateX(600px);
  /* move image to the right */
}

.hover-slide:hover .about-text,
.hover-slide:hover .events-text,
.hover-slide:hover .volunteer-text {
  transform: translateX(-570px);
  /* move text to the left */
}

/* Hero Section */
.hero {
  height: 90vh;
  /* Keep full height */
  display: flex;
  justify-content: center;
  /* Center content horizontally */
  align-items: center;
  /* Center content vertically */
  color: white;
  text-align: center;
  position: relative;
  overflow: hidden;
  padding: 0 5%;
  /* Add side padding */
}

.hero-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  filter: brightness(50%);
}

/* Container for the split layout */
.hero>.hero-content,
.hero>.login-section {
  position: relative;
  z-index: 2;
  flex: 1;
  /* Split width equally */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

/* Specific alignments */
.hero>.hero-content {
  align-items: flex-start;
  /* Left align text */
  text-align: left;
  padding-right: 50px;
}

.hero>.login-section {
  align-items: center;
  justify-content: center;
}

/* Ensure the form container is centered and sized */
.login-container {
  width: 100%;
  max-width: 450px;
  /* Limit form width */
  margin: 0;
  /* Removing default margin */
}

.hero-content h1 {
  font-size: 3.5rem;
  margin-bottom: 20px;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
  line-height: 1.2;
}

.hero-content p {
  font-size: 1.4rem;
  margin-bottom: 30px;
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.7);
}

/* Button style adjustment for left alignment */
.hero-content .btn {
  align-self: flex-start;
}

/* Mobile Responsive adjustment for Hero */
@media (max-width: 900px) {
  .hero {
    flex-direction: column;
    height: auto;
    padding: 100px 20px 50px;
    gap: 40px;
  }

  .hero>.hero-content {
    align-items: center;
    text-align: center;
    padding-right: 0;
  }

  .hero-content .btn {
    align-self: center;
  }
}

.btn {
  background-color: #ffd700;
  color: #2e8b57;
  padding: 15px 35px;
  border-radius: 30px;
  font-weight: bold;
  font-size: 1.1rem;
  transition: all 0.3s;
  display: inline-flex;
  box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
}



/* Sections */
section {
  padding: 80px 0;
}

section h2 {
  text-align: center;
  margin-bottom: 50px;
  color: #2e8b57;
  font-size: 2.5rem;
  position: relative;
  padding-bottom: 15px;
}

.about,
.events,
.volunteer {
  display: flex;
  flex-wrap: wrap;
  gap: 50px;
  justify-content: center;
  align-items: center;

}

h2::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 4px;
  background: linear-gradient(to right, #2e8b57, #ffd700);
  border-radius: 2px;
}

.about img,
.events img,
.volunteer img {
  flex: 1 1 450px;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  transition: transform 0.4s ease;
  max-width: 500px;
}

.contact form {
  max-width: 600px;
  margin: auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
  background: white;
  padding: 40px;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.contact input,
.contact textarea {
  padding: 15px;
  border-radius: 10px;
  border: 2px solid #e0e0e0;
  font-size: 1rem;
  width: 100%;
  transition: all 0.3s;
  font-family: inherit;
}

.contact input:focus,
.contact textarea:focus {
  outline: none;
  border-color: #2e8b57;
  box-shadow: 0 0 10px rgba(46, 139, 87, 0.2);
}

.contact button {
  padding: 15px;
  background: #2e8b57;
  color: white;
  border: none;
  font-weight: bold;
  font-size: 1.1rem;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s;
}

.contact button:hover {
  background: #3cb371;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(46, 139, 87, 0.3);
}


.about-text,
.events-text,
.volunteer-text {
  flex: 1 1 450px;
  max-width: 600px;
}

.about-text p,
.events-text p,
.volunteer-text p {
  font-size: 1.1rem;
  margin-bottom: 20px;
  line-height: 1.8;
  text-align: justify;
}

.events-text span {
  color: #2e8b57;
}

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

.volunteer-text a {
  display: inline-block;
  margin-top: 20px;
  padding: 12px 30px;
  background: #ffd700;
  color: #2e8b57;
  border-radius: 25px;
  font-weight: bold;
  transition: all 0.3s;
}

.volunteer-text a:hover {
  background: #ffed4e;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
}

/* Footer */
footer {
  background: linear-gradient(544deg, #2e8b57, #196b42);
  color: white;
  padding: 50px 20px 20px;
}

.footer-container {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 30px;
  margin-bottom: 30px;

}

.footer-section {
  flex: 1;
  min-width: 200px;
}

.footer-section h3 {
  border-bottom: 2px solid white;
  padding-bottom: 10px;
  margin-bottom: 15px;
  font-size: 1.2rem;
  /* border-left: #f5f7fa; */
}

.footer-section ul {
  list-style: none;
  padding: 0;
}

.footer-section li {
  margin: 8px 0;
  transition: transform 0.2s;

}

.footer-section li:hover {
  transform: translateX(5px);
}

.footer-section a {
  color: white;
  transition: color 0.3s;

}

.footer-section a:hover {
  color: #ffd700;
}

.footer-section p {
  font-size: 14px;
  line-height: 1.8;
}

.copyright {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 14px;
}

.copyright a {
  color: #ffd700;
  font-weight: bold;
}

/* Responsive */
@media (max-width: 768px) {
  #nav-menu {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 15px;
  }

  .container img {
    width: 300px;
    height: 150px;

  }

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

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

  .about,
  .events,
  .volunteer {
    flex-direction: column;
  }

  section h2 {
    font-size: 2rem;
  }

  .footer-container {
    flex-direction: column;
  }
}

.login-form {
  z-index: 2;
  width: 400px;
  max-width: 100%;

}

.login-container {
  background: white;
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  width: 90%;
  height: 70%;
  max-width: 500px;
  text-align: center;
  z-index: 1;
}

.login-container h2 {
  color: #2e7d32;
  margin-bottom: 10px;
}

.login-container p {
  color: #666;
  margin-bottom: 30px;
  font-size: 0.9rem;
}

.form-group {
  margin-bottom: 20px;
  text-align: left;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: #333;
}

.form-group input {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 1rem;
  transition: border-color 0.3s;
}

.form-group input:focus {
  outline: none;
  border-color: #2e7d32;
}

.submit-btn {
  background: #2e7d32;
  color: white;
  border: none;
  padding: 12px;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s;
  margin-top: 10px;
}

.submit-btn:hover {
  background: #1b5e20;
}

.form-footer {
  margin-top: 20px;
  font-size: 0.9rem;
}

.toggle-link {
  color: #2e7d32;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s;
}

.toggle-link:hover {
  text-decoration: underline;
  color: #1b5e20;
}

/* Form Toggling Logic */
#auth-toggle:checked~.login-section .signup-form-container {
  display: none;
}

#auth-toggle:checked~.login-section .login-form-container {
  display: block;
}

#auth-toggle:not(:checked)~.login-section .signup-form-container {
  display: block;
}

#auth-toggle:not(:checked)~.login-section .login-form-container {
  display: none;
}

/* Ensure consistent positioning */
.login-section {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 400px;
}

.login-form-container,
.signup-form-container {
  animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}