﻿/* Global Styles */
:root {
    --primary-color: #3498db;
    --secondary-color: #2ecc71;
    --dark-color: #2c3e50;
    --light-color: #ecf0f1;
    --danger-color: #e74c3c;
    --white: #ffffff;
    --black: #000000;
    --gray: #95a5a6;
    --light-gray: #bdc3c7;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--dark-color);
    background-color: var(--white);
    padding-top: 80px;
    /*-webkit-user-select: none;*/ /* Safari */
    /*-moz-user-select: none;*/ /* Firefox */
    /*-ms-user-select: none;*/ /* IE10+/Edge */
    /*user-select: none;*/ /* Standard */
}

img {
    pointer-events: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-user-drag: none;
}

input, textarea, [contenteditable] {
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
    user-select: text;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.section-padding {
    padding: 80px 0;
}

.bg-light {
    background-color: var(--light-color);
}

.bg-blue {
    background-color: #ECFEFF;
}

.bg-green {
    background-color: #D0FAE5;
}

.bg-primary {
    background-color: var(--primary-color);
    color: var(--white);
}

.text-center {
    text-align: center;
}

/* Professional Button Styles */
.btn {
    display: inline-block;
    padding: 14px 28px;
    border-radius: 8px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    cursor: pointer;
    border: none;
    font-size: 15px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    text-align: center;
    text-decoration: none;
}

    .btn:before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
        transition: left 0.5s ease;
    }

    .btn:hover:before {
        left: 100%;
    }

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), #2980b9);
    color: var(--white);
    border: 2px solid var(--primary-color);
}

    .btn-primary:hover {
        transform: translateY(-3px);
        box-shadow: 0 8px 20px rgba(52, 152, 219, 0.3);
        background: linear-gradient(135deg, #2980b9, var(--primary-color));
    }

.btn-secondary {
    background: linear-gradient(135deg, var(--secondary-color), #27ae60);
    color: var(--white);
    border: 2px solid var(--secondary-color);
}

    .btn-secondary:hover {
        transform: translateY(-3px);
        box-shadow: 0 8px 20px rgba(46, 204, 113, 0.3);
        background: linear-gradient(135deg, #27ae60, var(--secondary-color));
    }

.btn-white {
    background-color: var(--white);
    color: var(--primary-color);
}

    .btn-white:hover {
        background-color: #f2f2f2;
        transform: translateY(-2px);
    }

/* Outline button variants */
.btn-outline-primary {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

    .btn-outline-primary:hover {
        background: var(--primary-color);
        color: var(--white);
        transform: translateY(-3px);
    }

.btn-outline-white {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

    .btn-outline-white:hover {
        background: var(--white);
        color: var(--primary-color);
        transform: translateY(-3px);
    }

/* Button sizes */
.btn-sm {
    padding: 10px 20px;
    font-size: 13px;
}

.btn-lg {
    padding: 18px 36px;
    font-size: 16px;
}

/* Disabled state */
.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

    .btn:disabled:hover:before {
        left: -100%;
    }

.btn-donate {
    background: linear-gradient(135deg, #ff8c00, #ff6a00);
    color: var(--white);
    margin-left: 15px;
    padding: 14px 28px;
    border: 2px solid #ff8c00;
    font-weight: 700;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

    .btn-donate:hover {
        transform: translateY(-3px);
        box-shadow: 0 8px 20px rgba(255, 140, 0, 0.3);
        background: linear-gradient(135deg, #ff6a00, #ff8c00);
    }

/* Header - IMPROVED LAYOUT */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 15px 0;
    transition: all 0.3s ease;
}

    .header .container {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .header.scrolled {
        padding: 10px 0;
        background-color: rgba(255, 255, 255, 0.95);
    }

.logo {
    display: flex;
    align-items: center;
}

    .logo img {
        height: 50px;
    }

.logo-text {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
    margin-left: 10px;
}

.main-nav ul {
    display: flex;
    align-items: center;
}

.main-nav ul {
    display: flex;
    align-items: center;
    margin: 0;
    padding: 0;
}

.main-nav li {
    margin-left: 25px;
}

.main-nav a {
    text-decoration: none !important; /* Remove default underline */
    font-weight: 600;
    transition: color 0.3s ease;
    position: relative;
    padding: 5px 0;
    color: var(--dark-color);
    display: block;
    border-bottom: none !important; /* Ensure no border-bottom */
}

    .main-nav a:after {
        content: '';
        position: absolute;
        width: 0;
        height: 2px;
        bottom: 0;
        left: 0;
        background-color: var(--primary-color);
        transition: width 0.3s ease;
    }

    .main-nav a:hover:after {
        width: 100%;
    }

    .main-nav a:hover {
        color: var(--primary-color);
    }

/* Mobile Menu - IMPROVED TOGGLE */
/* Mobile menu button styling fix */
.mobile-menu-btn {
    display: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--dark-color);
    z-index: 1001;
    width: 30px;
    height: 30px;
    position: relative;
    align-items: center;
    justify-content: center;
}

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: flex;
    }

    /* Ensure mobile menu has proper stacking context */
    .main-nav {
        z-index: 1000;
    }
}

    .mobile-menu-btn .fa-bars,
    .mobile-menu-btn .fa-times {
        position: absolute;
        top: 0;
        left: 0;
        transition: opacity 0.3s ease;
    }

    .mobile-menu-btn .fa-times {
        opacity: 0;
    }

    .mobile-menu-btn.active .fa-bars {
        opacity: 0;
    }

    .mobile-menu-btn.active .fa-times {
        opacity: 1;
    }

/* Hero Section */
.hero-section {
    height: 100vh;
    min-height: 600px;
    background: url('/Assets/img/leafbank1.jpg') no-repeat center center/cover;
    position: relative;
    display: flex;
    align-items: center;
    margin-top: 0; /* Removed the margin since header is fixed */
}

.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;
    color: var(--white);
    max-width: 700px;
    text-align: center;
    margin: 0 auto;
    padding: 0 20px;
}

    .hero-content h1 {
        font-size: 3.5rem;
        margin-bottom: 20px;
        line-height: 1.2;
        text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    }

    .hero-content p {
        font-size: 1.25rem;
        margin-bottom: 40px;
        text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    }

.hero-buttons .btn {
    margin: 0 15px 15px 0;
}

/* Section Header */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

    .section-header h2 {
        font-size: 2.5rem;
        margin-bottom: 15px;
        color: var(--dark-color);
        position: relative;
        display: inline-block;
        padding-bottom: 15px;
    }

        .section-header h2:after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 50%;
            transform: translateX(-50%);
            width: 80px;
            height: 3px;
            background-color: var(--primary-color);
        }

    .section-header p {
        color: var(--gray);
        font-size: 1.125rem;
        max-width: 700px;
        margin: 0 auto;
    }

/* About Section */
.about-content {
    display: flex;
    align-items: center;
    gap: 50px;
}

.about-text {
    flex: 1;
}

    .about-text h3 {
        font-size: 2rem;
        margin-bottom: 20px;
        color: var(--dark-color);
    }

    .about-text p {
        margin-bottom: 20px;
        line-height: 1.8;
    }

.about-image {
    flex: 1;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

    .about-image img {
        width: 100%;
        height: auto;
        transition: transform 0.5s ease;
    }

    .about-image:hover img {
        transform: scale(1.05);
    }

.about-stats {
    display: flex;
    justify-content: space-between;
    margin: 40px 0 30px;
}

.stat-item {
    text-align: center;
    padding: 25px 15px;
    background-color: var(--light-color);
    border-radius: 8px;
    flex: 1;
    margin: 0 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

    .stat-item:hover {
        transform: translateY(-5px);
    }

    .stat-item h4 {
        font-size: 2.5rem;
        color: var(--primary-color);
        margin-bottom: 5px;
        font-weight: 700;
    }

    .stat-item p {
        font-size: 1rem;
        color: var(--dark-color);
        font-weight: 600;
    }

/* Causes Section - IMPROVED DESIGN */
/* Causes Section Button Fixes */
.cause-buttons {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    flex-wrap: wrap;
}

    .cause-buttons .btn {
        flex: 1;
        min-width: 120px;
        text-align: center;
        padding: 12px 15px;
        font-size: 14px;
    }

/* Space between causes grid and View All button */
.causes-section .text-center {
    margin-top: 40px;
}

.causes-section .btn-secondary {
    padding: 15px 30px;
    font-size: 16px;
}

/* Responsive adjustments for cause buttons */
@media (max-width: 576px) {
    .cause-buttons {
        flex-direction: column;
    }

        .cause-buttons .btn {
            width: 100%;
        }
}
.causes-section {
    position: relative;
    overflow: hidden;
}

.causes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.cause-item {
    background-color: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.4s ease;
    position: relative;
}

    .cause-item:hover {
        transform: translateY(-10px);
        box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    }

.cause-image {
    position: relative;
    overflow: hidden;
    height: 220px;
}

    .cause-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.5s ease;
    }

.cause-item:hover .cause-image img {
    transform: scale(1.1);
}

.cause-category {
    position: absolute;
    top: 20px;
    right: 20px;
    background-color: var(--primary-color);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.progress-container {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 0 20px 20px;
    color: white;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
}

.progress-bar {
    width: 100%;
    height: 8px;
    background-color: rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    margin-bottom: 8px;
    overflow: hidden;
}

.progress {
    height: 100%;
    background-color: var(--secondary-color);
    border-radius: 4px;
    position: relative;
    transition: width 1s ease-in-out;
}

.raised {
    display: flex;
    justify-content: space-between;
    font-size: 0.875rem;
    font-weight: 600;
}

    .raised span:last-child {
        color: var(--secondary-color);
    }

.cause-content {
    padding: 25px;
}

    .cause-content h3 {
        margin-bottom: 15px;
        color: var(--dark-color);
        font-size: 1.5rem;
    }

    .cause-content p {
        margin-bottom: 25px;
        color: var(--gray);
        line-height: 1.7;
    }

.cause-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    font-size: 0.875rem;
    color: var(--gray);
}

    .cause-meta span {
        display: flex;
        align-items: center;
    }

    .cause-meta i {
        margin-right: 5px;
        color: var(--primary-color);
    }

.cause-content .btn {
    width: 100%;
    text-align: center;
}

/* Volunteer Section */
.volunteer-content {
    display: flex;
    align-items: center;
    gap: 50px;
}

.volunteer-image {
    flex: 1;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

    .volunteer-image img {
        width: 100%;
        height: auto;
        transition: transform 0.5s ease;
    }

    .volunteer-image:hover img {
        transform: scale(1.05);
    }

.volunteer-text {
    flex: 1;
}

    .volunteer-text h2 {
        font-size: 2.5rem;
        margin-bottom: 20px;
        color: var(--dark-color);
    }

    .volunteer-text p {
        margin-bottom: 20px;
        line-height: 1.8;
    }

/* Testimonials Section */
.testimonials-slider {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    overflow: hidden;
    height: 300px;
}

.testimonial-item {
    background-color: var(--white);
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    text-align: center;
    margin: 0 20px;
    position: absolute;
    width: calc(100% - 40px);
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.8s cubic-bezier(0.25, 0.8, 0.25, 1);
    z-index: 1;
}

    .testimonial-item.active {
        opacity: 1;
        transform: translateX(0);
        z-index: 2;
    }

    .testimonial-item.prev {
        transform: translateX(-100%);
        opacity: 0;
    }

    /* Remove the old fade-in animation from testimonials */
    .testimonial-item.fade-in {
        animation: none;
    }

.testimonial-content {
    margin-bottom: 30px;
    position: relative;
}

    .testimonial-content p {
        font-size: 1.125rem;
        font-style: italic;
        color: var(--dark-color);
        line-height: 1.8;
        position: relative;
        z-index: 1;
    }

    .testimonial-content i {
        color: var(--primary-color);
        font-size: 2rem;
        opacity: 0.2;
        position: absolute;
    }

        .testimonial-content i.fa-quote-left {
            top: -10px;
            left: -10px;
        }

        .testimonial-content i.fa-quote-right {
            bottom: -10px;
            right: -10px;
        }

.testimonial-author {
    display: flex;
    flex-direction: column;
    align-items: center;
}

    .testimonial-author img {
        width: 80px;
        height: 80px;
        border-radius: 50%;
        object-fit: cover;
        margin-bottom: 15px;
        border: 3px solid var(--primary-color);
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    }

    .testimonial-author h4 {
        margin-bottom: 5px;
        color: var(--dark-color);
        font-size: 1.25rem;
    }

    .testimonial-author span {
        color: var(--primary-color);
        font-size: 0.875rem;
        font-weight: 600;
    }

.testimonial-nav {
    display: flex;
    justify-content: center;
    margin-top: 30px;
}

.testimonial-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: var(--light-gray);
    margin: 0 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

    .testimonial-dot.active {
        background-color: var(--primary-color);
        transform: scale(1.2);
    }

/* Media Coverage Section */
.media-section {
    text-align: center;
}

.media-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

.media-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 25px 20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    text-decoration: none;
    color: var(--dark-color);
}

    .media-item:hover {
        transform: translateY(-8px);
        box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
    }

.media-logo {
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    border-radius: 50%;
    background: #f8f9fa;
    padding: 15px;
    transition: all 0.3s ease;
}

.media-item:hover .media-logo {
    background: var(--light-color);
    transform: scale(1.05);
}

.media-logo img {
    max-width: 100%;
    max-height: 70px;
    width: auto;
    height: auto;
    object-fit: contain;
}

.media-name {
    font-weight: 600;
    font-size: 1.1rem;
    text-align: center;
    margin-top: 10px;
}

/* Responsive Design for Media Section */
@media (max-width: 768px) {
    .media-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 20px;
    }

    .media-item {
        padding: 20px 15px;
    }

    .media-logo {
        width: 80px;
        height: 80px;
    }

        .media-logo img {
            max-height: 50px;
        }

    .media-name {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .media-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .media-item {
        padding: 15px 10px;
    }

    .media-logo {
        width: 70px;
        height: 70px;
        margin-bottom: 15px;
    }

        .media-logo img {
            max-height: 40px;
        }

    .media-name {
        font-size: 0.9rem;
    }
}

/* Events Section */
.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.event-item {
    display: flex;
    background-color: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

    .event-item:hover {
        transform: translateY(-5px);
        box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    }

.event-date {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 90px;
}

    .event-date .day {
        font-size: 2rem;
        font-weight: 700;
        line-height: 1;
    }

    .event-date .month {
        font-size: 1rem;
        text-transform: uppercase;
        margin-top: 5px;
        font-weight: 600;
    }

.event-content {
    padding: 25px;
    flex: 1;
}

    .event-content h3 {
        margin-bottom: 15px;
        color: var(--dark-color);
        font-size: 1.25rem;
    }

    .event-content p {
        margin-bottom: 12px;
        color: var(--gray);
        display: flex;
        align-items: center;
        font-size: 0.9375rem;
    }

    .event-content i {
        margin-right: 10px;
        color: var(--primary-color);
        width: 16px;
    }

    .event-content .btn {
        margin-top: 15px;
    }

/* Donation CTA Section */
.donation-cta {
    text-align: center;
    position: relative;
    overflow: hidden;
}

    .donation-cta:before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.7);
        z-index: 1;
    }

.donation-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

    .donation-content h2 {
        font-size: 2.5rem;
        margin-bottom: 20px;
    }

    .donation-content p {
        font-size: 1.125rem;
        margin-bottom: 40px;
        line-height: 1.7;
    }

.donation-buttons .btn {
    margin: 0 15px 15px;
}

/* Footer */
.footer {
    background-color: #222;
    color: #fff;
    padding: 50px 0 20px;
    font-family: Arial, sans-serif;
}

    .footer .container {
        max-width: 1200px;
        margin: 0 auto;
        padding: 0 20px;
    }

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px; /* consistent spacing between columns */
    margin-bottom: 30px;
}

.footer-col h3 {
    font-size: 1.5rem;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
}

    .footer-col h3::after {
        content: '';
        position: absolute;
        left: 0;
        bottom: 0;
        width: 40px;
        height: 2px;
        background-color: var(--primary-color);
    }

.footer-col p, .footer-col ul {
    font-size: 14px;
    margin-bottom: 15px;
    color: #ccc;
    line-height: 1.6;
}

.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.social-links {
    display: flex;
    margin-top: 20px;
    gap: 10px;
}

    .social-links a {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        border-radius: 50%;
        background-color: rgba(255, 255, 255, 0.1);
        color: var(--white);
        transition: all 0.3s ease;
    }

        .social-links a:hover {
            background-color: var(--primary-color);
            transform: translateY(-3px);
        }

.footer-col ul li {
    margin-bottom: 10px;
}

    .footer-col ul li a {
        color: #ccc;
        text-decoration: none;
        transition: color 0.3s;
    }

        .footer-col ul li a:hover {
            color: var(--primary-color);
            transform: translateX(5px);
        }

.contact-info p {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.contact-info i {
    margin-right: 15px;
    color: var(--primary-color);
    width: 20px;
    font-size: 1.125rem;
}

.newsletter-form {
    display: flex;
    margin-top: 20px;
    flex-wrap: wrap;
}

.newsletter-input {
    flex: 1;
    padding: 15px;
    border: none;
    border-radius: 4px 0 0 4px;
    font-size: 1rem;
    min-width: 0;
}

.btn-subscribe {
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 0 25px;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    transition: background-color 0.3s ease;
    font-weight: 600;
}

    .btn-subscribe:hover {
        background-color: #2980b9;
    }

.footer-bottom {
    text-align: center;
    border-top: 1px solid #444;
    padding-top: 15px;
    font-size: 13px;
    color: #aaa;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .hero-content h1 {
        font-size: 3rem;
    }
}

@media (max-width: 992px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-content p {
        font-size: 1.1rem;
    }

    .about-content,
    .volunteer-content {
        flex-direction: column;
        gap: 40px;
    }

    .about-stats {
        flex-direction: column;
        gap: 20px;
    }

    .stat-item {
        margin: 0;
    }

    .section-header h2 {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    body {
        padding-top: 70px;
    }

    .main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background-color: var(--white);
        padding: 80px 30px 30px;
        transition: right 0.4s ease;
        box-shadow: -5px 0 25px rgba(0, 0, 0, 0.1);
        z-index: 999;
        overflow-y: auto;
    }

        .main-nav.active {
            right: 0;
        }

        .main-nav ul {
            flex-direction: column;
            align-items: flex-start;
        }

        .main-nav li {
            margin: 0 0 20px 0;
            width: 100%;
        }

        .main-nav a {
            padding: 10px 0;
            font-size: 1.125rem;
        }

    .btn-donate {
        margin-left: 0;
        width: 100%;
    }

    .mobile-menu-btn {
        display: block;
    }

    .hero-section {
        height: auto;
        min-height: auto;
        padding: 40px 0;
    }

    .hero-overlay {
        display: none; /* Remove overlay on mobile */
    }

    .hero-content {
        background: rgba(0, 0, 0, 0.5); /* Add background to text for better readability */
        padding: 30px 20px;
        margin: 0;
        width: 100%;
        max-width: 100%;
    }

        .hero-content h1 {
            font-size: 2rem;
        }

        .hero-content p {
            font-size: 1.1rem;
            margin-bottom: 30px;
        }
    .hero-buttons .btn {
        padding: 12px 24px;
        font-size: 14px;
    }

    .section-header h2 {
        font-size: 1.75rem;
    }

    .causes-grid,
    .events-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .donation-buttons {
        display: flex;
        flex-direction: column;
        gap: 15px;
    }

        .donation-buttons .btn {
            margin: 5px 0;
        }

    .newsletter-form {
        flex-direction: column;
    }

    .newsletter-input {
        border-radius: 4px;
        margin-bottom: 10px;
    }

    .btn-subscribe {
        border-radius: 4px;
        padding: 15px;
    }
}

@media (max-width: 576px) {
    .hero-content {
        padding: 25px 15px;
    }

        .hero-content h1 {
            font-size: 1.8rem;
            line-height: 1.3;
        }

        .hero-content p {
            font-size: 1rem;
            margin-bottom: 25px;
            line-height: 1.5;
        }

    .hero-buttons {
        display: flex;
        flex-direction: column;
        gap: 15px;
    }

        .hero-buttons .btn {
            margin-right: 0;
            width: 100%;
            text-align: center;
            padding: 14px 20px;
        }

    .event-item {
        flex-direction: column;
    }

    .event-date {
        flex-direction: row;
        justify-content: center;
        gap: 15px;
        padding: 20px;
        min-width: auto;
    }

        .event-date .day,
        .event-date .month {
            font-size: 1.5rem;
        }

    .testimonial-item {
        padding: 30px 20px;
        margin: 0 10px;
    }

    .donation-content h2 {
        font-size: 2rem;
    }
}

/* Extra small devices */
@media (max-width: 400px) {
    .hero-content h1 {
        font-size: 1.6rem;
    }

    .hero-content p {
        font-size: 0.95rem;
    }

    .hero-buttons .btn {
        padding: 12px 16px;
        font-size: 13px;
    }
}
/* Animation Keyframes */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.8s ease forwards;
}

/* Slider Navigation for Testimonials */
.testimonial-nav {
    display: flex;
    justify-content: center;
    margin-top: 30px;
}

.testimonial-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: var(--light-gray);
    margin: 0 8px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

    .testimonial-dot.active {
        background-color: var(--primary-color);
        transform: scale(1.2);
    }
