@font-face {
    font-family: Dinot;
    src: url('../fonts/DINOT-Light.ttf');
}

@import url('https://fonts.googleapis.com/css2?family=Oxygen:wght@300&display=swap');

body,
html {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100vw;
    margin: 0;
    padding: 0;
    font-family: 'Dinot' !important;
    font-size: 16px;
    line-height: normal;
    background: var(--body);
}

body.toggled {
    overflow: hidden;
}

*:lang(ar) {
    font-family: Oxygen, sans-serif;
    direction: rtl;
}

/*  colors */
:root {
    --color-0: #ffffff !important;
    --color-1: #c8d5e9 !important;
    --color-2: #2b3137 !important;
    --color-3: #202e3b !important;
    --accent-color: #2a8fe0 !important;
    --bg-0: #165c94 !important;
    --bg-1: #fafafa !important;
    --bg-2: #edf4ff !important;
    --text-shadow: rgba(255, 255, 255, 0.738) !important;
}

.bg-logo {
    aspect-ratio: 1;
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.bg-logo::before {
    position: absolute;
    content: ' ';
    height: 100%;
    width: 100%;
    background-image: url(../images/Cover_usthb.jpg);
    background-position: center;
    background-size: cover;
    transform: rotate(45deg);
    z-index: -1;
}

.bg-0 {
    background-color: var(--bg-0) !important;
}

.bg-1 {
    background-color: var(--bg-1) !important;
}

.bg-2 {
    background-color: var(--bg-2) !important;
}


.headline-color {
    color: var(--color-0) !important;
}

.regular-color {
    color: var(--color-1) !important;
}

.headline-color-2 {
    color: var(--color-2) !important;
}

.regular-color-2 {
    color: var(--color-3) !important;
}

.accent-color {
    color: var(--accent-color);
}

* {
    text-decoration: none !important;
    animation-duration: 0.3s;
    max-width: 100vw;
    user-select: none;
}

/* icons */

.material-icons,
.material-symbols-outlined,
.material-symbols-rounded {
    font-family: 'Material Symbols Rounded';
    font-weight: normal;
    font-style: normal;
    font-size: 18px;
    /* Preferred icon size */
    display: inline-block;
    line-height: 1;
    text-transform: none;
    letter-spacing: normal;
    word-wrap: normal;
    white-space: nowrap;
    direction: ltr;
    /* Support for all WebKit browsers. */
    -webkit-font-smoothing: antialiased;
    /* Support for Safari and Chrome. */
    text-rendering: optimizeLegibility;

    /* Support for Firefox. */
    -moz-osx-font-smoothing: grayscale;

    /* Support for IE. */
    font-feature-settings: 'liga';
}

.material-icons.small,
.material-symbols-outlined.small,
.material-symbols-rounded.small {
    font-size: 12px;
}

.material-icons.big,
.material-symbols-outlined.big,
.material-symbols-rounded.big {
    font-size: 62px;
}

/* header  */
.mui--text-body2 {
    font-weight: 400;
    font-size: 13px;
    line-height: normal;
}

.usthb-links {
    position: fixed;
    width: 100%;
    height: 100vh;
    top: 0;
    bottom: 0;
    display: none;
    opacity: 0.8;
    z-index: 99999;
    animation-duration: 200ms !important;
    ;
}

.full-conainter {
    width: 100%;
    height: 90vh;
    overflow-y: hidden;
    padding-bottom: 40px;

}



/*                   drop down        */

.drop-down {
    position: relative;
    /*display: flex;
    justify-content: flex-start;
    align-items: flex-start;*/
}


.drop-down .drop-down-btn {
    display: flex !important;
    justify-content: flex-start !important;
    align-items: center;
    flex-direction: row-reverse !important;
    flex-wrap: nowrap;
    margin: 0.5em;
    cursor: pointer;
    position: relative;
}


.drop-down .drop-down-btn:before {
    position: absolute;
    content: ' ';
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    border-bottom: 1px solid var(--color-0);
    opacity: 0;
    margin: 0;
    transform: scaleX(0);
    transition: all 0.2s ease-in-out;

}

.drop-down:hover .drop-down-btn:before {
    opacity: 0.2;
    transform: scaleX(0.8);
}

.drop-down.toggled .drop-down-btn:before {
    opacity: 0.8;
    transform: scaleX(1);
}

.drop-down .drop-down-btn span {
    transform: rotate(-90deg);
}


.drop-down:hover .drop-down-btn span,
.drop-down.toggled .drop-down-btn span {
    transform: rotateX(0deg);
}

.drop-down .drop-down-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    display: none;
    padding: 1.2em;
    padding-top: 2.4em;
    animation: fadeIn ease-in;
    animation-duration: 200ms !important;
    z-index: 9;
    background-color: #fafafa;
}

.drop-down .drop-down-bigMenu {
    position: absolute;
    top: 100%;
    width: 100%;
    left: 0;
    display: none;
    z-index: 999;
    padding: 1.2em;
    padding-top: 2.4em;
}

