/* =========================================================
   YTMAXING — YOUTUBE GROWTH COURSE PAGE
   v2.0.0 — exact editor markup / strong theme isolation
   ========================================================= */

body.ytmx-course-page-active {
    background: #050505 !important;
}

body.ytmx-course-page-active .ytm-container {
    width: 100% !important;
    max-width: 1400px !important;
    margin: 0 auto !important;
    padding: 54px 3% 100px !important;
    color: #fff !important;
    box-sizing: border-box;
}

body.ytmx-course-page-active .ytm-container > .ytm-section {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Keep the real WordPress page title visible. */
body.ytmx-course-page-active .ytm-container > .ytm-section > h1:first-child {
    display: block !important;
    margin: 0 0 34px !important;
    padding: 0 !important;
    color: #fff !important;
    font-size: clamp(34px, 5vw, 58px) !important;
    line-height: 1.08 !important;
    font-weight: 850 !important;
    letter-spacing: -2px !important;
}

.ytmaxing-course-page {
    --ytm-bg: #050505;
    --ytm-bg-2: #0a0a0a;
    --ytm-card: rgba(255,255,255,.035);
    --ytm-card-hover: rgba(255,255,255,.055);
    --ytm-border: rgba(255,255,255,.12);
    --ytm-border-strong: rgba(255,255,255,.20);
    --ytm-white: #fff;
    --ytm-muted: #a0a0a0;
    --ytm-subtle: #777;
    --ytm-red: #f52e3d;
    --ytm-red-dark: #c71f2b;
    --ytm-green: #35d37a;

    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    color: var(--ytm-white);
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.65;
}

.ytmaxing-course-page,
.ytmaxing-course-page * {
    box-sizing: border-box;
}

.ytmaxing-course-page h1,
.ytmaxing-course-page h2,
.ytmaxing-course-page h3,
.ytmaxing-course-page p {
    margin-top: 0;
}

.ytmaxing-course-page h1,
.ytmaxing-course-page h2,
.ytmaxing-course-page h3 {
    line-height: 1.15;
}

.ytmaxing-course-page a {
    color: inherit;
    text-decoration: none;
}

/* HERO */
.ytmx-course-hero {
    position: relative;
    overflow: hidden;
    padding: 78px 55px;
    margin-bottom: 65px;
    border: 1px solid var(--ytm-border);
    border-radius: 32px;
    background:
        radial-gradient(circle at 85% 15%, rgba(245,46,61,.16), transparent 35%),
        radial-gradient(circle at 10% 90%, rgba(245,46,61,.07), transparent 35%),
        linear-gradient(145deg, rgba(255,255,255,.045), rgba(255,255,255,.015));
    box-shadow: 0 25px 80px rgba(0,0,0,.35), inset 0 1px 0 rgba(255,255,255,.04);
}

.ytmx-course-hero::before {
    content: "";
    position: absolute;
    width: 420px;
    height: 420px;
    top: -230px;
    right: -150px;
    border-radius: 50%;
    background: rgba(245,46,61,.08);
    filter: blur(30px);
    pointer-events: none;
}

.ytmx-course-hero > * {
    position: relative;
    z-index: 1;
}

.ytmx-course-badge {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 20px;
    padding: 8px 14px;
    border: 1px solid rgba(245,46,61,.28);
    border-radius: 999px;
    background: rgba(245,46,61,.08);
    color: #ff6a76;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1.4px;
    text-transform: uppercase;
}

.ytmx-course-badge::before {
    content: "";
    width: 7px;
    height: 7px;
    flex: 0 0 7px;
    border-radius: 50%;
    background: var(--ytm-red);
    box-shadow: 0 0 12px rgba(245,46,61,.8);
}

.ytmx-course-intro {
    max-width: 800px;
    margin: 0 0 32px;
    color: var(--ytm-muted);
    font-size: 18px;
}

.ytmx-course-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
}

.ytmx-course-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 14px 25px;
    border: 1px solid transparent;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--ytm-red), var(--ytm-red-dark));
    color: #fff !important;
    font-size: 14px;
    font-weight: 800;
    line-height: 1;
    box-shadow: 0 12px 30px rgba(245,46,61,.20);
    transition: transform .2s ease, box-shadow .2s ease, filter .2s ease, background .2s ease;
}

.ytmx-course-btn:hover {
    transform: translateY(-2px);
    filter: brightness(1.08);
    box-shadow: 0 16px 38px rgba(245,46,61,.30);
}

.ytmx-course-btn-secondary {
    background: rgba(255,255,255,.04);
    border-color: var(--ytm-border);
    box-shadow: none;
}

.ytmx-course-btn-secondary:hover {
    background: rgba(255,255,255,.07);
    box-shadow: none;
}

