/* ===== REVIEWS SECTION STYLES ===== */

/* Reviews Area */
.reviews-area {
    background-color: #f8f9fa;
    position: relative;
  }
  
  /* Section Title */
  .section-title .subtitle {
    color: #ff6b35;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 10px;
    letter-spacing: 2px;
  }
  
  .section-title .title {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #333;
  }
  
  /* Reviews Summary Stats */
  .reviews-summary {
    margin: 30px 0;
  }
  
  .reviews-stat-card {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    padding: 25px 20px;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
    height: 100%;
  }
  
  .reviews-stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
  }
  
  .reviews-stat-icon {
    background: rgba(255, 107, 53, 0.1);
    color: #ff6b35;
    height: 60px;
    width: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-right: 15px;
  }
  
  .reviews-stat-content h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 5px;
    color: #333;
  }
  
  .reviews-stat-content p {
    margin: 0;
    color: #777;
    font-size: 14px;
  }
  
  /* Platform Tabs */
  .reviews-platform-tabs {
    margin-bottom: 30px;
  }
  
  .reviews-platform-tabs .nav-pills {
    background: #fff;
    border-radius: 50px;
    padding: 8px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    display: inline-flex;
  }
  
  .reviews-platform-tabs .nav-link {
    color: #666;
    font-weight: 600;
    padding: 12px 25px;
    border-radius: 50px;
    margin: 0 5px;
    transition: all 0.3s ease;
  }
  
  .reviews-platform-tabs .nav-link i {
    margin-right: 8px;
  }
  
  .reviews-platform-tabs .nav-link.active {
    background-color: #ff6b35;
    color: #fff;
    box-shadow: 0 5px 15px rgba(255, 107, 53, 0.3);
  }
  
  .reviews-platform-tabs .nav-link:hover:not(.active) {
    background-color: #f1f1f1;
  }
  
  /* Platform Header */
  .platform-header {
    background: #fff;
    margin-bottom: 30px;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  }
  
  .platform-info {
    display: flex;
    align-items: center;
  }
  
  .platform-logo {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
    font-size: 30px;
  }
  
  .airtasker-logo {
    background-color: #5d9df5;
    color: white;
  }
  
  .hipages-logo {
    background-color: #ffbb38;
    color: white;
  }
  
  .google-logo {
    background-color: #ea4335;
    color: white;
  }
  
  .platform-details h3 {
    font-size: 20px;
    font-weight: 700;
    color: #333;
    margin-bottom: 5px;
  }
  
  .platform-details p {
    margin: 0;
    color: #666;
  }
  
  /* Review Card */
  .review-card {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    height: 100%;
    transition: all 0.3s ease;
    overflow: hidden;
    display: flex;
    flex-direction: column;
  }
  
  .review-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
  }
  
  .review-card.airtasker-review {
    border-top: 4px solid #5d9df5;
  }
  
  .review-card.hipages-review {
    border-top: 4px solid #ffbb38;
  }
  
  .review-card.google-review {
    border-top: 4px solid #ea4335;
  }
  
  .review-card-header {
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  
  .review-platform-badge {
    font-size: 13px;
    font-weight: 600;
  }
  
  .review-platform-badge i {
    margin-right: 5px;
  }
  
  .review-date {
    font-size: 12px;
    color: #999;
  }
  
  .review-card-body {
    padding: 20px;
    flex-grow: 1;
  }
  
  .review-image {
    text-align: center;
    max-height: 120px; /* Reduced from 200px */
    overflow: hidden;
    margin-bottom: 15px;
    border-radius: 8px;
  }
  .review-image img {
    max-height: 120px; /* Reduced from 200px */
    max-width: 100%;
    width: auto;
    object-fit: contain;
}
  .review-rating {
    margin-bottom: 15px;
  }
  
  .review-rating .fas.fa-star {
    color: #ffc107;
  }
  
  .review-rating .far.fa-star {
    color: #e0e0e0;
  }
  
  .review-content {
    color: #666;
    font-size: 15px;
    line-height: 1.6;
  }
  
  .review-card-footer {
    padding: 15px 20px;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  
  .reviewer-info {
    display: flex;
    align-items: center;
  }
  
  .reviewer-avatar {
    width: 30px; /* Reduced from 40px */
    height: 30px; /* Reduced from 40px */
    border-radius: 50%;
    overflow: hidden;
    margin-right: 10px;
    flex-shrink: 0;
  }
  
  .reviewer-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  
  .avatar-placeholder {
    width: 100%;
    height: 100%;
    background: #ff6b35;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 18px;
  }
  
  .reviewer-details h4 {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 3px 0;
    color: #333;
  }
  
  .reviewer-details p {
    font-size: 13px;
    color: #777;
    margin: 0;
  }
  
  .recommended-badge {
    background: rgba(40, 167, 69, 0.1);
    color: #28a745;
    font-size: 12px;
    font-weight: 600;
    padding: 5px 10px;
    border-radius: 30px;
  }
  
  .recommended-badge i {
    margin-right: 3px;
  }
  
  /* Pagination */
  .pagination-wrapper {
    margin-top: 30px;
  }
  
  .pagination .page-link {
    color: #666;
    border: none;
    margin: 0 5px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
  }
  
  .pagination .page-item.active .page-link {
    background-color: #ff6b35;
    color: white;
    box-shadow: 0 5px 15px rgba(255, 107, 53, 0.3);
  }
  
  .pagination .page-link:hover:not(.active) {
    background-color: #f8f9fa;
  }
  
  .pagination .page-item:first-child .page-link,
  .pagination .page-item:last-child .page-link {
    border-radius: 50%;
  }
  
  /* No Reviews Found */
  .no-reviews-found {
    text-align: center;
    padding: 40px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
    color: #999;
    font-style: italic;
  }
  
  /* Review CTA */
  .review-cta {
    background: linear-gradient(135deg, #ff6b35 0%, #ff9a66 100%);
    border-radius: 10px;
    padding: 40px;
    text-align: center;
    margin-top: 50px;
    box-shadow: 0 10px 30px rgba(255, 107, 53, 0.2);
  }
  
  .review-cta-content h3 {
    color: white;
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 15px;
  }
  
  .review-cta-content p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 16px;
    margin-bottom: 25px;
  }
  
  .review-cta-content .btn {
    background: white;
    color: #ff6b35;
    font-weight: 600;
    padding: 12px 30px;
    border-radius: 50px;
    transition: all 0.3s ease;
    border: none;
  }
  
  .review-cta-content .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
  }
  
  /* Review Lightbox */
  .review-lightbox {
    position: fixed;
    z-index: 9999;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
  }
  
  .review-lightbox.active {
    opacity: 1;
  }
  
  .review-lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
  }
  
  .review-lightbox-content img {
    max-width: 100%;
    max-height: 80vh;
    border: 5px solid white;
    border-radius: 5px;
  }
  
  .review-lightbox-close {
    position: absolute;
    top: -40px;
    right: 0;
    color: white;
    font-size: 32px;
    cursor: pointer;
    transition: all 0.3s ease;
  }
  
  .review-lightbox-close:hover {
    transform: scale(1.2);
  }
  
  /* Read More Button */
  .read-more-btn {
    background: none;
    border: none;
    color: #ff6b35;
    font-weight: 600;
    font-size: 14px;
    padding: 5px 0;
    margin-top: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
  }
  
  .read-more-btn:hover {
    color: #e65a2a;
    text-decoration: underline;
  }
  
  /* Responsive adjustments */
  @media (max-width: 991px) {
    .reviews-platform-tabs .nav-link {
      padding: 10px 15px;
      font-size: 14px;
    }
    
    .section-title .title {
      font-size: 30px;
    }
  }
  
  @media (max-width: 767px) {
    .reviews-platform-tabs .nav-pills {
      display: flex;
      overflow-x: auto;
      white-space: nowrap;
      padding: 5px;
    }
    
    .reviews-platform-tabs .nav-link {
      padding: 8px 15px;
      margin: 0 2px;
      font-size: 13px;
    }
    
    .reviews-platform-tabs .nav-link i {
      margin-right: 5px;
    }
    
    .platform-info {
      flex-direction: column;
      text-align: center;
    }
    
    .platform-logo {
      margin-right: 0;
      margin-bottom: 15px;
    }
    
    .section-title .title {
      font-size: 24px;
    }
    
    .reviews-stat-card {
      margin-bottom: 15px;
    }
    
    .review-cta {
      padding: 30px 20px;
    }
    
    .review-cta-content h3 {
      font-size: 22px;
    }
  }
  /* Auto-rotation styles */
