@import url('https://fonts.googleapis.com/css2?family=Gabarito:wght@400;500;600;700&display=swap');

/* ===== Trusted by Clients testimonial section ===== */
.tc-section {
    position: relative;
    background: #04060f;
    color: #fff;
    overflow: hidden;
    padding: 120px 0 80px;
}

.tc-section::before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: .75;
    z-index: 0;
    pointer-events: none;
}

.tc-section .container {
    position: relative;
    z-index: 1;
}

/* heading row */
.tc-head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    min-height: 129px;
    margin-bottom: 44px;
}

.tc-head h2 {
    max-width: 570px;
    margin: 0;
    color: #FFFFFF;
    font-family: 'Gabarito', sans-serif;
    font-weight: 600;
    font-size: 42px;
    line-height: 100%;
    letter-spacing: 0;
}

.tc-head-right {
    max-width: 430px;
}

.tc-head-right p {
    color: #b8c2da;
    margin: 0 0 18px;
    font-size: 15px;
}

.tc-view-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: #081EC8;
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    padding: 12px 24px;
    border-radius: 76px;
    transition: background .25s ease;
}

.tc-view-btn:hover {
    background: #0617a0;
    color: #fff;
}

/* slider */
.tc-slider {
    position: relative;
}

.tc-slider .item {
    height: 100%;
}

/* card */
.tc-card {
    background: #fff;
    border-radius: 20px;
    padding: 20px;
    width: 100%;
    height: 400px;
    gap: 15px;
    display: flex;
    flex-direction: column;
    color: #0d1b3e;
    overflow: hidden;
}

.tc-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.tc-stars i {
    color: #ffa800;
    font-size: 14px;
}

.tc-quote {
    flex: 1;
    color: #374151;
    font-size: 15px;
    line-height: 1.6;
    margin: 0;
}

.tc-divider {
    border-top: 1px solid #eef1f7;
    margin: 0;
}

.tc-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.tc-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 700;
    font-size: 16px;
    flex-shrink: 0;
}

.tc-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tc-author-meta {
    flex: 1;
    min-width: 0;
}

.tc-author-meta b {
    display: block;
    font-size: 15px;
    color: #0d1b3e;
}

.tc-author-meta span {
    font-size: 13px;
    color: #8a93a6;
}

/* small source/company logo */
.tc-source {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.tc-source img {
    max-width: 78px;
    max-height: 22px;
    object-fit: contain;
}

.tc-source svg {
    width: 26px;
    height: 26px;
}

/* video card */
.tc-card.tc-video {
    padding: 0;
    position: relative;
    justify-content: flex-end;
    gap: 0;
}

.tc-card.tc-video::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(4, 6, 15, .1) 0%, rgba(4, 6, 15, .85) 100%);
    z-index: 1;
    pointer-events: none;
}

.tc-card.tc-video video,
.tc-card.tc-video img.tc-video-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

/* while playing (hover): clean video, hide the dark overlay + name/logo row */
.tc-card.tc-video.playing::before {
    display: none;
}

.tc-card.tc-video.playing video {
    z-index: 2;
}

.tc-card.tc-video.playing .tc-video-meta {
    display: none;
}

/* center play button — tap target on mobile + visual cue everywhere */
.tc-card.tc-video::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .9) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%232d7efa'%3E%3Cpath d='M8 5v14l11-7z'/%3E%3C/svg%3E") center / 24px no-repeat;
    z-index: 3;
    pointer-events: none;
    transition: opacity .2s ease;
}

.tc-card.tc-video.playing::after {
    opacity: 0;
}

.tc-video-meta {
    position: relative;
    z-index: 2;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    color: #fff;
}

.tc-vmeta-left {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.tc-video-meta b {
    display: block;
    font-size: 15px;
}

.tc-video-meta .tc-vrole {
    font-size: 13px;
    color: #cfd6e6;
}

/* source logo (Google) bottom-right of a video card — white circle */
.tc-vsrc {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tc-vsrc svg {
    width: 22px;
    height: 22px;
}

/* mute toggle — only shows while the video is playing (on hover) */
.tc-mute {
    position: absolute;
    bottom: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: rgba(0, 0, 0, .55);
    color: #fff;
    font-size: 15px;
    z-index: 4;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    transition: background .2s ease;
}

.tc-mute:hover {
    background: rgba(0, 0, 0, .8);
}

.tc-card.tc-video.playing .tc-mute {
    display: flex;
}

/* nav arrows */
.tc-slider .owl-nav button.owl-prev,
.tc-slider .owl-nav button.owl-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, .4);
    background: transparent;
    color: #fff;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .2s ease;
}

.tc-slider .owl-nav button.owl-prev:hover,
.tc-slider .owl-nav button.owl-next:hover {
    background: rgba(255, 255, 255, .15);
}

.tc-slider .owl-nav button.owl-prev {
    left: -64px;
}

.tc-slider .owl-nav button.owl-next {
    right: -64px;
}

@media (max-width: 1400px) {
    .tc-slider .owl-nav button.owl-prev {
        left: 6px;
    }

    .tc-slider .owl-nav button.owl-next {
        right: 6px;
    }
}

@media (max-width: 767px) {
    .tc-head {
        align-items: flex-start;
    }
}

/* ============================================================
   Responsive — Mac is the default; adapt down to iPad & mobile
   ============================================================ */

/* Tablet / iPad (≤ 991px) */
@media (max-width: 991px) {
    .tc-section {
        padding: 80px 0 70px;
    }

    .tc-head {
        min-height: 0;
    }

    .tc-head h2 {
        font-size: 34px;
        max-width: 100%;
    }

    .tc-head-right {
        max-width: 100%;
    }
}

/* Mobile (≤ 767px) */
@media (max-width: 767px) {
    .tc-section {
        padding: 64px 0 60px;
    }

    /* heading + button stacked and centered */
    .tc-head {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 16px;
        margin-bottom: 28px;
    }

    .tc-head h2 {
        font-size: 25px;
        line-height: 32px;
        text-align: center;
        max-width: 100%;
    }

    .tc-head-right {
        max-width: 100%;
        text-align: center;
    }

    /* View All Testimonials button — per spec */
    .tc-view-btn {
        height: 55px;
        padding: 10px 24px;
        gap: 16px;
    }

    /* card: 313px tall on mobile */
    .tc-card {
        height: 313px;
    }

    /* nav arrows: centered row below the card (not overlaid on the sides) */
    .tc-slider .owl-nav {
        display: flex;
        justify-content: center;
        gap: 15px;
        margin-top: 22px;
    }

    .tc-slider .owl-nav button.owl-prev,
    .tc-slider .owl-nav button.owl-next {
        position: static;
        transform: none;
        left: auto;
        right: auto;
        width: 38px;
        height: 38px;
        font-size: 13px;
    }
}
