﻿/* ============================================================================
   READING.CSS — Elementary Reading Program Page
   ============================================================================ */

:root {
    --rp-primary:   #10b981;
    --rp-dark:      #6ee7b7;
    --rp-light:     #0f2920;
    --rp-accent:    #34d399;
    --rp-bg:        #0d1117;
    --rp-text:      #e2e8f0;
    --rp-muted:     #8894a7;
    --rp-card-bg:   #161b22;
    --rp-shadow:    0 4px 16px rgba(16, 185, 129, 0.3);
    --rp-radius:    1rem;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--rp-bg);
    color: var(--rp-text);
    line-height: 1.6;
}

/* ============================================================================
   SHARED LAYOUT
   ============================================================================ */

.rp-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.rp-section {
    padding: 5rem 0;
}

.rp-section-title {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 800;
    text-align: center;
    color: var(--rp-text);
    margin-bottom: 0.5rem;
}

.rp-section-subtitle {
    text-align: center;
    color: var(--rp-muted);
    font-size: 1.05rem;
    margin-bottom: 3rem;
}

/* ============================================================================
   HERO
   ============================================================================ */

.rp-hero {
    background: linear-gradient(135deg, #064e3b 0%, #065f46 40%, #047857 100%);
    color: #ffffff;
    padding: 6rem 1.5rem 5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.rp-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%2310b981' fill-opacity='0.06'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}

.rp-hero-inner {
    position: relative;
    max-width: 860px;
    margin: 0 auto;
}

.rp-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(16, 185, 129, 0.25);
    border: 1px solid rgba(52, 211, 153, 0.4);
    color: #a7f3d0;
    padding: 0.4rem 1rem;
    border-radius: 9999px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
}

.rp-hero h1 {
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 1rem;
}

.rp-subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: #a7f3d0;
    margin-bottom: 0.5rem;
}

.rp-tagline {
    font-size: 1rem;
    color: rgba(167, 243, 208, 0.7);
    font-style: italic;
    margin-bottom: 1.75rem;
}

.rp-meta {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    color: #d1fae5;
    font-size: 0.9rem;
    margin-bottom: 2.5rem;
}

.rp-meta span {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.rp-stats-row {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    border-top: 1px solid rgba(167, 243, 208, 0.2);
    padding-top: 2rem;
}

.rp-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 120px;
}

.rp-stat-number {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--rp-accent);
    line-height: 1;
}

.rp-stat-label {
    font-size: 0.8rem;
    color: #a7f3d0;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-top: 0.25rem;
}

/* ============================================================================
   OVERVIEW
   ============================================================================ */

.rp-overview {
    background: #161b22;
    border-bottom: 1px solid #30363d;
}

.rp-overview-text {
    max-width: 760px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.rp-overview-text p {
    font-size: 1.05rem;
    color: var(--rp-muted);
    line-height: 1.8;
}

.rp-overview-text strong {
    color: var(--rp-primary);
}

/* ============================================================================
   IMPACT STATS GRID
   ============================================================================ */

.rp-impact-stats {
    background: var(--rp-bg);
}

.rp-impact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 1.5rem;
}

.rp-impact-card {
    background: var(--rp-card-bg);
    border-radius: var(--rp-radius);
    padding: 2rem 1.5rem;
    text-align: center;
    box-shadow: var(--rp-shadow);
    border-top: 3px solid var(--rp-primary);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.rp-impact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(16, 185, 129, 0.18);
}

.rp-impact-icon {
    font-size: 1.8rem;
    color: var(--rp-primary);
    margin-bottom: 0.75rem;
}

.rp-impact-number {
    font-size: 2.4rem;
    font-weight: 800;
    color: var(--rp-dark);
    line-height: 1;
    margin-bottom: 0.4rem;
}

.rp-impact-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--rp-text);
    margin-bottom: 0.75rem;
}

.rp-impact-card p {
    font-size: 0.9rem;
    color: var(--rp-muted);
    line-height: 1.6;
}

/* ============================================================================
   ACTIVITIES
   ============================================================================ */

.rp-activities {
    background: #161b22;
}

.rp-activities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.75rem;
}

.rp-activity-card {
    background: var(--rp-bg);
    border-radius: var(--rp-radius);
    padding: 2rem;
    border: 1px solid #30363d;
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.rp-activity-card:hover {
    transform: translateY(-5px);
    border-color: var(--rp-primary);
    box-shadow: var(--rp-shadow);
}

.rp-activity-icon {
    width: 52px;
    height: 52px;
    background: var(--rp-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: var(--rp-dark);
    margin-bottom: 1.25rem;
}

.rp-activity-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--rp-text);
    margin-bottom: 0.75rem;
}

