/* ==========================================================================
   CodzFlow IT Solutions — Testimonials Page Custom Styles
   Color Scheme:
     Dark Brown:    #2F1F19 (main bg), #3a2a22 (card bg)
     Golden Yellow: #FFF669 (accent)
     White text at varying opacities
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. HERO SECTION
   -------------------------------------------------------------------------- */
.tm-hero-area {
  position: relative;
  min-height: 60vh;
  display: flex;
  align-items: flex-end;
  padding-bottom: 80px;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.tm-hero-area::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(47,31,25,0.25) 0%, rgba(47,31,25,0.88) 100%);
  z-index: 1;
}

.tm-hero-content {
  position: relative;
  z-index: 2;
}

.tm-hero-title {
  font-family: var(--tp-ff-teko), 'Teko', sans-serif;
  font-size: clamp(72px, 12vw, 180px);
  font-weight: 700;
  line-height: 1;
  color: #FFF669;
  text-transform: uppercase;
  letter-spacing: -3px;
  margin-bottom: 25px;
  animation: tmHeroIn 1s cubic-bezier(0.165, 0.84, 0.44, 1) both;
}

@keyframes tmHeroIn {
  0% {
    opacity: 0;
    transform: translateY(40px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.tm-hero-title-fill {
  color: #FFF669;
}

.tm-hero-subtitle {
  font-size: 18px;
  color: rgba(255,255,255,0.7);
  letter-spacing: 3px;
  text-transform: uppercase;
  font-weight: 500;
  margin-bottom: 15px;
  animation: tmHeroIn 1s 0.15s cubic-bezier(0.165, 0.84, 0.44, 1) both;
}

.tm-breadcrumb {
  display: flex;
  align-items: center;
  gap: 12px;
  list-style: none;
  padding: 0;
  margin: 0;
  animation: tmHeroIn 1s 0.3s cubic-bezier(0.165, 0.84, 0.44, 1) both;
}

.tm-breadcrumb li {
  font-size: 15px;
  color: rgba(255,255,255,0.6);
}

.tm-breadcrumb li a {
  color: #FFF669;
  text-decoration: none;
  transition: color 0.3s;
}

.tm-breadcrumb li a:hover {
  color: #fff;
}

.tm-breadcrumb li .separator {
  color: rgba(255,255,255,0.3);
  margin: 0 4px;
  font-size: 12px;
}

/* --------------------------------------------------------------------------
   2. TRUST STATS BAR
   -------------------------------------------------------------------------- */
.tm-stats-bar {
  background: #FFF669;
  padding: 50px 0;
}

.tm-stats-row {
  display: flex;
  justify-content: center;
  gap: 80px;
  flex-wrap: wrap;
}

.tm-stat-item {
  text-align: center;
}

.tm-stat-value {
  font-family: 'Teko', sans-serif;
  font-size: 64px;
  font-weight: 700;
  color: #2F1F19;
  line-height: 1;
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 4px;
}

.tm-stat-suffix {
  font-size: 36px;
  color: #2F1F19;
}

.tm-stat-label {
  font-size: 15px;
  color: rgba(47,31,25,0.7);
  font-weight: 500;
  margin-top: 8px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* --------------------------------------------------------------------------
   3. FEATURED REVIEWS
   -------------------------------------------------------------------------- */
.tm-featured-section {
  padding: 120px 0 100px;
}

.tm-featured-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.tm-featured-card {
  background: #3a2a22;
  border-radius: 20px;
  padding: 40px 35px;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255,246,105,0.08);
  transition: transform 0.5s, box-shadow 0.5s;
  transform-style: preserve-3d;
  perspective: 1000px;
}

.tm-featured-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 25px 60px rgba(0,0,0,0.4), 0 0 30px rgba(255,246,105,0.08);
  border-color: rgba(255,246,105,0.2);
}

.tm-featured-card::before {
  content: '\201C';
  position: absolute;
  top: 15px;
  right: 25px;
  font-size: 120px;
  font-family: Georgia, serif;
  color: rgba(255,246,105,0.06);
  line-height: 1;
  pointer-events: none;
}

.tm-featured-photo {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid rgba(255,246,105,0.3);
  margin-bottom: 20px;
}

.tm-featured-stars {
  display: flex;
  gap: 4px;
  margin-bottom: 18px;
}

.tm-featured-stars svg {
  width: 18px;
  height: 18px;
  fill: #FFF669;
}

.tm-featured-text {
  font-size: 17px;
  line-height: 1.8;
  color: rgba(255,255,255,0.8);
  margin-bottom: 25px;
  font-style: italic;
}

.tm-featured-name {
  font-size: 18px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 4px;
}

.tm-featured-role {
  font-size: 14px;
  color: rgba(255,255,255,0.5);
}

.tm-featured-country {
  font-size: 13px;
  color: rgba(255,246,105,0.7);
  margin-top: 6px;
}

/* --------------------------------------------------------------------------
   4. RATING BREAKDOWN
   -------------------------------------------------------------------------- */
.tm-rating-section {
  background: #FFF669;
  padding: 100px 0;
}

.tm-rating-container {
  display: flex;
  gap: 80px;
  align-items: center;
}

.tm-rating-big {
  text-align: center;
  min-width: 220px;
}

.tm-rating-number {
  font-family: 'Teko', sans-serif;
  font-size: 120px;
  font-weight: 700;
  color: #2F1F19;
  line-height: 1;
}

.tm-rating-stars-big {
  display: flex;
  gap: 6px;
  justify-content: center;
  margin: 10px 0;
}

.tm-rating-stars-big svg {
  width: 28px;
  height: 28px;
  fill: #2F1F19;
}

.tm-rating-total {
  font-size: 15px;
  color: rgba(47,31,25,0.6);
  font-weight: 500;
}

.tm-rating-bars {
  flex: 1;
}

.tm-rating-bar-row {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 14px;
}

.tm-rating-bar-label {
  font-size: 14px;
  font-weight: 600;
  color: #2F1F19;
  min-width: 55px;
}

.tm-rating-bar-track {
  flex: 1;
  height: 12px;
  background: rgba(47,31,25,0.12);
  border-radius: 6px;
  overflow: hidden;
}

.tm-rating-bar-fill {
  height: 100%;
  background: #2F1F19;
  border-radius: 6px;
  width: 0;
  transition: width 1.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.tm-rating-bar-pct {
  font-size: 13px;
  color: rgba(47,31,25,0.6);
  min-width: 40px;
  text-align: right;
}

/* --------------------------------------------------------------------------
   5. MASONRY GRID (with filter tabs)
   -------------------------------------------------------------------------- */
.tm-grid-section {
  padding: 120px 0;
}

.tm-filter-tabs {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 50px;
}

.tm-filter-btn {
  background: transparent;
  border: 1px solid rgba(255,246,105,0.2);
  color: rgba(255,255,255,0.6);
  padding: 10px 24px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s;
}

.tm-filter-btn:hover,
.tm-filter-btn.active {
  background: #FFF669;
  color: #2F1F19;
  border-color: #FFF669;
  font-weight: 600;
}

.tm-masonry {
  column-count: 3;
  column-gap: 25px;
}

.tm-card {
  break-inside: avoid;
  background: #3a2a22;
  border-radius: 16px;
  padding: 30px 28px;
  margin-bottom: 25px;
  border: 1px solid rgba(255,246,105,0.06);
  transition: all 0.4s;
  position: relative;
  overflow: hidden;
}

.tm-card:hover {
  border-color: rgba(255,246,105,0.2);
  transform: translateY(-4px);
  box-shadow: 0 15px 40px rgba(0,0,0,0.3);
}

.tm-card-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}

.tm-card-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}

.tm-card-avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.tm-card-info {
  flex: 1;
}

.tm-card-name {
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 2px;
}

.tm-card-role {
  font-size: 13px;
  color: rgba(255,255,255,0.45);
}

.tm-card-stars {
  display: flex;
  gap: 3px;
  margin-bottom: 14px;
}

.tm-card-stars svg {
  width: 14px;
  height: 14px;
  fill: #FFF669;
}

.tm-card-text {
  font-size: 15px;
  line-height: 1.75;
  color: rgba(255,255,255,0.7);
  margin-bottom: 16px;
}

.tm-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.tm-card-tag {
  font-size: 11px;
  background: rgba(255,246,105,0.1);
  color: #FFF669;
  padding: 4px 12px;
  border-radius: 20px;
  font-weight: 500;
}

.tm-card-country {
  font-size: 12px;
  color: rgba(255,255,255,0.35);
}

.tm-card.hidden {
  display: none;
}

.tm-load-more-wrap {
  text-align: center;
  margin-top: 50px;
}

.tm-load-more-btn {
  background: transparent;
  border: 2px solid #FFF669;
  color: #FFF669;
  padding: 16px 48px;
  border-radius: 50px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  letter-spacing: 1px;
}

.tm-load-more-btn:hover {
  background: #FFF669;
  color: #2F1F19;
}

.tm-load-more-btn:disabled {
  opacity: 0.3;
  cursor: default;
}

/* --------------------------------------------------------------------------
   6. COUNTRIES MARQUEE
   -------------------------------------------------------------------------- */
.tm-countries-section {
  padding: 80px 0;
  background: #3a2a22;
  overflow: hidden;
}

.tm-countries-title {
  text-align: center;
  font-size: 16px;
  color: rgba(255,255,255,0.5);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 40px;
  font-weight: 500;
}

.tm-marquee {
  display: flex;
  overflow: hidden;
}

.tm-marquee-track {
  display: flex;
  gap: 40px;
  animation: tmMarquee 40s linear infinite;
  white-space: nowrap;
}

@keyframes tmMarquee {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.tm-country-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  color: rgba(255,255,255,0.6);
  white-space: nowrap;
}

.tm-country-flag {
  font-size: 24px;
}

/* --------------------------------------------------------------------------
   7. CTA SECTION
   -------------------------------------------------------------------------- */
.tm-cta-section {
  position: relative;
  padding: 140px 0;
  text-align: center;
}

.tm-cta-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 0;
}

