/* ==========================================================================
   IMPACT.CSS - SevaLog Live Community Impact Hub
   Fully responsive across Ultra-wide, Desktop, Tablet & Small Mobile Screens
   ========================================================================== */

/* --- GLOBAL POLISH & SMOOTH ANCHORING --- */
html {
    scroll-behavior: smooth;
}

body {
    overflow-x: hidden;
}

section[id] {
    scroll-margin-top: 80px;
}

/* --- 1. HERO SECTION (DYNAMIC PULSE) --- */
.impact-hero {
    position: relative;
    color: white;
    min-height: 70vh;
    padding: 130px 24px 80px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-image: url('https://images.unsplash.com/photo-1469571486292-0ba58a3f068b?q=80&w=1470&auto=format&fit=crop');
    background-size: cover;
    background-position: center;
    text-align: center;
    border-bottom: 1px solid var(--border-light);
    overflow: hidden;
}

/* Enable smooth parallax on desktop devices with hover support */
@media (hover: hover) and (min-width: 1025px) {
    .impact-hero {
        background-attachment: fixed;
    }
}

.impact-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(15, 23, 42, 0.82) 0%, rgba(11, 15, 25, 0.96) 100%);
    z-index: 1;
}

.impact-hero-content {
    max-width: 860px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
    width: 100%;
}

.hero-header-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.hero-badge-live {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: rgba(37, 99, 235, 0.22);
    color: #93C5FD;
    border: 1px solid rgba(59, 130, 246, 0.4);
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    backdrop-filter: blur(8px);
}

.btn-refresh-live {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.08);
    color: #E2E8F0;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-full);
    font-size: 11.5px;
    font-weight: 600;
    cursor: pointer;
    backdrop-filter: blur(8px);
    transition: all 0.2s ease;
    min-height: 32px;
}

.btn-refresh-live:hover {
    background: rgba(255, 255, 255, 0.16);
    color: #FFFFFF;
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-1px);
}

.btn-refresh-live i {
    width: 13px;
    height: 13px;
    transition: transform 0.4s ease;
}

.live-pulse-dot {
    width: 8px;
    height: 8px;
    background: #10B981;
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    animation: livePulse 2s infinite;
}

@keyframes livePulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.impact-hero h1 {
    font-size: clamp(32px, 5vw, 60px);
    font-weight: 800;
    margin-bottom: 20px;
    color: #F8FAFC;
    line-height: 1.16;
    letter-spacing: -0.025em;
}

.text-gradient-accent {
    background: linear-gradient(135deg, #60A5FA 0%, #38BDF8 50%, #A78BFA 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.impact-hero p {
    font-size: clamp(15px, 2vw, 18px);
    color: #CBD5E1;
    line-height: 1.65;
    max-width: 660px;
    margin: 0 auto 32px;
}

.hero-quick-chips {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.quick-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.16);
    padding: 8px 16px;
    border-radius: var(--radius-full);
    font-size: 13px;
    font-weight: 500;
    color: #E2E8F0;
    text-decoration: none;
    backdrop-filter: blur(10px);
    transition: all 0.2s ease;
}

.quick-chip:hover {
    background: rgba(255, 255, 255, 0.18);
    border-color: #60A5FA;
    color: #FFFFFF;
    transform: translateY(-2px);
}

.quick-chip i {
    width: 15px;
    height: 15px;
    color: #38BDF8;
}

/* --- 2. OVERVIEW METRICS GRID --- */
.impact-metrics {
    padding: 0 24px 60px;
    max-width: var(--max-width);
    margin: -60px auto 0;
    position: relative;
    z-index: 10;
}

.metrics-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.impact-stat-card {
    background: var(--surface);
    padding: 24px 20px;
    border-radius: 16px;
    border: 1px solid var(--border-light);
    box-shadow: 0 16px 32px -10px rgba(15, 23, 42, 0.08);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.impact-stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px -12px rgba(37, 99, 235, 0.14);
}

.card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
}

.stat-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.stat-icon svg, .stat-icon i {
    width: 22px;
    height: 22px;
}

