/*==============================*/
/*         Font-Faces            */
/*==============================*/

@font-face {
    font-family: "Rubik";
    src: url("/fonts/Rubik-Regular.ttf") format("truetype");
    font-weight: normal;
    font-style: normal;
}

/* Rubik Bold */
@font-face {
    font-family: "Rubik";
    src: url("/fonts/Rubik-Bold.ttf") format("truetype");
    font-weight: bold;
    font-style: normal;
}

/* Rubik Italic */
@font-face {
    font-family: "Rubik";
    src: url("/fonts/Rubik-Italic.ttf") format("truetype");
    font-weight: normal;
    font-style: italic;
}
/* Add padding or margin to the body/main content so it's not hidden under the navbar */
body,
main {
    padding-top: 45px; /* Adjust this value to match the height of your navbar */
}
/*==============================*/
/*        Header Section         */
/*==============================*/

.navbar {
    background-color: #eff3e6; /* Background color for the navbar */
}

.navbar-brand .logo {
    height: 65px; /* Adjust the logo height */
}

.nav-link {
    margin: 0 10px; /* Add spacing between menu links */
    font-size: 1rem; /* Adjust font size */
}

.navbar-nav {
    align-items: center; /* Center align the nav items */
    display: flex;
    flex-direction: row;
}

.active {
    font-weight: bold;
}

/* Hide mobile navbar on larger screens */
@media (min-width: 993px) {
    #navbarNavmob {
        display: none !important;
    }
}

/* Responsive adjustments for small screens */
@media (max-width: 992px) {
    .navbar-nav {
        flex-direction: column; /* Stack menu items vertically on smaller screens */
        align-items: flex-end; /* Align items to the end (RTL) */
    }

    .navbar-brand {
        margin-bottom: 10px;
    }

    .navbar-toggler {
        margin-right: auto; /* Move the toggler to the left (RTL) */
    }

    .navbar-collapse {
        justify-content: flex-end; /* Align collapsed items to the end (RTL) */
    }

    .navbar-nav .nav-item {
        width: 100%; /* Make each nav item take full width */
    }

    .nav-link {
        width: 100%; /* Make each link take full width */
        text-align: right; /* Align text to the right (RTL) */
        padding: 10px 15px; /* Add padding for better spacing */
    }
}

/*==============================*/
/*  Additional Styles for the Banner and Button (RTL) */
/*==============================*/
.banner-section {
    position: relative;
    text-align: center;
    color: white;
    overflow: hidden;
    width: 100vw;
    margin-right: calc(50% - 50vw);
}

.banner-background {
    width: 100%;
    height: auto;
}

.text-content-first {
    position: absolute;
    top: 72%; /* Button position remains consistent */
    right: 50%; /* Center the button */
    transform: translate(50%, -50%);
    z-index: 2;
}

.overlay-image-first {
    position: absolute;
    top: 55%;
    right: 40%;
    bottom: 0;
    transform: translate(50%, -50%);
    z-index: 1;
}

.overlay-image-first img {
    width: 1120px;
    height: auto;
}

.pre-register-btn-first {
    background-color: #c99fc9;
    border: 1px solid white;
    padding: 24px 142px;
    color: white;
    font-size: 1.7rem;
    font-family: "Arial", sans-serif;
    font-weight: bold;
    cursor: pointer;
    border-radius: 8px;
    display: inline-block;
    margin-top: 0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s ease;
}

/* Responsive Styles */

/* For Tablets */
@media (max-width: 992px) {
    .text-content-first {
        top: 72%;
        right: 50%;
        transform: translate(50%, -50%);
    }

    .pre-register-btn-first {
        padding: 18px 100px; /* Reduced button padding */
        font-size: 1.4rem; /* Slightly smaller font size */
    }
}

/* For Small Tablets and Large Mobile Devices */
@media (max-width: 768px) {
    .text-content-first {
        top: 72%;
        right: 50%;
        transform: translate(50%, -50%);
    }

    .pre-register-btn-first {
        padding: 14px 80px; /* Smaller button padding */
        font-size: 1.2rem; /* Smaller font size */
    }
}

