  @import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@100..900&family=Poppins:wght@100..900&family=League+Spartan:wght@100..900&display=swap");

  :root {
    --black: #000000;
    --white: #ffffff;
    --red: #ff0000;
    --grey-dark: #1a1a1a;
    --grey: #333333;
    --grey-light: #f2f2f2;
  }

  * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }

  .text-red {
    color: var(--red);
  }

  .testimonials-page {
    background: #f1f1f1;
    color: #0a0a0a;
    overflow-x: hidden;
  }

  .ts-hero {
    min-height: 100vh;
    background: url("/webAssets/img/newThemeImages/offline-hero-img.png") center/cover no-repeat;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .ts-hero-video-testimonial-page {
    margin-top: 80px;
    padding: 22px 0;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .ts-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.56));
  }

  .ts-hero-content {
    position: relative;
    z-index: 4;
    text-align: center;
    max-width: 980px;
    font-family: "Montserrat", sans-serif !important;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
  }

  .ts-hero-content h1 {
    font-family: "League Spartan", sans-serif !important;
    font-size: clamp(42px, 7vw, 86px);
    margin-bottom: 18px;
    font-weight: 800;
    color: #fff !important;
  }

  .ts-hero-content-video-testimonial h1 {
    font-family: "League Spartan", sans-serif !important;
    color: black !important;
    font-size: clamp(32px, 7vw, 56px);
    font-weight: 700;
    margin: 0;
    padding: 0;
    line-height: .8;

  }

  .ts-hero-content-video-testimonial p {
    color: black !important;
    font-size: 18px;
    text-align: center;
    margin: 0;
    padding: 0;
  }

  .ts-video-content h3 {
    font-size: 16px;
    font-weight: 700;
    color: #000;
    margin: 0 0 5px;
  }

  .ts-video-sub {
    font-size: 12px;
    color: #777;
    text-transform: uppercase;
    margin: 0;
  }

  .ts-video-structured-info {
    display: flex;
    flex-direction: column;
    gap: 3px;
  }

  .ts-video-info-row {
    font-size: 13.5px;
    color: #333;
    line-height: 1.25;
  }

  .ts-video-info-row strong {
    color: var(--tp-theme-primary, #e31e24);
    font-weight: 700;
  }

  .ts-hero-content p {
    font-size: 30px;
    max-width: 800px;
    margin: 0 auto 34px;
    color: #f3f3f3;
    line-height: 1.2;
  }

  .ts-hero-btn {  
    width: fit-content;
    font-family: "Montserrat", sans-serif !important;
  }

  .ts-section {
    padding: 72px 0;
  }
  
  .ts-section-video-testimonials {
    padding: 42px 20px;
  }

  .ts-heading {
    text-align: center;
    font-family: "Montserrat", sans-serif !important;
    font-size: clamp(44px, 6vw, 48px);
    font-weight: 700 !important;
    margin: 0;
  }

  .ts-subheading {
    text-align: center;
    color: #5f6771;
    font-size: clamp(16px, 1.8vw, 20px);
    margin-bottom: 25px;
  }

  .ts-shell-video, .ts-shell-stories {
    background-color: var(--grey-light);
    padding: 0 30px;
  }

  .ts-shell-written {
    background-color: var(--white);
    padding: 30px;
  }

  .ts-video-grid,
  .ts-written-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
  }

  /* Written Reviews carousel shell (desktop defaults to grid-like layout) */
  .ts-written-carousel {
    position: relative;
  }

  .ts-written-viewport {
    overflow: hidden;
  }

  .ts-written-track {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
    transition: transform 0.35s ease;
    will-change: transform;
  }

  .ts-nav {
    display: none;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 46px;
    height: 46px;
    border-radius: 999px;
    border: none;
    background: rgba(0, 0, 0, 0.75);
    color: #fff;
    cursor: pointer;
    z-index: 2;
  }

  .ts-nav:disabled {
    opacity: 0.35;
    cursor: not-allowed;
  }

  .ts-nav-prev {
    left: -10px;
  }

  .ts-nav-next {
    right: -10px;
  }

  .ts-dots {
    display: none;
    margin-top: 16px;
    justify-content: center;
    gap: 10px;
  }

  .ts-dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    border: none;
    background: rgba(0, 0, 0, 0.22);
    cursor: pointer;
  }

  .ts-dot.is-active {
    width: 26px;
    background: #ff1111;
  }

  .ts-story-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
    max-width: 1200px;
    margin: 0 auto;
  }

  .ts-video-card,
  .ts-written-card,
  .ts-story-card {
    background: #fff;
    border: 1px solid #dfdfdf;
    box-shadow: 1px 1px 5px rgba(0, 0, 0, 0.205);
    border-radius: 16px;
    overflow: hidden;
  }

  .ts-video-media {
    position: relative;
    display: block;
    overflow: hidden;
  }

  .ts-video-media img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }

  .ts-play {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: #ff1414;
    color: #fff;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
  }

  .ts-duration {
    position: absolute;
    right: 10px;
    bottom: 10px;
    background: rgba(0, 0, 0, 0.78);
    color: #fff;
    font-size: 18px;
    padding: 4px 10px;
    border-radius: 9px;
  }

  .ts-video-card h3 {
    margin: 16px;
    font-size: 20px;
    font-family: "League Spartan", sans-serif !important;
    font-weight: 600 !important;
  }

  .ts-video-card:hover .ts-video-media  {
    scale: 1.035;
    transition: all .3s ease-in-out;
    box-shadow: 1px 1px 10px rgba(0, 0, 0, 0.285);
  }

  .ts-written-card {
    padding: 26px;
    background-color: var(--grey-light);
    width: 100%;
    max-width: 100%;
  }

  .ts-written-top {
    display: flex;
    gap: 14px;
    align-items: center;
  }

  .ts-avatar {
    width: 3rem;
    height: 3rem;
    border-radius: 9999px;
    overflow: hidden;
    border: 1px solid #d0d0d0;
    font-family: "Poppins", sans-serif !important;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
  }

  .ts-written-top h3 {
    font-size: 24px;
    font-family: "Poppins", sans-serif !important;
    font-weight: 600 !important;
    margin: 0;
  }

  .ts-written-top p {
    color: #626b74;
    font-size: 0.875rem;
    line-height: 1.25rem;
    font-family: "Poppins", sans-serif !important;
    margin: 0;
  }

  .ts-stars {
    color: #ff1212;
    margin: 14px 0;
    font-size: 24px;
  }

  .ts-review-text,
  .ts-story-text {
    color: #1d1f24;
    font-size: 0.875rem;
    line-height: 1.25rem;
    font-family: "Poppins", sans-serif !important;
    margin: 0;
  }

  .ts-stories .ts-story-card {
    padding: 34px;
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
  }

  .ts-story-card h3 {
    font-size: 24px;
    font-family: "Poppins", sans-serif !important;
    font-weight: 700 !important;
    margin: 0;
    margin-bottom: .6rem;
  }

  .ts-story-role {
    font-size: 0.80rem;
    font-weight: 600 !important;
    line-height: 1.25rem;
    color: #ff1111;
    font-family: "Poppins", sans-serif !important;
    margin: 0;
    margin-bottom: .8rem;
  }

  .ts-story-text {
    font-size: 1.12rem;
    font-family: "Poppins", sans-serif !important;
    font-style: italic;
    color: #5f6671;
    line-height: 1.4;
  }

  .ts-cta {
    background: #1a1b1f;
    padding: 86px 0;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .ts-cta-content {
    text-align: center;
  }

  .ts-cta h2 {
    color: #fff;
    font-size: clamp(46px, 5vw, 54px);
    margin-bottom: 14px;
    font-family: "League Spartan", sans-serif;
  }

  .ts-cta p {
    color: #c9c9c9;
    font-size: clamp(20px, 1.8vw, 18px);
    margin-bottom: 30px;
  }

  .ts-cta-actions {
    display: flex;
    gap: 18px;
    justify-content: center;
    flex-wrap: wrap;
  }

  @media (max-width: 1100px) {
    .ts-written-grid,
    .ts-story-grid {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ts-written-track {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ts-story-card {
      max-width: 100%;
      margin: 0 auto;
    }

    /* Video testimonials: horizontal scroll (2 cards visible) */
    .ts-video-grid {
      display: flex;
      gap: 18px;
      overflow-x: auto;
      overflow-y: hidden;
      overscroll-behavior-x: contain;
      -webkit-overflow-scrolling: touch;
      scroll-snap-type: x mandatory;
      padding: 6px 2px 12px;
    }

    .ts-video-grid::-webkit-scrollbar {
      height: 10px;
    }
    .ts-video-grid::-webkit-scrollbar-track {
      background: rgba(0, 0, 0, 0.08);
      border-radius: 999px;
    }
    .ts-video-grid::-webkit-scrollbar-thumb {
      background: rgba(0, 0, 0, 0.22);
      border-radius: 999px;
    }

    .ts-video-card {
      flex: 0 0 calc(50% - 9px);
      scroll-snap-align: start;
    }
  }

  @media (max-width: 768px) {
    .ts-hero {
      min-height: 50vh;
    }

    .ts-heading {
      font-size: clamp(36px, 6vw, 34px);
    }
    /* Enable native horizontal scrolling for written track & story grid */
    .ts-written-track,
    .ts-story-grid {
      display: flex !important;
      flex-wrap: nowrap;
      overflow-x: auto;
      gap: 16px;
      padding-bottom: 20px;
      scroll-snap-type: x mandatory;
      -webkit-overflow-scrolling: touch;
      scroll-behavior: smooth;
    }

    /* One video card at a time in a horizontally scrollable mobile row. */
    .testimonials-page .ts-video-track {
      display: flex !important;
      flex-flow: row nowrap !important;
      gap: 14px !important;
      overflow-x: auto !important;
      overflow-y: hidden !important;
      padding: 0 6px 14px !important;
      scroll-snap-type: x mandatory;
      -webkit-overflow-scrolling: touch;
    }

    /* Custom scrollbars for mobile to indicate scrolling */
    .ts-written-track::-webkit-scrollbar,
    .ts-story-grid::-webkit-scrollbar {
      display: block;
      height: 10px;
    }
    .ts-written-track::-webkit-scrollbar-track,
    .ts-story-grid::-webkit-scrollbar-track {
      background: #f1f1f1;
    }
    .ts-written-track::-webkit-scrollbar-thumb,
    .ts-story-grid::-webkit-scrollbar-thumb {
      background: red;
      border-radius: 24px;
    }

    .ts-written-card,
    .ts-story-card {
      flex: 0 0 85vw !important;
      width: 85vw !important;
      max-width: 85vw !important;
      scroll-snap-align: center;
    }

    .testimonials-page .ts-video-item {
      flex: 0 0 78vw !important;
      width: 78vw !important;
      max-width: 78vw !important;
      scroll-snap-align: start !important;
      background: transparent !important;
      border: none !important;
      box-shadow: 0 4px 10px rgba(0,0,0,0.15) !important;
      border-radius: 10px !important;
    }

    /* Only show first 4 items in mobile */
    .testimonials-page .ts-video-item:nth-child(n+5) {
      display: none !important;
    }

    .testimonials-page .ts-video-media {
      border-radius: 10px !important;
      padding-top: 177.77% !important;
      height: auto !important;
    }

    /* Video content is now visible on mobile */
    .testimonials-page .ts-play {
      width: 40px !important;
      height: 40px !important;
      font-size: 16px !important;
    }
    
    .testimonials-page .ts-play i {
      padding: 10px !important;
    }

    .ts-written-card,
    .ts-story-card {
      padding: 24px;
    }

    .ts-written-top {
      flex-wrap: wrap;
      gap: 10px;
    }

    .ts-written-top h3 {
      font-size: 1.15rem;
    }

    .testimonials-page .ts-video-track{
    gap:10px;
    padding:0;
}

  .ts-mobile-see-all {
    display: block;
  }

 .ts-section {
    padding: 32px 0;
  }

  .ts-section-video-testimonials {
    padding: 0px 10px;
  }

  .ts-hero-content h1 {
    line-height: 2.8rem;
  }
  }


  /* Added: horizontal scroll video rows & responsive inline player (scoped to testimonials page) */
 /* Video Testimonials UI */

.testimonials-page .ts-video-scroll-wrapper{
    overflow:hidden;
}

.testimonials-page .ts-video-track{
    display:grid;
    grid-template-columns: repeat(4, 1fr);
    gap:20px;
    overflow-x:visible;
    padding:12px 6px;
}

.testimonials-page .ts-video-track::-webkit-scrollbar{
    display:block;
    height: 10px;
}
.testimonials-page .ts-video-track::-webkit-scrollbar-track {
    background: #f1f1f1;
}
.testimonials-page .ts-video-track::-webkit-scrollbar-thumb {
    background: red;
    border-radius: 24px;
}

.testimonials-page .ts-video-item{
    width: 100%;
    background:#111;
    border-radius:20px;
    overflow:hidden;
    position:relative;
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

/* Limit to 4 items on main page */
.testimonials-page .ts-video-item:nth-child(n+5) {
    display: none !important;
}

.testimonials-page .ts-video-media{
    position:relative;
    display:block;
    width:100%;
    padding-top: 177.77%; /* 16/9 ratio (9:16 vertical) */
    height:0;
    overflow:hidden;
    border:0;
    margin:0;
    background:#0a0a0a;
    border-radius:20px;
    text-align: left;
    cursor: pointer;
}

.ts-video-media{
    position:relative;
    overflow:hidden;
}

/* Reels Scrim Overlay */
.ts-video-scrim {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.0) 0%, rgba(0,0,0,0.15) 40%, rgba(0,0,0,0.75) 70%, rgba(0,0,0,0.98) 100%);
    pointer-events: none;
    z-index: 3;
    transition: opacity 0.3s ease;
    border-radius: inherit;
}

.ts-video-overlay-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 18px 14px 16px;
    z-index: 5;
    text-align: left;
    pointer-events: auto;
    transition: opacity 0.3s ease;
    /* Extra shadow layer for bright thumbnails */
    background: linear-gradient(to top, rgba(0,0,0,0.55) 0%, transparent 100%);
}

.ts-overlay-title {
    margin: 0 0 4px 0;
    font-size: 16px;
    font-weight: 800;
    color: #ffffff !important;
    line-height: 1.25;
    text-shadow: 0 1px 8px rgba(0,0,0,1), 0 2px 4px rgba(0,0,0,0.9);
    font-family: "League Spartan", sans-serif !important;
    letter-spacing: 0.3px;
}

.ts-overlay-story {
    margin: 0 0 6px 0;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.85) !important;
    line-height: 1.35;
    text-shadow: 0 1px 4px rgba(0,0,0,0.85);
    font-family: "Poppins", sans-serif !important;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ts-overlay-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 8px;
}

