.lazy-load-section[data-section="astrologers"] {
  display: flex;
  width: 100%;
}

.live-astrologers-container {
  position: relative;
  display: flex;
  width: 100%;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  background: #fff;
  overflow: hidden;
  border: 1px solid rgba(198, 126, 40, 0.5);
  border-radius: .5rem;
  padding: 1.5rem 0;
}

.live-astrologers-container::before {
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, transparent, #e7b14d, #a42e50, #e7b14d, transparent);
  content: "";
}

.lac-heading {
  margin: 0;
  color: #a42e50;
  font-size: clamp(1.5rem, 3vw, 2rem);
  line-height: 1.15;
  text-align: center;
}

.astrologer-grid {
  display: grid;
  width: 100%;
  grid-template-columns: minmax(0, 1fr);
  gap: .5rem;
}

.astrologer-profile-card {
  display: flex;
  height: 100%;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  overflow: hidden;
  border:0;
  border-radius: 0.5rem;
  padding: .5rem;
  color: inherit;
  text-align: center;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(83, 28, 39, 0.05);
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.astrologer-profile-card:hover,
.astrologer-profile-card:focus-visible {
  transform: translateY(-0.25rem);
  border-color: rgba(231, 177, 77, 0.8);
  background: #fff;
  text-decoration: none;
  box-shadow: 0 14px 28px rgba(83, 28, 39, 0.14);
}

.astrologer-profile-card:focus-visible {
  outline-offset: 4px;
}

.astrologer-profile-card > div:last-child {
  display: flex;
  width: 100%;
  flex: 1;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.astrologer-name {
  color: #a42e50;
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.25;
}

.astrologer-info {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1.5;
}

.profile-photo-wrapper,
.profile-photo-container {
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 50%;
}

.profile-photo-wrapper {
  width: 8rem;
  height: 8rem;
  flex: 0 0 8rem;
  border: 1px dotted rgba(231, 177, 77, 0.6);
  padding: 0.25rem;
}

.profile-photo-container {
  width: 100%;
  height: 100%;
  background: #fff3d6;
}

.profile-photo-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.astrologer-expertise-row {
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.tta-btn-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

a.btn-view-all-astrologers {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  margin: 0.5rem 0;
  border-radius: 999px;
  background: #a42e50;
  padding: 0.75rem 1.25rem;
  color: #fff;
  font-weight: 600;
  text-decoration: none;
}

a.btn-view-all-astrologers:hover,
a.btn-view-all-astrologers:focus-visible {
  background: #641f35;
}

@media (min-width: 48rem) {
  .live-astrologers-container {
    padding: 2rem;
  }

  .astrologer-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (prefers-reduced-motion: reduce) {
  .astrologer-profile-card {
    transition: none;
  }

  .astrologer-profile-card:hover,
  .astrologer-profile-card:focus-visible {
    transform: none;
  }
}
