:root {
    --white: #FFF;
    --black: #000;
    --secondary-color: #ED1E79;
    --secondary-light-color: #ffdfed;
    --secondary-dark-color: #914d6b;
    --primary-color: #47055D;
    --text-100-color: #f4f1f6;
    --text-200-color: #cbc8cd;
    --text-300-color: #8d8a90;
    --text-400-color: #5b585f;
    --text-500-color: #1d1527;
    --orange-color: orange;
    --orange-light-color: #ffe4b3;
}

@font-face {
    font-family: 'Forma DJR Arabic Text';
    src: url('../fonts/Forma DJR Arabic Text/forma-djr-arabic-text-testing-light.woff2') format('woff2');
    font-weight: 300;
    font-display: swap;
}

@font-face {
    font-family: 'Forma DJR Arabic Text';
    src: url('../fonts/Forma DJR Arabic Text/forma-djr-arabic-text-testing-regular.woff2') format('woff2');
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: 'Forma DJR Arabic Text';
    src: url('../fonts/Forma DJR Arabic Text/forma-djr-arabic-text-testing-medium.woff2') format('woff2');
    font-weight: 500;
    font-display: swap;
}

@font-face {
    font-family: 'Forma DJR Arabic Text';
    src: url('../fonts/Forma DJR Arabic Text/forma-djr-arabic-text-testing-bold.woff2') format('woff2');
    font-weight: 700;
    font-display: swap;
}

