/* ============================================================
   SITE — SHARED COMPONENTS
   Consolidated from page-specific CSS files that duplicated the
   same selector (identical or with minor copy-paste drift).
   ============================================================ */

.login-form-panel {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    background: #f4f6f8;
    overflow-y: auto;
}

.login-form-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.08);
    padding: 44px 40px;
    width: 100%;
    max-width: 440px;
}

.login-form-header {
    margin-bottom: 32px;
    text-align: center;
}

.login-logo-mobile {
    display: none;
    margin: 0 auto 20px;
}

.login-form-title {
    font-size: 1.6rem;
    font-weight: 800;
    color: #1a1a2e;
    margin-bottom: 6px;
}

.login-form-subtitle {
    color: #6c757d;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 0;
}

.login-back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #6c757d;
    font-size: 13px;
    text-decoration: none;
    margin-bottom: 20px;
    transition: color 0.15s;
}

.login-back-link:hover {
    color: #104684;
}

.btn-login {
    background: #104684;
    border: none;
    border-radius: 10px;
    padding: 13px;
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    width: 100%;
    transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
    letter-spacing: 0.3px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-login:hover {
    background: #0c3470;
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(16,70,132,0.35);
    color: #fff;
}

.login-form-card .form-label {
    font-size: 13px;
    font-weight: 600;
    color: #495057;
    margin-bottom: 6px;
}

.login-form-card .form-control {
    border-radius: 10px;
    border: 1.5px solid #e9ecef;
    padding: 12px 14px;
    font-size: 14px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.login-form-card .form-control:focus {
    border-color: #104684;
    box-shadow: 0 0 0 0.2rem rgba(16,70,132,0.12);
}

.login-form-card .form-control.is-invalid {
    border-color: #dc3545;
}

.login-footer-links {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
    font-size: 13px;
}

.login-footer-links a {
    color: #104684;
    text-decoration: none;
    font-weight: 600;
}

.login-footer-links a:hover {
    text-decoration: underline;
}

.btn-login:active {
    transform: translateY(0);
}

.hero-section {
    background: linear-gradient(135deg, #104684 0%, #0c3470 40%, #1a1a2e 100%);
    position: relative;
    overflow: hidden;
    padding: 80px 0 60px;
}

.hero-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 20% 80%, rgba(255,255,255,0.06) 0%, transparent 50%), radial-gradient(circle at 80% 20%, rgba(255,255,255,0.06) 0%, transparent 50%);
    pointer-events: none;
}

.hero-pattern {
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
}

.hero-badge {
    display: inline-block;
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.25);
    border-radius: 50px;
    padding: 6px 16px;
    font-size: 13px;
    color: #fff;
    margin-bottom: 20px;
    backdrop-filter: blur(4px);
}

.hero-title {
    font-size: clamp(1.8rem, 4vw, 3rem);
    font-weight: 800;
    color: #fff;
    line-height: 1.2;
    margin-bottom: 16px;
    text-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.hero-subtitle {
    color: rgba(255,255,255,0.85);
    font-size: 1.1rem;
    margin-bottom: 0;
    max-width: 560px;
}

.course-card {
    border: 1px solid #e9ecef;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.22s ease, box-shadow 0.22s ease;
    background: #fff;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.course-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.12);
}

.course-cover {
    height: 180px;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #104684, #0c3470);
    flex-shrink: 0;
}

.course-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.course-card:hover .course-cover img {
    transform: scale(1.05);
}

.course-cover-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.4;
}

.course-cover-placeholder i {
    color: #fff;
    font-size: 4rem;
}

.course-badge-wrap {
    position: absolute;
    top: 12px;
    left: 12px;
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
    max-width: calc(100% - 24px);
}

.badge-cat {
    background: rgba(16,70,132,0.9);
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 4px;
    backdrop-filter: blur(4px);
    line-height: 1.4;
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.badge-cert {
    background: #da1f43;
    color: #fff;
    font-size: 11px;
    padding: 3px 8px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 3px;
}

.course-body {
    padding: 18px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.course-title {
    color: #212529;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.course-desc {
    color: #6c757d;
    font-size: 0.875rem;
    line-height: 1.55;
    margin-bottom: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}

.course-footer {
    padding: 14px 18px;
    border-top: 1px solid #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.course-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.meta-item {
    color: #6c757d;
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
}

.meta-item i {
    color: #adb5bd;
    font-size: 13px;
}

.btn-enroll {
    background: #da1f43;
    border: none;
    border-radius: 8px;
    color: #fff;
    flex-shrink: 0;
    font-size: 13px;
    font-weight: 600;
    padding: 7px 14px;
    text-decoration: none;
    transition: background 0.2s;
    white-space: nowrap;
}

.btn-enroll:hover {
    background: #b81835;
    color: #fff;
}

.btn-enroll.secondary {
    background: #104684;
}

.btn-enroll.secondary:hover {
    background: #0c3470;
}

@media (max-width: 991px) {
    .login-cover {
        display: none;
    }

    .login-logo-mobile {
        display: block;
    }

    .login-form-card {
        padding: 32px 24px;
    }

}

@media (max-width: 480px) {
    .login-form-card {
        padding: 24px 20px;
    }

}

@media (min-width: 992px) and (max-width: 1199px) {
    .login-cover-title {
        font-size: 2rem;
    }

    .login-cover-inner {
        padding: 36px 36px 36px 44px;
    }

}

/* ============================================================
   errors-minimal
   ============================================================ */

.error-page {
    min-height: calc(100vh - 260px);
    display: flex;
    align-items: center;
    padding: 72px 0;
    background: radial-gradient(circle at top left, rgba(16, 70, 132, 0.12), transparent 32%), linear-gradient(180deg, #f4f6f8 0%, #ffffff 100%);
}

.error-shell {
    max-width: 920px;
    margin: 0 auto;
    padding: 0 16px;
}

.error-panel {
    display: grid;
    grid-template-columns: minmax(150px, 220px) 1fr;
    gap: 36px;
    align-items: center;
    background: #ffffff;
    border: 1px solid #dce3ec;
    border-radius: 8px;
    box-shadow: 0 18px 55px rgba(16, 70, 132, 0.10);
    padding: 42px;
}

.error-mark {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 180px;
    border-radius: 8px;
    background: linear-gradient(135deg, #073a78 0%, #0b4d93 58%, #08244b 100%);
    border: 1px solid rgba(7, 58, 120, 0.18);
    color: #ffffff;
    position: relative;
    overflow: hidden;
}

.error-mark::after {
    content: '';
    position: absolute;
    right: 0;
    bottom: 0;
    width: 58%;
    height: 100%;
    background: linear-gradient(135deg, transparent 15%, rgba(255, 255, 255, 0.08));
    clip-path: polygon(28% 100%, 52% 28%, 64% 48%, 76% 20%, 100% 62%, 100% 100%);
    opacity: .9;
}

.error-mark > * {
    position: relative;
    z-index: 1;
}

.error-mark i {
    font-size: 44px;
    line-height: 1;
    margin-bottom: 14px;
}

.error-code {
    font-size: clamp(44px, 8vw, 76px);
    font-weight: 800;
    line-height: 0.95;
    letter-spacing: 0;
}

.error-label {
    margin-top: 8px;
    color: rgba(255, 255, 255, .72);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
}

.error-content h1 {
    margin: 0 0 14px;
    color: #152238;
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 800;
    letter-spacing: 0;
}

.error-message {
    margin: 0;
    color: #344054;
    font-size: 18px;
    line-height: 1.6;
}

.error-hint {
    margin: 18px 0 0;
    color: #667085;
    font-size: 15px;
    line-height: 1.6;
}

.error-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 30px;
}

.error-actions .btn {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border-radius: 6px;
    font-weight: 700;
    padding: 10px 18px;
}

.error-actions .btn-outline-platform {
    color: #104684;
    border-color: #104684;
    background: #ffffff;
}

.error-actions .btn-outline-platform:hover {
    color: #ffffff;
    background: #104684;
    border-color: #104684;
}

@media (max-width: 767.98px) {
    .error-page {
        padding: 42px 0;
    }

    .error-panel {
        grid-template-columns: 1fr;
        gap: 24px;
        padding: 24px;
    }

    .error-mark {
        min-height: 150px;
    }

    .error-actions .btn {
        width: 100%;
        justify-content: center;
    }

}

/* ============================================================
   site-auth-email-confirmed
   ============================================================ */

.email-confirm-icon {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: #eef5fc;
    color: #104684;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    margin-bottom: 18px;
}

/* ============================================================
   site-auth-login
   ============================================================ */

.login-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 24px 0;
    color: #adb5bd;
    font-size: 12px;
}

.login-divider::before,
.login-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e9ecef;
}

.btn-microsoft {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    min-height: 48px;
    border: 1.5px solid #d6dbe1;
    border-radius: 10px;
    background: #fff;
    color: #1f2937;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: border-color 0.2s, box-shadow 0.2s, transform 0.15s;
}

.btn-microsoft:hover {
    border-color: #8fa4bd;
    box-shadow: 0 4px 14px rgba(31,41,55,0.1);
    color: #111827;
    transform: translateY(-1px);
}

.microsoft-mark {
    display: grid;
    grid-template-columns: repeat(2, 9px);
    grid-template-rows: repeat(2, 9px);
    gap: 2px;
    flex-shrink: 0;
}

.microsoft-mark span:nth-child(1) {
    background: #f25022;
}

.microsoft-mark span:nth-child(2) {
    background: #7fba00;
}

.microsoft-mark span:nth-child(3) {
    background: #00a4ef;
}

.microsoft-mark span:nth-child(4) {
    background: #ffb900;
}

.info-alert {
    background: #fff8f0;
    border: 1px solid #fbd0bc;
    border-left: 4px solid #104684;
    border-radius: 10px;
    padding: 12px 14px;
    font-size: 13px;
    color: #6c757d;
    margin-bottom: 24px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.info-alert i {
    color: #104684;
    flex-shrink: 0;
    margin-top: 1px;
}

/* ============================================================
   site-auth-register-step-one
   ============================================================ */

.login-form-card .form-control,
.login-form-card .form-check-input {
    border-radius: 10px;
    border: 1.5px solid #e9ecef;
    font-size: 14px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.consent-section {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #f0f0f0;
}

/* ============================================================
   site-auth-registration-thank-you
   ============================================================ */

.thank-you-steps {
    display: grid;
    gap: 14px;
    margin: 28px 0;
}

.thank-you-step {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    color: #495057;
    font-size: 14px;
    line-height: 1.5;
}

.thank-you-step-icon {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #eef5fc;
    color: #104684;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 30px;
}

/* ============================================================
   site-contact
   ============================================================ */

.contact-section {
    padding: 60px 0 80px;
}

.contact-card {
    background: #fff;
    border-radius: 16px;
    border: 1px solid #e9ecef;
    padding: 28px 26px;
}

.contact-card h5 {
    font-weight: 700;
    color: #212529;
}

.contact-row {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 20px;
}

.contact-row:last-child {
    margin-bottom: 0;
}

.contact-row-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: linear-gradient(135deg, #104684, #0c3470);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1rem;
    color: #fff;
}

.contact-row-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: #adb5bd;
    margin-bottom: 2px;
}

.contact-row-sub {
    font-size: 11px;
    color: #adb5bd;
    margin-top: 2px;
}

.contact-value {
    font-size: 0.95rem;
    font-weight: 600;
    color: #104684;
    text-decoration: none;
    display: block;
}

.contact-value:hover {
    color: #0c3470;
    text-decoration: underline;
}

.form-card {
    background: #fff;
    border-radius: 16px;
    border: 1px solid #e9ecef;
    padding: 40px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

.form-card .form-label {
    font-size: 13px;
    font-weight: 600;
    color: #495057;
    margin-bottom: 6px;
}

.form-card .form-control,
.form-card .form-select {
    border-radius: 10px;
    border: 1.5px solid #e9ecef;
    padding: 11px 14px;
    font-size: 14px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-card .form-control:focus,
.form-card .form-select:focus {
    border-color: #104684;
    box-shadow: 0 0 0 0.2rem rgba(16,70,132,0.12);
}

.btn-send {
    background: #104684;
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 13px 32px;
    font-size: 15px;
    font-weight: 700;
    transition: background 0.2s, transform 0.15s;
}

.btn-send:hover {
    background: #0c3470;
    color: #fff;
    transform: translateY(-1px);
}

.info-strip {
    background: #f0f5ff;
    border: 1px solid #c8d9f5;
    border-radius: 10px;
    padding: 14px 18px;
    font-size: 13px;
    color: #495057;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 28px;
}

.info-strip i {
    color: #104684;
    flex-shrink: 0;
    margin-top: 1px;
}

/* ============================================================
   site-courses-details
   ============================================================ */

.cd-page {
    background: #f4f7fb;
    min-height: calc(100vh - 57px);
}

.cd-hero {
    background: linear-gradient(135deg, #073a78 0%, #0b4d93 58%, #08244b 100%);
    color: #fff;
    padding: 34px 0;
    position: relative;
    overflow: hidden;
}

.cd-hero::after {
    content: '';
    position: absolute;
    right: 0;
    bottom: 0;
    width: 40%;
    height: 100%;
    background: linear-gradient(135deg, transparent 15%, rgba(255,255,255,.08));
    clip-path: polygon(28% 100%, 52% 28%, 64% 48%, 76% 20%, 100% 62%, 100% 100%);
    opacity: .9;
}

.cd-hero-inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 28px;
    align-items: center;
}

.cd-kicker {
    color: rgba(255,255,255,.72);
    font-size: .75rem;
    font-weight: 850;
    letter-spacing: .09em;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.cd-title {
    color: #fff;
    font-size: clamp(1.8rem, 4vw, 3rem);
    font-weight: 850;
    line-height: 1.08;
    margin: 0;
}

.cd-lead {
    color: rgba(255,255,255,.86);
    font-size: 1rem;
    line-height: 1.65;
    margin: 14px 0 0;
    max-width: 780px;
}

.cd-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 18px;
}

.cd-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border-radius: 999px;
    padding: 6px 10px;
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.16);
    color: rgba(255,255,255,.86);
    font-size: .78rem;
    font-weight: 750;
}

.cd-cover {
    width: 100%;
    aspect-ratio: 16 / 10;
    border-radius: 8px;
    overflow: hidden;
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.18);
    box-shadow: 0 20px 45px rgba(0,0,0,.18);
}

.cd-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.cd-cover-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,.92);
    font-size: 4rem;
}

