/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Arial, sans-serif;
}

/* --- Global Styles for Consistency --- */
body {
    margin: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
}

/* --- Refined Navbar --- */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 3rem;
    background: #fff7f0;
    color: #fff;

    /* The following lines make the navbar sticky */
    position: fixed;
    top: 0;
    width: 100%;

    z-index: 9999; /* Ensures it stays on top of other content */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

/* --- Logo Section --- */
.logo {
    flex-shrink: 0;
}

.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: inherit;
    gap: 1rem;
}

.logo-box {
    width: 60px;
    height: 60px;
    background-color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    border: 2px solid #F58723;
}

.logo-img {
    max-width: 80%;
    max-height: 80%;
    object-fit: contain;
}

.logo-text {
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color:#F58723;
    white-space: nowrap;
}

/* --- Navigation Links --- */
.nav-links {
    list-style: none;
    display: flex;
    gap: 2.5rem;
    margin: 0;
    padding: 0;
}

.nav-links li a {
    /* Basic Link Styling */
    color: #413a30; /* Use a darker color for better contrast */
    text-decoration: none;
    font-weight: 600; /* Bolder for better readability */
    position: relative;
    padding: 10px 15px;
    display: block;

    /* Add a subtle underline for an interactive feel */
    border-bottom: 2px solid transparent; 
    transition: all 0.3s ease-in-out;
}

/* Hover and Active State */
.nav-links li a:hover,
.nav-links li a.active {
    color: #F58723; /* Change text color to orange on hover/active */
    border-bottom: 2px solid #F58723; /* The orange underline appears */
}

/* Style for the "Donate" button */
.nav-links li a.donate-btn {
    background-color: #F58723; /* Solid orange background */
    color: #FFFFFF; /* White text for contrast */
    padding: 10px 20px;
    border-radius: 5px; /* Adds rounded corners */
    font-weight: 700; /* Extra bold for emphasis */
    border-bottom: none; /* Removes the underline from the button */
    transition: background-color 0.3s ease;
}

/* Hover state for the button */
.nav-links li a.donate-btn:hover {
    background-color: #E65C00; /* A slightly darker orange on hover */
    color: #8e2a2a;
}
.nav-links li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    background-color: #F58723;
    transition: width 0.3s ease;
}

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

.nav-links li a:hover::after {
    width: 80%;
}

/* --- Global Styles for Consistency --- */
body {
    margin: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
}

/* --- Refined Navbar --- */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 3rem;
    background: #f9f9f9;
    color: #fff;
    position: sticky;
    top: 0;
    z-index: 9999;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

/* --- Logo Section --- */
.logo {
    flex-shrink: 0;
}

.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: inherit;
    gap: 1rem;
}

.logo-box {
    width: 60px;
    height: 60px;
    background-color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    border: 2px solid #F58723;
}

.logo-img {
    max-width: 80%;
    max-height: 80%;
    object-fit: contain;
}

.logo-text {
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color:#F58723;
    white-space: nowrap;
}

/* --- Navigation Links --- */
.nav-links {
    list-style: none;
    display: flex;
    gap: 2.5rem;
    margin: 0;
    padding: 0;
}

.nav-links li a {
    /* Basic Link Styling */
    color: #413a30; /* Use a darker color for better contrast */
    text-decoration: none;
    font-weight: 600; /* Bolder for better readability */
    position: relative;
    padding: 10px 15px;
    display: block;

    /* Add a subtle underline for an interactive feel */
    border-bottom: 2px solid transparent; 
    transition: all 0.3s ease-in-out;
}

/* Hover and Active State */
.nav-links li a:hover,
.nav-links li a.active {
    color: #F58723; /* Change text color to orange on hover/active */
    border-bottom: 2px solid #F58723; /* The orange underline appears */
}

