/* Index page — rich section styling (below hero) */

/* ─── Shared section utilities ─── */
.home-section {
    padding: 4.5rem 0;
    position: relative;
    overflow: hidden;
}

.home-section-alt { background: var(--bg-subtle); }
.home-section-white { background: var(--bg-white); }
.home-section-dark {
    background: linear-gradient(135deg, #0f766e 0%, #0d9488 100%);
    color: #fff;
}

.section-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--primary-color);
    margin-bottom: 0.75rem;
}

.section-eyebrow::before {
    content: '';
    width: 24px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 2px;
}

.section-title {
    font-size: clamp(1.65rem, 3.5vw, 2.25rem);
    font-weight: 800;
    color: var(--neutral-dark);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.section-lead {
    font-size: 1.05rem;
    color: var(--text-muted);
    max-width: 560px;
    line-height: 1.7;
}

.home-section-dark .section-title { color: #fff; }
.home-section-dark .section-lead { color: rgba(255,255,255,0.75); }

/* Decorative blobs */
.section-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.35;
    pointer-events: none;
    z-index: 0;
}
.section-blob.green { background: var(--primary-color); width: 320px; height: 320px; }
.section-blob.orange { background: var(--secondary-color); width: 260px; height: 260px; }
.home-section .container { position: relative; z-index: 1; }

/* ─── About ─── */
.about-image-layout {
    position: relative;
    height: 420px;
    width: 100%;
}

.about-img-main {
    width: 78%;
    height: 340px;
    object-fit: cover;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
}

.about-img-overlay {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 52%;
    height: 220px;
    object-fit: cover;
    border-radius: var(--radius-lg);
    border: 5px solid #fff;
    box-shadow: var(--shadow-md);
}

.about-float-stat {
    position: absolute;
    top: 1.5rem;
    right: 0;
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 1rem 1.25rem;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-light);
    text-align: center;
    min-width: 130px;
}

.about-float-stat strong {
    display: block;
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--primary-color);
    line-height: 1;
}

.about-float-stat span {
    font-size: 0.75rem;
    color: var(--text-light);
    font-weight: 600;
}

.about-feature-card {
    display: flex;
    gap: 1rem;
    padding: 1.15rem 1.25rem;
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    transition: all var(--transition);
}

.about-feature-card:hover {
    border-color: rgba(61, 140, 64, 0.3);
    box-shadow: var(--shadow-sm);
    transform: translateX(4px);
}

.about-feature-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, var(--primary-wash), rgba(61, 140, 64, 0.18));
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

/* ─── Services ─── */
.service-card {
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-xl);
    padding: 2rem 1.75rem;
    height: 100%;
    position: relative;
    overflow: hidden;
    transition: all var(--transition);
    box-shadow: var(--shadow-xs);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    opacity: 0;
    transition: opacity var(--transition);
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
    border-color: rgba(61, 140, 64, 0.2);
}

.service-card:hover::before { opacity: 1; }

.service-card-icon {
    width: 64px;
    height: 64px;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, var(--primary-color), #2d6b30);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    margin-bottom: 1.25rem;
    box-shadow: var(--shadow-primary);
}

.col-md-4:nth-child(2) .service-card-icon {
    background: linear-gradient(135deg, #dc2626, #f97316);
    box-shadow: 0 8px 24px rgba(220, 38, 38, 0.25);
}

.col-md-4:nth-child(3) .service-card-icon {
    background: linear-gradient(135deg, var(--secondary-color), #d97d00);
    box-shadow: 0 8px 24px rgba(241, 143, 1, 0.25);
}

.service-card h5 {
    font-size: 1.1rem;
    margin-bottom: 0.65rem;
}

/* ─── Campaigns area v2 ─── */
.campaigns-section-v2 {
    background: var(--bg-subtle);
    padding-bottom: 4.5rem;
}

.campaigns-hero-band {
    background: linear-gradient(135deg, #0f766e 0%, #0d9488 45%, #115e59 100%);
    padding: 3rem 0 2.5rem;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
}

.campaigns-hero-band::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color), var(--primary-color));
}

