/* === styles.css === */
body {
    font-family: sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
}
/* Navigation Bar Styles */
.navbar {
    background-color: #015b90;
    color: #00aaff;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: auto;
    padding: 0 20px;
}

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

.nav-logo img {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: 50%;
}

.nav-logo span {
    font-size: 1.2rem;
    font-weight: bold;
    color: #fff;
}

.nav-links {
    display: flex;
    flex-direction: row; 
    gap: 1.5rem;
    margin-left: auto; 
    position: static; 
    background: none;
    height: auto;
    width: auto;
    padding: 0;
    box-shadow: none;
}

.nav-links a.active {
  color: #005fa3;   
  font-weight: bold;
  border-bottom: 2px solid #0077cc; 
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}


.nav-links li {
    list-style: none;
}

.nav-links li a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links li a:hover {
    color: #00aaff;
}

.menu-toggle {
    display: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: #fff;
    position: relative;
    z-index: 1000;
}

/* Shared section style */
.page-section {
    padding: 60px 20px;
    background: #f9f9f9;
}

.section-title {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 20px;
    color: #333;
}

/* Hero Section with Background Image */
.hero {
  background: url("./Assets/logo.jpg") no-repeat center center/cover;
  color: white;                 
  text-align: center;
  padding: 100px 20px;          
  position: relative;
  min-height: 20vh; /* ensure image takes space */
}

/* Dark overlay */
.hero::before {
  content: "";
  position: absolute;
  top: 0; 
  left: 0;
  width: 100%; 
  height: 100%;
  background: rgba(0, 0, 0, 0.25);
  z-index: 1;
  transition: background 0.4s ease;
}

/* Hover effect */
.hero:hover::before {
  background: rgba(0, 0, 0, 0.1);
}

.hero .container {
  position: relative;
  z-index: 2; /* text stays above overlay */
}

.section-intro {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 40px;
    color: #555;
}



/* Grid layout for activities */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.card {
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
    transition: transform 0.2s;
}

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

/* Contact form */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 500px;
    margin: 0 auto 40px;
}

.contact-form input,
.contact-form textarea {
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
}

.contact-form button {
    background: #015b90;
    color: #fff;
    padding: 12px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
}

.contact-form button:hover {
    background: #00aaff;
}

/* Contact details */
.contact-details {
    text-align: center;
    color: #333;
    line-height: 1.6;
}

/* Core Values List */
.mission-page ul {
    list-style: none;
    padding: 0;
    max-width: 600px;
    margin: 20px auto;
}

.mission-page ul li {
    background: #fff;
    margin: 12px 0;
    padding: 15px 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: transform 0.2s ease-in-out;
}

.mission-page ul li:hover {
    transform: translateX(5px);
    background: #f0f8ff;
}

.container {
    max-width: 960px;
    margin: auto;
    padding: 0 20px;
}

.hero {
    background: #015b90;
    color: #fff;
    text-align: center;
    padding: 2rem;
}

.logo {
    height: 20rem;
    object-fit: cover;
    margin-bottom: 1rem;
}

.cta-button {
    background: white;
    color: #015b90;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    text-decoration: none;
}
.cta-button:hover {
    background: #00aaff;
    color: white;
}
.mission,
.programs,
.about,
.involved,
.gallery,
.contact {
    padding: 3rem 0;
    scroll-behavior: smooth;
}

.program-grid,
.gallery-grid,
.team {
    display: grid;
    gap: 1.5rem;
}

.program-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.team {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.member img {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 50%;
    display: block;
    margin: 0 auto 1rem;
}
.container {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center; /* Center text and inline content */
}
.program-grid,
.team,
.gallery-grid {
    justify-content: center;
    text-align: center;
}

.involved-buttons a {
    margin: 0.5rem;
    padding: 0.5rem 1rem;
    text-decoration: none;
    background: #015b90;
    color: #fff;
    border-radius: 4px;
}
.involved-buttons a:hover {
    background: #00aaff;
    color: #fff;
}

.gallery-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}
.gallery-grid:hover {
    transform: scale(1.05s);
}
.gallery-grid img {
    width: 300px;
    height: 200px;
    border-radius: 8px;
}
.gallery-img {
    width: 300px;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
}

.contact {
    background-color: #f3f4f6;
    padding: 3rem 0;
    text-align: center;
}

.contact h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: #015b90;
}

