/* =========================================================
   MIND POWER ARTISTS — COURSES PAGE
   Production CSS
   Brand: Black / MPA Orange
   ========================================================= */

:root {
    --bg: #070707;
    --bg-soft: #0c0b0a;
    --panel: #11100f;
    --panel-2: #151311;
    --orange: #f47b20;
    --orange-light: #ff9b4a;
    --orange-dark: #d95f0b;
    --white: #ffffff;
    --muted: #969696;
    --muted-2: #6f6f6f;
    --border: rgba(255,255,255,.10);
    --orange-border: rgba(244,123,32,.30);
    --container: 1240px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    background: var(--bg);
}

body {
    margin: 0;
    min-width: 0;
    background: var(--bg);
    color: var(--white);
    font-family: Inter, "Segoe UI", Arial, sans-serif;
    overflow-x: hidden;
}

body.menu-open {
    overflow: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

button {
    font: inherit;
}

img {
    display: block;
    max-width: 100%;
}

.container {
    width: min(var(--container), calc(100% - 64px));
    margin-inline: auto;
}

/* =========================================================
   LOADER
   ========================================================= */

.page-loader {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: grid;
    place-items: center;
    background: #070707;
    transition: opacity .45s ease, visibility .45s ease;
}

.page-loader.loaded {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loader-mark {
    display: flex;
    gap: 7px;
}

.loader-mark span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--orange);
    animation: loaderPulse 1s ease-in-out infinite;
}

.loader-mark span:nth-child(2) { animation-delay: .12s; }
.loader-mark span:nth-child(3) { animation-delay: .24s; }

@keyframes loaderPulse {
    0%, 100% { opacity: .25; transform: translateY(0); }
    50% { opacity: 1; transform: translateY(-5px); }
}

/* =========================================================
   HERO
   ========================================================= */

.courses-hero {
    position:relative;
    min-height: 700px;
    display: flex;
    align-items: center;
    overflow: hidden;
    border-bottom: 1px solid rgba(255,255,255,.06);
}

.hero-grid {
    position: absolute;
    inset: 0;
    opacity: .38;
    background-image:
        linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
    background-size: 72px 72px;
    mask-image: linear-gradient(to bottom, #000 20%, transparent 95%);
}

.hero-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(15px);
    pointer-events: none;
}

.hero-glow-one {
    width: 600px;
    height: 600px;
    right: -120px;
    top: -120px;
    background: radial-gradient(circle, rgba(244,123,32,.14), transparent 68%);
}

.hero-glow-two {
    width: 500px;
    height: 500px;
    left: -250px;
    bottom: -250px;
    background: radial-gradient(circle, rgba(244,123,32,.08), transparent 68%);
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 95px 0;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--orange);
    font-family: Inter, "Segoe UI", Arial, sans-serif;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 3px;
}

.eyebrow span {
    width: 4px;
    height: 30px;
    border-radius: 10px;
    background: var(--orange);
}

.hero-content h1 {
    max-width: 780px;
    margin: 28px 0 24px;
    font-family: Inter, "Segoe UI", Arial, sans-serif;
    font-size: clamp(58px, 6.6vw, 96px);
    font-weight: 500;
    line-height: .95;
    letter-spacing: -3px;
}

.hero-content h1 em {
    color: var(--orange);
    font-style: normal;
}

.hero-content > p {
    max-width: 650px;
    margin: 0;
    color: var(--muted);
    font-size: 18px;
    line-height: 1.75;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 13px;
    margin-top: 34px;
}

.btn {
    min-height: 54px;
    padding: 0 24px;
    border-radius: 13px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 750;
    transition: .25s ease;
}

.btn-secondary {
    border: 1px solid rgba(255,255,255,.15);
    background: rgba(255,255,255,.025);
    color: var(--white);
}

.btn-secondary:hover {
    border-color: rgba(244,123,32,.45);
    color: var(--orange-light);
    background: rgba(244,123,32,.05);
}

.hero-orbit {
    position: absolute;
    right: 5%;
    top: 50%;
    width: min(38vw, 500px);
    aspect-ratio: 1;
    transform: translateY(-50%);
    opacity: .85;
}

.orbit {
    position: absolute;
    inset: 0;
    border: 1px solid rgba(244,123,32,.15);
    border-radius: 50%;
    animation: orbitFloat 8s ease-in-out infinite;
}

