h1,
h2,
h3,
h4,
h5,
h6,
.heading-font,
.section-title,
.featured-title,
.campaign-title,
.btn,
/* Buttons look stronger in Poppins */
button,
.raised,
/* Money amounts look better in Poppins */
.campaign-count,
/* "12 Campaigns" text */
.featured-badge,
.pagination-number {
    font-family: "Poppins", sans-serif;
    /* Poppins looks best with slightly tighter tracking */
    letter-spacing: -0.01em;
}

/* 2. Secondary Font: Lato (Body text, inputs, small UI) */
body,
p,
a,
li,
span,
input,
select,
textarea,
label,
.body-font,
.section-desc,
.featured-desc,
.filters-label,
.goal,
/* "of $10,000" text */
.pagination-info {
    font-family: "Lato", sans-serif;
    /* Lato is very legible but sometimes needs 400 or 500 weight */
    font-weight: 400;
    text-decoration: none;
}

/* =================== SPECIFIC WEIGHT TWEAKS =================== */

/* Ensure titles are bold enough */
.section-title,
.campaign-title,
.featured-title {
    font-weight: 700;
    color: #1e293b;
    /* Dark slate for high contrast */
}

/* Ensure body text isn't too thin */
p {
    line-height: 1.6;
    /* Lato reads better with more breathing room */
}

/* Make buttons bold */
.btn {
    font-weight: 600;
}

/* Fix for input placeholders looking too light */
input::placeholder {
    font-family: "Lato", sans-serif;
    font-weight: 400;
}

/* ------------------------------
           Global page gutters (EXCEPT header & footer)
        ------------------------------ */
:root {
    --page-gutter: clamp(14px, 4vw, 28px);
    --content-max: 1200px;
    --header-h: 56px;
    /* will be updated by JS */
}

/* Everything inside <main> gets comfy left/right spacing */
main.page-wrap {
    width: 100%;
}

main.page-wrap>* {
    padding-left: var(--page-gutter);
    padding-right: var(--page-gutter);
}

/* Keep content nicely centered when a section uses full-width blocks */
.constrain {
    max-width: var(--content-max);
    margin-inline: auto;
    width: 100%;
}

/* ------------------------------
           Hero Section Styles
        ------------------------------ */
.hero-section {
    position: relative;
    min-height: 600px;
    display: flex;
    align-items: stretch;
    justify-content: center;
}

.image-container {
    position: absolute;
    inset: 0;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
}

.overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(93, 80, 156, 0.7);
}

.content {
    position: absolute;
    inset: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: center;
}

.text-container {
    max-width: 40rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 340px;
    text-align: center;
    padding-left: var(--page-gutter);
    padding-right: var(--page-gutter);
}

.title {
    font-size: clamp(28px, 6vw, 55px);
    color: #fff;
    font-weight: bold;
}

.description {
    font-size: clamp(15px, 2.5vw, 20px);
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
}

.button-group {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.donate-btn,
.learn-btn {
    padding: .75rem 1.5rem;
    font-size: 15px;
    font-weight: 1000;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color .3s;
}

.donate-btn {
    background: #fff;
    color: #4f46e5;
    border: none;
    margin-bottom: 10px;
}

.donate-btn:hover {
    background: #f3f4f6;
}

.learn-btn {
    border: 2px solid #fff;
    color: #fff;
    background: transparent;
}

.learn-btn:hover {
    background: rgba(255, 255, 255, .1);
}

@media (max-width: 700px) {
    .hero-section {
        min-height: 520px;
    }
}

/* ------------------------------
           Impact statistics
        ------------------------------ */
.impact-statistics {
    padding: 3rem 0;
    background: #fff;
}

.container {
    width: 100%;
    padding: 0 1rem;
    max-width: var(--content-max);
    margin: 0 auto;
}

.grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 2rem;
}

.stat-card {
    display: flex;
    align-items: center;
    background: #f9fafb;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, .1), 0 10px 10px -5px rgba(0, 0, 0, .04);
}

.icon-container {
    width: 4rem;
    height: 4rem;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #e0f2fe;
    border-radius: 50%;
    margin-right: 1rem;
}

.icon {
    font-size: 2rem;
    color: #0369a1;
}

.stat-text {
    flex: 1;
}

.stat-number {
    font-size: clamp(22px, 4vw, 32px);
    font-weight: bold;
    color: #1f2937;
}

