/*************[start global system]******************/
/*
--- 01 TYPOGRAPHY SYSTEM

- Font sizes (px)
10 / 12 / 14 / 16 / 18 / 20 / 24 / 30 / 36 / 44 / 52 / 62 / 74 / 86 / 98

- Font weights
Default: 400
Medium: 500
Semi-bold: 600
Bold: 700


--- 07 redSPACE

- Spacing system (px)
2 / 4 / 8 / 12 / 16 / 24 / 32 / 48 / 64 / 80 / 96 / 128
*/

* {
    margin: 0;
    padding: 0;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    outline: none;
    list-style: none;
    /* word-wrap: break-word; */

    font-family: "cairo";
}

html {
    /* font-size: 10px; */
    /* 10px / 16px = 0.625 = 62.5% */
    /* Percentage of user's browser font-size setting */
    font-size: 62.5%;
}

body {
    line-height: 1.6;
    font-weight: 500;
    font-size: 14px;
    color: var(--font-dark);
    /* background: ; */
    overflow-x: hidden;
    transition: 0.3s all ease;
    margin: 0 auto;
    position: relative;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    margin: 0;
    line-height: 1.6;

    padding: 0;
    color: var(--font-dark);
}

p {
    color: var(--p-color);
    font-size: 14px;
    font-weight: 500;
    line-height: 1.6;
    margin: 0;
}

img {
    width: 100%;
    height: auto;
    object-fit: cover;
    object-position: bottom;
}

ul {
    margin: 0;
}

span,
a,
a:hover {
    display: inline-block;
    text-decoration: none;
    color: inherit;
}

.section-padding {
    padding: 8rem 0;
}

.ontop {
    position: relative;
    z-index: 4;
}

.position-re {
    position: relative;
}

.bg-img {
    background-size: cover;
    background-repeat: no-repeat;
}

.bg-fixed {
    background-attachment: fixed;
}

.customeSquareLine {
    position: relative;
    z-index: 3;
}

.customeSquareLine::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    background-color: #f5e8be;
    height: 40%;
    z-index: -1;
    transform: translateY(-10%);
}

.underLine {
    width: 80%;
    height: 6px;
    background: #ffc300;
}

.main {
    padding: 0 75px !important;
    /* overflow-x: hidden !important; */
}

/*****************************************
********** start header ******************
*****************************************/
/****************
*/
header {
    padding: 15rem 0 12rem;
    transition: 0.3s all ease;
    position: relative;
    direction: rtl;
    background: url(../imgs/bg-light.svg), var(--main-bg) no-repeat;
    background-size: cover;
    background-position: center;
    min-height: 1000px;
}
.dark header {
    background: url(../imgs/bg-dark.svg), var(--main-bg) no-repeat;
    background-size: cover;
    background-position: center;
}
.rightImgs,
.leftImgs {
    width: 32rem;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    gap: 15rem;
}
.topRightImg {
    margin-left: 4rem;
}
.rightBottomImg {
    margin-right: 4rem;
}
.topLeftImg {
    margin-left: 5rem;
}
.leftBottomImg {
    margin-right: 4rem;
}
.middleImg {
    width: 75%;
    min-width: 30rem;
    display: flex;
    flex-direction: column;
    gap: 3rem;
    animation: habashy 4.5s ease-in-out infinite;
    margin: 0 auto;
}
.middleImg svg path {
    fill-opacity: 1;
    stroke: var(--main-color) !important;
    stroke-width: 0;
    stroke-dashoffset: 5000;
    stroke-dasharray: 5000;
    /* stroke-width: 2px; */
    animation: dash 6s linear;
}
.mobileImage {
    display: none;
}
@keyframes dash {
    0% {
        stroke-dashoffset: 5000;
        stroke-dasharray: 5000;
        fill-opacity: 0;
        stroke-width: 2px;
    }
    25% {
        stroke-dashoffset: 4000;
        stroke-dasharray: 5000;
        fill-opacity: 0;
        stroke-width: 2px;
    }
    50% {
        stroke-dashoffset: 3000;
        fill-opacity: 0;
        stroke-dasharray: 5000;
        stroke-width: 2px;
    }
    75% {
        stroke-dashoffset: 2000;
        stroke-dasharray: 5000;
        stroke-width: 0.5px;
        fill-opacity: 1;
    }
    100% {
        fill-opacity: 1;
        stroke-width: 0;
        stroke-dashoffset: 1000;
        stroke-dasharray: 5000;
    }
}
@keyframes habashy {
    0%,
    100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}
header .row {
    /* margin-top: -12rem; */
    align-items: center;
    position: relative;
    z-index: 9;
}

.teacherContent {
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
}
html[lang="en"] .teacherContent {
    direction: ltr;
    text-align: left;
}
.teacher {
    width: 100%;
    display: flex;
    flex-direction: column;
}
.teacherSub {
    width: 18rem;
}
html[lang="ar"] .teacherSub {
    margin: 0 auto;
}
.middleTitle {
    font-size: 7.2rem;
    font-weight: 700;
    text-align: center;
}
.subHeading {
    /* background: url(../imgs/subHeading.svg) no-repeat; */
    background-position: center;
    background-size: cover;
    color: var(--third-color);
    padding: 0.8rem 3.5rem;
    position: relative;
    z-index: 1;
}
.subHeadingBg svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    object-fit: cover;
}

