.dropdown .btn:focus, .dropdown  .btn:hover {
    /*background-color: transparent;*/
}

.search-bar-container .dropdown-menu.show {
    margin-top: 19px !important;
}

.homepage_banner {
    display: flex;
    justify-content: flex-start;
    align-items: start;
    text-align: left;
    padding-top: 25px;
    position: relative;
    background-color: var(--primary-color);
    overflow-x: clip;
}
.homepage_banner .text-section {
    margin-top: 5%;
}

.homepage_banner .image-section {
    display: flex;
    justify-content: start;
}

.bg-size {
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}

.homepage-banner-title {
    font-size: clamp(1rem, calc(5em + 1vmin), 6rem);
    color: #fff;
    font-weight: bold;
    line-height: 1.2;
}

.homepage-banner-subtitle {
    font-size: 14px;
    line-height: 17.33px;
    letter-spacing: 0.2em;
    margin-bottom: 30px;
    text-transform: uppercase;
}

.homepage-banner-inner {
    color: #fff;
    z-index: 2;
    position: relative;
}

.homepage-banner-inner .homepage-banner-keyword {
    font-family: 'DM Serif Display', serif;
    font-weight: 600;
    font-style: italic;
}

.homepage-banner-details {
    font-size: clamp(1rem, calc(0.75em + 1vmin), 6rem);
    line-height: 31px;
    margin-bottom: 20px;
    margin-top: 20px;
}

.bottom-right-image {
    position: relative;
    /*min-width: 50vw;*/
    min-width: clamp(300px, 50vw, 100vw); /* Minimum 300px, adjusts dynamically up to 50% of viewport width, max 800px */
    height: auto;
    object-fit: cover;
}

.banner-right-image::before {
    content: "";
    background: transparent;
    /*background-size: clamp(300px, 50vw, 800px);*/
}

.search-bar {
    background-color: #fff;
    border-radius: 50px;
    padding: 4px 4px;
    /*padding: 0px;*/
    z-index: 4;
    /*height: 57px;*/
    /*overflow-x: hidden; !* To make sure all elements are within the rounded border *!*/
}

.search-bar input {
    border-radius: 50px;
}

.search-input-separate {
    position: relative;
}

.search-input-separate:before {
    content: '';
    display: block;
    border-left: 2px solid var(--primary-color);
    left: 0;
    height: -webkit-fill-available;
    height: auto;
    width: 1px;
    position: absolute;
    top: -11px;
    bottom: -10px;
}

.search-icon {
    background-color: transparent;
    border: none;
    padding: 10px;
    color: #999;
}

.search-input {
    border: none;
    outline: none;
    padding: 10px;
    border-radius: 0;
    width: 100%;
}

.search-input::placeholder {
    color: #999;
}

.search-btn {
    color: #fff;
    border-radius: 50px;
    padding: 14px 20px;
    font-weight: 600;
    border: none;
}

.search-btn-outside {
    display: none;
}

.search-bar-container.dropdown-toggle::after {
    display: none;
}

