/* Astronomy Resources ---------------------------------------------------- */
.resources-hero {
    background:
        radial-gradient(circle at 18% 18%, rgba(78, 107, 255, 0.28), transparent 34%),
        radial-gradient(circle at 84% 20%, rgba(119, 80, 190, 0.24), transparent 30%),
        linear-gradient(135deg, #0b1022 0%, #151c36 55%, #0c1328 100%);
    color: #fff;
    padding: clamp(64px, 9vw, 112px) 0 clamp(54px, 7vw, 88px);
    overflow: hidden;
    position: relative;
}

.resources-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image:
        radial-gradient(circle, rgba(255,255,255,.72) 0 1px, transparent 1.4px),
        radial-gradient(circle, rgba(255,255,255,.45) 0 1px, transparent 1.3px);
    background-size: 92px 92px, 137px 137px;
    background-position: 18px 26px, 61px 11px;
    opacity: .22;
}

.resources-hero-inner {
    position: relative;
    z-index: 1;
    max-width: 1020px;
}

.resources-eyebrow,
.resources-kicker {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    text-transform: uppercase;
    letter-spacing: .12em;
    font-size: .78rem;
    font-weight: 800;
}

.resources-eyebrow {
    color: #c8d1ff;
    margin-bottom: 1rem;
}

.resources-hero h1 {
    margin: 0 0 1rem;
    color: #fff;
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(2.7rem, 7vw, 5.4rem);
    line-height: .98;
    letter-spacing: -.04em;
}

.resources-hero > .container > p,
.resources-hero-inner > p {
    max-width: 830px;
    margin: 0;
    color: rgba(255,255,255,.78);
    font-size: clamp(1rem, 2vw, 1.2rem);
    line-height: 1.75;
}

.resources-jump {
    display: flex;
    flex-wrap: wrap;
    gap: .65rem;
    margin-top: 2rem;
}

.resources-jump a {
    display: inline-flex;
    align-items: center;
    min-height: 42px;
    padding: .6rem .9rem;
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 999px;
    background: rgba(255,255,255,.07);
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    font-size: .88rem;
    backdrop-filter: blur(8px);
    transition: transform .18s ease, background .18s ease, border-color .18s ease;
}

.resources-jump a:hover,
.resources-jump a:focus-visible {
    color: #fff;
    background: rgba(255,255,255,.14);
    border-color: rgba(255,255,255,.34);
    transform: translateY(-1px);
}

.resources-section {
    padding: clamp(58px, 7vw, 88px) 0;
    scroll-margin-top: 90px;
}

.resources-section-alt {
    background: #f7f8fc;
    border-top: 1px solid #edf0f6;
    border-bottom: 1px solid #edf0f6;
}

.resources-heading {
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr);
    gap: 1rem;
    align-items: start;
    max-width: 900px;
    margin-bottom: 2rem;
}

.resources-section-icon,
.resources-subheading > span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    border-radius: 16px;
    background: #11182d;
    color: #d8e0ff;
    box-shadow: 0 10px 24px rgba(13, 21, 45, .11);
}

.resources-kicker {
    color: #5f69a8;
    margin: 0 0 .45rem;
}

.resources-heading h2,
.resources-subheading h3,
.resources-final-card h2 {
    font-family: 'Space Grotesk', sans-serif;
    color: #11182d;
    letter-spacing: -.025em;
}

.resources-heading h2 {
    margin: 0 0 .5rem;
    font-size: clamp(1.75rem, 3.4vw, 2.55rem);
}

.resources-heading p:last-child,
.resources-subheading p {
    margin: 0;
    color: #667085;
    line-height: 1.7;
}

.resources-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.resources-grid-four {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.resources-grid-two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 900px;
}

.resource-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: 100%;
    padding: 1.35rem;
    border: 1px solid #e4e8f0;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 10px 30px rgba(20, 31, 58, .045);
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.resource-card:hover {
    transform: translateY(-2px);
    border-color: #ced5e5;
    box-shadow: 0 16px 38px rgba(20, 31, 58, .085);
}

.resource-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    margin-bottom: 1rem;
}

.resource-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    flex: 0 0 auto;
    border-radius: 13px;
    background: #eef1ff;
    color: #4855a7;
    font-size: 1.05rem;
}

.resource-badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: .4rem;
}

.resource-tag,
.resource-level {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: .27rem .62rem;
    border-radius: 999px;
    font-size: .72rem;
    line-height: 1;
    font-weight: 800;
    white-space: nowrap;
}

