/* =============================================
   MF Testimonials – Carousel & Cards
   ============================================= */

.mf-testimonials-section {
    padding: 0 0 80px;
    overflow: hidden;
}

.mf-testimonials-wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

/* ── Heading ─────────────────────────────────── */

.mf-testimonials-heading {
    text-align: center;
    font-weight: 800;
    font-size: 36px;
    margin: 0 0 30px;
    color: #1a1a2e;
}

/* ── Nav Buttons (anchor links) ──────────────── */

.mf-testimonials-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 50px;
}

.mf-nav-btn {
    display: inline-block;
    background: #fff;
    border: 2px solid #0068a5;
    color: #0068a5;
    padding: 10px 22px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.25s ease, color 0.25s ease;
    white-space: nowrap;
    text-decoration: none;
}

.mf-nav-btn:hover {
    background: #0068a5;
    color: #fff;
    text-decoration: none;
}

/* ── Category Sections ───────────────────────── */

.mf-testimonials-category {
    padding: 50px 0;
}

.mf-testimonials-category:first-of-type {
    padding-top: 0;
}

.mf-category-heading {
    font-size: 24px;
    font-weight: 700;
    color: #0068a5;
    margin: 0 0 24px;
    text-align: center;
}

/* ── Carousel wrapper ────────────────────────── */

.mf-testimonials-carousel {
    margin: 0;
    padding: 0 30px;
}

.mf-testimonials-carousel .slick-list {
    overflow: hidden;
    margin: 0 -12px;
}

.mf-testimonials-carousel .slick-slide {
    padding: 0 12px;
    box-sizing: border-box;
    height: auto;
}

.mf-testimonials-carousel .slick-track {
    display: flex !important;
}

.mf-testimonials-carousel .slick-slide > div {
    height: 100%;
}

.mf-testimonial-slide {
    height: 100%;
}

/* ── Card ────────────────────────────────────── */

.mf-testimonial-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* ── Video ───────────────────────────────────── */

.mf-testimonial-video-wrap {
    position: relative;
    width: 100%;
    background: #000;
}

/* Video poster (lazy-load) */
.mf-video-poster {
    position: relative;
    cursor: pointer;
    line-height: 0;
    aspect-ratio: 16 / 9;
    background: #111;
    overflow: hidden;
}

.mf-video-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: opacity 0.3s ease;
}

.mf-video-poster:hover img {
    opacity: 0.8;
}

.mf-play-btn,
.mf-play-btn:hover,
.mf-play-btn:focus,
.mf-play-btn:active {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: none !important;
    background: transparent !important;
    background-color: transparent !important;
    box-shadow: none !important;
    cursor: pointer;
    padding: 0 !important;
    margin: 0;
    line-height: 0;
    transition: transform 0.2s ease;
    z-index: 1;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.35));
    outline: none !important;
    -webkit-appearance: none;
    appearance: none;
}

.mf-play-btn:hover {
    transform: translate(-50%, -50%) scale(1.1);
}

.mf-play-btn svg {
    display: block;
}

/* ── Style: Full Controls Bar ───────────────── */

.mf-controls-bar--full {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    align-items: center;
    height: 48px;
    padding: 0;
    z-index: 1;
}

.mf-play-btn-inline,
.mf-play-btn-inline:hover,
.mf-play-btn-inline:focus,
.mf-play-btn-inline:active {
    background: transparent !important;
    background-color: transparent !important;
    border: none !important;
    box-shadow: none !important;
    outline: none !important;
    cursor: pointer;
    padding: 0 16px !important;
    margin: 0;
    display: flex;
    align-items: center;
    height: 100%;
    line-height: 0;
    -webkit-appearance: none;
    appearance: none;
    min-width: 0;
    min-height: 0;
    border-radius: 0;
    color: inherit;
    font-size: inherit;
    text-decoration: none;
}

.mf-controls-time {
    color: #aaa;
    font-size: 13px;
    font-family: monospace;
    white-space: nowrap;
}

.mf-controls-progress {
    flex: 1;
    margin: 0 16px;
    height: 5px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
    position: relative;
}

.mf-controls-progress-thumb {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 13px;
    height: 13px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}

.mf-controls-icon {
    color: #aaa;
    padding: 0 8px;
    flex-shrink: 0;
}

.mf-controls-icon:last-child {
    padding-right: 16px;
}

/* ── Style: Top-Left Play ──────────────────── */

.mf-play-top-left {
    position: absolute;
    top: 18px;
    left: 18px;
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 1;
}

.mf-play-btn-circle,
.mf-play-btn-circle:hover,
.mf-play-btn-circle:focus,
.mf-play-btn-circle:active {
    width: 50px !important;
    height: 50px !important;
    border-radius: 50% !important;
    background: rgba(0, 104, 165, 0.92) !important;
    background-color: rgba(0, 104, 165, 0.92) !important;
    border: none !important;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 3px 14px rgba(0, 0, 0, 0.45) !important;
    padding: 0 !important;
    margin: 0;
    line-height: 0;
    -webkit-appearance: none;
    appearance: none;
    transition: transform 0.2s ease;
    outline: none !important;
    min-width: 0;
    min-height: 0;
    text-decoration: none;
    color: inherit;
}

.mf-play-btn-circle svg {
    margin-left: 3px;
}

.mf-play-btn-circle:hover {
    transform: scale(1.1);
}

.mf-play-label {
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
}

/* ── Style: Partial Controls ───────────────── */

.mf-controls-bar--partial {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1;
}

.mf-controls-progress-line {
    height: 3px;
    background: rgba(255, 255, 255, 0.15);
}