.drop-down:hover .drop-down-menu,
.drop-down:hover.drop-down-bigMenu,
.drop-down.toggled .drop-down-menu,
.drop-down.toggled.drop-down-bigMenu {
    display: block;
}

/*  drop down wide  */

.drop-down-wide {
    position: relative;
}

.drop-down-wide-btn {
    position: relative;
    cursor: pointer;
    margin: 0;
}

.drop-down-wide-btn:before {
    position: absolute;
    content: ' ';
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background-color: var(--color-1);
    opacity: 0;
    border-radius: 0;
    transition: all 200ms ease-in-out;

}

.drop-down-wide.toggled .drop-down-wide-btn:before {
    opacity: 0.2;
    border-radius: 8px;

}

.drop-down-wide-menu {
    position: absolute;
    top: 68px;
    height: calc(100vh - 68px);
    width: 100%;
    left: 0;
    right: 0;
    display: none !important;
    z-index: 999;
    box-sizing: border-box;
    padding: 10%;
    padding-bottom: 5em;
    padding-top: 2.4em;
    animation: fadeIn ease-in;
    animation-duration: 200ms !important;
}

/*
.drop-down-wide:hover .drop-down-wide-menu,*/
.drop-down-wide.toggled .drop-down-wide-menu {
    display: block !important;
    transform: translateY(0);
}

#sideMap {
    padding-top: 2em;
    /* max-height: 80vh; */
    /* overflow: scroll; */
    transition: 0s;
}

#sideMap>div {
    padding-top: 1.2em;

}

#sideMap ol li {
    position: relative;
    display: flex;
    align-items: center;
    padding-left: 1.2em;
}

#sideMap ol li::before {
    position: absolute;
    content: ' ';
    height: 8px;
    width: 8px;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    border-radius: 100%;
    border: 2px solid var(--color-1);
    background-color: var(--bg-1);
    transition: all 0.2s ease;
    opacity: 1;
}

#sideMap ol li:hover::before {
    opacity: 1;
}

#sideMap ol li.current:before {
    background-color: var(--color-1);
    opacity: 1;
}

#sideMap ol li:after {
    background: var(--color-1);
    opacity: 0.2;
    content: " ";
    display: block;
    height: calc(100%);
    left: calc(0.5rem - 1px);
    position: absolute;
    top: calc(2.6rem + -10px);
    top: calc(1.2rem + 8px);
    width: 2px;
}

#sideMap ol li:last-child::after {
    background: var(--color-1);
    opacity: 0;
}

/* collapsed menu           */
.collabsible {
    max-height: 40px;
    overflow: hidden;
}

.collabsible.toggled {
    max-height: 400px;
}

.collapsed-menu {
    position: relative;
    overflow: hidden;
    max-height: 40px;
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    flex-direction: column;
}

.collapsed-menu.toggled {
    border: 1px solid rgba(255, 255, 255, 0.2);
    max-height: 450px;
}

.collapsed-menu span {
    transform: rotate(-90deg);
    transition: all 0.2s ease;
}

.collapsed-menu.toggled span {
    transform: rotate(0);
}

.collapsed-menu .collapsed-menu-btn {
    position: relative;
    top: 0;
    cursor: pointer;
    padding-left: 1.8em;

}

.collapsed-menu .collapsed-menu-list {
    z-index: 999;
    padding: 1.2em;
}

/*
.collapsed-menu:hover {
    border: 1px solid rgba(255, 255, 255, 0.2);
    max-height: 450px;
}
.collapsed-menu:hover span{
    transform: rotate(0);

}
.collapsed-menu:hover .collapsed-menu-list {
    display: block;
    height: auto;
    animation: fadeIn ease-in;
    animation-duration: 200ms !important;
}*/

/*      styled item              */
/*      styled item              */
.styled-link {
    display: flex !important;
    justify-content: flex-end !important;
    align-items: center;
    flex-direction: row-reverse !important;
    cursor: pointer;
    position: relative;
    gap: 0.2em;
    padding: 0 0.8em;
    text-decoration: none;
}

.styled-link:before {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background-color: var(--color-1);
    opacity: 0;
    content: " ";
    border-radius: 8px;
    transition: all 0.2s ease-in-out;
}

.styled-link:hover:before {
    opacity: 0.2;
    border-radius: 8px;
}

.styled-link:active:before {
    opacity: 0.4;
    border-radius: 2px;
}

.styled-link * {
    transition: 0.2s ease-in-out;
}

.styled-link span {
    padding: 2px;
    aspect-ratio: 1;
    font-size: 18px;
}

.styled-link p,
.styled-link span {
    vertical-align: middle;
}

.styled-link p {
    opacity: 0.8;
    position: relative;
    margin: 8px;
    font-size: 18px;
}

.styled-link p:before {
    position: absolute;
    content: " ";
    width: 0%;
    border-bottom: 1px solid var(--color-1);
    height: 100%;
    transition: all 0.2s ease-in-out;
    margin: 0 49%;
}

