/* =========================================================
   TSC AU LOCAL LANDING PAGES
   Optimised CSS – CLS-safe, lighter, smoother
   FIXED: no invisible sections causing “blank gaps”
   UPDATED: Edge albums caption UNDER album (SEPARATE bubble)
   NOTE: DARK THEME REMOVED (as requested)
   ========================================================= */

/* ---------------------------
   GLOBAL RESET & BASE
   --------------------------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

/* SAFE body fade:
   - Default = visible (no JS = no blank page)
   - Only fade if html has .js (add via tiny inline script)
*/
body {
  margin: 0;
  padding: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: #1f2933;
  background: #ffffff;
  opacity: 1; /* default visible */
}

/* Only fade when JS explicitly enables it */
html.js body {
  opacity: 0;
  transition: opacity 0.5s ease-out;
}

html.js body.js-page-loaded {
  opacity: 1;
}

.page-wrapper {
  max-width: 900px;
  margin: 0 auto;
  padding: 26px 16px 120px;
}

/* Make all images stable & responsive */
img {
  display: block;
  max-width: 100%;
  height: auto;
}

/* Keep all fixed widgets intact */
.price-widget,
.quick-quote-widget,
.cta-strip,
.edge-image-widget,
.back-to-top,
.section-dots,
.theme-toggle {
  position: fixed;
  z-index: 900;
}

/* ---------------------------
   TYPOGRAPHY & HEADER
   --------------------------- */

h1,
h2,
h3 {
  color: #111827;
  margin: 0 0 16px;
  font-weight: 650;
  letter-spacing: 0.02em;
}

h1 { font-size: 2.05rem; }
h2 { font-size: 1.52rem; }
h3 { font-size: 1.24rem; }

p { margin: 0 0 14px; }

/* Header */
.page-header {
  margin-bottom: 20px;
  padding: 24px 0 14px;
  position: relative;
  z-index: 10;
  will-change: transform, opacity;
  transition:
    transform 0.35s ease,
    opacity 0.35s ease,
    box-shadow 0.35s ease,
    background-color 0.35s ease;
}

.page-header.header-scrolled {
  transform: translateY(-8px) scale(0.98);
  opacity: 0.9;
  background-color: rgba(255, 255, 255, 0.9);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

.page-header h1 {
  position: relative;
  display: inline-block;
  padding-bottom: 6px;
}

.page-header h1::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 80px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, #0ea5e9, #10b981);
}

/* Theme toggle (button styling kept; no dark theme styles) */
.theme-toggle {
  position: fixed;
  top: 12px;
  right: 16px;
  padding: 6px 10px;
  border-radius: 999px;
  border: none;
  background: #ffffff;
  color: #111827;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.2);
  cursor: pointer;
  font-size: 0.9rem;
  z-index: 1100;
}

/* ---------------------------
   SECTIONS (BASE STYLE)
   --------------------------- */

/* IMPORTANT FIX:
   Sections are visible by default.
   Animation is opt-in via .reveal class (below).
*/
section {
  margin: 26px 0;
  padding: 22px 20px;
  background-color: #ffffff;
  border-radius: 16px;
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.06);
}

/* Opt-in animation:
   Add class="reveal" to sections you want animated.
   JS can still add .in-view.
*/
html.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s ease-out, transform 0.55s ease-out;
  will-change: opacity, transform;
}

html.js .reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* Special safety: long-form article should NEVER be hidden */
#book,
.longform {
  opacity: 1 !important;
  transform: none !important;
}

/* Remove “soft minimum height” (it creates fake blank space) */
#intro,
#services,
#chinese,
#faq {
  min-height: unset;
}