.ts-overlay-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.28);
    color: #ffffff !important;
    font-size: 11px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 999px;
    text-shadow: 0 1px 2px rgba(0,0,0,0.6);
}

.ts-overlay-insta {
    display: inline-block;
}

.ts-insta-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    color: #ffffff !important;
    font-size: 12px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 999px;
    text-decoration: none !important;
    box-shadow: 0 3px 10px rgba(0,0,0,0.35);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ts-insta-pill:hover {
    transform: translateY(-1px) scale(1.03);
    box-shadow: 0 6px 16px rgba(220, 39, 67, 0.45);
    color: #fff !important;
}

/* Reel Caption & Accordion */
.ts-overlay-caption {
    margin-top: 6px;
    font-size: 11.5px;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.92);
    font-family: 'Poppins', sans-serif;
    text-shadow: 0 1px 3px rgba(0,0,0,0.85);
    position: relative;
    max-width: 100%;
}

.ts-caption-body {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    word-break: break-word;
    transition: all 0.25s ease;
}

.ts-overlay-caption.is-expanded .ts-caption-body {
    display: block;
    max-height: 130px;
    overflow-y: auto;
    padding-right: 4px;
    scrollbar-width: thin;
    scrollbar-color: #ff1111 rgba(0,0,0,0.4);
}

