:root {
    --primary-color: #005A9C;
    --secondary-color: #00AEEF;
    --dark-color: #2c3e50;
    --light-color: #f8f9fa;
    --text-color: #333; /* Changed from #555 to a darker color */
    --white-color: #ffffff;
    --font-family: 'Poppins', sans-serif;
    --navbar-height: 70px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--navbar-height);
}

body {
    font-family: var(--font-family);
    line-height: 1.6;
    color: var(--text-color);
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem;
}

h1, h2, h3, h4 {
    color: var(--dark-color);
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 { font-size: 2.8rem; }
h2 { font-size: 2.2rem; }
p { margin-bottom: 1rem; }
a { text-decoration: none; color: var(--primary-color); }

.btn {
    display: inline-block;
    padding: 0.8rem 1.8rem;
    border-radius: 5px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white-color);
}
.btn-primary:hover {
    background-color: #004a80;
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: var(--white-color);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}
.btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--white-color);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: var(--primary-color);
    border-color: var(--primary-color);
}
.btn-outline:hover {
    background: var(--primary-color);
    color: var(--white-color);
}

.btn-large {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
}

.content-section {
    padding: 6rem 0;
}

.bg-light {
    background-color: var(--light-color);
}

.text-center {
    text-align: center;
}

#header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: var(--white-color);
    height: var(--navbar-height);
    transition: box-shadow 0.3s ease, background-color 0.3s;
}

#header.scrolled {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    padding: 0 2rem;
}

.nav-logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
}

.nav-menu {
    display: flex;
    list-style: none;
    align-items: center;
}

.nav-item {
    margin-left: 1.5rem;
}

.nav-link {
    color: var(--dark-color);
    font-weight: 600;
    transition: color 0.3s ease;
    position: relative;
    padding-bottom: 5px;
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}
.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}


.nav-link.donate-btn {
    background-color: var(--primary-color);
    color: var(--white-color);
    padding: 0.5rem 1rem;
    border-radius: 5px;
}
.nav-link.donate-btn:hover {
    color: var(--white-color);
    background-color: #004a80;
}
.nav-link.donate-btn::after {
    display: none;
}

.hamburger {
    display: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: var(--dark-color);
    transition: all 0.3s ease-in-out;
}

.hero-section {
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white-color);
    overflow: hidden;
}

.slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.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;
    transform: scale(1.1);
    animation: zoomOut 10s linear infinite;
}

.slide.active {
    opacity: 1;
}

@keyframes zoomOut {
    0% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
}

.hero-content h1 {
    color: var(--white-color);
    margin-bottom: 1rem;
}
.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}
.hero-buttons .btn {
    margin: 0 0.5rem;
}

.slider-nav {
    position: absolute;
    bottom: 2rem;
    z-index: 2;
    display: flex;
    gap: 1rem;
}

.slider-nav button {
    background-color: rgba(255, 255, 255, 0.5);
    border: none;
    color: var(--dark-color);
    padding: 0.5rem 1rem;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.slider-nav button:hover {
    background-color: rgba(255, 255, 255, 0.8);
}

.content-section h2 {
    text-align: center;
    margin-bottom: 4rem;
    position: relative;
}
.content-section h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--primary-color);
    margin: 0.5rem auto 0;
}

.grid-layout {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.card {
    background: var(--white-color);
    padding: 2rem;
    text-align: center;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}
.card-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.resource-card {
    background: var(--white-color);
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}
.resource-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}
.resource-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}
.resource-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}
.resource-content h3 { font-size: 1.2rem; }
.resource-content p { flex-grow: 1; }
.resource-content a { font-weight: 600; margin-top: 1rem; }
.resource-date {
    font-size: 0.8rem;
    color: #999;
    margin-bottom: 0.5rem;
}

.impact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    text-align: center;
}
.impact-item i {
    font-size: 3rem;
    color: var(--primary-color);
}
.impact-item h3 {
    font-size: 2.5rem;
    margin: 1rem 0 0.5rem;
}
.impact-item p {
    font-size: 1.1rem;
    color: var(--text-color);
}

