/* Styles for local_smartexpcourses. */

:root {
    --sec-primary: #006273;
    --sec-primary-2: #00909a;
    --sec-accent: #17b6b6;
    --sec-ink: #12333a;
    --sec-muted: #64808a;
    --sec-line: #dce7ea;
    --sec-bg: #f3f8f9;
}

.local-smartexpcourses {
    --sec-primary: #006273;
    --sec-primary-2: #00909a;
    --sec-accent: #17b6b6;
    --sec-ink: #12333a;
    --sec-muted: #64808a;
    --sec-line: #dce7ea;
    --sec-bg: #f3f8f9;
    max-width: 1180px;
    margin: 0 auto;
    color: var(--sec-ink);
}

.local-smartexpcourses a {
    text-decoration: none;
}

/* ---------- Page header banner ---------- */
.sec-page-banner {
    position: relative;
    overflow: hidden;
    border-radius: 22px;
    padding: 38px 40px;
    margin-bottom: 26px;
    color: #fff;
    background: linear-gradient(120deg, var(--sec-primary) 0%, var(--sec-primary-2) 55%, var(--sec-accent) 130%);
    box-shadow: 0 20px 40px -20px rgba(0, 98, 115, 0.55);
}

.sec-page-banner::after {
    content: "";
    position: absolute;
    inset-inline-end: -60px;
    top: -80px;
    width: 260px;
    height: 260px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.14);
}

.sec-page-banner::before {
    content: "";
    position: absolute;
    inset-inline-start: 30%;
    bottom: -120px;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
}

.sec-page-banner h1,
.sec-page-banner h2 {
    position: relative;
    z-index: 1;
    margin: 0;
    font-weight: 800;
    letter-spacing: -0.01em;
}

.sec-page-banner p {
    position: relative;
    z-index: 1;
    margin: 8px 0 0;
    opacity: 0.92;
    font-size: 15px;
}

