/*Start  Root*/
:root {
    --aboutSize: 1430px;
    --marginTop: 48px;
}

/*End  Root*/

/*start normalization css*/
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    font-family: system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    Oxygen,
    Ubuntu,
    Cantarell,
    "Open Sans",
    "Helvetica Neue",
    sans-serif;
    list-style: none;
}

/*ٍEnd normalization css*/

/* Start navbar section */
nav {
    position: fixed;
    z-index: 100;
    left: 0;
    top: 0;
    right: 0;
    background-color: rgba(255, 255, 255, 0);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 4%;
    transition: all 0.3s ease-in-out;
}

.navScroll {
    position: fixed !important;
    z-index: 100;
    left: 0;
    top: 0;
    right: 0;
    background-color: rgba(255, 255, 255, 0.78) !important;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 4%;
}

nav > ul > li > i {
    font-size: 1.5rem;
}

.nav-login {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.nav-pages {
    display: flex;
    gap: 1rem;

}

nav > ul > li {
    display: flex;
    align-items: center;
    justify-content: center;

}
.ul-menu{
    display: none;
    opacity: 0;
    visibility: hidden;
}

.licence-img {
    width: 150px;
}

.logo-brand {
    width: 200px;
}

nav > ul > li a {
    color: black;
    font-weight: bold;
    transition: all 0.2s ease-in-out;

}

nav > ul > li > i:hover {
    cursor: pointer;
}

nav > ul > li > a:hover {
    color: #967f08;
}

.li-dropDown {
    position: relative;
}

.dropDown {
    background-color: white;
    display: flex;
    gap: 1rem;
    flex-direction: column;
    position: absolute;
    top: 66px;
    right: -7px;
    width: 171px;
    direction: rtl;
    box-shadow: -1px 8px 20px 6px rgb(0 0 0 / 21%);
    border-radius: 10px;
    padding: 16px;
    transition: all 0.3s ease-in-out;
    opacity: 0;
    visibility: hidden;

}

.li-dropDown:hover .dropDown {
    opacity: 1;
    visibility: visible;
}

.dropDown > li > a {
    direction: rtl;
    text-align: right;
    color: #4b4040;
    font-size: 12px;
    transition: all 0.2s ease-in-out;
    line-height: 22px;

}

.dropDown > li {
    border-bottom: 1px solid black;
}

.dropDown > li > a:hover {
    color: #967f08;
}

/* End navbar section */

.banner {
    width: 100%;
    height: 100vh;
    overflow: hidden;
    margin: 0px auto;
    position: relative;
}

.banner img {
    position: absolute;
    width: 100%;
    height: 100%;
    visibility: hidden;
    opacity: 0;
    transition: all 0.5s ease-in-out;
    object-fit: cover;
}

.banner i {
    position: absolute;
    top: 95%;
    transform: translateY(-50%);
    width: 30px;
    height: 30px;
    font-size: 32px;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
    z-index: 100;
    border-radius: 50%;
    cursor: pointer;
}

.content {
    direction: rtl;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    right: 30%;
}

.content h2, .content p {
    display: none;
    visibility: hidden;
    opacity: 0;
}

.content h2 {
    font-size: 1.8rem;
    -webkit-text-stroke: 1px black;
    color: rgb(209, 195, 3);
    transition: all 0.1s ease-in-out;
    opacity: 0;
    visibility: hidden;
}

.content p {
    margin-top: 5%;
    color: white;
    transition: all 0.4s ease-in-out;
    opacity: 0;
    visibility: hidden;

}

.prev {
    left: 5%;
}

.next {
    left: 8%;
}

.show {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/*Start about section*/
.main {
    margin: 48px auto;
    width: 80%;
    position: relative;
}

.about {
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
    justify-content: space-evenly;
    align-items: center;
    width: 100%;
}

.about-content > h1 {
    direction: rtl;
    position: absolute;
    top: 20px;
    right: 47%;
}

.about-content > p {
    margin-top: 80px;
    direction: rtl;
    line-height: 25px;

    text-align: justify;
    width: 602px;
}

.about-img {

}

.Btn-more {
    padding: 2%;
    background-color: transparent;
    border: 1px solid #fdc100;
    float: right;
    margin-top: 5%;
    transition: all 0.3s ease-in-out;
}

.Btn-more:hover {
    background-color: #fdc100;
    color: white;
    cursor: pointer;
}

/*Start addSection*/
.add-gif {
    display: flex;
    align-items: center;
    justify-content: center;
}

.add-gif img {
    margin-top: var(--marginTop);
    width: 80%;
}

/*End addSection*/
/*Start top courses section*/
.top-courses {
    margin-top: var(--marginTop);
    /*width: 1280px;*/
    width: 100%;
}

.top-courses-h2 {
    text-align: center;
    margin-top: var(--marginTop);

}

.top-courses {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.top-courses-item {
    position: relative;
    cursor: pointer;
}

.top-courses-card {
    width: 270px;
    height: 460px;
    overflow: hidden;
    border-radius: 10px;
}

.top-courses-card img {
    width: 100%;
    height: 50%;
}

.top-courses-item h3, .top-courses-item p {
    text-align: right;
}

.cardP-price {
    font-weight: bold;
    color: #fdc100;
}

.card-view {
    width: 95%;
    background-color: rgba(0, 0, 0, 0.23);
    position: absolute;
    height: 10%;
    bottom: 10%;
    left: 2.5%;
    border-radius: 3px;
    color: white;
    text-align: right;
    line-height: 42px;
    padding-right: 17px;
    transition: all 0.3s ease-in-out;
    opacity: 0;
}

.top-courses-item:hover .card-view {
    cursor: pointer;
    bottom: 18%;
    opacity: 1;
}

/*End top courses section*/

/*Start top teacher section*/

.slider-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    margin-top: var(--marginTop);
}

.slider-title {
    text-align: center;
    margin-bottom: 30px;
    color: #333;
}

.slider-container {
    display: flex;
    align-items: center;
    gap: 15px;
}

.cards-container {
    width: 100%;
    overflow: hidden;
}

.cards-track {
    display: flex;
    gap: 20px;
    transition: transform 0.4s ease;
}

.card {
    min-width: calc(25% - 15px);
    background: white;
    border-radius: 15px;
    transition: transform 0.3s ease;
}

.card-img {
    width: 100%;
    overflow: hidden;

}

.card-img img {
    width: 100%;
    border-radius: 50%;
    transition: all .3s ease-in-out;
}

.card-img img:hover {
    filter: brightness(0.8);
}

.card-body {
    text-align: center;
    padding: 20px;
}

.card-body h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: #333;
}

.card-body p {
    font-size: 0.9rem;
    color: #777;
    margin-bottom: 15px;
}

/*End top teacher section*/

/*Start news section*/
.bartar-news-items {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 32px;
    margin-top: var(--marginTop);
    width: 100%;
}

.bartar-news-card {
    width: 380px;
    height: 502px;
    overflow: hidden;
}

.bartar-news-img img {
    width: 100%;
}

.bartar-news-text {
    background-color: #eeeeee;
    height: 100%;
}

.bartar-news-text > h4 {
    direction: rtl;
    text-align: center;
    padding: 0 48px;
    padding-top: 20px;
}

.bartar-news-text > p {
    direction: rtl;
    text-align: right;
    padding: 0 40px;
    font-size: 16px;
    padding-top: 20px;
}

.bartar-news-text a {
    color: #fdc100;
    float: right;
    direction: rtl;
    padding-right: 48px;
    padding-top: 20px;
    font-size: .8rem;
}

/*End news section*/


.slider-wrapperEnd {
    width: 100%;
    margin: 0 auto;
    margin-top: var(--marginTop);
}

.slider-containerEnd {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 15px;
}

.cards-containerEnd {
    width: 100%;
    overflow: hidden;
}

.cards-trackEnd {
    width: 150%;
    display: flex;
    transition: transform 0.4s ease;
}

.card-end {
    width: 100%;
    background: white;
    border-radius: 15px;
    transition: transform 0.3s ease;
}

.card-img-end {
    width: 100%;
    overflow: hidden;

}

.card-img-end img {
    width: 100%;
    transition: all .3s ease-in-out;
}

.social-media {
    position: relative;
    display: flex;
    gap: 3rem;
    background-color: #eeeeee;
    align-items: center;
    justify-content: center;
}

.social-media a {
    padding: 10px 0;
    text-align: center;
}

.social-media > a > img {
    position: absolute;
    top: 10px;
}

footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.footer-container {
    width: 100%;
}

.footer-items {
    display: flex;
    align-items: center;
    gap: 3rem;
    text-align: center;
    justify-content: center;
    flex-wrap: wrap;
}

.footer-card {
    width: 200px;
    position: relative;
}

.footer-card h3 {
    padding: 40px 0;
}
.footer-card::before {
    position: absolute;
    content: "";
    width: 11%;
    height: 2px;
    top: 76px;
    left: 45%;
    background-color: rgb(241, 183, 10);
}
.footer-card ul > li > a {
    color: rgba(0, 0, 0, 0.66);
}

@media (max-width: 900px) {
    .card {
        min-width: calc(50% - 10px);
    }
}

@media (max-width: 500px) {
    .card {
        min-width: calc(100% - 0px);
    }

    .nav-btn {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
}
@media ( max-width: 1320px) {
    .nav-login,.nav-login>li,.nav-login>li>a{
        display: none;
        visibility:hidden;
        opacity: 0;
    }
    .licence-img{
        display: none;
        visibility: hidden;
        opacity: 0;
    }
    .nav-pages{
        display: none;
        visibility: hidden;
        opacity: 0;

    }
    .ul-menu{
        display: block;
        visibility: visible;
        opacity: 1;

    }
    .li-dropdown-menu{
        position: relative;
    }
    .dropDownMenu {
        background-color: white;
        display: flex;
        gap: 1rem;
        flex-direction: column;
        position: absolute;
        top: 66px;
        left: 10px;
        width: 171px;
        direction: rtl;
        box-shadow: -1px 8px 20px 6px rgb(0 0 0 / 21%);
        border-radius: 10px;
        padding: 16px;
        transition: all 0.3s ease-in-out;
        opacity: 0;
        visibility: hidden;
        /*display: none;*/

    }
    .dropDownMenuShow{
        visibility: visible!important;
        opacity: 1!important;
    }
    .dropDown {
        background-color: white;
        display: flex;
        gap: 1rem;
        flex-direction: column;
        position: absolute;
        top: -5px;
        right: -197px;
        width: 171px;
        direction: rtl;
        box-shadow: -1px 8px 20px 6px rgb(0 0 0 / 21%);
        border-radius: 10px;
        padding: 16px;
        transition: all 0.3s ease-in-out;
        opacity: 0;
        visibility: hidden;

    }

    .li-dropDown:hover .dropDown {
        opacity: 1;
        visibility: visible;
    }

    .dropDown > li > a {
        direction: rtl;
        text-align: right;
        color: #4b4040;
        font-size: 12px;
        transition: all 0.2s ease-in-out;
        line-height: 22px;

    }

    .dropDown > li {
        border-bottom: 1px solid black;
    }

    .dropDown > li > a:hover {
        color: #967f08;
    }
}