:root {
  --ink: #141416;
  --paper: #fffaf0;
  --cream: #f7efe1;
  --blue: #174bff;
  --sky: #dcecff;
  --yellow: #ffe25f;
  --coral: #ff8b6a;
  --green: #b7dec2;
  --muted: #68616a;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Pretendard, "Noto Sans KR", "Apple SD Gothic Neo", Arial, sans-serif;
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(20, 20, 22, 0.045) 1px, transparent 1px),
    linear-gradient(180deg, rgba(20, 20, 22, 0.045) 1px, transparent 1px),
    var(--cream);
  background-size: 38px 38px;
  word-break: keep-all;
  letter-spacing: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

.seo-nav {
  max-width: 1120px;
  margin: 0 auto;
  padding: 18px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.seo-brand,
.seo-talk,
.hero-actions a,
.cta-actions a {
  border: 2px solid var(--ink);
  font-weight: 950;
  box-shadow: 5px 5px 0 var(--blue);
}

.seo-brand {
  padding: 10px 14px;
  background: #fff;
}

.seo-talk {
  padding: 10px 14px;
  background: var(--yellow);
}

.seo-hero,
.seo-section,
.teacher-section,
.seo-cta,
.subject-review,
.other-subjects,
.school-section {
  max-width: 1120px;
  margin: 0 auto;
  padding: 64px 20px;
}

.seo-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(340px, 0.78fr);
  gap: 34px;
  align-items: center;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 950;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 20px;
  font-size: clamp(42px, 6.2vw, 78px);
  line-height: 1.04;
  font-weight: 950;
}

h1 span {
  display: block;
  color: var(--blue);
}

.lead {
  font-size: 20px;
  line-height: 1.74;
  color: #45404a;
}

.hero-actions,
.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.hero-actions a,
.cta-actions a {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  background: var(--blue);
  color: #fff;
}

.hero-actions a + a,
.cta-actions a + a {
  background: #fff;
  color: var(--ink);
  box-shadow: 5px 5px 0 var(--yellow);
}

.study-image {
  border: 2px solid var(--ink);
  background: #fff;
  padding: 14px;
  box-shadow: 14px 14px 0 var(--yellow);
  transform: rotate(1deg);
}

.study-image img {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border: 2px solid var(--ink);
}

.summary-card {
  margin-top: 24px;
  padding: 26px;
  border: 2px solid var(--ink);
  background: #fff;
  box-shadow: 10px 10px 0 rgba(23, 75, 255, 0.18);
}

.summary-card strong {
  display: block;
  margin-bottom: 12px;
  font-size: 24px;
  line-height: 1.35;
}

.summary-card p,
.seo-section p,
.teacher-card p,
.case-card p {
  color: var(--muted);
  line-height: 1.78;
}

.seo-section h2,
.teacher-section h2,
.seo-cta h2,
.subject-review h2,
.other-subjects h2,
.school-section h2 {
  font-size: clamp(30px, 4vw, 50px);
  line-height: 1.17;
  margin-bottom: 20px;
}

.case-card {
  padding: 30px;
  border: 2px solid var(--ink);
  background: var(--sky);
  box-shadow: 10px 10px 0 var(--coral);
}

.subject-detail {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 18px;
  margin-top: 28px;
}

.subject-badge {
  padding: 28px;
  border: 2px solid var(--ink);
  background: var(--yellow);
  box-shadow: 8px 8px 0 var(--ink);
}

.subject-badge strong {
  display: block;
  font-size: 30px;
  line-height: 1.2;
}

.subject-badge span {
  display: block;
  margin-top: 12px;
  color: #474038;
  font-weight: 850;
}

.detail-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.detail-list span {
  display: flex;
  align-items: center;
  min-height: 58px;
  padding: 14px;
  border: 2px solid var(--ink);
  background: #fff;
  font-weight: 850;
}

.teacher-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 28px;
}

.teacher-card {
  min-height: 190px;
  padding: 22px;
  border: 2px solid var(--ink);
  background: #fff;
  box-shadow: 7px 7px 0 rgba(23, 75, 255, 0.14);
}

.teacher-card strong {
  display: block;
  margin-bottom: 12px;
  font-size: 22px;
}

.school-card {
  padding: 34px;
  border: 2px solid var(--ink);
  background:
    linear-gradient(135deg, rgba(255, 226, 95, 0.88), rgba(255, 255, 255, 0.96) 46%, rgba(220, 236, 255, 0.95));
  box-shadow: 12px 12px 0 var(--green);
}

