html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}

/* =========================
   Site Footer
   ========================= */

.site-footer {
    direction: rtl;
    text-align: right;
    margin-top: 4rem;
    color: #fff;
    background: #111827;
}

.site-footer__top {
    padding: 4rem 0;
}

.site-footer__middle {
    padding: 2rem 0;
    border-top: 1px solid rgba(255,255,255,.08);
    border-bottom: 1px solid rgba(255,255,255,.08);
}

.site-footer__projects {
    padding: 2.5rem 0;
    border-bottom: 1px solid rgba(255,255,255,.08);
}

.site-footer__bottom {
    padding: 1.25rem 0;
    background: #0b1120;
}

.site-footer__title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.site-footer__text {
    color: rgba(255,255,255,.68);
    line-height: 2;
}

.site-footer__heading {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
    position: relative;
    padding-right: .9rem;
}

    .site-footer__heading::before {
        content: "";
        position: absolute;
        right: 0;
        top: .25rem;
        width: 4px;
        height: 1.1rem;
        border-radius: 10px;
        background: currentColor;
    }

.site-footer__links {
    list-style: none;
    padding: 0;
    margin: 0;
}

    .site-footer__links li + li {
        margin-top: .7rem;
    }

    .site-footer__links a {
        color: rgba(255,255,255,.67);
        text-decoration: none;
        transition: opacity .2s ease;
    }

        .site-footer__links a:hover {
            opacity: .75;
        }

.site-footer__contact {
    display: flex;
    align-items: flex-start;
    gap: .75rem;
    margin-bottom: 1rem;
    color: rgba(255,255,255,.7);
    line-height: 1.9;
}

    .site-footer__contact a {
        color: inherit;
        text-decoration: none;
    }

.site-footer__contact-icon {
    width: 1.5rem;
    flex: 0 0 1.5rem;
}

.site-footer__social-list {
    display: flex;
    flex-wrap: wrap;
    gap: .65rem;
}

.site-footer__social-item {
    min-width: 42px;
    min-height: 42px;
    padding: .55rem .75rem;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: .75rem;
    color: #fff;
    text-decoration: none;
}

.site-footer__licenses {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.site-footer__license {
    display: flex;
    align-items: center;
    gap: .75rem;
    color: #fff;
    text-decoration: none;
}

    .site-footer__license img {
        width: 64px;
        height: 64px;
        object-fit: contain;
        border-radius: .75rem;
        background: #fff;
        padding: .25rem;
    }

    .site-footer__license strong,
    .site-footer__license small {
        display: block;
    }

    .site-footer__license small {
        color: rgba(255,255,255,.6);
        margin-top: .2rem;
    }

.site-footer__project-placeholder {
    aspect-ratio: 1 / .75;
    border-radius: .75rem;
    background: rgba(255,255,255,.06);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,.45);
}

.site-footer__legal {
    display: flex;
    justify-content: flex-start;
    gap: .5rem;
    flex-wrap: wrap;
}

    .site-footer__legal a {
        color: rgba(255,255,255,.67);
        text-decoration: none;
    }

@media (max-width: 767.98px) {

    .site-footer__top {
        padding: 2.5rem 0;
    }

    .site-footer__middle {
        padding: 1.5rem 0;
    }

    .site-footer__legal {
        justify-content: center;
    }

    .site-footer__licenses {
        justify-content: center;
    }

    .site-footer__social {
        text-align: center;
    }

    .site-footer__social-list {
        justify-content: center;
    }
}

/* =========================
   Header
   ========================= */

.site-header {
    direction: rtl;
    position: relative;
    z-index: 1030;
    background: #fff;
}

.site-header__logo {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    min-width: 140px;
    color: inherit;
    text-decoration: none;
    font-weight: 800;
}

    .site-header__logo img {
        width: auto;
        max-width: 180px;
        height: 44px;
        object-fit: contain;
    }

.site-header__nav-link {
    color: #202938;
    font-weight: 500;
    padding-inline: .75rem !important;
}

    .site-header__nav-link:hover {
        color: #0d6efd;
    }

.site-header__actions {
    display: flex;
    align-items: center;
    gap: .65rem;
}

.site-header__cart {
    width: 42px;
    height: 42px;
    position: relative;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    color: inherit;
    text-decoration: none;
    border: 1px solid #dee2e6;
    border-radius: .75rem;
}

