@font-face {
    font-family: "Bahij";
    src: local("Bahij"), url("../font/Bahij_TheSansArabic-Plain.ttf");
    font-weight: normal;
    font-style: normal;
}

/* Set default font family to sans-serif */
body {
    font-family: sans-serif;
}

:root {
    --main-color: #459c77;
    --main-black-color: #1F1A17;
    --dark-green-color: #005439;
    --main-red-color: #DA251C;
    --main-white-color: #ffffff;
    --main-gray-color: #EFEFEF;
    --light-gray-color: #F6F6F6;
    --dark-gray-color: #A6A6A6;
}

/* Remove default margin */
* {
    font-family: Bahij;
    margin: 0;
    padding: 0;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    overflow: visible;
}

/* Correct `block` display not defined for any HTML5 element in IE 8/9 */
article,
aside,
details,
figcaption,
figure,
footer,
header,
hgroup,
main,
menu,
nav,
section,
summary {
    display: block;
}

/* Remove excess height in iOS 5 devices */
html,
body {
    font-size: 16px;
    height: 100%;
}

/* background */
.bg {
    background-image: url('../images/big_bg.jpg');
    width: 100%;
    min-height: 100vh;
    background-size: cover;
    position: relative;
}

/* container */
.my-container {
    position: relative;
    z-index: 3;
    width: 85%;
    max-width: 1600px;
    margin: auto;
    display: grid;
    justify-content: space-between;
    align-items: flex-start;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    padding-top: 5vh;
    margin-bottom: 30px;
}

/* content */
.content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.title {
    color: var(--main-color);
    font-size: 3rem;
    font-weight: 700;
    word-spacing: 0.25rem;
}

.description {
    font-size: 1.2rem;
    font-weight: 400;
    line-height: 2.2rem;
    margin-top: 1rem;
    text-align: justify;
}

.links-group {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(4, auto);
    grid-template-rows: auto;
    gap: 10px;
    margin-top: 1rem;
}

