/* ===== 공통 프렐류드 (테마 6~12 공유 규칙) ===== */
:root{--bs-dark:#333;--t-bg:#fff;--t-ink:#1d1d1d;--t-muted:#777;--t-line:#e5e5e5;--hdr-h:80px;--t-font:'Pretendard Variable',Pretendard,-apple-system,BlinkMacSystemFont,system-ui,Roboto,sans-serif;--t-serif:'Noto Serif KR',serif}
html{scroll-behavior:smooth}
html body.theme-8{font-family:var(--t-font);color:var(--t-ink);background:var(--t-bg);min-height:100vh;display:flex;flex-direction:column;font-size:16px;letter-spacing:-.01em;word-break:keep-all;overflow-x:hidden}
html body.theme-8 main{flex:1 0 auto;width:100%;background:var(--t-bg);padding:0}
html body.theme-8 a{color:inherit}
html body.theme-8 a:hover{color:inherit}
html body.theme-8 img{max-width:100%}
html body.theme-8 .logo-container{display:flex;align-items:center;gap:0}
html body.theme-8 #logoArea img{max-height:44px;width:auto;display:block}
html body.theme-8 .navbar-brand{margin:0;font-weight:700}
html body.theme-8 .navbar-toggler{border:0;color:inherit;font-size:30px;line-height:1;padding:.25rem .5rem}
html body.theme-8 .navbar-toggler:focus{box-shadow:none}
html body.theme-8 .navbar-nav .dropdown-menu{border-radius:0;font-size:15px;min-width:180px}
html body.theme-8 .navbar-nav .dropdown-menu .dropdown-item{padding:.55rem 1.1rem;white-space:normal}
@media (min-width:992px){html body.theme-8 .navbar-nav .dropdown:hover>.dropdown-menu{display:block;margin-top:0}}
html body.theme-8 .link-list ul,
html body.theme-8 .navbar-top ul{list-style:none}
html body.theme-8 .link-list ul{display:flex;align-items:center;gap:14px;margin:0;padding:0}
html body.theme-8 .link-list ul li a{display:inline-flex;align-items:center;gap:6px;text-decoration:none;font-size:13px;line-height:1.2}
html body.theme-8 .link-list ul li a br{display:none}
html body.theme-8 .link-list ul li a img{width:20px!important;height:20px!important}
html body.theme-8 .footer-side-links{position:fixed;right:18px;bottom:22px;z-index:40}
html body.theme-8 .footer-side-links ul{list-style:none;margin:0;padding:0}
html body.theme-8 .btn-scroll-top{width:44px;height:44px;border-radius:50%;border:0;background:rgba(0,0,0,.65);color:#fff}
html body.theme-8 .wani-link-list-bg-block .bg-wrapper{position:relative}
html body.theme-8 .wani-link-list-bg-block .overlay{position:absolute;inset:0;background:#000;opacity:.5}
html body.theme-8 .wani-link-list-bg-block .container{position:relative;z-index:3}
html body.theme-8 .wani-link-list-bg-block .button-list{display:flex;gap:16px}
html body.theme-8 .slide-item .cover-slide-img{width:100%}
html body.theme-8 .wani-latest-list-section{padding:90px 0}
html body.theme-8 .wani-latest-list-section .list-group-item{display:flex;align-items:center;justify-content:space-between;background:transparent}
html body.theme-8 .board-container .container,
html body.theme-8 .page-container.sub .container{max-width:1200px}
html body.theme-8 .page-body h1{font-size:2.2rem;font-weight:700;word-break:auto-phrase}
html body.theme-8 .page-body h2{font-size:1.7rem;font-weight:700;word-break:auto-phrase}
html body.theme-8 .page-body h3{font-size:1.4rem;font-weight:600;word-break:auto-phrase}
html body.theme-8 .page-body h4,
html body.theme-8 .page-body h5,
html body.theme-8 .page-body h6{font-weight:600;word-break:auto-phrase}
html body.theme-8 .page-body .lead{font-weight:500}
@media (max-width:991.98px){html body.theme-8 .footer-side-links{right:12px;bottom:14px}}

/* 커버 슬라이드(제목·부제·버튼이 사진 위에 얹힌 형태) — 각 테마가 블록 크기를 정하고 글자 크기는 여기서 맞춘다 */
html body.theme-8 .wani-cover-slide-block .slide-item .cover-overlay{height:100%;opacity:.38}
html body.theme-8 .wani-cover-slide-block .slide-item .cover-slide-img{position:relative;display:flex;align-items:center}
html body.theme-8 .wani-cover-slide-block .slide-item .cover-text{padding:0 9%}
html body.theme-8 .wani-cover-slide-block .slide-item .cover-text .card-title{font-size:clamp(28px,4.4vw,68px);letter-spacing:-.035em;opacity:1;line-height:1.2;text-shadow:0 2px 18px rgba(0,0,0,.35)}
html body.theme-8 .wani-cover-slide-block .slide-item .cover-text .card-text{font-size:clamp(15px,1.7vw,24px);letter-spacing:-.01em;font-weight:400;line-height:1.55;text-shadow:0 1px 10px rgba(0,0,0,.35)}
html body.theme-8 .wani-cover-slide-block .slide-item .card-buttons .btn{font-size:clamp(13px,1.1vw,16px);padding:.55rem 1.4rem}
@media (max-width:767.98px){html body.theme-8 .wani-cover-slide-block .slide-item .cover-text{padding:0 7%}html body.theme-8 .wani-cover-slide-block .slide-item .card-buttons{margin-top:.6rem!important}}
html body.theme-8 .wani-cover-slide-block .slide-item .card-buttons .btn{color:#fff!important;border-color:rgba(255,255,255,.85)!important;background:rgba(255,255,255,.08)}
html body.theme-8 .wani-cover-slide-block .slide-item .card-buttons .btn:hover{background:#fff;color:#222!important}

/* ===== 테마 8 — 에디토리얼 표준형 + 인트로 게이트 =====
 * 사진 히어로 → 중앙 소개문 + 라인 아이콘 → '말씀 다시보기'(좌 제목/우 큰 카드) → 굵은 선 제목의 목록/갤러리 → 다크 푸터.
 * 메인 첫 방문 때 계절 배경의 '인트로 게이트'(슬라이드 + 바로가기 카드 3개)를 띄운다. */
:root{--t-bg:#fff;--t-ink:#2d2a26;--t-muted:#8a847d;--t-line:#e9e5df;--hdr-h:76px;--t8-brown:#4a3f35}
html body.theme-8 header{position:fixed;top:0;left:0;right:0;z-index:60;background:#fff;box-shadow:0 1px 0 var(--t-line)}
html body.theme-8 header .navbar{position:static;height:var(--hdr-h);padding:0 4vw;display:grid;grid-template-columns:auto 1fr auto;align-items:center;column-gap:30px;width:100%}
html body.theme-8 header .navbar-collapse{justify-content:center}
html body.theme-8 header .navbar-nav .dropdown-toggle::after{display:none}
html body.theme-8 header .navbar-nav .nav-item{padding:0 4px}
html body.theme-8 header .navbar-nav .nav-link{color:var(--t8-brown)!important;font-size:16px!important;font-weight:500;padding:.5rem .9rem}
html body.theme-8 header .navbar-nav .nav-link:hover{color:var(--bs-primary)!important}
html body.theme-8 header .navbar-brand,
html body.theme-8 header .navbar-toggler,
html body.theme-8 header .link-list ul li a{color:var(--t8-brown)!important}
html body.theme-8 header .link-list ul li a{font-size:13px!important;font-weight:500}
html body.theme-8 header .navbar-nav .dropdown-menu{border:0;border-top:2px solid var(--bs-primary);box-shadow:0 14px 30px rgba(0,0,0,.1)}
@media (max-width:991.98px){html body.theme-8 header .navbar{grid-template-columns:1fr auto;height:62px;padding:0 18px}:root{--hdr-h:62px}}

/* --- 히어로 --- */
html body.theme-8 .t8-hero{position:relative;margin-top:var(--hdr-h);height:min(44vw,600px);min-height:320px;background:#8a7e72 url(../images/hero.jpg) center/cover no-repeat;display:flex;align-items:flex-end}
html body.theme-8 .t8-hero::before{content:'';position:absolute;inset:0;background:linear-gradient(0deg,rgba(30,22,16,.62),rgba(30,22,16,.05) 55%)}
html body.theme-8 .t8-hero-in{position:relative;z-index:2;width:100%;max-width:1240px;margin:0 auto;padding:0 4vw 6vh;color:#fff}
html body.theme-8 .t8-hero h2{font-size:clamp(28px,3.6vw,52px);font-weight:700;line-height:1.28;letter-spacing:-.03em;margin:0 0 12px;text-shadow:0 2px 14px rgba(0,0,0,.3)}
html body.theme-8 .t8-hero p{margin:0;font-size:clamp(14px,1.3vw,18px);opacity:.92}

/* --- 에디터 커버 슬라이드(waniCoverSlide) = 히어로 모양 --- */
html body.theme-8 .wani-cover-slide-block{position:relative;margin:var(--hdr-h) 0 0!important;padding:0!important;max-width:none!important;width:100%;background:#8a7e72}
html body.theme-8 .wani-cover-slide-block .slide-item .cover-slide-img{height:min(44vw,600px)!important;min-height:320px;justify-content:center;align-items:flex-end}
html body.theme-8 .wani-cover-slide-block .slide-item .cover-overlay{height:100%!important;opacity:1!important;background:linear-gradient(0deg,rgba(30,22,16,.62),rgba(30,22,16,.05) 55%)!important}
html body.theme-8 .wani-cover-slide-block .slide-item .cover-text{width:100%;max-width:1240px;margin:0 auto;height:min(44vw,600px)!important;min-height:320px;justify-content:flex-end;align-items:flex-start;text-align:left;padding:0 4vw 6vh!important}
html body.theme-8 .wani-cover-slide-block .slide-item .cover-text .card-title{font-size:clamp(28px,3.6vw,52px)!important;font-weight:700!important;line-height:1.28;letter-spacing:-.03em!important;margin:0 0 12px;color:#fff!important;opacity:1;text-shadow:0 2px 14px rgba(0,0,0,.3)!important;text-align:left!important}
html body.theme-8 .wani-cover-slide-block .slide-item .cover-text .card-text{margin:0;font-size:clamp(14px,1.3vw,18px)!important;font-weight:400!important;opacity:.92;color:#fff!important;text-shadow:none!important;text-align:left!important}
html body.theme-8 .wani-cover-slide-block .slide-item .card-buttons{justify-content:flex-start!important;margin-top:1rem!important}
html body.theme-8 .wani-cover-slide-block .slick-prev,
html body.theme-8 .wani-cover-slide-block .slick-next{background:rgba(45,42,38,.75);width:42px;height:42px;border-radius:50%;color:#fff;z-index:5}
html body.theme-8 .wani-cover-slide-block .slick-prev{left:calc(4vw + 12px)}html body.theme-8 .wani-cover-slide-block .slick-next{right:calc(4vw + 12px)}
html body.theme-8 .wani-cover-slide-block .slick-dots{bottom:14px}
html body.theme-8 .wani-cover-slide-block .slick-dots li button::before{color:#fff!important;opacity:.5}
html body.theme-8 .wani-cover-slide-block .slick-dots li.slick-active button::before{opacity:1}

/* --- 본문 블록 --- */
html body.theme-8 :is(.wani-design-slide-block,.wani-cover-slide-block){max-width:1240px;margin:70px auto 0;padding:0 4vw}
html body.theme-8 :is(.wani-design-slide-block,.wani-cover-slide-block) .cover-slide-img{height:min(40vw,520px)!important}
html body.theme-8 :is(.wani-design-slide-block,.wani-cover-slide-block) .slick-prev,
html body.theme-8 :is(.wani-design-slide-block,.wani-cover-slide-block) .slick-next{background:rgba(45,42,38,.75);width:42px;height:42px;border-radius:50%;color:#fff;z-index:5}
html body.theme-8 :is(.wani-design-slide-block,.wani-cover-slide-block) .slick-prev{left:calc(4vw + 12px)}html body.theme-8 :is(.wani-design-slide-block,.wani-cover-slide-block) .slick-next{right:calc(4vw + 12px)}
html body.theme-8 .wani-link-list-block{background:#fff;}
html body.theme-8 .wani-link-list-block .container{max-width:1000px}
html body.theme-8 .wani-link-list-block h4{font-size:clamp(24px,2.6vw,36px);font-weight:300;line-height:1.5;color:#666}
html body.theme-8 .wani-link-list-block h6{font-size:17px;font-weight:600;color:var(--t-ink)!important}
html body.theme-8 .wani-link-list-block .box-list{display:flex;flex-wrap:wrap;justify-content:center;gap:36px 64px;margin-top:10px}
html body.theme-8 .wani-link-list-block .box-list .box{background:transparent;box-shadow:none;height:56px;max-width:none;width:auto}
html body.theme-8 .wani-link-list-block .box-list .box img{height:44px!important;width:auto;object-fit:contain}
html body.theme-8 .wani-link-list-block .box-list a div.mt-2{font-size:14px;font-weight:600!important;color:var(--t-ink)!important}


html body.theme-8 .wani-latest-list-section{background:#efefef;}

html body.theme-8 .wani-intro-link-block{background:#fff;}
html body.theme-8 .wani-intro-link-block>.container{max-width:1240px;padding:0;display:grid;grid-template-columns:300px minmax(0,1fr);column-gap:64px;align-items:start}
html body.theme-8 .wani-intro-link-block>.container>.text-center{grid-column:1;text-align:left!important}
html body.theme-8 .wani-intro-link-block>.container>.text-center h4{font-size:34px;font-weight:700;letter-spacing:-.03em;padding-bottom:22px;margin-bottom:22px!important;position:relative}
html body.theme-8 .wani-intro-link-block>.container>.text-center h4::after{content:'';position:absolute;left:0;bottom:0;width:72%;height:3px;background:var(--t-ink)}
html body.theme-8 .wani-intro-link-block>.container>.text-center h6{font-size:15px;font-weight:400;color:var(--t-muted);line-height:1.7;margin:0!important}
html body.theme-8 .wani-intro-link-block>.container>.wani-intro-link-slider{grid-column:2;grid-row:1 / span 2;margin:0!important;padding:0!important}
html body.theme-8 .wani-intro-link-block>.container>.d-flex{grid-column:1;justify-content:flex-start!important}
html body.theme-8 .wani-intro-link-list{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:28px}
html body.theme-8 .wani-intro-link-list .wani-intro-link-slide-item{padding:0!important}
html body.theme-8 .wani-intro-link-list .card{border:0!important;border-radius:0;background:#f7f5f2;box-shadow:none!important}
html body.theme-8 .wani-intro-link-list .card-img-top{height:250px!important;border-radius:0}
html body.theme-8 .wani-intro-link-list .card-body{padding:20px 22px 22px}
html body.theme-8 .wani-intro-link-list .card-title{font-size:20px;font-weight:700}
html body.theme-8 .wani-intro-link-list .card-text{font-size:14px;color:var(--t-muted)!important}
html body.theme-8 .wani-intro-link-list .btn-group .btn{border:0;background:transparent;color:var(--t-ink);font-size:13px;font-weight:600;padding:6px 0;text-align:left}
html body.theme-8 .wani-intro-link-list .btn-group .btn::after{content:' →'}
html body.theme-8 .wani-intro-link-list .btn-group{flex-wrap:wrap;gap:0 18px}
@media (max-width:991.98px){html body.theme-8 .wani-intro-link-block>.container{display:block}html body.theme-8 .wani-intro-link-list{grid-template-columns:1fr}}
html body.theme-8 .wani-intro-link-block .btn-danger{border-radius:0;background:var(--t-ink);border-color:var(--t-ink)}

/* 새가족 / 다음세대 : 사진 왼쪽 + 글 오른쪽 */
html body.theme-8 .wani-link-list-bg-block .bg-wrapper{background-size:62% 100%!important;background-position:left center!important;background-repeat:no-repeat!important;background-color:#fff!important;padding:0!important;min-height:420px;display:flex;align-items:center}
html body.theme-8 .wani-link-list-bg-block .overlay{display:none}
html body.theme-8 .wani-link-list-bg-block .container{max-width:none;margin:0;margin-left:62%;width:38%;padding:48px 5vw 48px 4vw}
html body.theme-8 .wani-link-list-bg-block .container h4{font-size:clamp(24px,2.4vw,34px);font-weight:300;line-height:1.4;color:var(--t-ink);margin-bottom:30px}
html body.theme-8 .wani-link-list-bg-block .container h4 b,
html body.theme-8 .wani-link-list-bg-block .container h4 strong{font-weight:700}
html body.theme-8 .wani-link-list-bg-block .container h6{color:var(--t-muted)}
html body.theme-8 .wani-link-list-bg-block .button-list{flex-direction:column;gap:0;margin-top:18px}
html body.theme-8 .wani-link-list-bg-block .button-list a,
html body.theme-8 .wani-link-list-bg-block .button-list button{background:transparent!important;border:0!important;border-bottom:2px solid var(--t-ink)!important;border-radius:0;color:var(--t-ink)!important;padding:18px 0!important;margin:0!important;font-size:18px!important;font-weight:700!important;width:100%}
html body.theme-8 .wani-link-list-bg-block .button-list a:hover{color:var(--bs-primary)!important;border-color:var(--bs-primary)!important}
@media (max-width:991.98px){html body.theme-8 .wani-link-list-bg-block .bg-wrapper{background-size:100% 240px!important;background-position:top center!important;padding-top:240px!important;display:block}html body.theme-8 .wani-link-list-bg-block .container{margin-left:0;width:100%;padding:34px 22px}}

/* 최신 목록: 굵은 선 제목 */
html body.theme-8 .wani-intro-link-block,
html body.theme-8 .wani-latest-list-section{background:#efefef}


/* 서브 페이지 */
html body.theme-8 .page-container.sub{padding:calc(var(--hdr-h) + 56px) 4vw 100px;background:#fff}
html body.theme-8 .page-container.sub .page-body{background:transparent;padding:0}
html body.theme-8 .page-container.sub .page-header h4{font-size:clamp(30px,3.6vw,46px);font-weight:700;letter-spacing:-.03em;text-align:left;padding-bottom:20px;border-bottom:3px solid var(--t-ink)}
html body.theme-8 .board-container{padding-top:calc(var(--hdr-h) + 20px)}
html body.theme-8 .board-container h4{font-size:clamp(30px,3.6vw,46px);font-weight:700;letter-spacing:-.03em;padding-bottom:20px;border-bottom:3px solid var(--t-ink)}
html body.theme-8 .card{border-radius:0}

html body.theme-8 footer{background:#2f2c29;color:#cfc8c0;padding:56px 4vw;margin-top:0}
html body.theme-8 footer .container{max-width:1240px;padding:0}
html body.theme-8 footer h5{font-size:15px;font-weight:600;color:#fff}
html body.theme-8 footer p,
html body.theme-8 footer small{font-size:13px;color:#a9a199}
html body.theme-8 footer a{color:#cfc8c0;text-decoration:none}
html body.theme-8 footer .text-warning{color:#e3b55c!important}
html body.theme-8 footer #footerLogoArea img{max-height:34px;filter:brightness(0) invert(1);opacity:.9}

/* ===== 인트로 게이트 ===== */
html body.theme-8 .t8-gate{position:fixed;inset:0;z-index:2000;overflow:auto;background:#cfdcec url(../images/gate-bg.jpg) center/cover no-repeat;display:flex;justify-content:center}
html body.theme-8 .t8-gate[hidden]{display:none}
html body.theme-8 .t8-gate::before{content:'';position:fixed;inset:0;background:linear-gradient(180deg,rgba(170,200,230,.55),rgba(255,248,214,.55))}
html body.theme-8 .t8-gate-in{position:relative;z-index:2;width:min(1000px,92vw);padding:7vh 0 28px;display:flex;flex-direction:column;align-items:center}
html body.theme-8 .t8-gate-logo{margin-bottom:34px}html body.theme-8 .t8-gate-logo img{max-height:56px;width:auto}
html body.theme-8 .t8-gate-main{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(0,1fr);gap:16px;width:100%}
html body.theme-8 .t8-slides{position:relative;aspect-ratio:16/10.5;overflow:hidden;background:#fff;box-shadow:0 14px 40px rgba(0,0,0,.15)}
html body.theme-8 .t8-slides .t8-slide{position:absolute;inset:0;opacity:0;transition:opacity .5s;background-size:contain;background-position:center;background-repeat:no-repeat;background-color:#fff}
html body.theme-8 .t8-slides .t8-slide.on{opacity:1}
html body.theme-8 .t8-ctl{position:absolute;right:16px;bottom:14px;display:flex;align-items:center;gap:10px;color:#fff;font-size:13px;background:rgba(0,0,0,.45);padding:5px 12px;border-radius:99px}
html body.theme-8 .t8-ctl button{border:0;background:transparent;color:#fff;padding:0 4px;font-size:15px;line-height:1}
html body.theme-8 .t8-side{display:flex;flex-direction:column;gap:14px}
html body.theme-8 .t8-card{flex:1;position:relative;display:flex;flex-direction:column;justify-content:space-between;padding:22px 24px;text-decoration:none;color:#fff;overflow:hidden;min-height:110px;box-shadow:0 10px 26px rgba(0,0,0,.12)}
html body.theme-8 .t8-card b{font-size:21px;font-weight:600}
html body.theme-8 .t8-card small{font-size:12px;opacity:.9}
html body.theme-8 .t8-card.live{background:#3a3631 url(../images/hero.jpg) center/cover}
html body.theme-8 .t8-card.live::before{content:'';position:absolute;inset:0;background:rgba(20,16,12,.55)}
html body.theme-8 .t8-card.live>*{position:relative}
html body.theme-8 .t8-card.live em{font-style:normal;color:#ff4d4d;font-weight:700;font-size:13px;letter-spacing:.04em;display:block;margin-bottom:6px}
html body.theme-8 .t8-card.bulletin{background:#dccdb4;color:#6b4e23}
html body.theme-8 .t8-card.gallery{background:#b6d9d9;color:#1f5c5c}
html body.theme-8 .t8-gate-bar{width:100%;display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-top:34px;font-size:13px;color:#33302c}
html body.theme-8 .t8-gate-bar label{display:inline-flex;align-items:center;gap:7px;margin:0 0 0 14px;cursor:pointer}
html body.theme-8 .t8-gate-bar input{width:20px;height:20px;accent-color:#2d2a26}
html body.theme-8 .t8-gate-bar a{text-decoration:none;color:inherit;display:inline-flex;align-items:center;gap:6px}
html body.theme-8 .t8-gate-close{width:44px;height:44px;border-radius:50%;border:0;background:#2d2a26;color:#fff;font-size:22px;line-height:1;margin-left:16px}
@media (max-width:767.98px){html body.theme-8 .t8-gate-main{grid-template-columns:1fr}html body.theme-8 .t8-side{flex-direction:row}html body.theme-8 .t8-card{min-height:90px;padding:14px}html body.theme-8 .t8-card b{font-size:16px}}
html body.theme-8.t8-lock{overflow:hidden}
