/* ============================================================
   How Seed Out Works Page
   ============================================================ */

/* ── Shared ── */
.hsw-eyebrow {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #a8d08d;
    margin-bottom: 12px;
}
.hsw-eyebrow-dark {
    display: block;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #368420;
    margin-bottom: 10px;
}
.hsw-btn-primary {
    background: #368420;
    color: #fff !important;
    padding: 13px 30px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.9375rem;
    border: none;
    transition: background 0.2s ease;
    text-decoration: none;
}
.hsw-btn-primary:hover { background: #2a6a18; }
.hsw-btn-outline {
    background: transparent;
    color: #fff !important;
    padding: 12px 28px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.9375rem;
    border: 2px solid rgba(255,255,255,0.5);
    transition: border-color 0.2s ease, background 0.2s ease;
    text-decoration: none;
}
.hsw-btn-outline:hover {
    border-color: #fff;
    background: rgba(255,255,255,0.08);
}

/* ── Hero ── */
.hsw-hero {
    background: linear-gradient(135deg, #1d4d0e 0%, #2a6a18 55%, #368420 100%);
    padding-bottom: 64px;
    min-height: 460px;
    position: relative;
    overflow: hidden;
}
.hsw-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 70% 50%, rgba(168,208,141,0.12) 0%, transparent 65%);
    pointer-events: none;
}
.hsw-hero__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    padding-top: 100px;
}
.hsw-hero__heading {
    font-size: clamp(2rem, 1.5rem + 2vw, 3rem);
    font-weight: 900;
    color: #fff;
    line-height: 1.15;
    margin-bottom: 16px;
}
.hsw-hero__lead {
    font-size: 1.0625rem;
    color: rgba(255,255,255,0.82);
    line-height: 1.75;
    margin-bottom: 28px;
    max-width: 520px;
}
.hsw-hero__cta {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}
.hsw-hero__stat-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
.hsw-hero__stat {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.18);
    border-radius: 14px;
    padding: 24px 20px;
    text-align: center;
    backdrop-filter: blur(4px);
}
.hsw-hero__stat-num {
    display: block;
    font-size: clamp(1.75rem, 1.3rem + 1.5vw, 2.5rem);
    font-weight: 900;
    color: #a8d08d;
    line-height: 1;
    margin-bottom: 6px;
}
.hsw-hero__stat-label {
    display: block;
    font-size: 0.8rem;
    color: rgba(255,255,255,0.75);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

/* ── Shared section wrapper ── */
.hsw-section {
    background: #fff;
    padding: clamp(3.5rem, 2.5rem + 4vw, 6rem) 0;
}
.hsw-section--alt {
    background: #f4f9f2;
}
.hsw-section-head {
    text-align: center;
    margin-bottom: 48px;
}
.hsw-section-heading {
    font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.25rem);
    font-weight: 800;
    color: #1a1a1a;
    margin-bottom: 12px;
    line-height: 1.2;
}
.hsw-section-heading--light { color: #fff; }
.hsw-section-desc {
    font-size: 1rem;
    color: #555;
    max-width: 600px;
    margin-inline: auto;
    line-height: 1.7;
    margin-bottom: 0;
}
.hsw-section-desc--light { color: rgba(255,255,255,0.78); }

/* ── 4-step entrepreneur grid ── */
.hsw-steps-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 48px;
}
.hsw-step-card {
    background: #f8fbf6;
    border: 1px solid #e2eed8;
    border-radius: 16px;
    padding: 28px 22px;
    position: relative;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.hsw-step-card:hover {
    box-shadow: 0 8px 28px rgba(54,132,32,0.12);
    transform: translateY(-4px);
}
.hsw-step-num {
    font-size: 0.75rem;
    font-weight: 900;
    color: #a8d08d;
    letter-spacing: 0.1em;
    margin-bottom: 14px;
}
.hsw-step-icon {
    width: 52px;
    height: 52px;
    background: #368420;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}
.hsw-step-icon .fa {
    font-size: 22px;
    color: #fff;
}
.hsw-step-card h3 {
    font-size: 1.0625rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 10px;
}
.hsw-step-card p {
    font-size: 0.875rem;
    color: #555;
    line-height: 1.7;
    margin: 0;
}
.hsw-entrepreneur-img {
    text-align: center;
    background: #f8fbf6;
    border: 1px solid #e2eed8;
    border-radius: 16px;
    padding: 32px 24px;
}
.hsw-entrepreneur-img img { max-width: 100%; border-radius: 8px; }

/* ── Revolving fund — text banner ── */
.hsw-revolving {
    background: linear-gradient(135deg, #1d4d0e 0%, #2a6a18 60%, #368420 100%);
    padding: clamp(3.5rem, 2.5rem + 4vw, 6rem) 0;
    position: relative;
    overflow: hidden;
    text-align: center;
}
.hsw-revolving::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 50% 50%, rgba(168,208,141,0.12) 0%, transparent 65%);
    pointer-events: none;
}
.hsw-revolving__centered {
    max-width: 720px;
    margin-inline: auto;
    position: relative;
}
.hsw-revolving__heading {
    font-size: clamp(1.875rem, 1.4rem + 2vw, 3rem);
    font-weight: 900;
    color: #fff;
    line-height: 1.15;
    margin-bottom: 16px;
}
.hsw-revolving__lead {
    font-size: 1.0625rem;
    color: rgba(255,255,255,0.82);
    line-height: 1.75;
    margin-bottom: 28px;
}
.hsw-revolving__pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}
.hsw-pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.22);
    border-radius: 40px;
    padding: 7px 18px;
    font-size: 0.875rem;
    font-weight: 600;
    color: #a8d08d;
}
.hsw-pill .fa { font-size: 0.75rem; }

