/* Transcend vendor page (partner/transcend.php) */

:root {
  --ts-red: #960014;
  --ts-red-dark: #70000f;
  --ts-ink: #17171e;
  --ts-muted: #5a5a66;
  --ts-soft: #f5f5f8;
  --ts-line: #e3e3ea;
  --ts-radius: 16px;
}

body {
  overflow-x: hidden;
}

html {
  scroll-behavior: smooth;
}

.ts-page p {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--ts-muted);
}

.ts-page h1,
.ts-page h2 {
  color: var(--ts-ink);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.ts-page h1 {
  margin-bottom: 1rem;
  font-size: clamp(2.2rem, 4.6vw, 3.2rem);
  line-height: 1.1;
}

.ts-page h2 {
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  line-height: 1.2;
}

.ts-page h3 {
  color: var(--ts-ink);
  font-weight: 700;
  line-height: 1.35;
}

.ts-soft {
  background: var(--ts-soft);
}

.ts-page .py-5 {
  padding-top: 4.5rem !important;
  padding-bottom: 4.5rem !important;
}

.ts-page .ts-section-title {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 0 0 2.25rem;
}

.ts-page .ts-section-title::after {
  content: '';
  flex: 1;
  height: 2px;
  background: var(--ts-line);
}

.ts-page .ts-spotlight-label {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin: 2.25rem 0 1.5rem;
  color: var(--ts-red);
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.ts-page .ts-spotlight-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--ts-line);
}

/* hero */
.ts-page > .ts-soft:first-child {
  background:
    radial-gradient(50% 100% at 100% 0%, rgba(150, 0, 20, 0.1) 0%, transparent 65%),
    linear-gradient(180deg, #f8f8fb 0%, var(--ts-soft) 100%);
}

/* buttons */
.ts-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.7rem 1.5rem;
  border: 2px solid var(--ts-red);
  border-radius: 8px;
  background: var(--ts-red);
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.3;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s, color 0.2s;
}

.ts-btn:hover,
.ts-btn:focus-visible {
  border-color: var(--ts-red-dark);
  background: var(--ts-red-dark);
  color: #fff;
}

.ts-btn:focus-visible,
.ts-link:focus-visible {
  outline: 3px solid rgba(150, 0, 20, 0.3);
  outline-offset: 3px;
}

.ts-btn i {
  font-size: 0.8em;
  transition: transform 0.2s;
}

.ts-btn:hover i {
  transform: translateX(3px);
}

.ts-btn--white {
  border-color: #fff;
  background: #fff;
  color: var(--ts-red);
}

.ts-btn--white:hover,
.ts-btn--white:focus-visible {
  border-color: #f3e1e3;
  background: #f3e1e3;
  color: var(--ts-red);
}

.ts-link {
  display: inline-flex;
  align-items: center;
  padding: 0;
  border: 0;
  background: none;
  color: var(--ts-red);
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
}

.ts-link:hover {
  color: var(--ts-red-dark);
}

.ts-link i {
  margin-left: 0.45rem;
  font-size: 0.8em;
  transition: transform 0.2s;
}

.ts-link:hover i {
  transform: translateX(4px);
}

/* video */
.ts-video {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid var(--ts-line);
  border-radius: var(--ts-radius);
  background: #000;
}

.ts-video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* cards */
.ts-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  border: 1px solid var(--ts-line);
  border-radius: var(--ts-radius);
  background: #fff;
  transition: border-color 0.25s;
}

.ts-card:hover {
  border-color: var(--ts-red);
}

.ts-img-wrapper {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: center;
  height: 200px;
  padding: 1rem;
  overflow: hidden;
  background: linear-gradient(135deg, #f8f8fb, #eaeaf0);
}

.ts-img-wrapper img {
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 100%;
  object-fit: contain;
  transition: transform 0.4s ease;
}

.ts-card:hover .ts-img-wrapper img {
  transform: scale(1.07);
}

.ts-why .ts-img-wrapper {
  height: auto;
  padding: 2rem 1.5rem 0;
  background: #fff;
  justify-content: flex-start;
}

.ts-svg {
  box-sizing: content-box;
  width: 36px;
  height: 36px;
  padding: 14px;
  border-radius: 16px;
  background: rgba(150, 0, 20, 0.08);
  color: var(--ts-red);
  stroke: currentColor;
  transition: background 0.25s, color 0.25s;
}

.ts-why:hover .ts-svg {
  background: var(--ts-red);
  color: #fff;
}

.ts-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
  padding: 1.25rem 1.4rem 1.4rem;
}

.ts-why .ts-card-body {
  padding-top: 1.1rem;
}

.ts-text-wrapper {
  flex: 1;
  margin-bottom: 1rem;
}

