/* ===== 디지털 리터러시·AI 활용 전문강사 송귀옥 — 프로필 사이트 ===== */

:root {
  --navy: #1B2A4A;
  --navy-dark: #10192E;
  --blue-soft: #5B8DBE;
  --blue-tint: #EAF2FA;
  --white: #FFFFFF;
  --bg-section: #F7F9FC;
  --text-main: #24303F;
  --text-sub: #5B6672;
  --border: #E3E9F0;
  --shadow: 0 8px 24px rgba(27, 42, 74, 0.08);
  --radius: 16px;
  --max-width: 1080px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Noto Sans KR", "Malgun Gothic", sans-serif;
  font-size: 18px;
  line-height: 1.7;
  color: var(--text-main);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

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

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- 헤더/내비게이션 ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.nav-brand {
  font-size: 20px;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -0.02em;
}

.nav-brand span { color: var(--blue-soft); }

.nav-links {
  display: flex;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  display: inline-block;
  padding: 10px 16px;
  border-radius: 999px;
  font-weight: 500;
  color: var(--text-main);
  transition: background 0.15s ease, color 0.15s ease;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  background: var(--blue-tint);
  color: var(--navy);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 28px;
  color: var(--navy);
  cursor: pointer;
}

@media (max-width: 720px) {
  .nav-toggle { display: block; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    padding: 12px 24px 20px;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 14px 12px; }
}

/* ---------- 히어로 ---------- */

.hero {
  background: linear-gradient(180deg, var(--blue-tint) 0%, var(--white) 100%);
  padding: 72px 0 56px;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 48px;
  align-items: center;
}

@media (max-width: 860px) {
  .hero-inner { grid-template-columns: 1fr; }
}

.eyebrow {
  display: inline-block;
  font-size: 15px;
  font-weight: 700;
  color: var(--blue-soft);
  background: var(--white);
  border: 1px solid var(--blue-tint);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
}

.hero h1 {
  font-size: clamp(32px, 4.5vw, 48px);
  line-height: 1.35;
  color: var(--navy);
  margin: 0 0 20px;
  letter-spacing: -0.02em;
  word-break: keep-all;
  overflow-wrap: normal;
}

.hero h1 strong { color: var(--blue-soft); }

.hero p.lead {
  font-size: 19px;
  color: var(--text-sub);
  margin: 0 0 32px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 17px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.btn:hover { transform: translateY(-1px); }

.btn-primary {
  background: var(--navy);
  color: var(--white);
  box-shadow: var(--shadow);
}

.btn-outline {
  background: var(--white);
  color: var(--navy);
  border-color: var(--navy);
}

.hero-portrait {
  width: 100%;
  max-width: 300px;
  max-height: 375px;
  margin-inline: auto;
  justify-self: center;
  aspect-ratio: 4 / 5;
  border-radius: 24px;
  background: var(--blue-tint);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  padding: 20px;
  overflow: hidden;
}

.hero-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  border-radius: 16px;
  display: block;
}

@media (max-width: 600px) {
  .hero-portrait { max-width: 230px; max-height: 285px; padding: 14px; }
}

/* ---------- 공통 섹션 ---------- */

section { padding: 64px 0; }

.section-alt { background: var(--bg-section); }

.section-head { margin-bottom: 36px; text-align: center; }

.section-head h2 {
  font-size: clamp(26px, 3vw, 34px);
  color: var(--navy);
  margin: 0 0 12px;
  letter-spacing: -0.01em;
}

.section-head p {
  color: var(--text-sub);
  font-size: 18px;
  max-width: 640px;
  margin: 0 auto;
}

/* ---------- 강의 분야 카드 ---------- */

.field-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.field-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  text-align: center;
}

.field-card .icon { font-size: 34px; margin-bottom: 12px; }

.field-card h3 {
  font-size: 19px;
  color: var(--navy);
  margin: 0 0 8px;
}

.field-card p {
  font-size: 16px;
  color: var(--text-sub);
  margin: 0;
}

/* ---------- 활동 채널 카드 ---------- */

.channel-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  text-align: left;
  transition: transform 0.14s ease, box-shadow 0.14s ease, border-color 0.14s ease;
}

.channel-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: var(--blue-soft);
}

.channel-card .brand-icon {
  display: inline-flex;
  width: 56px;
  height: 56px;
}

.channel-card .brand-icon svg { display: block; }

.channel-card h3 {
  margin: 0;
  font-size: 19px;
  color: var(--navy);
}

.channel-card p {
  margin: 0;
  font-size: 16px;
  color: var(--text-sub);
}

/* ---------- 스토리 타임라인 ---------- */

.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  max-width: 720px;
  margin: 0 auto;
}