.intro-section {
  background: linear-gradient(135deg, #f9fafb, #eef7ff);
}

.cta-section {
  background: linear-gradient(135deg, #f2fcf7, #e9f4ff);
  border: 1px solid rgba(37, 99, 235, 0.16);
}

/* ---------------------------
   LISTS
   --------------------------- */

.feature-list,
.services-list {
  list-style: none;
  padding: 0;
  margin: 16px 0 0;
}

.feature-list li,
.services-list li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 8px;
}

.feature-list li::before {
  content: "✔";
  position: absolute;
  left: 0;
  top: 0;
  color: #059669;
  font-size: 0.9rem;
}

.services-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  top: 0;
  color: #3b82f6;
  font-size: 1.05rem;
}

/* ---------------------------
   STATS STRIP (HEADER)
   --------------------------- */

.stats-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid #d1d9e6;
}

.stat-item { flex: 1 1 140px; }

.stat-number {
  font-size: 1.6rem;
  font-weight: 700;
  color: #059669;
}

.stat-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #6b7280;
}

/* ---------------------------
   INTERNAL LINKS BAR
   --------------------------- */

.internal-links {
  text-align: center;
  margin: 32px 0;
  padding: 12px 8px;
  border-top: 1px solid #d1d9e6;
  border-bottom: 1px solid #d1d9e6;
  background: rgba(255, 255, 255, 0.9);
}

.internal-links a {
  font-weight: 600;
  color: #1f2933;
  margin: 0 8px;
  text-decoration: none;
  font-size: 0.95rem;
}

.internal-links a.js-enhanced-link {
  position: relative;
}

.internal-links a.js-enhanced-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -3px;
  height: 2px;
  width: 0;
  background: linear-gradient(90deg, #3b82f6, #10b981);
  transition: width 0.25s ease-out;
}

.internal-links a.js-enhanced-link:hover::after {
  width: 100%;
}

/* ---------------------------
   CONTACT FORM
   --------------------------- */

.contact-section {
  background: linear-gradient(135deg, #f6faff, #eef6ff);
}

.contact-form { margin-top: 12px; }

.form-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.form-field {
  flex: 1 1 160px;
  display: flex;
  flex-direction: column;
  margin-bottom: 10px;
}

.form-field label {
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 4px;
  color: #4b5563;
}

.form-field input,
.form-field textarea {
  border-radius: 10px;
  border: 1px solid #d1d5db;
  padding: 8px 10px;
  font-size: 0.95rem;
  font-family: inherit;
  background-color: #ffffff;
  transition:
    border-color 0.15s ease-out,
    box-shadow 0.15s ease-out,
    background-color 0.15s ease-out;
}

.form-field textarea {
  resize: vertical;
  min-height: 90px;
}

.form-field input:focus,
.form-field textarea:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.2);
}

/* Verification row */
.verify-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}

.verify-code {
  display: inline-block;
  padding: 6px 14px;
  background: #111827;
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.12em;
  border-radius: 6px;
  font-size: 1rem;
  user-select: none;
  min-width: 90px;
  text-align: center;
}

.verify-refresh {
  background: #e5e7eb;
  border: none;
  padding: 6px 10px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 1rem;
  transition: background 0.2s ease;
}

.verify-refresh:hover { background: #d1d5db; }

.contact-submit {
  margin-top: 4px;
  padding: 8px 18px;
  border-radius: 999px;
  border: none;
  background: #111827;
  color: #f9fafb;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.25);
  transition:
    transform 0.15s ease-out,
    box-shadow 0.15s ease-out,
    background 0.15s ease-out;
}

.contact-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.32);
  background: #0f172a;
}

.contact-feedback {
  margin-top: 8px;
  font-size: 0.85rem;
  color: #374151;
}

