/**
 * Testimonials Page Stylesheet
 *
 * Modern multi-column bento/masonry card grid, top-aligned author cards,
 * tall portrait video cards with frosted glass play buttons, and rich text editor support.
 *
 * @package AcreGroup
 */

/* ==========================================================================
   1. HERO BANNER
   ========================================================================== */
.testimonials-hero-banner {
  min-height: 380px;
  display: flex;
  align-items: center;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  position: relative;
}

.testimonials-hero-banner .breadcrumbscontent h1 {
  font-family: "Libre Baskerville", serif;
  font-size: 42px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 12px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}

.testimonials-hero-banner .breadcrumbscontent p {
  color: #e2e8f0;
  font-size: 16px;
}

.testimonials-hero-banner .breadcrumbscontent p a {
  color: #ffb629;
  text-decoration: none;
  transition: color 0.3s ease;
}

.testimonials-hero-banner .breadcrumbscontent p a:hover {
  color: #ffffff;
  text-decoration: underline;
}

/* ==========================================================================
   2. MAIN SECTION & HEADER BLOCK
   ========================================================================== */
.testimonials-page-section {
  padding: 70px 0 60px;
  background-color: #fcfcfc;
  position: relative;
}

.testimonials-header-block {
  max-width: 820px;
  margin: 0 auto 45px;
}

.testimonials-badge-pill {
  display: inline-block;
  background-color: #eaf5e8;
  color: #0a6403;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  padding: 6px 18px;
  border-radius: 50px;
  margin-bottom: 14px;
  border: 1px solid rgba(10, 100, 3, 0.15);
}

.testimonials-main-title {
  font-family: "Libre Baskerville", serif;
  font-size: 36px;
  font-weight: 700;
  color: #1c2868;
  margin-bottom: 15px;
  line-height: 1.3;
}

.testimonials-title-accent {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 12px auto 20px;
}

.testimonials-title-accent .accent-line {
  display: inline-block;
  width: 50px;
  height: 2px;
  background-color: #ffb629;
}

.testimonials-title-accent .accent-icon {
  color: #0a6403;
  font-size: 18px;
  transform: rotate(-20deg);
}

.testimonials-intro-para {
  color: #555555;
  font-size: 16px;
  line-height: 1.8;
  margin: 0 auto;
}

/* ==========================================================================
   3. FILTER BUTTONS
   ========================================================================== */
.testimonials-filter-bar {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 45px;
}

.t-filter-btn {
  background-color: #ffffff;
  color: #2d3748;
  border: 2px solid #e2e8f0;
  padding: 10px 22px;
  border-radius: 50px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.t-filter-btn i {
  color: #0a6403;
  font-size: 14px;
  transition: color 0.3s ease;
}

.t-filter-count {
  font-size: 13px;
  opacity: 0.75;
}

.t-filter-btn:hover {
  border-color: #0a6403;
  color: #0a6403;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(10, 100, 3, 0.12);
}

.t-filter-btn.active {
  background-color: #0a6403;
  border-color: #0a6403;
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(10, 100, 3, 0.25);
}

.t-filter-btn.active i {
  color: #ffb629;
}

/* ==========================================================================
   4. TESTIMONIALS GRID (DYNAMIC AUTO-MASONRY)
   ========================================================================== */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-rows: 12px;
  gap: 24px;
  align-items: start;
}

.testimonial-card-item {
  width: 100%;
  margin-bottom: 0;
  transition: transform 0.35s ease, opacity 0.35s ease;
}

.testimonial-card-inner {
  background-color: #ffffff;
  border-radius: 22px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(0, 0, 0, 0.07);
  overflow: hidden;
  position: relative;
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.35s ease, border-color 0.35s ease;
  height: auto;
}

.testimonial-card-inner:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.09);
  border-color: rgba(10, 100, 3, 0.22);
}

/* Featured Story Badge & Border */
.testimonial-card-item.is-featured .testimonial-card-inner {
  border: 2px solid #ffb629;
  box-shadow: 0 6px 24px rgba(255, 182, 41, 0.2);
}

