﻿
/* =========================================================
   CHARITY HOMEPAGE
   Modern Charity Website
   Version 1.0
========================================================= */

/* =========================================================
   1. GLOBAL
========================================================= */

.charity-home {
    --home-primary: #0878D1;
    --home-primary-dark: #075A9E;
    --home-primary-light: #EAF5FF;
    --home-green: #16A66A;
    --home-orange: #F4A340;
    --home-text: #172B45;
    --home-muted: #68788C;
    --home-bg: #F7FAFD;
    --home-white: #FFFFFF;
    --home-border: #E7EDF4;
    width: 100%;
    overflow: hidden;
    color: var(--home-text);
    background: #FFFFFF;
    font-family: "Segoe UI", Arial, sans-serif;
}

    .charity-home *,
    .charity-home *::before,
    .charity-home *::after {
        box-sizing: border-box;
    }

.home-container {
    width: min(100% - 40px, 1200px);
    margin: 0 auto;
}

.charity-home a {
    transition: all .25s ease;
    text-decoration: none;
}

.charity-home img {
    max-width: 100%;
}

/* Section heading */

.section-eyebrow {
    display: inline-block;
    margin-bottom: 13px;
    color: var(--home-primary);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 2px;
}

.home-section-title {
    margin: 0;
    color: var(--home-text);
    font-size: clamp(27px, 3vw, 36px);
    font-weight: 800;
    line-height: 1.3;
}

.home-section-description {
    max-width: 620px;
    margin: 12px 0 0;
    color: var(--home-muted);
    font-size: 15px;
    line-height: 1.8;
}

.section-heading-wrap {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 25px;
    margin-bottom: 35px;
}

.section-view-all {
    flex-shrink: 0;
    padding-bottom: 5px;
    color: var(--home-primary);
    font-size: 14px;
    font-weight: 750;
}

    .section-view-all:hover {
        color: var(--home-primary-dark);
        transform: translateX(4px);
    }

/* =========================================================
   2. HERO BANNER
========================================================= */

.home-hero {
    position: relative;
    padding: 80px 0 85px;
    background: radial-gradient( circle at 90% 10%, rgba(8, 120, 209, .09), transparent 30% ), linear-gradient(120deg, #F2F8FF, #FFFFFF 65%);
}

    .home-hero::before {
        position: absolute;
        top: -110px;
        left: -100px;
        width: 280px;
        height: 280px;
        border: 1px solid rgba(8, 120, 209, .08);
        border-radius: 50%;
        content: "";
    }

.hero-content {
    position: relative;
    z-index: 2;
    padding-right: 20px;
}

.hero-label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 9px 15px;
    border: 1px solid #D7EAFB;
    border-radius: 30px;
    background: #FFFFFF;
    color: var(--home-primary);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.2px;
}

.hero-label-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--home-green);
    box-shadow: 0 0 0 4px rgba(22, 166, 106, .12);
}

.hero-content h1 {
    margin: 25px 0 20px;
    color: var(--home-text);
    font-size: clamp(38px, 4.5vw, 57px);
    font-weight: 850;
    line-height: 1.18;
    letter-spacing: -1.7px;
}

    .hero-content h1 span {
        display: block;
        color: var(--home-primary);
    }

.hero-description {
    max-width: 530px;
    margin-bottom: 27px;
    color: var(--home-muted);
    font-size: 16px;
    line-height: 1.9;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.home-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 13px;
    min-height: 51px;
    padding: 13px 22px;
    border: 1px solid transparent;
    border-radius: 11px;
    font-size: 13px;
    font-weight: 750;
    transition: all .25s ease;
}

.home-btn-primary {
    background: var(--home-primary);
    color: #FFFFFF !important;
    box-shadow: 0 7px 18px rgba(8, 120, 209, .18);
}

    .home-btn-primary:hover {
        background: var(--home-primary-dark);
        transform: translateY(-3px);
        box-shadow: 0 10px 23px rgba(8, 120, 209, .25);
    }

    .home-btn-primary span,
    .home-btn-white span {
        font-size: 18px;
    }

.home-btn-outline {
    border-color: #D9E4EF;
    background: #FFFFFF;
    color: var(--home-text) !important;
}

    .home-btn-outline:hover {
        border-color: var(--home-primary);
        color: var(--home-primary) !important;
        transform: translateY(-3px);
    }

