
.section-reviews-homepage {
  background: var(--primary-bg, #fbfbfb);
}

.section-reviews-homepage__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: var(--spacing-40);
  flex-wrap: wrap;
}

.section-reviews-homepage__header-left {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-24);
}

.section-reviews-homepage__title {
  flex: 1;
  min-width: 300px;
  max-width: 800px;
  line-height: 1.2;
  color: var(--primary-text, #333333);
  margin: 0;
 
}
.section-reviews-homepage__description {
  font-family: var(--font-body);
  font-size: var(--fs-body-l);
  line-height: var(--lh-body-l);
  color: var(--secondary-text, #6E6E6E);
  font-weight: var(--font-weight-500, 500);
  max-width: 800px;
  margin: 0;
}
.section-reviews-homepage__description a {
  color: var(--color-brand-teal);
  text-decoration: none;
  transition: color 0.3s ease, text-decoration 0.3s ease;
}
.section-reviews-homepage__description a:hover {
  color: var(--color-brand-teal-300);
  text-decoration: none;
}
.section-reviews-homepage__title span {
  color: var(--color-brand-terracotta);
  font-weight: var(--font-weight-500);
}

.reviews-homepage__badge {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}


.reviews-homepage__badge img {
  height: 60px;
  width: auto;
  opacity: 0.9;
  transition: opacity 0.3s ease;
}

/* Slider container (Swiper) */
.reviews-homepage__slider {
  position: relative;
  margin-bottom: 60px;
  overflow: hidden;
}

@media screen and (min-width: 768px) {
  .reviews-homepage__slider {
    overflow: visible;
  }

  .reviews-homepage__slider .reviews-homepage__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: minmax(200px, auto);
    gap: 20px;
    margin-bottom: 0;
  }

  .reviews-homepage__slider .reviews-homepage__grid.swiper-wrapper {
    grid-template-columns: repeat(2, 1fr);
  }

  .reviews-homepage__slider .review-card.swiper-slide {
    width: auto;
    height: auto;
  }

  .reviews-homepage__slider .review-card--featured {
    grid-column: 1 / -1;
    grid-row: 1;
  }

  .reviews-homepage__slider-pagination,
  .reviews-homepage__slider-btn {
    display: none !important;
  }
}

@media screen and (min-width: 1200px) {
  .reviews-homepage__slider .reviews-homepage__grid,
  .reviews-homepage__slider .reviews-homepage__grid.swiper-wrapper {
    grid-template-columns: repeat(3, 1fr);
  }

  .reviews-homepage__slider .review-card--featured {
    grid-column: 3;
    grid-row: 1 / span 2;
  }
}

@media screen and (max-width: 767px) {
  .reviews-homepage__slider .reviews-homepage__grid {
    display: flex;
    margin-bottom: 0;
  }

  .reviews-homepage__slider .reviews-homepage__grid.swiper-wrapper {
    grid-template-columns: unset;
    grid-auto-rows: unset;
    gap: 0;
  }

  .reviews-homepage__slider .review-card.swiper-slide {
    height: auto;
    box-sizing: border-box;
  }
}

/* Slider navigation */
.reviews-homepage__slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--primary-text, #333333);
  transition: color 0.3s ease, opacity 0.3s ease;
  border: none;
  background: transparent;
}




.reviews-homepage__slider-btn.swiper-button-disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

/* Slider pagination */
.reviews-homepage__slider-pagination {
  margin-top: 24px;
  position: relative;
}

.reviews-homepage__slider-pagination .swiper-pagination-bullet {
  background: var(--secondary-text, #6E6E6E);
  opacity: 0.5;
  width: 8px;
  height: 8px;
  transition: opacity 0.3s ease, background 0.3s ease;
}

.reviews-homepage__slider-pagination .swiper-pagination-bullet-active {
  background: var(--color-brand-teal);
  opacity: 1;
}




.reviews-homepage__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: minmax(200px, auto);
  gap: 20px;
  margin-bottom: 60px;
}

/* Regular Review Cards */
.review-card {
  background: var(--secondary-bg);
  border-radius: 20px;
  padding: 0;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: visible;
  display: flex;
  flex-direction: column;
  min-height: 240px;
}

