.floating-text {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    background-color: grey !important;
    color: #fff !important;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 14px;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    pointer-events: none;
    white-space: nowrap;
}

    .floating-text.show {
        opacity: 1;
    }

.content-box {
    margin-top: 0px !important;
}

.banner-3 .owl-carousel .owl-dots {
    bottom: 510px !important;
}

.footer-description {
    text-align: justify;
}

input[type="checkbox"].checkbox-style {
    border-radius: 50%;
}

.horizontal-sidebar {
    z-index: 5 !important;
}

.caption {
    top: 60% !important;
    z-index: 3 !important;
    left: 8% !important;
}

@media (max-width: 395px) {
    .banner-3 {
        margin-top: 179px !important;
    }

    .display-5 {
        font-size: large !important;
    }

    .faq-page-content {
        margin: 20px !important;
    }

    .contact-form {
        padding: 25px !important;
    }

    .contact-container {
        padding: 0 35px 50px 30px !important;
    }
}

.sort-type svg {
    fill: grey;
}

.sort-type.clicked svg {
    fill: #000000 !important;
}

.sort-type {
    cursor: pointer;
}

.home-content {
    margin-top: 0;
}

.cards-height {
    height: 200px !important;
    width: 240px !important
}

.bottom-left.cards-height {
    bottom: -135px !important;
}

.bottom-right.cards-height {
    bottom: -36px !important;
}

.mobile-view {
    display: none !important;
}

@media (max-width: 470px) {
    .mobile-view {
        display: flex !important;
        justify-content: center;
    }

    .desktop-view {
        display: none;
    }

    .cards-container .row {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr); /* Two columns even on mobile */
        gap: 12px; /* Tighter spacing for small screens */
    }

    .cards-container .col-6 {
        width: 100% !important; /* Override Bootstrap's 50% width */
        padding: 0; /* Remove Bootstrap's padding */
        max-width: 100%; /* Ensure full width */
    }

    .cards-container .card {
        margin: 0; /* Remove any default margins */
    }

    .bottom-left.cards-height, .top-left.cards-height, .top-right.cards-height, .bootom-right.cards-height {
        left: 43px;
    }

    .top-left.cards-height {
        top: 260px;
    }

    .bottom-right.cards-height {
        top: 500px;
        right: 95px;
    }

    .bottom-left.cards-height {
        top: 740px;
    }

    .crowdfunding {
        height: 1150px !important;
    }

    html[dir=rtl] .crowdfunding {
        height: 1035px !important;
    }
}


.crowdfunding {
    height: 705px;
}

.image-placeholder img {
    object-fit: contain;
}

.background-4 {
    z-index: -1;
}

.search-container .search-input, .search-container .search-input:focus {
    border: 1px solid var(--gray-color);
}

@media (max-width: 992px) {
    .navbar-nav {
        align-items: start;
    }

    .nav-item .dropdown-menu {
        left: 50px;
    }

    .nav-item:hover .dropdown-menu {
        display: none;
    }

        .nav-item:hover .dropdown-menu.show {
            display: block;
        }
}



.step-card.no-gradient {
    background: none;
    color: var(--text-color);
}


.steps .no-gradient h4 {
    color: var(--text-color);
}

.steps .no-gradient p {
    color: #757575 !important;
}

.grid-index {
    position: relative;
    z-index: 1;
}

/*.add-color .grid-index {
    height: 400px !important;
}*/

.add-color {
    position: relative;
    min-height: 370px;
}

    .add-color::before {
        content: "";
        position: absolute;
        background-color: var(--hero-section-color);
        height: 100%;
        width: 300vw;
        left: -3128px;
        z-index: 0;
    }
/*.add-color {
    height: 400px !important;
}

    .add-color::before {
        content: "";
        position: absolute;
        background-color: var(--hero-section-color);
        height: 370px;
        width: 120vw;
        left: -150px;
        z-index: 0;
    }*/
