.parenting-pathway-section {
    border-block: 1px solid var(--border-subtle, rgba(44, 53, 57, 0.08));
    background: linear-gradient(135deg, rgba(118, 151, 132, 0.12) 0%, rgba(250, 248, 245, 0.85) 50%, rgba(204, 107, 82, 0.08) 100%);
}

.pathway-inner,
.pathway-news-inner,
.catalog-inner {
    width: min(100% - 2rem, 76rem);
    margin-inline: auto;
}

.pathway-heading,
.catalog-heading {
    max-width: 48rem;
    margin-inline: auto;
    text-align: center;
}

.pathway-eyebrow {
    margin-bottom: 0.75rem;
    color: var(--accent, #769784);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.pathway-heading h2,
.catalog-heading h1,
.pathway-news h2 {
    margin-bottom: 0.9rem;
    color: var(--ink, #2C3539);
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    line-height: 1.25;
}

.pathway-heading > p:last-child,
.catalog-heading > p:last-child {
    color: var(--ink-muted, #5C6C75);
    font-size: 1.05rem;
}

.pathway-form {
    max-width: 58rem;
    margin: 2rem auto 2.75rem;
    padding: 1.75rem;
    border: 1px solid var(--border-subtle, rgba(44, 53, 57, 0.08));
    border-radius: var(--radius-md, 16px);
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px);
    box-shadow: var(--shadow-soft, 0 4px 20px -2px rgba(36, 48, 54, 0.05));
}

.pathway-controls {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem;
}

.pathway-controls label {
    display: grid;
    gap: 0.45rem;
    color: var(--ink, #2C3539);
    font-size: 0.9rem;
    font-weight: 700;
}

.pathway-controls select {
    width: 100%;
    min-height: 3rem;
    border: 1px solid var(--border-medium, rgba(44, 53, 57, 0.14));
    border-radius: var(--radius-sm, 10px);
    background: var(--surface, #fff);
    color: var(--ink, #2C3539);
    padding: 0.65rem 0.85rem;
    font: 500 1rem/1.35 'Nunito', sans-serif;
    transition: var(--transition, all 0.22s ease);
}

.pathway-controls select:focus-visible,
.pathway-submit:focus-visible,
.pathway-topic-link:focus-visible {
    outline: 3px solid var(--secondary, #CC6B52);
    outline-offset: 3px;
}

.pathway-form-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 1.5rem;
}

.pathway-summary {
    color: var(--ink-muted, #5C6C75);
    font-size: 0.9rem;
}

.pathway-submit {
    min-height: 2.85rem;
    border: 0;
    border-radius: var(--radius-full, 9999px);
    background: var(--primary, #4A6B7C);
    color: #fff;
    padding: 0.65rem 1.35rem;
    font: 700 0.95rem/1.2 'Nunito', sans-serif;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    transition: var(--transition, all 0.22s ease);
}

.pathway-submit:hover {
    background: var(--primary-hover, #385564);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.16);
}

.pathway-topics-heading {
    margin-bottom: 0.75rem;
    color: var(--ink, #2C3539);
    font-size: 1.35rem;
}

.pathway-topic-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    border-top: 1px solid var(--border-medium, rgba(44, 53, 57, 0.14));
}

.pathway-topic-link {
    display: grid;
    grid-template-columns: 2rem minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.55rem;
    min-height: 4.25rem;
    border-bottom: 1px solid var(--border-subtle, rgba(44, 53, 57, 0.08));
    color: var(--ink, #2C3539);
    padding: 0.65rem 0.6rem;
    text-decoration: none;
    transition: var(--transition, all 0.22s ease);
}

.pathway-topic-link:hover {
    background: rgba(255, 255, 255, 0.85);
    color: var(--primary, #4A6B7C);
    padding-inline-start: 0.85rem;
}

.pathway-topic-number {
    color: var(--ink-faint, #8E9EA8);
    font-size: 0.78rem;
    font-variant-numeric: tabular-nums;
}

.pathway-topic-arrow {
    color: var(--accent, #769784);
    font-size: 0.95rem;
    transition: transform 0.2s ease;
}

.pathway-topic-link:hover .pathway-topic-arrow {
    transform: translateX(3px);
}

.pathway-news {
    border-bottom: 1px solid var(--border-subtle, rgba(44, 53, 57, 0.08));
    background: var(--surface, #ffffff);
    padding-block: 3.5rem;
}

.pathway-news-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(15rem, 0.65fr);
    align-items: center;
    gap: 2rem;
}

.pathway-news h2 {
    font-size: 1.9rem;
}

.pathway-news p:last-child {
    max-width: 38rem;
    margin-bottom: 0;
    color: var(--ink-muted, #5C6C75);
}

.pathway-news-note {
    border: 1px solid rgba(181, 82, 57, 0.2);
    border-radius: var(--radius-sm, 10px);
    background: rgba(181, 82, 57, 0.05);
    color: var(--ink, #2C3539);
    padding: 1rem 1.25rem;
}

.catalog-section {
    padding-block: 3.25rem 5rem;
    background: var(--light, #FAF8F5);
}

.catalog-heading {
    padding-block: 3rem 1rem;
}

.catalog-topic-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 2.5rem;
    margin-top: 2.5rem;
}

.pathway-topic-empty {
    min-height: 10rem;
    border-top: 2px solid var(--accent, #769784);
    padding-block: 1.25rem 1.6rem;
    scroll-margin-top: 7rem;
}

.pathway-topic-empty h2 {
    margin-bottom: 0.65rem;
    color: var(--ink, #2C3539);
    font-size: 1.3rem;
    line-height: 1.35;
}

.pathway-empty-message {
    max-width: 34rem;
    margin: 0;
    color: var(--ink-muted, #5C6C75);
    line-height: 1.65;
}

@media (max-width: 900px) {
    .pathway-topic-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .pathway-news-inner {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

@media (max-width: 600px) {
    .pathway-form {
        padding: 1rem;
    }

    .pathway-controls,
    .catalog-topic-grid {
        grid-template-columns: 1fr;
    }

    .pathway-form-footer {
        align-items: stretch;
        flex-direction: column;
    }

    .pathway-submit {
        width: 100%;
    }

    .pathway-topic-grid {
        grid-template-columns: 1fr;
    }

    .pathway-topic-link {
        min-height: 3.75rem;
    }
}

html[data-theme="dark"] .parenting-pathway-section {
    border-color: #34414b;
    background: linear-gradient(135deg, #1b292b 0%, #1a242d 60%, #2b2522 100%);
}

html[data-theme="dark"] .pathway-form,
html[data-theme="dark"] .pathway-news {
    border-color: #34414b;
    background: #202a34;
}

html[data-theme="dark"] .pathway-heading h2,
html[data-theme="dark"] .catalog-heading h1,
html[data-theme="dark"] .pathway-news h2,
html[data-theme="dark"] .pathway-topics-heading,
html[data-theme="dark"] .pathway-topic-link,
html[data-theme="dark"] .pathway-topic-empty h2 {
    color: #e1e7ed;
}

html[data-theme="dark"] .pathway-heading > p:last-child,
html[data-theme="dark"] .catalog-heading > p:last-child,
html[data-theme="dark"] .pathway-summary,
html[data-theme="dark"] .pathway-news p:last-child,
html[data-theme="dark"] .pathway-empty-message {
    color: #bac5cf;
}

html[data-theme="dark"] .pathway-controls label,
html[data-theme="dark"] .pathway-news-note {
    color: #d3dbe1;
}

html[data-theme="dark"] .pathway-controls select {
    border-color: #53616d;
    background: #202a34;
    color: #e1e7ed;
}

html[data-theme="dark"] .pathway-topic-grid,
html[data-theme="dark"] .pathway-topic-link {
    border-color: #3c4954;
}

html[data-theme="dark"] .pathway-topic-link:hover {
    background: #26323b;
}

html[data-theme="dark"] .catalog-section {
    background: #1a242d;
}