.review-card--featured {
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.review-card__link {
  padding: 16px;
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
  color: inherit;
  gap: 8px;
  position: relative;
  overflow: hidden;
}

.review-card__link::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent-orange, #FB8500), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}



@media screen and (max-width: 767px) {
  .review-card__link::before {
    display: none;
  }


}


/* Featured Review Card - Larger card with quote icon */
.review-card--featured {
  background-color: var(--color-brand-navy);
  background-image: url("../img/review-card.923c2fcec180.webp");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  grid-column: 3;
  grid-row: 1 / span 2;
  position: relative;
}


.review-card--featured .review-card__link {
  padding: 24px;
  position: relative;
  z-index: 1;
}

.review-card--featured .review-card__quote {
  font-size: 18px;
  font-weight: var(--font-weight-400);
  color: var(--color-brand-white);
}
.review-card--featured .review-card__link::after {
  content: '';
  position: absolute;
  top: 24px;
  left: 24px;
  width: 37px;
  height: 30px;
  background-color: var(--color-brand-orange);
  -webkit-mask: url("../img/iconsFont/blockquote.aa3eb7409d5f.svg") center / contain no-repeat;
  mask: url("../img/iconsFont/blockquote.aa3eb7409d5f.svg") center / contain no-repeat;
  pointer-events: none;
  z-index: 2;
}


.review-card--featured .review-card__content {
    margin-top: 64px;
}

.review-card--featured .review-card__author-name {
  color: var(--color-brand-white);
}

.review-card--featured .review-card__author-position {
  color: rgba(255, 255, 255, 0.7);
}


.review-card__content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.review-card__quote {
  font-family: var(--font-editorial);
  font-size: var(--fs-body);
  line-height: var(--lh-quote);
  letter-spacing: 0;
  color: var(--color-brand-navy);
  font-weight: var(--font-weight-500);
  font-style: italic;
  flex: 1;
}

.review-card__rating {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.review-card__rating img {
  height: 20px;
  width: auto;
  opacity: 0.9;
}

.review-card__author {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 20px;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.review-card__author-info {
  flex: 1;
  min-width: 0;
}

.review-card__author-name {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  font-weight: var(--font-weight-600, 600);
  color: var(--color-brand-white-800);
  margin-bottom: 4px;
  line-height: 1.2;
  letter-spacing: 0;
}

.review-card__author-position {
  font-family: var(--font-body);
  font-size: var(--fs-body-s);
  font-weight: var(--font-weight-600);
  letter-spacing: 0;
  color: rgba(48, 48, 48, 0.7); /* 70% of --color-brand-white-800 (#303030) */
  line-height: 1.2;
}

.reviews-homepage__footer {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  margin-top: 40px;
}

/* Responsive Design */
@media screen and (max-width: 1400px) {

  .reviews-homepage__grid {
    gap: 18px;
  }

  .review-card__link {
    padding: 0;
  }

  .review-card--featured .review-card__link {
    padding:0;
  }

  .review-card {
    padding: 24px;
  }

  .review-card--featured {
    padding: 28px;
  }
}

@media screen and (max-width: 1200px) {


  
  .reviews-homepage__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
  
  .review-card--featured {
    grid-column: 1 / -1;
    grid-row: 1;
  }
  
  .review-card--featured .review-card__quote {
    font-size: 17px;
  }
}

@media screen and (max-width: 992px) {

  
  .section-reviews-homepage__header {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 30px;
  }
  
  .section-reviews-homepage__title {
    text-align: center;
    min-width: auto;
    width: 100%;
  }
  
  .reviews-homepage__badge img {
    height: 50px;
  }
  
  .review-card__link {
    padding: 0;
  }
  
  .review-card--featured .review-card__link {
    padding: 0;
  }
}

@media screen and (max-width: 768px) {

  
  .section-reviews-homepage__header {
    margin-bottom: 35px;
    gap: 24px;
  }
  
  .section-reviews-homepage__title {
    margin-bottom: 0;
    font-size: clamp(28px, 6vw, 36px);
  }
  
  .reviews-homepage__badge img {
    height: 45px;
  }
  
  .reviews-homepage__grid {
    grid-template-columns: 1fr;
    gap: 18px;
    margin-bottom: 40px;
  }
  
  .review-card--featured {
    grid-column: 1;
    grid-row: 1;
    padding: 28px;
  }
  
  .review-card--featured .review-card__quote {
    font-size: 16px;
  }
  
  .review-card--featured .review-card__link::after {
    top: 0px;
    left: 0px;
    width: 30px;
    height: 24px;
  }
  
  .review-card--featured .review-card__content {
    margin-left: 0;
  }
  
  .review-card {
    padding: 24px;
  }
  
  
  .reviews-homepage__footer {
    justify-content: center;
    margin-top: 30px;
  }
  
  .btn-wrapper--right {
    justify-content: center;
  }
  
  /* Slider: hide nav on mobile, show pagination */
  .reviews-homepage__slider-btn {
    display: none;
  }
  
  .reviews-homepage__slider-pagination {
    margin-top: 20px;
  }
}

@media screen and (max-width: 768px) {

  .reviews-homepage__grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .review-card--featured {
    grid-row: span 1;
  }
  
  .review-card--featured .review-card__link {
    padding: 32px;
  }
  
  .review-card--featured .review-card__quote {
    font-size: 16px;
  }
  
  .review-card--featured .review-card__link::after {
    top: 0px;
    left: 0px;
    width: 28px;
    height: 22px;
  }
  

  
  .review-card__link {
    padding: 0;
  }

  
  .reviews-homepage__footer {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  
  .btn-wrapper--right {
    justify-content: center;
  }
}

@media screen and (max-width: 576px) {

  .section-reviews-homepage__header {
    margin-bottom: 30px;
    gap: 20px;
  }

  
  .reviews-homepage__badge img {
    height: 40px;
  }
  
  .reviews-homepage__grid {
    gap: 16px;
    margin-bottom: 30px;
  }
  
  .reviews-homepage__slider {
    margin-bottom: 40px;
  }
  
  .reviews-homepage__slider-pagination {
    margin-top: 16px;
  }
  
  .review-card {
    border-radius: 16px;
  }
  
  .review-card__link {
    padding: 0;
  }
  
  .review-card--featured .review-card__link {
    padding: 24px;
  }
  
  
  
  .review-card__quote-icon {
    font-size: 40px;
    margin-bottom: 10px;
  }
  
  .review-card__author {
    flex-wrap: wrap;
    padding-top: 16px;
  }
  
  .review-card__rating {
    width: 100%;
    margin-top: 8px;
  }

  .review-card__author-position {
    font-size: 13px;
  }
  
  .review-card__rating img {
    height: 18px;
  }
  
  .custom-hint {
    font-size: 12px;
    padding: 6px 16px;
    max-width: 85vw;
  }
  
  .reviews-homepage__footer {
    margin-top: 24px;
  }
}

@media screen and (max-width: 400px) {

  .section-reviews-homepage__header {
    margin-bottom: 24px;
  }
  
  .reviews-homepage__grid {
    gap: 14px;
  }
  
  .review-card__link {
    padding: 0;
  }
  
  .review-card--featured .review-card__link {
    padding: 0;
  }
  

  
}
