.cp-spec-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill,minmax(150px,1fr));
  gap: 3rem;
  margin-bottom: 2rem;
  margin-top: 1.5rem;
}

.cp-spec-tile {
  display: flex;
  flex-direction: column;
  text-align: center;
  justify-content: center;
  align-items: center;
  padding: 1rem;
  background: #fff;
  color: #fff;
  border-radius: 8px;
  text-decoration: none;
  cursor: pointer;
  transition: background .3s;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: box-shadow 0.3s ease;
}
.cp-spec-title {color:#002F87; font-size: 16px;}

.cp-spec-tile.active .cp-spec-title {color:#fff; font-size: 16px;}

.cp-spec-tile:hover .cp-spec-title {color:#fff; font-size: 16px;}

.cp-spec-tile.active {
  background: #002F87;
  color: #fff;
}

.cp-spec-tile:hover {
  background: #002F87;
  color: #fff;
}

.cp-spec-icon {
  display: block;
  margin: 0 auto .5rem;
  width: 100px;
  height: 100px;
  object-fit: contain;
}

.cp-doctor-grid {
  /* display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); */
  display: flex;
  flex-wrap: wrap;
  align-items: stretch; /* each card can be different height without stretching neighbors */
  gap: 30px;
  margin-bottom: 5rem;
  margin-top: 2rem;
}



.cp-doctor-card-ui {
  background: #fff;
  border-radius: 0.75rem;
  box-shadow:  0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  padding: 24px;
  text-align: center;
}
.cp-doctor-card-ui:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.cp-doctor-card-ui h2 {
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.75rem;
}

.cp-doc-avatar {
  width: 7rem;
  height: 7rem;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2DA7DF, #002F87);
  color: #fff;
  font-weight: 600;
  font-size: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cp-doc-role {
  color: #002F87;
  font-weight: 500;
  margin: 4px 0;
}
.cp-icon {
  color: #002F87;
  width: 1.25rem;
  height: 1.25rem;
}

.cp-badge, .cp-badge-light {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 14px;
  margin: 5px 4px;
}

.cp-badge {
  background: #dbeafe;
  color: #002F87;
  font-weight: 500;
}

.cp-badge-light {
  background: #f1f5f9;
  color: #334155;
}

.cp-subtitle {
  margin-top: 10px;
  font-size: 16px;
  color: #1f2937;

}

.cp-row {
  margin: 6px 0;
  font-size: 16px;
  color: #1f2937;
  display: flex;
  gap: 5px;
  align-items: start;
}

.cp-row > span {
  width: 90%;
  line-height: 20px;
}

.cp-btn {
  display: inline-block;
  background: #002F87;
  color: #fff;
  padding: 12px 20px;
  border-radius: 8px;
  margin-top: 16px;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 3px 6px rgba(0,0,0,0.1);
  width: 100%;
}
.cp-btn:hover, .cp-btn:active {
  transform: scale(1.03);
  color:#fff;
}
.cp-doc-thumb {
  width: 120px;
    height: 120px;
    margin: 0 auto 16px;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    padding: 10px;
    background-color: #002F87;
}

.cp-doc-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.csm-breadcrumbs{    
    margin-top: 20px;
    display: flex;
    gap: 2px;
    align-items: center;
    color: #002F87;
}
.csm-breadcrumbs a, .csm-breadcrumbs span, .doctor-spec-term{font-size:14px;font-weight:700;text-transform:uppercase;color:#002F87;text-decoration:none}

.cp-doctors-container { background-color: #002F87; margin: 0 auto; text-align: center; padding: 50px 10px; }
.cp-heading { font-size: 36px; color: #fff; padding: 1rem; }
.cp-subheading { font-size: 16px; margin-bottom: 2rem; color: #fff; margin-top: 0rem; }
.cp-doctors-container-filters {padding-top: 2rem; padding-bottom: 4rem;}
.cp-doctor-filter-title { color: #002F87; font-weight: 600; font-size:1.5rem; }
.cp-doctors-page {padding: 10px 0;}

.cp-doctor-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill,minmax(350px,1fr));
  gap: 1.5rem;
}

.cp-doctor-card-inner {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,.05);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .2s;
  align-items: flex-start;
  justify-content: flex-start;
}
.cp-doctor-card:hover {
  transform: translateY(-4px);
}

/* Image area */
.cp-doc-image {
  position: relative;
  width: 100%;
  padding-top: 60%; /* 4:3 ratio */
  background: #f0f0f0;
}
.cp-doc-image img,
.cp-doc-image .wp-post-image {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.cp-doc-placeholder {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: #d8d9dc;
}

/* Header badge + label */
.cp-doc-header {
  display: flex;
  align-items: center;
  padding: 0.75rem 1rem 0;
  min-height: 45px;
}
.cp-spec-badge {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: #e6f7f0;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 0.5rem;
}
.cp-spec-icon-sm {
  width: 20px; height: 20px;
}
.cp-spec-label {
  font-size: 0.875rem;
  color: #6b7c93;
}

/* Name & excerpt */
.cp-doc-name {
  margin: 0.5rem 1rem 0rem 1rem;
  font-size: 1.25rem;
  color: #002F87;
  
}
.cp-doc-subspecialty {
  margin: 0rem 1rem;
  color: #2DA7DF;
}
.cp-doc-name-subspecialty {
  min-height: 70px;
}
.cp-doc-excerpt {
  flex: 1;
  margin: 0 1rem 1rem;
  font-size: 0.95rem;
  color: #4a4a4a;
}

/* Schedule line */
.cp-doc-schedule {
  display: flex;
  align-items: center;
  margin: 0 1rem 1rem;
  font-size: 0.9rem;
  color: #6b7c93;
}
.cp-doc-schedule .cp-icon-clock {
  width: 16px; height: 16px;
  margin-right: 0.5rem;
  fill: #6b7c93;
}

/* Buttons */
.cp-doc-actions {
  display: flex;
  gap: 0.5rem;
  padding: 0 1rem 1rem;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}
.button.cp-btn-primary {
  background: #002F87;
  color: #fff;
  border-radius: 4px;
  padding: 0.5rem 1rem;
  text-decoration: none;
}
.button.cp-btn-outline {
  background: transparent;
  border: 1px solid #002F87;
  color: #002F87;
  border-radius: 4px;
  padding: 0.5rem 1rem;
  text-decoration: none;
}
.button.cp-btn-primary:hover,
.button.cp-btn-outline:hover {
  opacity: .9;
}
.cp-search {
  min-width: 300px;
}
.cp-doctors-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  align-items: center;
  justify-content: space-between;
}
.cp-search {
  flex: 2;
  padding: 0.5rem 1rem;
  border: 1px solid #ccc;
  border-radius: 4px;
}
.cp-filter-branch,
.cp-filter-term {
  flex: 1;
  padding: 0.5rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  min-width: 250px;
}
.cp-clear-filters {
  background: #ddd;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  cursor: pointer;
}
.cp-doctor-info {
    margin: .5rem 1rem 1rem 1rem;
    min-height: 110px;
    width: 92%;

}
/* Pagination wrapper */
.cp-pagination {
  text-align: center;
  margin-top: 40px;
}

/* Pagination buttons */
.cp-pagination .cp-page,
.cp-pagination .cp-ellipsis {
  display: inline-block;
  padding: 8px 14px;
  margin: 0 6px;
  border: 1px solid #ddd;
  border-radius: 8px;
  background-color: #fff;
  color: #002F87;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.3s ease;
}

/* Current page */
.cp-pagination .cp-page.active {
  background-color: #002F87;
  color: #fff;
  border-color: #002F87;
}

/* Dots / ellipsis */
.cp-pagination .cp-ellipsis {
  cursor: default;
  color: #999;
  border: none;
  background: transparent;
  padding: 8px;
}

/* Hover effect */
.cp-pagination .cp-page:hover:not(.active) {
  background-color: #eaf2ff;
  border-color: #002F87;
  color: #002F87;
}


.cp-doc-actions .cp-see-toggle {
  background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    text-decoration: underline;
    font-size: 1rem;
    color: #002F87;
    font-weight: 500;
}
.cp-doc-actions .cp-see-toggle:hover {
    color: #2DA7DF;
    box-shadow: none !important;
}
.cp-doc-actions .cp-see-toggle:active {
   box-shadow: none !important;
}

.cp-other-services { margin-top: 8px; }
.cp-other-services .cp-subtitle { font-weight: 500; margin-bottom: 6px; line-height: 20px; }
.cp-other-list { margin: 0; padding-left: 25px; }
.cp-other-list li { margin: 3px 0; color: #1f2937;  }
.cp-other-list {
  list-style: none;

}
.cp-doctor-schedule {
  display: flex;
  flex-direction: column;
  width: 90%;
  /* margin-left: 5px; */
}

.cp-sched-line {
  display: block;
  line-height: 1.4;
  font-size: 15px;
}
.schedule-2 {
  margin-top: 1rem;
}




@media (max-width: 800px) {
  .cp-filter-branch, .cp-filter-term {
      width: 100%;
      margin-bottom: 1rem;
  }
  .cp-doctors-filters-dropdown {
    width: 100%;
  }
  .cp-doctors-filters-search {
    width: 100%;
  }
  .cp-search {
    width: 100%;
  }
  .cp-clear-filters  {
    width: 100%;
  }
}

