/**
 * Beetle Inc LMS frontend styles.
 *
 * @package BeetleIncLMS
 */

/* =========================================================
   Main LMS container
========================================================= */

.beetlelms {
	margin-bottom: 2em;
    width: 100%;
    box-sizing: border-box;
}

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

/* =========================================================
   Shared buttons, forms and notices
========================================================= */

.beetlelms-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    background: #363536;
    border: 1px solid #363536;
    border-radius: 5px;
    color: #ffffff !important;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    text-align: center;
    text-decoration: none !important;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.beetlelms-button:hover,
.beetlelms-button:focus {
    background: #555355;
    border-color: #555355;
    color: #ffffff !important;
    text-decoration: none !important;
}

.beetlelms-button:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.beetlelms-enrol-form {
    width: 100%;
    margin: 0;
}

.beetlelms-enrol-form .beetlelms-button {
    width: 100%;
}

.beetlelms-status {
    display: inline-block;
    padding: 8px 13px;
    border-radius: 5px;
    font-size: 13px;
    font-weight: 600;
}

.beetlelms-status-enrolled {
    background: #e8f3eb;
    color: #27633b;
}

.beetlelms-status-unavailable {
    background: #f3eeee;
    color: #754444;
}

.beetlelms-notice {
    margin-bottom: 24px;
    padding: 16px 20px;
    border: 1px solid #dddddd;
    border-left-width: 4px;
    border-radius: 5px;
    font-size: 14px;
    line-height: 1.6;
}

.beetlelms-notice p {
    margin: 0 0 12px;
}

.beetlelms-notice p:last-child {
    margin-bottom: 0;
}

.beetlelms-notice-success {
    background: #edf6ef;
    border-color: #b9d9c1;
    border-left-color: #39834f;
    color: #285d37;
}

.beetlelms-notice-info {
    background: #f0f4f8;
    border-color: #cbd8e5;
    border-left-color: #557c9f;
    color: #354f67;
}

.beetlelms-notice-error {
    background: #fbefef;
    border-color: #e5c6c6;
    border-left-color: #b94a48;
    color: #813a39;
}

.beetlelms-empty-state {
    padding: 35px 24px;
    background: #f7f7f7;
    border: 1px solid #eeeeee;
    border-radius: 6px;
    color: #666666;
    text-align: center;
}

/* =========================================================
   Programme catalogue
========================================================= */

.beetlelms-programme-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    width: 100%;
    align-items: stretch;
}

.beetlelms-programme-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    height: 100%;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid #e3e5e8;
    border-radius: 12px;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.05);
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.beetlelms-programme-card:hover {
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.10);
    transform: translateY(-2px);
}

.beetlelms-programme-cover {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #e9edf0;
}

.beetlelms-programme-cover-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.beetlelms-programme-cover-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #e9edf0, #dce2e7);
    color: #7b8792;
}

.beetlelms-programme-cover-placeholder span {
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.beetlelms-programme-featured {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    padding: 6px 11px;
    background: #363536;
    border-radius: 5px;
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.3;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.beetlelms-programme-content-types {
    position: absolute;
    right: 10px;
    bottom: 10px;
    left: 10px;
    z-index: 2;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.beetlelms-content-type {
    display: inline-flex;
    align-items: center;
    padding: 5px 8px;
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 4px;
    color: #454b53;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.3;
}

.beetlelms-programme-card-content {
    flex: 1;
    padding: 18px 18px 16px;
}

.beetlelms-programme-title {
    margin: 0 0 7px;
    color: #363f4d;
    font-size: 19px;
    font-weight: 600;
    line-height: 1.35;
}

.beetlelms-programme-instructor {
    margin-bottom: 17px;
    color: #7a828d;
    font-size: 13px;
    line-height: 1.4;
}

.beetlelms-programme-meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 12px;
    row-gap: 13px;
    padding: 15px 0;
    border-top: 1px solid #eeeeee;
    border-bottom: 1px solid #eeeeee;
}

.beetlelms-programme-meta-item {
    display: flex;
    align-items: center;
    min-width: 0;
    gap: 8px;
    color: #59616b;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.4;
}

.beetlelms-programme-meta-item span {
    min-width: 0;
}

.beetlelms-icon {
    display: inline-block;
    flex: 0 0 16px;
    width: 16px;
    height: 16px;
    color: #9299a2;
    vertical-align: middle;
}

.beetlelms-programme-card-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 14px;
}

.beetlelms-programme-enrolment-count {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #747d88;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.4;
}

.beetlelms-programme-level {
    display: inline-block;
    margin-bottom: 10px;
    padding: 5px 10px;
    background: #f0f2f4;
    border-radius: 5px;
    color: #59616b;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.4;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.beetlelms-programme-description {
    color: #667085;
    font-size: 14px;
    line-height: 1.55;
}

.beetlelms-programme-description p {
    margin: 0 0 10px;
}

.beetlelms-programme-description p:last-child {
    margin-bottom: 0;
}

.beetlelms-programme-version {
    margin-top: 14px;
    color: #89919b;
    font-size: 12px;
}

.beetlelms-programme-card-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    min-height: 68px;
    margin-top: auto;
    padding: 14px 18px;
    border-top: 1px solid #eeeeee;
}

.beetlelms-programme-card-link {
    display: block;
    flex: 1;
    color: inherit;
    text-decoration: none !important;
}

