:root {
    --primary-color: white;
    --secondary-color: #f0f0f0;
    --text-color: black;
    --section3: #d4d4d4;
    --section5: #fae8ff;
    --indigo-text: #4b0082;
}

.darkmode {
    --primary-color: black;
    --secondary-color: rgb(22, 22, 22);
    --text-color: white;
    --section3: rgb(22, 22, 22);
    --section5: rgb(22, 22, 22);
    --indigo-text: #6800b3;
}

@font-face {
    font-family: 'Microsoft Yi Baiti';
    src: url('../fonts/Microsoft-Yi-Baiti.woff2') format('woff2'),
       url('../fonts/Microsoft-Yi-Baiti.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap; /* Optional: improves loading behavior */
}

html {
    scroll-behavior: smooth;
}

/* General Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Body and Global Styling */
body {
    font-family: 'Urbanist', serif !important;
    /* Default font for English */
}

body[dir="rtl"] {
    font-family: 'Noto Naskh Arabic', serif !important;
    /* Font for Arabic */
}

.section1,
.section2,
.section3,
.section4,
.section5 {
    transition: ease-in-out 0.3s all;
}

.custom-dropdown {
    background-color: var(--primary-color) !important;
    border: none;
}

.dropdown-item {
    color: var(--text-color) !important;
}

/* Change dropdown items on hover */
.custom-dropdown .dropdown-item:hover {
    background-color: var(--indigo-text);
    color: white !important;
}

/* Specific color for logout */
.custom-dropdown .logout-item {
    color: #dc3545 !important;
}

.custom-dropdown .logout-item:hover {
    background-color: #dc3545;
    color: white !important;
}

.coloring {
    background: var(--primary-color);
    color: var(--text-color);
}

.modal-body {
    background-color: var(--primary-color);
    color: var(--text-color);
    border-radius: 5px;
}

#scrollTop {
    display: none;
    position: fixed;
    bottom: 20px;
    right: 30px;
    z-index: 999;
    font-size: 18px;
    border: none;
    outline: none;
    cursor: pointer;
    padding: 15px;
    transition: ease-in-out 0.3s all;
}

#scrollTop:hover {
    font-size: 23px;
}

#scrollTop svg {
    color: var(--text-color);
}

#themeSwitcher {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 20px;
}

#themeSwitcher svg {
    fill: var(--text-color);
}

#themeSwitcher svg:last-child {
    display: none;
}

.darkmode #themeSwitcher svg:first-child {
    display: none;
}

.darkmode #themeSwitcher svg:last-child {
    display: block;
}

.shadowBox {
    filter: drop-shadow(5px 0 0.4em rgba(0, 0, 0, 0.2));
}

.navContainer {
    background-image: url(../pics/backgroundMain.jpg);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    height: auto;
    display: flex;
    flex-direction: column;
    margin: 0 25px;
    border-radius: 20px;
}

.navbar-toggler {
    border: none !important;
}

.navbar-toggler:focus {
    box-shadow: none !important;
}

.navbar-toggler svg {
    fill: var(--text-color);
}

/* Navbar */
nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    padding: 1rem;
}

nav .indigoLogo {
    width: 70px;
    margin-left: 15px;
    object-fit: contain;
    overflow: visible !important;
    fill: var(--text-color);
}

.nav-links-middle {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    font-size: 1rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.mainContent {
    margin: 30px 150px;
    height: 100%;
    align-items: center;
    color: white;
}

#translateButton {
    padding: 0 10px;
}

.mainContent h1 {
    font-size: 3rem;
    font-weight: bold;
}

.descriptionTitle {
    margin-top: 30px;
    font-size: 1.85rem;
}

.achivementTitle {
    font-size: 1.143rem;
    margin-top: 30px;
    display: flex;
    justify-content: center;
}

.achivementTitle div {
    color: rgb(226, 226, 226);
    padding: 50px 50px 0 50px;
}

