:root {
  --green: #219653;
  --gray-bg: #f7f7f7;
  --white: #fff;
  --dark-text: #333;
  --light-text: #777;
  --border-light: #ddd;
  --cta-bg: #005472;
}

body.page-template-page-reviews #inner-wrap {
  max-width: 100% !important;
  padding: 0 !important;
  width: 100%;
}
body {
  font-family: "Work Sans", sans-serif;
  background-color: #f9f9f9;
  color: #333;
}
button,
.button,
.wp-block-button__link,
.wp-element-button,
input[type="button"],
input[type="reset"],
input[type="submit"] {
  color: #5a5757;
  border: 0;
  font-size: 1.125rem;
  line-height: 1.6;
  display: inline-block;
  font-family: inherit;
  cursor: pointer;
  background: transparent;
}

button.active {
  color: #fff;
  background: #00698f;
}

.reviews-wrap {
  display: flex;
  flex-direction: column;
  margin-top: 125px;
}

.reviews-box {
  max-width: 1224px;
  margin: auto;
  padding: 48px 20px 0px 20px;
}

/* Top Rating Summary */
.summary {
  padding-bottom: 48px;
  text-align: center;
  background-color: #ffffff;
}

.summary .stars {
  text-align: center;
  color: var(--green);
  margin-top: 30px;
}

.summary .stars i {
  margin-right: 5px;
}

.summary h2 {
  margin: 10px 0 5px;
  font-size: 2.5rem;
  display: inline-block;
  vertical-align: middle;
}

.summary p {
  margin: 5px 0;
  font-weight: bold;
}

.summary small {
  color: var(--light-text);
  font-size: 0.9rem;
}

/* Reviews Section */
.reviews-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

.review-card {
  background: var(--white);
  border: 1px solid #f7f7ff;
  border-radius: 20px;
  padding: 20px;
  margin-bottom: 15px;
}

.review-card .stars {
  color: var(--green);
}

.review-card p {
  font-size: 22px;
  line-height: 1.5;
  color: var(--dark-text);
  font-weight: normal;
  margin: 0;
}

.review-meta {
  margin-top: 12px;
  color: var(--light-text);
  font-size: 0.85rem;
}

.review-meta span {
  margin-right: 10px;
}

/* Video Testimonials */
.video-box {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  background-color: #ffffff;
}

.video-section {
  max-width: 1224px;
  margin: auto;
  padding: 20px 10px;
}

.video-section h3 {
  font-size: 1.5rem;
  margin-bottom: 20px;
}

.video-flex {
  display: flex;
  gap: 20px;
}

.video-main {
  border: 1px solid #4a4a4a1a;
  background-color: #fbfbfb;
  display: flex;
  flex-direction: row;
}

.video-thumb {
  flex: 5;
  display: flex;
  justify-content: center;
  align-items: center;
}

.video-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-main,
.video-list {
  flex: 1;
}

.video-main {
  flex: 0 0 70%;
}

.video-main .quote-box {
  flex: 5;
  display: flex;
  flex-direction: column;
  padding: 30px;
  line-height: 1.4;
  justify-content: center;
}

.video-main .quote {
  margin: 10px 0px;
  font-family: "Work Sans";
  font-size: 20px;
  font-style: italic;
  font-weight: 400;
  line-height: 1.6;
  /* 127.273% */
  letter-spacing: -0.22px;
}

.video-main strong {
  font-size: 12px;
}

.video-main .quote-box span {
  display: block;
  font-size: 12px;
  color: #999;
  margin-top: 10px;
}