.beetlelms-programme-card-link:hover,
.beetlelms-programme-card-link:focus {
    color: inherit;
    text-decoration: none !important;
}

.beetlelms-programme-card-link .beetlelms-programme-title {
    transition: color 0.2s ease;
}

.beetlelms-programme-card-link:hover .beetlelms-programme-title {
    color: #363536;
}

/* =========================================================
   Single programme overview page
========================================================= */

.beetlelms-programme-page {
    width: 100%;
    color: #454b53;
}

.beetlelms-programme-page-container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
}

.beetlelms-programme-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 370px;
    gap: 42px;
    align-items: start;
}

.beetlelms-programme-main {
    min-width: 0;
}

.beetlelms-programme-heading {
    margin-bottom: 34px;
}

.beetlelms-programme-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 9px;
    margin-bottom: 24px;
    color: #89919b;
    font-size: 13px;
    line-height: 1.5;
}

.beetlelms-programme-breadcrumb a {
    color: #59616b;
    text-decoration: none;
}

.beetlelms-programme-breadcrumb a:hover {
    color: #363536;
    text-decoration: underline;
}

.beetlelms-programme-heading h1 {
    margin: 0 0 12px;
    color: #363f4d;
    font-size: 34px;
    font-weight: 700;
    line-height: 1.25;
}

.beetlelms-programme-heading .beetlelms-programme-level {
    margin-bottom: 12px;
}

.beetlelms-programme-heading .beetlelms-programme-instructor {
    display: flex;
    align-items: center;
    gap: 7px;
    margin: 0;
    color: #747d88;
    font-size: 14px;
}

.beetlelms-programme-heading .dashicons {
    width: 17px;
    height: 17px;
    font-size: 17px;
}

.beetlelms-programme-section {
    margin-bottom: 38px;
    padding-bottom: 32px;
    border-bottom: 1px solid #e8eaed;
}

.beetlelms-programme-section h2 {
    margin: 0 0 18px;
    color: #363f4d;
    font-size: 22px;
    font-weight: 650;
    line-height: 1.35;
}

.beetlelms-programme-description-content {
    color: #626b76;
    font-size: 15px;
    line-height: 1.75;
}

.beetlelms-programme-description-content p {
    margin: 0 0 16px;
}

.beetlelms-programme-description-content p:last-child {
    margin-bottom: 0;
}

.beetlelms-programme-description-content ul,
.beetlelms-programme-description-content ol {
    margin: 0 0 18px;
    padding-left: 24px;
}

.beetlelms-programme-description-content li {
    margin-bottom: 7px;
}

.beetlelms-section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.beetlelms-section-heading h2 {
    margin-bottom: 5px;
}

.beetlelms-section-heading p {
    margin: 0;
    color: #89919b;
    font-size: 13px;
}

/* Programme curriculum */

.beetlelms-curriculum-list {
    overflow: hidden;
    background: #ffffff;
    border: 1px solid #e3e5e8;
    border-radius: 9px;
}

.beetlelms-curriculum-lesson {
    display: flex;
    align-items: center;
    gap: 15px;
    min-width: 0;
    padding: 17px 18px;
    border-bottom: 1px solid #eeeeee;
}

.beetlelms-curriculum-lesson:last-child {
    border-bottom: 0;
}

.beetlelms-curriculum-lesson-number {
    display: flex;
    flex: 0 0 34px;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    background: #f0f2f4;
    border-radius: 50%;
    color: #59616b;
    font-size: 13px;
    font-weight: 700;
}

.beetlelms-curriculum-lesson-content {
    flex: 1;
    min-width: 0;
}

.beetlelms-curriculum-lesson-content h3 {
    margin: 0 0 7px;
    color: #414954;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;
}

.beetlelms-curriculum-lesson-content h3 a {
    color: inherit;
    text-decoration: none;
}

.beetlelms-curriculum-lesson-content h3 a:hover,
.beetlelms-curriculum-lesson-content h3 a:focus {
    text-decoration: underline;
}

.beetlelms-curriculum-lesson-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 7px 16px;
    color: #89919b;
    font-size: 12px;
    line-height: 1.5;
}

.beetlelms-curriculum-lesson-meta span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.beetlelms-curriculum-lesson-meta .dashicons {
    width: 14px;
    height: 14px;
    font-size: 14px;
}

.beetlelms-mandatory-label {
    flex: 0 0 auto;
    padding: 5px 8px;
    background: #f0f2f4;
    border-radius: 4px;
    color: #59616b;
    font-size: 10px;
    font-weight: 700;
    line-height: 1.3;
    text-transform: uppercase;
}

/* Programme assessment list */

.beetlelms-assessment-list {
    overflow: hidden;
    background: #ffffff;
    border: 1px solid #e3e5e8;
    border-radius: 9px;
}

.beetlelms-assessment-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 18px;
    border-bottom: 1px solid #eeeeee;
}

.beetlelms-assessment-item:last-child {
    border-bottom: 0;
}

.beetlelms-assessment-icon {
    display: flex;
    flex: 0 0 36px;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: #f0f2f4;
    border-radius: 7px;
    color: #59616b;
}

.beetlelms-assessment-content {
    flex: 1;
    min-width: 0;
}

.beetlelms-assessment-content h3 {
    margin: 0 0 7px;
    color: #414954;
    font-size: 15px;
    font-weight: 600;
}

.beetlelms-assessment-content p {
    margin: 0 0 9px;
    color: #747d88;
    font-size: 13px;
    line-height: 1.6;
}

