.masterclass-page main {
    position: relative;
    z-index: 1;
}

/* The shared header is fixed at top:40px to clear the homepage announcement bar,
   which this page doesn't have. Pin it to the top and clear its 100px height. */
.masterclass-page header {
    top: 0;
}

.mc-hero {
    padding-top: 140px;
}

.mc-register-section {
    scroll-margin-top: 120px;
}

.mc-hero-grid {
    display: grid;
    grid-template-columns: 1.35fr 0.85fr;
    gap: 48px;
    align-items: start;
}

.mc-eyebrow {
    display: inline-block;
    font-family: var(--font-heading);
    font-size: 0.78rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--accent-teal);
    border: 1px solid rgba(0, 174, 239, 0.35);
    border-radius: 999px;
    padding: 6px 14px;
    margin-bottom: 20px;
}

.mc-hero-copy h1 {
    font-family: var(--font-heading);
    font-size: clamp(2.2rem, 5vw, 3.4rem);
    line-height: 1.08;
    margin: 0 0 18px;
}

.mc-lead {
    font-size: 1.08rem;
    line-height: 1.65;
    color: var(--text-secondary);
    max-width: 46ch;
    margin: 0 0 32px;
}

.mc-facts {
    list-style: none;
    padding: 0;
    margin: 0 0 32px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 28px;
    max-width: 520px;
}

.mc-fact {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding-left: 14px;
    border-left: 2px solid rgba(0, 174, 239, 0.45);
}

.mc-fact-label {
    font-size: 0.72rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--logo-gray);
}

.mc-fact-value {
    font-family: var(--font-heading);
    font-size: 1.02rem;
    color: var(--text-primary);
    text-transform: capitalize;
}

.mc-includes {
    max-width: 520px;
    margin: 0 0 32px;
}

.mc-includes-label {
    display: block;
    font-size: 0.72rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--logo-gray);
    margin-bottom: 12px;
}

.mc-includes-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.mc-includes-list li {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 0.9rem;
    color: var(--text-primary);
    background: rgba(0, 174, 239, 0.1);
    border: 1px solid rgba(0, 174, 239, 0.3);
}

.mc-includes-list li::before {
    content: '✓';
    color: var(--accent-teal);
    font-weight: 700;
    font-size: 0.85rem;
}

.mc-seats {
    max-width: 520px;
    margin-bottom: 32px;
}

.mc-seats-badge {
    display: inline-block;
    font-size: 0.86rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.mc-seats-bar {
    height: 6px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    overflow: hidden;
}

.mc-seats-bar span {
    display: block;
    height: 100%;
    width: 0;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--accent-teal), var(--accent-cyan));
    transition: width 0.5s ease;
}

.mc-seats-note {
    margin: 10px 0 0;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.mc-seats.is-low .mc-seats-bar span {
    background: linear-gradient(90deg, var(--accent-gold), #ff8a4c);
}

.mc-seats.is-low .mc-seats-note {
    color: var(--accent-gold);
    font-weight: 600;
}

.mc-seats.is-soldout .mc-seats-bar span {
    background: rgba(255, 255, 255, 0.25);
}

.mc-cta {
    display: inline-block;
}

/* Speaker card */

.mc-speaker {
    padding: 32px;
    text-align: center;
    position: sticky;
    top: 100px;
}

.mc-speaker-photo {
    width: 132px;
    height: 132px;
    margin: 0 auto 20px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid rgba(0, 174, 239, 0.4);
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
}

.mc-speaker-photo img {
    width: 62%;
    height: auto;
    object-fit: contain;
    opacity: 0.7;
}

.mc-speaker-photo.has-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 1;
}

.mc-speaker-name {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    margin: 0 0 6px;
}

.mc-speaker-title {
    font-size: 0.88rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent-teal);
    margin: 0 0 18px;
}

