/* ════════════════════════════════════
   Testimonials Page — layout only.
   Global components in global.css.
   ════════════════════════════════════ */

/* ── PAGE HEADER ── */
.test-page-header {
  background: var(--bg);
  color: var(--text);
  margin-top: var(--nav-height);
  overflow: hidden;
}

.test-page-header__inner {
  display: flex;
  align-items: center;
  min-height: var(--size-rule);
  min-width: 0;
  max-width: 100%;
}

.test-page-header__text {
  display: flex;
  flex-direction: column;
  width: 100%;
  min-width: 0;
  max-width: var(--content-max);
  overflow-wrap: anywhere;
}

.test-page-header__subtitle {
  font-size: var(--textCallout);
  font-weight: 400;
  color: var(--text-muted);
  line-height: 1.7;
  min-width: 0;
  max-width: var(--content-max-md);
  overflow-wrap: anywhere;
  word-break: break-word;
  white-space: normal;
}

/* ── FILTER BAR ── */
.test-filter-section .container {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--paddingLG);
}

.test-filter-header {
  flex: 1;
}

.test-filter-control {
  display: flex;
  flex-direction: column;
  gap: var(--paddingSM);
  min-width: var(--content-max-sm);
}

.test-filter-control__label {
  font-size: var(--textCaption);
  font-weight: 800;
  color: var(--text-muted);
  letter-spacing: var(--ls-label);
  text-transform: uppercase;
}

.test-filter-control__select {
  width: 100%;
  min-height: var(--inputField);
  padding-left: var(--paddingMD);
  padding-right: var(--paddingLG);
  border: var(--borderThickness) solid var(--divider);
  border-radius: var(--radiusSM);
  background-color: var(--surface);
  color: var(--text);
  font-family: var(--font);
  font-size: var(--textBody);
  font-weight: 600;
}

.test-filter-control__select:focus-visible {
  outline: var(--borderThickness) solid var(--secondary);
  outline-offset: var(--paddingXS);
}

.test-filter-section .filter-bar__count {
  align-self: center;
  margin-left: 0;
}

/* ── STATS (hidden — count only shown inline with filter) ── */
.test-stats {
  display: none;
}

/* ── TESTIMONIALS LIST ── */
.test-list-section {
  border-top: var(--borderThickness) solid var(--divider);
}

/* ── MASONRY GRID ── */
.testimonials-grid {
  column-count: 2;
  column-gap: var(--paddingXL);
  width: 100%;
}

/* ── TESTIMONIAL CARD ── */
.tcard.testimonial-card {
  display: inline-flex;
  align-items: flex-end;
  justify-content: flex-end;
  width: 100%;
  box-sizing: border-box;
  break-inside: avoid;
  margin-bottom: var(--paddingXL);
  padding-top: var(--paddingSM);
  padding-left: var(--paddingSM);
  border-radius: 0;
  border-top-left-radius: var(--paddingSM);
  border-bottom-right-radius: var(--paddingSM);
  box-shadow: 0 var(--paddingXS) var(--paddingSM) 0 var(--shadow-soft);
  overflow: hidden;
  position: relative;
}

.tcard.testimonial-card::before,
.tcard.testimonial-card::after {
  display: none;
}

.tcard[data-hidden="true"] {
  display: none;
}

.testimonials-page .testimonial-card__inner {
  display: flex;
  flex: 1;
  align-items: flex-start;
  gap: var(--paddingMD);
  padding: var(--paddingMD);
}

.testimonials-page .testimonial-card__profile {
  display: flex;
  align-items: center;
  gap: var(--paddingMD);
  min-width: var(--content-max-sm);
}

.testimonials-page .testimonial-card__avatar {
  width: var(--widgetLarge);
  min-width: var(--widgetLarge);
  height: var(--widgetLarge);
  border-radius: 0;
  border-top-left-radius: var(--paddingSM);
  border-bottom-right-radius: var(--paddingSM);
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: 0 var(--borderThickness) var(--paddingXS) 0 var(--shadow-soft);
}

.testimonials-page .testimonial-card__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.testimonials-page .testimonial-card__content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: var(--paddingSM);
  min-width: 0;
}

.testimonials-page .testimonial-card__bar {
  width: var(--paddingLG);
  height: var(--paddingXS);
  background: var(--brandPrimary);
  border-radius: var(--radiusFull);
  flex-shrink: 0;
}

.testimonials-page .testimonial-card__quote {
  font-size: var(--textCallout);
  font-weight: 400;
  font-style: normal;
  color: var(--text);
  line-height: 1.48;
  margin: 0;
  overflow-wrap: anywhere;
}

.testimonials-page .testimonial-card__name-block {
  display: flex;
  flex-direction: column;
  gap: var(--borderThickness);
  flex-shrink: 0;
  min-width: 0;
}

.testimonials-page .testimonial-card__author {
  font-size: var(--textCallout);
  font-weight: 600;
  color: var(--text);
  line-height: 1.4;
  margin: 0;
}

.testimonials-page .testimonial-card__subtitle {
  display: flex;
  align-items: baseline;
  gap: var(--paddingXS);
  font-size: var(--textCaption);
  font-weight: 400;
  color: var(--text-muted);
  line-height: 1.4;
  margin-top: var(--borderThickness);
}

.testimonials-page .testimonial-card__company::before {
  content: "-";
}
.home-footer__tab {
  display: none;
}
/* ── RESPONSIVE ── */
@media (max-width: 1199px) {
  .test-filter-section .container {
    align-items: flex-start;
    flex-direction: column;
  }

  .test-filter-control {
    min-width: 0;
    width: 100%;
  }

  .testimonials-grid {
    column-count: 1;
  }
}

@media (max-width: 767px) {
  .test-page-header {
    margin-top: 0;
  }

  .test-page-header__inner {
    min-height: auto;
    padding-top: var(--paddingXL);
    padding-bottom: var(--paddingXL);
  }

  .tcard.testimonial-card {
    margin-bottom: var(--paddingLG);
  }

  .testimonials-page .testimonial-card__inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .testimonials-page .testimonial-card__profile {
    min-width: 0;
    width: 100%;
    align-items: flex-start;
  }

  .testimonials-page .testimonial-card__subtitle {
    align-items: flex-start;
    flex-direction: column;
    gap: var(--borderThickness);
  }

  .testimonials-page .testimonial-card__company::before {
    content: "";
  }
}
