.posts-list {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin: 30px auto;
}

.custom-post {
  background-color: #fff;
  border: 1px solid #ddd;
  border-radius: 10px;
  margin: 15px 30px;
  padding: 15px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  position: relative;
}

.custom-post a {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.custom-post img {
  max-width: 100%;
  border-radius: 5px;
}

.custom-post-title {
  font-size: 1.15em;
  margin: 10px 0;
}

.custom-post-excerpt {
  color: #555;
  font-size: 1em;
}

/* Service related doctors list */
.isf-cln-doctors-list {
  --isf-cln-teal: #12b5b0;
  --isf-cln-teal-dark: #0e9a96;
  --isf-cln-green: #2fbf71;
  --isf-cln-text: #1f2937;
  --isf-cln-muted: #6b7280;
  --isf-cln-border: #e5e7eb;
  --isf-cln-radius: 16px;

  color: var(--isf-cln-text);
  max-width: 1100px;
  margin: 0 auto;
  padding: 8px 16px 96px;
  font-family: Vazirmatn, "IRANSansX", Tahoma, sans-serif;
}

.isf-cln-doctors-list__header {
  margin: 8px 0 20px;
}

.isf-cln-doctors-list__title {
  margin: 0 0 6px;
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1.4;
}

.isf-cln-doctors-list__subtitle {
  margin: 0;
  color: var(--isf-cln-muted);
  font-size: 0.95rem;
}

.isf-cln-doctors-list__empty {
  text-align: center;
  color: var(--isf-cln-muted);
  padding: 32px 12px;
}

.isf-cln-doctors-list__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.isf-cln-doctor-card {
  position: relative;
  background: #fff;
  border: 1px solid var(--isf-cln-border);
  border-radius: var(--isf-cln-radius);
  padding: 16px;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
}

.isf-cln-doctor-card--featured {
  border-color: var(--isf-cln-teal);
  border-width: 1.5px;
  padding-top: 28px;
}

.isf-cln-doctor-card__badge {
  position: absolute;
  top: -1px;
  left: 16px;
  background: var(--isf-cln-green);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.4;
  padding: 4px 10px;
  border-radius: 0 0 10px 10px;
}

.isf-cln-doctor-card__body {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.isf-cln-doctor-card__photo {
  flex: 0 0 92px;
}

.isf-cln-doctor-card__photo img {
  width: 92px;
  height: 92px;
  object-fit: cover;
  border-radius: 12px;
  display: block;
  background: #f3f4f6;
}

.isf-cln-doctor-card__info {
  flex: 1;
  min-width: 0;
}

.isf-cln-doctor-card__name {
  margin: 0 0 4px;
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.45;
}

.isf-cln-doctor-card__specialty,
.isf-cln-doctor-card__city,
.isf-cln-doctor-card__medical {
  margin: 0 0 4px;
  font-size: 0.88rem;
  color: var(--isf-cln-muted);
  line-height: 1.5;
}

.isf-cln-doctor-card__city {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.isf-cln-doctor-card__icon {
  display: inline-flex;
  color: var(--isf-cln-teal);
}

.isf-cln-doctor-card__actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 14px;
}

.isf-cln-doctor-card__actions--split {
  flex-direction: row;
}

.isf-cln-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 44px;
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
  border: 1.5px solid transparent;
  cursor: pointer;
  box-sizing: border-box;
  flex: 1;
  transition:
    background-color 0.15s ease,
    border-color 0.15s ease,
    color 0.15s ease;
}

.isf-cln-btn__icon {
  display: inline-flex;
}

.isf-cln-btn--primary {
  background: var(--isf-cln-teal);
  color: #fff;
  border-color: var(--isf-cln-teal);
}

.isf-cln-btn--primary:hover {
  background: var(--isf-cln-teal-dark);
  border-color: var(--isf-cln-teal-dark);
  color: #fff;
}

.isf-cln-btn--outline {
  background: #fff;
  color: var(--isf-cln-teal);
  border-color: var(--isf-cln-teal);
}

.isf-cln-btn--outline:hover {
  background: rgba(18, 181, 176, 0.08);
}

.isf-cln-doctors-list__cta-wrap {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 40;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px));
  background: linear-gradient(
    to top,
    rgba(255, 255, 255, 0.96),
    rgba(255, 255, 255, 0.88)
  );
  box-shadow: 0 -4px 16px rgba(16, 24, 40, 0.06);
}