/* For Mobile Devices */
@media (max-width: 576px) {
    .text-content-first {
        top: 72%;
        right: 50%;
        transform: translate(50%, -50%);
    }

    .pre-register-btn-first {
        padding: 1px 6px; /* Even smaller padding */
        font-size: 13px; /* Smaller font size */
    }
}

/* For Small Mobile Devices */
@media (max-width: 400px) {
    .text-content-first {
        top: 72%;
        right: 50%;
        transform: translate(50%, -50%);
    }

    .pre-register-btn-first {
        padding: 3px 0px; /* Smallest padding for small mobile devices */
        font-size: 13px; /* Smallest font size */
    }
}

.overlay-image {
    position: absolute;
    top: 40%; /* Adjust this value to position the overlay image vertically */
    right: 50%; /* Move the image slightly to the left for RTL */
    transform: translate(50%, -50%); /* Adjust transform to fit RTL layout */
    z-index: 1;
}

.overlay-image img {
    max-width: 100%;
    height: auto;
}

.text-content {
    position: absolute;
    top: 70%; /* Move the button lower */
    right: 50%; /* Move the button to the left for RTL */
    transform: translate(50%, -50%); /* Adjust transform to fit RTL layout */
    z-index: 2;
}

.pre-register-btn {
    background-color: #c99fc9; /* Matching the button color */
    border: 1px solid white;
    padding: 6px 55px; /* Adjust padding to match the design */
    color: #ffffff; /* Matching the text color */
    font-size: 1.7rem;
    font-family: "Arial", sans-serif; /* Ensure font matches */
    font-weight: bold;
    cursor: pointer;
    border-radius: 8px; /* Matching the border radius */
    display: inline-block;
    margin-top: 20px; /* Ensure proper spacing */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Adding slight shadow */
    transition: background-color 0.3s ease; /* Smooth transition for hover effect */
}

.pre-register-btn:hover {
    background-color: #c99fc9f5; /* Darker shade on hover */
}

/*==============================*/
/* Responsive Design for Banner and Button (RTL) */
/*==============================*/

@media (max-width: 992px) {
    .overlay-image {
        top: 35%; /* Adjust the image position for smaller screens */
        right: 50%;
        transform: translate(
            50%,
            -35%
        ); /* Adjust transform for smaller screens */
    }

    .text-content {
        top: 60%; /* Adjust button position for smaller screens */
        right: 50%;
        transform: translate(50%, -60%);
    }

    .pre-register-btn {
        font-size: 1.5rem; /* Slightly smaller font size for smaller screens */
        padding: 6px 45px; /* Adjust padding for smaller screens */
    }
}

@media (max-width: 576px) {
    .overlay-image {
        top: 30%; /* Adjust the image position for very small screens */
        right: 50%;
        transform: translate(50%, -30%);
    }

    .text-content {
        top: 55%; /* Adjust button position for very small screens */
        right: 50%;
        transform: translate(50%, -55%);
    }

    .pre-register-btn {
        font-size: 1.2rem; /* Even smaller font size for very small screens */
        padding: 4px 35px; /* Adjust padding for very small screens */
    }
}

/*==============================*/
/*       Vertical Menu Styles (RTL) */
/*==============================*/

.vertical-menu {
    background-color: #abaac5;
    color: #33347be4;
    text-align: right; /* Align text to the right (RTL) */
    margin: 30px;
}

.vertical-menu a i {
    display: none; /* Hide icons by default */
}

.vertical-menu a {
    display: block;
    padding: 8px 20px;
    text-decoration: none;
    color: inherit;
    border-bottom: 1px solid #f2f7e8;
    position: relative;
    transition: background-color 0.3s, color 0.3s;
}

.vertical-menu a.active {
    font-weight: bold;
}

.vertical-menu a.active i {
    display: inline; /* Show the icon for the active link */
}