.hero-trust {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 32px;
}

.hero-trust-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: #E6F4FF;
    color: var(--home-primary);
    font-size: 21px;
}

.hero-trust strong,
.hero-trust span {
    display: block;
}

.hero-trust strong {
    color: var(--home-text);
    font-size: 13px;
}

.hero-trust div:last-child span {
    margin-top: 3px;
    color: var(--home-muted);
    font-size: 12px;
}

/* Hero image */

.hero-visual {
    position: relative;
    padding: 12px 12px 25px 0;
}

.hero-image-main {
    position: relative;
    z-index: 1;
    height: 440px;
    overflow: hidden;
    border-radius: 26px;
    background: #DCEAF6;
    box-shadow: 0 22px 55px rgba(24, 64, 100, .16);
}

    .hero-image-main img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
        transition: transform .7s ease;
    }

    .hero-image-main:hover img {
        transform: scale(1.045);
    }

.hero-image-decoration {
    position: absolute;
    right: -5px;
    bottom: 0;
    width: 160px;
    height: 160px;
    border: 20px solid #D9EEFF;
    border-radius: 28px;
    transform: rotate(12deg);
}

.hero-floating-card {
    position: absolute;
    z-index: 3;
    left: -35px;
    bottom: 55px;
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 16px 19px;
    border: 1px solid rgba(255,255,255,.8);
    border-radius: 15px;
    background: rgba(255,255,255,.96);
    box-shadow: 0 12px 35px rgba(20, 50, 80, .12);
    backdrop-filter: blur(8px);
}

.floating-card-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: #E9F5FF;
    color: var(--home-primary);
    font-size: 20px;
}

.hero-floating-card strong,
.hero-floating-card span {
    display: block;
}

.hero-floating-card strong {
    color: var(--home-text);
    font-size: 12px;
}

.hero-floating-card span {
    margin-top: 4px;
    color: var(--home-muted);
    font-size: 11px;
}

.hero-image-caption {
    display: flex;
    justify-content: space-between;
    margin-top: 13px;
    color: #8294A8;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 2px;
}

/* =========================================================
   3. TRUST SECTION
========================================================= */

.home-trust-section {
    position: relative;
    z-index: 4;
    padding: 35px 0;
    border-top: 1px solid #EEF3F8;
    border-bottom: 1px solid #EEF3F8;
    background: #FFFFFF;
}

.trust-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    height: 100%;
    padding: 12px;
}

.trust-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 51px;
    height: 51px;
    border-radius: 14px;
    font-size: 24px;
    font-weight: 800;
}

.trust-blue {
    background: #EAF4FF;
    color: #0878D1;
}

.trust-green {
    background: #E7F8EF;
    color: #16A66A;
}

.trust-orange {
    background: #FFF4E5;
    color: #E59A36;
}

.trust-item h3 {
    margin: 2px 0 6px;
    color: var(--home-text);
    font-size: 16px;
    font-weight: 800;
}

.trust-item p {
    margin: 0;
    color: var(--home-muted);
    font-size: 12px;
    line-height: 1.7;
}

/* =========================================================
   4. FEATURED CAMPAIGNS
========================================================= */

.home-campaign-section {
    padding: 90px 0;
    background: #F8FAFD;
}

.home-campaign-card {
    height: 100%;
    overflow: hidden;
    border: 1px solid var(--home-border);
    border-radius: 17px;
    background: #FFFFFF;
    box-shadow: 0 5px 18px rgba(20, 50, 80, .045);
    transition: transform .3s ease, box-shadow .3s ease;
}

    .home-campaign-card:hover {
        transform: translateY(-7px);
        box-shadow: 0 16px 35px rgba(20, 50, 80, .11);
    }

.campaign-image-wrap {
    position: relative;
    height: 195px;
    overflow: hidden;
    background: #E5EDF5;
}

    .campaign-image-wrap img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform .55s ease;
    }

.home-campaign-card:hover .campaign-image-wrap img {
    transform: scale(1.07);
}

