body {
    height: 100%;
    display: flex;
    flex-direction: column;
    margin: 0;
    font-family: "Cairo", sans-serif;
    background-image: url("/assist/background.png");
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    min-height: 100vh;
    object-fit: cover;
    background-size: 100% auto;
}

/*--------------------------------------- HEADER ---------------------------------------*/

.img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    cursor: pointer;
}

.icon {
    font-size: 1rem;
    cursor: pointer;
    margin-left: 15px;
}

/* General link styles */
.navbar-links {
    list-style: none;
    /* Remove default list styling */
    padding: 0;
    margin: 0;
    display: flex;
    gap: 70px;
    /* Space between links */
}

.navbar-links a {
    text-decoration: none;
    color: black;
    /* Default color for links */
    font-weight: 500;
    position: relative;
    /* Necessary for positioning ::after */
    padding: 5px 0;
    /* Space around the text (optional) */
    transition: color 0.3s ease;
}

.navbar-links a::after {
    content: "";
    display: block;
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    /* Thickness of the underline */
    background-color: black;
    /* Same color as text */
    transition: width 0.3s ease;
}

.navbar-links a.active::after {
    width: 100%;
    /* Match the width of the link text */
}

.navbar-links a:hover::after {
    width: 100%;
    /* Match the text width on hover */
}

.navbar-links a:hover {
    color: darkblue;
    /* Change link color on hover */
    text-shadow: 0 0 8px rgba(64, 129, 249, 0.8);
}

.navbar-links a.active {
    color: darkblue;
    /* Different color for the active link */
    text-shadow: 0 0 8px rgba(64, 129, 249, 0.8);
}

/* Adjust underline color in dark mode */
.dark-mode .navbar-links a::after {
    background-color: white;
}

.dark-mode .navbar-links a {
    color: white;
}

.dark-mode .navbar-links a.active {
    text-shadow: none;
}

.dark-mode .navbar-links a.active::after {
    background-color: white;
}

.navbar-dark-mode {
    background-color: #333 !important;
    color: white !important;
    direction: ltr;
}

.dark-mode .navbar-links .active::after {
    background-color: white;
}

.dark-mode {
    background-color: #121212;
    color: white;
}

.dark-mode .navbar-links a {
    color: white !important;
}

#smNavbar {
    background-color: #f8f9fa;
}

#smSearchBarContainer {
    padding: 10px;
    background-color: #f8f9fa;
}

#smimg {
    position: relative;
    right: 12px;
}

.no-scroll {
    overflow: hidden;
    height: 100%;
}

.sm-menu {
    position: fixed;
    top: 54px;
    left: -270px;
    width: 250px;
    height: 100%;
    background-color: #f8f9fa;
    box-shadow: 3px 6px 5px rgba(0, 0, 0, 0.5);
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    text-align: right;
    transition: left 0.3s ease;
    z-index: 1000;
}

.sm-menu.show {
    left: 0;
}

.sm-menu a {
    padding: 8px 16px;
    text-decoration: none;
    font-size: 1.2rem;
    color: #666;
    display: block;
    transition: color 0.3s ease;
    border-bottom: 1px solid #ddd;
}

.sm-menu a {
    text-decoration: none;
    color: #333;
    font-size: 1.2rem;
    padding: 10px 0;
    border-bottom: 1px solid #ddd;
    transition: color 0.3s ease, text-shadow 0.3s ease;
}

.sm-menu a:hover {
    color: #30b4f1;
    text-shadow: 0 0 8px rgba(64, 129, 249, 0.8);
}

.sm-menu a.active {
    color: darkblue;
    text-shadow: 0 0 8px rgba(64, 129, 249, 0.8);
}

#smSearchIcon {
    font-size: 1.5rem;
    cursor: pointer;
    color: #666666;
    position: relative;
    left: 90px;
}

#smimg {
    object-fit: contain;
    cursor: pointer;
    position: relative;
    left: 10px;
}

#smMenuIcon {
    font-size: 1.5rem;
    cursor: pointer;
    color: #666666;
    margin-right: 15px;
}

#smSearchIcon:hover,
#smMenuIcon:hover {
    color: rgb(50, 50, 225);
}

#smNavbar {
    background-color: #f8f9fa;
}

#smSearchIcon,
#smMenuIcon {
    font-size: 1.5rem;
    cursor: pointer;

    color: #666666;
}

#smSearchIcon:hover,
#smMenuIcon:hover {
    color: rgb(50, 50, 225);
}

.sm-menu a {
    text-decoration: none;
    font-size: 1.2rem;
    color: #333;
    padding: 10px 0;
    border-bottom: 1px solid #30b4f1;
}

.dark-mode #smNavbar {
    background-color: #333;
    color: white;
}

.dark-mode .sm-menu {
    background-color: #333;
}

