:root {
    --charity-yellow: #ffcc00;
    --charity-white: #ffffff;
    --charity-black: #000000;
    --charity-red: #ff3333;
    --charity-grey: #f8f9fa;
    --charity-dark-grey: #333333;
}

.charity-section {
    font-family: 'Poppins', sans-serif;
    color: var(--charity-black);
    margin-top: -120px;
}

/* Hero Section */
.charity-hero {
    background-image: linear-gradient(rgba(0, 0, 0, 0.65), rgba(0, 0, 0, 0.65)), url('https://assets.classy.org/24701671/21b05fc2-df97-11ed-b338-0ac6a3ffa87f.jpg');
    background-size: cover;
    background-position: center;
    padding: 160px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.charity-hero h1 {
    font-size: 64px;
    font-weight: 900;
    color: var(--charity-white);
    margin-bottom: 20px;
    text-transform: uppercase;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.charity-hero p {
    font-size: 20px;
    color: rgba(255, 255, 255, 0.9);
    max-width: 800px;
    margin: 0 auto 40px;
    font-weight: 500;
}

.btn-charity {
    background-color: var(--charity-yellow);
    color: var(--charity-black);
    padding: 15px 45px;
    border-radius: 50px;
    font-weight: 800;
    text-transform: uppercase;
    transition: all 0.3s ease;
    border: 2px solid var(--charity-yellow);
}

.btn-charity:hover {
    background-color: transparent;
    color: var(--charity-white);
    border-color: var(--charity-white);
}

/* Causes Grid */
.charity-causes {
    padding: 0 0 80px 0;
    margin-top: -15vh;
    /* Overlay effect */
    background-color: transparent;
    position: relative;
    z-index: 10;
}

.cause-card {
    background: var(--charity-white);
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
    border-bottom: 5px solid var(--charity-yellow);
    height: 100%;
}

.cause-card:hover {
    transform: translateY(-10px);
}

.cause-icon {
    font-size: 40px;
    margin-bottom: 20px;
    display: inline-block;
}

.cause-card h4 {
    font-weight: 800;
    margin-bottom: 15px;
}

/* Help Section */
.charity-help {
    padding: 80px 0;
    background-color: var(--charity-grey);
}

.help-content h2 {
    font-size: 42px;
    font-weight: 900;
    margin-bottom: 25px;
}

.help-content p {
    font-size: 16px;
    color: var(--charity-dark-grey);
    line-height: 1.8;
}

/* Stats Section */
.charity-stats {
    padding: 60px 0;
    background: var(--charity-yellow);
    color: var(--charity-black);
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 42px;
    font-weight: 900;
    color: var(--charity-black);
    display: block;
}

.stat-label {
    font-size: 14px;
    text-transform: uppercase;
    font-weight: 700;
    opacity: 0.8;
}

/* Donation Form Styling */
.donation-form-card {
    background: var(--charity-white);
    padding: 40px;
    border-radius: 30px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.donation-form-card h3 {
    font-weight: 900;
    margin-bottom: 30px;
}

.form-control-charity {
    border: none;
    border-bottom: 2px solid #eee;
    padding: 15px 0;
    border-radius: 0;
    font-weight: 600;
    margin-bottom: 20px;
}

.form-control-charity:focus {
    box-shadow: none;
    border-color: var(--charity-yellow);
}

.btn-donate-now {
    background-color: var(--charity-red);
    color: var(--charity-white);
    width: 100%;
    padding: 15px;
    border-radius: 50px;
    font-weight: 800;
    text-transform: uppercase;
    border: none;
    margin-top: 20px;
}

.btn-donate-now:hover {
    background-color: #e62e2e;
}

/* Journey Section Enhancements */
.journey-section {
    width: 100%;
    background: #0b0f1a;
}

.journey-card {

    width: 100%;
    /* Changed from max-width: 70vw to fill container */
    margin: 0 auto;
    /* Deeper dark for premium feel */
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.journey-card::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 200px;
    height: 200px;
    background: var(--charity-yellow);
    border-radius: 50%;
    opacity: 0.1;
    z-index: -1;
}

.journey-card::after {
    content: '';
    position: absolute;
    bottom: -30px;
    left: 10%;
    width: 100px;
    height: 100px;
    background: var(--charity-red);
    border-radius: 50%;
    opacity: 0.05;
    z-index: -1;
}

.journey-content h2 {
    font-size: 42px;
    font-weight: 800;
    color: #fff;
    line-height: 1.2;
}

.journey-image-wrap {
    position: relative;
    display: inline-block;

}

.journey-image-wrap::after {
    content: '';
    position: absolute;
    top: 10px;
    left: 10px;
    right: -10px;
    bottom: -10px;
    border: 2px solid var(--charity-yellow);
    border-radius: 50%;
    z-index: -1;
}

.journey-img {
    width: 320px;
    height: 320px;
    object-fit: fill;
    border: 5px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.5s ease;
}

.journey-card:hover .journey-img {
    transform: scale(1.05) rotate(2deg);
}

.btn-journey {
    background: var(--charity-yellow);
    color: var(--charity-black);
    padding: 14px 40px;
    font-weight: 800;
    text-transform: uppercase;
    border-radius: 50px;
    border: 2px solid var(--charity-yellow);
    transition: all 0.3s ease;
}

.btn-journey:hover {
    background: transparent;
    color: var(--charity-yellow);
    transform: translateY(-3px);
}

/* Mobile Adjustments */
@media (max-width: 991px) {
    .charity-hero h1 {
        font-size: 32px;
    }

    .help-content h2 {
        font-size: 30px;
    }

    .stat-item {
        margin-bottom: 30px;
    }

    .journey-card {
        max-width: 100vw;
    }

    .journey-content {
        text-align: center;
        margin-bottom: 40px;
    }

    .journey-content h2 {
        font-size: 28px;
    }

    .journey-img {
        width: 250px;
        height: 250px;
    }
}

@media (max-width: 575px) {
    .journey-img {
        width: 200px;
        height: 200px;
        border-width: 6px;
    }

    .btn-journey {
        width: 100%;
        padding: 12px 20px;
    }

    .journey-card {
        max-width: 100vw;
    }

    .journey-content {
        width: 100%;
    }
}