/* ==========================================================================
   SG FOODEES - HOME PAGE TESTIMONIALS SLIDER SECTION
   Design System: Crimson Red (#e60402), Gold Accent (#c59d5f), Clean Slate
   ========================================================================== */

.home-testimonial-sec {
  padding: 85px 0 95px;
  position: relative;
  overflow: hidden;
  background-color: #f7f9fc;
  background: radial-gradient(circle at 12% 18%, rgba(230, 4, 2, 0.025) 0%, transparent 45%),
              radial-gradient(circle at 88% 82%, rgba(197, 157, 95, 0.035) 0%, transparent 45%),
              linear-gradient(180deg, #fbfcfe 0%, #f1f4f9 50%, #fbfcfe 100%);
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.home-testimonial-sec::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(230, 4, 2, 0.35), rgba(197, 157, 95, 0.4), transparent);
}

.home-testimonial-sec::after {
  display: none !important;
  content: none !important;
  background-image: none !important;
}

/* Header & Intro */
.tm-home-header {
  text-align: center;
  max-width: 820px;
  margin: 0 auto 35px;
  position: relative;
  z-index: 2;
}

.tm-home-subtitle {
  color: #555e6d;
  font-size: 16px;
  line-height: 1.65;
  margin: 15px auto 0;
  max-width: 640px;
}

/* Tab Switcher (Written vs Video) */
.tm-tab-toggle-wrap {
  display: inline-flex;
  align-items: center;
  background: #f1f3f7;
  padding: 5px;
  border-radius: 40px;
  gap: 6px;
  margin: 24px auto 10px;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.06);
}

.tm-tab-btn {
  padding: 9px 22px;
  border-radius: 30px;
  font-weight: 600;
  font-size: 14px;
  border: none;
  background: transparent;
  color: #64748b;
  transition: all 0.3s ease;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  line-height: 1.2;
}

.tm-tab-btn:hover {
  color: #1e293b;
}

.tm-tab-btn.active {
  background: #ffffff;
  color: #e60402;
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
}

/* Slider Track Wrapper */
.tm-slider-container {
  position: relative;
  padding: 10px 0 20px;
}

.tm-slider-track {
  margin: 0 -12px;
}

.tm-slider-track .slick-list {
  padding: 15px 0 25px !important;
  overflow: hidden;
}

/* Equal Height Flex Track */
.tm-slider-track .slick-track {
  display: flex !important;
  align-items: stretch !important;
}

.tm-slider-track .slick-slide {
  padding: 0 12px;
  height: inherit !important;
  display: flex !important;
  flex-direction: column !important;
  outline: none;
}

/* Equal Height Flex Item */
.tm-slider-track .slick-slide > div {
  height: 100% !important;
  display: flex !important;
  flex-direction: column !important;
  flex: 1 1 auto !important;
}

/* Testimonial Card */
.tm-home-card {
  background: #ffffff;
  border-radius: 18px;
  padding: 32px 28px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(197, 157, 95, 0.22);
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
  height: 100% !important;
  flex: 1 1 auto !important;
  position: relative;
  overflow: hidden;
  box-sizing: border-box !important;
}

/* Top Accent Bar */
.tm-home-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #e60402 0%, #c59d5f 100%);
  opacity: 0.9;
}

/* Watermark Quote Icon */
.tm-card-quote-bg {
  position: absolute;
  right: 22px;
  top: 24px;
  font-size: 38px;
  color: rgba(197, 157, 95, 0.15);
  pointer-events: none;
  line-height: 1;
}

/* Card Header: Stars & Badges */
.tm-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  position: relative;
  z-index: 2;
}

.tm-stars-wrap {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #f59e0b;
  font-size: 14px;
}

.tm-rating-val {
  font-size: 13px;
  font-weight: 700;
  color: #1e293b;
  margin-left: 6px;
}

.tm-verified-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11.5px;
  font-weight: 700;
  color: #16a34a;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  padding: 4px 10px;
  border-radius: 20px;
}

/* Card Body: Quote text */
.tm-card-text {
  color: #334155;
  font-size: 15px;
  line-height: 1.7;
  margin: 0 0 24px;
  flex-grow: 1 !important;
  position: relative;
  z-index: 2;
  font-style: normal;
}

/* Card Footer: Reviewer Info */
.tm-card-author-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-top: 18px;
  border-top: 1px dashed rgba(22, 26, 35, 0.1);
  position: relative;
  z-index: 2;
}

.tm-author-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(197, 157, 95, 0.35);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
  flex-shrink: 0;
}

