/* === דף הבית === */

.home-hero {
    padding: 2.5rem 0 2rem;
    background: linear-gradient(170deg, var(--cream-dark), var(--cream));
    text-align: center;
}
.home-hero h1 {
    font-size: clamp(1.8rem, 5vw, 2.6rem);
    margin-bottom: .6rem;
}
.home-lede {
    max-width: 34rem;
    margin: 0 auto 1rem;
    color: var(--text-light);
    font-size: 1.05rem;
    line-height: 1.7;
}
.home-cta {
    display: flex;
    justify-content: center;
    gap: .6rem;
    flex-wrap: wrap;
    margin-top: 1.5rem;
}

.home-counters { padding: 2rem 0; background: var(--cream); }
.me-stat-delta { font-size: .78rem; color: #2e7d5b; font-weight: 600; }

/* --- הקופה הציבורית --- */
.public-fund {
    background: var(--white);
    border: 1px solid var(--primary);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    padding: 1.5rem;
    margin-top: 1rem;
}

.fund-figures {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
    gap: 1.25rem;
    margin: 1.25rem 0;
}
.fund-figure { display: flex; flex-direction: column; gap: .2rem; }
.fund-value {
    font-size: clamp(1.4rem, 3.5vw, 1.9rem);
    font-weight: 800;
    color: var(--primary);
    line-height: 1.15;
    font-variant-numeric: tabular-nums;
}
.fund-label { font-size: .85rem; color: var(--text-light); }
.fund-figure-ok .fund-value { color: #2e7d5b; }
.fund-figure-gold .fund-value { color: var(--header-bg); }

.fund-note {
    font-size: .85rem;
    color: var(--text-light);
    margin-top: .5rem;
}
.comm-progress.gold > i { background: var(--header-bg); }

/* --- חיפוש וקהילות מובילות --- */
.home-search { padding: 2.5rem 0; background: var(--white); }
.home-subhead { font-size: 1rem; color: var(--text-light); margin: 1.5rem 0 .75rem; }

.home-community-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
    gap: 1rem;
}
.home-community-card {
    display: flex;
    flex-direction: column;
    gap: .4rem;
    background: var(--cream);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1rem;
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}
.home-community-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow);
    transform: translateY(-2px);
}
.home-community-card h4 { font-size: 1.05rem; margin: 0; }

.home-card-photo {
    height: 5rem;
    border-radius: var(--radius);
    background: var(--cream-dark);
    display: grid;
    place-items: center;
    overflow: hidden;
    margin-bottom: .3rem;
}
.home-card-photo img { width: 100%; height: 100%; object-fit: cover; }
.home-card-photo span { font-size: 2rem; font-weight: 800; color: var(--primary); }

/* --- איך זה עובד --- */
.home-how { padding: 2.5rem 0; background: var(--cream); }
.home-how h2 { text-align: center; margin-bottom: 1.5rem; }

.split-explain {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    padding: 1.5rem;
    margin-top: 2rem;
}
.split-explain h3 { font-size: 1.1rem; margin-bottom: 1rem; }

.split-bars {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
    gap: .75rem;
}
.split-bar {
    border-inline-start: 4px solid var(--primary);
    background: var(--cream);
    border-radius: 0 var(--radius) var(--radius) 0;
    padding: .8rem 1rem;
    display: flex;
    flex-direction: column;
    gap: .15rem;
}
.split-bar-pct {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1.1;
    font-variant-numeric: tabular-nums;
}
.split-bar-name { font-weight: 650; font-size: .95rem; }
.split-bar-desc { font-size: .82rem; color: var(--text-light); }

.split-bar-gold { border-inline-start-color: var(--header-bg); }
.split-bar-gold .split-bar-pct { color: var(--header-bg); }
.split-bar-grey { border-inline-start-color: var(--text-lighter); }
.split-bar-grey .split-bar-pct { color: var(--text-light); }

/* --- קיר התורמים --- */
.home-wall { padding: 2.5rem 0; background: var(--white); }
.donor-chip-more {
    text-decoration: none;
    color: var(--primary);
    font-weight: 600;
    padding-inline: .7rem;
}

/* --- ניווט בין עמודים --- */
.pager {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 1.25rem;
}
.pager-info { font-size: .88rem; color: var(--text-light); }

@media (max-width: 600px) {
    .home-cta .btn { width: 100%; }
    .fund-figures { gap: 1rem; }
}

/* === ההגרלה === */

.draw-list { display: flex; flex-direction: column; gap: .75rem; }

.draw-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    padding: 1rem 1.1rem;
}

.draw-num {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 3.5rem;
    padding: .5rem;
    background: var(--cream);
    border-radius: var(--radius);
    flex-shrink: 0;
}
.draw-num-value {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
    font-variant-numeric: tabular-nums;
}
.draw-num-label { font-size: .7rem; color: var(--text-lighter); }

.draw-main { flex: 1; min-width: 0; }
.draw-amount {
    font-weight: 800;
    font-size: 1.1rem;
    color: var(--header-bg);
    font-variant-numeric: tabular-nums;
    flex-shrink: 0;
}

.draw-hero { text-align: center; }
.draw-hero h1 { font-size: 1.4rem; margin: .5rem 0; }
.draw-hero p { max-width: 34rem; margin: 0 auto 1rem; color: var(--text-light); }
.draw-hero-mark { font-size: 2.5rem; line-height: 1; }

.draw-steps {
    padding-inline-start: 1.3rem;
    color: var(--text-light);
    line-height: 1.9;
}
.draw-steps li { margin-bottom: .3rem; }

@media (max-width: 600px) {
    .draw-row { flex-wrap: wrap; }
    .draw-amount { width: 100%; }
}
