/* =========================
   Variables & Base Styles
========================= */
:root {
    --primary-color: #4c6baf;   /* Dark Blue */
    --secondary-color: #42A5F5; /* Bright Blue */
    --accent-color: #FFB300;    /* Orange/Yellow */
    --font-color: #333333;
    --bg-color: #FDFDFD;
}

html {
    scroll-behavior: smooth;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

body {
    color: var(--font-color);
    background-color: var(--bg-color);
    line-height: 1.6;
}

/* =========================
   Container
========================= */
.container {
    width: 100%;
    max-width: 1100px;
    margin: auto;
    padding: 0 20px;
}

/* =========================
   Top Header / Nav
========================= */
#top-header {
    background: rgba(40, 53, 147, 0.95);
    padding: 50px 0;
    margin: 0;
    position: fixed;
    width: 50%;
    top: 0;
    left: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    width: 50px;
    height: auto;
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 25px;
}

nav ul li a {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

nav ul li a:hover {
    color: var(--accent-color);
}

/* =========================
   Hero Section (Slideshow Update)
========================= */
#hero {
    /* We remove the specific background image here and move it to ::before */
    background-color: #333; 
    color: #fff;
    text-align: left;
    padding: 150px 50px;
    margin-top: 86px; /* Keeps your fixed header offset */
    position: relative;
    overflow: hidden; /* Ensures images don't spill out */
}

/* New: The Background Slideshow Layer */
#hero::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 0; /* Sits at the very bottom */
    
    /* Animation Settings */
    background-size: cover;
    background-position: center;
    animation: heroSlide 18s infinite; /* Cycles every 18 seconds */
    
    /* Initial Image (Fallback) */
    background-image: url('images/building1.jpg');
}

/* The Dark Overlay */
#hero::after {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1; /* Sits on top of the images, but below text */
}

/* The Text and Button */
.hero-content {
    position: relative;
    z-index: 2; /* Sits on top of everything */
}

/* Animation Keyframes 
   Change the url('...') paths below to your preferred images 
*/
@keyframes heroSlide {
    0% {
        background-image: url('images/building1.jpg');
    }
    33% {
        background-image: url('images/img1.jpg'); /* Replace with your 2nd image */
    }
    66% {
        background-image: url('images/img2.jpg'); /* Replace with your 3rd image */
    }
    100% {
        background-image: url('images/building1.jpg');
    }
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    transition: text-shadow 0.3s ease;
    opacity: 0;
    transform: translateY(30px);
    animation: flowInTitle 0.8s cubic-bezier(.22,.9,.37,1) forwards;
    will-change: transform, opacity;
}

.hero-content p {
    /* keep the existing visual sizing elsewhere; animation only */
    opacity: 0;
    transform: translateY(20px);
    animation: flowInPara 0.8s cubic-bezier(.22,.9,.37,1) forwards;
    animation-delay: 0.25s;
    will-change: transform, opacity;
}

/* Keyframes for the entrance animations */
@keyframes flowInTitle {
    0%   { opacity: 0; transform: translateY(30px); }
    100% { opacity: 1; transform: translateY(0); }
}

@keyframes flowInPara {
    0%   { opacity: 0; transform: translateY(20px); }
    100% { opacity: 1; transform: translateY(0); }
}

/* Respect users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
    .hero-content h1,
    .hero-content p {
        animation: none !important;
        transition: none !important;
        opacity: 1 !important;
        transform: none !important;
    }
}

.hero-content p {
    font-size: 1.5rem;
    margin-bottom: 80px;
}

.btn-primary {
    display: inline-block;
    padding: 15px 30px;
    background: var(--accent-color);
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    border-radius: 5px;
    transition: background 0.3s ease, transform 0.2s ease;
}

.btn-primary:hover {
    background: #ff9800;
    transform: scale(1.05);
}

/* =========================
   Sections
========================= */
section {
    padding: 120px 0;
}

section:nth-child(even) {
    background: #f4f4f4;
}

section:nth-child(odd) {
    background: #fff;
}

section h2 {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 40px;
}

section p {
    font-size: 1.1rem;
    line-height: 1.8;
    max-width: 800px;
    margin: 0 auto 20px auto;
}

/* =========================
   Staff Grid
========================= */
.staff-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.staff-card img {
    transition: transform 0.3s ease-in-out;
}

.staff-card img:hover {
    transform: scale(1.05);
}

/* =========================
   Programs Grid
========================= */
.programs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.program {
    background: #ffffff48;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.3s ease;
    backdrop-filter: blur(10px);
}

.program:hover {
    transform: translateY(-5px);
}

.program h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

/* =========================
   Gallery Grid
========================= */
.gallery-marquee {
    overflow: hidden;
    width: 100%;
    padding: 20px 0;
    position: relative;
}

.gallery-track {
    display: flex;
    width: max-content; /* enough to fit duplicated images */
    animation: scrollGallery 20s linear infinite;
}