.stat-description {
    color: #4b5563;
    font-size: clamp(13px, 2.4vw, 16px);
    margin-top: .5rem;
}

@media (max-width: 1000px) {
    .grid {
        grid-template-columns: 1fr 1fr;
        gap: 1.25rem;
    }
}

@media (max-width: 640px) {
    .grid {
        grid-template-columns: 1fr;
    }

    .container {
        padding-left: 0;
        padding-right: 0;
    }
}

/* ------------------------------
           Donation categories
        ------------------------------ */
.donation-categories-v2 {
    padding: 3rem 0;
    background: #fff;
}

.section-header {
    text-align: center;
    margin-bottom: 2rem;
}

.section-title {
    font-size: clamp(22px, 4.6vw, 32px);
    font-weight: bold;
    margin-bottom: .7rem;
    color: #1a1a1a;
}

.section-description {
    font-size: clamp(14px, 2.5vw, 17px);
    color: #444;
    margin-bottom: 2.5rem;
}

.category-grid-v2 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.category-card-v2 {
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 2px 12px 0 rgba(44, 37, 57, .07);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    min-height: 290px;
    transition: box-shadow .2s, transform .2s;
    border: 1px solid #f0f0f0;
}

.category-card-v2:hover {
    box-shadow: 0 8px 32px 0 rgba(44, 37, 57, .13);
    transform: translateY(-2px);
}

.icon-circle {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.7rem;
    margin-bottom: 1.1rem;
    background: #f5f5f5;
}

.icon-circle.red {
    background: #fee2e2;
    color: #ef4444;
}

.icon-circle.blue {
    background: #dbeafe;
    color: #2563eb;
}

.icon-circle.yellow {
    background: #fef9c3;
    color: #eab308;
}

.icon-circle.green {
    background: #d1fae5;
    color: #10b981;
}

.icon-circle.purple {
    background: #ede9fe;
    color: #8b5cf6;
}

.icon-circle.indigo {
    background: #e0e7ff;
    color: #6366f1;
}

.category-title-v2 {
    font-size: 1.13rem;
    font-weight: bold;
    color: #222;
    margin-bottom: .7rem;
}

.category-desc-v2 {
    color: #444;
    font-size: .98rem;
    margin-bottom: 1.2rem;
}

.needs-box {
    border-radius: 12px;
    padding: .8rem 1rem;
    margin-top: .5rem;
    margin-bottom: .2rem;
    font-size: .97rem;
}

.needs-title-v2 {
    font-weight: bold;
    margin-bottom: .7rem;
    font-size: 1rem;
}

.needs-box ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.needs-box li {
    display: flex;
    align-items: center;
    margin-bottom: .4rem;
    font-size: .97rem;
    color: #333;
}

.ri-checkbox-circle-fill {
    margin-right: .5rem;
    font-size: 1.1rem;
}

.red-bg {
    background: #fee2e2;
}

.blue-bg {
    background: #dbeafe;
}

.yellow-bg {
    background: #fef9c3;
}

.green-bg {
    background: #d1fae5;
}

.purple-bg {
    background: #ede9fe;
}

.indigo-bg {
    background: #e0e7ff;
}

.red {
    color: #ef4444;
}

.blue {
    color: #2563eb;
}

.yellow {
    color: #eab308;
}

.green {
    color: #10b981;
}

.purple {
    color: #8b5cf6;
}

.indigo {
    color: #6366f1;
}

@media (max-width:1100px) {
    .category-grid-v2 {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width:700px) {
    .category-grid-v2 {
        grid-template-columns: 1fr;
    }

    .category-card-v2 {
        min-height: 0;
    }
}

/* ------------------------------
           Centered Header (already responsive)
        ------------------------------ */
.centered-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 180px;
    text-align: center;
}

.centered-header .section-title {
    margin-bottom: 1.1rem;
}

.centered-header .section-description {
    margin-bottom: 0;
}

/* Reduce spacing for section header in mobile view */
@media (max-width: 700px) {
    .donation-categories-v2 {
        padding-top: 1.2rem;
        padding-bottom: 1.2rem;
    }

    .centered-header {
        min-height: 80px;
        margin-bottom: 0.7rem;
    }

    .centered-header .section-title {
        font-size: 1.3rem;
        margin-bottom: 0.5rem;
    }

    .centered-header .section-description {
        font-size: 0.98rem;
        margin-bottom: 0.2rem;
        margin-top: 0.2rem;
    }
}