.ts-caption-toggle {
    display: inline-block;
    color: #ff3b30;
    font-size: 11.5px;
    font-weight: 700;
    cursor: pointer;
    margin-top: 2px;
    user-select: none;
    transition: color 0.2s ease;
}

.ts-caption-toggle:hover {
    color: #ff6b64;
    text-decoration: underline;
}

.ts-caption-mention {
    color: #ff4d4d;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    transition: color 0.2s ease;
}

.ts-caption-mention:hover {
    color: #ff8888;
    text-decoration: underline;
}

.ts-duration {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 6px;
    z-index: 4;
    letter-spacing: 0.5px;
    transition: opacity 0.3s ease;
}

.ts-player{
    position:absolute;
    inset:0;
    width:100%;
    height:100%;
    z-index:50;
    border-radius:inherit;
}

.ts-player iframe,
.ts-player video{
    width:100%;
    height:100%;
    border:0;
    object-fit:cover;
}

.ts-video-media img{
    transition:.3s;
}

.testimonials-page .ts-video-media:hover {
    transform: translateY(-3px);
    transition: all .25s ease-in-out;
    box-shadow: 0 12px 30px rgba(0,0,0,0.18);
}

.testimonials-page .ts-video-item img{
    width:100%;
    height:100%;
    position: absolute;
    top: 0;
    left: 0;
    object-fit: cover;
    object-position: center;
    display:block;
}