.campaigns-hero-band::before {
    content: '';
    position: absolute;
    top: -40%;
    right: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(61, 140, 64, 0.25), transparent 70%);
    pointer-events: none;
}

.campaigns-label {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 0.5rem;
}

.campaigns-heading {
    font-family: var(--font-heading);
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 800;
    color: #fff !important;
    margin-bottom: 0.75rem;
    line-height: 1.15;
}

.campaigns-subtitle {
    color: rgba(255, 255, 255, 0.75);
    font-size: 1rem;
    max-width: 520px;
    margin: 0;
    line-height: 1.65;
}

.campaigns-stat-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
}

.campaigns-stat-box {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-lg);
    padding: 1rem 0.75rem;
    text-align: center;
    backdrop-filter: blur(8px);
}

.campaigns-stat-box strong {
    display: block;
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 800;
    color: #fff;
    line-height: 1.2;
}

.campaigns-stat-box span {
    font-size: 0.68rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: rgba(255, 255, 255, 0.55);
}

.campaigns-body { margin-top: -0.5rem; }

.campaign-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.75rem;
    background: #fff;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-xl);
    padding: 0.85rem 1.25rem;
    box-shadow: var(--shadow-xs);
}

.campaign-filter-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.filter-chip {
    border: 1.5px solid var(--border-light);
    background: var(--bg-subtle);
    color: var(--text-muted);
    font-size: 0.8rem;
    font-weight: 700;
    padding: 0.45rem 1rem;
    border-radius: var(--radius-pill);
    cursor: pointer;
    transition: all var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.filter-chip:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background: var(--primary-wash);
}

.filter-chip.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
    box-shadow: var(--shadow-primary);
}

.campaign-toolbar-search {
    align-items: center;
    gap: 0.5rem;
    background: var(--bg-subtle);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-pill);
    padding: 0.35rem 1rem;
    min-width: 220px;
}

.campaign-toolbar-search i { color: var(--text-light); font-size: 0.85rem; }

.campaign-toolbar-search input {
    border: none;
    background: transparent;
    font-size: 0.85rem;
    padding: 0.25rem 0;
    box-shadow: none !important;
}

.campaign-toolbar-search input:focus { outline: none; }

/* Featured drive card */
.drive-featured {
    background: #fff;
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-light);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-md);
    transition: all var(--transition);
}

@media (min-width: 768px) {
    .drive-featured { flex-direction: row; min-height: 280px; }
}

.drive-featured:hover {
    box-shadow: var(--shadow-lg);
    border-color: rgba(61, 140, 64, 0.25);
}

.drive-featured-img {
    position: relative;
    flex: 0 0 100%;
    height: 220px;
    overflow: hidden;
}

@media (min-width: 768px) {
    .drive-featured-img { flex: 0 0 45%; height: auto; min-height: 280px; }
}

.drive-featured-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.drive-featured:hover .drive-featured-img img { transform: scale(1.05); }

.drive-featured-img .featured-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: linear-gradient(135deg, var(--secondary-color), #d97706);
    color: #fff;
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 0.35rem 0.85rem;
    border-radius: var(--radius-pill);
    box-shadow: 0 4px 12px rgba(241, 143, 1, 0.4);
}

.drive-featured-img .img-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(31, 28, 26, 0.5) 0%, transparent 50%);
}

.drive-featured-body {
    flex: 1;
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
}

/* Standard drive card */
.drive-card {
    background: #fff;
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-light);
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition);
    position: relative;
}

.drive-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(61, 140, 64, 0.2);
}

.drive-card-img {
    position: relative;
    height: 190px;
    overflow: hidden;
}

.drive-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.drive-card:hover .drive-card-img img { transform: scale(1.07); }

.drive-cat-tag {
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 0.35rem 0.8rem;
    border-radius: var(--radius-pill);
    color: #fff !important;
    backdrop-filter: blur(8px);
    display: inline-block;
}

.drive-card-img .drive-cat-tag {
    position: absolute;
    top: 12px;
    left: 12px;
}

