/* ============================================
   ZAKAR KOREA — 공용 스타일 (전 페이지)
   팔레트: 화이트/블랙 (Wix 원본), Questrial + Pretendard
   ============================================ */
:root {
    --bg: #ffffff;
    --text: #000000;
    --text-soft: #404040;
    --accent: #ffd1ea;
    --line: rgba(0, 0, 0, 0.08);
    --font-latin: 'Questrial', sans-serif;
    --font-body: 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui,
        'Apple SD Gothic Neo', 'Noto Sans KR', 'Malgun Gothic', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s ease, opacity 0.2s ease;
}

img {
    max-width: 100%;
    display: block;
}

/* ---------- Header ---------- */
.site-header {
    position: sticky;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--line);
    z-index: 1000;
}

.header-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 18px 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.logo {
    font-family: var(--font-latin);
    font-size: 1.6rem;
    letter-spacing: 2px;
    white-space: nowrap;
}

.nav {
    display: flex;
    align-items: center;
    gap: 28px;
}

.nav-link {
    font-size: 0.92rem;
    color: var(--text-soft);
    padding: 10px 0;
    white-space: nowrap;
}

.nav-link:hover {
    color: var(--text);
}

.nav-item {
    position: relative;
}

.dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: #ffffff;
    border: 1px solid var(--line);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    padding: 8px 0;
    min-width: 250px;
    z-index: 1001;
}

.nav-item:hover .dropdown {
    display: flex;
    flex-direction: column;
}

.dropdown a {
    padding: 10px 22px;
    font-size: 0.88rem;
    color: var(--text-soft);
    white-space: nowrap;
}

.dropdown a:hover {
    color: var(--text);
    background: rgba(0, 0, 0, 0.04);
}

.login-link {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 0.9rem;
    color: var(--text-soft);
    white-space: nowrap;
}

.login-link:hover {
    color: var(--text);
}

/* ---------- 페이지 히어로 ---------- */
.page-hero {
    text-align: center;
    padding: 90px 24px 60px;
    background-size: cover;
    background-position: center;
}

.page-hero h1 {
    font-size: 2.6rem;
    font-weight: 700;
    letter-spacing: 3px;
    word-break: keep-all;
    line-height: 1.4;
}

.page-hero .hero-sub {
    margin-top: 18px;
    font-size: 1.05rem;
    color: var(--text-soft);
    word-break: keep-all;
}

.page-hero .hero-en {
    font-family: var(--font-latin);
    letter-spacing: 2px;
    margin-top: 10px;
    color: var(--text-soft);
}

.page-hero .hero-verse {
    margin-top: 26px;
    font-size: 1.02rem;
    color: var(--text-soft);
    font-style: italic;
    word-break: keep-all;
}

/* ---------- 사진 배경 히어로 (2018 Memory 서브페이지) ---------- */
.page-hero.hero-bg {
    position: relative;
    padding: 150px 24px 110px;
    overflow: hidden;
    isolation: isolate;
}

.page-hero.hero-bg::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background-size: cover;
    background-position: center;
    animation: hero-kenburns 18s ease-in-out infinite alternate;
}

.hero-worship::before { background-image: url('images/memory-art-bg.jpg'); }
.hero-art::before { background-image: url('images/memory-art-bg.jpg'); }
.hero-press::before { background-image: url('images/memory-press-bg.jpg'); }
.hero-performance::before { background-image: url('images/memory-pp-bg.jpg'); }

@keyframes hero-kenburns {
    from { transform: scale(1); }
    to { transform: scale(1.12); }
}

.page-hero.hero-bg h1,
.page-hero.hero-bg .hero-sub,
.page-hero.hero-bg .hero-en,
.page-hero.hero-bg .hero-verse {
    display: inline;
    background: #fff;
    box-decoration-break: clone;
    -webkit-box-decoration-break: clone;
    padding: 5px 16px;
    color: var(--text);
    font-style: normal;
}

@media (prefers-reduced-motion: reduce) {
    .page-hero.hero-bg::before { animation: none; }
}