.stat-icon.primary { background: rgba(37, 99, 235, 0.1); color: #2563EB; }
.stat-icon.emerald { background: rgba(16, 185, 129, 0.1); color: #059669; }
.stat-icon.amber { background: rgba(245, 158, 11, 0.1); color: #D97706; }
.stat-icon.purple { background: rgba(139, 92, 246, 0.1); color: #7C3AED; }

.stat-tag {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 3px 8px;
    border-radius: 6px;
    background: var(--bg-surface);
    color: var(--text-muted);
    white-space: nowrap;
}

.stat-tag.highlight {
    background: rgba(16, 185, 129, 0.1);
    color: #059669;
}

.stat-value-group {
    margin-bottom: 6px;
}

.impact-stat-card h3 {
    font-size: clamp(28px, 3.2vw, 36px);
    font-weight: 800;
    color: var(--text-main);
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin: 0;
}

.impact-stat-card p {
    font-size: 13.5px;
    color: var(--text-muted);
    font-weight: 600;
    margin: 4px 0 0;
}

.stat-subtext {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 14px;
    padding-top: 10px;
    border-top: 1px dashed var(--border-light);
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* --- 3. SECTION HEADERS & WRAPPERS --- */
.section-wrapper {
    max-width: var(--max-width);
    margin: 0 auto 90px;
    padding: 0 24px;
}

.section-head {
    text-align: center;
    max-width: 680px;
    margin: 0 auto 44px;
}

.section-head-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 5px 12px;
    border-radius: var(--radius-full);
    background: var(--accent-glow);
    color: var(--accent-primary);
    margin-bottom: 12px;
}

.section-head h2 {
    font-size: clamp(26px, 3.2vw, 38px);
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 12px;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.section-head p {
    font-size: 15.5px;
    color: var(--text-muted);
    line-height: 1.6;
    margin: 0;
}

/* --- 4. HIGHLIGHTS & OPERATIONS MATRIX --- */
.highlights-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.highlight-box {
    background: var(--surface);
    border: 1px solid var(--border-light);
    border-radius: 20px;
    padding: 28px;
    box-shadow: 0 10px 25px -5px rgba(0,0,0,0.03);
}

.highlight-title-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.highlight-title-row h4 {
    font-size: 17px;
    font-weight: 700;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
}

.breakdown-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.breakdown-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.breakdown-label-row {
    display: flex;
    justify-content: space-between;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--text-main);
    gap: 8px;
}

.progress-track {
    width: 100%;
    height: 10px;
    background: var(--bg-surface);
    border-radius: var(--radius-full);
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    border-radius: var(--radius-full);
    transition: width 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

/* --- 5. VOLUNTEER RANK JOURNEY & MILESTONE ROADMAP --- */
.rank-milestone-rail {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--surface);
    border: 1px solid var(--border-light);
    border-radius: 16px;
    padding: 18px 24px;
    margin-bottom: 24px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.02);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
}

.milestone-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    text-align: center;
    flex-shrink: 0;
    min-width: 64px;
}

.milestone-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    box-shadow: 0 0 0 3px var(--surface), 0 0 0 5px var(--border);
}

.milestone-hours {
    font-size: 11px;
    font-weight: 700;
    color: var(--accent-primary);
}

.milestone-name {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-main);
}

.milestone-line {
    flex: 1;
    height: 2px;
    background: var(--border);
    margin: 0 8px;
    min-width: 20px;
}

.rank-journey-container {
    background: var(--surface);
    border: 1px solid var(--border-light);
    border-radius: 24px;
    padding: 36px 32px;
    box-shadow: 0 15px 35px -10px rgba(0,0,0,0.04);
}

.rank-filter-tabs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 12px;
    margin-bottom: 28px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.rank-filter-tabs::-webkit-scrollbar {
    display: none;
}

.rank-tab-btn {
    padding: 8px 16px;
    border-radius: var(--radius-full);
    border: 1px solid var(--border);
    background: var(--bg-surface);
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 38px;
}

.rank-tab-btn:hover {
    color: var(--text-main);
    border-color: var(--accent-primary);
}

.rank-tab-btn.active {
    background: var(--accent-primary);
    color: white;
    border-color: var(--accent-primary);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}

.ranks-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    gap: 16px;
}

.rank-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-light);
    border-radius: 16px;
    padding: 20px;
    transition: all 0.25s ease;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.rank-card:hover {
    transform: translateY(-3px);
    border-color: var(--card-accent, #3B82F6);
    box-shadow: 0 10px 20px -5px rgba(0,0,0,0.05);
}

.rank-badge-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
    color: white;
}

.rank-badge-icon svg, .rank-badge-icon i {
    width: 22px;
    height: 22px;
}

.rank-name {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 4px;
}

.rank-criteria {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 14px;
}

.rank-volunteer-count {
    margin-top: auto;
    width: 100%;
    padding-top: 10px;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: var(--text-muted);
}

.rank-volunteer-count strong {
    font-size: 14px;
    color: var(--text-main);
}

/* --- 6. CATEGORY IMPACT SECTION --- */
.category-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
}

.category-impact-card {
    background: var(--surface);
    border: 1px solid var(--border-light);
    border-radius: 18px;
    padding: 24px;
    box-shadow: 0 10px 25px -8px rgba(0,0,0,0.04);
    transition: transform 0.25s ease;
    position: relative;
    overflow: hidden;
}

