/* ================= TESTIMONIAL (Palette-aligned) ================== */
.testimonial-section{
    position: relative;
    background: var(--color-white);
    padding: 90px 0;
    overflow: hidden;
}

/* soft background halo (teal + warm accent blend) */
.testimonial-section::before{
    content:"";
    position:absolute;
    left: -180px;
    top: -220px;
    width: 700px;
    height: 700px;
    background: radial-gradient(circle,
        rgba(0, 121, 107, .14) 0%,
        rgba(255, 112, 67, .08) 35%,
        rgba(0, 121, 107, 0) 70%
    );
    filter: blur(2px);
    pointer-events:none;
}

/* LEFT: layered image cards */
.ts-media{
    position:relative;
    width: 540px;
    max-width: 100%;
    aspect-ratio: 1 / 1;
    margin:auto;
}

/* back outline card */
.ts-back-card{
    position:absolute;
    inset: 22px 22px -22px -22px;
    border: 3px solid rgba(96, 125, 139, .18); /* muted border */
    border-radius: 26px;
    background: transparent;
    z-index: 0;
}

/* soft card behind the image (beige bg from palette) */
.ts-soft-card{
    position:absolute;
    inset: 0;
    border-radius: 28px;
    background: var(--color-bg);
    z-index: 1;
    transform: translate(18px, -18px);
}

/* main image card */
.ts-image-card{
    position:absolute;
    inset:0;
    z-index:2;
    border-radius: 28px 28px 130px 130px;
    overflow:hidden;
    background: var(--color-white);
    box-shadow:
      0 30px 70px var(--shadow-medium),
      0 10px 30px var(--shadow-light);
}

.ts-image-card img{
    width:100%;
    height:100%;
    object-fit:cover;
    display:block;
    transform: scale(1.02);
}

/* RIGHT: text styles */
.ts-title{
    font-weight:800;
    color: var(--color-primary-dark);
    font-size: 44px;
    letter-spacing: -0.5px;
    margin:0 0 12px 0;
}

.ts-stars{
    font-size: 30px;
    line-height: 1;
    letter-spacing: 6px;
    color: var(--color-accent); /* warm accent */
    margin-bottom: 22px;
}

.ts-text{
    font-size: 40px;
    line-height: 1.25;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 18px;
    max-width: 680px;
}

.ts-author{
    font-size: 16px;
    color: var(--color-text-muted);
    margin:0 0 28px 0;
}

.ts-btn{
    background: var(--color-primary);
    color: var(--color-white);
    border:0;
    padding: 14px 46px;
    border-radius: 10px;
    font-size: 16px;
    font-weight:700;
    box-shadow: 0 14px 30px rgba(0, 121, 107, .28);
    transition: .2s ease;
}
.ts-btn:hover{
    background: var(--color-primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 18px 38px rgba(0, 77, 64, .28);
}

/* spacing like screenshot */
.ts-right{
    padding-left: 50px;
}

@media (max-width: 992px){
    .ts-title{ font-size: 36px; }
    .ts-text{ font-size: 30px; }
    .ts-right{ padding-left: 0; }
    .ts-media{ width: 440px; }
}

@media (max-width: 767px){
    .testimonial-section{ padding: 60px 0; }
    .ts-media{ width: 340px; }
    .ts-title{ font-size: 30px; }
    .ts-stars{ font-size: 26px; }
    .ts-text{ font-size: 24px; }
    .ts-back-card{ inset: 18px 18px -18px -18px; }
    .ts-soft-card{ transform: translate(12px, -12px); }
    .ts-image-card{ border-radius: 24px 24px 100px 100px; }
      .ts-right{
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .ts-text{
    max-width: 100%;
  }

  .ts-btn{
    margin: 0 auto;
  }
}

