@font-face {
    font-family: ar-font;
    src: url(../fonts/Cairo-Regular.ttf);
}

html, body {
    position: absolute;
    margin: 0;
    width: 100%;
    padding: 0;
    overflow-x: hidden;
}

body {
    direction: rtl;
    font-family: ar-font;
}

header {
    background-image: url(../images/bg.jpg);
    background-position: center center;
    background-size: cover;
    min-height: 80vh;
}

header .overlay {
    background-color: rgba(5, 117, 230, 0.9);
    color: #ffffff;
    transform: translateY(20%);
    padding: 3% 10%;
}

header .overlay img {
    border: 5px solid #73ade7;
    margin-bottom: 20px;
}

header .overlay h1 {
    font-size: 36px;
    color: #f9f9f9;
    margin-bottom: 20px;
    line-height: 50px;
}

header .overlay h1 span {
    font-size: 24px;
}

header .overlay ul {
    margin-bottom: 40px;
    padding: 0;
}

header .overlay ul li {
    margin-right: 10px;
}

header .overlay ul li a {
    font-size: 24px;
    color: #021b09;
}

header .overlay h2 {
    font-size: 15px;
    margin-bottom: 15px;
    line-height: 30px;
    font-weight: bold;
}

header .overlay p {
    font-size: 15px;
    color: #89c4ff;
    line-height: 30px;
    margin-bottom: 40px;
}

header .overlay a {
    font-size: 18px;
    margin-bottom: 40px;
    color: #ffffff;
    line-height: 32px;
}

nav.navbar ul.navbar-nav li.nav-item a.nav-link {
    padding: 0 1.5rem;
    color: #ffffff;
    font-size: 16px;
    line-height: 60px;
    transition: all 1s ease;
}

nav.navbar ul.navbar-nav li.nav-item a.nav-link:hover, nav.navbar ul.navbar-nav li.nav-item a.nav-link.active {
    background-color: #ffffff;
    color: #0575e6;
}

nav.navbar.noTransparrent ul.navbar-nav li.nav-item a.nav-link {
    color: #0575e6;
}

nav.navbar.noTransparrent ul.navbar-nav li.nav-item a.nav-link:hover, nav.navbar.noTransparrent ul.navbar-nav li.nav-item a.nav-link.active {
    background-color: #0575e6;
    color: #ffffff;
}

nav.navbar.noTransparrent {
    background-color: #ffffff;
    border-bottom: 1px solid #eee;
}

nav.navbar {
    text-align: right;
}

nav.navbar.noTransparrent button.navbar-toggler {
    margin: 30px auto;
}

nav.navbar.noTransparrent button.navbar-toggler span {
    color: #0575e6;
}

section.licence {
    padding: 220px 0 80px;
    background-color: #f6fbff;
}

section.licence .title {
    padding-bottom: 43px;
    position: relative;
}

section.licence .title h2 {
    font-size: 30px;
    color: #196dd1;
    line-height: 50px;
}

section.licence .title::before {
    content: "";
    height: 2px;
    width: 100px;
    background-color: #196dd1;
    position: absolute;
    right: 50%;
    bottom: 0px;
    transform: translateX(50%);
}

section.licence .title h2 i {
    display: block;
}

section.licence ul.timeline li .time-box {
    max-width: 48%;
    padding: 20px 25px;
    background-color: #ffffff;
    border: 2px solid #f4f3f3;
    position: relative;
}

section.licence ul.timeline li .time-box h4 {
    font-size: 15px;
    color: #555555;
    line-height: 30px;
}

section.licence ul.timeline li .time-box h4 span {
    background-color: #0575e6;
    color: #fff;
    margin-right: 15px;
    margin-left: 25px;
    padding: 0 5px;
    float: right;
}

section.licence ul.timeline li .time-box p {
    font-size: 14px;
    color: #b1b1b1;
    line-height: 22px;
    text-align: left;
}

section.licence ul.timeline li .time-box::after {
    content: "";
    position: absolute;
    top: 7%;
    left: -10px;
    width: 20px;
    height: 20px;
    background-color: #ffffff;
    transform: rotate(45deg);
    border-left: 2px solid #f4f3f3;
    border-bottom: 2px solid #f4f3f3;
}

section.licence ul.timeline {
    padding-right: 0;
    padding-top: 45px;
    position: relative;
}

section.licence ul.timeline::before {
    content: "";
    width: 2px;
    height: 75%;
    position: absolute;
    top: 0;
    bottom: 0;
    right: 50%;
    margin-right: -1px;
    background: #196dd1;
}

section.licence ul.timeline li {
    position: relative;
}

section.licence ul.timeline li::before {
    content: "";
    width: 10px;
    height: 10px;
    position: absolute;
    border-radius: 50%;
    top: 9%;
    right: 50%;
    margin-right: -5px;
    background-color: #196dd1;
}

section.licence ul.timeline li:nth-of-type(even) {
    direction: ltr;
    text-align: left;
}

section.licence ul.timeline li:nth-of-type(even) .time-box h4 span {
    margin-left: 0;
    float: left;
    margin-right: 25px;
}

section.licence ul.timeline li:nth-of-type(even) .time-box::after {
    left: auto;
    right: -10px;
    border: 0;
    border-top: 2px solid #f4f3f3;
    border-right: 2px solid #f4f3f3;
}

section.licence ul.timeline li:not(:first-of-type) {
    margin-top: -50px;
}

section.statistics {
    background-image: url(../images/bg2.jpg);
    background-position: center center;
    background-size: cover;
    background-attachment: fixed;
}

section.statistics .overlay {
    background-color: rgba(5, 117, 230, 0.7);
    padding: 150px 0;
}