.testimonials-page .ts-play{
    position:absolute;
    left:50%;
    top:50%;
    transform:translate(-50%,-50%);
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: #ff1111;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    z-index: 4;
    box-shadow: 0 6px 20px rgba(255, 17, 17, 0.45), 0 0 0 3px rgba(255, 255, 255, 0.3);
    transition: transform 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
    pointer-events:none;
}

.testimonials-page .ts-play i{
    margin-left: 3px;
    border-radius: 0;
    padding: 0;
}

.testimonials-page .ts-video-media:hover .ts-play {
    transform: translate(-50%, -50%) scale(1.1);
    box-shadow: 0 8px 26px rgba(255, 17, 17, 0.6), 0 0 0 5px rgba(255, 255, 255, 0.4);
}

.testimonials-page .ts-player{
    position:absolute;
    left:0;
    top:0;
    width:100%;
    height:100%;
    z-index:5;
}

.testimonials-page .ts-player iframe,
.testimonials-page .ts-player video{
    width:100%;
    height:100%;
    border:0;
    display:block;
    object-fit:cover;
}

.testimonials-page .ts-player.ts-player-youtube {
    overflow: hidden;
}

.testimonials-page .ts-player.ts-player-youtube iframe {
    width: 100% !important;
    height: 100% !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    border: 0;
    display: block;
    object-fit: cover;
    pointer-events: auto;
}