.donate-section {
    background: linear-gradient(rgba(0, 90, 156, 0.8), rgba(0, 90, 156, 0.8)), url('https://images.unsplash.com/photo-1532629345422-7515f3d16bb6?q=80&w=2070&auto=format&fit=crop') no-repeat center center/cover;
    color: var(--white-color);
    padding: 6rem 0;
    text-align: center;
}
.donate-section h2 {
    color: var(--white-color);
}
.donate-section h2::after {
    background: var(--white-color);
}
.donate-section .btn-primary {
    background: var(--white-color);
    color: var(--primary-color);
}
.donate-section .btn-primary:hover {
    background: var(--light-color);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: flex-start;
}
.contact-info p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}
.contact-info i {
    margin-right: 10px;
    color: var(--primary-color);
}

.map-container {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.contact-form form {
    display: flex;
    flex-direction: column;
}
.contact-form label {
    margin-bottom: 0.5rem;
    font-weight: 600;
}
.contact-form input, .contact-form textarea {
    width: 100%;
    padding: 0.8rem;
    margin-bottom: 1rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: var(--font-family);
}
.contact-form button {
    align-self: flex-start;
}

.footer {
    background: var(--dark-color);
    color: #ccc;
    padding: 4rem 0 2rem;
}
.footer a {
    color: #ccc;
    transition: color 0.3s ease;
}
.footer a:hover {
    color: var(--white-color);
}
.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}
.footer-about h3, .footer-links h4, .footer-social h4, .footer-contact h4 {
    color: var(--white-color);
    margin-bottom: 1rem;
}
.footer-contact p {
    margin-bottom: 0.8rem;
}
.footer-contact i {
    margin-right: 8px;
    color: var(--secondary-color);
}
.footer-links a {
    display: block;
    margin-bottom: 0.5rem;
}
.footer-social a {
    margin-right: 1rem;
    font-size: 1.4rem;
}
.footer-bottom {
    text-align: center;
    border-top: 1px solid #444;
    padding-top: 2rem;
}

.fade-in {
    animation: fadeIn 1s ease-in-out forwards;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

.nav-link.active {
    color: var(--primary-color);
}

.page-header {
    background: var(--primary-color);
    color: var(--white-color);
    padding: 5rem 0;
    text-align: center;
    margin-top: var(--navbar-height);
}
.page-header h1 {
    color: var(--white-color);
    font-size: 2.8rem;
}
.page-header p {
    font-size: 1.2rem;
    opacity: 0.9;
}

.about-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}
.about-image img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}
.grid-layout-2-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}
.vision-mission-card {
    background: var(--white-color);
    padding: 2.5rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}
.certificate-container {
    max-width: 800px;
    margin: 0 auto;
    border: 5px solid var(--light-color);
    padding: 1rem;
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}
.certificate-container img {
    width: 100%;
    display: block;
}

.ministry-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}
.ministry-layout.reverse {
    direction: rtl;
}
.ministry-layout.reverse > * {
    direction: ltr;
}
.ministry-image img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}
.ministry-item {
    padding: 3rem 0;
}
.ministry-highlights {
    list-style: none;
    padding: 0;
    margin-top: 1.5rem;
}
.ministry-highlights li {
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}
.ministry-highlights .fa-check-circle {
    color: var(--secondary-color);
    margin-right: 0.5rem;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    grid-auto-flow: dense;
}
.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 5px;
    cursor: pointer;
    transition: transform 0.3s ease, filter 0.3s ease;
}
.gallery-item img:hover {
    transform: scale(1.03);
    filter: brightness(0.8);
}
.gallery-item.wide {
    grid-column: span 2;
}
.gallery-item.tall {
    grid-row: span 2;
}

.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;
    width: 80%;
    max-width: 800px;
    animation-name: zoom;
    animation-duration: 0.5s;
}
.lightbox-caption {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
    text-align: center;
    color: #ccc;
    padding: 10px 0;
}
.lightbox-close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
}
@keyframes zoom {
    from {transform:scale(0)}
    to {transform:scale(1)}
}