.cd-shell {
    padding: 28px 0 44px;
}

.cd-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 24px;
    align-items: start;
}

.cd-panel {
    background: #fff;
    border: 1px solid #e6eaf0;
    border-radius: 8px;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.06);
}

.cd-main {
    padding: 24px;
}

.cd-section + .cd-section {
    margin-top: 28px;
}

.cd-section-title {
    color: #152238;
    font-size: 1.15rem;
    font-weight: 850;
    margin: 0 0 12px;
}

.cd-description {
    color: #344054;
    line-height: 1.72;
}

.cd-description :last-child {
    margin-bottom: 0;
}

.cd-entry-list {
    display: grid;
    gap: 10px;
}

.cd-entry {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    padding: 13px 14px;
    border: 1px solid #edf0f4;
    border-radius: 8px;
    background: #fbfcfe;
}

.cd-entry.is-done {
    background: #f3fbf7;
    border-color: #d8f0e4;
}

.cd-entry.is-pending {
    background: #fffaf0;
    border-color: #ffe0a3;
}

.cd-entry.is-failed {
    background: #fff7f8;
    border-color: #f2a2ae;
}

.cd-entry.is-locked {
    color: #8a96a3;
    background: #f7f9fc;
}

.cd-entry-icon {
    width: 38px;
    height: 38px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #eef2f7;
    color: #64748b;
}

.cd-entry.is-done .cd-entry-icon {
    background: #e8f8ef;
    color: #16864f;
}

.cd-entry.is-pending .cd-entry-icon {
    background: #fff4d6;
    color: #b77900;
}

.cd-entry.is-failed .cd-entry-icon {
    background: #fff1f2;
    color: #b4233c;
}

.cd-entry-name {
    color: #1f2933;
    font-size: .94rem;
    font-weight: 800;
    line-height: 1.3;
}

.cd-entry-meta {
    margin-top: 4px;
    color: #7b8794;
    font-size: .78rem;
}

.cd-entry-state {
    color: #657386;
    font-size: .78rem;
    font-weight: 800;
    white-space: nowrap;
}

.cd-side {
    position: sticky;
    top: 82px;
    overflow: hidden;
}

.cd-action-box {
    padding: 20px;
}

.cd-progress-track {
    height: 10px;
    background: #e7ecf3;
    border-radius: 999px;
    overflow: hidden;
}

.cd-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #104684, #1a5fb4);
}

.cd-progress-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-top: 9px;
    color: #657386;
    font-size: .82rem;
}

.cd-progress-row strong {
    color: #104684;
}

.cd-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    min-height: 46px;
    margin-top: 18px;
    padding: 10px 18px;
    border-radius: 8px;
    background: #da1f43;
    border: 1px solid #da1f43;
    color: #fff !important;
    font-weight: 850;
    text-decoration: none;
}

.cd-cta:hover {
    background: #bd1836;
    border-color: #bd1836;
    color: #fff !important;
}

.cd-cta.secondary {
    background: #104684;
    border-color: #104684;
}

.cd-cta.secondary:hover {
    background: #0c3470;
    border-color: #0c3470;
}

.cd-cta.disabled {
    pointer-events: none;
    opacity: .62;
}

.cd-secondary-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    width: 100%;
    min-height: 42px;
    margin-top: 10px;
    border: 1px solid #d7dee8;
    border-radius: 8px;
    color: #104684;
    background: #fff;
    font-weight: 800;
    text-decoration: none;
}

.cd-secondary-link:hover {
    border-color: #104684;
    color: #0c3470;
}

.cd-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 18px;
}

.cd-stat {
    padding: 12px;
    border-radius: 8px;
    background: #f7f9fc;
    border: 1px solid #edf0f4;
}

.cd-stat strong {
    display: block;
    color: #152238;
    font-size: 1.05rem;
    line-height: 1;
}

.cd-stat span {
    display: block;
    margin-top: 5px;
    color: #657386;
    font-size: .74rem;
    font-weight: 800;
    text-transform: uppercase;
}

.cd-requirements {
    margin-top: 16px;
    padding: 14px;
    border-radius: 8px;
    background: #fff7e6;
    border: 1px solid #ffe0a3;
    color: #7a4a00;
}

.cd-requirements strong {
    display: block;
    margin-bottom: 10px;
    color: #5c3900;
}

.cd-requirement-list {
    display: grid;
    gap: 8px;
}

.cd-requirement-link {
    display: grid;
    grid-template-columns: 30px minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
    padding: 9px 10px;
    border-radius: 8px;
    background: #fff;
    border: 1px solid #f4d79a;
    color: #5c3900;
    text-decoration: none;
}

.cd-requirement-link:hover {
    color: #104684;
    border-color: #104684;
    background: #f7fbff;
}

.cd-requirement-icon {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff4d6;
    color: #9a6400;
}

.cd-requirement-name {
    font-size: .9rem;
    font-weight: 800;
    line-height: 1.25;
}

.cd-requirement-action {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #104684;
    font-size: .78rem;
    font-weight: 850;
    white-space: nowrap;
}

@media (max-width: 991.98px) {
    .cd-hero-inner,
    .cd-grid {
        grid-template-columns: 1fr;
    }

    .cd-cover {
        max-width: 420px;
    }

    .cd-side {
        position: static;
    }

}

@media (max-width: 575.98px) {
    .cd-hero {
        padding: 26px 0;
    }

    .cd-main,
    .cd-action-box {
        padding: 18px;
    }

    .cd-entry {
        grid-template-columns: 36px minmax(0, 1fr);
    }

    .cd-entry-state {
        grid-column: 2;
        white-space: normal;
    }

}

/* ============================================================
   site-courses-requirements
   ============================================================ */

.cr-page {
    background: #f8f9fa;
    min-height: calc(100vh - 57px);
    padding: 28px;
}

.cr-header {
    background: #fff;
    border: 1px solid #eef0f3;
    border-radius: 8px;
    box-shadow: 0 1px 6px rgba(0,0,0,0.06);
    padding: 24px;
    margin-bottom: 18px;
}

.cr-kicker {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #b4233c;
    background: #fff1f2;
    border-radius: 999px;
    padding: 5px 10px;
    font-size: .78rem;
    font-weight: 800;
    margin-bottom: 12px;
}

.cr-title {
    color: #1a1a2e;
    font-size: 1.45rem;
    font-weight: 800;
    line-height: 1.25;
    margin: 0 0 8px;
}

.cr-subtitle {
    color: #6c757d;
    margin: 0;
    max-width: 820px;
}

.cr-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.cr-row {
    background: #fff;
    border: 1px solid #eef0f3;
    border-radius: 8px;
    box-shadow: 0 1px 6px rgba(0,0,0,0.06);
    display: grid;
    grid-template-columns: 180px minmax(0, 1fr) 180px;
    gap: 16px;
    align-items: center;
    padding: 12px;
}

.cr-cover,
.cr-cover-placeholder {
    width: 180px;
    height: 108px;
    border-radius: 8px;
    overflow: hidden;
}

.cr-cover {
    object-fit: cover;
}

.cr-cover-placeholder {
    background: linear-gradient(135deg, #104684, #1a1a2e);
    color: rgba(255,255,255,0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
}

.cr-main {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
}

.cr-name {
    color: #1a1a2e;
    font-size: 1rem;
    font-weight: 800;
    line-height: 1.35;
    margin: 0;
}

.cr-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 12px;
    color: #6c757d;
    font-size: .78rem;
}

.cr-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    width: fit-content;
    padding: 4px 8px;
    border-radius: 999px;
    background: #eef2f7;
    color: #52616f;
    font-size: .72rem;
    font-weight: 800;
}

.cr-status.completed {
    background: #e8f8ef;
    color: #13633d;
}

.cr-status.failed {
    background: #fff1f2;
    color: #b4233c;
}

.cr-status.pending {
    background: #fff8db;
    color: #8a6100;
}

.cr-status.in_progress {
    background: #eef6ff;
    color: #104684;
}

.cr-actions {
    display: flex;
    align-items: center;
    justify-content: stretch;
}

.cr-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 40px;
    width: 100%;
    padding: 8px 14px;
    border-radius: 8px;
    background: #104684;
    color: #fff !important;
    font-weight: 700;
    text-decoration: none;
}

.cr-btn:hover {
    background: #0c3470;
    color: #fff !important;
}

.cr-btn.primary {
    background: #da1f43;
}

.cr-btn.primary:hover {
    background: #bd1836;
}

.cr-btn.disabled {
    background: #e9ecef;
    color: #6c757d !important;
    pointer-events: none;
}

.cr-footer {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

@media (max-width: 900px) {
    .cr-row {
        grid-template-columns: 150px minmax(0, 1fr);
    }

    .cr-cover,
    .cr-cover-placeholder {
        width: 150px;
        height: 96px;
    }

    .cr-actions {
        grid-column: 1 / -1;
    }

    .cr-btn {
        width: auto;
        min-width: 160px;
    }

}

@media (max-width: 640px) {
    .cr-page {
        padding: 20px 16px;
    }

    .cr-row {
        grid-template-columns: 1fr;
    }

    .cr-cover,
    .cr-cover-placeholder {
        width: 100%;
        height: 150px;
    }

}

/* ============================================================
   site-courses-show
   ============================================================ */

.cp-page {
    min-height: calc(100vh - 57px);
    background: #f5f7fb;
    color: #1f2933;
}

.cp-top {
    background: linear-gradient(135deg, #0f3d6e 0%, #11395f 58%, #312e81 100%);
    color: #fff;
    padding: 28px;
}

.cp-shell {
    display: grid;
    grid-template-columns: 340px minmax(0, 1fr);
    gap: 24px;
    padding: 24px 28px 34px;
}

.cp-title {
    font-size: 1.6rem;
    font-weight: 800;
    line-height: 1.2;
    margin: 0;
    color: #fff;
}

.cp-sub {
    color: rgba(255,255,255,0.76);
    margin-top: 8px;
    max-width: 820px;
}

.cp-top-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 22px;
    align-items: end;
}

.cp-stats {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.cp-stat {
    min-width: 112px;
    padding: 11px 14px;
    border-radius: 8px;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.16);
}

.cp-stat strong {
    display: block;
    font-size: 1.15rem;
    line-height: 1;
}

.cp-stat span {
    display: block;
    margin-top: 4px;
    color: rgba(255,255,255,0.72);
    font-size: 0.76rem;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.cp-btn.details {
    color: #104684;
    border-color: #b7cbe3;
    background: #f7fbff;
}

.cp-btn.details:hover {
    color: #0c3470;
    border-color: #104684;
    background: #eef6ff;
}

.cp-rail,
.cp-main {
    background: #fff;
    border: 1px solid #e6eaf0;
    border-radius: 8px;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.06);
}

.cp-rail {
    align-self: start;
    position: sticky;
    top: 74px;
    overflow: hidden;
}

.cp-rail-head {
    padding: 18px;
    border-bottom: 1px solid #edf0f4;
}

.cp-progress-track {
    height: 9px;
    background: #e7ecf3;
    border-radius: 999px;
    overflow: hidden;
}

.cp-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #0f6db8, #da1f43);
}