.testimonials-page .ts-player-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 30px;
    height: 30px;
    background: rgba(255,0,0,0.5);
    border: none;
    border-radius: 50%;
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    transition: background 0.3s ease, transform 0.2s ease;
    padding: 0;
}

.testimonials-page .ts-player-close i {
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    line-height: 1;
}

.testimonials-page .ts-player-close:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: scale(1.1);
}

/* Instagram Reel Normal Responsive Player Styles */
.testimonials-page .ts-player.ts-player-instagram {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: #000;
    border-radius: inherit;
    z-index: 50;
}

/* Instagram fallback button — shown at bottom of embed when reel is not embeddable */
.ts-insta-fallback-btn {
    position: absolute;
    bottom: 48px;
    left: 50%;
    transform: translateX(-50%);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
    color: #fff !important;
    font-size: 13px;
    font-weight: 700;
    font-family: 'Poppins', sans-serif;
    padding: 8px 18px;
    border-radius: 999px;
    text-decoration: none !important;
    white-space: nowrap;
    box-shadow: 0 4px 16px rgba(0,0,0,0.5);
    z-index: 60;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    pointer-events: auto;
}

.ts-insta-fallback-btn:hover {
    transform: translateX(-50%) translateY(-2px);
    box-shadow: 0 8px 24px rgba(220, 39, 67, 0.5);
    color: #fff !important;
}