.contact form {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    max-width: 600px;
    margin: 0 auto 2rem;
}
.contact button:hover {
    background-color: #00aaff;
    transform: scale(1.05);
}
.contact input,
.contact textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 1rem;
    font-family: inherit;
    background: white;
}

.contact textarea {
    width: 100%;
    height: 120px;
    padding: 0;
    text-align: center; /* Center text horizontally */
    display: flex;
    align-items: center; /* Center vertically (when using flex) */
    justify-content: center;
    line-height: 1.5;
    resize: vertical;
    font-size: 1rem;
    box-sizing: border-box;
}
.contact textarea::placeholder {
    text-align: center;
    opacity: 0.6;
}
.contact input[type="text"],
.contact input[type="email"] {
    width: 100%;
    padding: 12px 0;
    text-align: center; /* Horizontal center */
    font-size: 1rem;
    box-sizing: border-box;
}
.contact input::placeholder {
    text-align: center;
}
.contact button {
    background-color: #015b90;
    color: white;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.2s;
}

.contact button:hover {
    background-color: #00aaff;
    transform: scale(1.05);
}

.contact-info {
    font-size: 1rem;
    color: #fff;
    margin-top: 1rem;
}

.form-status {
  margin-top: 1rem;
  font-size: 1rem;
}

/* ================================
   Get Involved Page
================================ */

/* Volunteer Signup Button */
.volunteer-signup {
    text-align: center;
    margin: 30px 0;
}

#volunteerBtn,
#openVolunteerModal {
    background: #015b90;
    color: #fff;
    padding: 0.7rem 1.2rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.3s ease, transform 0.2s ease;
    display: inline-block;
    margin-top: 1.5rem;
}

#volunteerBtn:hover,
#openVolunteerModal:hover {
    background: #00aaff;
    transform: translateY(-2px);
}

/* ================================
   Volunteer Modal
================================ */
.volunteer-modal {
    display: none; /* hidden by default */
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    justify-content: center;
    align-items: center;
    z-index: 2000;
    padding: 20px;
}

.volunteer-modal.active {
    display: flex;
}

.modal-content {
    background: #fff;
    padding: 2rem;
    border-radius: 12px;
    width: 90%;
    max-width: 450px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
    animation: fadeIn 0.3s ease;
    position: relative;
}

/* Default modal size (mobile-first, full width) */
.volunteer-modal .modal-content {
  width: 90%;
  max-width: 500px;
  margin: auto;
  padding: 20px;
  background: #fff;
  border-radius: 10px;
}

/* Modal Title */
.modal-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #0077cc;
    text-align: center;
}

/* Close Button */
.close-modal {
    position: absolute;
    top: 12px;
    right: 16px;
    font-size: 1.3rem;
    cursor: pointer;
    color: #666;
}
.close-modal:hover {
    color: #000;
}

/* Form */
.contact-form .form-group {
    margin-bottom: 1rem;
    display: block;
    width: 100%;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 0.7rem;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 0.95rem;
    box-sizing: border-box;
}
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    border-color: #2e8b57;
}

.contact-form textarea {
    resize: vertical;
    min-height: 80px;
}

/* Submit Button */
.contact-form button {
    background: #005fa3;
    color: #fff;
    padding: 12px 25px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: background 0.3s ease, transform 0.2s ease;
    width: 100%;
    margin-top: 10px;
}
.contact-form button:hover {
    background: #0077cc;
    transform: translateY(-2px);
}

.success-message {
    margin-top: 15px;
    color: green;
    font-weight: bold;
}

/* Fade In Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* ================================
   Involved Section
================================ */
.involved {
    padding: 3rem 0;
    text-align: center;
}

.involved h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #0077cc;
}

.involved p {
    max-width: 800px;
    margin: 0 auto 2rem;
    font-size: 1.05rem;
    line-height: 1.6;
    color: #fff;
}

.volunteer-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.option {
    background: #fff;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.option:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
}
.option i {
    font-size: 2rem;
    color: #0077cc;
    margin-bottom: 1rem;
}
.option h3 {
    color: #222;
    margin-bottom: 0.5rem;
}
.option p {
    color: #555;
    font-size: 0.95rem;
}


/* Social links container */
.social-links {
    display: flex;
    gap: 20px;
    justify-content: center;
    align-items: center;
    margin-top: 10px;
}

/* Base icon style */
.social-icon {
    position: relative;
    color: white;
    font-size: 1.5rem;
    text-decoration: none;
}