.gallery-track img {
    flex: 0 0 auto;       /* prevent shrinking */
    width: 250px;          /* same width for all images */
    height: 200px;         /* same height for all images */
    object-fit: cover;     /* show full image nicely */
    margin-right: 20px;
    border-radius: 10px;
    transition: transform 0.3s ease;
}

.gallery-track img:hover {
    transform: scale(1.05);
}

.gallery-track:hover {
    animation-play-state: paused;
}

/* Animation */
@keyframes scrollGallery {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .gallery-grid img {
        height: 180px;    /* slightly shorter on mobile */
    }
}

/* =========================
   Fundraising / CTA Section
========================= */
#fundraising {
    text-align: center;
}

#fundraising p {
    font-size: 1.2rem;
    margin-bottom: 25px;
}

#fundraising .btn-primary {
    padding: 15px 40px;
    font-size: 1.1rem;
}


/* =========================
   Contact Form
========================= */
#contact form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 500px;
    margin: 20px auto 0 auto;
    background: #fff;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

#contact form input,
#contact form textarea {
    padding: 12px 15px;
    border-radius: 8px;
    border: 1px solid #ccc;
    font-size: 1rem;
    width: 100%;
    transition: border 0.3s ease, box-shadow 0.3s ease;
}

#contact form input:focus,
#contact form textarea:focus {
    border-color: var(--secondary-color);
    box-shadow: 0 0 8px rgba(66, 165, 245, 0.3);
    outline: none;
}

#contact form button {
    padding: 12px;
    background: var(--secondary-color);
    color: #fff;
    font-weight: bold;
    font-size: 1rem;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease;
}

/* WhatsApp Button */
.btn-whatsapp {
    display: inline-block;
    background-color: #25D366;  /* WhatsApp green */
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.btn-whatsapp:hover {
    background-color: #1ebe57;
}

/* Social links below contact form */
.socials {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
}

.socials .social-btn {
    display: inline-block;
    background-color: #1877f2; /* Facebook blue */
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.socials .social-btn:hover {
    background-color: #145dbf;
}

.map-container {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}


#contact form button:hover {
    background: var(--primary-color);
    transform: scale(1.03);
}

/* Thank you message */
#thank-you {
    font-size: 1.1rem;
    font-weight: bold;
    color: #28a745; /* friendly green */
}

/* Responsive */
@media (max-width: 600px) {
    #contact form {
        padding: 20px;
    }

    #contact form input,
    #contact form textarea {
        font-size: 0.95rem;
    }
}

/* =========================
   Footer
========================= */
footer {
    background: #333;
    color: #fff;
    text-align: center;
    padding: 30px 0;
}

footer .social-links a {
    color: #fff;
    text-decoration: none;
    margin: 0 10px;
}

footer .social-links a:hover {
    color: var(--accent-color);
}

footer p {
    margin-top: 15px;
    font-size: 0.9rem;
}

footer a {
    color: #07c25b;
    text-decoration: none;
}

/* =========================
   Hamburger / Dropdown Styles
========================= */

/* Hamburger button */
.hamburger {
    width: 35px;            /* bigger so it's visible */
    height: 25px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
    z-index: 110;           /* above everything */
}

/* The 3 lines */
.hamburger span {
    display: block;
    height: 4px;             /* thicker for visibility */
    width: 100%;
    background: #fff;        /* white for contrast */
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* Transform to X when active */
.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Dropdown menu (hidden by default) */
.hamburger-dropdown {
    list-style: none;
    position: absolute;
    top: 60px;               /* below header */
    right: 20px;             /* aligned with hamburger */
    background: rgba(40, 53, 147, 0.95);
    padding: 15px 20px;
    border-radius: 8px;
    display: none;           /* hidden until click */
    flex-direction: column;
    gap: 10px;
    z-index: 100;
}

/* Show dropdown when active */
.hamburger-dropdown.show {
    display: flex;
}

/* Dropdown links */
.hamburger-dropdown li a {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.hamburger-dropdown li a:hover {
    color: var(--accent-color);
}

/* Ensure flex container positions correctly */
#top-header.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    padding: 15px 20px;
    z-index: 100;
}

/* FAQ Section */
#faq {
    background-color: #f9f9f9;
    padding: 60px 20px;
}

#faq h2 {
    text-align: center;
    margin-top: 80px;
    margin-bottom: 40px;
    font-size: 2em;
    color: #333;
}

.faq-item {
    margin-bottom: 15px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    background: white;
}