.sec-page-banner .sec-banner-actions {
    position: relative;
    z-index: 1;
    margin-top: 18px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* ---------- Buttons ---------- */
.local-smartexpcourses .btn-primary,
.sec-btn-primary {
    background: linear-gradient(120deg, var(--sec-primary), var(--sec-primary-2)) !important;
    border: none !important;
    color: #fff !important;
    box-shadow: 0 10px 22px -12px rgba(0, 98, 115, 0.9);
}

.sec-btn-primary:hover,
.sec-btn-primary:focus {
    color: #fff !important;
}

.sec-btn-ghost {
    background: rgba(255, 255, 255, 0.16) !important;
    border: 1px solid rgba(255, 255, 255, 0.55) !important;
    color: #fff !important;
    backdrop-filter: blur(4px);
}

.sec-btn-ghost:hover,
.sec-btn-ghost:focus {
    background: rgba(255, 255, 255, 0.28) !important;
    color: #fff !important;
}

/* ---------- Course grid ---------- */
.sec-course-grid {
    margin-top: 4px;
}

.sec-course-card {
    position: relative;
    display: block;
    height: 100%;
    background: #fff;
    border: 1px solid var(--sec-line);
    border-radius: 18px;
    overflow: hidden;
    color: inherit;
    box-shadow: 0 10px 30px -22px rgba(18, 51, 58, 0.5);
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.sec-course-card:hover,
.sec-course-card:focus {
    transform: translateY(-6px);
    box-shadow: 0 26px 48px -24px rgba(0, 98, 115, 0.55);
    border-color: #9fd0d6;
    color: inherit;
}

.sec-course-image {
    position: relative;
    height: 186px;
    background: #e6f1f3;
    overflow: hidden;
}

.sec-course-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.sec-course-card:hover .sec-course-image img {
    transform: scale(1.06);
}

.sec-course-image-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    background: linear-gradient(135deg, #9ed4da 0%, #5fb9c2 45%, #17b6b6 120%);
}

.sec-course-image-placeholder::after {
    content: "";
    width: 74px;
    height: 74px;
    border-radius: 22px;
    border: 3px solid rgba(255, 255, 255, 0.65);
    background: rgba(255, 255, 255, 0.18);
}

.sec-course-body {
    padding: 18px 20px 20px;
}

.sec-course-title {
    font-size: 19px;
    font-weight: 800;
    margin: 0 0 8px;
    line-height: 1.5;
}

.sec-course-summary {
    color: var(--sec-muted);
    font-size: 14px;
    line-height: 1.8;
    margin-bottom: 14px;
}

.sec-course-meta {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.sec-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: #e7f2f4;
    color: #234b54;
    border-radius: 999px;
    padding: 4px 13px;
    font-size: 12px;
    font-weight: 700;
}

.sec-badge-date {
    background: #ddf2f4;
    color: #006273;
}

.sec-badge-done {
    background: #e6f8ee;
    color: #14804a;
}

/* ---------- Hero (course / day / test) ---------- */
.sec-course-hero,
.sec-day-header {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--sec-line);
    border-radius: 20px;
    box-shadow: 0 18px 40px -30px rgba(18, 51, 58, 0.6);
}

.sec-course-hero {
    display: flex;
    flex-direction: row;
    align-items: center;
}

[dir="rtl"] .sec-course-hero {
    flex-direction: row-reverse;
}

.sec-course-hero-image {
    position: relative;
    flex: 0 0 320px;
    max-width: 320px;
    aspect-ratio: 820 / 928;
    overflow: hidden;
    background: #f4f7f8;
}

.sec-course-hero-image img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.sec-course-hero-body {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: #fff;
    padding: 26px 30px;
}

.sec-course-hero-title,
.sec-day-title {
    font-weight: 800;
    margin-bottom: 10px;
    letter-spacing: -0.01em;
}

.sec-crumb {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    color: var(--sec-muted);
    font-size: 13px;
    margin-bottom: 14px;
}

.sec-section-description {
    color: #444;
    line-height: 2;
}

/* ---------- Tabs ---------- */
.sec-tabs {
    border: none;
    gap: 8px;
    margin-bottom: 18px;
    flex-wrap: wrap;
}

.sec-tabs .nav-link {
    font-weight: 700;
    color: #4b5563;
    border: 1px solid transparent;
    background: #e7f2f4;
    border-radius: 999px;
    padding: 10px 22px;
    transition: all 0.18s ease;
}

.sec-tabs .nav-link:hover {
    background: #d5e9ec;
}

.sec-tabs .nav-link.active {
    color: #fff;
    background: linear-gradient(120deg, var(--sec-primary), var(--sec-primary-2));
    box-shadow: 0 12px 24px -14px rgba(0, 98, 115, 0.95);
}

.sec-tab-content {
    background: transparent;
    border: none;
    padding: 0;
}

.sec-tab-heading {
    margin: 0 0 16px;
    font-weight: 800;
    font-size: 18px;
}

.sec-about-card {
    border: 1px solid var(--sec-line);
    border-radius: 18px;
    box-shadow: 0 18px 40px -32px rgba(18, 51, 58, 0.6);
}

/* ---------- Accordion (days) ---------- */
.sec-accordion {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.sec-acc-item {
    border: 1px solid var(--sec-line);
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 12px 30px -26px rgba(18, 51, 58, 0.6);
    overflow: hidden;
}

.sec-acc-item[open] {
    border-color: #9fd0d6;
    box-shadow: 0 22px 46px -28px rgba(0, 98, 115, 0.5);
}

.sec-acc-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 18px 22px;
    cursor: pointer;
    list-style: none;
    font-weight: 700;
    font-size: 16px;
    transition: background 0.18s ease;
}

.sec-acc-head::-webkit-details-marker {
    display: none;
}

.sec-acc-head:hover {
    background: #f4fafb;
}

.sec-acc-item[open] .sec-acc-head {
    background: linear-gradient(120deg, rgba(0, 98, 115, 0.08), rgba(0, 144, 154, 0.06));
}

.sec-acc-name {
    display: flex;
    align-items: center;
    gap: 12px;
}

.sec-acc-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: linear-gradient(120deg, var(--sec-primary), var(--sec-primary-2));
    box-shadow: 0 0 0 4px rgba(0, 98, 115, 0.14);
}

