:root {


    --green1: #427f77;
    --green2: #094239;
    --green3: #002623;


    --main1: var(--green2);
    --main2: #eeeeee;
    --main3: #988561;

    --circle: 500px;
}

.navbar-toggler {
    border: 0
}
.alert-danger,
.alert-wrapper .alert-danger {
    display: none !important;
}
html,
body {
    font-family: 'itf Qomra Arabic', sans-serif !important;
}

body {
    direction: rtl;
    overflow-x: hidden;
    background: var(--main2);
}

html,
body,
.dialog-off-canvas-main-canvas,
#page-wrapper {
    height: 100%;
}

#page {
    min-height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 2;
}

#page:before {
    /* content: "";
    position: absolute;
    width: var(--circle);
    height: var(--circle);
    border: 24px solid #2326371c;
    border-radius: 800px;
    top: calc((var(--circle) / 2) * -1);
    left: calc((var(--circle) / 2) * -1); */
}

i,
a,
a:hover,
a:focus {
    text-decoration: none;
    transition: all 0.25s;
    color: var(--green1);
}

.newBg {
    background: url(../imgs/bg1.svg);
    height: 60vh;
    /* width: 50vw; */
    position: fixed;
    inset: 0;
}

.newBg::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(143deg, rgba(238, 238, 238, 0.7) 0%, rgba(238, 238, 238, 1) 40%);
    /* background-size: 80%; */
}

ul,
li,
.item-list ul,
.item-list ul li {
    border: 0
}

img {
    max-width: 100%;
    height: auto;
}

.site-footer {
    margin-block: auto 0;
    padding: 0px 0;
    background: transparent;
    color: #fff;
    font-family: inherit;
    font-size: 12px;
    color: #ffffff9e;
}

.site-footer svg path {
    fill: var(--main1)
}

.the-footer {
    background: var(--main1);
    padding-block: 10px;
}

.nav-item a {
    font-weight: 500
}

.nav-item.active a {
    color: var(--main1) !important;
}

.navbar-brand {
    width: 110px;
}

.navbar-brand img {
    width: 100%;
}

.navbar-brand {
    display: flex;
    align-items: center;
}

.navbar-brand>span {
    display: flex;
    flex-direction: column;
}

.navbar-brand img {
    width: 100%;
    margin-inline-end: 10px;
}

.navbar-brand>span>span:first-child {
    font-size: 82%;
    color: #111;
}

.navbar-brand>span>span:last-child {
    font-size: 82%;
    color: #232637;
}

.classes .row {
    display: flex;
    justify-content: flex-start;
}

.classes .row>div {
    width: calc((100% / 3) - 0px);
    padding-right: 12px;
    padding-left: 12px;
    margin-bottom: 20px;
}

.per-class {
    display: flex;
    border: 1px solid var(--main1);
    justify-content: flex-start;
    color: #333;
    font-weight: 500;
    border-radius: 5px;
    height: 100%;
}

.per-class:hover {
    color: #333;
    background: #ffffff94;
}

.per-class .icon {
    width: 66px;
    /* height: 60px; */
    background: url(../imgs/books.svg);
    background-size: 78%;
    background-repeat: no-repeat;
    background-position: 50%;
    opacity: 0.7;
    display: flex;
}

.per-class .title {
    display: flex;
    flex-grow: 1;
    padding: 10px;
    flex-direction: column;
    font-size: 15px;
    justify-content: center;
}

.per-class .title>span:first-child {
    font-size: 20px;
    margin-bottom: 2px;
    color: var(--main3);
}

#page-wrapper {
    position: relative;
    z-index: 1;
    /* overflow-x: hidden; */
}

.syria {
    width: 30%;
    position: absolute;
    left: 0
}

.syria path {
    fill: #000;
    opacity: 0.1
}

.top-svg {
    position: absolute;
    inset: 0;
    bottom: auto;
    transform: scale(-1);
    opacity: 0.16;
    width: 100%;
    z-index: 2;
}

.cr {
    text-align: center;
}


.type-h {
    text-align: center;
    font-size: 26px;
    margin-top: 20px;
    color: var(--main3);
}

/*views-exposed-form*/
.views-exposed-form .d-flex {
    width: 100%;
}

.js-form-item-type label,
.js-form-item-field-type-target-id label {
    display: none !important
}

.views-exposed-form .js-form-item {
    width: 100%;
    background: transparent;
}

.views-exposed-form .bef-links {
    border-radius: 4px;
    background: transparent;
    border: 0;
    margin-bottom: 15px;
}

.views-exposed-form .bef-links ul {
    padding: 0;
    display: flex;
    font-size: 22px;
    justify-content: center;
}