.vertical-menu a:hover {
    color: #403d7a;
}

.vertical-menu a:hover i {
    display: inline; /* Show the icon when hovering over a link */
}

/* Responsive adjustments for the vertical menu */
@media (max-width: 768px) {
    .vertical-menu {
        margin-bottom: 20px; /* Add spacing below the menu on smaller screens */
    }
}

/*==============================*/
/*       Footer Section (RTL)          */
/*==============================*/

footer {
    background-color: #403d7a;
    color: #f2f7e8;
    padding: 20px;
    width: 100vw; /* Full width of the viewport */
    margin-right: calc(
        50% - 50vw
    ); /* Center the footer to make it full width */
    box-sizing: border-box;
    position: relative;
    bottom: 0;
    left: 0;
    right: 0;
    clear: both;
}

footer p {
    margin: 0;
    padding-top: 10px; /* Space between the menu and paragraph */
    text-align: right; /* Align text to the right (RTL) */
}

#footer-menu {
    list-style-type: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

#footer-menu li {
    display: inline;
    margin: 0 10px; /* Adjust spacing */
}

#footer-menu li a {
    color: #f2f7e8;
    text-decoration: none;
}

.separator {
    margin: 0 5px;
    color: #f2f7e8;
}

.footer-left {
    display: flex;
    flex-direction: column;
    align-items: flex-start; /* Align to the right for RTL */
    margin-left: 35px; /* Add right margin to the right section (RTL) */
}

.footer-right {
    text-align: right;
    flex: 1; /* Takes up available space */
    display: flex;
    justify-content: flex-end; /* Align left content */
    margin-right: 35px; /* Add left margin to the left section */
}

.social-icon {
    background-color: #f2f7e8;
    color: #3f3d7c;
    border-radius: 10%;
    padding: 5px;
    margin-left: 10px; /* Adjust margin for RTL */
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 25px;
    height: 25px;
    text-decoration: none;
    font-size: 15px;
    transition: background-color 0.3s, color 0.3s;
}

.social-icon:hover {
    background-color: #3f3d7c; /* Change on hover */
    color: #ffffff; /* Change text color on hover */
    text-decoration: none;
}

.social-icon svg path {
    fill: #3f3d7c; /* SVG icon color */
    transition: fill 0.3s;
}

.social-icon:hover svg path {
    fill: #ffffff; /* SVG color on hover */
}

.social-text {
    font-size: 1.25rem;
    color: #f2f7e8;
    font-weight: bold;
    margin-right: 10px; /* Adjust margin for RTL */
    text-align: end;
    margin-top: 12px;
}

/* Responsive Styles */
@media (max-width: 1200px) {
    .footer-left,
    .footer-right {
        align-items: center;
        text-align: center;
    }

    #footer-menu {
        justify-content: center;
    }

    .footer-right {
        justify-content: center;
    }

    .social-text {
        text-align: center;
        margin-top: 10px;
    }
}

@media (max-width: 768px) {
    .separator {
        display: none; /* Hide separators on smaller screens */
    }
    .footer-left,
    .footer-right {
        align-items: center;
        text-align: center;
        flex-direction: column;
    }

    #footer-menu {
        justify-content: center;
        text-align: center;
    }

    .footer-right {
        margin-top: 15px;
        flex-direction: column;
        align-items: center;
    }

    .social-icon {
        margin: 5px;
    }

    .social-text {
        margin-top: 10px;
    }
}

@media (max-width: 576px) {
    .footer-left,
    .footer-right {
        flex-direction: column;
        align-items: center;
    }

    .footer-right {
        margin-top: 15px;
        flex-direction: row; /* Ensure icons are in a row on small screens */
        justify-content: center; /* Center the icons */
    }

    .social-icon {
        margin: 5px;
        width: 30px;
        height: 30px;
        font-size: 20px; /* Reduce icon size */
    }

    .social-text {
        margin-top: 10px;
        text-align: center;
        width: 100%; /* Ensure the text is centered below icons */
    }
}

