@import "../fonts/cairo/Cairo-Regular.ttf";
@import "../fonts/cairo/Cairo-Black.ttf";
@import "../fonts/cairo/Cairo-Bold.ttf";
@import "../fonts/cairo/Cairo-ExtraLight.ttf";
@import "../fonts/cairo/Cairo-Light.ttf";
@import "../fonts/cairo/Cairo-SemiBold.ttf";

* {
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    font-family: 'Cairo';
}

.main-section {
    padding: 50px 0;
}

.main-section2 {
    padding: 50px 0;
    background-color: var(--section-background);
}

.title-container {
    background-color: var(--main-color);
    width: 280px;
    padding-bottom: 10px;
    padding-left: 40px;
    border-radius: 40px 5px 5px 40px;
    padding-right: 5px;
    height: 50px;
    position: relative;
    margin-bottom: 50px;
}

@media(max-width:991px) {
    .title-container {
        border-radius: 40px 40px 40px 40px;
        margin: 50px auto;
    }
}

.title-container .title {
    position: absolute;
    top: -25px;
    right: 15px;
    font-size: 40px;
    font-weight: bold;
    color: white;
    /* Text color */
    text-shadow:
        -1px -1px 0 var(--main-color),
        1px -1px 0 var(--main-color),
        -1px 1px 0 var(--main-color),
        1px 1px 0 var(--main-color);
    /* Shadow creates the border effect */
}

@media(max-width:991px) {
    .title-container .title {
        right: 50%;
        width: 100%;
        text-align: center;
        transform: translateX(50%);
    }
}

:root {
    --main-color: #4CAF50;
    --main-color-alt: #1787e0;
    --main-transition: 0.3s;
    --main-padding-top: 100px;
    --main-padding-bootom: 100px;
    --section-background: #ececec;
}

a {
    text-decoration: none;
}

body {
    font-family: 'Cairo', sans-serif;
}

ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

/* header */
header li {
    margin: 0 10px;
}

@media(max-width:991px) {
    header li {
        margin: 5px;
    }
}

/* start megamenu */
header .main-nav>.mega-menu-li:hover .mega-menu {
    opacity: 1;
    z-index: 100;
    top: calc(100% - 28px);
}

@media(max-width:991px) {
    header .main-nav>.mega-menu-li:hover .mega-menu {
        top: calc(100% - 105px);
    }
}

.mega-menu-li {
    display: flex;
    align-items: center;
}

header .mega-menu {
    position: absolute;
    width: 100%;
    left: 0;
    padding: 30px;
    background-color: white;
    border-bottom: 3px solid var(--main-color);
    z-index: -1;
    opacity: 0;
    display: flex;
    gap: 40px;
    align-items: center;
    top: calc(100% + 50px);
    transition: top var(--main-transition), opacity var(--main-transition)
}

@media(max-width:767px) {
    header .mega-menu {
        flex-direction: column;
        gap: 0;
        padding: 10px;
    }
}

header .mega-menu .image {
    width: 372px;
}

@media(max-width:991px) {
    header .mega-menu .image {
        display: none;
    }
}

header .mega-menu .image img {
    max-width: 100%;
}

header .mega-menu .links {
    min-width: 206px;
    flex: 1;
    /* margin-right: 25px; */
}

@media(max-width:767px) {
    header .mega-menu .links:first-of-type li:last-child {
        border-bottom: 1px solid #e9e6e6;
    }

    header .mega-menu .links {
        margin-right: 0;
    }
}

header .mega-menu .links li {
    position: relative;
}

header .mega-menu .links li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 0;
    height: 100%;
    background-color: #fafafa;
    z-index: -1;
    transition: var(--main-transition);
}

header .mega-menu .links li:hover::before {
    width: 100%;
}

header .mega-menu .links li:not(:last-child) {
    border-bottom: 1px solid #e9e6e6;
}

header .mega-menu .links li a {
    color: var(--main-color);
    padding: 15px;
    display: block;
    font-size: 18px;
    font-weight: bold;
}

header .mega-menu .links li a i {
    margin-right: 10px;
}

/* end megamenu */

/* new section */

.news-section .owl-item {
    padding: 20px;
}

.news-section .box {
    box-shadow: 0 2px 15px rgb(0 0 0 / 10%);
    background-color: white;
    border-radius: 6px;
    overflow: hidden;
    transition: transform var(--main-transition), box-shadow var(--main-transition);
}

.news-section .box:hover {
    transform: translateY(-10px);
    box-shadow: 0 2px 15px rgb(0 0 0 / 20%);
}

.news-section .box .image {
    position: relative;
    overflow: hidden;
}

.news-section .box .image::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgb(255 255 255 / 20%);
    ;
    width: 0;
    height: 0;
    opacity: 0;
    z-index: 1;
}

