.testimonial {
  padding: 80px 0;
  overflow: hidden;
}

.testimonial-wrap {
  position: relative;
  width: 100%;
  max-width: 900px;
  height: 280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 160px;
}

.t-text {
  font-size: 1.15rem;
  color: var(--text-primary);
  line-height: 1.6;
  text-align: left;
  font-weight: 400;
  transition: opacity 0.3s ease;
  z-index: 10;
}

.t-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 10px;
  transition: color 0.2s;
  z-index: 20;
}

.t-arrow:hover {
  color: var(--text-primary);
}

.t-arrow-left {
  left: 0;
}

.t-arrow-right {
  right: 0;
}

/* --- BORDERS --- */
.t-path {
  position: absolute;
  background-color: var(--border);
  height: 1px;
}

.t-thick {
  position: absolute;
  background-color: var(--text-primary);
  height: 5px;
}

/* Top Path */
.t-top-left {
  left: 40px;
  top: 50%;
  width: 60px;
}

.t-top-diag {
  left: 100px;
  top: 50%;
  width: 99px; /* roughly 70px / sin(45) */
  transform: rotate(-45deg);
  transform-origin: left center;
}

.t-top-horiz {
  left: 170px; /* 100 + 70 */
  top: calc(50% - 70px);
  right: 160px;
}

.t-thick-top-left {
  left: 55px;
  top: calc(50% - 2px);
  width: 32px;
}

.t-thick-top-right {
  right: 200px;
  top: calc(50% - 72px);
  width: 130px;
}

/* Bottom Path */
.t-bot-right {
  right: 40px;
  top: 50%;
  width: 60px;
}

.t-bot-diag {
  right: 100px;
  top: 50%;
  width: 99px;
  transform: rotate(-45deg);
  transform-origin: right center;
}

.t-bot-horiz {
  right: 170px;
  top: calc(50% + 70px);
  left: 160px;
}

.t-thick-bot-right {
  right: 55px;
  top: calc(50% - 2px);
  width: 32px;
}

.t-thick-bot-left {
  left: 200px;
  top: calc(50% + 68px);
  width: 130px;
}

/* --- DECORATIONS --- */
.t-decor {
  position: absolute;
  background-color: var(--border);
  height: 1px;
}

.t-decor-upper {
  bottom: 20px;
  left: 260px;
  right: 40px;
}

.t-decor-upper::before {
  content: "//";
  position: absolute;
  left: -20px;
  top: -8px;
  color: var(--border);
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: -2px;
}

.t-decor-lower {
  bottom: -2px;
  left: 60px;
  right: 100px;
}

.t-decor-lower-gap {
  position: absolute;
  bottom: -6px;
  right: 90px;
  width: 1px;
  height: 10px;
  background-color: var(--border);
}

.t-decor-lower-thick {
  position: absolute;
  bottom: -6px;
  right: 80px;
  width: 6px;
  height: 10px;
  background-color: var(--text-muted);
}

@media (max-width: 768px) {
  .testimonial-wrap {
    padding: 0 60px;
    height: 340px;
  }
  .t-top-horiz { left: 140px; right: 60px; top: calc(50% - 90px); }
  .t-top-diag { left: 76px; width: 90px; transform: rotate(-45deg); }
  .t-top-left { left: 20px; width: 56px; }
  
  .t-bot-horiz { right: 140px; left: 60px; top: calc(50% + 90px); }
  .t-bot-diag { right: 76px; width: 90px; transform: rotate(-45deg); }
  .t-bot-right { right: 20px; width: 56px; }
  
  .t-thick-top-right, .t-thick-bot-left, .t-decor-upper, .t-decor-lower, .t-decor-lower-gap, .t-decor-lower-thick {
    display: none;
  }
}

@media (max-width: 640px) {
  .testimonial-wrap {
    padding: 0 40px;
    height: auto;
    min-height: 280px;
  }
  .t-text {
    font-size: 1rem;
  }
  .t-path, .t-thick {
    display: none;
  }
}