/**
 * 공통 페이지 Hero (블로그, 프로그램 등)
 * 배경 이미지 + 어두운 오버레이, 페이지별 modifier로 배경·높이만 변경
 */
/* 공통 베이스 */
.page-hero,
.blog-hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background-color: #2a2a2a;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.page-hero::before,
.blog-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  pointer-events: none;
}
.page-hero-inner,
.blog-hero-inner {
  position: relative;
  z-index: 1;
  padding: 24px 20px;
  width: 100%;
  max-width: 900px;
}

/* 블로그: 배경 이미지 */
.blog-hero {
  background-image: url("../bnb/images/workation/workation.jpeg");
}

/* 프로그램 전용: /programs 페이지만 이 배경 사용 (/blog, /workation 영향 없음) */
.page-hero--programs {
  background-image: url("../bnb/images/workation/program.jpg");
  background-size: cover;
  background-position: center;
  height: 380px;
  min-height: 360px;
}
.page-hero--programs .page-hero-inner { padding: 24px 20px; }
.page-hero--programs .page-hero__kicker {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: rgba(255, 255, 255, 0.9);
  margin: 0 0 12px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
}
.page-hero--programs .page-hero__title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  margin: 0 0 14px;
  color: #fff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
  line-height: 1.3;
}
.page-hero--programs .page-hero__desc {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.92);
  margin: 0;
  line-height: 1.6;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
}
@media (max-width: 767px) {
  .page-hero--programs {
    height: 260px;
    min-height: 240px;
  }
  .page-hero--programs .page-hero__title { font-size: clamp(1.5rem, 5vw, 2rem); }
  .page-hero--programs .page-hero__desc { font-size: 0.95rem; }
}

/* 목록: 큰 hero */
.blog-hero--list {
  height: 380px;
  min-height: 360px;
}
.blog-hero--list .blog-hero-inner { padding: 24px 20px; }
.blog-hero--list .blog-hero__title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  margin: 0 0 12px;
  color: #fff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}
.blog-hero--list .blog-hero__sub {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.92);
  margin: 0;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
}

/* 상세: slim hero + 제목/메타 */
.blog-hero--detail {
  height: 220px;
  min-height: 180px;
  align-items: flex-end;
  text-align: left;
}
.blog-hero--detail .blog-hero-inner {
  padding: 28px 24px 32px;
  padding-left: max(24px, env(safe-area-inset-left));
  padding-right: max(24px, env(safe-area-inset-right));
}
.blog-hero--detail .blog-hero__title {
  font-size: clamp(1.35rem, 3.5vw, 1.85rem);
  font-weight: 800;
  margin: 0 0 10px;
  color: #fff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
  line-height: 1.25;
}
.blog-hero--detail .blog-hero__meta {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.92);
  margin: 0;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
}
.blog-hero--detail .blog-hero__meta span + span::before {
  content: " · ";
  margin: 0 4px;
  color: rgba(255, 255, 255, 0.7);
}

/* 모바일: 목록 hero 높이 축소 */
@media (max-width: 767px) {
  .blog-hero--list {
    height: 260px;
    min-height: 240px;
  }
  .blog-hero--list .blog-hero__title { font-size: clamp(1.5rem, 5vw, 2rem); }
  .blog-hero--list .blog-hero__sub { font-size: 0.95rem; }
}

/* 모바일: 상세 hero 더 낮게 + 텍스트 축소 */
@media (max-width: 767px) {
  .blog-hero--detail {
    height: 160px;
    min-height: 140px;
  }
  .blog-hero--detail .blog-hero-inner { padding: 20px 20px 24px; }
  .blog-hero--detail .blog-hero__title {
    font-size: clamp(1.15rem, 4vw, 1.5rem);
  }
  .blog-hero--detail .blog-hero__meta { font-size: 0.8rem; }
}
