/* ── Guide Page Layout ───────────────────── */

html {
  scroll-behavior: smooth;
}

.guide-hero {
  padding: 8rem 5% 3rem;
  background: #fbfaf4;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.guide-hero-inner {
  max-width: 1120px;
  margin: 0 auto;
}

.guide-label {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--point-color);
  background: rgba(45, 74, 62, 0.08);
  padding: 0.3rem 0.85rem;
  border-radius: 20px;
  margin-bottom: 1rem;
}

.guide-hero h1 {
  font-size: 2.8rem;
  color: #1a1a1a;
  line-height: 1.2;
  margin-bottom: 0.75rem;
}

.guide-hero-desc {
  font-size: 1.05rem;
  color: #666;
  max-width: 680px;
  line-height: 1.75;
}

.guide-main {
  max-width: 1120px;
  margin: 0 auto;
  padding: 3rem 5% 6rem;
}

.guide-quick-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 3rem;
}

.guide-quick-card {
  background: white;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 8px;
  padding: 1.25rem;
  min-height: 150px;
}

.guide-quick-card span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: rgba(45, 74, 62, 0.08);
  color: var(--point-color);
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.guide-quick-card h2 {
  font-size: 1.05rem;
  color: #1f1f1f;
  margin-bottom: 0.55rem;
}

.guide-quick-card p {
  font-size: 0.92rem;
  color: #666;
  line-height: 1.65;
}

.guide-section-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}

.guide-card {
  background: white;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 8px;
  padding: 1.75rem;
}

.guide-card-full {
  grid-column: 1 / -1;
}

.guide-card h2 {
  font-size: 1.35rem;
  color: #1a1a1a;
  margin-bottom: 1rem;
  line-height: 1.35;
}

.guide-card h3 {
  font-size: 1rem;
  color: #2a2a2a;
  margin: 1.5rem 0 0.55rem;
}

.guide-card p,
.guide-card li {
  font-size: 0.98rem;
  color: #444;
  line-height: 1.85;
}

.guide-card p {
  margin-bottom: 0.85rem;
}

.guide-card ul {
  padding-left: 1.25rem;
  margin: 0.75rem 0 0;
}

.guide-note {
  background: rgba(45, 74, 62, 0.055);
  border-left: 3px solid var(--point-color);
  border-radius: 0 8px 8px 0;
  padding: 1rem 1.15rem;
  margin-top: 1.25rem;
}

.guide-note p {
  margin: 0;
  font-size: 0.92rem;
  color: #555;
}

.guide-checklist {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 1rem;
}

.guide-checklist.two-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 1rem;
}

.guide-checklist div {
  background: rgba(0, 0, 0, 0.025);
  border-radius: 8px;
  padding: 1rem;
}

.guide-checklist b {
  display: block;
  color: var(--point-color);
  font-size: 0.9rem;
  margin-bottom: 0.4rem;
}

.guide-checklist p {
  margin: 0;
  font-size: 0.9rem;
  color: #555;
  line-height: 1.65;
}