.drive-cat-tag.water { background: rgba(37, 99, 235, 0.85); }
.drive-cat-tag.edu { background: rgba(61, 140, 64, 0.85); }
.drive-cat-tag.eco { background: rgba(22, 163, 74, 0.85); }
.drive-cat-tag.default { background: rgba(31, 28, 26, 0.75); }

.drive-progress-ring {
    position: absolute;
    bottom: 12px;
    right: 12px;
    width: 52px;
    height: 52px;
    background: #fff;
    border-radius: 50%;
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 800;
    color: var(--primary-color);
}

.drive-card-body {
    padding: 1.35rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.drive-card-title {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--neutral-dark);
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.drive-card-desc {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex-grow: 1;
}

.drive-funding-bar {
    margin-bottom: 0.75rem;
}

.drive-funding-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.78rem;
    margin-bottom: 0.4rem;
}

.drive-funding-meta strong { color: var(--neutral-dark); }

.drive-card-footer {
    display: flex;
    gap: 0.5rem;
    margin-top: auto;
    padding-top: 0.5rem;
    border-top: 1px solid var(--border-light);
}

.drive-card-footer .btn { flex: 1; font-size: 0.8rem; font-weight: 700; padding: 0.55rem; }

.drive-donors-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    color: var(--text-light);
    margin-bottom: 0.75rem;
}

.drive-avatar-stack {
    display: flex;
}

.drive-avatar-stack span {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--primary-wash);
    color: var(--primary-color);
    font-size: 0.55rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #fff;
    margin-left: -8px;
}

.drive-avatar-stack span:first-child { margin-left: 0; }

.campaigns-empty {
    text-align: center;
    padding: 3rem 2rem;
    background: #fff;
    border-radius: var(--radius-xl);
    border: 2px dashed var(--border-light);
    color: var(--text-muted);
}

.campaigns-loading .campaigns-skeleton {
    height: 280px;
    background: linear-gradient(90deg, #eeede9 25%, #f7f6f3 50%, #eeede9 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: var(--radius-xl);
    margin-bottom: 1rem;
}

@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Sidebar v2 */
.campaigns-sidebar-sticky {
    position: sticky;
    top: 80px;
}

.campaigns-sidebar-card {
    background: #fff;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-xl);
    padding: 1.35rem;
    margin-bottom: 1rem;
    box-shadow: var(--shadow-xs);
}

.campaigns-sidebar-head {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 800;
    font-size: 0.9rem;
    color: var(--neutral-dark);
    margin-bottom: 1rem;
}

.campaigns-sidebar-head i { color: var(--primary-color); }

.ledger-live-badge {
    margin-left: auto;
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    color: #16a34a;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background: #22c55e;
    border-radius: 50%;
    animation: pulse 1.5s infinite;
}

.category-list-v2 { display: flex; flex-direction: column; gap: 0.5rem; }

.category-row-v2 {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    width: 100%;
    border: 1px solid var(--border-light);
    background: var(--bg-subtle);
    border-radius: var(--radius-md);
    padding: 0.75rem 1rem;
    cursor: pointer;
    transition: all var(--transition);
    text-align: left;
}

.category-row-v2:hover,
.category-row-v2.active {
    background: var(--primary-wash);
    border-color: rgba(61, 140, 64, 0.3);
}

.cat-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}

