@import url("https://fonts.googleapis.com/css2?family=Roboto:wght@400;700&family=Righteous&display=swap");
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+Arabic:wght@100..900&display=swap');

/* Navbar Styling */

div.section.main-slider {
    position: relative;

    .slider-main {
        visibility: hidden;
        opacity: 0;
        transition: opacity 1s;
    }

    .slider-main.slick-initialized {
        visibility: visible;
        opacity: 1;
    }

    .slider-main .item {
        display: none;
    }

    .slider-main .item:first-child {
        display: block;
        visibility: hidden;
    }

    .slider-main.slick-initialized .item {
        display: block;
        visibility: visible !important;
    }

    .slider.slider-main {
        opacity: 1;
        .slick-slide img {
            display: block;
            width: 100%;
        }
    }

    nav {
        position: absolute;
        top: 0;
        inset-inline-end: 0;
        z-index: 1;
        margin: 0px 0px 10px 0;
        padding: 7px 0;
        li {
            margin-inline-start: 20px;
            text-transform: uppercase;
        }
        .btn {
            font-weight: bold;
            border: none;
            padding: 12px;
        }
    }

    .slick-slider {
        margin-bottom: 0;
    }

    .slick-slide img {
        filter: brightness(85%);
    }
}

div.section.main-slider nav li a {
    font-size: 18px;
    font-weight: bold;
    color: #ffffff;
}

.overlay {
    display: none;
    position: fixed;
    top: 0;
    inset-inline-start: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.navbarr.active {
    background-color: gray !important;
    transition: background-color 0.3s ease;
}

/* The overlay is shown when the dropdown is visible */
.overlay.show {
    display: block;
}

.navbarr {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 auto;
    background-color: #fff;
    border-top: none;
    margin-top: 0;
    width: 100%;
}

.navbarr.active {
    border-top-color: gray;
}

.navv-left {
    display: flex;
    align-items: center;
    padding-inline-start: 0px;
}

.explore-btn {
    padding-top: 11px;
    padding-inline-end: 16px;
    padding-bottom: 11px;
    padding-inline-start: 31px;
    gap: 10px;
    border-top-right-radius: 8px;
    border-bottom-right-radius: 8px;
    margin-top: 14px;
    font-family: Roboto, "Cairo" !important;
    font-weight: 700;
    font-size: 18px;
    line-height: 24px;
    position: fixed;
    background: #202325;
    color: white;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
    transition: all 0.7s ease;
}

[dir="rtl"] .explore-btn {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
    border-top-left-radius: 8px;
    border-bottom-left-radius: 8px;
    inset-inline-start: 0;
}

[dir="rtl"] .explore-btn svg {
    transform: rotate(180deg);
}

.explore-btn span,
.explore-btn i {
    transition: opacity 0.5s ease, transform 0.5s ease; /* Hide the btn text smoothly */
}

.explore-btn.hide-text {
    width: 60px;
    height: 60px;
    justify-content: center;
    margin-top: 0px;
    margin-inline-start: -10px;
}

.explore-btn.hide-text span {
    opacity: 0;
    transform: scale(0);
}

.explore-btn.hide-text svg {
    display: inline;
    transform: translateX(-35px);
}

[dir="rtl"] .explore-btn.hide-text svg {
    display: inline;
    transform: translateX(35px) rotate(180deg);
}

.explore-btn:hover {
    background: #333;
}

.dropdown.show {
    display: block;
}

.dropdown {
    display: none;
    position: absolute;
    top: 100%;
    inset-inline-start: 0;
    background-color: #202325;
    color: white;
    padding: 10px 0;
    padding-bottom: 0px;
    padding-inline-start: 60px;
    border-radius: 7px;
    margin-inline-start: -19px;
    padding-inline-end: 20px;
    width: max-content;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 3;
    transition: all 0.5s ease;
}

.dropdown.show {
    display: block;
}

.dropdown-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 10px;
    color: white;
    font-size: 15px !important;
    margin-bottom: 10px;
}

.close-btn {
    cursor: pointer;
    font-size: 18px;
    margin-right: -20px;
}

.dropdown ul {
    list-style: none;
    padding-top: 10px;
    margin-inline-start: -40px;
    margin-inline-end: 50px;
}

.dropdown ul li {
    padding: 10px 0;
    cursor: pointer;
    font-weight: bold;
}