@media (max-width: 960px) {
  .guide-quick-grid,
  .guide-section-grid {
    grid-template-columns: 1fr;
  }

  .guide-checklist {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .guide-hero {
    padding: 7rem 5% 2.5rem;
  }

  .guide-hero h1 {
    font-size: 2.15rem;
  }

  .guide-main {
    padding: 2rem 5% 4rem;
  }
}

/* ── Bandage step-by-step guide ─────────────── */
.bandage-guide-section {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.bandage-guide-heading h2 {
  font-size: 1.8rem;
  color: #1a1a1a;
  margin-bottom: 0.75rem;
}

.bandage-guide-heading p {
  font-size: 1rem;
  color: #666;
  line-height: 1.75;
  max-width: 720px;
}

.bandage-guide-subheading {
  font-size: 1.3rem;
  color: #1a1a1a;
}

.bandage-set-table-wrap h3 {
  font-size: 1.05rem;
  color: #1a1a1a;
  margin-bottom: 0.75rem;
}

.bandage-set-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.bandage-set-table th,
.bandage-set-table td {
  padding: 0.65rem 1rem;
  text-align: left;
  border: 1px solid rgba(0, 0, 0, 0.08);
  color: #444;
}

.bandage-set-table th {
  background: rgba(45, 74, 62, 0.06);
  font-weight: 600;
  color: #2d2d2d;
}

.bandage-set-table .bandage-set-total td {
  font-weight: 700;
  background: rgba(45, 74, 62, 0.04);
}

.bandage-steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.bandage-step-header {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.bandage-step-number {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--point-color);
  color: white;
  font-weight: 700;
  font-size: 0.95rem;
}

.bandage-step-header p {
  flex: 1;
  font-size: 1rem;
  color: #333;
  line-height: 1.75;
  padding-top: 0.2rem;
}

.bandage-step-image {
  display: block;
  width: calc(100% - 3rem);
  max-width: 720px;
  margin: 1rem 0 0 3rem;
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.bandage-note {
  margin: 0.75rem 0 0 3rem;
  background: rgba(45, 74, 62, 0.055);
  border-left: 3px solid var(--point-color);
  border-radius: 0 8px 8px 0;
  padding: 0.85rem 1rem;
}

.bandage-note p {
  margin: 0;
  font-size: 0.9rem;
  color: #555;
}

.bandage-warning {
  background: white;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 12px;
  padding: 1.75rem;
}

.bandage-warning h3 {
  font-size: 1.2rem;
  color: #1a1a1a;
  margin-bottom: 1rem;
}

.bandage-warning-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 2rem;
  align-items: start;
}

.bandage-warning-list {
  padding-left: 1.25rem;
  margin: 0;
  color: #555;
  font-size: 0.95rem;
  line-height: 1.85;
}

.bandage-warning-figure {
  margin: 0;
}

.bandage-warning-figure img {
  width: 100%;
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.bandage-warning-figure figcaption {
  margin-top: 0.5rem;
  font-size: 0.85rem;
  color: #777;
  text-align: center;
}

.bandage-note-block {
  margin: 0;
}

.bandage-note-block h4 {
  font-size: 0.95rem;
  color: #1a1a1a;
  margin-bottom: 0.5rem;
}

.bandage-note-block p {
  margin: 0 0 0.5rem;
  font-size: 0.9rem;
  color: #555;
  line-height: 1.7;
}

.bandage-note-block p:last-child {
  margin-bottom: 0;
}

.bandage-note-block ul {
  margin: 0;
  padding-left: 1.1rem;
  font-size: 0.9rem;
  color: #555;
  line-height: 1.7;
}

/* 이미지가 가로 3등분되어 있는 경우, 각 구간 위에 캡션을 붙이는 그룹 */
.bandage-check-group {
  margin: 1rem 0 0 3rem;
  max-width: 720px;
}

.bandage-check-group .bandage-step-image {
  margin: 0.5rem 0 0;
  width: 100%;
}

.bandage-check-labels {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}

.bandage-check-labels span {
  display: block;
  text-align: center;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--point-color);
  line-height: 1.5;
}

@media (max-width: 640px) {
  .bandage-check-labels {
    grid-template-columns: 1fr;
  }
}

.bandage-guide-note-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

/* ── 사이드 목차 (하지/상지 붕대법 바로가기) ─────── */
.bandage-guide-layout {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 3rem;
  align-items: start;
}

.bandage-guide-toc {
  position: sticky;
  top: 7rem;
}

.bandage-guide-toc-title {
  font-size: 0.8rem;
  font-weight: 700;
  color: #999;
  letter-spacing: 0.03em;
  margin-bottom: 0.75rem;
  padding-left: 0.75rem;
}

.bandage-guide-toc nav {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.bandage-guide-toc-link {
  padding: 0.65rem 0.75rem;
  border-radius: 8px;
  font-size: 0.92rem;
  color: #555;
  text-decoration: none;
  transition:
    background 0.2s,
    color 0.2s;
}

.bandage-guide-toc-link:hover {
  background: rgba(45, 74, 62, 0.06);
}

.bandage-guide-toc-link.active {
  background: rgba(45, 74, 62, 0.08);
  color: var(--point-color);
  font-weight: 700;
}

.bandage-guide-content {
  display: flex;
  flex-direction: column;
  gap: 4rem;
  min-width: 0;
}

.bandage-guide-section {
  scroll-margin-top: 6rem;
}

@media (max-width: 900px) {
  .bandage-guide-layout {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .bandage-guide-toc {
    position: sticky;
    top: 0;
    z-index: 20;
    background: #fefdf5;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  }

  .bandage-guide-toc-title {
    display: none;
  }

  .bandage-guide-toc nav {
    flex-direction: row;
    gap: 0.5rem;
    overflow-x: auto;
  }

  .bandage-guide-toc-link {
    white-space: nowrap;
  }

  .bandage-guide-note-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .bandage-step-image,
  .bandage-note,
  .bandage-check-group {
    margin-left: 0;
  }

  .bandage-warning-grid {
    grid-template-columns: 1fr;
  }
}