.cp-progress-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-top: 9px;
    font-size: .82rem;
    color: #657386;
}

.cp-entry-list {
    max-height: calc(100vh - 230px);
    overflow-y: auto;
}

.cp-entry-link {
    display: grid;
    grid-template-columns: 32px minmax(0, 1fr) auto;
    gap: 11px;
    padding: 13px 16px;
    color: #1f2933;
    text-decoration: none;
    border-bottom: 1px solid #f0f2f5;
}

.cp-entry-link:hover {
    background: #f8fafc;
    color: #0f3d6e;
}

.cp-entry-link.active {
    background: #eef6ff;
    box-shadow: inset 3px 0 0 #0f6db8;
}

.cp-entry-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #eef2f7;
    color: #64748b;
    flex-shrink: 0;
}

.cp-entry-link.done .cp-entry-icon {
    background: #e8f8ef;
    color: #16864f;
}

.cp-entry-link.pending-evaluation {
    background: #fffaf0;
}

.cp-entry-link.pending-evaluation .cp-entry-icon {
    background: #fff4d6;
    color: #b77900;
}

.cp-entry-link.pending-evaluation.active {
    background: #fff8e6;
    box-shadow: inset 3px 0 0 #f0ad00;
}

.cp-entry-link.pending-evaluation.active .cp-entry-icon {
    background: #fff4d6;
    color: #b77900;
}

.cp-entry-link.failed {
    background: #fff7f8;
}

.cp-entry-link.failed .cp-entry-icon {
    background: #fff1f2;
    color: #b4233c;
}

.cp-entry-link.failed.active {
    background: #fff4f5;
    box-shadow: inset 3px 0 0 #b4233c;
}

.cp-entry-link.locked {
    color: #9aa6b2;
    cursor: not-allowed;
}

.cp-entry-link.locked .cp-entry-icon {
    background: #f1f5f9;
    color: #aab4c0;
}

.cp-entry-link.active .cp-entry-icon {
    background: #eef6ff;
    color: #0f6db8;
}

.cp-entry-name {
    font-weight: 700;
    font-size: .9rem;
    line-height: 1.25;
}

.cp-entry-meta {
    margin-top: 4px;
    color: #7b8794;
    font-size: .76rem;
}

.cp-lock {
    color: #adb5bd;
    font-size: .95rem;
}

.cp-main {
    min-width: 0;
    overflow: hidden;
}

.cp-main-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 18px;
    padding: 22px 24px;
    border-bottom: 1px solid #edf0f4;
    align-items: center;
}

.cp-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    width: fit-content;
    padding: 5px 9px;
    border-radius: 999px;
    background: #eef2f7;
    color: #52616f;
    font-size: .76rem;
    font-weight: 700;
}

.cp-entry-title {
    margin: 9px 0 0;
    font-size: 1.35rem;
    font-weight: 800;
    line-height: 1.25;
    color: #142033;
}

