:root {
    --dark: #2c2c25;
    --muted: #6a6a6a;
    --teal: #00A499;
    --teal-light: #9CDBD9;
    --white: #ffffff;
    --soft: #faf9f5;
}

/* ============================================================
   SECTION 2 — ECOSYSTEM SPLIT
   Mobile: stacked → lg: side by side
   ============================================================ */

.nc-ecosystem {
    background: var(--white);
}

.nc-ecosystem > * {
    max-width: 1400px;
}

.nc-ecosystem h2 {
    font-size: clamp(1.6rem, 4vw, 2.2rem);
    font-weight: 800;
    margin-bottom: 16px;
    text-align: center;
}

.nc-ecosystem__subtitle {
    max-width: 780px;
    margin: 0 auto 32px;
    font-size: clamp(1rem, 2.5vw, 1.35rem);
    font-weight: 600;
    color: var(--muted);
    text-align: center;
}

.nc-ecosystem__inner {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-bottom: 32px;
}

.nc-ecosystem__content {
    flex: 1;
    text-align: left;
    background: var(--soft);
    border: 2px solid var(--teal);
    border-radius: 14px;
    padding: 2rem 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.nc-ecosystem__intro {
    font-size: clamp(1rem, 2.5vw, 1.4rem);
    margin: 0 0 20px;
    color: var(--muted);
    line-height: 1.8;
}

.nc-ecosystem__img {
    border-radius: 14px;
    overflow: hidden;
    display: flex;
    min-height: 240px;
}

.nc-ecosystem__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

@media (min-width: 768px) {
    .nc-ecosystem__subtitle {
        margin-bottom: 40px;
    }
}

@media (min-width: 1024px) {
    .nc-ecosystem__inner {
        flex-direction: row;
        gap: 3rem;
        align-items: stretch;
        margin-bottom: 40px;
    }

    .nc-ecosystem__content {
        padding: 5rem 3.5rem;
    }

    .nc-ecosystem__img {
        flex: 0.9;
        min-height: unset;
    }
}

/* ============================================================
   SECTION 3 — FILTER GRID OVERRIDE
   This page only has 2 filters (vs 4 on the library page),
   so cap the grid at 2 columns instead of 4.
   ============================================================ */

@media (min-width: 1024px) {
    .nc-filter-grid {
        grid-template-columns: repeat(2, 1fr);
        max-width: 600px;
        margin-left: auto;
        margin-right: auto;
    }
}

/* ============================================================
   RESOURCE CARDS (rendered inside the AJAX partial)
   Mobile: 1 col → sm: 2 col → lg: 3 col
   ============================================================ */

.nc-resource-group {
    max-width: 1200px;
    margin: 0 auto 3rem;
    text-align: left;
}

.nc-resource-group:last-child {
    margin-bottom: 0;
}

.nc-resource-group__title {
    font-size: clamp(1.2rem, 3vw, 1.5rem);
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 1.25rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--teal-light);
}

.nc-resource-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
}

.nc-resource-card {
    border: 1px solid #e0e0d8;
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.2s ease;
}

.nc-resource-card:hover {
    box-shadow: 0 4px 20px rgba(0, 164, 153, 0.15);
}

.nc-resource-card__img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
}

.nc-resource-card__img--placeholder {
    background: var(--teal-light);
}

.nc-resource-card__body {
    padding: 1.25rem 1.5rem 1.5rem;
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 0.6rem;
}

.nc-resource-card__title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--dark);
    margin: 0;
}

.nc-resource-card__desc {
    color: var(--muted);
    font-size: 0.93rem;
    line-height: 1.6;
    flex: 1;
    margin: 0;
}

.nc-resource-card__body .nc-cta {
    align-self: flex-start;
    margin-top: auto;
    padding: 10px 22px;
    font-size: 0.9rem;
}

@media (min-width: 480px) {
    .nc-resource-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

@media (min-width: 1024px) {
    .nc-resource-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ============================================================
   SECTION 5 — HOW TO USE
   Mobile: 1 col → md: 2 col → lg: 4 col
   Removed the left/transform breakout — caused horizontal scroll
   ============================================================ */

.nc-how-to {
    background: var(--white);
    padding: 48px 20px;
    text-align: center;
}

.nc-how-to__inner {
    max-width: 1400px;
    margin: 0 auto;
}

.nc-how-to h2 {
    font-size: clamp(1.6rem, 4vw, 2.2rem);
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 1rem;
}

.nc-how-to__intro {
    color: var(--muted);
    font-size: clamp(1rem, 2.5vw, 1.05rem);
    line-height: 1.7;
    margin-bottom: 0.5rem;
    max-width: 860px;
    margin-left: auto;
    margin-right: auto;
}

.nc-how-to__sub {
    color: var(--dark);
    font-weight: 600;
    font-size: 1.05rem;
    margin-bottom: 1.5rem;
}

.nc-how-to__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-bottom: 2.5rem;
    text-align: left;
}

.nc-how-to__item {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    background: var(--soft);
    border-radius: 10px;
    padding: 1.1rem 1.25rem;
    border-left: 4px solid var(--teal);
}

.nc-how-to__icon {
    color: var(--teal);
    font-size: 0.8rem;
    flex-shrink: 0;
}

.nc-how-to__item p {
    color: var(--dark);
    font-size: 0.98rem;
    line-height: 1.6;
    margin: 0;
}

.nc-how-to__tagline {
    margin: 0 auto;
    padding: 1.25rem 1.5rem;
    border-left: none;
    border-top: 2px solid rgba(0, 164, 153, 0.25);
    border-bottom: 2px solid rgba(0, 164, 153, 0.25);
    font-size: clamp(1rem, 2.5vw, 1.15rem);
    font-weight: 700;
    color: var(--dark);
    font-style: italic;
    line-height: 1.6;
    max-width: 860px;
}

@media (min-width: 768px) {
    .nc-how-to {
        padding: 60px 32px;
    }

    .nc-how-to__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.25rem;
        margin-bottom: 3rem;
    }
}

@media (min-width: 1024px) {
    .nc-how-to {
        padding: 80px 32px;
    }

    .nc-how-to__grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* ============================================================
   SECTION 6 — EXPLORE MORE
   Mobile: 1 col → md: 2 col
   ============================================================ */

.nc-explore-more {
    background: var(--soft);
    padding: 60px 20px;
    text-align: center;
}

.nc-explore-more__title {
    font-size: clamp(1.6rem, 4vw, 2.2rem);
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 2rem;
}

.nc-explore-more__boxes {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    max-width: 900px;
    margin: 0 auto;
}

.nc-explore-more__box {
    background: var(--white);
    border: 1px solid #e0e0d8;
    border-top: 4px solid var(--teal);
    border-radius: 10px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    text-align: left;
}

.nc-explore-more__box h3 {
    font-size: 1.2rem;
    color: var(--dark);
    margin: 0;
}

.nc-explore-more__box p {
    color: var(--muted);
    font-size: 0.95rem;
    line-height: 1.7;
    flex: 1;
    margin: 0;
}

.nc-explore-more__box .nc-cta {
    align-self: center;
    margin-top: auto;
}

@media (min-width: 768px) {
    .nc-explore-more {
        padding: 100px 32px;
    }

    .nc-explore-more__title {
        margin-bottom: 1rem;
    }

    .nc-explore-more__boxes {
        grid-template-columns: repeat(2, 1fr);
        gap: 32px;
    }

    .nc-explore-more__box {
        padding: 2rem;
    }
}
