:root {
    --ds-card-border-radius: 12px;
    --ds-btn-border-radius: 6px;
    --pattern-fg: color-mix(in oklab, var(--bs-gray-900) 5%, transparent);
    --pattern-fg-dark: color-mix(in oklab, var(--bs-white) 10%, transparent);
}

/* 
*
============================================
* Backround Colors & Global Settings and Classes
============================================
*
*/

.bg-gray-100 {
    background-color: var(--bs-gray-100) !important;
}

.bg-gray-200 {
    background-color: var(--bs-gray-200) !important;
}

.bg-gray-300 {
    background-color: var(--bs-gray-300) !important;
}

.bg-gray-400 {
    background-color: var(--bs-gray-400) !important;
}

.bg-gray-500 {
    background-color: var(--bs-gray-500) !important;
}

.bg-gray-600 {
    background-color: var(--bs-gray-600) !important;
}

.bg-gray-700 {
    background-color: var(--bs-gray-700) !important;
}

.bg-gray-800 {
    background-color: var(--bs-gray-800) !important;
}

.bg-gray-900 {
    background-color: var(--bs-gray-900) !important;
}

.min-h-screen {
    min-height: 100vh;
}

.max-h-screen {
    height: 100vh;
    overflow-y: auto;
}

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

@media (prefers-reduced-motion: no-preference) {
    :root {
        scroll-behavior: smooth;
    }
}

body {
    /* background-color: transparent !important; */
    -webkit-text-size-adjust: 100%;
    -webkit-tap-highlight-color: rgba(67, 89, 113, 0);
    font-size: 0.94rem !important;
    overflow-x: hidden;
    font-family: "Inter", "Source Sans 3", "IBM Plex Mono", "Ubuntu Mono",
        sans-serif !important;
    scroll-behavior: smooth !important;
}

body.dashboard {
    background-color: transparent !important;
}

body:not(.dark body) {
    /* background: var(--bs-gray-100); */
    background: #f9fafb99;
}

body,
html,
div,
main {
    /* Target Chrome, Safari, and Edge for scrollbar track and thumb */
    &::-webkit-scrollbar {
        width: 5px;
    }

    &::-webkit-scrollbar-track {
        background-color: #ffff;
    }

    &::-webkit-scrollbar-thumb {
        background-color: #e2e8f0;
        border-radius: 6px;
    }

    /* Target Firefox for scrollbar (fallback) */
    scrollbar-width: thin;
    scrollbar-width: 5px;
    scrollbar-color: #e2e8f0 #ffff;
}

html[class~="dark"] {
    /* Target Chrome, Safari, and Edge for scrollbar track and thumb */
    &::-webkit-scrollbar {
        width: 5px;
    }

    &::-webkit-scrollbar-track {
        background-color: #0f172a;
    }

    &::-webkit-scrollbar-thumb {
        background-color: #334155;
        border-radius: 6px;
    }

    /* Target Firefox for scrollbar (fallback) */
    scrollbar-width: thin;
    scrollbar-width: 5px;
    scrollbar-color: #334155 #0f172a;
}

.dark {
    body,
    div,
    main {
        /* Target Chrome, Safari, and Edge for scrollbar track and thumb */
        &::-webkit-scrollbar {
            width: 5px;
        }

        &::-webkit-scrollbar-track {
            background-color: #0f172a;
        }

        &::-webkit-scrollbar-thumb {
            background-color: #334155;
            border-radius: 6px;
        }

        /* Target Firefox for scrollbar (fallback) */
        scrollbar-width: thin;
        scrollbar-width: 5px;
        scrollbar-color: #334155 #0f172a;
    }
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
    padding: 0;
    margin: 0;
    padding-inline-start: 0px !important;
}

.ds-rounded {
    border-radius: var(--ds-card-border-radius) !important;
    overflow: hidden !important;
}

.text-overflow-ellipsis {
    text-overflow: ellipsis !important;
}

.bg-gray-muted {
    background-color: var(--bs-gray-muted);
}

.h-screen {
    height: calc(100vh - 60px);
    overflow-y: auto;
}

.max-w-50 {
    max-width: 50% !important;
}

.bg-support {
    background: var(--bs-gray-300);
}

.dark .bg-support {
    background: var(--bs-gray-800);
}

.bg-card {
    background: var(--bs-body-bg);
}

.dark .bg-card {
    background: var(--bs-gray-800);
}

.login-form-container {
    max-width: 400px;
    margin: auto;
}

.tabs-nav {
    background-color: var(--bs-gray-200);
    height: 3rem;
    width: fit-content;
}

.dark .tabs-nav {
    background-color: var(--bs-gray-900);
}

/* 
*
===============================================
* Overriding Bootstrap Classes
===============================================
*
*/

.fs-sm {
    font-size: 0.86rem !important;
}

.fs-xs {
    font-size: 0.85rem !important;
}

.card {
    border-radius: var(--ds-card-border-radius);
    box-shadow: 4px 4px 0px var(--bs-gray-200);
    overflow: hidden;
}

