/* =========================================
   Impact Page – Hero
   ========================================= */

.impact-page {
    background: #ffffff;
}

.ip-hero {
    position: relative;
    background: linear-gradient(180deg, #e8f5ee 0%, #ffffff 70%);
    padding-top: clamp(6rem, 12vw, 9rem);
    padding-bottom: clamp(1.5rem, 4vw, 3rem);
    overflow: hidden;
}

.ip-hero__inner {
    position: relative;
    z-index: 1;
    text-align: left;
}

.ip-hero__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 1rem;
}

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

.ip-hero__headline {
    font-size: clamp(2.2rem, 5vw, 3.75rem);
    font-weight: 800;
    color: #111;
    line-height: 1.1;
    margin: 0 0 1.4rem;
    letter-spacing: -0.5px;
}

.ip-hero__intro {
    font-size: 0.95rem;
    color: #555;
    line-height: 1.85;
    max-width: 540px;
    margin: 0;
}

/* =========================================
   Impact Page – Grid Section
   ========================================= */

.ip-grid-section {
    position: relative;
    padding: 1rem 0 5rem;
    overflow: hidden;
}

.ip-grid__layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 2.25rem;
    align-items: start;
}

/* ── Stories grid (left) ───────────────── */
.ip-grid__stories {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.75rem 1.5rem;
}

.ip-card {
    background: transparent;
}

.ip-card__link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.ip-card__media {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: 14px;
    background: #f1f1f1;
}

.ip-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.ip-card__link:hover .ip-card__media img {
    transform: scale(1.04);
}

.ip-card__body {
    padding: 0.85rem 0 0;
}

.ip-card__cat {
    display: inline-block;
    background: #e2f5ea;
    color: #1f8a4c;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    padding: 0.3rem 0.7rem;
    border-radius: 999px;
    margin-bottom: 0.6rem;
}

.ip-card__title {
    font-size: 1rem;
    font-weight: 600;
    color: #111;
    line-height: 1.35;
    margin: 0;
}

/* ── Aside (right) ─────────────────────── */
.ip-grid__aside {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    position: relative;
    z-index: 1;
}

/* Dark scholarship promo card */
.ip-promo {
    background: #111;
    color: #fff;
    border-radius: 16px;
    padding: 1.4rem 1.4rem 1.5rem;
}

.ip-promo__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.78rem;
    font-weight: 600;
    color: #e9e9e9;
    margin-bottom: 0.85rem;
}

.ip-promo__eyebrow-dot {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px dotted #2ecc71;
    border-radius: 50%;
}

.ip-promo__title {
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.3;
    margin: 0 0 0.75rem;
    color: #fff;
}

.ip-promo__lede {
    font-size: 0.85rem;
    line-height: 1.6;
    color: #cfcfcf;
    margin: 0 0 1.1rem;
}

.ip-promo__btn {
    display: block;
    width: 100%;
    background: #fff;
    color: #111;
    text-align: center;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    padding: 0.85rem 1rem;
    border-radius: 999px;
    transition: background 0.2s ease, color 0.2s ease;
}

.ip-promo__btn:hover {
    background: #2ecc71;
    color: #fff;
}

/* Person photo */
.ip-aside-photo {
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: 16px;
    background: #f1f1f1;
}

.ip-aside-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Newsletter card */
.ip-newsletter {
    background: #1ec96a;
    color: #fff;
    border-radius: 16px;
    padding: 1.4rem 1.4rem 1.5rem;
}

.ip-newsletter__title {
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.35;
    margin: 0 0 1rem;
    color: #fff;
}

.ip-newsletter__input {
    width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.6);
    background: transparent;
    color: #fff;
    padding: 0.75rem 1rem;
    border-radius: 999px;
    font-size: 0.85rem;
    margin-bottom: 0.75rem;
    outline: none;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.ip-newsletter__input::placeholder {
    color: rgba(255, 255, 255, 0.85);
}

.ip-newsletter__input:focus {
    background: rgba(255, 255, 255, 0.1);
    border-color: #fff;
}

.ip-newsletter__btn {
    display: block;
    width: 100%;
    background: #fff;
    color: #111;
    border: 0;
    font-weight: 600;
    font-size: 0.9rem;
    padding: 0.85rem 1rem;
    border-radius: 999px;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

.ip-newsletter__btn:hover {
    background: #111;
    color: #fff;
}

/* ── Decorative dot cluster (mirrors screenshot) ── */
.ip-grid__dots-deco {
    position: absolute;
    top: 4rem;
    right: -2rem;
    width: 220px;
    height: 260px;
    pointer-events: none;
    background-image: radial-gradient(circle, transparent 4px, transparent 4.5px),
                      radial-gradient(circle 6px at 6px 6px, transparent 99%);
    /* Use simple dot pattern via SVG */
    background: none;
    z-index: 0;
}

.ip-grid__dots-deco::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 220 260'><g fill='none' stroke='%231ec96a' stroke-width='1.5' opacity='0.85'><circle cx='30' cy='40' r='5'/><circle cx='60' cy='20' r='5'/><circle cx='90' cy='50' r='5'/><circle cx='120' cy='30' r='5'/><circle cx='150' cy='60' r='5'/><circle cx='180' cy='40' r='5'/><circle cx='200' cy='80' r='5'/><circle cx='40' cy='80' r='5'/><circle cx='70' cy='100' r='5'/><circle cx='100' cy='90' r='5'/><circle cx='130' cy='110' r='5'/><circle cx='160' cy='100' r='5'/><circle cx='190' cy='130' r='5'/><circle cx='30' cy='130' r='5'/><circle cx='60' cy='150' r='5'/><circle cx='90' cy='140' r='5'/><circle cx='120' cy='160' r='5'/><circle cx='150' cy='150' r='5'/><circle cx='180' cy='180' r='5'/><circle cx='40' cy='190' r='5'/><circle cx='70' cy='210' r='5'/><circle cx='100' cy='200' r='5'/><circle cx='130' cy='220' r='5'/><circle cx='160' cy='210' r='5'/><circle cx='190' cy='240' r='5'/></g></svg>");
    background-repeat: no-repeat;
    background-size: contain;
}

/* =========================================
   RESPONSIVE
   ========================================= */
@media (max-width: 1024px) {
    .ip-grid__layout {
        grid-template-columns: minmax(0, 1fr) 280px;
        gap: 1.75rem;
    }

    .ip-grid__dots-deco {
        display: none;
    }
}

@media (max-width: 768px) {
    .ip-hero {
        padding-top: 5rem;
        text-align: center;
    }

    .ip-hero__inner {
        text-align: center;
    }

    .ip-hero__eyebrow {
        justify-content: center;
    }

    .ip-hero__headline,
    .ip-hero__intro {
        margin-left: auto;
        margin-right: auto;
    }

    .ip-grid__layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .ip-grid__aside {
        order: 2;
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .ip-grid__stories {
        grid-template-columns: minmax(0, 1fr);
        gap: 1.5rem;
    }
}