.beetlelms-assessment-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 15px;
    color: #89919b;
    font-size: 12px;
}

.beetlelms-empty-message {
    padding: 18px;
    background: #f7f7f7;
    border-radius: 6px;
    color: #747d88;
    font-size: 14px;
}

/* Programme enrolment card */

.beetlelms-programme-sidebar {
    position: sticky;
    top: 35px;
    min-width: 0;
}

.beetlelms-programme-enrol-card {
    overflow: hidden;
    background: #ffffff;
    border: 1px solid #e3e5e8;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.07);
}

.beetlelms-programme-enrol-image {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #e9edf0;
}

.beetlelms-programme-enrol-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.beetlelms-programme-image-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #e9edf0, #dce2e7);
    color: #7b8792;
}

.beetlelms-programme-image-placeholder .dashicons {
    width: 52px;
    height: 52px;
    font-size: 52px;
}

.beetlelms-programme-enrol-image .beetlelms-featured-badge {
    position: absolute;
    top: 13px;
    left: 13px;
    padding: 6px 11px;
    background: #363536;
    border-radius: 5px;
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.beetlelms-programme-enrol-card-content {
    padding: 22px;
}

.beetlelms-programme-summary-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 19px 13px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eeeeee;
}

.beetlelms-programme-summary-item {
    display: flex;
    align-items: center;
    min-width: 0;
    gap: 10px;
}

.beetlelms-programme-summary-item > .dashicons {
    flex: 0 0 19px;
    width: 19px;
    height: 19px;
    color: #9299a2;
    font-size: 19px;
}

.beetlelms-programme-summary-item div {
    display: flex;
    flex-direction: column;
    min-width: 0;
    gap: 3px;
}

.beetlelms-programme-summary-item strong {
    overflow-wrap: anywhere;
    color: #414954;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.35;
}

.beetlelms-programme-summary-item small {
    color: #89919b;
    font-size: 11px;
    line-height: 1.3;
}

.beetlelms-programme-instructor-summary {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 17px 0;
    border-bottom: 1px solid #eeeeee;
}

.beetlelms-programme-instructor-summary > .dashicons {
    flex: 0 0 19px;
    width: 19px;
    height: 19px;
    color: #9299a2;
    font-size: 19px;
}

.beetlelms-programme-instructor-summary div {
    display: flex;
    flex-direction: column;
    min-width: 0;
    gap: 3px;
}

.beetlelms-programme-instructor-summary small {
    color: #89919b;
    font-size: 11px;
}

.beetlelms-programme-instructor-summary strong {
    color: #414954;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
}

.beetlelms-programme-enrol-action {
    padding-top: 19px;
}

.beetlelms-programme-enrol-action .beetlelms-button {
    width: 100%;
    padding: 13px 18px;
}

.beetlelms-enrol-help {
    margin: 11px 0 0;
    color: #89919b;
    font-size: 12px;
    line-height: 1.55;
    text-align: center;
}

.beetlelms-enrol-unavailable {
    padding: 12px;
    background: #fbefef;
    border-radius: 5px;
    color: #813a39;
    font-size: 13px;
    line-height: 1.5;
}

.beetlelms-enrolled-status {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 13px;
    background: #edf6ef;
    border-radius: 5px;
    color: #285d37;
    font-size: 14px;
}

/* =========================================================
   Learner lesson page
========================================================= */

.beetlelms-learning-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 0;
}

.beetlelms-learning-header {
    margin-bottom: 28px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e3e5e8;
}

.beetlelms-learning-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 9px;
    margin-bottom: 15px;
    color: #89919b;
    font-size: 13px;
    line-height: 1.5;
}

.beetlelms-learning-breadcrumb a {
    color: #59616b;
    text-decoration: none;
}

.beetlelms-learning-breadcrumb a:hover {
    color: #363536;
    text-decoration: underline;
}

.beetlelms-learning-breadcrumb-separator {
    color: #c2c7ce;
}

.beetlelms-learning-title {
    margin: 0;
    color: #363f4d;
    font-size: 30px;
    font-weight: 600;
    line-height: 1.3;
}

.beetlelms-learning-content {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
}

.beetlelms-lesson-main {
    min-width: 0;
    padding: 28px;
    background: #ffffff;
    border: 1px solid #e3e5e8;
    border-radius: 12px;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.04);
}

.beetlelms-lesson-content {
    color: #59616b;
    font-size: 15px;
    line-height: 1.75;
    overflow-wrap: anywhere;
}

.beetlelms-lesson-content > *:first-child {
    margin-top: 0;
}

.beetlelms-lesson-content > *:last-child {
    margin-bottom: 0;
}

.beetlelms-lesson-content h2,
.beetlelms-lesson-content h3,
.beetlelms-lesson-content h4 {
    margin-top: 28px;
    margin-bottom: 12px;
    color: #363f4d;
    line-height: 1.4;
}

.beetlelms-lesson-content p {
    margin-bottom: 16px;
}

.beetlelms-lesson-content ul,
.beetlelms-lesson-content ol {
    margin: 0 0 18px;
    padding-left: 24px;
}

.beetlelms-lesson-content li {
    margin-bottom: 7px;
}

.beetlelms-lesson-content img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
}

.beetlelms-lesson-content iframe,
.beetlelms-lesson-content video {
    max-width: 100%;
}

/* Lesson resources */

.beetlelms-lesson-resources {
    margin-top: 35px;
    padding-top: 25px;
    border-top: 1px solid #e9ebee;
}