/* ── Revolving Diagram Section ── */
.hsw-diagram-section {
    background: #f4f9f2;
    padding: clamp(3.5rem, 2.5rem + 4vw, 6rem) 0;
}
.hsw-diagram-card {
    background: #fff;
    border: 1px solid #e0eed6;
    border-radius: 20px;
    padding: 40px 32px 28px;
    box-shadow: 0 4px 28px rgba(54,132,32,0.07);
    overflow: hidden;
    margin-bottom: 40px;
}
.revolving-svg {
    display: block;
    width: 100%;
    max-height: 300px;
    overflow: visible;
}

/* ── Beneficiary icons — fade-in as they're revealed ── */
.rm-bene {
    transition: opacity 0.4s ease;
}

/* ── Donation impact stats panel ── */
.rm-impact-panel {
    display: flex;
    align-items: stretch;
    gap: 0;
    background: #f4f9f2;
    border: 1px solid #ddefd6;
    border-radius: 12px;
    margin-top: 14px;
    overflow: hidden;
}
.rm-impact-stat {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 14px 10px;
    text-align: center;
}
.rm-impact-stat--main {
    background: rgba(54,132,32,0.07);
}
.rm-impact-num {
    font-size: 1.625rem;
    font-weight: 900;
    color: #1a1a1a;
    line-height: 1;
    margin-bottom: 4px;
    transition: color 0.3s;
}
.rm-impact-num--green { color: #368420; }
.rm-impact-num--sm    { font-size: 1.125rem; }
.rm-impact-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
.rm-impact-divider {
    width: 1px;
    background: #ddefd6;
    align-self: stretch;
}
.rm-impact-arrow {
    display: flex;
    align-items: center;
    padding: 0 6px;
    color: #368420;
    font-size: 1.125rem;
    opacity: 0.6;
    flex-shrink: 0;
}
.rm-impact-num--muted {
    color: #555;
}

/* ── Progress bar ── */
.rm-progress-wrap {
    margin-top: 10px;
}
.rm-progress-bar {
    height: 7px;
    background: #e0eed6;
    border-radius: 99px;
    overflow: hidden;
    margin-bottom: 7px;
}
.rm-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #368420, #a8d08d);
    border-radius: 99px;
    transition: width 0.6s ease;
    width: 0%;
}
.rm-progress-label {
    font-size: 0.8rem;
    color: #2a6a18;
    font-weight: 600;
    text-align: center;
    min-height: 1.2em;
}

/* ── Arc labels (outside SVG) ── */
.rm-arc-labels {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
    margin-bottom: 4px;
    padding: 0 4px;
}
.rm-arc-label {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 0.8125rem;
    font-weight: 700;
    border-radius: 40px;
    padding: 6px 16px;
}
.rm-arc-label--top {
    background: rgba(54,132,32,0.08);
    color: #368420;
    border: 1px solid rgba(54,132,32,0.2);
}
.rm-arc-label--btm {
    background: rgba(42,106,24,0.08);
    color: #2a6a18;
    border: 1px solid rgba(42,106,24,0.2);
}

/* ── Legend ── */
.rm-legend {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 24px;
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid #e0eed6;
}
.rm-legend-item {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 0.875rem;
    color: #555;
}
.rm-legend-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    flex-shrink: 0;
}

