:root {
    --bs-primary: #203090;
    --bs-primary-rgb: 32, 48, 144;
    --lms-primary: #203090;
    --lms-primary-hover: #2d4ab0;
    --lms-primary-light: #4468c8;
    --lms-logo-height: 96px;
    --lms-gold: #d0c068;
    --lms-gold-hover: #e0c868;
}

.loader_bg {
    display: flex;
    align-items: center;
    justify-content: center;
    background-image: none;
}

.loader_bg img {
    width: auto;
    height: 96px;
    max-width: min(280px, 70vw);
    object-fit: contain;
    animation: lms-loader-pulse 1.2s ease-in-out infinite;
}

@keyframes lms-loader-pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.65;
        transform: scale(0.96);
    }
}

.btn-primary {
    --bs-btn-bg: #203090;
    --bs-btn-border-color: #203090;
    --bs-btn-hover-bg: #2d4ab0;
    --bs-btn-hover-border-color: #2d4ab0;
    --bs-btn-active-bg: #1a2878;
    --bs-btn-active-border-color: #1a2878;
    --bs-btn-focus-shadow-rgb: 32, 48, 144;
}

.btn-outline-primary {
    --bs-btn-color: #203090;
    --bs-btn-border-color: #203090;
    --bs-btn-hover-bg: #203090;
    --bs-btn-hover-border-color: #203090;
    --bs-btn-active-bg: #203090;
    --bs-btn-active-border-color: #203090;
    --bs-btn-focus-shadow-rgb: 32, 48, 144;
}

.header-area::after {
    width: 100%;
}

.header-area .logo {
    line-height: 0;
    padding: 8px 0;
}

.header-area .logo a {
    display: inline-block;
}

.header-area .logo img,
.sticky-nav .logo img {
    height: var(--lms-logo-height);
    max-height: none;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    display: block;
}

.header-menu {
    margin-left: 0 !important;
    gap: 12px;
}

.lms-header-search {
    display: flex;
    align-items: center;
    flex: 1;
    max-width: 300px;
    min-width: 200px;
    border: 1px solid rgba(32, 48, 144, 0.22);
    border-radius: 999px;
    background: #fff;
    overflow: hidden;
}

.lms-header-search input {
    flex: 1;
    min-width: 0;
    border: 0;
    padding: 10px 16px;
    font-size: 14px;
    outline: none;
    background: transparent;
    color: #022c5d;
}

.lms-header-search input::placeholder {
    color: #6a6f73;
}

.lms-header-search button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    background: var(--lms-primary);
    color: #fff;
    padding: 0 16px;
    min-height: 42px;
    cursor: pointer;
}

.lms-header-search button:hover {
    background: var(--lms-primary-hover);
}

.lms-mobile-search,
.lms-sidebar-search {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
}

.lms-mobile-search {
    margin-right: 12px;
    flex: 1;
    max-width: 220px;
}

.lms-mobile-search input,
.lms-sidebar-search input {
    flex: 1;
    min-width: 0;
    border: 1px solid rgba(32, 48, 144, 0.22);
    border-radius: 999px;
    padding: 8px 14px;
    font-size: 14px;
    outline: none;
}

.lms-mobile-search button,
.lms-sidebar-search button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 50%;
    background: var(--lms-primary);
    color: #fff;
    flex-shrink: 0;
    cursor: pointer;
}

.mobile-menu .side-menu-info {
    display: flex;
    align-items: center;
    gap: 8px;
}

@media (max-width: 991px) {
    .lms-mobile-search {
        display: flex !important;
    }
}

.header-menu ul li a i {
    margin-right: 6px;
    font-size: 16px;
    position: relative;
    top: 1px;
    left: 0;
}

.sidebar-widget-menu ul li a i {
    margin-right: 8px;
}

.mobile-logo {
    line-height: 0;
}

.mobile-logo img {
    height: 64px;
    max-height: none;
    width: auto;
    max-width: 220px;
    object-fit: contain;
    display: block;
}

.sidebar-logo img {
    height: 72px;
    max-height: none;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    display: block;
}

.footer-wiget-log img {
    height: 110px;
    max-height: none;
    width: auto;
    max-width: 280px;
    object-fit: contain;
    display: block;
}

.footer-area {
    background: var(--lms-primary);
}

.footer-wiget-text p {
    margin: 25px 0 22px;
    font-size: 16px;
    line-height: 28px;
    color: rgba(255, 255, 255, 0.88);
    font-weight: 400;
    max-width: 90%;
}