.mc-speaker-bio {
    font-size: 0.95rem;
    line-height: 1.65;
    color: var(--text-secondary);
    margin: 0;
    text-align: left;
    white-space: pre-line;
}

/* Details */

.mc-details {
    padding: 32px 36px;
}

.mc-details-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 14px;
}

.mc-details-list li {
    position: relative;
    padding-left: 30px;
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-secondary);
}

.mc-details-list li::before {
    content: '';
    position: absolute;
    left: 6px;
    top: 0.62em;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent-teal);
    box-shadow: var(--glow);
}

/* After-event callout */

.mc-after-section {
    padding-top: 0;
}

.mc-after {
    padding: 40px;
    text-align: center;
    max-width: 760px;
    margin: 0 auto;
    border-color: rgba(0, 174, 239, 0.28);
    background: linear-gradient(135deg, rgba(0, 174, 239, 0.08), rgba(139, 92, 246, 0.06));
}

.mc-after-tag {
    display: inline-block;
    font-family: var(--font-heading);
    font-size: 0.72rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--accent-teal);
    margin-bottom: 12px;
}

.mc-after h2 {
    font-size: 2rem;
    margin-bottom: 14px;
}

.mc-after p {
    margin: 0 auto;
    max-width: 52ch;
    font-size: 1.02rem;
    line-height: 1.7;
    color: var(--text-secondary);
}

/* Registration */

.mc-register {
    padding: 36px;
    max-width: 720px;
    margin: 0 auto;
}

.mc-register-state {
    text-align: center;
    color: var(--text-secondary);
}

.mc-register-state h3 {
    font-family: var(--font-heading);
    color: var(--text-primary);
    margin: 0 0 10px;
}

.mc-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    margin-bottom: 26px;
}

.mc-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.mc-field:first-child {
    grid-column: 1 / -1;
}

.mc-field label {
    font-size: 0.82rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--logo-gray);
}

.mc-field input {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--card-border);
    border-radius: 10px;
    padding: 13px 15px;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.mc-field input:focus {
    outline: none;
    border-color: var(--accent-teal);
    box-shadow: 0 0 0 3px rgba(0, 174, 239, 0.15);
}

.mc-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px;
    border-radius: 12px;
    background: rgba(0, 174, 239, 0.08);
    border: 1px solid rgba(0, 174, 239, 0.25);
    margin-bottom: 22px;
}

.mc-summary span {
    font-size: 0.9rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--logo-gray);
}

.mc-summary strong {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    color: var(--text-primary);
}

.mc-form-error {
    margin: 0 0 18px;
    padding: 12px 16px;
    border-radius: 10px;
    background: rgba(236, 72, 153, 0.12);
    border: 1px solid rgba(236, 72, 153, 0.35);
    color: #ffd6ea;
    font-size: 0.92rem;
}

.mc-submit {
    width: 100%;
    justify-content: center;
}

.mc-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.mc-fineprint {
    margin: 16px 0 0;
    font-size: 0.82rem;
    line-height: 1.55;
    color: var(--logo-gray);
    text-align: center;
}

.mc-footer {
    padding: 40px 0 56px;
    text-align: center;
    font-size: 0.85rem;
    color: var(--logo-gray);
    border-top: 1px solid var(--card-border);
    position: relative;
    z-index: 1;
}

.mc-footer p {
    margin: 4px 0;
}

.mc-footer a {
    color: var(--accent-teal);
    text-decoration: none;
}

.mc-footer a:hover {
    text-decoration: underline;
}

@media (max-width: 900px) {
    .mc-hero-grid {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .mc-speaker {
        position: static;
    }
}

/* This page has no hamburger menu, so keep the single nav link visible. */
@media (max-width: 768px) {
    .masterclass-page .nav-links {
        display: flex;
    }
}

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

    .mc-form-grid {
        grid-template-columns: 1fr;
    }

    .mc-register,
    .mc-details {
        padding: 24px 20px;
    }
}