@view-transition {
    navigation: auto;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

p {
    margin: 0;
}


a {
    color: inherit;
    text-decoration: none;
}

button {
    border: none;
    background: none;
    cursor: pointer;
}

button:active {
    transform: scale(0.9);
}

img {
    display: block;
    max-width: 100%;
}

button,
input,
textarea,
select {
    font: inherit;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    margin: 0;
}

body {
    margin: 0;
    font-family: 'Forma DJR Arabic Text', sans-serif;
    color: var(--text-500-color);
    line-height: 1.3;
}

.wrapper {
    width: 90%;
    max-width: 1440px;
    margin: 0 auto;
}

.hide {
    display: none !important;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 999px;
    padding: 10px 20px;
    font-size: 15px;
    font-weight: 600;
    border: 1px solid transparent;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
    cursor: pointer;
    white-space: nowrap;
    animation: zoomIn;
    animation-timeline: view();
    animation-range: entry;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn--dark {
    background: var(--text-500-color);
    color: #ffffff;
    box-shadow: 0 12px 28px rgba(17, 17, 17, 0.2);
}

a.btn.btn--large {
    font-size: clamp(18px, 5vw, 26px);
    padding: .8em 1.5em;
}

.btn--dark:hover {
    background: #000;
}

.btn--outline {
    background: transparent;
    border-color: var(--text-500-color);
    color: var(--text-500-color);
}

.btn--ghost {
    background: transparent;
    border-color: rgba(71, 5, 93, 0.2);
    color: var(--text-500-color);
    padding: 8px 16px;
    font-size: 13px;
}

.btn--sm {
    padding: 10px 20px;
    font-size: 14px;
}

.btn [data-lucide] {
    width: 16px;
    height: 16px;
}

/* Inputs */
label.default-label {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

label.default-label>span {
    color: var(--text-400-color);
    font-size: 18px;
}

label.default-label input[type="text"],
label.default-label input[type="email"],
label.default-label input[type="number"],
label.default-label input[type="password"],
label.default-label input[type="search"],
label.default-label select {
    padding: 15px 20px;
    border: 1px solid var(--text-200-color);
    border-radius: 5px;
    font-size: 16px;
    color: var(--black);
}

label.default-label input:-webkit-autofill {
    -webkit-box-shadow: 0 0 0px 1000px var(--white) inset;
    -webkit-text-fill-color: var(--black);
}

.checkbox-label {
    position: relative;
    cursor: pointer;
    user-select: none;
}

.checkbox-label span,
.radio-label span {
    display: flex;
    align-items: center;
    gap: 5px;
    user-select: none;
}

.checkbox-label input:checked+span,
.radio-label input:checked+span {
    color: var(--black);
}

.checkbox-label span:before {
    content: "\e167";
    font-family: lucide;
}

.checkbox-label input:checked+span:before {
    content: "\e559";
}

.checkbox-label input[type="checkbox"] {
    position: absolute;
    opacity: 0;
}

.radio-label span:before {
    content: "\e076";
    font-family: lucide;
}

.radio-label input:checked+span:before {
    content: "\e226";
}


/* Flash Message */

.flash-message {
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 18px;
    justify-content: space-between;
    border: 1px solid;
}

.flash-message.error {
    background-color: #ffecec;
    color: #a90000;
    border-color: #ffbbbb;
}

.flash-message.success {
    background-color: #e6ffed;
    color: #007a00;
    border-color: #75dd92;
}

.flash-message a {
    color: var(--black);
    font-weight: 600;
}

button.close-flashmessage {
    color: currentColor;
    font-weight: 600;
}


ins.course-price {
    color: var(--secondary-color);
    font-size: 20px;
    text-decoration: none;
    font-weight: bold;
}

del.course-old-price {
    color: var(--text-300-color);
}

.course-price.free-price {
    color: #FFF;
    font-weight: 500;
    background-color: var(--primary-color);
    border-radius: 100px;
    padding: 5px 15px;
    font-size: 16px;
}

.will-fade {
    /* opacity: 0; */
    will-change: opacity, transform;
}

.will-zoom {
    /* transform: scale(0); */
    will-change: transform;
}

:root {
    --animate-duration: 0.8s;
    --animate-delay: 0s;
}

.animate__animated {
    animation-delay: var(--animate-delay, revert);
}

/* Lucide icon baseline */
[data-lucide] {
    width: 18px;
    height: 18px;
    stroke-width: 2;
    display: inline-block;
    vertical-align: middle;
}

.lucide-loader-circle {
    animation: spinner .5s linear infinite;
    display: flex;
    margin: 0 auto;
    width: 20px;
    height: 20px;
    color: var(--primary-color);
}

.icon-loader-circle {
    width: 1em;
    height: 1em;
    display: block;
}

.icon-loader-circle:before {
    animation: spinner .5s linear infinite;
    display: block;
}

@keyframes spinner {
    to {
        transform: rotate(360deg)
    }
}

/* HEADER / NAV */
.nav {
    position: sticky;
    top: -90px;
    transition: 0.3s;
    z-index: 100;
    background-color: var(--white);
}

.nav.sticky {
    top: 0;
    /* background-color: rgb(255 255 255 / 90%); */
    backdrop-filter: blur(5px);
    box-shadow: 0 10px 30px rgb(0 0 0 / 5%);
}

.nav__inner {
    display: flex;
    align-items: center;
    gap: 30px;
    height: 90px;
    position: relative;
}

/* Logo */
.logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

/* Nav links */
.nav__links {
    display: flex;
    align-items: center;
    gap: 10px 20px;
    flex-wrap: wrap;
    justify-content: center;
}

.nav__links>a,
.nav__item--mega>a {
    font-size: 20px;
    transition: color 0.15s;
    position: relative;
    white-space: nowrap;
}

.nav__links>a .nav__mega-link {
    color: var(--text-200-color);
}

.nav__links>a:hover {
    color: var(--black);
}

.nav__links>a::after,
.nav__mega-link::after {
    content: "";
    position: absolute;
    inset-inline: 0;
    bottom: -12px;
    height: 2px;
    border-radius: 999px;
    background: var(--secondary-color);
    transform: scaleX(0.4);
    opacity: 0;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav__links>a:hover::after,
.nav__mega-link:hover::after {
    transform: scaleX(1);
    opacity: 1;
}

.header-cta {
    margin-inline-start: auto;
}

a.header-login {
    background-color: var(--primary-color);
    color: #FFF;
    padding: 10px 20px;
    border-radius: 100px;
    font-weight: 600;
    transition: 0.3s;
    text-align: center;
    width: max-content;
    white-space: nowrap;
}

a.header-login:hover {
    transform: translateY(-5px);
}

a.header-login {
    background-color: var(--secondary-color);
}

.header-user {
    position: relative;
    background-color: var(--text-100-color);
    padding: 7px 15px;
    border-radius: 100px;
    max-width: 250px;
}

.header-user__face img {
    width: 30px;
    height: 30px;
    background: var(--text-100-color);
    font-size: 0;
    border-radius: 100px;
}

ul.header-user__menu {
    position: absolute;
    top: 100%;
    inset-inline-start: 0;
    width: 100%;
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    background-color: var(--primary-color);
    border: 10px solid var(--primary-color);
    border-radius: 0 0 20px 20px;
    max-height: 0;
    overflow: hidden;
    transition: 0.1s;
    border-top-width: 0;
    border-bottom-width: 0;
}

ul.header-user__menu li a {
    padding: 10px 20px;
    display: block;
    background-color: var(--white);
    font-size: 14px;
    transition: 0.3s;
    border-bottom: 1px solid var(--secondary-light-color);
}

ul.header-user__menu li a:hover {
    background-color: var(--secondary-light-color);
    padding-inline-start: 30px;
}

ul.header-user__menu li:last-of-type a {
    border-radius: 0 0 10px 10px;
}

ul.header-user__menu li:first-of-type a {
    border-radius: 10px 10px 0 0;
}

ul.header-user__menu li a.line-down {
    border-color: var(--text-200-color);
}

ul.header-user__menu li a.line-top {
    border-top: 1px solid var(--text-200-color);
    margin-top: -1px;
}

.header-user__face {
    display: flex;
    align-items: center;
    gap: 10px;
    transform: none !important;
    white-space: nowrap;
    padding: 0;
    user-select: none;
}

.header-user:focus-within {
    border-radius: 20px 20px 0 0;
    background-color: var(--primary-color);
}

.header-user:focus-within ul.header-user__menu {
    max-height: 100vh;
    overflow: visible;
    border-width: 10px;
}

.header-user:focus-within button.header-user__face {
    color: var(--white);
}

button.header-user__face span {
    text-overflow: ellipsis;
    overflow: hidden;
}

button.header-user__face:after {
    content: "\e06d";
    font-family: 'lucide';
}

.nav__item--mega {
    display: flex;
    align-items: center;
}

.nav__mega-link {
    position: relative;
}

.mega-menu {
    position: absolute;
    top: 100%;
    inset-inline-start: 0;
    width: 100%;
    padding-top: 18px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translate(0, 18px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
    z-index: 150;
}

.nav__item--mega.is-open .mega-menu,
.nav__item--mega:hover .mega-menu,
.nav__item--mega:focus-within .mega-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translate(0, 0);
}

.mega-menu__panel {
    display: grid;
    grid-template-columns: 290px minmax(0, 1fr);
    gap: 28px;
    border-radius: 32px;
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid rgba(71, 5, 93, 0.08);
    box-shadow: 0 30px 90px rgba(48, 37, 52, 0.18);
}

.mega-menu__intro {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 30px;
    align-items: flex-start;
}

.mega-menu__eyebrow {
    display: inline-flex;
    align-items: center;
    width: max-content;
    padding: 8px 14px;
    border-radius: 999px;
    background: var(--secondary-light-color);
    color: var(--secondary-dark-color);
    font-size: 13px;
    font-weight: 700;
}

.mega-menu__intro h3 {
    font-size: 30px;
    line-height: 1.15;
    color: var(--text-500-color);
}

.mega-menu__intro p {
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-400-color);
}

a.mega-menu--show-all:hover {
    color: #FFF
}


.mega-menu__courses {
    min-width: 0;
}

.is-hidden {
    display: none !important;
}

.mega-menu__loading,
.mega-menu__status {
    min-height: 320px;
    display: grid;
    place-items: center;
    text-align: center;
    padding: 32px;
}

.mega-menu__loading p,
.mega-menu__status {
    font-size: 17px;
    color: var(--text-400-color);
}

.mega-menu__spinner {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: 4px solid rgba(71, 5, 93, 0.12);
    border-top-color: var(--primary-color);
    border-left-color: var(--secondary-color);
    animation: mega-menu-spin 0.8s linear infinite;
    box-shadow: 0 10px 24px rgba(71, 5, 93, 0.12);
    margin-bottom: 14px;
}

@keyframes mega-menu-spin {
    to {
        transform: rotate(360deg);
    }
}

.mega-course-card {
    height: 100%;
    overflow: hidden;
    border-radius: 24px;
    border: 1px solid rgba(71, 5, 93, 0.08);
    background: #fff;
    box-shadow: 0 16px 30px rgba(48, 37, 52, 0.08);
}

.mega-course-card__image img {
    width: 100%;
    height: 160px;
    object-fit: cover;
}

.mega-course-card__body {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 18px;
}

.mega-course-card__body h4 {
    min-height: 56px;
    font-size: 19px;
    color: var(--text-500-color);
}

.mega-course-card__body h4 a:hover,
.mega-course-card__footer a:hover {
    color: var(--primary-color);
}

.mega-course-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 13px;
    color: var(--text-300-color);
}

.mega-course-card__meta span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.mega-course-card__meta [data-lucide] {
    width: 14px;
    height: 14px;
}

.mega-course-card__footer {
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-top: 14px;
    border-top: 1px solid rgba(71, 5, 93, 0.08);
}

.mega-course-card__footer a {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-500-color);
}

.mega-blog-card {
    height: 100%;
    overflow: hidden;
    border-radius: 24px;
    border: 1px solid rgba(71, 5, 93, 0.08);
    background: #fff;
    box-shadow: 0 16px 30px rgba(48, 37, 52, 0.08);
}

.mega-blog-card__image {
    position: relative;
    display: block;
}

.mega-blog-card__image img {
    width: 100%;
    height: 160px;
    object-fit: cover;
}

.mega-blog-card__category {
    position: absolute;
    top: 16px;
    inset-inline-start: 16px;
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 999px;
    background: var(--secondary-color);
    color: var(--white);
    font-size: 12px;
    font-weight: 700;
    backdrop-filter: blur(6px);
    opacity: .9;
}

.mega-blog-card__body {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 18px;
}

.mega-blog-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 13px;
    color: var(--text-300-color);
}