nav div .nav-item {
    margin: 0 5px;
    padding: 0 12px;
    transition: ease-in-out 0.3s all;
    border: 1px solid transparent;
    border-radius: 1000px;
}

nav div .nav-item .nav-link {
    padding: 10px 12px;
    text-decoration: none;
    color: var(--text-color);
}

nav ul li:hover,
nav ul li:focus-within {
    border-color: var(--text-color);
    cursor: pointer;
}

.joinUsLink {
    font-family: "Urbanist", serif;
    font-size: 1rem;
    padding: 10px 18px;
    border-radius: 1000px;
    border: 1px solid var(--text-color);
    transition: ease-in-out 0.3s all;
}

.joinUsLink:hover,
.joinUsLink:focus-within {
    background-color: var(--text-color);
    color: var(--primary-color);
    cursor: pointer;
}

.cntct {
    font-size: 1rem;
    padding: 10px 18px;
    border-radius: 1000px;
    background: none;
    color: var(--text-color);
    border: 1px solid var(--text-color);
    transition: ease-in-out 0.3s all;
}

.profileColor {
    color: var(--text-color);
    padding: var(--bs-nav-link-padding-y) var(--bs-nav-link-padding-x);
    font-size: var(--bs-nav-link-font-size);
    font-weight: var(--bs-nav-link-font-weight);
    border: 0;
    transition: color .15s ease-in-out, background-color .15s ease-in-out, border-color .15s ease-in-out;
}

.cntct:hover {
    background-color: var(--text-color);
    color: var(--primary-color);
    cursor: pointer;
}

/* Content */
.section1 {
    margin: 100px 400px;
}



.section1 h1 {
    text-align: center;
    font-size: 4rem;
    font-weight: bold;
}

.section1 p {
    text-align: center;
    margin-top: 40px;
    font-size: 1.5rem;
}

.vision {
    margin-top: 50px;
    text-align: center;
    display: flex;
    justify-content: center;
}

.vision i {
    color: white;
    background-color: var(--indigo-text);
    padding: 10px;
    width: 40px;
    height: 40px;
    align-content: center;
    border-radius: 50%;
    transition: ease-in-out 0.3s all;
}

.vision i:hover {
    width: 50px;
    height: 50px;
    font-size: 1.3rem;
}

.vision p {
    margin: 10px 30px;
}

.section2 {
    margin: 100px 400px;
}

.section2H4 {
    color: var(--indigo-text);
    font-size: 1.5rem;
}

.section2 h1 {
    font-size: 3rem;
    font-weight: bold;
    padding-top: 20px;
    padding-bottom: 20px;
}

.section2 p {
    font-size: 1.3rem;
    padding: 5px 0;
}

.section2Points {
    padding: 30px 0 0 30px;
    display: flex;
}

.section2Points h4 {
    font-size: 1.4rem;
    font-weight: bold;
}

.section2Points p {
    font-size: 1.1rem;
}

.section2Points i {
    color: white;
    background-color: var(--indigo-text);
    padding: 10px;
    width: 40px;
    height: 40px;
    align-content: center;
    border-radius: 50%;
    transition: ease-in-out 0.3s all;
}

.section2Points i:hover {
    width: 50px;
    height: 50px;
    font-size: 1.3rem;
}

.p20 {
    padding: 0 20px;
}

.section3 {
    background: var(--section3);
    padding: 100px;
}

.section3 a {
    text-decoration: none;
}

.section4 {
    margin: 100px 400px;

}

.section4 a {
    text-decoration: none;
}

.section4 h1 {
    font-weight: bold;
}

.flexContent {
    display: flex;
}

.servicesDiv {
    display: flex;
    justify-content: end;
    align-items: center;
}

.servicesButton {
    padding: 10px 30px;
    border-radius: 1000px;
    background-color: black;
    color: white;
    justify-content: center;
    transition: ease-in-out 0.3s all;
}

.servicesButton:hover {
    background-color: var(--indigo-text);
    cursor: pointer;
}

