/* =====================================================================
   Metro India Detective - Testimonials: black cards in a looping carousel.
   Loaded after css/style.css; everything is scoped to .metro-testi so no
   other part of the home page is touched. Behaviour: js/metro-testimonials.js
   ===================================================================== */
.metro-testi {
    position: relative;
    padding: 80px 0;
    overflow: hidden;
    background: #ffffff;
    font-family: "Inter", "Open Sans", Arial, sans-serif;
    text-align: left;
}
.metro-testi *,
.metro-testi *:before,
.metro-testi *:after {
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
}

/* ---- heading: red label between two short red lines, serif title, red sub line ---- */
.metro-testi .mt-head {
    margin: 0 0 36px;
    padding: 0 16px;
    text-align: center;
}
.metro-testi .mt-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    margin: 0 0 10px;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: #ee3939;
}
.metro-testi .mt-eyebrow:before,
.metro-testi .mt-eyebrow:after {
    content: "";
    width: 32px;
    height: 2px;
    background: #ee3939;
}
/* letter-spacing leaves 2.5px after the last letter; pull the right line in so both gaps match */
.metro-testi .mt-eyebrow:after {
    margin-left: -2.5px;
}
.metro-testi .mt-title {
    margin: 0 0 8px;
    padding: 0;
    font-family: "Playfair Display", Georgia, "Times New Roman", serif;
    font-size: clamp(30px, 3.2vw, 46px);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.5px;
    text-transform: none;
    color: #000000;
}
.metro-testi .mt-sub {
    margin: 0;
    padding: 0;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.5;
    color: #ee3939;
}

/* ---- carousel: full width, the cards run off both sides of the track ---- */
.metro-testi .mt-carousel {
    position: relative;
    display: flow-root;   /* keeps the viewport's negative margins inside the box, so the arrows centre on the cards */
}
.metro-testi .mt-viewport {
    overflow: hidden;
    margin: -32px 128px -62px;   /* cancels the padding below: the carousel is exactly as tall as the cards */
    padding: 32px 0 62px;
    cursor: grab;
    touch-action: pan-y;
    -webkit-user-select: none;
    user-select: none;
}
.metro-testi .mt-viewport.is-dragging {
    cursor: grabbing;
}
.metro-testi .mt-track {
    display: flex;
    gap: 18px;
    width: max-content;
    will-change: transform;
}
.metro-testi .mt-card {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    width: 340px;
    margin: 0;
    padding: 24px;
    background: #090909;
    border-radius: 22px;
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.16);
}
.metro-testi .mt-card-head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 0 16px;
}
.metro-testi .mt-avatar {
    flex: 0 0 auto;
    display: block;
    width: 46px;
    height: 46px;
    max-width: none;
    border-radius: 50%;
    object-fit: cover;
    pointer-events: none;
}
.metro-testi .mt-name {
    margin: 0;
    padding: 0;
    font-family: "Inter", "Open Sans", Arial, sans-serif;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: 0;
    text-transform: none;
    color: #ffffff;
}
.metro-testi .mt-role {
    display: block;
    font-size: 13.5px;
    line-height: 1.4;
    color: #a3a3a3;
}
.metro-testi .mt-text {
    flex: 1 1 auto;
    margin: 0 0 16px;
    padding: 0;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.6;
    color: #e6e6e6;
}
.metro-testi .mt-stars {
    display: flex;
    gap: 4px;
}
.metro-testi .mt-stars svg {
    display: block;
    width: 19px;
    height: 19px;
    fill: #ffd800;
}

/* ---- round arrows, outside the card track ---- */
.metro-testi .mt-btn {
    position: absolute;
    top: 50%;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    margin: -24px 0 0;
    padding: 0;
    border: 1px solid #000000;
    border-radius: 50%;
    background: #000000;
    color: #ffffff;
    cursor: pointer;
    transition: border-color 0.3s ease, background-color 0.3s ease;
}
.metro-testi .mt-btn svg {
    display: block;
    width: 20px;
    height: 20px;
}
.metro-testi .mt-btn:hover,
.metro-testi .mt-btn:focus-visible {
    border-color: #ee3939;
    background: #ee3939;
    outline: 0;
}
.metro-testi .mt-prev {
    left: 62px;
}
.metro-testi .mt-next {
    right: 62px;
}

/* without the script the arrows would do nothing and the row is swiped by hand instead */
.metro-testi .mt-carousel:not(.is-ready) .mt-btn {
    display: none;
}
.metro-testi .mt-carousel:not(.is-ready) .mt-viewport {
    overflow-x: auto;
    -webkit-user-select: auto;
    user-select: auto;
}

/* ---- tablet: about one and a half cards ---- */
@media (max-width: 991px) {
    .metro-testi {
        padding: 64px 0;
    }
    .metro-testi .mt-card {
        width: 300px;
        padding: 20px;
    }
    .metro-testi .mt-text {
        font-size: 14.5px;
    }
}

/* ---- mobile: one card, the next one peeking in; the arrows sit under the cards ---- */
@media (max-width: 575px) {
    .metro-testi {
        padding: 50px 0;
    }
    .metro-testi .mt-head {
        margin-bottom: 26px;
    }
    .metro-testi .mt-card {
        width: 80vw;
    }
    .metro-testi .mt-carousel {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 14px;
    }
    .metro-testi .mt-viewport {
        order: -1;
        flex: 0 0 100%;
        margin: -22px 0 -34px;
        padding-left: 16px;
    }
    .metro-testi .mt-btn {
        position: static;
        width: 42px;
        height: 42px;
        margin: 0;
    }
}
@media (prefers-reduced-motion: reduce) {
    .metro-testi .mt-btn {
        transition: none;
    }
}