/* ---------- About 서브페이지 히어로 ---------- */
.hero-whatis::before { background-image: url('images/whatis-hero-bg.jpg'); }
.hero-ways::before { background-image: url('images/ways-hero-bg.jpg'); }

/* 하이라이트 박스를 줄 단위로 쌓기 위한 래퍼 */
.page-hero.hero-bg .hero-line { display: block; }
.page-hero.hero-bg .hero-line + .hero-line { margin-top: 20px; }

.page-hero.hero-whatis h1,
.page-hero.hero-ways h1 {
    color: #3b5998;
}

.page-hero.hero-whatis .hero-verse {
    background: #2f3640;
    color: #fff;
    font-size: .95rem;
}

/* 자카리안: 박스형 사진 히어로 (흰 글자, 하이라이트 박스 없음) */
.page-hero.hero-boxed {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    max-width: 700px;
    margin: 70px auto 0;
    padding: 110px 32px;
}

.page-hero.hero-boxed::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background-size: cover;
    background-position: center;
}

.hero-zakarian::before { background-image: url('images/zakarian-hero.jpg'); }

.page-hero.hero-boxed h1,
.page-hero.hero-boxed .hero-sub,
.page-hero.hero-boxed .hero-en {
    color: #fff;
}

.page-hero.hero-boxed .hero-sub {
    font-size: 1.35rem;
    line-height: 1.5;
}

/* 자카리안: 호버 시 사진 → 영상 전환 박스 */
.hover-video::before {
    z-index: -2;
}

.hover-video .hover-media {
    position: absolute;
    inset: 0;
    z-index: -1;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.6s ease;
}

.hover-video:hover .hover-media {
    opacity: 1;
}

.hover-video .hero-text-group {
    transition: opacity 0.6s ease;
}

.hover-video:hover .hero-text-group {
    opacity: 0;
}

.hover-video .hover-frame {
    position: absolute;
    inset: 26px;
    border: 2px solid #fff;
    opacity: 0;
    transition: opacity 0.6s ease;
    pointer-events: none;
}

.hover-video:hover .hover-frame {
    opacity: 1;
}

/* 기억하는방법: 2단 구성 (히브리어 | 방법 목록) */
.ways-cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    max-width: 860px;
    margin: 0 auto;
    padding: 20px 0 40px;
    text-align: center;
}

@media (max-width: 720px) {
    .ways-cols {
        grid-template-columns: 1fr;
    }
}

/* ---------- 2018 Home 풀스크린 히어로 ---------- */
.page-hero.hero-full {
    min-height: 88vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 24px;
}

.hero-2018::before { background-image: url('images/memory-home-hero-bg.jpg'); }

.hero-card {
    background: #fff;
    padding: 56px 48px;
    text-align: center;
    max-width: 360px;
}

.hero-card h1 {
    font-size: 2.2rem;
    font-weight: 400;
    letter-spacing: 2px;
    line-height: 1.35;
}

.hero-chevron {
    display: inline-flex;
    margin-top: 22px;
    color: var(--text);
    animation: hero-chevron-bounce 1.6s ease-in-out infinite;
}

@keyframes hero-chevron-bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(8px); }
}

@media (prefers-reduced-motion: reduce) {
    .hero-chevron { animation: none; }
}

/* ---------- 전체폭 배경 스트립 (2018 Home 하단 Persecution 띠) ---------- */
.bg-strip {
    text-align: center;
    padding: 160px 24px;
    background-size: cover;
    background-position: center;
    color: #fff;
}

.strip-persecution { background-image: url('images/memory-home-persecution-bg.jpg'); }

.bg-strip h2 {
    font-family: var(--font-latin);
    font-size: clamp(3rem, 8vw, 5.4rem);
    font-weight: 400;
    letter-spacing: 4px;
    margin-bottom: 26px;
}

.bg-strip p {
    font-size: 1.5rem;
    line-height: 1.75;
    letter-spacing: 0.05em;
    word-break: keep-all;
}