.faq-question {
    width: 100%;
    text-align: left;
    background-color: #fff;
    color: #333;
    font-weight: 600;
    padding: 15px 20px;
    border: none;
    outline: none;
    cursor: pointer;
    font-size: 1.1em;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-question:hover {
    background-color: #f0f0f0;
}

.arrow {
    font-size: 1.3em;
    transition: transform 0.3s ease;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    background-color: #fff;
    padding: 0 20px;
    transition: all 0.3s ease;
}

.faq-answer p {
    margin: 15px 0;
    color: #555;
    line-height: 1.6;
}

.faq-item.active .faq-answer {
    max-height: 200px;
    padding-bottom: 15px;
}

.faq-item.active .arrow {
    transform: rotate(45deg);
}

/* =========================
   GALLERY PAGE STYLES
========================= */

/* Album Navigation (Jump buttons) */
.album-nav {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    padding: 20px;
    background: #f4f4f4;
    border-bottom: 1px solid #ddd;
    position: sticky;
    top: 86px; /* Below the main header */
    z-index: 90;
}

.album-btn {
    text-decoration: none;
    color: var(--primary-color);
    background: #fff;
    padding: 10px 20px;
    border-radius: 20px;
    border: 1px solid var(--primary-color);
    font-weight: bold;
    transition: all 0.3s ease;
}

.album-btn:hover {
    background: var(--primary-color);
    color: #fff;
}

/* Individual Album Section */
.album-section {
    padding: 40px 0;
    border-bottom: 1px solid #eee;
}

.album-title {
    text-align: center;
    color: var(--primary-color);
    margin-bottom: 30px;
    font-size: 2rem;
}

/* The Grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    cursor: pointer;
    height: 250px; /* Fixed height for uniformity */
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

/* =========================
   LIGHTBOX (Popup Viewer)
========================= */
.lightbox {
    position: fixed;
    z-index: 999;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: none; /* Hidden by default */
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.lightbox.active {
    display: flex;
    animation: fadeIn 0.3s ease;
}

.lightbox-content {
    max-width: 90%;
    max-height: 90%;
    border-radius: 5px;
    box-shadow: 0 0 20px rgba(255,255,255,0.2);
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #fff;
    font-size: 40px;
    cursor: pointer;
    font-weight: bold;
    transition: color 0.3s;
}

.lightbox-close:hover {
    color: var(--accent-color);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
/* =========================
   CREATIVE GALLERY HERO
========================= */
.gallery-hero {
    /* The Gradient Background */
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: #fff;
    text-align: center;
    
    /* Spacing */
    padding: 140px 20px 100px 20px;
    margin-top: 86px;
    position: relative;
    
    /* The "Smile" Curve at the bottom */
    border-bottom-left-radius: 50% 30px;
    border-bottom-right-radius: 50% 30px;
    
    /* Shadow to make it pop off the page */
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

/* The Polka Dot Pattern Overlay */
.gallery-hero::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    /* This creates a subtle white dot pattern */
    background-image: radial-gradient(rgba(255, 255, 255, 0.15) 2px, transparent 2px);
    background-size: 30px 30px; 
    pointer-events: none; /* Allows clicks to pass through if needed */
}

/* Typography Styling */
.gallery-hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
    position: relative; /* Brings text above the dots */
    z-index: 1;
}

.gallery-hero p {
    font-size: 1.3rem;
    max-width: 600px;
    margin: 0 auto;
    opacity: 0.9;
    position: relative; /* Brings text above the dots */
    z-index: 1;
}

/* Mobile Adjustment */
@media (max-width: 768px) {
    .gallery-hero h1 {
        font-size: 2.5rem;
    }
}

/* =========================
   COOKIE NOTICE STYLES
========================= */
.cookie-notice-container {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: rgba(40, 53, 147, 0.95); /* Using primary color with transparency */
    color: #fff;
    padding: 15px 25px;
    z-index: 1000; /* Ensure it is on top of everything */
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.2);
    transform: translateY(0); /* Default visible state */
    transition: transform 0.5s ease-in-out;
}

/* State when the notice is hidden */
.cookie-notice-container.hidden {
    transform: translateY(100%);
}

.cookie-notice-container p {
    margin: 0;
    flex-grow: 1;
    font-size: 0.9rem;
    line-height: 1.4;
    max-width: 80%;
}

.cookie-buttons {
    display: flex;
    gap: 10px;
}

.btn-cookie {
    padding: 8px 15px;
    border: none;
    border-radius: 5px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

#cookie-accept {
    background-color: var(--accent-color); /* Orange/Yellow */
    color: #333;
}

#cookie-accept:hover {
    background-color: #ff9800;
}

.btn-dismiss {
    background-color: #fff;
    color: #333;
    border: 1px solid #ccc;
}

.btn-dismiss:hover {
    background-color: #eee;
}

/* Mobile adjustments */
@media (max-width: 600px) {
    .cookie-notice-container {
        flex-direction: column;
        text-align: center;
        padding: 15px 10px;
    }
    .cookie-notice-container p {
        margin-bottom: 10px;
        max-width: 100%;
    }
    .cookie-buttons {
        width: 100%;
        justify-content: space-around;
    }
}