/* ====================================================================== *
 * File: specialist_comments.css
 * Location: static/css/specialist_comments.css
 * Description: Responsive swipeable specialist testimonial carousel shared by landing and student pages.
 * Version: 1.1.0
 * Last Modified: Sat Aug 08 2026 - 22:32
 * Dependencies: templates/includes/specialist_comments.html
 * ====================================================================== */

/* -------------------------------------------------------------------------- *
 * 1. Section shell
 * -------------------------------------------------------------------------- */

.specialist-comments-section {
  position: relative;
  width: 100%;
  margin-top: 54px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 30px;
  background:
    radial-gradient(circle at 12% 12%, rgba(78, 126, 226, 0.18), transparent 29%),
    radial-gradient(circle at 88% 84%, rgba(226, 184, 86, 0.08), transparent 28%),
    linear-gradient(135deg, #06142e 0%, #0a2851 54%, #10183b 100%);
  box-shadow: 0 22px 56px rgba(2, 10, 28, 0.14);
  color: #f7faff;
}

/* - - - 1.1. Landing testimonials flow directly out of the first viewport - - - */
.landing-page + .specialist-comments-section {
  margin-top: -1px;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background:
    radial-gradient(circle at 18% 8%, rgba(63, 120, 232, 0.12), transparent 31%),
    radial-gradient(circle at 86% 78%, rgba(117, 81, 201, 0.12), transparent 31%),
    linear-gradient(135deg, #06152f 0%, #09244b 52%, #10183d 100%);
  box-shadow: none;
}

.landing-page + .specialist-comments-section::before {
  content: "";
  position: absolute;
  z-index: 0;
  top: -110px;
  right: 0;
  left: 0;
  height: 150px;
  background: linear-gradient(
    180deg,
    rgba(6, 21, 47, 0) 0%,
    rgba(7, 28, 59, 0.46) 48%,
    rgba(8, 31, 65, 0.92) 100%
  );
  pointer-events: none;
}

.specialist-comments-shell {
  position: relative;
  z-index: 1;
  width: min(1440px, 100%);
  margin: 0 auto;
  padding: 58px 24px 62px;
}

/* -------------------------------------------------------------------------- *
 * 2. Section heading
 * -------------------------------------------------------------------------- */

.specialist-comments-heading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 0 0 30px;
  text-align: center;
}

.specialist-comments-heading h2 {
  margin: 0;
  color: #ffffff;
  font-size: clamp(1.35rem, 2.6vw, 2rem);
  font-weight: 800;
  line-height: 1.6;
  letter-spacing: -0.025em;
}

.specialist-comments-heading-accent {
  position: relative;
  display: block;
  width: 76px;
  height: 1px;
  margin-top: 11px;
  background: linear-gradient(90deg, transparent, rgba(239, 200, 102, 0.86), transparent);
}

.specialist-comments-heading-accent::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #efc866;
  box-shadow: 0 0 12px rgba(239, 200, 102, 0.42);
  transform: translate(-50%, -50%);
}

/* -------------------------------------------------------------------------- *
 * 3. Horizontal carousel
 * -------------------------------------------------------------------------- */

.specialist-comments-track {
  display: flex;
  gap: 18px;
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 7px 3px 14px;
  direction: rtl;
  scroll-behavior: smooth;
  scroll-snap-type: x proximity;
  overscroll-behavior-inline: contain;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.specialist-comments-track::-webkit-scrollbar {
  display: none;
}

.specialist-comments-track:focus-visible {
  outline: 2px solid rgba(238, 203, 122, 0.52);
  outline-offset: 6px;
  border-radius: 22px;
}

/* -------------------------------------------------------------------------- *
 * 4. Testimonial card
 * -------------------------------------------------------------------------- */

.specialist-comment-card {
  position: relative;
  flex: 0 0 calc(28.571% - 15px);
  min-width: 280px;
  min-height: 236px;
  padding: 22px 22px 24px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 24px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.055));
  box-shadow:
    0 16px 34px rgba(0, 0, 0, 0.16),
    inset 0 1px rgba(255, 255, 255, 0.09);
  direction: rtl;
  scroll-snap-align: start;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.specialist-comment-card::after {
  content: "“";
  position: absolute;
  left: 18px;
  bottom: -18px;
  color: rgba(237, 201, 113, 0.08);
  font-family: Georgia, serif;
  font-size: 7rem;
  line-height: 1;
  pointer-events: none;
}