.contact-feedback.error { color: #b91c1c; }
.contact-feedback.success { color: #047857; }

/* ---------------------------
   FOOTER
   --------------------------- */

.page-footer {
  text-align: left;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid #d1d9e6;
  font-size: 0.95rem;
}

.page-footer a {
  color: #111827;
  font-weight: 600;
  text-decoration: none;
}

/* ---------------------------
   BACK TO TOP BUTTON
   --------------------------- */

.back-to-top {
  position: fixed;
  right: 16px;
  bottom: 90px;
  padding: 6px 12px;
  font-size: 0.85rem;
  border-radius: 999px;
  border: none;
  background: #111827;
  color: #ffffff;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(6px);
  transition:
    opacity 0.25s ease-out,
    transform 0.25s ease-out,
    box-shadow 0.25s ease-out;
  z-index: 999;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.24);
}

.back-to-top.show {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.back-to-top:hover {
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.32);
}

/* ---------------------------
   SCROLL PROGRESS BAR
   --------------------------- */

.scroll-progress-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: transparent;
  z-index: 1000;
}

.scroll-progress-bar {
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, #06b6d4, #10b981);
  transition: width 0.16s ease-out;
}

/* ---------------------------
   FLOATING CTA STRIP
   --------------------------- */

.cta-strip {
  position: fixed;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 100%;
  max-width: 900px;
  padding: 8px 14px;
  background: rgba(15, 23, 42, 0.97);
  color: #e5e7eb;
  font-size: 0.9rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  z-index: 950;
}

.cta-strip-text { flex: 1 1 auto; }

.cta-strip-action {
  flex: 0 0 auto;
  font-weight: 600;
}

.cta-strip-action a {
  color: #10b981;
  text-decoration: none;
}

.cta-strip-action a:hover { text-decoration: underline; }

/* ---------------------------
   PRICE WIDGET (BOTTOM LEFT)
   --------------------------- */

.price-widget {
  left: 16px;
  bottom: 80px;
  z-index: 940;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.25s ease-out, transform 0.25s ease-out;
}

.price-widget.visible {
  opacity: 1;
  transform: translateY(0);
}

.price-pill {
  display: inline-flex;
  flex-direction: column;
  gap: 2px;
  padding: 8px 14px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(148, 163, 184, 0.4);
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.32);
  backdrop-filter: blur(12px);
}

.price-text-top {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: #6b7280;
}

.price-text-bottom {
  font-size: 0.98rem;
  font-weight: 600;
  color: #111827;
}

.price-text-bottom strong { color: #0f766e; }

/* ---------------------------
   QUICK QUOTE WIDGET (LEFT)
   --------------------------- */

.quick-quote-widget {
  left: 16px;
  bottom: 190px;
  z-index: 960;
  font-size: 0.9rem;
}

.qq-toggle {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  border: none;
  border-radius: 999px;
  padding: 8px 6px;
  background: #111827;
  color: #f9fafb;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.35);
}

.qq-panel {
  position: absolute;
  left: 44px;
  top: 50%;
  transform: translateY(-50%) translateX(-12px);
  width: 260px;
  padding: 14px 14px 12px;
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.35);
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 0.25s ease-out,
    transform 0.25s ease-out;
}

.quick-quote-widget.open .qq-panel {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(-50%) translateX(0);
}

.qq-panel h3 { margin: 0 0 6px; font-size: 1.05rem; }
.qq-panel p { margin: 0 0 8px; font-size: 0.86rem; }

.qq-panel a {
  color: #2563eb;
  text-decoration: none;
}

.qq-panel a:hover { text-decoration: underline; }

.qq-button {
  display: inline-block;
  margin-top: 4px;
  padding: 6px 10px;
  border-radius: 999px;
  background: #0f766e;
  color: #f9fafb !important;
  font-weight: 600;
  font-size: 0.85rem;
  text-decoration: none;
}

.qq-button:hover { background: #0d9488; }

/* ---------------------------
   SECTION DOTS (RIGHT)
   --------------------------- */

.section-dots {
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 900;
}

.section-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  background: #cbd5e1;
  cursor: pointer;
  padding: 0;
  transition:
    background 0.2s ease-out,
    transform 0.2s ease-out;
}

.section-dot.active {
  background: #3b82f6;
  transform: scale(1.25);
}