.views-exposed-form .bef-links ul li {
    list-style-type: none;
    margin-inline: 15px;
    font-size: 20px;
}

.nav-item a,
.views-exposed-form .bef-links ul li a {
    position: relative
}

.nav-item a:before,
.views-exposed-form .bef-links ul li a:before {
    position: absolute;
    content: "";
    height: 2px;
    right: 0;
    bottom: -10px;
    width: 100%;
    background: var(--main3);
    transition: all 0.25s cubic-bezier(0.42, 0, 0.29, 0.99)
}

.views-exposed-form .bef-links ul li a:hover:before {
    width: 0%;
}

.nav-item:not(:last-child) {
    margin-inline-end: 15px
}

.nav-item a {
    padding-inline: 0 !important
}

.nav-item a:before {
    width: 0;
    bottom: -1px !important;
}

.nav-item a.is-active {
    color: var(--main1)
}

.nav-item a:hover:before,
.nav-item a.is-active:before {
    width: 100%;
}

.bef-link--selected {
    color: var(--main1);
}

.bef-link--selected:before {
    height: 2px !IMPORTANT;
    border-bottom: 2px dashed var(--main1);
    background: #ffffff00 !important;
}

.views-exposed-form .bef-links ul li:first-child {
    /* display: none; */
}

.per-link svg {
    width: 30px;
    height: auto;
}

.field--name-field-book-title {
    margin-bottom: 10px;
    font-size: 20px;
    color: var(--green2);
}

.per-link {
    display: flex;
    margin-block: 6px;
    align-items: center;
    font-size: 15px;
}

.per-link span {
    position: relative;
    display: inline-flex;
}

.per-link span:before {
    content: "";
    position: absolute;
    height: 2px;
    right: 0;
    bottom: -3px;
    background: var(--main1);
    width: 10px;
    transition: all 0.3s cubic-bezier(0.42, 0, 0.16, 1)
}

.per-link:hover span:before {
    width: 100%
}

.view-get-general-type .views-field-field-type>div,
.view-get-profession .views-field-field-profession>div,
h1.title {
    font-size: 22px;
    margin-top: 40px;
    margin-inline-start: 12px;
    position: relative;
    padding-inline-start: 40px
}

.view-get-general-type .views-field-field-type>div:before,
.view-get-profession .views-field-field-profession>div:before,
h1.title:before {
    content: "";
    height: 2px;
    width: 30px;
    background: var(--main1);
    position: absolute;
    top: 15px;
    right: 0px
}

.view-get-general-type .views-field-field-type>div,
.view-get-profession .views-field-field-profession>div {
    margin-bottom: -35px;
    font-weight: 500;
    color: var(--main3);
}

.view-get-profession .views-field-field-profession>div:before {
    background: var(--main3);
}

.per-link svg {
    margin-inline-end: 8px;
    /* border-radius: 200px; */
    /* padding: 5px; */
}

.field--name-field-book {
    display: flex;
    flex-wrap: wrap;
}

.field--name-field-book>div {
    width: calc(100% / 3);
}

.field--name-field-book>div>div {
    margin: 12px;
    padding: 10px 12px;
    border-radius: 4px;
    height: calc(100% - 24px);
    border: 1px solid var(--main1);
    font-weight: 500;
    position: relative;
    overflow: hidden;
}

.paragraph--type--book>svg {
    position: absolute;
    width: 20%;
    left: 0;
    bottom: 0;
    transition: all 0.2s cubic-bezier(0.42, 0, 0.18, 0.96);
}

.paragraph--type--book:hover>svg {
    width: 30%;
}

.corner path {
    fill: var(--main1);
    opacity: 0.1;
}

.corner path:first-child {
    opacity: 0.2;
}

.home-views {
    min-height: 200px;
    display: flex;
    width: 100%;
    justify-content: center;
    align-items: center;
    padding-top: 50px;
}

.home-views .views-row {
    display: flex;
    width: 100% !important;
    justify-content: center;
    margin-block: auto !important;
}

.home-views .views-row a {
    min-width: 280px;
    margin-inline: 8px;
}

.home-views .views-row a span {
    display: flex;
    align-items: center;
    justify-content: center;
}

.classes.view-display-id-page_2 .views-exposed-form>div {
    /* background: #ffffff85; */
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
    padding-block: 20px 10px;
}

.classes.view-display-id-page_2 .views-exposed-form>div>div {
    width: calc((100% / 3) - 80px);
    padding-inline: 10px;
}

.classes.view-display-id-page_2 .views-exposed-form>div>div:last-child {
    width: 180px
}

.classes.view-display-id-page_2 .views-exposed-form>div>div label {
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 6px;
}

