/* Scoped contrast and readability for the city section. */
.city-section .city-slide .content,
.city-section .city-swiper .swiper-slide .content {
    position: absolute;
    z-index: 3;
    inset-inline: 12px;
    bottom: 28px;
    padding: 18px 14px;
    border-radius: 8px;
    background: rgba(0, 0, 0, .82);
    color: #fff;
    text-align: center;
}

.city-section .city-slide .title,
.city-section .city-swiper .swiper-slide .title {
    position: static;
    inset: auto;
    display: block;
    padding: 0;
    color: #fff !important;
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.6;
    overflow-wrap: break-word;
}

.city-section .city-slide .desc,
.city-section .city-swiper .swiper-slide .desc {
    position: static;
    transform: none;
    width: 100%;
    color: #fff !important;
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.85;
    margin: 0;
    transition: opacity .2s ease;
}

.city-section .city-slide:hover .desc,
.city-section .city-slide:focus-visible .desc {
    opacity: 1;
    max-height: none;
    margin-top: 10px;
    overflow: visible;
}

.city-section .city-slide:focus-visible {
    flex: 6;
    outline: 3px solid #fff;
    outline-offset: -4px;
}

.city-section .city-slide .overlay {
    background: rgba(0, 0, 0, .2);
}

.city-section .city-slide:hover .overlay {
    background: rgba(0, 0, 0, .3);
}

.city-section .change-now-content {
    height: auto;
    min-height: 700px;
}

    .city-section .change-now-content .content {
        background: rgba(0, 0, 0, .82);
        padding: 20px;
        border-radius: 8px;
        text-align: start;
        gap: 16px;
        color: #fff;
    }

    .city-section .change-now-content h2 {
        font-size: 1.5rem;
        line-height: 1.6;
        font-weight: 700;
    }

    .city-section .change-now-content h4 {
        font-size: 1.0625rem;
        line-height: 1.8;
        margin-bottom: 8px !important;
    }

    .city-section .change-now-content p {
        font-size: 1rem;
        line-height: 1.9;
        opacity: 1;
        color: #fff;
    }

    .city-section .change-now-content .desc-sm {
        font-size: .9375rem !important;
        opacity: 1 !important;
        line-height: 1.75;
    }

    .city-section .change-now-content .title-sm {
        font-size: 1rem;
        font-weight: 700;
    }

    .city-section .change-now-content .num {
        font-size: 2.25rem;
        color: #fff;
        line-height: 1.3;
    }

    .city-section .change-now-content .stat img {
        width: 48px;
        height: 48px;
        object-fit: contain;
        background: #fff;
        border-radius: 50%;
        padding: 4px;
    }

@media (max-width: 768px) {
    .city-section .change-now-content {
        min-height: 0;
        padding: 16px;
    }

        .city-section .change-now-content .content {
            padding: 16px;
        }

    .city-section .city-swiper {
        height: 480px;
    }

        .city-section .city-swiper .swiper-slide .desc {
            opacity: 1;
            max-height: none;
            overflow: visible;
            margin-top: 10px;
        }

        .city-section .city-swiper .swiper-slide .content {
            bottom: 36px;
        }
}

.city-section .change-now-content {
    background-image: url('/new-imgs/change-now.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    isolation: isolate;
}

    /* طبقة خفيفة تحافظ على ظهور الصورة وتوضح النص */
    .city-section .change-now-content::before {
        content: "";
        position: absolute;
        inset: 0;
        background: rgba(20, 8, 35, .38);
        z-index: -1;
    }

    .city-section .change-now-content .content {
        background: transparent;
        border: none;
        box-shadow: none;
        position: relative;
        z-index: 1;
    }

    .city-section .change-now-content :is( h2, h4, p, .num, .title-sm, .desc-sm ) {
        color: #fff !important;
        opacity: 1 !important;
        text-shadow: 0 1px 3px rgba(0, 0, 0, .65);
    }

    .city-section .change-now-content p {
        font-size: 1rem;
        font-weight: 500;
        line-height: 1.9;
    }

@media (min-width: 769px) {
    .city-section .city-row {
        align-items: stretch;
    }

        .city-section .city-row > .change-now-content {
            height: 700px;
            min-height: 0;
            box-sizing: border-box;
            padding: 24px;
            justify-content: center;
        }

    .city-section .change-now-content .content {
        padding: 0;
        gap: 12px;
    }

    .city-section .change-now-content h2,
    .city-section .change-now-content h4 {
        margin: 0 !important;
    }

    .city-section .change-now-content .stats-row {
        margin: 8px 0;
    }

    .city-section .change-now-content p {
        margin: 0;
        font-size: .9375rem;
        line-height: 1.8;
    }

    .city-section .city-slides-flex,
    .city-section .city-slide {
        height: 700px;
    }
}

@media (max-width: 768px) {
    .city-section .city-row > .change-now-content {
        height: auto;
        min-height: 0;
    }
}