.sec-acc-caret {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #e7f2f4;
    color: var(--sec-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    transition: transform 0.25s ease, background 0.18s ease;
}

.sec-acc-item[open] .sec-acc-caret {
    transform: rotate(180deg);
    background: linear-gradient(120deg, var(--sec-primary), var(--sec-primary-2));
    color: #fff;
}

.sec-acc-body {
    padding: 6px 22px 24px;
}

/* ---------- Feature cards ---------- */
.sec-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 14px;
}

.sec-feature-card {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    background: #fbfcff;
    border: 1px solid var(--sec-line);
    border-radius: 14px;
    padding: 16px 16px 18px;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.sec-feature-card.is-active:hover {
    transform: translateY(-4px);
    border-color: #9fd0d6;
    box-shadow: 0 18px 34px -24px rgba(0, 98, 115, 0.7);
}

.sec-feature-icon {
    flex: 0 0 auto;
    width: 46px;
    height: 46px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(120deg, rgba(0, 98, 115, 0.12), rgba(23, 182, 182, 0.12));
}

.sec-feature-icon img {
    width: 22px;
    height: 22px;
}

.sec-feature-title {
    font-weight: 700;
    font-size: 15px;
    margin-bottom: 2px;
}

.sec-feature-sub {
    color: var(--sec-muted);
    font-size: 12px;
}

.sec-feature-card.is-disabled {
    opacity: 0.55;
    background: #f4f5f9;
    cursor: not-allowed;
    position: relative;
}

.sec-feature-card.is-disabled::after {
    content: "\1F512";
    position: absolute;
    top: 10px;
    inset-inline-end: 12px;
    font-size: 12px;
    opacity: 0.6;
}

.sec-test-list {
    list-style: none;
    margin: 10px 0 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.sec-test-list a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 8px 12px;
    border-radius: 10px;
    background: #e7f2f4;
    color: #313a55;
    font-weight: 600;
    font-size: 13px;
    transition: background 0.16s ease, transform 0.16s ease;
}

.sec-test-list a:hover {
    background: linear-gradient(120deg, var(--sec-primary), var(--sec-primary-2));
    color: #fff;
    transform: translateX(2px);
}

/* ---------- Agenda list (day contents) ---------- */
.sec-agenda {
    display: flex;
    flex-direction: column;
}

.sec-agenda-row {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    padding: 13px 16px;
    border: 1px solid var(--sec-line);
    border-radius: 12px;
    background: #fff;
    margin-bottom: 8px;
    transition: background 0.16s ease, border-color 0.16s ease, transform 0.16s ease;
}

.sec-agenda-row.is-tests {
    background: linear-gradient(120deg, rgba(0, 98, 115, 0.07), rgba(23, 182, 182, 0.06));
    border-color: #bfe0e4;
}

.sec-agenda-row.is-activity:hover {
    background: #f4fafb;
    border-color: #8ac6cd;
    transform: translateX(4px);
    box-shadow: 0 16px 32px -22px rgba(0, 98, 115, 0.8);
}

.sec-agenda-row.is-activity:hover .sec-agenda-title {
    color: var(--sec-primary);
}

.sec-agenda-row.is-activity:hover .sec-agenda-dot {
    transform: scale(1.25);
    box-shadow: 0 0 0 6px rgba(0, 98, 115, 0.16);
}

.sec-agenda-row.is-activity:hover .sec-agenda-time {
    background: linear-gradient(120deg, var(--sec-primary), var(--sec-primary-2));
    color: #fff;
}

.sec-agenda-row .sec-agenda-dot,
.sec-agenda-row .sec-agenda-time,
.sec-agenda-row .sec-agenda-title {
    transition: all 0.18s ease;
}

.sec-agenda-row.is-demo {
    opacity: 0.7;
    background: #f8f9fc;
    border-style: dashed;
    cursor: default;
}

.sec-agenda-row.is-demo:hover {
    transform: none;
    background: #f8f9fc;
    border-color: var(--sec-line);
}

.sec-agenda-icon {
    flex: 0 0 auto;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(120deg, rgba(0, 98, 115, 0.14), rgba(23, 182, 182, 0.14));
}

.sec-agenda-icon img {
    width: 20px;
    height: 20px;
}

.sec-agenda-dot {
    flex: 0 0 auto;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: linear-gradient(120deg, var(--sec-primary), var(--sec-primary-2));
    box-shadow: 0 0 0 4px rgba(0, 98, 115, 0.12);
}

.sec-agenda-main {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1 1 auto;
    min-width: 0;
}

.sec-agenda-title {
    font-weight: 700;
    font-size: 15px;
    color: var(--sec-ink);
}

.sec-agenda-title.is-disabled {
    color: var(--sec-muted);
    cursor: default;
    pointer-events: none;
}

.sec-agenda-sub {
    color: var(--sec-muted);
    font-size: 12px;
}

.sec-agenda-time {
    flex: 0 0 auto;
    margin-inline-start: auto;
    font-weight: 700;
    font-size: 13px;
    color: #0d4d5a;
    background: linear-gradient(120deg, rgba(0, 98, 115, 0.1), rgba(23, 182, 182, 0.1));
    border-radius: 999px;
    padding: 6px 16px;
    white-space: nowrap;
}

.sec-agenda-side {
    flex: 0 1 auto;
    margin-inline-start: auto;
}

.sec-agenda-side .sec-test-list {
    margin: 0;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 6px;
}

.sec-agenda-side .sec-test-list li {
    display: inline-flex;
    align-items: center;
}

.sec-agenda-side .sec-test-list a {
    padding: 7px 14px;
}

.sec-event-heading {
    font-weight: 800;
    font-size: 14px;
    color: #006273;
    margin: 16px 0 10px;
}

/* ---------- Event timeline (scheduled activities) ---------- */
.sec-event-block {
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px dashed var(--sec-line);
}

.sec-event-heading {
    font-weight: 800;
    font-size: 15px;
    color: #006273;
    margin: 0 0 12px;
}

.sec-event-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 10px;
}

