/* --- Global Variables & Reset --- */
:root {
    --primary-purple: #572e7d; /* Deep Purple Theme */
    --hover-purple: #432162;
    --white: #ffffff;
    --text-dark: #222222;
    --text-light: #555555;
    --font-heading: 'Merriweather', serif;
    --font-body: 'Open Sans', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    overflow-x: hidden;
    width: 100%;
}

body {
    font-family: var(--font-body);
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--white);
}

a { text-decoration: none; color: inherit; transition: 0.3s; }
ul { list-style: none; }
h1, h2, h3 { font-family: var(--font-heading); color: var(--text-dark); }
img { max-width: 100%; height: auto; display: block; }

/* --- Navbar --- */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
    height: 80px;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-purple);
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 1001;
}

.logo-img {
    height: 50px; 
    width: auto;
    object-fit: contain;
}

.nav-links { display: flex; gap: 25px; align-items: center; }
.nav-links a { font-weight: 600; font-size: 0.95rem; color: var(--text-dark); }
.nav-links a:hover, .nav-links a.active { color: var(--primary-purple); }

.btn-donate-nav {
    background: var(--primary-purple);
    color: white !important;
    padding: 10px 25px;
    border-radius: 5px;
    font-weight: 600;
}
.btn-donate-nav:hover { background: var(--hover-purple); }
.hamburger { display: none; cursor: pointer; font-size: 1.8rem; color: var(--text-dark); z-index: 1003; }

/* --- Hero Slider --- */
.hero-slider-section {
    position: relative;
    width: 100%;
    height: 90vh;
    min-height: 500px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #000;
}

.hero-overlay {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
    padding: 0 20px;
    max-width: 900px;
}

.glowing-text {
    font-size: 3.5rem;
    margin-bottom: 20px;
    line-height: 1.2;
    color: #fff;
    text-shadow: 0 0 15px rgba(87, 46, 125, 0.8);
    animation: glow 3s ease-in-out infinite alternate;
}

@keyframes glow {
    from { text-shadow: 0 0 10px rgba(255, 255, 255, 0.7); }
    to { text-shadow: 0 0 25px var(--primary-purple), 0 0 35px var(--primary-purple); }
}

.btn-primary {
    background: var(--primary-purple);
    color: white;
    padding: 15px 35px;
    border-radius: 5px;
    font-weight: bold;
    display: inline-block;
    transition: 0.3s;
}
.btn-primary:hover { transform: translateY(-3px); background: var(--hover-purple); }

/* --- Background Slideshow --- */
.cb-slideshow, .cb-slideshow:after { 
    position: absolute; width: 100%; height: 100%; top: 0; left: 0; z-index: 0; 
}
.cb-slideshow li span { 
    width: 100%; height: 100%; position: absolute; top: 0; left: 0;
    background-size: cover; background-position: center; opacity: 0;
    animation: imageAnimation 18s linear infinite; 
}
.cb-slideshow:after { content: ''; background: rgba(0,0,0,0.6); z-index: 1; }

.cb-slideshow li:nth-child(1) span { background-image: url('pics/hero/IMG_2210.webp'); }
.cb-slideshow li:nth-child(2) span { background-image: url('pics/hero/IMG_2722.webp'); animation-delay: 6s; }
.cb-slideshow li:nth-child(3) span { background-image: url('pics/hero/IMG_2757 (1).webp'); animation-delay: 12s; }

@keyframes imageAnimation { 
    0% { opacity: 0; transform: scale(1); }
    10% { opacity: 1; }
    33% { opacity: 1; transform: scale(1.1); }
    45% { opacity: 0; }
    100% { opacity: 0; }
}

/* --- Sections --- */
.section-padding { padding: 80px 5%; }
.container { max-width: 1200px; margin: 0 auto; width: 100%; }
.section-header { text-align: center; margin-bottom: 50px; }
.divider { width: 60px; height: 4px; background: var(--primary-purple); margin: 15px auto; }

/* About Section */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.about-image-home img { width: 100%; border-radius: 15px; box-shadow: 0 10px 30px rgba(0,0,0,0.1); }
.btn-text { color: var(--primary-purple); font-weight: 700; }