.dark-mode .sm-menu a {
    color: white;
}

/*--------------------------------------- HEADER END ---------------------------------------*/

/*------------------------------------------ MAIN ------------------------------------------*/

main {
    flex: 1;
}

.overlay-container {
    background-image: url("/assist/main.png");
    background-size: cover;
    background-position: center;
    color: white;
    border-radius: 100px;
    padding: 60px;
    margin-top: 20px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 300px;
}

.overlay-content {
    padding: 20px;
    border-radius: 10px;
}

.title {
    font-size: 1.8rem;
    font-weight: bold;
}

.subtitle {
    font-size: 1rem;
}

.section_2 {
    margin-top: 100px;
}

.video-container {
    display: flex;
    justify-content: center;
    margin-top: 40px;
}

.video-title {
    text-align: right;
    direction: rtl;
    color: #2c6f9f;
}

.section_3 {
    margin-top: 120px;
}

.gallery-container {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 30px;
}

.gallery-item {
    flex: 1;
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0px 3px 2px rgba(0, 0, 0, 0.555);
    transition: flex 0.5s ease;
    height: 350px;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover {
    flex: 1.5;
}

.gallery-item:not(:hover) {
    flex: 0.85;
}

.gallery-item:hover img {
    transform: scaleX(1.1);
}

.overlay {
    position: absolute;
    bottom: 0;
    width: 100%;
    padding: 30px 30px 30px 30px;
    background-color: rgba(37, 131, 231, 0.7);
    color: white;
    text-align: center;
    font-size: 1rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover .overlay {
    opacity: 1;
}

.images-title {
    text-align: right;
    direction: rtl;
    color: #2c6f9f;
}

.section_4 {
    margin-top: 160px;
}

.rounded-custom {
    border-radius: 33px;
    overflow: hidden;
}

.custom-text {
    color: #30b4f1;
    line-height: 1.6;
    direction: rtl;
}

.custom-text-s {
    color: #2c6f9f;
    font-size: medium;
    font-weight: bold;
    direction: rtl;
}

.dark-mode .custom-text-s {
    color: white;
}

.small-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    box-shadow: 0px 3px 2px rgba(0, 0, 0, 0.555);
}

.large-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    box-shadow: 0px 3px 2px rgba(0, 0, 0, 0.555);
    object-position: -120px;
}

.image-container {
    display: flex;
    flex-direction: column;
    gap: 0px;
}

.large-image-container {
    flex: 1;
    padding-left: 10px;
}

.section_5 {
    margin-top: 160px;
    direction: rtl;
}

.large-image2 {
    width: 100%;
    height: 100%;
    object-fit: cover;
    box-shadow: 0px 3px 2px rgba(0, 0, 0, 0.555);
    margin-left: 60px;
}

.custom-text2 {
    color: #30b4f1;
    line-height: 1.8;
    direction: rtl;
}

.custom-text-s2 {
    color: #2c6f9f;
    font-size: medium;
    font-weight: bold;
    direction: rtl;
}

.dark-mode .custom-text-s2 {
    color: white;
}

.section_6 {
    margin-top: 180px;
}

.image-tile1 {
    width: 280px;
    height: 200px;
    object-fit: cover;
    border-radius: 33px;
    box-shadow: 0px 3px 2px rgba(0, 0, 0, 0.555);
}

.image-tile2 {
    width: 240px;
    height: 280px;
    margin-right: 55px;
    object-fit: cover;
    border-radius: 33px;
    box-shadow: 0px 3px 2px rgba(0, 0, 0, 0.555);
    margin-left: 40px;
}

.image-tile3 {
    width: 320px;
    height: 230px;
    object-fit: cover;
    border-radius: 33px;
    box-shadow: 0px 3px 2px rgba(0, 0, 0, 0.555);
    margin-bottom: 0;
}

.image-tile4 {
    width: 260px;
    height: 280px;
    object-fit: cover;
    border-radius: 33px;
    box-shadow: 0px 3px 2px rgba(0, 0, 0, 0.555);
}

.custom-text3 {
    color: #30b4f1;
    line-height: 1.8;
    direction: rtl;
}

.custom-text-s3 {
    color: #2c6f9f;
    font-size: medium;
    font-weight: bold;
    direction: rtl;
}

.dark-mode .custom-text-s3 {
    color: white;
}

.section_7 {
    margin-top: 160px;
    direction: rtl;
}

.large-image3 {
    width: 100%;
    height: 80%;
    object-fit: cover;
    box-shadow: 0px 3px 2px rgba(0, 0, 0, 0.555);
    margin-left: 60px;
}

.custom-text4 {
    color: #30b4f1;
    line-height: 1.8;
    direction: rtl;
}

.custom-text-s4 {
    color: #2c6f9f;
    font-size: medium;
    font-weight: bold;
    direction: rtl;
}

