* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
    direction: rtl;
}

body {
    background-image: url("../images/B1.jpeg");
    transition: background-image 0.5s ease-in-out;
    background-repeat: no-repeat;
    background-size: cover;
    width: 100%;
    height: 100%;
}

body::before {
    content: "";
    position: absolute;
    top: 0%;
    right: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, .7));
    z-index: -1;
}

header {
    display: flex;
    position: fixed;
    top: 0%;
    justify-content: space-between;
    text-align: center;
    width: 100%;
    margin-top: 0;
    padding: 0 10px;
    z-index: 1;
}

header .logo {
    width: 7vw;
    height: 10vh;
}

nav {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 8vh;
    background: #000;
    border-radius: 40px;
    margin: auto 0;
}

nav a {
    display: flex;
    font-size: 1rem;
    font-weight: 500;
    color: #fff;
    text-decoration: none;
    padding: 0 1.80vw;
    z-index: 1;
}

nav span {
    position: absolute;
    top: 0;
    right: 0;
    width: 16.5%;
    height: 100%;
    background: linear-gradient(45deg, #a1887f, #8d6e63, #795548);
    border-radius: 40px;
    transition: .5s;
}

nav a:nth-child(1):hover~span{
    right: 0;
    width: 16.5%;
}

nav a:nth-child(2):hover~span{
    right: 16.25%;
    width: 15%;
}

nav a:nth-child(3):hover~span{
    right: 30.5%;
    width: 16.5%;
}

nav a:nth-child(4):hover~span{
    right: 46.75%;
    width: 12%;
}

nav a:nth-child(5):hover~span{
    right: 57.75%;
    width: 12%;
}

nav a:nth-child(6):hover~span{
    right: 69%;
    width: 16.75%;
}

nav a:nth-child(7):hover~span{
    right: 84%;
    width: 16%;
}

header .contener-login {
    display: flex;
    height: 8vh;
    margin: auto 0;
    align-items: center;
}

header .contener-login a {
    font-size: 1rem;
    font-weight: 500;
    color: #fff;
    text-decoration: none;
    padding: 1.25vw 2vw;
    width: fit-content;
    background: linear-gradient(45deg, #a1887f, #8d6e63, #795548);
    border-radius: 40px;
    margin: auto 2px;
}

header .contener-login a:hover{
    cursor: pointer;
    background: transparent;
    outline: 1px solid #8d6e63;
}

/* Home */
.contener-home {
    position: absolute;
    top: 25%;
    width: 100%;
    display: flex;
    justify-content: space-evenly;
    align-items: center;
}

.contener-home .contener-wellcome {
    display: flex;
    justify-content:center;
    align-items: center;
    flex-direction: column;
}

.contener-home .contener-wellcome h1 {
    color: #fff;
    font-size: 3rem;
}

.contener-home .contener-wellcome .contener-description {
    width: 90%;
    height: auto;
    border-radius: 30px;
    border: 2px solid rgba(255, 255, 255, .2);
    backdrop-filter: blur(10px);
    box-shadow: 0 0 5px rgba(0, 0, 0, .2);
    background-size: cover;
    color: #fff;
    padding: 1.5vw;
    text-align: center;
    font-size: 1.5rem;
}

.container-comments {
    width: 100%;
    position: absolute;
    top: 55%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.container-comments h1 {
    color: #fff;
}

.container-comments .totalcard-offices .card-office {
    padding: 20px;
}

.container-comments .totalcard-offices .card-office .detail {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: normal;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* About */
nav .about {
    right: 16.25%;
    width: 15%;
}

.contener-home-about {
    position: absolute;
    top: 35%;
    width: 100%;
    display: flex;
    justify-content: space-evenly;
    align-items: center;
}

.contener-home-about div {
    width: 30vw;
    height: 29vh;
    border-radius: 30px;
    border: 2px solid rgba(255, 255, 255, .2);
    backdrop-filter: blur(10px);
    box-shadow: 0 0 5px rgba(0, 0, 0, .2);
    background-size: cover;
    color: #fff;
    padding: 2vw 1vw;
    text-align: center;
    line-height: 1.6;
    font-size: 1.12rem;
    font-weight: bold;
}

.contener-home-about .contener-our-vision p, .contener-our-mission p {
    text-align: right;
    word-break: break-word;
}

.contener-home-about .contener-about {
    font-size: 1.25rem;
}

/* Admin-offices */
nav .admin-offices {
    right: 30.5%;
    width: 16.5%;
}

.container-offices {
    width: 100%;
    position: absolute;
    top: 35%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.container-offices h1  {
    color: #fff;
}

.totalcard-offices {
    display: flex;
    overflow-x: auto;
    scroll-behavior: smooth;
    white-space: nowrap;
    padding: 20px;
    gap: 20px;
    width: 90%;
}

.totalcard-offices::-webkit-scrollbar {
    display: none;
}

.card-office {
    position: relative;
    flex: 0 0 calc(50% - 20px);
    max-width: 350px;
    height: 150px;
    border-radius: 10px;
    background: #fff;
    box-shadow: inset 0 0 10px rgba(0,0,0,0.4), 0 0 10px rgba(0,0,0,0.3);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.card-office .card-title {
    color: #000;
    font-size: 1rem;
    margin: 2% 0;
}

.container-offices .totalcard-offices .card-office {
	box-shadow: inset 0 0 10px rgba(0,0,0,0.4),
					0 0 10px rgba(0,0,0,0.3);
}

.card-office:nth-child(odd){
	border-top: 5px solid #795548;
}

.card-office:nth-child(even){
	border-top: 5px solid #a1887f;
}

.card-office:nth-child(odd):hover {
	box-shadow: inset 0px 0px 10px #795548,
				1px 1px 10px #a1887f;
}

.card-office:nth-child(even):hover {
	box-shadow: inset 0px 0px 10px #8d6e63,
				1px 1px 10px #8d6e63;
}

.card-office a {
    position: absolute;
    left: 0;
    bottom: 0;
    padding: 10px;
	text-decoration: none;
    outline: none;
    border-top-left-radius: 0px;
    border-top-right-radius: 40px;
    border-bottom-right-radius: 0px;
    border-bottom-left-radius: 10px;
	border-style: none;
	padding: 9px 25px;
	cursor: pointer;
	transition-duration: .4s;
    color: #000;
    font-weight: 700;
}

.card-office a:hover {
	background: linear-gradient(45deg, #a1887f, #8d6e63, #795548);
	color: #fff;
}

.card-office a i {
    transform: rotate(180deg);
}

.container-comments .scroll-left, .container-comments .scroll-right ,.container-offices .scroll-left,.container-offices .scroll-right {
    position: absolute;
    top: 58%;
    transform: translateY(-50%);
    background-color: #8d6e63;
    color: white;
    font-size: 24px;
    border: none;
    padding: 10px;
    cursor: pointer;
    border-radius: 5px;
    opacity: 0.7;
    transition: opacity 0.3s;
    z-index: 1;
}

.scroll-left:hover, .scroll-right:hover {
    opacity: 1;
}

.scroll-left {
    left: 10px;
}

.scroll-right {
    right: 10px;
}

/* Hall */
nav .hall {
    right: 46.75%;
    width: 12%;
}

/* Lab */
nav .lab {
    right: 57.75%;
    width: 12%;
}

/* Emergency Exit */
nav .emergency-exit {
    right: 69%;
    width: 16.75%;
}

/* Team Page */
nav .team {
    right: 84%;
    width: 16%;
}

.diffSection center p {
    position: relative;
    top: 100px;
    font-size: 50px;
    color: #fff;
}

.diffSection {
	width: 100%;
	position: relative;
	justify-content: center;
	align-items: center;
}

.totalcard {
    position: absolute;
    top: 350%;
	width: 100%;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
}

.totalcard .card {
    display: flex;
    flex-direction: column;
    margin: 10px;
	width: 270px;
    height: 250px;
	border-radius: 10px;
	background: #fff;
	gap: 8%;
}

.totalcard .card{
	box-shadow: inset 0 0 10px rgba(0,0,0,0.4),
					0 0 10px rgba(0,0,0,0.3);
}
.card:nth-child(odd){
	border-top: 5px solid #795548;
}

.card:nth-child(even){
	border-top: 5px solid #a1887f;
}

.card:nth-child(odd):hover {
	box-shadow: inset 0px 0px 10px #795548,
				1px 1px 10px #a1887f;
}

.card:nth-child(even):hover {
	box-shadow: inset 0px 0px 10px #8d6e63,
				1px 1px 10px #8d6e63;
}

.totalcard .card img {
	width: 100px;
	height: 100px;
	margin-top: 5px;
	cursor: pointer;
	border-radius: 50px;
	transition-duration: .8s;
}

.totalcard .card img:hover {
	transform: scale(2);
	border-radius: 5px;
	box-shadow: 0 0 20px rgba(0,0,0,0.5);
}

#detail {
    padding: 5px 25px;
	font-size: 15px;
	line-height: 25px;
	font-variant: small-caps;
	text-align: center;
    height: 25px;
    width: 100%;
}

.totalcard .card a {
	text-decoration: none;
	background-color: #eee;
	width: 50%;
	outline: none;
	border-radius: 10px;
	border-style: none;
	padding: 9px 25px;
	cursor: pointer;
	transition-duration: .4s;
	margin: 0 auto;
	text-align: center;
	direction: ltr;
	font-size: .80rem;
}

.totalcard .card a:hover {
	background: linear-gradient(45deg, #a1887f, #8d6e63, #795548);
	color: #fff;
}

/* Footer */
.footer {
    position: absolute;
    bottom: 2%;
    right: 25%;
    width: 50%;
    justify-content: center;
    align-items: center;
    border: 2px solid rgba(255, 255, 255, .2);
    backdrop-filter: blur(10px);
    box-shadow: 0 0 5px rgba(0, 0, 0, .2);
    border-radius: 10px;
    padding: 5px;
}

.footer .box-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(30rem, 1fr));
    gap: 3rem;
    padding: 10px;
    display: flex;
    justify-content: space-evenly;
    align-items: center;
}

.footer .box-container .box h3{
    color:#fff;
    font-size: 1.1rem;
    font-weight: bold;
}
 
.footer .box-container .box h3 a{
    color: #fff;
    font-size: 1rem;
    display: block;
    text-decoration: none;
}
 
.footer .box-container .box h3 a i{
    color: #fff;
    transition: .2s linear;
}
 
.footer .box-container .box h3 a:hover i{
    color: #a1887f;
}


/* الايباد */
@media only screen 
and (max-width: 1080px) 
and (max-width: 1620px) 
and (orientation: landscape) {
    body {
        height: 96vh;
        width: 100%;
        background-size: cover;
        margin: 0;
        padding: 0;
    }
    
    body::before {
        height: 100%;
        background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, .7));
        z-index: -1;
    }

    header {
        display: flex;
        position: fixed;
        top: 0;
        align-items: center;
        justify-content: space-between;
        padding: 1px;
    }

    header .logo {
        width: 6vw;
        height: 6vh;
    }

    nav {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-around;
        align-items: center;
        width: 72vw;
        height: auto;
        padding: 10px;
        background-color: #000;
        border-radius: 40px;
    }

    nav a {
        font-size: .75rem;
        padding: 5px;
        text-align: center;
    }

    nav span {
        position: absolute;
        top: 0;
        right: 0;
        width: 19%;
        height: 100%;
        background: linear-gradient(45deg, #a1887f, #8d6e63, #795548);
        border-radius: 40px;
        transition: .5s;
    }

    nav .about {
        right: 17.60%;
        width: 14%;
    }

    nav .admin-offices {
        right: 31%;
        width: 16.25%;
    }

    nav .hall {
        right: 47.60%;
        width: 10%;
    }
    
    nav .lab {
        right: 59%;
        width: 10%;
    }
    
    nav .emergency-exit {
        right: 68.55%;
        width: 16.5%;
    }

    nav .team {
        right: 83.5%;
        width: 16.5%;
    }

    header .contener-login {
        padding: 7px;
    }

    header .contener-login a {
        font-size: .75rem;
        padding: 14.5px 13px;
        text-align: center;
    }

    .contener-home {
        position: absolute;
        top: 10%;
    }

    .container-comments {
        position: absolute;
        top: 45%;
    }

    .container-comments h1{
        font-size: 2rem;
    }

    .container-comments .totalcard-offices {
        height: auto;
    }

    .container-comments .totalcard-offices .card-office {
        height: 200px;
    }

    .container-comments .totalcard-offices .card-office h1 {
        font-size: 1rem;
    }

    .container-comments .totalcard-offices .card-office .detail {
        font-size: 1rem;
        padding: 0px 20px;
    }

    .contener-home-about {
        position: absolute;
        top: 35%;
        width: 100%;
        display: flex;
        justify-content: space-evenly;
        align-items: center;
    }

    .contener-home-about div {
        width: 30vw;
        height: 31vh;
        border-radius: 30px;
        border: 2px solid rgba(255, 255, 255, .2);
        backdrop-filter: blur(10px);
        box-shadow: 0 0 5px rgba(0, 0, 0, .2);
        background-size: cover;
        color: #fff;
        padding: 2vw 1vw;
        text-align: center;
        line-height: 1.6;
        font-size: 1rem;
        font-weight: bold;
    }

    .contener-home-about .contener-our-vision p, .contener-our-mission p {
        text-align: right;
        word-break: break-word;
    }

    .contener-home-about .contener-about {
        font-size: 1.25rem;
    }

    .container-offices {
        position: absolute;
        top: 25%;
    }

    .container-offices h1{
        font-size: 3rem;
    }

    .container-offices .totalcard-offices {
        height: auto;
    }

    .container-offices .totalcard-offices .card-office {
        height: 250px;
    }

    .container-offices .totalcard-offices .card-office h1 {
        font-size: 1.5rem;
        margin: 2% 0;
    }

    .container-offices .totalcard-offices .card-office .detail {
        font-size: 1.5rem;
        padding: 0px 20px;
        margin: 2% 0;
    }
    
    .diffSection {
        position: relative;
        top: 10%;
        height: 70vh;
        padding-top: 0;
    }

    .diffSection center p {
        position: absolute;
        top: 5%;
        right: 45%;
        height: auto;
        font-size: 2.5rem;
        font-weight: bold;
    }

    .diffSection .totalcard {
        position: absolute;
        top: 15%;
        width: 100%;
        height: auto;
        margin: 0;
        align-items: center;
    }
    
    .diffSection .totalcard .card {
        margin: 2%;
        width: 190px;
        height: 190px;
        gap: 4%;
    }

    .diffSection .totalcard .card img {
        width: 70px;
        height: 70px;
    }

    .diffSection .totalcard .card center .card-title  {
        font-size: .80rem;
    }

    .diffSection .totalcard .card center #detail {
        font-size: .80rem;
    }

    .diffSection .totalcard .card a {
        font-size: .5rem;
        padding: 6% 5%;
    }

    .footer {
        position: absolute;
        bottom: 0%;
        right: 0%;
        width: 100%;
        padding: 10px;
        border-radius: 10px;
    }

    .footer .box-container {
        display: flex;
        align-items: center;
        gap: 10px;
    }

    .footer .box-container .box h3 {
        text-align: center;
        font-size: .75rem;
        color: #fff;
    }

    .footer .box-container .box h3 a {
        text-align: center;
        font-size: .75rem;
        color: #fff;
    }
    
}


/* الجوالات */
@media screen and (max-width: 430px) {
    body {
        height: 90vh;
        background-size: cover;
        margin: 0;
        padding: 0;
    }

    body::before {
        height: 100%;
        background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, .7));
        z-index: -1;
    }

    header {
        display: flex;
        position: fixed;
        top: 0;
        align-items: center;
        justify-content: space-between;
        padding: 1px;
    }

    header .logo {
        width: 4vw;
        height: 4vh;
    }

    nav {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
        align-items: center;
        width: 70vw;
        height: auto;
        padding: 5px;
        background-color: #000;
        border-radius: 40px;
    }

    nav a {
        font-size: .25rem;
        text-align: center;
    }

    nav span {
        position: absolute;
        top: 0;
        right: 0;
        width: 16%;
        height: 100%;
        background: linear-gradient(45deg, #a1887f, #8d6e63, #795548);
        border-radius: 40px;
        transition: .5s;
    }

    nav .about {
        right: 16%;
        width: 14%;
    }

    nav .admin-offices {
        right: 30%;
        width: 16.25%;
    }

    nav .hall {
        right: 47%;
        width: 10%;
    }

    nav .lab {
        right: 58.75%;
        width: 10%;
    }

    nav .emergency-exit {
        right: 69%;
        width: 16.5%;
    }

    nav .team {
        right: 85%;
        width: 15%;
    }

    header .contener-login {
        height: 5vh;
        margin: auto 0;
    }

    header .contener-login a {
        font-size: .25rem;
        text-align: center;
    }

    .contener-home {
        position: absolute;
        top: 15%;
    }

    .contener-home .contener-wellcome h1 {
        font-size: 2rem;
    }

    .contener-home .contener-wellcome .contener-description {
        font-size: 1rem;
    }

    .container-comments {
        position: absolute;
        top: 45%;
    }

    .container-comments h1{
        font-size: 2rem;
    }

    .container-comments .totalcard-offices {
        height: auto;
    }

    .container-comments .totalcard-offices .card-office {
        height: 180px;
    }

    .container-comments .totalcard-offices .card-office h1 {
        font-size: 1rem;
    }

    .container-comments .totalcard-offices .card-office .detail {
        font-size: 1rem;
        padding: 0px 15px;
    }

    .contener-home-about {
        position: absolute;
        top: 10%;
        display: flex;
        height: auto;
        flex-direction: column;
        align-items: center;
        padding: 10px;
    }

    .contener-home-about div {
        width: 90%;
        height: auto;
        border-radius: 30px;
        border: 2px solid rgba(255, 255, 255, .2);
        backdrop-filter: blur(10px);
        box-shadow: 0 0 5px rgba(0, 0, 0, .2);
        background-size: cover;
        color: #fff;
        margin: 2px;
        text-align: center;
        line-height: 1.6;
        font-weight: bold;
    }

    .contener-home-about h1 {
        text-align: center;
        word-break: break-word;
        font-size: 2rem;
    }

    .contener-home-about p {
        text-align: right;
        word-break: break-word;
        font-size: 1rem;
    }

    .container-offices {
        position: absolute;
        top: 30%;
    }

    .container-offices h1{
        font-size: 2rem;
    }

    .container-offices .totalcard-offices {
        height: auto;
    }

    .container-offices .totalcard-offices .card-office {
        height: 200px;
        padding: 0 5%;
    }

    .container-offices .totalcard-offices .card-office h1 {
        font-size: 1rem;
        margin: 2% 0;
    }

    .container-offices .totalcard-offices .card-office .detail {
        font-size: 1rem;
        padding: 0px 10px;
        margin: 2% 0;
    }
    
    .diffSection {
        position: relative;
        top: 0%;
        height: 60vh;
        padding-top: 0;
    }

    .diffSection center p {
        position: absolute;
        top: 5%;
        right: 35%;
        height: auto;
        font-size: 2rem;
        font-weight: bold;
    }

    .diffSection .totalcard {
        position: absolute;
        top: 15%;
        width: 100%;
        height: auto;
        margin: 0;
        align-items: center;
    }

    .diffSection .totalcard .card {
        margin: 2%;
        width: 140px;
        height: 140px;
        gap: 5%;
    }

    .diffSection .totalcard .card img {
        width: 40px;
        height: 40px;
    }

    .diffSection .totalcard .card center .card-title  {
        font-size: .5rem;
    }

    .diffSection .totalcard .card center #detail {
        font-size: .5rem;
    }

    .diffSection .totalcard .card a {
        font-size: .4rem;
        padding: 6% 5%;
    }

    .footer {
        position: absolute;
        bottom: 0%;
        right: 0%;
        width: 100%;
        padding: 6px 10px;
        border-radius: 10px;
    }

    .footer .box-container {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 8px;
    }

    .footer .box-container .box h3 {
        text-align: center;
        font-size: .7rem;
        color: #fff;
    }

    .footer .box-container .box h3 a {
        text-align: center;
        font-size: .7rem;
        color: #fff;
    }

}