/* Style for the "Donate" button */
.nav-links li a.donate-btn {
    background-color: #F58723; /* Solid orange background */
    color: #FFFFFF; /* White text for contrast */
    padding: 10px 20px;
    border-radius: 5px; /* Adds rounded corners */
    font-weight: 700; /* Extra bold for emphasis */
    border-bottom: none; /* Removes the underline from the button */
    transition: background-color 0.3s ease;
}

/* Hover state for the button */
.nav-links li a.donate-btn:hover {
    background-color: #E65C00; /* A slightly darker orange on hover */
    color: #8e2a2a;
}
.nav-links li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    background-color: #F58723;
    transition: width 0.3s ease;
}

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

.nav-links li a:hover::after {
    width: 80%;
}

/* --- Hamburger Menu (Mobile) --- */
.hamburger {
    display: none;
    font-size: 2rem;
    cursor: pointer;
    z-index: 1001;
    color: #F58723;
}

/* --- Responsive Layout for Mobile --- */
@media (max-width: 992px) {
    .navbar {
        padding: 1rem 2rem;
    }

    .nav-links {
        position: absolute;
        top: 70px;
        right: 0;
        background-color: #ffffff;
        border: 1px solid #e5e5e5;
        backdrop-filter: blur(6px);
        flex-direction: column;
        width: 250px;
        height: auto;
        padding: 1rem;
        gap: 1rem;
        border-radius: 10px;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
        transform: translateX(100%);
        transition: transform 0.3s ease-in-out;
    }
    
    .nav-links.active {
        transform: translateX(0);
    }
    
    .nav-links li a {
        font-size: 1rem;
        padding: 12px 18px;
        color: #413a30; /* ➡️ Changed for better contrast */
        border-bottom: none; /* Removes the underline from desktop styles */
        width: 100%;
        text-align: left;
        border-radius: 6px;
        transition: background-color 0.2s ease;
        display: block;
    }

    .nav-links li a:hover {
        background-color: #f0f0f0; /* ➡️ Adjusted for a clearer hover effect */
        color: #F58723; /* ➡️ Optional: Change text color on hover */
    }

    .nav-links li a::after {
        width: 0 !important; /* Prevents the animated underline from showing on mobile */
    }
    
    .nav-links li a.donate-btn {
        width: auto;
    }

    .hamburger {
        display: block;
        margin-right: 1rem;
    }
    
    .logo-text {
        font-size: 1.5rem;
    }
}
@media (max-width: 576px) {
    .logo-text {
        display: none;
    }
    .logo-box {
        width: 45px;
        height: 45px;
    }
    .navbar {
        padding: 1rem;
    }
}


/* --- New section styles --- */

/* Add this to your existing CSS for the main content sections */

/* --- Hero Section --- */
.hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 80px 40px;
  background-color: #f7f7f7;
  color: #333;
  flex-wrap: wrap; /* Already exists, good! */
}

/* Add flex-basis to the content and slider wrappers */
.hero-content {
  flex: 1 1 500px; /* New: flex-basis of 500px. It will shrink, grow, but won't wrap until it's smaller than this. */
  padding-right: 40px;
  z-index: 2;
}

.hero-slider-wrapper {
  flex: 1 1 400px; /* New: flex-basis of 400px. Content and slider will now stack properly when the total width is less than 900px (500 + 400) */
  max-width: 500px;
  position: relative;
}

/* --- Responsive Layout for Mobile --- */
@media (max-width: 992px) {
  /* Keep your existing rules here for the hamburger menu */
  .navbar {
    padding: 1rem 2rem;
  }
  /* ... etc. */
}

@media (max-width: 768px) {
  /* Add this new media query to adjust for tablet/mobile views */
  .hero-content,
  .hero-slider-wrapper {
    flex-basis: 100%; /* Now they will always stack vertically on screens smaller than 768px */
    padding-right: 0;
  }
  .hero-content h1 {
    font-size: 2.5rem; /* Make heading smaller */
  }
  .hero-content h2 {
    font-size: 1.5rem; /* Make subheading smaller */
  }
  .hero-slider-wrapper {
    margin-top: 30px; /* Add space between text and slider */
  }
}
.mobile-banner {
  position: relative;
  overflow: hidden;
  width: 100%;
  max-width: 600px; /* optional */
  margin: auto;
  border-radius: 10px;
}

