/* 원남 통합 — 윗줄·모자이크 말씀 + 둥근 흰 카드 + 큰 가는 제목·아래 바로가기 */
:root { --blue: #0f3b6e; --blue-d: #0a2b52; --sky: #00a6c1; --navy: #0f3b6e; --beige: #f1ede6; --dark: #141a22; --font: 'Pretendard', 'Noto Sans KR', sans-serif; --hh: 122px; }
body { color: #2a3038; padding-bottom: 62px; }

/* 윗줄 + 흰 상단 */
.topbar { display: block; background: var(--navy); color: #c5d3e4; font-size: 13px; }
.topbar .tb-in { max-width: 1280px; margin: 0 auto; height: 36px; display: flex; align-items: center; justify-content: flex-end; gap: 8px; padding: 0 20px; }
.topbar a:hover { color: #fff; }
.topbar i { opacity: .4; font-style: normal; }
.gnb { background: #fff; color: #141a22; box-shadow: 0 1px 0 #e6e2da; }
.gnb-in { height: 86px; max-width: 1280px; }
.logo .lg { max-height: 54px; }
.nav > ul > li > a { line-height: 86px; padding: 0 clamp(16px, 2.2vw, 36px); font-size: 18px; font-weight: 600; color: #141a22; }
.nav > ul > li.cur > a, .nav > ul > li:hover > a { color: var(--sky); }
.nav .sub { border-top: 0; border-radius: 14px; box-shadow: 0 14px 30px rgba(15,59,110,.14); padding: 12px 0; }
.nav .sub a:hover { color: var(--sky); background: var(--beige); }
.gnb-in > .util { display: none; }
.nav-btn span { background: #141a22; }
.sitemap { background: rgba(15, 40, 75, .97); }

/* 메인 사진 */
.hero.hero-stack { background: #fff; }
.hero-stack .hero-txt { background: #fff; color: var(--dark); padding: 38px 20px 30px; }
.hero-stack .hero-txt h2 { font-weight: 300; }
.hero-stack .hero-txt h2 span { background: none; padding: 0; }
.hero-stack .hero-txt p { color: #6a7280; opacity: 1; }
.hero-stack .hero-dots { background: #fff; }
.hero-stack .hero-dots button { background: #d7d2c8; } .hero-stack .hero-dots button.on { background: var(--sky); }

/* 칸 제목: 가는 큰 한글 + 청록 영어 */
.m-head { display: flex; flex-direction: column-reverse; align-items: center; margin-bottom: 44px; }
.m-head h2 { font-size: clamp(28px, 3.2vw, 44px); font-weight: 300; color: var(--dark); letter-spacing: -.02em; }
.m-head h2::before { display: none; }
.m-head .eyebrow { margin: 8px 0 0; color: var(--sky); font-size: 15px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }

/* 버튼 */
.btn-box { min-width: 140px; height: 48px; padding: 0 24px; border-radius: 30px; border: 1px solid var(--navy); color: var(--navy); font-size: 15px; font-weight: 600; }
.btn-box.light { background: var(--sky); border-color: var(--sky); color: #fff; }
.btn-box.light:hover { background: #008ba3; }
.btn-box.black { background: var(--navy); border-color: var(--navy); color: #fff; }

/* 표어 */
.m-welcome { background: #fff; padding: 70px 0 50px; }
.m-welcome .deco { display: none; }
.m-welcome .eyebrow { color: var(--sky); font-size: 15px; font-weight: 600; letter-spacing: .1em; margin-bottom: 12px; }
.m-welcome h2 { font-size: clamp(24px, 2.8vw, 38px); font-weight: 300; }
.m-welcome h2 b, .m-welcome h2 strong { font-weight: 700; }
.m-welcome .txt { color: #6a7280; }

/* 바로가기: 베이지 바탕 흰 둥근 카드 */
/* 바로가기: 사진을 카드 전체에 깔고 이름은 사진 위 아래쪽 흰 글씨 */
.m-items { background: var(--beige); padding: 60px 0; }
.m-items .wrap > :last-child { margin-bottom: 0; }
.m-items .cards { max-width: 1240px; gap: 18px; margin: 0 auto; }
.m-items .card { position: relative; display: block; overflow: hidden; padding: 0; aspect-ratio: 4 / 3; min-height: 0; border-radius: 18px; background: var(--navy); color: #fff; text-align: left; box-shadow: 0 6px 18px rgba(15,59,110,.1); }
.m-items a.card:hover { background: var(--navy); color: #fff; box-shadow: 0 14px 30px rgba(15,59,110,.22); }
.m-items .card-img { position: absolute; inset: 0; width: auto; height: auto; margin: 0; border-radius: 0; background-size: cover; background-position: center; transition: transform .5s; }
.m-items a.card:hover .card-img { transform: scale(1.06); }
.m-items .card::after { content: ''; position: absolute; inset: 0; background: linear-gradient(transparent 40%, rgba(10,25,50,.75)); }
.m-items .card-body { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; padding: 20px 22px; }
.m-items .card-body h4 { font-size: 20px; font-weight: 700; color: #fff; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.m-items .card-body h4::after { content: '→'; font-weight: 400; transition: transform .3s; }
.m-items a.card:hover .card-body h4::after { transform: translateX(4px); }

/* 말씀: 모자이크 타일 */
.m-sermon { background: #fff; color: #fff; padding: 80px 0; }
.m-sermon .deco { display: none; }
.ms-grid { max-width: 1240px; grid-template-columns: 1.6fr 1fr 1fr; grid-template-rows: 230px 230px; gap: 14px; align-items: stretch; }
.ms-side li { height: 100%; }
.ms-side a { height: 100%; }
.ms-thumb { display: block; grid-column: 1; grid-row: 1 / 3; position: relative; border-radius: 18px; overflow: hidden; background: #111; }
.ms-thumb .th { position: absolute; inset: 0; background: center/cover no-repeat; transition: transform .5s; }
.ms-thumb:hover .th { transform: scale(1.04); }
.ms-thumb::after { content: ''; position: absolute; inset: 0; background: linear-gradient(rgba(0,0,0,.05), rgba(10,25,50,.25)); }
.ms-thumb .play { position: absolute; right: 22px; top: 22px; width: 54px; height: 54px; border-radius: 50%; background: rgba(255,255,255,.92); z-index: 2; }
.ms-thumb .play::after { content: ''; position: absolute; left: 21px; top: 17px; border: 10px solid transparent; border-left: 15px solid var(--navy); border-right: 0; }
.ms-main { grid-column: 2 / 4; grid-row: 1; background: var(--navy); border-radius: 18px; padding: 28px 30px; display: flex; flex-direction: column; justify-content: center; }
.ms-label { color: var(--sky); font-size: 14px; font-weight: 700; letter-spacing: .1em; }
.ms-label i { display: none; }
.ms-main h3 { font-size: clamp(20px, 2vw, 28px); font-weight: 700; color: #fff; margin-bottom: 4px; }
.ms-main .bible, .ms-main .who { color: #c5d3e4; font-size: 15px; margin-bottom: 4px; }
.ms-btns { margin-top: 14px; }
.ms-btns .btn-box { min-width: 0; height: 40px; padding: 0 18px; font-size: 14px; }
.ms-btns .btn-box.black { background: transparent; border-color: rgba(255,255,255,.6); color: #fff; }
.ms-side { grid-column: 2 / 4; grid-row: 2; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.ms-side a { aspect-ratio: auto; border-radius: 18px; }
.ms-side .t { background: linear-gradient(transparent, rgba(10,25,50,.85)); }

/* 소식 카드 */
.news-band { background: #fff; padding: 20px 0 0; }
.news-band .m-head { margin: 0; }
.news-body { background: #fff; color: #2a3038; padding: 20px 0 64px; } /* 11-08 교회소식 칸 작게 (전 30px 0 90px) */
.news-grid { max-width: 1240px; grid-template-columns: 300px 1fr; }
.news-l h3 { color: var(--dark); font-size: 22px; font-weight: 700; }
.news-l p { color: #6a7280; font-size: 15px; }
.news-r { background: var(--beige); border-radius: 16px; padding: 8px 24px 12px; }
.news-list { border-top: 0; }
.news-list li { border-bottom: 1px solid #e3ddd2; padding: 10px 2px; font-size: 15px; }
.news-list li:last-child { border-bottom: 0; }
.news-list a { font-weight: 500; }
.news-list span { color: #8a8f98; font-size: 13px; }
.tab-nav.box { background: none; }
.tab-nav.box button { border-radius: 30px; border: 1px solid #ddd6ca; background: #fff; margin-right: 6px; }
.tab-nav.box button.on { background: var(--navy); border-color: var(--navy); color: #fff; }

/* 앨범 */
.m-gallery { background: var(--beige); }
.gal-grid { grid-auto-rows: 220px; gap: 16px; }
.gal-grid a { border-radius: 18px; }
.gal-grid .cap { background: rgba(15, 59, 110, .85); }

/* 아래 고정 바로가기 */
.quickbar { display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; background: var(--navy); color: #fff; box-shadow: 0 -4px 14px rgba(0,0,0,.12); }
.quickbar ul { list-style: none; margin: 0 auto; padding: 0 10px; max-width: 1100px; display: flex; }
.quickbar li { flex: 1; }
.quickbar a { display: flex; align-items: center; justify-content: center; gap: 10px; height: 62px; font-size: 15px; font-weight: 500; }
.quickbar a:hover { color: var(--sky); }
.quickbar .qi { width: 28px; height: 28px; border-radius: 8px; background: center/cover; flex: none; }

/* 아래 */
.foot-map { background: var(--beige); color: #333; }
.fm-cols h3 { color: var(--navy); border-bottom-color: #ddd6ca; }
.fm-cols a:hover { color: var(--sky); }
.foot { background: var(--navy); color: #b6c4d6; }
.f-copy { color: #8ea0b8; }
.to-top { position: fixed; right: 22px; bottom: 80px; top: auto; z-index: 40; width: 48px; height: 48px; border-radius: 50%; background: var(--sky); }

/* 서브 */
.sub-visual::before { background: rgba(10, 30, 60, .35); }
.location { background: #fff; }
.blk-title { border-left-color: var(--sky); }
.tab-nav button { border-radius: 30px; margin: 0 6px 6px 0; }
.tab-nav button.on { background: var(--navy); border-color: var(--navy); }
.people .ph, .b-gallery .th, .card { border-radius: 18px; overflow: hidden; }
.b-list { border-top-color: var(--navy); }
.paging b { background: var(--navy); border-color: var(--navy); }
.btn { border-radius: 30px; }

@media (max-width: 1024px) {
  :root { --hhm: 64px; }
  .topbar { display: none; }
  .gnb-in { height: var(--hhm); }
  .logo .lg { max-height: 40px; }
  .ms-grid { grid-template-columns: 1fr; grid-template-rows: none; }
  .ms-thumb, .ms-main, .ms-side { grid-column: 1; grid-row: auto; }
  .ms-thumb { aspect-ratio: 16/9; }
  .ms-side a { aspect-ratio: 16/10; height: auto; }
  .news-grid { grid-template-columns: 1fr; gap: 12px; }
  .news-r { padding: 10px 16px 14px; }
  /* 휴대폰: 위 가운데 제목과 겹치는 왼쪽 제목·NEWS 는 숨기고 더보기만 작게 오른쪽에 (11-08) */
  .m-sermon { padding: 50px 0 30px; }
  .news-band { padding-top: 10px; }
  .news-body { padding: 18px 0 60px; }
  .news-l { display: flex; justify-content: flex-end; }
  .news-l h3, .news-l p { display: none; }
  .news-l .btn-box { min-width: 0; height: 36px; padding: 0 16px; font-size: 14px; }
  .news-list li { padding: 11px 2px; font-size: 14px; }
  .m-items { padding: 40px 0; }
  .m-items .cards { gap: 12px; }
  .m-items .card { aspect-ratio: 4 / 3; }
  .m-items .card-img { width: auto; height: auto; margin: 0; }
  .m-items .card-body { padding: 12px 14px; }
  .m-items .card-body h4 { font-size: 15px; }
  .quickbar a { flex-direction: column; gap: 2px; font-size: 11px; height: 58px; }
  .quickbar .qi { width: 22px; height: 22px; }
  body { padding-bottom: 58px; }
  .to-top { bottom: 70px; right: 10px; width: 40px; height: 40px; opacity: .85; }
  .to-top svg { width: 20px; height: 20px; }
}