.mega-blog-card__meta span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.mega-blog-card__meta [data-lucide] {
    width: 14px;
    height: 14px;
}

.mega-blog-card__body h4 {
    min-height: 56px;
    font-size: 19px;
    color: var(--text-500-color);
}

.mega-blog-card__body h4 a:hover,
.mega-blog-card__footer a:hover {
    color: var(--primary-color);
}

.mega-blog-card__body p {
    min-height: 72px;
    font-size: 14px;
    line-height: 1.7;
    color: var(--text-400-color);
}

.mega-blog-card__footer {
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-top: 14px;
    border-top: 1px solid rgba(71, 5, 93, 0.08);
}


.mega-blog-card__footer a {
    flex-shrink: 0;
    font-size: 14px;
    font-weight: 700;
    color: var(--text-500-color);
}

.mega-menu .splide__arrow {
    width: 42px;
    height: 42px;
    opacity: 1;
    background: var(--text-100-color);
}

.mega-menu .splide__arrow i {
    fill: #fff;
}

.mega-menu .splide__pagination {
    bottom: -24px;
}

.mega-menu .splide__pagination__page {
    background: rgba(71, 5, 93, 0.22);
}

.mega-menu .splide__pagination__page.is-active {
    background: var(--primary-color);
    transform: scale(1.1);
}