.slider {
  width: 100%;
  height: auto;
  overflow: hidden;
}

.slide-track {
  display: flex;
  width: 200%; /* 2 images */
  animation: slide 6s infinite; /* auto animation */
}

.slide {
  width: 100%;
  flex-shrink: 0;
}

.mobile-banner-img {
  width: 100%;
  display: block;
  border-radius: 10px;
}

/* Keyframes for sliding */
@keyframes slide {
  0%   { transform: translateX(0); }
  45%  { transform: translateX(0); }
  55%  { transform: translateX(-100%); }
  100% { transform: translateX(-100%); }
}



/* Programs */

.info-cards-section {
    padding: 80px 40px;
    background: #fff;
    text-align: center;
}

.programs-header {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    text-align: center;
    color: #ff781f;   /* dark orange */
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    font-size: clamp(1.2rem, 2vw + 0.8rem, 3.5rem); /* smaller min for mobile */
    position: relative;
    display: inline-block;
}

/* Black underline */
.programs-header::after {
    content: "";
    display: block;
    width: 60%;
    height: 4px;
    background: #000;   /* black underline */
    margin: 0.5rem auto 0;
    border-radius: 2px;
}



/* Bigger size for desktop */
@media (min-width: 1024px) {
    .programs-header {
        font-size: 3rem;  /* larger heading on desktop */
    }
}

/* Even bigger for very large screens */
@media (min-width: 1440px) {
    .programs-header {
        font-size: 3.5rem;
    }
}

.programs-text-container {
    max-width: 900px;
    margin: 0 auto 40px;
}

.programs-text-container p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #555;
    margin-bottom: 20px;
}

.programs-quote {
    font-size: 1.5rem;
    font-weight: 600;
    font-style: italic;
    color: #333;
    max-width: 800px;
    margin: 0 auto;
}

.info-cards {
    display: flex;
    flex-wrap: wrap; /* Allows cards to wrap to the next line if the screen is too small */
    justify-content: center; /* Centers the cards horizontally */
    gap: 20px; /* Adds space between the cards */
    padding: 20px;
}

.card {
    /* Set a flexible width for the cards */
    flex: 1 1 250px; /* This is a shorthand for flex-grow, flex-shrink, flex-basis */
    /* flex-basis: 250px ensures each card is at least 250px wide before flexing */
    max-width: 300px; /* Prevents the cards from becoming too wide on large screens */
    margin: 10px; /* Adds a small margin around each card for spacing */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    padding: 30px 20px;
    text-align: center;
    background-color: #ffffff;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.card-icon {
    width: 80px;
    height: 80px;
    margin-bottom: 20px;
}

.card h3 {
    font-size: 1.5rem;
    color: #ff6600;
    margin-bottom: 15px;
}

.card p {
    font-size: 1rem;
    color: #555;
    margin-bottom: 15px;
}

.counter {
    color: #ff6600;
    font-weight: bold;
    font-size: 1.3rem;
}

/* New Style for "Learn More" Button in Cards */
.card-button {
    display: inline-block;
    padding: 8px 18px;
    border-radius: 20px;
    font-weight: 600;
    text-decoration: none;
    background: #ff6600;
    color: #fff;
    transition: all 0.3s ease;
    margin-top: 15px;
}

.card-button:hover {
    background: #fff;
    color: #ff6600;
    border: 2px solid #ff6600;
}

/* Success Stories */
.success-stories {
    background: #f9f9f9;
    padding: 80px 40px;
    display: flex;
    justify-content: center;
}

