/* ====================================================================
   TESTIMONIALS: MEDIA CARDS VIEW (Vista D)
   Premium dark card carousel with media heroes, inline audio,
   truncated text with popups.
   ==================================================================== */

/* ── Section Wrapper ── */
.ntono-testimonials-cards {
    padding: var(--ss-section-padding-y, 5rem) 0;
    background: var(--ntono-bg, #0B090A);
    overflow: hidden;
}

.ntono-testimonials-cards__inner {
    max-width: var(--ntono-max-width, 1280px);
    margin: 0 auto;
    padding: 0 var(--ntono-gutter, 2rem);
}

/* ── Header ── */
.ntono-tcc-header {
    text-align: center;
    margin-bottom: 4rem;
}

.ntono-tcc-header__title {
    font-size: clamp(1.8rem, 3vw, 2.8rem);
    font-weight: 700;
    color: #fff;
    margin-bottom: 1rem;
    line-height: 1.15;
}

.ntono-tcc-header__title span {
    color: var(--ntono-primary, #FAA916);
}

.ntono-tcc-header__desc {
    color: rgba(255, 255, 255, 0.5);
    font-size: 1.05rem;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* ── Viewport & Navigation ── */
.ntono-tcc-viewport {
    position: relative;
}

.ntono-tcc-nav-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 100;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    /* Slightly more visible base */
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.ntono-tcc-nav-arrow:hover {
    background: var(--ntono-primary, #FAA916);
    color: #000;
    border-color: var(--ntono-primary, #FAA916);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 8px 25px rgba(250, 169, 22, 0.4);
}

.ntono-tcc-nav-arrow--prev {
    left: -24px;
}

.ntono-tcc-nav-arrow--next {
    right: -24px;
}

.ntono-tcc-nav-arrow.swiper-button-disabled {
    opacity: 0.2;
    pointer-events: none;
}

/* ── Dots ── */
.ntono-tcc-dots {
    display: flex;
    justify-content: center;
    margin-top: 2.5rem;
    gap: 8px;
}

.ntono-tcc-dots .swiper-pagination-bullet {
    width: 8px;
    height: 8px;
    background: rgba(255, 255, 255, 0.15);
    opacity: 1;
    border-radius: 50%;
    transition: all 0.3s;
}

.ntono-tcc-dots .swiper-pagination-bullet-active {
    background: var(--ntono-primary, #FAA916);
    width: 24px;
    border-radius: 4px;
}

/* ── Swiper Slide Height Uniformity ── */
/* Forces all cards to stretch to the tallest card in the row */
.ntono-tcc-swiper .swiper-wrapper {
    align-items: stretch;
}

.ntono-tcc-swiper .swiper-slide {
    height: auto;
    /* allow natural height but swiper will equalize */
}

/* ── Card Base ── */
.ntono-tcc-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    /* fill entire slide height */
    transition: border-color 0.3s, transform 0.3s;
}

.ntono-tcc-card:hover {
    border-color: rgba(255, 255, 255, 0.12);
    transform: translateY(-4px);
}

/* Hero hover: show expand icon overlay on image/video */
.ntono-tcc-hero[data-media-type]::after {
    content: 'open_in_full';
    font-family: 'Material Symbols Rounded';
    font-size: 22px;
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: rgba(0, 0, 0, 0);
    opacity: 0;
    transition: opacity 0.3s, background 0.3s;
    z-index: 6;
    pointer-events: none;
}

.ntono-tcc-hero[data-media-type]:hover::after {
    opacity: 1;
    background: rgba(0, 0, 0, 0.35);
}


/* ── Card Hero (Media Area) ── */
.ntono-tcc-hero {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.02);
}

.ntono-tcc-hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.ntono-tcc-card:hover .ntono-tcc-hero img {
    transform: scale(1.05);
}

.ntono-tcc-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(11, 9, 10, 0.85) 0%, transparent 60%);
    pointer-events: none;
}

/* Featured Badge */
.ntono-tcc-badge-featured {
    position: absolute;
    top: 12px;
    right: 12px;
    background: #E53E3E;
    color: #fff;
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 4px 10px;
    border-radius: 4px;
    z-index: 5;
}

/* Media Type Icon Badge */
.ntono-tcc-media-badge {
    position: absolute;
    bottom: 12px;
    right: 12px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--ntono-primary, #FAA916);
    color: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s;
}

.ntono-tcc-media-badge .material-symbols-rounded {
    font-size: 20px;
}

.ntono-tcc-card:hover .ntono-tcc-media-badge:not(.ntono-tcc-media-badge--audio) {
    transform: scale(1.1);
}

/* Company Name Overlay (on hero) */
.ntono-tcc-hero__company {
    position: absolute;
    bottom: 12px;
    left: 16px;
    z-index: 5;
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

/* Title / Headline Overlay (on video cards, bottom-left) */
.ntono-tcc-hero__title {
    position: absolute;
    bottom: 14px;
    left: 16px;
    right: 56px;
    /* leave space for badge */
    z-index: 5;
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.3;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.7);
}

/* Audio cover: blurred background, headphone icon centered */
.ntono-tcc-hero--audio {
    cursor: default;
}

.ntono-tcc-hero--audio img {
    filter: blur(6px) brightness(0.4);
    transform: scale(1.05);
    /* hide blur edges */
}

.ntono-tcc-audio-trigger {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 64px;
    height: 64px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 5;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.ntono-tcc-media-badge--audio {
    position: static;
    background: var(--ntono-primary, #FAA916);
    backdrop-filter: blur(8px);
    width: 64px;
    height: 64px;
    min-width: 64px;
    min-height: 64px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
    color: #000;
    pointer-events: auto;
}

.ntono-tcc-media-badge--audio .material-symbols-rounded {
    font-size: 32px;
    width: 32px;
    height: 32px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000;
}

.ntono-tcc-audio-trigger-text {
    position: absolute;
    top: calc(100% + 12px);
    left: 50%;
    transform: translateX(-50%) translateY(5px);
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    white-space: nowrap;
    opacity: 0;
    color: #fff;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.7);
    text-align: center;
    transition: all 0.3s ease;
    pointer-events: none;
    width: auto;
}

/* Hover state: whole trigger scales and fades */
.ntono-tcc-card:hover .ntono-tcc-audio-trigger {
    opacity: 0.7;
}

.ntono-tcc-card:hover .ntono-tcc-media-badge--audio {
    transform: scale(1.1);
}

.ntono-tcc-card:hover .ntono-tcc-audio-trigger-text {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* Mobile: always show text below icon */
@media (max-width: 767px) {
    .ntono-tcc-audio-trigger-text {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

/* Inline featured badge (text-only cards, no hero) */
.ntono-tcc-badge-featured--inline {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 0.75rem;
    align-self: flex-start;
}

/* ── Card Body ── */
.ntono-tcc-body {
    padding: 1.25rem 1.25rem 0.75rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Text-only card top area */
.ntono-tcc-stars-top {
    display: flex;
    align-items: center;
    gap: 2px;
    margin-bottom: 0.75rem;
}

.ntono-tcc-stars-top .material-symbols-rounded {
    color: var(--ntono-primary, #FAA916);
    font-size: 18px;
}

.ntono-tcc-stars-top .ntono-tcc-star--empty {
    color: rgba(255, 255, 255, 0.15);
}

.ntono-tcc-headline {
    font-size: 1.15rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.3;
    margin-bottom: 0.75rem;
}

/* Quote Text */
.ntono-tcc-quote {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.875rem;
    line-height: 1.6;
    flex: 1;
}

.ntono-tcc-quote--truncated {
    display: -webkit-box;
    -webkit-line-clamp: 4;
    line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ntono-tcc-read-more {
    background: none;
    border: none;
    color: var(--ntono-primary, #FAA916);
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    padding: 0;
    margin-top: 0.5rem;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: opacity 0.3s;
}

.ntono-tcc-read-more:hover {
    opacity: 0.7;
}

/* ── Inline Audio Player ── */
.ntono-tcc-audio-inline {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 10px;
    margin-top: 0.75rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

/* Specific styling for Audio Player when inside Hero */
.ntono-tcc-hero .ntono-tcc-audio-inline {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    margin: 0;
    border-radius: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 10;
    padding: 14px 18px;
    
    /* Hidden by default, shown on trigger */
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.5s cubic-bezier(0.19, 1, 0.22, 1);
}

/* Reveal when hero is in playing state */
.ntono-tcc-hero--audio.is-playing .ntono-tcc-audio-inline {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.ntono-tcc-hero .ntono-tcc-audio-inline:hover {
    background: rgba(0, 0, 0, 0.7);
}

/* Hide hero badge when playing audio (optional polish) */
.ntono-tcc-hero--audio.is-playing .ntono-tcc-media-badge--audio {
    opacity: 0;
    visibility: hidden;
    transform: translate(-50%, -50%) scale(0.5);
    transition: all 0.4s ease;
}

.ntono-tcc-audio-inline:hover {
    background: rgba(255, 255, 255, 0.07);
}

.ntono-tcc-audio-btn {
    width: 32px;
    height: 32px;
    min-width: 32px;
    border-radius: 50%;
    background: var(--ntono-primary, #FAA916);
    color: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    transition: transform 0.3s;
}

.ntono-tcc-audio-btn .material-symbols-rounded {
    font-size: 18px;
}

.ntono-tcc-audio-btn:hover {
    transform: scale(1.1);
}

/* Sound wave bars animation */
.ntono-tcc-audio-bars {
    display: flex;
    align-items: center;
    gap: 3px;
    height: 24px;
    flex: 1;
}

.ntono-tcc-audio-bar {
    width: 3px;
    background: var(--ntono-primary, #FAA916);
    border-radius: 3px;
    opacity: 0.3;
    transition: height 0.3s;
}

/* Playing state */
.ntono-tcc-audio-inline--playing .ntono-tcc-audio-bar {
    opacity: 1;
    animation: ntono-tcc-bar-bounce 0.8s ease-in-out infinite alternate;
}

.ntono-tcc-audio-inline--playing .ntono-tcc-audio-bar:nth-child(1) {
    animation-delay: 0s;
}

.ntono-tcc-audio-inline--playing .ntono-tcc-audio-bar:nth-child(2) {
    animation-delay: 0.1s;
}

.ntono-tcc-audio-inline--playing .ntono-tcc-audio-bar:nth-child(3) {
    animation-delay: 0.2s;
}

.ntono-tcc-audio-inline--playing .ntono-tcc-audio-bar:nth-child(4) {
    animation-delay: 0.3s;
}

.ntono-tcc-audio-inline--playing .ntono-tcc-audio-bar:nth-child(5) {
    animation-delay: 0.15s;
}

.ntono-tcc-audio-inline--playing .ntono-tcc-audio-bar:nth-child(6) {
    animation-delay: 0.25s;
}

.ntono-tcc-audio-inline--playing .ntono-tcc-audio-bar:nth-child(7) {
    animation-delay: 0.05s;
}

@keyframes ntono-tcc-bar-bounce {
    0% {
        height: 4px;
    }

    100% {
        height: 20px;
    }
}

.ntono-tcc-audio-duration {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
}

/* ── Card Footer ── */
.ntono-tcc-footer {
    padding: 1rem 1.25rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.ntono-tcc-avatar {
    width: 36px;
    height: 36px;
    min-width: 36px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.1);
}

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

.ntono-tcc-avatar--initials {
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.5);
    font-weight: 700;
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ntono-tcc-client-info {
    flex: 1;
    min-width: 0;
}

.ntono-tcc-client-name {
    display: block;
    font-weight: 700;
    font-size: 0.8rem;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ntono-tcc-client-credential {
    display: block;
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.4);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ntono-tcc-footer-stars {
    display: flex;
    gap: 1px;
}

.ntono-tcc-footer-stars .material-symbols-rounded {
    color: var(--ntono-primary, #FAA916);
    font-size: 14px;
}

/* ── Popups ── */

/* Text Popup (Read More) */
.ntono-tcc-text-popup {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

.ntono-tcc-text-popup--active {
    opacity: 1;
    visibility: visible;
}

.ntono-tcc-text-popup__card {
    background: #161618;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    max-width: 560px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    padding: 2.5rem;
    position: relative;
    transform: scale(0.95);
    transition: transform 0.3s;
}

.ntono-tcc-text-popup--active .ntono-tcc-text-popup__card {
    transform: scale(1);
}

.ntono-tcc-text-popup__close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    border: none;
    color: #fff;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
}

.ntono-tcc-text-popup__close:hover {
    background: rgba(255, 255, 255, 0.15);
}

.ntono-tcc-text-popup__quote {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 2rem;
}

.ntono-tcc-text-popup__footer {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

/* Media Popup (Image / Video) */
.ntono-tcc-media-popup {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

.ntono-tcc-media-popup--active {
    opacity: 1;
    visibility: visible;
}

.ntono-tcc-media-popup__close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
}

.ntono-tcc-media-popup__close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.ntono-tcc-media-popup__content {
    max-width: 900px;
    width: 100%;
}

.ntono-tcc-media-popup__content img {
    width: 100%;
    height: auto;
    border-radius: 12px;
}

.ntono-tcc-media-popup__content iframe {
    width: 100%;
    aspect-ratio: 16 / 9;
    border: none;
    border-radius: 12px;
}

/* ── Responsive ── */
@media (max-width: 1024px) {

    /* Bring arrows inside the screen padding to avoid overflow */
    .ntono-tcc-nav-arrow--prev {
        left: 0px;
    }

    .ntono-tcc-nav-arrow--next {
        right: 0px;
    }

    /* Slightly smaller on tablets */
    .ntono-tcc-nav-arrow {
        width: 40px;
        height: 40px;
    }
}

@media (max-width: 767px) {
    .ntono-tcc-nav-arrow {
        display: none;
    }

    .ntono-tcc-text-popup__card {
        padding: 1.5rem;
    }
}

/* ── Result Tags ── */
.ntono-tcc-results {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 0.75rem;
}

.ntono-tcc-result-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: rgba(250, 169, 22, 0.1);
    border: 1px solid rgba(250, 169, 22, 0.25);
    color: var(--ntono-primary, #FAA916);
    font-size: 0.7rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 20px;
    letter-spacing: 0.03em;
    white-space: nowrap;
}

.ntono-tcc-result-tag .material-symbols-rounded {
    font-size: 13px;
}

/* ── Verified Badge ── */
.ntono-tcc-verified {
    display: inline-flex;
    align-items: center;
    color: #4299E1;
    margin-left: 3px;
    vertical-align: middle;
    position: relative;
    top: -1px;
}

.ntono-tcc-verified .material-symbols-rounded {
    font-size: 14px;
    font-variation-settings: 'FILL' 1;
}