/* Testimonials page — dedicated sheet (loads after Divi) */
body.tbp-testimonials-page #main-content .container:before,
body.tbp-testimonials-page #sidebar,
body.tbp-testimonials-page .et_pb_widget_area,
body.tbp-testimonials-page .entry-title,
body.tbp-testimonials-page .et_pb_title_container {
  display: none !important;
}

body.tbp-testimonials-page #left-area,
body.tbp-testimonials-page #main-content .container,
body.tbp-testimonials-page #main-content > .container {
  width: 100% !important;
  max-width: 100% !important;
  float: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

body.tbp-testimonials-page .et_pb_section,
body.tbp-testimonials-page .et_pb_row,
body.tbp-testimonials-page .et_pb_column {
  width: 100% !important;
  max-width: none !important;
  float: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

body.tbp-testimonials-page #et-main-area,
body.tbp-testimonials-page #main-content {
  background: #eef2ea !important;
}

.tbp-tm {
  width: 100%;
  padding: 0 0 4rem;
  background:
    radial-gradient(ellipse 80% 45% at 50% -10%, rgba(124, 188, 60, 0.16), transparent 60%),
    linear-gradient(180deg, #f4f2ec 0%, #eef2ea 55%, #e7ede3 100%);
}

.tbp-tm__hero {
  max-width: 1120px;
  margin: 0 auto;
  padding: 2.75rem 1.35rem 2rem;
  box-sizing: border-box;
  text-align: center;
}

.tbp-tm__kicker {
  margin: 0 0 0.55rem !important;
  font-family: Georgia, "Times New Roman", serif !important;
  font-size: 0.8rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.14em !important;
  text-transform: uppercase !important;
  color: #1a3d2a !important;
}

.tbp-tm__title {
  margin: 0 0 0.75rem !important;
  font-family: Georgia, "Times New Roman", serif !important;
  font-size: clamp(2.15rem, 5vw, 3rem) !important;
  font-weight: 700 !important;
  line-height: 1.1 !important;
  color: #1a1f1c !important;
}

.tbp-tm__lead {
  margin: 0 auto 1.35rem !important;
  max-width: 36rem;
  font-size: 1.08rem !important;
  line-height: 1.55 !important;
  color: #3a423c !important;
}

.tbp-tm__trust {
  display: flex !important;
  flex-wrap: wrap !important;
  justify-content: center !important;
  align-items: center !important;
  gap: 0.75rem 1.25rem !important;
  margin: 0 0 1.35rem !important;
}

.tbp-tm__badge {
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.45rem !important;
  padding: 0.45rem 1rem 0.45rem 0.5rem !important;
  border-radius: 999px !important;
  background: #1a3d2a !important;
  color: #fff !important;
  font-size: 0.84rem !important;
  font-weight: 700 !important;
  line-height: 1.2 !important;
}

.tbp-tm__badge img {
  width: 22px !important;
  height: 22px !important;
  border-radius: 50% !important;
  background: #fff !important;
  object-fit: cover !important;
}

.tbp-tm__badge-stars {
  display: inline-flex !important;
  gap: 1px !important;
  color: #fbbc04 !important;
  letter-spacing: 0 !important;
  font-size: 0.95rem !important;
}

.tbp-tm__phone {
  color: #1a3d2a !important;
  font-weight: 800 !important;
  font-size: 1rem !important;
  text-decoration: none !important;
}

.tbp-tm__phone:hover {
  color: #bf2020 !important;
}

.tbp-tm__ctas {
  display: flex !important;
  flex-wrap: wrap !important;
  justify-content: center !important;
  gap: 0.75rem !important;
}

body.tbp-testimonials-page a.tbp-tm__btn,
.tbp-tm__btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 50px !important;
  padding: 0.75rem 1.4rem !important;
  border-radius: 8px !important;
  font-family: Montserrat, "Open Sans", sans-serif !important;
  font-weight: 700 !important;
  font-size: 0.9rem !important;
  letter-spacing: 0.04em !important;
  text-transform: uppercase !important;
  text-decoration: none !important;
  box-shadow: none !important;
  line-height: 1.2 !important;
}

body.tbp-testimonials-page a.tbp-tm__btn--primary,
.tbp-tm__btn--primary {
  background: #bf2020 !important;
  background-image: none !important;
  border: 2px solid #bf2020 !important;
  color: #ffffff !important;
}