.news-section .box:hover .image::before {
    animation: flashing 0.7s;
}

@keyframes flashing {

    0%,
    40% {
        opacity: 1;
    }

    100% {
        opacity: 0;
        width: 200%;
        height: 200%;
    }
}

.news-section .box img {
    max-width: 100%;
    transition: var(--main-transition);
}

.news-section .box:hover img {
    transform: rotate(5deg) scale(1.1);
}

.news-section .box .content {
    padding: 20px;
}

.news-section .box .content h3 {
    margin: 0;
}

.news-section .box .content p {
    margin: 10px 0 0;
    line-height: 1.5;
    color: #777;
}

.news-section .box .info {
    padding: 20px;
    border-top: 1px solid #E6E6E7;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.news-section .box .info a {
    color: var(--main-color);
    font-weight: bold;
    font-size: 14px;
}

.news-section .box .info .date {
    display: flex;
    align-items: center;
}

.news-section .box .info .date p {
    margin: 0 5px;
    font-size: 14px;
    color: #777;
}

.news-section .box .info .date svg {
    color: #777;
}

/* sections */
.sections .owl-item {
    padding: 20px;
}

.sections .my-card {
    /* position: relative;   */
    width: 250px;
    height: 250px;
    perspective: 1000px;
}

.sections .my-card .card-inner {
    /* position: absolute; */
    width: 100%;
    height: 100%;
    transition: transform 0.8s;
    transform-style: preserve-3d;

}

.sections .my-card:hover .card-inner {
    transform: rotateY(-180deg)
}

.sections .my-card .card-inner .card-front,
.sections .my-card .card-inner .card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
}

