/* ======================================================
   BC PAGES — 세부페이지 공통 스타일
   ====================================================== */

/* ── 페이지 히어로 ── */
.pg-hero {
  padding: 8rem var(--px) 5rem;
  position: relative;
  overflow: hidden;
}
.pg-hero--light { background: var(--bg); border-bottom: 1px solid var(--border); }
.pg-hero--surface { background: var(--surface); border-bottom: 1px solid var(--border); }
.pg-hero--dark { background: var(--primary); }

.pg-hero__deco {
  position: absolute; top: 50%; right: 4%;
  transform: translateY(-50%);
  font-family: var(--font-display); font-style: italic; font-weight: 100;
  font-size: clamp(5rem, 16vw, 14rem);
  color: var(--primary); opacity: .04;
  pointer-events: none; user-select: none; line-height: 1;
}
.pg-hero--dark .pg-hero__deco { color: var(--white); opacity: .04; }

.pg-breadcrumb {
  font-size: .65rem; font-weight: 500; letter-spacing: .18em;
  text-transform: uppercase; color: var(--muted);
  margin-bottom: 2rem; display: flex; align-items: center; gap: .5rem;
  flex-wrap: wrap;
}
.pg-breadcrumb a { color: var(--muted); transition: color .2s; }
.pg-breadcrumb a:hover { color: var(--rose); }
.pg-breadcrumb span { color: var(--border); }

.pg-h1 {
  font-family: var(--font-ko);
  font-size: clamp(2.25rem, 6vw, 4.5rem);
  font-weight: 400;
  line-height: 1.05; letter-spacing: -.01em;
  color: var(--primary); margin-bottom: 1.25rem;
  word-break: keep-all; overflow-wrap: break-word;
}
.pg-hero--dark .pg-h1 { color: var(--white); }

.pg-sub {
  font-size: clamp(.875rem, 1.5vw, 1rem);
  color: var(--muted); line-height: 1.8;
  max-width: 600px; margin-bottom: 2rem; font-weight: 400;
}
.pg-hero--dark .pg-sub { color: rgba(255,255,255,.6); }

.pg-chips { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: 2rem; }

.pg-hero__ctas { display: flex; gap: .75rem; flex-wrap: wrap; }

/* ── 히어로 이미지형 (우측) ── */
.pg-hero-split {
  display: grid; grid-template-columns: 1fr;
  gap: 3rem; align-items: center;
  padding: 7rem var(--px) 4rem;
  background: var(--bg);
}
@media (min-width: 1024px) {
  .pg-hero-split { grid-template-columns: 1fr 1fr; }
}
.pg-hero-split__img {
  position: relative; aspect-ratio: 4/3; overflow: hidden;
}
.pg-hero-split__img img {
  width: 100%; height: 100%; object-fit: cover;
  object-position: center;
}

/* ── 섹션 구분선 ── */
.pg-rule {
  width: 100%; height: 1px; background: var(--border);
  margin: 0;
}

/* ── 인트로 2컬럼 ── */
.pg-intro {
  display: grid; grid-template-columns: 1fr;
  gap: 3rem; align-items: start;
}
@media (min-width: 1024px) {
  .pg-intro { grid-template-columns: 1fr 1fr; gap: 6rem; }
  .pg-intro--reverse .pg-intro__text { order: 2; }
  .pg-intro--reverse .pg-intro__img  { order: 1; }
}
.pg-intro__heading {
  font-family: var(--font-ko); font-weight: 400;
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  color: var(--primary); line-height: 1.15;
  margin-bottom: 1.5rem;
  word-break: keep-all; overflow-wrap: break-word;
}
.pg-intro__body {
  font-size: .9375rem; color: var(--muted);
  line-height: 1.9; margin-bottom: 1rem; font-weight: 400;
}
.pg-intro__img {
  position: relative; overflow: hidden; aspect-ratio: 4/3;
}
.pg-intro__img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .7s var(--ease-out);
}
.pg-intro__img:hover img { transform: scale(1.04); }

/* ── 특징 카드 4개 ── */
.pg-feature-grid {
  display: grid; grid-template-columns: 1fr;
  gap: 1px; background: var(--border);
}
@media (min-width: 640px) { .pg-feature-grid { grid-template-columns: repeat(2,1fr); } }
@media (min-width: 1024px) { .pg-feature-grid { grid-template-columns: repeat(4,1fr); } }

.pg-feature-card {
  background: var(--bg); padding: 2.5rem 2rem;
  position: relative; overflow: hidden;
  transition: background .3s;
}
.pg-feature-card:hover { background: var(--surface); }
.pg-feature-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0;
  height: 2px; background: var(--rose);
  transform: scaleX(0); transform-origin: left;
  transition: transform .5s var(--ease-out);
}
.pg-feature-card:hover::before { transform: scaleX(1); }
.pg-feature-card__icon { font-size: 1.5rem; margin-bottom: 1rem; display: block; }
.pg-feature-card__title {
  font-family: var(--font-ko); font-weight: 400;
  font-size: 1rem; color: var(--primary);
  margin-bottom: .6rem; line-height: 1.3;
}
.pg-feature-card__desc {
  font-size: .8125rem; color: var(--muted);
  line-height: 1.75; font-weight: 400;
}