body.tbp-testimonials-page a.tbp-tm__btn--primary:hover,
body.tbp-testimonials-page a.tbp-tm__btn--primary:focus,
.tbp-tm__btn--primary:hover,
.tbp-tm__btn--primary:focus {
  background: #a01b1b !important;
  border-color: #a01b1b !important;
  color: #ffffff !important;
}

body.tbp-testimonials-page a.tbp-tm__btn--ghost,
.tbp-tm__btn--ghost {
  background: transparent !important;
  background-image: none !important;
  border: 2px solid #bf2020 !important;
  color: #bf2020 !important;
}

body.tbp-testimonials-page a.tbp-tm__btn--ghost:hover,
body.tbp-testimonials-page a.tbp-tm__btn--ghost:focus,
.tbp-tm__btn--ghost:hover,
.tbp-tm__btn--ghost:focus {
  background: rgba(191, 32, 32, 0.07) !important;
  color: #a01b1b !important;
}

.tbp-tm__feed {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.25rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.15rem;
  box-sizing: border-box;
  align-items: stretch;
}

.tbp-review-card {
  display: flex !important;
  flex-direction: column !important;
  height: 100% !important;
  min-height: 300px !important;
  background: #ffffff !important;
  border: 1px solid #d9e2d5 !important;
  border-radius: 18px !important;
  box-shadow: 0 14px 34px rgba(26, 61, 42, 0.08) !important;
  padding: 1.25rem 1.15rem 1.1rem !important;
  margin: 0 !important;
  text-align: left !important;
  box-sizing: border-box !important;
}

.tbp-review-card__top {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  gap: 0.5rem 0.75rem !important;
  margin: 0 0 0.9rem !important;
  padding-bottom: 0.85rem !important;
  border-bottom: 1px solid #eef2ec !important;
}

.tbp-review-card__badge {
  width: 24px !important;
  height: 24px !important;
  flex: 0 0 auto !important;
  border-radius: 50% !important;
  background:
    #fff
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48'%3E%3Cpath fill='%23FFC107' d='M43.6 20.1H42V20H24v8h11.3C33.7 32.7 29.3 36 24 36c-6.6 0-12-5.4-12-12s5.4-12 12-12c3.1 0 5.8 1.1 8 3l5.7-5.7C34.2 6.1 29.4 4 24 4 12.9 4 4 12.9 4 24s8.9 20 20 20 20-8.9 20-20c0-1.3-.1-2.7-.4-3.9z'/%3E%3Cpath fill='%23FF3D00' d='M6.3 14.7l6.6 4.8C14.7 15.1 19 12 24 12c3.1 0 5.8 1.1 8 3l5.7-5.7C34.2 6.1 29.4 4 24 4 16.3 4 9.7 8.3 6.3 14.7z'/%3E%3Cpath fill='%234CAF50' d='M24 44c5.2 0 10-2 13.6-5.2l-6.3-5.3C29.2 35.1 26.7 36 24 36c-5.3 0-9.7-3.3-11.3-8l-6.5 5C9.5 39.6 16.2 44 24 44z'/%3E%3Cpath fill='%231976D2' d='M43.6 20.1H42V20H24v8h11.3c-.8 2.2-2.2 4.1-4.1 5.5l.1.1 6.3 5.3C39.1 37.1 44 32 44 24c0-1.3-.1-2.7-.4-3.9z'/%3E%3C/svg%3E")
    center / 22px 22px no-repeat !important;
  box-shadow: 0 0 0 1px rgba(26, 61, 42, 0.08) !important;
}

.tbp-review-card--website .tbp-review-card__badge {
  background: #1a3d2a !important;
  box-shadow: inset 0 0 0 2px #fff !important;
}

.tbp-review-card__stars {
  display: inline-flex !important;
  gap: 2px !important;
  color: #fbbc04 !important;
  font-size: 1.05rem !important;
  line-height: 1 !important;
  letter-spacing: 0 !important;
}

.tbp-review-card__stars i {
  font-style: normal !important;
  font-family: Arial, sans-serif !important;
}

.tbp-review-card__stars i::before {
  content: "\2605";
  color: #fbbc04;
}