.section-dot:hover { background: #10b981; }

/* ---------------------------
   EDGE IMAGE WIDGETS
   UPDATED: caption UNDER album, SEPARATE from album card
   (works with your JS that appends .edge-caption after <img>)
   --------------------------- */

.edge-image-widget{
  z-index: 930;

  /* container only */
  width: 260px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;                 /* space between album + caption */

  background: transparent;   /* remove shared card background */
  box-shadow: none;          /* remove shared card shadow */
  padding: 0;                /* no padding so caption is separate */
  overflow: visible;         /* allow hover effects */
  transform: translateY(-50%);
  opacity: 0.93;

  transition:
    transform 0.25s ease-out,
    opacity 0.3s ease-out;
}

.edge-image-widget.edge-left { left: clamp(20px, 6vw, 80px); }
.edge-image-widget.edge-right { right: clamp(20px, 6vw, 80px); }

/* Album card look is on the IMG itself */
.edge-image{
  width: 100%;
  height: 180px;

  padding: 6px;
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.25);

  object-fit: cover;
  transition: opacity 0.35s ease-out, transform 0.25s ease-out, box-shadow 0.25s ease-out;
  flex: 0 0 auto;
}

.edge-image.fading-out { opacity: 0; }
.edge-image.fading-in { opacity: 1; }

/* Separate caption bubble */
.edge-caption{
  position: static;
  transform: none;

  padding: 10px 12px;
  font-size: 13px;
  line-height: 1.35;

  color: #0f172a;
  background: rgba(255,255,255,.92);
  border: 1px solid rgba(226,232,240,.95);
  border-radius: 12px;
  box-shadow: 0 10px 26px rgba(2,6,23,.10);

  opacity: 1;
  transition: opacity .22s ease;
  pointer-events: none;
  will-change: opacity;
}

.edge-caption.fading-out{ opacity: 0; }
.edge-caption.fading-in{ opacity: 1; }

/* Hover lifts container; image gets stronger shadow */
.edge-image-widget:hover{
  transform: translateY(-50%) translateY(-3px) scale(1.02);
  opacity: 1;
}
.edge-image-widget:hover .edge-image{
  box-shadow: 0 20px 45px rgba(15, 23, 42, 0.35);
  transform: scale(1.01);
}

@media (max-width: 899px) {
  .edge-image-widget { display: none; }
}

/* ---------------------------
   RESPONSIVE
   --------------------------- */

@media (max-width: 768px) {
  h1 { font-size: 1.7rem; }
  h2 { font-size: 1.35rem; }

  section {
    padding: 18px 16px;
    margin: 22px 0;
  }

  .stats-strip { gap: 10px; }

  .page-wrapper { padding-bottom: 120px; }
}

@media (max-width: 640px) {
  .section-dots { display: none; }
  .price-widget { bottom: 96px; }
  .quick-quote-widget { bottom: 210px; }
}

/* ---------------------------
   REDUCED MOTION
   --------------------------- */

@media (prefers-reduced-motion: reduce) {
  html.js body {
    opacity: 1;
    transition: none;
  }

  html.js .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .back-to-top,
  .price-widget,
  .edge-image,
  .edge-caption,
  .page-header {
    transition: none;
  }
}

/* ---------------------------
   BOTTOM CONTACT FORM
   (kept as-is, independent from <section>)
   --------------------------- */

#bottom-contact-form {
  margin: 40px auto 60px auto;
  padding: 30px 20px;
  max-width: 600px;
  background: linear-gradient(135deg, #f6faff, #eef6ff);
  border-radius: 16px;
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.06);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, Helvetica, Arial, sans-serif;

  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s ease-out, transform 0.55s ease-out;
  will-change: opacity, transform;
}

#bottom-contact-form.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* Form inside section */
#bottom-contact-form .contact-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