.success-box {
    background: #ffffff;
    border: 2px solid #ddd;
    border-radius: 20px;
    padding: 40px;
    max-width: 1200px;
    width: 100%;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.success-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.success-text {
    flex: 1;
}

.success-text h2 {
    font-size: 2.5rem;
    color: #ff6600;
    margin-bottom: 20px;
    font-weight: 700;
    text-transform: uppercase;
    line-height: 1.2;
    position: relative;
    display: inline-block;
}

/* Black underline */
.success-text h2::after {
    content: "";
    display: block;
    width: 60%;
    height: 4px;
    background: #000;
    margin: 0.5rem auto 0;
    border-radius: 2px;
}

.success-text h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: #333;
    font-weight: 600;
    line-height: 1.3;
}

.success-text p {
    font-size: 1.1rem;
    color: #555;
    line-height: 1.7;
}

/* 📱 Mobile adjustments */
@media (max-width: 768px) {
    .success-text {
        text-align: center;   /* center all text */
    }

    .success-text h2 {
        font-size: 1.6rem;
        display: inline-block; /* keeps underline neat */
    }

    .success-text h3 {
        font-size: 1.2rem;
    }

    .success-text p {
        font-size: 1rem;
    }
}



.success-text p {
    font-size: 1.1rem;
    color: #555;
    line-height: 1.7;
}

.success-video {
    background: #fff;
    padding: 10px;
    border: 2px solid #000;
    border-radius: 15px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 320px;
    margin: auto;
    
}

.success-video video {
    width: 200%;
    max-width: 200px;
    border: 3px solid #000;
    border-radius: 20px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.success-stories {
    margin: 0;
}

/* Add a new style for the .btn-more button to center it */
.btn-more {
    display: inline-block;
    margin-top: 40px; /* Add space between the video and the button */
    padding: 15px 40px;
    background-color: #ff781f; /* A strong orange for the button */
    color: #fff;
    font-size: 1.2rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 50px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.btn-more:hover {
    background-color: #e56b1a; /* Darker orange on hover */
    transform: translateY(-2px);
}

/* Adjust the success container for mobile view */
@media (max-width: 768px) {
    .success-box {
        padding: 20px;
        text-align: center; /* This will center the button */

    }

    .success-container {
        flex-direction: column; /* Stacks text and video vertically on mobile */
    }

    .success-text {
        margin-bottom: 20px; /* Adds space below the text */
    }
    
    .success-video {
        width: 100%; /* Makes the video container full width on mobile */
        max-width: 100%;
    }

    .success-video video {
        width: 100%; /* Makes the video itself full width */
        max-width: 320px; /* Maintains a max-width for better display */
    }
    
    .btn-more {
        margin-top: 30px; /* Adjust spacing for mobile */
    }
}


/* ================= Carousel ================= */

/* "OUR IMPACTS" Section */
.stories {
    background-color: #ff781f; /* A vibrant orange background to match the image */
    padding: 60px 0;
    text-align: center;
}

.stories h2 {
    color: #fff; /* White text for the heading */
    font-size: 2.5em;
    font-weight: 700;
    margin-bottom: 40px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    display: inline-block;        /* Needed for border to match text width */
    border-bottom: 4px solid #ff6600; /* Orange underline */
    padding-bottom: 8px;          /* Space between text and underline */
}


.story-carousel-wrapper {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 80px; /* Add some padding for the arrows */
}

.story-carousel {
    display: flex;
    overflow-x: auto; /* Enables horizontal scrolling */
    scroll-behavior: smooth;
    gap: 20px;
    -webkit-overflow-scrolling: touch; /* Improves scrolling on iOS */
    scrollbar-width: none; /* Hide scrollbar for Firefox */
}

/* Hide scrollbar for Chrome, Safari, and Opera */
.story-carousel::-webkit-scrollbar {
    display: none;
}

.story-box {
    flex: 0 0 calc((100% - 60px) / 4); /* 4 per row, accounting for 3 gaps */
    width: calc((100% - 60px) / 4); /* 4 cards per row, 3 gaps of 20px */
    width: 280px; /* Set a fixed width for each box */
    background-color: #fff;
    border-radius: 15px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1); /* Subtle shadow for depth */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden; /* Ensures the image doesn't overflow the rounded corners */
    display: flex;
    flex-direction: column;
    justify-content: flex-end; /* Align caption to the bottom */
}

.story-box:hover {
    transform: translateY(-10px); /* Lift the card on hover */
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2); /* More prominent shadow on hover */
}