.t-card-featured-badge {
  position: absolute;
  top: 16px;
  right: 18px;
  background-color: #ffb629;
  color: #1a202c;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 50px;
  z-index: 10;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.t-card-featured-badge i {
  color: #1a202c;
  font-size: 10px;
}

/* ==========================================================================
   5. BENTO VIDEO CARD (SAMPLE DESIGN LAYOUT)
   ========================================================================== */
.t-bento-video-card {
  position: relative;
  width: 100%;
  min-height: 410px;
  overflow: hidden;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background-color: #121815;
  border-radius: 22px;
}

.t-bento-poster-wrap {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  overflow: hidden;
}

.t-bento-poster-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1), filter 0.35s ease;
}

.t-bento-video-card:hover .t-bento-poster-img {
  transform: scale(1.06);
  filter: brightness(0.92);
}

/* Frosted Glass Play Button at Top-Left */
.t-bento-play-btn {
  position: absolute;
  top: 20px;
  left: 20px;
  z-index: 5;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1.5px solid rgba(255, 255, 255, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 15px;
  padding-left: 3px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
  transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.t-bento-video-card:hover .t-bento-play-btn {
  background: rgba(255, 255, 255, 0.6);
  transform: scale(1.12);
  color: #0a6403;
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.35);
}

/* Bottom Dark Gradient Overlay & Story Meta */
.t-bento-gradient-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 3;
  padding: 50px 24px 24px;
  background: linear-gradient(
    to top,
    rgba(10, 24, 14, 0.95) 0%,
    rgba(10, 24, 14, 0.78) 42%,
    rgba(10, 24, 14, 0.25) 75%,
    transparent 100%
  );
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.t-bento-brand-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: #ffb629;
  margin-bottom: 8px;
}

.t-bento-brand-badge i {
  font-size: 12px;
  color: #ffb629;
}

.t-bento-story-title {
  font-family: "Libre Baskerville", serif;
  font-size: 18px;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.38;
  margin: 0 0 10px;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.t-bento-meta-author {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 13px;
  color: #e2e8f0;
}

.t-bento-name {
  font-weight: 700;
  color: #ffffff;
}

.t-bento-sep {
  color: #ffb629;
  opacity: 0.8;
}

.t-bento-desig {
  color: #cbd5e1;
}

/* ==========================================================================
   6. TEXT & PHOTO REVIEW CARD (TOP AUTHOR LAYOUT)
   ========================================================================== */
.t-text-review-card {
  padding: 26px 24px;
  display: flex;
  flex-direction: column;
}

/* Top Author Header */
.t-card-top-author {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.t-author-meta-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
}

.t-author-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  background-color: #0a6403;
  box-shadow: 0 2px 8px rgba(10, 100, 3, 0.15);
}

.t-author-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.t-avatar-initials {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-weight: 700;
  font-size: 18px;
  background-color: #0a6403;
  text-transform: uppercase;
}

.t-author-info {
  display: flex;
  flex-direction: column;
}

.t-author-name {
  font-family: "Rubik", sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: #1a202c;
  margin: 0 0 2px;
  line-height: 1.25;
}

.t-author-designation {
  font-size: 12.5px;
  color: #718096;
  line-height: 1.35;
  margin-bottom: 5px;
}

.t-stars {
  display: flex;
  gap: 2.5px;
}

.t-stars .star-filled {
  color: #ffb629;
  font-size: 12px;
}

.t-stars .star-empty {
  color: #e2e8f0;
  font-size: 12px;
}

.t-quote-mark {
  color: #cbd5e1;
  flex-shrink: 0;
  line-height: 1;
  transition: color 0.3s ease, transform 0.3s ease;
}

.testimonial-card-inner:hover .t-quote-mark {
  color: #0a6403;
  opacity: 0.6;
  transform: translateY(-2px);
}

.t-quote-mark svg {
  display: block;
  width: 24px;
  height: 20px;
}

/* Catchphrase quote headline */
.t-highlight-quote {
  font-family: "Libre Baskerville", serif;
  font-size: 16.5px;
  font-weight: 700;
  color: #1c2868;
  margin: 0 0 12px;
  line-height: 1.45;
}