/* ── Month × Beneficiary table ── */
.rm-table-wrap {
    margin-top: 14px;
    max-height: 220px;
    overflow-y: auto;
    border: 1px solid #ddefd6;
    border-radius: 10px;
    scrollbar-width: thin;
    scrollbar-color: #a8d08d #f4f9f2;
}
.rm-table-wrap::-webkit-scrollbar { width: 5px; }
.rm-table-wrap::-webkit-scrollbar-track { background: #f4f9f2; }
.rm-table-wrap::-webkit-scrollbar-thumb { background: #a8d08d; border-radius: 99px; }

.rm-month-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.8125rem;
}
.rm-month-table thead {
    position: sticky;
    top: 0;
    z-index: 1;
    background: #2a6a18;
}
.rm-month-table thead th {
    padding: 8px 12px;
    text-align: left;
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #fff;
}
.rm-month-table tbody tr {
    border-bottom: 1px solid #eef6e8;
    animation: rm-row-in 0.35s ease;
}
.rm-month-table tbody tr:last-child { border-bottom: none; }
.rm-month-table tbody td {
    padding: 7px 12px;
    color: #333;
    vertical-align: middle;
}
.rm-tr--complete td { color: #1a1a1a; }

.rm-badge {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 99px;
    font-size: 0.7rem;
    font-weight: 700;
}
.rm-badge--active {
    background: rgba(168,208,141,0.35);
    color: #2a6a18;
}
.rm-badge--done {
    background: rgba(54,132,32,0.12);
    color: #368420;
}

@keyframes rm-row-in {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ── 5-step cycle cards below diagram ── */
.hsw-cycle-steps {
    display: flex;
    align-items: flex-start;
    gap: 0;
    flex-wrap: wrap;
    justify-content: center;
}
.hsw-cycle-step {
    flex: 1;
    min-width: 140px;
    max-width: 180px;
    text-align: center;
    padding: 24px 16px;
    background: #fff;
    border: 1px solid #e0eed6;
    border-radius: 14px;
    box-shadow: 0 2px 12px rgba(54,132,32,0.06);
}
.hsw-cycle-step--highlight {
    border-color: #a8d08d;
    background: #f4f9f2;
}
.hsw-cycle-step strong {
    display: block;
    font-size: 0.9rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 10px 0 6px;
}
.hsw-cycle-step p {
    font-size: 0.8rem;
    color: #666;
    line-height: 1.6;
    margin: 0;
}
.hsw-cycle-num {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #368420;
    color: #fff;
    font-size: 1rem;
    font-weight: 900;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2px;
}
.hsw-cycle-arrow {
    flex-shrink: 0;
    align-self: center;
    font-size: 1.25rem;
    color: #368420;
    padding: 0 6px;
    margin-top: -24px;
}
.hsw-cycle-arrow--inf .fa {
    animation: hsw-spin 2.5s linear infinite;
}
@keyframes hsw-spin {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

/* ── Student section ── */
.hsw-student-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}
.hsw-student-step {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    margin-bottom: 24px;
}
.hsw-student-step:last-child { margin-bottom: 0; }
.hsw-student-step__icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    background: #368420;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 18px;
    margin-top: 2px;
}
.hsw-student-step strong {
    display: block;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 4px;
    font-size: 0.9375rem;
}
.hsw-student-step p {
    font-size: 0.875rem;
    color: #555;
    line-height: 1.7;
    margin: 0;
}
.hsw-student-split__visual {
    display: flex;
    flex-direction: column;
    gap: 24px;
    align-items: center;
}
.hsw-student-gif {
    width: 100%;
    max-width: 400px;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(54,132,32,0.18);
    border: 3px solid #e2eed8;
}
.hsw-student-img {
    border-radius: 12px;
    box-shadow: 0 4px 18px rgba(0,0,0,0.08);
}

/* ── 7-step screening ── */
.hsw-screening {
    background: #1d4d0e;
    padding: clamp(4rem, 3rem + 4vw, 7rem) 0;
}

/* Grid layout — 4 cols on desktop, 3 on tablet, 2 on mobile */
.hsw-screening-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px 44px;   /* row-gap 16px, col-gap 44px (arrow sits in the col gap) */
    margin-bottom: 36px;
}
.hsw-screening-card {
    position: relative;
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 14px;
    padding: 22px 18px;
    transition: background 0.2s ease, transform 0.2s ease;
}
/* Chevron arrow after every card that is NOT the last in its row and NOT the last card */
.hsw-screening-card:not(:nth-child(4n)):not(:last-child)::after {
    content: '\f054';              /* FontAwesome chevron-right */
    font-family: FontAwesome;
    position: absolute;
    right: -26px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(168,208,141,0.6);
    font-size: 1rem;
    pointer-events: none;
}
.hsw-screening-card:hover {
    background: rgba(255,255,255,0.13);
    transform: translateY(-3px);
}
.hsw-screening-card--final {
    border-color: rgba(168,208,141,0.55);
    background: rgba(168,208,141,0.09);
}
.hsw-screening-num {
    font-size: 0.68rem;
    font-weight: 900;
    letter-spacing: 0.12em;
    color: rgba(168,208,141,0.65);
    margin-bottom: 8px;
}
.hsw-screening-badge {
    display: inline-block;
    font-size: 0.73rem;
    font-weight: 700;
    border-radius: 20px;
    padding: 4px 11px;
    margin-bottom: 10px;
}
.hsw-screening-card p {
    font-size: 0.8125rem;
    color: rgba(255,255,255,0.7);
    line-height: 1.65;
    margin: 0;
}
.hsw-screening-approved {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 12px;
    font-size: 0.8rem;
    font-weight: 700;
    color: #a8d08d;
}

/* Row-2 cards (5,6,7) also get arrows — handled by :not(:nth-child(4n)):not(:last-child) above */
/* On 3-col layout, hide arrow after every 3rd card */
@media (max-width: 991px) {
    .hsw-screening-card:not(:nth-child(4n)):not(:last-child)::after { display: none; }
    .hsw-screening-card:not(:nth-child(3n)):not(:last-child)::after {
        content: '\f054';
        font-family: FontAwesome;
        position: absolute;
        right: -26px;
        top: 50%;
        transform: translateY(-50%);
        color: rgba(168,208,141,0.6);
        font-size: 1rem;
        pointer-events: none;
        display: block;
    }
}

.hsw-screening-note {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 12px;
    padding: 18px 22px;
    font-size: 0.9375rem;
    color: rgba(255,255,255,0.78);
    line-height: 1.65;
}
.hsw-screening-note .fa {
    color: #a8d08d;
    font-size: 1.25rem;
    margin-top: 2px;
    flex-shrink: 0;
}
.hsw-screening-note strong { color: #fff; }

/* ── Responsive ── */
@media (max-width: 1099px) {
    .hsw-steps-grid { grid-template-columns: repeat(2, 1fr); }
    .hsw-screening-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 991px) {
    .hsw-hero__inner { grid-template-columns: 1fr; padding-top: 90px; }
    .hsw-hero__stat-cards { grid-template-columns: repeat(4, 1fr); }
    .hsw-hero__lead { max-width: 100%; }
    .hsw-student-split { grid-template-columns: 1fr; }
    .hsw-student-split__visual { order: -1; }
    .hsw-diagram-card { padding: 24px 16px 20px; }
    .hsw-screening-grid { grid-template-columns: repeat(3, 1fr); gap: 14px 40px; }
    /* Recalculate arrows for 3-col */
    .hsw-screening-card:not(:nth-child(4n)):not(:last-child)::after { display: none; }
    .hsw-screening-card:not(:nth-child(3n)):not(:last-child)::after {
        content: '\f054'; font-family: FontAwesome;
        position: absolute; right: -24px; top: 50%; transform: translateY(-50%);
        color: rgba(168,208,141,0.6); font-size: 1rem; pointer-events: none; display: block;
    }
}
@media (max-width: 767px) {
    .hsw-steps-grid { grid-template-columns: 1fr 1fr; }
    .hsw-hero__stat-cards { grid-template-columns: repeat(2, 1fr); }
    .hsw-cycle-steps { gap: 8px; }
    .hsw-cycle-arrow { display: none; }
    .hsw-cycle-step { min-width: 120px; }
    .hsw-screening-grid { grid-template-columns: repeat(2, 1fr); gap: 12px 36px; }
    .hsw-screening-card::after { display: none; }
    .hsw-screening-card:not(:nth-child(2n)):not(:last-child)::after {
        content: '\f054'; font-family: FontAwesome;
        position: absolute; right: -22px; top: 50%; transform: translateY(-50%);
        color: rgba(168,208,141,0.6); font-size: 0.875rem; pointer-events: none; display: block;
    }
}
@media (max-width: 575px) {
    .hsw-steps-grid { grid-template-columns: 1fr; }
    .hsw-hero__stat-cards { grid-template-columns: 1fr 1fr; }
    .hsw-hero__cta { flex-direction: column; }
    .hsw-cycle-step { min-width: 100%; max-width: 100%; }
    .hsw-revolving__pills { gap: 8px; }
    .hsw-pill { font-size: 0.8125rem; padding: 6px 14px; }
}
