/* ==========================================================================
   1. 기본 초기화 및 글로벌 레이아웃 규격
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Pretendard', sans-serif;
    background: #f8fafc;
    color: #334155;
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

.container {
    width: 92%;
    max-width: 1200px;
    margin: auto;
}

/* 폰트어썸 아이콘 기둥 CDN 탑재 */
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.4/css/all.min.css');


/* ==========================================================================
   2. header.php 전용 디자인 및 마우스 호버 드롭다운 시스템
   ========================================================================== */
header {
    background: white;
    border-bottom: 1px solid #e2e8f0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo-area {
    display: flex;
    flex-direction: column;
}

.logo-main {
    font-size: 20px;
    font-weight: 700;
    color: #1f3b64;
    letter-spacing: -0.5px;
}

.logo-main a { 
    color: #1f3b64 !important; 
}

.logo-sub { 
    font-size: 11px; 
    color: #64748b; 
    margin-top: 2px; 
}

.menu-search-wrapper { 
    display: flex; 
    align-items: center; 
    gap: 30px; 
}

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

.menu a {
    font-size: 15px;
    font-weight: 500;
    color: #475569 !important;
    padding: 5px 0;
    transition: 0.2s;
}

.menu a:hover, .menu a.active {
    color: #1f3b64 !important;
    font-weight: 700 !important;
}

/* 드롭다운 포지셔닝 부모 */
.dropdown-item-wrapper {
    position: relative;
    padding: 8px 0;
}

/* 숨겨진 서브 드롭다운 네모 박스 기본 상태 */
.dropdown-menu-box {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: #ffffff;
    min-width: 160px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.08);
    padding: 8px 0;
    opacity: 0;
    visibility: hidden;
    transition: all 0.25s ease;
    z-index: 999;
}

/* 핵심쟁점 호버 시 드롭다운 오픈 */
.dropdown-item-wrapper:hover .dropdown-menu-box {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

/* 드롭다운 내부 개별 링크 메뉴 스타일 */
.dropdown-menu-box a {
    display: block;
    padding: 10px 18px;
    font-size: 14px;
    font-weight: 500 !important;
    color: #475569 !important;
    text-align: center;
    white-space: nowrap;
    transition: background 0.2s, color 0.2s;
}

/* 드롭다운 내부 링크 호버 액션 */
.dropdown-menu-box a:hover {
    background: #f1f5f9;
    color: #1f3b64 !important;
    font-weight: 700 !important;
}

/* 검색창 */
.search-box { position: relative; display: flex; align-items: center; }
.search-box input {
    background: #f1f5f9;
    border: none;
    padding: 8px 16px 8px 36px;
    border-radius: 20px;
    font-size: 14px;
    outline: none;
    width: 180px;
}
.search-box::before {
    content: '🔍';
    position: absolute;
    left: 14px;
    font-size: 12px;
    color: #94a3b8;
}


/* ==========================================================================
   3. 백그라운드 이미지 탑재형 메인 히어로 배너 영역
   ========================================================================== */
.hero-section-wide-bg {
    background-image: linear-gradient(rgba(15, 23, 42, 0.85), rgba(15, 23, 42, 0.85)), url('https://images.unsplash.com/photo-1507692049790-de58290a4334?auto=format&fit=crop&w=1600&q=80');
    background-size: cover;
    background-position: center;
    padding: 90px 0 80px;
    text-align: center;
    color: white;
}

.hero-tint-box {
    max-width: 850px;
}

/* [중요알림] 강조 배지 */
.important-badge {
    display: inline-block;
    background: #ef4444;
    color: white;
    font-weight: 700;
    font-size: 12.5px;
    padding: 6px 14px;
    border-radius: 30px;
    margin-bottom: 22px;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4);
    letter-spacing: -0.2px;
}

.hero-section-wide-bg h1 {
    font-size: 42px;
    margin-bottom: 20px;
    color: #ffffff;
    font-weight: 700;
    letter-spacing: -1px;
}

