/* Hide Sensei Lesson Action buttons by default on the Evaluation page template */
/* This way we can toggle it visible when the form for an evaluation is submitted */
.lesson-template-evaluation-template .eval-actions {
	display: none;
}

/* Hide the PMPro admin member dashboard items that will confuse users */
#pmpro-edit-user-div #pmpro-member-edit-orders-tab,
#pmpro-edit-user-div #pmpro-member-edit-subscriptions-tab,
#pmpro-edit-user-div #pmpro-member-edit-user-info-tab {
	display: none;
}

/* =========================================================
   Student Dashboard (My Account > Dashboard)
   ========================================================= */

.emd-dashboard-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.emd-stat-card,
.emd-resource-card {
    background: #fff;
    border-radius: 12px;
    padding: 1.75rem 1.5rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
    text-align: center;
}

.emd-stat-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 0.75rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.emd-stat-icon svg {
    width: 24px;
    height: 24px;
}

.emd-stat-icon.icon-blue   { background: #e3f1f8; color: #0071a1; }
.emd-stat-icon.icon-green  { background: #e6f7ec; color: #2e8540; }
.emd-stat-icon.icon-orange { background: #fff4e5; color: #d9822b; }

.emd-stat-card h2 {
    margin: 0;
    font-size: 2rem;
}

.emd-stat-card p {
    margin: 0.25rem 0 0.75rem;
    color: #555;
}

.emd-stat-card a,
.emd-resource-card a {
    color: #0071a1;
    text-decoration: none;
    font-weight: 600;
}

.emd-stat-card a:hover,
.emd-resource-card a:hover {
    text-decoration: underline;
}

.emd-dashboard-notice {
    margin-bottom: 1.5rem;
    padding: 1.5rem;
    background: #fff4e5;
    border-radius: 12px;
}

.emd-dashboard-notice h3 {
    margin-top: 0;
}

.emd-dashboard-cta {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
    padding: 1.75rem;
    background: #e3f1f8;
    border-radius: 12px;
}

.emd-dashboard-cta-icon {
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #fff;
    color: #0071a1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.emd-dashboard-cta-icon svg {
    width: 28px;
    height: 28px;
}

.emd-dashboard-cta-text {
    flex: 1;
    min-width: 200px;
}

.emd-dashboard-cta-text h3 {
    margin: 0 0 0.25rem;
}

.emd-dashboard-cta-text p {
    margin: 0;
    color: #555;
}

.emd-dashboard-resources {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.emd-resource-icon {
    width: 44px;
    height: 44px;
    margin: 0 auto 0.75rem;
    border-radius: 50%;
    background: #f0f6f9;
    color: #0071a1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.emd-resource-icon svg {
    width: 22px;
    height: 22px;
}

.emd-resource-card h3 {
    margin: 0 0 0.5rem;
    font-size: 1.05rem;
}

.emd-resource-card p {
    color: #555;
    font-size: 0.92rem;
}

.emd-resource-card ul,
.emd-resource-card ol {
    text-align: left;
    padding-left: 1.25rem;
    color: #555;
    font-size: 0.92rem;
}

.emd-faq-button,
.emd-faq-button:hover,
.emd-faq-button:focus,
.emd-faq-button:visited,
.emd-faq-button:active {
    color: #fff !important;
}

.emd-steps-list {
    counter-reset: emd-step;
    list-style: none;
    padding-left: 0;
}

.emd-steps-list li {
    position: relative;
    padding-left: 1.75rem;
    margin-bottom: 0.5rem;
    counter-increment: emd-step;
}

.emd-steps-list li::before {
    content: counter(emd-step);
    position: absolute;
    left: 0;
    top: 0;
    width: 1.25rem;
    height: 1.25rem;
    border-radius: 50%;
    background: #0071a1;
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (max-width: 991px) {
    .emd-dashboard-resources {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 767px) {
    .emd-dashboard-stats,
    .emd-dashboard-resources {
        grid-template-columns: 1fr;
    }

    .emd-dashboard-cta {
        text-align: center;
        justify-content: center;
    }
}




/* Sensei quiz question title — override h2 theme/plugin sizing.
   The actual DOM path is: #sensei-quiz-list > li > div > h2.question-title
   !important is needed here because Sensei's own stylesheet sets font-size via a
   clamp() rule on a high-specificity selector that may load after ours. */
#sensei-quiz-list li + li {
    margin-top: 2rem !important;
}

#sensei-quiz-list li h2 {
    font-size: 1.25rem !important;
    font-weight: 700 !important;
    line-height: 1.4 !important;
}

@media (max-width: 767px) {
    #sensei-quiz-list li h2 {
        font-size: 1.1rem !important;
    }
}

/* Remove auto-number markers from the question list and bullet markers from
   answer option lists. The theme inherits list-style from the block editor,
   which adds ::marker counters to <ol> (question numbers) and bullets to <ul>
   (answer choices) inside the quiz block — confusing to students. */
.wp-block-sensei-lms-quiz ol li::marker,
.wp-block-sensei-lms-quiz ul li::marker,
.sensei-lms-question-block ol li::marker,
.sensei-lms-question-block ul li::marker {
    content: none;
}

.wp-block-sensei-lms-quiz ol,
.wp-block-sensei-lms-quiz ul,
.sensei-lms-question-block ol,
.sensei-lms-question-block ul {
    list-style: none;
}

/* =========================================================
   Easy Product Bundles – "View course details" popup link
   Injected by scripts.js as a free-plan workaround for the
   Pro-only "Show Product Details" pop-up click behaviour.
   ========================================================= */

.emd-popup-product-link {
    display      : inline-block;
    margin-top   : 8px;
    font-size    : 0.82em;
    color        : #0073aa;
    text-decoration: underline;
    cursor       : pointer;
}

.emd-popup-product-link:hover {
    color: #005177;
}

/* =========================================================
   Single Course page header
   Course landing pages (linked from the "Access Course" button in
   My Account) don't have a dedicated Blocksy hero panel, since Blocksy
   excludes the "course" post type from its per-post-type hero settings.
   The hero's big padded title bar is hidden entirely here — the course
   title is rendered instead inside the content area, in a row next to
   the linked WooCommerce product's image (see EMD_Sensei::
   add_course_title_image_row_and_account_button() in class-sensei.php,
   hooked to the_content).
   ========================================================= */

.single-course .hero-section {
    display: none;
}

.course-title-image-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.course-title-image-row .course-product-thumb {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
}

.course-title-image-row h1 {
    margin: 0;
    font-size: 1.75rem;
}

@media (max-width: 480px) {
    .course-title-image-row h1 {
        font-size: 1.4rem;
    }
}

/* =========================================================
   Evaluations Slider  (used by [evaluations slider="1"])
   ========================================================= */

.emd-evaluations-slider {
    padding-bottom: 2.5rem; /* room for dot pagination */
    background    : transparent;
}

/* Each slide holds a group of reviews stacked vertically */
.emd-evaluations-slider .evaluation-group {
    display       : flex;
    flex-direction: column;
    width         : 100%;
}

.emd-evaluations-slider .evaluation-card {
    background : transparent;
    padding    : 1.5rem 2rem;
    text-align : center;
}

/* Thin separator bar between reviews within a group */
.emd-evaluations-slider .evaluation-card--divided {
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.emd-evaluations-slider .evaluation-stars {
    color      : #f5c518;
    font-size  : 1.2em;
    margin     : 0 0 0.5rem;
    line-height: 1;
}

.emd-evaluations-slider .evaluation-comments {
    margin     : 0 0 0.75rem;
    padding    : 0;
    border     : none;
    font-style : italic;
    color      : inherit;
    font-size  : 0.95rem;
    line-height: 1.6;
}

.emd-evaluations-slider .evaluation-author {
    margin   : 0;
    font-size: 0.85rem;
    color    : inherit;
    opacity  : 0.75;
}

.emd-evaluations-slider .evaluation-county {
    font-weight: normal;
}

/* Arrows */
.emd-evaluations-slider .splide__arrow {
    background: transparent;
    opacity   : 0.5;
}

.emd-evaluations-slider .splide__arrow svg {
    fill: currentColor;
}

.emd-evaluations-slider .splide__arrow:hover {
    opacity: 1;
}

/* Dots */
.emd-evaluations-slider .splide__pagination__page {
    background: currentColor;
    opacity   : 0.25;
}

.emd-evaluations-slider .splide__pagination__page.is-active {
    background: currentColor;
    opacity   : 1;
    transform : scale(1.3);
}