.site-header__cart-badge {
    position: absolute;
    top: -7px;
    left: -7px;
    min-width: 20px;
    height: 20px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: 0 5px;
    border-radius: 50px;
    font-size: .7rem;
    background: #dc3545;
    color: #fff;
}

.site-header__mobile-toggle {
    color: #202938;
    text-decoration: none;
    font-size: 1.4rem;
    padding: .25rem .5rem;
}

.site-header__hamburger {
    line-height: 1;
}


/* =========================
   Mobile Menu
   ========================= */

.site-mobile-menu {
    width: min(88vw, 380px);
    direction: rtl;
    text-align: right;
}

.site-mobile-menu__link,
.site-mobile-menu__child-link {
    display: flex;
    align-items: center;
    gap: .6rem;
    width: 100%;
    padding: .8rem .25rem;
    color: #202938;
    text-decoration: none;
    border-radius: .5rem;
}

    .site-mobile-menu__link:hover,
    .site-mobile-menu__child-link:hover {
        background: #f8f9fa;
    }

.site-mobile-menu__group-toggle {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: .8rem .25rem;
    border: 0;
    background: transparent;
    color: #202938;
    text-align: right;
    font-weight: 600;
}

.site-mobile-menu__child-link {
    color: #5c6675;
    font-size: .95rem;
}


/* =========================
   General RTL
   ========================= */

html {
    direction: rtl;
}

body {
    direction: rtl;
    text-align: right;
}

@media (max-width: 991.98px) {

    .site-header__logo {
        margin-inline: auto;
    }

    .site-header__actions {
        gap: .4rem;
    }
}

/* =========================
   Course Card
   ========================= */

.course-card {
    direction: rtl;
    overflow: hidden;
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 1rem;
    transition: transform .2s ease, box-shadow .2s ease;
}

    .course-card:hover {
        transform: translateY(-3px);
        box-shadow: 0 .5rem 1.5rem rgba(0,0,0,.08);
    }

.course-card__image-wrapper {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background: #f1f3f5;
}

.course-card__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.course-card__placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #98a2b3;
}

.course-card__discount {
    position: absolute;
    top: .75rem;
    right: .75rem;
    padding: .3rem .55rem;
    border-radius: .5rem;
    background: #dc3545;
    color: #fff;
    font-size: .75rem;
    font-weight: 700;
}

.course-card__type {
    position: absolute;
    bottom: .75rem;
    right: .75rem;
    padding: .3rem .55rem;
    border-radius: .5rem;
    background: rgba(0,0,0,.65);
    color: #fff;
    font-size: .75rem;
}

.course-card__body {
    padding: 1rem;
}

.course-card__title {
    margin: 0 0 .8rem;
    min-height: 3rem;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.8;
}

    .course-card__title a {
        color: #202938;
        text-decoration: none;
    }

.course-card__teacher {
    display: flex;
    align-items: center;
    gap: .5rem;
    margin-bottom: .8rem;
    color: #667085;
    font-size: .85rem;
}

    .course-card__teacher img {
        width: 30px;
        height: 30px;
        border-radius: 50%;
        object-fit: cover;
    }

.course-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: .45rem;
    margin-bottom: .8rem;
    color: #667085;
    font-size: .8rem;
}

.course-card__price {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: .6rem;
    flex-wrap: wrap;
}

    .course-card__price del {
        color: #98a2b3;
        font-size: .8rem;
    }

    .course-card__price strong {
        font-size: 1.05rem;
    }

/* =========================
   Category Card
   ========================= */

.category-card {
    display: block;
    height: 100%;
    overflow: hidden;
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 1rem;
    color: inherit;
    text-decoration: none;
    transition: transform .2s ease, box-shadow .2s ease;
}

    .category-card:hover {
        transform: translateY(-3px);
        box-shadow: 0 .5rem 1.5rem rgba(0,0,0,.08);
    }

.category-card__image {
    aspect-ratio: 1 / 1;
    background: #f8f9fa;
}

    .category-card__image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.category-card__placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
}

.category-card__body {
    padding: .75rem;
    text-align: center;
}

    .category-card__body h3 {
        margin: 0;
        font-size: .95rem;
        line-height: 1.7;
    }

    .category-card__body span {
        display: block;
        margin-top: .25rem;
        color: #667085;
        font-size: .75rem;
    }