.styled-link:hover span {
    background-color: var(--color-0);
    color: var(--bg-0) !important;
    border-radius: 100%;
    opacity: 1;
}

.styled-link:hover p {
    opacity: 1;
}

.styled-link:hover p:before {
    width: 60%;
    margin: 0 20%;
}

#search-container {
    position: relative;
}

#search-container input {
    position: relative;
    min-width: 28px;
    border-radius: 8px;
    height: 28px;
    border: 1px solid var(--color-1);
    padding-left: 1.8em;
    overflow: hidden;
    background-color: var(--bg-2);
    color: var(--color-2);
}

#search-container input:before {
    position: absolute;
    content: 'search';
    font-family: 'Material Icons';
    width: 28px;
    aspect-ratio: 1;
    left: 0;
    top: 0;
    color: var(--color-1);
    background-color: green;
}

#search-container input:focus {
    width: 80%;
}

.mui-list--inline {
    display: flex;
}

/*            about section         */
#about {
    position: relative;
    /* margin: -3em 0; */
    padding: 2.2em 0;
    padding-top: 120px;
    gap: 1em;
    background-color: var(--bg-2) !important;
    background-image: url(../images/lac.jpg);
    background-position: center;
    background-size: cover;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    min-height: 700px;
}

#about::before {
    position: absolute;
    content: ' ';
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

#about::after {
    position: absolute;
    content: ' ';
    background: var(--bg-1);
    background: linear-gradient(0deg, var(--bg-1) 20%, #0000 50%, #0000 100%);
    background-blend-mode: screen;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

#about>div {
    gap: 2.8em;
}

#about h1 {
    font-size: 38px;
    font-weight: normal;
    color: #fafafa !important;
}

#about .half {
    max-width: 767px;
    padding: 0 2em;
    box-sizing: border-box;
}

.featured-tag {
    display: flex;
    height: 160px;
    aspect-ratio: 1;
    justify-content: center;
    align-items: center;
    margin: 1.2em;
    padding: 0.2em;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.2s ease;
    position: relative;
}

.featured-tag:before {
    position: absolute;
    content: ' ';
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background-color: var(--bg-1);
    transform: rotate(45deg);
    transition: all 0.2s ease;
    z-index: -1;
    border-bottom-left-radius: 20px;
    border-bottom-right-radius: 40px;
}

.featured-tag:after {
    position: absolute;
    content: ' ';
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background-color: var(--bg-2);
    transform: rotate(45deg) scale(0.9);
    transition: all 0.2s ease;
    z-index: -1;
    border-bottom-left-radius: 20px;
    border-bottom-right-radius: 40px;
}

.featured-tag:hover:after {
    transform: rotate(45deg) scale(1);
}

.featured-tag:hover span {
    transform: rotate(5deg);
}

.featured-tag div {
    padding: 0 2.8em;
}


/*     news posts and calendar */
#news-posts {
    min-height: 400px;
    display: flex;
    justify-content: center;
    align-items: stretch;
    padding: 1em;
}

#news-posts #left,
#news-posts #right {
    text-decoration: none;
    border: none;
    transition: all 0.2s ease-in-out;
    transform: scaleY(2) scaleX(1.5);
}

#news-posts span {
    aspect-ratio: 1;
}

#news-posts #left:hover span,
#news-posts #right:hover span {
    transform: scaleY(2.5) scaleX(2);
    text-shadow: 0px 0px 5px rgba(53, 53, 53, 0.527);
}

#news-posts #left:active,
#news-posts #right:active {
    transform: scaleY(2.5) scaleX(2);
}

#news-posts .contents {
    flex: 1;
    content: ' ';
    width: 100%;
    display: block;
    position: relative;
    margin: -4.5em;
}

#news-posts .contents div {
    height: 100%;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    vertical-align: middle;
}

#news-posts .contents p {
    position: absolute;
    top: 5em;
    height: 100%;
    padding: 2.5em;
}

#news-posts .contents img {
    position: absolute;
    max-width: 100%;
    max-height: 100%;
}

section {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    transition: all 0.3s ease;
    box-sizing: border-box;
    box-sizing: border-box;
    display: flex;
    justify-content: center;
    align-items: center;
}

section.hidden {
    animation: fadeOut;
    display: none !important;
}

section.collapsed {
    max-height: 28px;
}


.scale-onhover {
    display: flex;
    flex-direction: row-reverse;
    justify-content: center;
    align-items: center;
    line-height: normal;
    gap: 5px;

}

.scale-onhover * {
    line-height: normal;
    vertical-align: middle;
}

.scale-onhover a:hover~span {
    transform: scale(1.1);
}

/*           featured-post            */


.featured-post {
    position: relative;
    max-width: 80%;
    max-height: 200px;
    aspect-ratio: 1;
    margin: 20px auto;
    padding: 0;
    text-decoration: none;
    overflow: hidden;
    /* border-radius: 8px;*/
}


