/* General Styling */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
    scroll-behavior: smooth;
}

body {
    background-color: #f9f9f9;
    color: #333;
    line-height: 1.6;
    font-size: 16px;
    overflow-x: hidden;
    animation: fadeIn 1.5s ease-in-out;
}





/* Navbar */
.navbar {
    background-color: white;
    padding: 20px 0; /* Adjusted padding for consistency with others */
    text-align: center;
    position: sticky;
    top: 0;
    z-index: 10;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Center the logo */
.logo {
    display: flex;
    justify-content: center;
    flex-grow: 1; /* Allows it to stay centered */
    order: 2;
}

.logo img {
    max-width: 220px; /* Consistent logo width */
    height: auto; /* Maintain aspect ratio */
}



/* Increase logo size for mobile screens */
@media (max-width: 768px) {
    .logo img {
        height: 220px; /* Increase size for mobile */
    }
}

@media (max-width: 480px) {
    .logo img {
        height: 250px; /* Even bigger for smaller screens */
    }
}








/* Volunteer Section */
.volunteer-section {
    max-width: 900px;
    margin: 30px auto;
    background: white;
    border-radius: 10px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
    text-align: center;
    padding: 30px;
    opacity: 0;
    animation: fadeInUp 1.5s ease-in-out forwards;
}

.volunteer-section h1, 
.volunteer-section h2 {
    color: #6A1B1A; /* Deep Red */
    margin-bottom: 15px;
    font-size: 28px;
}

.volunteer-section p {
    font-size: 18px;
    color: #6a0dad; /* Deep Purple */
    margin-bottom: 20px;
}

/* Volunteer Roles */
.volunteer-roles {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.role {
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

.role:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

.role h3 {
    font-size: 22px;
    color: #6A1B1A; /* Deep Red */
    margin-bottom: 10px;
}

/* Testimonials */
.testimonial {
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    margin: 20px 0;
    text-align: left;
    animation: fadeIn 1.5s ease-in-out;
}

.testimonial p {
    font-size: 18px;
    font-style: italic;
    color: #6a0dad; /* Deep Purple */
}

.testimonial h4 {
    font-size: 16px;
    font-weight: bold;
    color: #6A1B1A; /* Deep Red */
    margin-top: 10px;
}

/* Volunteer Form */
.volunteer-form {
    max-width: 600px;
    margin: 30px auto;
    background: #fff;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

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

label {
    font-size: 18px;
    display: block;
    margin-bottom: 8px;
    color: #6a0dad; /* Deep Purple */
}

input, textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #6A1B1A; /* Deep Red */
    border-radius: 5px;
}

textarea {
    resize: vertical;
    height: 120px;
}

/* Submit Button */
button {
    width: 100%;
    padding: 12px;
    background: #6A1B1A; /* Deep Red */
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 18px;
    cursor: pointer;
    transition: background 0.3s ease-in-out;
}

button:hover {
    background: #6a0dad; /* Deep Purple */
}

button:active {
    background: #4d0975; /* Darker Purple */
}

/* Footer */
.footer {
    background: #9370DB;
    color: white;
    padding: 30px 20px;
    text-align: center;
}

.footer .social-icons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 15px;
}

.social-icons a {
    color: white;
    font-size: 22px;
    text-decoration: none;
    transition: color 0.3s ease-in-out;
}

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

.footer-bottom {
    margin-top: 10px;
    font-size: 14px;
}

/* Animations */
@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .volunteer-section {
        padding: 20px;
    }

    .volunteer-roles {
        grid-template-columns: 1fr;
    }

    button {
        font-size: 16px;
    }

    .logo img {
        height: 100px;
    }
}



/* Volunteer Button (Link to Google Form) */
.volunteer-btn {
    display: inline-block;
    background-color: white;
    color: #6a0dad; /* Deep Purple */
    border: 2px solid #6a0dad;
    padding: 14px 30px;
    font-size: 1.2rem;
    font-weight: bold;
    border-radius: 25px;
    text-decoration: none;
    transition: all 0.3s ease-in-out;
    margin-top: 25px;
}

.volunteer-btn:hover {
    background-color: #6a0dad;
    color: white;
    transform: scale(1.05);
}



/* Prevent horizontal scroll and shaking */
html, body {
    overflow-x: hidden;
    width: 100%;
    margin: 0;
    padding: 0;
    touch-action: manipulation; /* Helps prevent weird touch behavior */
    overscroll-behavior-x: none; /* Prevents bounce on mobile */
    position: relative;
}


















/* ==== 1) RESET & BOX‑SIZING ==== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ==== 2) FLEXIBLE IMAGES & MEDIA ==== */
img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
  height: auto;
}

/* ==== 3) LISTS, LINKS, TABLES ==== */
ul, ol {
  list-style: none;
}
a {
  text-decoration: none;
  color: inherit;
}
table {
  border-collapse: collapse;
  width: 100%;
}

/* ==== 4) TYPOGRAPHY & BODY ==== */
html {
  font-size: 16px;            /* base for rems */
  scroll-behavior: smooth;
  overflow-x: hidden;         /* no accidental horizontal scroll */
}
body {
  min-height: 100vh;
  line-height: 1.5;
  font-family: sans-serif;
  background-color: #fff;
  color: #333;
}

/* ==== 5) FORM ELEMENTS ==== */
button, input, textarea, select {
  font-family: inherit;
  font-size: inherit;
  background: none;
  border: none;
  outline: none;
}

/* ==== 6) CLEARFIX UTILITY ==== */
.clearfix::after {
  content: "";
  display: table;
  clear: both;
}

/* ==== 7) MOBILE‑FIRST BREAKPOINTS ==== */
@media (max-width: 1024px) {
  html { font-size: 15px; }
}
@media (max-width: 768px) {
  html { font-size: 14px; }
}
@media (max-width: 480px) {
  html { font-size: 13px; }
}







.back-btn {
  position: fixed;
  bottom: 20px;
  left: 20px;
  padding: 8px 14px;
  max-width: fit-content;
  background-color: #800080;
  color: #fff;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-weight: bold;
  font-size: 14px;
  z-index: 9999;
  transition: background-color 0.3s;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}
.back-btn:hover {
  background-color: #4B004B;
}