/* Expert Popup Styles */
.expert-popup-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.expert-popup-container.active {
  opacity: 1;
  visibility: visible;
}

.expert-popup {
  background-color: white;
  border-radius: 1rem;
  width: 90%;
  max-width: 600px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  animation: popupFadeIn 0.3s ease;
  color: #012B59;
}

@keyframes popupFadeIn {
  from {
    transform: translateY(20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.close-btn {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: #012B59;
  z-index: 2;
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.8);
}

.expert-popup-content {
  padding: 1.5rem;
}

.expert-header {
  display: flex;
  margin-bottom: 1.5rem;
}

.expert-img-container {
  width: 120px;
  height: 120px;
  position: relative;
  margin-right: 1.5rem;
  flex-shrink: 0;
  border-radius: 0.5rem;
  overflow: visible;
}

.expert-img-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0.5rem;
  overflow: hidden;
}

.expert-img-container img.portrait-image {
  object-fit: contain;
  background-color: #f8f8f8;
}

.expert-rating {
  position: absolute;
  bottom: 0.5rem;
  right: 0.5rem;
  background: #FEA933;
  color: white;
  font-size: 0.75rem;
  padding: 0.25rem 0.5rem;
  border-radius: 9999px;
  z-index: 2;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  white-space: nowrap;
  min-width: fit-content;
  max-width: none;
  overflow: visible;
}

.expert-basic-info h2 {
  font-size: 1.5rem;
  margin: 0 0 0.5rem 0;
  font-weight: 700;
}

.expert-basic-info h3 {
  font-size: 1.2rem;
  margin: 0 0 0.5rem 0;
  color: #012B59;
  opacity: 0.8;
  font-weight: 500;
}

.expert-price {
  font-weight: 700;
  color: #51D7AE;
  margin: 0;
}

.expert-categories,
.expert-description,
.expert-highlights {
  margin-bottom: 1.5rem;
}

.expert-categories h4,
.expert-description h4,
.expert-highlights h4 {
  font-size: 1.1rem;
  margin: 0 0 0.75rem 0;
  font-weight: 600;
  color: #012B59;
}

.expert-skills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.expert-skill-badge {
  background-color: #f3f4f6;
  color: #012B59;
  font-size: 0.8rem;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  display: inline-block;
  text-transform: uppercase;
  font-weight: 500;
}

.expert-description p {
  margin: 0;
  line-height: 1.5;
  color: #012B59;
  opacity: 0.8;
}

.expert-highlights-list {
  padding-left: 1.5rem;
  margin: 0;
}

.expert-highlights-list li {
  margin-bottom: 0.5rem;
  color: #012B59;
  opacity: 0.8;
}

.whatsapp-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #25D366;
  color: white;
  text-decoration: none;
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  font-weight: 600;
  margin-top: 1rem;
  transition: background-color 0.2s ease;
}

.whatsapp-btn:hover {
  background-color: #128C7E;
  color: white;
}

.whatsapp-btn i {
  margin-right: 0.5rem;
  font-size: 1.25rem;
}

.no-scroll {
  overflow: hidden;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .expert-popup {
    width: 95%;
    max-height: 85vh;
  }
  
  .expert-popup-content {
    padding: 1.2rem;
  }
  
  .expert-header {
    margin-bottom: 1.2rem;
  }
  
  .expert-img-container {
    width: 100px;
    height: 100px;
    margin-right: 1rem;
  }
  
  .expert-basic-info h2 {
    font-size: 1.3rem;
    margin-bottom: 0.3rem;
  }
  
  .expert-basic-info h3 {
    font-size: 1rem;
    margin-bottom: 0.3rem;
  }
  
  .expert-categories h4,
  .expert-description h4,
  .expert-highlights h4 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
  }
  
  .expert-description p,
  .expert-highlights-list li {
    font-size: 0.9rem;
  }
  
  .expert-skill-badge {
    font-size: 0.75rem;
    padding: 0.2rem 0.5rem;
  }
  
  .whatsapp-btn {
    padding: 0.6rem 0.8rem;
    font-size: 0.9rem;
  }
  
  .whatsapp-btn i {
    font-size: 1.1rem;
  }
}

@media (max-width: 576px) {
  .expert-popup {
    width: 100%;
    height: 100%;
    max-height: 100%;
    border-radius: 0;
    display: flex;
    flex-direction: column;
  }
  
  .expert-popup-content {
    padding: 1rem;
    flex-grow: 1;
    overflow-y: auto;
  }
  
  .close-btn {
    top: 0.8rem;
    right: 0.8rem;
    font-size: 1.3rem;
    width: 1.8rem;
    height: 1.8rem;
    z-index: 10;
  }
  
  .expert-header {
    flex-direction: column;
  }
  
  .expert-img-container {
    width: 100%;
    height: auto;
    min-height: 250px;
    max-height: 350px;
    margin-right: 0;
    margin-bottom: 1rem;
    border-radius: 0.5rem;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f8f8f8;
    position: relative;
  }
  
  .expert-img-container img {
    max-width: 100%;
    max-height: 350px;
    object-fit: contain;
    border-radius: 0;
  }
  
  .expert-img-container img.portrait-image {
    height: auto;
    width: auto;
    max-height: 350px;
    max-width: 100%;
  }
  
  .expert-rating {
    bottom: 0.5rem;
    right: 0.5rem;
    font-size: 0.7rem;
    padding: 0.2rem 0.4rem;
  }
  
  .expert-basic-info {
    text-align: center;
  }
  
  .expert-basic-info h2 {
    font-size: 1.2rem;
  }
  
  .expert-basic-info h3 {
    font-size: 0.95rem;
  }
  
  .expert-categories,
  .expert-description,
  .expert-highlights {
    margin-bottom: 1.2rem;
  }
  
  .expert-categories h4,
  .expert-description h4,
  .expert-highlights h4 {
    font-size: 0.95rem;
  }
  
  .expert-description p,
  .expert-highlights-list li {
    font-size: 0.85rem;
  }
  
  .expert-highlights-list {
    padding-left: 1.2rem;
  }
  
  .whatsapp-btn {
    margin-top: 0.5rem;
  }
}

/* Untuk perangkat dengan layar lebih kecil */
@media (max-width: 576px) and (max-height: 700px) {
  .expert-img-container {
    min-height: 200px;
    max-height: 250px;
  }
  
  .expert-img-container img,
  .expert-img-container img.portrait-image {
    max-height: 250px;
  }
} 