@media (max-width: 1000px ) and ( min-width: 450px) {

    /*.add-color {
        height: 750px !important;
    }*/

    .add-color {
        position: relative;
        flex-direction: column !important;
    }

        .add-color::before {
            height: 100%;
            width: 120vw;
            left: -110px;
        }
}

@media(max-width: 450px) {
    .add-color {
        position: relative;
        flex-direction: column !important;
    }

        .add-color::before {
            height: 100%;
            width: 120vw;
            left: -100px;
        }
}

.step-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: auto; /* Adjust naturally */
    min-height: 350px; /* Maintain minimum height */
    max-height: 500px; /* Prevent excessive growth */
    overflow: hidden; /* Handle overflow gracefully */
    color: white;
    height: 100%;
}

.steps .col-lg-3 {
    display: flex; /* Ensure consistent height for columns */
}

.steps .step-card {
    flex: 1; /* Stretch cards to equal height within the same row */
}

.text-justify {
    text-align: justify;
}

.footer-fs {
    font-size: 13px !important;
}

.success-storeis {
    margin-top: unset !important;
}

.main-image::after {
    background: linear-gradient(180deg, rgba(31, 31, 31, 0) 0%, rgb(31 31 31) 99.95%);
}

.sidebar {
    height: auto !important;
    top: 156px;
}

@media (max-width: 768px) {
    .main-content {
        margin-top: 270px !important;
    }

    .navbar-brand img {
        max-height: 75px;
    }
}

.sidebar.mobile {
    position: relative;
    top: 0;
}

@media (max-width: 395px) {

    .dropdown {
        margin-bottom: 2rem;
    }

    .sidebar.mobile {
        display: block !important;
    }

    .sidebar.desktop {
        display: none !important;
    }

    .nav-item .dropdown-menu.show {
        display: block;
    }
}

.card, .sidebar {
    box-shadow: 0px 0px 10px 0px #cac5c5;
}

.progress-bar-mobile {
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
    color: var(--bs-progress-bar-color);
    text-align: center;
    white-space: nowrap;
    background-color: var(--bs-progress-bar-bg);
    transition: var(--bs-progress-bar-transition)
}

@media (max-width: 480px) {
    .progress-bar-container {
        height: 18px;
    }

        .progress-bar-container .progress-bar, .progress-bar-container .progress-bar-mobile {
            font-size: 14px;
            color: white;
        }

    .profile-header {
        display: block;
    }
}

.section-content h2 {
    font-weight: bold;
}

#background-div::before {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    background: url('../assets/media/logo/imowazi-watermark.svg') repeat;
    background-size: 300px 100px;
    z-index: -1; /* Ensure it stays behind content */
}

.section-content p {
    color: black;
}

.section-content {
    z-index: 10;
    background-color: rgb(255 255 255 / 29%);
}

/*#register-section{
    margin-top: 150px;
}*/

.register-login-display {
    display: none !important;
}

.steps p {
    font-size: 14px !important;
}

.steps h5 {
    font-size: 16px !important;
}

@media (max-width: 695px) {
    .grid-banner .flex-row {
        flex-direction: column !important;
    }
}

body {
    margin: 0; /* Ensure no margin on the body causes layout issues */
}

html, body {
    width: 100%; /* Ensures full-width behavior */
    overflow-x: hidden; /* Prevents horizontal scrolling caused by any potential overflow */
}

#loader-div {
    z-index: -1;
}

.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 26px;
}

    /* Hide default HTML checkbox */
    .switch input {
        opacity: 0;
        width: 0;
        height: 0;
    }

/* The slider */
.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: 0.4s;
    border-radius: 26px;
}

    /* The circle inside the slider */
    .slider:before {
        position: absolute;
        content: "";
        height: 20px;
        width: 20px;
        left: 3px;
        bottom: 3px;
        background-color: white;
        transition: 0.4s;
        border-radius: 50%;
    }