/* Large Screens */
@media (min-width: 1600px) {
    .footer-left,
    .footer-right {
        margin-bottom: 20px; /* Extra space */
    }
}

/*==============================*/
/*       Page Titles & Content   */
/*==============================*/

#pageTitle {
    color: #403d7a;
    font-weight: bold;
    margin-top: 25px;
    text-align: right; /* Align the title to the right (RTL) */
}

img {
    max-width: 100%;
    height: auto;
}

.content-area {
    text-align: justify;
    line-height: 1.5;
    font-family: "Rubik", sans-serif;
    padding: 20px;
    direction: rtl; /* Ensure the text direction is RTL */
}

.content-area h4 {
    text-align: right; /* Align the headings to the right (RTL) */
    font-size: 1.2rem;
    font-weight: bold;
    color: #be96c2;
}

.content-area p,
.content-area ul li {
    text-align: justify;
    font-family: "Rubik", sans-serif;
    font-size: 1rem;
    color: white;
    direction: rtl; /* Ensure the text direction is RTL */
}

/*==============================*/
/*       FAQ Page Styles (RTL)   */
/*==============================*/

.faq-content {
    background-color: #f2f7e8;
    padding: 20px;
    border-radius: 5px;
    direction: rtl; /* Ensure the text direction is RTL */
}

.faq-content h4 {
    font-size: 1.2rem;
    font-weight: bold;
    color: #403d7a;
    text-align: right; /* Align the headings to the right (RTL) */
}

.faq-item {
    margin-bottom: 20px;
}

.faq-item h5 {
    font-size: 1.2rem;
    font-weight: bold;
    color: #403d7a;
    text-align: right; /* Align the text to the right (RTL) */
}

.faq-item p {
    font-size: 1rem;
    color: #403d7a;
    text-align: right; /* Align the text to the right (RTL) */
}

/*==============================*/
/*    Search FAQ Styles (RTL)    */
/*==============================*/

.search-faq {
    background-color: #abaac5;
    padding: 20px;
    direction: rtl; /* Ensure the text direction is RTL */
}

.search-faq h5 {
    font-size: 1.2rem;
    color: #403d7a;
    margin-bottom: 10px;
    position: relative; /* Required for positioning the line */
    text-align: right; /* Align the text to the right for RTL */
}

.search-faq h5::after {
    content: ""; /* Empty content to generate the line */
    display: block;
    width: 100%; /* Full width */
    height: 2px; /* Thickness of the line */
    background-color: white; /* Line color */
    position: absolute;
    bottom: -8px; /* Adjust the position to control the space below the text */
    right: 0; /* Align the line to the right for RTL */
}

.search-faq .form-control {
    width: 100%;
    border-radius: 5px;
    margin-bottom: 10px;
    text-align: right; /* Align text input to the right for RTL */
}

.search-faq .btn {
    width: 100%;
    background-color: #abaac5;
    color: #fff;
}

.search-faq .btn:hover {
    background-color: #abaac5;
    color: #fff;
}

/*==============================*/
/*    ChatGPT Integration (RTL)  */
/*==============================*/

/* Floating Chat Icon */
.floating-chat-icon {
    position: fixed;
    bottom: 20px;
    left: 20px; /* Move the chat icon to the left for RTL */
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1000;
}