.cat-icon.water { background: rgba(59, 130, 246, 0.12); color: #2563eb; }
.cat-icon.edu { background: var(--primary-wash); color: var(--primary-color); }
.cat-icon.eco { background: rgba(34, 197, 94, 0.12); color: #16a34a; }

.cat-info { flex: 1; display: flex; flex-direction: column; }
.cat-info strong { font-size: 0.85rem; color: var(--neutral-dark); }
.cat-info small { font-size: 0.72rem; color: var(--text-light); }

.cat-count {
    background: #fff;
    border: 1px solid var(--border-light);
    padding: 0.2rem 0.55rem;
    border-radius: var(--radius-pill);
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--neutral-dark);
}

.ledger-card-v2 { background: linear-gradient(180deg, #fff 0%, var(--bg-subtle) 100%); }

.ledger-row-v2 {
    display: flex;
    gap: 0.85rem;
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--border-light);
}

.ledger-row-v2:last-child { border-bottom: none; padding-bottom: 0; }

.ledger-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    flex-shrink: 0;
}

.ledger-icon.success { background: rgba(34, 197, 94, 0.12); color: #16a34a; }

.ledger-amount-v2 {
    font-weight: 800;
    color: var(--primary-color);
    font-size: 0.95rem;
}

.ledger-code {
    font-size: 0.65rem;
    background: var(--bg-subtle);
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
    color: var(--text-light);
}

.ledger-time { font-size: 0.7rem; color: var(--text-light); margin-top: 0.15rem; }

@media (max-width: 991.98px) {
    .campaigns-sidebar-sticky { position: static; }
    .campaigns-stat-row { margin-top: 0.5rem; }
}

@media (max-width: 575.98px) {
    .campaigns-stat-row { grid-template-columns: 1fr; }
    .campaign-toolbar { flex-direction: column; align-items: stretch; }
    .campaign-filter-chips { justify-content: center; }
}

/* Legacy aliases */
.campaigns-section { background: linear-gradient(180deg, var(--bg-light) 0%, var(--bg-white) 100%); }

.campaign-home-card {
    background: #fff;
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-light);
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition);
}

.campaign-home-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.campaign-home-card .card-img-wrap {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.campaign-home-card .card-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.campaign-home-card:hover .card-img-wrap img { transform: scale(1.06); }

.campaign-home-card .card-img-wrap .urgency-tag {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(31, 28, 26, 0.75);
    backdrop-filter: blur(8px);
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 0.3rem 0.65rem;
    border-radius: var(--radius-pill);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.campaign-home-card .card-body-inner { padding: 1.35rem; flex: 1; display: flex; flex-direction: column; }

.sidebar-panel {
    background: #fff;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-xl);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    margin-bottom: 1.25rem;
}

.sidebar-panel-title {
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--neutral-dark);
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--bg-subtle);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.sidebar-panel-title i { color: var(--primary-color); }

.category-pill {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-md);
    background: var(--bg-subtle);
    margin-bottom: 0.5rem;
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.875rem;
    transition: all var(--transition);
}

.category-pill:hover {
    background: var(--primary-wash);
    color: var(--primary-color);
    transform: translateX(3px);
}

.category-pill .count {
    background: #fff;
    border: 1px solid var(--border-light);
    padding: 0.15rem 0.55rem;
    border-radius: var(--radius-pill);
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--neutral-dark);
}

.ledger-item {
    display: flex;
    gap: 0.85rem;
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--border-light);
}

.ledger-item:last-child { border-bottom: none; padding-bottom: 0; }

.ledger-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--primary-color);
    margin-top: 6px;
    flex-shrink: 0;
    box-shadow: 0 0 0 3px var(--primary-wash);
}

.ledger-amount {
    font-weight: 800;
    color: var(--primary-color);
    font-size: 0.9rem;
}