/* Change background when checkbox is checked */
input:checked + .slider {
    background-color: var(--secondary-color);
}

    /* Move the circle when checked */
    input:checked + .slider:before {
        transform: translateX(24px);
    }

.raise-form {
    flex: 2;
    background: var(--white-color);
    padding: 40px;
    margin-bottom: 20px;
    border-radius: 10px;
    /* box-shadow: 0 0 10px rgba(0, 0, 0, 0.1); */
    border: 1px solid var(--gray-color);
    /* margin-top: 20px; */
    flex-wrap: wrap;
}

.raise-img {
    border-radius: 10px;
}

.custom-select {
    flex: 1 !important;
    width: 100% !important;
}

.raiseFundsForm input {
    flex: 1;
    padding: 10px;
    border: 1px solid var(--gray-color);
    border-radius: 10px;
    background-color: transparent;
    color: var(--text-color);
}

input[type="file"] {
    display: inline-block;
    height: 50px;
    vertical-align: middle;
}

.image-placeholder::before {
    opacity: 0.7
}

.image-carousel video {
    width: 100px;
    height: 100px;
    cursor: pointer;
    object-fit: cover;
    border: 2px solid transparent;
    border-radius: 8px;
    transition: border-color 0.3s ease;
}

.main-image img, .main-image video {
    width: 100%;
    height: 500px;
    display: block;
    object-fit: contain !important;
}

.main-image video {
    border-radius: 8px;
}


.custom-radio-checkbox input[type="radio"], .custom-radio-checkbox input[type="checkbox"] {
    appearance: none; /* Removes default styling */
    -webkit-appearance: none; /* For older browsers */
    width: 20px;
    height: 20px;
    border: 1px solid #b4b1b1;
    background-color: #dde4ff;
    border-radius: 3px; /* Adjust for rounded or square look */
    cursor: pointer;
    position: relative;
    transition: background-color 0.3s, border-color 0.3s;
    margin-right: 5px; /* Add some spacing between the radio buttons */
}

    .custom-radio-checkbox input[type="radio"]:checked, .custom-radio-checkbox input[type="checkbox"]:checked {
        background-color: #b4b1b1; /* Change this to your preferred color */
        border-color: #b4b1b1;
    }

        .custom-radio-checkbox input[type="radio"]:checked::after, .custom-radio-checkbox input[type="checkbox"]:checked::after {
            content: "\00A0\2713\00A0"; /* Unicode for check mark with spaces */
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%); /* Centers the check mark */
            font-size: 14px; /* Adjust the size to fit inside */
            color: #fff;
        }

.select2-container--default .select2-selection--single {
    height: calc(2.25rem + 2px) !important; /* Bootstrap input height */
    line-height: calc(2.25rem + 2px) !important;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
    border-right: 0;
}

    .select2-container--default .select2-selection--single .select2-selection__rendered {
        padding-top: 0.375rem !important;
        padding-bottom: 0.375rem !important;
        display: flex;
        align-items: center;
    }