.bg-strip .btn-strip {
    display: inline-block;
    margin-top: 44px;
    color: #fff;
    border: 1px solid #fff;
    font-size: 0.98rem;
    letter-spacing: 1px;
    padding: 13px 42px;
    transition: all 0.25s ease;
}

.bg-strip .btn-strip:hover {
    background: #fff;
    color: var(--text);
}

/* ---------- 페이지별 컬러 텍스트 강조 (라이브 색 재현) ---------- */
/* Resources(UDHR/북한종교박해) 히어로 타이틀 남색 */
.page-hero.hero-blue h1,
.page-hero.hero-blue .hero-en { color: #295380; }

/* Performance 상세(Title/Date/Place) 밝은 보라 */
.section .text-purple { color: #bb00ff; }

/* Art 소제목 보라 */
.section .text-violet { color: #8c00ff; }

/* ---------- Forum 페이지 장식 (검정 하이라이트 + 보라 등록 버튼) ---------- */
.hl-dark {
    display: inline;
    background: #000;
    color: #fff;
    box-decoration-break: clone;
    -webkit-box-decoration-break: clone;
    padding: 4px 12px;
}

.btn-purple {
    display: inline-block;
    background: #b45ad3;
    color: #fff;
    border-radius: 8px;
    font-size: 0.98rem;
    letter-spacing: 1px;
    padding: 14px 42px;
    margin: 6px 8px 6px 0;
    transition: opacity 0.25s ease;
}

.btn-purple:hover { opacity: 0.75; }

/* ---------- Main Documents 초록 자료 띠 (라이브 슬라이드 색 재현) ---------- */
.docu-strip {
    background: #35c68b;
    padding: 14px 34px;
}

.docu-strip .schedule { border-top: 0; }

.docu-strip .schedule-item { border-bottom-color: rgba(255, 255, 255, 0.45); }

.docu-strip .schedule-item:last-child { border-bottom: 0; }

.docu-strip .num {
    color: #fff;
    font-weight: 700;
    margin-right: 8px;
}

.docu-strip .where { color: rgba(0, 0, 0, 0.6); }

/* ---------- 본문 공통 ---------- */
.content {
    max-width: 860px;
    margin: 0 auto;
    padding: 50px 24px 110px;
}

.content-wide {
    max-width: 1140px;
    margin: 0 auto;
    padding: 50px 24px 110px;
}

.section {
    margin-bottom: 70px;
}

.section h2 {
    font-size: 1.7rem;
    font-weight: 700;
    margin-bottom: 24px;
    word-break: keep-all;
    line-height: 1.45;
}

.section h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin: 30px 0 12px;
    word-break: keep-all;
}

.section p {
    font-size: 1.02rem;
    line-height: 1.9;
    color: var(--text-soft);
    margin-bottom: 16px;
    word-break: keep-all;
}

.section ul {
    list-style: none;
    margin-bottom: 16px;
}

.section li {
    font-size: 1.02rem;
    line-height: 1.9;
    color: var(--text-soft);
    word-break: keep-all;
}

.center {
    text-align: center;
}

.footnote {
    margin-top: 60px;
    padding-top: 28px;
    border-top: 1px solid var(--line);
    font-size: 0.92rem;
    color: var(--text-soft);
    line-height: 1.8;
    word-break: keep-all;
}

/* ---------- 버튼 ---------- */
.btn {
    display: inline-block;
    background: #000000;
    color: #ffffff;
    font-size: 0.98rem;
    letter-spacing: 1px;
    padding: 14px 42px;
    margin: 6px 8px 6px 0;
    transition: opacity 0.25s ease;
}

.btn:hover {
    opacity: 0.75;
}

.btn-outline {
    display: inline-block;
    background: transparent;
    color: var(--text);
    border: 1px solid var(--text);
    font-size: 0.98rem;
    letter-spacing: 1px;
    padding: 13px 42px;
    margin: 6px 8px 6px 0;
    transition: all 0.25s ease;
}

.btn-outline:hover {
    background: #000;
    color: #fff;
}

/* ---------- 이벤트(공지) 페이지 ---------- */
.event-page {
    max-width: 760px;
    margin: 0 auto;
    padding: 70px 24px 110px;
    text-align: center;
}

.event-page .poster {
    margin: 0 auto 50px;
    max-width: 560px;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.15);
}

.event-page h1 {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.5;
    margin-bottom: 20px;
    word-break: keep-all;
}

.event-page .verse {
    font-size: 1.02rem;
    color: var(--text-soft);
    font-style: italic;
    margin-bottom: 34px;
    word-break: keep-all;
}

.event-page .details {
    font-size: 1.05rem;
    line-height: 2;
    color: var(--text-soft);
    margin-bottom: 40px;
    word-break: keep-all;
}

.event-page .actions {
    margin-bottom: 60px;
}

.event-info {
    border-top: 1px solid var(--line);
    padding-top: 36px;
    font-size: 0.95rem;
    color: var(--text-soft);
    line-height: 1.9;
    text-align: center;
    word-break: keep-all;
}

.event-info .brand {
    font-family: var(--font-latin);
    font-size: 1.3rem;
    letter-spacing: 3px;
    color: var(--text);
    margin-bottom: 6px;
}

/* ---------- 이벤트 페이지 장식 요소 (라이브 재현) ---------- */
/* 분홍 형광펜 하이라이트 (ZKIM300·워크샵 계좌 안내) */
.hl-pink {
    background: #ffd1ea;
    padding: 3px 8px;
    box-decoration-break: clone;
    -webkit-box-decoration-break: clone;
}

/* 검정 띠 라벨 (흰 글자) — 이벤트 상단 소개 문구 */
.strip-label {
    display: inline;
    background: #000;
    color: #fff;
    font-style: normal;
    padding: 4px 12px;
    box-decoration-break: clone;
    -webkit-box-decoration-break: clone;
}

/* 컬러 버튼 (2024 게더링 / 2020 통일기도회) */
.btn-purple { background: #b45ad3; color: #fff; }
.btn-red { background: #bb2423; color: #fff; }

/* 강조 텍스트 색 */
.text-warn { color: #bb2423; }
.text-red { color: #e81f27; }
.verse-olive { color: #53614d; }

/* 2024 게더링: 방사형 남색 그라데이션 히어로 + 흰 카드 */
.hero-gathering {
    background: radial-gradient(circle, #e4ebfc 0%, #589be3 32%, #002f5e 63%, #000 100%);
    padding: 90px 24px;
}

.gathering-card {
    background: #fff;
    max-width: 750px;
    margin: 0 auto;
    padding: 56px 44px 60px;
    text-align: center;
}

.gathering-card h1 {
    font-size: 2.6rem;
    font-weight: 400;
    line-height: 1.35;
    margin: 26px 0 18px;
    word-break: keep-all;
}

.gathering-card .gathering-sub {
    font-size: 1.35rem;
    margin-bottom: 34px;
    word-break: keep-all;
}

.gathering-card .actions {
    margin-bottom: 26px;
}

/* 2024 게더링: 연한 하늘색 섹션 배경 */
.section-lightblue {
    background: #f2f5ff;
}

/* 유튜브 영상 임베드 */
.video-embed {
    position: relative;
    max-width: 760px;
    margin: 0 auto;
    aspect-ratio: 16 / 9;
}

.video-embed iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* 2020-01 통일기도회: 올리브색 전체 배경 */
.bg-olive {
    background: #85b354;
}

/* 2020-01: 제목 흰색 오프셋 그림자 */
.title-shadow {
    text-shadow: 3px 3px 0 #fff;
}

/* Contact: 붉은 구분선 + SNS 원형 아이콘 */
.divider-red {
    width: 40px;
    border: none;
    border-top: 3px solid #bb2423;
    margin: 30px auto;
}

.sns-row {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 34px;
}

.sns-row img {
    width: 39px;
    height: 39px;
    display: block;
    transition: opacity 0.25s ease;
}

.sns-row a:hover img {
    opacity: 0.7;
}

/* NEW 페이지: 사진 + 민트 패널 분할 히어로 */
.split-hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 650px;
}

.split-hero-photo {
    background: url('images/new-aboutus.jpg') center / cover no-repeat;
}

.split-hero-panel {
    background: #4bd1a0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 90px 40px;
}

.split-hero-panel h1 {
    font-family: var(--font-latin);
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: 12px;
    color: #000;
}

.split-hero-panel h1 .w {
    color: #fff;
}

.split-hero-panel p {
    max-width: 400px;
    margin: 36px 0 56px;
    line-height: 1.9;
    color: #2f2e2e;
    word-break: keep-all;
}

.split-hero-panel .btn-outline {
    border-width: 3px;
    font-weight: 600;
    padding: 16px 38px;
}

.split-hero-panel .btn-outline:hover {
    background: transparent;
    color: var(--text);
    opacity: 0.7;
}

@media (max-width: 768px) {
    .split-hero {
        grid-template-columns: 1fr;
    }

    .split-hero-photo {
        min-height: 320px;
    }

    .gathering-card h1 {
        font-size: 1.9rem;
    }
}

/* ---------- 카드 (F/P/A/P 등) ---------- */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 28px;
    margin: 50px 0;
}

.info-card {
    border: 1px solid var(--line);
    padding: 38px 28px;
    text-align: center;
}

.info-card .initial {
    font-family: var(--font-latin);
    font-size: 2.6rem;
    line-height: 1;
    margin-bottom: 14px;
}

.info-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 14px;
}

.info-card p {
    font-size: 0.95rem;
    line-height: 1.8;
    color: var(--text-soft);
    margin-bottom: 18px;
    word-break: keep-all;
}

.info-card a.more {
    font-size: 0.9rem;
    text-decoration: underline;
}

/* ---------- 갤러리 ---------- */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 14px;
    margin-top: 50px;
}

.gallery img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

/* ---------- 일정 리스트 ---------- */
.schedule {
    border-top: 1px solid var(--line);
}

.schedule-item {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 22px 4px;
    border-bottom: 1px solid var(--line);
    flex-wrap: wrap;
}

.schedule-item .what {
    font-size: 1.02rem;
    font-weight: 600;
    word-break: keep-all;
}

.schedule-item .where {
    font-size: 0.95rem;
    color: var(--text-soft);
    white-space: nowrap;
}

/* ---------- 태그(방법들) ---------- */
.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 30px 0;
}

.tags span {
    border: 1px solid var(--text);
    padding: 8px 20px;
    font-size: 0.95rem;
}

/* ---------- 조문(UDHR) ---------- */
.article h3 {
    margin: 34px 0 10px;
    font-size: 1.1rem;
}

/* ---------- Footer ---------- */
.site-footer {
    border-top: 1px solid var(--line);
    padding: 46px 24px;
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-soft);
    display: flex;
    flex-direction: column;
    gap: 6px;
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
    .nav {
        display: none;
    }
}

@media (max-width: 768px) {
    .page-hero h1 {
        font-size: 1.9rem;
    }

    .login-link {
        display: none;
    }

    .event-page h1 {
        font-size: 1.5rem;
    }
}

/* Contact page: SNS links + contact form */
.sns-row { margin-top: 18px; }
.sns-row a { display: inline-block; margin: 0 10px; text-decoration: underline; }
.contact-form { max-width: 640px; margin: 0 auto; display: flex; flex-direction: column; gap: 14px; }
.contact-form .form-row { display: flex; gap: 14px; }
.contact-form .form-row input { flex: 1; }
.contact-form input,
.contact-form textarea { width: 100%; padding: 12px 14px; border: 1px solid #ccc; background: transparent; font: inherit; color: inherit; }
.contact-form button { align-self: flex-end; cursor: pointer; }
@media (max-width: 600px) { .contact-form .form-row { flex-direction: column; } }

/* ---- Scroll reveal (라이브 Wix FadeIn/FloatIn 재현) ---- */
.reveal {
    opacity: 0;
    transform: translateY(34px);
    transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1),
        transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal--fade {
    transform: none;
}

.reveal.visible {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
}