.sections .my-card .card-inner .card-front {
    border-radius: 6px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sections .my-card .card-inner .card-front.first {
    background-image: url('../images/course/sm1.jpg');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
}

.sections .my-card .card-inner .card-front.second {
    background-image: url('../images/course/sm2.jpg');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
}

.sections .my-card .card-inner .card-front.third {
    background-image: url('../images/course/sm3.jpg');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
}

.sections .my-card .card-inner .card-front.forth {
    background-image: url('../images/course/sm4.jpg');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
}

.sections .my-card .card-inner .card-front.five {
    background-image: url('../images/course/sm5.jpg');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
}

.sections .my-card .card-inner .card-front.six {
    background-image: url('../images/course/sm6.jpg');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
}

.sections .my-card .card-inner .card-front h1 {
    color: white;
    font-size: 60px;
    font-weight: bold;
    position: relative;
    z-index: 1;
}

.sections .my-card .card-inner .card-front::before {
    position: absolute;
    content: '';
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(28, 26, 26, 0.64);
}

.sections .my-card .card-inner .card-back {
    background-color: grey;
    transform: rotateY(180deg);
    border-radius: 6px;
    position: relative;
    padding: 10px;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sections .my-card .card-inner .card-back p {
    text-align: center;
    color: white;
}

/* searchers sections */
.searches .search-box {
    position: relative;
    background-repeat: no-repeat;
    background-size: cover;
    /* width: 100%; */
    height: 400px;
    color: white;
    text-align: center;
    /* margin: 0 20px; */
    display: flex;
    justify-content: end;
    flex-direction: column;

}

.searches .search-box.first {
    background-image: url('../images/main-images/searches/DSC00195.JPG');

}

.searches .search-box.second {
    background-image: url('../images/main-images/slider/slider_1.JPG');

}

.searches .search-box.third {
    background-image: url('../images/main-images/slider/slider_2.JPG');

}

.searches .search-box::before {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, #000000a4 60%, #636363);
}

.searches .search-box h2,
.searches .search-box p {
    position: relative;
}

/* teachers section */
.teachers .box {
    position: relative;
}

.teachers .box::before,
.teachers .box::after {
    content: "";
    background-color: #f3f3f3;
    position: absolute;
    right: 0;
    top: 0;
    height: 100%;
    border-radius: 10px;
    transition: var(--main-transition);
}

.teachers .box::before {
    width: calc(100% - 0px);
    z-index: -2;
}

@media(max-width:767px) {
    .teachers .box::before {
        width: 100%;
    }
}

.teachers .box::after {
    z-index: -1;
    background-color: #e4e4e4;
    width: 0;
}

.teachers .box:hover::after {
    width: calc(100% - 0px);
}

.teachers .box .data {
    display: flex;
    align-items: center;
    padding-top: 60px;
}

.teachers .box .data img {
    width: 234px;
    height: 207px;
    /* max-width: calc(100% - 30px); */
    border-radius: 10px;
    transition: var(--main-transition);
}

.teachers .box:hover .data img {
    filter: grayscale(100%);
}

.teachers .box .data .social {
    width: 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.teachers .box .data .social a {
    width: 60px;
    height: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.teachers .box .data .social a:hover i {
    color: var(--main-color);
}

.teachers .box .data .social i {
    transition: var(--main-transition);
    color: #777;
}

.teachers .box .info {
    padding-right: 70px;
    padding-bottom: 5px;
    padding-top: 24px;
}

.teachers .box .info h3 {
    margin-bottom: 0;
    color: var(--main-color);
    font-size: 22px;
    transition: var(--main-transition);
}

.teachers .box .info p {
    margin-top: 10px;
    margin-bottom: 25px;
}

.teachers .box:hover .info h3 {
    color: #777;
}

.teachers .owl-carousel .owl-dots.disabled,
.teachers .owl-carousel .owl-nav.disabled {
    display: block;
}

.teachers .owl-carousel .owl-nav button.owl-next {
    font-size: 70px;
    position: absolute;
    left: -45px;
    top: 38%;
}

.teachers .owl-carousel .owl-nav button.owl-prev {
    font-size: 70px;
    position: absolute;
    right: -45px;
    top: 38%;
}

@media(max-width:767px) {

    .teachers .owl-carousel .owl-nav button.owl-prev,
    .teachers .owl-carousel .owl-nav button.owl-next {
        font-size: 30px;
        position: relative;
    }
}

/* counter section */
.counter-sections .box {
    display: flex;
    flex-direction: column;
    font-size: 50px;
    color: var(--main-color);
    align-items: center;
    padding: 20px 0px;
    border-radius: 6px;
    background-color: #f9f6f6;
    transition: var(--main-transition);
}

.counter-sections .box p {
    margin: 0;
    font-size: 30px;
    color: black;
}

.counter-sections .box:hover {
    box-shadow: 0px 0px 10px 0px #c7c7c7;
}

/* graduate */
.graduate .box {
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0px 0 5px 0px #0000006e;
    text-align: center;
    margin-bottom: 10px;
}

.graduate .box img {
    max-width: 100%;
    margin-bottom: 5px;

}

/* start footer */
.footer {
    background-color: #191919;
    padding: 70px 0 0;
}

.footer .container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    -webkit-gap: 40px;
    gap: 40px;
    align-items: center;
}

.footer .box h3 {
    color: white;
    font-size: 50px;
    margin: 0 0 20px;
}

.footer .box .social {
    display: flex;
    justify-content: center;
}

.footer .box .social li {
    margin-right: 10px;
}

.footer .box .social li a {
    background-color: #313131;
    color: #B9B9B9;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 50px;
    height: 50px;
    font-size: 20px;
    transition: var(--main-transition);
}

.footer .box .social .facebook:hover {
    background-color: #1877f2;
}

.footer .box .social .twitter:hover {
    background-color: #1da1f2;
}

.footer .box .social .youtube:hover {
    background-color: #ff0000;
}

.footer .box .text {
    line-height: 2;
    color: #B9B9B9;
}

.footer .box .links>li {
    padding: 15px 0;
    transition: var(--main-transition);
}

.footer .box .links>li:not(:last-child) {
    border-bottom: 1px solid #444;
}

.footer .box .links>li:hover {
    padding-right: 10px;
}

.footer .box .links>li:hover a {
    color: white;
}

.footer .box .links li>a {
    color: #B9B9B9;
    transition: var(--main-transition);
}

.footer .box .links .se-links {
    padding-top: 10px;
}

.footer .box .links .se-links li {
    padding: 5px 0;
    margin: 0 50px 0 0;
    transition: var(--main-transition);
}

.footer .box .links .se-links li a {
    color: var(--main-color);
    transition: var(--main-transition);
}

.footer .box .links .se-links li a:hover {
    color: white;
}

.footer .box .links .se-links li:not(:last-child) {
    border-bottom: 1px solid #444;
}

.footer .box .links .se-links li:hover {
    padding-right: 10px;
}

.footer .box .links li a::before {
    font-family: 'Font Awesome 5 Free';
    content: '\F101';
    font-weight: 900;
    margin-left: 10px;
    color: var(--main-color);
    transform: rotate(180deg);
    display: inline-block;
}

.footer .box .line {
    display: flex;
    align-items: center;
    color: #b9b9b9;
    margin-bottom: 30px;
}

.footer .box .line i {
    font-size: 25px;
    color: var(--main-color);
    margin-right: 10px;
}

.footer .box .line .info {
    line-height: 1.7;
    flex: 1;
}

.footer .box .line .info span {
    display: block;
}

.footer .footer-gallery img {
    width: 78px;
    border: 3px solid white;
    margin: 2px;
}

.footer .copyright {
    padding: 25px 0;
    text-align: center;
    color: white;
    margin: 50px 0 0;
    border-top: 1px solid #444;
}

/* end footer */