/* Testimonials & Locations - CMS repeater stability fix */

.nmt-tl-cms-section {
    padding-top: 250px !important;
    padding-bottom: 100px !important;
    position: relative;
    z-index: 0 !important;
    isolation: isolate;
}

.nmt-tl-cms-section > .container {
    position: relative;
    z-index: 1 !important;
}

/* Testimonial slider: show ONE card only.
 * The CMS renderer keeps `active` on the first repeater item and removes it
 * from cloned items, so this works correctly after Add Item / Save. */
.nmt-tl-cms-section .nmt-review-list .nmt-review-card {
    display: none !important;
}

.nmt-tl-cms-section .nmt-review-list .nmt-review-card.active {
    display: block !important;
    animation: nmtReviewFade .25s ease;
}

.nmt-tl-cms-section .nmt-review-tags {
    margin-top: 34px;
}

/*
 * Location repeater fix:
 * .item is only the CMS wrapper; the clickable card lives inside it.
 * This makes newly-added City / State / Link fields update immediately.
 */
.nmt-tl-cms-section .nmt-location-grid > .nmt-location-item {
    min-width: 0;
    width: 100%;
}

.nmt-tl-cms-section .nmt-location-grid > .nmt-location-item > .nmt-location-card {
    width: 100%;
    height: 100%;
    box-sizing: border-box;
}

@media (max-width: 991px) {
    .nmt-tl-cms-section {
        padding-top: 110px !important;
        padding-bottom: 70px !important;
    }
}

@media (max-width: 767px) {
    .nmt-tl-cms-section {
        padding-top: 80px !important;
        padding-bottom: 55px !important;
    }
}