.prgoress_scrollup {
    box-shadow: inset 0 0 0 2px rgba(208, 192, 104, 0.45);
}

.prgoress_scrollup::after {
    color: var(--lms-gold);
}

.prgoress_scrollup:hover::after {
    color: var(--lms-gold-hover);
}

.prgoress_scrollup svg.progress-circle path {
    stroke: var(--lms-gold);
}

@media (max-width: 991px) {
    :root {
        --lms-logo-height: 72px;
    }
}

@media (max-width: 767px) {
    :root {
        --lms-logo-height: 60px;
    }

    .mobile-logo img {
        height: 52px;
        max-width: 180px;
    }
}

.lms-pagination {
    margin-top: 10px;
    padding-top: 10px;
}

.lms-pagination .pagination {
    gap: 6px;
}

.lms-pagination .page-link {
    min-width: 42px;
    text-align: center;
    border-radius: 6px;
    color: var(--lms-primary);
    border-color: rgba(32, 48, 144, 0.2);
}

.lms-pagination .page-item.active .page-link {
    background-color: var(--lms-primary);
    border-color: var(--lms-primary);
}

.lms-pagination .page-link:hover {
    background-color: rgba(32, 48, 144, 0.08);
    border-color: rgba(32, 48, 144, 0.35);
    color: var(--lms-primary-hover);
}

.lms-pagination .page-item.disabled .page-link {
    color: #adb5bd;
    border-color: #dee2e6;
}

.course-category-filters {
    row-gap: 10px;
}

.lms-profile-dropdown {
    position: relative;
}

.lms-profile-trigger {
    border: 0;
    background: transparent;
    padding: 0;
    cursor: pointer;
    line-height: 0;
}

.lms-profile-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #2d2f31;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
}

.lms-profile-avatar-lg {
    width: 48px;
    height: 48px;
    font-size: 16px;
    flex-shrink: 0;
}

.lms-profile-menu {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 320px;
    background: #fff;
    border: 1px solid #d1d7dc;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08), 0 4px 16px rgba(0, 0, 0, 0.12);
    z-index: 1050;
    overflow: hidden;
}

.lms-profile-menu.show {
    display: block;
}

.lms-profile-menu-head {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    border-bottom: 1px solid #d1d7dc;
}

.lms-profile-name {
    font-size: 15px;
    font-weight: 700;
    color: #2d2f31;
    line-height: 1.3;
}

.lms-profile-contact {
    font-size: 13px;
    color: #6a6f73;
    word-break: break-word;
}

.lms-profile-menu-group {
    padding: 8px 0;
    border-bottom: 1px solid #d1d7dc;
}

.lms-profile-menu-group:last-child {
    border-bottom: 0;
}

.lms-profile-menu-group a,
.lms-profile-menu-group button {
    display: block;
    width: 100%;
    padding: 10px 16px;
    border: 0;
    background: transparent;
    color: #2d2f31;
    font-size: 14px;
    font-weight: 600;
    text-align: left;
    text-decoration: none;
    cursor: pointer;
}

.lms-profile-menu-group a:hover,
.lms-profile-menu-group button:hover {
    background: #f7f9fa;
    color: var(--lms-primary, #203090);
}

.lms-profile-menu-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 16px;
    font-size: 14px;
    font-weight: 600;
    color: #2d2f31;
}

.lms-profile-menu-meta span:last-child {
    color: #6a6f73;
    font-weight: 500;
}

.lms-profile-menu-meta i {
    margin-left: 4px;
}

.main-btn .lms-profile-dropdown {
    margin-left: 8px;
}

.lms-sidebar-profile {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    padding: 12px;
    border: 1px solid #d1d7dc;
    border-radius: 8px;
    background: #f7f9fa;
}

.lms-profile-card {
    background: #fff;
    border: 1px solid #d1d7dc;
    border-radius: 8px;
    padding: 32px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.lms-profile-field label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #203090;
}

.lms-profile-input {
    width: 100%;
    height: 56px;
    padding: 0 16px;
    border: 1px solid #d8dfe8;
    border-radius: 6px;
    background: #fff;
    font-size: 16px;
    color: #1a1a1a;
}

.lms-profile-input::placeholder {
    color: #8a9199;
}

.lms-profile-input:focus {
    outline: none;
    border-color: #203090;
    box-shadow: 0 0 0 3px rgba(32, 48, 144, 0.12);
}

.lms-profile-input-readonly {
    background: #f3f6f9;
    color: #525459;
    cursor: not-allowed;
}

.lms-profile-input-readonly:focus {
    border-color: #d8dfe8;
    box-shadow: none;
}