.resource-tag {
    color: #4f5871;
    background: #f1f3f7;
}

.resource-level-beginner {
    color: #176448;
    background: #e7f7ef;
}

.resource-level-intermediate {
    color: #805314;
    background: #fff3d8;
}

.resource-level-advanced {
    color: #80404d;
    background: #fbe9ed;
}

.resource-card h3 {
    margin: 0 0 .65rem;
    color: #151c31;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.1rem;
    line-height: 1.3;
}

.resource-card p {
    margin: 0 0 1.1rem;
    color: #687184;
    line-height: 1.65;
    font-size: .92rem;
}

.resource-link {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    margin-top: auto;
    color: #4351a2;
    font-weight: 800;
    text-decoration: none;
    font-size: .86rem;
}

.resource-link:hover,
.resource-link:focus-visible {
    color: #273373;
    text-decoration: underline;
}

.resources-note {
    display: flex;
    align-items: flex-start;
    gap: .8rem;
    max-width: 980px;
    margin: -.25rem 0 1.5rem;
    padding: 1rem 1.1rem;
    border-radius: 15px;
    font-size: .88rem;
    line-height: 1.6;
}

.resources-note i {
    margin-top: .18rem;
}

.resources-note p {
    margin: 0;
}

.resources-note-retailer {
    color: #635526;
    background: #fff8df;
    border: 1px solid #f1df9d;
}

.resources-subsection {
    margin-top: 3rem;
    padding-top: 2.4rem;
    border-top: 1px solid #e8ebf2;
}

.resources-subheading {
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr);
    gap: .9rem;
    align-items: start;
    max-width: 760px;
    margin-bottom: 1.35rem;
}

.resources-subheading > span {
    width: 46px;
    height: 46px;
    border-radius: 14px;
}

.resources-subheading h3 {
    margin: 0 0 .3rem;
    font-size: 1.45rem;
}

.resources-level-key {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .45rem .65rem;
    margin: -.25rem 0 1.5rem;
    color: #747d90;
    font-size: .8rem;
}

.resources-level-key > span:not(.resource-level) {
    margin-right: .45rem;
}

.resources-final {
    padding: 0 0 clamp(64px, 8vw, 100px);
    background: #fff;
}

.resources-final-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    padding: clamp(1.6rem, 4vw, 2.5rem);
    border-radius: 24px;
    background: linear-gradient(135deg, #11182d, #222d58);
    color: #fff;
    box-shadow: 0 18px 45px rgba(16, 24, 48, .15);
}

.resources-final-card .resources-kicker {
    color: #bfc9ff;
}

.resources-final-card h2 {
    margin: .25rem 0 .55rem;
    color: #fff;
    font-size: clamp(1.6rem, 3vw, 2.25rem);
}

.resources-final-card p:last-child {
    max-width: 720px;
    margin: 0;
    color: rgba(255,255,255,.72);
    line-height: 1.65;
}

.resources-final-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .65rem;
    flex: 0 0 auto;
}

.resources-final-card .btn-outline-light:hover {
    color: #11182d;
}

.resources-disclaimer {
    max-width: 1000px;
    margin: 1.25rem auto 0;
    color: #858da0;
    text-align: center;
    font-size: .79rem;
    line-height: 1.6;
}

@media (max-width: 1100px) {
    .resources-grid,
    .resources-grid-four {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .resources-hero {
        padding-top: 54px;
    }

    .resources-jump {
        gap: .5rem;
    }

    .resources-jump a {
        font-size: .8rem;
        min-height: 38px;
        padding: .52rem .75rem;
    }

    .resources-heading {
        grid-template-columns: 44px minmax(0, 1fr);
        gap: .8rem;
    }

    .resources-section-icon {
        width: 44px;
        height: 44px;
        border-radius: 13px;
    }

    .resources-grid,
    .resources-grid-four,
    .resources-grid-two {
        grid-template-columns: 1fr;
    }

    .resources-final-card {
        align-items: flex-start;
        flex-direction: column;
    }

    .resources-final-actions {
        width: 100%;
    }

    .resources-final-actions .btn {
        flex: 1 1 210px;
    }
}

@media (max-width: 480px) {
    .resources-section {
        padding: 52px 0;
    }

    .resource-card {
        padding: 1.15rem;
        border-radius: 17px;
    }

    .resources-level-key {
        display: grid;
        grid-template-columns: auto 1fr;
        align-items: center;
    }

    .resources-level-key > span:not(.resource-level) {
        margin-right: 0;
    }
}