.campaign-status {
    position: absolute;
    top: 13px;
    left: 13px;
    display: inline-block;
    padding: 7px 12px;
    border-radius: 30px;
    font-size: 10px;
    font-weight: 750;
    box-shadow: 0 3px 10px rgba(0,0,0,.06);
}

    .campaign-status.bg-primary {
        background: #E4F2FF !important;
        color: #0878D1 !important;
    }

    .campaign-status.bg-success {
        background: #E5F7EC !important;
        color: #148B53 !important;
    }

    .campaign-status.bg-secondary {
        background: #EDF0F3 !important;
        color: #5C6772 !important;
    }

    .campaign-status.bg-info {
        background: #E3F8FB !important;
        color: #13849A !important;
    }

.home-campaign-content {
    display: flex;
    flex-direction: column;
    padding: 19px;
    height: calc(100% - 195px);
}

    .home-campaign-content h3 {
        display: -webkit-box;
        min-height: 48px;
        margin: 0 0 9px;
        overflow: hidden;
        color: var(--home-text);
        font-size: 16px;
        font-weight: 800;
        line-height: 1.5;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
    }

.campaign-description {
    display: -webkit-box;
    min-height: 60px;
    margin: 0 0 14px;
    overflow: hidden;
    color: var(--home-muted);
    font-size: 12px;
    line-height: 1.7;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.campaign-progress-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 8px;
    color: var(--home-muted);
    font-size: 11px;
}

    .campaign-progress-heading strong {
        color: var(--home-primary);
        font-size: 13px;
    }

.campaign-progress-track {
    width: 100%;
    height: 7px;
    overflow: hidden;
    border-radius: 10px;
    background: #E8EEF4;
}

.campaign-progress-fill {
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #0878D1, #36B6E8);
    transition: width 1s ease;
}

.campaign-money {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    margin-top: 16px;
    margin-bottom: 16px;
}

    .campaign-money div {
        display: flex;
        flex-direction: column;
        min-width: 0;
    }

    .campaign-money strong {
        color: var(--home-text);
        font-size: 12px;
        overflow-wrap: anywhere;
    }

    .campaign-money span {
        margin-top: 4px;
        color: #8795A5;
        font-size: 10px;
    }

    .campaign-money .campaign-target {
        text-align: right;
    }

.campaign-detail-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    min-height: 41px;
    margin-top: auto;
    border: 1px solid #D7E9F8;
    border-radius: 9px;
    background: #F1F8FF;
    color: var(--home-primary) !important;
    font-size: 12px;
    font-weight: 800;
}

    .campaign-detail-btn:hover {
        border-color: var(--home-primary);
        background: var(--home-primary);
        color: #FFFFFF !important;
    }

.home-empty-state {
    padding: 60px 20px;
    border: 1px dashed #C8D9E8;
    border-radius: 18px;
    background: #FFFFFF;
    text-align: center;
}

.empty-icon {
    margin-bottom: 15px;
    color: var(--home-primary);
    font-size: 45px;
}

.home-empty-state h3 {
    font-size: 21px;
    font-weight: 800;
}

.home-empty-state p {
    margin-bottom: 22px;
    color: var(--home-muted);
}

/* =========================================================
   5. IMPACT STATISTICS
========================================================= */