.featured-post img {
    min-width: 100%;
    image-rendering: optimizeSpeed;
}

.featured-post>div:nth-child(2) {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column-reverse;
    gap: 5px;
    padding: 5px;
    position: absolute;
    z-index: 999;
    margin: 0;
    padding: 0;
    top: 0;
    width: 100%;
    height: 100%;
}

.featured-post div * {
    font-size: 1.2em;
    width: 100%;
}

.featured-post p,
.featured-post span {
    /* width: 100%; */
    padding: 0.8em 0;
    /* border-radius: 8px; */
    text-shadow: 0px 0px 2px var(--text-shadow);
    background-color: var(--bg-0);
    opacity: 0.8;
    text-align: center;
}

.featured-post:hover p,
.featured-post:hover span {
    opacity: 1;
    backdrop-filter: blur(1px) grayscale(1);
}

.featured-post:hover img {
    transform: scale(1.02);
}

/*              links                    */
#links {
    display: flex;
    justify-content: center;
    align-items: stretch;
    flex-direction: row;
}


#links .half {
    width: 50%;
    padding: 4em 0;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    background-color: #fafafa;
}

#links .half:first-child {
    min-height: 100%;
    background-color: #081726;
    width: 50%;
    padding: 2em;
}

#links .half:last-child {
    background-image: url('./../images/agenda.jpg');
    background-position: center;
    background-size: cover;
}

#links .half:first-child h1 {
    color: #fafafa;
    font-weight: lighter;
}

@media (max-width:767px) {
    #links {
        flex-direction: column;
    }

    #links .half {
        width: 100% !important;
    }
}

#links .featured-item::before {
    content: "\ef4a";
    font-family: 'Material Symbols Rounded';
    position: absolute;
    color: white;
    font-size: 34px;
    left: -20px;
    font-weight: 600;
    z-index: 1;
}

/*                      inscriptio section   */

#inscreption {
    /*
    background-image: url(../images/students.png);
    background-size: cover;
    background-position: center;*/
    width: 100%;

}

#inscreption .mui-row {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0.8em 60px;
}

#inscreption button {
    width: 50px;
    aspect-ratio: 1;
}

#inscreption button span {
    font-size: 2.8em;
    vertical-align: middle;

}

body:lang(ar) #inscreption button span {
    transform: rotate(180deg);
}

.links-wraper {
    max-width: 80%;
    display: flex;
    justify-content: flex-start;
    align-items: stretch;
    flex-wrap: nowrap;
    flex-direction: row;
    overflow: hidden;
    box-sizing: border-box;
    padding: 0.8em 0.4em;

}

.featured-links {
    min-width: 240px;
    max-width: 280px;
    box-sizing: border-box;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    margin: 0.4em 24px;
    overflow: hidden;
    background-color: var(--bg-2) !important;
    border: 1px solid rgb(181 181 181);
    transition: transform 0.3s ease-in-out;
    box-shadow: 0 0 10px 0px rgb(118 118 118 / 40%);
    position: relative;
}


.featured-links:hover>div:first-child img {
    transform: scale(1.2);
}

.featured-links>div:first-child:hover {
    max-height: 60%;
}

.featured-links>div:first-child {
    width: 100%;
    max-height: 30%;
    overflow: hidden;
    transition: all 0.3s ease-in-out;
}

.featured-links>div img {
    width: 100%;
    transition: all 0.3s ease-in-out;
    image-rendering: optimizeSpeed;
}

.featured-links>div:last-child {
    width: 100%;
    flex: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-direction: column;
    box-sizing: border-box;
    padding: 1.8em 0.2em;
}

.featured-links a {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: row;
    transition: all 0.3s ease;
    padding: 0.2em 0.8em;
    z-index: 1;
}

.featured-links h2 {
    position: relative;
    padding-bottom: 0.6em;
}

.featured-links h2::before {
    position: absolute;
    content: " ";
    height: 100%;
    width: 20%;
    margin: 0 40%;
    border-bottom: 4px solid var(--accent-color);
    transition: all 0.2s ease-in-out;
}

.featured-links:hover h2::before {
    position: absolute;
    content: " ";
    height: 100%;
    width: 80%;
    margin: 0 10%;
    border-bottom: 4px solid var(--accent-color);

}

.featured-links a h4,
.featured-links a span {
    font-size: 18px;
    vertical-align: middle;
}

.featured-links a:before {
    position: absolute;
    content: ' ';
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 32px;
    box-shadow: 0 0 0px 2px var(--accent-color) inset;
    transition: all 0.3s ease;
    z-index: -1;
}

.featured-links a:hover * {
    color: white !important;
}

.featured-links a:hover:before {
    box-shadow: 0 0 10px 60px var(--accent-color) inset;
}

.featured-links a:active:before {
    opacity: 0.8;
}