.lms-profile-help {
    margin-top: 8px;
    font-size: 13px;
    color: #6a6f73;
}

.lms-profile-avatar-trigger {
    position: relative;
    display: inline-block;
    margin: 0;
    cursor: pointer;
}

.lms-profile-avatar-trigger .lms-profile-preview-image,
.lms-profile-avatar-trigger .lms-profile-avatar-xl {
    display: inline-flex;
    transition: opacity 0.2s ease;
}

.lms-profile-avatar-trigger:hover .lms-profile-preview-image,
.lms-profile-avatar-trigger:hover .lms-profile-avatar-xl {
    opacity: 0.88;
}

.lms-profile-avatar-edit {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #203090;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 3px solid #fff;
    font-size: 16px;
    pointer-events: none;
}

.lms-profile-preview-image {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    display: inline-block;
}

.lms-profile-avatar-xl {
    width: 120px;
    height: 120px;
    font-size: 36px;
}

.lms-profile-avatar-image {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
}

.lms-profile-avatar-image-lg {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
}

.lms-auth-panel {
    background: #eff5f4;
    border-radius: 8px;
    padding: 48px 40px 32px;
    box-shadow: 0 1px 25.5px rgba(0, 0, 0, 0.15);
}

.lms-auth-lead {
    margin: -12px 0 28px;
    font-size: 16px;
    color: #525459;
}

.lms-auth-help {
    margin: -12px 0 20px;
    font-size: 13px;
    color: #6a6f73;
}

.lms-auth-field label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #203090;
}

.lms-auth-panel .form-box input.lms-auth-input {
    width: 100%;
    height: 56px;
    margin-bottom: 20px;
    padding: 0 16px;
    border: 1px solid #d8dfe8;
    border-radius: 6px;
    background: #fff;
    font-size: 16px;
    color: #1a1a1a;
}

.lms-auth-panel .form-box input.lms-auth-input::placeholder {
    color: #8a9199;
}

.lms-auth-panel .form-box input.lms-auth-input:focus {
    outline: none;
    border-color: #203090;
    box-shadow: 0 0 0 3px rgba(32, 48, 144, 0.12);
}

.lms-auth-panel .form-box input.lms-auth-input-readonly {
    background: #f3f6f9;
    color: #525459;
    cursor: not-allowed;
    box-shadow: none;
}

.lms-auth-panel .form-box input.lms-auth-input-readonly:focus {
    border-color: #d8dfe8;
    box-shadow: none;
}

.lms-my-learning-head {
    margin-bottom: 28px;
}

.lms-my-learning-head h2 {
    margin-bottom: 8px;
    font-size: 32px;
    font-weight: 700;
    color: #203090;
}

.lms-my-learning-head p {
    margin: 0;
    color: #6a6f73;
}

.lms-my-learning-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    border: 1px solid #d1d7dc;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.lms-my-learning-card .course-single-box {
    margin-bottom: 0;
}

.lms-my-learning-card .lms-card {
    height: auto;
}

.lms-my-learning-card .course-content {
    box-shadow: none;
}

.lms-my-learning-card-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 0 22px 22px;
    border-top: 1px solid #e9e9e9;
}

.lms-my-learning-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 16px;
}

.lms-my-learning-status {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.lms-my-learning-status-enrolled {
    background: #eef2ff;
    color: #203090;
}

.lms-my-learning-status-in_progress {
    background: #fff4e5;
    color: #b45309;
}

.lms-my-learning-status-completed {
    background: #e8f7ee;
    color: #15803d;
}

.lms-my-learning-progress-text {
    font-size: 13px;
    color: #6a6f73;
    white-space: nowrap;
}

.lms-my-learning-progress {
    height: 8px;
    margin-top: 12px;
    border-radius: 999px;
    background: #eef2f6;
    overflow: hidden;
}

.lms-my-learning-progress-bar {
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #203090 0%, #4468c8 100%);
    transition: width 0.3s ease;
}

.lms-my-learning-percent {
    margin-top: 8px;
    font-size: 13px;
    font-weight: 600;
    color: #203090;
}

.lms-my-learning-empty {
    padding: 48px 24px;
    border: 1px solid #d1d7dc;
    border-radius: 8px;
    background: #fff;
    text-align: center;
}

.lms-my-learning-empty h3 {
    margin-bottom: 8px;
    color: #203090;
}

.lms-my-learning-empty p {
    margin-bottom: 20px;
    color: #6a6f73;
}

@media (max-width: 767px) {
    .lms-auth-panel {
        padding: 32px 24px 24px;
    }
}