.beetlelms-lesson-resources > h2 {
    margin: 0 0 18px;
    color: #363f4d;
    font-size: 21px;
    font-weight: 600;
    line-height: 1.4;
}

.beetlelms-resource-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.beetlelms-resource-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    min-width: 0;
    padding: 17px 18px;
    background: #f8f9fa;
    border: 1px solid #e3e5e8;
    border-radius: 8px;
}

.beetlelms-resource-details {
    min-width: 0;
}

.beetlelms-resource-type {
    display: inline-block;
    margin-bottom: 5px;
    color: #89919b;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.4;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.beetlelms-resource-title {
    margin: 0;
    color: #363f4d;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.45;
    overflow-wrap: anywhere;
}

.beetlelms-resource-button {
    flex: 0 0 auto;
    white-space: nowrap;
}

.beetlelms-resource-unavailable {
    color: #89919b;
    font-size: 12px;
    font-style: italic;
}

.beetlelms-learning-footer {
    margin-top: 25px;
    padding-top: 18px;
    border-top: 1px solid #e3e5e8;
}

.beetlelms-learning-back-link {
    display: inline-block;
    color: #59616b;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
}

.beetlelms-learning-back-link:hover {
    color: #363536;
    text-decoration: underline;
}

/* =========================================================
   Lesson curriculum access status
========================================================= */

.beetlelms-curriculum-lesson-number.beetlelms-lesson-status {
    display: flex;
    align-items: center;
    justify-content: center;
}

.beetlelms-lesson-status-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 18px;
    text-decoration: none;
}

.beetlelms-lesson-status-icon .dashicons {
    width: 20px;
    height: 20px;
    font-size: 20px;
    line-height: 20px;
}

.beetlelms-lesson-status-completed {
    color: #ffffff;
    background: #2e8b57;
}

.beetlelms-lesson-status-unlocked {
    color: #ffffff;
    background: #2271b1;
}

.beetlelms-lesson-status-locked {
    color: #777777;
    background: #e5e5e5;
}

.beetlelms-lesson-status-icon:hover,
.beetlelms-lesson-status-icon:focus {
    opacity: 0.85;
    text-decoration: none;
}

/* =========================================================
   Learning page curriculum sidebar
========================================================= */

.beetlelms-learning-layout {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 30px;
    align-items: start;
    width: 100%;
}

.beetlelms-learning-sidebar {
    width: 100%;
    min-width: 0;
}

.beetlelms-curriculum-sidebar {
    padding: 22px;
    background: #ffffff;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
}

.beetlelms-curriculum-sidebar-title {
    margin: 0 0 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e5e5e5;
    color: #363536;
    font-size: 19px;
    font-weight: 600;
    line-height: 1.4;
}

.beetlelms-curriculum-sidebar-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.beetlelms-curriculum-sidebar-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin: 0 0 8px;
    padding: 12px 10px;
    border: 1px solid transparent;
    border-radius: 6px;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.beetlelms-curriculum-sidebar-item:last-child {
    margin-bottom: 0;
}

.beetlelms-curriculum-sidebar-item.is-current {
    background: #f4f7fb;
    border-color: #cbd9e8;
}

.beetlelms-curriculum-sidebar-icon {
    display: flex;
    flex: 0 0 24px;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    font-size: 15px;
}

.beetlelms-curriculum-sidebar-icon .dashicons {
    width: 18px;
    height: 18px;
    font-size: 18px;
}

.beetlelms-sidebar-completed {
    background: #e5f4e9;
    color: #258344;
}

.beetlelms-sidebar-unlocked {
    background: #e8f0fa;
    color: #2865a5;
}

.beetlelms-sidebar-locked {
    background: #f0f0f0;
    color: #929292;
}

.beetlelms-curriculum-sidebar-content {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 5px;
    min-width: 0;
}

.beetlelms-curriculum-sidebar-link,
.beetlelms-curriculum-sidebar-locked-title {
    display: block;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.5;
    text-decoration: none;
}

.beetlelms-curriculum-sidebar-link {
    color: #363536;
}

.beetlelms-curriculum-sidebar-link:hover {
    color: #2865a5;
    text-decoration: none;
}

.beetlelms-curriculum-sidebar-item.is-current .beetlelms-curriculum-sidebar-link {
    color: #245b91;
    font-weight: 700;
}

.beetlelms-curriculum-sidebar-locked-title {
    color: #999999;
    cursor: not-allowed;
}

.beetlelms-curriculum-sidebar-number {
    display: inline;
    margin-right: 3px;
    font-weight: 600;
}

.beetlelms-curriculum-sidebar-mandatory,
.beetlelms-curriculum-sidebar-current-label {
    display: inline-block;
    width: fit-content;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.4;
}

.beetlelms-curriculum-sidebar-mandatory {
    color: #777777;
}

.beetlelms-curriculum-sidebar-current-label {
    color: #2865a5;
}

.beetlelms-learning-layout .beetlelms-lesson-main {
    width: 100%;
    min-width: 0;
}

/* Assessment rows within the lesson curriculum sidebar.
   These are deliberately full-width and have no nested-list indentation. */

.beetlelms-curriculum-flat-assessments,
.beetlelms-curriculum-assessment-list {
    display: block;
    width: 100%;
    margin: 8px 0 12px;
    padding: 0;
    list-style: none;
}