.orbit-a { transform: rotate(24deg) scaleX(.68); }
.orbit-b { transform: rotate(-32deg) scaleX(.75); animation-delay: -2s; }
.orbit-c { inset: 17%; border-color: rgba(244,123,32,.28); animation-delay: -4s; }

.orbit-core {
    position: absolute;
    inset: 38%;
    display: grid;
    place-items: center;
    border: 1px solid rgba(244,123,32,.45);
    border-radius: 50%;
    color: var(--orange);
    font-family: Inter, "Segoe UI", Arial, sans-serif;
    letter-spacing: 5px;
    font-size: 14px;
    background: radial-gradient(circle, rgba(244,123,32,.10), #080808 70%);
    box-shadow: 0 0 70px rgba(244,123,32,.10);
}

@keyframes orbitFloat {
    0%,100% { transform: rotate(0deg) scale(1); }
    50% { transform: rotate(4deg) scale(1.025); }
}

/* =========================================================
   DIRECTORY
   ========================================================= */

.course-directory,
.how-section,
.courses-cta {
    position: relative;
    padding: 110px 0;
}

.section-heading {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(300px, .65fr);
    gap: 60px;
    align-items: end;
    margin-bottom: 48px;
}

.section-heading.centered {
    display: block;
    max-width: 720px;
    margin-inline: auto;
    text-align: center;
}

.section-heading.centered .eyebrow {
    justify-content: center;
}

.section-heading h2 {
    margin: 20px 0 0;
    font-family: Inter, "Segoe UI", Arial, sans-serif;
    font-size: clamp(42px, 5vw, 68px);
    font-weight: 500;
    line-height: .98;
    letter-spacing: -2px;
}

.section-heading p {
    margin: 0;
    color: var(--muted);
    font-size: 16px;
    line-height: 1.8;
}

.course-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-bottom: 32px;
}

.filter-btn {
    min-height: 43px;
    padding: 0 17px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,.11);
    background: rgba(255,255,255,.025);
    color: #aaa59e;
    cursor: pointer;
    transition: .25s ease;
}

.filter-btn:hover,
.filter-btn.active {
    color: #080808;
    background: var(--orange);
    border-color: var(--orange);
}

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

.course-card {
    position: relative;
    min-width: 0;
    min-height: 475px;
    padding: 28px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 22px;
    background:
        radial-gradient(circle at 100% 0%, rgba(244,123,32,.08), transparent 38%),
        linear-gradient(145deg, #12110f, #0a0a0a);
    transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease;
}

.course-card::after {
    content: "";
    position: absolute;
    width: 190px;
    height: 190px;
    right: -80px;
    bottom: -80px;
    border: 1px solid rgba(244,123,32,.12);
    border-radius: 50%;
    pointer-events: none;
}

.course-card:hover {
    transform: translateY(-6px);
    border-color: rgba(244,123,32,.35);
    box-shadow: 0 25px 60px rgba(0,0,0,.35);
}

.course-card.hidden {
    display: none;
}

.course-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.course-number {
    color: var(--orange);
    font-family: Inter, "Segoe UI", Arial, sans-serif;
    font-size: 14px;
    letter-spacing: 2px;
}

.course-status {
    padding: 6px 9px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,.09);
    color: #9e9992;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.course-status.ongoing {
    color: var(--orange-light);
    border-color: rgba(244,123,32,.28);
    background: rgba(244,123,32,.06);
}

.course-icon {
    width: 62px;
    height: 62px;
    margin: 45px 0 30px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(244,123,32,.27);
    border-radius: 50%;
    color: var(--orange);
    font-size: 27px;
    background: rgba(244,123,32,.045);
}

.course-category {
    color: var(--orange);
    font-family: Inter, "Segoe UI", Arial, sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
}

.course-card h3 {
    max-width: 390px;
    margin: 12px 0 14px;
    font-family: Inter, "Segoe UI", Arial, sans-serif;
    font-size: 30px;
    font-weight: 500;
    line-height: 1.05;
}

.course-card p {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.7;
}

.course-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: auto;
    padding-top: 26px;
    color: #77716a;
    font-size: 11px;
}

.course-link {
    margin-top: 19px;
    color: var(--white);
    font-size: 13px;
    font-weight: 750;
    transition: color .2s ease;
}

.course-link span {
    margin-left: 7px;
    color: var(--orange);
}