.story-media {
    width: 100%;
    height: 200px; /* Consistent height for all images */
    overflow: hidden;
    position: relative;
    background-color: #fff; /* Added to fill empty space for 'contain' */
}

.story-thumb {
    width: 100%;
    height: 100%;
    object-fit: contain; /* Changed from 'cover' to 'contain' */
    object-position: center;
    transition: transform 0.3s ease;
}

.story-box:hover .story-thumb {
    transform: none; /* Disabled zoom effect to avoid cutting off content */
}

.story-caption {
    font-size: 1.2em;
    font-weight: 600;
    color: #333;
    text-align: center;
    padding: 20px 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Carousel navigation arrows */
.arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.7);
    color: #ff781f;
    border: none;
    font-size: 2em;
    cursor: pointer;
    padding: 10px;
    border-radius: 50%;
    width: 45px;
    height: 45px;
    line-height: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.arrow:hover {
    background-color: #fff;
    transform: translateY(-50%) scale(1.1);
}

.left-arrow {
    left: 10px;
}

.right-arrow {
    right: 10px;
}

/* Responsive design for smaller screens */
@media (max-width: 768px) {
    .stories h2 {
        font-size: 2em;
    }

    .story-carousel-wrapper {
        padding: 0 20px;
    }

    /* Update the carousel for mobile-centered view */
    .story-carousel {
        display: grid;
        grid-auto-flow: column;
        grid-auto-columns: 80%; /* Each card takes up 80% of the viewport width */
        gap: 20px;
        overflow-x: scroll;
        scroll-snap-type: x mandatory; /* Centers one card at a time */
    }

    .story-box {
        scroll-snap-align: center; /* Ensures the card snaps to the center */
        width: auto !important; /* Override the fixed width for mobile */
    }

    .arrow {
        display: none; /* Hide arrows on smaller screens for touch scrolling */
    }
}

/* Footer */
.footer {
    background: #222;
    color: #ccc;
    padding: 50px 40px 20px;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
}

.footer-about,
.footer-links,
.footer-contact {
    flex: 1;
    min-width: 200px;
}

.footer-about h3 {
    color: #fff;
    margin-bottom: 20px;
}

.footer-links h4,
.footer-contact h4 {
    color: #fff;
    margin-bottom: 15px;
}

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

.footer-links a {
    color: #ccc;
    text-decoration: none;
}

.footer-links a:hover {
    text-decoration: underline;
}

.social-icons a img {
    width: 25px;
    margin-right: 10px;
}

.footer-bottom {
    text-align: center;
    margin-top: 30px;
    font-size: 0.9rem;
    color: #888;
}

/* Adds margin to the social icons in the footer */
.footer-contact .social-icons {
    margin-top: 15px;
}

/* --- Event Pop-up Styles --- */
.popup-overlay {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity .3s ease-in-out;
}

.popup-overlay.active {
    display: flex;
    opacity: 1;
}