/* Remove border issues */
.input-group .form-control {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

.raiseFundsForm .select2-container--default .select2-selection--single {
    height: 3rem !important;
    flex: 1;
    padding: 10px;
    border: 1px solid var(--gray-color);
    border-radius: 10px;
    border-top-right-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
    background-color: transparent;
    color: var(--text-color);
}

.badge-sharia {
    background-color: #29EFDB;
    color: white !important;
}

html[dir="rtl"] .target-label::before {
    right: 0 !important;
    left: unset !important;
}

html[dir="rtl"] .target-label p {
    margin-right: 17px;
}

html[dir="rtl"] .text-start.caption {
    text-align: right !important;
    left: 0 !important;
}

input.disabled {
    cursor: not-allowed !important;
}

input[type="text"].disabled {
    background-color: #d9d9d96b !important;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    top: 15px !important;
}

@media (max-width: 480px) {
    .input-group > .form-control, .input-group > .form-floating, .input-group > .form-select {
        width: 50% !important;
    }

    .mobile-flex {
        flex-direction: column;
    }
}

/* dropdown */
.profile-details.dropdown-toggle::after {
    content: unset;
}
/*profile*/
.profile-display {
    display: none !important;
}

.nav-link.profile-btn {
    border: unset;
}

.profile-btn:hover {
    cursor: pointer;
}

.bg-gray {
    background-color: var(--light-gray-color) !important;
}

.profile-btn.top {
    border-radius: 20px !important;
    border-radius: 20px !important;
    background-color: var(--light-gray-color) !important;
}

.profile-btn.bottom {
    border-radius: 20px !important;
    border-radius: 20px !important;
    background-color: var(--light-gray-color) !important;
}

.profile-btn.active {
    color: #fff !important;
    background-color: var(--secondary-color) !important;
}

.profile-tabs .tab-pane {
    background-color: #fff !important;
    border-radius: 20px !important;
}

.progress {
    background-color: #f0f2f5; /* Background for the entire bar */
    position: relative;
    height: 20px; /* Adjust as needed */
    border-radius: 10px;
}

.progress-bar {
    background: linear-gradient(to right, #00c6ff, #0072ff);
    color: white;
    font-weight: bold;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    white-space: nowrap; /* Prevents text wrapping */
    min-width: max-content; /* Ensures text is visible even if width is too small */
    padding: 0 5px; /* Prevents text from getting clipped */
}

.pages {
    margin-top: 130px;
    height: fit-content !important;
}

/* share buttons */
.sbuttons {
    position: absolute;
    inset-inline-end: 3.7rem;
    display: contents;
    flex-direction: row;
    gap: .2rem;
    z-index: 1;
}

.sbutton {
    display: block;
    text-align: center;
    color: #fff;
    margin: 0 auto 0;
    cursor: pointer;
    -webkit-transition: all .1s ease-out;
    transition: all .1s ease-out;
    position: relative;
    border-radius: 50%;
    height: 2.5rem;
    width: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center
}

    .sbutton path {
        fill: #fff
    }

    .sbutton.twitter {
        background-color: #000 !important
    }

    .sbutton.fb {
        background-color: #1e1b4b !important
    }

    .sbutton.copylink {
        background-color: var(--secondary-color) !important;
    }

    .sbutton.whatsapp {
        background-color: #25d366 !important
    }


    .sbutton.copylink svg {
        height: 1.7rem !important;
        width: auto;
        fill: #fff;
    }

    .sbutton.whatsapp svg {
        height: 1.7rem !important;
        width: auto
    }

    .sbutton svg {
        height: 1.2rem;
        width: auto
    }

.mainsbutton path {
    fill: var(--body_color)
}

.sbutton:not(:last-child) {
    padding: 2px;
    display: none;
    background-color: #fff;
    color: #fff;
    box-shadow: 0rem 0rem 1rem rgb(0,0,0,25%)
}

.sbuttons:hover .sbutton:not(:last-child) {
    order: 1;
    opacity: 1;
    display: flex;
    margin: 2px auto 0
}

.sbutton:not(:last-child):hover {
    background-color: var(--primary)
}

    .sbutton:not(:last-child):hover path {
        fill: #fff
    }

.sbutton:nth-last-child(1) {
    -webkit-transition-delay: 25ms;
    transition-delay: 25ms
}

.sbutton:not(:last-child):nth-last-child(2) {
    -webkit-transition-delay: 20ms;
    transition-delay: 20ms
}

.sbutton:not(:last-child):nth-last-child(3) {
    -webkit-transition-delay: 40ms;
    transition-delay: 40ms
}

.sbutton:not(:last-child):nth-last-child(4) {
    -webkit-transition-delay: 60ms;
    transition-delay: 60ms
}

.sbutton:not(:last-child):nth-last-child(5) {
    -webkit-transition-delay: 80ms;
    transition-delay: 80ms
}

.sbutton:not(:last-child):nth-last-child(6) {
    -webkit-transition-delay: .1s;
    transition-delay: .1s
}

.mainsbutton:nth-child(5) {
    order: 1; /* Moves this to the 2nd visual position */
}

/* ar css */
html[dir=rtl] .navbar .btn {
    font-size: 13px;
    padding: 5px 20px !important;
    font-weight: bold;
}

html[dir=rtl] .split-login-section::before {
    content: '';
    position: absolute;
    right: 80% !important;
    top: 51% !important;
    transform: translate(135%, -50%);
    width: 182px;
    height: 58px;
    background-color: transparent;
    border-radius: 100%;
    background: linear-gradient(280deg, var(--shadow-color), var(--secondary-color));
    border-radius: 0px 30px 30px 0px !important;
    margin-left: 30px !important;
    z-index: 1;
}

html[dir=rtl] .login-register-section {
    background-color: var(--secondary-color);
    padding: 10px;
    border-radius: 8px;
}

html[dir=rtl] .me-3 {
    margin-left: 1rem !important;
}

html[dir=rtl] .login-text {
    margin-right: 2px;
}


html[dir=rtl] .accordion-button::after {
    margin-right: auto;
    margin-left: unset;
}

.dropdown-menu {
    min-width: max-content; /*Ensures it fits long text */
    padding: 10px 0;
    white-space: nowrap; /*Prevents breaking of long text */
}

.mainsbutton {
    order: 0 !important;
}

@media print {
    html[dir=rtl] body {
        direction: rtl !important;
        text-align: right !important;
        -webkit-print-color-adjust: exact !important;
    }

    #download-page, .section-content {
        page-break-inside: auto;
        break-inside: auto;
    }
}

.border-radius {
    border-radius: 5px;
    box-shadow: 0px 0px 10px 0px #cac5c5;
}

/*loader*/
#loader {
    position: fixed;
    left: 50%;
    top: 50%;
    z-index: 1;
    width: 120px;
    height: 120px;
    margin: -76px 0 0 -76px;
    border: 16px solid #f3f3f3;
    border-radius: 50%;
    border-top: 16px solid #3498db;
    -webkit-animation: spin 2s linear infinite;
    animation: spin 2s linear infinite;
    display: none;
}

