.ranking-filter-section-wrapper {
  position: relative;
  margin: 0px 0;
}

.scroll-indicator {
  display: none;
}

.ranking-filter-section {
  background: #f8f9fa;
  border: 1px solid #e9ecef;
  border-radius: 0px;
  padding: 8px 20px;
  margin: 0px 0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.ranking-filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  justify-content: center;
}

.ranking-tab-btn {
  background: #ffffff;
  color: #666;
  border: 1px solid #ddd;
  padding: 2px 12px;
  min-width: 90px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  text-decoration: none;
}

.ranking-tab-btn:hover {
  background: #f0f0f0;
  border-color: #bbb;
  color: #333;
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.ranking-tab-btn.active {
  background: var(
    --primary-gradient,
    linear-gradient(135deg, #ff2a7a 0%, #ff4b91 45%, #e11d68 100%)
  );
  color: white;
  border-color: transparent;
  box-shadow: 0 3px 10px rgba(225, 29, 104, 0.35);
}

@media (max-width: 575.98px) {
  .ranking-filter-section {
    margin: 0px 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .ranking-filter-tabs {
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    padding: 0 0px;
    width: max-content;
  }

  .ranking-tab-btn {
    padding: 4px 12px;
    min-width: 80px;
    font-size: 13px;
    flex-shrink: 0;
  }

  .ranking-filter-section::-webkit-scrollbar {
    display: none;
  }
  .ranking-filter-section {
    -ms-overflow-style: none;
    scrollbar-width: none;
  }

  .scroll-indicator {
    display: flex;
    position: absolute;
    top: 0;
    bottom: 0;
    width: 32px;
    align-items: center;
    justify-content: center;
    color: #e91e63;
    font-size: 16px;
    font-weight: bold;
    z-index: 10;
    pointer-events: none;
  }

  .scroll-indicator.scroll-left {
    left: 0;
    background: linear-gradient(to right, #f8f9fa 60%, transparent);
    border-left: 1px solid #e9ecef;
  }

  .scroll-indicator.scroll-right {
    right: 0;
    background: linear-gradient(to left, #f8f9fa 60%, transparent);
    border-right: 1px solid #e9ecef;
  }
}

.therapist-part-cards-container {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  padding: 0;
}

.therapist-part-card {
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow:
    0 8px 30px rgba(0, 0, 0, 0.02),
    0 1px 2px rgba(0, 0, 0, 0.01);
  border: 1px solid rgba(255, 42, 122, 0.04);
  transition:
    transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1),
    box-shadow 0.3s ease,
    border-color 0.3s ease;
  cursor: pointer;
  position: relative;
  text-decoration: none;
  color: inherit;
}

.therapist-part-card span,
.therapist-part-card div,
.therapist-part-card h3 {
  text-decoration: none;
}

.therapist-part-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(255, 42, 122, 0.08);
  border-color: rgba(255, 42, 122, 0.15);
}

.therapist-part-card-image-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 280 / 432;
  overflow: hidden;
  background: #f0f0f0;
  border-radius: 20px 20px 0 0;
}

.therapist-part-card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.therapist-part-rank-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 4px 12px;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  border-radius: 9999px;
  z-index: 3;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.4);
  white-space: nowrap;
}

.therapist-part-favorite {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 34px;
  height: 34px;
}

.therapist-part-favorite i {
  font-size: 16px;
}

.therapist-part-review-badge {
  position: absolute;
  bottom: 28px;
  left: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  background: rgba(0, 0, 0, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 9999px;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  z-index: 3;
}

.therapist-part-review-badge i {
  font-size: 14px;
  color: #ffd700;
}

.therapist-part-review-badge.review-wanted {
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(255, 42, 122, 0.5);
  color: #ff2a7a;
  box-shadow: 0 2px 8px rgba(255, 42, 122, 0.15);
}
.therapist-part-review-badge.review-wanted i {
  color: #ff2a7a;
}

.therapist-part-specs-gradient {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 24px 10px 6px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.5));
  z-index: 1;
}