#bottom-contact-form label {
  font-size: 0.85rem;
  font-weight: 600;
  color: #4b5563;
  margin-bottom: 4px;
}

#bottom-contact-form input,
#bottom-contact-form textarea {
  border-radius: 10px;
  border: 1px solid #d1d5db;
  padding: 8px 10px;
  font-size: 0.95rem;
  font-family: inherit;
  background-color: #ffffff;
  transition:
    border-color 0.15s ease-out,
    box-shadow 0.15s ease-out,
    background-color 0.15s ease-out;
}

#bottom-contact-form textarea {
  resize: vertical;
  min-height: 90px;
}

#bottom-contact-form input:focus,
#bottom-contact-form textarea:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.2);
}

#bottom-contact-form .verify-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}

#bottom-contact-form .verify-code {
  display: inline-block;
  padding: 6px 14px;
  background: #111827;
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.12em;
  border-radius: 6px;
  font-size: 1rem;
  user-select: none;
  min-width: 90px;
  text-align: center;
}

#bottom-contact-form #refresh-code {
  background: #e5e7eb;
  border: none;
  padding: 6px 10px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.9rem;
  transition: background 0.2s ease;
}

#bottom-contact-form #refresh-code:hover {
  background: #d1d5db;
}

#bottom-contact-form button[type="submit"] {
  padding: 8px 18px;
  border-radius: 999px;
  border: none;
  background: #111827;
  color: #f9fafb;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.25);
  transition:
    transform 0.15s ease-out,
    box-shadow 0.15s ease-out,
    background 0.15s ease-out;
}

#bottom-contact-form button[type="submit"]:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.32);
  background: #0f172a;
}

#bottom-contact-form .contact-feedback {
  margin-top: 8px;
  font-size: 0.85rem;
  color: #374151;
}

#bottom-contact-form .contact-feedback.error { color: #b91c1c; }
#bottom-contact-form .contact-feedback.success { color: #047857; }

/* =========================================================
   HOME PAGE ( .wrap layout ) — MOBILE OVERFLOW FIX
   No @supports (so your editor won’t complain)
   Scoped to homepage only; landing pages use .page-wrapper
   ========================================================= */

/* Stop horizontal scrolling caused by absolute collage frames */
.wrap {
  overflow-x: hidden;
  max-width: 100%;
}

/* Make sure container never exceeds viewport */
.wrap .container {
  width: 100%;
  max-width: 1180px;
  padding-left: 16px;
  padding-right: 16px;
  box-sizing: border-box;
}

/* Allow grid/flex children to shrink on mobile (prevents overflow) */
.wrap .hero,
.wrap .hero > *,
.wrap .card,
.wrap .ctaRow,
.wrap .quotePanel {
  min-width: 0;
}

/* Slideshow/collage safety */
.wrap .tsc-slideshow {
  max-width: 100%;
}

/* Border can push width: force border-box and cap width */
.wrap .tsc-ss-photo {
  box-sizing: border-box;
  max-width: 100%;
}

/* Small screens: reduce border and tighten collage positions so it stays fully inside */
@media (max-width: 520px) {
  .wrap .tsc-ss-photo { border-width: 8px; } /* was 10px */

  /* HERO collage */
  .wrap .heroGallery .tsc-ss-top { left: 10px; width: 74%; }
  .wrap .heroGallery .tsc-ss-bottom { left: 18%; width: 84%; }

  /* Factory-direct collage */
  #fd-advantage .fd-top { left: 10px; width: 74%; }
  #fd-advantage .fd-bottom { left: 18%; width: 84%; }
}
/* =========================================================
   SERVICE TESTIMONIALS (NO images) — inserted before footer
   ========================================================= */

#tsc-service-testimonials.tsc-tm-section{
  /* override your default <section> card styling */
  background: transparent;
  box-shadow: none;
  padding: 0;
  margin: 34px 0 18px;
}