.isf-cln-doctors-list__cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
  min-height: 52px;
  border-radius: 14px;
  background: var(--isf-cln-teal);
  color: #fff;
  font-size: 1rem;
  font-weight: 800;
  text-decoration: none;
}

.isf-cln-doctors-list__cta:hover {
  background: var(--isf-cln-teal-dark);
  color: #fff;
}

body.isf-cln-modal-open {
  overflow: hidden;
}

.isf-cln-video-modal[hidden] {
  display: none !important;
}

.isf-cln-video-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.isf-cln-video-modal__backdrop {
  position: absolute;
  inset: 0;
  background: transparent;
}

.isf-cln-video-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(100%, 520px);
  background: #fff;
  border-radius: 18px;
  padding: 16px;
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.2);
}

.isf-cln-video-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.isf-cln-video-modal__header h3 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 800;
}

.isf-cln-video-modal__close {
  border: 0;
  background: #f3f4f6;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  color: #374151;
}

.isf-cln-video-modal__media {
  position: relative;
  aspect-ratio: 16 / 10;
  background: #0f172a;
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.isf-cln-video-modal__media iframe,
.isf-cln-video-modal__media video {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  background: #000;
}

.isf-cln-video-modal__caption {
  margin-top: 12px;
  text-align: center;
}

.isf-cln-video-modal__caption-title {
  margin: 0 0 4px;
  font-weight: 700;
}

.isf-cln-video-modal__caption-hint {
  margin: 0;
  color: var(--isf-cln-muted);
  font-size: 0.85rem;
}

/* doctor-profile styles */

.doctor-profile {
  margin: 0 0 32px;
  color: #263646;
}

.doctor-profile__hero,
.doctor-profile__section {
  background: #fff;
  border: 1px solid #e3ecef;
  border-radius: 18px;
}

.doctor-profile__hero {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 28px;
  padding: 24px;
  margin-bottom: 24px;
  align-items: start;
}

.doctor-profile__card {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  background: linear-gradient(180deg, #263646 0%, #1f2f3d 100%);
  color: #fff;
}

.doctor-profile__card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      circle at top left,
      rgba(0, 175, 206, 0.18),
      transparent 35%
    ),
    radial-gradient(
      circle at bottom right,
      rgba(27, 209, 83, 0.15),
      transparent 35%
    );
  pointer-events: none;
}

.doctor-profile__image {
  position: relative;
  z-index: 1;
  width: 140px;
  margin: 24px auto 16px;
}

.doctor-profile__image img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 50%;
  border: 4px solid rgba(255, 255, 255, 0.92);
}

.doctor-profile__card-content {
  position: relative;
  z-index: 1;
  padding: 0 20px 22px;
  text-align: center;
}

.doctor-profile__name {
  margin: 0 0 8px;
  color: #fff;
  font-size: 24px;
  line-height: 1.6;
}

.doctor-profile__specialty {
  margin: 0 0 18px;
  color: #c9eef5;
  font-size: 14px;
  line-height: 1.9;
}

.doctor-profile__booking {
  margin: 0;
}

.doctor-profile__button {
  display: inline-block;
  min-width: 150px;
  padding: 11px 18px;
  border-radius: 10px;
  background: #1bd153;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  line-height: 1.6;
}

.doctor-profile__button:hover {
  background: #00afce;
  color: #fff;
}

.doctor-profile__intro {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  padding: 8px 0;
}

.doctor-profile__intro-header {
  margin-bottom: 20px;
}

.doctor-profile__eyebrow {
  margin: 0 0 8px;
  color: #00afce;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.6;
}

.doctor-profile__title {
  margin: 0 0 8px;
  color: #263646;
  font-size: 30px;
  line-height: 1.5;
}

.doctor-profile__subtitle {
  margin: 0;
  color: #5d707c;
  font-size: 15px;
  line-height: 1.9;
}

.doctor-profile__facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.doctor-profile__fact {
  padding: 16px 18px;
  border: 1px solid #e6eef1;
  border-radius: 14px;
  background: #f9fcfc;
}

.doctor-profile__fact-label {
  display: block;
  margin-bottom: 6px;
  color: #6d7f89;
  font-size: 13px;
  line-height: 1.7;
}