.therapist-part-specs-gradient span {
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
  white-space: nowrap;
}

.therapist-part-card-info {
  padding: 12px 14px 14px;
  background: #fff;
}

.therapist-part-shop-header {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 0px;
}

.therapist-part-shop-name {
  font-size: 12px;
  font-weight: 500;
  color: #777;
  margin: 0 0 2px 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.therapist-part-name {
  font-size: 14px;
  font-weight: 700;
  color: #222;
  margin: 0 0 6px 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.therapist-part-age {
  font-size: 12px;
  font-weight: 400;
  color: #666;
  margin-left: 2px;
}

.therapist-part-specs {
  font-size: 12px;
  font-weight: 600;
  color: #666;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.therapist-part-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 8px;
}

.therapist-part-tag {
  padding: 2px 8px;
  font-size: 10px;
  font-weight: 600;
  border-radius: 9999px;
  white-space: nowrap;
  line-height: 1.2;
  height: 17.5px;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
}

.therapist-part-tag.premium {
  background: #e91e63;
  color: #fff;
}

.therapist-part-tag.recommend {
  background: #4caf50;
  color: #fff;
}

.therapist-part-tag.category {
  background: rgba(0, 0, 0, 0.03);
  color: #666;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.therapist-part-rating {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 4px 6px;
  background: rgba(255, 42, 122, 0.04);
  border: 1px solid rgba(255, 42, 122, 0.08);
  border-radius: 4px;
  margin-bottom: 0px;
  height: 26px;
  box-sizing: border-box;
}

.therapist-part-rating-label {
  font-size: 11px;
  font-weight: 700;
  color: #333;
}

.therapist-part-rating-stars {
  color: var(--primary-color, #ff2a7a);
  font-size: 11px;
  display: flex;
  gap: 0.5px;
  align-items: center;
}

.therapist-part-rating-score {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--primary-color, #ff2a7a);
}

.bg-gold {
  background: linear-gradient(
    45deg,
    #b67b03 0%,
    #daaf08 45%,
    #fee9a0 70%,
    #daaf08 85%,
    #b67b03 90% 100%
  );
}

.bg-silver {
  background: linear-gradient(
    45deg,
    #757575 0%,
    #9e9e9e 45%,
    #e8e8e8 70%,
    #9e9e9e 85%,
    #757575 90% 100%
  );
}

.bg-bronze {
  background: linear-gradient(
    45deg,
    #8a4b12 0%,
    #c27528 40%,
    #f0c08a 65%,
    #c27528 85%,
    #8a4b12 100%
  );
}

.bg-rank-default {
  background: var(
    --primary-gradient,
    linear-gradient(135deg, #ff2a7a 0%, #ff4b91 45%, #e11d68 100%)
  );
}

@media (max-width: 1199.98px) {
  .therapist-part-cards-container {
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
  }
}

@media (max-width: 991.98px) {
  .therapist-part-cards-container {
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
  }

  .therapist-part-name {
    font-size: 15px;
  }

  .therapist-part-specs {
    font-size: 12px;
  }
}

@media (max-width: 767.98px) {
  .therapist-part-cards-container {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .therapist-part-card {
    border-radius: 16px;
  }

  .therapist-part-card-image-wrapper {
    border-radius: 16px 16px 0 0;
  }

  .therapist-part-card-info {
    padding: 8px 10px 10px;
  }

  .therapist-part-name {
    font-size: 14px;
  }

  .therapist-part-specs {
    font-size: 12px;
    margin-bottom: 4px;
  }

  .therapist-part-tags {
    margin-bottom: 6px;
  }

  .therapist-part-tag {
    font-size: 9px;
    padding: 2px 5px;
    height: 17.5px;
  }

  .therapist-part-rating {
    padding: 4px 6px;
    height: 26px;
    margin-bottom: 0px;
  }

  .therapist-part-rating-label {
    font-size: 11px;
  }

  .therapist-part-rating-stars {
    font-size: 11px;
    gap: 0.5px;
  }

  .therapist-part-rating-score {
    font-size: 11.5px;
  }

  .therapist-part-rank-badge {
    font-size: 10px;
    padding: 3px 8px;
    top: 8px;
    left: 8px;
  }
}

@media (max-width: 374.98px) {
  .therapist-part-cards-container {
    gap: 6px;
  }

  .therapist-part-card-info {
    padding: 6px 6px 8px;
  }

  .therapist-part-shop-name {
    font-size: 12px;
    color: #777;
  }

  .therapist-part-name {
    font-size: 14px;
  }

  .therapist-part-rating-stars {
    font-size: 10px;
  }
}

@media (hover: none) {
  .therapist-part-card:hover {
    transform: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  }

  .therapist-part-card:active {
    transform: scale(0.98);
  }
}

.pagination-wrapper {
  display: flex;
  justify-content: center;
  padding: 24px 0 8px;
  margin-top: 16px;
}

.pagination-list {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.pagination-item {
  margin: 0;
}

.pagination-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  color: #333;
  background: #fff;
  border: 2px solid #333;
  transition: all 0.2s ease;
}

.pagination-link:hover {
  background: #f5f5f5;
  color: #e91e63;
  border-color: #e91e63;
}

.pagination-link.active {
  background: #e91e63;
  color: #fff;
  border-color: #e91e63;
}

.pagination-link.active:hover {
  background: #d81b60;
  border-color: #d81b60;
}

.pagination-link.pagination-prev,
.pagination-link.pagination-next {
  border: none;
  background: transparent;
  color: #666;
}

.pagination-link.pagination-prev:hover,
.pagination-link.pagination-next:hover {
  background: transparent;
  color: #e91e63;
  border: none;
}

.pagination-link.pagination-prev i,
.pagination-link.pagination-next i {
  font-size: 18px;
}

@media (max-width: 575.98px) {
  .pagination-wrapper {
    padding: 20px 0 8px;
  }

  .pagination-list {
    gap: 4px;
  }

  .pagination-link {
    width: 36px;
    height: 36px;
    font-size: 13px;
  }

  .pagination-link.pagination-prev i,
  .pagination-link.pagination-next i {
    font-size: 16px;
  }
}

.custom-banner-area {
  display: grid;
  gap: 8px;
  width: 100%;
  padding: 0;
  margin: 0 0 8px 0;
  box-sizing: border-box;
}

@media (min-width: 768px) {
  .custom-banner-area {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 767px) {
  .custom-banner-area {
    grid-template-columns: 1fr;
    padding: 0;
    margin: 0 0 6px 0;
  }
  .custom-banner-area .custom-banner-item {
    grid-row: 1;
    grid-column: 1;
    animation: customBannerFade 10s infinite;
  }
  .custom-banner-area .custom-banner-item:nth-child(1) {
    animation-delay: 0s;
  }
  .custom-banner-area .custom-banner-item:nth-child(2) {
    animation-delay: -5s;
  }
}

@keyframes customBannerFade {
  0%,
  45% {
    opacity: 1;
    z-index: 2;
  }
  50%,
  95% {
    opacity: 0;
    z-index: 1;
  }
  100% {
    opacity: 1;
    z-index: 2;
  }
}

.custom-banner-item {
  display: block;
  width: 100%;
  border-radius: 0;
  overflow: hidden;
  text-decoration: none;
}

.custom-banner-placeholder {
  width: 100%;
  aspect-ratio: 600 / 150;
  background: #e9ecef;
  color: #6c757d;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0;
  transition: opacity 0.2s;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

.custom-banner-placeholder img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.custom-banner-item:hover .custom-banner-placeholder {
  opacity: 0.85;
}