.mega-menu .splide__track {
    padding-top: 30px !important;
    padding-bottom: 30px !important;
}

/* FOOTER */
.footer {
    background: var(--text-500-color);
    color: var(--text-200-color);
    position: relative;
    z-index: 1;
}

.footer__grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 28px;
    padding: 70px 0;
}

.footer__brand .logo img {}

.footer__brand>p {
    margin-top: 20px;
    font-size: 17px;
    max-width: 250px;
    color: var(--text-100-color);
    font-weight: lighter;
    line-height: 1.5;
}

.footer__grid h4 {
    margin: 0 0 18px;
    font-size: 22px;
    font-weight: 600;
    color: var(--secondary-color);
}

.footer__grid ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer__grid div:nth-of-type(2) ul {
    /* display: grid; */
    /* grid-template-columns: 1fr 1fr; */
}


.footer__grid ul li a {
    font-size: 18px;
    transition: color 0.15s;
    /* display: flex; */
    align-items: center;
    gap: 5px;
    max-width: max-content;
    color: var(--text-200-color);
    white-space: nowrap;
}

.footer__grid ul li a[target="_blank"]:after {
    content: "\e102";
    font-family: lucide;
    font-size: 12px;
    text-decoration: none !important;
    display: inline-block;
    padding-inline-start: 5px;
}

.footer__grid ul li a:hover {
    color: var(--white);
}

.footer__grid ul li a:before {
    content: "";
    width: 12px;
    height: 12px;
    display: inline-block;
    background: url('../images/icon.svg') no-repeat center / contain;
    padding-inline-end: 5px;
}

.footer__grid ul li a:hover:before {
    background-image: url('../images/icon-filled.svg');
}

/* Socials */
.socials {
    display: flex;
    gap: 10px;
    margin-top: 18px;
    flex-wrap: wrap;
}

.socials a,
.socials button {
    width: 40px;
    height: 40px;
    border-radius: 1em;
    display: grid;
    place-items: center;
    background: var(--secondary-color);
    color: var(--white);
    fill: red;
    transition: background-color 0.15s, transform 0.15s;
    animation: zoomIn;
    animation-timeline: view();
    animation-range: entry;
    display: flex;
    align-items: center;
    justify-content: center;
}

