.block--dentist-cards {
  --card-count: 3;
}

@media (max-width: 991.98px) {
  .block--dentist-cards {
    --card-count: 2 !important;
  }
}
@media (max-width: 767.98px) {
  .block--dentist-cards {
    --card-count: 1 !important;
  }
}
.block--dentist-cards .dentist-cards-wrapper {
  width: 100%;
}

.block--dentist-cards .dentist-cards-wrapper .filter-bar .dropdown-toggle {
  position: relative;
  width: 100%;
  min-width: 250px;
  padding: 0.75rem;
  background-color: #ffffff;
  border: 1px solid #0067af;
  border-radius: 0;
  font-size: 1rem;
  line-height: inherit;
  text-align: left;
}

.block--dentist-cards .dentist-cards-wrapper .filter-bar .dropdown-toggle::after {
  content: url('data:image/svg+xml; utf8, <svg xmlns="http://www.w3.org/2000/svg" width="15" height="14" viewBox="0 0 15 14" fill="none"><path d="M13.5 4L7.5 10L1.5 4" stroke="%23071C2C" stroke-width="2"/></svg>');
  position: absolute;
  right: 0.75rem;
  top: 50%;
  border: none;
  transform: translateY(-50%);
}

.block--dentist-cards .dentist-cards-wrapper .filter-bar .dropdown-toggle[aria-expanded=true]::after {
  transform: translateY(-50%) rotate(180deg);
}

.block--dentist-cards .dentist-cards-wrapper .filter-bar .dropdown-menu {
  width: 100%;
  margin-top: 0;
  border: 1px solid #0067af;
  border-top: none;
  border-radius: 0;
}

.block--dentist-cards .dentist-cards-wrapper .filter-bar input {
  width: 100%;
  padding: 0.75rem;
  background-color: #ffffff;
  border: 1px solid #0067af;
  border-radius: 0;
  color: inherit;
  text-align: left;
  line-height: inherit;
}

.block--dentist-cards .dentist-cards-wrapper .btn-filter {
  display: inline-flex;
  gap: 0;
  align-items: center;
  min-width: 0px;
  margin: 0.5rem 0.5rem 0 0;
  padding: 0.45rem 0.75rem;
  border-radius: 50px;
  font-size: 0.9rem;
  background-color: #0067af;
  color: #ffffff;
  align-items: flex-start;
}

.block--dentist-cards .dentist-cards-wrapper .btn-filter::after {
  content: url('data:image/svg+xml; utf8, <svg xmlns="http://www.w3.org/2000/svg" height="12" width="12" viewBox="0 0 384 512"><path d="M342.6 150.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L192 210.7 86.6 105.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L146.7 256 41.4 361.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0L192 301.3 297.4 406.6c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L237.3 256 342.6 150.6z" fill="white"/></svg>');
  display: block;
  height: 1rem;
  width: 1rem;
  margin-left: 0.5rem;
  padding: 2px;
}

.block--dentist-cards .dentist-cards-wrapper .filter-reset::after {
  display: none;
}

.block--dentist-cards .dentist-cards-grid {
  display: grid;
  grid-template-columns: repeat(var(--card-count), 1fr);
  grid-auto-flow: row;
  gap: 2rem;
}

.block--dentist-cards .dentist-cards-grid .no-results {
  grid-column-start: 1;
  grid-column-end: 4;
}

.block--dentist-cards .dentist-card {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  padding: 2px;
  transition: all 0.3s ease;
  background: #ffffff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  height: 100%;
  flex-basis: calc((100% - (var(--card-count) - 1) * (var(--wp--style--block-gap) + 20px)) / var(--card-count));
  display: flex;
  flex-direction: column;
}

.block--dentist-cards .dentist-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.block--dentist-cards .dentist-card:hover .dentist-card-hover-content {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
}

.block--dentist-cards .dentist-card .dentist-card-inner {
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.block--dentist-cards .dentist-card .dentist-card-image {
  position: relative;
  height: 250px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.block--dentist-cards .dentist-card .dentist-card-image .dentist-card-img {
  width: 100%;
  height: 100%;
  -o-object-position: center;
     object-position: center;
  transition: transform 0.3s ease;
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
}

.block--dentist-cards .dentist-card .dentist-card-image .dentist-card-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  color: rgba(255, 255, 255, 0.7);
}

.block--dentist-cards .dentist-card .dentist-card-image .dentist-card-placeholder svg {
  width: 60px;
  height: 60px;
}

.block--dentist-cards .dentist-card .dentist-card-content {
  position: relative;
  padding: 1.5rem;
  border-radius: 8px;
  background: #ffffff;
  flex: 1;
  display: flex;
  flex-direction: column;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  z-index: 2;
  height: 100%;
  overflow: hidden;
}

.block--dentist-cards .dentist-card .dentist-card-meta {
  margin-bottom: 0.75rem;
}

.block--dentist-cards .dentist-card .dentist-card-meta .dentist-location,
.block--dentist-cards .dentist-card .dentist-card-meta .dentist-specialty {
  font-size: 14px;
  color: #666666;
  font-weight: 300;
  margin-bottom: 0;
  line-height: 1.2;
}

.block--dentist-cards .dentist-card .dentist-card-meta .dentist-specialty {
  margin-top: 0.5rem;
}

.block--dentist-cards .dentist-card .dentist-card-meta .dentist-location {
  margin-top: 0.25rem;
}

.block--dentist-cards .dentist-card .dentist-card-title {
  font-size: 2rem;
  font-weight: 600;
  line-height: 1.3;
  margin: 0;
  color: #0067af;
}

.block--dentist-cards .dentist-card .dentist-card-title .dentist-card-link {
  text-decoration: none;
  color: inherit;
  transition: color 0.3s ease;
}

.block--dentist-cards .dentist-card .dentist-card-title .dentist-card-link:hover {
  color: #41c0c0;
}

.block--dentist-cards .dentist-card .dentist-card-title .dentist-card-link::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
}

