body {
    width: 100%;
    margin: 0%;
    padding: 0%;
    overflow-x: hidden;
    font-family: 'Droid Arabic Kufi', sans-serif;
}

/* Unique Open Button positioned at the bottom right */
.login-btn-open {
    position: fixed;
    bottom: 20px;
    right: 59px;
    padding: 12px 24px;
    font-size: 18px;
    background-color: #2563eb;
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    z-index: 1000;
}

.input-fields {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    margin: 0.5rem 1rem;
    direction: rtl;
}

.input-fields input {
    padding: 6px 12px;
    border: 2px solid #d6dee0;
    border-radius: 5px;
    font-family: inherit;
}

.main {
    width: 100%;
}

.header_right_logo img {
    height: 75px;
}

.input-fields:focus-visible {
    border: 2px solid #d6dee0;
}

.confirm-btn {
    margin-top: 2rem;
    padding: 0.7rem 1rem;
    border: none;
    background-color: #4183d7;
    color: white;
    border-radius: 5px;
    cursor: pointer;
    transition: 0.3s ease;
    float: right;
    margin-right: 1rem;
}

.confirm-btn:hover {
    background-color: #336ab6;
}

.chkbox_button {
    align-items: center;
    width: 13%;
    display: flex;
    gap: 8px;
    border: 1px solid darkgray;
    border-radius: 5px;
    padding: 0.5rem 0.2rem;
    margin-right: 1rem;
}

.hidden_input {
    display: none;
    width: 93%;
    padding: 1rem 0rem;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 6px;
    margin-top: 1rem;
    transition: all 0.3s ease;
    margin-right: 1rem;
    margin-bottom: 1rem;
}

.input_chk_text {
    direction: rtl;
    margin-right: 1rem;
    font-size: 12px;
    color: red;
}

.chkbox_button input[type="checkbox"]:checked {
    background-color: #28a745; /* green fill */
    border-color: #28a745;
}

.chkbox_button input[type="checkbox"]:checked::after {
    content: "";
    position: absolute;
    top: 2px;
    left: 2px;
    width: 8px;
    height: 8px;
    background: white; /* white dot inside */
    border-radius: 50%;
}

.chkbox_button input[type="checkbox"] {
    appearance: none; /* removes default style */
    -webkit-appearance: none;
    -moz-appearance: none;
    width: 16px;
    height: 16px;
    border: 2px solid #ccc;
    border-radius: 50%; /* makes it a circle */
    display: inline-block;
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
}

@media (max-width: 480px) {
    .main {
        width: 112%;
    }

    .input-fields {
        margin: 1rem;
    }

    .hidden_input {
        width: 90%;
    }

    .chkbox_button {
        width: 25%;
        align-items: flex-start;
        padding: 0.5rem;
    }

    .confirm-btn {
        width: 20%;
        margin-right: 1rem;
        float: right;
    }

    .flex_box {
        display: flex;
        flex-direction: column;
        width: 100%;
        direction: rtl;
    }
}

@media (min-width: 481px) and (max-width: 768px) {
    .main {
        width: 112%;
    }

    .header_right_logo img {
        height: 70px;
    }

    .input-fields {
        width: 99%;
        margin-right: 2.5rem;
    }

    .chkbox_button {
        width: 40%;
    }

    .confirm-btn {
        width: 20%;
        margin-right: 1rem;
        float: right;
    }

}

@media (min-width: 769px) and (max-width: 853px) {
    .main {
        width: 112%;
    }

    .input-fields {
        margin: 2rem auto;
        width: 98%;
    }

    .hidden_input {
        width: 93%;
    }

    .chkbox_button {
        width: 30%;
    }

    .confirm-btn {
        width: 15%;
        float: right;
        margin-top: 1rem;
    }
}

.login-btn-open:hover {
    background-color: #1d4ed8;
}

.login-btn-open:hover {
    background-color: #1d4ed8;
}