.course-link:hover {
    color: var(--orange-light);
}

.empty-state {
    padding: 70px 20px;
    border: 1px solid var(--border);
    border-radius: 20px;
    text-align: center;
}

.empty-icon {
    color: var(--orange);
    font-size: 32px;
}

.empty-state h3 {
    margin: 15px 0 8px;
    font-family: Inter, "Segoe UI", Arial, sans-serif;
    font-size: 26px;
}

.empty-state p {
    margin: 0;
    color: var(--muted);
}

/* =========================================================
   JOURNEY
   ========================================================= */

.how-section {
    border-top: 1px solid rgba(255,255,255,.06);
    border-bottom: 1px solid rgba(255,255,255,.06);
    background: #090909;
}

.journey-grid {
    display: grid;
    grid-template-columns: 1fr auto 1fr auto 1fr;
    align-items: center;
    gap: 25px;
    margin-top: 65px;
}

.journey-card {
    padding: 34px;
    min-height: 215px;
    border: 1px solid rgba(255,255,255,.09);
    border-radius: 20px;
    background: #0e0d0c;
}

.journey-card > span {
    color: var(--orange);
    font-family: Inter, "Segoe UI", Arial, sans-serif;
    letter-spacing: 2px;
}

.journey-card h3 {
    margin: 28px 0 10px;
    font-family: Inter, "Segoe UI", Arial, sans-serif;
    font-size: 30px;
    font-weight: 500;
}

.journey-card p {
    margin: 0;
    color: var(--muted);
    line-height: 1.7;
    font-size: 14px;
}

.journey-line {
    width: 50px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--orange), transparent);
}

/* =========================================================
   CTA
   ========================================================= */

.courses-cta {
    padding-bottom: 120px;
}

.cta-box {
    position: relative;
    padding: 90px 40px;
    overflow: hidden;
    border: 1px solid rgba(244,123,32,.20);
    border-radius: 28px;
    text-align: center;
    background:
        radial-gradient(circle at 50% 100%, rgba(244,123,32,.12), transparent 48%),
        #0d0c0b;
}

.cta-glow {
    position: absolute;
    width: 350px;
    height: 350px;
    left: 50%;
    bottom: -250px;
    transform: translateX(-50%);
    border-radius: 50%;
    background: rgba(244,123,32,.14);
    filter: blur(70px);
}

.cta-box > * {
    position: relative;
    z-index: 1;
}

.cta-box h2 {
    margin: 25px 0 18px;
    font-family: Inter, "Segoe UI", Arial, sans-serif;
    font-size: clamp(45px, 5.5vw, 76px);
    line-height: .95;
    font-weight: 500;
    letter-spacing: -2px;
}

.cta-box h2 em {
    color: var(--orange);
    font-style: normal;
}

.cta-box p {
    max-width: 620px;
    margin: 0 auto 30px;
    color: var(--muted);
    line-height: 1.75;
}

/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 1200px) {
    .header-inner {
        width: min(100% - 48px, 1400px);
        grid-template-columns: 145px minmax(0, 1fr) auto;
    }

    .brand,
    .brand-logo {
        width: 120px;
    }

    .desktop-nav {
        gap: 18px;
    }

    .desktop-nav a {
        font-size: 15px;
    }

    .hero-orbit {
        right: -90px;
        opacity: .55;
    }

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

    .journey-grid {
        grid-template-columns: 1fr;
    }

    .journey-line {
        width: 1px;
        height: 35px;
        margin-inline: auto;
    }
}

