/* === TRANSPARENT HEADER — PERFECT TUCK === */

/* Courses: zero top spacing + your -8px tweak on the Spectra container */
body.single-mpcs-course .site-content,
body.single-mpcs-course .ast-container,
body.single-mpcs-course #primary,
body.single-mpcs-course #main,
body.single-mpcs-course article,
body.single-mpcs-course .entry-content {
    padding-top: 0 !important;
    margin-top: 0 !important;
		margin-bottom: 32px !important;
}
body.single-mpcs-course .wp-block-uagb-container.alignfull:first-of-type {
    margin-top: -30px !important;   /* your working value — change only if needed */
}

/* Lessons: small top padding so nothing clips under header */
body.single-mpcs-lesson .site-content,
body.single-mpcs-lesson .ast-container,
body.single-mpcs-lesson #primary,
body.single-mpcs-lesson #main,
body.single-mpcs-lesson article,
body.single-mpcs-lesson .entry-content {
    padding-top: 40px !important;
		padding-bottom: 40px !important;
    margin-top: 0 !important;
}

/* Force header fully transparent on both */
body.single-mpcs-course .site-header,
body.single-mpcs-lesson .site-header {
    background: transparent !important;
    box-shadow: none !important;
}

/* === DARK THEME — ONLY courses & lessons === */
body.single-mpcs-course,
body.single-mpcs-lesson {
    background-color: #22223B !important;
}

/* White text everywhere */
body.single-mpcs-course .site-content,
body.single-mpcs-lesson .site-content,
body.single-mpcs-course .entry-content,
body.single-mpcs-lesson .entry-content {
    color: #ffffff !important;
}

/* Hide original title + author/date */
body.single-mpcs-course .entry-title,
body.single-mpcs-course .entry-meta,
body.single-mpcs-lesson .entry-title,
body.single-mpcs-lesson .entry-meta {
    display: none !important;
}

/* Header menu links = pure white */
body.single-mpcs-course .main-header-menu a,
body.single-mpcs-lesson .main-header-menu a {
    color: #ffffff !important;
}
body.single-mpcs-course .main-header-menu a:hover,
body.single-mpcs-lesson .main-header-menu a:hover {
    color: #98C263 !important;
}

/* Back to All Courses button (manual) */
.back-to-courses-link {
    display: inline-block !important;
    background-color: #98C263 !important;
    color: #22223B !important;
    font-weight: 600;
    padding: 14px 32px;
    border-radius: 8px;
    text-decoration: none;
    margin: 25px 0 40px 20px;
    transition: all 0.3s ease;
}
.back-to-courses-link:hover {
    background-color: #ffffff !important;
    color: #98C263 !important;
    transform: translateY(-2px);
}

/* Breadcrumbs */
.mpcs-breadcrumbs {
    font-size: 1.25rem !important;
    font-weight: 500 !important;
    padding-bottom: 2.5rem !important;
    color: #98C263 !important;
    border-bottom: 1px solid rgba(255,255,255,0.1) !important;
}

/* Hide useless global post navigation */
body.single-mpcs-course .navigation.post-navigation,
body.single-mpcs-lesson .navigation.post-navigation {
    display: none !important;
}

/* Lesson navigation */
#mpcs-lesson-navigation {
    margin-top: 3rem !important;
    padding: 2rem 0 !important;
    border-top: 2px solid rgba(152, 194, 99, 0.3) !important;
}
#mpcs-lesson-navigation a {
    color: #ffffff !important;
    font-size: 1.1rem !important;
    font-weight: 600 !important;
    padding: 0.75rem 1.5rem !important;
    border-radius: 8px !important;
}
#mpcs-lesson-navigation a:hover {
    background-color: #98C263 !important;
    color: #22223B !important;
}

/* Brand buttons & progress */
body.single-mpcs-course .mpcs-button,
body.single-mpcs-lesson .mpcs-button,
.mpcs-progress-bar {
    background-color: #98C263 !important;
    color: #22223B !important;
    border-radius: 8px !important;
}

/* Links = cool sky blue (excluding certificate button) */
body.single-mpcs-course a:not(.main-header-menu a):not(.mpcs-button):not(.back-to-courses-link):not(.mpcs-certificate-link),
body.single-mpcs-lesson a:not(.main-header-menu a):not(.mpcs-button):not(.back-to-courses-link):not(.mpcs-certificate-link) {
/*     color: #22223B !important; */
		text-decoration: none;
}
body.single-mpcs-course a:hover:not(.main-header-menu a):not(.mpcs-button):not(.back-to-courses-link),
body.single-mpcs-lesson a:hover:not(.main-header-menu a):not(.mpcs-button):not(.back-to-courses-link) {
    color: #98C263 !important;
}