.socials button {
    width: max-content;
    gap: 10px;
    padding-right: 10px;
    padding-left: 10px;
}

.socials a:hover,
.socials button:hover {
    background: var(--white);
    transform: translateY(-2px);
}

.socials svg {
    width: 17px;
    height: 17px;
    fill: currentColor
}

.socials a:hover,
.socials button:hover {
    fill: var(--primary-color);
    color: var(--primary-color);
}

.whatsapp-contact a {
    background: #25d366;
    padding: 8px 15px;
    border-radius: 1em;
    color: #FFF;
    display: flex;
    align-items: center;
    gap: 10px;
    line-height: 100%;
    margin-inline-start: 5px;
    width: max-content;
    transition: 0.1s;
}

.whatsapp-contact a svg {
    width: 20px;
    height: 20px;
    fill: #FFF;
}

.whatsapp-contact a:hover {
    background-color: #128c7e;
}

.whatsapp-contact p {
    display: inline;
}

.whatsapp-contact {
    margin-top: 20px;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Footer bottom bar */
.footer__bottom {
    padding: 30px 0;
    text-align: center;
    background-color: #281f34;
}

.footer__bottom p {
    font-size: 14px;
}

.footer__bottom p a {
    color: var(--white);
    font-weight: 600;
}

.footer__bottom p a:hover {
    text-decoration: underline;
}

/* Responsive */
aside.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgb(207 207 207 / 70%);
    backdrop-filter: blur(5px);
    opacity: 0;
    transition: 0.3s;
    z-index: -1;
    pointer-events: none;
}

.mobile-menu.active {
    opacity: 1;
    z-index: 200;
    pointer-events: auto;
}

.mobile-menu__inner {
    display: flex;
    flex-direction: column;
    gap: 30px;
    background-color: #FFF;
    height: 100%;
    width: 100%;
    max-width: 300px;
    padding: 30px;
    box-shadow: 0 10px 30px rgb(0 0 0 / 10%);
    transform: translateX(300px);
    transition: transform 0.3s;
    padding-bottom: 80px;
}

.active .mobile-menu__inner {
    transform: translateX(0);
}

aside.mobile-menu button.nav__toggle i {
    color: var(--text-300-color);
    width: 30px;
    height: 30px;
    font-size: 30px;
}

nav.mobile-menu__links {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin: auto 0;
}

nav.mobile-menu__links a {
    font-size: 24px;
    color: var(--text-500-color);
}

nav.mobile-menu__links a:hover {
    color: var(--black);
}

.mobile-menu__header {
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: space-between;
}

@media (max-width: 1200px) {
    .mega-menu {
        width: min(980px, 86vw);
    }

    .mega-menu__panel {
        grid-template-columns: 240px minmax(0, 1fr);
        gap: 22px;
    }

    .mega-menu__intro h3 {
        font-size: 26px;
    }
}

@media (max-width: 960px) {
    .nav__links {
        display: none;
    }

    .wrapper.nav__inner {
        justify-content: flex-start;
        gap: 20px;
    }

    .nav__item,
    .nav__item--mega {
        display: block;
        width: 100%;
    }

    .mega-menu {
        display: none;
    }

    .wrapper.footer__grid {
        grid-template-columns: 1fr 1fr;
        gap: 5vw;
    }

    .footer__brand {
        /* grid-column: 1 / -1; */
    }

    .header-cta {
        margin-inline-start: auto;
    }
}

@media screen and (max-width: 768px) {
    .footer__brand {
        grid-column: initial;
    }

    .wrapper.footer__grid {
        grid-template-columns: 1fr;
    }

    .footer__grid ul {
        flex-wrap: wrap;
        flex-direction: row;
    }

    a.logo img {
        width: 25vw;
    }
}

@media screen and (max-width: 480px) {

    button.header-user__face span,
    button.header-user__face:after {
        display: none;
    }

    .header-user {
        padding: 0;
    }


    ul.header-user__menu {
        background-color: transparent;
        border: none;
        inset-inline-start: auto;
        inset-inline-end: 0;
        width: 170px;
        gap: 0;
        padding: 0;
        margin-top: 5px;
        border-radius: 10px !important;
        overflow: hidden !important;
    }
    .header-user:focus-within {
        background-color: transparent;
        border-radius: 0;
    }

    .header-user:focus-within ul.header-user__menu {
        border: 1px solid var(--text-200-color);
    }
}