.beetlelms-curriculum-assessment-item {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    margin: 0;
    padding: 10px 12px;
    box-sizing: border-box;
}

.beetlelms-curriculum-assessment-icon {
    display: inline-flex;
    flex: 0 0 22px;
    align-items: center;
    justify-content: center;
    width: 22px;
    margin-right: 2px;
}

.beetlelms-curriculum-assessment-content {
    flex: 1;
    min-width: 0;
}

.beetlelms-curriculum-assessment-link,
.beetlelms-curriculum-assessment-locked {
    display: block;
}

.beetlelms-curriculum-sidebar-content > .beetlelms-curriculum-assessment-list {
    margin-left: 0;
    padding-left: 0;
}

/* =========================================================
   Lesson video player and watch progress
========================================================= */

.beetlelms-lesson-videos,
.beetlelms-video-item,
.beetlelms-video-player-wrapper {
    width: 100%;
    max-width: 100%;
}

.beetlelms-video-player-wrapper {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

.beetlelms-video-player {
    display: block;
    width: 100% !important;
    height: 100% !important;
    max-width: 100%;
    border: 0;
}

.beetlelms-video-progress {
    width: 100%;
    margin-top: 14px;
}

.beetlelms-video-progress-bar {
    position: relative;
    width: 100%;
    height: 9px;
    overflow: hidden;
    background: #e5e7eb;
    border-radius: 20px;
}

.beetlelms-video-progress-fill {
    display: block;
    width: 0;
    height: 100%;
    background: #363536;
    border-radius: 20px;
    transition: width 0.35s ease;
}

.beetlelms-video-progress-text {
    margin: 8px 0 0;
    color: #59616b;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
}

/* =========================================================
   Learner assessment page
   Selectors match templates/assessment/assessment-learning.php
========================================================= */

.beetlelms-assessment-page {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 30px 20px 50px;
    color: #303030;
}

.beetlelms-assessment-header {
    margin-bottom: 28px;
}

.beetlelms-assessment-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 9px;
    margin-bottom: 18px;
    color: #89919b;
    font-size: 13px;
    line-height: 1.5;
}

.beetlelms-assessment-breadcrumb a {
    color: #59616b;
    text-decoration: none;
}

.beetlelms-assessment-breadcrumb a:hover {
    color: #f37421;
    text-decoration: underline;
}

.beetlelms-assessment-page-title {
    margin: 0;
    color: #363f4d;
    font-size: 32px;
    font-weight: 700;
    line-height: 1.25;
}

.beetlelms-assessment-main {
    min-width: 0;
}

/* Assessment start screen */

.beetlelms-assessment-start,
.beetlelms-assessment-attempt,
.beetlelms-assessment-results {
    padding: 32px;
    background: #ffffff;
    border: 1px solid #e3e5e8;
    border-radius: 12px;
    box-shadow: 0 3px 14px rgba(0, 0, 0, 0.04);
}

.beetlelms-assessment-section-heading {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 22px;
}

.beetlelms-assessment-section-heading .dashicons {
    display: inline-flex;
    flex: 0 0 38px;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    background: #fff1e7;
    border-radius: 8px;
    color: #f37421;
    font-size: 21px;
}

.beetlelms-assessment-section-heading h2 {
    margin: 0;
    color: #363f4d;
    font-size: 22px;
    font-weight: 650;
    line-height: 1.35;
}

.beetlelms-assessment-description {
    margin-bottom: 25px;
    color: #626b76;
    font-size: 15px;
    line-height: 1.75;
}

.beetlelms-assessment-description p {
    margin: 0 0 14px;
}

.beetlelms-assessment-description p:last-child {
    margin-bottom: 0;
}

/* Assessment details */

.beetlelms-assessment-details {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin: 25px 0 30px;
}

.beetlelms-assessment-detail {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
    padding: 18px;
    background: #f7f7f7;
    border: 1px solid #eeeeee;
    border-radius: 8px;
}

.beetlelms-assessment-detail-label {
    color: #777777;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.4;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.beetlelms-assessment-detail strong {
    color: #303030;
    font-size: 19px;
    font-weight: 700;
    line-height: 1.35;
}

/* Assessment instructions */

.beetlelms-assessment-instructions {
    margin: 28px 0;
    padding: 22px 24px;
    background: #f8f9fa;
    border: 1px solid #e8eaed;
    border-radius: 8px;
}

.beetlelms-assessment-instructions h3 {
    margin: 0 0 14px;
    color: #363f4d;
    font-size: 17px;
    font-weight: 650;
}

.beetlelms-assessment-instructions ul {
    margin: 0;
    padding-left: 22px;
    color: #59616b;
    font-size: 14px;
    line-height: 1.65;
}

.beetlelms-assessment-instructions li {
    margin-bottom: 7px;
}

.beetlelms-assessment-instructions li:last-child {
    margin-bottom: 0;
}

.beetlelms-assessment-start-form {
    margin: 28px 0 0;
}

.beetlelms-assessment-start-button {
    min-height: 48px;
    padding: 12px 24px;
    background: #f37421;
    border-color: #f37421;
}

.beetlelms-assessment-start-button:hover,
.beetlelms-assessment-start-button:focus {
    background: #dc6418;
    border-color: #dc6418;
}

/* Assessment notices */

.beetlelms-assessment-notice {
    margin: 0 0 24px;
    padding: 15px 18px;
    border: 1px solid #e5e5e5;
    border-left: 4px solid #f37421;
    border-radius: 6px;
    background: #f7f7f7;
    color: #454b53;
    font-size: 14px;
    line-height: 1.6;
}