.dropdown-menu {
    border-radius: 12px;
    padding: 10px 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.dropdown-item {
    display: flex;
    align-items: center;
    padding: 10px 20px;
    color: #333;
    font-size: 14px;
}

.dropdown-item:hover {
    background-color: #f5f6f7;
}

.search-dropdown {
    padding: 0 10px 0 20px;
    border-radius: 50px 0 0 50px;
    background-color: #fff;
    width: 100%;
    justify-content: space-around;
    display: flex;
    border: none;
    font-weight: 700;
    font-size: 14px !important;
}

.search-icon {
    background-color: transparent;
    border: none;
    margin-top: 6px;
}

/* Remove background color change when button is clicked or focused */
.search-dropdown:focus,
.search-dropdown:active {
    background-color: #fff !important;
    outline: none;
    box-shadow: none;
}

.header-bottom-message-box {
    display: flex;
    justify-content: center;
    background-color: var(--secondary-color);
    /*height: 20em;*/
    position: relative;
    /*margin-top: -3%;*/
}

.about-section-box {
    background-color: var(--secondary-color);
    min-height: 250px;
    display: block;
}

.section {
    padding-bottom: 0px;
}

.home-cities-search-dropdown h2 {
    font-size: 2rem;
}

.home-cities-search-dropdown p {
    font-size: 1.1rem;
}

/* CSS for homepage banner cities dropdown */
.cities-dropdown-main {
    max-width: 900px;
    padding: 15px 5px 15px 5px;
}

.city-card-main {
    display: grid !important;
    grid-template-columns: repeat(auto-fill,
    minmax(200px, 1fr));
    grid-gap: 10px
}
.city-card img {
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    height: 160px;
    object-fit: cover;
}
.city-card {
    border: 1px solid #ddd;
    border-radius: 6px;
    overflow: hidden;
    transition: box-shadow 0.3s ease-in-out;
    padding: 0;
}
.city-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.city-card-img {
    width: 100%;
    width: -webkit-fill-available;
}
.impact-score {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 10px;
    color: var(--primary-color);
    background-color: #748B9D1A !important;
    border-radius: 6px;
    padding: 4px 6px 4px 8px;
}
.city-card-heading {
    margin-bottom: 5px;
    font-size: 0.875rem;
    font-weight: bold;
}
.city-card-heading-title {
    color: #6A6A6A;
    font-size: 0.775rem;
    margin-top: 2px;
    margin-bottom: 5px;
}
.impact-score .title {
    font-size: 12px;
    font-weight: 600;
    color: var(--primary-color);
}
.impact-score .value {
    font-size: 12px;
    background-color: var(--primary-color);
    color: #ffffff;
    border-radius: 5px;
    padding: 2px 5px;
}

.impact-score-box {
    border: 1px solid #d1d5db; /* Tailwind gray-300 */
    background-color: #ffffff;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 500;
    color: #374151; /* gray-700 */
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.impact-score-box .score-label {
    color: #000;
}

.search-btn:focus,
.search-btn:active {
    background-color: var(--secondary-color);
    color: var(--primary-color) !important;
    outline: none;
    box-shadow: none;
    text-decoration: none;
}

.impact-score-box .score-value {
    font-weight: bold;
    font-size: 0.95rem;
    color: #111827; /* gray-900 */
}

@media(max-width: 1920px) {
    .bottom-right-image {
        top: 0vh;
    }
}

@media(max-width: 1536px) {
    .bottom-right-image {
        right: 0;
    }
}

@media (max-width: 1280px) {
    .banner-right-image::before {
        content: "";
        background-image: url("/assets/images/grocery.png");
        background-size: clamp(300px, 100vw, 100vw);
        background-repeat: no-repeat;
        background-position-x: right;
        background-position-y: bottom;
        display: block;
        width: clamp(300px, 100vw, 800px);
        height: clamp(300px, 100vw, 800px);
        position: absolute;
        right: 0;
        z-index: 0;
        opacity: 0.5;
        bottom: 0px;
    }
    .homepage_banner .image-section .bottom-right-image {
        display: none;
    }
}

@media(max-width: 1024px) {
    .search-bar {
        position: relative;
        border-radius: 50px;
        width: 100%;
    }
    .search-btn-inside {
        display: block;
    }

    .main-banner-box {
        padding-top: 2em;
    }
    .homepage_banner .image-section {
        display: block;
        height: 10vh;
    }
}

@media(max-width: 991px) {
    .search-bar {
        position: relative;
        border-radius: 50px;
        width: 100%;
    }
    .search-btn-inside {
        display: none;
    }
    .search-btn-outside {
        display: block;
        background-color: var(--secondary-color);
        color: var(--primary-color);
        text-align: center;
        width: 100%;
        z-index: 2;
        margin-top: 10px;
        font-size: 14px;
    }

    .home-cities-search-dropdown h2 {
        font-size: 1.2rem;
    }

    .home-cities-search-dropdown p {
        font-size: 1rem;
    }
}

/* Responsive adjustments */
@media (max-width: 834px) {
    .homepage_banner {
        padding-top: 0vh;
    }
}

/* For tablets */
/* Responsive adjustments */
@media (max-width: 768px) {
    .bottom-right-image {
        top: 0vh;
    }
    .homepage_banner .image-section .bottom-right-image  {
        display: none;
    }
    .homepage_banner .image-section {
        display: block;
        height: 30vh;
    }
    .main-banner-box .image-section {
        justify-content: right;
    }

    .homepage_banner {
        padding-top: 0vh;
    }

    .homepage-banner-title {
        font-size: clamp(3rem, 1.5vw, 24px);
        color: #fff;
        font-weight: bold;
    }

    .search-input-separate {
        border-left: none;
        width: 100%;
    }

    .search-input {
        width: 100%;
        padding: 15px;
    }
    .main-banner-box {
        /*height: 95vh;*/
    }
    .homepage-banner-subtitle {
        font-size: 0.6rem;
    }
    .banner-right-image::before {
        content: "";
        background-image: url("/assets/images/grocery.png");
        background-size: clamp(300px, 100vw, 100vw);
        background-repeat: no-repeat;
        background-position-x: right;
        background-position-y: bottom;
        display: block;
        width: clamp(300px, 100vw, 800px);
        height: clamp(300px, 100vw, 800px);
        position: absolute;
        right: 0;
        z-index: 0;
        opacity: 1;
        bottom: 0px;
    }
    .homepage_banner .image-section .bottom-right-image {
        display: none;
    }
}

/* Adjustments for smaller screens */
@media (max-width: 576px) {
    .text-section, .image-section {
        text-align: center;
    }
    .search-bar-container {
        flex-direction: row;
        justify-content: center;
    }
    .search-btn-outside {
        margin-top: 10px;
    }

    .search-icon {
        margin-top: 2px;
    }
}

@media only screen and (max-width: 520px) {
    .city-card-main:not(.g-1):not(.g-2):not(.g-3):not(.g-4) > * {
        padding-left: 7.5px;
        padding-right: 7.5px;
        display: flex;
        border: 0;
    }
    .city-card img {
        width: 100px;
    }
    #cityDropdown {
        margin-top: 7px !important;
    }
    #cityDropdown .container {
        max-height: 300px;
        overflow: auto;
    }
}