.featured-links .layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* list item styledd*/
.featured-item {
    min-width: 240px;
    max-width: 280px;
    box-sizing: border-box;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    flex-direction: row;
    margin: 0.4em 24px;
    overflow: hidden;
    background-color: var(--bg-2) !important;
    border: 2px solid rgb(255, 255, 255);
    transition: transform 0.3s ease-in-out;
    box-shadow: 0 0 10px 0px rgb(118 118 118 / 40%);
    position: relative;
}


.featured-item:hover>div:first-child {
    transform: translateX(calc(var(--dir) * 25%));
}

.featured-item>div:first-child span {
    font-size: 52px;
    font-weight: 500;
    transition: transform 0.3s ease-in-out;
}

.featured-item:hover>div:first-child span {
    transform: scale(0.5)
}


.featured-item>div:first-child {
    border-top-right-radius: 60px;
    border-bottom-right-radius: 60px;
    width: 40%;
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 60%;
    height: 100%;
    background-color: var(--accent-color);
    overflow: hidden;
    transition: all 0.3s ease-in-out;
    color: #fafafa;
    --dir: -1;
}

body:lang(ar) .featured-item>div:first-child {
    border-top-right-radius: 0px;
    border-bottom-right-radius: 0px;
    border-top-left-radius: 60px;
    border-bottom-left-radius: 60px;
    width: 40%;
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 60%;
    height: 100%;
    background-color: var(--accent-color);
    overflow: hidden;
    transition: all 0.3s ease-in-out;
    color: #fafafa;
    --dir: 1;
}

/*
.featured-item>div img {
    width: 100%;
    transition: all 0.3s ease-in-out;
    image-rendering: optimizeSpeed;
}

*/
.featured-item>div:last-child {
    width: 100%;
    flex: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-direction: column;
    box-sizing: border-box;
    padding: 1.8em 0.2em;
}

.featured-item a {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: row;
    transition: all 0.3s ease;
    padding: 0.2em 0.8em;
    z-index: 1;
    padding-bottom: 0.4em;
}

.featured-item h2 {
    position: relative;
    padding-bottom: 0.6em;
}

.featured-item h2::before {
    position: absolute;
    content: " ";
    height: 100%;
    width: 20%;
    margin: 0 40%;
    border-bottom: 4px solid var(--accent-color);
    transition: all 0.2s ease-in-out;
}

.featured-item:hover h2::before {
    position: absolute;
    content: " ";
    height: 100%;
    width: 80%;
    margin: 0 10%;
    border-bottom: 4px solid var(--accent-color);

}

.featured-item a h4,
.featured-item a span {
    font-size: 18px;
    vertical-align: middle;
}

.featured-item a:before {
    position: absolute;
    content: ' ';
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 32px;
    box-shadow: 0 0 0 2px var(--accent-color) inset;
    transition: all 0.3s ease;
    z-index: -1;
}

.featured-item a:hover * {
    color: white !important;
}

.featured-item a:hover:before {
    box-shadow: 0 0 10px 30px var(--accent-color) inset;
}

.featured-item a:active:before {
    opacity: 0.8;
}

.featured-item .layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}


/*           customizaitino             */

.display-hidden {
    display: none;
}

.display-inline {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: nowrap;
}

.display-flex {
    display: flex;
}

.justify-center {
    justify-content: center;
    align-items: center;
}

.flex-col {
    flex-direction: column;
}

.flex-wrap {
    flex-wrap: wrap;
}

.flex-stretch {
    align-items: stretch;
}

.animate-hidden {
    animation-play-state: paused;
}

button {
    background-color: rgba(0, 0, 0, 0);
    border: none;
}

h1 {
    font-size: 28px;
    font-weight: 600;
    line-height: 1.2;
    margin: 12px 0;
}

h2 {
    font-size: 18px;
    font-weight: 600;
    line-height: 1.2;
    margin: 0 0 8px;
}

p {
    font-size: 14px;
}

main {
    width: 100%;
    padding: 0;
    position: relative;
    margin: 0;
}

a {
    text-decoration: none;
    cursor: pointer;
    position: relative;
}

a:hover {
    text-decoration: none;
    cursor: pointer;
    position: relative;
    opacity: 1;
}

main {
    overflow-x: hidden;
    max-width: 100vw;
}

section {
    width: 100%;
}

footer::before {
    position: absolute;
    top: 0;
    content: ' ';
    width: 100vw;
    height: 25px;
}

footer {
    width: 100%;
    margin: 0;
    margin-bottom: 0;
    padding: 1.8em 0;
    overflow: hidden;
    box-shadow: 0 0 5px 0px rgba(100, 170, 150, 0.5);
    background-color: var(--accent-color);
    padding-bottom: 0.8em;
}

footer .section {
    min-width: 300px;
}

/*        
                              footer                                        */
footer .mui-row {
    min-height: 60px;
    justify-content: center;
    padding-bottom: 10px;
}

footer .mui-row::before {
    content: ' ';
    width: 40%;
    margin: 1.8em auto;
    margin-top: 0.4em;
    margin-bottom: 0.4em;
    border-bottom: 1px solid var(--color-1);
    opacity: 0.2;
}