#loader-back {
    position: fixed;
    z-index: 9999;
    background-color: white;
    top: 0px;
    left: 0px;
    height: 100vh;
    width: 100vw;
    display: none;
    align-items: center;
    justify-content: center;
}

@-webkit-keyframes spin {
    0% {
        -webkit-transform: rotate(0deg);
    }

    100% {
        -webkit-transform: rotate(360deg);
    }
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Add animation to "page content" */
.animate-bottom {
    position: relative;
    -webkit-animation-name: animatebottom;
    -webkit-animation-duration: 1s;
    animation-name: animatebottom;
    animation-duration: 1s
}

@-webkit-keyframes animatebottom {
    from {
        bottom: -100px;
        opacity: 0
    }

    to {
        bottom: 0px;
        opacity: 1
    }
}

@keyframes animatebottom {
    from {
        bottom: -100px;
        opacity: 0
    }

    to {
        bottom: 0;
        opacity: 1
    }
}

#myDiv {
    display: none;
    text-align: center;
}

.btn-width {
    min-width: 128px !important;
}

html[dir=rtl] .text-start {
    text-align: start !important;
}

/*new section*/
.background-pattern {
    position: relative;
    background-image: url('../assets/media/images/Group 38.svg');
    background-repeat: no-repeat;
    background-position: top left;
    background-size: 500px 400px;
}

html[dir=rtl] .background-pattern {
    background-position: top right;
}

.title-background {
    position: relative;
    background-image: url('../assets/media/images/location-crosshairs_9243874.svg'), url('../assets/media/images/2.svg');
    background-repeat: no-repeat, no-repeat;
    background-position: top left, bottom right;
    background-size: 83px 83px, 178px 178px;
    border-radius: 12px;
}

.w-60 {
    width: 60% !important;
}

