/* 학생·학부모 후기 전용 페이지 */
.reviews-page {
  background: #f7faff;
  color: #091840;
}

.reviews-page main {
  overflow: hidden;
}

.reviews-hero {
  padding: clamp(84px, 10vw, 150px) 0 72px;
  background: linear-gradient(135deg, #eef6ff 0%, #ffffff 62%);
}

.reviews-hero__eyebrow,
.reviews-section__eyebrow {
  margin: 0 0 14px;
  color: #0878ee;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .06em;
}

.reviews-hero h2 {
  max-width: 760px;
  margin: 0;
  color: #091840;
  font-size: clamp(38px, 5vw, 68px);
  line-height: 1.12;
  letter-spacing: -.06em;
  word-break: keep-all;
}

.reviews-hero h2 span {
  color: #0878ee;
}

.reviews-hero__desc {
  max-width: 720px;
  margin: 24px 0 0;
  color: #5e6a7d;
  font-size: clamp(16px, 2vw, 20px);
  line-height: 1.7;
  word-break: keep-all;
}

.reviews-section {
  padding: clamp(64px, 8vw, 112px) 0;
}

.reviews-section--white {
  background: #fff;
}

.reviews-section__heading {
  margin-bottom: 30px;
}

.reviews-section__heading h2 {
  margin: 0;
  color: #091840;
  font-size: clamp(28px, 3.2vw, 44px);
  line-height: 1.25;
  letter-spacing: -.05em;
  word-break: keep-all;
}

.reviews-section__heading p {
  max-width: 680px;
  margin: 14px 0 0;
  color: #6b7686;
  font-size: 16px;
  line-height: 1.7;
  word-break: keep-all;
}

.reviews-source-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 28px;
  padding: clamp(24px, 4vw, 42px);
  border: 1px solid #dce8f5;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 14px 35px rgba(9, 24, 64, .07);
}

.reviews-source-card__label {
  margin: 0 0 8px;
  color: #0878ee;
  font-size: 14px;
  font-weight: 700;
}

.reviews-source-card h3 {
  margin: 0;
  font-size: clamp(22px, 3vw, 32px);
  letter-spacing: -.04em;
}

.reviews-source-card p {
  margin: 12px 0 0;
  color: #667386;
  font-size: 15px;
  line-height: 1.7;
}

.reviews-source-card__button,
.reviews-contact__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 24px;
  border-radius: 999px;
  background: #0878ee;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  white-space: nowrap;
  transition: transform .2s ease, background-color .2s ease;
}

.reviews-source-card__button:hover,
.reviews-contact__button:hover {
  background: #0565c9;
  transform: translateY(-2px);
}

.reviews-empty {
  padding: 54px 24px;
  border: 1px dashed #bfd0e5;
  border-radius: 20px;
  background: #fff;
  color: #6b7686;
  text-align: center;
}

.reviews-empty[hidden] {
  display: none;
}

.reviews-empty h3 {
  margin: 0;
  color: #091840;
  font-size: 22px;
}

.reviews-empty p {
  margin: 12px 0 0;
  font-size: 15px;
  line-height: 1.7;
}

.review-grid,
.review-case-grid,
.reviews-preview-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.review-card,
.review-case-card,
.reviews-preview-card {
  min-width: 0;
  padding: 26px;
  border: 1px solid #e1eaf3;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(9, 24, 64, .06);
}

.review-card__meta,
.review-case-card__meta,
.reviews-preview-card__meta {
  margin: 0;
  color: #0878ee;
  font-size: 13px;
  font-weight: 700;
}

.review-card__author {
  margin: 20px 0 0;
  font-size: 19px;
  letter-spacing: -.03em;
}

.review-card__content,
.review-case-card__description,
.reviews-preview-card__description {
  margin: 15px 0 0;
  color: #566275;
  font-size: 15px;
  line-height: 1.75;
  word-break: keep-all;
}

.review-card__date {
  display: block;
  margin-top: 22px;
  color: #9aa7b7;
  font-size: 12px;
}

.review-case-card h3,
.reviews-preview-card h3 {
  margin: 18px 0 0;
  color: #091840;
  font-size: 21px;
  line-height: 1.35;
  letter-spacing: -.04em;
  word-break: keep-all;
}

.review-case-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.review-case-card__head .review-case-card__meta {
  margin: 0;
}

.review-case-card__source {
  display: inline-flex;
  flex-shrink: 0;
  margin: 0 0 0 auto;
  color: #0878ee;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

/* 메인 미리보기는 학생 성과 사례 전용 페이지와 같은 카드 비율을 사용합니다. */
.student-preview-grid {
  gap: 22px;
  align-items: start;
}

.student-preview-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid #e0e9f3;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 16px 34px rgba(9, 24, 64, .07);
  transition: transform .25s ease, box-shadow .25s ease;
}