.dropdown ul li a {
    text-decoration: none;
}

.navv-right {
    display: flex;
    gap: 20px;
    align-items: center;
    padding-inline-end: 40px;
    padding-top: 10px;
    font-size: 15px;
}

.navv-right a {
    text-decoration: none;
    color: #58595b;
}

.navv-right .search .menu-icon {
    font-size: 22px;
    vertical-align: middle;
}

/* Hero Section */
.hero-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 675px;
    padding: 50px;
    background: #ffffff;
    width: 100%;
    background-image: url("/assets/img/background.png");
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
    background-attachment: scroll;
}

/* Swap image in RTL */
[dir="rtl"] .hero-section {
    background-image: url(/assets/img/background-rtl.png); /* Pre-mirrored image */
}

.hero-text {
    gap: 64px;
}

.rizq-word {
    margin-bottom: 40px;
}

.first-sec {
    gap: 64px;
}

.first-sec h1 {
    font-family: Roboto, "Cairo" !important;
    font-weight: 700;
    font-size: 64px;
    line-height: 100%;
    letter-spacing: 0%;
    color: #191919;
}

.second-p p {
    font-family: Roboto, "Cairo" !important;
    font-weight: 400;
    font-size: 18px;
    line-height: 24px;
    color: #72777a;
    margin-top: 50px;
    width: 70%;
}

.first-sec-btn {
    gap: 16px;
    margin-top: 50px;
}

.btn-request {
    height: 48px;
    padding-inline-end: 40px;
    padding-inline-start: 40px;
    border-radius: 17.07px;
    background: #fce295;
    border: none;
    font-size: 17.07px;
    font-weight: bold;
    text-decoration: none;
    margin-top: 10px;
    color: black;
    align-content: center;
    transition: background-color 0.3s ease;
}

.btn-request:hover {
    background-color: #f5d36d !important;
}

.btn-text {
    color: black !important;
    pointer-events: none;
}

.btn-learn {
    height: 48px;
    padding-right: 16px;
    padding-left: 16px;
    border-radius: 17.07px;
    border-width: 1.07px;
    border: 1.07px solid #fce295;
    font-size: 17.07px;
    font-weight: bold;
    text-decoration: none;
    color: black;
    margin-inline-start: 10px;
    margin-top: 10px;
    vertical-align: middle;
    align-content: center;
    pointer-events: auto;
    transition: all 0.3s ease;
}

/* Disable hover effect */
.btn-learn:hover {
    background-color: #ffebb1 !important;
    color: black !important;
    border: 1.07px solid #fde089 !important;
}

.hero-image {
    max-width: 733px;
    height: auto;
}

.hero-image img {
    width: 100%;
    height: auto;
}

/* .crowdfunding-h1 {
    font-size: clamp(52px, 5vw + 1rem, 64px) !important;
} */

.hide-text {
    transition: all 0.5s ease;
}

div.section.main-slider nav li {
    text-transform: capitalize;
}

#dropdownMenu ul li.s {
    margin-bottom: 20px;
}

@media (max-width: 768px) {
    .hero-section {
        flex-direction: column;
        gap: 28px;
        padding: 10px;
        justify-content: flex-start;
        min-height: 80vh;
        background-repeat: no-repeat;
        background-size: 490%;
        background-position: left;
        background-attachment: scroll;
    }

    [dir="rtl"] .hero-section {
        background-position: right;
    }

    .rizq-word {
        margin-bottom: 0;
    }

    .hero-image {
        max-width: 366px;
        height: auto;
        margin-top: 25px;
    }

    .first-sec h1 {
        font-size: 39.5px;
    }

    .first-sec-btn {
        display: flex;
        gap: 16px;
        margin-top: 40px;
        margin-inline-end: 50px;
        max-width: 50%;
        flex-direction: column;
    }

    .btn-request {
        width: 190px;
        height: 48px;
        padding: 0;
        margin-top: 10px;
        max-width: 95%;
    }

    .btn-learn {
        width: 122px;
        height: 48px;
        padding: 0;
        margin-inline-start: 0;
        margin-top: 4px;
        max-width: 70%;
    }

    .second-p p {
        font-family: Roboto, "Cairo" !important;
        font-weight: 400;
        font-size: 14.5px;
        line-height: 24px;
        color: #72777a;
        margin-top: 40px;
        width: 70%;
    }
}