.school-card h2 span {
  display: block;
  color: var(--blue);
}

.school-card p {
  max-width: 920px;
  color: #47404a;
  line-height: 1.78;
  font-size: 17px;
}

.school-chip-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.school-chip-grid span {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 8px 14px;
  border: 2px solid var(--ink);
  background: #fff;
  font-weight: 900;
  box-shadow: 4px 4px 0 rgba(23, 75, 255, 0.16);
}

.subject-review {
  max-width: none;
  background: #fff;
  border-top: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
}

.review-title,
.subject-review-grid {
  max-width: 1120px;
  margin-left: auto;
  margin-right: auto;
}

.review-title {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 210px;
  gap: 24px;
  align-items: end;
  margin-bottom: 26px;
}

.review-title img {
  width: 210px;
  aspect-ratio: 1;
  object-fit: cover;
  border: 2px solid var(--ink);
  box-shadow: 8px 8px 0 var(--yellow);
}

.subject-review-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.subject-review-grid article {
  min-height: 260px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 22px;
  border: 2px solid var(--ink);
  background: var(--cream);
  box-shadow: 7px 7px 0 rgba(23, 75, 255, 0.12);
}

.subject-review-grid article.featured {
  background: var(--ink);
  color: #fff;
  box-shadow: 7px 7px 0 var(--coral);
}

.subject-review-grid span {
  display: inline-flex;
  width: max-content;
  padding: 8px 12px;
  border: 2px solid var(--ink);
  background: var(--yellow);
  color: var(--ink);
  font-size: 12px;
  font-weight: 950;
}

.subject-review-grid p {
  margin: 22px 0;
  color: var(--muted);
  line-height: 1.72;
}

.subject-review-grid article.featured p {
  color: rgba(255, 255, 255, 0.78);
}

.subject-review-grid strong {
  color: var(--blue);
  line-height: 1.4;
}

.subject-review-grid article.featured strong {
  color: var(--yellow);
}

.seo-cta {
  text-align: center;
}

.seo-cta-inner {
  padding: 42px 24px;
  border: 2px solid var(--ink);
  background: var(--ink);
  color: #fff;
  box-shadow: 14px 14px 0 var(--blue);
}

.seo-cta p {
  max-width: 760px;
  margin: 0 auto;
  color: rgba(255, 255, 255, 0.76);
  line-height: 1.75;
}

.cta-actions {
  justify-content: center;
}

.other-subjects {
  padding-top: 20px;
}

.other-subject-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 26px;
}

.other-subject-grid a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 10px 12px;
  border: 2px solid var(--ink);
  background: #fff;
  text-align: center;
  font-size: 14px;
  font-weight: 900;
  box-shadow: 4px 4px 0 rgba(23, 75, 255, 0.14);
}

.other-subject-grid a.active {
  background: var(--yellow);
  box-shadow: 4px 4px 0 var(--ink);
}

@media (max-width: 900px) {
  .seo-hero,
  .subject-detail {
    grid-template-columns: 1fr;
  }

  .teacher-grid,
  .subject-review-grid,
  .other-subject-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .review-title {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .seo-hero,
  .seo-section,
  .teacher-section,
  .seo-cta,
  .subject-review,
  .other-subjects,
  .school-section {
    padding: 48px 18px;
  }

  h1 {
    font-size: 40px;
  }

  .detail-list,
  .teacher-grid,
  .subject-review-grid,
  .other-subject-grid {
    grid-template-columns: 1fr;
  }
}

/* Shared long-form Study Studio detail image */
.detail-image-section {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 72px 20px;
  background: transparent;
  display: grid;
  place-items: center;
  box-sizing: border-box;
}

.detail-image-wrap {
  width: 100%;
  max-width: 852px;
  margin: 0 auto;
  overflow: hidden;
  background: transparent;
  border: 1px solid rgba(18, 48, 82, .14);
  box-shadow: 0 18px 44px rgba(18, 48, 82, .10);
}

.detail-image-wrap img {
  display: block;
  width: 100%;
  max-width: 852px;
  height: auto;
  margin: 0 auto;
}

@media (max-width: 680px) {
  .detail-image-section { padding: 38px 0; }
  .detail-image-wrap { border-left: 0; border-right: 0; box-shadow: none; }
}