.category-impact-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 28px -10px rgba(0,0,0,0.08);
}

.cat-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.cat-icon-circle {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: var(--accent-glow);
    color: var(--accent-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.cat-icon-circle svg, .cat-icon-circle i {
    width: 20px;
    height: 20px;
}

.cat-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-main);
    margin: 0;
}

.cat-stats-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    padding: 12px 0;
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
    margin-bottom: 12px;
}

.cat-stat-mini span {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 600;
    display: block;
    text-transform: uppercase;
}

.cat-stat-mini strong {
    font-size: 18px;
    color: var(--text-main);
    font-weight: 800;
}

/* --- 7. STUDENT GROWTH EDITORIAL (ZIGZAG) --- */
.student-opportunities {
    padding: 80px 24px;
    background: var(--bg-surface);
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
}

.zigzag-row {
    max-width: 1040px;
    margin: 0 auto 80px;
    display: flex;
    align-items: center;
    gap: 60px;
}

.zigzag-row:last-child { margin-bottom: 0; }
.zigzag-row.reverse { flex-direction: row-reverse; }

.zigzag-image {
    flex: 1;
    position: relative;
    max-width: 100%;
}

.zigzag-image img {
    width: 100%;
    border-radius: 20px;
    position: relative;
    z-index: 2;
    box-shadow: 0 20px 40px -10px rgba(0,0,0,0.12);
    aspect-ratio: 4/3;
    object-fit: cover;
}

