/* =========================================
   Single Program – Hero (dark) + Body
   ========================================= */

.single-program {
    background: #ffffff;
}

/* ─────────────────────────────────────────
   HERO
   ───────────────────────────────────────── */
.sp-hero {
    position: relative;
    background:
        radial-gradient(circle at 85% 70%, rgba(46, 204, 113, 0.12), transparent 55%),
        #0d0d0d;
    color: #fff;
    padding-top: clamp(5rem, 10vw, 8rem);
    padding-bottom: 0;
    overflow: hidden;
}

.sp-hero__inner {
    position: relative;
    z-index: 1;
}

/* ── Back link ── */
.sp-hero__back {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: #fff;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    margin-bottom: 2.5rem;
    transition: opacity 0.2s ease;
}
.sp-hero__back:hover { opacity: 0.7; }
.sp-hero__back-arrow { font-size: 1.1rem; line-height: 1; }

/* ── Eyebrow ── */
.sp-hero__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 1.25rem;
}
.sp-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;
}

/* ── Headline + excerpt grid ── */
.sp-hero__head {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 3rem;
    align-items: start;
    margin-bottom: clamp(2rem, 5vw, 3.5rem);
}

.sp-hero__title {
    font-size: clamp(2.4rem, 5.5vw, 4.5rem);
    line-height: 1.05;
    font-weight: 800;
    margin: 0;
    letter-spacing: -0.5px;
    color: #fff;
}

.sp-hero__excerpt {
    color: #ffffff;
    font-size: 0.98rem;
    line-height: 1.75;
    padding-top: 0.6rem;
}
.sp-hero__excerpt p { margin: 0; }

