/* ======================================== COMMON STYLES (from style.css) ======================================== */

* {
  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;
  display: flex;
  justify-content: center;
  align-items: center;
  color: white;
  text-align: center;
  position: relative;
  overflow: hidden;
}

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

.hero-content {
  position: relative;
  z-index: 2;
  padding: 20px;
  animation: fadeInUp 1s ease-out;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

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

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

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

.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-block;
  box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
}

.btn:hover {
  background-color: #ffed4e;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(255, 215, 0, 0.5);
}

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

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

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

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

.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;
}



.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);
}

/* Contact Form */
.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);
}



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

.footer-container {
  display: flex;
  justify-content: space-between;
  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;
}

.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: column;
    gap: 15px;
  }

  .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;
  }
}


/* ======================================== PAGE SPECIFIC STYLES ======================================== */

/* --- Main Content Styles (Retained/Adjusted for consistency) --- */
.hero {
  position: relative;
  height: 70vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: white;
  padding: 20px;
  animation: fadeInUp 1s ease-out;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

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

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

.hero-content p {
  font-size: 1.5rem;
  text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.7);
}

.events-section {
  padding: 80px 20px;
  max-width: 1400px;
  margin: 0 auto;
}

.events-section h2 {
  text-align: center;
  font-size: 2.8rem;
  color: #1b5e20;
  margin-bottom: 20px;
  position: relative;
  display: inline-block;
  left: 50%;
  transform: translateX(-50%);
  animation: fadeIn 0.8s ease-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

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

.section-description {
  text-align: center;
  font-size: 1.2rem;
  color: #555;
  margin-bottom: 50px;
  animation: fadeIn 1s ease-out;
}

.events-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 35px;
  margin-top: 40px;
  justify-content: center;
  /* Centers cards if they don't fill the row */
}

/* Limit card width to prevent massive stretching */
@media (min-width: 1000px) {
  .events-container {
    grid-template-columns: repeat(auto-fill, minmax(320px, 400px));
  }
}

.event-card {
  background: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  transition: all 0.4s;
  animation: zoomIn 0.6s ease-out;
  border: 3px solid transparent;
  display: flex;
  flex-direction: column;
  position: relative;
  height: 100%;
  transform: translateZ(0);
  /* Hardware acceleration for better clipping */
  isolation: isolate;
  /* Create new stacking context */
}

@keyframes zoomIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

.event-card:hover {
  transform: translateY(-15px);
  box-shadow: 0 15px 50px rgba(46, 139, 87, 0.25);
  border-color: #2e8b57;
}

.event-image-container {
  width: 100%;
  height: 220px;
  overflow: hidden;
  position: relative;
  flex-shrink: 0;
  border-radius: 17px 17px 0 0;
  /* Matches card inner radius (20px - 3px border) */
  margin: -1px -1px 0 -1px;
  /* Slight adjustment to hide pixels at the edges */
}

.event-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
  border-radius: 17px 17px 0 0;
}

.event-card:hover .event-image-container img {
  transform: scale(1.1);
}

.event-content {
  padding: 25px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  height: 100%;
}

.event-content>a,
.event-content>.event-status {
  margin-top: auto;
  align-self: flex-start;
}

.event-id {
  display: inline-block;
  align-self: flex-start;
  /* Prevent stretch in flex card */
  background: linear-gradient(135deg, #2e8b57, #3cb371);
  color: white;
  padding: 5px 15px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 15px;
}

.event-card h3 {
  color: #1b5e20;
  font-size: 1.6rem;
  margin-bottom: 15px;
}

.event-card p {
  color: #555;
  line-height: 1.8;
  margin-bottom: 10px;
}

.event-details {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 15px;
  padding-top: 15px;
  border-top: 2px solid #e0e0e0;
}

.event-detail-item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #2e8b57;
  font-weight: 500;
}

.event-detail-item::before {
  content: "📅";
  font-size: 1.2rem;
}

.event-detail-item.time::before {
  content: "🕐";
}

.event-status {
  display: inline-block;
  padding: 8px 20px;
  border-radius: 20px;
  font-weight: bold;
  font-size: 0.9rem;
  margin-top: 15px;
}

.status-upcoming {
  background: #e8f5e9;
  color: #2e7d32;
}

.status-future {
  background: #e3f2fd;
  color: #1565c0;
}

.status-completed {
  background: #fff3e0;
  color: #e65100;
}

.signup-section {
  background: linear-gradient(135deg, #e8f5e9, #c8e6c9);
  padding: 80px 20px;
  margin-top: 80px;
}

.signup-container {
  max-width: 700px;
  margin: 0 auto;
  background: white;
  padding: 50px;
  border-radius: 25px;
  box-shadow: 0 15px 50px rgba(46, 139, 87, 0.2);
  animation: fadeInUp 1s ease-out;
}

.signup-container h2 {
  text-align: center;
  color: #1b5e20;
  font-size: 2.5rem;
  margin-bottom: 15px;
}

.signup-container p {
  text-align: center;
  color: #555;
  font-size: 1.1rem;
  margin-bottom: 35px;
}

.form-group {
  margin-bottom: 25px;
}

.form-group label {
  display: block;
  color: #1b5e20;
  font-weight: 600;
  margin-bottom: 10px;
  font-size: 1.1rem;
}

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

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

.submit-btn {
  width: 100%;
  padding: 18px;
  background: linear-gradient(135deg, #2e8b57, #3cb371);
  color: white;
  border: none;
  border-radius: 10px;
  font-size: 1.2rem;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s;
  margin-top: 20px;
}

.submit-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(46, 139, 87, 0.4);
  background: linear-gradient(135deg, #3cb371, #2e8b57);
}

/* --- Responsive Styles (Unified) --- */
@media (max-width: 768px) {
  .hero-content h1 {
    font-size: 2.5rem;
  }

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

  .events-container {
    grid-template-columns: 1fr;
  }

  .signup-container {
    padding: 30px 20px;
  }
}

/* Registered Event Styles - Keep it clear and normal */
.event-card.registered {
  border-color: #2e8b57;
}

.event-card.registered img,
.event-card.registered .event-content {
  filter: none;
  opacity: 1;
  pointer-events: auto;
  user-select: auto;
}

.status-registered {
  background: #2e8b57;
  color: white;
}