/* ── 정보 테이블 ── */
.pg-table-wrap {
  border: 1px solid var(--border); overflow: hidden;
}
.pg-table {
  width: 100%; border-collapse: collapse;
  font-size: .875rem; font-weight: 400;
}
.pg-table th {
  text-align: left; padding: .9rem 1.25rem;
  border-bottom: 1px solid var(--border);
  font-weight: 600; color: var(--primary);
  background: var(--surface); width: 35%;
  font-family: var(--font-body); font-size: .8rem;
  letter-spacing: .02em;
}
.pg-table td {
  padding: .9rem 1.25rem; border-bottom: 1px solid var(--border);
  color: var(--body); line-height: 1.6;
}
.pg-table tr:last-child th,
.pg-table tr:last-child td { border-bottom: none; }
.pg-table a { color: var(--rose); font-weight: 600; }

/* ── FAQ (세부페이지용) ── */
.pg-faq { border-top: 1px solid var(--border); }
.pg-faq-item { border-bottom: 1px solid var(--border); }
.pg-faq-btn {
  width: 100%; display: flex; align-items: flex-start;
  justify-content: space-between; gap: 1.5rem;
  padding: 1.25rem 0; text-align: left; cursor: pointer;
}
.pg-faq-q {
  font-size: .9375rem; font-weight: 500;
  color: var(--primary); line-height: 1.5;
  font-family: var(--font-body);
}
.pg-faq-icon {
  font-size: 1.1rem; color: var(--gold); flex-shrink: 0;
  transition: transform .35s var(--ease-out);
  font-weight: 300; margin-top: .1rem;
}
.pg-faq-item.open .pg-faq-icon { transform: rotate(45deg); }
.pg-faq-answer { max-height: 0; overflow: hidden; transition: max-height .45s var(--ease-out); }
.pg-faq-answer-inner {
  padding: 0 0 1.5rem;
  font-size: .875rem; color: var(--muted);
  line-height: 1.85; font-weight: 400;
}
.pg-faq-answer-inner p + p { margin-top: .6rem; }

/* ── 관련 페이지 ── */
.pg-related-grid {
  display: grid; grid-template-columns: 1fr;
  gap: 1px; background: var(--border);
}
@media (min-width: 640px) { .pg-related-grid { grid-template-columns: repeat(3,1fr); } }

.pg-related-card {
  display: block; background: var(--bg); padding: 2rem;
  text-decoration: none; color: inherit;
  transition: background .3s;
  position: relative; overflow: hidden;
}
.pg-related-card:hover { background: var(--surface); }
.pg-related-card__num {
  font-family: var(--font-display); font-style: italic;
  font-size: .85rem; color: var(--gold); display: block;
  margin-bottom: .75rem; font-weight: 300;
}
.pg-related-card__title {
  font-family: var(--font-ko); font-weight: 400;
  font-size: 1rem; color: var(--primary);
  margin-bottom: .5rem; line-height: 1.3;
}
.pg-related-card__desc {
  font-size: .8rem; color: var(--muted); line-height: 1.65;
  font-weight: 400;
}
.pg-related-card__cta {
  display: inline-flex; align-items: center; gap: .35rem;
  margin-top: 1rem; font-size: .65rem; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase; color: var(--rose);
}

/* ── 세부페이지 CTA 배너 ── */
.pg-cta {
  background: var(--primary); padding: 4rem var(--px);
  text-align: center;
}
.pg-cta__title {
  font-family: var(--font-ko); font-weight: 400;
  font-size: clamp(1.75rem, 4vw, 3rem);
  color: var(--white); margin-bottom: 1rem; line-height: 1.15;
  word-break: keep-all; overflow-wrap: break-word;
}
.pg-cta__sub {
  font-size: .9rem; color: rgba(255,255,255,.55);
  margin-bottom: 2rem; line-height: 1.75; font-weight: 400;
}
.pg-cta__btns { display: flex; gap: .75rem; justify-content: center; flex-wrap: wrap; }

/* ── 모바일 ── */
@media (max-width: 767px) {
  .pg-hero { padding: 6.5rem 1.5rem 3rem; }
  .pg-hero-split { padding: 6rem 1.5rem 3rem; gap: 2rem; }
  .pg-h1 { font-size: clamp(2rem, 8vw, 3rem); }
  .pg-feature-card { padding: 1.75rem 1.25rem; }
  .pg-table th, .pg-table td { padding: .75rem 1rem; }
  .pg-cta { padding: 3rem 1.5rem; }
}

/* ── pg-hero__image (일원동 등 split 히어로 이미지 영역) ── */
.pg-hero__image {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16/9;
  margin-top: 2rem;
}
@media (min-width: 1024px) {
  .pg-hero--split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: stretch;
    padding-top: 0;
  }
  .pg-hero--split .pg-hero__text {
    display: flex; flex-direction: column; justify-content: center;
    padding: 8rem var(--px) 5rem;
  }
  .pg-hero--split .pg-hero__image {
    aspect-ratio: unset;
    margin-top: 0;
    min-height: 100%;
  }
}
.pg-hero__image img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
}

/* ── feature card 내 img (썸네일형 카드 이미지) ── */
.pg-feature-card__icon img {
  width: 100%;
  height: auto;
  aspect-ratio: 4/3;
  object-fit: cover;
  object-position: center;
  display: block;
  margin-bottom: 1rem;
  border-radius: 2px;
}

/* ── related card 이미지 비율 고정 ── */
.pg-related-card img {
  width: 100%;
  height: auto;
  aspect-ratio: 4/3;
  object-fit: cover;
  object-position: center;
  display: block;
  margin-bottom: 1.25rem;
  border-radius: 2px;
}
