
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background: url('Images/BAU 1.JPG') no-repeat center center fixed;
    background-size: cover;
    direction: rtl;
    text-align: center;
    color: #fff;
}

html, body {
    height: 100%;
    display: flex;
    flex-direction: column;
}

/* Style for the entire navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #333;
    padding: 10px;
    color: rgb(255, 255, 255);
    font-family: "Zain", sans-serif;
    font-weight: bolder;
    width: 100%; /* Ensure navbar takes full width */
    box-sizing: border-box; /* Include padding in width calculation */
}

.courses {
    text-decoration: none ;
    color: rgb(209, 168, 32);
    background-color: rgba(0, 0, 0, 0.596);
    padding: 10px;
    border-radius: 14px; 
    box-shadow: 1px 1px 3px #222;
    transition: background-color 0.3s;
}

.courses:hover {
    background-color: rgba(56, 56, 56, 0.897);
}

/* Style for the sections inside the navbar */
.navbar .sections {
    display: flex;
    flex-grow: 1; /* Make sections fill available space */
    justify-content: space-around; /* Distribute space evenly */
    margin-left: 20px; /* Remove left margin to prevent shifting */
    margin-right: 20px; /* Adjust this margin to ensure space between sections and icons */
}

/* Style for the navigation links */
.navbar .sections a {
    display: inline-block; /* Ensure hover effect fits the text */
    color: rgb(255, 255, 255);
    text-decoration: none;
    padding: 10px 20px; /* Padding around text */
    font-size: 13px;
    border-radius: 10px; /* Rounded corners for hover effect */
    transition: transform 0.3s ease, background-color 0.3s ease, color 0.3s ease; /* Smooth transition for scaling */
}

/* Hover effect for navigation links */
.navbar .sections a:hover {
    background-color: #555; /* Background color on hover */
    color: #f1f1f1; /* Text color on hover */
    transform: scale(1.1); /* Scale text to 1.1 on hover */
    transition: transform 0.3s ease, background-color 0.3s ease, color 0.3s ease; /* Smooth transition for all effects */
}

.content {
    margin-top: 50px;
    width: 100%;
    flex: 1;
    margin-bottom: 30px;
}

.centered-text {
    font-family: 'Calibri', sans-serif;
    font-size: 11px;
    background: rgba(0, 0, 0, 0.5);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    display: inline-block;  /* Makes the background fit the text */
    text-align: center;
    line-height: 1.6;
    margin: 0 auto;
    font-family: "Lemonada", cursive;
    font-optical-sizing: auto;
    font-weight: 750;
    font-style: normal;
    margin-bottom: 10px;
}

.centered-text-two {
    font-family: 'Calibri', sans-serif;
    font-size:11px;
    background: rgba(0, 0, 0, 0.95);
    padding: 20px; 
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0);
    display: inline-block;  /* Makes the background fit the text */
    text-align: center;
    line-height: 1.6;
    margin: 0 auto;
    font-family: "Lemonada", cursive;
    font-optical-sizing: auto;
    font-weight: 200;
    font-style: normal;
    margin-top: 0px;
}

.image-container {
    margin: 10px auto;
    text-align: center;
}

img {
    height: auto;
}

.text-one {
    color: rgb(209, 168, 32);
}
.text-two {
    color: rgb(16, 157, 175);
}
.text-three { 
    color: rgb(103, 221, 148);
}
.text-four {
    color: rgb(255, 255, 255);
}
.text-five {
    color: rgb(28, 172, 88);
}

@media (max-width: 768px) {
    nav ul {
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }

    nav ul li a {
        padding: 10px 0;
    }

    .icons {
        justify-content: center;
        margin-top: 10px;
    }

    .text-container {
        width: 90%;
    }

    img {
        width: 100%;
    }
}

footer {
    background-color: #333;
    color: white;
    padding: 10px 0;
    width: 100%;
    text-align: center;
    margin-top: auto;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.socials {
    list-style: none;
    padding: 0;
    margin-top: 10px;
    display: flex;
    justify-content: space-between; /* Distribute the social icons evenly */
    width: 100%; /* Make the icons span the entire width of the footer */
}

.socials li {
    display: inline; /* Ensure the icons remain inline */
}

/* Targeting the Email link (first child) */
.socials li:nth-child(1) a {
    margin-right: 10px; /* Add margin to the right of the Email icon */
}

/* Targeting the Facebook link (third child) */
.socials li:nth-child(3) a {
    margin-left: 10px; /* Add margin to the left of the Facebook icon */
}

.socials a {
    font-family: "Playpen Sans", sans-serif;
    font-optical-sizing: auto;
    font-weight: 500;
    font-style: bold;
    color: rgb(255, 255, 255); /* Ensure text color matches the footer */
    text-decoration: none; /* Remove underline from the links */
    display: flex;
    align-items: center; /* Align text and image vertically */
    gap: 8px; /* Creates a small gap between text and image */
    transition: transform 0.3s ease, color 0.3s ease; /* Smooth transition for scaling */
}

.socials a:hover {
    color: #bebebe; /* Change color on hover */
    transform: scale(1.1); /* Scale both text and image */
    transition: transform 0.3s ease, color 0.3s ease; /* Smooth transition for both */
}

.socials a img {
    width: 20px;
    height: 20px;
    transition: inherit; /* Inherit the hover effect from the parent link */
}

.footer-content p {
    font-family: "Lemonada", cursive;
    font-size: 14px;
    margin-top: 10px;
    color: #ccc;
    text-align: center;
    font-weight: 900;
}