.footer-section {
    position: relative;
    padding-bottom: 20px;
}

.footer-section:before {
    position: absolute;
    content: ' ';
    width: 8px;
    color: white;
    height: 100%;
    opacity: 0.2;
    transform: translateX(40px);
}

.footer-section:hover:before {
    content: '';
}

.footer h2 {
    margin-bottom: 0.2em;
}

footer .mui-row ul {
    padding: 0 1.8em;
}



#dark_mode-btn {
    position: relative;
}

#dark_mode-btn:before {
    display: none;
}


#dark_mode-btn div {
    animation: fadeIn 0.3s ease-in-out;
}

#dark_mode-btn:active div {
    animation: none;
    opacity: 0;
}




/*              latest                    */
.under-line {
    position: relative;
    width: 100%;
    text-align: center;
    padding-bottom: 1em;
    margin-bottom: 1em;
}

.under-line::after {
    content: ' ';
    position: absolute;
    width: 20px;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin: 0 auto;
    height: 2px;
    background-color: var(--color-2);
    opacity: 0.8;
}

.upper-line {
    position: relative;
    padding-top: 1em;
    width: 100%;
    text-align: center;
}

.upper-line::before {
    content: ' ';
    position: absolute;
    width: 80%;
    top: 0;
    left: 0;
    height: 2px;
    background-color: var(--color-2);
    opacity: 0.6;
    margin: 0 10%;
}

#latest {
    position: relative;
}

.slider-ctrls {
    position: absolute;
    width: 100%;
    bottom: 4em;
    left: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.slider-ctrls button {
    width: 80px;
    height: 80px;
    border-radius: 100%;
    margin: 10px;
    box-sizing: border-box;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    cursor: pointer;
    z-index: 1;
}

.slider-ctrls button:before {
    position: absolute;
    content: ' ';
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    border-radius: 100%;
    transition: all 0.2s ease;
    box-shadow: 0 0 0px 2px var(--accent-color) inset;
    z-index: -1;
}

.slider-ctrls button:hover:before {
    box-shadow: 0 0 40px 40px var(--accent-color) inset;
}

.slider-ctrls button:active:before {
    transform: scale(1.01);
}

.slider-ctrls button span {
    font-size: 32px;
    vertical-align: middle;
    text-align: center;
    color: var(--accent-color);
}

body:lang(ar) .slider-ctrls button span {
    transform: scale(-1);
}

.slider-ctrls button:hover span {
    color: #fafafa;
}



.wide-container {
    position: relative;
    width: 100%;
}

.wide-container section {
    display: block;
}


/*           infinte row                 */
.slider {
    width: 100%;
    position: relative;
    overflow: hidden;
    padding: 0;
    margin: 0;
    white-space: nowrap;
}

.slider>div {
    width: 100vw;
    display: inline-block;
}

.slider>div.left {
    top: 0;
    transform: translateX(-100vw);
}

.slider>div.right {
    top: 0;
    transform: translateX(100vw);
}


.horiz-featured {
    /* margin: 1.6em; */
    /* height: 250px; */
    position: relative;
    background-color: var(--bg-2);
    box-shadow: 0 0 2px -2px var(--color-3);
    /* border: 1px solid var(--color-1); */
    overflow: hidden;
    height: 100vh;
    width: 100vw;
    transition: transform 0.8s ease-in-out;

}

/*
.horiz-featured::after {
    position: absolute;
    content: ' ';
    top: 0;
    left: calc(100% - 200px);
    width: 100%;
    margin: 5% 0;
    height: 80%;
    border-left: 1px solid var(--color-1);
    opacity: 0.2;
}*/

.horiz-featured>div {
    position: absolute;
    top: 0;
    left: 0;
    max-width: 80%;
    height: 100%;
    box-sizing: border-box;
    padding: 4.4em 2.6em;
    padding-left: 120px;
    display: flex;
    justify-content: space-evenly;
    align-items: flex-start;
    flex-direction: column;
    background: rgb(255, 255, 255);
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.9) 0%,
            rgba(255, 255, 255, 0.6) 50%, rgba(255, 255, 255, 0) 100%);
    white-space: normal;
}

.horiz-featured div a {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: row;
    transition: all 0.3s ease;
    padding: 0.6em 1.8em;
    font-size: large;
    /* width: 88px; */
    z-index: 1;
}

.horiz-featured div a:before {
    position: absolute;
    content: ' ';
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 32px;
    box-shadow: 0 0 0px 2px var(--accent-color) inset;
    transition: all 0.3s ease;
    z-index: -1;
}

.horiz-featured div a:hover {
    color: white !important;
}

.horiz-featured div a:hover:before {
    box-shadow: 0 0 10px 60px var(--accent-color) inset;
}


.horiz-featured h1 {
    font-size: 48px;
    font-weight: normal;
    position: relative;
    color: black;

}

