@media (max-width: 980px) {
    .site-header {
        flex-wrap: wrap;
        justify-content: space-between;
        gap: 0;
        padding: 0 18px;
    }

    .logo-masthead {
        min-height: 112px;
        padding: 10px 18px;
    }

    .masthead-brand .brand-mark,
    .masthead-brand img {
        width: 58px;
        height: 58px;
    }

    .masthead-slogan {
        display: none;
    }

    .nav-toggle {
        display: block;
        border-color: rgba(255, 255, 255, 0.35);
        background: transparent;
    }

    .nav-toggle span {
        background: var(--white);
    }

    .main-nav {
        display: none;
        flex-basis: 100%;
        flex-direction: column;
        align-items: stretch;
        padding: 8px 0 12px;
    }

    .main-nav.open {
        display: flex;
    }

    .main-nav a {
        min-height: 42px;
        padding: 0 12px;
    }

    .header-cta {
        min-height: 42px;
        padding: 0 14px;
    }

    .hero {
        grid-template-columns: 1fr;
        min-height: 0;
    }

    .banner-slider {
        min-height: 430px;
    }

    .feature-grid,
    .blog-grid,
    .contact-layout,
    .footer-grid,
    .course-card-grid,
    .school-source-section {
        grid-template-columns: 1fr;
    }

    .course-card-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .top-contact-bar,
    .top-contact-bar div {
        justify-content: center;
        text-align: center;
    }

    .site-header {
        padding: 0 14px;
    }

    .masthead-brand small {
        display: none;
    }

    .masthead-brand strong {
        font-size: 28px;
        letter-spacing: 0.02em;
    }

    .hero {
        padding: 32px 18px;
    }

    .hero-copy h1 {
        font-size: 38px;
    }

    .banner-slider {
        min-height: 390px;
    }

    .banner-slide {
        padding: 24px;
    }

    .home-slider .banner-slide {
        padding: 28px 18px 92px;
    }

    .home-slider .slide-copy {
        max-width: none;
        padding: 22px;
    }

    .home-slider .banner-slide h1 {
        font-size: 34px;
    }

    .home-share-strip {
        display: none;
    }

    .feature-band,
    .cms-content,
    .blog-grid,
    .contact-layout,
    .article-layout,
    .cta-band,
    .home-course-section,
    .home-news-section,
    .school-source-section {
        width: min(100% - 28px, 1160px);
    }

    .feature-band,
    .cms-content,
    .blog-grid,
    .contact-layout,
    .article-layout,
    .home-course-section,
    .home-news-section,
    .school-source-section {
        padding: 46px 0;
    }

    .course-card-grid,
    .school-source-section ul,
    .news-list article {
        grid-template-columns: 1fr;
    }

    .school-source-section {
        padding: 24px;
    }

    .contact-panel,
    .contact-form,
    .feature-grid article,
    .blog-card div {
        padding: 20px;
    }

    .page-hero.compact {
        min-height: 240px;
    }

    .cta-band,
    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
    }
}
