/* ═══════════════════════════════════════════════════════════════
   UMWEKA ACADEMY — Programs Page CSS
   Extends the homepage design system (umweka.css tokens) — same
   --primary / --accent / --dark-3 / --border variables, same
   Sora + DM Serif Display fonts, same hero grid+glow pattern used
   on the Pricing page.
═══════════════════════════════════════════════════════════════ */

/* ── Page Hero ─────────────────────────────────────────────── */
.pg-page-hero {
    position: relative;
    overflow: hidden;
    padding: 140px 0 60px;
    text-align: center;
}
.pg-hero-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 60% at 50% -10%, rgba(13,110,253,0.2) 0%, transparent 70%),
        radial-gradient(ellipse 50% 40% at 15% 75%, rgba(245,166,35,0.1) 0%, transparent 60%),
        radial-gradient(ellipse 40% 40% at 90% 70%, rgba(111,66,193,0.12) 0%, transparent 60%);
}
.pg-hero-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse 80% 80% at 50% 40%, black 30%, transparent 100%);
}
.pg-hero-inner { position: relative; z-index: 2; max-width: 680px; margin: 0 auto; }

.pg-hero-title {
    font-family: 'DM Serif Display', serif;
    font-size: clamp(30px, 5vw, 52px);
    font-weight: 400;
    color: #fff;
    margin-bottom: 16px;
    line-height: 1.15;
}
.pg-hero-title em { font-style: italic; color: var(--accent); }
.pg-hero-sub {
    font-size: 16px;
    color: var(--text-muted);
    max-width: 540px;
    margin: 0 auto;
    line-height: 1.8;
}

/* ── Program Cards ─────────────────────────────────────────── */
.pg-grid-section { padding-bottom: 24px; }

.pg-programs-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 24px;
}
@media (max-width: 1100px) { .pg-programs-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 800px)  { .pg-programs-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px)  { .pg-programs-grid { grid-template-columns: 1fr; } }

.pg-program-card {
    display: block;
    background: var(--dark-3);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px 24px;
    text-decoration: none;
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
    position: relative;
    overflow: hidden;
}
.pg-program-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
}
.pg-program-card:hover {
    transform: translateY(-5px);
    border-color: rgba(13,110,253,0.35);
    box-shadow: 0 18px 44px rgba(0,0,0,0.4);
}

.pg-program-icon {
    width: 52px; height: 52px;
    border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    font-size: 24px;
    margin-bottom: 16px;
    background: rgba(13,110,253,0.12);
}
.pg-program-tag {
    display: inline-block;
    font-size: 10.5px;
    font-weight: 700;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.6px;
    margin-bottom: 8px;
}
.pg-program-name {
    font-size: 17px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 10px;
    line-height: 1.3;
}
.pg-program-desc {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 20px;
}

.pg-program-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 16px;
    border-top: 1px solid var(--border);
    font-size: 12.5px;
}
.pg-program-count { color: var(--text-muted); font-weight: 600; }
.pg-program-arrow {
    color: #60a5fa;
    font-weight: 700;
    transition: transform 0.2s ease;
}
.pg-program-card:hover .pg-program-arrow { transform: translateX(3px); }

/* ── Final CTA strip ──────────────────────────────────────────── */
.pg-cta-strip {
    background: var(--dark-2);
    border-top: 1px solid var(--border);
    padding: 72px 0;
    margin-top: 40px;
}
.pg-cta-inner { text-align: center; max-width: 560px; margin: 0 auto; }
.pg-cta-title {
    font-family: 'DM Serif Display', serif;
    font-size: clamp(26px, 4vw, 38px);
    font-weight: 400;
    color: #fff;
    margin-bottom: 12px;
}
.pg-cta-title em { font-style: italic; color: var(--accent); }
.pg-cta-sub { font-size: 15px; color: var(--text-muted); margin-bottom: 28px; line-height: 1.7; }
.pg-cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ── Mobile ────────────────────────────────────────────────── */
@media (max-width: 480px) {
    .pg-page-hero    { padding: 120px 0 44px; }
    .pg-program-card { padding: 24px 20px; }
    .pg-cta-strip    { padding: 56px 0; }
    .pg-cta-actions  { flex-direction: column; }
    .pg-cta-actions a { width: 100%; text-align: center; }
}