.home-impact-section {
    position: relative;
    padding: 90px 0;
    overflow: hidden;
    background: linear-gradient(120deg, #075A9E, #0878D1);
}

    .home-impact-section::before,
    .home-impact-section::after {
        position: absolute;
        width: 350px;
        height: 350px;
        border: 1px solid rgba(255,255,255,.12);
        border-radius: 50%;
        content: "";
    }

    .home-impact-section::before {
        top: -180px;
        left: -120px;
    }

    .home-impact-section::after {
        right: -120px;
        bottom: -220px;
    }

.impact-heading {
    position: relative;
    z-index: 1;
    margin-bottom: 42px;
    text-align: center;
}

.impact-eyebrow {
    color: #A9DCFF;
}

.impact-heading h2 {
    max-width: 700px;
    margin: 0 auto;
    color: #FFFFFF;
    font-size: clamp(29px, 3vw, 38px);
    font-weight: 850;
    line-height: 1.35;
}

    .impact-heading h2 span {
        color: #A9DCFF;
    }

.impact-heading p {
    max-width: 570px;
    margin: 13px auto 0;
    color: #D5E9F8;
    font-size: 14px;
    line-height: 1.8;
}

.impact-grid {
    position: relative;
    z-index: 1;
}

.impact-card {
    height: 100%;
    padding: 28px 15px;
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 16px;
    background: rgba(255,255,255,.09);
    text-align: center;
    transition: all .3s ease;
}

    .impact-card:hover {
        transform: translateY(-7px);
        background: rgba(255,255,255,.16);
    }

.impact-icon {
    margin-bottom: 9px;
    color: #BDE4FF;
    font-size: 26px;
}

.impact-number {
    color: #FFFFFF;
    font-size: clamp(25px, 3vw, 35px);
    font-weight: 850;
    line-height: 1.3;
}

.impact-card p {
    margin: 10px 0 0;
    color: #D5E9F8;
    font-size: 12px;
}

.impact-note {
    position: relative;
    z-index: 1;
    margin: 23px 0 0;
    color: #C4DFF2;
    font-size: 11px;
    text-align: center;
}

/* =========================================================
   6. HOW IT WORKS
========================================================= */

.home-process-section {
    padding: 90px 0;
    background: #FFFFFF;
}

.process-heading {
    margin-bottom: 42px;
}

.process-card {
    position: relative;
    height: 100%;
    padding: 32px 25px;
    overflow: hidden;
    border: 1px solid var(--home-border);
    border-radius: 17px;
    background: #FFFFFF;
    box-shadow: 0 5px 18px rgba(20,50,80,.035);
    transition: all .3s ease;
}

    .process-card:hover {
        transform: translateY(-7px);
        border-color: #B9DDF7;
        box-shadow: 0 15px 35px rgba(20,50,80,.09);
    }

.process-number {
    position: absolute;
    top: 15px;
    right: 20px;
    color: #EDF3F9;
    font-size: 48px;
    font-weight: 900;
}

.process-icon {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    margin-bottom: 22px;
    border-radius: 16px;
    background: #EAF5FF;
    color: var(--home-primary);
    font-size: 29px;
}

.process-card:nth-child(2) .process-icon {
    background: #E9F8F0;
    color: var(--home-green);
}

.process-card h3 {
    margin-bottom: 11px;
    color: var(--home-text);
    font-size: 19px;
    font-weight: 800;
}

.process-card p {
    margin: 0;
    color: var(--home-muted);
    font-size: 13px;
    line-height: 1.8;
}

/* =========================================================
   7. ABOUT CHARITY
========================================================= */

.home-about-section {
    padding: 85px 0;
    background: #F6FAFE;
}

.about-image-wrap {
    position: relative;
    padding: 0 25px 25px 0;
}

    .about-image-wrap img {
        display: block;
        width: 100%;
        height: 420px;
        border-radius: 22px;
        object-fit: cover;
        box-shadow: 0 15px 35px rgba(20,50,80,.13);
    }

.about-image-label {
    position: absolute;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px 20px;
    border-radius: 13px;
    background: #FFFFFF;
    color: var(--home-text);
    font-size: 11px;
    font-weight: 800;
    box-shadow: 0 8px 24px rgba(20,50,80,.12);
}

    .about-image-label span {
        color: var(--home-primary);
        font-size: 20px;
    }

.about-content h2 {
    margin: 0 0 20px;
    color: var(--home-text);
    font-size: clamp(29px, 3vw, 39px);
    font-weight: 850;
    line-height: 1.3;
}

    .about-content h2 span {
        color: var(--home-primary);
    }

.about-content > p {
    margin-bottom: 13px;
    color: var(--home-muted);
    font-size: 14px;
    line-height: 1.9;
}

.about-highlight {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-top: 20px;
}

.about-check {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 27px;
    height: 27px;
    border-radius: 50%;
    background: #E5F7EE;
    color: var(--home-green);
    font-size: 14px;
    font-weight: 800;
}

.about-highlight strong {
    display: block;
    color: var(--home-text);
    font-size: 13px;
}

.about-highlight p {
    margin: 4px 0 0;
    color: var(--home-muted);
    font-size: 12px;
}

.about-button {
    margin-top: 25px;
}

/* =========================================================
   8. CALL TO ACTION
========================================================= */

.home-cta-section {
    padding: 85px 0 95px;
    background: #FFFFFF;
}

.home-cta-box {
    position: relative;
    overflow: hidden;
    padding: 65px 30px;
    border-radius: 25px;
    background: linear-gradient(115deg, #075A9E, #0878D1 65%, #1699DB);
    text-align: center;
    box-shadow: 0 18px 45px rgba(8,120,209,.19);
}

.cta-decoration {
    position: absolute;
    width: 240px;
    height: 240px;
    border: 1px solid rgba(255,255,255,.15);
    border-radius: 50%;
}

.cta-decoration-one {
    top: -140px;
    left: -65px;
}

.cta-decoration-two {
    right: -90px;
    bottom: -160px;
    width: 310px;
    height: 310px;
}

.cta-content {
    position: relative;
    z-index: 1;
    max-width: 700px;
    margin: 0 auto;
}

.cta-eyebrow {
    color: #B9E3FF;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 2px;
}

.cta-content h2 {
    margin: 18px 0 14px;
    color: #FFFFFF;
    font-size: clamp(28px, 4vw, 43px);
    font-weight: 850;
    line-height: 1.3;
}

.cta-content p {
    max-width: 550px;
    margin: 0 auto 26px;
    color: #D7ECFA;
    font-size: 14px;
    line-height: 1.8;
}

.home-btn-white {
    background: #FFFFFF;
    color: var(--home-primary-dark) !important;
}

    .home-btn-white:hover {
        background: #E9F5FF;
        transform: translateY(-3px);
        box-shadow: 0 8px 20px rgba(0,0,0,.12);
    }

/* =========================================================
   9. REVEAL ANIMATION
========================================================= */

.charity-home .reveal {
    opacity: 0;
    transform: translateY(25px);
    transition: opacity .7s ease, transform .7s ease;
}

    .charity-home .reveal.is-visible {
        opacity: 1;
        transform: translateY(0);
    }

/* =========================================================
   10. RESPONSIVE TABLET
========================================================= */

@media (max-width: 991.98px) {

    .home-hero {
        padding: 60px 0;
    }

    .hero-content {
        padding-right: 0;
    }

    .hero-visual {
        max-width: 650px;
        margin: 0 auto;
    }

    .hero-image-main {
        height: 390px;
    }

    .hero-floating-card {
        left: 10px;
    }

    .home-campaign-section,
    .home-process-section,
    .home-about-section {
        padding: 70px 0;
    }

    .home-impact-section {
        padding: 75px 0;
    }

    .about-image-wrap img {
        height: 370px;
    }
}

/* =========================================================
   11. RESPONSIVE MOBILE
========================================================= */

@media (max-width: 767.98px) {

    .home-container {
        width: min(100% - 30px, 1200px);
    }

    .home-hero {
        padding: 48px 0 55px;
    }

    .hero-content h1 {
        font-size: 39px;
        letter-spacing: -1px;
    }

    .hero-description {
        font-size: 14px;
    }

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .home-btn {
        width: 100%;
    }

    .hero-image-main {
        height: 310px;
        border-radius: 19px;
    }

    .hero-floating-card {
        bottom: 40px;
        left: 0;
        padding: 12px;
    }

    .home-trust-section {
        padding: 25px 0;
    }

    .trust-item {
        padding: 8px 0;
    }

    .section-heading-wrap {
        align-items: flex-start;
        flex-direction: column;
        gap: 12px;
        margin-bottom: 28px;
    }

    .home-campaign-section,
    .home-process-section,
    .home-about-section {
        padding: 60px 0;
    }

    .home-impact-section {
        padding: 65px 0;
    }

    .impact-card {
        padding: 23px 8px;
    }

    .about-image-wrap img {
        height: 310px;
    }

    .home-cta-section {
        padding: 55px 0 65px;
    }

    .home-cta-box {
        padding: 48px 20px;
        border-radius: 19px;
    }
}

@media (max-width: 400px) {

    .hero-content h1 {
        font-size: 34px;
    }

    .hero-label {
        font-size: 9px;
        letter-spacing: .7px;
    }

    .campaign-image-wrap {
        height: 180px;
    }

    .impact-number {
        font-size: 25px;
    }
}

/* =========================================================
   12. ACCESSIBILITY
========================================================= */

@media (prefers-reduced-motion: reduce) {

    .charity-home .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .charity-home *,
    .charity-home *::before,
    .charity-home *::after {
        scroll-behavior: auto !important;
        animation-duration: .01ms !important;
        transition-duration: .01ms !important;
    }
}