/* SECTIONS */
.ytmx-course-section {
    margin-bottom: 75px;
}

.ytmx-course-section-heading {
    max-width: 850px;
    margin-bottom: 30px;
}

.ytmx-course-section-heading > span {
    display: block;
    margin-bottom: 9px;
    color: var(--ytm-red);
    font-size: 12px;
    font-weight: 850;
    letter-spacing: 1.5px;
}

.ytmx-course-section-heading h2 {
    margin-bottom: 13px;
    color: #fff;
    font-size: clamp(30px, 4vw, 46px);
    font-weight: 800;
    letter-spacing: -1.5px;
}

.ytmx-course-section p {
    max-width: 900px;
    color: var(--ytm-muted);
    font-size: 16px;
}

.ytmx-course-section-description {
    max-width: 850px !important;
    margin-bottom: 28px;
}

/* COURSE PARTS */
.ytmx-course-parts {
    display: grid;
    grid-template-columns: repeat(2, minmax(0,1fr));
    gap: 20px;
}

.ytmx-course-part {
    position: relative;
    overflow: hidden;
    min-height: 205px;
    padding: 30px;
    border: 1px solid var(--ytm-border);
    border-radius: 24px;
    background: linear-gradient(145deg, rgba(255,255,255,.045), rgba(255,255,255,.018));
    transition: transform .25s ease, border-color .25s ease, background .25s ease;
}

.ytmx-course-part::after {
    content: "";
    position: absolute;
    width: 180px;
    height: 180px;
    right: -90px;
    bottom: -100px;
    border-radius: 50%;
    background: rgba(245,46,61,.06);
    pointer-events: none;
}

.ytmx-course-part:hover {
    transform: translateY(-5px);
    border-color: rgba(245,46,61,.32);
    background: var(--ytm-card-hover);
}

.ytmx-part-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 43px;
    height: 43px;
    margin-bottom: 18px;
    border-radius: 13px;
    background: rgba(245,46,61,.11);
    border: 1px solid rgba(245,46,61,.24);
    color: #ff5966;
    font-size: 13px;
    font-weight: 850;
}

.ytmx-part-content {
    position: relative;
    z-index: 1;
}

.ytmx-part-label {
    display: block;
    margin-bottom: 6px;
    color: #ff5966;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.2px;
}

.ytmx-part-content h3 {
    margin-bottom: 9px;
    color: #fff;
    font-size: 22px;
}

.ytmx-part-content p {
    margin-bottom: 0 !important;
    color: var(--ytm-muted);
    font-size: 14px !important;
}

.ytmx-course-note {
    margin-top: 18px;
    color: var(--ytm-subtle) !important;
    font-size: 12px !important;
    text-align: center;
}

/* WHAT'S INCLUDED */
.ytmx-course-includes-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0,1fr));
    gap: 16px;
}

.ytmx-course-feature {
    display: flex;
    gap: 15px;
    align-items: flex-start;
    min-height: 100%;
    padding: 24px 20px;
    border: 1px solid var(--ytm-border);
    border-radius: 20px;
    background: var(--ytm-card);
    transition: transform .2s ease, border-color .2s ease, background .2s ease;
}

.ytmx-course-feature:hover {
    transform: translateY(-3px);
    border-color: rgba(245,46,61,.25);
    background: var(--ytm-card-hover);
}

.ytmx-feature-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    border-radius: 13px;
    background: rgba(245,46,61,.10);
    border: 1px solid rgba(245,46,61,.16);
    color: var(--ytm-red);
    font-size: 18px;
    font-weight: 900;
}

.ytmx-course-feature h3 {
    margin-bottom: 8px;
    color: #fff;
    font-size: 16px;
}

.ytmx-course-feature p {
    margin-bottom: 0 !important;
    color: var(--ytm-muted);
    font-size: 13px !important;
}

/* ACCESS STEPS */
.ytmx-course-steps {
    display: grid;
    grid-template-columns: repeat(4, minmax(0,1fr));
    gap: 16px;
}

.ytmx-course-step {
    position: relative;
    padding: 27px 23px;
    border: 1px solid var(--ytm-border);
    border-radius: 20px;
    background: var(--ytm-card);
}

.ytmx-course-step > span {
    display: block;
    margin-bottom: 18px;
    color: var(--ytm-red);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 1px;
}

.ytmx-course-step h3 {
    margin-bottom: 8px;
    color: #fff;
    font-size: 17px;
}

.ytmx-course-step p {
    margin-bottom: 0 !important;
    color: var(--ytm-muted);
    font-size: 13px !important;
}

/* DISCLAIMER */
.ytmx-course-disclaimer {
    margin-bottom: 65px;
    padding: 30px 34px;
    border: 1px solid rgba(245,46,61,.22);
    border-left: 3px solid var(--ytm-red);
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(245,46,61,.07), rgba(255,255,255,.02));
}

