/* 마하나임 찬양대 - 산뜻한 버전 */
.mh-wrap{--ink:#12263F;--muted:#4A5D75;--blue:#1B6FC2;--blue-d:#0F4C8A;--sky:#E6F3FF;--band:#EAF5FF;--line:#DCEBFA;
  color:var(--ink);font-family:'Noto Sans KR','Apple SD Gothic Neo','Malgun Gothic',sans-serif;background:#F7FBFF}
.mh-wrap a{text-decoration:none}
.mh-inner{max-width:1120px;margin:0 auto;padding:0 24px;box-sizing:border-box}
.mh-small{font-size:14px;color:var(--muted);margin:0}
.mh-blue{color:var(--blue);font-weight:700}

/* 소개 */
.mh-hero{background:var(--band)}
.mh-hero-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(320px,1fr));gap:48px;align-items:center;padding-top:64px;padding-bottom:64px}
.mh-eyebrow{margin:0 0 12px;font-size:15px;font-weight:700;color:var(--blue);letter-spacing:.04em}
.mh-h1{margin:0;font-size:48px;line-height:1.2;color:var(--ink);font-weight:700}
.mh-lead{margin:20px 0 0;font-size:18px;line-height:1.7;color:var(--muted)}
.mh-btns{display:flex;flex-wrap:wrap;gap:12px;margin-top:32px}
.mh-btn{display:inline-flex;align-items:center;min-height:44px;padding:0 22px;border-radius:999px;font-weight:700}
.mh-btn-fill{background:var(--blue);color:#fff!important}
.mh-btn-fill:hover{background:var(--blue-d)}
.mh-btn-line{background:#fff;color:var(--blue)!important;border:1px solid #BBD9F5}
.mh-btn-line:hover{background:var(--sky)}

/* 카드 / 썸네일 */
.mh-card{display:block;background:#fff;border:1px solid var(--line);border-radius:20px;padding:28px;color:var(--ink)}
.mh-hero-card{padding:20px}
.mh-hero-card:hover .mh-title,.mh-vid:hover .mh-title{color:var(--blue)}
.mh-thumb{position:relative;aspect-ratio:16/9;background:#D6EBFF;border-radius:14px;overflow:hidden;display:flex;align-items:center;justify-content:center}
.mh-thumb img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.mh-play{position:relative;width:56px;height:56px;border-radius:50%;background:var(--blue);display:flex;align-items:center;justify-content:center}
.mh-title{margin:12px 0 2px;font-size:19px;font-weight:700;color:var(--ink)}
.mh-hero-card .mh-small:first-of-type{margin-top:16px}

/* 본문 */
.mh-main{padding-top:40px;padding-bottom:48px}
.mh-tiles{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:16px}
.mh-tile{display:flex;align-items:center;gap:14px;background:#fff;border:1px solid var(--line);border-radius:16px;padding:18px 20px;color:var(--ink)}
.mh-tile:hover{border-color:var(--blue)}
.mh-tile b{display:block;font-size:16px}
.mh-tile small{font-size:14px;color:var(--muted)}
.mh-ico{width:44px;height:44px;border-radius:12px;background:var(--sky);display:flex;align-items:center;justify-content:center;flex:none}
.mh-two{margin-top:32px;display:grid;grid-template-columns:repeat(auto-fit,minmax(320px,1fr));gap:24px}
.mh-sec{margin-top:40px}
.mh-head{display:flex;justify-content:space-between;align-items:baseline;margin-bottom:12px}
.mh-head h2,.mh-free h2{margin:0;font-size:22px;font-weight:700;color:var(--ink)}
.mh-head a{font-size:14px;font-weight:700;color:var(--blue)}
.mh-item{display:flex;justify-content:space-between;gap:16px;padding:14px 0;border-top:1px solid #E6F0FB;color:var(--ink)}
.mh-item:hover{color:var(--blue)}
.mh-empty{margin:0;padding:14px 0;color:var(--muted);border-top:1px solid #E6F0FB}
.mh-videos{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:24px}
.mh-vid{display:block;color:var(--ink)}
.mh-free{margin-top:40px;background:var(--band);border-radius:20px;padding:24px 28px}
.mh-free-top{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:16px}
.mh-free-top p{margin-top:4px}
.mh-item-free{border-top-color:#CFE3F7}

/* 상단 로그인 영역 (head.php) */
#header_pc .d-flex{flex-wrap:wrap}
#header_pc .header-logo{flex:1 1 100%;min-width:0}
#header_pc .header-logo img{max-width:100%;height:auto}
.mh-util{display:flex;align-items:center;justify-content:flex-end;gap:8px;list-style:none;margin:0 0 8px;padding:0;order:-1;flex:1 1 100%}
.mh-util a{display:inline-flex;align-items:center;min-height:40px;padding:0 18px;border-radius:999px;font-weight:700;color:#1B6FC2;border:1px solid #BBD9F5;background:#fff}
.mh-util a:hover{background:#E6F3FF}
.mh-util a.mh-util-join{background:#1B6FC2;color:#fff;border-color:#1B6FC2}
.mh-util a.mh-util-join:hover{background:#0F4C8A}

/* 갤러리 사진 여러 장 올리기 (js/mahanaim-upload.js) */
.mh-up{padding:16px 0}
.mh-up-box{border:2px dashed #BBD9F5;background:#F3F9FF;border-radius:16px;padding:24px;text-align:center}
.mh-up .mh-btn{border:0;cursor:pointer;font-family:inherit;font-size:16px}
.mh-up .mh-btn[disabled]{opacity:.5;cursor:default}
.mh-up-opt{display:block;margin:14px 0 0;font-size:14px;color:#4A5D75;cursor:pointer}
.mh-up-stat{margin:12px 0 0;font-size:15px;font-weight:700;color:#12263F}
.mh-up-sub{margin-top:8px}
.mh-up-link{background:none;border:0;padding:0 10px;font-size:14px;color:#1B6FC2;text-decoration:underline;cursor:pointer;font-family:inherit}

/* 갤러리 글 보기 슬라이드 (js/mahanaim-gallery.js) */
.mh-gal{max-width:900px;margin:0 auto 16px}
.mh-gal-stage{position:relative;display:flex;align-items:center;justify-content:center;min-height:200px;background:#F3F9FF;border-radius:16px;overflow:hidden}
.mh-gal-main{display:block;max-width:100%;max-height:80vh;width:auto;height:auto;cursor:pointer}
.mh-gal-nav{position:absolute;top:50%;transform:translateY(-50%);width:44px;height:44px;border:0;border-radius:50%;background:rgba(255,255,255,.92);color:#12263F;font-size:28px;line-height:1;cursor:pointer;box-shadow:0 2px 8px rgba(18,38,63,.2)}
.mh-gal-nav:hover{background:#fff;color:#1B6FC2}
.mh-gal-prev{left:12px}
.mh-gal-next{right:12px}
.mh-gal-strip{position:relative;display:flex;gap:8px;overflow-x:auto;padding:12px 2px 6px}
.mh-gal-th{flex:none;width:84px;height:84px;padding:0;border:2px solid transparent;border-radius:10px;overflow:hidden;background:#D6EBFF;opacity:.7;cursor:pointer}
.mh-gal-th img{display:block;width:100%;height:100%;object-fit:cover}
.mh-gal-th:hover{opacity:1}
.mh-gal-th.on{border-color:#1B6FC2;opacity:1}
.mh-gal-bar{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:8px;margin-top:6px;font-size:14px;color:#4A5D75}
.mh-gal-count{font-weight:700;color:#12263F}
.mh-gal-link{background:none;border:0;padding:0 8px;font-size:14px;font-family:inherit;color:#1B6FC2;text-decoration:underline;cursor:pointer}
.mh-gal button:focus-visible{outline:2px solid #1B6FC2;outline-offset:2px}
