/* General Styles */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    text-align: center;
    background-color: #f9f9f9;
}

/* Header */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: white;
    padding: 8px 16px;
    color: white;
    position: relative;
    z-index: 1000; /* Ensures navbar is above other elements */
}


.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 16px;
    background: white;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    position: relative;
}

/* Position the menu button on the left */
.menu-btn {
    font-size: 24px;
    cursor: pointer;
    background: none;
    border: none;
    display: block;
    order: 1; /* Ensures it stays on the left */
}

/* Hide menu button on desktop */
.menu-btn {
    display: none;
}

/* Show menu button on smaller screens */
@media (max-width: 768px) {
    .menu-btn {
        display: block;
    }
}



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

.logo img {
    height: 180px; /* Default size */
    max-width: 100%; /* Prevents overflow */
}

/* 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 */
    }
}



/* Position donate button on the right */
.donate-btn {
    background-color: #6A1B1A;
    color: white;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 20px;
    font-weight: bold;
    order: 3; /* Ensures it stays on the right */
}

/* Hide nav links by default on mobile */
.nav-links {
    display: flex;
    gap: 20px;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: #6A1B1A;
    padding: 10px;
}

/* Responsive Design */
@media screen and (max-width: 768px) {
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 60px;
        left: 0;
        width: 100%;
        background: white;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        text-align: center;
        padding: 10px 0;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links a {
        padding: 10px;
        display: block;
    }
}


@media screen and (min-width: 769px) {
    .navbar {
        flex-direction: column;
        align-items: center;
        position: relative;
    }

    .logo {
        order: -1;
        justify-content: center;
        margin-bottom: 10px;
    }

    .donate-btn {
        position: absolute;
        top: 16px;
        right: 16px;
        order: 3;
    }

    .nav-links {
        justify-content: center;
    }
}


.purple {
    color: #C800FF; /* Brighter electric purple */
}

.deep-red {
    color: #FF0033; /* Vivid deep red */
}

.white {
    color: #ffffff;
}

.hero-text h1 span,
.hero-text p span {
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7);
}






/* Mobile Menu */
.mobile-menu {
    display: block;
    position: fixed;
    top: 0;
    left: -100%; /* Initially off-screen */
    width: 75%;
    height: 100vh; /* Full screen height */
    background: white;
    box-shadow: 2px 0px 10px rgba(0, 0, 0, 0.2);
    transition: left 0.3s ease-in-out;
    z-index: 3000;
    display: flex;
    flex-direction: column;
    text-align: center;
    padding: 15px 0;

    /* Enable smooth scrolling inside the menu */
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch; /* iOS smooth scroll fix */
}

/* Prevent background scroll ONLY (fixed properly) */
body.menu-open {
    overflow: hidden; /* FIX: removed position: fixed */
}

/* Make sure the menu items scroll properly */
.mobile-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
    width: 100%;
    flex-grow: 1;
    overflow-y: auto;
    max-height: 80vh;
    -webkit-overflow-scrolling: touch;
}

/* Show menu when active */
.mobile-menu.active {
    left: 0;
}

/* Close Button */
.close-menu {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 24px;
    cursor: pointer;
    background: none;
    border: none;
    color: black;
    font-weight: bold;
}

/* Menu Items Layout */
.mobile-menu li {
    padding: 15px;
    border-bottom: 1px solid #ccc;
    width: 100%;
}

/* Menu Links */
.mobile-menu a {
    text-decoration: none;
    color: #6A1B1A;
    font-size: 20px;
    display: block;
    padding: 15px;
    transition: background 0.3s ease-in-out;
}

.mobile-menu a:hover {
    background-color: #f5f5f5;
}

/* Overlay effect when menu is open */
.mobile-menu-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2999;
    display: none;
}

/* Menu Toggle Button */
.menu-toggle {
    position: fixed;
    top: 20px;
    left: 10px;
    cursor: pointer;
    font-size: 24px;
    z-index: 4000;
}