.ytmx-disclaimer-label {
    display: inline-flex;
    margin-bottom: 12px;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(245,46,61,.10);
    color: #ff5966;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 1.3px;
}

.ytmx-course-disclaimer h2 {
    margin-bottom: 12px;
    color: #fff;
    font-size: 25px;
}

.ytmx-course-disclaimer p {
    max-width: none;
    margin-bottom: 10px;
    color: var(--ytm-muted);
    font-size: 14px;
}

.ytmx-course-disclaimer p:last-child {
    margin-bottom: 0;
}

.ytmx-course-disclaimer strong {
    color: #fff;
}

/* PURCHASE */
.ytmx-course-purchase {
    position: relative;
    overflow: hidden;
    margin-bottom: 34px;
    padding: 55px 45px;
    border: 1px solid rgba(245,46,61,.25);
    border-radius: 30px;
    background:
        radial-gradient(circle at 80% 20%, rgba(245,46,61,.15), transparent 35%),
        linear-gradient(135deg, rgba(255,255,255,.045), rgba(255,255,255,.015));
    text-align: center;
    box-shadow: 0 25px 70px rgba(0,0,0,.25);
}

.ytmx-purchase-content {
    position: relative;
    z-index: 1;
}

.ytmx-purchase-label {
    display: block;
    margin-bottom: 12px;
    color: #ff5966;
    font-size: 11px;
    font-weight: 850;
    letter-spacing: 1.5px;
}

.ytmx-course-purchase h2 {
    max-width: 750px;
    margin: 0 auto 15px;
    color: #fff;
    font-size: clamp(30px,4vw,48px);
    font-weight: 800;
    letter-spacing: -1.5px;
}

.ytmx-course-purchase p {
    max-width: 700px;
    margin: 0 auto 28px;
    color: var(--ytm-muted);
}

.ytmx-purchase-note {
    margin-top: 18px !important;
    margin-bottom: 0 !important;
    color: var(--ytm-subtle) !important;
    font-size: 12px !important;
}

/* POLICIES */
.ytmx-course-policies {
    padding: 0 10px 10px;
    text-align: center;
}

.ytmx-course-policies > p {
    margin-bottom: 10px;
    color: var(--ytm-subtle);
    font-size: 12px;
}

.ytmx-policy-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 18px;
}

.ytmx-policy-links a {
    color: var(--ytm-subtle);
    font-size: 12px;
    transition: color .2s ease;
}

.ytmx-policy-links a:hover {
    color: #fff;
}

/* RESPONSIVE */
@media (max-width: 1050px) {
    body.ytmx-course-page-active .ytm-container {
        padding-left: 4% !important;
        padding-right: 4% !important;
    }

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

@media (max-width: 700px) {
    body.ytmx-course-page-active .ytm-container {
        padding: 35px 4% 65px !important;
    }

    body.ytmx-course-page-active .ytm-container > .ytm-section > h1:first-child {
        margin-bottom: 24px !important;
        font-size: 36px !important;
        letter-spacing: -1.5px !important;
    }

    .ytmx-course-hero {
        padding: 48px 25px;
        margin-bottom: 45px;
        border-radius: 24px;
    }

    .ytmx-course-intro {
        font-size: 15px;
    }

    .ytmx-course-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .ytmx-course-actions .ytmx-course-btn {
        width: 100%;
    }

    .ytmx-course-section {
        margin-bottom: 52px;
    }

    .ytmx-course-section-heading {
        margin-bottom: 23px;
    }

    .ytmx-course-section-heading h2 {
        font-size: 31px;
    }

    .ytmx-course-parts,
    .ytmx-course-includes-grid,
    .ytmx-course-steps {
        grid-template-columns: 1fr;
    }

    .ytmx-course-part {
        min-height: auto;
        padding: 25px;
        border-radius: 20px;
    }

    .ytmx-course-feature,
    .ytmx-course-step {
        padding: 23px;
    }

    .ytmx-course-disclaimer {
        margin-bottom: 45px;
        padding: 25px;
    }

    .ytmx-course-purchase {
        padding: 40px 23px;
        border-radius: 24px;
    }

    .ytmx-course-purchase h2 {
        font-size: 31px;
    }

    .ytmx-policy-links {
        flex-direction: column;
        gap: 8px;
    }
}

@media (max-width: 400px) {
    body.ytmx-course-page-active .ytm-container {
        padding-left: 3.5% !important;
        padding-right: 3.5% !important;
    }

    .ytmx-course-hero {
        padding: 38px 20px;
    }

    .ytmx-course-section-heading h2 {
        font-size: 28px;
    }
}