/* ─── Impact calculator ─── */
.impact-panel {
    background: linear-gradient(145deg, #fff 0%, var(--bg-subtle) 100%);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-xl);
    padding: 2rem;
    box-shadow: var(--shadow-md);
}

.impact-output-card {
    background: var(--neutral-dark);
    border-radius: var(--radius-xl);
    padding: 2rem;
    color: #fff;
    height: 100%;
}

.impact-output-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.impact-output-row:last-child { border-bottom: none; }

.impact-output-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    background: rgba(61, 140, 64, 0.25);
    color: #86efac;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.impact-output-row strong { color: #fff; font-size: 1rem; }

/* ─── Globe map ─── */
.map-region-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.map-region-chip {
    background: #fff;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 0.75rem 1rem;
    text-align: center;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
    transition: all var(--transition);
}

.map-region-chip:hover {
    border-color: var(--primary-color);
    background: var(--primary-wash);
    color: var(--primary-color);
}

.map-region-chip i { display: block; font-size: 1.1rem; margin-bottom: 0.35rem; color: var(--secondary-color); }

/* ─── Sponsor cards ─── */
.sponsor-card {
    border: none;
    border-radius: var(--radius-xl);
    overflow: hidden;
    background: #fff;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition);
    height: 100%;
}

.sponsor-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.sponsor-img { height: 200px; object-fit: cover; width: 100%; }

.sponsor-card-body { padding: 1.5rem; text-align: center; }

.sponsor-price {
    display: inline-block;
    background: var(--primary-wash);
    color: var(--primary-color);
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    padding: 0.35rem 1.25rem;
    border-radius: var(--radius-pill);
    margin: 0.75rem 0 1rem;
}

/* ─── Transparency / budget ─── */
.budget-ring-wrap {
    position: relative;
    width: 160px;
    height: 160px;
    margin: 0 auto 1.5rem;
}

.budget-ring-center {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.budget-ring-center strong {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary-color);
    line-height: 1;
}

.budget-stat-mini {
    background: var(--bg-subtle);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    text-align: center;
    border: 1px solid var(--border-light);
}

.audit-table-wrap {
    border-radius: var(--radius-xl);
    overflow: hidden;
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
}

.audit-table-wrap .table thead th {
    background: var(--neutral-dark);
    color: rgba(255,255,255,0.85);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border: none;
    padding: 1rem;
}

.audit-table-wrap .table tbody td {
    padding: 1rem;
    vertical-align: middle;
    font-size: 0.875rem;
}

.audit-table-wrap .table tbody tr:hover { background: var(--primary-wash); }

/* ─── Partners ─── */
.partner-card {
    background: #fff;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-xl);
    padding: 2rem 1.5rem;
    text-align: center;
    height: 100%;
    transition: all var(--transition);
    position: relative;
}

.partner-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--radius-xl);
    border: 2px solid transparent;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color)) border-box;
    -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity var(--transition);
}

.partner-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.partner-card:hover::after { opacity: 1; }

.partner-card i { font-size: 2.5rem; margin-bottom: 1rem; display: block; }

/* ─── News cards ─── */
.news-card {
    background: #fff;
    border-radius: var(--radius-xl);
    overflow: hidden;
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
    height: 100%;
    transition: all var(--transition);
    display: flex;
    flex-direction: column;
}

.news-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.news-card-img {
    height: 180px;
    object-fit: cover;
    width: 100%;
}

.news-card-body { padding: 1.5rem; flex: 1; display: flex; flex-direction: column; }

.news-tag {
    display: inline-block;
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.3rem 0.75rem;
    border-radius: var(--radius-pill);
    margin-bottom: 0.75rem;
}