.tsc-tm-title{
  text-align: center;
  margin: 0 0 16px;
  font-weight: 800;
  font-size: 18px;
  letter-spacing: .08em;
  color: #0b0f19;
}

.tsc-tm-wrap{
  max-width: 900px; /* matches your .page-wrapper */
  margin: 0 auto;
}

.tsc-tm-card{
  position: relative;
  background: #ffffff;
  border-radius: 26px;
  box-shadow: 0 16px 45px rgba(0,0,0,.12);
  padding: 28px 30px;
  overflow: hidden;
  outline: none;
}

.tsc-tm-card:focus{
  box-shadow: 0 16px 45px rgba(0,0,0,.12), 0 0 0 3px rgba(17, 24, 39, .08);
}

.tsc-tm-slide{
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  min-height: 230px;
  transition: opacity .18s ease, transform .18s ease;
}

.tsc-tm-slide.is-fading{
  opacity: 0;
  transform: translateY(6px);
}

.tsc-tm-quote{
  width: 110px;
  height: 70px;
  opacity: .10;
  color: #0b0f19;
  align-self: flex-start;
}
.tsc-tm-quote svg{ width:100%; height:100%; fill: currentColor; }

.tsc-tm-meta{
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

.tsc-tm-pill{
  font-weight: 700;
  font-size: 12px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #111827;
  background: #f3f4f6;
  border: 1px solid #e5e7eb;
  padding: 9px 12px;
  border-radius: 999px;
}

.tsc-tm-name{
  font-weight: 800;
  font-size: 18px;
  letter-spacing: .03em;
  text-transform: uppercase;
  color: #0b0f19;
}

.tsc-tm-text{
  margin: 0;
  max-width: 760px;
  text-align: center;
  color: #0b0f19;
  font-weight: 500;
  font-size: 18px;
  line-height: 1.7;
  font-family: Georgia, "Times New Roman", Times, serif;
}

.tsc-tm-bottom{
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 8px;
}

.tsc-tm-stars{
  display: flex;
  gap: 6px;
  padding-left: 4px;
}
.tsc-tm-star{
  width: 18px;
  height: 18px;
  color: #f2c94c;
}
.tsc-tm-star svg{ width:100%; height:100%; fill: currentColor; }

.tsc-tm-dots{
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}
.tsc-tm-dot{
  width: 9px;
  height: 9px;
  border-radius: 999px;
  border: 1px solid #d1d5db;
  background: #ffffff;
  cursor: pointer;
  padding: 0;
}
.tsc-tm-dot.is-active{
  background: #111827;
  border-color: #111827;
}

/* arrows */
.tsc-tm-nav{
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 0;
  background: #fff;
  box-shadow: 0 10px 22px rgba(0,0,0,.12);
  display: grid;
  place-items: center;
  cursor: pointer;
  color: #111827;
}
.tsc-tm-nav svg{ width: 22px; height: 22px; }
.tsc-tm-nav:hover{ filter: brightness(0.98); }
.tsc-tm-nav:active{ transform: translateY(-50%) scale(.98); }

.tsc-tm-prev{ left: -16px; }
.tsc-tm-next{ right: -16px; }

@media (max-width: 768px){
  .tsc-tm-card{ padding: 20px; }
  .tsc-tm-prev{ left: 10px; }
  .tsc-tm-next{ right: 10px; }
  .tsc-tm-bottom{ flex-direction: column; align-items: flex-start; }
  .tsc-tm-dots{ justify-content: flex-start; }
  .tsc-tm-text{ text-align: left; }
  .tsc-tm-meta{ justify-content: flex-start; }
}
/* =========================
   Fade-in reveal effect
   ========================= */
.reveal{
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .65s ease, transform .65s ease;
  will-change: opacity, transform;
}
.reveal.is-visible{
  opacity: 1;
  transform: translateY(0);
}

/* Optional: respect reduced motion */
@media (prefers-reduced-motion: reduce){
  .reveal{
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