.classes.view-display-id-page_2 .views-exposed-form>div>div button,
.classes.view-display-id-page_2 .views-exposed-form>div>div select {
    border: 2px dashed var(--main1);
    justify-content: flex-start;
    color: #333;
    height: 56px;
    font-weight: 500;
    border-radius: 5px;
    background-color: transparent;
    width: 100%;
    transition: all 0.15s linear;
}

.classes.view-display-id-page_2 .views-exposed-form>div>div select {
    font-size: 18px;
    color: var(--main3);
}

.classes.view-display-id-page_2 .views-exposed-form>div>div button {
    height: 56px;
    font-size: 18px;
    color: var(--main3);
}

.classes.view-display-id-page_2 .views-exposed-form>div>div select:hover,
.classes.view-display-id-page_2 .views-exposed-form>div>div button:hover {
    background-color: #fff
}

.form-select:focus {
    box-shadow: none;
}

@media only screen and (min-width: 992px) {
    .offcanvas-body {
        display: flex;
        justify-content: flex-end
    }

}

@media only screen and (max-width: 991px) {
    :root {
        --circle: 350px;
    }

    .offcanvas {
        background: var(--main2);
        position: fixed;
    }

    .offcanvas:before {
        content: "";
        position: absolute;
        width: var(--circle);
        height: var(--circle);
        border: 24px solid #2326371c;
        border-radius: 800px;
        bottom: calc((var(--circle) / 2) * -1);
        right: calc((var(--circle) / 2) * -1);
    }

    .offcanvas:after {
        content: "";
        position: absolute;
        width: var(--circle);
        height: var(--circle);
        border: 24px solid #2326371c;
        border-radius: 800px;
        top: calc((var(--circle) / 2) * -1);
        left: calc((var(--circle) / 2) * -1);
    }

    #page:before {
        border: 22px solid #2326371c;
    }


    .classes .row>div,
    .field--name-field-book>div {
        width: calc(100% / 2);
    }

    h1.title {
        margin-top: 25px
    }

    .classes.view-display-id-page_2 .views-exposed-form>div>div {
        width: calc((100% / 2) - 70px);
    }

    .classes.view-display-id-page_2 .views-exposed-form>div>div:last-child {
        width: 140px
    }

    .classes.view-display-id-page_2 .views-exposed-form>div>div:first-child {
        padding-inline-start: 0
    }

    .classes.view-display-id-page_2 .views-exposed-form>div>div:nth-child(2) {}

    .classes.view-display-id-page_2 .views-exposed-form>div>div:last-child {
        padding-inline-end: 0
    }

}

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

    :root {
        --circle: 300px;
    }

    .type-h {
        font-size: 24px;
    }

    #page:before {
        border: 20px solid #2326371c;
    }

    .home-views {
        min-height: 10px;
        padding-top: 10px;
    }

    .home-views .views-row {
        flex-direction: column;
        min-height: 40Vh;
    }

    .home-views .views-row a {
        margin-block: 10px
    }

    .per-class .icon {
        width: 60px;
    }

    .views-exposed-form .bef-links {
        padding-inline: 0;
        margin-bottom: 0;
    }

    .views-exposed-form .bef-links ul {
        font-size: 18px;
        overflow-x: scroll;
        width: 100%;
        flex-wrap: nowrap;
        /* background: red; */
        min-height: 55px;
        justify-content: flex-start;
    }

    .views-exposed-form .bef-links ul li,
    .views-exposed-form .bef-links ul li a {
        width: auto;
        display: inline-block;
        width: max-content;
    }

    h1.title {
        font-size: 20px;
        text-align: center
    }

    .field--name-field-book-title,
    .per-class .title>span:first-child {
        font-size: 18px;
    }

    .field--name-field-book-title {
        text-align: center
    }

    .per-class .title,
    .per-link {
        font-size: 16px;
    }

    .classes .row>div,
    .field--name-field-book>div {
        width: calc(100% / 1);
    }

    .classes.view-display-id-page_2 .views-exposed-form>div>div {
        width: 100%;
    }

    .classes.view-display-id-page_2 .views-exposed-form>div>div:last-child {
        width: 100%
    }

    .classes.view-display-id-page_2 .views-exposed-form>div>div:first-child {
        padding-inline: 0
    }

    .classes.view-display-id-page_2 .views-exposed-form>div>div:nth-child(2) {
        padding-inline: 0
    }

    .classes.view-display-id-page_2 .views-exposed-form>div>div:last-child {
        padding-inline: 0
    }

    .navbar-brand {
        width: 60px;
    }

    .navbar-brand>span {
        font-size: 80%;
    }
}