.rp-activity-card p {
    font-size: 0.95rem;
    color: var(--rp-muted);
    line-height: 1.7;
    margin-bottom: 1.25rem;
}

.rp-activity-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.rp-tag {
    background: var(--rp-light);
    color: var(--rp-dark);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
}

/* ============================================================================
   PROCESS / HOW IT WORKS
   ============================================================================ */

.rp-process {
    background: var(--rp-bg);
}

.rp-process-steps {
    display: flex;
    flex-direction: column;
    gap: 0;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.rp-process-steps::before {
    content: '';
    position: absolute;
    left: 2.2rem;
    top: 1rem;
    bottom: 1rem;
    width: 2px;
    background: linear-gradient(to bottom, var(--rp-primary), var(--rp-accent));
    border-radius: 2px;
}

.rp-step {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
    padding: 1.5rem 0;
    position: relative;
}

.rp-step-number {
    flex-shrink: 0;
    width: 4.4rem;
    height: 4.4rem;
    background: var(--rp-primary);
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    box-shadow: 0 0 0 4px var(--rp-bg), 0 0 0 6px var(--rp-primary);
    z-index: 1;
}

.rp-step-content {
    padding-top: 0.75rem;
}

.rp-step-content h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--rp-text);
    margin-bottom: 0.5rem;
}

.rp-step-content p {
    font-size: 0.95rem;
    color: var(--rp-muted);
    line-height: 1.7;
}

/* ============================================================================
   SKILLS / REFLECTION
   ============================================================================ */

.rp-skills {
    background: #161b22;
}

.rp-quote {
    font-size: clamp(1.05rem, 2vw, 1.25rem);
    font-style: italic;
    color: var(--rp-dark);
    border-left: 4px solid var(--rp-primary);
    padding: 1.25rem 1.75rem;
    background: var(--rp-light);
    border-radius: 0 var(--rp-radius) var(--rp-radius) 0;
    margin: 0 auto 3rem;
    max-width: 700px;
    line-height: 1.7;
}

.rp-values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.rp-value-card {
    background: var(--rp-bg);
    border-radius: var(--rp-radius);
    padding: 1.75rem;
    border: 1px solid #30363d;
    text-align: center;
    transition: box-shadow 0.25s ease, border-color 0.25s ease;
}

.rp-value-card:hover {
    border-color: var(--rp-primary);
    box-shadow: var(--rp-shadow);
}

.rp-value-card i {
    font-size: 1.75rem;
    color: var(--rp-primary);
    display: block;
    margin-bottom: 1rem;
}

.rp-value-card h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--rp-text);
    margin-bottom: 0.6rem;
}

.rp-value-card p {
    font-size: 0.9rem;
    color: var(--rp-muted);
    line-height: 1.65;
}

.rp-skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    justify-content: center;
    padding-top: 1rem;
}

.rp-skill-tag {
    background: #f1f5f9;
    color: var(--rp-text);
    font-size: 0.82rem;
    font-weight: 600;
    padding: 0.4rem 1rem;
    border-radius: 9999px;
    border: 1px solid #30363d;
    transition: background 0.2s ease, color 0.2s ease;
}

.rp-skill-tag:hover {
    background: var(--rp-light);
    color: var(--rp-dark);
    border-color: var(--rp-accent);
}

/* ============================================================================
   RESPONSIVE
   ============================================================================ */

@media (max-width: 768px) {
    .rp-hero {
        padding: 4rem 1.25rem 3rem;
    }

    .rp-stats-row {
        gap: 1.25rem;
    }

    .rp-section {
        padding: 3.5rem 0;
    }

    .rp-process-steps::before {
        display: none;
    }

    .rp-step {
        flex-direction: column;
        gap: 0.75rem;
        padding: 1.25rem 0;
    }

    .rp-step-number {
        box-shadow: none;
    }

    .rp-step-content {
        padding-top: 0;
    }
}

@media (max-width: 480px) {
    .rp-stats-row {
        grid-template-columns: 1fr 1fr;
        display: grid;
        gap: 1rem;
    }

    .rp-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .rp-impact-card,
    .rp-activity-card,
    .rp-value-card {
        transition: none;
    }
}
