/* ================================================================== */
/* Homepage testimonials slider                                        */
/* Hand-written (not Tailwind) so it works without a CSS rebuild.      */
/* ================================================================== */

.ts-section {
  position: relative;
  overflow: hidden;
  padding: 5rem 0;
  background:
    radial-gradient(circle at 8% 20%, rgba(15, 118, 110, 0.08), transparent 40%),
    radial-gradient(circle at 92% 80%, rgba(244, 124, 11, 0.09), transparent 40%);
}
.ts-inner { max-width: 80rem; margin: 0 auto; padding: 0 1rem; }
@media (min-width: 640px) { .ts-inner { padding: 0 1.5rem; } }
@media (min-width: 1024px) { .ts-inner { padding: 0 2rem; } }

.ts-slider {
  --per-view: 1;
  --gap: 1.5rem;
  position: relative;
}
@media (min-width: 768px) { .ts-slider { --per-view: 2; } }
@media (min-width: 1100px) { .ts-slider { --per-view: 3; } }

/* soft fade at the edges so cards glide in and out */
.ts-viewport {
  overflow: hidden;
  padding: 1.5rem 0.25rem 2.5rem;
  margin: -1.5rem -0.25rem 0;
}
.ts-track {
  display: flex;
  gap: var(--gap);
  will-change: transform;
  transition: transform 0.8s cubic-bezier(0.65, 0, 0.35, 1);
}
.ts-track.no-anim { transition: none; }
.ts-slide {
  flex: 0 0 calc((100% - (var(--per-view) - 1) * var(--gap)) / var(--per-view));
  min-width: 0;
  display: flex;
}