.dark .card {
    background: var(--bs-gray-900) !important;
    box-shadow: 4px 4px 0px var(--bs-gray-900);
}

.modal-content {
    border-radius: var(--ds-card-border-radius);
}

.dark .modal-content {
    background-color: var(--bs-gray-900);
}

.btn {
    font-size: 0.95em !important;
}

.btn-close:hover,
.btn-close:focus,
.btn-close:active {
    outline: 0px solid black !important;
    box-shadow: 0px 0px 0px rgba(0, 0, 0, 0) !important;
    border: none !important;
}

.breadcrumb-item {
    max-width: 35ch;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    transition: all 200ms ease;
}

.breadcrumb-item:not(.active):hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .breadcrumb-item {
        max-width: 10ch;
        overflow: hidden;
        white-space: nowrap;
        text-overflow: ellipsis;
    }
}

.breadcrumb-item a {
    text-overflow: ellipsis;
}

.form-control,
.form-select {
    box-shadow: 0px 0px 0px rgba(0, 0, 0, 0) !important;
    padding-block: 0.5rem;
}

.avatar-sm {
    width: 24px;
    height: 24px;
}

.avatar-md {
    width: 32px;
    height: 32px;
}

.avatar-lg {
    width: 56px;
    height: 56px;
}

.avatar-xl {
    width: 126px;
    height: 126px;
}

.cursor-pointer {
    cursor: pointer;
}

.cursor-grab {
    cursor: grab;
}

.divider {
    width: 100%;
    height: 100px;
}

.h-fit {
    height: fit-content !important;
}

.w-fit {
    width: fit-content !important;
}

.w-max-content {
    width: max-content !important;
}

.z-50 {
    z-index: 50 !important;
}

.bg-gradient-primary {
    background: linear-gradient(0deg, var(--bs-primary), transparent);
}

.border-dashed {
    --bs-border-style: dashed !important;
}

.btn-classic {
    background-color: var(--bs-gray-900);
    color: var(--bs-white);
}

.btn-classic:hover,
.btn-classic:focus {
    background-color: var(--bs-gray-800);
    color: var(--bs-white);
}

.dark {
    .btn-classic {
        background-color: var(--bs-white);
        color: var(--bs-gray-900);
    }

    .btn-classic:hover,
    .btn-classic:focus {
        background-color: var(--bs-gray-200);
        color: var(--bs-gray-900);
    }
}

.dropdown-menu {
    padding-inline: 0.85rem;
    .dropdown-item {
        border-radius: 0.35rem;
        margin-block: 0.5rem;
    }
    .dropdown-item.active {
        background: rgba(var(--bs-primary-rgb), 0.15) !important;
    }
}

.accordion-button:focus {
    box-shadow: 0px 0px 0px transparent !important;
}

/* 
*
============================================
* Vendor
============================================
*
*/
div:where(.swal2-container) div:where(.swal2-popup) {
    border-radius: var(--ds-card-border-radius) !important;
    background: var(--bs-body-bg) !important;
    color: var(--bs-body-color) !important;
}

div:where(.swal2-container) div:where(.swal2-popup) button {
    border-radius: var(--ds-btn-border-radius) !important;
}

.page-item.disabled .page-link {
    background-color: var(--bs-body-bg) !important;
    border-color: var(--bs-border-color) !important;
    color: var(--bs-body-color) !important;
}

.dark {
    .CodeMirror,
    .editor-preview,
    .editor-preview-side {
        background: var(--bs-body-bg) !important;
        color: var(--bs-body-color) !important;
    }
    .editor-preview,
    .fullscreen,
    .fullscreen::before,
    .fullscreen::after {
        background: var(--bs-body-bg) !important;
        color: var(--bs-body-color) !important;
    }
    .editor-toolbar a {
        color: var(--bs-body-color) !important;
    }
    .editor-toolbar a:hover,
    .editor-toolbar a.active {
        background: var(--bs-body-bg) !important;
    }
    .editor-toolbar.disabled-for-preview a:not(.no-disable) {
        background: var(--bs-secondary) !important;
    }
}

/* 
*
============================================
* Dashboard Classes
============================================
*
*/

#dash-nav {
    height: 52px;
    border-color: var(--bs-gray-600) !important;
    z-index: 50;
}

#dash-nav a {
    color: white;
}

.mynav li a {
    text-decoration: none;
    width: 100%;
    color: white;
    display: block;
    border-radius: 5px;
    padding: 8px 5px;
}

.mynav li a.active {
    background: var(--bs-gray-900);
}

.mynav li a:hover {
    background: var(--bs-gray-900);
}

.mynav li a i {
    width: 25px;
    text-align: center;
}

/* lessons content page */
.tab-add-content {
    cursor: pointer;
    transition: all 300ms ease;
}

.tab-add-content:hover {
    background: #3a3c3d08;
}

/* video */
.video-preview-container {
    border-style: dashed !important;
    height: 260px;
}