.donate-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}
.donate-card {
    background: var(--white-color);
    padding: 2.5rem;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    text-align: center;
}
.qr-code {
    max-width: 200px;
    margin-top: 1.5rem;
}
.bank-details {
    text-align: left;
    margin-top: 1.5rem;
    background: #e6f2ff;
    padding: 1.5rem;
    border-radius: 5px;
    color: #003366;
}
.bank-details p {
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

@media (max-width: 992px) {
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    .contact-grid, .donate-options { 
        grid-template-columns: 1fr; 
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: var(--navbar-height);
        flex-direction: column;
        background-color: var(--white-color);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
        padding: 2rem 0;
    }
    .nav-menu.active {
        left: 0;
    }
    .nav-item {
        margin: 1.5rem 0;
    }
    .hamburger {
        display: block;
    }
    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }
    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .footer-content {
        text-align: center;
    }
    .footer-social {
        margin-top: 1rem;
    }

    .about-layout, .grid-layout-2-col, .ministry-layout, .ministry-layout.reverse {
        grid-template-columns: 1fr;
    }
    .ministry-layout.reverse {
        direction: ltr;
    }
    .about-image, .ministry-image {
        order: -1;
        margin-bottom: 2rem;
    }
    .page-header {
        padding: 3rem 0;
    }
    .page-header h1 {
        font-size: 2.2rem;
    }
    
    .gallery-item.wide, .gallery-item.tall {
        grid-column: span 1;
        grid-row: span 1;
    }
}
.about-intro {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    margin-top: 3rem;
}

.about-intro-image img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

.focus-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}
.focus-card {
    background: var(--white-color);
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.focus-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}
.focus-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}
.focus-content {
    padding: 2rem;
    text-align: center;
}

.credentials-box {
    background-color: var(--white-color);
    border: 1px solid #ddd;
    border-left: 5px solid var(--primary-color);
    padding: 1.5rem;
    margin: 2rem auto;
    max-width: 600px;
    border-radius: 5px;
}
.credentials-box p {
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
    color: var(--dark-color);
}
.credentials-box p:last-child {
    margin-bottom: 0;
}

.credentials-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}
.credential-card {
    background: var(--light-color);
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
}
.credential-card h3 {
    margin-top: 1rem;
}

.tax-info-box {
    background-color: #e7f5ff;
    border: 1px solid var(--secondary-color);
    border-radius: 8px;
    padding: 1.5rem;
    margin-top: 2rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    text-align: left;
}
.tax-info-box i {
    font-size: 2.5rem;
    color: var(--primary-color);
}
.tax-info-box p {
    margin-bottom: 0;
    line-height: 1.5;
}

@media (max-width: 992px) {
    .about-intro {
        grid-template-columns: 1fr;
    }
    .credentials-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .about-intro-text {
        text-align: center;
    }
    .about-intro a {
        margin: 0 auto;
    }
    .tax-info-box {
        flex-direction: column;
        text-align: center;
    }
    .tax-info-box i {
        margin-bottom: 1rem;
    }
}

.nav-item {
    margin-left: 1.8rem;
}

.gallery-filter {
    text-align: center;
    margin-bottom: 40px;
}

.filter-btn {
    background-color: #f1f1f1;
    color: #333;
    border: none;
    padding: 10px 20px;
    margin: 5px;
    cursor: pointer;
    border-radius: 20px;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    transition: background-color 0.3s, color 0.3s;
    font-weight: 600;
}

.filter-btn:hover {
    background-color: #ddd;
}

.filter-btn.active {
    background-color: #0056b3;
    color: white;
}


.gallery-item {
    transition: transform 0.4s ease, opacity 0.4s ease;
    transform: scale(1);
    opacity: 1;
}

.gallery-item.hide {
    transform: scale(0);
    opacity: 0;
    height: 0;
    overflow: hidden;
    margin: 0;
    padding: 0;
    pointer-events: none;
}
.services-list {
    list-style: none;
    padding: 0;
    max-width: 700px;
    margin: 2rem auto 0;
    text-align: left;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.services-list li {
    padding: 0.8rem 1.2rem;
    margin-bottom: 0.5rem;
    background: #e0f7fa;
    border-left: 4px solid var(--primary-color);
    font-size: 1rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    color: black;
}

@media (max-width: 768px) {
    .services-list {
        grid-template-columns: 1fr;
    }
}

.gallery-grid {
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.5s ease-in-out, visibility 0.5s ease-in-out;
}

.gallery-loader {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 250px;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