.sec-event-card {
    position: relative;
    display: flex;
    gap: 14px;
    align-items: center;
    background: #fff;
    border: 1px solid var(--sec-line);
    border-inline-start: 4px solid transparent;
    border-radius: 12px;
    padding: 12px 14px;
    transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

.sec-event-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 34px -26px rgba(18, 51, 58, 0.75);
    border-inline-start-color: var(--sec-primary);
}

.sec-event-card.is-demo {
    opacity: 0.72;
    background: #f8f9fc;
    border-style: dashed;
    cursor: default;
}

.sec-event-card.is-demo:hover {
    transform: none;
    box-shadow: none;
    border-inline-start-color: transparent;
}

.sec-event-card.is-demo .sec-event-time {
    background: #eef1f7;
}

.sec-event-time {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    min-width: 74px;
    padding: 8px 10px;
    border-radius: 10px;
    background: linear-gradient(120deg, rgba(0, 98, 115, 0.1), rgba(23, 182, 182, 0.1));
    color: #0d4d5a;
    font-weight: 700;
    font-size: 12px;
    line-height: 1.4;
}

.sec-event-time span:first-child {
    color: var(--sec-primary);
}

.sec-event-time span:last-child::before {
    content: "\2193";
    display: block;
    font-size: 10px;
    color: var(--sec-muted);
}

.sec-event-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.sec-event-title {
    font-weight: 700;
    font-size: 14px;
    color: var(--sec-ink);
}

.sec-event-sub {
    color: var(--sec-muted);
    font-size: 12px;
}

/* ---------- Lists (tests / days standalone) ---------- */
.sec-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.sec-list-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    background: #fff;
    border: 1px solid var(--sec-line);
    border-radius: 14px;
    padding: 15px 18px;
    color: inherit;
    transition: background 0.16s ease, border-color 0.16s ease, transform 0.16s ease;
}

.sec-list-item:hover,
.sec-list-item:focus {
    background: #f4fafb;
    border-color: #9fd0d6;
    transform: translateY(-2px);
    color: inherit;
}

.sec-item-name {
    font-size: 16px;
    font-weight: 700;
}

.sec-item-desc {
    color: var(--sec-muted);
    font-size: 13px;
    margin-top: 3px;
}

.sec-item-meta {
    display: flex;
    align-items: center;
    gap: 10px;
}

.sec-item-arrow {
    color: var(--sec-primary);
    font-size: 22px;
    line-height: 1;
}