.popup-content {
    background: linear-gradient(135deg, #fff, #ffe0cc);
    padding: 3em;
    border-radius: 15px;
    max-width: 90%;
    width: 450px;
    text-align: center;
    position: relative;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    transform: scale(.8);
    transition: transform .4s cubic-bezier(.2, .8, .2, 1);
    border: 2px solid #ff6600;
}

.popup-overlay.active .popup-content {
    transform: scale(1);
}

.popup-content h2 {
    color: #ff6600;
    font-size: 2.2em;
    margin: 0 0 .8em;
    font-weight: 700;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

.popup-content p {
    margin: .8em 0;
    font-size: 1.2em;
    color: #444;
    line-height: 1.5;
}

.popup-content .volunteer-link {
    margin-top: 2em;
    display: inline-block;
    text-decoration: none;
    background-color: #ff6600;
    color: #fff;
    padding: 12px 25px;
    border-radius: 30px;
    font-size: 1.1em;
    font-weight: 600;
    transition: background-color .3s, transform .2s;
    box-shadow: 0 4px 10px rgba(255, 102, 0, .3);
}

.popup-content .volunteer-link:hover {
    background-color: #cc4d00;
    transform: translateY(-2px);
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 2.5em;
    font-weight: bold;
    color: #999;
    cursor: pointer;
    transition: color .2s, transform .2s;
}

.close-btn:hover {
    color: #ff6600;
    transform: rotate(90deg);
}

/* Animations */
@keyframes gradientMove {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* Responsive Fixes */
@media (max-width: 768px) {
    .hero {
        flex-direction: column;
        padding: 40px 20px;
        text-align: center;
    }

    .hero-content {
        padding: 0;
        margin-bottom: 30px;
        text-align: left;
    }

    .hero-content h1 {
        font-size: 2.2rem;
        margin-bottom: 15px;
    }

    .hero-content h2 {
        font-size: 1.4rem;
        margin: 20px 0;
        text-align: center;
    }

    .hero-content p {
        font-size: 1rem;
        margin-bottom: 15px;
    }

    .btn-group {
        justify-content: center;
    }

    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }

    .hero-slider-wrapper {
        width: 100%;
        max-width: 100%;
    }

    .hero-slider {
        height: 250px;
    }

    .nav-links {
        position: fixed;
        top: 85px;
        right: 20px;
        background: rgba(255, 102, 0, 0.95);
        border-radius: 10px;
        flex-direction: column;
        width: 200px;
        padding: 20px;
        gap: 15px;
        display: none;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
        transition: transform .3s ease-in-out;
        transform: translateX(120%);
    }

    .nav-links.active {
        display: flex;
        transform: translateX(0);
    }

    .hamburger {
        display: block;
    }

    .info-cards {
        grid-template-columns: 1fr;
        padding: 40px 10px;
    }

    .card {
        max-width: 100%;
    }

    .story-carousel {
        gap: 35px;
        max-width: 100%;
    }

    .story-box {
        flex: 0 0 80%;
    }

    .arrow {
        display: none;
    }

    /* --- START OF CORRECTED STICKY CTA FOR MOBILE --- */
    #sticky-mobile-cta {
        /* This will be hidden by default on all screen sizes */
        display: none; 
    }
    
    /* This rule will only be applied on screens below 768px */
    @media (max-width: 768px) {
        #sticky-mobile-cta {
            display: flex;
            justify-content: space-around;
            align-items: center;
            position: fixed;
            bottom: 0;
            left: 0;
            width: 100%;
            background-color: #ff6600;
            padding: 10px;
            box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
            z-index: 999;
        }
    }
    /* --- END OF CORRECTED STICKY CTA FOR MOBILE --- */

    .popup-content {
        padding: 2em;
        width: 95%;
    }

    .popup-content h2 {
        font-size: 1.8em;
    }

    .popup-content p {
        font-size: 1em;
    }

    .close-btn {
        font-size: 2em;
    }
}

@media (max-width: 420px) {
    .logo-text {
        display: none;
    }

    .logo-box {
        min-width: 40px;
        min-height: 40px;
        padding: 4px;
    }

    .logo-video {
        height: 30px;
    }
}

.btn-more {
    display: inline-block;
    background: #ff6600;
    color: white;
    padding: 10px 25px;
    margin-top: 20px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    font-size: 16px;
    transition: background 0.3s ease;
}

.btn-more:hover {
    background: #cc5200;
}

.success-text p {
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 20px;
    color: #333;
    font-style: italic;
}


/* Banner Section */
/* Banner Section */
.desktop-banner {
    width: 100%;
    overflow: hidden;
    position: relative;
    
}

.banner-slider {
    display: flex;
    width: 300%; /* Adjust width for the number of images (e.g., 3 images = 300%) */
    animation: slide 12s infinite;
}

