.find-hero {
  min-height: 82vh;
  padding: 170px 7vw 80px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  background:
    radial-gradient(circle at 50% 20%, rgba(37, 99, 235, .18), transparent 35%),
    linear-gradient(180deg, #ffffff, #f7f9fc);
}

.find-hero h1 {
  font-size: clamp(4rem, 8vw, 7.5rem);
  line-height: 0.9;
  letter-spacing: -0.08em;
  max-width: 1000px;
}

.find-hero p:not(.eyebrow) {
  max-width: 750px;
  margin-top: 30px;
  font-size: 1.2rem;
  line-height: 1.8;
  color: #475569;
}

.search-wrap {
  width: min(900px, 100%);
  margin-top: 45px;
}

.search-wrap input {
  width: 100%;
  padding: 28px 34px;
  border: none;
  outline: none;
  border-radius: 999px;
  font-size: 1.15rem;
  background: white;
  box-shadow: 0 24px 70px rgba(15, 23, 42, .08);
  transition: all .3s ease;
}

.search-wrap input:focus {
  box-shadow:
    0 24px 70px rgba(15, 23, 42, .08),
    0 0 0 4px rgba(37, 99, 235, .12);
}

.tutor-directory {
  width: min(1400px, calc(100% - 32px));
  margin: 60px auto 120px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 22px;
}

.tutor-card {
  min-height: 390px;
  padding: 28px;
  border-radius: 34px;
  background: white;
  box-shadow: 0 24px 70px rgba(15, 23, 42, .06);
  transition: all .3s ease;
}

.tutor-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 34px 90px rgba(15, 23, 42, .1);
}