/* ---------- Test page ---------- */
.sec-test-hero {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    padding: 30px 32px;
    color: #fff;
    background: linear-gradient(125deg, var(--sec-primary) 0%, var(--sec-primary-2) 70%, var(--sec-accent) 140%);
    box-shadow: 0 22px 46px -26px rgba(0, 98, 115, 0.7);
}

.sec-test-hero::after {
    content: "";
    position: absolute;
    inset-inline-end: -50px;
    top: -70px;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
}

.sec-test-hero-body {
    position: relative;
    z-index: 1;
}

.sec-test-kicker {
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 11px;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 999px;
    padding: 4px 14px;
    margin-bottom: 12px;
}

.sec-test-title {
    margin: 0 0 8px;
    font-weight: 800;
    color: #fff;
}

.sec-test-desc {
    opacity: 0.94;
    line-height: 1.9;
    margin-bottom: 14px;
}

.sec-test-meta {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.sec-test-chip {
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 999px;
    padding: 5px 14px;
    font-size: 12px;
    font-weight: 600;
}

/* Success state. */
.sec-test-success {
    text-align: center;
    background: #fff;
    border: 1px solid var(--sec-line);
    border-radius: 20px;
    padding: 44px 30px;
    box-shadow: 0 20px 44px -34px rgba(18, 51, 58, 0.6);
}

.sec-test-success-icon {
    width: 76px;
    height: 76px;
    margin: 0 auto 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 38px;
    color: #fff;
    background: linear-gradient(125deg, var(--sec-primary), var(--sec-primary-2));
    box-shadow: 0 16px 32px -16px rgba(0, 98, 115, 0.8);
}

.sec-test-success-title {
    font-weight: 800;
    color: var(--sec-ink);
    margin-bottom: 22px;
}

/* Sticky progress. */
.sec-progress {
    position: sticky;
    top: 0;
    z-index: 5;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(6px);
    border: 1px solid var(--sec-line);
    border-radius: 14px;
    padding: 14px 18px;
    margin-bottom: 18px;
    box-shadow: 0 12px 28px -24px rgba(18, 51, 58, 0.7);
}

.sec-progress-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.sec-progress-label {
    font-weight: 700;
    font-size: 13px;
    color: var(--sec-ink);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.sec-progress-count {
    font-weight: 800;
    font-size: 13px;
    color: var(--sec-primary);
}

.sec-progress-track {
    height: 8px;
    border-radius: 999px;
    background: #e3eef0;
    overflow: hidden;
}

.sec-progress-fill {
    height: 100%;
    width: 0;
    border-radius: 999px;
    background: linear-gradient(120deg, var(--sec-primary), var(--sec-accent));
    transition: width 0.3s ease;
}

/* Submit bar. */
.sec-submit-bar {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 18px 4px 4px;
    border-top: 1px dashed var(--sec-line);
    margin-top: 6px;
}

/* ---------- Questions ---------- */
.sec-back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 14px;
    font-weight: 700;
    color: var(--sec-primary);
}

.sec-question {
    position: relative;
    background: #fff;
    border: 1px solid var(--sec-line);
    border-radius: 18px;
    padding: 22px 24px;
    margin-bottom: 16px;
    overflow: hidden;
    box-shadow: 0 16px 36px -32px rgba(18, 51, 58, 0.65);
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.sec-question::before {
    content: "";
    position: absolute;
    inset-inline-start: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, var(--sec-primary), var(--sec-accent));
}

.sec-question:hover {
    border-color: #bfe0e4;
    box-shadow: 0 22px 44px -30px rgba(0, 98, 115, 0.6);
}

.sec-question-head {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 16px;
}

.sec-question-number {
    flex: 0 0 auto;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: linear-gradient(125deg, var(--sec-primary), var(--sec-primary-2));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 15px;
    box-shadow: 0 8px 18px -10px rgba(0, 98, 115, 0.9);
}

.sec-question-text {
    font-size: 17px;
    font-weight: 700;
    line-height: 1.8;
    color: var(--sec-ink);
    padding-top: 3px;
}

.sec-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-inline-start: 48px;
}

.sec-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 12px;
    border: 1px solid var(--sec-line);
    background: #fbfdfd;
    cursor: pointer;
    margin: 0;
    transition: background 0.16s ease, border-color 0.16s ease, transform 0.16s ease, box-shadow 0.16s ease;
}