.dark-mode .custom-text-s4 {
    color: white;
}

@media (max-width: 576px) {
    .overlay-container {
        margin-top: 10px;
        padding: 20px;
        height: 170px;
    }

    .overlay-content {
        padding: 15px;
    }

    .title {
        font-size: 1.4rem;
    }

    .subtitle {
        font-size: 0.9rem;
    }

    .section_2 {
        margin-top: 40px;
    }

    .video-title {
        text-align: right;
        direction: rtl;
        color: #2c6f9f;
        font-size: 1.2rem;
    }

    .section_3 {
        margin-top: 70px;
    }

    .images-title {
        text-align: right;
        direction: rtl;
        color: #2c6f9f;
        font-size: 1.3rem;
    }

    .gallery-item {
        flex: 1;
        position: relative;
        overflow: hidden;
        border-radius: 15px;
        box-shadow: 0px 3px 2px rgba(0, 0, 0, 0.555);
        transition: flex 0.5s ease;
        height: 180px;
    }

    .overlay {
        position: absolute;
        bottom: 0;
        width: 100%;
        padding: 0px;
        background-color: rgba(37, 131, 231, 0.7);
        color: white;
        text-align: center;
        font-size: small;
        opacity: 0;
        transition: opacity 0.3s ease;
    }

    .section_4 {
        margin-top: 80px;
    }

    .image-section4 {
        margin-left: 15px;
    }

    .custom-text {
        color: #30b4f1;
        font-size: 1.2rem;
        direction: rtl;
        position: relative;
        bottom: 360px;
    }

    .custom-text-s {
        color: #2c6f9f;
        font-size: 0.91rem;
        font-weight: bold;
        direction: rtl;
    }

    .section_5 {
        margin-top: 140px;
    }

    .image-section5 {
        margin-right: 30px;
    }

    .custom-text2 {
        color: #30b4f1;
        font-size: 1.2rem;
        direction: rtl;
        position: relative;
        bottom: 290px;
    }

    .custom-text-s2 {
        color: #2c6f9f;
        font-size: 0.91rem;
        font-weight: bold;
        direction: rtl;
    }

    .section_6 {
        margin-top: 120px;
    }

    .image-tile1 {
        width: 230px;
        height: 150px;
        margin-top: 50px;
        object-fit: cover;
        border-radius: 33px;
        box-shadow: 0px 3px 2px rgba(0, 0, 0, 0.555);
    }

    .image-tile2 {
        width: 160px;
        height: 200px;
        margin-right: 40px;
        object-fit: cover;
        border-radius: 33px;
        box-shadow: 0px 3px 2px rgba(0, 0, 0, 0.555);
    }

    .image-tile3 {
        width: 160px;
        height: 200px;
        object-fit: cover;
        border-radius: 33px;
        box-shadow: 0px 3px 2px rgba(0, 0, 0, 0.555);
    }

    .image-tile4 {
        width: 230px;
        height: 150px;
        object-fit: cover;
        border-radius: 33px;
        box-shadow: 0px 3px 2px rgba(0, 0, 0, 0.555);
    }

    .custom-text3 {
        color: #30b4f1;
        font-size: 1.2rem;
        direction: rtl;
        position: relative;
        bottom: 480px;
    }

    .custom-text-s3 {
        color: #2c6f9f;
        font-size: 0.91rem;
        font-weight: bold;
        direction: rtl;
    }

    .section_7 {
        margin-top: 120px;
    }

    .image-section7 {
        margin-right: 30px;
    }

    .custom-text4 {
        color: #30b4f1;
        font-size: 1.2rem;
        direction: rtl;
        position: relative;
        bottom: 460px;
    }

    .custom-text-s4 {
        color: #2c6f9f;
        font-size: 0.91rem;
        font-weight: bold;
        direction: rtl;
        position: relative;
        bottom: 90px;
    }
}

/*---------------------------------------- MAIN END ----------------------------------------*/

/*----------------------------------------- FOOTER -----------------------------------------*/

.footer {
    background-color: #214d6d;
}

.footer-link {
    text-decoration: none;
    color: white;
    font-weight: 500;
}

.footer-text {
    font-size: 1rem;
    font-weight: bold;
    color: #1fa2ff;
}

.footer-icon {
    color: white;
    font-size: 1.2rem;
}

.footer-icon:hover {
    color: #ddd;
}

.footer .img {
    position: relative;
    left: 30px;
}

@media (max-width: 586px) {
    .footer {
        font-size: smaller;
    }

    .footer .col-md-6 {
        margin-top: 15px;
    }

    .footer .img {
        position: relative;
        left: 140px;
    }

    .footer-icon {
        margin-top: 5px;
    }
}

/*-------------------------------------- FOOTER END -----------------------------------------*/