.horiz-featured h2 {
    font-size: 28px;
    font-weight: lighter;
    position: relative;
    color: rgb(28, 28, 28);

}

.horiz-featured .divider {
    width: 80px;
    position: relative;
    padding: 0.8em 0;
}

.horiz-featured .divider::before {
    position: absolute;
    content: " ";
    height: 4px;
    width: 80px;
    background-color: var(--accent-color);
}

.horiz-featured img {
    position: absolute;
    padding: 0;
    min-width: 100%;
    min-height: 100%;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}




@media only screen and (max-width: 767px) {
    .horiz-featured>div {
        align-items: center;
        max-width: 100%;
        padding: 4.4em 2.6em;
    }

    .horiz-featured h1 {
        font-size: 28px !important;
        text-align: center;

    }

    .slider-ctrls button {
        width: 40px;
        height: 40px;
    }

    .slider-ctrls button span {
        font-size: 18px;
    }
}






/*              location bar                            */
.navigation-positioning {
    list-style: none;
    margin: 0;
    padding: 0;
}

.navigation-positioning ol {
    list-style: none;
}

.navigation-positioning * {
    font-size: 12px;
    color: var(--color-1);
}

.navigation-positioning a {
    text-decoration: none;
    border-bottom: 1px solid var(--color-2);
    cursor: pointer;
}

.navigation-positioning a:hover {
    text-decoration: none;
    border-bottom: 1px solid var(--color-2);
    cursor: pointer;
}

.navigation-positioning .navigation-positioning-item::before {
    content: '/';
    margin-right: 0.6em;
    color: var(--color-2);
    ;
}

.navigation-positioning .navigation-positioning-item {
    margin-left: 13px;
    position: relative;
    float: left;
    margin-bottom: 0;
}

.navigation-positioning .navigation-positioning-item:first-child::before {
    content: '';
}

/*             agenda  sectiinan css      */
.styled-header {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 0.8em;
}


.styled-header span {
    vertical-align: middle;
}

#about>div>div {
    max-width: 400px;
}

.usthb-agenda {
    position: relative;
    display: flex;
    justify-content: flex-start;
    align-items: stretch;
    flex-direction: column;
    height: 300px;
    max-width: 400px;
    background-color: white;
    z-index: 1;
}

.usthb-agenda::after {
    position: absolute;
    content: ' ';
    height: 100%;
    width: 100%;
    box-shadow: 0 0 0 2px rgb(5, 180, 5) inset;
    left: 0;
    top: 0;
    z-index: -1;
}

.usthb-agenda>a {
    display: flex;
    justify-content: center;
    width: 100%;
    color: #0f0f0f;
    position: relative;
}

#about .usthb-agenda h1 {
    font-size: 38px;
    font-weight: normal;
    color: var(--accent-color) !important;
}


.usthb-agenda>a::before {
    position: absolute;
    content: '\ebcc';
    color: #fafafa;
    font-family: 'Material Symbols Rounded';
    height: 50px;
    font-size: 42px;
    aspect-ratio: 1;
    background-color: rgb(5, 180, 5);
    border-bottom-right-radius: 50%;
    text-align: center;
    left: 0;
    top: 0;
    z-index: 1;
}

.usthb-agenda>a::after {
    position: absolute;
    content: ' ';
    height: 2px;
    width: 60%;
    margin: 0 20%;
    background-color: rgb(5, 180, 5);
    text-align: center;
    left: 0;
    top: 100%;
    z-index: 1;
}

.usthb-agenda ol {
    flex: 1;
    display: flex;
    justify-content: flex-start;
    align-items: stretch;
    flex-direction: column;
    overflow: hidden;
    list-style-type: none;
    padding: 0;
}

.usthb-agenda li {
    position: relative;
    padding-left: 0.8em;
    overflow: hidden;
    padding: 1.2em;
}

.usthb-agenda li:hover:before {
    content: ' ';
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    transform: translateX(0);
    background-color: var(--accent-color);
}

.usthb-agenda li:before {
    content: ' ';
    position: absolute;
    left: 2px;
    top: 0;
    width: 100%;
    height: 100%;
    transform: translateX(-100%);
    background-color: var(--accent-color);
    transition: all 0.3s ease-in-out;
}

.usthb-agenda li a {
    color: #0f0f0f;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    flex-direction: column;
    transition: all 0.3s ease-in-out;
}

.usthb-agenda li:hover a {
    color: #fafafa;
}

/* faculties*/
#faculties {
    background-image: url(../images/faculty.png);
    background-size: cover;
    background-position: center;
    image-rendering: optimizeSpeed;
    min-height: 1000px;
}

.faculties {
    width: 100%;
    padding-top: 180px;
    padding-bottom: 120px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    align-items: center;
}

#faculties h1 {
    font-size: 48px;
    font-weight: 600;
}

.faculties .faculty {
    position: relative;
    margin: 8px 8px;
    padding: 2em;
    /* aspect-ratio: 1; */
    text-align: center;
    font-size: large;
    animation: scaleIn 0.5s ease;
    z-index: 1;
    font-weight: 600;
}