.links-group .link_btn {
    display: inline-block;
    padding: 0.2rem 1.5rem;
    text-decoration: none;
    text-align: center;
    font-size: 1rem;
    border-radius: 8px;
    color: #FFF;
    background-image: linear-gradient(135deg, #34ad73, #1b6943);
    box-shadow: 0px 0px 6px rgba(0, 0, 0, 0.25);
    transition: 0.3s padding ease-in-out;
    -webkit-border-radius: 8px;
    -moz-border-radius: 8px;
    -ms-border-radius: 8px;
    -o-border-radius: 8px;
}

.links-group .link_btn:hover {
    padding: 0.2rem 2.5rem;
}

.dalel-btn {
    width: 100%;
    margin-top: 1.5rem;
}

.dalel-btn a {
    display: inline-block;
    width: 100%;
    margin-top: 1rem;
    padding: 0.2rem 2rem;
    text-decoration: none;
    text-align: center;
    font-size: 1.5rem;
    border-radius: 8px;
    color: #FFF;
    background-image: linear-gradient(135deg, #ccb593, #bd996e);
    box-shadow: 0px 0px 6px rgba(0, 0, 0, 0.25);
    transition: 0.3s padding ease-in-out;
}

.dalel-btn a:hover {
    padding: 0.2rem 2.5rem;
}

/* logo */
.logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.logo .main-logo {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
}

.logo .main-logo .logo-container {
    position: relative;
}

.logo .main-logo .logo-container img {
    width: 270px;
    height: 270px;
}

.logo .contributors {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.logo .contributors img {
    width: 60px;
    height: 60px;
}

.safwa_events {
    width: 100%;
    display: flex;
    justify-content: center;
}

.safwa_events .comming-soon {
    width: 100%;
    max-width: 1200px;
    padding: 20px 120px;
    display: flex;
    justify-content: space-evenly;
}

.safwa_events .comming-soon>div {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    border: 3px solid var(--light-gray-color);
    padding: 20px;
    border-radius: 8px;
    -webkit-border-radius: 8px;
    -moz-border-radius: 8px;
    -ms-border-radius: 8px;
    -o-border-radius: 8px;
}

.safwa_events .comming-soon div.active {
    border: 3px solid var(--main-color);
    padding: 20px;
    border-radius: 8px;
    -webkit-border-radius: 8px;
    -moz-border-radius: 8px;
    -ms-border-radius: 8px;
    -o-border-radius: 8px;
}

.safwa_events .comming-soon div.safwa-registration::before {
    content: "المرحلة الأولى";
    position: absolute;
    top: -20px;
    right: -20px;
    background-color: #ccb593;
    color: var(--main-white-color);
    padding: 5px;
    border-radius: 24px;
    -webkit-border-radius: 24px;
    -moz-border-radius: 24px;
    -ms-border-radius: 24px;
    -o-border-radius: 24px;
}

.safwa_events .comming-soon div.tests::before {
    content: "المرحلة الثانية";
    position: absolute;
    top: -20px;
    right: -20px;
    background-color: #ccb593;
    color: var(--main-white-color);
    padding: 5px;
    border-radius: 24px;
    -webkit-border-radius: 24px;
    -moz-border-radius: 24px;
    -ms-border-radius: 24px;
    -o-border-radius: 24px;
}

.safwa_events .comming-soon div.narrative::before {
    content: "المرحلة الثالثة";
    position: absolute;
    top: -20px;
    right: -20px;
    background-color: #ccb593;
    color: var(--main-white-color);
    padding: 5px;
    border-radius: 24px;
    -webkit-border-radius: 24px;
    -moz-border-radius: 24px;
    -ms-border-radius: 24px;
    -o-border-radius: 24px;
}

.safwa_events .comming-soon>div h4 {
    color: var(--main-red-color);
    margin-bottom: 10px;
    background: var(--main-gray-color);
    padding: 10px;
    border-radius: 24px;
    -webkit-border-radius: 24px;
    -moz-border-radius: 24px;
    -ms-border-radius: 24px;
    -o-border-radius: 24px;
}

.safwa_events .comming-soon div.active h4 {
    color: var(--main-white-color);
    background: var(--main-color);
}

.safwa_events .comming-soon>div p {
    color: var(--main-color);
    margin-bottom: 10px;
}

.safwa_events .comming-soon>div .demo {
    width: 30%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.safwa_events .comming-soon>div .demo>div {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.safwa_events .comming-soon>div .demo>div h5 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 10px;
}

.safwa_events .comming-soon>div .demo>div .counter {
    width: 60px;
    height: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-inline-end: 5px;
    font-size: 36px;
    font-weight: bold;
    background-color: var(--main-gray-color);
    color: var(--main-black-color);
    border-radius: 8px;
    -webkit-border-radius: 8px;
    -moz-border-radius: 8px;
    -ms-border-radius: 8px;
    -o-border-radius: 8px;
}

.safwa_events .comming-soon div.active .demo>div .counter {
    background-color: var(--main-color);
    color: var(--main-white-color);
}


footer {
    width: 100%;
    height: 5vh;
    padding: 0 10px;
    text-align: center;
    position: absolute;
    bottom: 0px;
}

/* responsive media */

@media screen and (max-width:1200px) {
    .my-container {
        width: 90%;
    }
}

@media screen and (max-width:1100px) {
    .my-container {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: space-evenly;
        /* gap: 1.5rem; */
    }

    .contributors {
        justify-content: center;
    }
}


@media screen and (max-width:920px) {

    .my-container {
        width: calc(100% - 2rem);
        padding: 2rem;
    }

    .logo img {
        max-height: 350px;
    }

    .title {
        font-size: 2rem;
    }

    .description {
        font-size: 1rem;
    }

    .contributors {
        flex-wrap: wrap;
    }

    .links-group {
        display: flex;
        flex-direction: column;
    }

    .links-group .link_btn {
        display: block;
    }

    .dalel-btn a {
        font-size: 1.5rem;
    }

    footer {
        width: 100%;
        height: 5vh;
        padding: 0 10px;
        text-align: center;
        position: relative;
    }
}

@media only screen and (max-width: 820px) {
    .safwa_events .comming-soon {
        padding: 30px;
    }
}

@media only screen and (max-width: 600px) {
    .safwa_events .comming-soon {
        flex-direction: column;
    }

    .safwa_events .comming-soon>div {
        margin-bottom: 20px;
    }
}