:root {
    --main-color: rgb(119, 195, 107);
    --second-color: #45494c;
}
body,
body * {
    color: var(--second-color) !important;
}

/*--------------------------global  styling ------------------------ */
.second-color {
    color: var(--second-color) !important;
}
.main-color {
    color: var(--main-color) !important;
}

/*--------------------------end global  styling ------------------------ */

/*-------------------------- Navbar styling ------------------------ */

/* Mobile dropdown button */
#mobileDropdownBtn {
    background-color: var(--main-color) !important;
    color: white !important;
    border: none !important;
    border-radius: 16px !important;
    padding: 8px 20px !important;
}

#mobileDropdownBtn i {
    font-size: 20px !important;
}

/* Mobile dropdown menu */
.custom-dropdown-menu {
    display: none; /* hidden by default */
    position: absolute;
    top: 100%;
    padding: 0.5rem;
    margin: 0;
    z-index: 1000;
    background: transparent;
    width: auto;
    border: none;

    /* Flex for mobile layout */
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

/* Dropdown items */
.custom-dropdown-menu .dropdown-item {
    background-color: var(--main-color);
    color: #fff;
    padding: 0.5rem 1rem;
    margin: 0.25rem 0;
    border-radius: 8px;
    text-decoration: none;
    cursor: pointer;
    width: max-content;
}

/* Dropdown item icons */
.custom-dropdown-menu .dropdown-item i {
    margin-right: 0.5rem;
}

/* Left/right positioning */
.dropdown-left {
    right: -100px;
    top: 35px;
}

.dropdown-right {
    left: -159px;
    top: 10px;
}

/* Mobile language button */
#mobileDropdownMenu a.dropdown-item:first-child {
    background-color: var(--second-color) !important;
    color: white !important;
    border-radius: 8px;
    padding: 0.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Globe icon */
.fa-globe {
    color: white !important;
    font-size: 20px !important;
}

/* Language toggle button */
.lang-switcher {
    background-color: var(--second-color) !important;
    color: white !important;
    border-radius: 50% !important;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 9px !important;
}

/* Site title and login button */
.pos,
.login {
    color: white !important;
    background-color: var(--main-color) !important;
    padding: 8px 28px !important;
    border-radius: 14px !important;
    font-size: 16px !important;
}
@media (min-width: 992px) {
    .navbar {
        position: absolute; /* Overlay content */
        top: 0; /* Stick to top */
        left: 0; /* Start from left edge */
        width: 100%; /* Full width */
        z-index: 1050; /* Ensure it stays above other content */
    }
}

/* Popup Overlay */
.popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.popup-overlay.show {
    display: flex;
}

/* Popup content */
.popup-content {
    position: relative;
}

/* Popup Image */
.popup-img {
    width: 400px;
    height: 400px;
    object-fit: cover;
    display: block;
}

.close-popup {
    color: white !important;
}

.close-btn {
    position: absolute;
    top: 14px;
    right: 20px;
    background: black;
    color: white !important;
    border: none;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

#open-popup {
    cursor: pointer;
}

/*-------------------------- End Navbar styling ------------------------ */

/*-------------------------- Features Section Styling ------------------------ */
.features-section {
    color: var(--second-color) !important;
    position: relative !important;
}

.feature-item {
    background-color: #eff1f1 !important;
    border-radius: 8px !important;
    width: 100% !important;
    height: 88px;
}

.feature-extra-title {
    font-weight: normal !important;
    font-size: 18px;
    color: black !important;
}

html[lang="ar"] .feature-left {
    text-align: end !important;
}

html[lang="ar"] .feature-right {
    text-align: start !important;
}

.feature-image img {
    max-width: 631px !important;
}

.feature-image {
    margin-top: 24px !important;
}

.features-title {
    margin-bottom: 135px !important;
    margin-top: 47px !important;
}

.bg-special {
    background-color: #77c36b1a !important;
}

/* Features Mobile adjustments */
@media(max-width: 767px) {
    .feature-line {
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
    }

    .feature-left,
    .feature-right {
        width: 100% !important;
        max-width: 100% !important;
        margin-bottom: 1rem !important;
    }

    .feature-right {
        display: block !important;
    }

    .col-2.d-none.d-md-block {
        display: none !important;
    }

    .feature-image {
        position: relative !important;
        top: auto !important;
        left: auto !important;
        transform: none !important;
        margin: 2rem auto !important;
    }

    .feature-image img {
        width: 100% !important;
        max-width: 100% !important;
    }
}

/*-------------------------- End Features Section Styling ------------------------ */

/*-------------------------- Hero Section Styling ------------------------ */
.hero-title {
    color: var(--second-color) !important;
    font-size: 31px !important;
}

/*-------------------------- End Hero Section Styling ------------------------ */

/*-------------------------- About Section Styling ------------------------ */

/*-------------------------- End About Section Styling ------------------------ */
