/* =========================================
   CSS VARIABLES & GLOBAL RESET
========================================= */
:root {
    --primary: #0B2046; /* Navy Blue */
    --secondary: #B58542; /* Gold/Mustard */
    --accent: #E5A93D;
    --text-dark: #333333;
    --text-light: #666666;
    --bg-light: #F8F9FA;
    --white: #FFFFFF;
    --transition: all 0.3s ease;
    --shadow: 0 5px 15px rgba(0,0,0,0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Merriweather', serif;
    color: var(--primary);
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.divider {
    height: 3px;
    width: 80px;
    background-color: var(--secondary);
    margin: 0 auto;
}

.bg-light {
    background-color: var(--bg-light);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    font-weight: 600;
    border-radius: 5px;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--secondary);
    color: var(--white);
}

.btn-primary:hover {
    background-color: transparent;
    border-color: var(--secondary);
    color: var(--secondary);
}

.btn-secondary {
    background-color: transparent;
    border-color: var(--white);
    color: var(--white);
}

.btn-secondary:hover {
    background-color: var(--white);
    color: var(--primary);
}

.btn-large {
    padding: 15px 40px;
    font-size: 1.1rem;
}

.w-100 { width: 100%; }
.mt-3 { margin-top: 15px; }

/* =========================================
   TOP BAR & NAVBAR
========================================= */
.top-bar {
    background-color: var(--bg-light);
    border-bottom: 1px solid #eee;
    padding: 10px 0;
    font-size: 0.9rem;
}

.top-bar-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.contact-info a {
    margin-right: 20px;
    color: var(--text-dark);
    transition: var(--transition);
}

.contact-info a:hover { color: var(--secondary); }
.contact-info i { color: var(--secondary); margin-right: 5px; }

.social-icons a {
    margin-left: 15px;
    color: var(--primary);
    transition: var(--transition);
}

.social-icons a:hover { color: var(--secondary); }

.navbar {
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: var(--transition);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.cross-logo {
    font-size: 2.5rem;
    color: var(--primary);
}

.logo-text h1 {
    font-size: 1.5rem;
    margin-bottom: 0;
    line-height: 1;
}

.logo-text h1 span {
    color: var(--secondary);
}

.logo-text p {
    font-size: 0.8rem;
    color: var(--text-light);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 25px;
}

.nav-links a {
    font-weight: 500;
    color: var(--primary);
    transition: var(--transition);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--secondary);
    transition: var(--transition);
}

.nav-links a:hover::after { width: 100%; }
.nav-links a:hover { color: var(--secondary); }

.btn-donate {
    background-color: var(--secondary);
    color: var(--white) !important;
    padding: 10px 20px;
    border-radius: 5px;
}
.btn-donate::after { display: none; }
.btn-donate:hover {
    background-color: var(--primary);
    color: var(--white) !important;
}

.hamburger {
    display: none;
    font-size: 1.8rem;
    color: var(--primary);
    cursor: pointer;
}

/* =========================================
   HERO SLIDER SECTION
========================================= */
.hero-section {
    position: relative;
    height: 80vh;
    min-height: 500px;
    overflow: hidden;
}

.slider-container {
    width: 100%;
    height: 100%;
    position: relative;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.slide.active { opacity: 1; z-index: 1; }

.hero-content {
    color: var(--white);
    max-width: 800px;
    padding: 0 20px;
    transform: translateY(20px);
    transition: all 1s ease 0.3s;
    opacity: 0;
}

.slide.active .hero-content {
    transform: translateY(0);
    opacity: 1;
}

.hero-content h2 {
    font-size: 4rem;
    color: var(--white);
    margin-bottom: 10px;
}

.hero-content h3 {
    font-size: 2.5rem;
    color: var(--secondary);
    font-style: italic;
    margin-bottom: 20px;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.prev-slide, .next-slide {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.2);
    border: none;
    color: white;
    font-size: 2rem;
    padding: 15px;
    cursor: pointer;
    z-index: 2;
    transition: var(--transition);
}

.prev-slide:hover, .next-slide:hover { background: var(--secondary); }
.prev-slide { left: 20px; }
.next-slide { right: 20px; }

.dots-container {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 2;
}

.dot {
    width: 12px;
    height: 12px;
    background: rgba(255,255,255,0.5);
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
}

.dot.active { background: var(--secondary); transform: scale(1.2); }

/* =========================================
   SECTIONS: ABOUT, FEATURES, STATS, SERVICES
========================================= */
section { padding: 80px 0; }

/* About */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-text p { margin-bottom: 20px; font-size: 1.1rem; }
.about-list li { margin-bottom: 10px; font-weight: 500; }
.about-list i { color: var(--secondary); margin-right: 10px; }

.mission-vision-cards { display: grid; gap: 20px; }
.mv-card {
    background: var(--bg-light);
    padding: 30px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    border-left: 4px solid var(--secondary);
}
.mv-card i { font-size: 2rem; color: var(--secondary); margin-bottom: 15px; }

/* Features */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
}
.feature-box {
    background: var(--white);
    padding: 40px 20px;
    text-align: center;
    border-radius: 10px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}
.feature-box:hover { transform: translateY(-10px); }
.feature-box i { font-size: 3rem; color: var(--secondary); margin-bottom: 20px; }

/* Stats */
.stats-section {
    background: linear-gradient(rgba(11, 32, 70, 0.9), rgba(11, 32, 70, 0.9)), url('https://images.unsplash.com/photo-1593113565694-c8f780820f78?ixlib=rb-4.0.3') fixed center;
    color: var(--white);
    text-align: center;
}
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
}
.stat-item i { font-size: 3rem; color: var(--secondary); margin-bottom: 15px; }
.stat-item h3 { display: inline; font-size: 3rem; color: var(--white); }
.stat-item span { font-size: 3rem; color: var(--secondary); font-weight: bold; }

