/* =========================================
   Front Page – Programs / What We Do
   ========================================= */

/* ── Section wrapper ───────────────────── */
.fp-programs {
    position: relative;
    background: #ffffff;
    padding-bottom: 2rem;
    overflow: hidden;
}

/* ── Header block ──────────────────────── */
.fp-programs__header {
    position: relative;
    padding-top: 5rem;
    padding-bottom: 3rem;
}

/* ── Eyebrow ───────────────────────────── */
.fp-programs__eyebrow {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.85rem;
    max-width: 560px;
}

.fp-programs__eyebrow-icon {
    display: inline-flex;
    width: 20px;
    height: 20px;
    border: 2px dotted #2ecc71;
    border-radius: 50%;
    animation: spin-slow 8s linear infinite;
    flex-shrink: 0;
}

/* ── Headline ──────────────────────────── */
.fp-programs__headline {
    font-size: clamp(1.9rem, 3.5vw, 2.75rem);
    font-weight: 800;
    color: #111;
    line-height: 1.15;
    margin-bottom: 1.1rem;
    max-width: 560px;
}

.fp-programs__headline-accent {
    color: #2ecc71;
}

/* ── Intro paragraph ───────────────────── */
.fp-programs__intro {
    font-size: 0.93rem;
    color: #555;
    line-height: 1.8;
    margin-bottom: 1.75rem;
    max-width: 480px;
}

/* ── Impact report CTA ─────────────────── */
.fp-programs__report-cta {
    display: inline-block;
    padding: 0.8rem 1.8rem;
    background: #111;
    color: #fff;
    font-weight: 700;
    font-size: 0.88rem;
    border-radius: 999px;
    text-decoration: none;
    transition: background 0.25s ease, transform 0.25s ease;
}
.fp-programs__report-cta:hover {
    background: #2ecc71;
    color: #fff;
    transform: translateY(-2px);
}

/* ─────────────────────────────────────────
   PROGRAM ROWS
   ───────────────────────────────────────── */
.fp-programs__rows {
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* ── Row base ──────────────────────────── */
.fp-programs__row {
    padding: 0 0 1rem;
}

.fp-programs__row-inner {
    position: relative;            /* anchor for absolutely-positioned image */
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 3rem;
    padding-top: 3rem;
    padding-bottom: 3rem;
    background: #e8f5ee;           /* mint green */
    border-radius: 16px;
    max-width: var(--container-max, 1200px);
    margin: 0 auto;
    padding-left: clamp(1.5rem, 4vw, 3rem);
    padding-right: clamp(1.5rem, 4vw, 3rem);
    overflow: hidden;              /* clip the bottom of the circular image */
    min-height: 450px;
}

/* image-left: text occupies right column; image is absolutely pinned bottom-left */
.fp-programs__row--image-left  .fp-programs__text     { grid-column: 2; justify-self: start; }

/* image-right: text occupies left column; image is absolutely pinned bottom-right */
.fp-programs__row--image-right .fp-programs__text     { grid-column: 1; justify-self: start; text-align: left; }

/* ── Image column (absolutely positioned to a card corner) ─────────────── */
.fp-programs__img-wrap {
    position: absolute;
    bottom: 0;
    width: clamp(280px, 32vw, 460px);
    pointer-events: none;
}

.fp-programs__row--image-left  .fp-programs__img-wrap { left:  0; }
.fp-programs__row--image-right .fp-programs__img-wrap { right: 0; }

/* Circular image (the source PNG already includes its own green ring) */
.fp-programs__circle-img {
    width: 100%;
    aspect-ratio: 1 / 1;
    display: block;
    margin-bottom: -1px;          /* sit flush with bottom edge */
}

.fp-programs__circle-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: bottom center;
    display: block;
}

/* ── Text block ────────────────────────── */
.fp-programs__text {
    max-width: 440px;
}

.fp-programs__title {
    font-size: clamp(1.3rem, 2.2vw, 1.65rem);
    font-weight: 800;
    color: #111;
    line-height: 1.2;
    margin-bottom: 0.85rem;
}

.fp-programs__desc {
    font-size: 0.92rem;
    color: #555;
    line-height: 1.8;
    margin-bottom: 1.4rem;
}

/* ── Read More link ────────────────────── */
.fp-programs__read-more {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.55rem 1.3rem;
    border: 1.5px solid #111;
    border-radius: 999px;
    color: #111;
    font-weight: 600;
    font-size: 0.88rem;
    text-decoration: none;
    transition: background 0.22s ease, color 0.22s ease, border-color 0.22s ease, gap 0.22s ease;
}
.fp-programs__read-more:hover {
    background: #2ecc71;
    border-color: #2ecc71;
    color: #fff;
    gap: 0.8rem;
}

.fp-programs__arrow {
    font-size: 1rem;
    line-height: 1;
}

/* ─────────────────────────────────────────
   DOT GRID DECORATIONS
   ───────────────────────────────────────── */
.fp-programs__dots-deco {
    position: absolute;
    width: 130px;
    height: 130px;
    background-image: radial-gradient(circle, #2ecc71 1.5px, transparent 1.5px);
    background-size: 13px 13px;
    opacity: 0.5;
    pointer-events: none;
    z-index: 0;
}

.fp-programs__dots-deco--top-right {
    top: 3rem;
    right: 3rem;
}

.fp-programs__dots-deco--bottom-left {
    bottom: 2rem;
    left: 1rem;
}

/* ─────────────────────────────────────────
   RESPONSIVE
   ───────────────────────────────────────── */
@media (max-width: 1024px) {
    .fp-programs__row-inner {
        gap: 2rem;
        min-height: 360px;
    }
}

@media (max-width: 768px) {
    .fp-programs__row-inner {
        grid-template-columns: 1fr;
        gap: 1.25rem;
        padding-top: 2rem;
        padding-bottom: 0;
        text-align: center;
        border-radius: 12px;
        min-height: 0;
    }

    /* On mobile: revert image to in-flow so it can stack under the text */
    .fp-programs__row--image-left  .fp-programs__img-wrap,
    .fp-programs__row--image-right .fp-programs__img-wrap {
        position: static;
        width: clamp(220px, 60vw, 320px);
        margin: 0 auto;
        grid-column: 1;
        grid-row: 2;
    }

    .fp-programs__row--image-left  .fp-programs__text,
    .fp-programs__row--image-right .fp-programs__text {
        grid-column: 1;
        grid-row: 1;
        justify-self: center;
        text-align: center;
        padding: 0 0.5rem;
    }

    .fp-programs__text       { max-width: 100%; }
    .fp-programs__read-more  { margin: 0 auto; }
    .fp-programs__eyebrow,
    .fp-programs__headline,
    .fp-programs__intro      { max-width: 100%; }
}