.beetlelms-assessment-notice-warning {
    border-left-color: #d99a28;
    background: #fff9ed;
    color: #72531c;
}

/* Assessment attempt header */

.beetlelms-assessment-attempt-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 28px;
}

.beetlelms-assessment-attempt-header h2 {
    margin: 0 0 8px;
    color: #363f4d;
    font-size: 22px;
    font-weight: 650;
}

.beetlelms-assessment-attempt-header p {
    margin: 0;
    color: #747d88;
    font-size: 14px;
    line-height: 1.6;
}

.beetlelms-assessment-time-limit {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 8px;
    padding: 9px 12px;
    background: #f7f7f7;
    border: 1px solid #e8eaed;
    border-radius: 6px;
    color: #59616b;
    font-size: 12px;
    font-weight: 600;
}

/* Assessment progress */

.beetlelms-assessment-progress {
    margin-bottom: 18px;
}

.beetlelms-assessment-progress-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
    color: #59616b;
    font-size: 13px;
    font-weight: 600;
}

.beetlelms-assessment-progress-track {
    width: 100%;
    height: 9px;
    overflow: hidden;
    background: #e5e7eb;
    border-radius: 20px;
}

.beetlelms-assessment-progress-fill {
    display: block;
    width: 0;
    height: 100%;
    background: #f37421;
    border-radius: inherit;
    transition: width 0.25s ease;
}

/* Answer saving status and errors */

.beetlelms-assessment-save-status {
    min-height: 22px;
    margin: 14px 0;
    color: #747d88;
    font-size: 13px;
    line-height: 1.5;
}

.beetlelms-assessment-error {
    margin: 12px 0;
    padding: 12px 15px;
    background: #fff1f1;
    border: 1px solid #edcaca;
    border-radius: 6px;
    color: #a12e2e;
    font-size: 13px;
    line-height: 1.5;
}

/* Respect hidden states even if the active WordPress theme overrides them. */

.beetlelms-assessment-page [hidden] {
    display: none !important;
}

/* Assessment questions */

.beetlelms-assessment-question {
    padding: 25px 0;
    border-top: 1px solid #eeeeee;
}

.beetlelms-assessment-question-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 18px;
}

.beetlelms-assessment-question-number {
    color: #f37421;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.beetlelms-assessment-question-points {
    color: #89919b;
    font-size: 12px;
    font-weight: 600;
}

.beetlelms-assessment-question-text {
    margin-bottom: 20px;
    color: #363f4d;
    font-size: 17px;
    font-weight: 600;
    line-height: 1.65;
}

.beetlelms-assessment-question-text p {
    margin: 0 0 12px;
}

.beetlelms-assessment-question-text p:last-child {
    margin-bottom: 0;
}

.beetlelms-assessment-required-label {
    margin: -8px 0 16px;
    color: #a12e2e;
    font-size: 12px;
    font-weight: 600;
}

/* Answer options */

.beetlelms-assessment-options {
    display: flex;
    flex-direction: column;
    gap: 11px;
}

.beetlelms-assessment-option {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 13px;
    width: 100%;
    padding: 15px 17px;
    background: #ffffff;
    border: 1px solid #e1e4e8;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.beetlelms-assessment-option:hover {
    background: #fffaf6;
    border-color: #f37421;
}

.beetlelms-assessment-option:has(input:checked) {
    background: #fff5ed;
    border-color: #f37421;
}

.beetlelms-assessment-option input[type="radio"],
.beetlelms-assessment-option input[type="checkbox"] {
    flex: 0 0 18px;
    width: 18px;
    height: 18px;
    margin: 2px 0 0;
    accent-color: #f37421;
    cursor: pointer;
}

.beetlelms-assessment-option-indicator {
    display: none;
}

.beetlelms-assessment-option-text {
    flex: 1;
    min-width: 0;
    color: #454b53;
    font-size: 14px;
    line-height: 1.6;
}

.beetlelms-assessment-no-options {
    margin: 0;
    color: #a12e2e;
    font-size: 13px;
}

/* Question navigation */

.beetlelms-assessment-navigation {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 25px;
    padding-top: 22px;
    border-top: 1px solid #eeeeee;
}

.beetlelms-assessment-navigation .beetlelms-button {
    min-width: 140px;
}

.beetlelms-assessment-next,
.beetlelms-assessment-review,
.beetlelms-assessment-final-submit {
    background: #f37421;
    border-color: #f37421;
}

.beetlelms-assessment-next:hover,
.beetlelms-assessment-review:hover,
.beetlelms-assessment-final-submit:hover {
    background: #dc6418;
    border-color: #dc6418;
}

.beetlelms-assessment-submit-confirmation {
    margin-top: 25px;
    padding: 24px;
    background: #f8f9fa;
    border: 1px solid #e3e5e8;
    border-radius: 8px;
}

.beetlelms-assessment-submit-confirmation h3 {
    margin: 0 0 10px;
    color: #363f4d;
    font-size: 19px;
}

.beetlelms-assessment-submit-confirmation p {
    margin: 0;
    color: #59616b;
    font-size: 14px;
    line-height: 1.6;
}

.beetlelms-assessment-submit-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 20px;
}

.beetlelms-assessment-return {
    background: #ffffff;
    border-color: #d5d9de;
    color: #454b53 !important;
}