.aboutButton {
    padding: 10px 30px;
    border-radius: 1000px;
    background-color: black;
    color: white;
    justify-content: center;
    transition: ease-in-out 0.3s all;
}

.aboutButton:hover {
    background-color: var(--indigo-text);
    cursor: pointer;
}

.enrollPic img {
    margin: auto;
    border-radius: 50px;
    width: 500px;
}

.discEnroll h1 {
    font-size: 2rem;
    padding: 10px;
}

.flexColumns {
    display: flex;
    padding: 20px;
    align-items: center;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.flexColumns h1 {
    color: var(--indigo-text);
    font-weight: bold;
}

.flexColumns p {
    padding: 0 10px;
    font-size: 1.1rem;
}

.section5 {
    padding: 100px 0;
    background: var(--section5);
}

.adjust {
    display: flex;
    margin: 0 400px;
}

.textOverPhoto {
    margin: auto;
}

.empowerVision {
    border-radius: 50px;
    width: 500px;
    max-width: 100%;
    height: auto;
}

.cardImage {
    border-radius: 50px;
    width: 300px;
    transition: ease-in-out 0.3s all;
}

.cardImage:hover {
    width: 320px;
}

.discEmpowering {
    padding: 0 30px;
}

.discEmpowering h4 {
    padding-bottom: 10px;
}

.discEmpowering h1 {
    font-size: 3rem;
    font-weight: bold;
}

.discEmpowering p {
    padding: 10px;
}

.overlayPic {
    border-radius: 0 0 50px 50px;
    width: 100%;
}

.contactUs {
    background-color: #4b0082;
    display: flex;
    justify-content: space-evenly;
    padding: 70px;
}

.contactUs a {
    text-decoration: none;
}

.small {
    font-size: 0.8rem;
    padding: 10px 0;
}

.bold {
    font-size: 2.5rem;
    font-weight: bold;
}

.ContactForm {
    display: block;
    width: 100%;
    max-width: 400px;
    margin: auto;
}

.ContactForm label {
    color: white;
    font-weight: bold;
    margin-bottom: 5px;
}

.inputClasses {
    margin-bottom: 0.5rem;
    padding: 0.50rem;
    border: 2px solid transparent;
    border-radius: 5px;
    font-size: 1rem;
    width: 100%;
    transition: ease-in-out 0.3s all;
    background: var(--secondary-color);
    caret-color: var(--text-color);
}

.rounded-circle {
    object-fit: cover;
    width: 32px;
    height: 32px;
}

.inputClasses:focus {
    border-color: var(--indigo-text);
    outline: none;
}

.inputClasses:-webkit-autofill {
    -webkit-box-shadow: 0 0 0 1000px var(--secondary-color) inset !important;
    -webkit-text-fill-color: var(--text-color) !important;
    /* Adjust text color */
    border-color: var(--indigo-text);
}

.ContactForm button {
    width: 100%;
    padding: 10px;
    font-size: 16px;
    border: none;
    border-radius: 5px;
    background-color: black;
    color: white;
    cursor: pointer;
    transition: ease-in-out 0.3s all;
}

.ContactForm button:hover {
    background-color: white;
    color: black;
}

/* Footer */
footer {
    background: black;
    color: white;
    text-align: center;
    padding: 5rem;
}

.footerContainer {
    margin: 0.5rem 0;
    color: rgba(209, 209, 209, 0.548);
}

.footerContent {
    display: flex;
    justify-content: center;
    align-items: center;
}

.footerContent a {
    margin: 20px;
    color: white;
    text-decoration: none;
    cursor: pointer;
    transition: ease-in-out 0.3s all;
}

.footerContent p {
    margin: 20px;
}

.footerContent i {
    transition: ease-in-out 0.3s all;
    font-size: 1.3rem;
    cursor: pointer;
}

.footerContent a:hover {
    font-size: 1.1rem;
}

.footerContent i:hover {
    font-size: 1.5rem;
}

/* Mobile First Approach */
@media screen and (max-width: 1500px) {
    nav {
        margin: 0;
    }

    .cntct {
        text-align: left;
    }

    .mainContent {
        margin: 50px 30px;
    }

    .section1,
    .adjust,
    .section2,
    .section4 {
        margin: 30px 80px;
    }

    .section1 h1 {
        font-size: clamp(2rem, 0.8rem + 5.12vw, 4rem);
    }

    .section1 p {
        font-size: clamp(1rem, 0.7rem + 1.28vw, 1.5rem);
    }

    .adjust {
        display: block;
    }

    .textOverPhoto {
        display: flex;
        justify-content: center;
        margin-bottom: 20px;
    }

    .empowerVision {
        width: 100%;
        /* Adjust this as needed for specific layouts */
        max-width: 500px;
        /* Cap the max width */
    }

    .overlayPic p {
        font-size: clamp(0.75rem, 0.625rem + 0.533vw, 1.125rem);
        line-height: clamp(0.75rem, 0.417rem + 1.422vw, 1.75rem);
    }

    .section2H4 {
        font-size: clamp(0.75rem, 0.5rem + 1.067vw, 1.5rem);
    }

    .discEmpowering h1 {
        font-size: clamp(1rem, 0.333rem + 2.844vw, 3rem);
    }

    .section2 h1 {
        font-size: clamp(1rem, 0.333rem + 2.844vw, 3rem);
    }

    .section2 p {
        font-size: clamp(1rem, 0.9rem + 0.427vw, 1.3rem);
    }

    .section2Points h4 {
        font-size: clamp(1rem, 0.867rem + 0.569vw, 1.4rem);
    }

    .section2Points h5 {
        font-size: clamp(1rem, 0.917rem + 0.356vw, 1.25rem);
    }

    .flexContent {
        display: block;
    }

    .enrollPic img {
        margin-bottom: 20px;
    }

    .discEnroll h1 {
        font-size: clamp(1rem, 0.667rem + 1.422vw, 2rem);
    }

    .flexColumns {
        padding: 0;
    }

    .flexColumns p {
        font-size: clamp(0.75rem, 0.633rem + 0.498vw, 1.1rem);
    }

    .servicesDiv {
        display: flex;
        justify-content: center;
        /* Horizontally center */
        align-items: center;
        /* Vertically center */
    }
}

@media screen and (max-width: 990px) {
    .nav-links-middle {
        position: relative;
        left: 0;
        transform: none;
    }
}

@media screen and (max-width: 768px) {
    .achivementTitle {
        display: block;
        text-align: center;
    }

    .achivementTitle div {
        padding: 0;
    }

    .mainContent h1 {
        font-size: clamp(2rem, 1.4rem + 2.56vw, 3rem);
    }

    .descriptionTitle {
        font-size: clamp(1rem, 0.7rem + 1.28vw, 1.5rem);
    }

    .achivementTitle {
        font-size: clamp(1rem, 0.88rem + 0.512vw, 1.2rem);
    }

    .empowerVision {
        width: 100%;
        /* Adjust this as needed for specific layouts */
        max-width: 300px;
        /* Cap the max width */
    }

    .contactUs {
        display: block;
        padding: 30px;
    }

    .small {
        font-size: clamp(0.5rem, 0.375rem + 0.533vw, 0.875rem);
    }

    .bold {
        font-size: clamp(1.5rem, 1.167rem + 1.422vw, 2.5rem);
    }

    .footerContent {
        flex-direction: column;
        justify-content: center;
        align-items: center;
        text-align: center;
    }

    .footerContent a {
        margin: 10px;
    }

    .footerContent p {
        display: none;
    }

    .discEmpowering {
        padding: 0;
    }

    .section5,
    .section3 {
        padding: 30px 0;
    }

    .vision {
        display: block;
    }

    .section2Points {
        padding: 0;
        display: block;
    }

    .section2B {
        text-align: center;
        padding: 0 0 30px 0;
    }
    
    #themeSwitcher {
        padding: 15px 0 0 0;
    }
}