.banner-slider img {
    width: 100%;
    height: auto;
    flex-shrink: 0;
}

@keyframes slide {
    0% { transform: translateX(0); }
    33% { transform: translateX(0); }
    40% { transform: translateX(-100%); }
    73% { transform: translateX(-100%); }
    80% { transform: translateX(-200%); }
    100% { transform: translateX(-200%); }
}

.banner {
    position: relative;
    background-color: #f0f0f0;
    padding: 0;
    min-height: 100px;
    overflow: hidden;
}

.banner-slider {
    display: flex;
    width: 100%;
    height: 100%;
    position: relative;
    transition: transform 0.5s ease-in-out;
}

.banner-slide {
    flex-shrink: 0;
    width: 100%;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 550px;
    overflow: hidden;
}


.banner-slide img {
    width: 100%;
    height: auto;
    object-fit: cover;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 0;
}

.banner-content {
    position: relative;
    z-index: 2;
    color: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    padding: 0 40px;
}

.banner-text {
    flex-grow: 1;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    text-align: left;
}

.banner-main-title {
    font-family: 'Times New Roman', serif;
    font-size: 5rem;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    margin-right: 50px;
    flex-shrink: 0;
}

.banner-cta {
    text-align: right;
    font-size: 1.2rem;
    line-height: 1.5;
    margin-right: 20px;
}

.banner-cta p {
    color: #fff;
    margin-bottom: 5px;
}

.banner-highlight {
    font-size: 2.5rem;
    font-weight: bold;
    line-height: 1.2;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7);
}

.donate-btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 30px;
    background-color: #ffc04c;
    color: #333;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.donate-btn:hover {
    background-color: #ffdf99;
    transform: translateY(-2px);
}

.slider-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    gap: 10px;
}

.slider-dot {
    width: 12px;
    height: 12px;
    background-color: rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.3s;
}

.slider-dot.active {
    background-color: #ff6600;
    transform: scale(1.2);
}


/* Default */
.mobile-banner {
    display: none;
}

/* Mobile-specific */
@media (max-width: 768px) {
    .desktop-banner {
        display: none !important;
    }
    .mobile-banner {
        display: block !important;
        text-align: center;
        background: #fff; /* optional: clean white background */
    }
    .mobile-banner-img {
        width: 100%;
        height: auto;
        border-radius: 0; /* remove rounding for full banner look */
        display: block;
    }
}



/* Default behavior: show desktop, hide mobile */
.desktop-banner {
    display: block;
}
.mobile-banner {
    display: none;
}

/* Mobile-specific overrides */
@media (max-width: 768px) {
    .desktop-banner {
        display: none !important; /* Force hide desktop on mobile */
    }
    .mobile-banner {
        display: block !important; /* Force show mobile */
    }
}


/* Sticky CTA Section for Mobile */
/* --- START OF CORRECTED STICKY CTA FOR MOBILE --- */
#sticky-mobile-cta {
    /* This will be hidden by default on all screen sizes */
    display: none; 
}

/* This rule will only be applied on screens below 768px */
@media (max-width: 768px) {
    #sticky-mobile-cta {
        display: flex;
        /* ... other styles ... */
    }
}
/* --- END OF CORRECTED STICKY CTA FOR MOBILE --- */


.sticky-cta {
    position: fixed;
    bottom: 0;
    left: 0; /* Change this back to 0 */
    width: 100%;
    /* Add a semi-transparent background */
    background-color: rgba(255, 255, 255, 0.9);
    /* Add a subtle top border and shadow */
    border-top: 1px solid #ddd;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    /* Add the blur effect */
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px); /* For Safari support */
    z-index: 1000;
    padding: 15px 10px; /* Adjust padding for better look */
    display: none;
    justify-content: space-around;
    align-items: center;
}

@media (max-width: 768px) {
    .sticky-cta {
        display: flex; /* Make sure this is present */
    }
}