@media (max-width: 900px) {
    .container {
        width: calc(100% - 40px);
    }

    .site-header {
        position: sticky;
        top: 0;
        backdrop-filter: blur(16px);
    }

    .header-inner {
        min-height: 88px;
        width: calc(100% - 32px);
        display: flex;
        justify-content: space-between;
    }

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

    .mobile-menu-btn {
        display: block;
    }

    .courses-hero {
        min-height: auto;
    }

    .hero-content {
        padding: 80px 0 90px;
    }

    .hero-content h1 {
        font-size: clamp(48px, 11vw, 74px);
        letter-spacing: -2px;
    }

    .hero-content > p {
        max-width: 580px;
    }

    .hero-orbit {
        width: 360px;
        right: -190px;
        top: 52%;
        opacity: .30;
    }

    .section-heading {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .footer-main {
        grid-template-columns: 1.5fr 1fr 1fr;
    }

    .footer-brand {
        grid-column: 1 / -1;
    }
}

/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 600px) {
    .container {
        width: calc(100% - 28px);
    }

    .brand,
    .brand-logo {
        width: 108px;
    }

    .brand-fallback {
        width: 108px;
        font-size: 14px;
    }

    .mobile-menu-btn {
        width: 46px;
        height: 46px;
    }

    .hero-content {
        padding: 65px 0 75px;
    }

    .eyebrow {
        font-size: 11px;
        letter-spacing: 2px;
    }

    .eyebrow span {
        width: 3px;
        height: 23px;
    }

    .hero-content h1 {
        margin-top: 22px;
        font-size: clamp(40px, 12vw, 58px);
        line-height: .98;
    }

    .hero-content > p {
        font-size: 14px;
        line-height: 1.7;
    }

    .hero-actions {
        display: grid;
        grid-template-columns: 1fr;
        gap: 9px;
    }

    .btn {
        width: 100%;
        min-height: 52px;
    }

    .hero-orbit {
        width: 300px;
        right: -205px;
        top: 47%;
    }

    .course-directory,
    .how-section,
    .courses-cta {
        padding: 75px 0;
    }

    .section-heading h2 {
        font-size: 43px;
    }

    .course-filters {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 6px;
        scrollbar-width: none;
    }

    .course-filters::-webkit-scrollbar {
        display: none;
    }

    .filter-btn {
        flex: 0 0 auto;
        min-height: 40px;
        font-size: 11px;
    }

    .courses-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .course-card {
        min-height: 430px;
        padding: 23px;
        border-radius: 18px;
    }

    .course-icon {
        margin: 34px 0 24px;
    }

    .course-card h3 {
        font-size: 28px;
    }

    .journey-grid {
        margin-top: 40px;
    }

    .journey-card {
        min-height: auto;
        padding: 27px;
    }

    .journey-card h3 {
        margin-top: 20px;
        font-size: 27px;
    }

    .cta-box {
        padding: 65px 20px;
        border-radius: 21px;
    }

    .cta-box h2 {
        font-size: 46px;
    }

    .footer-main {
        grid-template-columns: repeat(2, 1fr);
        gap: 38px 25px;
        padding: 55px 0 45px;
    }

    .footer-brand {
        grid-column: 1 / -1;
    }

    .footer-bottom {
        padding: 20px 0;
        flex-direction: column;
        align-items: flex-start;
        line-height: 1.6;
    }
}

/* =========================================================
   400 / 390 / 375 / 360
   ========================================================= */

@media (max-width: 400px) {
    .container {
        width: calc(100% - 24px);
    }

    .header-inner {
        width: calc(100% - 24px);
    }

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

    .course-card {
        padding: 20px;
    }

    .course-card h3 {
        font-size: 26px;
    }

    .mobile-nav {
        width: min(360px, 91vw);
    }

    .mobile-nav-actions {
        grid-template-columns: 1fr;
    }

    .footer-main {
        grid-template-columns: 1fr 1fr;
    }
}

/* =========================================================
   ACCESSIBILITY / REDUCED MOTION
   ========================================================= */

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
}


/* =========================================================
   COURSES PAGE — SHARED PUBLIC SHELL / TYPOGRAPHY
   Match the public Home + Services typography exactly.
   Header/footer remain handled by the shared public shell.
   ========================================================= */