.testimonials-page .ts-player.ts-player-instagram iframe {
    position: absolute;
    left: 0;
    top: 0;
    width: 100% !important;
    height: 100% !important;
    border: 0;
    pointer-events: auto;
    display: block;
    background: #000;
}

.testimonials-page .ts-player.ts-player-instagram .ts-insta-crop-close,
.testimonials-page .ts-player.ts-player-instagram .ts-player-insta-close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    transition: transform 0.2s ease, background 0.2s ease;
    padding: 0;
}

.testimonials-page .ts-player.ts-player-instagram .ts-insta-crop-close:hover,
.testimonials-page .ts-player.ts-player-instagram .ts-player-insta-close:hover {
    background: #ff1111;
    transform: scale(1.1);
}

/* Custom Player Controls Styles */
.ts-custom-controls {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.5) 70%, rgba(0, 0, 0, 0) 100%);
    padding: 20px 12px 10px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    z-index: 90;
    pointer-events: auto;
}

.ts-custom-progress {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    border-radius: 2px;
    position: relative;
    transition: height 0.1s ease;
}

.ts-custom-progress:hover {
    height: 6px;
}

.ts-custom-progress-bar {
    height: 100%;
    width: 0%;
    background: #ff0000;
    border-radius: inherit;
    transition: width 0.1s linear;
}

.ts-custom-time {
    color: #fff;
    font-size: 12px;
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    align-self: flex-start;
    background: rgba(0, 0, 0, 0.4);
    padding: 2px 6px;
    border-radius: 4px;
    letter-spacing: 0.5px;
    user-select: none;
    pointer-events: none;
}

@media (max-width:1100px){

    .testimonials-page .ts-video-item{
        flex:0 0 300px;
    }

    .testimonials-page .ts-video-media{
        height:540px;
    }
}

@media (max-width:768px){

    .testimonials-page .ts-video-item{
        flex: none;
    }

    .testimonials-page .ts-video-media{
        height: auto;
    }
}

@media (max-width:420px){
    .testimonials-page .ts-video-item{
        flex: none;
    }

    .testimonials-page .ts-video-media{
        height: auto;
    }
}

#smooth-wrapper {
    position: static !important;
    height: auto !important;
    overflow: visible !important;
  }

  #smooth-content {
    transform: translate3d(0, 0, 0) !important;
    will-change: auto !important;
  }

.ts-mobile-see-all {
    display: none;
    text-align: center;
    margin-top: 24px;
}
/* Video Testimonials Page Grid */
.ts-video-page-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    padding: 20px 0;
}

.ts-video-page-grid .ts-video-item {
    flex: none;
    width: 100%;
}