/* Services */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}
.service-card {
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
}
.service-card:hover { transform: translateY(-10px); }
.service-card img { width: 100%; height: 200px; object-fit: cover; }
.service-content { padding: 30px 20px 20px; text-align: center; position: relative; }
.icon-circle {
    width: 60px; height: 60px; background: var(--secondary); color: white;
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem; position: absolute; top: -30px; left: 50%; transform: translateX(-50%);
    border: 4px solid var(--white);
}
.service-content h4 { margin-top: 10px; margin-bottom: 10px; }

/* =========================================
   TESTIMONIALS & GALLERY
========================================= */
.testimonial-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}
.testimonial-card {
    background: var(--white);
    padding: 40px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    position: relative;
}
.quote-icon { font-size: 3rem; color: var(--bg-light); position: absolute; top: 20px; right: 20px; }
.testimonial-card p { font-style: italic; margin-bottom: 20px; font-size: 1.1rem; }
.client-info h4 { color: var(--secondary); }

/* Gallery Masonry */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    grid-gap: 15px;
}
.gallery-item {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.gallery-item:hover {
    transform: scale(1.03);
    box-shadow: var(--shadow);
}
/* Lightbox */
.lightbox {
    display: none; position: fixed; z-index: 2000; padding-top: 60px;
    left: 0; top: 0; width: 100%; height: 100%; overflow: auto;
    background-color: rgba(0,0,0,0.9);
}
.lightbox-content {
    margin: auto; display: block; max-width: 80%; max-height: 80%;
    animation: zoom 0.6s;
}
@keyframes zoom { from {transform:scale(0)} to {transform:scale(1)} }
.close-lightbox {
    position: absolute; top: 15px; right: 35px; color: #f1f1f1;
    font-size: 40px; font-weight: bold; transition: 0.3s; cursor: pointer;
}
.close-lightbox:hover { color: #bbb; }

/* =========================================
   DONATE, CTA, FAQ, CONTACT
========================================= */
.donate-section { background: var(--bg-light); }
.donate-container { text-align: center; max-width: 800px; }
.bank-details { margin: 40px 0; text-align: left; background: var(--white); padding: 30px; border-radius: 10px; box-shadow: var(--shadow); }
.bank-details h3 { text-align: center; border-bottom: 2px solid var(--bg-light); padding-bottom: 15px; margin-bottom: 20px; }
.details-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.qr-box { text-align: center; border-left: 2px solid var(--bg-light); }
.qr-img { width: 150px; height: 150px; margin-bottom: 10px; }

.cta-banner { background-color: var(--primary); padding: 60px 0; color: var(--white); }
.cta-flex { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 20px; }
.cta-flex h2 { color: var(--secondary); margin-bottom: 10px; }

.faq-container { max-width: 800px; margin: 0 auto; }
.faq-item { background: var(--white); margin-bottom: 15px; border-radius: 5px; box-shadow: 0 2px 5px rgba(0,0,0,0.05); overflow: hidden; }
.faq-question {
    width: 100%; text-align: left; padding: 20px; background: none; border: none;
    font-size: 1.1rem; font-weight: 600; color: var(--primary); cursor: pointer;
    display: flex; justify-content: space-between; align-items: center;
}
.faq-question i:first-child { color: var(--secondary); margin-right: 10px; }
.faq-answer { padding: 0 20px; max-height: 0; overflow: hidden; transition: max-height 0.3s ease; }
.faq-item.active .faq-answer { padding: 0 20px 20px; max-height: 200px; }
.faq-item.active .arrow { transform: rotate(180deg); }

.contact-grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: 50px; }
.info-item { display: flex; align-items: flex-start; margin-bottom: 25px; }
.info-icon { width: 50px; height: 50px; background: var(--bg-light); color: var(--secondary); border-radius: 50%; display: flex; justify-content: center; align-items: center; font-size: 1.2rem; margin-right: 15px; flex-shrink: 0; }
.contact-form-wrapper { background: var(--white); padding: 40px; border-radius: 10px; box-shadow: var(--shadow); }
.contact-form input, .contact-form textarea { width: 100%; padding: 12px 15px; margin-bottom: 20px; border: 1px solid #ddd; border-radius: 5px; font-family: inherit; }
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--secondary); }