.courses-page {
    background: var(--mpa-black, #070707);
    color: var(--mpa-text, #eeeeee);
    font-family: Inter, "Segoe UI", Arial, sans-serif;
}

.courses-page *,
.courses-page *::before,
.courses-page *::after {
    font-family: inherit;
}

/* Keep course content backgrounds consistent with Home. */
.courses-page .course-directory,
.courses-page .how-section,
.courses-page .courses-cta {
    background: var(--mpa-black, #070707);
}

/* =========================================================
   HERO — SAME TYPOGRAPHY / WEIGHTS AS HOME
   ========================================================= */

.courses-page .hero-content {
    width: 100%;
    max-width: 650px;
    margin: 0;
    padding-left: 28px;
    text-align: left;
}

.courses-page .eyebrow {
    display: inline-flex;
    align-items: center;
    margin-bottom: 20px;
    padding-left: 12px;
    border-left: 2px solid var(--mpa-orange, #f47b20);
    color: var(--mpa-orange-light, #ff9b4a);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.18em;
}

.courses-page .hero-content h1 {
    max-width: 700px;
    margin: 0;
    color: #fff;
    font-size: clamp(48px, 6vw, 82px);
    font-weight: 800;
    line-height: 0.98;
    letter-spacing: -0.045em;
}

.courses-page .hero-content h1 em {
    color: var(--mpa-orange, #f47b20);
    font-style: normal;
}

.courses-page .hero-content > p {
    max-width: 610px;
    margin: 28px 0 0;
    color: var(--mpa-muted, #858585);
    font-size: 17px;
    font-weight: 400;
    line-height: 1.8;
}

.courses-page .hero-actions {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 14px;
    margin-top: 34px;
}

/* =========================================================
   CONTENT TYPOGRAPHY — HOME / SERVICES STYLE
   ========================================================= */

.courses-page .section-heading h2,
.courses-page .journey-card h3,
.courses-page .cta-box h2 {
    font-family: Inter, "Segoe UI", Arial, sans-serif;
    font-weight: 700;
    letter-spacing: -0.04em;
}

.courses-page .section-heading h2 {
    color: #fff;
}

.courses-page .section-heading p {
    font-size: 16px;
    line-height: 1.8;
}

.courses-page .course-category,
.courses-page .course-number {
    font-family: Inter, "Segoe UI", Arial, sans-serif;
    font-weight: 800;
}

.courses-page .course-card h3 {
    font-family: Inter, "Segoe UI", Arial, sans-serif;
    font-size: 21px;
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -0.02em;
}

.courses-page .course-card p,
.courses-page .journey-card p {
    font-family: Inter, "Segoe UI", Arial, sans-serif;
    font-size: 13px;
    line-height: 1.7;
}

.courses-page .course-link {
    font-weight: 700;
}

/* =========================================================
   RESPONSIVE — SAME BEHAVIOUR AS HOME
   Desktop/tablet: LEFT aligned.
   <=950px: centered hero, matching Home mobile/tablet.
   ========================================================= */

@media (max-width: 950px) {
    .courses-page .hero-content {
        max-width: 700px;
        margin-inline: auto;
        padding-left: 0;
        text-align: center;
    }

    .courses-page .eyebrow {
        margin-bottom: 20px;
        padding-left: 0;
        border-left: 0;
    }

    .courses-page .hero-content > p {
        margin-inline: auto;
    }

    .courses-page .hero-actions {
        justify-content: center;
    }
}

@media (max-width: 680px) {
    .courses-page .hero-content {
        padding-top: 70px;
        padding-bottom: 80px;
    }

    .courses-page .hero-content h1 {
        font-size: 46px;
        line-height: 0.98;
        letter-spacing: -0.045em;
    }

    .courses-page .hero-content > p {
        font-size: 14px;
        line-height: 1.8;
    }

    .courses-page .section-heading h2 {
        font-size: 35px;
    }

    .courses-page .course-card h3 {
        font-size: 20px;
    }
}

@media (max-width: 420px) {
    .courses-page .hero-content h1 {
        font-size: 40px;
    }

    .courses-page .section-heading h2 {
        font-size: 31px;
    }
}


/* =========================================================
   CATALOGUE LAYOUT (MPA-101)
   - Upcoming courses: 2 cards at the same width as the main
     grid's cards, centred under the 3-column layout.
   - 2-column range: centre an odd last card instead of
     leaving it alone on the left.
   ========================================================= */

.upcoming-courses {
    padding-top: 0;
}

.courses-grid-upcoming {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: calc((100% - 32px) * 2 / 3 + 16px);
    margin-inline: auto;
}

@media (max-width: 1200px) {
    .courses-grid-upcoming {
        max-width: none;
    }

    .courses-grid > .course-card:last-child:nth-child(odd) {
        grid-column: 1 / -1;
        justify-self: center;
        width: calc((100% - 16px) / 2);
    }
}

@media (max-width: 600px) {
    .courses-grid-upcoming {
        grid-template-columns: 1fr;
    }

    .courses-grid > .course-card:last-child:nth-child(odd) {
        grid-column: auto;
        justify-self: stretch;
        width: auto;
    }
}


/* ===== FOCUS STATES (MPA-065) ===== */

a:focus-visible,
button:focus-visible,
summary:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--mpa-orange-light, #ff9b4a);

    outline-offset: 4px;
}