.floating-chat-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.chat-container {
    display: none; /* Hidden by default */
    flex-direction: column;
    position: fixed;
    bottom: 90px;
    left: 20px; /* Move the chat container to the left for RTL */
    width: 300px;
    max-width: 100%;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

.chat-header {
    font-size: 1em;
    font-weight: bold;
    text-align: center;
    padding: 10px;
    background-color: #7064e1;
    color: white;
    border-radius: 8px 8px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-header .header-icon {
    width: 25px; /* Adjust the width according to your icon size */
    height: 25px; /* Adjust the height according to your icon size */
}

.close-chat {
    color: white;
    font-size: 1.5em;
    text-decoration: none;
}

.chat-box {
    flex: 1;
    border: 1px solid #ccc;
    padding: 10px;
    height: 300px;
    overflow-y: auto;
    border-radius: 0 0 4px 4px;
    display: flex;
    flex-direction: column;
}

.message {
    margin: 5px 0;
    padding: 10px;
    border-radius: 10px;
    max-width: 80%;
    word-wrap: break-word;
}

.message.user {
    align-self: flex-start; /* Align messages to the start for RTL */
    background-color: #dcf8c6;
}

.message.assistant {
    align-self: flex-end; /* Align messages to the end for RTL */
    background-color: #f1f1f1;
}

.input-container {
    display: flex;
    padding: 10px;
    border-top: 1px solid #ccc;
}

.input-container input[type="text"] {
    flex: 1;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    text-align: right; /* Align input text to the right for RTL */
}

.input-container button {
    padding: 10px 20px;
    border: none;
    background-color: #7064e1;
    color: white;
    border-radius: 4px;
    margin-right: 10px; /* Adjust margin for RTL */
    cursor: pointer;
}

/*==============================*/
/*       Counter Banner Styles (RTL) */
/*==============================*/

.counter-banner {
    text-align: center;
    padding: 50px;
    background-size: cover;
}

.counter-img {
    width: 40%; /* Adjust as needed */
    height: auto;
    display: block;
    margin: 0 auto; /* Center the image horizontally */
    position: relative; /* Position relative to parent .counter-banner */
}

.counter-value {
    position: absolute;
    top: 60%;
    right: 50%; /* Move to the right for RTL */
    transform: translate(50%, -50%); /* Adjust transform for RTL */
    font-size: 3.5rem;
    font-weight: bold;
    font-family: "Rubik", sans-serif;
    color: #3d3f7c;
    z-index: 2;
    width: 100%;
    text-align: center;
    pointer-events: none; /* Ensure the text doesn't interfere with clicks */
}

.counter-label {
    font-size: 1.2rem;
    font-weight: bold;
    color: #3d3f7c;
    margin-bottom: 10px; /* Space between the label and the image */
    display: block; /* Ensure it stays above the image */
}

/*==============================*/
/*       Responsive Design       */
/*==============================*/

/* General mobile-first styles */
@media (max-width: 992px) {
    .counter-value {
        font-size: 1.5rem;
    }
    .facts-border {
        display: none;
    }
    .navbar-nav {
        flex-direction: column; /* Stack menu items vertically */
    }

    .navbar-brand {
        margin-bottom: 10px;
    }

    .navbar-nav .nav-item {
        width: 100%; /* Full width for nav items */
    }

    .nav-link {
        width: 100%;
        text-align: right; /* Align text right (RTL) */
        padding: 10px 15px; /* Increase padding for easier tapping */
    }

    .vertical-menu {
        margin-bottom: 20px; /* Space below vertical menu */
    }

    .footer-left,
    .footer-right {
        align-items: center;
        text-align: center;
        flex-direction: column;
    }

    .footer-right {
        margin-top: 15px;
        flex-direction: column;
        align-items: center;
    }

    .social-icon {
        margin: 5px;
        width: 30px;
        height: 30px;
        font-size: 20px; /* Reduce icon size */
    }

    .social-text {
        margin-top: 10px;
        text-align: center;
        width: 100%; /* Ensure text is centered below icons */
    }
}

@media (max-width: 576px) {
    .counter-value {
        font-size: 2.5rem;
    }
    .footer-right {
        flex-direction: row; /* Row layout for icons */
        justify-content: center; /* Center the icons */
    }

    .social-icon {
        margin: 5px;
        width: 30px;
        height: 30px;
        font-size: 20px; /* Smaller icon size */
    }

    .social-text {
        margin-top: 10px;
        text-align: center;
    }
}

/* Large Screens */
@media (min-width: 1600px) {
    .counter-value {
        font-size: 3.5rem;
    }
    .footer-left,
    .footer-right {
        margin-bottom: 20px; /* Extra space */
    }
}