@keyframes tabRotationPulse {
    0% { box-shadow: 0 0 0 0 rgba(255, 107, 53, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(255, 107, 53, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 107, 53, 0); }
}

.reviews-platform-tabs .nav-link.active {
    animation: tabRotationPulse 4s infinite;
}

.reviews-platform-tabs:hover .nav-link.active {
    animation-play-state: paused;
}

.fa-spin-slow {
    animation: fa-spin 8s linear infinite;
}

.auto-rotate-indicator {
    font-size: 12px;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.reviews-platform-tabs:hover .auto-rotate-indicator {
    opacity: 1;
}
.reference-letter-card {
  margin-bottom: 30px;
}

.reference-letter-card .card {
  border-radius: 12px;
  overflow: hidden;
}

.reference-letter-card .card-header {
  background-color: #ff6b35 !important;
  border-bottom: none;
}

.reference-image img {
  border-radius: 8px;
  transition: transform 0.3s ease;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.reference-image img:hover {
  transform: scale(1.02);
}

.testimonial-quote {
  color: #555;
  font-style: italic;
  font-size: 20px;
  line-height: 1.5;
  position: relative;
  padding-left: 20px;
  border-left: 3px solid #ff6b35;
}

.quote-marks {
  color: #ff6b35;
  font-size: 24px;
  font-weight: bold;
}

.reference-author {
  position: relative;
  padding-left: 12px;
  line-height: 1.4;
}

.reference-author:before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background-color: #ff6b35;
  border-radius: 3px;
}
/* Reviews Banner - Portfolio Style with Line */
.reviews-banner-portfolio {
  background: linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.8)), url('../img/reviews-banner-bg.jpg');
  background-size: cover;
  background-position: center;
  padding: 120px 0;
  color: white;
  position: relative;
  overflow: hidden;
}