/* ==========================================================================
   7. RICH TEXT CONTENT & WYSIWYG FORMATTING
   ========================================================================== */
.t-card-text {
  color: #4a5568;
  font-size: 14.5px;
  line-height: 1.72;
  margin-bottom: 0;
  word-break: break-word;
}

.t-card-text p {
  color: #4a5568;
  font-size: 14.5px;
  line-height: 1.72;
  margin: 0 0 14px;
}

.t-card-text p:last-child {
  margin-bottom: 0;
}

/* Bold / Strong / Italic / Breaks */
.t-card-text strong,
.t-card-text b {
  font-weight: 700 !important;
  color: #1a202c !important;
}

.t-card-text em,
.t-card-text i {
  font-style: italic !important;
}

.t-card-text br {
  display: inline-block;
  content: "";
  margin-top: 0;
}

/* Bulleted and Numbered Lists */
.t-card-text ul {
  list-style-type: disc !important;
  margin: 12px 0 16px 20px !important;
  padding: 0 !important;
}

.t-card-text ol {
  list-style-type: decimal !important;
  margin: 12px 0 16px 20px !important;
  padding: 0 !important;
}

.t-card-text li {
  margin-bottom: 6px !important;
  color: #4a5568 !important;
  font-size: 14.5px !important;
  line-height: 1.65 !important;
  list-style: inherit !important;
}

/* Text Alignments */
.t-card-text.text-center,
.t-card-text .text-center,
.t-card-text .aligncenter,
.t-card-text .align-center,
.t-card-text .has-text-align-center,
.t-card-text [style*="text-align: center"],
.t-card-text [style*="text-align:center"],
.t-card-text [align="center"] {
  text-align: center !important;
}

.t-card-text.text-right,
.t-card-text .text-right,
.t-card-text .alignright,
.t-card-text .align-right,
.t-card-text .has-text-align-right,
.t-card-text [style*="text-align: right"],
.t-card-text [style*="text-align:right"],
.t-card-text [align="right"] {
  text-align: right !important;
}

.t-card-text.text-left,
.t-card-text .text-left,
.t-card-text .alignleft,
.t-card-text .align-left,
.t-card-text .has-text-align-left,
.t-card-text [style*="text-align: left"],
.t-card-text [style*="text-align:left"],
.t-card-text [align="left"] {
  text-align: left !important;
}

.t-card-text.text-justify,
.t-card-text .text-justify,
.t-card-text .has-text-align-justify,
.t-card-text [style*="text-align: justify"],
.t-card-text [style*="text-align:justify"] {
  text-align: justify !important;
}

/* ==========================================================================
   8. ATTACHED PHOTO REVIEW
   ========================================================================== */
.t-card-attached-image {
  margin-top: 18px;
  border-radius: 14px;
  overflow: hidden;
  position: relative;
  max-height: 220px;
}

.t-card-attached-image a {
  display: block;
  position: relative;
  width: 100%;
  height: 100%;
}

.t-card-attached-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.t-card-attached-image:hover img {
  transform: scale(1.05);
}

.t-card-attached-image .t-image-zoom-icon {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background-color: rgba(10, 100, 3, 0.9);
  color: #ffffff;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  opacity: 0;
  transform: translateY(4px);
  transition: all 0.3s ease;
}

.t-card-attached-image:hover .t-image-zoom-icon {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   9. EMPTY STATE
   ========================================================================== */
.testimonials-empty-state {
  text-align: center;
  background-color: #ffffff;
  border-radius: 20px;
  padding: 60px 30px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.05);
  max-width: 600px;
  margin: 40px auto;
}

.empty-state-icon {
  font-size: 54px;
  color: #0a6403;
  margin-bottom: 20px;
}

.testimonials-empty-state h3 {
  font-family: "Libre Baskerville", serif;
  font-size: 24px;
  color: #1c2868;
  margin-bottom: 12px;
}

.testimonials-empty-state p {
  color: #555555;
  font-size: 15px;
  line-height: 1.7;
  margin-bottom: 25px;
}