.news-tag.water { background: rgba(59, 130, 246, 0.12); color: #2563eb; }
.news-tag.edu { background: rgba(61, 140, 64, 0.12); color: var(--primary-color); }
.news-tag.eco { background: rgba(34, 197, 94, 0.12); color: #16a34a; }

.news-meta {
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid var(--border-light);
    font-size: 0.8rem;
    color: var(--text-light);
}

/* ─── Leaderboard ─── */
.leaderboard-panel {
    background: #fff;
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-light);
    padding: 1.75rem;
    box-shadow: var(--shadow-sm);
}

.leaderboard-rank.gold { color: #f59e0b; }
.leaderboard-rank.silver { color: #94a3b8; }
.leaderboard-rank.bronze { color: #cd7f32; }

.volunteer-rank-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    border-radius: var(--radius-md);
    background: var(--bg-subtle);
    margin-top: 0.75rem;
    transition: background var(--transition);
}

.volunteer-rank-row:hover { background: var(--primary-wash); }

/* ─── Crisis alert ─── */
.crisis-banner {
    background: linear-gradient(135deg, #991b1b 0%, #dc2626 50%, #f97316 100%);
    border-radius: var(--radius-xl);
    padding: 2rem;
    color: #fff;
    box-shadow: 0 12px 40px rgba(220, 38, 38, 0.3);
    position: relative;
    overflow: hidden;
}

.crisis-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 300px;
    height: 300px;
    background: rgba(255,255,255,0.08);
    border-radius: 50%;
}

.crisis-icon-wrap {
    width: 64px;
    height: 64px;
    background: rgba(255,255,255,0.2);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    flex-shrink: 0;
}

/* ─── Security badges ─── */
.security-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.security-badge-card {
    background: var(--bg-subtle);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 1.5rem 1rem;
    text-align: center;
    transition: all var(--transition);
}

.security-badge-card:hover {
    background: #fff;
    border-color: var(--primary-color);
    box-shadow: var(--shadow-sm);
    transform: translateY(-3px);
}

.security-badge-card i {
    font-size: 1.75rem;
    color: var(--primary-color);
    margin-bottom: 0.75rem;
    display: block;
}

.security-badge-card span {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--neutral-dark);
}

/* ─── Roadmap timeline ─── */
.roadmap-timeline {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    position: relative;
    padding-top: 2rem;
}

.roadmap-timeline::before {
    content: '';
    position: absolute;
    top: 2.6rem;
    left: 12%;
    right: 12%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
    z-index: 0;
}

.roadmap-step {
    text-align: center;
    padding: 0 0.75rem;
    position: relative;
    z-index: 1;
}

.roadmap-dot {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--primary-color);
    border: 4px solid #fff;
    box-shadow: 0 0 0 3px var(--primary-wash);
    margin: 0 auto 1.25rem;
}

.roadmap-step.done .roadmap-dot { background: #22c55e; }
.roadmap-step.active .roadmap-dot { background: var(--secondary-color); animation: pulse 2s infinite; }
.roadmap-step.pending .roadmap-dot { background: #94a3b8; }

.roadmap-card {
    background: #fff;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    box-shadow: var(--shadow-xs);
    height: 100%;
    transition: all var(--transition);
}

.roadmap-card:hover {
    box-shadow: var(--shadow-sm);
    border-color: rgba(61, 140, 64, 0.25);
}

.roadmap-label {
    display: inline-block;
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 0.25rem 0.6rem;
    border-radius: var(--radius-pill);
    margin-bottom: 0.65rem;
}

.roadmap-label.done { background: rgba(34, 197, 94, 0.15); color: #16a34a; }
.roadmap-label.active { background: rgba(241, 143, 1, 0.15); color: #d97706; }
.roadmap-label.pending { background: rgba(59, 130, 246, 0.12); color: #2563eb; }
.roadmap-label.plan { background: var(--bg-subtle); color: var(--text-light); }

/* ─── Stats bar ─── */
.stats-bar {
    background: linear-gradient(135deg, #1f1c1a 0%, #2a3d2b 50%, #1f1c1a 100%);
    position: relative;
    overflow: hidden;
}

.stats-bar::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
}

.stat-block {
    text-align: center;
    padding: 1rem;
    position: relative;
    z-index: 1;
}

.stat-block-icon {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: rgba(61, 140, 64, 0.2);
    color: #86efac;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 0.75rem;
    font-size: 1.25rem;
}

.stat-block h2 {
    color: #fff !important;
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    margin-bottom: 0.25rem;
}

.stat-block p {
    color: rgba(255,255,255,0.6);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin: 0;
}

/* ─── CTA volunteer ─── */
.cta-volunteer {
    background:
        linear-gradient(135deg, rgba(31, 28, 26, 0.88) 0%, rgba(45, 74, 46, 0.85) 100%),
        url("https://images.unsplash.com/photo-1488521787991-ed7bbaae773c?auto=format&fit=crop&w=1200&q=80") center/cover no-repeat;
    border-radius: var(--radius-xl);
    padding: 4rem 2rem;
    text-align: center;
    color: #fff;
    margin: 0 1rem;
}

.cta-volunteer h2 { color: #fff !important; margin-bottom: 1rem; }
.cta-volunteer p { color: rgba(255,255,255,0.85); max-width: 520px; margin: 0 auto 1.75rem; }

/* ─── Event cards ─── */
.event-home-card {
    background: #fff;
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-light);
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition);
}

.event-home-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.event-date-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: #fff;
    border-radius: var(--radius-md);
    padding: 0.5rem 0.75rem;
    text-align: center;
    box-shadow: var(--shadow-sm);
    line-height: 1.1;
}

.event-date-badge strong {
    display: block;
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--primary-color);
}

.event-date-badge span {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-light);
}

.event-card-img-wrap {
    position: relative;
    height: 160px;
    overflow: hidden;
}

.event-card-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.event-card-body { padding: 1.5rem; flex: 1; display: flex; flex-direction: column; }

/* ─── Testimonials ─── */
.testimonial-card {
    background: #fff;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-xl);
    padding: 2rem;
    height: 100%;
    position: relative;
    box-shadow: var(--shadow-sm);
}

.testimonial-card::before {
    content: '\201C';
    font-family: Georgia, serif;
    font-size: 4rem;
    line-height: 1;
    color: var(--primary-wash);
    position: absolute;
    top: 0.5rem;
    left: 1.25rem;
    color: rgba(61, 140, 64, 0.2);
}

.testimonial-card .quote-text {
    font-size: 1.05rem;
    line-height: 1.75;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    padding-top: 1.5rem;
    font-style: italic;
}

.testimonial-avatar {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), #2d6b30);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.9rem;
    border: 3px solid var(--primary-wash);
}

/* ─── Gallery ─── */
.gallery-item {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.gallery-img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.gallery-item:hover .gallery-img { transform: scale(1.08); }

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(31, 28, 26, 0.92) 0%, transparent 60%);
    display: flex;
    align-items: flex-end;
    padding: 1.25rem;
    opacity: 1;
    transition: opacity var(--transition);
}

