 /* Import Theme */
 @import "./theme.css";

:root{ 
    --w: 1140px;              /* max width of carousel */
    --h: 520px;              /* height */
    --bg: #011339;
    --gap: 1.2rem; 
  } 

  .testimonial-section{
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 120px 0;
    overflow: hidden;
  }
  .testimonial-section h1.brand-style-1{
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    white-space: pre;
  }
  .testimonial-section .carousel-wrap{
    width: min(var(--w), 96vw);
    height: var(--h);
    perspective: 1400px; /* controls 3D depth */
    position:relative;
  }

  .testimonial-section .carousel{
    width:100%;
    height:100%;
    position:relative;
    transform-style:preserve-3d;
    transition: transform 700ms cubic-bezier(.2,.9,.3,1);
  }

  .testimonial-section .slides{
    width:100%;
    height:100%;
    position:relative;
    list-style:none;
    margin:0;
    padding:0;
    display:flex;
    align-items:center;
    justify-content:center;
    gap:var(--gap);
    pointer-events:none; /* allow buttons to control */
  }

  .testimonial-section .slide{
    --wslide: 300px;
    width: clamp(220px, 36%, 300px);
    /* height: calc(var(--h) - 40px); */
    height: auto;
    border-radius:40px;
    background: #ffffff;
    /* box-shadow: 0px 20px 50px 0px rgba(0, 0, 0, 0.1);
    -webkit-box-shadow: 0px 20px 50px 0px rgba(0, 0, 0, 0.1);
    -moz-box-shadow: 0px 20px 50px 0px rgba(0, 0, 0, 0.1); */
    overflow:hidden;
    transform-origin: 50% 50%;
    transition: transform 700ms cubic-bezier(.2,.9,.3,1), opacity 700ms;
    position:absolute; /* we will place them with transforms */
    display:flex;
    align-items:flex-end;
    justify-content:flex-start;
    padding:40px;
    color:#fff;
    border: 1px solid #B4B4B460;
    pointer-events:auto;
    backface-visibility:hidden;
    flex-direction: column;
    align-items: center;
  }

  .testimonial-section .slide .meta{
    z-index:2;
  }

  .testimonial-section .slide img{
    /* position:absolute; */
    inset:0;
    width:38px;
    height:38px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 15px;
    background: var(--dark-blue);
    /* object-fit:cover;
    filter: saturate(0.95) contrast(1.03);
    transform-origin:center; */
  }
  .profile i{
    width: 38px;
    height: 38px;
    padding: 2px;
    color: var(--white);
    background-color: var(--dark-blue);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: 15px;
    font-style:normal ;
  }
  .testimonial-section .slide .content{ 
    font-style: italic;
    padding: 0 0 20px 0;
  }

  .testimonial-section .slide .profile{
    position:relative;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    z-index:3;
    width:100%;
    background: transparent;
    color: #555; 
    border-radius:10px; 
  }
  

  .testimonial-section .profile h3{ font-size:16px; letter-spacing:0.2px; color: var(--dark-blue); }
  .testimonial-section .profile p{ margin:0; font-size:12px; opacity:0.85; color: var(--text-light); }

  /* Default all slides hidden (small & low opacity) */
  .testimonial-section .slide{
    opacity:0;
    transform: translateZ(-400px) scale(0.7) rotateY(0deg) translateX(0);
    z-index:1;
  }

  /* We'll use data-index attributes and classes 'pos-center', 'pos-left', 'pos-right', 'pos-far-left', 'pos-far-right' */
  .testimonial-section .slide.pos-center{
    opacity:1;
    transform: translateX(0) translateZ(-400px) scale(1) rotateY(0deg);
    z-index:50; 
    box-shadow: 0px 20px 50px 0px rgba(0, 0, 0, 0.1);
    -webkit-box-shadow: 0px 20px 50px 0px rgba(0, 0, 0, 0.1);
    -moz-box-shadow: 0px 20px 50px 0px rgba(0, 0, 0, 0.1); 
  }

  .testimonial-section .slide.pos-left{
    opacity:0.6;
    transform: translateX(-42%) translateZ(20px) scale(0.85) rotateY(18deg);
    z-index:40;
    filter: saturate(0.9) contrast(0.98);
  }

  .testimonial-section .slide.pos-right{
    opacity:0.6;
    transform: translateX(42%) translateZ(20px) scale(0.85) rotateY(-18deg);
    z-index:40;
    filter: saturate(0.9) contrast(0.98);
  }

  .testimonial-section .slide.pos-far-left{
    opacity:0.4;
    transform: translateX(-90%) translateZ(-80px) scale(0.72) rotateY(28deg);
    z-index:30;
    filter: blur(0.4px) saturate(0.85);
  }

  .testimonial-section .slide.pos-far-right{
    opacity:0.4;
    transform: translateX(90%) translateZ(-80px) scale(0.72) rotateY(-28deg);
    z-index:30;
    filter: blur(0.4px) saturate(0.85);
  }

  /* For small displays, compress transforms */
  @media (max-width:700px){
    :root{ --h:420px }
    .slide.pos-left{ transform: translateX(-32%) translateZ(10px) scale(0.82) rotateY(14deg) }
    .slide.pos-right{ transform: translateX(32%) translateZ(10px) scale(0.82) rotateY(-14deg) }
    .slide.pos-far-left{ transform: translateX(-70%) translateZ(-60px) scale(0.7) rotateY(22deg) }
    .slide.pos-far-right{ transform: translateX(70%) translateZ(-60px) scale(0.7) rotateY(-22deg) }
  }

  /* Controls */
  .testimonial-section .controls{
    position:absolute; 
    inset:auto 14px 14px 14px;
    display:flex;
    justify-content:space-between;
    gap:12px;
    align-items:center;
    pointer-events:auto;
    top:50%;
    transform: translateY(-50%);
  }

  .testimonial-section .btn{
    border:0;
    background: #fff;
    color:#fff;
    padding:8px 12px;
    border-radius:10px;
    cursor:pointer;
    backdrop-filter: blur(6px);
    /* box-shadow: 0px 20px 50px 0px rgba(0, 0, 0, 0.1);
    -webkit-box-shadow: 0px 20px 50px 0px rgba(0, 0, 0, 0.1);
    -moz-box-shadow: 0px 20px 50px 0px rgba(0, 0, 0, 0.1); */
    font-weight:600;
    letter-spacing:0.3px;
  }
  .testimonial-section .btn:active{ transform:translateY(1px) }

  /* pager dots */
  .testimonial-section .dots{
    position:absolute;
    left:50%;
    transform:translateX(-50%);
    bottom:8px;
    display:flex;
    gap:8px;
  }
  .testimonial-section .dot{
    width:10px;
    height:10px;
    border-radius:50%;
    background:var(--text-light);
    box-shadow: 0px 20px 50px 0px rgba(0, 0, 0, 0.1);
    -webkit-box-shadow: 0px 20px 50px 0px rgba(0, 0, 0, 0.1);
    -moz-box-shadow: 0px 20px 50px 0px rgba(0, 0, 0, 0.1);
    border:2px solid rgba(255,255,255,0.06);
    cursor:pointer;
  }
  .testimonial-section .dot.active{ background: var(--dark-blue); transform: scale(1.15) }

  /* optional hover effect */
  /* .slide:hover{ transform: translateZ(180px) scale(1.02) } */