/* === #BOOKMARK SECTION === */
#bookmark {
    background: rgba(152, 194, 99, 0.08) !important;
    border-radius: 12px !important;
    padding: 1.5rem !important;
    margin-bottom: 2rem !important;
    border: 1px solid rgba(152, 194, 99, 0.2) !important;
}
#bookmark .mpcs-section-header {
    background-color: #98C263 !important;
    color: #22223B !important;
    padding: 1rem 1.5rem !important;
    border-radius: 8px !important;
    display: flex !important;
    align-items: center !important;
    gap: 1.5rem !important;
}
#bookmark .mpcs-progress-bar-title {
    color: #22223B !important;
    font-size: 1.4rem !important;
    font-weight: 600 !important;
}
#bookmark .course-progress-bar-main,
#bookmark .mpcs-progress-bar > div[role="progressbar"] {
    display: none !important;
}
#bookmark #bookmark_link {
    display: none !important;
}

/* === #SECTION1 === */
#section1 .mpcs-section-header {
    display: none !important;
}
#section1 {
    background: rgba(34, 34, 59, 0.6) !important;
    border-radius: 12px !important;
    padding: 2rem !important;
    margin-bottom: 2rem !important;
    border: none !important;
}
#section1 .mpcs-section-title-text {
    color: #ffffff !important;
    font-size: 1.8rem !important;
    font-weight: 700 !important;
}
.mpcs-lesson {
    background: rgba(245, 214, 204, 0.08) !important;
    border-radius: 8px !important;
    margin-bottom: 1rem !important;
    padding: 1rem !important;
}
.mpcs-lesson-link {
    color: #ffffff !important;
    font-weight: 600 !important;
}




/* === DOWNLOAD YOUR CERTIFICATE BUTTON — WHITE TEXT BY DEFAULT === */
.mpcs-certificate-link,
.mpcs-certificate-link.mpcs-button,
a.mpcs-certificate-link {
    display: inline-block !important;
    background-color: #98C263 !important;
    color: #ffffff !important;           /* White text by default */
    font-weight: 600;
    padding: 16px 36px;
    border-radius: 8px;
    text-decoration: none;
    margin: 2rem 0 1rem 0;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(152, 194, 99, 0.3);
}

.mpcs-certificate-link:hover,
.mpcs-certificate-link.mpcs-button:hover,
a.mpcs-certificate-link:hover {
    background-color: #ffffff !important;
    color: #22223B !important;           /* Dark text on hover */
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(152, 194, 99, 0.4);
}



/* === DOWNLOAD YOUR CERTIFICATE BUTTON — WHITE TEXT BY DEFAULT === */
body.single-mpcs-course .mpcs-certificate-link,
body.single-mpcs-course .mpcs-certificate-link a,
body.single-mpcs-course a.mpcs-certificate-link,
.mpcs-certificate-link,
.mpcs-certificate-link a,
a.mpcs-certificate-link,
.mpcs-certificate-link.mpcs-button,
.mpcs-certificate-link.mpcs-button a {
    color: #ffffff !important;
    text-decoration: none !important;
}

body.single-mpcs-course .mpcs-certificate-link:hover,
body.single-mpcs-course .mpcs-certificate-link a:hover,
body.single-mpcs-course a.mpcs-certificate-link:hover,
.mpcs-certificate-link:hover,
.mpcs-certificate-link a:hover,
a.mpcs-certificate-link:hover,
.mpcs-certificate-link.mpcs-button:hover,
.mpcs-certificate-link.mpcs-button a:hover {
    color: #22223B !important;
    text-decoration: none !important;
}

/* =============================================
   SMALL TWEAKS ONLY - Courses / Lessons
   ============================================= */

/* Next Lesson button - turned into a proper branded button */
#mpcs-lesson-navigation a {
    background-color: #98C263 !important;
    color: #22223B !important;
    padding: 14px 28px !important;
    border-radius: 8px !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    display: inline-block;
    transition: all 0.3s ease;
}

#mpcs-lesson-navigation a:hover {
    background-color: #7EB14E !important;
    transform: translateY(-2px);
}

/* ULTRA-SPECIFIC BREADCRUMB FIX */
.mpcs-breadcrumbs .mpcs-breadcrumb:not(.mpcs-active) a {
    color: #ffffff !important;
}


