/* Handle different orientations */
@media (max-width: 1280px) and (orientation: landscape) {
    .banner-right-image::before {
        content: "";
        background-image: url("/assets/images/grocery.png");
        background-size: clamp(300px, 70vw, 800px);
        background-repeat: no-repeat;
        background-position-x: right;
        background-position-y: bottom;
        display: block;
        width: clamp(300px, 100vw, 800px);
        height: clamp(300px, 100vw, 800px);
        position: absolute;
        right: 0;
        z-index: 0;
        opacity: 0.5;
        bottom: 0px;
    }
    .homepage_banner .image-section .bottom-right-image {
        display: none;
    }
}

@media (max-width: 1024px) and (orientation: landscape) {
    .bottom-right-image {
        top: 4vh;
        /*min-width: 69vh*/
    }
}

@media (max-width: 1024px) and (orientation: portrait) {
    .text-section, .image-section {
        width: 100%;
    }
    .bottom-right-image {
        /*min-width: 100%;*/
    }
}

@media (max-width: 991px) and (orientation: landscape) {
    .d-flex {
        flex-direction: row;
        justify-content: space-between;
    }

    .text-section, .image-section {
        /*flex: 1 1 50%;*/
        padding: 20px;
    }

    .bottom-right-image {
        top: 0vh;
        height: auto;
        object-fit: contain;
    }

    .btn, .btn-primary {
        font-size: 12px;
    }

    .search-btn-inside {
        display: none;
    }
    .search-btn-outside {
        display: block;
    }
    .homepage-banner-details {
        /*font-size: 0.75rem;*/
    }
    .main-banner-box {
        /*height: 107vh;*/
        /*min-height: 426px;*/
    }
    .homepage_banner .text-section {
        margin-top: 4%;
    }
}
@media (max-width: 1780px) and (orientation: portrait) {
    .text-section, .image-section {
        flex: 1 1 100%;
        /*padding: 20px;*/
    }
}