.reviews-banner-portfolio h1 {
  font-size: 60px; /* Larger size to match the image */
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 20px;
    text-transform: uppercase;
    color: white;
    text-align: center;
    line-height: 1.2;
    font-family: sans-serif; /* or use the specific font your website uses */
}

.highlight-line {
  height: 3px;
  width: 100%;
  max-width: 780px;
  background: linear-gradient(90deg, rgba(255,107,53,0) 0%, rgba(255,107,53,1) 50%, rgba(255,107,53,0) 100%);
  margin: 30px auto;
}

.reviews-banner-portfolio .lead {
  font-size: 21px;
  max-width: 700px;
  margin: 0 auto 30px;
  opacity: 0.95;
  font-weight: 300;
}

.verification-text {
  font-size: 16px;
  letter-spacing: 1px;
  color: rgba(255, 255, 255, 0.9);
  text-transform: uppercase;
  font-weight: 300;
}

.ratings-summary {
  display: inline-block;
  padding: 15px 30px;
  background-color: rgba(255, 107, 53, 0.1);
  border-radius: 50px;
  margin: 0 auto;
}

.stars {
  color: #ff6b35;
  font-size: 20px;
}

.rating-text {
  display: inline-block;
}

.rating-value {
  font-size: 24px;
  font-weight: 700;
}

.rating-max {
  font-size: 18px;
  opacity: 0.7;
}

.rating-count {
  margin-left: 10px;
  font-size: 14px;
  opacity: 0.8;
}

.platforms-row {
  margin-top: 30px;
}

.platform-badge {
  display: inline-block;
  padding: 10px 20px;
  margin: 0 10px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 5px;
  font-size: 16px;
  transition: all 0.3s ease;
}

.platform-badge:hover {
  background-color: #ff6b35;
  transform: translateY(-3px);
}

.platform-badge i {
  margin-right: 8px;
}

/* Animated background shapes */
.overlay-shapes {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  overflow: hidden;
}

.shape {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 107, 53, 0.15);
  animation-duration: 15s;
  animation-iteration-count: infinite;
  animation-timing-function: ease-in-out;
}

.shape-1 {
  width: 300px;
  height: 300px;
  top: -150px;
  right: -50px;
  animation-name: float-1;
}

.shape-2 {
  width: 200px;
  height: 200px;
  bottom: -100px;
  left: -50px;
  animation-name: float-2;
  animation-delay: 2s;
}

.shape-3 {
  width: 150px;
  height: 150px;
  top: 50%;
  right: 20%;
  transform: translateY(-50%);
  background: rgba(255, 107, 53, 0.1);
  animation-name: float-3;
  animation-delay: 1s;
}

.shape-4 {
  width: 80px;
  height: 80px;
  top: 20%;
  left: 15%;
  background: rgba(255, 107, 53, 0.15);
  animation-name: float-4;
  animation-delay: 3s;
}

.shape-5 {
  width: 120px;
  height: 120px;
  bottom: 10%;
  right: 10%;
  background: rgba(255, 107, 53, 0.1);
  animation-name: float-5;
  animation-delay: 0.5s;
}

/* Bubble floating animations */
@keyframes float-1 {
  0% { transform: translate(0, 0) rotate(0deg); }
  30% { transform: translate(30px, 50px) rotate(5deg); }
  60% { transform: translate(-20px, 20px) rotate(-3deg); }
  100% { transform: translate(0, 0) rotate(0deg); }
}