.ts-card {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  background: #fff;
  border-radius: 1.5rem;
  padding: 2rem 1.75rem 1.5rem;
  border: 1px solid #e2e8f0;
  box-shadow: 0 1px 2px rgba(11, 31, 51, 0.04), 0 8px 24px -8px rgba(11, 31, 51, 0.12);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.4s;
  overflow: hidden;
}
.ts-card::before {
  /* orange-to-gold accent line along the top */
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, #f47c0b, #ffb703);
  transform: scaleX(0.25);
  transform-origin: left;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.ts-card:hover {
  transform: translateY(-6px);
  border-color: transparent;
  box-shadow: 0 4px 12px rgba(11, 31, 51, 0.08), 0 24px 48px -16px rgba(11, 31, 51, 0.22);
}
.ts-card:hover::before { transform: scaleX(1); }

.ts-quote-mark {
  position: absolute;
  top: 1.1rem;
  right: 1.4rem;
  width: 3.25rem;
  height: 3.25rem;
  color: #fff3e0;
}
.ts-stars { position: relative; display: flex; gap: 0.2rem; margin-bottom: 1.1rem; }
.ts-stars svg { width: 1.05rem; height: 1.05rem; color: #e2e8f0; }
.ts-stars svg.is-on { color: #ffb703; }

.ts-text {
  position: relative;
  flex: 1;
  margin: 0 0 1.5rem;
  font-size: 0.97rem;
  line-height: 1.7;
  color: #17202a;
}

.ts-person {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.8rem;
  padding-top: 1.25rem;
  border-top: 1px dashed #e2e8f0;
}
.ts-avatar {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.9rem;
  height: 2.9rem;
  border-radius: 50%;
  font-weight: 800;
  font-size: 0.9rem;
  color: #fff;
  box-shadow: 0 0 0 3px #fff, 0 0 0 5px currentColor;
}
.ts-avatar.ts-umrah  { background: linear-gradient(135deg, #14a394, #0f766e); color: #fff; box-shadow: 0 0 0 3px #fff, 0 0 0 5px #d2efeb; }
.ts-avatar.ts-flight { background: linear-gradient(135deg, #ff9433, #d95f02); color: #fff; box-shadow: 0 0 0 3px #fff, 0 0 0 5px #ffe4c2; }
.ts-avatar.ts-visa   { background: linear-gradient(135deg, #23466b, #0b1f33); color: #fff; box-shadow: 0 0 0 3px #fff, 0 0 0 5px #e2e8f0; }

.ts-meta { min-width: 8rem; flex: 1; }
.ts-name { margin: 0; font-weight: 700; font-size: 0.92rem; color: #0b1f33; }
.ts-location { margin: 0.1rem 0 0; font-size: 0.78rem; color: #64748b; }

.ts-service {
  flex-shrink: 0;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.3rem 0.6rem;
  border-radius: 999px;
  white-space: nowrap;
}
.ts-service.ts-umrah  { color: #0b5e58; background: #ecf8f6; }
.ts-service.ts-flight { color: #b04c02; background: #fff3e0; }
.ts-service.ts-visa   { color: #0b1f33; background: #f2f4f6; }

/* Controls */
.ts-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  margin-top: 0.5rem;
}
.ts-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  background: #fff;
  color: #0b1f33;
  border: 1px solid #e2e8f0;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.ts-arrow svg { width: 1.2rem; height: 1.2rem; }
.ts-arrow:hover {
  background: #f47c0b;
  border-color: #f47c0b;
  color: #fff;
  box-shadow: 0 8px 20px -8px rgba(244, 124, 11, 0.6);
}
.ts-dots { display: flex; align-items: center; gap: 0.5rem; }
.ts-dot {
  position: relative;
  width: 0.6rem;
  height: 0.6rem;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: #cbd5e1;
  cursor: pointer;
  overflow: hidden;
  transition: width 0.4s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.3s;
}
.ts-dot.is-active { width: 2.25rem; background: #ffe4c2; }
/* the active dot fills up as a countdown to the next slide */
.ts-dot.is-active::after {
  content: "";
  position: absolute;
  inset: 0;
  background: #f47c0b;
  transform-origin: left;
  animation: ts-progress var(--ts-delay, 3500ms) linear forwards;
}
.ts-slider.is-paused .ts-dot.is-active::after { animation-play-state: paused; }
@keyframes ts-progress {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

@media (prefers-reduced-motion: reduce) {
  .ts-track { transition: none; }
  .ts-dot.is-active::after { animation: none; transform: scaleX(1); }
}

.ts-intro { max-width: 38rem; margin: 1rem auto 1.5rem; color: #64748b; line-height: 1.7; }
.ts-review-button {
  display: inline-flex; align-items: center; gap: 0.9rem; margin-top: 0.35rem; padding: 0.8rem 1.15rem;
  border: 1px solid rgba(244, 124, 11, 0.25); border-radius: 1rem; background: rgba(255, 255, 255, 0.92);
  color: #0b1f33; text-align: left; cursor: pointer; box-shadow: 0 8px 24px rgba(11, 31, 51, 0.08);
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.ts-review-button:hover { transform: translateY(-2px); border-color: #f47c0b; box-shadow: 0 14px 28px rgba(11, 31, 51, 0.13); }
.ts-review-button-icon, .ts-review-button-arrow {
  display: grid; place-items: center; width: 2.5rem; height: 2.5rem; flex: 0 0 auto;
  border-radius: 0.8rem; background: linear-gradient(135deg, #fff3e0, #ffe0b2); color: #c45d05; font-size: 1.2rem;
}
.ts-review-button strong, .ts-review-button small { display: block; }
.ts-review-button strong { font-size: 0.9rem; }
.ts-review-button small { margin-top: 0.12rem; color: #64748b; font-size: 0.76rem; }
.ts-review-button-arrow { width: auto; height: auto; padding: 0.4rem; background: none; font-size: 1.4rem; }
.ts-review-notice {
  max-width: 42rem; margin: -1.5rem auto 2rem; padding: 0.9rem 1.2rem; border: 1px solid #a7e4d1;
  border-radius: 0.9rem; background: #effcf7; color: #12604e; text-align: center; font-weight: 600;
}
.ts-video-wrap { margin: 0 0 1.5rem; overflow: hidden; border-radius: 1rem; background: #0b1f33; }
.ts-video-wrap video { display: block; width: 100%; max-height: 18rem; aspect-ratio: 16 / 9; object-fit: contain; }
.ts-video-label { display: block; padding: 0.55rem 0.8rem; color: #fff; font-size: 0.76rem; font-weight: 600; }
.ts-video-label span { margin-right: 0.35rem; color: #ffb703; }

.ts-review-dialog { width: min(94vw, 39rem); max-width: none; max-height: 90vh; padding: 0; border: 0; border-radius: 1.5rem; color: #0b1f33; box-shadow: 0 28px 90px rgba(5, 20, 35, 0.32); }
.ts-review-dialog::backdrop { background: rgba(7, 24, 40, 0.68); backdrop-filter: blur(5px); }
.ts-review-dialog-card { position: relative; padding: clamp(1.35rem, 5vw, 2.5rem); background: radial-gradient(circle at 100% 0, rgba(244, 124, 11, 0.1), transparent 34%), #fff; }
.ts-review-close { position: absolute; top: 1rem; right: 1rem; width: 2.5rem; height: 2.5rem; border: 1px solid #e2e8f0; border-radius: 50%; background: #fff; color: #475569; font-size: 1.6rem; cursor: pointer; }
.ts-review-eyebrow { color: #bf5a05; font-size: 0.68rem; font-weight: 800; letter-spacing: 0.15em; }
.ts-review-dialog h2 { margin: 0.45rem 2.6rem 0; font-size: clamp(1.5rem, 5vw, 2rem); font-weight: 800; text-align: center; }
.ts-review-lead { max-width: 28rem; margin: 0.6rem auto 1.5rem; color: #64748b; line-height: 1.6; text-align: center; }
.ts-review-form { display: grid; gap: 1rem; }
.ts-review-honeypot { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.ts-review-types { display: grid; grid-template-columns: 1fr 1fr; gap: 0.7rem; margin: 0; padding: 0; border: 0; }
.ts-review-types legend, .ts-rating legend { margin-bottom: 0.55rem; color: #334155; font-size: 0.82rem; font-weight: 700; }
.ts-review-type { display: flex; align-items: center; gap: 0.65rem; min-width: 0; padding: 0.75rem; border: 1px solid #e2e8f0; border-radius: 0.9rem; cursor: pointer; transition: border-color 0.2s, background 0.2s; }
.ts-review-type:has(input:checked) { border-color: #f47c0b; background: #fff8ef; box-shadow: 0 0 0 2px rgba(244, 124, 11, 0.1); }
.ts-review-type input { accent-color: #e96e08; }
.ts-review-type-icon { display: grid; place-items: center; width: 2rem; height: 2rem; flex: 0 0 auto; border-radius: 0.65rem; background: #fff0dc; color: #c45d05; font-weight: 800; }
.ts-review-type strong, .ts-review-type small { display: block; }
.ts-review-type strong { font-size: 0.78rem; }
.ts-review-type small { margin-top: 0.2rem; color: #64748b; font-size: 0.68rem; line-height: 1.4; }
.ts-review-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 0.8rem; }
.ts-review-fields > label { display: grid; align-content: start; gap: 0.4rem; color: #334155; font-size: 0.78rem; font-weight: 700; }
.ts-review-fields input[type="text"], .ts-review-fields select, .ts-review-fields textarea, .ts-review-fields input[type="file"] { width: 100%; min-width: 0; padding: 0.75rem 0.8rem; border: 1px solid #d9e1e9; border-radius: 0.7rem; background: #fff; color: #0b1f33; font: inherit; font-size: 0.84rem; }
.ts-review-fields input:focus, .ts-review-fields select:focus, .ts-review-fields textarea:focus { outline: 3px solid rgba(244, 124, 11, 0.18); border-color: #f47c0b; }
.ts-review-fields textarea { resize: vertical; }
.ts-review-fields label:has(textarea), .ts-review-fields label:has(input[type="file"]), .ts-rating { grid-column: 1 / -1; }
.ts-review-fields input[type="file"] { padding: 0.55rem; }
.ts-review-fields label > small { color: #64748b; font-size: 0.7rem; font-weight: 400; }
.ts-rating { margin: 0; padding: 0; border: 0; }
.ts-rating-options { display: flex; flex-direction: row-reverse; justify-content: flex-end; gap: 0.25rem; }
.ts-rating-options input { position: absolute; opacity: 0; }
.ts-rating-options span { color: #cbd5e1; font-size: 1.8rem; cursor: pointer; }
.ts-rating-options label:hover span, .ts-rating-options label:hover ~ label span, .ts-rating-options label.is-selected span { color: #ffb703; }
.ts-rating-options input:focus-visible ~ span { outline: 2px solid #f47c0b; outline-offset: 2px; }
.ts-review-text-field, .ts-review-video-field { display: none !important; }
.ts-review-form[data-review-type="text"] .ts-review-text-field, .ts-review-form[data-review-type="video"] .ts-review-video-field { display: grid !important; }
.ts-review-privacy { margin: 0; color: #64748b; font-size: 0.75rem; line-height: 1.5; text-align: center; }
.ts-review-submit { display: flex; justify-content: center; align-items: center; gap: 0.65rem; width: 100%; padding: 0.9rem 1.1rem; border: 0; border-radius: 0.8rem; background: linear-gradient(110deg, #e96e08, #f59e0b); color: #fff; font-size: 0.94rem; font-weight: 800; cursor: pointer; box-shadow: 0 9px 20px rgba(217, 95, 2, 0.25); transition: transform 0.2s, box-shadow 0.2s; }
.ts-review-submit:hover { transform: translateY(-1px); box-shadow: 0 13px 25px rgba(217, 95, 2, 0.34); }
@media (max-width: 520px) { .ts-review-types, .ts-review-fields { grid-template-columns: 1fr; } .ts-review-fields label:has(textarea), .ts-review-fields label:has(input[type="file"]), .ts-rating { grid-column: auto; } }