.tm-cta-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.15;
}

.tm-cta-title {
  font-family: 'Teko', sans-serif;
  font-size: clamp(36px, 6vw, 80px);
  font-weight: 700;
  color: #FFF669;
  line-height: 1.1;
  margin-bottom: 20px;
}

.tm-cta-text {
  font-size: 18px;
  color: rgba(255,255,255,0.6);
  max-width: 600px;
  margin: 0 auto 35px;
}

.tm-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #FFF669;
  color: #2F1F19;
  padding: 18px 42px;
  border-radius: 50px;
  font-size: 16px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: all 0.3s;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.tm-cta-btn:hover {
  background: #fff;
  transform: translateY(-3px);
  box-shadow: 0 15px 40px rgba(255,246,105,0.25);
}

/* --------------------------------------------------------------------------
   8. RESPONSIVE BREAKPOINTS
   -------------------------------------------------------------------------- */

/* --- Max 1200px --- */
@media (max-width: 1200px) {
  .tm-featured-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .tm-masonry {
    column-count: 2;
  }
  .tm-stats-row {
    gap: 50px;
  }
  .tm-rating-container {
    gap: 50px;
  }
}

/* --- Max 991px --- */
@media (max-width: 991px) {
  .tm-featured-grid {
    grid-template-columns: 1fr;
    max-width: 600px;
    margin: 0 auto;
  }
  .tm-rating-container {
    flex-direction: column;
    text-align: center;
  }
  .tm-rating-big {
    margin-bottom: 30px;
  }
  .tm-stats-row {
    gap: 40px;
  }
  .tm-stat-value {
    font-size: 52px;
  }
}