.block--dentist-cards .dentist-card .dentist-card-hover-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: #ffffff;
  padding: 1.5rem;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  opacity: 0;
  visibility: hidden;
  transform: translateY(100%);
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  z-index: 3;
  height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
}

.block--dentist-cards .dentist-card .dentist-card-hover-content::-webkit-scrollbar {
  width: 6px;
}

.block--dentist-cards .dentist-card .dentist-card-hover-content::-webkit-scrollbar-track {
  background: rgba(151, 152, 154, 0.1);
  border-radius: 3px;
}

.block--dentist-cards .dentist-card .dentist-card-hover-content::-webkit-scrollbar-thumb {
  background: rgba(0, 103, 175, 0.3);
  border-radius: 3px;
}

.block--dentist-cards .dentist-card .dentist-card-hover-content::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 103, 175, 0.5);
}

.block--dentist-cards .dentist-card .dentist-card-hover-content .dentist-card-meta {
  margin-bottom: 0.75rem;
  flex-shrink: 0;
}

.block--dentist-cards .dentist-card .dentist-card-hover-content .dentist-card-excerpt {
  font-size: 1;
  line-height: 1.5;
  color: #97989a;
  margin: 1.5rem 0;
  flex-shrink: 0;
}

.block--dentist-cards .dentist-card .dentist-card-hover-content .dentist-card-title {
  flex-shrink: 0;
}

.block--dentist-cards .dentist-card .dentist-card-hover-content .btn {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  position: relative;
  z-index: 4;
  flex-shrink: 0;
  margin-top: auto;
}

.block--dentist-cards .dentist-card .dentist-card-hover-content .btn svg {
  transition: transform 0.3s ease;
}

.block--dentist-cards .dentist-card .dentist-card-hover-content .btn:hover svg {
  transform: translateX(4px);
}

.block--dentist-cards .dentist-card-load-more {
  display: flex;
  justify-content: center;
  margin-top: 2rem;
}

.block--dentist-cards .dentist-card-load-more .load-more-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 2rem;
  border-radius: 50px;
  transition: all 0.3s ease;
}

.block--dentist-cards .dentist-card-load-more .load-more-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.block--dentist-cards .dentist-card-load-more .load-more-btn .load-more-spinner {
  animation: spin 1s linear infinite;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}
.block--dentist-cards .dentist-card-empty {
  text-align: center;
  padding: 3rem 1rem;
  color: #97989a;
}

.block--dentist-cards .dentist-card-empty p {
  font-size: 1.1rem;
  margin: 0;
}

.block--dentist-cards.is-style-alternating-bg-colors .dentist-card {
  border-radius: 8px;
  box-shadow: none;
}

.block--dentist-cards.is-style-alternating-bg-colors .dentist-card.bg-lime-green {
  background-color: #d65a38;
}

.block--dentist-cards.is-style-alternating-bg-colors .dentist-card.bg-light-blue {
  background-color: rgba(0, 103, 175, 0.2);
}

.block--dentist-cards.is-style-alternating-bg-colors .dentist-card.bg-light-aqua {
  background-color: #41c0c0;
}

.block--dentist-cards.is-style-alternating-bg-colors .dentist-card:not(.bg-lime-green):not(.bg-light-blue):not(.bg-light-aqua):nth-child(3n+1) {
  background-color: #d65a38;
}

.block--dentist-cards.is-style-alternating-bg-colors .dentist-card:not(.bg-lime-green):not(.bg-light-blue):not(.bg-light-aqua):nth-child(3n+2) {
  background-color: rgba(0, 103, 175, 0.2);
}

.block--dentist-cards.is-style-alternating-bg-colors .dentist-card:not(.bg-lime-green):not(.bg-light-blue):not(.bg-light-aqua):nth-child(3n+3) {
  background-color: #41c0c0;
}

.editor-styles-wrapper .wp-block .wp-block-lvl-dentist-cards {
  flex-basis: calc((100% - (var(--card-count) - 1) * (var(--wp--style--block-gap) + 20px)) / var(--card-count));
  margin-block-start: 0 !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  padding: 0 !important;
  background-color: transparent !important;
  box-shadow: none !important;
  border: none !important;
}

.editor-styles-wrapper .wp-block .block--dentist-cards {
  width: 100% !important;
  height: 100% !important;
  overflow: hidden;
}

