/* ===================== RESET AND BASE STYLES ===================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: #fff;
  color: #333;
  padding-top: 100px;
}

/* ===================== CONTAINER ===================== */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

/* ===================== HEADER ===================== */
.header {
  width: 100%;
  background: #fff;
  padding: 15px 0;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo img {
  height: 70px;
}

.logo span {
  font-size: 1.5rem;
  font-weight: bold;
  color: #2e7d32;
}

/* ===================== NAVIGATION ===================== */
.navbar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.navbar ul {
  list-style: none;
  display: flex;
  gap: 30px;
}

.navbar ul li a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
  transition: color 0.3s;
}

.navbar ul li a:hover,
.navbar ul li a.active {
  color: #2e7d32;
}

/* Hamburger hidden by default */
.hamburger {
  display: none;
  font-size: 1.8rem;
  cursor: pointer;
}

/* ===================== HERO ===================== */
.volunteer-hero {
  height: 70vh;
  background: url('images/volunteer.jpg') center/cover no-repeat;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 20px;
}

.volunteer-hero .overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.5);
}

.hero-content {
  position: relative;
  color: #fff;
  max-width: 700px;
}

.hero-content h1 {
  font-size: clamp(1.8rem, 4vw, 3rem);
  margin-bottom: 10px;
}

.hero-content p {
  font-size: clamp(1rem, 2vw, 1.2rem);
}

/* ===================== CARDS ===================== */
.volunteer-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
  margin-top: 40px;
}

.card {
  background: #f5f5f5;
  padding: 25px;
  border-radius: 10px;
  text-align: center;
  transition: 0.3s;
}

.card:hover {
  transform: translateY(-5px);
}

.card i {
  font-size: 2rem;
  color: #2e7d32;
  margin-bottom: 10px;
}

/* ===================== FORM ===================== */
.volunteer-form-section {
  margin-top: 60px;
}

#volunteerForm {
  display: flex;
  flex-direction: column;
  gap: 15px;
  max-width: 500px;
  margin: auto;
}

#volunteerForm input,
#volunteerForm select,
#volunteerForm textarea {
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 6px;
  width: 100%;
  font-size: 1rem;
}

#volunteerForm textarea {
  min-height: 120px;
  resize: vertical;
}

#volunteerForm button {
  background: #2e7d32;
  color: #fff;
  border: none;
  padding: 12px;
  border-radius: 6px;
  cursor: pointer;
  transition: 0.3s;
}

#volunteerForm button:hover {
  background: #256628;
}

/* ===================== FOOTER ===================== */
.footer-home {
  text-align: center;
  padding: 20px;
  margin-top: 50px;
  background: #f5f5f5;
}

/* ===================== RESPONSIVE DESIGN ===================== */

/* TABLET */
@media (max-width: 1024px) {
  .navbar ul {
    gap: 20px;
  }
}

/* MOBILE NAVIGATION */
@media (max-width: 768px) {

  .hamburger {
    display: block;
  }

  .navbar {
    display: none;
    position: fixed;
    top: 80px;
    right: 0;
    width: 70%;
    height: calc(100vh - 80px);
    background: #fff;
    flex-direction: column;
    padding: 20px;
    box-shadow: -2px 0 10px rgba(0,0,0,0.1);
  }

  .navbar.active {
    display: flex;
  }

  .navbar ul {
    flex-direction: column;
    gap: 20px;
  }

  .logo img {
    height: 60px;
  }

  .logo span {
    font-size: 1.2rem;
  }

  .volunteer-hero {
    height: 60vh;
  }
}

/* SMALL MOBILE */
@media (max-width: 480px) {
  .card {
    padding: 20px;
  }

  #volunteerForm input,
  #volunteerForm select,
  #volunteerForm textarea {
    font-size: 0.95rem;
  }

  .footer-home {
    font-size: 0.8rem;
    padding: 15px;
  }
}