.video-preview {
    aspect-ratio: 16/9;
}

.pattern-fg {
    background-image: repeating-linear-gradient(
        315deg,
        var(--pattern-fg) 0,
        var(--pattern-fg) 1px,
        transparent 0,
        transparent 50%
    );
    background-size: 10px 10px;
    background-attachment: fixed;
}

.dark .pattern-fg {
    background-image: repeating-linear-gradient(
        315deg,
        var(--pattern-fg-dark) 0,
        var(--pattern-fg-dark) 1px,
        transparent 0,
        transparent 50%
    );
    background-size: 10px 10px;
    background-attachment: fixed;
}

.lead {
    font-size: 1.2rem !important;
}

/* 
*
============================================
* Front End Classes
============================================
*
*/
#frontend-navbar {
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    height: 70px;
    background-color: var(--bs-white);
    z-index: 100 !important;
    transition: all 200ms ease-in-out;
}

.dark #frontend-navbar.navbar-home {
    background: var(--bs-gray-900) !important;
}

#frontend-navbar.hidden {
    opacity: 0;
    transform: translateY(-100%);
}

#frontend-navbar .link:hover {
    transition: all 300ms ease;
}

#frontend-navbar .link:hover {
    font-weight: 600;
}

.dark #frontend-navbar {
    background: var(--bs-gray-900);
}

#frontend-footer {
    background-color: var(--bs-white);
}

.dark #frontend-footer {
    background-color: var(--bs-gray-800);
}

/* hero section */
.hero {
    min-height: calc(100dvh - 70px);
    justify-content: center;
    align-items: center;
}

.hero:not(.dark .hero) {
    color: var(--bs-gray-700);
    background: var(--bs-white);
}

.hero::after {
    content: "";
    position: absolute;
    top: -60px;
    opacity: 0.86;
    left: 0;
    width: 100%;
    height: calc(70px + 100%);
    /* background: radial-gradient(
            circle at 85% 43%,
            rgba(7, 144, 224, 0.034),
            hsla(0, 0%, 100%, 0) 25%
        ),
        radial-gradient(
            circle at 30% 65%,
            rgba(112, 162, 255, 0.096),
            hsla(0, 0%, 100%, 0) 25%
        ),
        radial-gradient(
            circle at 0% 70%,
            rgba(99, 154, 255, 0.075),
            hsla(0, 0%, 100%, 0) 25%
        ); */
    background: url("/images/site/grid.svg");
    background-repeat: repeat;
    background-position-y: -15%;
    z-index: 0;
}

.hero .divider {
    background: linear-gradient(360deg, var(--bs-gray-100), transparent);
    z-index: 1;
}

.hero__pill {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    font-size: 0.875rem;
    padding: 0.5rem 1.4rem;
    background: var(--bs-gray-200);
    border: 1px solid var(--bs-gray-300);
    border-radius: 50rem;
}
.hero__pill a > i {
    transition: all 200ms ease;
}

.hero__pill:hover a > i {
    margin-inline-start: 0.7rem !important;
}

.hero__btn {
    padding-block: 0.6rem;
    background: var(--bs-primary);
    color: var(--bs-white);
    font-weight: 600;
    border-radius: 100rem;
    transition: all 100ms ease;
}

.hero__btn.light,
.dark .hero__btn.light {
    background: var(--bs-white) !important;
    color: var(--bs-gray-900);
}

.hero__btn.light:hover,
.hero__btn.light:focus,
.dark .hero__btn.light:hover,
.hero__btn.light:focus {
    color: var(--bs-gray-900);
    filter: drop-shadow(2px 5px 0px var(--bs-gray-800));
}

.hero__btn:hover,
.hero__btn:focus,
.hero__btn:active {
    background: var(--bs-primary) !important;
    color: var(--bs-white) !important;
    filter: drop-shadow(2px 3px 0px var(--bs-gray-800));
}

.hero__tech {
    position: absolute;
    opacity: 0.75;
}