/* =========================================
   FOOTER
========================================= */
.footer { background-color: var(--primary); color: var(--white); padding-top: 70px; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 40px; margin-bottom: 40px; }
.footer-logo { font-size: 1.5rem; font-family: 'Merriweather', serif; margin-bottom: 20px; font-weight: bold; }
.footer-logo span { color: var(--secondary); }
.footer-logo i { color: var(--secondary); }
.footer-col h4 { color: var(--secondary); margin-bottom: 20px; font-size: 1.2rem; }
.footer-links li { margin-bottom: 12px; }
.footer-links a { transition: var(--transition); }
.footer-links a:hover { color: var(--secondary); padding-left: 5px; }
.footer-socials a { display: inline-flex; justify-content: center; align-items: center; width: 40px; height: 40px; background: rgba(255,255,255,0.1); border-radius: 50%; margin-right: 10px; transition: var(--transition); }
.footer-socials a:hover { background: var(--secondary); transform: translateY(-3px); }
.footer-col p { margin-bottom: 10px; display: flex; gap: 10px; }
.footer-col p i { color: var(--secondary); margin-top: 5px; }

.footer-bottom { background: #071530; padding: 20px 0; text-align: center; font-size: 0.9rem; }
.bottom-flex { display: flex; justify-content: space-between; flex-wrap: wrap; }

/* =========================================
   MEDIA QUERIES (RESPONSIVE)
========================================= */
@media (max-width: 992px) {
    .about-grid, .testimonial-grid, .details-grid, .contact-grid { grid-template-columns: 1fr; }
    .qr-box { border-left: none; border-top: 2px solid var(--bg-light); padding-top: 20px; }
    .hero-content h2 { font-size: 3rem; }
    .hero-content h3 { font-size: 2rem; }
}

@media (max-width: 768px) {
    .top-bar-container { flex-direction: column; gap: 10px; text-align: center; }
    .hamburger { display: block; }
    .nav-links {
        position: fixed; top: 110px; right: -100%; width: 250px; height: calc(100vh - 110px);
        background: var(--white); flex-direction: column; align-items: flex-start;
        padding: 30px; box-shadow: -5px 0 15px rgba(0,0,0,0.1); transition: 0.4s;
    }
    .nav-links.active { right: 0; }
    .hero-buttons { flex-direction: column; }
    .bottom-flex { flex-direction: column; gap: 10px; }
}