.timeline li {
  position: relative;
  padding: 0 0 32px 32px;
  border-left: 2px solid var(--blue-tint);
}

.timeline li:last-child { border-color: transparent; padding-bottom: 0; }

.timeline li::before {
  content: "";
  position: absolute;
  left: -7px;
  top: 4px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--blue-soft);
}

.timeline h4 {
  margin: 0 0 6px;
  color: var(--navy);
  font-size: 18px;
}

.timeline p { margin: 0; color: var(--text-sub); }

/* ---------- 카드형 리스트 (강의이력/후기) ---------- */

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

@media (min-width: 720px) {
  .media-grid { grid-template-columns: repeat(2, 1fr); }
}

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.card .tag {
  align-self: flex-start;
  font-size: 13px;
  font-weight: 700;
  color: var(--blue-soft);
  background: var(--blue-tint);
  padding: 4px 10px;
  border-radius: 999px;
}

.card h3 { margin: 0; font-size: 19px; color: var(--navy); }

.card .period { font-size: 15px; color: var(--text-sub); }

.card p.desc { margin: 0; color: var(--text-main); }

.card img.thumb {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 4px;
  background: var(--blue-tint);
}

.card img.thumb-rep {
  object-position: center 75%;
}

/* ---------- 자격사항 리스트 ---------- */

.cert-list { list-style: none; margin: 0; padding: 0; max-width: 640px; margin: 0 auto; }

.cert-list li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
  color: var(--text-main);
}

.cert-list li:last-child { border-bottom: none; }

.cert-list .cert-name { font-weight: 700; color: var(--navy); }

.cert-list .cert-meta { color: var(--text-sub); font-size: 15px; white-space: nowrap; }

/* ---------- 후기 카드 ---------- */

.review-card {
  position: relative;
  padding: 32px 28px;
  gap: 16px;
}

.review-card .quote-mark {
  font-size: 44px;
  color: var(--blue-tint);
  line-height: 1;
}

.review-card p.desc { line-height: 1.85; }

.review-card .author { font-weight: 700; color: var(--navy); margin-top: 4px; }

#review-preview.card-grid,
#reviews-full.card-grid {
  gap: 32px;
}

@media (min-width: 720px) {
  #reviews-full.card-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- 문의 폼 ---------- */

.contact-form {
  max-width: 560px;
  margin: 0 auto;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
}

.form-row { margin-bottom: 20px; }

.form-row label {
  display: block;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
  font-size: 16px;
}

.form-row input,
.form-row textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 17px;
  font-family: inherit;
  color: var(--text-main);
}

.form-row textarea { min-height: 140px; resize: vertical; }

.form-row input:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--blue-soft);
  box-shadow: 0 0 0 3px var(--blue-tint);
}

.contact-direct {
  max-width: 560px;
  margin: 24px auto 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.contact-direct .item {
  background: var(--bg-section);
  border-radius: 12px;
  padding: 18px 20px;
}

.contact-direct .label { font-size: 14px; color: var(--text-sub); margin-bottom: 4px; }

.contact-direct .value { font-size: 18px; font-weight: 700; color: var(--navy); }

/* ---------- 강의 현장 갤러리 ---------- */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

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

@media (max-width: 440px) {
  .gallery-grid { grid-template-columns: 1fr; }
}

.gallery-item {
  display: block;
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-section);
  padding: 0;
  cursor: pointer;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.2s ease;
}

.gallery-item:hover img,
.gallery-item:focus-visible img {
  transform: scale(1.05);
}

.gallery-item:focus-visible {
  outline: 3px solid var(--blue-soft);
  outline-offset: 2px;
}

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(16, 25, 46, 0.88);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
  z-index: 200;
}

.lightbox[hidden] { display: none; }

.lightbox img {
  max-width: 100%;
  max-height: 88vh;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.lightbox-close {
  position: absolute;
  top: max(20px, env(safe-area-inset-top, 0px));
  right: 24px;
  background: none;
  border: none;
  color: #ffffff;
  font-size: 32px;
  line-height: 1;
  cursor: pointer;
  padding: 8px;
}

/* ---------- 로딩/빈 상태 ---------- */

.state-msg {
  text-align: center;
  color: var(--text-sub);
  padding: 24px;
  grid-column: 1 / -1;
}

/* ---------- 더보기 버튼 ---------- */

.more-wrap { text-align: center; margin-top: 32px; }

/* ---------- 푸터 ---------- */

.site-footer {
  background: var(--navy);
  color: rgba(255,255,255,0.82);
  padding: 40px 0;
  font-size: 15px;
}

.site-footer a { color: var(--white); text-decoration: underline; }

.footer-inner {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