/* Tooltip styling */
.social-icon .tooltip {
    position: absolute;
    bottom: 130%; /* position above the icon */
    left: 50%;
    transform: translateX(-50%);
    background-color: #003366;
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 0.75rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease, bottom 0.3s ease;
    z-index: 100;
}

/* Show tooltip on hover */
.social-icon:hover .tooltip {
    opacity: 1;
    bottom: 150%;
}


.social-icons a {
  font-size: 1.5rem;
  margin-right: 10px;
  display: inline-block;
  transition: transform 0.3s ease; /* smooth hover effect */
}

/* Facebook */
.social-icons a .fa-facebook-f {
  color: #fff; /* official blue */
}
.social-icons a:hover .fa-facebook-f {
  color: #1877F2; /* stays blue */
  transform: scale(1.2);
}

/* LinkedIn */
.social-icons a .fa-linkedin {
  color: #fff; /* official blue */
}
.social-icons a:hover .fa-linkedin {
  color: #0077B5; /* stays blue */
  transform: scale(1.2);
}

/* WhatsApp */
.social-icons a .fa-whatsapp {
  color: #fff; /* official green */
}
.social-icons a:hover .fa-whatsapp {
  color: #25D366; /* stays green */
  transform: scale(1.2);
}

/* Mail */
.social-icons a .fa-envelope {
  color: #fff; /* Google red style */
}
.social-icons a:hover .fa-envelope {
  color: #EA4335; /* stays red */
  transform: scale(1.2);
}

.footer {
    background: #015b90;
    color: #ffffff;
    text-align: center;
    padding: 2rem 0 0;
    font-size: 14px;
    width: 100%;
}

.footer-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    width: 100%;
    margin: auto;
}

.footer-logo {
    width: 60px;
    right: 30%;
    margin-bottom: 15px;
    border-radius: 50%;
}

.footer-about {
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.footer-about p {
    line-height: 1.5;
    font-size: 14px;
}

.footer-about,
.footer-links,
.footer-contact {
    flex: 1 1 250px;
}

.footer-links h3,
.footer-contact h3 {
    margin-bottom: 10px;
    font-size: 16px;
    color: #00aaff;
}

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

.footer-links ul li {
    margin: 8px 0;
}

.footer-links ul li a {
    text-decoration: none;
    color: #ffffff;
    transition: color 0.3s;
}

.footer-links ul li a:hover {
    color: #00aaff;
}

.footer-contact p {
    margin: 5px 0;
}

.social-icons a {
    color: #ffffff;
    margin-right: 10px;
    font-size: 18px;
    transition: color 0.3s;
}

.social-icons a:hover {
    color: #00aaff;
}

.footer-bottom {
    text-align: center;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 20px;
    font-size: 13px;
}

@media (max-width: 768px) {
    .program-grid {
        grid-template-columns: 1fr 1fr;
    }

    .gallery-grid {
        grid-template-columns: 1fr 1fr;
    }

    .nav-links {
        display: none; /* hidden by default */
        flex-direction: column;
        gap: 1rem;
        background: #015b90;
        position: absolute;
        top: 70px; /* just below navbar */
        right: 20px;
        width: 220px; /* popup width */
        padding: 1rem;
        border-radius: 10px;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
        z-index: 999;
    }

    .nav-links.active {
        display: flex;
        animation: dropdown 0.3s ease-in-out;
    }

    .menu-toggle {
        display: block;
        font-size: 1.8rem;
        cursor: pointer;
    }

    .team {
        flex-direction: column;
        align-items: center;
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    .hero p {
        font-size: 1rem;
    }
    .volunteer-modal .modal-content.small-modal {
    width: 40%;  /* Make it smaller on big screens */
    max-width: 450px;
    padding: 25px;
  }

  .volunteer-modal .modal-title {
    font-size: 1.3rem; /* Slightly smaller text */
  }

  .contact-form input,
  .contact-form select,
  .contact-form textarea {
    font-size: 0.9rem;
  }
}


/* 📱 Mobile (480px and below) */
@media (max-width: 480px) {
    .program-grid {
        grid-template-columns: 1fr;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .hero h1 {
        font-size: 1.8rem;
    }

    .hero p {
        font-size: 0.9rem;
    }

    .cta-button {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
    }

    .member img {
        width: 150px;
    }
}

@keyframes dropdown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