.profile-circle,
.modal-profile-circle {
  width: 92px;
  height: 92px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 30% 20%, #dbeafe, transparent 35%),
    linear-gradient(135deg, #2563eb, #93c5fd);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 900;
  font-size: 1.4rem;
  margin-bottom: 24px;
}

.tutor-tag {
  color: #2563eb;
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.tutor-card h3 {
  font-size: 1.45rem;
  margin-bottom: 12px;
}

.tutor-card p:not(.tutor-tag) {
  color: #64748b;
  line-height: 1.7;
  margin-bottom: 28px;
}

.open-modal {
  border: none;
  background: #020817;
  color: white;
  padding: 13px 20px;
  border-radius: 999px;
  font-weight: 800;
  cursor: pointer;
}

.no-results {
  display: none;
  text-align: center;
  color: #64748b;
  margin-top: -70px;
  margin-bottom: 90px;
  font-weight: 700;
}

.all-tutors-section {
  width: min(1120px, calc(100% - 32px));
  margin: 100px auto;
}

.all-tutors-heading h2 {
  font-size: clamp(3rem, 5vw, 5rem);
  line-height: .95;
  letter-spacing: -.07em;
  margin-bottom: 42px;
}

.all-tutors-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.all-tutors-card {
  min-height: 300px;
  padding: 34px;
  border-radius: 34px;
  background: white;
  box-shadow: 0 24px 70px rgba(15, 23, 42, .06);
}

.all-tutors-card span {
  display: block;
  color: #2563eb;
  font-weight: 900;
  margin-bottom: 70px;
}

.all-tutors-card h3 {
  font-size: 1.35rem;
  margin-bottom: 12px;
}

.all-tutors-card p {
  color: #64748b;
  line-height: 1.7;
}

.review-section {
  width: min(1120px, calc(100% - 32px));
  margin: 100px auto 90px;
  padding: 70px;
  border-radius: 42px;
  background:
    radial-gradient(circle at 20% 20%, rgba(147, 197, 253, .5), transparent 35%),
    linear-gradient(135deg, #071225, #143c88);
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
}

.review-section h2 {
  font-size: clamp(2.5rem, 5vw, 4.6rem);
  line-height: .95;
  letter-spacing: -.07em;
  max-width: 760px;
}

.review-section p:not(.eyebrow) {
  color: #cbd5e1;
  margin-top: 20px;
  line-height: 1.7;
}

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(2, 8, 23, .62);
  backdrop-filter: blur(14px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 500;
}

.modal-overlay.active {
  display: flex;
}

.modal-box {
  width: min(720px, 100%);
  padding: 42px;
  border-radius: 42px;
  background: white;
  position: relative;
  box-shadow: 0 40px 120px rgba(0, 0, 0, .25);
}

.close-modal {
  position: absolute;
  top: 24px;
  right: 28px;
  border: none;
  background: #f1f5f9;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  font-size: 1.6rem;
  cursor: pointer;
}

.modal-box h2 {
  font-size: clamp(2.4rem, 5vw, 4rem);
  line-height: .95;
  letter-spacing: -.07em;
  margin-bottom: 16px;
}

.modal-subjects {
  color: #2563eb;
  font-weight: 800;
  margin-bottom: 24px;
}

.modal-bio {
  color: #475569;
  line-height: 1.8;
  font-size: 1.05rem;
  margin-bottom: 30px;
}

.modal-details {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin-bottom: 34px;
}

.modal-details div {
  padding: 22px;
  border-radius: 24px;
  background: #f8fafc;
}

.modal-details span {
  color: #2563eb;
  font-size: .75rem;
  font-weight: 900;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.modal-details p {
  margin-top: 8px;
  color: #475569;
  line-height: 1.5;
}

.footer-title {
  font-size: 2rem;
  font-weight: 800;
  color: white;
  letter-spacing: -0.05em;
  margin-bottom: 18px;
}

@media (max-width: 1150px) {
  .tutor-directory {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 900px) {

  .tutor-directory,
  .all-tutors-grid,
  .modal-details {
    grid-template-columns: 1fr;
  }

  .review-section {
    flex-direction: column;
    align-items: flex-start;
    padding: 42px 28px;
  }
}

.tutor-meta {
  display: flex;
  gap: 12px;
  margin: 18px 0;
}

.tutor-meta span {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;

  padding: 8px 14px;
  border-radius: 999px;
  background: #f1f5f9;

  font-size: .85rem;
  font-weight: 700;
  color: #0f172a;
}

.subject-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
}

.subject-tags span {
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(37, 99, 235, .1);
  color: #2563eb;
  font-size: .82rem;
  font-weight: 700;
}

.profile-circle {
    width: 92px;
    height: 92px;
    border-radius: 50%;
    overflow: hidden;

    border: 2px solid rgba(255,255,255,0.85);

    box-shadow:
        0 0 0 1px rgba(15,23,42,.08),
        0 15px 35px rgba(15,23,42,.12);

    background:
        radial-gradient(circle at 30% 20%, #dbeafe, transparent 35%),
        linear-gradient(135deg, #2563eb, #93c5fd);

    display: flex;
    align-items: center;
    justify-content: center;

    color: white;
    font-weight: 900;
    font-size: 1.4rem;

    margin-bottom: 24px;
}

.profile-circle img,
.modal-profile-circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.profile-circle span,
.modal-profile-circle span {
  display: block;
}

.tutor-meta,
.modal-meta {
  display: flex;
  gap: 12px;
  margin: 18px 0;
}

.tutor-meta span,
.modal-meta span {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 999px;
  background: #f1f5f9;
  font-size: .85rem;
  font-weight: 700;
  color: #0f172a;
}

.subject-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
}

.subject-tags span {
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(37, 99, 235, .1);
  color: #2563eb;
  font-size: .82rem;
  font-weight: 700;
}

.modal-profile-circle {
  width: 104px;
  height: 104px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 30% 20%, #dbeafe, transparent 35%),
    linear-gradient(135deg, #2563eb, #93c5fd);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 900;
  font-size: 1.5rem;
  margin-bottom: 24px;
  overflow: hidden;
}

.modal-actions {
    display: flex;
    gap: 12px;
    margin-top: 28px;
}

.modal-actions a {
    flex: 1;
}

.modal-actions a {
    display: flex;
    align-items: center;
    justify-content: center;

    padding: 16px 24px;

    border-radius: 999px;

    text-decoration: none;
    font-weight: 700;

    min-height: 52px;

    flex: 1;
}

.pay-button {
  display: inline-block;
  padding: 14px 22px;
  border-radius: 999px;
  background: #020817;
  color: white;
  font-weight: 800;
  box-shadow: 0 14px 35px rgba(15, 23, 42, .18);
}