:root {
    --primary-color: #252769;
    --accent-color: #ec1e24; /* Red for CTA/Secondary */
    --text-color: #333333;
    --text-light: #555555;
    --bg-light: #f9f9f9;
    --bg-white: #ffffff;
    --font-primary: 'Poppins', sans-serif;
    --container-width: 1200px;
    --border-radius: 8px;
    --transition: all 0.3s ease;
}

/* Reset & Global */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-primary);
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--bg-white);
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.text-center { text-align: center; }

/* --- Header System --- */
.site-header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    color: white;
}

/* Top Bar */
.top-bar {
    background-color: var(--primary-color);
    padding: 10px 0;
    font-size: 0.9rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.contact-info span {
    margin-right: 20px;
}

.contact-info i {
    color: var(--accent-color);
    margin-right: 5px;
}

.social-icons a {
    color: white;
    margin-left: 15px;
    font-size: 0.9rem;
}

.social-icons a:hover {
    color: var(--accent-color);
}

/* Main Navigation */
.main-header-inner {
    padding: 20px 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.5), transparent);
}

.header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 60px; /* Adjust as needed */
}

.main-nav > ul {
    display: flex;
    align-items: center;
    gap: 30px;
}

.main-nav a {
    font-weight: 600;
    font-size: 0.9rem;
    color: white;
    position: relative;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.main-nav a:hover, .main-nav a.active {
    color: var(--accent-color);
}

/* Donate Button in Menu */
.main-nav a.btn-donate {
    background-color: var(--accent-color);
    color: white !important;
    padding: 10px 25px;
    border-radius: 4px;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
}

.main-nav a.btn-donate:hover {
    background-color: white;
    color: var(--accent-color) !important;
}

/* --- Hero Section (Video) --- */
.hero-static-video {
    position: relative;
    height: 100vh;
    width: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.video-bg-fullscreen {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
}

.video-bg-fullscreen iframe {
    width: 100vw;
    height: 100vh;
    object-fit: cover;
    pointer-events: none;
    transform: scale(1.5); /* Remove black bars/youtube UI */
}

.hero-overlay-gradient {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(37, 39, 105, 0.6); /* Overlay color */
    z-index: -1;
}

.hero-content-centered {
    text-align: center;
    max-width: 800px;
    padding-top: 80px;
}

.hero-content-centered h1 {
    font-size: 3.5rem;
    color: white;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-content-centered p.subtitle {
    font-size: 1.2rem;
    margin-bottom: 40px;
    color: rgba(255,255,255,0.9);
}

.hero-btn-large {
    background-color: var(--accent-color);
    color: white;
    padding: 15px 40px;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: 50px;
    text-transform: uppercase;
    display: inline-block;
}

.hero-btn-large:hover {
    background-color: white;
    color: var(--primary-color);
    transform: translateY(-3px);
}

/* --- Generic Section Styles --- */
.section {
    padding: 80px 0;
}

.section-gray {
    background-color: var(--bg-light);
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 2.5rem;
    position: relative;
    display: inline-block;
    padding-bottom: 15px;
    letter-spacing: 0.5px;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background-color: var(--accent-color);
}

/* --- Split Feature (Welcome) --- */
.split-feature-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.badge-charity {
    display: inline-block;
    color: var(--accent-color);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 10px;
    font-size: 0.9rem;
}

.split-content h2 {
    font-size: 2.5rem;
    margin-bottom: 30px;
    line-height: 1.3;
}

.split-content p {
    color: var(--text-light);
    margin-bottom: 20px;
    font-size: 1.05rem;
}

.btn-primary-solid {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    padding: 12px 30px;
    border-radius: 4px;
    font-weight: 600;
    margin-top: 20px;
    transition: var(--transition);
}

.btn-primary-solid:hover {
    background-color: var(--accent-color);
}

.feature-item {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    padding: 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s;
}

.feature-item:hover {
    transform: translateY(-5px);
}

.feature-icon {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    background: rgba(37, 39, 105, 0.1);
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.feature-text h3 {
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.feature-text p {
    font-size: 0.9rem;
    color: var(--text-light);
}

/* --- Mission Grid --- */
.mission-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.mission-card {
    background: white;
    padding: 40px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    transition: transform 0.3s;
}

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

.grid-icon-box {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: var(--bg-light);
    color: var(--accent-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
}

.mission-card h3 {
    margin-bottom: 15px;
}

/* --- Team/Values Carousel --- */
.team-carousel-wrapper {
    position: relative;
    padding: 0 50px; /* Space for buttons */
}

.team-carousel-track {
    display: flex;
    gap: 30px;
    overflow-x: auto;
    padding: 20px 0;
    scrollbar-width: none; /* Firefox */
}
.team-carousel-track::-webkit-scrollbar { display: none; }

.carousel-card {
    min-width: 300px;
    flex-shrink: 0;
}

.team-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.team-img-wrapper {
    height: 350px;
    overflow: hidden;
}

.team-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.team-card:hover .team-img-wrapper img {
    transform: scale(1.1);
}

.team-info {
    padding: 20px;
    text-align: center;
}

.team-role {
    color: var(--accent-color);
    font-weight: 500;
    font-size: 0.9rem;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
}

.prev-team, .prev-values { left: 0; }
.next-team, .next-values { right: 0; }

/* Values Section Specifics */
.value-card {
    border: 1px solid #eee;
}

.values-carousel-track .carousel-card {
    min-width: calc(33.333% - 20px); /* Show 3 at a time minus gap */
    width: calc(33.333% - 20px);
}

.team-carousel-track .carousel-card {
    min-width: calc(25% - 23px); /* Show 4 at a time (gap 30px * 3 / 4) */
    width: calc(25% - 23px);
}

/* Mobile Carousel Fixes */
@media (max-width: 768px) {
    .team-carousel-wrapper {
        padding: 0 10px; /* Reduce side padding */
    }

    /* Hide buttons on mobile (use swipe) */
    .carousel-btn {
        display: none; 
    }

    /* Make cards nearly full width on mobile */
    .values-carousel-track .carousel-card,
    .team-carousel-track .carousel-card {
        min-width: 85vw;
        width: 85vw;
    }
}


/* --- Who We Are Page Specifics --- */
/* --- Donate Page Specifics --- */
.payment-methods-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.payment-card {
    background: white;
    padding: 40px 30px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    text-align: center;
    border: 1px solid #eee;
}

.payment-card.bank-card { border-top: 4px solid var(--primary-color); }
.payment-card.mobile-card { border-top: 4px solid var(--accent-color); }

.card-header-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    color: var(--text-color);
    opacity: 0.8;
}

.bank-details-box {
    background: var(--bg-light);
    padding: 20px;
    border-radius: 8px;
    text-align: left;
    margin-top: 20px;
    border: 1px solid #e0e0e0;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
    font-size: 0.95rem;
}

.detail-row:last-child { border-bottom: none; }

.detail-row .label {
    font-weight: 600;
    color: var(--text-light);
}

.detail-row .value {
    font-weight: 700;
    color: var(--text-color);
    text-align: right;
}

.detail-row .value.highlight {
    color: var(--primary-color);
    font-size: 1.1rem;
    letter-spacing: 1px;
}

.mobile-providers {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-top: 20px;
}

.provider-badge {
    background: var(--bg-light);
    padding: 8px 15px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-color);
    border: 1px solid #eee;
}

.provider-badge i {
    color: var(--accent-color);
    margin-right: 5px;
}

/* Donate Online Tab Specifics */
.online-donate-wrapper {
    animation: fadeIn 0.5s ease;
}

.amount-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
    gap: 15px;
}

.btn-amount {
    padding: 12px;
    border: 1px solid #ddd;
    background: white;
    border-radius: 6px;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 600;
    color: var(--text-light);
    font-size: 1rem;
}

.btn-amount:hover, .btn-amount.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    box-shadow: 0 4px 10px rgba(37, 39, 105, 0.2);
}

.gateway-option {
    position: relative;
    margin-bottom: 15px;
}

.gateway-option input { display: none; }

.gateway-label {
    display: flex;
    align-items: center;
    padding: 20px;
    border: 2px solid #eee;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
    background: white;
}

.gateway-label i {
    font-size: 1.8rem;
    margin-right: 15px;
    width: 40px;
    text-align: center;
}

.gateway-label:hover {
    border-color: #ddd;
    background: #fdfdfd;
}

.gateway-option input:checked + .gateway-label {
    border-color: var(--primary-color);
    background: #f0f2ff;
    box-shadow: 0 0 0 1px var(--primary-color) inset;
}

.gateway-option input:checked + .gateway-label span {
    font-weight: 600;
    color: var(--primary-color);
}

.btn-block {
    display: block;
    width: 100%;
}

/* --- Contact Page Specifics --- */
.contact-info-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.contact-card {
    background: white;
    padding: 40px 20px;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    transition: transform 0.3s;
    border-bottom: 3px solid var(--accent-color);
}

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

.contact-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    background: var(--bg-light);
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
}

.text-muted { color: #666; }
.mb-1 { margin-bottom: 0.5rem; }

/* --- Activities Page Specifics --- */
.activity-card-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    margin-bottom: 80px;
}

.activity-image {
    aspect-ratio: 16/9;
    width: 100%;
}

.activity-card-row:last-child {
    margin-bottom: 0;
}

.activity-card-row.reverse .activity-image {
    order: 2;
}
.activity-card-row.reverse .activity-content {
    order: 1;
}

.activity-items-list {
    list-style: none;
    margin-top: 15px;
}

.activity-items-list li {
    margin-bottom: 8px;
    display: flex;
    gap: 10px;
    font-size: 0.95rem;
}

.activity-items-list li i {
    margin-top: 4px;
}

@media (max-width: 768px) {
    .activity-card-row {
        grid-template-columns: 1fr;
        gap: 30px;
        margin-bottom: 50px;
    }
    
    .activity-card-row.reverse .activity-image {
        order: -1; 
    }
    .activity-card-row.reverse .activity-content {
        order: 2;
    }
}

/* --- Who We Are Custom Layout --- */
.who-we-are-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.who-we-are-grid .image-content {
    aspect-ratio: 16/9;
    width: 100%;
}

.who-we-are-grid.reverse .text-content {
    order: 2;
}

.img-cover {
    width: 100%;
    height: 100%;
    min-height: 300px;
    object-fit: cover;
    display: block;
}

.shadow-sm { box-shadow: 0 4px 6px rgba(0,0,0,0.1); }
.overflow-hidden { overflow: hidden; }

@media (max-width: 768px) {
    .who-we-are-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .who-we-are-grid.reverse .image-content {
        order: -1;
    }
}

.mt-5 { margin-top: 3rem; }
.mb-4 { margin-bottom: 1.5rem; }
.mb-3 { margin-bottom: 1rem; }
.mb-5 { margin-bottom: 3rem; }
.p-4 { padding: 1.5rem; }

.text-primary { color: var(--primary-color); }
.text-accent { color: var(--accent-color); }
.bg-light { background-color: var(--bg-light); }
.rounded { border-radius: var(--border-radius); }
.lead { font-size: 1.15rem; font-weight: 300; }

.values-list-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.value-item {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    display: flex;
    align-items: flex-start;
    gap: 15px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.value-item i {
    color: var(--accent-color);
    margin-top: 4px;
    font-size: 1.2rem;
}

.value-item span {
    font-weight: 500;
    color: var(--text-color);
}

.objectives-list {
    list-style: none;
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    border-left: 5px solid var(--primary-color);
}

.objectives-list li {
    padding: 12px 0;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.objectives-list li:last-child {
    border-bottom: none;
}

.objectives-list li i {
    margin-top: 5px;
}

.specific-objectives-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.objective-category-card {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    border-top: 3px solid var(--accent-color);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.objective-category-card h4 {
    color: var(--primary-color);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.objective-category-card ul {
    list-style: none;
    flex-grow: 1;
}

.objective-category-card li {
    margin-bottom: 12px;
    display: flex;
    gap: 10px;
    font-size: 0.95rem;
    color: var(--text-light);
}

.objective-category-card li i {
    color: var(--accent-color);
    margin-top: 4px;
    flex-shrink: 0;
}

/* --- Donation Tiers Section --- */
.donation-tiers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.donation-card {
    background: white;
    border-radius: 12px;
    padding: 40px 30px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.donation-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.12);
}

.donation-icon {
    font-size: 3.5rem;
    margin-bottom: 25px;
    height: 80px;
    width: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.03);
    border-radius: 50%;
}

.donation-name {
    font-size: 1.4rem;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.donation-range {
    color: var(--text-light);
    font-weight: 500;
    margin-bottom: 30px;
    font-size: 1rem;
    min-height: 50px; /* Ensure alignment */
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-donate-tier {
    display: inline-block;
    color: white;
    padding: 12px 35px;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    transition: filter 0.3s;
    margin-top: auto; /* Push to bottom */
}

.btn-donate-tier:hover {
    filter: brightness(110%);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* --- Dual CTA Section (The Request) --- */
.dual-cta-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 20px;
}

.cta-block {
    position: relative;
    min-height: 450px; 
    background-size: cover;
    background-position: center;
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    align-items: center;
    padding: 50px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    transition: transform 0.3s;
}

.cta-block:hover {
    transform: translateY(-5px);
}

.cta-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(37, 39, 105, 0.9); /* Strong brand overlay */
    z-index: 1;
    transition: background 0.3s;
}

.cta-block:hover .cta-overlay {
    background: rgba(37, 39, 105, 0.8);
}

.cta-content {
    position: relative;
    z-index: 2;
    color: white;
    width: 100%;
}

.cta-content h4 {
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 3px;
    color: var(--accent-color);
    margin-bottom: 15px;
    text-transform: uppercase;
}

.cta-content h2 {
    font-size: 2.5rem;
    color: white;
    margin-bottom: 20px;
    line-height: 1.1;
}

.cta-content p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 30px;
    font-size: 1.05rem;
    line-height: 1.7;
}

.btn-outline-white {
    display: inline-block;
    padding: 14px 35px;
    border: 2px solid white;
    color: white;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9rem;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.btn-outline-white:hover {
    background-color: white;
    color: var(--primary-color);
}

/* --- Cards Grid (Activities/Causes) --- */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.info-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s;
}

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

.card-img {
    height: 200px;
}

.card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-body {
    padding: 25px;
}

.card-body h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.card-body p {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 15px;
}

.btn-text {
    color: var(--accent-color);
    font-weight: 600;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.btn-text:hover {
    gap: 10px;
}

/* --- Testimonials --- */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.testimonial-card {
    background: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    text-align: center;
}

.quote-icon {
    font-size: 2rem;
    color: var(--accent-color);
    opacity: 0.3;
    margin-bottom: 20px;
}

.quote-text {
    font-style: italic;
    font-size: 1.1rem;
    color: var(--text-color);
    margin-bottom: 20px;
}

.quote-author {
    font-size: 0.9rem;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* --- Footer --- */
.site-footer {
    background-color: var(--primary-color);
    color: rgba(255,255,255,0.7);
    padding: 70px 0 30px;
    font-size: 0.9rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 50px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 50px;
}

.footer-col h3 {
    color: white;
    font-size: 1.2rem;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 15px;
}

.footer-col h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background-color: var(--accent-color);
}

.footer-col p {
    margin-bottom: 15px;
    line-height: 1.8;
}

.footer-contact-item {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.footer-contact-item i {
    color: var(--accent-color);
    margin-top: 5px;
}

.footer-news-item {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.footer-news-item:last-child {
    border-bottom: none;
}

.footer-news-date {
    font-size: 0.8rem;
    color: var(--accent-color);
    display: block;
    margin-bottom: 5px;
}

.footer-news-title {
    color: white;
    font-weight: 500;
    transition: color 0.3s;
}

.footer-news-title:hover {
    color: var(--accent-color);
}

.copyright-bar {
    text-align: center;
    padding-top: 20px;
    font-size: 0.85rem;
}

/* --- Animations --- */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s forwards;
}

.delay-200 { animation-delay: 0.2s; }
.delay-400 { animation-delay: 0.4s; }

@keyframes fadeInUp {
    to { opacity: 1; transform: translateY(0); }
}

.scroll-reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease;
}

.scroll-reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- Subpage Grids --- */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.gallery-item {
    height: 250px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.gallery-item:hover {
    transform: scale(1.02);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* --- Contact Form Styles --- */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.form-wrapper {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

.form-wrapper h3 {
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-color);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: inherit;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary-color);
    outline: none;
}

.btn-submit {
    background-color: var(--accent-color);
    color: white;
    padding: 12px 30px;
    border: none;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

.btn-submit:hover {
    background-color: var(--primary-color);
}

.map-wrapper {
    height: 100%;
    min-height: 400px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

/* Responsive for Contact */
@media (max-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .map-wrapper {
        min-height: 300px;
    }
}

/* --- Responsive Media Queries --- */
/* Mobile Toggle */
.mobile-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.8rem;
    cursor: pointer;
    z-index: 1002;
}

@media (max-width: 992px) {
    .split-feature-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-content-centered h1 {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    /* Top Bar - Visible & Compact */
    .top-bar { 
        display: block; 
        padding: 10px 0; /* More breathing room */
        font-size: 0.85rem; /* Increased readability */
        text-align: center;
        background-color: var(--primary-color);
        border-bottom: 1px solid rgba(255,255,255,0.15);
    }
    
    .top-bar .container {
        flex-direction: column;
        gap: 8px;
        justify-content: center;
    }
    
    .contact-info {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
        align-items: center;
    }
    
    .contact-info span { 
        margin: 0; 
        display: flex;
        align-items: center;
        gap: 6px;
    }

    .social-icons { display: none; } /* Hide socials on mobile top bar to save space, or keep if preferred */

    /* Main Header - Logo Left, Toggle Right */
    .main-header-inner {
        padding: 15px 0;
        position: relative;
        background: linear-gradient(to bottom, rgba(0,0,0,0.8), transparent); /* Stronger gradient for text contrast */
        box-shadow: 0 4px 6px rgba(0,0,0,0.1); /* Subtle shadow for depth */
    }

    .header-flex { 
        display: flex; 
        justify-content: space-between;
        align-items: center;
        flex-wrap: nowrap; /* Prevent wrapping */
        position: relative;
        z-index: 51; /* Above hero content */
    }
    
    .logo img {
        height: 55px; /* Larger logo for mobile visibility */
    }
    
    .mobile-toggle { 
        display: block; 
        padding: 10px; /* Increase touch target */
        margin-left: auto; /* Push to far right */
    }

    /* Mobile Navigation Drawer */
    .main-nav {
        width: 100%;
        display: none; 
        flex-direction: column;
        background-color: var(--primary-color);
        position: absolute;
        top: 100%;
        left: 0;
        padding: 0; /* Reset padding */
        box-shadow: 0 15px 30px rgba(0,0,0,0.3);
        border-top: 1px solid rgba(255,255,255,0.1);
        z-index: 50; /* Ensure drawer sits below header bar but above page */
    }

    .main-nav.active {
        display: flex;
        animation: slideDown 0.3s ease-out forwards;
    }

    .main-nav > ul { 
        gap: 0; 
        font-size: 1rem; 
        flex-direction: column; 
        width: 100%;
    }

    .main-nav li {
        width: 100%;
        border-bottom: 1px solid rgba(255,255,255,0.08);
        text-align: left;
    }
    
    .main-nav li:last-child { border-bottom: none; }

    .main-nav a {
        display: flex; /* Allow justify space between for toggle */
        justify-content: space-between;
        align-items: center;
        padding: 15px 20px;
        color: white;
        font-weight: 500;
    }
    
    .main-nav a:hover {
        background-color: rgba(255,255,255,0.05);
        color: var(--accent-color);
    }

    /* Submenu in Mobile */
    .main-nav .dropdown-menu {
        position: static; /* Relative flow */
        background-color: rgba(0,0,0,0.2);
        box-shadow: none;
        border: none;
        padding: 0;
        display: none; /* Hidden by default */
    }
    
    .main-nav li.active .dropdown-menu {
        display: block; /* Show when li is active */
    }
    
    .dropdown-menu a {
        padding-left: 40px; /* Indent sub items */
        font-size: 0.9rem;
        color: rgba(255,255,255,0.8);
    }

    /* Donate Button Adjustment */
    .main-nav a.btn-donate {
        text-align: center;
        margin: 20px;
        justify-content: center;
        background-color: var(--accent-color);
        display: block; /* Ensure visibility inside drawer */
    }
    
    .cta-block {
        min-height: 350px;
        padding: 30px;
    }
    
    .cta-content h2 {
        font-size: 2rem;
    }

    /* Hero Spacing Fix for Mobile */
    .hero-content-centered {
        padding-top: 140px; /* Push content down on mobile */
    }
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}
/* --- Utility Class for Solid Header (Inner Pages) --- */
.header-solid {
    position: relative !important;
    background-color: var(--primary-color) !important;
}


/* --- Gallery Overlay --- */
.gallery-item {
    position: relative;
    cursor: pointer;
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(37, 39, 105, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay span {
    color: white;
    font-weight: 600;
    font-size: 1.1rem;
    padding: 10px 20px;
    border: 1px solid white;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* --- Gallery Tabs --- */
.gallery-tabs {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.btn-tab {
    background: none;
    border: 2px solid var(--primary-color);
    padding: 8px 20px;
    border-radius: 50px;
    color: var(--primary-color);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-tab:hover, .btn-tab.active {
    background: var(--primary-color);
    color: white;
}

/* --- Donation Copy Button --- */
.copy-btn {
    background: none;
    border: none;
    color: var(--accent-color);
    cursor: pointer;
    margin-left: 10px;
    font-size: 1rem;
    transition: transform 0.2s;
}

.copy-btn:hover {
    transform: scale(1.1);
}

.copy-tooltip {
    position: absolute;
    background: #333;
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
    top: -30px;
    right: 0;
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}

.copy-wrapper {
    position: relative;
    display: inline-flex;
    align-items: center;
}


/* --- Dropdown Menu Styles --- */
.main-nav li {
    position: relative;
    padding: 10px 0; /* Add trigger area */
}

.main-nav .dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--primary-color);
    min-width: 220px;
    display: none;
    flex-direction: column;
    padding: 10px 0;
    border-radius: 0 0 4px 4px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.15);
    z-index: 1001;
    border-top: 2px solid var(--accent-color);
}

/* Desktop Hover Effect */
@media (min-width: 769px) {
    .main-nav li:hover .dropdown-menu {
        display: flex;
        animation: fadeIn 0.2s ease-in-out;
    }
}

/* Mobile Dropdown Styling */
@media (max-width: 768px) {
    .main-nav .dropdown-menu {
        position: static;
        width: 100%;
        box-shadow: none;
        background-color: rgba(0,0,0,0.2); /* Slightly darker */
        border-top: none;
        padding-left: 20px;
        display: none; /* Ensure hidden by default on mobile */
    }
    
    /* Ensure it shows when active on mobile */
    .main-nav li.active .dropdown-menu {
        display: flex;
        animation: none; /* No animation for smoother expansion */
    }

    .contact-info {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }
}

.dropdown-menu li {
    width: 100%;
    padding: 0; /* Reset trigger area padding for items */
}

.dropdown-menu a {
    display: block;
    padding: 12px 20px;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.9);
    text-transform: capitalize; 
    white-space: nowrap;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    font-weight: 500;
}

.dropdown-menu a:hover {
    background-color: rgba(255,255,255,0.05);
    color: var(--accent-color);
    padding-left: 25px; /* Slide effect */
}

.dropdown-menu li:last-child a {
    border-bottom: none;
}

/* Adjust Main Nav Spacing (Desktop) */
@media (min-width: 769px) {
    .main-nav > ul {
        gap: 25px; /* Slightly reduce gap to prevent wrapping */
    }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}


/* --- Click-based Dropdown Support (Mobile Only Logic Applied Above) --- */
/* Removed global rule to prevent desktop stickiness */

/* Ensure toggle is clickable */
.submenu-toggle {
    cursor: pointer;
    transition: transform 0.2s;
}

.submenu-toggle:hover {
    transform: scale(1.2);
    color: var(--accent-color);
}


/* --- Success Stories Grid --- */
.stories-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.story-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: transform 0.3s;
}

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

.story-img {
    height: 250px;
}

.story-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.story-quote {
    background: var(--bg-light);
    padding: 15px;
    border-radius: 8px;
    margin-top: auto; /* Push to bottom */
    position: relative;
}

.story-quote .quote-mark {
    position: absolute;
    top: -10px;
    left: 10px;
    font-size: 1.5rem;
    color: var(--accent-color);
    background: white;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

/* --- News Grid --- */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.news-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s;
    display: flex;
    flex-direction: column;
}

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

.news-img {
    height: 220px;
    overflow: hidden;
}

.news-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.news-card:hover .news-img img {
    transform: scale(1.1);
}

.news-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.news-title {
    font-size: 1.2rem;
    line-height: 1.4;
    margin-bottom: 10px;
}


/* --- MODERN VISUAL UPGRADES --- */

/* 1. Animated Background Gradient for CTA Sections */
@keyframes gradientBG {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.gradient-bg-animate {
    background: linear-gradient(-45deg, var(--primary-color), #3a3d99, #252769, var(--accent-color));
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
    color: white;
}

/* 2. Floating Animation for Icons/Images */
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

.animate-float {
    animation: float 6s ease-in-out infinite;
}

/* 3. Pulse Animation for Donate Buttons */
@keyframes pulse-red {
    0% { box-shadow: 0 0 0 0 rgba(236, 30, 36, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(236, 30, 36, 0); }
    100% { box-shadow: 0 0 0 0 rgba(236, 30, 36, 0); }
}

.btn-donate.pulse-effect {
    animation: pulse-red 2s infinite;
}

/* 4. Modern Card Hover Effect (Lift & Glow) */
.feature-item, .mission-card, .team-card, .story-card, .news-card, .info-card {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); /* Bouncy transition */
}

.feature-item:hover, .mission-card:hover, .team-card:hover, .story-card:hover, .news-card:hover, .info-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0,0,0,0.12);
}

/* 5. Subtle Pattern Background for Gray Sections */
.section-gray {
    background-color: #f8f9fa;
    background-image: radial-gradient(#e5e5e5 1px, transparent 1px);
    background-size: 20px 20px;
}

/* 6. Section Divider (Wave) */
.wave-divider-bottom {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    transform: rotate(180deg);
}

.wave-divider-bottom svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 60px;
}

.wave-divider-bottom .shape-fill {
    fill: #ffffff;
}


/* Overrides for Gradient Section */
.gradient-bg-animate .section-title h2 {
    color: white;
}

.gradient-bg-animate .section-title h2::after {
    background-color: white;
}

/* Hero Wave Divider Position */
.hero-static-video .wave-divider-bottom {
    z-index: 10;
}