.ts-tag {
  display: inline-block;
  margin-bottom: 0.6rem;
  padding: 0.2rem 0.7rem;
  border-radius: 999px;
  background: #f6e3e5;
  color: var(--ts-red);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.ts-page .ts-card h3 {
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
}

.ts-page .ts-card p {
  margin: 0;
  font-size: 0.93rem;
  line-height: 1.6;
}

/* category banners */
.ts-banner {
  position: relative;
  min-height: 280px;
  display: flex;
  align-items: center;
  padding: 3.25rem 3rem;
  overflow: hidden;
  border-radius: 20px;
  background: #222 center / cover no-repeat;
}

.ts-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(8, 8, 12, 0.88) 0%, rgba(8, 8, 12, 0.6) 55%, rgba(8, 8, 12, 0.15) 100%);
}

.ts-banner::after {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 6px;
  background: var(--ts-red);
}

.ts-banner .row {
  position: relative;
  z-index: 1;
  width: 100%;
  margin: 0;
}

.ts-banner--ssd { background-image: url('/images/transcend/ssd-banner.png'); }
.ts-banner--portable { background-image: url('/images/transcend/portable-banner.jpg'); }
.ts-banner--enterprise { background-image: url('/images/transcend/enterprise-banner.jpg'); }
.ts-banner--embedded { background-image: url('/images/transcend/embedded-banner.jpg'); }
.ts-banner--dram { background-image: url('/images/transcend/dram-banner.jpg'); }
.ts-banner--memory { background-image: url('/images/transcend/memory-banner.jpg'); }
.ts-banner--flash { background-image: url('/images/transcend/flash-banner.jpg'); }
.ts-banner--dashcam { background-image: url('/images/transcend/dashcam-banner.jpg'); }
.ts-banner--body-camera { background-image: url('/images/transcend/body-camera.jpg'); }

.ts-page .ts-banner h3 {
  margin-bottom: 0.75rem;
  color: #fff;
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  font-weight: 800;
}

.ts-page .ts-banner p {
  margin-bottom: 1.6rem;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.05rem;
  line-height: 1.6;
}

.ts-banner .ts-btn {
  border-color: #fff;
  background: #fff;
  color: var(--ts-red);
}

.ts-banner .ts-btn:hover,
.ts-banner .ts-btn:focus-visible {
  border-color: var(--ts-red);
  background: var(--ts-red);
  color: #fff;
}

/* FAQ */
.ts-accordion {
  max-width: 900px;
  margin: 0 auto;
}

.ts-accordion .accordion-item {
  margin-bottom: 0.75rem;
  overflow: hidden;
  border: 1px solid var(--ts-line);
  border-radius: 12px;
  background: #fff;
  transition: border-color 0.2s;
}

.ts-accordion .accordion-item:has(.accordion-button:not(.collapsed)) {
  border-color: var(--ts-red);
}

.ts-page .ts-accordion .accordion-header {
  margin: 0;
  font-size: 1rem;
}

.ts-accordion .accordion-button {
  padding: 1.2rem 1.5rem;
  background: #fff;
  color: var(--ts-ink);
  font-size: 1.05rem;
  font-weight: 700;
  box-shadow: none;
}

.ts-accordion .accordion-button:not(.collapsed) {
  background: #fff;
  color: var(--ts-red);
}

.ts-accordion .accordion-button:focus {
  outline: 3px solid rgba(150, 0, 20, 0.25);
  outline-offset: -3px;
  box-shadow: none;
}

.ts-accordion .accordion-body {
  padding: 0 1.5rem 1.5rem;
}

.ts-page .ts-accordion .accordion-body p {
  margin: 0;
  line-height: 1.7;
}

/* closing band */
.ts-cta {
  background:
    radial-gradient(50% 140% at 90% 0%, rgba(255, 255, 255, 0.14) 0%, transparent 65%),
    linear-gradient(135deg, var(--ts-red) 0%, var(--ts-red-dark) 100%);
}

.ts-page .ts-cta p {
  max-width: 640px;
  margin: 0 auto 1.5rem;
  color: #fff;
  font-size: 1.2rem;
  font-weight: 600;
}

@media (max-width: 767px) {

  .ts-page .py-5 {
    padding-top: 2.75rem !important;
    padding-bottom: 2.75rem !important;
  }

  .ts-banner {
    min-height: 0;
    padding: 2.25rem 1.5rem 2.25rem 1.75rem;
  }
}

@media (prefers-reduced-motion: reduce) {

  html {
    scroll-behavior: auto;
  }

  .ts-btn,
  .ts-card,
  .ts-btn i,
  .ts-link i,
  .ts-img-wrapper img,
  .ts-svg {
    transition: none;
  }

  .ts-card:hover .ts-img-wrapper img {
    transform: none;
  }
}

/* Hero logo */
.ts-hero-logo {
  display: block;
  width: auto;
  height: 44px;
  margin-bottom: 1.5rem;
}