.cp-actions {
    display: flex;
    gap: 9px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.cp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 40px;
    padding: 9px 22px;
    border-radius: 8px;
    border: 1px solid #d7dee8;
    background: #fff;
    color: #263447;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

.cp-btn:hover {
    color: #0f3d6e;
    border-color: #9fb9d6;
}

.cp-btn.primary {
    background: #da1f43;
    border-color: #da1f43;
    color: #fff;
    padding-left: 28px;
    padding-right: 28px;
}

.cp-btn.primary:hover {
    background: #bd1836;
    color: #fff;
}

.cp-btn.certificate {
    background: #da1f43;
    border-color: #da1f43;
    color: #fff;
    padding-left: 28px;
    padding-right: 28px;
}

.cp-btn.certificate:hover {
    background: #bd1836;
    color: #fff;
}

.cp-btn.success {
    background: #16864f;
    border-color: #16864f;
    color: #fff;
    padding-left: 28px;
    padding-right: 28px;
}

.cp-btn.catalog {
    background: #104684;
    border-color: #104684;
    color: #fff;
}

.cp-btn.catalog:hover {
    background: #0c3470;
    border-color: #0c3470;
    color: #fff;
}

.cp-body {
    padding: 26px 24px 30px;
}

.cp-content {
    color: #344054;
    font-size: 1rem;
    line-height: 1.72;
    text-align: left;
}

.cp-content h1,
.cp-content h2,
.cp-content h3 {
    color: #142033;
    line-height: 1.25;
    text-align: left;
}

.cp-content p,
.cp-content li {
    color: inherit;
    font-size: inherit;
    font-weight: inherit;
    text-align: inherit;
}

.cp-content img {
    max-width: 100%;
    border-radius: 8px;
}

.cp-exercise-instruction {
    border: 1px solid #dbe6f2;
    border-radius: 8px;
    background: #f8fbff;
    padding: 18px 20px;
}

.cp-exercise-instruction__title {
    color: #142033;
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.cp-video-lesson {
    margin-bottom: 24px;
}

.cp-video-lesson__title {
    align-items: center;
    color: #142033;
    display: flex;
    font-size: 1rem;
    font-weight: 800;
    gap: 8px;
    margin-bottom: 10px;
}

.cp-video-lesson__frame {
    background: #0f172a;
    border-radius: 8px;
    overflow: hidden;
}

.cp-video-lesson video {
    aspect-ratio: 16 / 9;
    display: block;
    width: 100%;
}

.cp-lesson-text-toggle {
    border: 1px solid #e5eaf1;
    border-radius: 8px;
    margin-top: 9px;
    overflow: hidden;
}

.cp-lesson-text-toggle summary {
    align-items: center;
    background: #f8fafc;
    color: #142033;
    cursor: pointer;
    display: flex;
    font-weight: 800;
    gap: 8px;
    list-style: none;
    padding: 14px 16px;
}

.cp-lesson-text-toggle summary::-webkit-details-marker {
    display: none;
}

.cp-lesson-text-toggle summary::after {
    content: "+";
    margin-left: auto;
    font-size: 1.15rem;
    line-height: 1;
}

.cp-lesson-text-toggle[open] summary::after {
    content: "-";
}

.cp-lesson-text-toggle .cp-content {
    padding: 18px 16px 20px;
}

.cp-empty-entry {
    border: 1px dashed #d7dee8;
    background: #f8fafc;
    border-radius: 8px;
    padding: 28px;
    text-align: center;
    color: #657386;
}

.cp-files {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 24px;
}

.cp-file {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    border: 1px solid #e5eaf1;
    border-radius: 8px;
    color: #263447;
    text-decoration: none;
    min-width: 0;
}

.cp-file span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cp-test {
    display: grid;
    gap: 16px;
}

.cp-question {
    border: 1px solid #e5eaf1;
    border-radius: 8px;
    padding: 16px;
    background: #fbfcfe;
}

.cp-question-title {
    font-weight: 800;
    color: #142033;
    margin-bottom: 10px;
}

.cp-answer {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    padding: 10px 12px;
    border: 1px solid #e5eaf1;
    border-radius: 8px;
    background: #fff;
    margin-top: 8px;
}

.cp-answer input {
    margin-top: 3px;
}

.cp-answer.is-user-selected {
    border-color: #9fb9d6;
    background: #eef6ff;
}

.cp-answer.is-user-selected.is-passed {
    border-color: #8bd3aa;
    background: #e8f8ef;
}

.cp-answer.is-user-selected.is-failed {
    border-color: #f2a2ae;
    background: #fff1f2;
}

.cp-answer-note {
    color: #52616f;
    font-size: .78rem;
    font-weight: 800;
    margin-left: auto;
    white-space: nowrap;
}

.cp-question-status {
    border-radius: 999px;
    display: inline-flex;
    font-size: .74rem;
    font-weight: 800;
    margin-left: 8px;
    padding: 4px 8px;
    vertical-align: middle;
    white-space: nowrap;
}

.cp-question-status.is-passed {
    background: #e8f8ef;
    color: #13633d;
}

.cp-question-status.is-failed {
    background: #fff1f2;
    color: #b4233c;
}

.cp-question-status.is-pending {
    background: #fff8db;
    color: #6b4b00;
}

.cp-answer-review {
    border: 1px solid #dbe6f2;
    border-radius: 8px;
    background: #f8fafc;
    margin-top: 10px;
    padding: 12px;
}

.cp-answer-review__label {
    color: #52616f;
    font-size: .76rem;
    font-weight: 900;
    text-transform: uppercase;
}

.cp-answer-review__text {
    color: #142033;
    margin-top: 5px;
    white-space: pre-wrap;
}

.cp-answer-review__feedback {
    border-top: 1px solid #e5eaf1;
    color: #52616f;
    margin-top: 10px;
    padding-top: 10px;
}

.cp-textarea {
    width: 100%;
    min-height: 120px;
    border: 1px solid #d7dee8;
    border-radius: 8px;
    padding: 12px;
    resize: vertical;
}

.cp-attempt {
    display: flex;
    gap: 12px;
    align-items: center;
    padding: 12px 14px;
    border-radius: 8px;
    background: #f6f8fb;
    color: #52616f;
    margin-bottom: 16px;
}

.cp-complete-strip {
    margin-top: 24px;
    padding: 0;
    border-radius: 8px;
    background: transparent;
    color: #13633d;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 14px;
    flex-wrap: wrap;
}

.cp-complete-strip .cp-btn {
    min-width: 156px;
    padding-left: 30px;
    padding-right: 30px;
}

.cp-complete-strip .cp-btn.primary,
.cp-complete-strip .cp-btn.success {
    min-width: 168px;
    padding-left: 34px;
    padding-right: 34px;
}

.cp-complete-strip.is-status-only {
    margin-top: 24px;
    min-height: 40px;
}

.cp-complete-strip.is-status-only strong {
    display: block;
    line-height: 1.35;
}

.cp-complete-strip.is-passed {
    color: #13633d;
}

.cp-complete-strip.is-failed {
    color: #b4233c;
}

.cp-test > .cp-complete-strip {
    margin-top: 8px;
}

.cp-test > .cp-complete-strip.is-status-only {
    margin-top: 8px;
}

.cp-exercise-box {
    display: grid;
    gap: 14px;
}

.cp-exercise-box > .cp-complete-strip {
    display: none;
}

.cp-exercise-box > .cp-complete-strip.has-pending-action {
    display: flex;
}

.cp-liveavatar {
    border: 1px solid #dbe6f2;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
}

.cp-liveavatar__stage {
    aspect-ratio: 16 / 9;
    background: #0f172a;
    overflow: hidden;
    position: relative;
}

.cp-liveavatar__video {
    display: block;
    height: 100%;
    width: 100%;
}

.cp-liveavatar__placeholder {
    align-items: center;
    color: rgba(255,255,255,0.72);
    display: flex;
    inset: 0;
    justify-content: center;
    padding: 20px;
    position: absolute;
    text-align: center;
}

.cp-liveavatar__stage.is-ready .cp-liveavatar__placeholder {
    display: none;
}

.cp-liveavatar__cover {
    align-items: center;
    background: radial-gradient(circle at 28% 24%, rgba(255,255,255,0.18), transparent 38%), linear-gradient(135deg, #104684, #0f172a);
    color: #fff;
    display: flex;
    flex-direction: column;
    gap: 14px;
    inset: 0;
    justify-content: center;
    padding: 24px;
    position: absolute;
    text-align: center;
    z-index: 3;
}

.cp-liveavatar.is-starting:not(.is-saving) .cp-liveavatar__cover,
.cp-liveavatar.is-active:not(.is-saving) .cp-liveavatar__cover {
    display: none;
}

.cp-liveavatar__cover-avatar {
    align-items: center;
    background: rgba(255,255,255,0.14);
    border: 1px solid rgba(255,255,255,0.24);
    border-radius: 50%;
    display: flex;
    height: 112px;
    justify-content: center;
    width: 112px;
}

.cp-liveavatar__cover-avatar i {
    font-size: 3.6rem;
}

.cp-liveavatar__cover-title {
    font-size: 1.2rem;
    font-weight: 900;
}

.cp-liveavatar__cover-text {
    color: rgba(255,255,255,0.78);
    font-size: .92rem;
    max-width: 420px;
}

.cp-liveavatar__cover .cp-btn {
    min-width: 190px;
    padding: 11px 24px;
    justify-content: center;
}

.cp-liveavatar__timer {
    align-items: center;
    background: rgba(15, 23, 42, 0.76);
    border: 1px solid rgba(255,255,255,0.14);
    border-radius: 999px;
    color: #fff;
    display: flex;
    font-size: .86rem;
    font-weight: 900;
    gap: 7px;
    padding: 8px 12px;
    position: absolute;
    right: 16px;
    top: 16px;
    z-index: 4;
}

.cp-liveavatar__timer.is-low {
    background: rgba(190, 24, 54, 0.88);
}

.cp-liveavatar__controls {
    align-items: center;
    background: rgba(15, 23, 42, 0.72);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 999px;
    bottom: 16px;
    display: flex;
    flex-wrap: nowrap;
    left: 50%;
    max-width: calc(100% - 24px);
    padding: 8px;
    position: absolute;
    transform: translateX(-50%);
    z-index: 2;
}

.cp-liveavatar:not(.is-active) .cp-liveavatar__controls {
    display: none;
}

.cp-liveavatar__message {
    align-items: center;
    background: rgba(15, 23, 42, 0.72);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255,255,255,0.12);
    bottom: 0;
    display: none;
    gap: 8px;
    left: 0;
    padding: 10px;
    position: absolute;
    right: 0;
    z-index: 2;
}

.cp-liveavatar.is-active .cp-liveavatar__controls {
    bottom: 72px;
}

.cp-liveavatar.is-active .cp-liveavatar__message {
    display: flex;
}

.cp-liveavatar__message .form-control {
    background: rgba(255,255,255,0.94);
    border: 0;
    border-radius: 999px;
    min-width: 0;
}

.cp-liveavatar__status {
    background: rgba(15, 23, 42, 0.68);
    border-radius: 999px;
    bottom: 132px;
    color: #fff;
    font-size: .85rem;
    left: 50%;
    max-width: calc(100% - 32px);
    padding: 7px 12px;
    position: absolute;
    transform: translateX(-50%);
    z-index: 2;
}

.cp-liveavatar__cover-saving {
    align-items: center;
    display: none;
    flex-direction: column;
    gap: 10px;
    justify-content: flex-start;
    text-align: center;
}

.cp-liveavatar.is-saving .cp-liveavatar__cover-default,
.cp-liveavatar.is-saving .js-ai-cover-start {
    display: none;
}

.cp-liveavatar.is-saving .cp-liveavatar__cover-saving {
    display: flex;
}

.cp-liveavatar.is-saving .cp-liveavatar__controls,
.cp-liveavatar.is-saving .cp-liveavatar__message,
.cp-liveavatar.is-saving .cp-liveavatar__status {
    display: none;
}

.cp-liveavatar__saving-spinner {
    animation: cp-liveavatar-spin .8s linear infinite;
    border: 3px solid rgba(255,255,255,0.28);
    border-radius: 50%;
    border-top-color: #fff;
    height: 42px;
    width: 42px;
}

.cp-liveavatar__saving-title {
    font-size: 1rem;
    font-weight: 900;
}

.cp-liveavatar__saving-text {
    color: rgba(255,255,255,0.76);
    font-size: .88rem;
    max-width: 360px;
}

@keyframes cp-liveavatar-spin {
to {
        transform: rotate(360deg);
    }
}

.cp-liveavatar__transcript {
    background: #f8fafc;
    border: 1px solid #e5eaf1;
    border-radius: 8px;
    color: #344054;
    font-size: .85rem;
    line-height: 1.5;
    max-height: 190px;
    overflow-y: auto;
    padding: 12px;
    white-space: pre-wrap;
}

.cp-liveavatar__controls .cp-btn,
.cp-liveavatar__message .cp-btn {
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(255, 255, 255, 0.72);
    border-radius: 999px;
    color: #104684;
    font-size: .82rem;
    font-weight: 800;
    line-height: 1.15;
    min-height: 36px;
    max-width: 100%;
    padding: 8px 16px;
    box-shadow: none;
    white-space: nowrap;
    width: auto;
}

.cp-liveavatar__controls .cp-btn {
    flex: 0 0 auto;
    min-width: max-content;
}

.cp-liveavatar__controls .cp-btn:hover,
.cp-liveavatar__message .cp-btn:hover {
    background: #eaf4ff;
    border-color: #bddcff;
    color: #0c3470;
}

.cp-liveavatar__controls .cp-btn.primary {
    background: #104684;
    border-color: #104684;
    color: #fff;
}

.cp-liveavatar__controls .cp-btn.primary:hover {
    background: #0c3470;
    border-color: #0c3470;
    color: #fff;
}

.cp-liveavatar__controls .cp-btn:disabled,
.cp-liveavatar__message .cp-btn:disabled {
    background: rgba(255,255,255,0.62);
    border-color: rgba(255,255,255,0.5);
    color: #7b8794;
    opacity: 1;
}

.cp-liveavatar__controls .cp-btn:disabled:not(.primary) {
    display: none;
}

.cp-liveavatar__message .cp-btn {
    flex: 0 0 auto;
}

.cp-step {
    border-left: 3px solid #0f6db8;
    background: #f8fafc;
    padding: 14px 16px;
    border-radius: 0 8px 8px 0;
}

.cp-step strong {
    display: block;
    color: #142033;
    margin-bottom: 4px;
}

.cp-summary-hero {
    padding: 30px;
    border-radius: 8px;
    background: linear-gradient(135deg, #eef7ff 0%, #f8fbff 55%, #fff5f7 100%);
    border: 1px solid #e2ebf6;
}

.cp-summary-top {
    align-items: flex-start;
    display: flex;
    gap: 18px;
    justify-content: space-between;
    margin-bottom: 18px;
}

.cp-summary-heading {
    align-items: flex-start;
    display: flex;
    gap: 18px;
}

.cp-summary-icon {
    width: 58px;
    height: 58px;
    border-radius: 14px;
    background: #da1f43;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.7rem;
    flex-shrink: 0;
}

.cp-summary-title {
    color: #142033;
    font-size: 1.6rem;
    font-weight: 900;
    line-height: 1.2;
    margin: 0 0 10px;
}

.cp-summary-text {
    color: #52616f;
    font-size: 1rem;
    line-height: 1.65;
    max-width: 760px;
}

.cp-summary-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-top: 22px;
}

.cp-summary-tile {
    background: #fff;
    border: 1px solid #e6eaf0;
    border-radius: 8px;
    padding: 14px;
}

.cp-summary-tile strong {
    display: block;
    color: #142033;
    font-size: 1.25rem;
}

.cp-summary-tile span {
    display: block;
    margin-top: 4px;
    color: #7b8794;
    font-size: .78rem;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.cp-summary-return {
    align-items: flex-end;
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 22px;
}

.cp-summary-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-end;
}

.cp-summary-warning {
    align-items: flex-start;
    background: #fff8db;
    border: 1px solid #f4d46a;
    border-left: 4px solid #f0ad00;
    border-radius: 8px;
    color: #6b4b00;
    display: flex;
    gap: 10px;
    line-height: 1.5;
    max-width: 620px;
    padding: 12px 14px;
}

.cp-summary-warning i {
    color: #b77900;
    flex-shrink: 0;
    font-size: 1.05rem;
    margin-top: 2px;
}

.cp-summary-warning strong {
    color: #4f3700;
    display: block;
}

.cp-summary-warning.cp-retake-wait {
    margin-bottom: 18px;
    max-width: none;
    width: 100%;
}

.cp-summary-warning.is-prominent {
    align-items: center;
    font-size: 1.08rem;
    font-weight: 800;
    justify-content: center;
    margin: 0 auto 8px;
    max-width: 900px;
    padding: 18px 22px;
    text-align: center;
    width: 100%;
}

.cp-summary-warning.is-prominent i {
    font-size: 1.35rem;
    margin-top: 0;
}

.cp-results {
    background: #fff;
    border: 1px solid #dbe6f2;
    border-radius: 8px;
    margin-top: 22px;
    overflow: hidden;
    width: 100%;
}

.cp-results-head {
    align-items: center;
    background: #f8fafc;
    border-bottom: 1px solid #e5eaf1;
    display: flex;
    gap: 12px;
    justify-content: space-between;
    padding: 14px 16px;
}

.cp-results-title {
    color: #142033;
    font-weight: 900;
}

.cp-results-meta {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
}

.cp-results-score {
    color: #104684;
    font-weight: 900;
    white-space: nowrap;
}

.cp-result-row {
    align-items: flex-start;
    display: grid;
    gap: 12px;
    grid-template-columns: minmax(0, 1fr) auto auto;
    padding: 14px 16px;
}

.cp-result-row + .cp-result-row {
    border-top: 1px solid #edf0f4;
}

.cp-result-name {
    color: #142033;
    font-weight: 800;
}

.cp-result-label,
.cp-result-feedback {
    color: #657386;
    font-size: .84rem;
    margin-top: 4px;
}

.cp-result-percent {
    color: #142033;
    font-weight: 900;
    white-space: nowrap;
}

.cp-result-status {
    border-radius: 999px;
    font-size: .76rem;
    font-weight: 800;
    padding: 5px 9px;
    white-space: nowrap;
}

.cp-result-status.passed {
    background: #e8f8ef;
    color: #13633d;
}

.cp-result-status.failed {
    background: #fff1f2;
    color: #b4233c;
}

.cp-result-status.pending {
    background: #fff8db;
    color: #8a6100;
}

@media (max-width: 720px) {
    .cp-liveavatar {
        overflow: visible;
    }

    .cp-liveavatar__controls {
        background: #f8fafc;
        border: 0;
        border-radius: 0;
        border-top: 1px solid #dbe6f2;
        box-shadow: none;
        display: flex;
        gap: 8px;
        left: auto;
        max-width: none;
        padding: 10px;
        position: static;
        right: auto;
        transform: none;
        width: 100%;
    }

    .cp-liveavatar.is-active .cp-liveavatar__controls {
        bottom: auto;
    }

    .cp-liveavatar__message {
        background: #f8fafc;
        border-top: 1px solid #dbe6f2;
        bottom: auto;
        left: auto;
        padding: 10px;
        position: static;
        right: auto;
    }

    .cp-liveavatar__status {
        background: #eef4fb;
        border-radius: 0;
        bottom: auto;
        color: #52616f;
        left: auto;
        max-width: none;
        padding: 8px 10px;
        position: static;
        transform: none;
        width: 100%;
    }

    .cp-liveavatar__controls .cp-btn {
        flex: 0 0 auto;
        min-width: 0;
        padding-left: 10px;
        padding-right: 10px;
        white-space: nowrap;
    }

    .cp-liveavatar__message .form-control {
        border: 1px solid #d7dee8;
    }

    .cp-liveavatar__message .cp-btn {
        padding-left: 12px;
        padding-right: 12px;
    }

    .cp-top,
    .cp-shell {
        padding-left: 16px;
        padding-right: 16px;
    }

    .cp-top-grid,
    .cp-main-head {
        grid-template-columns: 1fr;
    }

    .cp-stats,
    .cp-actions {
        justify-content: flex-start;
    }

    .cp-files {
        grid-template-columns: 1fr;
    }

    .cp-summary-grid {
        grid-template-columns: 1fr;
    }

    .cp-summary-top {
        flex-direction: column;
    }

    .cp-summary-heading {
        flex-direction: column;
    }

    .cp-summary-return {
        align-items: stretch;
    }

    .cp-result-row {
        grid-template-columns: 1fr;
    }

    .cp-result-percent,
    .cp-result-status {
        width: fit-content;
    }

}

@media (max-width: 1100px) {
    .cp-shell {
        grid-template-columns: 1fr;
    }

    .cp-rail {
        position: static;
    }

    .cp-entry-list {
        max-height: none;
    }

}

/* ============================================================
   site-dashboard-index
   ============================================================ */

.dash-page {
    background: #f4f7fb;
    min-height: calc(100vh - 57px);
}

.dash-content {
    padding: 24px 28px 38px;
}

.dash-stats {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 16px;
}

.dash-card,
.dash-stat {
    background: #fff;
    border: 1px solid #e6eaf0;
    border-radius: 10px;
    box-shadow: 0 8px 22px rgba(15, 23, 42, .06);
}

.dash-stat {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px;
    min-width: 0;
}

.dash-stat__icon {
    width: 45px;
    height: 45px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.dash-stat__icon.blue {
    background: #e8f0fc;
    color: #104684;
}

.dash-stat__icon.orange {
    background: #fff0e5;
    color: #e65100;
}

.dash-stat__icon.green {
    background: #e8f8ef;
    color: #16864f;
}

.dash-stat__icon.red {
    background: #fff1f2;
    color: #b4233c;
}

.dash-stat__icon.purple {
    background: #f2ecff;
    color: #6f42c1;
}

.dash-stat__number {
    color: #162033;
    font-size: 1.45rem;
    font-weight: 850;
    line-height: 1;
}

.dash-stat__label {
    color: #52616f;
    font-size: .78rem;
    font-weight: 750;
    margin-top: 4px;
}

.dash-section-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 14px;
}

.dash-section-title h2,
.dash-card h2 {
    color: #162033;
    font-size: 1.1rem;
    font-weight: 850;
    margin: 0;
}

.dash-section-title p {
    color: #6c757d;
    font-size: .84rem;
    margin: 4px 0 0;
}

.dash-link {
    color: #104684;
    font-size: .84rem;
    font-weight: 850;
    text-decoration: none;
    white-space: nowrap;
}

.dash-link:hover {
    color: #0c3470;
}

.dash-card {
    padding: 18px;
}

.dash-next {
    display: grid;
    grid-template-columns: 170px minmax(0, 1fr);
    gap: 18px;
    align-items: start;
}

.dash-cover,
.dash-cover-placeholder {
    width: 170px;
    aspect-ratio: 1.16;
    border-radius: 8px;
    overflow: hidden;
}

.dash-cover {
    object-fit: cover;
}

.dash-cover-placeholder {
    background: linear-gradient(135deg, #104684, #0c3470);
    color: rgba(255,255,255,.82);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.8rem;
}

.dash-course-name {
    color: #162033;
    font-size: 1.08rem;
    font-weight: 850;
    line-height: 1.35;
    margin-bottom: 10px;
}

.dash-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 9px 12px;
    color: #657386;
    font-size: .82rem;
}

.dash-progress {
    margin: 10px 0;
}

.dash-progress__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #52616f;
    font-size: .8rem;
    margin-bottom: 7px;
}

.dash-progress__pct {
    color: #104684;
    font-weight: 850;
}

.dash-progress__track {
    height: 8px;
    background: #e8edf4;
    border-radius: 999px;
    overflow: hidden;
}

.dash-progress__fill {
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, #104684, #da1f43);
}

.dash-next-lesson {
    color: #52616f;
    font-size: .86rem;
    line-height: 1.45;
    margin-bottom: 10px;
}

.dash-next-lesson strong {
    color: #263447;
}

.dash-status-badge {
    align-items: center;
    background: #eef2f7;
    border-radius: 999px;
    color: #52616f;
    display: inline-flex;
    gap: 6px;
    font-size: .72rem;
    font-weight: 850;
    line-height: 1.4;
    margin-top: 4px;
    padding: 4px 8px;
}

.dash-status-badge.failed {
    background: #fff1f2;
    color: #b4233c;
}

.dash-motivation {
    background: #f1f5ff;
    color: #344767;
    border-radius: 8px;
    padding: 9px 11px;
    font-size: .82rem;
    margin: 10px 0 14px;
}

.dash-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.dash-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 40px;
    padding: 9px 15px;
    border-radius: 8px;
    background: #da1f43;
    color: #fff !important;
    font-weight: 850;
    text-decoration: none;
}