@keyframes scaleIn {
    0% {
        transform: scale(0);
        opacity: 0;
    }

    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.faculties .faculty:before {
    position: absolute;
    content: ' ';
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    /* transform: rotate(45deg);*/
    background-color: var(--bg-0);
    transition: box-shadow 0.2s ease;
    box-shadow: 0 0 0 2px var(--color-1) inset;
    z-index: -1;
    border-radius: 31px;

}

.faculties .faculty:hover {
    color: black !important;
}

.faculties .faculty:hover:before {
    box-shadow: 0 0 5px 80px var(--color-1) inset;
}


/* figures ss        home section */
#home {
    background-position: center;
    background-size: cover;
    padding: 0 1.2em;
    min-height: 700px;
    gap: 2em;
    position: relative;
    z-index: 0;
    padding-top: 4em;
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    flex-direction: column;
}

#home::before {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    content: ' ';
    background: rgb(255, 255, 255);
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.75) 0%, rgba(255, 255, 255, 0) 100%);
    z-index: -1;
}

#home h1,
#home h2 {
    color: #1c1c1c;
    font-weight: normal;
    line-height: 1.8;
    max-width: 767px;
    z-index: 1;
    text-indent: 3em;
}

#home h1 {
    font-size: 42px;
}

@media (max-width: 767px) {

    #home h1 {
        font-size: 32px;
    }
}

#usthb-figures h1 {
    margin-top: 24px;
    font-weight: normal;
    z-index: 1;
    width: 100%;
    font-size: 32px;
    font-weight: 600;
    color: var(--accent-color);
    display: contents;
    /* justify-content: center; */
    text-align: center;

}


#figures {
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
    gap: 0.8em;
}


#figures * {
    transition: color 0.2s ease-in-out;
    transition: background-color 0.2s ease-in-out;
    transition: transform 0.2s ease-in-out;
}

#figures .row {
    display: flex;
    justify-content: center;
    align-items: stretch;
    flex-direction: row;
}

#figures img {
    fill: var(--bg-0);
}

#figures .row .dot-0 {
    display: flex;
    justify-content: center;
    z-index: 1;
}

#figures .row .dot-1 {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    z-index: 1;
}

#figures .row .dot-0 svg #figures .row .dot-1 svg {
    transform: scale(1.1);
    z-index: 1;
}

#figures .row .dot-0:hover svg,
#figures .row .dot-1:hover svg {
    transform: scale(1.5);
}

body:lang(ar) #figures .row .path-1,
#figures .row .path-0 {
    transform: scaleX(-1) rotate(90deg);
}

body:lang(ar) #figures .row .path-0,
#figures .row .path-1 {
    transform: scaleX(1) rotate(90deg);
}

#figures .row h2 {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    width: 160px;
    margin: 1.8em 3em;
    position: relative;
    padding: 0.4em;
    z-index: 1;
    gap: 0.2em;
    font-size: 16px;
    font-weight: 600;
    text-align: center;
}

#figures .row h2:hover {
    color: #ffffff;
    transform: scale(1.2);
}

.dark #figures .row h2:hover {}

#figures .row h2:before {
    content: ' ';
    position: absolute;
    height: 100%;
    width: 100%;
    top: 0;
    left: 0;
    box-shadow: 0 0 0px 2px var(--bg-0) inset;
    transition: all 0.2s ease-in-out;
    z-index: -1;
}

#figures .row h2:hover:before {
    box-shadow: 0 0 5px 50px var(--bg-0) inset;
}

/*
#figures .row:first-child h2:before {
    top: 100%;
}

#figures .row:last-child h2:before {
    top: -3.4em;
}*/

@media screen and (max-width:767px) {
    #figures {
        flex-direction: row;

        transform: scale(0.8);
    }

    #figures .row {
        display: flex;
        justify-content: flex-start;
        align-items: stretch;
        flex-direction: column;
    }

    #figures .row .dot-0 {
        flex-grow: 1;
        display: flex;
        justify-content: center;
        align-items: flex-start;
        transform: scale(1.1);
        flex-direction: column;
    }

    #figures .row .dot-1 {
        display: flex;
        justify-content: center;
        align-items: flex-end;
        transform: scale(1.1);
        flex-direction: column;
    }

    #figures .row .path-0 {
        display: flex;
        justify-content: center;
        transform: scaleX(1) rotate(0deg);
    }

    #figures .row .path-1 {
        display: flex;
        justify-content: center;
        transform: scaleX(-1) rotate(0deg);
    }

    #figures .row h2 {
        width: 120px;
        margin: 110px 0.2em;
        position: relative;
    }

    body:lang(ar) #figures .row .path-0 {
        transform: scaleX(-1) rotate(0deg);
    }

    body:lang(ar) #figures .row .path-1 {
        transform: scaleX(1) rotate(0deg);
    }
}