.tbp-review-card__source {
  margin-left: auto !important;
  padding: 0.2rem 0.55rem !important;
  border-radius: 999px !important;
  background: #f3f6f1 !important;
  font-size: 0.7rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.06em !important;
  text-transform: uppercase !important;
  color: #4a5a4a !important;
}

.tbp-review-card__body-wrap {
  position: relative;
  flex: 1 1 auto;
  min-height: 132px;
}

.tbp-review-card.is-clamped:not(.is-expanded) .tbp-review-card__body-wrap {
  max-height: 132px;
  overflow: hidden;
}

.tbp-review-card.is-clamped:not(.is-expanded) .tbp-review-card__body-wrap::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 42px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0), #fff 78%);
  pointer-events: none;
}

.tbp-review-card__body {
  font-family: "Open Sans", Arial, sans-serif !important;
  font-size: 1.02rem !important;
  line-height: 1.65 !important;
  color: #2f3832 !important;
}

.tbp-review-card__body p {
  margin: 0 0 0.85em !important;
  padding: 0 !important;
}

.tbp-review-card__body p:last-child {
  margin-bottom: 0 !important;
}

.tbp-review-card__more {
  appearance: none;
  border: 0;
  background: none;
  margin: 0.55rem 0 0;
  padding: 0;
  align-self: flex-start;
  font-family: Montserrat, "Open Sans", sans-serif;
  font-size: 0.86rem;
  font-weight: 700;
  color: #bf2020;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}

.tbp-review-card__more:hover {
  color: #a01b1b;
}

.tbp-review-card__footer {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 0.45rem 0.85rem !important;
  margin-top: auto !important;
  padding-top: 0.9rem !important;
  border-top: 1px solid #e8eee5 !important;
}

.tbp-tm__pager {
  max-width: 1120px;
  margin: 1.5rem auto 0;
  padding: 0 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  box-sizing: border-box;
}

.tbp-tm__pager-status {
  font-size: 0.92rem;
  font-weight: 700;
  color: #1a3d2a;
}

.tbp-tm__pager-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0.55rem 1rem;
  border-radius: 8px;
  border: 2px solid #bf2020;
  background: #fff;
  color: #bf2020 !important;
  font-family: Montserrat, "Open Sans", sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none !important;
}

a.tbp-tm__pager-btn:hover {
  background: rgba(191, 32, 32, 0.07);
  color: #a01b1b !important;
}

.tbp-tm__pager-btn.is-disabled {
  opacity: 0.4;
  border-color: #9aa894;
  color: #6b746d !important;
  cursor: default;
}

.tbp-review-card__author {
  font-weight: 800 !important;
  color: #1a3d2a !important;
  font-size: 0.95rem !important;
}

.tbp-review-card__meta {
  display: inline-flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  gap: 0.4rem 0.65rem !important;
  margin-left: auto !important;
  font-size: 0.86rem !important;
  color: #5a635c !important;
}

.tbp-review-card__location {
  display: inline-block !important;
  padding: 0.2rem 0.65rem !important;
  border-radius: 999px !important;
  background: #e7f0e4 !important;
  font-weight: 700 !important;
  color: #1a3d2a !important;
}

.tbp-review-card__date {
  color: #6b746d !important;
  font-weight: 600 !important;
}

@media (max-width: 980px) {
  .tbp-tm__feed {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
  }
}

@media (max-width: 640px) {
  .tbp-tm__hero {
    padding: 1.85rem 1rem 1.5rem;
    text-align: left;
  }

  .tbp-tm__trust,
  .tbp-tm__ctas {
    justify-content: flex-start !important;
  }

  .tbp-tm__ctas .tbp-tm__btn {
    width: 100% !important;
  }

  .tbp-tm__feed {
    grid-template-columns: 1fr;
    padding: 0 1rem;
    gap: 0.95rem;
  }

  .tbp-tm__pager {
    padding: 0 1rem;
  }

  .tbp-review-card {
    padding: 1.2rem 1.05rem 1.1rem !important;
    min-height: 0 !important;
  }

  .tbp-review-card__source {
    margin-left: 0 !important;
  }

  .tbp-review-card__footer {
    flex-direction: column !important;
    align-items: flex-start !important;
  }

  .tbp-review-card__meta {
    margin-left: 0 !important;
  }
}