.dash-btn:hover {
    background: #bd1836;
    color: #fff !important;
}

.dash-btn.secondary {
    background: #104684;
}

.dash-btn.secondary:hover {
    background: #0c3470;
}

.dash-plan-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.dash-plan-count {
    width: 43px;
    height: 43px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: #104684;
    border: 3px solid #d9e8ff;
    font-weight: 850;
    font-size: .85rem;
}

.dash-task {
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr) auto;
    gap: 11px;
    align-items: center;
    padding: 11px 0;
    border-bottom: 1px solid #edf0f4;
}

.dash-task:last-child {
    border-bottom: 0;
}

.dash-task__dot {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 2px solid #d6dde8;
    display: grid;
    place-items: center;
    color: #fff;
}

.dash-task.done .dash-task__dot {
    border-color: #20a461;
    background: #20a461;
}

.dash-task.current .dash-task__dot {
    border-color: #104684;
    box-shadow: inset 0 0 0 4px #fff;
    background: #e8f0fc;
}

.dash-task__name {
    color: #263447;
    font-size: .86rem;
    font-weight: 750;
}

.dash-task__time {
    color: #657386;
    font-size: .78rem;
    white-space: nowrap;
}

.dash-plan-foot {
    margin-top: 14px;
    background: #eef5ff;
    color: #104684;
    border-radius: 8px;
    padding: 10px 12px;
    font-size: .82rem;
    font-weight: 750;
}

.dash-roadmap {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(118px, 1fr));
    gap: 12px;
    align-items: start;
    margin-top: 18px;
    position: relative;
}

.dash-roadmap::before {
    content: '';
    position: absolute;
    left: 8%;
    right: 8%;
    top: 20px;
    height: 2px;
    background: #d9e1ec;
}

.dash-step {
    text-align: center;
    position: relative;
    z-index: 1;
    min-width: 0;
}

.dash-step__icon {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    margin: 0 auto 9px;
    border: 2px solid #d9e1ec;
    background: #fff;
    color: #8b98a7;
}

.dash-step.done .dash-step__icon {
    background: #20a461;
    border-color: #20a461;
    color: #fff;
}

.dash-step.current .dash-step__icon {
    border-color: #104684;
    color: #104684;
    box-shadow: 0 0 0 5px #e8f0fc;
}

.dash-step.failed .dash-step__icon {
    background: #fff1f2;
    border-color: #f3b6c0;
    color: #b4233c;
}

.dash-step.gap .dash-step__icon {
    background: #f8fafc;
    border-style: dashed;
    color: #8b98a7;
}

.dash-step.gap .dash-step__name {
    color: #8b98a7;
}

.dash-step__name {
    color: #263447;
    font-size: .82rem;
    font-weight: 850;
    line-height: 1.25;
}

.dash-step__meta {
    color: #6c757d;
    font-size: .76rem;
    margin-top: 4px;
}

.dash-cert-card {
    display: grid;
    grid-template-columns: 86px minmax(0, 1fr);
    gap: 14px;
    align-items: center;
}

.dash-cert-icon {
    width: 86px;
    height: 86px;
    border-radius: 18px;
    background: #f2ecff;
    color: #6f42c1;
    display: grid;
    place-items: center;
    font-size: 2.8rem;
}

.dash-activity-card {
    height: auto;
}

.dash-activity-item {
    display: grid;
    grid-template-columns: 30px minmax(0, 1fr) auto;
    gap: 10px;
    align-items: start;
    padding: 11px 0;
    border-bottom: 1px solid #edf0f4;
}

.dash-activity-item:last-child {
    border-bottom: 0;
}

.dash-activity-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #e8f8ef;
    color: #16864f;
    display: grid;
    place-items: center;
    font-size: .78rem;
}

.dash-activity-title {
    color: #263447;
    font-size: .84rem;
    font-weight: 850;
    line-height: 1.35;
}

.dash-activity-course {
    color: #6c757d;
    font-size: .76rem;
    margin-top: 2px;
}

.dash-activity-time {
    color: #6c757d;
    font-size: .74rem;
    white-space: nowrap;
}

.dash-week {
    border: 1px solid #edf0f4;
    border-radius: 9px;
    padding: 12px;
    margin-top: 10px;
}

.dash-week-title {
    color: #263447;
    font-size: .82rem;
    font-weight: 850;
}

.dash-bars {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
    align-items: end;
    height: 78px;
    margin-top: 10px;
}

.dash-bar-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.dash-bar {
    width: 14px;
    min-height: 8px;
    border-radius: 6px 6px 0 0;
    background: #d9e1ec;
}

.dash-bar.active {
    background: #104684;
}

.dash-bar-label {
    color: #657386;
    font-size: .72rem;
}

.dash-recommend {
    margin-top: 16px;
}

.dash-empty {
    border: 1px dashed #d9e1ec;
    border-radius: 10px;
    padding: 24px;
    background: #fff;
    color: #657386;
}

.dash-empty h3 {
    color: #162033;
    font-size: 1.05rem;
    font-weight: 850;
}

@media (max-width: 1200px) {
    .dash-stats {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

}

@media (max-width: 820px) {
    .dash-content {
        padding: 18px 16px 30px;
    }

    .dash-stats {
        grid-template-columns: 1fr;
    }

    .dash-next {
        grid-template-columns: 1fr;
    }

    .dash-cover,
    .dash-cover-placeholder {
        width: 100%;
        max-height: 220px;
    }

    .dash-roadmap {
        grid-template-columns: 1fr;
    }

    .dash-roadmap::before {
        display: none;
    }

    .dash-step {
        display: grid;
        grid-template-columns: 42px minmax(0, 1fr);
        gap: 10px;
        text-align: left;
    }

    .dash-step__icon {
        margin: 0;
    }

}

/* ============================================================
   site-dashboard-my-courses
   ============================================================ */

.mc-page {
    background: #f8f9fa;
    min-height: calc(100vh - 57px);
    padding: 28px;
}

.mc-header {
    margin-bottom: 22px;
}

.mc-title {
    color: #1a1a2e;
    font-size: 1.45rem;
    font-weight: 800;
    margin: 0 0 4px;
}

.mc-subtitle {
    color: #6c757d;
    font-size: 0.92rem;
    margin: 0;
}

.mc-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.mc-row {
    background: #fff;
    border: 1px solid #eef0f3;
    border-radius: 8px;
    box-shadow: 0 1px 6px rgba(0,0,0,0.06);
    display: grid;
    grid-template-columns: 180px minmax(0, 1fr) 190px;
    gap: 16px;
    align-items: center;
    padding: 12px;
}

.mc-cover,
.mc-cover-placeholder {
    width: 180px;
    height: 108px;
    border-radius: 8px;
    overflow: hidden;
}

.mc-cover {
    object-fit: cover;
}

.mc-cover-placeholder {
    background: linear-gradient(135deg, #104684, #1a1a2e);
    color: rgba(255,255,255,0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
}

.mc-main {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
}

.mc-name {
    color: #1a1a2e;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.35;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mc-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    width: fit-content;
    padding: 4px 8px;
    border-radius: 999px;
    background: #eef2f7;
    color: #52616f;
    font-size: 0.72rem;
    font-weight: 800;
}

.mc-status-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.mc-tag {
    background: rgba(16,70,132,0.9);
    border-radius: 4px;
    color: #fff;
    display: inline-flex;
    align-items: center;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.4;
    max-width: 120px;
    overflow: hidden;
    padding: 3px 8px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mc-status.completed {
    background: #e8f8ef;
    color: #16864f;
}

.mc-status.passed {
    background: #e8f8ef;
    color: #13633d;
}

.mc-status.failed {
    background: #fff1f2;
    color: #b4233c;
}

.mc-status.pending {
    background: #fff8db;
    color: #8a6100;
}

.mc-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 12px;
    color: #6c757d;
    font-size: 0.78rem;
}

.mc-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    justify-content: center;
    align-items: stretch;
}

.mc-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 40px;
    width: 100%;
    min-width: 0;
    padding: 8px 14px;
    border-radius: 8px;
    background: #104684;
    color: #fff !important;
    font-weight: 700;
    text-decoration: none;
}

.mc-btn:hover {
    background: #0c3470;
    color: #fff !important;
}

.mc-btn.primary {
    background: #da1f43;
}

.mc-btn.primary:hover {
    background: #bd1836;
}

.mc-btn.certificate {
    background: #da1f43;
}

.mc-btn.certificate:hover {
    background: #bd1836;
}

.mc-progress-track {
    height: 8px;
    background: #e9ecef;
    border-radius: 99px;
    overflow: hidden;
}

.mc-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #104684, #1a5fb4);
    border-radius: 99px;
}