.mf-controls-bar-inner {
    background: rgba(0, 0, 0, 0.75);
    padding: 10px 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
}

.mf-controls-bar-inner .mf-play-btn-inline,
.mf-controls-bar-inner .mf-play-btn-inline:hover,
.mf-controls-bar-inner .mf-play-btn-inline:focus {
    padding: 0 !important;
    height: auto;
}

.mf-controls-duration {
    color: rgba(255, 255, 255, 0.5);
    font-size: 13px;
    font-family: monospace;
    margin-left: auto;
}

/* ── Style: Cinematic Letterbox ────────────── */

.mf-player-style--cinematic {
    background: #000;
}

.mf-player-style--cinematic img {
    opacity: 0.45;
}

.mf-letterbox {
    position: absolute;
    left: 0;
    right: 0;
    z-index: 1;
}

.mf-letterbox--top {
    top: 0;
    height: 36px;
    background: rgba(0, 0, 0, 0.88);
}

.mf-letterbox--bottom {
    bottom: 0;
    height: 36px;
    background: rgba(0, 0, 0, 0.88);
    display: flex;
    align-items: center;
    padding: 0 20px;
    gap: 14px;
}

.mf-letterbox--bottom .mf-play-btn-inline,
.mf-letterbox--bottom .mf-play-btn-inline:hover,
.mf-letterbox--bottom .mf-play-btn-inline:focus {
    padding: 0 !important;
    height: auto;
}

.mf-controls-progress-line--letterbox {
    flex: 1;
    height: 3px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
}

.mf-letterbox--bottom .mf-controls-duration {
    margin-left: 0;
}

.mf-cinematic-center {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 1;
    pointer-events: none;
}

.mf-cinematic-center svg {
    opacity: 0.6;
    margin-bottom: 10px;
}

.mf-cinematic-center span {
    color: rgba(255, 255, 255, 0.75);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 4px;
    text-transform: uppercase;
}

/* Iframe injected by JS after click */
.mf-testimonial-video-wrap > iframe {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    border: 0;
}

/* ── Quote ───────────────────────────────────── */

.mf-testimonial-quote {
    padding: 20px 20px 0;
}

.mf-testimonial-quote p {
    font-size: 22px;
    font-weight: 700;
    color: #0068a5;
    line-height: 1.4;
    margin: 0;
}

/* ── Description ─────────────────────────────── */

.mf-testimonial-description {
    padding: 10px 20px 24px;
    font-size: 14px;
    line-height: 1.65;
    color: #444;
    flex-grow: 1;
}

.mf-testimonial-description p {
    margin: 0;
}

/* ── Slick Arrows ────────────────────────────── */

.mf-testimonials-carousel .slick-prev,
.mf-testimonials-carousel .slick-next {
    z-index: 2;
    width: 36px !important;
    height: 36px !important;
    min-width: 36px;
    min-height: 36px;
    padding: 0;
    border-radius: 50%;
    background: #fff;
    border: 2px solid #0068a5;
    transition: background 0.2s ease;
    font-size: 0;
    line-height: 0;
    color: transparent;
    overflow: hidden;
}

.mf-testimonials-carousel .slick-prev:hover,
.mf-testimonials-carousel .slick-next:hover {
    background: #0068a5;
}

.mf-testimonials-carousel .slick-prev {
    left: -26px;
}

.mf-testimonials-carousel .slick-next {
    right: -26px;
}

.mf-testimonials-carousel .slick-prev:before,
.mf-testimonials-carousel .slick-next:before {
    content: '';
    display: block;
    width: 10px;
    height: 10px;
    border-top: 2px solid #0068a5;
    border-right: 2px solid #0068a5;
    position: absolute;
    top: 50%;
}

.mf-testimonials-carousel .slick-prev:before {
    transform: translate(-50%, -50%) rotate(-135deg);
    left: 55%;
}

.mf-testimonials-carousel .slick-next:before {
    transform: translate(-50%, -50%) rotate(45deg);
    left: 42%;
}

.mf-testimonials-carousel .slick-prev:hover:before,
.mf-testimonials-carousel .slick-next:hover:before {
    border-color: #fff;
}

/* ── Slick Dots ──────────────────────────────── */

.mf-testimonials-carousel .slick-dots {
    bottom: -40px;
    padding: 0;
    margin: 0;
    list-style: none;
    display: flex !important;
    justify-content: center;
    gap: 8px;
    left: 50%;
    transform: translateX(-50%);
}

.mf-testimonials-carousel .slick-dots li {
    width: auto;
    height: auto;
    margin: 0;
}

.mf-testimonials-carousel .slick-dots li button {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #c5d8e8;
    border: none;
    padding: 0;
    cursor: pointer;
    transition: background 0.2s ease;
}

.mf-testimonials-carousel .slick-dots li button:before {
    display: none;
}

.mf-testimonials-carousel .slick-dots li.slick-active button {
    background: #0068a5;
}

/* ── Responsive ──────────────────────────────── */

@media (max-width: 1024px) {
    .mf-testimonials-wrap {
        padding: 0 20px;
    }

    .mf-testimonials-carousel {
        padding: 0 30px;
    }
}

@media (max-width: 768px) {
    .mf-testimonials-heading {
        font-size: 28px;
    }

    .mf-testimonials-nav {
        gap: 8px;
    }

    .mf-nav-btn {
        padding: 8px 16px;
        font-size: 13px;
    }

    .mf-category-heading {
        font-size: 20px;
    }

    .mf-testimonial-quote p {
        font-size: 18px;
    }

    .mf-testimonials-carousel {
        padding: 0 36px;
    }
}
