/* =================== CAIRO - Arabic Font =================== */
@font-face {
    font-family: 'Cairo';
    src: url('./fonts/Cairo/Cairo-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
}
@font-face {
    font-family: 'Cairo';
    src: url('./fonts/Cairo/Cairo-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
}
/* =================== Open-Sans - English Font =================== */
@font-face {
    font-family: 'OpenSans';
    src: url('./fonts/OpenSans/OpenSans-Light.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
}
@font-face {
    font-family: 'OpenSans';
    src: url('./fonts/OpenSans/OpenSans-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
}
@font-face {
    font-family: 'OpenSans';
    src: url('./fonts/OpenSans/OpenSans-Medium.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
}
@font-face {
    font-family: 'OpenSans';
    src: url('./fonts/OpenSans/OpenSans-Bold.ttf') format('truetype');
    font-weight: 900;
    font-style: normal;
}

/* =================== ROBOTO - English Font =================== */
@font-face {
    font-family: 'Roboto';
    src: url('./fonts/Roboto/Roboto-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
}
@font-face {
    font-family: 'Roboto';
    src: url('./fonts/Roboto/Roboto-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
}

/* =================== LANGUAGE-SPECIFIC STYLES =================== */
html[lang="ar"] body  , html[lang="en"] body {
    position: relative;
    display: block;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    height: auto;
    min-height: 100%;
    overflow-x: clip;
    font-size: 1rem;
    line-height: 1.6rem;
    color: #333;
    scroll-behavior: smooth;


}

html[lang="ar"] body {
     font-family: 'Cairo', 'OpenSans', sans-serif;
        direction: rtl;
}

html[lang="en"] body {
    font-family: 'OpenSans', 'Roboto', "Cairo", sans-serif;
    direction: ltr;
}

.page-wrapper {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 20px;
}

.header-container {
    direction: rtl;
    background-color: #fff;
    padding: 16px 0;
    border-bottom: 1px solid #eee;
}

.navbar-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}


.logo-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.logo img {
    height: 80px;
}

.logo-title p {
    font-size: 14px;
    line-height: 1.4;
    margin-top: 8px;
}

/* Navigation Links */
.nav-links {
    display: flex;
    gap: 24px;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    font-size: 18px;
    font-weight: 500;
    color: #333;
    padding: 8px 0;
}

.nav-links a.active {
    border-bottom: 2px solid #3FBFBE;
}

/* Button */
.nav-links button {
    background-color: #3FBFBE;
    color: white;
    padding: 14px 20px;
    margin: 8px 0;
    border: none;
    cursor: pointer;
    width: 100%;
    font-size: 16px;
    border: 0;
    border-radius: 45px;
}


   .nav-links {
    display: flex;
    gap: 1.5rem;
  }
.nav-links a {
    font-family: 'Cairo', 'Roboto', sans-serif;
    font-size: 16px;
    text-decoration: none;
    color: #111;
    font-weight: 400;
  }

.logo img {
    height: 56px;
    width: auto;
  display: block;
}


.hamburger {
    display: none;
    font-size: 24px;
    cursor: pointer;
}

.main-container,
.footer-container {
    padding: 40px 0;
}

/* Footer Example */
.footer-container {
    display: flex;
    flex-direction: column;

    align-items: center;
    color: white;
    background: #333;
    text-align: center;
    font-size: 14px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .logo img {
        height: 48px;
    }
}

@media (max-width: 768px) {
    .logo-text {
        flex-direction: column;
        align-items: center;
    }

    .logo img {
        height: 48px;
    }

    .logo-title p {
        font-size: 12px;
    }




    .nav-links a,
    .nav-links button {
        padding: 12px;
        width: 100%;
        text-align: center;
    }

    .overlap-container {
        max-width: 300px;
    }
    .rectangle {
        top: 8%;
        right: 8%;
    }
}

  
  .nav-links {
    display: flex;
    gap: 1.5rem;
  }
  
  .nav-links a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
  }
  
  .hamburger {
    display: none;
    font-size: 1.8rem;
    cursor: pointer;
  }
  
  @media (max-width: 768px) {
    .nav-links {
      display: none;
      flex-direction: column;
      position: absolute;
      top: 64px;
      right: 1rem;
      background-color: #fff;
      border: 1px solid #ddd;
      padding: 1rem;
      width: 200px;
        z-index: 100;
    }
  
    .nav-links.active {
      display: flex;
    }
  
    .hamburger {
      display: block;
    }
  }

input[type=text], input[type=password] {
    width: 100%;
    padding: 12px 20px;
    margin: 8px 0;
    display: inline-block;
    border: 1px solid #ccc;
    box-sizing: border-box;
}




button:hover {
    opacity: 0.8;
}

.cancelbtn {
    width: auto;
    padding: 10px 18px;
    background-color: #f44336;
}

.imgcontainer {
    text-align: center;
    margin: 24px 0 12px 0;
    position: relative;
}

img.avatar {
    width: 60%;
    border-radius: 10%;
}

.container {
    padding: 16px;
}

span.psw {
    float: right;
    padding-top: 16px;
}


.modal {
    display: none;
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgb(0, 0, 0);
    background-color: rgba(0, 0, 0, 0.4);
    padding-top: 60px;
    z-index: 101;
}

/* Modal Content/Box */
.modal-content {
    background-color: #fefefe;
    margin: 5% auto 15% auto;
    border: 1px solid #888;
    width: 80%;
    border-radius: 20px;
}

/* The Close Button (x) */
.close {
    position: absolute;
    right: 25px;
    top: 0;
    color: #000;
    font-size: 35px;
    font-weight: bold;
}

.close:hover,
.close:focus {
    color: red;
    cursor: pointer;
}
.alert-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    padding: 15px;
    margin: 20px;
    border-radius: 5px;
    text-align: center;
    font-weight: bold;
    transition: opacity 0.5s ease;
}
.alert-success.fade-out {
    opacity: 0;
}
/* Add Zoom Animation */
.animate {
    -webkit-animation: animatezoom 0.6s;
    animation: animatezoom 0.6s
}

@-webkit-keyframes animatezoom {
    from {
        -webkit-transform: scale(0)
    }
    to {
        -webkit-transform: scale(1)
    }
}

@keyframes animatezoom {
    from {
        transform: scale(0)
    }
    to {
        transform: scale(1)
    }
}

@media screen and (min-width: 800px) {
    .modal-content {
        width: 25%;
    }
}


@media screen and (max-width: 300px) {
    span.psw {
        display: block;
        float: none;
    }

    .cancelbtn {
        width: 100%;
    }
}
.section-title {
    font-size: 2rem;
    font-weight: bolder;
    text-align: center;
    margin-bottom: 50px;
    line-height: 1.3;
}

.about-section {
    text-align: center;
}

.about-section .title {
    font-size: 1.6rem;
}

.overlap-container {
    position: relative;
    width: 90%;
    max-width: 1140px;
    margin: 20px auto;
    aspect-ratio: 16/9;
}

.overlap-image {

    position: absolute;
    top: 7%;
    right: 5%;
    width: 90%;
    height: 90%;
    object-fit: cover;
    z-index: 1;
    border-radius: 0 20px 0 20px;}

.rectangle {
    position: absolute;
    top: 0;
    right: 0;
    width: 70%;
    height: 70%;
    background-color: #EBE4D2;
    border-radius: 0 20px 0 0;

}

.image-box-text {
    position: absolute;
    z-index: 2;
    background-color: white;
    width: 30%;
    top: 75%;
    left: 10%;
    padding: 20px 40px;
    border-radius: 20px;
    box-shadow: rgba(0, 0, 0, 0.35) 0px 5px 15px;
}
.who-we-section {
    width: 100vw;
    top: -200px;
    background-color: #f0f0f0;
    padding: 290px 0 100px 0;
    position: relative;
    overflow: hidden;
}
.who-we-section .text-wrapper {
    font-size: 1.5rem;
    line-height: 1.7;
    margin: auto;
    width: 50%;
    text-align: center;
}
.team-section {
    max-width: 1440px;
    margin: -150px auto;
    padding: 20px;
}



.team-section-title {
    text-align: center;
    color: #333;
}

.team-image-wrapper {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-top: 100px;
}

.image-card {
    width: 30%;
    height: 350px;
    margin: 15px 0;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    opacity: 0;
    transform: translateY(50px) scale(0.9) rotate(-5deg);

}

.image-card:hover {
    transform: translateY(-10px);
    transition: transform 0.3s ease;
}

/* Image container */
.stu-image {
    height: 350px; /* Image height */
    overflow: hidden; /* Prevent image from overflowing */
    width: 100%;
    position: relative;
}

/* Image itself */
.stu-image img {
    width: 100%;
    height: 100%;
    object-fit:cover;
}


.stu-image-text {
    position: relative;
    top: -50px;
    width: 70%;
    padding: 15px;
    margin: auto;
    background-color: #fffe;
    text-align: center;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: center;
    transform: translateY(0);
    transition: transform 0.5s ease;
}


.image-card:hover .stu-image-text {
    transform: translateY(-70px);
}


    /* Text styling */
.stu-name {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 5px;
}

.stu-major {
    font-size: 14px;
    color: #444;
    margin-bottom: 10px;
}

.stu-contact {
    display: flex;
    justify-content: center;
    gap: 15px;
    font-size: 14px;
    color: #555;
}
.contact-item {
    display: flex;
    align-items: center;
    margin-top: 5px;
    gap: 8px; /* space between icon and text */
    font-size: 14px;
    color: #555;
}

.icon {
    width: 20px;
    height: 20px;
    color: #3FBFBE;
}

.contact-section {
    margin: 250px 0 auto;
    background-color: #e9e9e9;
}

.contact-wrapper {
    position: relative;
    height: fit-content;
    padding-bottom: 50px;
    overflow: hidden; /* Ensure child doesn't leak out */
}

/* Pseudo element for background */
.contact-wrapper::before {
    content: "";
    position: absolute;
    inset: 0;
    background: url("./images/just2.jpg") center/cover no-repeat fixed;
    filter: grayscale(100%);
    z-index: 0;
}

/* Actual content stays on top */
.contact-wrapper > * {
    position: relative;
    z-index: 1;
}
/*.contacts-form-container {*/
/*    display: flex;*/
/*    width: 50%;*/
/*    height: 400px;*/
/*    margin: auto;*/
/*}*/

/*.contact-form , .contact-details {*/
/*        padding: 20px;*/
/*    text-align: center;*/

/*}*/
/*.contact-form {*/
/*    background-color: white;*/
/*    width: 65%;*/


/*}*/

/*.contact-details {*/
/*    background-color: #3FBFBE;*/
/*    width: 35%;*/

/*}*/


/*.contact-section {*/
/*    background: #f0f0f0;*/
/*    padding: 60px 20px;*/
/*    font-family: 'Arial', sans-serif;*/
/*}*/

/*.section-title {*/
/*    background-color: #e9e9e9;*/
/*    opacity: 0.95;*/
/*    color: #000;*/
/*    text-align: center;*/
/*    font-size: 3rem;*/
/*    margin: 50px auto;*/
/*    padding: 20px 0;*/
/*}*/

.contacts-form-container {
    display: flex;
    flex-wrap: wrap;

    max-width: 1000px;
    margin: 0 auto;
}

.contact-form,
.contact-details {
    text-align: center;
    flex: 1 1 300px;
    background: #fff;
    padding: 30px;
    box-shadow: 0 0 15px rgba(0,0,0,0.1);
    border-radius: 0 20px 0 20px;
}
.contact-details {
    text-align: center;
    color: #222;
    background: rgba(63, 191, 190);
}

.contact-form h2 {
    margin-bottom: 20px;
    font-size: 22px;
}

.form-group {
    margin-bottom: 20px;
    direction: rtl;
}

input[type="text"],
input[type="password"],
input[type="email"],
textarea {
    font-family: 'Cairo', 'OpenSans', sans-serif;
    width: 100%;
    border: none;
    border-bottom: 2px solid #ccc;
    padding: 10px 5px;
    font-size: 18px;
    background: transparent;
    color: #333;
    transition: border-color 0.3s;
    outline: none;
}

input:focus,
textarea:focus {
    border-bottom-color: rgb(63, 191, 190);
}

textarea {
    resize: vertical;
    min-height: 100px;
}

.form-check {
    text-align: right;
    margin-bottom: 20px;
    font-size: 14px;
    direction: rtl;
}

button[type="submit"] {
    font-family: 'Cairo', 'OpenSans', sans-serif;
    width: 100%;
    padding: 12px 0;
    background-color: rgb(63, 191, 190);
    color: #fff;
    border: none;
    font-size: 18px;
    font-weight: bolder;
    cursor: pointer;
    border-radius: 0 20px 0 20px;
    transition: background-color 0.3s;
}

button[type="submit"]:hover {
    background-color: rgba(63, 191, 190, 0.5);
}

#scrollToTopBtn {
    position: fixed;
    bottom: 40px;
    right: 30px;
    z-index: 99;
    background-color: #3FBFBE;
    color: white;
    border: none;
    padding: 16px 20px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0,0,0,0.2);
    display: none; /* Hidden by default */
    transition: opacity 0.3s ease;
}

#scrollToTopBtn:hover {
    background-color: #349e9d;
}


.contact-details h3 {
    margin-top: 0;
    font-size: 18px;
    margin-bottom: 10px;
}

.contact-details p {
    margin-bottom: 20px;
    line-height: 0.6;
}

/* Responsive */
@media (max-width: 768px) {
    .contacts-form-container {
        flex-direction: column;
    }
}

/* Tablet */
@media (max-width: 1024px) {
    .overlap-container {
        max-width: 700px;
        aspect-ratio: 16/10;
    }
    .overlap-image {
        top: 6%;
        right: 6%;
    }
    .who-we-section {
        top: 100px;
        padding: 200px 0;

    }

    .who-we-section .text-wrapper {
        width: 80%;

    }

    .image-card {
        width: 48%; /* Two cards per row */
    }
    .team-section{
        margin: 120px auto;
    }
    }

/* Mobile */
@media (max-width: 575px) {

    .overlap-container {
        max-width: 320px;
        aspect-ratio: 4/5;
    }
    .overlap-image {
        top: 8%;
        right: 8%;
    }
    .rectangle {
        width: 80%;
    }
    .image-box-text
    {
        width: 70%;
        left: 0px;
    }

    .image-card {
        width: 100%;
        margin: 10px 0;
    }


}

