@media (max-width: 1260px) {
    .header-inner {
        gap: 22px;
    }

    .main-nav {
        gap: 18px;
        font-size: 13px;
    }

    .hero-grid {
        grid-template-columns: minmax(300px, 1fr);
    }
}

@media (max-width: 1080px) {
    .header-inner {
        grid-template-columns: auto auto;
    }

    .menu-toggle {
        display: block;
        justify-self: end;
    }

    .main-nav,
    .header-actions {
        display: none;
    }

    .main-nav.open,
    .header-actions.open {
        display: flex;
        grid-column: 1 / -1;
        justify-content: flex-start;
    }

    .main-nav.open {
        flex-wrap: wrap;
        gap: 18px 28px;
        padding-bottom: 8px;
    }

    .main-nav.open a {
        padding: 8px 0;
    }

    .main-nav.open .nav-dropdown-toggle {
        padding: 8px 0;
    }

    .main-nav.open a::after {
        bottom: 0;
    }

    .nav-dropdown {
        width: 100%;
    }

    .nav-dropdown-menu {
        position: static;
        min-width: 0;
        width: 100%;
        margin-top: 4px;
        box-shadow: none;
        transform: none;
    }

    .materials-menu.is-open .nav-dropdown-menu {
        transform: none;
    }

    .header-actions.open {
        padding-bottom: 18px;
    }

    .hero-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .quick-grid,
    .audience-grid,
    .course-grid,
    .courses-showcase-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .home-course-card {
        flex-basis: calc((100% - 18px) / 2);
        width: calc((100% - 18px) / 2);
        min-width: 0;
        max-width: none;
    }

    .course-detail-card,
    .course-detail-columns,
    .course-hero-grid,
    .course-benefits-grid,
    .course-info-grid,
    .course-pricing-grid,
    .course-meta-grid,
    .course-tariffs {
        grid-template-columns: 1fr;
    }

    .course-hero-content h1 {
        font-size: clamp(34px, 7vw, 52px);
    }

    .contact-card {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        width: min(760px, 100%);
    }

    .register-success-steps {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

}

@media (max-width: 980px) {
    .news-grid,
    .reviews-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .container {
        width: min(100% - 28px, 1280px);
    }

    .header-inner {
        min-height: 76px;
        row-gap: 10px;
    }

    .brand {
        font-size: 19px;
    }

    .courses-showcase-grid {
        grid-template-columns: 1fr;
    }

    .home-courses-viewport {
        margin-right: -14px;
        padding-right: 14px;
        overflow: visible;
    }

    .home-courses-carousel {
        padding: 0;
    }

    .home-courses-track {
        flex-direction: row;
        gap: 14px;
        padding: 8px 0 12px;
        overflow-x: auto;
        overflow-y: visible;
        scroll-padding-inline: 0;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
    }

    .home-course-card {
        flex: 0 0 min(86vw, 360px);
        width: min(86vw, 360px);
        min-width: min(86vw, 360px);
        max-width: min(86vw, 360px);
        height: auto;
        min-height: 0;
        scroll-snap-align: start;
    }

    .home-course-title {
        display: block;
        overflow: visible;
        -webkit-line-clamp: unset;
    }

    .home-carousel-arrow {
        display: none;
    }

    .register-success-hero {
        padding: 46px 0 58px;
    }

    .register-success-card {
        padding: 28px 20px;
        border-radius: 22px;
    }

    .register-success-subtitle {
        font-size: 16px;
    }

    .register-success-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .register-success-button,
    .register-success-button-secondary {
        width: 100%;
    }

    .register-success-steps {
        grid-template-columns: 1fr;
    }

    .register-success-step {
        min-height: 0;
        padding: 20px;
    }

    .register-success-step .register-success-button,
    .register-success-step .register-success-button-secondary {
        width: 100%;
    }

    .main-nav.open {
        flex-direction: column;
        flex-wrap: nowrap;
        align-items: stretch;
        gap: 4px;
        padding: 0 0 4px;
    }

    .main-nav.open a,
    .main-nav.open .nav-dropdown-toggle {
        width: 100%;
        padding: 7px 0;
        text-align: left;
    }

    .nav-dropdown {
        width: 100%;
    }

    .nav-dropdown-menu {
        display: none;
        padding: 4px 0 2px;
        border: 0;
        background: transparent;
        backdrop-filter: none;
    }

    .materials-menu.is-open .nav-dropdown-menu {
        display: grid;
        gap: 2px;
    }

    .nav-dropdown-menu a {
        padding: 7px 12px !important;
    }

    .header-actions.open {
        gap: 10px;
        padding-bottom: 12px;
    }

    .hero {
        min-height: auto;
        padding: 30px 0 16px;
    }

    .hero-grid {
        min-height: auto;
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .hero::before {
        background-position: center, 58% top;
        background-size: cover, 118% auto;
        opacity: 0.34;
    }

    h1 {
        font-size: 42px;
    }

    .hero-copy {
        max-width: 100%;
        min-width: 0;
    }

    .hero-copy h1 {
        max-width: 100%;
        font-size: clamp(30px, 8.4vw, 36px);
        line-height: 1.12;
        overflow-wrap: normal;
        word-break: normal;
        hyphens: none;
    }

    .hero-text {
        max-width: 100%;
    }

    .hero-actions {
        max-width: 340px;
    }

    .materials-page h1,
    .courses-page h1,
    .auth-page h1,
    .about-page-copy h1 {
        font-size: clamp(32px, 10vw, 42px);
        line-height: 1.1;
    }

    .hero-actions,
    .header-actions.open,
    .footer-inner,
    .site-footer nav {
        align-items: stretch;
        flex-direction: column;
    }

    .btn,
    .contact-link,
    .news-read-link,
    .news-back-link,
    .buy-course-btn {
        width: 100%;
    }

    .registration-card {
        padding: 24px;
    }

    .contact-card {
        grid-template-columns: 1fr;
        width: min(520px, 100%);
    }

    .news-grid,
    .reviews-grid {
        grid-template-columns: 1fr;
    }

    .news-card-body,
    .news-article-content {
        padding: 20px;
    }

    .news-detail-title {
        font-size: clamp(28px, 8vw, 32px);
        line-height: 1.16;
    }

    .news-view-page .news-detail-title {
        font-size: clamp(28px, 8vw, 32px);
        line-height: 1.16;
    }

    .news-action-buttons {
        flex-direction: column;
    }

    .auth-required-card {
        padding: 24px;
    }

    .auth-required-actions {
        flex-direction: column;
    }

    .auth-required-actions .btn,
    .public-access-actions .btn {
        width: 100%;
    }

    .public-access-actions {
        flex-direction: column;
    }

    .news-action-button {
        width: 100%;
    }

    .quick-grid,
    .audience-grid,
    .course-grid,
    .materials-card-grid,
    .about-grid,
    .about-page-grid,
    .course-detail-card,
    .course-detail-columns,
    .course-tariffs,
    .auth-grid,
    .stats,
    .footer-inner {
        grid-template-columns: 1fr;
    }

    .courses-page {
        padding: 44px 0 56px;
    }

    .course-detail-card {
        padding: 16px;
    }

    .course-detail-page {
        padding: 42px 0 58px;
    }

    .course-detail-page .container {
        width: min(100% - 28px, 1180px);
    }

    .course-hero-card,
    .course-section {
        padding: 20px;
        border-radius: 22px;
    }

    .course-hero-top {
        margin-bottom: 18px;
    }

    .course-hero-cover {
        margin-bottom: 24px;
        border-radius: 20px;
    }

    .course-hero-grid {
        gap: 22px;
    }

    .course-hero-content h1 {
        max-width: 100%;
        font-size: clamp(28px, 7.8vw, 34px);
        line-height: 1.14;
        overflow-wrap: normal;
        word-break: normal;
        hyphens: none;
    }

    .course-hero-content .course-lead {
        font-size: 18px;
    }

    .course-cta-button,
    .course-price-button {
        width: 100%;
        justify-self: stretch;
    }

    .course-info-card,
    .course-price-card {
        padding: 20px;
        border-radius: 20px;
    }

    .courses-showcase-grid {
        grid-template-columns: 1fr;
    }

    .public-course-card,
    .home-course-card {
        min-width: 0;
    }

    .public-course-body {
        gap: 12px;
        padding: 18px;
    }

    .public-course-body h2 {
        font-size: clamp(22px, 7vw, 28px);
        line-height: 1.16;
        overflow-wrap: anywhere;
        word-break: break-word;
    }

    .public-course-body p,
    .home-course-description {
        line-height: 1.5;
        overflow-wrap: anywhere;
        word-break: break-word;
    }

    .public-course-footer {
        margin-top: auto;
        padding-top: 8px;
    }

    .public-course-more {
        width: auto;
        min-width: 132px;
    }

    .home-course-title {
        font-size: 18px;
        line-height: 1.22;
        min-height: auto;
        overflow-wrap: anywhere;
        word-break: break-word;
    }

    .home-course-description {
        display: -webkit-box;
        min-height: 0;
        max-height: 4.5em;
        overflow: hidden;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
    }

    .home-course-more {
        margin-top: auto;
    }

    .course-detail-content h2,
    .news-card h2,
    .review-card h2,
    .material-section-card h2 {
        font-size: clamp(24px, 8vw, 32px);
    }

    .course-detail-image {
        min-height: 0;
    }

    .course-purchase-row {
        align-items: stretch;
        flex-direction: column;
    }

    .course-tariff-card p {
        min-height: 0;
    }

    .quick-links,
    .section,
    .about-section {
        padding: 24px 0;
    }

    .quick-links {
        padding-top: 10px;
    }

    .quick-card {
        padding: 20px;
    }

    .site-footer {
        padding: 22px 0;
    }

    .footer-inner {
        gap: 18px;
        text-align: center;
    }

    .site-footer nav {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 10px 14px;
    }

    .footer-dropdown-menu {
        display: none;
        position: static;
        width: 100%;
        min-width: 0;
        margin-top: 6px;
        padding: 0;
        border: 0;
        background: transparent;
        box-shadow: none;
        transform: none;
    }

    .materials-menu.is-open .footer-dropdown-menu {
        display: grid;
        gap: 6px;
        transform: none;
    }

    .course-category-nav {
        gap: 7px;
        margin-bottom: 20px;
        padding: 10px;
    }

    .course-category-nav a {
        flex: 1 1 auto;
        min-height: 38px;
        padding-inline: 11px;
        font-size: 13px;
    }

    .course-category-list {
        grid-template-columns: 1fr;
        gap: 18px;
        margin-top: 18px;
    }

    .course-category-section,
    .course-category-section.is-compact {
        display: block;
        margin-top: 18px;
        padding: 21px 16px;
        border-radius: 14px;
    }

    .course-category-list > .course-category-section {
        margin-top: 0;
    }

    .course-category-section::before {
        top: 21px;
        height: 52px;
    }

    .course-category-section::after {
        right: -72px;
        bottom: -76px;
        opacity: 0.72;
    }

    .course-category-heading,
    .course-category-section.is-compact .course-category-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
        margin-bottom: 18px;
        padding-bottom: 16px;
    }

    .course-category-heading h2,
    .course-category-section.is-compact .course-category-heading h2 {
        max-width: 100%;
        font-size: clamp(28px, 9vw, 36px);
    }

    .course-category-summary,
    .course-category-section.is-compact .course-category-summary {
        justify-items: start;
    }

    .course-category-heading p {
        max-width: none;
        text-align: left;
    }

    .course-category-section.is-compact .courses-showcase-grid,
    .course-category-section.is-single .courses-showcase-grid {
        grid-template-columns: 1fr;
    }

    .public-course-body h2 {
        font-size: 25px;
    }

    /* Home premium sections mobile */
    .home-page .quick-links {
        padding-top: 22px;
        padding-bottom: 22px;
    }

    .home-page .quick-card {
        min-height: 0;
        padding: 21px 18px;
    }

    .home-page .section-audience,
    .home-page .section-courses,
    .home-page .section-faq {
        padding-top: 20px;
        padding-bottom: 20px;
    }

    .home-page .section-audience > .container,
    .home-page .section-courses > .container,
    .home-page .faq-panel {
        padding: 22px 16px;
        border-radius: 14px;
    }

    .home-page .section-audience > .container::before,
    .home-page .section-courses > .container::before,
    .home-page .faq-panel::before {
        top: 22px;
        height: 52px;
    }

    .home-page .section-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
        margin-bottom: 20px;
    }

    .home-page .section-heading h2 {
        font-size: clamp(30px, 9vw, 38px);
    }

    .home-page .mini-card {
        min-height: 0;
        padding: 23px 18px;
    }

    .home-page .section-courses .home-courses-viewport {
        margin-right: -16px;
        padding-right: 16px;
    }

    .home-page .question-button {
        min-height: 62px;
        padding: 12px 14px 12px 17px;
        font-size: 16px;
    }

    .home-page .question-answer p {
        padding: 0 17px 18px;
    }}


