
/* ==========================================
   EPINOZIA — MAIN HOME PAGE
   Minimalist design
========================================== */

.home-page {
    color: var(--text-dark, #0f172a);
    background: #ffffff;
}

.home-page *,
.home-page *::before,
.home-page *::after {
    box-sizing: border-box;
}

/* ==========================================
   HERO
========================================== */

.home-page .home-hero {
    width: min(92%, 1200px);
    margin: 0 auto;
    padding: clamp(65px, 7vw, 100px) 0
             clamp(65px, 7vw, 90px);
    text-align: center;
}

.home-page .home-hero-content {
    max-width: 850px;
    margin: 0 auto;
}

.home-page .home-eyebrow,
.home-page .home-section-eyebrow,
.home-page .home-card-eyebrow {
    color: var(--action-blue, #2563eb);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.6px;
    text-transform: uppercase;
}

.home-page .home-hero h1 {
    margin: 20px 0 22px;
    font-size: clamp(36px, 5vw, 60px);
    font-weight: 700;
    line-height: 1.17;
    letter-spacing: -1.6px;
}

.home-page .home-hero h1 span {
    color: var(--brand-navy, #123a63);
}

.home-page .home-intro {
    max-width: 650px;
    margin: 0 auto;
    color: var(--text-muted, #64748b);
    font-size: clamp(16px, 1.6vw, 18px);
    line-height: 1.8;
}

/* ==========================================
   SHARED SECTION HEADINGS
========================================== */

.home-page .home-section-heading {
    max-width: 760px;
    margin: 0 auto 42px;
    text-align: center;
}

.home-page .home-section-heading h2 {
    margin: 14px 0 16px;
    font-size: clamp(27px, 3vw, 36px);
    line-height: 1.25;
    letter-spacing: -.7px;
}

.home-page .home-section-heading > p:last-child {
    color: var(--text-muted, #64748b);
    font-size: 16px;
    line-height: 1.75;
}

/* ==========================================
   SUBJECTS SECTION
========================================== */

.home-page .home-subjects {
    padding: 65px 4% 85px;
    background: #f8fafc;
}

.home-page .home-subject-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 26px;
    width: min(100%, 1100px);
    margin: 0 auto;
}

/* ==========================================
   INTERACTIVE SUBJECT CARDS
========================================== */

.home-page .home-subject-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-width: 0;
    min-height: 300px;
    padding: clamp(26px, 3vw, 42px);
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #ffffff;
    color: inherit;
    text-decoration: none;
    cursor: pointer;
    transition:
        border-color .2s ease,
        box-shadow .2s ease,
        transform .2s ease;
}

.home-page .home-subject-card:visited {
    color: inherit;
}

.home-page .home-subject-card:hover {
    border-color: #60a5fa;
    box-shadow: 0 10px 28px rgba(15, 23, 42, .06);
    transform: translateY(-3px);
}

.home-page .home-subject-card:focus-visible {
    outline: 3px solid #93c5fd;
    outline-offset: 4px;
}

.home-page .home-card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    width: 100%;
    margin-bottom: 25px;
}

.home-page .home-subject-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border: 1px solid #dbeafe;
    border-radius: 10px;
    background: #eff6ff;
    color: var(--action-blue, #2563eb);
}

.home-page .home-subject-icon svg {
    width: 36px;
    height: 36px;
}

.home-page .home-subject-card h3 {
    margin: 12px 0 14px;
    color: #0f172a;
    font-size: 30px;
    font-weight: 700;
    letter-spacing: -.5px;
    transition: color .2s ease;
}

.home-page .home-subject-card:hover h3 {
    color: #2563eb;
}

.home-page .home-card-description {
    margin: 0;
    color: #64748b;
    font-size: 15px;
    line-height: 1.8;
}

/* ==========================================
   SUBJECT TOPIC LABELS
   Informational text, not buttons
========================================== */

.home-page .home-card-topics {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 18px;
    margin: 24px 0 0;
}

.home-page .home-card-topics span {
    padding: 0;
    border: none;
    border-radius: 0;
    background: transparent;
    color: #64748b;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.6;
}

/* ==========================================
   LEARNING SECTION
========================================== */

.home-page .home-learning {
    width: min(92%, 1100px);
    margin: 0 auto;
    padding: 85px 0 100px;
}

.home-page .home-learning-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 30px;
    margin-top: 42px;
}

.home-page .home-learning-item {
    min-width: 0;
    padding: 8px 4px;
}

.home-page .home-learning-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    margin-bottom: 20px;
    border: 1px solid #dbeafe;
    border-radius: 9px;
    background: #eff6ff;
    color: #2563eb;
}

.home-page .home-learning-icon svg {
    width: 23px;
    height: 23px;
}

.home-page .home-learning-item h3 {
    margin: 0 0 12px;
    color: #0f172a;
    font-size: 21px;
    font-weight: 700;
}

.home-page .home-learning-item p {
    margin: 0;
    color: #64748b;
    font-size: 15px;
    line-height: 1.75;
}

/* ==========================================
   TABLET
========================================== */

@media (max-width: 900px) {
    .home-page .home-hero {
        padding-top: 75px;
        padding-bottom: 75px;
    }

    .home-page .home-subject-grid {
        gap: 18px;
    }

    .home-page .home-subject-card {
        padding: 26px;
    }

    .home-page .home-learning-grid {
        gap: 20px;
    }
}

/* ==========================================
   MOBILE
========================================== */

@media (max-width: 650px) {
    .home-page .home-hero {
        width: calc(100% - 32px);
        padding: 60px 0 65px;
    }

    .home-page .home-hero h1 {
        font-size: clamp(32px, 8vw, 42px);
        letter-spacing: -1px;
    }

    .home-page .home-intro {
        font-size: 15px;
        line-height: 1.75;
    }

    .home-page .home-subjects {
        padding: 60px 16px 70px;
    }

    .home-page .home-section-heading {
        margin-bottom: 30px;
    }

    .home-page .home-section-heading h2 {
        font-size: 27px;
    }

    .home-page .home-subject-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .home-page .home-subject-card {
        min-height: auto;
        padding: 26px 22px;
    }

    .home-page .home-subject-card h3 {
        font-size: 27px;
    }

    .home-page .home-card-topics {
        gap: 7px 14px;
    }

    .home-page .home-learning {
        width: calc(100% - 32px);
        padding: 70px 0 80px;
    }

    .home-page .home-learning-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        margin-top: 30px;
    }

    .home-page .home-learning-item {
        padding: 0;
    }
}

/* ==========================================
   REDUCED MOTION
========================================== */


@media (prefers-reduced-motion: reduce) {
    .home-page .home-subject-card,
    .home-page .home-subject-card h3 {
        transition: none;
    }

    .home-page .home-subject-card:hover {
        transform: none;
    }
}