/* --- Max 768px --- */
@media (max-width: 768px) {
  .tm-masonry {
    column-count: 2;
    column-gap: 15px;
  }
  .tm-card {
    padding: 22px 20px;
    margin-bottom: 15px;
  }
  .tm-hero-title {
    font-size: clamp(56px, 15vw, 120px);
  }
  .tm-stats-row {
    gap: 30px;
  }
  .tm-stat-value {
    font-size: 44px;
  }
  .tm-filter-tabs {
    gap: 8px;
  }
  .tm-filter-btn {
    padding: 8px 18px;
    font-size: 13px;
  }
}

/* --- Max 576px --- */
@media (max-width: 576px) {
  .tm-masonry {
    column-count: 1;
  }
  .tm-featured-card {
    padding: 30px 24px;
  }
  .tm-hero-area {
    min-height: 50vh;
    padding-bottom: 60px;
  }
  .tm-stats-row {
    flex-direction: column;
    gap: 25px;
  }
  .tm-rating-number {
    font-size: 80px;
  }
}

/* --- Max 480px --- */
@media (max-width: 480px) {
  .tm-hero-title {
    font-size: clamp(42px, 18vw, 80px);
  }
  .tm-hero-subtitle {
    font-size: 14px;
    letter-spacing: 2px;
  }
  .tm-card-text {
    font-size: 14px;
  }
  .tm-featured-text {
    font-size: 15px;
  }
}

/* --- Max 375px --- */
@media (max-width: 375px) {
  .tm-hero-area {
    min-height: 45vh;
    padding-bottom: 40px;
  }
  .tm-card {
    padding: 18px 16px;
    border-radius: 12px;
  }
  .tm-featured-card {
    padding: 24px 18px;
    border-radius: 14px;
  }
}