@keyframes float-2 {
  0% { transform: translate(0, 0) rotate(0deg); }
  40% { transform: translate(40px, -30px) rotate(8deg); }
  70% { transform: translate(-15px, -40px) rotate(-5deg); }
  100% { transform: translate(0, 0) rotate(0deg); }
}

@keyframes float-3 {
  0% { transform: translateY(-50%) scale(1); }
  50% { transform: translateY(-60%) scale(1.1); }
  100% { transform: translateY(-50%) scale(1); }
}

@keyframes float-4 {
  0% { transform: translate(0, 0); }
  30% { transform: translate(-20px, 30px); }
  60% { transform: translate(30px, 15px); }
  100% { transform: translate(0, 0); }
}

@keyframes float-5 {
  0% { transform: translate(0, 0) scale(1); }
  40% { transform: translate(25px, -20px) scale(1.05); }
  80% { transform: translate(-15px, 10px) scale(0.95); }
  100% { transform: translate(0, 0) scale(1); }
}

/* Media queries */
@media (max-width: 767px) {
  .reviews-banner-portfolio {
    font-size: 40px;
  }
  
  .reviews-banner-portfolio h1 {
      font-size: 36px;
  }
  
  .highlight-line {
      max-width: 90%;
  }
  
  .reviews-banner-portfolio .lead {
      font-size: 18px;
  }
  
  .ratings-summary {
      padding: 10px 20px;
  }
  
  .platforms-row {
      display: flex;
      flex-direction: column;
      align-items: center;
  }
  
  .platform-badge {
      margin: 5px 0;
  }
}

/* Additional styles for review cards */
.review-image {
  text-align: center;
  max-height: 120px;
  overflow: hidden;
  margin-bottom: 15px;
  border-radius: 8px;
}

.review-image img {
  max-height: 120px;
  max-width: 100%;
  width: auto;
  object-fit: contain;
}

.reviewer-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  overflow: hidden;
  margin-right: 10px;
  flex-shrink: 0;
}

.reviewer-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Review Lightbox */
.review-lightbox {
  position: fixed;
  z-index: 9999;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.review-lightbox.active {
  opacity: 1;
}

.review-lightbox-content {
  position: relative;
  max-width: 90%;
  max-height: 90%;
}

.review-lightbox-content img {
  max-width: 100%;
  max-height: 80vh;
  border: 5px solid white;
  border-radius: 5px;
}

.review-lightbox-close {
  position: absolute;
  top: -40px;
  right: 0;
  color: white;
  font-size: 32px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.review-lightbox-close:hover {
  transform: scale(1.2);
}

/* Read More Button */
.read-more-btn {
  background: none;
  border: none;
  color: #ff6b35;
  font-weight: 600;
  font-size: 14px;
  padding: 5px 0;
  margin-top: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.read-more-btn:hover {
  color: #e65a2a;
  text-decoration: underline;
}

/* Auto-rotation styles */
@keyframes tabRotationPulse {
  0% { box-shadow: 0 0 0 0 rgba(255, 107, 53, 0.4); }
  70% { box-shadow: 0 0 0 10px rgba(255, 107, 53, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 107, 53, 0); }
}

.reviews-platform-tabs .nav-link.active {
  animation: tabRotationPulse 4s infinite;
}

.reviews-platform-tabs:hover .nav-link.active {
  animation-play-state: paused;
}

.fa-spin-slow {
  animation: fa-spin 8s linear infinite;
}

.auto-rotate-indicator {
  font-size: 12px;
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

.reviews-platform-tabs:hover .auto-rotate-indicator {
  opacity: 1;
}

/* Reference Letter Card */
.reference-letter-card {
  margin-bottom: 30px;
}

.reference-letter-card .card {
  border-radius: 12px;
  overflow: hidden;
  border: none;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.reference-letter-card .card-header {
  background-color: #ff6b35 !important;
  border-bottom: none;
  padding: 15px 20px;
}

.reference-image img {
  border-radius: 8px;
  transition: transform 0.3s ease;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.testimonial-quote {
  color: #555;
  font-style: italic;
  font-size: 18px;
  line-height: 1.5;
  position: relative;
  padding-left: 20px;
  border-left: 3px solid #ff6b35;
}

.quote-marks {
  color: #ff6b35;
  font-size: 24px;
  font-weight: bold;
}

.reference-author {
  position: relative;
  padding-left: 12px;
  line-height: 1.4;
}

.reference-author:before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background-color: #ff6b35;
  border-radius: 3px;
}