/* Modal Container */
.login-modal-wrapper {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.fade-out {
    opacity: 0;
    transition: opacity 0.5s ease-out;
    display: none;
}

.login-modal-wrapper.active {
    display: flex;
}

.hidden_input {
    display: none;
    width: 93%;
    padding: 1rem 0rem;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 6px;
    margin-top: 1rem;
    transition: all 0.3s ease;
    margin-right: 1rem;
    margin-bottom: 1rem;
}

/* Modal */
.login-modal {
    background: white;
    border-radius: 16px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    width: 400px;
    max-width: 90%;
    padding: 2rem;
    position: relative;
    animation: fadeIn 0.3s ease;
    direction: rtl; /* Apply RTL direction only to the modal */
}

@media (max-width: 540px) {
    .main {
        width: 112%;
    }

    .chkbox_button {
        width: 100%;
        margin-right: 0;
    }

    .input_wrapper {
        width: 100%;
    }

    .hidden_input {
        width: 100%;
        margin-right: 0;
    }

    .confirm-btn {
        width: 100%;
        margin-right: 0;
    }
}

/* Modal Fade-in Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Close Button */
.login-close-btn {
    position: absolute;
    left: 1rem;
    top: 1rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Modal Header */
.login-header {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.login-header .login-blue-line {
    width: 8px;
    height: 40px;
    background-color: #2563eb;
    border-radius: 4px;
    margin-left: 0.8rem; /* Keep it left for RTL */
}

.login-header h2 {
    margin: 0;
    font-size: 1.5rem;
    color: #1f2937;
}

/* Modal Text */
.login-modal p {
    color: #4b5563;
    margin-bottom: 1.5rem;
}

/* Input Groups */
.login-input-group {
    margin-bottom: 1.2rem;
}

.login-input-group label {
    display: block;
    margin-bottom: 0.4rem;
    color: #1f2937;
    font-weight: bold;
}

.login-input-group input {
    width: 100%;
    padding: 0.6rem;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 1rem;
    text-align: right; /* Align text in inputs for RTL */
}

/* Submit Button */
.login-submit-btn {
    padding: 10px 20px;
    background-color: #2563eb;
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    cursor: pointer;
    width: 100%;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.login-submit-btn:hover {
    background-color: #1d4ed8;
    transform: scale(1.03);
}

.innerHeader {
    align-items: center;
    padding: 0 2.5rem;
    width: 93%;
    display: flex;
    justify-content: space-between;
}


.header {
    height: 15vh;
    background-image: linear-gradient(
        to bottom,
        rgba(255, 255, 255, 0) 70%,
        white 100%
    ),
    url("images/background2@2x.png");

}

.header_left_logo {
    padding: 1rem 9rem;
}

.header_right_logo {
    padding: 1rem 7rem;
}

.center_container {
    height: calc(100vh - 15vh); /* if header is 15vh high */
    padding: 1.5rem 0;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    overflow-y: auto;
}

.center_page_heading {
    display: flex;
    direction: rtl;
    width: 95%;
    align-items: center;
    float: right;
    padding-bottom: 1rem;
    border-bottom: 1px solid darkgray;
    gap: 1rem;
}

.flex_box {
    width: 100%;
    display: flex;
    direction: rtl;
    margin-right: 1rem;
    gap: 1rem;
}

._blue_line {
    width: 5px;
    height: 20px;
    background-color: #1d4ed8;
    margin-right: 1rem;
}

.center_page {
    width: 44%;
    height: 80%;
    background-color: rgb(255, 255, 255);
    border-radius: 5px;
}

.page_header {
    width: 100%;
    height: 13%;
    border-bottom: 1px solid #eceeee;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.page_button {
    padding: 0.5rem 1rem;
}

.page_button button {
    background-color: #4183d7;
    color: #fff;
    padding: 8px 15px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 12px;
    transition: background-color 0.3s;
    border: none;
    cursor: pointer;
    font-family: 'Droid Arabic Kufi', sans-serif;
}

.page_heading {
    margin-right: 20px;
    display: flex;
    padding: 0.5rem 1rem;
    font-weight: 600;
    font-size: 12px;
}

.blue_line {
    width: 5px;
    height: 25px;
    background-color: #4183d7;
    margin-top: 1rem;
}

.paragraph {
    width: 100%;
    border-bottom: 1px solid #eceeee;
    direction: rtl;
}

.paragraph p {
    margin-right: 33px;
    color: #000;
    font-size: 12px;
    line-height: 1.8;
    margin-bottom: 10px;
}

.page_main_content {
    width: 100%;
    height: 52%;
    display: flex;
}

.main_content {
    width: 100%;
}

.content_text {
    direction: rtl;
    font-size: 17px;
}

.span {
    font-weight: 700;
    font-size: 14px;
}

.span2 {
    font-size: 14px;
    color: rgb(39, 38, 38);
}

.content_text1 {
    direction: rtl;
    padding-right: 1rem;
}

.page_footer {
    flex-direction: column;
    height: auto;
    text-align: center;
    padding: 0.5rem 0;
}

.btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn button {
    position: relative;
    padding: 0.6rem 1rem;
    border: 2px solid #4183d7;
    background-color: #4183d7;
    color: white;
    cursor: pointer;
    font-size: 13px;
    margin-top: 5px;
    overflow: hidden;
    z-index: 1;
    transition: color 1s ease;
}

.btn button::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0%;
    height: 0%;
    background-color: white;
    transition: all 0.4s ease;
    z-index: -1;
    transform: translate(-50%, -50%);
    border-radius: 50%;
}

.btn button:hover::before {
    width: 250%;
    height: 250%;
}

.btn button:hover {
    color: #4183d7;
}

/* Trigger Button Style */
.open-modal-btn {
    position: relative;
    padding: 0.3rem 1rem;
    border: 2px solid #4183d7;
    background-color: #4183d7;
    color: white;
    font-size: 13px;
    cursor: pointer;
    margin-top: 5px;
    overflow: hidden;
    z-index: 1;
    transition: color 1s ease;
    display: inline-block;
    text-align: center;
}

.open-modal-btn::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0%;
    height: 0%;
    background-color: white;
    transition: all 1s ease;
    z-index: -1;
    transform: translate(-50%, -50%);
    border-radius: 50%;
}

.open-modal-btn:hover::before {
    width: 250%;
    height: 250%;
}

.open-modal-btn:hover {
    color: #4183d7;
}


/* Modal Overlay */
.modal {
    display: none;
    position: fixed;
    z-index: 999;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.5);
    direction: rtl;
}

/* Show modal when checkbox is checked */
#modal-toggle:checked ~ .modal {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Modal Box */
.modal-box {
    background: white;
    padding: 2rem;
    width: 50%;
    border-radius: 10px;
    position: relative;
}

/* Close Button */
.modal-close {
    position: absolute;
    left: 1rem;
    top: 1rem;
    font-size: 24px;
    cursor: pointer;
    color: #000;
}

/* Header */
.modal-header {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #ccc;
}

.blue-line {
    width: 6px;
    height: 25px;
    background-color: #4183d7;
    border-radius: 4px;
}

.modal-title {
    font-size: 20px;
    font-weight: bold;
}

/* Paragraph */
.modal-paragraph {
    font-size: 16px;
    margin-bottom: 1rem;
}

/* Input Fields */
.input-fields {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.input-fields input {
    padding: 0.6rem 1rem;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-family: inherit;
}

/* Confirm Button */
.confirm-btn {
    margin-top: 1.5rem;
    padding: 0.7rem 1.5rem;
    border: none;
    background-color: #4183d7;
    color: white;
    border-radius: 5px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s ease;
}

.confirm-btn:hover {
    background-color: #336ab6;
}

.footer {
    width: 100%;
    height: 18vh;
    background-image: linear-gradient(
        rgba(65, 131, 215, 0.9),
        rgba(65, 131, 215, 0.9)
    ),
    url("images/footer-backgroundImage.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer_content {
    width: 33%;
    height: 100%;
}

.footer_content1 {
    width: 33%;
    height: 100%;
    justify-content: center;
    align-items: center;
    text-align: center;
    place-items: center;
    color: white;
}

.footer_content2 {
    width: 33%;
    height: 100%;
    color: white;
    direction: rtl;
}

.icons {
    display: flex;
    gap: 0.7rem;
    margin-left: 7rem;
    margin-top: 2rem;
}

.footer_left_img img {
    width: 30px;
    height: 30px;
}

.footer_left_heading {
    margin-left: 7rem;
    color: rgba(255, 255, 255, 0.9);
    font-size: 12px;
    text-align: left;
}

.icon {
    padding: 5px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    background-color: #4183d7;
    padding-left: 7px;
    padding-right: 7px;
}

.error-box {
    top: 100%;
    position: relative;
    background-color: #f8d7da;
    color: #721c24;
    padding: 12px 20px;
    margin-top: 15px;
    border-radius: 6px;
    text-align: center;
    font-weight: bold;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* ------------ Tablet Devices (width up to 1024px) ------------ */

@media (max-width: 375px) {
    .main {
        width: 112%;
    }

    .header_right_logo {
        width: 120px;
    }

    .footer {
        width: 110%;
    }
}

@media screen and (max-width: 1024px) {
    .main {
        width: 100%;
    }

    .header {
        height: 13vh; /* reduced height on small screens */
        justify-content: flex-end; /* align right logo to the end */
        padding: 0 1.5rem; /* less padding on small screens */
    }

    .center_container {
        height: 624px;
    }

    .header_left_logo {
        display: none; /* hide left logo on small screens */
    }

    .header_right_logo {
        margin-top: 9px;
        padding-top: 0;
    }

    .center_page {
        width: 80%;
        height: auto;
    }

    .page_main_content {
        flex-direction: column;
        height: auto;
    }

    .main_content {
        width: 100%;
    }

    .footer {
        width: 100%;
        flex-direction: column-reverse;
        height: auto;
        text-align: center;
        padding: 1rem 0;
    }

    .footer_content,
    .footer_content1,
    .footer_content2 {
        /*width: 100%;*/
        margin-bottom: 1rem;
    }

    .icons {
        justify-content: center;
        margin: 2rem 0;
    }
}

/* ------------ Mobile Devices (width up to 768px) ------------ */
@media screen and (max-width: 768px) {
    .main {
        width: 126%;
    }

    .center_container {
        height: auto;
        padding: 1rem 0;
    }

    .footer {
        width: 110%;
    }

    .hidden_input {
        width: 92%;
    }

    .center_page {
        width: 90%;
        height: auto;
    }

    .page_header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 8px;
        padding: 0 35px;
    }

    .page_button {
        margin-top: 0.5rem;
    }

    .paragraph p {
        font-size: 12px;
    }

    .content_text {
        font-size: 13px;
        padding: 0 1rem;
    }

    .span2 {
        font-family: 'Droid Arabic Kufi', sans-serif;
        font-weight: normal;
    }

    .btn {
        flex-direction: row;
    }

    .btn button {
        width: 100%;
    }

    .footer_left_heading {
        text-align: center;
        margin-left: 0;
        margin-top: 1rem;
    }

    .icons {
        display: flex;
        flex-direction: row;
        direction: rtl;
        align-items: center;
        gap: 10px;
        text-align: center;
    }

    .footer_left_img {
        order: 2;
    }

    .icon {
        order: 1;
    }

    .footer_content2 {
        width: 100%;
         height: 64px;
        float: none !important;
        display: flex;
        flex-direction: column;
        align-items: center;
        /*padding: 2rem 1rem !important;*/
    }

    .footer_content2 .footer_logo img {
        width: 120px;
        height: auto;
    }
}

.footer-copyright {
    background: #fff;
    padding: 18px 0;
    text-align: center;
    width: 100%;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    position: relative;
    bottom: 0;
    left: 0;
    right: 0;
    margin-top: auto;
}

.footer-copyright p {
    margin: 0;
    color: #333;
    font-size: 13px;
    padding: 0 15px;
    word-wrap: break-word;
    font-weight: 500;
}
