/* ------------------ RESET & GLOBAL STYLES ------------------ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Body style: sets font, line height, background color */
body {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  background-color: #f7f7f7;
  color: #333;
}

/* ------------------ HEADER ------------------ */
header {
  background-color: #0073a8; /* Deep blue header */
  color: white;
  padding: 20px;
}

/* Header logo container (image + text) */
.logo {
  display: flex;
  align-items: center;
}

/* Logo image styling */
.logo img {
  width: 50px;
  margin-right: 15px;
}

/* ------------------ MENU TOGGLE (Hamburger) ------------------ */

/* Hidden by default (visible only on mobile via media query) */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: white;
  margin-top: 10px;
}

/* ------------------ NAVIGATION BAR ------------------ */
nav {
  margin-top: 10px;
}

/* Main nav links container */
.nav-links {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
}

/* Individual nav links */
.nav-links li a {
  color: white;
  text-decoration: none;
  padding: 8px 12px;
  background-color: #005f8d;
  border-radius: 4px;
  display: inline-block;
}

.nav-links li a:hover {
  background-color: #004a6e;
}

.nav-links li a:focus {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

/* ------------------ MAIN CONTENT ------------------ */
html, body {
  height: 100%;
  margin: 0;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1; /* Fill available space */
}

main {
  padding: 20px;
  background-color: #fff;
}

/* Section headings */
main h2 {
  margin-bottom: 10px;
  color: #0073a8;
}

/* Welcome section - centered intro */
.welcome {
  text-align: center;
  margin-top: 30px;
}

/* Welcome image styling */
.welcome img {
  width: 90%;
  max-width: 600px;
  margin-top: 20px;
  border-radius: 8px;
}

/* Common section styles */
.about,
.programs,
.get-involved {
  margin-top: 40px;
  background-color: #eef6fb;
  padding: 20px;
  border-radius: 8px;
}

/* Program list items */
.programs ul {
  list-style-type: disc;
  margin-left: 20px;
  padding-left: 10px;
}

/* Get Involved button */
.get-involved .cta-button {
  display: inline-block;
  margin-top: 15px;
  padding: 10px 20px;
  background-color: #0073a8;
  color: #fff;
  text-decoration: none;
  border-radius: 5px;
}

.get-involved .cta-button:hover {
  background-color: #005f8d;
}

/* ------------------ FOOTER ------------------ */
footer {
  background-color: #333;
  color: white;
  text-align: center;
  padding: 15px 0;
  margin-top: 40px;
}

/* ------------------ CONTACT FORM ------------------ */
.contact {
  margin-top: 40px;
  background-color: #eef6fb;
  padding: 20px;
  border-radius: 8px;
}

.contact h2 {
  margin-bottom: 10px;
}

.contact-form {
  display: flex;
  flex-direction: column;
}

.contact-form label {
  margin-top: 15px;
  font-weight: bold;
}

.contact-form input,
.contact-form textarea {
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-family: inherit;
  font-size: 1rem;
  margin-top: 5px;
}

.contact-form button {
  margin-top: 20px;
  padding: 10px;
  background-color: #0073a8;
  color: white;
  border: none;
  border-radius: 5px;
  font-size: 1rem;
  cursor: pointer;
}

.contact-form button:hover {
  background-color: #005f8d;
}

/* ------------------ RESPONSIVE STYLES ------------------ */
@media (max-width: 768px) {
  /* Stack logo vertically on small screens */
  .logo {
    flex-direction: column;
    align-items: flex-start;
  }

  /* Hamburger button becomes visible */
  .menu-toggle {
    display: block;
  }

  /* Hide nav links by default (until toggle) */
  .nav-links {
    display: none;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    gap: 10px;
  }

  /* Show nav links when menu is toggled */
  #navbar.active .nav-links {
    display: flex;
  }

  /* Full width for mobile nav links */
  .nav-links li a {
    display: block;
    width: 100%;
  }

  /* Adjust welcome image for mobile */
  .welcome img {
    width: 100%;
  }
}

/* ----------- DROPDOWN MENU STYLES ----------- */
.dropdown {
  position: relative;
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: #005f8d;
  border-radius: 4px;
  min-width: 220px;
  z-index: 1000;
  padding: 10px 0;
}

.dropdown-menu li a {
  display: block;
  padding: 8px 16px;
  color: white;
  background-color: #005f8d;
  text-decoration: none;
}

.dropdown-menu li a:hover {
  background-color: #004a6e;
}

.dropdown:hover .dropdown-menu {
  display: block;
}

/* Show class for mobile toggle */
.dropdown-menu.show {
  display: block;
}

/* ----------- RESPONSIVE DROPDOWN IN MOBILE ----------- */
@media (max-width: 768px) {
  .dropdown-menu {
    position: static;
    width: 100%;
    padding-left: 20px;
  }

  .dropdown:hover .dropdown-menu {
    display: none; /* Disable hover in mobile */
  }
}

/* children.html page */
/* Accordion styling for children.html */

.accordion-section {
  margin-top: 20px;
  border: 1px solid #0073a8;
  border-radius: 8px;
  background-color: #eef6fb;
}

.accordion-toggle {
  background-color: #0073a8;
  color: white;
  padding: 12px 16px;
  width: 100%;
  text-align: left;
  font-weight: bold;
  font-size: 1rem;
  cursor: pointer;
  border: none;
  border-radius: 8px 8px 0 0;
  outline: none;
  transition: background-color 0.3s ease;
}

.accordion-toggle:hover {
  background-color: #005f8d;
}

.accordion-content {
  display: none;
  padding: 15px 20px;
  background-color: white;
  border-top: 1px solid #0073a8;
  border-radius: 0 0 8px 8px;
}

.accordion-content ul {
  list-style: disc;
  margin-left: 20px;
  line-height: 1.6;
}

.accordion-content h4 {
  margin-top: 10px;
  color: #005f8d;
}
/* Volunteer Modal */
.modal {
  display: none;
  position: fixed;
  z-index: 999;
  padding-top: 80px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.6);
}

.modal-content {
  background-color: #fff;
  margin: auto;
  padding: 30px;
  border-radius: 10px;
  max-width: 500px;
  position: relative;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.modal-content h3 {
  margin-bottom: 20px;
  color: #0073a8;
}

.modal-content label {
  display: block;
  margin: 10px 0 5px;
}

.modal-content input[type="text"],
.modal-content input[type="date"],
.modal-content textarea {
  width: 100%;
  padding: 8px;
  border-radius: 4px;
  border: 1px solid #ccc;
}

.modal-content button {
  margin-top: 15px;
  padding: 10px 20px;
  background-color: #0073a8;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

.modal-content button:hover {
  background-color: #005f8d;
}

.close {
  position: absolute;
  right: 15px;
  top: 10px;
  font-size: 24px;
  color: #aaa;
  cursor: pointer;
}