.hero__tech .tech {
    width: 55px;
    height: 55px;
    border: 1px solid var(--bs-gray-300);
    background-color: var(--bs-white);
    border-radius: 0.7rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero__tech .tech img {
    width: 60%;
    height: 60%;
}

.hero__tech.top {
    top: -2rem;
    left: 75%;
    transform: translateX(-50%);
}

.hero__tech.bottom {
    bottom: -2rem;
    right: 4rem;
}

.hero__tech.top-left {
    top: -2rem;
    left: 25%;
    transform: translateX(-50%);
}

.hero__tech.bottom-left {
    bottom: -3rem;
    left: 3rem;
}
@media (min-width: 768px) {
    .hero__h2 {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .hero__h1 {
        font-size: calc(1.575rem + 3.9vw);
    }
}

@media (max-width: 992px) {
    .hero__tech .tech {
        width: 55px;
        height: 55px;
    }
    .hero__tech.top {
        opacity: 0.55;
        top: -3rem;
        right: -1rem;
        transform: translateX(-50%);
    }
    .hero__tech.bottom {
        opacity: 0.55;
        bottom: -4rem;
        left: -3rem;
    }
}

.dark {
    .hero__btn:hover,
    .hero__btn:focus,
    .hero__btn:active {
        background: var(--bs-primary) !important;
        color: var(--bs-white) !important;
        filter: drop-shadow(2px 3px 0px var(--bs-white));
    }

    .hero__pill {
        background: transparent;
        border: 1px solid var(--bs-border-color);
        border-radius: 50rem;
        font-size: 0.875rem;
    }

    .hero__tech .tech {
        border: 1px solid var(--bs-gray-800);
        background: var(--bs-gray-900);
    }
}

.text-gray:not(.dark .text-gray) {
    color: var(--bs-gray-700);
}

.dark {
    .hero::after {
        background: url("/images/site/grid-dark.svg");
        /* background: radial-gradient(
                circle at 85% 33%,
                rgba(60, 155, 228, 0.11),
                hsla(0, 0%, 100%, 0) 25%
            ),
            radial-gradient(
                circle at 12% 55%,
                rgba(53, 124, 206, 0.144),
                hsla(0, 0%, 100%, 0) 25%
            ); */

        background-repeat: repeat;
        background-position: bottom;
        opacity: 0.5;
    }

    .hero .divider {
        background: linear-gradient(360deg, var(--bs-gray-900), transparent);
        z-index: 1;
    }
}

.features {
    display: grid;
    grid-template-columns: 1fr 45% 1fr;
    grid-template-rows: auto auto;
    gap: 1.5rem;
}

.features__item-1 {
    display: flex;
    grid-column: 1/1;
    grid-row: 1/1;
}

.features__item-2 {
    display: flex;
    grid-column: 2/2;
    grid-row: 1/2;
}

.features__item-2 .card {
    background: linear-gradient(35deg, var(--bs-primary), #1d4ed8) !important;
    color: var(--bs-white) !important;
}

.features__item-3 {
    display: flex;
    grid-column: 3/3;
    grid-row: 1/1;
}

@media (max-width: 992px) {
    .features {
        display: grid;
        grid-template-columns: auto;
        grid-template-rows: auto 1.1fr auto;
        gap: 1rem;
    }

    .features__item-1 {
        display: flex;
        grid-column: 1/1;
        grid-row: 1/1;
    }

    .features__item-2 {
        display: flex;
        grid-column: 1/1;
        grid-row: 2/2;
    }

    .features__item-3 {
        display: flex;
        grid-column: 1/1;
        grid-row: 3/3;
    }
}

.cta-card {
    overflow: visible;
    padding-block: 3rem !important;
    border-radius: 1rem !important;
    position: relative;
    color: var(--bs-gray-100);
    margin-inline: auto;
    background: linear-gradient(35deg, var(--bs-primary), #1d4ed8) !important;
    outline: 3px solid var(--bs-gray-400);
    outline-offset: 5px;
}

.dark .cta-card {
    outline: 3px solid var(--bs-gray-600);
}

.cta-card__img {
    display: flex;
    justify-content: end;
    align-items: baseline;
    width: fit-content;
    max-width: 100%;
    max-height: 100%;
    position: absolute;
    right: 0rem;
    bottom: -1rem;
}

.cta-card__img img {
    width: 100%;
    height: 100%;
}

/* 
*
============================================
* lesson Page
============================================
*
*/
.hovred:hover,
.selected {
    background-color: var(--bs-gray-300);
}

.dark .hovred:hover,
.dark .selected {
    background-color: #030712;
}

.video-player {
    aspect-ratio: 16/9;
}

.video-player,
.control {
    width: calc(100% - 300px);
    transition: all 300ms ease;
}

.playlist-toggler {
    right: 300px;
}

.playlist-toggler button {
    width: 23px;
    height: 70px;
    display: none;
    text-align: center;
    align-items: center;
    justify-content: center;
    padding: 0px;
    transition: all 300ms ease;
}

.playlist-toggler button:not(.dark .playlist-toggler button) {
    background: var(--bs-white) !important;
}

.video-container:hover .playlist-toggler button {
    display: flex;
}

.lessons-playlist {
    background-color: var(--bs-white);
    z-index: 20 !important;
    width: 300px;
}

@media (max-width: 992px) {
    .lessons-playlist {
        display: none !important;
    }
}

#playlist-container-sm {
    transition: all 200ms ease-in;
    transform-origin: top;
}

.scale-y-0 {
    transform: scaleY(0) !important;
    display: none !important;
}

.under-video:not(.dark .under-video) {
    background-color: var(--bs-white) !important;
}

.dark .lessons-playlist,
.dark .under-video {
    background-color: var(--bs-gray-900);
}

.under-video .control-btn {
    background-color: var(--bs-gray-200);
    transition: all 300ms ease;
}

.dark .under-video .control-btn {
    background-color: var(--bs-gray-700);
}
.under-video .control-btn[disabled] {
    opacity: 0.5;
}
.under-video .control-btn:not([disabled]):hover {
    background: rgba(var(--bs-primary-rgb), 0.05);
    color: var(--bs-primary);
    border: 1px solid rgba(var(--bs-primary-rgb), 0.1) !important;
}

@media (max-width: 992px) {
    .lessons-playlist {
        width: 95%;
    }
    .playlist-toggler {
        display: none !important;
        width: 0px !important;
    }
    .video-player,
    .control {
        width: 100%;
    }
}

.lesson-content {
    background: var(--bs-white);
}

.dark .lesson-content {
    background: var(--bs-gray-900);
}

.btn-show-reply {
    transition: all 500ms ease !important;
}

.comment:hover .btn-show-reply,
.comment:hover .btn-delete-comment {
    display: block !important;
    transition: all 500ms ease !important;
}

@keyframes pulse {
    from {
        background-color: 1;
    }
    to {
        opacity: 0.5;
    }
}

.animate-pulse {
    animation: pulse 1.2s infinite;
    animation-timing-function: cubic-bezier(0.4, 0, 0.6, 0.9);
}

/* Lesson quiz */
.quiz-option:hover {
    border-color: #6b6b6ba4 !important;
}

.quiz-selected {
    background-color: #00a2ff0e;
    border-color: #00a2ff !important;
}

.correct-option {
    background-color: #19875434;
    border-color: #198754 !important;
}

.incorrect-option {
    background-color: #dc354634;
    border-color: #dc3545 !important;
}

.dark {
    .quiz-selected {
        background-color: #0044ff14;
        border-color: #056ba7 !important;
    }
    .quiz-option:hover {
        border-color: #bdbdbda4 !important;
    }
}

/* 
*
============================================
* Profiles Page
============================================
*
*/
.profile-avatar {
    width: 100%;
    height: auto;
}

.size-4 {
    width: 16px;
    height: 16px;
}

.size-5 {
    min-width: 20px !important;
    min-height: 20px !important;
    max-width: 20px !important;
    max-height: 20px !important;
}

.size-8 {
    width: 32px;
    height: 32px;
}

.size-10 {
    width: 40px;
    height: 40px;
}

.size-12 {
    width: 48px;
    height: 48px;
}

.size-14 {
    width: 56px;
    height: 56px;
}

.size-16 {
    width: 64px;
    height: 64px;
}

.size-20 {
    width: 80px;
    height: 80px;
}

.start-25 {
    left: 25%;
}

.start-75 {
    left: 75%;
}

.profile-link,
.profile-link span {
    transition: all 300ms ease;
}

.profile-link:hover,
.profile-active-link {
    background-color: rgba(var(--bs-primary-rgb), 0.1) !important;
    color: var(--bs-primary) !important;
}

.profile-link:hover span,
.profile-active-link span {
    background: var(--bs-primary) !important;
    padding: 8px 4px !important;
}

.dark .profile-progress .progress {
    background-color: var(--bs-gray-600);
}

.profile-progress .progress {
    height: 14px;
}

.profile-progress .progress .progress-bar {
    background: var(--bs-gray-600);
}

.dark .profile-progress .progress .progress-bar {
    background: var(--bs-gray-300);
}

.profile-progress .profile-progress__badge {
    transition: all 200ms ease;
}

.profile-progress
    .profile-progress__badge:hover:not(.profile-progress__badge.active) {
    scale: 1.1;
}

.profile-progress .active {
    scale: 1.1;
}

.blend-luminosity {
    mix-blend-mode: luminosity !important;
    opacity: 0.5 !important;
}

/* 
*
============================================
* Programme Page
============================================
*
*/
.special-text {
    position: relative;
}
.special-text::after {
    position: absolute;
    content: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1418 125" fill="%23107C9C"><path d="M1412.29 72.17c-11.04-5.78-20.07-14.33-85.46-25.24-22.37-3.63-44.69-7.56-67.07-11.04-167.11-22.06-181.65-21.24-304.94-30.56C888.78 1.39 822.57 1.1 756.44 0c-46.63-.11-93.27 1.56-139.89 2.5C365.5 13.55 452.86 7.68 277.94 23.15 202.57 33.32 127.38 45.01 52.07 55.69c-11.23 2.41-22.63 4.17-33.71 7.22C6.1 66.33 5.64 66.19 3.89 67.79c-7.99 5.78-2.98 20.14 8.72 17.5 33.99-9.47 32.28-8.57 178.06-29.66 4.26 4.48 7.29 3.38 18.42 3.11 13.19-.32 26.38-.53 39.56-1.12 53.51-3.81 106.88-9.62 160.36-13.95 18.41-1.3 36.8-3.12 55.21-4.7 23.21-1.16 46.43-2.29 69.65-3.4 120.28-2.16 85.46-3.13 234.65-1.52 23.42.99 1.57-.18 125.72 6.9 96.61 8.88 200.92 27.94 295.42 46.12 40.87 7.91 116.67 23.2 156.31 36.78 3.81 1.05 8.28-.27 10.51-3.58 3.17-3.72 2.66-9.7-.78-13.13-3.25-3.12-8.14-3.44-12.18-5.08-17.89-5.85-44.19-12.09-63.67-16.56l26.16 3.28c23.02 3.13 46.28 3.92 69.34 6.75 10.8.96 25.43 1.81 34.34-4.39 2.26-1.54 4.86-2.75 6.21-5.27 2.76-4.59 1.13-11.06-3.59-13.68ZM925.4 23.77c37.64 1.4 153.99 10.85 196.64 14.94 45.95 5.51 91.89 11.03 137.76 17.19 24.25 4.77 74.13 11.21 101.72 18.14-11.87-1.15-23.77-1.97-35.65-3.06-133.46-15.9-266.8-33.02-400.47-47.21Z"></path></svg>');
    width: 100%;
    height: 100%;
    top: 50%;
    z-index: -1;
    left: 0px;
}
.programme-container {
    background: url("/images/site/grid.svg");
    background-repeat: repeat;
    background-position-y: -4%;
}

.btn-toggler {
    width: 1.2rem;
    height: 1.2rem;
    transform: rotate(-180deg);
    background-image: var(--bs-accordion-btn-icon);
    transition: transform 0.2s ease-in-out;
}

.dark .btn-toggler {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%2373b6d7'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708'/%3e%3c/svg%3e");
}

.btn-toggler.collapsed {
    transform: rotate(0deg);
}

.programme .accordion-header {
    background-color: var(--bs-body-bg);
}

.dark .programme .accordion-header {
    background-color: var(--bs-gray-900);
}

.programme .lesson {
    transition: all 300ms ease;
    background: rgba(var(--bs-secondary-bg-rgb), 0.25);
}

.dark .programme .lesson {
    background: rgba(var(--bs-body-bg-rgb), 0.25);
}

.programme .lesson:hover:not(.lesson.locked) {
    transform: scale(1.005);
}

@keyframes shake {
    0%,
    100% {
        transform: translateX(0);
    }
    20%,
    60% {
        transform: translateX(-3px);
    }
    40%,
    80% {
        transform: translateX(3px);
    }
}

.programme .lesson:hover.locked {
    animation: shake 0.5s cubic-bezier(0.36, 0.07, 0.19, 0.9) both;
}

.badge-beginner {
    --bs-opacity: 0.4;
    background-color: rgba(var(--bs-success-rgb), var(--bs-opacity));
    padding-block: 7px !important;
    font-size: 0.85rem;
    font-weight: 500;
}

.badge-intermediate {
    --bs-opacity: 0.4;
    background-color: rgba(var(--bs-primary-rgb), var(--bs-opacity));
    padding-block: 2px;
    font-size: 0.85rem;
    font-weight: 500;
}

.badge-advanced {
    --bs-opacity: 0.4;
    background-color: rgba(var(--bs-warning-rgb), var(--bs-opacity));
    padding-block: 2px;
    font-size: 0.85rem;
    font-weight: 500;
}

.bg-beginner {
    --bs-opacity: 0.75;
    background-color: rgba(var(--bs-success-rgb), var(--bs-opacity));
}

.bg-intermediate {
    --bs-opacity: 0.75;
    background-color: rgba(var(--bs-primary-rgb), var(--bs-opacity));
}

.bg-advanced {
    --bs-opacity: 0.75;
    background-color: rgba(var(--bs-warning-rgb), var(--bs-opacity));
}

/* 
*
============================================
* checkout Page
============================================
*
*/
.chosen-method {
    transition: all 300ms ease;
}

.chosen-method:hover,
.chosen-method.checked {
    background: rgba(var(--bs-primary-rgb), 0.1);
    border: 1px solid rgba(var(--bs-primary-rgb), 0.8) !important;
}

/* 
*
============================================
* Resources Pages
============================================
*
*/

.ressources__top-bar {
    background-color: var(--bs-white);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
}

.resources__search-bar {
    padding-block: 10px;
}

.dark {
    .resources__search-bar {
        padding-block: 10px;
        background: var(--bs-gray-800);
    }

    .form-control {
        background: #1a26405e !important;
    }
}

.resources__search-input {
    padding: 0px;
    margin: 0px;
    border: 0px solid black;
}

@media (max-width: 576px) {
    .resources__search-category {
        width: 4ch;
        text-overflow: clip;
        text-wrap: nowrap;
        overflow: hidden;
    }
}

.resources__search-bar:hover,
#search-input:focus .resources__search-bar {
    outline: 1px solid var(--bs-gray-600) !important;
}

.resources__search-bar #triggerCategories {
    max-width: 13ch;
    text-overflow: ellipsis;
    overflow: hidden;
    text-wrap: nowrap;
}

.resources__search-bar:not(.dark .resources__search-bar) {
    background: var(--bs-gray-200);
}

.resources__search-bar input {
    /* padding-block: 10px !important; */
    background: none !important;
    border: 0px solid black !important;
    outline: 0px solid black !important;
    box-shadow: none !important;
}

.resources__btn-search {
    position: absolute;
    right: 12px;
    border-radius: 0px;
    top: 50%;
    z-index: 10;
    transform: translateY(-50%);
}

.ressources__categories-bar {
    background: var(--bs-gray-200);
    width: fit-content;
    margin: auto;
    padding-block: 4px;
}

.resources__link {
    border: 0px solid black;
    padding: 6px 12px;
    text-transform: capitalize;
    transition: all 300ms ease;
}

.resources__link:hover,
.resources__link.active {
    background: var(--bs-gray-200);
    opacity: 1;
}

.resources__divider {
    width: 100%;
    height: 150px;
}

@media (max-width: 992px) {
    .resources__divider {
        width: 100%;
        height: 60px;
    }
}

.resources__container {
    background: var(--bs-gray-200);
}

.resources__filter-checkbox input[type="checkbox"] {
    display: none;
}

.resources__filter-checkbox .checkmark {
    position: relative;
    display: inline-block;
    width: 24px;
    height: 24px;
    background-color: var(--bs-white);
    border-radius: 4px;
    margin-inline-end: 10px;
    vertical-align: middle;
}

.resources__filter-checkbox input[type="checkbox"]:hover + .checkmark {
    background-color: var(--bs-white);
}

.resources__filter-checkbox .checkmark:after {
    content: "";
    position: absolute;
    display: none;
    left: 8px;
    top: 4px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 3px 3px 0;
    transform: rotate(45deg);
}

.resources__filter-checkbox input[type="checkbox"]:checked + .checkmark {
    background-color: var(--bs-gray-900);
}

.resources__filter-checkbox input[type="checkbox"]:checked + .checkmark:after {
    display: block;
}

.resources__filter-checkbox input[disabled] + .checkmark {
    background-color: var(--bs-gray-100);
}

.resources__card {
    aspect-ratio: 14 / 9;
    position: relative;
    transition: all 200ms ease;
}

.resources__card:hover {
    scale: 1.01;
}

.resources__card .resources__card-title {
    flex: 0 0 auto;
    max-width: 83.33333333%;
}

.resources__card:hover .resources__card-title > p {
    text-wrap: wrap !important;
    text-overflow: initial !important;
}

.resources__card-head {
    position: absolute;
    top: 0px;
    left: 0px;
    width: 100%;
    padding: 4px;
}

.resources__card-price {
    color: var(--bs-white) !important;
    background: rgba(15, 23, 42, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    padding-block: 2px;
    font-size: 0.85rem;
}

.resources__card-new {
    color: var(--bs-white) !important;
    background: rgba(15, 23, 42, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    padding-block: 2px;
    font-size: 0.85rem;
}

.resources__card-thumb {
    width: 100%;
    height: 100%;
}

.resources__card-body {
    color: var(--bs-white) !important;
    position: absolute;
    bottom: 0px;
    left: 0px;
    width: 100%;
}

.resources__pagination .page-item > a {
    font-weight: 600;
    padding: 10px 18px !important;
}

.resources__pagination .page-item > a:hover {
    background: #7687a033;
}

.resources__pagination .page-item.active {
    background: var(--bs-gray-900);
    color: var(--bs-gray-100);
}

.resources__card-btn {
    background: rgba(15, 23, 42, 0.8);
}

.resources__card-btn:hover {
    background: rgb(19, 30, 56);
}

.resources__carousel {
    aspect-ratio: 16 / 8;
}

.resources__resource-container {
    display: grid;
    grid-template-columns: 66.66666666% 1fr;
    grid-template-rows: auto 1fr auto;
    gap: 2rem;
}

.resources__resource-container .resources__grid-item-1 {
    grid-column: 1 / 1;
    grid-row: 1 / 1;
}

.resources__resource-container .resources__grid-item-2 {
    grid-column: 2 / 2;
    grid-row: 1 / 3;
}

.resources__resource-container .resources__grid-item-3 {
    grid-column: 1 / 1;
    grid-row: 2 / 3;
}

@media (max-width: 768px) {
    .resources__resource-container {
        display: grid;
        grid-template-columns: 1fr;
        grid-template-rows: auto auto auto;
        gap: 0rem;
    }

    .resources__resource-container .resources__grid-item-1 {
        grid-column: 1 / 1;
        grid-row: 1 / 1;
    }

    .resources__resource-container .resources__grid-item-2 {
        grid-column: 1 / 1;
        grid-row: 2 / 2;
    }

    .resources__resource-container .resources__grid-item-3 {
        grid-column: 1 / 1;
        grid-row: 3 / 3;
    }
}

.resources__carousel .carousel-control-prev,
.resources__carousel .carousel-control-next {
    width: 40px;
    height: 40px;
    margin-inline: 10px;
    top: 50%;
    transform: translateY(-50%);
    border-radius: 50%;
    background: var(--bs-white) !important;
    color: var(--bs-gray-900) !important;
}

[data-bs-theme="dark"] .carousel .carousel-indicators [data-bs-target],
[data-bs-theme="dark"].carousel .carousel-indicators [data-bs-target] {
    background: var(--bs-white);
}

.carousel-indicators [data-bs-target] {
    width: 12px !important;
    height: 12px !important;
    border-top: 0px solid black !important;
    border-bottom: 0px solid black !important;
    border-radius: 50% !important;
    margin-inline: 0.5rem;
}

.resources__btn-buy {
    font-size: 1rem !important;
    border: 2px solid var(--bs-gray-900);
    font-weight: 600;
}

.resources__btn-buy:not(.outline) {
    background: var(--bs-gray-900);
    color: var(--bs-gray-100) !important;
}

.resources__btn-buy:hover {
    background: var(--bs-gray-800);
    color: var(--bs-white);
}

.resources__footer {
    background: var(--bs-white);
}

.resources__resource-tag {
    border-radius: 1000px;
    color: var(--bs-gray-900);
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    border: 2px solid var(--bs-gray-900);
    padding: 4px 16px;
    transition: all 200ms ease;
}

.resources__resource-tag:hover {
    background: var(--bs-gray-900);
    color: var(--bs-gray-100);
}

.dark {
    .ressources__top-bar {
        background-color: var(--bs-gray-900);
    }
    .ressources__categories-bar {
        background: var(--bs-body-bg);
    }
    .resources__link:hover,
    .resources__link.active {
        background: var(--bs-gray-700);
        opacity: 1;
    }

    .resources__container {
        background: rgb(15 23 42 / 54%) !important;
    }

    .resources__btn-buy {
        border: 2px solid var(--bs-gray-100);
        font-weight: 600;
    }

    .resources__btn-buy:not(.outline) {
        background: var(--bs-gray-100);
        color: var(--bs-gray-900) !important;
    }

    .resources__btn-buy:hover {
        background: var(--bs-gray-200);
        color: var(--bs-gray-900);
    }

    .resources__resource-tag {
        color: var(--bs-gray-100);
        border: 2px solid var(--bs-gray-100);
    }

    .resources__resource-tag:hover {
        background: var(--bs-gray-100);
        color: var(--bs-gray-900);
    }

    .resources__pagination .page-item.active {
        background: var(--bs-gray-100);
        color: var(--bs-gray-900);
    }

    .resources__filter-checkbox .checkmark {
        background-color: var(--bs-gray-300);
    }

    .resources__filter-checkbox input[type="checkbox"]:checked + .checkmark {
        background-color: var(--bs-gray-600);
    }

    .resources__filter-checkbox input[disabled] + .checkmark {
        background-color: var(--bs-gray-500);
    }

    .resources__footer {
        background: var(--bs-gray-900);
    }
}

/* 
*
============================================
* Utilities Classes
============================================
*
*/

.image-preview-container {
    border-style: dashed !important;
    height: 260px;
    padding: 12px;
    border-radius: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.image-preview-container .file-input {
    width: 100%;
    height: 100%;
    position: absolute;
    opacity: 0% !important;
}

.image-preview-container .image-preview {
    object-fit: contain;
    width: 100%;
    height: 100%;
}
.image-preview-container .image-reset,
.video-preview-container .video-reset {
    position: absolute;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    z-index: 10;
    top: 5px;
    right: 5px;
    width: 27px;
    height: 27px;
    border-radius: 50%;
    font-size: 0.9em;
    background: #cfcfcf34;
    cursor: pointer;
}

/* circle progress bar for the score page */
.quiz-score {
    .progress {
        width: 150px;
        height: 150px;
        background: none;
        position: relative;
    }

    .progress::after {
        content: "";
        width: 100%;
        height: 100%;
        border-radius: 50%;
        border: 8px solid #d6d6d6ce;
        position: absolute;
        top: 0;
        left: 0;
    }

    .progress > span {
        width: 50%;
        height: 100%;
        overflow: hidden;
        position: absolute;
        top: 0;
        z-index: 1;
    }

    .progress .progress-left {
        left: 0;
    }

    .progress .progress-bar {
        width: 100%;
        height: 100%;
        background: none;
        border-width: 8px;
        border-style: solid;
        position: absolute;
        top: 0;
    }

    .progress .progress-left .progress-bar {
        left: 100%;
        border-top-right-radius: 80px;
        transition: 900ms ease-out;
        border-bottom-right-radius: 80px;
        border-inline-start: 0;
        -webkit-transform-origin: center left;
        transform-origin: center left;
    }

    .progress .progress-right {
        right: 0;
    }

    .progress .progress-right .progress-bar {
        left: -100%;
        border-top-left-radius: 80px;
        border-bottom-left-radius: 80px;
        border-inline-end: 0;
        -webkit-transform-origin: center right;
        transform-origin: center right;
    }

    .progress .progress-value {
        position: absolute;
        top: 0;
        left: 0;
    }
}