.background {
    position: relative;
}

    .background:before {
        background: linear-gradient(to left, var(--secondary-color), var(--text-aqua-color));
        position: absolute;
        color: #fff;
        content: "";
        position: absolute;
        height: 220px;
        width: 300vw;
        left: -3128px;
        z-index: 0;
    }

.content-index {
    position: relative;
    z-index: 1;
    color: #fff !important;
}

.title-border.white {
    width: 150px;
    height: 5px;
    background-color: #fff;
    border-radius: 8px;
    background: #fff !important;
}

.statistics-card {
    margin-block-start: -130px !important;
}

.disclaimer-alert {
    background: linear-gradient(to right, var(--secondary-color), var(--text-aqua-color));
    position: fixed;
    color: #fff;
    font-size: 14px;
    text-align: center;
    padding: 8px 36px;
    bottom: 0;
    width: 100%;
}

.phone-label {
    direction: ltr;
    position: absolute;
}

#retail-options .content-validation, #professional-options .content-validation, #qualified-options .content-validation, #iconfirm-options.content-validation {
    border: 1px solid #d9d9d9;
    border-radius: 8px;
    background-color: rgb(255 255 255 / 29%);
    color: var(--primary-color);
    margin-bottom: 10px;
}

.modal-dialog-scrollable .modal-body {
    overflow-y: hidden !important;
}

.cookie-alert {
    background-color: #fff !important;
    box-shadow: 0px 0px 10px 0px #cac5c5;
}

[dir="rtl"] .modal-header .btn-close {
    margin: calc(-.5 * var(--bs-modal-header-padding-y)) auto calc(-.5 * var(--bs-modal-header-padding-y)) calc(-.5 * var(--bs-modal-header-padding-x));
}

#invest-modal .modal-dialog-scrollable .modal-body, #terms-modal .modal-dialog-scrollable .modal-body {
    overflow-y: auto !important;
}

@media (min-width: 1396px) {
    .container {
        max-width: 1257px !important;
    }

    .steps .container {
        max-width: 1320px !important;
    }
}

body {
    user-select: none;
    -webkit-user-select: none; /* Safari */
    -moz-user-select: none; /* Firefox */
    -ms-user-select: none; /* IE10+/Edge */
}

.custom-radio-checkbox input[type="checkbox"] {
    display: inline-block;
}


.disclaimer-alert {
    max-height: 150px; /* Set your desired height */
    overflow-y: auto;
    padding-right: 10px; /* Optional: ensures scroll bar doesn't overlap text */
}

.largeImage {
    height: 440px !important;
}

@media (max-width: 470px) {
    .largeImage {
        height: 310px !important;
    }

    .banner #bannerCarousel .owl-stage-outer .owl-stage .owl-item .item img {
        object-fit: cover !important;
        object-position: left;
    }
}

.step-card {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    height: 100%;
}

    .step-card .mb-3 {
        display: flex;
        justify-content: center;
        min-height: 100px; /* adjust as needed */
        max-height: 120px;
    }

    .step-card .circle-number.mb-3 {
        display: flex;
        justify-content: center;
        min-height: unset; /* adjust as needed */
    }

    .step-card h5 {
        min-height: 60px; /* ensures all titles take same space */
        display: flex;
        justify-content: center;
        text-align: center;
    }

    .step-card p {
        flex-grow: 1;
        min-height: 80px; /* adjust based on longest paragraph */
    }

    .step-card img {
        max-height: 75%;
    }

@media (min-width: 1400px) {
    .header.container {
        max-width: 1479px !important;
    }
}

@media (max-width: 470px) {
    .disclaimer-alert .col-lg-2 {
        display: none;
    }
}

.pointer {
    cursor: pointer;
}

.register-back {
    background-color: unset !important;
    border: 0;
}

@media(max-width: 500px) {
    .carousel-caption .w-50 {
        width: 100% !important;
    }
}

.accordion-button {
    text-align: justify;
}

.register-login{
    display: none !important;
}