/* Student help center responsive */
@media (max-width: 900px) {
    .help-page {
        padding-top: 28px;
    }

    .help-hero-inner {
        grid-template-columns: 1fr;
        gap: 28px;
    }

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

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

    .help-actions-inner {
        align-items: flex-start;
        flex-direction: column;
    }

    .help-actions {
        justify-content: flex-start;
    }
}

@media (max-width: 600px) {
    .help-page {
        padding-top: 12px;
    }

    .help-hero {
        padding: 30px 0 24px;
    }

    .help-hero::after {
        display: none;
    }

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

    .help-hero-copy > p:last-child {
        font-size: 16px;
        line-height: 1.65;
    }

    .help-search {
        padding: 18px;
    }

    .help-quick-grid {
        grid-template-columns: 1fr;
        gap: 9px;
        padding-bottom: 34px;
    }

    .help-quick-card {
        min-height: 0;
        padding: 18px 48px 18px 18px;
    }

    .help-faq-section {
        padding: 30px 0 34px;
        scroll-margin-top: 74px;
    }

    .help-section-head {
        grid-template-columns: 40px minmax(0, 1fr);
        gap: 12px;
        margin-bottom: 18px;
    }

    .help-section-head > span {
        width: 38px;
        height: 38px;
    }

    .help-section-head h2 {
        font-size: 28px;
    }

    .help-section-head p {
        font-size: 14px;
        line-height: 1.55;
    }

    .help-faq-list {
        gap: 8px;
        padding-left: 0;
    }

    .help-faq-item summary {
        min-height: 58px;
        gap: 14px;
        padding: 13px 13px 13px 16px;
        font-size: 15px;
        line-height: 1.4;
    }

    .help-faq-answer p {
        padding: 16px;
        font-size: 14px;
        line-height: 1.65;
    }

    .help-actions-band {
        padding: 36px 0;
    }

    .help-actions-inner h2 {
        font-size: 29px;
    }

    .help-actions {
        display: grid;
        width: 100%;
        grid-template-columns: 1fr;
    }

    .help-actions .btn {
        width: 100%;
        justify-content: center;
    }
}