.mc-progress-meta {
    display: flex;
    justify-content: space-between;
    color: #6c757d;
    font-size: 0.8rem;
}

.mc-progress-percent {
    color: #104684;
    font-weight: 800;
}

.mc-empty {
    background: #fff;
    border: 2px dashed #dee2e6;
    border-radius: 8px;
    padding: 42px 24px;
    text-align: center;
    color: #6c757d;
}

.mc-empty i {
    color: #dee2e6;
    display: block;
    font-size: 2.8rem;
    margin-bottom: 12px;
}

.mc-empty-title {
    color: #495057;
    font-weight: 700;
    margin-bottom: 4px;
}

.mc-empty-cta {
    background: #104684;
    border-color: #104684;
    color: #fff !important;
}

.mc-empty-cta:hover {
    background: #0c3470;
    border-color: #0c3470;
    color: #fff !important;
}

@media (max-width: 900px) {
    .mc-row {
        grid-template-columns: 150px minmax(0, 1fr);
    }

    .mc-cover,
    .mc-cover-placeholder {
        width: 150px;
        height: 96px;
    }

    .mc-actions {
        grid-column: 1 / -1;
        flex-direction: row;
        justify-content: flex-start;
        align-items: center;
    }

    .mc-btn {
        width: auto;
        min-width: 150px;
    }

}

@media (max-width: 640px) {
    .mc-page {
        padding: 20px 16px;
    }

    .mc-row {
        grid-template-columns: 1fr;
        align-items: start;
    }

    .mc-cover,
    .mc-cover-placeholder {
        width: 100%;
        height: 150px;
    }

    .mc-name {
        white-space: normal;
    }

}

/* ============================================================
   site-faq
   ============================================================ */

.faq-section {
    padding: 60px 0 80px;
}

.faq-category-label {
    display: flex;
    align-items: center;
    color: #142033;
    font-size: 1.05rem;
    font-weight: 900;
    gap: 10px;
    margin-bottom: 16px;
}

.faq-category-label i {
    color: #104684;
    font-size: 1.15rem;
}

.faq-category-label::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e9ecef;
}

.accordion-item {
    border: 1px solid #e9ecef;
    border-radius: 12px !important;
    margin-bottom: 10px;
    overflow: hidden;
}

.accordion-button {
    font-weight: 600;
    font-size: 0.95rem;
    color: #212529;
    background: #fff;
    border-radius: 12px !important;
    padding: 18px 22px;
}

.accordion-button:not(.collapsed) {
    color: #104684;
    background: #fff;
    box-shadow: none;
    border-bottom-left-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
}

.accordion-button::after {
    filter: none;
}

.accordion-button:not(.collapsed)::after {
    filter: invert(21%) sepia(70%) saturate(800%) hue-rotate(195deg);
}

.accordion-body {
    font-size: 0.9rem;
    color: #495057;
    line-height: 1.7;
    padding: 4px 22px 20px;
    background: #fff;
}

.contact-cta {
    background: linear-gradient(135deg, #104684, #0c3470);
    border-radius: 16px;
    padding: 40px;
    text-align: center;
    color: #fff;
    margin-top: 48px;
}

.contact-cta-icon {
    color: rgba(255,255,255,0.9);
    display: block;
    font-size: 2.5rem;
    margin-bottom: 14px;
}

.contact-cta-title {
    color: #fff;
    font-size: clamp(1.45rem, 3vw, 2rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 12px;
    text-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.contact-cta-text {
    color: rgba(255,255,255,0.86);
    font-size: 1.05rem;
    line-height: 1.6;
    margin: 0 auto 24px;
    max-width: 560px;
}

/* ============================================================
   site-index-home
   ============================================================ */

.hero-stats {
    display: flex;
    gap: 32px;
    flex-wrap: wrap;
}

.hero-stat {
    text-align: center;
}

.hero-stat-number {
    font-size: 2rem;
    font-weight: 800;
    color: #fff;
    line-height: 1;
}

.hero-stat-label {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.7);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 4px;
}

.filter-sidebar {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    position: sticky;
    top: 78px;
    padding: 20px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

.filter-sidebar-title {
    font-size: 1rem;
    font-weight: 800;
    color: #212529;
    margin-bottom: 4px;
}

.filter-sidebar-count {
    color: #6c757d;
    font-size: 13px;
    margin-bottom: 18px;
}

.filter-group {
    margin-bottom: 16px;
}

.filter-group-title {
    color: #495057;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    margin-bottom: 7px;
}

.filter-group-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 7px;
}

.filter-group-header label {
    margin-bottom: 0;
}

.filter-sidebar .form-select,
.filter-sidebar .form-control {
    border-radius: 8px;
    border-color: #dee2e6;
    font-size: 14px;
    height: auto;
    padding-top: 9px;
    padding-bottom: 9px;
    line-height: 1.4;
}

.filter-sidebar .form-select:focus,
.filter-sidebar .form-control:focus {
    border-color: #104684;
    box-shadow: 0 0 0 0.2rem rgba(16,70,132,0.15);
}

.filter-sidebar .input-group-text {
    border-radius: 8px 0 0 8px;
    border-color: #dee2e6;
    background: #f8f9fa;
    color: #6c757d;
}

.filter-sidebar .input-group .form-control {
    border-radius: 0 8px 8px 0;
    border-left: 0;
}

.filter-actions {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px;
}

.category-filter-reset {
    color: #104684;
    display: inline-flex;
    align-items: center;
    font-size: 13px;
    font-weight: 700;
    gap: 6px;
    text-decoration: none;
    white-space: nowrap;
}

.category-filter-reset:hover {
    color: #0c3470;
}

.category-filter-tree {
    list-style: none;
    margin: 0;
    padding: 0;
}

.category-filter-tree--nested {
    border-left: 1px solid #e9ecef;
    margin-left: 10px;
    padding-left: 10px;
}

.category-filter-tree__item {
    margin: 3px 0;
}

.category-filter-link {
    align-items: center;
    border-radius: 8px;
    color: #495057;
    cursor: pointer;
    display: flex;
    font-size: 14px;
    font-weight: 600;
    gap: 8px;
    justify-content: flex-start;
    line-height: 1.35;
    padding: 7px 8px;
    text-decoration: none;
}

.category-filter-link:hover,
.category-filter-link.is-active {
    background: #eaf4ff;
    color: #104684;
}

.category-filter-checkbox {
    accent-color: #104684;
    cursor: pointer;
    flex-shrink: 0;
    height: 16px;
    margin: 0;
    width: 16px;
}

.tag-filter-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag-filter-badge {
    align-items: center;
    background: #eef1f4;
    border-radius: 999px;
    color: #495057;
    cursor: pointer;
    display: inline-flex;
    font-size: 12.5px;
    font-weight: 600;
    line-height: 1;
    padding: 7px 14px;
    position: relative;
    transition: background 0.15s ease, color 0.15s ease;
    user-select: none;
}

.tag-filter-badge input {
    opacity: 0;
    pointer-events: none;
    position: absolute;
}

.tag-filter-badge:hover {
    background: #e2e6ea;
}

.tag-filter-badge:has(input:focus-visible) {
    outline: 2px solid #104684;
    outline-offset: 2px;
}

.tag-filter-badge.is-active {
    background: #104684;
    color: #fff;
}

.tag-filter-badge.is-active:hover {
    background: #0c3470;
}

.active-filters {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-top: 14px;
    margin-top: 16px;
    border-top: 1px solid #f0f0f0;
}

.active-filters__title {
    color: #212529;
    display: block;
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: 0.3px;
    margin-bottom: 2px;
    text-transform: uppercase;
}

.active-filters__group {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.active-filters__group-label {
    color: #6c757d;
    flex-shrink: 0;
    font-size: 12px;
    font-weight: 500;
}

.filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #eaf4ff;
    border: 1px solid #104684;
    color: #104684;
    border-radius: 50px;
    padding: 3px 12px;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.15s;
}

.filter-chip:hover {
    background: #104684;
    color: #fff;
}

.section-header {
    padding: 0 0 20px;
}

.results-count {
    color: #6c757d;
    font-size: 14px;
}

.badge-course-state {
    background: rgba(255,255,255,0.95);
    color: #52616f;
    border: 1px solid rgba(255,255,255,0.65);
    font-size: 11px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 4px;
    line-height: 1.4;
    backdrop-filter: blur(4px);
}

.badge-course-state.started,
.badge-course-state.in_progress {
    color: #104684;
}

.badge-course-state.completed {
    color: #13633d;
}

.badge-course-state.pending {
    color: #8a6100;
}

.badge-course-state.failed {
    color: #b4233c;
}

.btn-enroll.warning {
    background: #8a6100;
}

.btn-enroll.warning:hover {
    background: #6f4e00;
}

.empty-state {
    text-align: center;
    padding: 80px 20px;
}

.empty-state-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: #fff3ee;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.empty-state-icon i {
    font-size: 2rem;
    color: #104684;
}

.pagination .page-link {
    border-radius: 8px !important;
    margin: 0 2px;
    border: 1px solid #e9ecef;
    color: #333;
    font-size: 14px;
    padding: 8px 14px;
}

.pagination .page-item.active .page-link {
    background: #104684;
    border-color: #104684;
    color: #fff;
}

.pagination .page-link:hover {
    background: #eaf4ff;
    color: #104684;
    border-color: #104684;
}

.section-divider {
    height: 3px;
    background: linear-gradient(90deg, #104684, transparent);
    border-radius: 2px;
    width: 50px;
    margin-bottom: 16px;
}

@media (max-width: 991.98px) {
    .filter-sidebar {
        position: static;
    }

}

/* ============================================================
   site-layout-helpers-auth-cover-panel
   ============================================================ */

.login-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: stretch;
}

.login-cover {
    flex: 0 0 44%;
    position: relative;
    overflow: hidden;
    background: linear-gradient(160deg, #0c2d5a 0%, #104684 40%, #0c3470 70%, #1a1a2e 100%);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 0;
}

.login-cover::after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 5px;
    background: linear-gradient(180deg, #da1f43 0%, #104684 50%, #1a1a2e 100%);
    z-index: 2;
}

.login-cover::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, rgba(255,255,255,0.08) 1px, transparent 1px);
    background-size: 28px 28px;
    z-index: 1;
}

.login-cover-inner {
    position: relative;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
    padding: 44px;
    text-align: center;
}

.login-cover-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
    width: 100%;
    margin-bottom: 16px;
}

.login-cover-logo img {
    height: 38px;
    opacity: 0.92;
}

.login-cover-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.25);
    color: #fff;
    font-size: 13px;
    font-weight: 400;
    padding: 6px 16px;
    border-radius: 50px;
    backdrop-filter: blur(4px);
}

.login-cover-content {
    color: #fff;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.login-cover-icon-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 0;
}

.login-cover-icon {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(255,255,255,0.2), rgba(255,255,255,0.08));
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.18);
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
    flex-shrink: 0;
}

.login-cover-title {
    font-size: 2.4rem;
    font-weight: 900;
    line-height: 1.15;
    margin-bottom: 0;
    text-shadow: 0 2px 16px rgba(0,0,0,0.3);
    letter-spacing: -0.5px;
    color: #fff !important;
    text-align: left;
}

.login-cover-title span {
    color: #9eaad9 !important;
}

.login-cover-subtitle {
    font-size: 1rem;
    color: rgba(255,255,255,0.85);
    line-height: 1.65;
    margin: 20px auto 28px;
    max-width: 320px;
}

.login-features {
    list-style: none;
    padding: 0;
    margin: 0 0 28px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    text-align: left;
}

