  @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 0;
  }

  .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;
    }

    /* Video track 2x2 grid for mobile */
    .testimonials-page .ts-video-track {
      display: grid !important;
      grid-template-columns: repeat(2, 1fr) !important;
      gap: 10px !important;
      overflow-x: visible !important;
      padding-bottom: 0 !important;
    }

    /* 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: none !important;
      width: 100% !important;
      max-width: 100% !important;
      scroll-snap-align: none !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:#fff;
    border-radius:20px;
    overflow:hidden;
    position:relative;
}

/* 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:transparent;
    border-radius:20px;
}

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

.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 {
    scale:1.035;
    transition:all .3s ease-in-out;
    box-shadow:1px 1px 10px rgba(0,0,0,0.285);
}

.testimonials-page .ts-video-item img{
    width:100%;
    height:100%;
    object-fit:center;
    display:block;
}

.testimonials-page .ts-video-content{
    padding:14px 6px 4px;
}

.testimonials-page .ts-video-item h3{
    margin:0;
    font-size:20px;
    font-weight:700;
    line-height:1.3;
    color:#111;
    font-family: "League Spartan", sans-serif !important;
}

.testimonials-page .ts-video-sub{
    margin-top:4px;
    padding:0;
    color:#666;
    font-size:15px;
    line-height:1.4;
    font-family: "Poppins", sans-serif !important;
}

.testimonials-page .ts-play{
    position:absolute;
    left:50%;
    top:50%;
    transform:translate(-50%,-50%);
    pointer-events:none;
    z-index:12;
}

.testimonials-page .ts-play i{
    border-radius:18px;
    padding:20px;
}

.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);
}

/* 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;
    }
}

/* 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;
}