.sec-option:hover {
    background: #f2fafb;
    border-color: #9fd0d6;
    transform: translateX(3px);
    box-shadow: 0 12px 26px -22px rgba(0, 98, 115, 0.8);
}

.sec-radio-input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.sec-option-letter {
    flex: 0 0 auto;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 13px;
    color: var(--sec-primary);
    background: #e3eef0;
    border: 2px solid transparent;
    transition: all 0.16s ease;
}

.sec-option-text {
    font-size: 15px;
    font-weight: 600;
    color: #204a52;
}

/* Checked state. */
.sec-radio-input:checked ~ .sec-option-letter {
    background: linear-gradient(125deg, var(--sec-primary), var(--sec-primary-2));
    color: #fff;
    border-color: rgba(255, 255, 255, 0.6);
    box-shadow: 0 8px 18px -8px rgba(0, 98, 115, 0.9);
}

.sec-option:has(.sec-radio-input:checked) {
    background: #eaf6f7;
    border-color: var(--sec-primary);
    box-shadow: 0 14px 30px -24px rgba(0, 98, 115, 0.9);
}

.sec-option:has(.sec-radio-input:checked) .sec-option-text {
    color: var(--sec-primary);
}

.sec-radio-input:focus-visible ~ .sec-option-letter {
    outline: 2px solid var(--sec-primary);
    outline-offset: 2px;
}

.sec-submit {
    padding: 12px 38px;
    font-size: 16px;
    border-radius: 12px;
    font-weight: 700;
}

/* ---------- Management ---------- */
.sec-manage-course .card-header {
    background: #f4f9fa;
}

.sec-manage-title {
    font-size: 17px;
    font-weight: 700;
}

.sec-manage-section-title {
    margin-top: 18px;
    margin-bottom: 10px;
    font-weight: 800;
    color: #006273;
    border-bottom: 1px solid #e3eef0;
    padding-bottom: 6px;
}

.sec-manage-day {
    border-top: 1px solid #e3eef0;
    padding-top: 14px;
    margin-top: 14px;
}

.sec-manage-day-header {
    margin-bottom: 10px;
}

.sec-manage-desc {
    color: var(--sec-muted);
    font-size: 13px;
    margin-top: 2px;
}

.sec-manage-questions {
    margin-bottom: 0;
}

.sec-actions {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    align-items: center;
}

/* RTL tweaks */
[dir="rtl"] .sec-item-arrow {
    transform: scaleX(-1);
}

@media (max-width: 576px) {
    .sec-page-banner {
        padding: 26px 22px;
    }
    .sec-course-hero,
    [dir="rtl"] .sec-course-hero {
        flex-direction: column;
    }
    .sec-course-hero-image {
        flex: 0 0 auto;
        max-width: 100%;
        width: 100%;
        aspect-ratio: auto;
        height: 240px;
    }
    .sec-course-hero-body {
        padding: 20px 22px;
    }
}

/* Portal (M3): units, activities, contents. */
.sec-unit-desc {
    margin: 0 0 .75rem;
    color: #475569;
}

.sec-agenda-row.is-locked {
    opacity: .7;
}

.sec-locked-label {
    color: #b45309;
    font-weight: 600;
}

.sec-activity-header .sec-activity-pattern {
    display: inline-block;
    background: #eff6ff;
    color: #2563eb;
    font-size: .78rem;
    font-weight: 700;
    padding: .2rem .6rem;
    border-radius: 999px;
    margin-bottom: .5rem;
}

.sec-activity-desc {
    color: #334155;
}

.sec-phase-heading {
    color: #64748b;
    font-weight: 700;
    margin: 1rem 0 .75rem;
}

.sec-content-card {
    border: 1px solid rgba(0, 0, 0, .07);
    border-radius: 14px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, .04);
}

.sec-content-head {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: .5rem;
    margin-bottom: .5rem;
}

.sec-content-icon {
    color: #2563eb;
    font-size: 1.1rem;
}

.sec-content-title {
    font-weight: 700;
    color: #0f172a;
    font-size: 1.05rem;
}