/* ── Featured image ── */
.sp-hero__media {
    margin: 0;
    border-radius: 18px;
    overflow: hidden;
    aspect-ratio: 16 / 8;
    background: #1a1a1a;
}
.sp-hero__media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ── Dot grid decoration ── */
.sp-hero__dots-deco {
    position: absolute;
    bottom: -40px;
    right: -30px;
    width: 220px;
    height: 220px;
    background-image: radial-gradient(circle, #2ecc71 2px, transparent 2px);
    background-size: 14px 14px;
    opacity: 0.6;
    pointer-events: none;
    z-index: 0;
}

/* ─────────────────────────────────────────
   BODY (two columns)
   ───────────────────────────────────────── */
.sp-body {
    position: relative;
    background: linear-gradient(180deg, #e8f5ee 0%, #ffffff 35%);
    padding: clamp(3rem, 7vw, 5rem) 0 clamp(3rem, 7vw, 5rem);
    overflow: hidden;
}

.sp-body__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: clamp(2rem, 5vw, 4rem);
    align-items: start;
}

/* ── Long-form content ── */
.sp-body__content {
    color: #333;
    font-size: 0.95rem;
    line-height: 1.85;
}
.sp-body__content h2,
.sp-body__content h3 {
    color: #111;
    font-weight: 800;
    line-height: 1.25;
    margin: 2.25rem 0 0.85rem;
}
.sp-body__content h2 { font-size: clamp(1.3rem, 2.4vw, 1.6rem); }
.sp-body__content h3 { font-size: clamp(1.1rem, 2vw, 1.3rem); }
.sp-body__content > *:first-child { margin-top: 0; }
.sp-body__content p { margin: 0 0 1.1rem; color: #555; }
.sp-body__content a { color: #2ecc71; text-decoration: underline; }
.sp-body__content ul,
.sp-body__content ol { margin: 0 0 1.4rem 1.25rem; color: #555; }
.sp-body__content li { margin-bottom: 0.4rem; }
.sp-body__content img,
.sp-body__content .wp-block-image img {
    border-radius: 12px;
    display: block;
    height: auto;
    max-width: 100%;
    margin: 1.5rem 0;
}
.sp-body__content blockquote {
    border-left: 4px solid #2ecc71;
    padding: 0.25rem 0 0.25rem 1.1rem;
    margin: 1.5rem 0;
    color: #444;
    font-style: italic;
}

/* ── Sidebar ── */
.sp-body__sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    position: sticky;
    top: 100px;
}

/* ── Sidebar cards ── */
.sp-side-card {
    border-radius: 14px;
    padding: 1.6rem 1.5rem;
}
.sp-side-card--dark  { background: #161616; color: #fff; }
.sp-side-card--green { background: #2ecc71; color: #fff; }

.sp-side-card__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    font-size: 0.78rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #fff;
}
.sp-side-card__eyebrow-icon {
    display: inline-flex;
    width: 18px;
    height: 18px;
    border: 2px dotted #2ecc71;
    border-radius: 50%;
    animation: spin-slow 8s linear infinite;
    flex-shrink: 0;
}

.sp-side-card__title {
    font-size: 1.1rem;
    font-weight: 800;
    line-height: 1.3;
    margin: 0 0 0.75rem;
    color: #fff;
}
.sp-side-card__title--light { color: #fff; }

.sp-side-card__desc {
    font-size: 0.85rem;
    line-height: 1.7;
    color: #cfcfcf;
    margin: 0 0 1.2rem;
}

.sp-side-card__btn {
    display: block;
    text-align: center;
    background: #fff;
    color: #111;
    padding: 0.75rem 1.5rem;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.88rem;
    text-decoration: none;
    transition: transform 0.2s ease, background 0.2s ease;
}
.sp-side-card__btn:hover {
    background: #f0f0f0;
    transform: translateY(-2px);
}

/* ── Sidebar image ── */
.sp-side-image {
    margin: 0;
    border-radius: 14px;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background: #f3f3f3;
}
.sp-side-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ── Newsletter form ── */
.sp-newsletter {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    margin-top: 0.25rem;
}

.sp-newsletter__input {
    width: 100%;
    background: transparent;
    border: 1.5px solid rgba(255, 255, 255, 0.6);
    border-radius: 999px;
    padding: 0.75rem 1.1rem;
    font-size: 0.88rem;
    color: #fff;
    outline: none;
    transition: border-color 0.2s ease, background 0.2s ease;
}
.sp-newsletter__input::placeholder { color: rgba(255, 255, 255, 0.85); }
.sp-newsletter__input:focus {
    border-color: #fff;
    background: rgba(255, 255, 255, 0.08);
}

.sp-newsletter__btn {
    background: #fff;
    color: #111;
    border: 0;
    border-radius: 999px;
    padding: 0.75rem 1.1rem;
    font-weight: 700;
    font-size: 0.88rem;
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease;
}
.sp-newsletter__btn:hover {
    background: #f0f0f0;
    transform: translateY(-2px);
}

/* ─────────────────────────────────────────
   OTHER PROGRAMS
   ───────────────────────────────────────── */
.sp-other {
    background: #ffffff;
    padding-top: clamp(3rem, 6vw, 5rem);
    padding-bottom: clamp(2rem, 5vw, 4rem);
}

.sp-other__header {
    margin-bottom: 1.5rem;
}

.sp-other__headline {
    font-size: clamp(1.8rem, 3.5vw, 2.6rem);
    font-weight: 800;
    color: #111;
    line-height: 1.15;
    margin: 0;
    letter-spacing: -0.5px;
}

.sp-other__rows {
    gap: 2rem;
}

/* Screen reader helper (in case theme doesn't already define it) */
.screen-reader-text {
    position: absolute !important;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0,0,0,0);
    white-space: nowrap; border: 0;
}

/* ─────────────────────────────────────────
   RESPONSIVE
   ───────────────────────────────────────── */
@media (max-width: 1024px) {
    .sp-body__grid {
        grid-template-columns: minmax(0, 1fr) 300px;
    }
}

@media (max-width: 860px) {
    .sp-hero__head {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }
    .sp-body__grid {
        grid-template-columns: 1fr;
    }
    .sp-body__sidebar {
        position: static;
    }
}

@media (max-width: 480px) {
    .sp-hero__dots-deco { width: 140px; height: 140px; }
}