.beetlelms-assessment-return:hover {
    background: #f0f2f4;
    border-color: #c5cbd2;
    color: #363536 !important;
}

/* Assessment results */

.beetlelms-assessment-result-summary {
    margin-bottom: 25px;
    padding: 28px;
    border-radius: 9px;
    text-align: center;
}

.beetlelms-assessment-result-summary.is-passed {
    background: #edf6ef;
    color: #285d37;
}

.beetlelms-assessment-result-summary.is-failed {
    background: #fbefef;
    color: #813a39;
}

.beetlelms-assessment-result-summary > .dashicons {
    display: inline-block;
    width: 36px;
    height: 36px;
    margin-bottom: 8px;
    font-size: 36px;
}

.beetlelms-assessment-result-summary h2 {
    margin: 0 0 10px;
    font-size: 23px;
    font-weight: 700;
}

.beetlelms-assessment-result-summary p {
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
}

.beetlelms-assessment-result-score {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 35px;
}

.beetlelms-assessment-result-score-main,
.beetlelms-assessment-result-detail {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
    min-width: 0;
    padding: 18px;
    background: #f7f7f7;
    border: 1px solid #eeeeee;
    border-radius: 8px;
}

.beetlelms-assessment-result-score-main {
    grid-column: 1 / -1;
    align-items: center;
    padding: 25px;
}

.beetlelms-assessment-result-label,
.beetlelms-assessment-result-detail span {
    color: #747d88;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.4;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.beetlelms-assessment-result-score-main strong {
    color: #303030;
    font-size: 42px;
    font-weight: 800;
    line-height: 1.1;
}

.beetlelms-assessment-result-detail strong {
    color: #363f4d;
    font-size: 17px;
    font-weight: 700;
}

/* Question feedback */

.beetlelms-assessment-feedback > h2 {
    margin: 0 0 20px;
    color: #363f4d;
    font-size: 21px;
    font-weight: 650;
}

.beetlelms-assessment-feedback-question {
    margin-bottom: 18px;
    padding: 22px;
    border: 1px solid #e3e5e8;
    border-radius: 8px;
}

.beetlelms-assessment-feedback-question.is-correct {
    border-left: 4px solid #25834a;
}

.beetlelms-assessment-feedback-question.is-incorrect {
    border-left: 4px solid #c0392b;
}

.beetlelms-assessment-feedback-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 14px;
}

.beetlelms-assessment-feedback-heading h3 {
    margin: 0;
    color: #363f4d;
    font-size: 16px;
    font-weight: 650;
}

.beetlelms-assessment-feedback-result {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex: 0 0 auto;
    font-size: 12px;
    font-weight: 700;
}

.beetlelms-assessment-feedback-question.is-correct .beetlelms-assessment-feedback-result {
    color: #25834a;
}

.beetlelms-assessment-feedback-question.is-incorrect .beetlelms-assessment-feedback-result {
    color: #c0392b;
}

.beetlelms-assessment-feedback-question-text {
    margin-bottom: 16px;
    color: #454b53;
    font-size: 14px;
    line-height: 1.65;
}

.beetlelms-assessment-feedback-question-text p:last-child {
    margin-bottom: 0;
}

.beetlelms-assessment-feedback-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.beetlelms-assessment-feedback-option {
    padding: 13px 15px;
    background: #f8f9fa;
    border: 1px solid #e8eaed;
    border-radius: 6px;
}

.beetlelms-assessment-feedback-option.is-correct-option {
    background: #f1faf4;
    border-color: #b9d9c1;
}

.beetlelms-assessment-feedback-option.was-selected:not(.is-correct-option) {
    background: #fff5f5;
    border-color: #e5c6c6;
}

.beetlelms-assessment-feedback-option-text {
    display: block;
    color: #454b53;
    font-size: 14px;
    line-height: 1.5;
}

.beetlelms-assessment-feedback-option-labels {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 8px;
}

.beetlelms-feedback-selected,
.beetlelms-feedback-correct {
    display: inline-block;
    padding: 3px 7px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 700;
    line-height: 1.4;
    text-transform: uppercase;
}

.beetlelms-feedback-selected {
    background: #e8f0fa;
    color: #2865a5;
}

.beetlelms-feedback-correct {
    background: #e5f4e9;
    color: #258344;
}

.beetlelms-assessment-option-feedback,
.beetlelms-assessment-question-feedback {
    margin-top: 12px;
    color: #626b76;
    font-size: 13px;
    line-height: 1.6;
}

.beetlelms-assessment-option-feedback p:last-child,
.beetlelms-assessment-question-feedback p:last-child {
    margin-bottom: 0;
}

.beetlelms-assessment-question-feedback {
    padding: 13px 15px;
    background: #f7f7f7;
    border-radius: 6px;
}

.beetlelms-assessment-question-feedback strong {
    display: block;
    margin-bottom: 5px;
    color: #363f4d;
}

.beetlelms-assessment-feedback-points {
    margin-top: 15px;
    color: #747d88;
    font-size: 12px;
    font-weight: 600;
}

.beetlelms-assessment-result-actions {
    display: flex;
    justify-content: flex-start;
    margin-top: 28px;
}

.beetlelms-assessment-return-lesson {
    background: #363536;
    border-color: #363536;
}

/* =========================================================
   Responsive layouts
========================================================= */

/* Tablet */