.hero-section-wide-bg p {
    font-size: 17px;
    color: #cbd5e1;
    margin: auto;
    word-break: keep-all;
    line-height: 1.8;
}

.hero-buttons-area { margin-top: 35px; }


/* ==========================================================================
   4. 공통 버튼 및 섹션 타이틀 규격
   ========================================================================== */
.btn {
    display: inline-block;
    padding: 13px 26px;
    border-radius: 8px;
    font-size: 14.5px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s;
}

.btn-primary-light {
    background: #ffffff;
    color: #0f172a !important;
}

.btn-primary-light:hover {
    background: #f1f5f9;
}

.content-section-block { padding: 70px 0; }
.content-section-title {
    font-size: 28px;
    font-weight: 700;
    color: #102a43;
    margin-bottom: 40px;
    text-align: center;
}


/* ==========================================================================
   5. 이미지 결합형 핵심 쟁점 카드 레이아웃
   ========================================================================== */
.main-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
}

.main-card-item {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.02);
    transition: 0.2s;
}

.main-card-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.06);
}

.card-top-thumb {
    width: 100%;
    height: 150px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-bottom: 1px solid #e2e8f0;
}

.card-desc-pad { padding: 24px; }
.main-card-item h3 { font-size: 18px; color: #1f3b64; margin-bottom: 12px; font-weight: 700; }
.main-card-item p { color: #52606d; font-size: 14px; line-height: 1.6; word-break: keep-all; }


/* ==========================================================================
   6. 가로형 일렬 타임라인 (축 정밀 고정 및 구체 내부 아이콘 완비)
   ========================================================================== */
.horizontal-timeline-container {
    position: relative;
    width: 100%;
    padding: 20px 0;
}

.horizontal-timeline-wrapper {
    display: flex;
    justify-content: space-between;
    position: relative;
    width: 100%;
    z-index: 2;
}

.horizontal-timeline-line {
    position: absolute;
    top: 45px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #cbd5e1;
    z-index: 1;
}

.horizontal-timeline-node {
    flex: 1;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 6px;
}

.node-icon-circle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: white;
    border: 2px solid #1f3b64;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1f3b64;
    font-size: 16px;
    margin-bottom: 20px;
    box-shadow: 0 4px 8px rgba(31, 59, 100, 0.1);
    transition: all 0.3s ease;
}

.horizontal-timeline-node:hover .node-icon-circle {
    background-color: #1f3b64;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(31, 59, 100, 0.2);
}

.node-txt-year { font-size: 16px; font-weight: 700; color: #1f3b64; margin-bottom: 6px; }
.node-txt-subject { font-size: 14px; font-weight: 700; color: #102a43; margin-bottom: 8px; }
.node-txt-desc { font-size: 12.5px; color: #616e7c; line-height: 1.5; word-break: keep-all; }


/* ==========================================================================
   7. 원문 자료실 문서 박스 카드 레이아웃
   ========================================================================== */
.main-documents-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.main-doc-box {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.01);
}

.doc-top-thumb {
    width: 100%;
    height: 160px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-bottom: 1px solid #e2e8f0;
}

.doc-desc-pad { padding: 24px; }
.main-doc-box h3 { font-size: 18px; color: #1f3b64; margin-bottom: 12px; font-weight: 700; }
.main-doc-box p { font-size: 14px; color: #52606d; margin-bottom: 20px; line-height: 1.6; }

.main-doc-btns { display: flex; gap: 10px; }
.main-doc-btns a {
    background: #f1f5f9;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    color: #334155;
    transition: 0.2s;
    flex: 1;
    text-align: center;
}
.main-doc-btns a.btn-dark { background: #1f3b64; color: white !important; }
.main-doc-btns a:hover { background: #e2e8f0; }


/* ==========================================================================
   8. 아코디언 FAQ 및 하단 사이드바 위젯 영역
   ========================================================================== */
.main-faq-wrapper { max-width: 900px; margin: auto; }
.main-faq-item { background: white; border: 1px solid #e2e8f0; border-radius: 12px; margin-bottom: 16px; padding: 20px 24px; }
.main-faq-item summary { cursor: pointer; font-weight: 600; color: #1f3b64; font-size: 17px; outline: none; }
.main-faq-item p { margin-top: 16px; color: #52606d; font-size: 15px; line-height: 1.6; border-top: 1px dashed #e2e8f0; padding-top: 14px; }

.main-notice-widget { background: white; border: 1px solid #e2e8f0; border-radius: 14px; padding: 24px; height: 100%; }
.widget-title-style { font-size: 16px; font-weight: 700; color: #102a43; margin-bottom: 15px; border-bottom: 2px solid #1f3b64; padding-bottom: 8px; }
.side-notice-list-style { list-style: none; }
.side-notice-list-style li { display: flex; justify-content: space-between; font-size: 14px; padding: 10px 0; border-bottom: 1px solid #f1f5f9; }
.side-notice-list-style a { color: #334155; }
.side-notice-list-style span { color: #94a3b8; font-size: 12px; }

.main-bible-wide-banner {
    background: #102a43;
    color: white;
    border-radius: 14px;
    padding: 30px;
    text-align: center;
    background-image: linear-gradient(rgba(16, 42, 67, 0.9), rgba(16, 42, 67, 0.9)), url('https://images.unsplash.com/photo-1507692049790-de58290a4334?auto=format&fit=crop&w=600&q=80');
    background-size: cover;
    background-position: center;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
.bible-banner-text { font-size: 17px; font-weight: 700; margin-bottom: 10px; line-height: 1.5; }
.bible-banner-ref { font-size: 13px; color: #bcccdc; }


/* ==========================================================================
   9. footer.php 고유 레이아웃 보존 구역
   ========================================================================== */
footer { background: #0f172a; color: #94a3b8; padding: 50px 0 20px; font-size: 13px; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 2fr repeat(2, 1fr); gap: 40px; border-bottom: 1px solid #334155; padding-bottom: 40px; }
.footer-info h3 { color: white; font-size: 18px; margin-bottom: 15px; }
.footer-col h4 { color: white; font-size: 14px; margin-bottom: 15px; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul li a { color: #94a3b8 !important; }
.footer-col p { color: #94a3b8; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 20px; font-size: 12px; }


/* ==========================================================================
   10. 모바일 & 태블릿 유연 반응형 예외 세팅 모듈
   ========================================================================== */
@media (max-width: 1024px) {
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .nav { flex-direction: column; gap: 15px; padding: 15px 0; }
    .menu-search-wrapper { flex-direction: column; gap: 15px; width: 100%; }
    
    /* 모바일 가로 배열 방지 정렬 */
    .menu { 
        flex-direction: column; 
        gap: 12px; 
    }
    .dropdown-item-wrapper { 
        text-align: center; 
    }
    
    /* 모바일 환경 드롭다운 배치 최적화 */
    .dropdown-menu-box {
        position: relative;
        top: 0;
        left: 0;
        transform: none !important;
        box-shadow: none;
        border: none;
        background: #f1f5f9;
        opacity: 1;
        visibility: visible;
        display: none;
        margin-top: 5px;
        border-radius: 6px;
    }
    .dropdown-item-wrapper:hover .dropdown-menu-box { 
        display: block; 
    }

    .hero-section-wide-bg h1 { font-size: 28px; }
    .hero-section-wide-bg p { font-size: 15px; }
    .bottom-split-layout { grid-template-columns: 1fr; gap: 20px; }
    .footer-grid { grid-template-columns: 1fr; gap: 25px; }
    .footer-bottom { flex-direction: column; gap: 15px; text-align: center; }

    /* 모바일 디바이스 감지 타임라인 가로선 기둥 세로 변환 기법 */
    .horizontal-timeline-wrapper { flex-direction: column; gap: 35px; }
    .horizontal-timeline-line { top: 0; left: 25px; width: 2px; height: 100%; }
    .horizontal-timeline-node { flex-direction: row; align-items: flex-start; text-align: left; padding: 0; }
    .node-icon-circle { margin-bottom: 0; margin-right: 20px; flex-shrink: 0; }
    .node-txt-year { font-size: 15px; margin-bottom: 2px; }
    .node-txt-subject { font-size: 14px; margin-bottom: 4px; }
    .node-txt-desc { font-size: 13px; }
}

/* ==========================================================================
   [새 기능] archive.php 자료실 게시판 전용 프리미엄 스타일링
   ========================================================================== */
.archive-header-banner {
    background: #1f3b64;
    color: white;
    padding: 50px 0;
    text-align: center;
    border-bottom: 1px solid #e2e8f0;
}

.archive-header-banner h2 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}

.archive-header-banner p {
    font-size: 15px;
    color: #cbd5e1;
}

/* 게시판 상단바 */
.board-top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    font-size: 14.5px;
    color: #475569;
}

.board-total strong {
    color: #1f3b64;
}

/* 테이블 뼈대 구조 정의 */
.board-table-wrapper {
    background: white;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.01);
}

.board-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 15px;
}

.board-table th {
    background: #f8fafc;
    color: #1e293b;
    font-weight: 700;
    padding: 16px 20px;
    border-bottom: 1px solid #e2e8f0;
    text-align: center;
}

.board-table td {
    padding: 18px 20px;
    border-bottom: 1px solid #f1f5f9;
    color: #334155;
}

.board-table tbody tr:last-child td {
    border-bottom: none;
}

.board-table tbody tr:hover {
    background: #f8fafc;
}

/* 정렬 규격 정의 */
.td-num, .td-category, .td-author, .td-date {
    text-align: center;
    color: #64748b;
    font-size: 14px;
}

/* 게시판 제목 링크 강조 */
.board-link {
    font-weight: 600;
    color: #1e293b;
    transition: 0.15s;
    display: block;
}

.board-link:hover {
    color: #1f3b64;
    text-decoration: underline;
}

/* 배지(Badge) 스킨 디자인 */
.badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 30px;
    font-size: 12px;
    font-weight: 700;
}

.badge-court { background: #fee2e2; color: #ef4444; }    /* 법원: 빨강계열 */
.badge-church { background: #dbeafe; color: #2563eb; }   /* 교단: 파랑계열 */
.badge-theology { background: #fef3c7; color: #d97706; } /* 신학: 노랑계열 */
.badge-link {     background: #e0f2fe;     color: #0369a1; }
.badge-pdf {     background: #f1f5f9;      color: #475569;    border: 1px solid #cbd5e1; }

/* 하단 페이지 단추 */
.board-pagination {
    display: flex;
    justify-content: center;
    gap: 5px;
    margin-top: 30px;
}

.board-pagination a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    background: white;
    font-size: 14px;
    font-weight: 600;
    color: #475569;
    transition: 0.2s;
}

.board-pagination a.active {
    background: #1f3b64;
    color: white;
    border-color: #1f3b64;
}

/* 📱 모바일 화면에서 표가 찌그러지지 않도록 스크롤바 부여 */
@media (max-width: 768px) {
    .board-table-wrapper {
        overflow-x: auto;
    }
    .board-table {
        min-width: 600px; /* 모바일에서도 컬럼 비율 유지 */
    }
}
.timeline-page-header {
    background: #1f3b64;
    color: white;
    padding: 50px 0;
    text-align: center;
    border-bottom: 1px solid #e2e8f0;
    margin-bottom: 50px;
}
.timeline-page-header h2 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}
.timeline-page-header p {
    font-size: 15px;
    color: #cbd5e1;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.7;
    word-break: keep-all;
}
 
/* 범례 */
.tl-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 40px;
    padding: 14px 20px;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
}
.tl-legend-item {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 13px;
    color: #475569;
}
.tl-legend-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid;
    flex-shrink: 0;
}
 
/* 타임라인 전체 래퍼 */
.timeline {
    position: relative;
    max-width: 860px;
    margin: 0 auto;
    padding-bottom: 40px;
}
 
/* 개별 항목 */
.tl-item {
    display: flex;
    gap: 0;
    margin-bottom: 0;
    position: relative;
}
 
/* 왼쪽 연도 + 점 + 선 */
.tl-left {
    width: 90px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 2px;
}
.tl-year {
    font-size: 11px;
    font-weight: 700;
    color: #94a3b8;
    letter-spacing: 0.02em;
    white-space: nowrap;
    margin-bottom: 6px;
    text-align: center;
}
.tl-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2.5px solid;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}
.tl-line {
    width: 1.5px;
    background: #e2e8f0;
    flex: 1;
    min-height: 20px;
}
 
/* 점 색상 */
.dot-gray   { background: #f1f5f9; border-color: #94a3b8; }
.dot-red    { background: #fee2e2; border-color: #ef4444; }
.dot-blue   { background: #dbeafe; border-color: #3b82f6; }
.dot-green  { background: #dcfce7; border-color: #22c55e; }
.dot-purple { background: #ede9fe; border-color: #8b5cf6; }
 
/* 카드 */
.tl-card {
    flex: 1;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 18px 20px;
    margin: 0 0 18px 18px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
    transition: box-shadow 0.2s, transform 0.2s;
}
.tl-card:hover {
    box-shadow: 0 8px 20px rgba(0,0,0,0.06);
    transform: translateY(-2px);
}
.tl-card-title {
    font-size: 16px;
    font-weight: 700;
    color: #1f3b64;
    margin-bottom: 8px;
}
.tl-card-desc {
    font-size: 14px;
    color: #52606d;
    line-height: 1.7;
    margin-bottom: 12px;
    word-break: keep-all;
}
 
/* 태그 */
.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 10px;
}
.tag {
    font-size: 11px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 20px;
    letter-spacing: 0.02em;
}
.tag-purple { background: #ede9fe; color: #5b21b6; }
.tag-blue   { background: #dbeafe; color: #1e40af; }
.tag-coral  { background: #fee2e2; color: #991b1b; }
.tag-teal   { background: #d1fae5; color: #065f46; }
 
/* 자료 링크 버튼 */
.doc-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}
.doc-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    font-weight: 600;
    color: #1f3b64;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    padding: 5px 12px;
    border-radius: 6px;
    transition: background 0.15s;
}
.doc-link:hover {
    background: #e2e8f0;
    color: #1f3b64;
}
.doc-link svg {
    width: 13px;
    height: 13px;
    flex-shrink: 0;
}
 
/* 팩트체크 박스 */
.factcheck {
    margin-top: 14px;
    background: #f8fafc;
    border-left: 3px solid #1f3b64;
    border-radius: 0 8px 8px 0;
    padding: 12px 16px;
}
.factcheck-label {
    font-size: 11px;
    font-weight: 700;
    color: #1f3b64;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 6px;
}
.factcheck p {
    font-size: 13px;
    color: #52606d;
    line-height: 1.65;
}
 
/* 하단 인용구 */
.tl-quote {
    text-align: center;
    padding: 40px 20px 20px;
    border-top: 1px solid #e2e8f0;
    margin-top: 20px;
    max-width: 860px;
    margin-left: auto;
    margin-right: auto;
}
.tl-quote blockquote {
    font-size: 17px;
    color: #475569;
    font-style: italic;
    line-height: 1.8;
    margin-bottom: 8px;
}
.tl-quote cite {
    font-size: 13px;
    color: #94a3b8;
}
 
/* 모바일 */
@media (max-width: 768px) {
    .tl-left { width: 64px; }
    .tl-year { font-size: 10px; }
    .tl-card { padding: 14px 16px; }
    .tl-card-title { font-size: 15px; }
    .timeline-page-header { padding: 36px 20px; }
    .timeline-page-header h2 { font-size: 22px; }
}

/* =========================================================================
   모바일 햄버거 메뉴 최종 개선판
   ========================================================================= */
@media (max-width: 768px) {

    /* ===============================
       헤더 전체 정렬
    =============================== */
    .nav-wrapper {
        position: relative;
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        padding: 16px 0 !important;
    }

    /* 모바일에서 부제목 숨김 */
    .logo-sub {
        display: none;
    }

    .logo-main {
        font-size: 22px;
        line-height: 1.2;
    }

    /* 우측 메뉴 영역 */
    .menu-search-wrapper {
        margin-left: auto;
        display: flex;
        justify-content: flex-end;
        align-items: center;
        width: auto;
        gap: 0;
        position: relative;
    }

    /* ===============================
       햄버거 버튼
    =============================== */
    .menu-toggle {
        display: flex !important;
        flex-direction: column;
        justify-content: center;
        align-items: center;

        gap: 5px;

        cursor: pointer;

        padding: 6px;
        margin-right: -6px;

        z-index: 1001;
    }

    .menu-toggle span {
        width: 24px;
        height: 2.5px;

        background: #1f3b64;

        border-radius: 2px;

        transition: 0.3s;
    }

    /* ===============================
       모바일 메뉴
    =============================== */
    .menu {
        position: absolute;

        top: 58px;
        right: -6px;

        width: 220px;

        background: white;

        border: 1px solid #e2e8f0;
        border-radius: 14px;

        box-shadow: 0 12px 30px rgba(0,0,0,0.08);

        display: flex;
        flex-direction: column;
        align-items: flex-start;

        gap: 0;

        padding: 10px 0;

        opacity: 0;
        visibility: hidden;

        transform: translateY(-10px);

        transition: all 0.25s ease;
    }

    /* 메뉴 열림 상태 */
    .menu.active {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    /* 메뉴 링크 */
    .menu a {
        width: 100%;

        padding: 15px 20px;

        font-size: 15px;
        font-weight: 600;

        border-bottom: 1px solid #f1f5f9;
    }

    .menu a:last-child {
        border-bottom: none;
    }

    /* ===============================
       모바일 드롭다운 대응
    =============================== */
    .dropdown-item-wrapper {
        width: 100%;
        text-align: left;
    }

    .dropdown-menu-box {
        position: relative;

        top: 0;
        left: 0;

        transform: none !important;

        width: 100%;

        opacity: 1;
        visibility: visible;

        display: none;

        border: none;
        box-shadow: none;

        background: #f8fafc;

        border-radius: 0;
    }

    .dropdown-item-wrapper:hover .dropdown-menu-box {
        display: block;
    }
}

/* =========================================
   SAFE PATCH CSS FOR INDEX PAGE
   충돌 최소화 버전
========================================= */

/* container 안전 패치 */
.container{
    width:92%;
    max-width:1200px;
    margin:auto;
}

/* header z-index 강화 */
header{
    z-index:9999;
    position:relative;
}

/* =========================================
   INDEX HERO
========================================= */

.hero-grid-responsive{
    display:grid;
    grid-template-columns:1.1fr 1fr;
    gap:48px;
    align-items:center;
    padding:70px 0;
}

.hero-buttons-responsive{
    display:flex;
    gap:14px;
    flex-wrap:wrap;
}

.hero-image-responsive{
    height:430px;
    border-radius:18px;
    background-image:url('https://images.unsplash.com/photo-1521587760476-6c12a4b040da?q=80&w=1400');
    background-size:cover;
    background-position:center;
    box-shadow:0 20px 40px rgba(15,23,42,0.08);
}

.section-title-responsive{
    font-size:34px;
    color:#102a43;
    letter-spacing:-1px;
    margin-bottom:10px;
    font-weight:700;
}

.section-subtitle-responsive{
    color:#64748b;
    line-height:1.7;
}

/* =========================================
   ISSUE GRID
========================================= */

.main-issues-grid{
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:24px;
}

.main-issue-card{
    background:white;
    border:1px solid #e2e8f0;
    border-radius:18px;
    padding:34px 28px;
    transition:all .25s ease;
    display:block;
    text-decoration:none;
}

.main-issue-card:hover{
    transform:translateY(-6px);
    box-shadow:0 10px 30px rgba(15,23,42,.08);
}

.main-issue-card h3{
    font-size:22px;
    color:#102a43;
    margin-bottom:14px;
    font-weight:700;
}

.main-issue-card p{
    font-size:15px;
    color:#64748b;
    line-height:1.8;
}

/* =========================================
   ARCHIVE GRID
========================================= */

.main-archive-grid{
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:24px;
}

.archive-card-responsive{
    background:white;
    border:1px solid #e2e8f0;
    border-radius:18px;
    overflow:hidden;
    transition:all .25s ease;
}

.archive-card-responsive:hover{
    transform:translateY(-6px);
    box-shadow:0 10px 30px rgba(15,23,42,.08);
}

.archive-thumb-responsive{
    height:220px;
    background-size:cover;
    background-position:center;
}

/* =========================================
   FAQ
========================================= */

.faq-layout-responsive{
    display:grid;
    grid-template-columns:1.5fr 0.9fr;
    gap:28px;
    align-items:start;
}

.faq-box-responsive{
    background:white;
    border:1px solid #e2e8f0;
    border-radius:12px;
    padding:20px;
}

.faq-box-responsive summary{
    font-weight:700;
    cursor:pointer;
}

.faq-box-responsive p{
    margin-top:16px;
    color:#64748b;
    line-height:1.8;
}

/* =========================================
   BIBLE VERSE
========================================= */

.bible-box-responsive{
    background:linear-gradient(135deg,#1f3b64,#102a43);
    border-radius:18px;
    padding:50px 36px;
    color:white;
    text-align:center;
    min-height:100%;
}

.verse-text{
    font-size:30px;
    line-height:1.7;
    font-weight:700;
    margin-bottom:20px;
    word-break:keep-all;
}

/* =========================================
   BUTTONS
========================================= */

.hero-buttons-responsive a{
    transition:all .2s ease;
    text-decoration:none;
}

.hero-buttons-responsive a:hover{
    transform:translateY(-2px);
}

/* =========================================
   RESPONSIVE
========================================= */

@media (max-width:1200px){

    .container{
        width:94%;
    }

}

@media (max-width:992px){

    .hero-grid-responsive{
        grid-template-columns:1fr !important;
        gap:40px !important;
        padding:60px 0 !important;
    }

    .main-issues-grid{
        grid-template-columns:repeat(2,1fr);
    }

    .main-archive-grid{
        grid-template-columns:repeat(2,1fr);
    }

    .faq-layout-responsive{
        grid-template-columns:1fr;
    }

}

@media (max-width:768px){

    .content-section-block{
        padding-top:70px !important;
        padding-bottom:70px !important;
    }

    .container{
        width:92%;
    }

    .hero-grid-responsive{
        gap:30px !important;
        padding:44px 0 56px !important;
    }

    .hero-grid-responsive h1{
        font-size:34px !important;
        line-height:1.28 !important;
    }

    .hero-grid-responsive p{
        font-size:16px !important;
        line-height:1.8 !important;
    }

    .hero-buttons-responsive{
        flex-direction:column;
        align-items:stretch;
    }

    .hero-buttons-responsive a{
        width:100%;
        text-align:center;
    }

    .hero-image-responsive{
        height:260px !important;
    }

    .section-title-responsive{
        font-size:28px !important;
    }

    .main-issues-grid{
        grid-template-columns:1fr !important;
    }

    .main-archive-grid{
        grid-template-columns:1fr !important;
    }

    .verse-text{
        font-size:24px !important;
    }

}

@media (max-width:480px){

    .container{
        width:90% !important;
    }

    .hero-grid-responsive h1{
        font-size:30px !important;
    }

    .section-title-responsive{
        font-size:24px !important;
    }

    .hero-image-responsive{
        height:220px !important;
    }

}