.login-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.875rem;
    opacity: 0.9;
}

.login-features li .feat-icon {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
}

.login-cover-stats {
    display: flex;
    gap: 28px;
    padding-top: 24px;
    border-top: 1px solid rgba(255,255,255,0.12);
}

.login-stat {
    text-align: left;
}

.login-stat-number {
    font-size: 1.5rem;
    font-weight: 900;
    color: #fff;
    line-height: 1;
}

.login-stat-label {
    font-size: 10px;
    color: rgba(255,255,255,0.5);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 3px;
}

/* ============================================================
   site-layout-helpers-cookie-disclaimer
   ============================================================ */

.cookie-disclaimer {
    background: #000000;
    color: #FFF;
    width: 100%;
    bottom: 0;
    left: 0;
    z-index: 1;
    height: 104px;
    position: fixed;
}

.cookie-disclaimer .container {
    text-align: center;
    padding-top: 20px;
    padding-bottom: 20px;
}

.cookie-disclaimer .container p {
    color: #fff;
}

.cookie-disclaimer .cookie-close {
    float: right;
    padding: 10px;
    cursor: pointer;
}

/* ============================================================
   site-layout-helpers-footer
   ============================================================ */

.mz-site-footer {
    background: #0b1f3a;
    color: rgba(255,255,255,0.76);
    margin-top: auto;
}

.mz-site-footer a {
    color: rgba(255,255,255,0.82);
    text-decoration: none;
    transition: color 0.15s;
}

.mz-site-footer a:hover {
    color: #fff;
}

.mz-footer-main {
    display: grid;
    gap: 26px;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr) minmax(0, .9fr);
    padding: 0 0 28px;
}

.mz-footer-logo {
    display: block;
    height: 42px;
    margin-bottom: 18px;
    max-width: 230px;
    object-fit: contain;
    opacity: 0.92;
}

.mz-footer-title {
    color: #fff;
    font-size: .82rem;
    font-weight: 900;
    letter-spacing: .08em;
    margin-bottom: 12px;
    text-transform: uppercase;
}

.mz-footer-text {
    font-size: .9rem;
    line-height: 1.65;
    margin: 0;
}

.mz-footer-links {
    display: grid;
    gap: 8px;
    margin: 0;
    padding: 0;
}

.mz-footer-links li {
    list-style: none;
}

.mz-footer-links a {
    align-items: center;
    display: inline-flex;
    gap: 8px;
    font-size: .9rem;
}

.mz-footer-links a::before {
    background: #da1f43;
    content: "";
    display: inline-block;
    height: 2px;
    width: 14px;
}

.mz-footer-legal {
    border-top: 1px solid rgba(255,255,255,0.12);
    display: grid;
    gap: 18px;
    grid-template-columns: minmax(0, 1fr) auto;
    padding: 18px 0 0;
}

.mz-footer-legal-text {
    color: rgba(255,255,255,0.58);
    font-size: .78rem;
    line-height: 1.6;
    margin: 0;
}

.mz-footer-bottom-links {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 10px 16px;
    justify-content: flex-end;
}

.mz-footer-bottom-links a {
    color: rgba(255,255,255,0.62);
    font-size: .8rem;
}

.mz-footer-social {
    display: flex;
    gap: 8px;
    margin-top: 16px;
}

.mz-footer-social a {
    align-items: center;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 999px;
    display: inline-flex;
    height: 34px;
    justify-content: center;
    width: 34px;
}

@media (max-width: 991px) {
    .mz-footer-main,
            .mz-footer-legal {
        grid-template-columns: 1fr;
    }

    .mz-footer-bottom-links {
        justify-content: flex-start;
    }

}

/* ============================================================
   site-layout-helpers-head
   ============================================================ */

.navbar .navbar-item .nav-item.user-profile-dropdown .dropdown-menu .dropdown-item:hover a {
    color: #1e1c1c !important;
}

a {
    color: #104684;
    outline: none;
}

.btn-primary {
    color: #212529 !important;
}

.btn-primary:hover,
    .btn-primary:focus,
    .btn-primary:active {
    color: #212529 !important;
}

/* ============================================================
   site-layout-helpers-language-switcher
   ============================================================ */

.auth-top-links {
    position: absolute;
    top: 16px;
    right: 20px;
    left: 44%;
    z-index: 1050;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 18px;
    padding-left: 20px;
}

@media (max-width: 991px) {
    .auth-top-links {
        left: 20px;
        gap: 14px;
        padding-left: 0;
    }

}

@media (max-width: 480px) {
    .auth-top-links {
        right: 14px;
        left: 14px;
        justify-content: space-between;
    }

}

/* ============================================================
   site-layout-helpers-public-header
   ============================================================ */

.text-platform {
    color: #104684 !important;
}

.site-nav-separator {
    display: inline-block;
    width: 1px;
    height: 22px;
    background: #d6dbe1;
}

.btn-platform {
    background-color: #104684;
    border-color: #104684;
    color: #fff !important;
    transition: background 0.2s, transform 0.15s;
}

.btn-platform:hover {
    background-color: #0c3470;
    border-color: #0c3470;
    transform: translateY(-1px);
}

/* ============================================================
   site-layout-helpers-sidebar
   ============================================================ */

.sidebar-wrapper {
    padding: 20px 0;
}

.sidebar-wrapper::-webkit-scrollbar {
    width: 0px;
    background: transparent;
}

.sidebar-wrapper {
    -ms-overflow-style: none;
    /* IE and Edge */ scrollbar-width: none;
}

.sidebar-wrapper .menu {
    margin-bottom: 5px;
}

.sidebar-wrapper .menu a {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    color: #333;
    text-decoration: none;
    transition: all 0.3s ease;
}

.sidebar-wrapper .menu a:hover {
    background-color: #e9ecef;
}

.sidebar-wrapper .menu.active a {
    background-color: #007bff;
    color: #fff;
}

.sidebar-wrapper .menu a i {
    font-size: 1.2rem;
    margin-right: 10px;
    width: 24px;
    text-align: center;
}

.contest-quick-add {
    margin-bottom: 8px;
    padding: 10px 10px;
    position: relative;
    z-index: 1;
}

.contest-quick-add .contest-link {
    display: block;
    padding: 10px 15px;
    text-decoration: none;
    text-align: left;
    width: 100%;
    margin: 0;
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1) !important;
    transition: all 0.3s ease;
    position: relative;
    height: auto !important;
    min-height: auto !important;
    background-size: cover;
    background-position: top left;
    background-repeat: no-repeat;
}

.contest-quick-add .contest-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15) !important;
    z-index: 10;
}

.contest-info {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    position: relative;
    z-index: 1;
}

.contest-icon {
    width: 24px;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    flex-shrink: 0;
    padding-top: 2px;
}

.contest-icon i {
    color: #212529;
    font-size: 1.2rem;
    font-weight: bold;
}

.contest-details {
    flex: 1;
    min-width: 0;
    overflow: visible;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.contest-quick-add .contest-link:hover .contest-details {
    opacity: 1;
}

.contest-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: #212529;
    margin-bottom: 4px;
    line-height: 1.4;
    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: normal;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.9);
    padding: 2px 6px;
    border-radius: 4px;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
}

.contest-deadline {
    font-size: 0.75rem;
    color: #495057;
    display: flex;
    align-items: center;
    gap: 4px;
    background-color: rgba(255, 255, 255, 0.9);
    padding: 2px 6px;
    border-radius: 4px;
    width: fit-content;
    font-weight: 500;
}

.contest-deadline i {
    font-size: 0.7rem;
}

.menu-divider {
    list-style: none;
}

.menu-header {
    list-style: none;
}

/* ============================================================
   site-layout-helpers-user-welcome-hero
   ============================================================ */

.user-welcome-hero {
    background: linear-gradient(135deg, #104684 0%, #0c3470 50%, #1a1a2e 100%);
    position: relative;
    overflow: hidden;
    z-index: 1;
    display: flex;
    align-items: center;
    padding: 40px 36px 36px;
    border-radius: 0;
    width: 100%;
}

.user-welcome-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 10% 90%, rgba(255,255,255,0.07) 0%, transparent 45%), radial-gradient(circle at 85% 15%, rgba(255,255,255,0.07) 0%, transparent 45%);
    pointer-events: none;
}

.user-welcome-hero-pattern {
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.6;
    pointer-events: none;
}

.user-welcome-hero-greeting {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.65);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 6px;
}

.user-welcome-hero-name {
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    font-weight: 800;
    color: #fff;
    margin-bottom: 6px;
    line-height: 1.2;
}

.user-welcome-hero-sub {
    color: rgba(255,255,255,0.75);
    font-size: 0.95rem;
}

/* ============================================================
   site-profile-edit
   ============================================================ */

.profile-page {
    background: #f8f9fa;
    min-height: calc(100vh - 57px);
    padding: 28px;
}

.profile-header {
    margin-bottom: 20px;
}

.profile-title {
    color: #1a1a2e;
    font-size: 1.45rem;
    font-weight: 800;
    margin: 0 0 4px;
}

.profile-subtitle {
    color: #6c757d;
    font-size: .92rem;
    margin: 0;
}

.profile-panel {
    background: #fff;
    border: 1px solid #eef0f3;
    border-radius: 8px;
    box-shadow: 0 1px 6px rgba(0,0,0,0.06);
    padding: 24px;
    max-width: 900px;
}

.profile-section-title {
    color: #1a1a2e;
    font-size: .95rem;
    font-weight: 800;
    margin: 4px 0 16px;
}

.profile-page label {
    color: #344054;
    font-weight: 700;
    font-size: .86rem;
}

.profile-page .form-control,
.profile-page .form-select {
    border-color: #d7dee8;
    border-radius: 8px;
    min-height: 42px;
}

.profile-page .form-control:focus,
.profile-page .form-select:focus {
    border-color: #104684;
    box-shadow: 0 0 0 .2rem rgba(16,70,132,.12);
}

.profile-actions {
    display: flex;
    justify-content: flex-end;
    padding-top: 18px;
    margin-top: 18px;
    border-top: 1px solid #eef0f3;
}

.profile-save {
    background: #da1f43 !important;
    border-color: #da1f43 !important;
    color: #fff !important;
    min-height: 42px;
    min-width: 150px;
    border-radius: 8px;
    font-weight: 800;
}

.profile-save:hover {
    background: #bd1836 !important;
    border-color: #bd1836 !important;
    color: #fff !important;
}

.profile-page #password-requirements .list-group-item {
    padding-left: 0;
    padding-right: 0;
    border-color: #eef0f3;
    background: transparent;
}

@media (max-width: 640px) {
    .profile-page {
        padding: 20px 16px;
    }

    .profile-panel {
        padding: 18px;
    }

}

/* ============================================================
   site-sitemap
   ============================================================ */

.sitemap-page {
    background: #f4f6f8;
    padding: 60px 0 80px;
}

.sitemap-panel {
    background: #fff;
    border: 1px solid #e6eaf0;
    border-radius: 8px;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.05);
    padding: 30px;
}

.sitemap-list,
.sitemap-list ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.sitemap-list > li {
    border-bottom: 1px solid #edf0f4;
    padding: 20px 0;
}

.sitemap-list > li:first-child {
    padding-top: 0;
}

.sitemap-list > li:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.sitemap-section-title {
    align-items: center;
    color: #142033;
    display: flex;
    font-size: 1.05rem;
    font-weight: 900;
    gap: 10px;
    margin-bottom: 12px;
}

.sitemap-section-title i {
    color: #104684;
    font-size: 1.15rem;
}

.sitemap-children {
    display: grid;
    gap: 9px 28px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding-left: 30px !important;
}