.tm-author-monogram {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(135deg, #e60402 0%, #c59d5f 100%);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.5px;
  border: 2px solid #ffffff;
  box-shadow: 0 4px 12px rgba(230, 4, 2, 0.22);
  flex-shrink: 0;
}

.tm-author-details {
  flex-grow: 1;
  min-width: 0;
}

.tm-author-name {
  font-family: var(--font-display);
  font-size: 16.5px;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tm-author-role {
  font-size: 13px;
  font-weight: 600;
  color: #c59d5f;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ==========================================================================
   VIDEO SLIDER - PREVIOUS VT-CARD DESIGN
   ========================================================================== */
#homeVideoSlider .slick-slide {
  padding: 10px 14px;
  display: flex !important;
  justify-content: center !important;
}

#homeVideoSlider .slick-slide > div {
  width: 100%;
  display: flex;
  justify-content: center;
}

#homeVideoSlider .vt-card {
  width: 100% !important;
  max-width: 290px;
  height: 490px;
  margin: 0 auto;
  border-radius: var(--radius-lg, 20px);
  overflow: hidden;
  position: relative;
  border: 1px solid rgba(200, 146, 26, 0.22);
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), border-color 0.3s, box-shadow 0.3s;
  cursor: pointer;
  box-shadow: rgba(60, 64, 67, 0.3) 0px 1px 2px 0px, rgba(60, 64, 67, 0.15) 0px 1px 3px 1px;
  background: #000;
}

#homeVideoSlider .vt-card:hover {
  transform: translateY(-8px) scale(1.025);
  border-color: rgba(200, 146, 26, 0.5);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.45);
}

#homeVideoSlider .vt-card.is-active {
  box-shadow: rgba(60, 64, 67, 0.3) 0px 1px 2px 0px, rgba(60, 64, 67, 0.15) 0px 2px 6px 2px;
}

#homeVideoSlider .vt-thumb {
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
}

#homeVideoSlider .vt-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
  filter: brightness(0.75);
}

#homeVideoSlider .vt-card:hover .vt-thumb img {
  transform: scale(1.06);
  filter: brightness(0.6);
}

#homeVideoSlider .vt-thumb::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(10, 6, 0, 0.1) 0%, rgba(10, 6, 0, 0.05) 30%, rgba(10, 6, 0, 0.6) 70%, rgba(10, 6, 0, 0.92) 100%);
}

#homeVideoSlider .vt-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 4;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: #e60402;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.25s ease, background 0.25s ease;
  border: 2px solid rgba(255, 255, 255, 0.25);
  pointer-events: none;
}

#homeVideoSlider .vt-card:hover .vt-play {
  transform: translate(-50%, -50%) scale(1.1);
  background: #e60402;
}

#homeVideoSlider .vt-play::after {
  content: '';
  display: block;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 10px 0 10px 18px;
  border-color: transparent transparent transparent #fff;
  margin-left: 4px;
}

#homeVideoSlider .vt-meta {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 18px 16px 20px;
  z-index: 4;
}

#homeVideoSlider .vt-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #e60402;
  background: rgba(200, 146, 26, 0.15);
  border: 1px solid #e60402;
  padding: 3px 9px;
  border-radius: 100px;
  margin-bottom: 8px;
}

#homeVideoSlider .vt-badge::before {
  content: '';
  display: block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #e60402;
}

#homeVideoSlider .vt-name {
  font-size: 15px;
  font-weight: 600;
  color: #ffffff;
  line-height: 1.3;
  margin-bottom: 3px;
}

#homeVideoSlider .vt-role {
  font-size: 12px;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.7);
  margin: 0;
}

#homeVideoSlider .vt-iframe-wrap {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: none;
  background: #000;
  border-radius: var(--radius-lg, 20px);
  overflow: hidden;
}

#homeVideoSlider .vt-iframe-wrap.is-playing {
  display: block;
}

#homeVideoSlider .vt-iframe-wrap iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* Slick Custom Arrows */
.tm-slider-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-top: 35px;
}

.tm-arrow-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #ffffff;
  border: 1.5px solid rgba(22, 26, 35, 0.15);
  color: #1e293b;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  transition: all 0.3s ease;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.tm-arrow-btn:hover {
  background: #e60402;
  color: #ffffff;
  border-color: #e60402;
  box-shadow: 0 8px 20px rgba(230, 4, 2, 0.28);
  transform: translateY(-2px);
}

/* Slick Dots */
.tm-slider-track .slick-dots {
  position: static;
  display: flex !important;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 30px 0 0;
  padding: 0;
  list-style: none;
}

.tm-slider-track .slick-dots li {
  margin: 0;
  padding: 0;
  width: auto;
  height: auto;
}

.tm-slider-track .slick-dots li button {
  width: 10px;
  height: 10px;
  padding: 0;
  border-radius: 20px;
  background: rgba(22, 26, 35, 0.2);
  border: none;
  font-size: 0;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  cursor: pointer;
}

.tm-slider-track .slick-dots li.slick-active button {
  width: 32px;
  background: #e60402;
  box-shadow: 0 2px 8px rgba(230, 4, 2, 0.3);
}

/* Responsive adjustments */
@media (max-width: 991px) {
  .home-testimonial-sec {
    padding: 65px 0 75px;
  }
  .tm-home-card {
    padding: 26px 22px;
  }
}

@media (max-width: 767px) {
  .home-testimonial-sec {
    padding: 50px 0 60px;
  }
  .tm-home-subtitle {
    font-size: 14.5px;
  }
  .tm-home-card {
    padding: 24px 20px;
  }
  .tm-card-text {
    font-size: 14px;
    margin-bottom: 20px;
  }
  .tm-author-avatar,
  .tm-author-monogram {
    width: 44px;
    height: 44px;
    font-size: 16px;
  }
  .tm-author-name {
    font-size: 15px;
  }
  #homeVideoSlider .vt-card {
    max-width: 260px;
    height: 440px;
  }
}