.editor-styles-wrapper .wp-block .block--dentist-cards .dentist-cards-grid {
  display: flex !important;
  flex-wrap: wrap;
  gap: calc(var(--wp--style--block-gap) + 20px);
}

.editor-styles-wrapper .wp-block .block--dentist-cards .dentist-card {
  flex-basis: calc((100% - (var(--card-count) - 1) * (var(--wp--style--block-gap) + 20px)) / var(--card-count));
  margin-block-start: 0 !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  padding: 0 !important;
  background-color: transparent !important;
  box-shadow: none !important;
  border: none !important;
}

.editor-styles-wrapper .wp-block .block--dentist-cards .dentist-card:hover {
  transform: none;
}

.editor-styles-wrapper .wp-block .block--dentist-cards .dentist-card:hover .dentist-card-content {
  transform: none;
  background-color: transparent;
}

.editor-styles-wrapper .wp-block .block--dentist-cards .dentist-card:hover .dentist-card-hover-content {
  opacity: 0;
  visibility: hidden;
  background-color: transparent;
  transform: translateY(100%);
}

.editor-styles-wrapper .wp-block .block--dentist-cards .dentist-card-inner {
  display: flex;
  flex-direction: column;
  height: 100%;
  width: 100% !important;
  overflow: hidden;
}

.editor-styles-wrapper .wp-block .block--dentist-cards .dentist-card-inner > :first-child {
  margin-block-start: 0;
}

.editor-styles-wrapper .wp-block .block--dentist-cards .dentist-card-inner > :last-child {
  margin-block-end: 0;
}

.editor-styles-wrapper .wp-block .block--dentist-cards .dentist-card-inner > * {
  margin-block-start: var(--wp--style--block-gap);
  margin-block-end: 0;
}

.editor-styles-wrapper .wp-block .block--dentist-cards .dentist-card-inner .dentist-card-content {
  margin-top: auto;
}

.editor-styles-wrapper .wp-block .block--dentist-cards.is-style-alternating-bg-colors .dentist-card {
  border-radius: 8px;
  box-shadow: none;
}

.editor-styles-wrapper .wp-block .block--dentist-cards.is-style-alternating-bg-colors .dentist-card[data-bg-color=lime-green] {
  background-color: #d65a38;
}

.editor-styles-wrapper .wp-block .block--dentist-cards.is-style-alternating-bg-colors .dentist-card[data-bg-color=light-blue] {
  background-color: rgba(0, 103, 175, 0.2);
}

.editor-styles-wrapper .wp-block .block--dentist-cards.is-style-alternating-bg-colors .dentist-card[data-bg-color=light-aqua] {
  background-color: #41c0c0;
}

.editor-styles-wrapper .wp-block .block--dentist-cards.is-style-alternating-bg-colors .dentist-card:not([data-bg-color]):nth-child(3n+1) {
  background-color: #d65a38;
}

.editor-styles-wrapper .wp-block .block--dentist-cards.is-style-alternating-bg-colors .dentist-card:not([data-bg-color]):nth-child(3n+2) {
  background-color: rgba(0, 103, 175, 0.2);
}

.editor-styles-wrapper .wp-block .block--dentist-cards.is-style-alternating-bg-colors .dentist-card:not([data-bg-color]):nth-child(3n+3) {
  background-color: #41c0c0;
}

.editor-styles-wrapper .wp-block .block--dentist-cards.is-style-alternating-bg-colors .dentist-card .dentist-card-image.bg-lime-green {
  background-color: #d65a38;
}

.editor-styles-wrapper .wp-block .block--dentist-cards.is-style-alternating-bg-colors .dentist-card .dentist-card-image.bg-light-blue {
  background-color: rgba(0, 103, 175, 0.2);
}

.editor-styles-wrapper .wp-block .block--dentist-cards.is-style-alternating-bg-colors .dentist-card .dentist-card-image.bg-light-aqua {
  background-color: #41c0c0;
}

.editor-styles-wrapper .dentist-cards-grid {
  align-items: stretch;
}

.editor-styles-wrapper .dentist-card .dentist-card-content {
  min-height: 120px;
}

.editor-styles-wrapper .dentist-card .dentist-card-content .dentist-card-title {
  min-height: 2.6rem;
  display: flex;
  align-items: flex-start;
}

.editor-styles-wrapper .dentist-card .dentist-card-content .dentist-card-meta {
  min-height: 3rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.editor-styles-wrapper .dentist-card .dentist-card-content .dentist-card-meta .dentist-specialty,
.editor-styles-wrapper .dentist-card .dentist-card-content .dentist-card-meta .dentist-location {
  min-height: 1.2rem;
}

.editor-styles-wrapper .dentist-card .dentist-card-hover-content .dentist-card-title {
  min-height: 2.6rem;
}

.editor-styles-wrapper .dentist-card .dentist-card-hover-content .dentist-card-meta {
  min-height: 3rem;
}

.editor-styles-wrapper .dentist-card .dentist-card-hover-content .dentist-card-excerpt {
  min-height: 3rem;
  overflow: hidden;
  text-overflow: ellipsis;
}