@media (max-width: 980px) {

    .beetlelms-programme-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 20px;
    }

    .beetlelms-programme-layout {
        grid-template-columns: minmax(0, 1fr) 320px;
        gap: 25px;
    }

    .beetlelms-programme-enrol-card-content {
        padding: 18px;
    }

    .beetlelms-programme-summary-grid {
        gap: 16px 9px;
    }

    .beetlelms-learning-layout {
        grid-template-columns: 240px minmax(0, 1fr);
        gap: 20px;
    }

    .beetlelms-curriculum-sidebar {
        padding: 18px;
    }
}

/* Mobile and smaller tablets */

@media (max-width: 767px) {

    .beetlelms-programme-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .beetlelms-programme-card-content {
        padding: 18px 16px 15px;
    }

    .beetlelms-programme-card-footer {
        padding: 14px 16px;
    }

    .beetlelms-programme-title {
        font-size: 19px;
    }

    .beetlelms-programme-meta {
        column-gap: 8px;
        row-gap: 12px;
    }

    .beetlelms-programme-meta-item {
        gap: 6px;
        font-size: 12px;
    }

    .beetlelms-button {
        width: 100%;
    }

    /* Programme overview */

    .beetlelms-programme-layout {
        display: flex;
        flex-direction: column;
        gap: 25px;
    }

    .beetlelms-programme-main {
        width: 100%;
    }

    .beetlelms-programme-sidebar {
        position: static;
        width: 100%;
        order: -1;
    }

    .beetlelms-programme-heading {
        margin-bottom: 25px;
    }

    .beetlelms-programme-heading h1 {
        font-size: 27px;
    }

    .beetlelms-programme-breadcrumb {
        margin-bottom: 17px;
    }

    .beetlelms-programme-section {
        margin-bottom: 28px;
        padding-bottom: 25px;
    }

    .beetlelms-programme-section h2 {
        font-size: 20px;
    }

    .beetlelms-curriculum-lesson {
        align-items: flex-start;
        gap: 11px;
        padding: 14px 12px;
    }

    .beetlelms-curriculum-lesson-number {
        flex-basis: 30px;
        width: 30px;
        height: 30px;
    }

    .beetlelms-mandatory-label {
        font-size: 9px;
    }

    .beetlelms-programme-enrol-card-content {
        padding: 18px;
    }

    .beetlelms-programme-summary-grid {
        gap: 17px 12px;
    }

    /* Lesson page */

    .beetlelms-learning-page {
        padding: 12px 0;
    }

    .beetlelms-learning-title {
        font-size: 24px;
    }

    .beetlelms-lesson-main {
        padding: 20px;
    }

    .beetlelms-resource-item {
        align-items: flex-start;
        flex-direction: column;
        gap: 12px;
        padding: 15px;
    }

    .beetlelms-resource-button {
        width: 100%;
    }

    /* Learning layout */

    .beetlelms-learning-layout {
        grid-template-columns: minmax(0, 1fr);
        gap: 20px;
    }

    .beetlelms-learning-sidebar {
        order: 1;
    }

    .beetlelms-learning-layout .beetlelms-lesson-main {
        order: 2;
    }

    .beetlelms-curriculum-sidebar {
        padding: 18px;
    }

    .beetlelms-curriculum-sidebar-title {
        margin-bottom: 15px;
        font-size: 17px;
    }

    /* Assessment page */

    .beetlelms-assessment-page {
        padding: 22px 12px 35px;
    }

    .beetlelms-assessment-page-title {
        font-size: 25px;
    }

    .beetlelms-assessment-start,
    .beetlelms-assessment-attempt,
    .beetlelms-assessment-results {
        padding: 22px 18px;
        border-radius: 9px;
    }

    .beetlelms-assessment-details {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .beetlelms-assessment-detail {
        padding: 14px;
    }

    .beetlelms-assessment-attempt-header {
        flex-direction: column;
        gap: 14px;
    }

    .beetlelms-assessment-navigation {
        flex-wrap: wrap;
    }

    .beetlelms-assessment-navigation .beetlelms-button {
        flex: 1 1 calc(50% - 8px);
        min-width: 0;
    }

    .beetlelms-assessment-submit-actions {
        flex-direction: column;
    }

    .beetlelms-assessment-submit-actions .beetlelms-button {
        width: 100%;
    }

    .beetlelms-assessment-result-score {
        grid-template-columns: 1fr;
    }

    .beetlelms-assessment-result-score-main {
        grid-column: auto;
    }

    .beetlelms-assessment-feedback-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .beetlelms-assessment-feedback-question {
        padding: 17px;
    }

    .beetlelms-assessment-result-summary {
        padding: 22px 16px;
    }
}

/* Very small mobile screens */

@media (max-width: 400px) {

    .beetlelms-programme-heading h1 {
        font-size: 24px;
    }

    .beetlelms-programme-summary-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 15px 8px;
    }

    .beetlelms-programme-summary-item {
        gap: 7px;
    }

    .beetlelms-programme-summary-item strong {
        font-size: 12px;
    }

    .beetlelms-curriculum-lesson-meta {
        gap: 6px 10px;
    }

    .beetlelms-assessment-page {
        padding-right: 8px;
        padding-left: 8px;
    }

    .beetlelms-assessment-start,
    .beetlelms-assessment-attempt,
    .beetlelms-assessment-results {
        padding: 18px 14px;
    }

    .beetlelms-assessment-question-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 6px;
    }
}

.beetlelms-programme-page, .beetlelms-learning-page {
	margin-top: 10em;
}