/* Video Strip */
.video-strip { width: 100%; height: 500px; position: relative; background: #000; display: flex; align-items: center; justify-content: center; }
.video-overlay-text { position: absolute; z-index: 2; text-align: center; pointer-events: none; }
.video-overlay-text h2 { color: white; font-size: 3rem; text-shadow: 0 2px 15px rgba(0,0,0,0.9); }

/* Program Cards */
.bg-light { background: #fcfaff; } /* Very subtle purple tint instead of grey */
.program-grid-home { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.program-card-home {
    background: white; padding: 40px 30px; text-align: center; border-radius: 12px;
    box-shadow: 0 5px 20px rgba(87, 46, 125, 0.05); border: 1px solid #f0e6ff;
}
.p-icon { font-size: 3rem; color: var(--primary-purple); margin-bottom: 20px; }
.program-card-home h3 { margin-bottom: 15px; }
.program-card-home a { color: var(--primary-purple); font-weight: 600; margin-top: 15px; display: inline-block; }

/* CTA Section */
.call-to-action {
    background: linear-gradient(rgba(87, 46, 125, 0.85), rgba(87, 46, 125, 0.85)), url('pics/hero/IMG_2722.webp');
    background-size: cover; background-position: center; text-align: center; color: white;
}
.call-to-action h2, .call-to-action p { color: white; }
.cta-buttons { display: flex; gap: 20px; justify-content: center; margin-top: 30px; }
.btn-white { background: white; color: var(--primary-purple); padding: 15px 35px; border-radius: 5px; font-weight: 700; }
.btn-outline-white { border: 2px solid white; color: white; padding: 13px 33px; border-radius: 5px; font-weight: 700; }

/* --- COMMON FOOTER (Fixed for all pages) --- */
.main-footer {
    background-color: var(--white); /* Changed from cream to white */
    padding: 80px 0 0;
    color: var(--text-dark);
    border-top: 2px solid #f0e6ff;
}
.footer-grid { display: grid; grid-template-columns: 1.2fr 0.8fr 1fr 1fr; gap: 40px; padding-bottom: 60px; padding-left: 5%; padding-right: 5%; }
.footer-logo { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; font-weight: 700; font-size: 1.5rem; color: var(--primary-purple); }
.footer-col h3 { font-size: 1.1rem; margin-bottom: 25px; text-transform: uppercase; letter-spacing: 1px; color: var(--primary-purple); }
.footer-links li { margin-bottom: 12px; }
.footer-links a:hover { color: var(--primary-purple); padding-left: 5px; }

.social-icons { display: flex; gap: 15px; margin-top: 15px; }
.social-icons a { 
    width: 40px; height: 40px; border-radius: 50%; background: #f0e6ff; 
    display: flex; align-items: center; justify-content: center; 
    color: var(--primary-purple); font-size: 1.2rem; 
}
.social-icons a:hover { background: var(--primary-purple); color: white; transform: translateY(-3px); }

.newsletter-form input { padding: 15px; width: 100%; border: 1px solid #ddd; border-radius: 5px; margin-bottom: 10px; }
.newsletter-form button { 
    width: 100%; background: var(--primary-purple); color: white; border: none; 
    padding: 15px; font-weight: 700; cursor: pointer; border-radius: 5px;
}

.footer-bottom { border-top: 1px solid #eee; padding: 25px 5%; font-size: 0.9rem; }
.bottom-flex { display: flex; justify-content: space-between; align-items: center; }

/* --- Mobile Fixes --- */
@media (max-width: 768px) {
    .navbar { padding: 0 5%; }
    .hamburger { display: block; }
    .nav-links {
        position: fixed; top: 80px; right: -100%; width: 100%; height: calc(100vh - 80px);
        background: white; flex-direction: column; transition: 0.4s; padding: 40px;
    }
    .nav-links.active { right: 0; }
    .about-grid { grid-template-columns: 1fr; text-align: center; }
    .footer-grid { grid-template-columns: 1fr; text-align: center; }
    .footer-logo, .social-icons { justify-content: center; }
    .bottom-flex { flex-direction: column; gap: 10px; }
    .glowing-text { font-size: 2.2rem; }
}
.author-name {
    font-style: italic;
    margin-top: -10px; /* Pulls it closer to the quote */
    margin-bottom: 40px; /* Space before the button */
    font-size: 1.5rem;
    font-weight: 300;
}