/* ==== HERO SECTION WITH FULL‑SECTION OVERLAY ==== */
.hero {
    position: relative;
    height: 95vh;
    overflow: hidden;
    background: linear-gradient(135deg, #6a0dad, #9b59b6);
    margin-bottom: 30px; /* Space after hero before next section */
}

/* ===== Slider Wrapper ===== */
.hero-slider {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

/* Slide Container */
.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.slide.active {
    opacity: 1;
}

/* Slide Image */
.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Full image overlay for text and background */
.hero-text {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    padding: 40px 20px;
    box-sizing: border-box;
}

/* Text styles */
.hero-text h1 {
    font-size: 3.2rem;
    font-weight: bold;
    margin-bottom: 20px;
}

.hero-text p {
    font-size: 1.6rem;
    max-width: 80%;
    margin-bottom: 30px;
}

/* CTA Button styles */
.cta-btn {
    display: inline-block;
    padding: 18px 40px;
    background: #6a0dad;
    color: white;
    text-decoration: none;
    font-size: 1.4rem;
    border-radius: 30px;
    font-weight: bold;
    transition: background 0.3s ease-in-out, transform 0.2s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.cta-btn:hover {
    background: #9b59b6;
    transform: scale(1.07);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero {
        height: 70vh;
        margin-bottom: 20px; /* Keep spacing on mobile too */
    }

    .hero-text h1 {
        font-size: 2rem;
    }

    .hero-text p {
        font-size: 1.1rem;
        max-width: 90%;
    }

    .cta-btn {
        font-size: 1rem;
        padding: 12px 25px;
    }
}









.welcome {
    text-align: center;
    padding: 40px 20px;
    margin-top: -20px; /* pulls it up to remove visible gap */
    background: linear-gradient(45deg, #D84B16, #1A73E8, #8B00FF);
    color: white;
}

.welcome h2 {
    font-size: 2.5rem;
    margin-top: 0;
    margin-bottom: 20px;
}

.welcome-image {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    width: 100%;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 15px;
}

.welcome-image img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    display: block;
}








/* Initial hidden state for fade-in */
.fade-in {
    opacity: 0;
    transform: translateY(50px); /* Start lower */
    transition: opacity 1.5s ease-out, transform 1.5s ease-out;
}

/* When in view, it fades in and moves up */
.fade-in.visible {
    opacity: 1;
    transform: translateY(0); /* Moves up smoothly */
}



footer {
    background: #9370DB; /* Your existing background color */
    color: white;
    text-align: center;
    padding: 20px 0;
    font-size: 1.1rem;
    font-weight: bold;
}

.social-icons {
    margin-top: 10px;
}

.social-icons a {
    display: inline-block;
    margin: 0 10px;
    font-size: 24px; /* Increases icon size */
    color: white; /* Changes icon color to white */
    transition: all 0.3s ease-in-out;
}

.social-icons a:hover {
    color: #ffcc00; /* Change to any color you like on hover */
    transform: scale(1.2); /* Slightly increase size on hover */
}











.focus-section {
    background: url('images/hero2.jpg') center/cover no-repeat;
    color: white;
    text-align: center;
    padding: 120px 20px; /* Increased padding for desktop */
    position: relative;
    min-height: 90vh; /* Stretches the section height for desktop */
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

/* Dark overlay for better text readability */
.focus-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

/* Content wrapper to keep text above overlay */
.focus-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    width: 100%;
    padding: 20px;
}

/* Initial animation state */
.focus-content h2,
.focus-content p,
.focus-content .focus-btn {
    opacity: 0;
    transform: translateX(-50px) translateY(30px);
    transition: opacity 0.8s ease-in-out, transform 0.8s ease-in-out;
}

/* Animation trigger when in view */
.focus-section.show .focus-content h2,
.focus-section.show .focus-content p,
.focus-section.show .focus-content .focus-btn {
    opacity: 1;
    transform: translateX(0) translateY(0);
}

/* Heading style */
.focus-content h2 {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 20px;
}

/* Paragraph style */
.focus-content p {
    font-size: 1.3rem;
    max-width: 600px;
    margin: 0 auto 30px;
}

/* Button style */
.focus-content .focus-btn {
    display: inline-block;
    background-color: #6A1B1A;
    color: white;
    padding: 14px 30px;
    text-decoration: none;
    border-radius: 25px;
    font-weight: bold;
    font-size: 1.2rem;
    transition: background 0.3s ease-in-out, transform 0.2s ease-in-out;
}

.focus-content .focus-btn:hover {
    background-color: #8B0000;
    transform: scale(1.05);
}

/* Responsive tweaks */
@media (max-width: 768px) {
    .focus-section {
        padding: 80px 15px;
        min-height: 70vh;
    }

    .focus-content h2 {
        font-size: 1.8rem;
    }

    .focus-content p {
        font-size: 1rem;
    }

    .focus-content .focus-btn {
        font-size: 1rem;
        padding: 12px 25px;
    }
}





















/* Volunteer Section */
.volunteer-section {
    position: relative;
    background: url('images/hero3.jpg') no-repeat center center/cover;
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    overflow: hidden;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1s ease-out, transform 1s ease-out;
}

/* Fade-in on scroll */
.volunteer-section.show {
    opacity: 1;
    transform: translateY(0);
}

/* Full dark overlay */
.volunteer-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1;
}

/* Content wrapper above the overlay */
.volunteer-section .overlay {
    position: relative;
    z-index: 2;
    padding: 60px 20px;
    max-width: 800px;
    width: 100%;
    box-sizing: border-box;
}

/* Heading */
.volunteer-section h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    font-weight: bold;
}

/* Paragraph */
.volunteer-section p {
    font-size: 1.3rem;
    margin-bottom: 30px;
}

/* Button */
.volunteer-btn {
    display: inline-block;
    padding: 14px 30px;
    background-color: #6A1B1A;
    color: white;
    font-size: 1.2rem;
    text-decoration: none;
    border-radius: 25px;
    font-weight: bold;
    transition: background 0.3s ease-in-out, transform 0.2s ease-in-out;
}

.volunteer-btn:hover {
    background-color: #8B0000;
    transform: scale(1.05);
}

/* Responsive tweaks */
@media (max-width: 768px) {
    .volunteer-section {
        min-height: 70vh;
        padding: 40px 15px;
    }

    .volunteer-section h2 {
        font-size: 2rem;
    }

    .volunteer-section p {
        font-size: 1rem;
    }

    .volunteer-btn {
        font-size: 1rem;
        padding: 12px 25px;
    }
}













.quote-section {
    position: relative;
    width: 100%;
    overflow: hidden;
    background: url('images/book.jpg') center/cover no-repeat;
    padding: 50px 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.quote-slider {
    width: 100%;
    max-width: 600px;
    overflow: hidden;
    position: relative;
}

.quotes-container {
    position: relative;
    display: flex;
    width: 100%;
    height: 300px;
    justify-content: center;
    align-items: center;
}

.quote {
    position: absolute;
    width: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Ensure images are smaller and centered */
.quote img {
    max-width: 80%; /* Adjust size */
    max-height: 250px; /* Keep images smaller */
    object-fit: contain;
    border-radius: 10px; /* Optional: Rounded corners */
}

.quote.active {
    opacity: 1;
}

/* Navigation Buttons */
.prev-quote,
.next-quote {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 10px 20px;
    font-size: 24px;
    cursor: pointer;
    transition: background 0.3s;
}

.prev-quote:hover,
.next-quote:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

.prev-quote {
    left: 10px;
}

.next-quote {
    right: 10px;
}





/* 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: 10px 20px;
  background-color: #800080; /* Purple */
  color: #fff;            /* Deep Red */
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-weight: bold;
  z-index: 9999;
  transition: background-color 0.3s;
}
.back-btn:hover {
  background-color: #4B004B; /* Darker purple on hover */
}