@media (max-width: 1100px) {
    .ts-video-page-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .ts-video-page-grid {
        grid-template-columns: 1fr;
        gap: 22px;
        padding: 10px 0 32px;
        justify-items: center;
    }

    .ts-video-page-grid .ts-video-item {
        max-width: 310px; /* compact box for mobile */
        width: 100%;
        margin: 0 auto;
        border-radius: 20px;
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
        overflow: hidden;
    }

    .ts-video-page-grid .ts-video-media {
        height: 470px !important; /* compact height */
        padding-top: 0 !important;
        border-radius: 20px;
    }

    .testimonials-page .ts-video-track .ts-video-item {
        flex: 0 0 260px;
    }

    .testimonials-page .ts-video-track .ts-video-media {
        height: 410px !important;
        padding-top: 0 !important;
    }
}

@media (max-width: 420px) {
    .ts-video-page-grid .ts-video-item {
        max-width: 295px; /* compact box for small phone screens */
    }

    .ts-video-page-grid .ts-video-media {
        height: 445px !important;
    }

    .testimonials-page .ts-play {
        width: 52px;
        height: 52px;
        font-size: 16px;
    }
}

/* Override mobile item hiding on new page */
@media (max-width: 768px) {
    .testimonials-page .ts-video-page-grid .ts-video-item:nth-child(n+5) {
        display: block !important;
    }
}

/* See All Wrapper */
.ts-see-all-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    margin-top: 24px;

}

/* Video Modal */
.ts-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.85);
    z-index: 999999;
    display: none;
    align-items: center;
    justify-content: center;
}

.ts-modal-content {
    position: relative;
    width: 90%;
    max-width: 450px;
    height: 80vh;
    max-height: 85vh;
    background: #000;
    border-radius: 16px;
}

.ts-close-modal {
    position: absolute;
    top: -40px;
    right: 0;
    color: #fff;
    font-size: 40px;
    cursor: pointer;
    line-height: 1;
}

#modalPlayerContainer {
    width: 100%;
    height: 100%;
}

#modalPlayerContainer iframe,
#modalPlayerContainer video {
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 16px;
    object-fit: cover;
}

/* Ensure new page shows all videos */
.testimonials-page .ts-video-page-grid .ts-video-item:nth-child(n+5) {
    display: block !important;
}

/* Modal Red Scrollbar */
.custom-modal-scroll::-webkit-scrollbar {
    width: 6px;
}
.custom-modal-scroll::-webkit-scrollbar-track {
    background: #111;
    border-radius: 10px;
}
.custom-modal-scroll::-webkit-scrollbar-thumb {
    background: #ff1111;
    border-radius: 10px;
}

/* Smaller compact video card in mobile */
@media (max-width: 768px) {
    .ts-video-page-grid {
        padding: 0 15px !important;
    }
    .ts-video-page-grid .ts-video-item {
        max-width: 330px !important;
        margin: 0 auto !important;
    }
}

@media (max-width: 420px) {
    .ts-video-page-grid .ts-video-item {
        max-width: 315px !important;
    }
}

/* Mobile testimonial carousel: taller cards and a visible scroll indicator. */
@media (max-width: 768px) {
    .testimonials-page .ts-video-scroll-wrapper {
        overflow: visible !important;
    }

    .testimonials-page .ts-video-track {
        scrollbar-width: thin;
        scrollbar-color: #ff1111 #666666;
        padding-bottom: 18px !important;
    }

    .testimonials-page .ts-video-track::-webkit-scrollbar {
        display: block !important;
        height: 7px !important;
    }

    .testimonials-page .ts-video-track::-webkit-scrollbar-track {
        background: #666666 !important;
        border-radius: 999px;
    }

    .testimonials-page .ts-video-track::-webkit-scrollbar-thumb {
        background: #ff1111 !important;
        border-radius: 999px;
    }

    .testimonials-page .ts-video-track .ts-video-media {
        height: 450px !important;
        padding-top: 0 !important;
    }
}