/* =============================================
   MPCS QUIZ PAGE - Dark Professional
   Matches the rest of the courses/lessons styling
   ============================================= */

body.single-mpcs-quiz {
    background-color: #22223B !important;
}

/* Page title */
body.single-mpcs-quiz .entry-title {
    color: #ffffff;
    font-size: 36px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 40px;
}

/* Main quiz container */
body.single-mpcs-quiz .entry-content {
    max-width: 720px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* Individual question cards */
body.single-mpcs-quiz .mpcs-quiz-question {
    background: #2C2C4E;
    border-radius: 16px;
    padding: 28px 32px;
    margin-bottom: 24px;
    border: 1px solid #3A3A5E;
}

/* Question labels / legends */
body.single-mpcs-quiz .mpcs-quiz-question-label,
body.single-mpcs-quiz .mpcs-quiz-question legend {
    color: #ffffff;
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 18px;
}

/* Radio button labels */
body.single-mpcs-quiz .mpcs-quiz-question-option-label {
    color: #F0F0F5;
    font-size: 1.05rem;
}

/* Textareas (essay questions) */
body.single-mpcs-quiz .mpcs-quiz-question-field-essay {
    background: #36365A !important;
    border: 2px solid #55505C !important;
    border-radius: 12px;
    color: #F0F0F5;
    padding: 16px;
    font-size: 16px;
    min-height: 140px;
}

body.single-mpcs-quiz .mpcs-quiz-question-field-essay:focus {
    border-color: #98C263 !important;
    box-shadow: 0 0 0 4px rgba(152, 194, 99, 0.3);
}

/* Submit button */
body.single-mpcs-quiz #mpcs-quiz-submit-bottom,
body.single-mpcs-quiz .mpcs-quiz-submit {
    background-color: #98C263 !important;
    color: #22223B !important;
    padding: 18px 40px !important;
    font-size: 18px;
    font-weight: 700;
    border-radius: 12px !important;
    width: 100%;
    max-width: 320px;
    margin: 30px auto 0;
    display: block;
    transition: all 0.3s ease;
}

body.single-mpcs-quiz #mpcs-quiz-submit-bottom:hover,
body.single-mpcs-quiz .mpcs-quiz-submit:hover {
    background-color: #7EB14E !important;
    transform: translateY(-3px);
}

/* Breadcrumbs on quiz page - non-active links */
body.single-mpcs-quiz .mpcs-breadcrumbs .mpcs-breadcrumb:not(.mpcs-active) a {
    color: #F4D6CC !important;
}









/* =============================================
   QUIZ PAGE - SPECIFIC TWEAKS ONLY
   ============================================= */

/* Transparent header + top margin (matches lesson pages) */
body.single-mpcs-quiz .site-header {
    background: transparent !important;
    box-shadow: none !important;
}

body.single-mpcs-quiz .site-content,
body.single-mpcs-quiz .entry-content {
    padding-top: 40px !important;
}

/* Hide page title and author/date meta */
body.single-mpcs-quiz .entry-title,
body.single-mpcs-quiz .entry-meta {
    display: none !important;
}

/* Essay / short answer question labels - make text white */
body.single-mpcs-quiz .mpcs-quiz-question-label,
body.single-mpcs-quiz .mpcs-quiz-question-label label {
    color: #ffffff !important;
}

/* Short answer fields ("Your name", "Your job title") - dark background + white text */
body.single-mpcs-quiz .mpcs-quiz-question-field-short-answer {
    background-color: #36365A !important;
    color: #F0F0F5 !important;
    border: 2px solid #55505C !important;
    border-radius: 12px;
}

/* Multiple choice - selected option turns brand green */
body.single-mpcs-quiz .mpcs-quiz-question-option input[type="radio"]:checked + label + label,
body.single-mpcs-quiz .mpcs-quiz-question-option input[type="radio"]:checked ~ label.mpcs-quiz-question-option-label {
    color: #98C263 !important;
}



/* =============================================
   QUIZ PAGE - FINAL TWEAKS
   Bring back title + force transparent header
   ============================================= */

body.single-mpcs-quiz .site-header {
    background: transparent !important;
    box-shadow: none !important;
}

body.single-mpcs-quiz .entry-title {
    display: block !important;
    color: #ffffff;
    font-size: 36px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 40px;
}

/* Keep meta hidden */
body.single-mpcs-quiz .entry-meta {
    display: none !important;
}