.student-preview-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 46px rgba(9, 24, 64, .13);
}

.student-preview-card__visual {
  position: relative;
  display: block;
  aspect-ratio: 1.5 / 1;
  overflow: hidden;
  background: #dceafa;
}

.student-preview-card__visual img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}

.student-preview-card:hover .student-preview-card__visual img {
  transform: scale(1.045);
}

.student-preview-card__visual::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 45%;
  background: linear-gradient(transparent, rgba(5, 16, 44, .7));
  content: "";
  pointer-events: none;
}

.student-preview-card__number {
  position: absolute;
  right: 18px;
  bottom: 14px;
  z-index: 1;
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .08em;
}

.student-preview-card__body {
  padding: 24px 24px 22px;
}

.student-preview-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.student-preview-card__meta {
  margin: 0;
  color: #0878ee;
  font-size: 12px;
  font-weight: 800;
}

.student-preview-card__source {
  flex-shrink: 0;
  color: #0878ee;
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}

.student-preview-card__eyebrow {
  margin: 16px 0 0;
  color: #9aa8b9;
  font-size: 12px;
  letter-spacing: .02em;
}

.student-preview-card h3 {
  margin: 6px 0 0;
  color: #091840;
  font-size: 23px;
  line-height: 1.25;
  letter-spacing: -.055em;
  word-break: keep-all;
}

.student-preview-card__description {
  min-height: 51px;
  margin: 12px 0 0;
  color: #65748a;
  font-size: 15px;
  line-height: 1.7;
  word-break: keep-all;
}

.student-preview-card__actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid #edf2f7;
}

.student-preview-card__actions a {
  color: #091840;
  font-size: 14px;
  font-weight: 800;
  white-space: nowrap;
}

.student-preview-card__actions a:last-child {
  color: #0878ee;
  font-size: 13px;
}

.student-preview-error {
  grid-column: 1 / -1;
  padding: 30px;
  border: 1px solid #f0c4c4;
  border-radius: 16px;
  background: #fff;
  color: #a33;
}

.reviews-contact {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 36px 40px;
  border-radius: 24px;
  background: #091840;
  color: #fff;
}

.reviews-contact h2 {
  margin: 0;
  font-size: clamp(24px, 3vw, 36px);
  letter-spacing: -.05em;
}

.reviews-contact p {
  margin: 12px 0 0;
  color: #c5d1e1;
  font-size: 15px;
  line-height: 1.7;
  word-break: keep-all;
}

.reviews-contact__button {
  flex-shrink: 0;
  background: #e28e02;
}

.reviews-contact__button:hover {
  background: #c87800;
}

.reviews-preview {
  padding: clamp(70px, 8vw, 110px) 0;
  background: #f7faff;
}

.reviews-preview__heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.reviews-preview__heading h2 {
  margin: 0;
  color: #091840;
  font-size: clamp(28px, 3vw, 42px);
  letter-spacing: -.05em;
}

.reviews-preview__heading p {
  margin: 10px 0 0;
  color: #667386;
  line-height: 1.65;
}

.reviews-preview__all {
  flex-shrink: 0;
  color: #0878ee;
  font-size: 14px;
  font-weight: 700;
}

.reviews-preview-card {
  display: block;
  min-height: 190px;
  transition: transform .2s ease, box-shadow .2s ease;
}

.reviews-preview-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 34px rgba(9, 24, 64, .12);
}

@media (max-width: 900px) {
  .reviews-source-card,
  .reviews-contact {
    grid-template-columns: 1fr;
    display: grid;
  }

  .review-grid,
  .review-case-grid,
  .reviews-preview-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .reviews-source-card__button,
  .reviews-contact__button {
    justify-self: start;
  }
}

@media (max-width: 600px) {
  .reviews-hero {
    padding-top: 66px;
  }

  .review-grid,
  .review-case-grid,
  .reviews-preview-grid {
    grid-template-columns: 1fr;
  }

  .reviews-preview__heading {
    display: block;
  }

  .reviews-preview__all {
    display: inline-flex;
    margin-top: 18px;
  }

  .reviews-contact {
    padding: 28px 24px;
  }

  .review-card,
  .review-case-card,
  .reviews-preview-card {
    padding: 22px;
  }
}


.reviews-preview__footer {
  margin: 30px 0 0;
  text-align: center;
}

.reviews-preview__footer a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  background: #0878ee;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  transition: transform .2s ease, background-color .2s ease;
}

.reviews-preview__footer a:hover {
  background: #0565c9;
  transform: translateY(-2px);
}