@media (max-width: 1559px) and (orientation: portrait) {
    .banner-right-image::before {
        content: "";
        background-image: url("/assets/images/grocery.png");
        background-size: clamp(300px, 90vw, 100vw);
        background-repeat: no-repeat;
        background-position-x: right;
        background-position-y: bottom;
        display: block;
        width: clamp(300px, 100vw, 100vw);
        height: clamp(300px, 100vw, 100vw);
        position: absolute;
        right: 0;
        z-index: 0;
        opacity: 0.5;
        bottom: 0px;
    }
    .homepage_banner .image-section .bottom-right-image {
        display: none;
    }
}

@media (max-width: 1180px) and (orientation: landscape) {
    .banner-right-image::before {
        content: "";
        background-image: url("/assets/images/grocery.png");
        background-size: clamp(300px, 60vw, 100vw);
        background-repeat: no-repeat;
        background-position-x: right;
        background-position-y: bottom;
        display: block;
        width: clamp(300px, 100vw, 100vw);
        height: clamp(300px, 100vw, 100vw);
        position: absolute;
        right: 0;
        z-index: 0;
        opacity: 0.5;
        bottom: 0px;
    }
    .homepage_banner .image-section .bottom-right-image {
        display: none;
    }
}

@media (max-width: 932px) and (orientation: landscape) {
    .banner-right-image::before {
        content: "";
        background-image: url("/assets/images/grocery.png");
        background-size: clamp(300px, 85vw, 100vw);
        background-repeat: no-repeat;
        background-position-x: right;
        background-position-y: bottom;
        display: block;
        width: clamp(300px, 100vw, 100vw);
        height: clamp(300px, 100vw, 100vw);
        position: absolute;
        right: 0;
        z-index: 0;
        opacity: 0.5;
        bottom: 0px;
    }
    .homepage_banner .image-section .bottom-right-image {
        display: none;
    }
}

@media (max-width: 852px) and (orientation: landscape) {
    .banner-right-image::before {
        content: "";
        background-image: url("/assets/images/grocery.png");
        background-size: clamp(300px, 100vw, 100vw);
        background-repeat: no-repeat;
        background-position-x: right;
        background-position-y: bottom;
        display: block;
        width: clamp(300px, 100vw, 800px);
        height: clamp(300px, 100vw, 800px);
        position: absolute;
        right: 0;
        z-index: 0;
        opacity: 0.5;
        bottom: 0px;
    }
    .homepage_banner .image-section .bottom-right-image {
        display: none;
    }
}

/* For mobile screens in landscape */
@media (max-width: 768px) and (orientation: landscape) {
    input, select, .input-group > .form-control, .input-group > .btn {
        height: 30px;
    }
    .search-input {
        padding: 5px 5px;
    }
    .homepage-banner-details {
        margin-bottom: 12px;
    }
    .search-icon {
        padding: 5px 10px;
    }
    .search-btn {
        padding: 10px 20px;
    }
}

@media (max-width: 650px) and (orientation: landscape) {
    input, select, .input-group > .form-control, .input-group > .btn {
        height: 30px;
    }
    .search-input {
        padding: 5px 5px;
    }
    .homepage-banner-details {
        margin-bottom: 12px;
    }
    .search-icon {
        padding: 5px 10px;
    }
    .search-btn {
        padding: 10px 20px;
    }
    .text-section, .image-section {
        flex: 1 1 100%;
        padding: 20px;
    }
}