section.statistics .overlay .stat p {
    font-size: 24px;
    line-height: 30px;
    color: #fff;
    margin-top: 30px;
    font-family: 'Open Sans', sans-serif;
}

section.statistics .overlay .stat .circle canvas {
    background-color: #eef6ff;
    border-radius: 50%;
    padding: 8px;
}

section.statistics .overlay .stat .circle {
    position: relative;
}

section.statistics .overlay .stat .circle span {
    font-size: 24px;
    font-weight: bold;
    color: #0575e6;
    position: absolute;
    top: 50%;
    right: 50%;
    transform: translate(50%, -50%);
}

section.gallery {
    padding-top: 75px;
    padding-bottom: 90px;
}

section.gallery .title {
    margin-bottom: 35px;
}

section.gallery .title h2 {
    font-size: 30px;
    color: #0575e6;
    line-height: 50px;
}

section.gallery .title h2 i {
    display: block;
}

section.gallery .work-gallery input {
    display: none;
}

section.gallery .work-gallery label {
    font-size: 18px;
    color: #8f9899;
    line-height: 35px;
    cursor: pointer;
    margin: 0 7px 40px;
    padding: 10px 30px;
    background-color: #ffffff;
    border: 2px solid #e4eeee;
    border-radius: 2px;
    transition: all 1s ease;
}

section.gallery .work-gallery label:hover {
    background-color: #0575e6;
    color: #ffffff;
    border: 2px solid #0575e6;
}

section.gallery .work-gallery input.item-type-1:checked~label.label-type-1, section.gallery .work-gallery input.item-type-2:checked~label.label-type-2, section.gallery .work-gallery input.item-type-3:checked~label.label-type-3, section.gallery .work-gallery input.item-type-all:checked~label.label-type-all {
    background-color: #0575e6;
    color: #ffffff;
    border: 2px solid #0575e6;
}

section.gallery .work-gallery input.item-type-1:checked~.items .item-type-1, section.gallery .work-gallery input.item-type-2:checked~.items .item-type-2, section.gallery .work-gallery input.item-type-3:checked~.items .item-type-3 {
    transform: scale(1.08);
    opacity: 1;
}

section.gallery .work-gallery input.item-type-1:checked~.items .item:not(.item-type-1), section.gallery .work-gallery input.item-type-2:checked~.items>.item:not(.item-type-2), section.gallery .work-gallery input.item-type-3:checked~.items>.item:not(.item-type-3) {
    transform: scale(0.8);
    opacity: 0.5;
}

section.gallery .work-gallery .items .item {
    transition: all 1s ease;
    margin-bottom: 25px;
}

section.contacts {
    background-image: url(../images/bg3.jpg);
    background-position: center center;
    background-size: cover;
}

section.contacts .overlay {
    background-color: rgba(0, 0, 0, 0.6);
    padding: 100px;
    padding-bottom: 20px;
}

section.contacts .overlay .title h3 {
    margin-bottom: 25px;
    font-size: 20px;
    line-height: 25px;
    color: #ffffff;
}

section.contacts .overlay .contact-info {
    padding: 25px;
    background-color: #ffffff;
}

section.contacts .overlay .contact-info h3 {
    padding: 25px;
    color: #0576e6;
    line-height: 25px;
    margin-bottom: 10px;
    white-space: nowrap;
}

section.contacts .overlay .copyright p {
    white-space: nowrap;
    font-size: 20px;
    color: #ececec;
    line-height: 70px;
    margin-top: 5px;
    margin-bottom: -15px;
}

@media(max-width:767px) {
    section.licence ul.timeline li .time-box {
        max-width: 100% !important;
    }
    section.licence ul.timeline li:not(:first-of-type) {
        margin-top: 20px;
    }
    section.licence ul.timeline li .time-box::after {
        display: none;
    }
    section.licence ul.timeline::before {
        height: 90%;
    }
    nav.navbar {
        min-height: 80px;
    }
    nav.navbar ul.navbar-nav li.nav-item a.nav-link {
        line-height: 50px;
    }
    nav.navbar .container {
        width: 100%;
        position: relative;
        min-height: 30px;
    }
    nav.navbar button.navbar-toggler {
        position: absolute;
        left: 0;
        top: 0;
        margin: 0;
    }
    nav.navbar button.navbar-toggler span {
        display: flex;
        align-items: center;
        justify-content: center;
        color: #0575e6;
    }
    nav.navbar.noTransparrent button.navbar-toggler {
        margin: 0;
    }
    nav.navbar ul {
        padding-right: 0;
    }
}

@media (min-width:767px) and (max-width:991px) {
    section.licence ul.timeline li .time-box h4 {
        align-items: center;
        justify-content: center;
        text-align: center;
        margin-right: 50px;
        margin-left: 4px;
    }
    section.licence ul.timeline li:nth-of-type(even) .time-box h4 span {
        margin-left: 50px;
        white-space: nowrap;
        margin-right: 0px;
    }
}

@media(max-width:991px) {
    nav.navbar ul.navbar-nav li.nav-item a.nav-link {
        padding: 0px 0.75rem;
        transition: all 0.5s ease;
    }
}



@media(max-width:575px) {
    section.contacts .overlay {
        padding: 30px;
    }
    section.contacts .overlay .contact-info h3 {
        line-height: 15px;
        padding: 15px;
    }
    section.contacts .overlay .title h3 {
        font-size: 14px;
    }
    section.licence ul.timeline li .time-box h4 {
        align-items: center;
        font-size: 13px;
        justify-content: center;
        text-align: center;
        margin-right: 50px;
        display: grid;
        margin-left: 4px;
    }
    section.licence ul.timeline li:nth-of-type(even) .time-box h4 span {
        margin-left: 50px;
        margin-right: 0px;
    }
    section.licence ul.timeline li .time-box p {
        font-size: 12px;
    }
}