.image-decoration {
    position: absolute;
    top: -12px; left: -12px;
    width: 100%; height: 100%;
    border: 2px dashed var(--accent-primary);
    border-radius: 20px;
    z-index: 1;
    opacity: 0.25;
}
.image-decoration.alternate { left: auto; right: -12px; border-color: #06B6D4; }

.zigzag-content { flex: 1; }
.feature-icon {
    width: 46px;
    height: 46px;
    background: var(--accent-glow);
    color: var(--accent-primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}
.feature-icon svg, .feature-icon i {
    width: 22px;
    height: 22px;
}

.zigzag-content h3 {
    font-size: clamp(22px, 2.5vw, 28px);
    font-weight: 800;
    margin-bottom: 14px;
    color: var(--text-main);
    letter-spacing: -0.01em;
}

.zigzag-content p {
    color: var(--text-muted);
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 20px;
}

.benefit-list { list-style: none; padding: 0; margin: 0; }
.benefit-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    font-weight: 600;
    font-size: 14px;
    color: var(--text-main);
}
.benefit-list li i, .benefit-list li svg {
    color: #10B981;
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

/* --- 8. CERTIFICATE & TRUST AUDIT BANNER --- */
.trust-audit-banner {
    background: linear-gradient(135deg, #0F172A 0%, #1E293B 100%);
    color: white;
    border-radius: 24px;
    padding: 48px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
    box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.25);
    margin-top: 20px;
}

.trust-content {
    max-width: 600px;
}

.trust-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    background: rgba(16, 185, 129, 0.2);
    color: #34D399;
    border: 1px solid rgba(16, 185, 129, 0.4);
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 16px;
}

.trust-content h3 {
    font-size: clamp(24px, 3vw, 32px);
    font-weight: 800;
    color: white;
    margin-bottom: 12px;
    line-height: 1.25;
}

.trust-content p {
    font-size: 15px;
    color: #94A3B8;
    line-height: 1.65;
    margin-bottom: 24px;
}

.trust-stats-badges {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.trust-stat-pill {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 10px 18px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.trust-stat-pill strong {
    font-size: 20px;
    color: #38BDF8;
}

.trust-stat-pill span {
    font-size: 12px;
    color: #CBD5E1;
    font-weight: 500;
}

.trust-actions {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.btn-trust-verify {
    background: #3B82F6;
    color: white;
    padding: 14px 28px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s ease;
    box-shadow: 0 4px 14px rgba(59, 130, 246, 0.4);
    min-height: 48px;
}

.btn-trust-verify:hover {
    background: #2563EB;
    transform: translateY(-2px);
}

.btn-trust-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    padding: 12px 24px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: background 0.2s ease;
    min-height: 44px;
}

.btn-trust-secondary:hover {
    background: rgba(255, 255, 255, 0.18);
}

/* Spinner helper */
.spin {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* ==========================================================================
   TABLET & INTERMEDIATE BREAKPOINTS (<= 1024px)
   ========================================================================== */
@media (max-width: 1024px) {
    .metrics-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .trust-audit-banner {
        flex-direction: column;
        align-items: stretch;
        padding: 36px 30px;
        gap: 32px;
    }

    .trust-actions {
        width: 100%;
        flex-direction: row;
    }

    .btn-trust-verify, .btn-trust-secondary {
        flex: 1;
        justify-content: center;
    }
}

/* ==========================================================================
   MOBILE RESPONSIVENESS (<= 768px)
   ========================================================================== */
@media (max-width: 768px) {
    .impact-hero {
        min-height: auto;
        padding: 95px 18px 48px;
        background-attachment: scroll !important;
    }

    .impact-hero h1 {
        font-size: clamp(28px, 7vw, 40px);
        margin-bottom: 14px;
    }

    .impact-hero p {
        font-size: 14.5px;
        line-height: 1.6;
        margin-bottom: 24px;
    }

    .hero-header-row {
        gap: 8px;
        margin-bottom: 18px;
    }

    .hero-quick-chips {
        gap: 8px;
    }

    .quick-chip {
        padding: 6px 12px;
        font-size: 12px;
    }

    .impact-metrics {
        padding: 0 16px 40px;
        margin: -24px auto 0;
    }

    .metrics-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .impact-stat-card {
        padding: 16px 14px;
        border-radius: 14px;
    }

    .card-top {
        margin-bottom: 10px;
    }

    .stat-icon {
        width: 36px;
        height: 36px;
        border-radius: 10px;
    }

    .stat-icon svg, .stat-icon i {
        width: 18px;
        height: 18px;
    }

    .stat-tag {
        font-size: 10px;
        padding: 2px 6px;
    }

    .impact-stat-card h3 {
        font-size: 24px;
    }

    .impact-stat-card p {
        font-size: 12px;
    }

    .stat-subtext {
        font-size: 11px;
        margin-top: 10px;
        padding-top: 8px;
    }

    .section-wrapper {
        margin-bottom: 60px;
        padding: 0 16px;
    }

    .section-head {
        margin-bottom: 32px;
    }

    .highlights-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .highlight-box {
        padding: 20px 16px;
        border-radius: 16px;
    }

    .rank-milestone-rail {
        padding: 14px 16px;
        margin-bottom: 16px;
        border-radius: 14px;
    }

    .milestone-step {
        min-width: 56px;
    }

    .milestone-name {
        font-size: 11px;
    }

    .rank-journey-container {
        padding: 20px 16px;
        border-radius: 18px;
    }

    .ranks-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .rank-card {
        padding: 14px 12px;
        border-radius: 14px;
    }

    .rank-badge-icon {
        width: 36px;
        height: 36px;
        border-radius: 10px;
        margin-bottom: 10px;
    }

    .rank-badge-icon svg, .rank-badge-icon i {
        width: 18px;
        height: 18px;
    }

    .rank-name {
        font-size: 13.5px;
    }

    .rank-criteria {
        font-size: 11px;
        margin-bottom: 10px;
    }

    .rank-volunteer-count {
        font-size: 11px;
    }

    .rank-volunteer-count strong {
        font-size: 12.5px;
    }

    .category-cards-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .category-impact-card {
        padding: 18px 16px;
        border-radius: 16px;
    }

    .student-opportunities {
        padding: 60px 16px;
    }

    .zigzag-row, .zigzag-row.reverse {
        flex-direction: column;
        gap: 28px;
        text-align: left;
        margin-bottom: 60px;
    }

    .zigzag-image {
        width: 100%;
    }

    .image-decoration, .image-decoration.alternate {
        display: none; /* Prevent horizontal overflow on mobile */
    }

    .zigzag-content h3 {
        font-size: 22px;
    }

    .zigzag-content p {
        font-size: 14px;
    }

    .trust-audit-banner {
        padding: 28px 18px;
        border-radius: 20px;
    }

    .trust-actions {
        flex-direction: column;
        width: 100%;
    }

    .btn-trust-verify, .btn-trust-secondary {
        width: 100%;
    }

    .trust-stats-badges {
        gap: 10px;
    }

    .trust-stat-pill {
        flex: 1 1 calc(50% - 10px);
        padding: 8px 12px;
    }
}

/* ==========================================================================
   SMALL MOBILE SCREENS (<= 380px, e.g. iPhone SE, compact Androids)
   ========================================================================== */
@media (max-width: 380px) {
    .impact-hero {
        padding: 85px 12px 40px;
    }

    .impact-hero h1 {
        font-size: 24px;
    }

    .metrics-container {
        grid-template-columns: 1fr;
    }

    .ranks-grid {
        grid-template-columns: 1fr;
    }

    .trust-stat-pill {
        flex: 1 1 100%;
    }
}