/* -------------------------------------------------------------------------- *
 * 5. Specialist identity row
 * -------------------------------------------------------------------------- */

.specialist-comment-head {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 66px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  direction: ltr;
}

.specialist-comment-photo {
  display: block;
  width: 66px;
  height: 66px;
  border: 2px solid rgba(245, 218, 151, 0.65);
  border-radius: 50%;
  object-fit: cover;
  object-position: center;
  box-shadow:
    0 10px 22px rgba(0, 0, 0, 0.22),
    0 0 0 4px rgba(255, 255, 255, 0.035);
}

.specialist-comment-identity {
  min-width: 0;
  direction: rtl;
}

.specialist-comment-name-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 7px 10px;
  direction: ltr;
}

.specialist-comment-name-line strong {
  color: #ffffff;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.5;
  direction: rtl;
  unicode-bidi: plaintext;
}

.specialist-comment-stars {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  direction: ltr;
  white-space: nowrap;
}

.specialist-comment-star {
  color: rgba(255, 255, 255, 0.16);
  font-size: 0.82rem;
  line-height: 1;
  text-shadow: none;
}

.specialist-comment-star.is-filled {
  color: #efc866;
  text-shadow: 0 0 10px rgba(239, 200, 102, 0.22);
}

.specialist-comment-medical-number {
  display: block;
  margin-top: 5px;
  color: rgba(239, 245, 255, 0.64);
  font-size: 0.76rem;
  font-weight: 500;
  line-height: 1.7;
  text-align: left;
  direction: rtl;
}

/* -------------------------------------------------------------------------- *
 * 6. Comment text
 * -------------------------------------------------------------------------- */

.specialist-comment-text {
  position: relative;
  z-index: 1;
  margin: 20px 0 0;
  color: rgba(248, 251, 255, 0.86);
  font-size: 0.9rem;
  font-weight: 400;
  line-height: 2;
  text-align: right;
}

/* -------------------------------------------------------------------------- *
 * 7. Landing-only bottom legal line
 * -------------------------------------------------------------------------- */

.landing-bottom-legal {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 68px;
  padding: 18px 20px max(22px, env(safe-area-inset-bottom));
  background: #10183d;
  color: rgba(255, 255, 255, 0.56);
  font-size: 0.72rem;
  font-weight: 500;
  line-height: 1.6;
  text-align: center;
}

.landing-bottom-legal-dot {
  color: rgba(239, 200, 102, 0.72);
}

/* -------------------------------------------------------------------------- *
 * 8. Responsive card counts
 * -------------------------------------------------------------------------- */

@media (max-width: 1050px) {
  .specialist-comment-card {
    flex-basis: 39%;
    min-width: 275px;
  }
}

@media (max-width: 720px) {
  .specialist-comments-section {
    margin-top: 38px;
    border-radius: 24px;
  }

  .landing-page + .specialist-comments-section {
    margin-top: -1px;
    border-radius: 0;
  }

  .landing-page + .specialist-comments-section::before {
    top: -82px;
    height: 112px;
  }

  .specialist-comments-shell {
    padding: 42px 16px 46px;
  }

  .specialist-comments-heading {
    margin-bottom: 24px;
  }

  .specialist-comments-heading h2 {
    font-size: 1.35rem;
  }

  .specialist-comments-track {
    gap: 13px;
    padding-bottom: 10px;
  }

  .specialist-comment-card {
    flex-basis: 82%;
    min-width: 258px;
    min-height: 224px;
    padding: 20px 18px 22px;
    border-radius: 22px;
  }

  .specialist-comment-head {
    grid-template-columns: 60px minmax(0, 1fr);
    gap: 12px;
  }

  .specialist-comment-photo {
    width: 60px;
    height: 60px;
  }

  .specialist-comment-name-line strong {
    font-size: 0.94rem;
  }

  .specialist-comment-text {
    margin-top: 17px;
    font-size: 0.86rem;
  }

  .landing-bottom-legal {
    min-height: 62px;
    padding-inline: 14px;
    font-size: 0.66rem;
  }
}

@media (max-width: 390px) {
  .specialist-comment-card {
    flex-basis: 87%;
    min-width: 246px;
  }

  .specialist-comment-name-line {
    gap: 5px 8px;
  }

  .specialist-comment-star {
    font-size: 0.76rem;
  }

  .landing-bottom-legal {
    flex-wrap: wrap;
    gap: 4px 7px;
  }
}

/* ============================= End of specialist_comments.css ============================= */