/* ── Features page and Learning Hub ──────────────────────────────
   Both pages are built from the educators page's sections (educators-page.css: hero, section
   headers, stats band, card grid, banner, contact). This file adds only what those pages need
   beyond that: a second hero button, alternating feature rows, linked cards, the FAQ, a closing
   call to action, and the homepage's slimmer features section. */

/* Section backgrounds, so sections alternate without borrowing another section's class */
.pp-white {
    background: #fff;
}
.pp-tinted {
    background: var(--light-bg);
}

/* Dark hero (Features page): white text like the homepage hero, on a navy that matches the
   image's own left edge (#010e31). The image keeps the educators-hero placement and left-edge
   fade, which blends into the matching navy without a seam. */
.edu-hero.pp-hero-dark {
    background: #010e31;
}
.pp-hero-dark h1 {
    color: #fff;
}
.pp-hero-dark .edu-hero-inner p {
    color: rgba(255, 255, 255, 0.82);
}
.pp-hero-dark .edu-btn-secondary,
.pp-hero-dark .edu-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.4);
}
.pp-hero-dark .edu-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.18);
}

/* Hero: a secondary button beside the primary one */
.pp-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}
.edu-btn-secondary {
    background: #fff;
    color: var(--brand);
    border: 1.5px solid #d6ddff;
}
.edu-btn-secondary:hover {
    color: var(--brand);
    border-color: var(--brand);
    text-decoration: none;
}

/* Alternating feature rows */
.pp-rows {
    background: #fff;
}
.pp-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    align-items: center;
    max-width: 1080px;
    margin: 0 auto;
    padding: 36px 0;
}
.pp-row + .pp-row {
    border-top: 1px solid #eef0f6;
}
.pp-row.reverse .pp-row-media {
    order: -1;
}
.pp-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: var(--brand);
    margin-bottom: 10px;
}
.pp-row-text h2 {
    font-size: 28px;
    font-weight: 800;
    line-height: 1.25;
    color: var(--dark);
    margin: 0 0 12px;
    letter-spacing: -0.3px;
}
.pp-row-text > p {
    font-size: 16px;
    color: var(--gray);
    line-height: 1.7;
    margin: 0 0 16px;
}
.pp-checks {
    list-style: none;
    padding: 0;
    margin: 0;
}
.pp-checks li {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    font-size: 15px;
    color: #495057;
    line-height: 1.55;
    padding: 5px 0;
}
.pp-checks li i {
    color: var(--brand);
    margin-top: 3px;
    flex-shrink: 0;
}
.pp-row-media img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 16px;
    border: 1px solid #e3e8f2;
    box-shadow: 0 18px 50px rgba(26, 42, 108, 0.14);
}

/* A drawn panel for features that have no screenshot yet */
.pp-visual {
    border-radius: 16px;
    padding: 32px;
    min-height: 280px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 18px;
    background:
        radial-gradient(circle at 85% 15%, rgba(111, 127, 245, 0.25), transparent 45%),
        linear-gradient(135deg, #f0f3ff 0%, #e8eeff 100%);
    border: 1px solid #d6ddff;
}
.pp-visual-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--brand), var(--brand-light));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    box-shadow: 0 10px 28px rgba(65, 84, 241, 0.32);
}
.pp-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.pp-chips span {
    background: #fff;
    border: 1px solid #d6ddff;
    border-radius: 999px;
    padding: 6px 14px;
    font-size: 13px;
    font-weight: 600;
    color: #2c3e9e;
}
.pp-chips .pp-chip-mono {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

/* Cards that link somewhere (guides, cases) */
a.edu-feature-card {
    display: block;
    color: inherit;
    text-decoration: none;
}
a.edu-feature-card:hover {
    border-color: #a5b4fc;
    box-shadow: 0 10px 28px rgba(65, 84, 241, 0.12);
    transform: translateY(-2px);
}
.pp-card-iscn {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 15px;
    font-weight: 700;
    color: #2c3e9e;
    background: #eef2ff;
    border-radius: 8px;
    padding: 4px 10px;
    display: inline-block;
    margin-bottom: 14px;
}
.pp-card-more {
    display: inline-block;
    margin-top: 12px;
    font-size: 14px;
    font-weight: 700;
    color: var(--brand);
}
.edu-features-grid.pp-grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

/* Audience cards ("Where to start") */
.pp-paths-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    max-width: 960px;
    margin: 0 auto;
}
.pp-paths-grid .edu-path-card p a,
.pp-paths-grid .edu-path-list a {
    color: var(--brand);
    font-weight: 600;
}