.gallery-overlay h5 {
    color: #fff !important;
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.gallery-cat-pill {
    display: inline-block;
    background: var(--primary-color);
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 0.2rem 0.55rem;
    border-radius: var(--radius-pill);
    text-transform: uppercase;
    margin-bottom: 0.35rem;
}

.text-center .section-eyebrow {
    display: inline-flex;
}

.section-eyebrow.justify-content-center {
    display: inline-flex;
}

.avatar-stack { display: flex; align-items: center; margin-bottom: 1rem; }
.avatar-stack-img {
    width: 40px; height: 40px; border-radius: 50%;
    border: 2px solid #fff; margin-right: -10px;
    object-fit: cover; box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
.video-story-btn {
    position: relative; width: 100px; height: 100px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%; background: #fff;
    border: 1px solid var(--border-light);
    box-shadow: 0 4px 15px rgba(33, 41, 59, 0.05);
    cursor: pointer; transition: all 0.3s ease;
}
.video-story-btn:hover { transform: scale(1.03); border-color: var(--primary-color); }
.video-story-btn i { font-size: 1.2rem; color: var(--primary-color); z-index: 2; }
.video-text-svg { position: absolute; width: 100%; height: 100%; animation: rotateText 15s linear infinite; }
@keyframes rotateText { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }
.video-text-svg text { font-size: 8px; font-weight: 700; fill: var(--neutral-dark); letter-spacing: 2.2px; }
.rating-stars { color: #f59e0b; font-size: 0.9rem; }

/* Responsive */
@media (max-width: 991.98px) {
    .roadmap-timeline {
        grid-template-columns: 1fr 1fr;
        gap: 1.5rem;
    }
    .roadmap-timeline::before { display: none; }
    .about-image-layout { height: 320px; }
    .about-img-main { height: 260px; }
}

@media (max-width: 767.98px) {
    .home-section { padding: 3rem 0; }
    .roadmap-timeline { grid-template-columns: 1fr; }
    .about-float-stat { right: 0.5rem; top: 0.5rem; min-width: 110px; padding: 0.75rem; }
    .cta-volunteer { padding: 2.5rem 1.25rem; margin: 0; border-radius: 0; }
}