.btn-primary-green {
  display: inline-block;
  background-color: #0a6403;
  color: #ffffff;
  padding: 12px 28px;
  border-radius: 50px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
}

.btn-primary-green:hover {
  background-color: #ffb629;
  color: #000000;
  transform: translateY(-2px);
}

/* ==========================================================================
   10. BOTTOM CTA BANNER
   ========================================================================== */
.testimonials-cta-banner {
  padding: 0 0 80px;
  background-color: #fcfcfc;
}

.cta-inner-card {
  background: linear-gradient(135deg, #1c2868 0%, #0a6403 100%);
  border-radius: 22px;
  padding: 48px 45px;
  box-shadow: 0 12px 30px rgba(10, 100, 3, 0.2);
  color: #ffffff;
}

.cta-inner-card h3 {
  font-family: "Libre Baskerville", serif;
  color: #ffffff;
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 10px;
}

.cta-inner-card p {
  color: #e2e8f0;
  font-size: 16px;
  line-height: 1.6;
  margin: 0;
}

.btn-cta-gold {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background-color: #ffb629;
  color: #000000;
  padding: 14px 30px;
  border-radius: 50px;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(255, 182, 41, 0.35);
}

.btn-cta-gold:hover {
  background-color: #ffffff;
  color: #0a6403;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 255, 255, 0.4);
}

/* ==========================================================================
   11. VIDEO MODAL DIALOG
   ========================================================================== */
.t-video-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.t-video-modal-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(6px);
}

.t-video-modal-container {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 900px;
  background-color: #000000;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
}

.t-video-modal-close {
  position: absolute;
  top: -45px;
  right: 0;
  background: transparent;
  border: none;
  color: #ffffff;
  font-size: 32px;
  cursor: pointer;
  transition: transform 0.2s ease, color 0.2s ease;
  line-height: 1;
}

.t-video-modal-close:hover {
  color: #ffb629;
  transform: scale(1.15);
}

.t-video-modal-frame-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
}

.t-video-modal-frame-wrap iframe,
.t-video-modal-frame-wrap video {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* ==========================================================================
   12. RESPONSIVE MEDIA QUERIES
   ========================================================================== */
@media only screen and (max-width: 1200px) {
  .testimonials-grid {
    gap: 20px;
  }
  .testimonials-main-title {
    font-size: 32px;
  }
}

@media only screen and (max-width: 991px) {
  .testimonials-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
  }
  .testimonials-hero-banner {
    min-height: 320px;
  }
  .testimonials-hero-banner .breadcrumbscontent h1 {
    font-size: 34px;
  }
  .testimonials-main-title {
    font-size: 28px;
  }
  .cta-inner-card {
    padding: 36px 30px;
  }
  .cta-inner-card h3 {
    font-size: 24px;
  }
}

@media only screen and (max-width: 767px) {
  .testimonials-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    max-width: 520px;
    margin: 0 auto;
    grid-auto-rows: auto !important;
  }
  .testimonial-card-item {
    grid-row-end: auto !important;
  }
  .t-bento-video-card {
    min-height: 360px;
  }
  .testimonials-page-section {
    padding: 50px 0 40px;
  }
  .testimonials-hero-banner {
    min-height: 260px;
  }
  .testimonials-hero-banner .breadcrumbscontent h1 {
    font-size: 28px;
  }
  .testimonials-filter-bar {
    gap: 8px;
  }
  .t-filter-btn {
    padding: 8px 16px;
    font-size: 14px;
  }
  .cta-inner-card {
    padding: 30px 20px;
    text-align: center;
  }
  .t-video-modal-close {
    top: -38px;
    font-size: 26px;
  }
}

@media only screen and (max-width: 480px) {
  .t-text-review-card {
    padding: 22px 18px;
  }
  .testimonials-main-title {
    font-size: 24px;
  }
  .t-highlight-quote {
    font-size: 15px;
  }
  .t-card-text p {
    font-size: 14px;
  }
  .t-bento-video-card {
    min-height: 320px;
  }
  .t-bento-story-title {
    font-size: 16px;
  }
}