/* FAQ */
.pp-faq {
    background: var(--light-bg);
}
.pp-faq-list {
    max-width: 820px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.pp-faq-list details {
    background: #fff;
    border: 1px solid #eef0f6;
    border-radius: 14px;
    padding: 18px 22px;
}
.pp-faq-list summary {
    cursor: pointer;
    list-style: none;
    font-size: 17px;
    font-weight: 700;
    color: var(--dark);
    display: flex;
    justify-content: space-between;
    gap: 16px;
}
.pp-faq-list summary::-webkit-details-marker {
    display: none;
}
.pp-faq-list summary::after {
    content: "+";
    font-size: 22px;
    line-height: 1;
    color: var(--brand);
}
.pp-faq-list details[open] summary::after {
    content: "\2212";
}
.pp-faq-list details p {
    font-size: 15px;
    color: var(--gray);
    line-height: 1.7;
    margin: 12px 0 0;
}
.pp-faq-list details p a {
    color: var(--brand);
    font-weight: 600;
}

/* Closing call to action */
.pp-cta {
    background:
        radial-gradient(circle at top right, rgba(97, 122, 255, 0.28), transparent 40%),
        linear-gradient(160deg, #0b1331 0%, #101a42 55%, #172459 100%);
    padding: 64px 0;
    text-align: center;
}
.pp-cta h2 {
    font-size: 32px;
    font-weight: 800;
    color: #fff;
    margin: 0 0 12px;
}
.pp-cta p {
    font-size: 17px;
    color: #c9d1f5;
    margin: 0 auto 24px;
    max-width: 620px;
    line-height: 1.6;
}
.pp-cta-note {
    display: block;
    margin-top: 12px;
    font-size: 13px;
    color: #9aa6d8;
}

/* The educators-style blue banner, with an h2 (it follows other h2 sections here) and a link */
.edu-import-text h2 {
    font-size: 26px;
    font-weight: 800;
    line-height: 1.3;
    color: #fff;
    margin: 0 0 8px;
}
.edu-import-text a.pp-banner-link {
    display: inline-block;
    margin-top: 12px;
    color: #fff;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* Homepage: the slimmer features section, with a link to the full page */
.idx-features-cta.pp-two-ctas {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    justify-content: center;
}
/* Its own class rather than .idx-btn: header.css forces every .idx-btn to white text. */
.idx-features-cta a.pp-btn-light,
.idx-features-cta a.pp-btn-light:hover,
.idx-features-cta a.pp-btn-light:focus {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    background: #fff;
    color: var(--brand);
    border: 1.5px solid #d6ddff;
    transition: border-color 0.25s;
}
.idx-features-cta a.pp-btn-light:hover {
    border-color: var(--brand);
}

@media (max-width: 992px) {
    /* Stacked: text on the navy, then the whole image below it. */
    .pp-hero-dark .edu-hero-photo { aspect-ratio: 16 / 9; object-position: right center; }
    .pp-row { grid-template-columns: 1fr; gap: 24px; padding: 28px 0; }
    .pp-row.reverse .pp-row-media { order: 0; }
    .pp-row-text h2 { font-size: 24px; }
    .pp-hero-actions { justify-content: center; }
    .pp-paths-grid { grid-template-columns: 1fr; }
}
@media (max-width: 576px) {
    .edu-features-grid.pp-grid-2 { grid-template-columns: 1fr; }
    .pp-visual { min-height: 0; padding: 24px; }
    .pp-cta { padding: 48px 0; }
    .pp-cta h2 { font-size: 26px; }
    .pp-faq-list summary { font-size: 16px; }
}