.sec-badge-type {
    background: #eef2ff;
    color: #4338ca;
}

.sec-badge-locked {
    background: #fef3c7;
    color: #92400e;
}

.sec-content-desc {
    color: #475569;
}

.sec-media-files {
    display: flex;
    flex-direction: column;
    gap: .75rem;
    margin-top: .5rem;
}

.sec-media-image,
.sec-media-video {
    max-width: 100%;
    border-radius: 10px;
}

.sec-media-audio {
    width: 100%;
}

.sec-answer-input {
    max-width: 640px;
}

.sec-table {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
}

/* Form date/time inputs use native type=date/time with Moodle form-control styling. */

/* Unit progress states. */
.sec-acc-item.is-completed .sec-acc-head {
    border-inline-start: 4px solid #059669;
}

.sec-acc-item.is-next .sec-acc-head {
    border-inline-start: 4px solid #2563eb;
    background: #eff6ff;
}

.sec-acc-item.is-later .sec-acc-head {
    border-inline-start: 4px solid #cbd5e1;
    opacity: .75;
}

.sec-unit-status {
    margin-inline-start: .5rem;
}

.sec-unit-status.status-completed {
    background: #d1fae5;
    color: #065f46;
}

.sec-unit-status.status-next {
    background: #dbeafe;
    color: #1d4ed8;
}

.sec-unit-status.status-later {
    background: #e2e8f0;
    color: #475569;
}

.sec-unit-locked {
    color: #64748b;
    font-weight: 600;
    margin: 0;
}

/* ---------- Applications ---------- */
.sec-apply-area {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.sec-status.is-pending {
    background: #fef3c7;
    color: #92400e;
}

.sec-status.is-approved {
    background: #e6f8ee;
    color: #14804a;
}

.sec-status.is-rejected {
    background: #fde8e8;
    color: #b42318;
}

.sec-review-form {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 240px;
}

.sec-review-form .btn-success {
    background: #14804a !important;
    border-color: #14804a !important;
    color: #fff !important;
}

.sec-review-form .btn-outline-danger {
    background: #fff !important;
    color: #b42318 !important;
    border-color: #b42318 !important;
}

.sec-applications-table td {
    vertical-align: top;
}

/* ---------- Participants management board ---------- */
.sec-participant-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.sec-kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 14px;
    margin-bottom: 22px;
}

.sec-kpi {
    display: flex;
    flex-direction: column;
    gap: 6px;
    background: #fff;
    border: 1px solid var(--sec-line);
    border-inline-start: 5px solid var(--sec-primary);
    border-radius: 16px;
    padding: 16px 18px;
}

.sec-kpi.is-warning {
    border-inline-start-color: #f0ad4e;
}

.sec-kpi.is-success {
    border-inline-start-color: #14804a;
}

.sec-kpi.is-neutral {
    border-inline-start-color: #64748b;
}

.sec-kpi-value {
    font-size: 30px;
    font-weight: 800;
    line-height: 1;
    color: var(--sec-ink, #12333a);
}

.sec-kpi-label {
    font-size: 13px;
    font-weight: 600;
    color: #64748b;
}

.sec-chart-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
    margin-bottom: 20px;
}

@media (min-width: 768px) {
    .sec-chart-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1200px) {
    .sec-chart-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .sec-chart-span2 {
        grid-column: span 2;
    }
}

.sec-chart-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    background: #fff;
    border: 1px solid var(--sec-line);
    border-radius: 14px;
    padding: 12px 14px 8px;
    overflow: hidden;
}

.sec-chart-grid .sec-chart-card .chart-area {
    margin: 0;
    width: 100%;
}

.sec-chart-grid .sec-chart-card .chart-image {
    position: relative;
    width: 100%;
    height: 200px;
    margin: 0;
}

.sec-chart-grid .sec-chart-card .chart-table {
    margin-top: auto;
    padding-top: 6px;
    font-size: 12px;
}

.sec-chart-wide {
    grid-column: 1 / -1;
}

.sec-chart-grid .sec-chart-card.sec-chart-wide .chart-image {
    height: 220px;
}

.sec-import-summary {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.sec-import-help {
    background: #f8fafb;
}

.sec-participants-table td {
    vertical-align: top;
}
