/* Enhanced References List Styles */
.references-list {
  position: relative;
}

.reference-card {
  position: relative;
  margin-bottom: 2rem;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  overflow: hidden;
}

.reference-card:hover {
  /* transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.12); */
}

.reference-content {
  padding: 2.5rem;
  position: relative;
}

/* Alternating styles */
.reference-card-left {
  /* border-left: 4px solid #664CCC; */
}

.reference-card-right {
  /* border-right: 4px solid #664CCC; */
}

/* Profile Section */
.reference-profile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.reference-card-left .reference-profile {
  align-items: flex-start;
}

.reference-card-right .reference-profile {
  align-items: flex-end;
}

.company-logo-wrapper {
  position: relative;
}

.company-link {
  display: inline-block;
  transition: transform 0.2s ease;
}

.company-link:hover {
  transform: scale(1.05);
}

.company-logo {
  max-width: 140px;
  max-height: 60px;
  width: auto;
  height: auto;
  filter: grayscale(0.2);
  transition: filter 0.2s ease;
}

.company-link:hover .company-logo {
  filter: grayscale(0);
}

.person-info {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.reference-card-right .person-info {
  flex-direction: row-reverse;
}

.person-avatar {
  position: relative;
}

.avatar-img {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #f8f9fa;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.person-details {
  flex: 1;
}

.reference-card-right .person-details {
  text-align: right;
}

.person-name {
  font-size: 1.1rem;
  font-weight: 600;
  color: #2c3e50;
  margin: 0 0 0.25rem 0;
  line-height: 1.3;
}

.person-position {
  font-size: 0.9rem;
  color: #7f8c8d;
  margin: 0;
  line-height: 1.4;
}

/* Quote Section */
.reference-quote {
  position: relative;
}

.quote-icon {
  margin-bottom: 1rem;
}

.quote-svg {
  color: #664CCC;
  opacity: 0.6;
}

.reference-text-quote {
  font-size: 1.1rem;
  line-height: 1.7;
  color: #34495e;
  font-style: italic;
  margin: 0;
  position: relative;
}

.reference-text-quote::before {
  content: '';
  position: absolute;
  left: -1rem;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(to bottom, #664CCC, #8e7cc3);
  border-radius: 2px;
  opacity: 0.6;
}

.reference-card-right .reference-text-quote::before {
  left: auto;
  right: -1rem;
}

/* Company specific colors */
.cj-vivnetworks .reference-card-left,
.cj-vivnetworks .reference-card-right {
  border-color: #0066cc;
}

.cj-vivnetworks .reference-text-quote::before {
  background: linear-gradient(to bottom, #0066cc, #4d94ff);
}

.cj-vivnetworks .quote-svg {
  color: #0066cc;
}

.ehub .reference-card-left,
.ehub .reference-card-right {
  border-color: #00a86b;
}

.ehub .reference-text-quote::before {
  background: linear-gradient(to bottom, #00a86b, #33c788);
}

.ehub .quote-svg {
  color: #00a86b;
}

.webepartners .reference-card-left,
.webepartners .reference-card-right {
  border-color: #e74c3c;
}

.webepartners .reference-text-quote::before {
  background: linear-gradient(to bottom, #e74c3c, #f1948a);
}

.webepartners .quote-svg {
  color: #e74c3c;
}

/* Responsive Design */
@media (max-width: 768px) {
  .reference-content {
    padding: 1.5rem;
  }
  
  /* Reset row direction for mobile */
  .row.flex-row-reverse {
    flex-direction: row !important;
  }
  
  .reference-card-right .person-info {
    flex-direction: column !important;
  }
  
  .reference-card-right .person-details {
    text-align: center !important;
  }
  
  .reference-profile {
    align-items: center !important;
    text-align: center !important;
  }
  
  .reference-quote {
    text-align: center !important;
  }
  
  .person-info {
    flex-direction: column !important;
    text-align: center !important;
  }

  .reference-text-quote {
    font-size: 1rem;
    line-height: 1.5;
  }
  
  .reference-text-quote::before {
    display: none;
  }
}