.video-list {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.video-small {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding-bottom: 20px;
  border-bottom: 1px solid #ddd;
}

.video-small:last-child {
  border-bottom: 1px solid #ddd;
}

.iframe-box {
  flex-shrink: 0;
  width: 115px;
  height: 103px;
  background-color: #f2f2f2;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.iframe-box iframe {
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 4px;
}

.video-small .info {
  display: flex;
  flex-direction: column;
  font-family: "Work Sans", sans-serif;
  font-size: 14px;
  color: #666;
  line-height: 1.5;
}

.video-small .info strong {
  display: block;
  text-transform: uppercase;
  color: #00698f;
  font-size: 12px;
  font-weight: bold;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.video-small .info .quote {
  font-style: italic;
}

.video-small .info .lable {
  display: block;
  font-size: 12px;
  color: #999;
  margin-top: 4px;
}

.video-header {
  width: 100%;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  max-width: 1224px;
  padding: 20px;
  border-bottom: 1px solid #4a4a4a1a;
}

.video-header select {
  padding: 6px 8px;
  font-size: 0.9rem;
  border: 1px solid var(--border-light);
  border-radius: 4px;
  background: var(--white);
}

/* CTA Footer */
.cta {
  background: var(--cta-bg);
  color: var(--white);
  text-align: center;
  padding: 40px 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.cta-title {
  font-family: Lora;
  font-size: 38px;
}

.cta-quote {
  font-family: Work Sans;
  font-size: 22px;
  margin-top: 0px;
  margin-bottom: 20px;
}

.cta-button {
  width: 200px;
  text-decoration: none;
  cursor: pointer;
  padding: 10px;
  background: #fff;
  color: #006699;
  border: 1px solid #006699;
  margin-bottom: 10px;
  font-weight: 500;
  cursor: pointer;
  border-radius: 5px;
}

.cta-button:hover {
  background-color: #f0f0f0;
  border-color: #004466;
  color: #004466;
}

.review-count-pill {
  display: inline-block;
  background-color: #333;
  color: #fff;
  font-family: Work Sans;
  font-size: 24px;
  font-weight: 600;
  padding: 8px 22px;
  border-radius: 20px;
  margin-bottom: 10px;
  margin-top: 50px;
  width: 251px;
}

.colored-title {
  color: #00698f;
  font-weight: bold;
}

.review-title {
  font-family: Lora;
  font-size: 48px;
  font-weight: bold;
}

.rating-summary {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.review-quote {
  font-size: 22px;
  font-family: Work Sans;
  display: block;
  max-width: 90vw;
  width: 800px;
  line-height: 1.4;
  text-align: center;
  margin: 0 auto;
  word-break: break-word;
}

.section-title {
  font-family: lora;
  font-size: 32px;
  font-weight: bold;
}

.filter-title {
  font-size: 18px;
  font-family: Work Sans;
}

.sort-label {
  font-size: 16px;
  font-family: inherit;
  color: #333;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.sort-select {
  font-size: 16px;
  font-weight: 600;
  color: #006699;
  background-color: transparent;
  border: none;
  margin: 0;
  cursor: pointer;
}

.sort-select:focus {
  outline: none;
}

#loader span {
  font-size: 18px;
  font-weight: 600;
  color: #00698f;
}

#loader {
  width: 100%;
  min-height: 100px;
  min-width: 1224px;
  background: var(--white);
  border: 1px solid #f7f7ff;
  border-radius: 20px;
  margin-bottom: 15px;
  padding: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  box-sizing: border-box;
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 25px 0;
  font-size: 0.9rem;
}

/* Mobile Pagination */
.pagination-mobile {
  display: none;
}

.pagination-desktop {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  padding: 20px;
  width: 100%;
  align-items: center;
  justify-content: center;
}

/* Mobile Pagination */
.pagination-mobile {
  display: none;
}

@media (max-width: 1024px) {
  .reviews-wrap {
    margin-top: 0px;
  }
  .video-small {
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }

  .video-small .info {
    justify-content: center;
    align-items: center;
  }
}

/* Small screen */
/* Mobile responsive updates */
@media (max-width: 768px) {
  .reviews-box {
    padding: 48px 15px 0px 15px;
  }

  .summary .stars i {
    font-size: 28px;
  }

  .summary .rating-summary > .average-ratting {
    font-size: 48px !important;
  }

  .reviews-wrap {
    margin-top: 0px;
  }

  .review-count-pill {
    font-size: 16px;
    padding: 6px 16px;
    width: auto;
    margin-top: 20px;
  }

  .review-title {
    font-size: 28px;
    text-align: center;
  }

  .review-quote {
    font-size: 16px;
    text-align: center;
    line-height: 1.4;
    margin: 10px 0;
  }

  .reviews-header {
    flex-direction: column;
    align-items: center;
    gap: 12px;
    text-align: center;
  }

  .video-header {
    flex-direction: column;
    align-items: center;
    gap: 10px;
    text-align: center;
  }

  .video-flex {
    flex-direction: column;
    gap: 24px;
  }

  .video-main {
    flex-direction: column;
    align-items: center;
  }

  .video-main iframe {
    width: 100% !important;
    height: auto;
    aspect-ratio: 16/9;
  }

  .video-main .quote-box {
    padding: 20px;
    font-size: 16px;
    text-align: center;
  }
  .cta-title {
    font-size: 28px;
    line-height: 1.3;
  }

  .cta-quote {
    font-size: 18px;
  }

  .cta-button {
    width: 100%;
    max-width: 260px;
    margin-top: 10px;
  }

  .review-card {
    padding: 16px;
  }

  .review-card p {
    font-size: 18px;
  }

  .pagination-desktop {
    display: none;
  }

  .pagination-mobile {
    display: block;
    text-align: center;
    width: 100%;
  }

  .pagination-mobile .mobile-btn.prev {
    width: 100%;
    padding: 10px;
    background: #fff;
    color: #006699;
    border: 1px solid #006699;
    margin-bottom: 10px;
    font-weight: 500;
    cursor: pointer;
  }

  .pagination-mobile .mobile-btn.next {
    width: 100%;
    padding: 10px;
    background: #006699;
    color: #fff;
    border: 1px solid #006699;
    margin-bottom: 10px;
    font-weight: 500;
    cursor: pointer;
  }

  .video-small {
    flex-direction: row;
  }

  .video-small:last-child {
    border: none;
  }

  .video-small .info {
    justify-content: start;
    align-items: start;
  }
}