.sticky-cta .cta-button {
    font-size: 16px;
    font-weight: bold;
    padding: 10px 20px;
    border-radius: 50px;
    text-decoration: none;
    text-align: center;
    transition: background-color 0.3s ease;
    width: 45%;
    box-sizing: border-box;
}

.sticky-cta .donate-btn {
    background-color: #ff6600; /* Orange color */
    color: #fff;
    border: 2px solid #ff6600;
}

.sticky-cta .donate-btn:hover {
    background-color: #e55c00;
}

.sticky-cta .volunteer-btn {
    background-color: #fff;
    color: #ff6600;
    border: 2px solid #ff6600;
}

.sticky-cta .volunteer-btn:hover {
    background-color: #ff6600;
    color: #fff;
}

/* Media Query for Mobile View */
@media (max-width: 768px) {
    .sticky-cta {
        display: flex; /* This makes the sticky bar visible only on screens 768px or smaller. */
    }
}

.inspiration-section {
    background: #f9f9f9;
    padding: 60px 20px;
    border-top: 2px solid #e1ccec;
    border-bottom: 2px solid #e1ccec;
}

.inspiration-container {
    max-width: 1000px;
    margin: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 25px;
    text-align: center;
}

.inspiration-photo-block {
    text-align: center;
}

.inspiration-photo {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 50%;
    border: 5px solid #b8860b;
    box-shadow: 0px 6px 12px rgba(0,0,0,0.15);
    transition: transform 0.3s ease;
}

.inspiration-photo:hover {
    transform: scale(1.05);
}

.inspiration-name {
    margin-top: 9px;
    font-size: 1.1rem;
    font-style: italic;
    font-weight: normal;
    color: #000;  /* simple black */
}


.inspiration-text h2 {
    font-size: 1.8rem;
    color: #b8860b;
    margin-bottom: 15px;
    text-align: left; /* Keep left if you want the text left-aligned */
    position: relative; /* Needed for positioning the ::after pseudo-element */
    display: inline-block; /* Allows the underline to be positioned relative to the text width */
    padding-bottom: 10px; /* Adjust this to add space between text and line */
}

.inspiration-text h2::after {
    content: ''; /* Required for pseudo-elements */
    position: absolute; /* Position relative to the h2 */
    left: 50%; /* Start the line at the horizontal center of the h2 */
    transform: translateX(-50%); /* Move it back by half its own width to truly center it */
    bottom: 0; /* Position at the bottom of the h2 padding */
    width: 60%; /* Adjust this percentage to control the length of the black line */
    height: 2px; /* Adjust this for the thickness of the black line */
    background-color: #ff6600; /* The color of the line */
}

/* Optional: If you want the h2 text itself to be centered, change text-align: left; to text-align: center; in .inspiration-text h2 */

.inspiration-message {
    font-size: 1.2rem;
    color: #444;
    line-height: 1.8;
    margin-bottom: 15px;
    text-align: left;
}

.inspiration-quote {
    font-style: italic;
    font-size: 1.3rem;
    color: #ff6600;
    margin-top: 15px;
    text-align: left;
}

/* 🔹 Desktop side-by-side */
@media (min-width: 768px) {
    .inspiration-container {
        flex-direction: row;
        align-items: center;
        text-align: left;
    }

    .inspiration-photo-block {
        margin-right: 40px;
    }

    .inspiration-text {
        flex: 1;
    }

    .inspiration-photo-block,
    .inspiration-photo-block .inspiration-name {
        text-align: center;
    }
}

/* 🔹 Mobile: text h2 above photo */
@media (max-width: 767px) {
    .inspiration-container {
        flex-direction: column;
    }

    .inspiration-text {
        order: -1; /* moves the text above the photo */
        text-align: center; /* optional: center text on mobile */
    }

    .inspiration-photo-block {
        order: 0; /* default order for photo */
    }

    .inspiration-text h2 {
        margin-bottom: 15px;
        text-align: center; /* optional */
    }

    .inspiration-message,
    .inspiration-quote {
        text-align: center; /* optional for mobile */
    }
}