.sitemap-courses {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.sitemap-children a {
    align-items: flex-start;
    color: #495057;
    display: inline-flex;
    font-size: .94rem;
    font-weight: 650;
    gap: 8px;
    line-height: 1.4;
    text-decoration: none;
}

.sitemap-children a:hover {
    color: #104684;
}

.sitemap-children a::before {
    background: #da1f43;
    content: '';
    flex: 0 0 auto;
    height: 2px;
    margin-top: .65em;
    width: 14px;
}

.sitemap-muted {
    color: #7b8794;
    font-size: .92rem;
    padding-left: 30px;
}

@media (max-width: 991px) {
    .sitemap-children,
    .sitemap-courses {
        grid-template-columns: 1fr;
    }

    .sitemap-panel {
        padding: 22px;
    }

}

/* ============================================================
   MOVED FROM APP.CSS (site-specific)
   ============================================================ */

.site-flash-stack {
    left: 16px;
    pointer-events: none;
    position: fixed;
    right: 16px;
    top: 22px;
    z-index: 1085;
}

.site-flash {
    align-items: center;
    animation: siteFlashIn 240ms ease-out both;
    border: 1px solid transparent;
    border-radius: 8px;
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.13);
    color: #1f2937;
    display: flex;
    gap: 14px;
    margin: 0 auto 10px;
    max-width: 1040px;
    min-height: 52px;
    padding: 14px 46px 14px 16px;
    pointer-events: auto;
}

.site-flash-content {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.45;
}

.site-flash .btn-close {
    opacity: 0.55;
    padding: 18px;
}

.site-flash-success {
    background: #eaf7ef;
    border-color: #bfe7cc;
    color: #17633a;
}

.site-flash-danger {
    background: #fdeced;
    border-color: #f5c2c7;
    color: #842029;
}

.site-flash-warning {
    background: #fff7e6;
    border-color: #ffe1a6;
    color: #7a4a00;
}

.site-flash-info {
    background: #eaf4ff;
    border-color: #bddcff;
    color: #104684;
}

.site-flash-leaving {
    animation: siteFlashOut 300ms ease-in both;
}

@keyframes siteFlashIn {
    from {
        opacity: 0;
        transform: translateY(-14px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes siteFlashOut {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(-14px);
    }
}

@media (max-width: 575.98px) {
    .site-flash-stack {
        left: 10px;
        right: 10px;
        top: 22px;
    }
}

.btn-platform {
    color: #fff !important;
    background-color: #104684;
    border-color: #104684;
    box-shadow: 0 10px 20px -10px rgba(16, 70, 132, 0.5);
    font-weight: bold;
}

.btn-platform:hover {
    color: #fff !important;
    background-color: #0c3470;
    border-color: #0c3470;
}

.text-platform {
    color: #104684 !important;
}

footer .list-group-item,
footer .list-group-item a,
footer a {
    font-size: 18px;
    font-weight: 400;
}

footer .footer-headline {
    font-size: 18px;
    font-weight: 600;
}

footer a {
    color: #fff;
    text-decoration: none;
}

footer a:hover {
    color: #fff;
    text-decoration: none;
}

footer .border-bottom {
    border-color: #fff !important;
}

footer small, footer .small {
    font-size: 14px;
    font-weight: 400;
}

.list-group-item {
    padding: 8px 0;
}

.site-logged-container {
    padding-left: 0;
    padding-right: 0;
}

#content.site-logged-content {
    flex-grow: 0;
    margin-left: 250px !important;
    margin-top: 0 !important;
    width: calc(100vw - 250px) !important;
}

.site-account-sidebar-toggle {
    align-items: center;
    background: #fff;
    border: 1px solid #dbe4ef;
    border-radius: 6px;
    color: #104684;
    display: inline-flex;
    flex-shrink: 0;
    height: 28px;
    justify-content: center;
    margin: 0;
    width: 28px;
}

.site-account-sidebar-toggle:hover,
.site-account-sidebar-toggle:focus {
    background: #eef4fb;
    color: #0c3470;
}

.site-account-sidebar-heading {
    align-items: center;
    display: flex;
    gap: 8px;
    justify-content: space-between;
}

@media (min-width: 992px) {
    .site-account-sidebar ul.menu-categories > li {
        margin-left: 5px;
        margin-right: 5px;
    }
}

.site-sidebar-collapsed .site-account-sidebar {
    width: 72px !important;
}

.site-sidebar-collapsed .site-account-sidebar #accordionExample {
    align-items: center;
    display: flex;
    flex-direction: column;
    padding-left: 0 !important;
    width: 100%;
}

.site-sidebar-collapsed #content.site-logged-content {
    margin-left: 72px !important;
    width: calc(100vw - 72px) !important;
}

.site-sidebar-collapsed .site-account-sidebar .site-account-sidebar-heading small,
.site-sidebar-collapsed .site-account-sidebar .menu-divider:not(.site-account-sidebar-heading),
.site-sidebar-collapsed .site-account-sidebar .menu span {
    display: none !important;
}

.site-sidebar-collapsed .site-account-sidebar .menu a {
    align-items: center;
    border-radius: 8px;
    display: flex;
    height: 44px;
    justify-content: center;
    margin: 0 auto;
    padding-left: 0;
    padding-right: 0;
    width: 44px;
}

.site-sidebar-collapsed .site-account-sidebar #sidebar ul.menu-categories li.menu > .dropdown-toggle {
    align-items: center !important;
    height: 44px !important;
    justify-content: center !important;
    min-width: 44px !important;
    overflow: visible !important;
    padding: 0 !important;
    width: 44px !important;
}

.site-sidebar-collapsed .site-account-sidebar #sidebar ul.menu-categories li.menu > .dropdown-toggle > div {
    align-items: center;
    display: flex;
    justify-content: center;
    min-width: 0;
    width: 100%;
}

.site-sidebar-collapsed .site-account-sidebar .menu a i {
    margin-right: 0;
    width: auto;
}

.site-sidebar-collapsed .site-account-sidebar #sidebar ul.menu-categories li.menu > .dropdown-toggle i {
    font-size: 1.2rem;
    line-height: 1;
    margin: 0 !important;
    min-width: 20px;
    overflow: visible;
    text-align: center;
    width: 20px !important;
}

.site-sidebar-collapsed .site-account-sidebar-toggle {
    margin-left: auto;
    margin-right: auto;
}

.site-sidebar-collapsed .site-account-sidebar-heading {
    justify-content: center;
    margin-bottom: 8px;
    padding-left: 0 !important;
    padding-right: 0 !important;
    width: 100%;
}

.site-account-mobile-nav {
    display: none;
}

@media (min-width: 992px) {
    .site-navbar-lang {
        margin-inline-end: 100px;
    }
}

@media (max-width: 991.98px) {
    .site-public-navbar .container-fluid {
        padding-left: 18px !important;
        padding-right: 18px !important;
    }

    .site-public-navbar .navbar-collapse {
        padding: 6px 0 10px;
    }

    .site-public-nav-links {
        align-items: stretch;
        margin-left: 0 !important;
    }

    .site-public-nav-actions {
        align-items: stretch !important;
        border-top: 1px solid #e7edf5;
        display: flex;
        flex-direction: column;
        gap: 0 !important;
        margin-top: 6px;
        padding-top: 6px;
        width: 100%;
    }

    .site-public-navbar .nav-link {
        align-items: center;
        border-radius: 6px;
        display: flex;
        min-height: 36px;
        padding: 6px 10px;
        width: 100%;
    }

    .site-public-navbar .nav-link:hover,
    .site-public-navbar .nav-link:focus {
        background: #f5f8fc;
    }

    .site-public-nav-actions .nav-item,
    .site-public-nav-actions .dropdown {
        margin-left: 0 !important;
        width: 100%;
    }

    .site-language-toggle,
    .site-user-toggle {
        color: #333 !important;
        font-size: 13px !important;
        font-weight: 600;
        justify-content: flex-start;
    }

    .site-language-mobile-summary {
        align-items: center;
        color: #333;
        display: flex !important;
        font-size: 13px;
        font-weight: 600;
        gap: 8px;
        min-height: 34px;
        padding: 2px 10px 4px;
    }

    .site-language-mobile-menu {
        gap: 0;
        margin: 0 0 4px !important;
        padding: 0;
        width: 100%;
    }

    .site-language-mobile-menu .nav-link {
        color: #333;
        font-size: 13px;
        font-weight: 600;
        min-height: 32px;
        padding-left: 36px;
    }

    .site-user-toggle {
        gap: 10px !important;
    }

    .site-user-dropdown {
        border-top: 1px solid #e7edf5;
        margin-top: 6px;
        padding-top: 6px;
    }

    .site-user-avatar {
        height: 30px !important;
        width: 30px !important;
    }

    .site-user-mobile-summary {
        align-items: center;
        display: flex !important;
        gap: 10px;
        min-height: 34px;
        padding: 2px 10px 4px;
    }

    .site-user-mobile-menu {
        gap: 0;
        margin: 2px 0 0 !important;
        padding: 0;
        width: 100%;
    }

    .site-user-mobile-menu .nav-link {
        color: #333;
        font-size: 13px;
        font-weight: 600;
        min-height: 34px;
        padding-left: 52px;
    }

    .site-user-name {
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .site-public-navbar .site-language-dropdown .dropdown-menu {
        border: 1px solid #e7edf5 !important;
        box-shadow: none !important;
        margin: 4px 0 8px;
        min-width: 100% !important;
        position: static;
        transform: none !important;
        width: 100%;
    }

    .site-public-navbar .site-language-desktop-menu,
    .site-public-navbar .site-user-desktop-menu {
        display: none !important;
        height: 0 !important;
        margin: 0 !important;
        min-height: 0 !important;
        overflow: hidden !important;
        padding: 0 !important;
    }

    .site-public-navbar .dropdown:not(.custom-dropdown-icon):not(.custom-dropdown) .dropdown-menu.show,
    .site-public-navbar .dropdown-menu.show {
        top: auto !important;
    }
}

@media (max-width: 991.98px) {
    .site-account-sidebar {
        display: none !important;
    }

    .site-account-sidebar-toggle {
        display: none !important;
    }

    #content.site-logged-content {
        margin-left: 0 !important;
        margin-top: 0 !important;
        width: 100% !important;
    }

    .site-account-mobile-nav {
        background: #fff;
        border-bottom: 1px solid #e7edf5;
        display: block;
        padding: 10px 12px;
        position: sticky;
        scrollbar-width: none;
        top: 57px;
        z-index: 1020;
    }

    .site-account-mobile-nav::-webkit-scrollbar {
        display: none;
    }

    .site-account-mobile-nav-list {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        list-style: none;
        margin: 0;
        padding: 0;
    }

    .site-account-mobile-nav-list li {
        flex: 1 1 calc(50% - 4px);
        min-width: 0;
    }

    .site-account-mobile-nav-list a {
        align-items: center;
        border: 1px solid #dbe4ef;
        border-radius: 6px;
        color: #333;
        display: inline-flex;
        font-size: 13px;
        font-weight: 700;
        gap: 7px;
        justify-content: center;
        min-height: 36px;
        padding: 7px 10px;
        text-decoration: none;
        white-space: nowrap;
        width: 100%;
    }

    .site-account-mobile-nav-list a.active {
        background: #104684;
        border-color: #104684;
        color: #fff;
    }
}

.cp-body {
    margin-top: 0;
}

/* ============================================================
   MOVED FROM APP.CSS (shared overrides, admin + site)
   ============================================================ */

.required {
    color: #e7515a;
}

body {
    font-family: kallisto, sans-serif !important;
    font-style: normal;
    color: #000000;
    background: #fff;
    background-color: #fff;
}

.btn-outline-primary {
    border: 1px solid #104684 !important;
    color: #104684 !important;
    background-color: transparent;
    box-shadow: none;
}

.btn-outline-primary:hover {
    color: #fff !important;
    background-color: #104684 !important;
    box-shadow: 0 10px 20px -10px rgb(16 70 132 / 59%) !important;
}

.spinner-grow {
    color: #104684 !important;
}

.dropdown:not(.custom-dropdown-icon):not(.custom-dropdown) .dropdown-menu a.dropdown-item.active, .dropdown:not(.custom-dropdown-icon):not(.custom-dropdown) .dropdown-menu a.dropdown-item:active {
    background-color: transparent;
    color: #104684;
    font-weight: 700;
}

.dropdown:not(.custom-dropdown-icon):not(.custom-dropdown) .dropdown-menu a.dropdown-item:hover {
    color: #104684;
    background: rgb(248, 248, 248);
}

.is-invalid ~ .note-editor {
    border: 1px solid #dc3545 !important;
}

.btn[disabled] {
    background-color: grey !important;
    border-color: grey !important;
}

.note-editor p {
    color: #000;
}

.dropdown:not(.custom-dropdown-icon):not(.custom-dropdown) .dropdown-menu.show {
    top: 30px !important;
}

h1, h2, h3, h4, h5, h6 {
    color: #000;
}