.subHeadingBg svg g path {
    transition: 0.3s all ease;
}
.dark .subHeadingBg svg g path {
    fill: #212227;
}
/******* header location *********/

.container {
    max-width: 1620px;
    padding: 0 2rem;
}

/*********************************
******************************
****** semesters **********/
.testimonials {
    padding: 15rem 0 13rem;
    /* background: #edebed; */
    position: relative;
    z-index: 1;
    margin-top: -17rem;
}

.edge img {
    width: 100%;
    height: 100%;
    position: relative;
    z-index: 1;
}
.edge::after {
    content: "";
    width: 100%;
    height: 100%;
    position: absolute;
    z-index: 1;
    background: rgba(222, 240, 249, 0.95);
    inset: 0;
    transition: 0.3s all ease;
}
.dark .edge::after {
    background: rgba(33, 34, 39, 0.97);
}
.edge {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    min-width: 160rem;
    height: 100%;
    -webkit-mask-image: url(../imgs/paper-section.svg);
    mask-image: url(../imgs/paper-section.svg);
    -webkit-mask-size: contain;
    mask-size: contain;
    -webkit-mask-repeat: repeat-x;
    mask-repeat: repeat-x;
    z-index: -1;
}
.title {
    font-size: 5.6rem;
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}
.title span {
    font-size: 6.4rem;
    font-weight: 700;
    position: relative;
    width: fit-content;
}
.title span::after {
    content: "";
    position: absolute;
    bottom: 0px;
    right: 0;
    width: 100%;
    height: 35px;
    background: var(--main-bg);
    z-index: -1;
}
.title .secColor:after {
    background: var(--main-bg);
}
.testimonialsParent {
    display: flex;
    align-items: center;
    gap: 4rem;
    position: relative;
}
.realSwiper {
    position: relative;
    overflow: hidden;
    width: 100%;
}
.testimonial {
    background: var(--main-bg);
    display: flex;
    flex-direction: column;
    padding: 5rem 3rem;
    border-radius: 2rem;
    max-width: 37rem;
    position: relative;
    height: 100%;
    justify-content: space-between;
}
.testimonial p {
    color: var(--font-light);
    max-height: 10rem;
    overflow: auto;
}
.testimonial p::-webkit-scrollbar {
    display: none;
}
.studentNameTestimonial {
    margin-top: 2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}
.studentNameTestimonial h3 {
    font-size: 2.4rem;
    font-weight: 700;
    overflow: hidden;
    text-overflow: ellipsis;

    white-space: nowrap;
    max-width: 100%;
}
.studentNameTestimonial span {
    font-size: 2.4rem;
    font-weight: 700;
    color: var(--main-color);
}
.userImg {
    width: 5rem;
    height: 5rem;
    position: absolute;
    top: 0;
    right: 0;
    z-index: 1;
    transform: translate(-50%, -40%);
}
.userImg::after {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    border: 1px solid var(--font-dark);
    left: -3.5px;
    bottom: -3.5px;
    border-radius: 1rem;
    z-index: -1;
}
.userImg img {
    border-radius: 1rem;
    height: 100%;
}
.quote {
    width: 5rem;
    position: absolute;
}
.topQuote {
    top: 0;
    left: 0;
    transform: translate(50%, -40%);
}
.bottomQuote {
    bottom: 0;
    right: 0;
    transform: translate(-50%, 40%) rotate(180deg);
}
/************************************
*********** latest lectures**********
*************************************/

.latestLectures {
    padding: 15rem 0 10rem;
    position: relative;
}
.latestLectureTitle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
    margin-bottom: 5rem;
}
.allLecturesBtn {
    background: transparent;
    padding: 1.5rem 2.5rem;
    font-size: 1.6rem;
    color: var(--main-color);
    font-weight: 600;
    transition: 0.3s all ease;
    border-radius: 1rem;
    border: 2px solid var(--main-color);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.allLecturesBtn:hover {
    color: #fff;
    background: var(--main-color);
}

.lectureTitle span:first-child {
    font-size: 5.2rem;
    font-weight: 700;
    position: relative;
    width: fit-content;
}
.lectureTitle span:last-child {
    font-size: 5.2rem;
    font-weight: 700;
    position: relative;
    width: fit-content;
}
.lectureTitle span:last-child:after {
    content: "";
    position: absolute;
    bottom: 5px;
    right: 0;
    width: 100%;
    height: 35px;
    background: rgba(54, 178, 232, 0.2);
    z-index: -1;
}
.cardsRow {
    justify-content: center;
}

.swiper-slide {
    height: auto;
}

.swiper-wrapper {
    padding: 2rem 0rem;
    overflow: visible !important;
    position: relative;
}
.testimonialsBtns {
    display: flex;
    flex-direction: row-reverse;
    align-items: center;
    margin-top: 5rem;
    justify-content: end;
    gap: 2rem;
    margin-left: 5%;
}
.swiper-button-next:after,
.swiper-rtl .swiper-button-prev:after,
.swiper-button-prev:after,
.swiper-rtl .swiper-button-next:after {
    content: "";
}

.swiper-button-next,
.swiper-button-prev {
    color: var(--main-color);
    font-size: 2.8rem;
    position: static;
    transition: 0.3s all ease;
}

/* .dark .swiper-button-next,
.dark .swiper-button-prev {
    background: #393a3e;
} */

.swiper-button-disabled {
    /* opacity: 0.5 !important; */
    color: #393a3e;
}