.doctor-profile__fact-value {
  display: block;
  color: #263646;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.9;
}

.doctor-profile__fact-value a {
  color: #1bd153;
  text-decoration: none;
}

.doctor-profile__fact-value a:hover {
  color: #00afce;
}

.doctor-profile__section {
  padding: 24px;
  margin-bottom: 20px;
}

.doctor-profile__section-head {
  display: flex;
  align-items: center;
  margin-bottom: 18px;
}

.doctor-profile__section-head h3 {
  position: relative;
  margin: 0;
  padding-right: 14px;
  color: #263646;
  font-size: 22px;
  line-height: 1.6;
}

.doctor-profile__section-head h3::before {
  content: "";
  position: absolute;
  right: 0;
  top: 8px;
  width: 5px;
  height: 24px;
  border-radius: 10px;
  background: linear-gradient(180deg, #00afce 0%, #1bd153 100%);
}

.doctor-profile__description-content {
  color: #4f616b;
  font-size: 15px;
  line-height: 2.15;
}

.doctor-profile__description-content p {
  margin: 0 0 14px;
}

.doctor-profile__description-content p:last-child {
  margin-bottom: 0;
}

.doctor-profile__description-content ul,
.doctor-profile__description-content ol {
  margin: 0 0 14px;
  padding-right: 20px;
}

.doctor-profile__description-content li {
  margin-bottom: 8px;
}

.doctor-services-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.doctor-services-list li {
  margin: 0;
}

.doctor-services-list a {
  display: block;
  position: relative;
  padding: 14px 16px 14px 42px;
  border: 1px solid #dce9ed;
  border-radius: 14px;
  background: #fbfdfd;
  color: #263646;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.9;
  text-decoration: none;
}

.doctor-services-list a::before {
  content: "←";
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: #00afce;
  font-size: 16px;
  font-weight: 700;
}

.doctor-services-list a:hover {
  border-color: #00afce;
  background: #f4fbfc;
  color: #00afce;
}

/* doctor-profile styles */

/* Responsive */
@media screen and (max-width: 576px) {
  .posts-list {
    grid-template-columns: repeat(1, 1fr);
    gap: 10px;
    margin: 15px auto;
  }
}

@media screen and (max-width: 768px) {
  .doctor-profile__hero {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 18px;
  }

  .doctor-profile__card {
    max-width: 320px;
    margin: 0 auto;
    width: 100%;
  }

  .doctor-profile__image {
    width: 120px;
  }

  .doctor-profile__title {
    font-size: 24px;
  }

  .doctor-profile__facts,
  .doctor-services-list {
    grid-template-columns: 1fr;
  }

  .doctor-profile__section {
    padding: 18px;
  }

  .doctor-profile__section-head h3 {
    font-size: 19px;
  }

  .posts-list {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin: 20px auto;
  }

  .isf-cln-doctors-list {
    padding: 16px 24px 112px;
  }

  .isf-cln-doctors-list__title {
    font-size: 1.85rem;
  }

  .isf-cln-doctors-list__subtitle {
    font-size: 1rem;
  }

  .isf-cln-doctors-list__grid {
    grid-template-columns: repeat(2, maxmax(0, 1fr));
    gap: 20px;
  }

  .isf-cln-doctor-card {
    padding: 20px;
  }

  .isf-cln-doctor-card--featured {
    padding-top: 32px;
  }

  .isf-cln-doctor-card__photo {
    flex-basis: 112px;
  }

  .isf-cln-doctor-card__photo img {
    width: 112px;
    height: 112px;
  }

  .isf-cln-doctor-card__name {
    font-size: 1.15rem;
  }

  .isf-cln-doctors-list__cta-wrap {
    padding-inline: 24px;
  }
}

@media screen and (min-width: 1100px) {
  .isf-cln-doctors-list {
    padding-bottom: 40px;
  }

  .isf-cln-doctors-list__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
  }

  .isf-cln-doctors-list__cta-wrap {
    position: static;
    margin-top: 28px;
    padding: 0;
    background: transparent;
    box-shadow: none;
  }

  .isf-cln-doctors-list__cta {
    max-width: 320px;
    margin-inline: auto;
  }

  .isf-cln-video-modal__dialog {
    width: min(100%, 640px);
    padding: 20px;
  }
}
