:root{
  --bg:#ffffff;
  --text:#111;
  --muted:#666;
  --line:#e8e8e8;
  --brand:#111;
  --radius:16px;
}

*{ box-sizing:border-box; }
body{ margin:0; font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial; background:#fafafa; color:var(--text); }
a{ color:inherit; text-decoration:none; }

.container{ max-width:1100px; margin:0 auto; padding:16px; }

.header{ position:sticky; top:0; background:rgba(255,255,255,.9); backdrop-filter: blur(8px); border-bottom:1px solid var(--line); }
.headerRow{ display:flex; align-items:center; justify-content:space-between; gap:12px; padding:10px 0; }
.logo{ font-weight:800; letter-spacing:-0.5px; }

.nav{ display:flex; gap:10px; flex-wrap:wrap; }
.nav a{ padding:8px 10px; border-radius:12px; }
.nav a:hover{ background:#111; color:#fff; }

.hero{ padding:60px 0; background: #fff; border-bottom:1px solid var(--line); }
.hero h1{ margin:0 0 10px; font-size:42px; letter-spacing:-1px; }
.hero p{ margin:0 0 18px; color:var(--muted); font-size:18px; }

.btn{ display:inline-block; padding:10px 14px; border-radius:14px; background:#111; color:#fff; font-weight:600; }

.section{ padding:28px 0; }
.grid{ display:grid; grid-template-columns: repeat(3, 1fr); gap:14px; }
.card{ background:#fff; border:1px solid var(--line); border-radius:var(--radius); padding:16px; box-shadow: 0 6px 20px rgba(0,0,0,.04); }
.card h2{ margin:0 0 8px; font-size:18px; }
.card p{ margin:0; color:var(--muted); }

.footer{ padding:20px 0; border-top:1px solid var(--line); background:#fff; color:var(--muted); }

@media (max-width: 800px){
  .grid{ grid-template-columns: 1fr; }
  .hero h1{ font-size:32px; }
}

/* ===== HERO (사진 배경 버전) ===== */
.hero{
  position: relative;
  height: 520px;
  padding: 0;               /* 기존 padding 60px 0 무력화 */
  overflow: hidden;
  background: #000;
  border-bottom: none;      /* 기존 border-bottom 무력화 */
}

/* 배경 이미지 레이어 */
.hero__bg{
  position: absolute;
  inset: 0;
  background-image: url("../img/hero.jpg"); /* assets/img/hero.jpg */
  background-size: cover;
  background-position: center -30%;
  transform: scale(1.03);
}

/* 어두운 오버레이(텍스트 잘 보이게) */
.hero__bg::after{
  content:"";
  position:absolute;
  inset:0;
  background: linear-gradient(
    90deg,
    rgba(0,0,0,0.65) 0%,
    rgba(0,0,0,0.35) 45%,
    rgba(0,0,0,0.05) 100%
  );
}

/* 글씨 컨텐츠 */
.hero__content{
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: #fff;
  padding-top: 90px; /* 헤더 높이만큼 여유 */
}

/* 기존 .hero h1/.hero p 스타일(회색/검정)을 덮어쓰기 */
.hero__title{
  margin: 0 0 14px;
  font-size: 48px;
  line-height: 1.1;
  letter-spacing: -1px;
  color: #fff;
}
.hero__kicker{
  margin: 0 0 10px;
  font-size: 14px;
  opacity: 0.85;
}
.hero__sub{
  margin: 0 0 18px;
  font-size: 16px;
  opacity: 0.85;
  color: #fff; /* 기존 var(--muted) 덮기 */
}

/* 아래 곡선 */
.hero__curve{
  display: none;
}

/* 반응형 */
@media (max-width: 800px){
  .hero{ height: 420px; }
  .hero__title{ font-size: 34px; }
  .hero__content{ padding-top: 90px; }
}

.header{
  position: fixed;          /* absolute 대신 fixed */
  top: 0;
  left: 0;
  right: 0;
  background: transparent;
  border-bottom: none;
  z-index: 10;
}

.logo,
.nav a{
  color: #fff;
}

.nav a:hover{
  background: rgba(255,255,255,0.2);
  color: #fff;
}
/* ===== PAGE HERO (서브페이지 상단) ===== */
.pageHero{
  padding: 80px 0 40px;
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.pageHero h1{
  margin: 0 0 8px;
  font-size: 36px;
  letter-spacing: -1px;
}
.pageHero p{
  margin: 0;
  color: var(--muted);
}

/* ===== INFO BOX ===== */
.infoBox{
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
}
.infoBox h2{
  margin: 0 0 10px;
  font-size: 18px;
}
.infoBox ul{
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
}
.infoBox li{
  margin-bottom: 6px;
}

/* ===== SUB HERO (서브페이지 상단 이미지) ===== */
.subHero{
  position: relative;
  height: 320px;
  overflow: hidden;
  background: #000;
}

/* 배경 이미지 */
.subHero__bg{
  position: absolute;
  inset: 0;
  background-image: url("../img/worship-hero.jpg");
  background-size: cover;
  background-position: center 20%;
}

/* 어두운 오버레이 */
.subHero__bg::after{
  content:"";
  position:absolute;
  inset:0;
  background: rgba(0,0,0,0.45);
}

/* 텍스트 */
.subHero__content{
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: #fff;
  padding-top: 80px; /* fixed header 보정 */
}

.subHero h1{
  margin: 0 0 6px;
  font-size: 32px;
  letter-spacing: -1px;
}

.subHero p{
  margin: 0;
  font-size: 15px;
  opacity: 0.85;
}

/* 모바일 */
@media (max-width: 600px){
  .subHero{
    height: 240px;
  }
  .subHero h1{
    font-size: 26px;
  }
}

/* ===== 예배시간 리스트형(스샷 스타일) ===== */
.scheduleTopNote{
  margin: 0 0 10px;
  font-size: 13px;
  color: var(--muted);
}

.scheduleList{
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

/* 항목 한 줄 */
.scheduleItem{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 18px;
  border-bottom: 1px solid var(--line);
}

.scheduleItem:last-child{
  border-bottom: none;
}

/* 왼쪽 텍스트 */
.scheduleLeft{
  min-width: 0;
}

.scheduleTitle{
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.scheduleSub{
  margin-top: 6px;
  font-size: 13px;
  color: var(--muted);
}

/* 오른쪽 시간 */
.scheduleRight{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  color: #111;
  font-weight: 600;
}

.clock{
  opacity: 0.65;
}

/* 섹션 구분(주중 예배) */
.scheduleSection{
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 26px 18px 12px;
  background: #fff;
}

.sectionIcon{
  font-size: 18px;
}

.sectionTitle{
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -0.7px;
}

/* 굵은 라인 느낌 */
.scheduleSection::after{
  content:"";
  display:block;
  height: 2px;
  background: #111;
  flex: 1;
  margin-left: 14px;
  border-radius: 999px;
  opacity: 0.9;
}

/* 하단 안내 */
.scheduleFooter{
  text-align: center;
  padding: 30px 10px 10px;
}

.footerLine{
  height: 1px;
  background: var(--line);
  margin: 18px 0 18px;
}

.footerInfo{
  margin: 6px 0;
  font-size: 13px;
  color: #333;
}

.footerHint{
  margin: 14px 0 0;
  font-size: 12px;
  color: var(--muted);
}

/* 모바일 */
@media (max-width: 600px){
  .scheduleItem{
    align-items: flex-start;
    padding: 18px 14px;
  }
  .scheduleTitle{
    font-size: 18px;
  }
  .scheduleRight{
    font-size: 13px;
  }
}

/* =========================
   예배안내 - 섹션 + 카드 그리드(스샷 스타일)
========================= */
.wSection{
  margin-bottom: 34px;
}

.wSectionHeader{
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 6px 0 14px;
}

.wIcon{
  font-size: 18px;
}

.wTitle{
  margin: 0;
  font-size: 34px;
  letter-spacing: -1px;
  font-weight: 900;
}

/* 섹션별 포인트 컬러 느낌(스샷처럼) */
.wSectionHeader.sunday .wIcon{ color: #1a57ff; }
.wSectionHeader.weekday .wIcon{ color: #8a2bff; }

/* 카드 그리드: 데스크탑 3열 */
.wGrid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

/* 카드 */
.wCard{
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px 18px;
  box-shadow: 0 10px 24px rgba(0,0,0,0.06);
}

/* 섹션별 테두리 톤(스샷처럼 약간 다르게) */
.wCard.weekday{
  border-color: rgba(138, 43, 255, 0.25);
}
.wCard.sunday{
  border-color: rgba(26, 87, 255, 0.18);
}

.wCardTop{
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: #333;
}

.wMiniIcon{ opacity: .7; }

.wName{
  font-weight: 700;
}

/* 시간 강조(스샷 느낌) */
.wTime{
  margin-top: 14px;
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -0.5px;
}

/* 섹션별 시간 컬러 */
.wCard.sunday .wTime{ color: #1a57ff; }
.wCard.weekday .wTime{ color: #8a2bff; }

.wDesc{
  margin-top: 8px;
  font-size: 13px;
  color: var(--muted);
}

/* 반응형: 태블릿 2열, 모바일 1열 */
@media (max-width: 1000px){
  .wGrid{ grid-template-columns: repeat(2, 1fr); }
  .wTitle{ font-size: 28px; }
}

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

/* =========================
   예배안내 카드 - 세로형
========================= */
.wGrid{
  display: grid;
  grid-template-columns: 1fr;   /* ✅ 무조건 1열 */
  gap: 14px;
}

/* =========================
   예배안내: 섹션 가로 / 내용 세로
========================= */

/* 섹션들을 가로로 */
.wSectionRow{
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* 주일 / 주중 / 기타 */
  gap: 24px;
  align-items: flex-start;
}

/* 각 섹션 */
.wSection{
  background: #f9fafb;
  border-radius: 18px;
  padding: 18px 16px;
}

/* 섹션 헤더 */
.wSectionHeader{
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}

.wTitle{
  font-size: 22px;
  font-weight: 900;
  margin: 0;
}

/* 카드 리스트는 세로 */
.wGrid{
  display: grid;
  grid-template-columns: 1fr; /* ✅ 세로 */
  gap: 12px;
}

/* 카드 */
.wCard{
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 14px;
}

/* 컬러 포인트 */
.wSectionHeader.sunday .wIcon{ color:#1a57ff; }
.wSectionHeader.weekday .wIcon{ color:#8a2bff; }
.wSectionHeader.etc .wIcon{ color:#00a884; }

/* 반응형 */
@media (max-width: 1000px){
  .wSectionRow{
    grid-template-columns: 1fr; /* 태블릿/모바일에서는 세로 */
  }
}

/* ===== CONTACT (오시는길) ===== */
.contactGrid{
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 16px;
  align-items: start;
}

.mapCard, .infoCard{
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 6px 20px rgba(0,0,0,.04);
  overflow: hidden;
}

.mapBox{
  width: 100%;
  height: 420px;
}

.mapActions{
  display: flex;
  gap: 10px;
  padding: 14px;
  border-top: 1px solid var(--line);
}

.btnGhost{
  background: transparent;
  color: #111;
  border: 1px solid var(--line);
}

.infoCard{
  padding: 18px;
}

.infoCard h2{
  margin: 0 0 8px;
  font-size: 16px;
}

.bigText{
  margin: 0 0 14px;
  color: #222;
  font-weight: 600;
}

.divider{
  height: 1px;
  background: var(--line);
  margin: 14px 0;
}

.infoList{
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
}

@media (max-width: 900px){
  .contactGrid{
    grid-template-columns: 1fr;
  }
  .mapBox{
    height: 340px;
  }
}

/* 오시는길 히어로 이미지(원하면 파일명 교체) */
.contactHero .subHero__bg{
  background-image: url("../img/contact-hero.jpg");
  background-position: center 35%;
}
