/* style.css 전체 내용 */

/* [1. 기본 스타일 & 스크롤 설정] */
html {
    scroll-behavior: smooth; /* 핵심: 메뉴 누르면 부드럽게 이동 */
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Noto Sans KR', sans-serif; color: #333; }
a { text-decoration: none; color: inherit; }
ul, li { list-style: none; }

/* [2. 헤더 (수정됨: 메뉴 가운데 정렬 + 텍스트 로고)] */
header {
    display: flex;
    justify-content: center; /* 내용물 가운데 정렬 */
    align-items: center;
    height: 100px; /* 헤더 높이 조금 키움 */
    background-color: #fff;
    border-bottom: 1px solid #ddd;
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 1000;
}

/* 로고를 왼쪽 구석에 고정 (절대 위치) */
.logo {
    position: absolute; /* 가운데 정렬에 영향 안 받게 띄움 */
    left: 20px;         /* 왼쪽 여백 */
    display: flex;
    align-items: center;
}

/* 로고 이미지 크기 조절 */
.logo img {
    height: 160px; /* 헤더 높이에 맞춰 적절히 조절하세요 (40~60px 추천) */
    width: auto;  /* 비율 유지 */
}

/* 모바일에서는 로고 위치 조정 */
@media (max-width: 768px) {
    .logo {
        position: static; /* 가운데 정렬을 위해 고정 해제 */
        margin-bottom: 10px;
    }
    .logo img {
        height: 40px; /* 모바일은 조금 더 작게 */
    }
}

/* 메뉴(GNB) 스타일 */
.gnb { 
    display: flex; 
    gap: 50px; /* 메뉴 사이 간격 넓힘 */
    height: 100%; 
}

.gnb > li { 
    position: relative; 
    height: 100%; 
    display: flex; 
    align-items: center; 
}

.gnb > li > a { 
    font-size: 17px; 
    font-weight: 600; 
    color: #333; 
    padding: 10px;
    transition: 0.3s;
}

/* 마우스 올리면 파란색 + 밑줄 효과 */
.gnb > li > a:hover { 
    color: #004080; 
    border-bottom: 2px solid #004080; 
}

/* 모바일 대응 (헤더) */
@media (max-width: 768px) {
    header {
        height: auto;
        flex-direction: column;
        padding: 15px 0;
    }
    .logo {
        position: static; /* 모바일에서는 절대 위치 해제 */
        margin-bottom: 15px;
    }
    .gnb {
        gap: 20px;
        flex-wrap: wrap; /* 줄 바꿈 허용 */
        justify-content: center;
    }
}

/* 섹션 이동 시 헤더에 가려지지 않게 여백 주기 */
section {
    scroll-margin-top: 140px; /* 헤더 높이보다 조금 더 여유 있게 */
    padding-top: 20px;
}
.logo { font-size: 24px; font-weight: bold; color: #004080; }
.gnb { display: flex; gap: 40px; height: 100%; }
.gnb > li { position: relative; height: 100%; display: flex; align-items: center; }
.gnb > li > a { font-size: 18px; font-weight: 600; color: #333; padding: 20px 10px; }
.gnb > li > a:hover { color: #0056b3; }

/* 서브메뉴 (부드러운 슬라이드 효과 적용) */
.submenu {
    /* 1. 평소 상태 (안 보임) */
    opacity: 0;                /* 투명하게 */
    visibility: hidden;        /* 클릭 안 되게 숨김 */
    transform: translateY(-20px); /* 위쪽으로 20px 올라가 있음 */
    transition: all 0.4s ease; /* 0.4초 동안 부드럽게 변해라 */

    /* 2. 기존 디자인 유지 */
    position: absolute;
    top: 100%;
    left: 50%;
    /* transform: translateX(-50%); <- 이 부분은 아래 hover에서 같이 처리해야 해서 뺍니다 */
    background-color: #fff;
    width: 220px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    border: 1px solid #eee;
    border-radius: 4px;
    padding: 10px 0;
    
    /* 스크롤바 설정 (메뉴 길어질 때) */
    max-height: 300px;
    overflow-y: auto;
}

/* 3. 마우스 올렸을 때 (보임) */
.gnb > li:hover .submenu {
    opacity: 1;               /* 선명하게 */
    visibility: visible;      /* 보이게 */
    /* 중요: 가운데 정렬(-50%)을 유지하면서 제자리(0)로 내려옴 */
    transform: translate(-50%, 0); 
}

/* (원래 있던 서브메뉴 초기 위치 잡아주기 - 중요!) */
.submenu {
    /* 평소에는 가운데 정렬(-50%) + 위로 숨김(-20px) 상태여야 함 */
    transform: translate(-50%, -20px);
}

/* 스크롤바 디자인 */
.submenu::-webkit-scrollbar { width: 8px; }
.submenu::-webkit-scrollbar-thumb { background-color: #ccc; border-radius: 4px; }
.submenu::-webkit-scrollbar-track { background-color: #f1f1f1; }

.submenu li a { display: block; padding: 12px 20px; font-size: 15px; color: #555; transition: 0.2s; }
.submenu li a:hover { background-color: #f5f5f5; color: #004080; }
.gnb > li:hover .submenu { display: block; }
.submenu li a { display: block; padding: 12px 20px; font-size: 15px; color: #555; transition: 0.2s; }
.submenu li a:hover { background-color: #f5f5f5; color: #004080; }

/* [3. 슬라이드 (메인 전용)] */
.hero-slider { position: relative; width: 100%; height: 600px; overflow: hidden; background-color: #333; }
.slide { position: absolute; top: 0; left: 0; width: 100%; height: 100%; opacity: 0; transition: opacity 0.5s ease-in-out; }
.slide.active { opacity: 1; }
.slide img { width: 100%; height: 100%; object-fit: cover; }
.slide-content { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); color: white; text-align: center; text-shadow: 2px 2px 10px rgba(0,0,0,0.7); z-index: 10; }
.slide-content h2 { font-size: 48px; margin-bottom: 20px; }
.slider-btn { position: absolute; top: 50%; transform: translateY(-50%); background: none; border: 1px solid rgba(255,255,255,0.5); color: white; font-size: 24px; padding: 15px; cursor: pointer; border-radius: 50%; z-index: 20; transition: 0.3s; }
.slider-btn:hover { background-color: rgba(255,255,255,0.2); }
.prev-btn { left: 40px; }
.next-btn { right: 40px; }
/* [하단 점(Pagination) - 스타일 3: 물방울 파장] */
.slider-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 15px;
    z-index: 20;
}

.dot {
    width: 12px;
    height: 12px;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    cursor: pointer;
    border: none;
    position: relative;
    transition: 0.3s;
}

/* 활성화된 점 디자인 */
.dot.active {
    background-color: #fff;
    transform: scale(1.2);
}

/* 파장 애니메이션 (선택된 점 주변에 링이 퍼짐) */
.dot.active::after {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 100%; height: 100%;
    border: 1px solid #fff;
    border-radius: 50%;
    animation: ripple 1.5s infinite; /* 1.5초마다 반복 */
}

/* 애니메이션 동작 정의 */
@keyframes ripple {
    0% { width: 100%; height: 100%; opacity: 1; }
    100% { width: 300%; height: 300%; opacity: 0; }
}

/* [4. 푸터 (공통)] */
footer { background-color: #fff; padding: 60px 0; margin-top: 50px; border-top: 1px solid #eee; }
.footer-inner { max-width: 1200px; margin: 0 auto; padding: 0 40px; display: flex; justify-content: space-between; align-items: flex-start; }
.footer-left { width: 40%; }
.footer-left h3 { font-size: 16px; margin-bottom: 20px; color: #000; font-weight: bold; }
.footer-left p { font-size: 14px; color: #333; margin-bottom: 5px; }
.copyright { font-size: 12px; color: #888; margin-top: 15px; }
.footer-center { display: flex; flex-direction: column; gap: 15px; width: 30%; }
.footer-center a { font-size: 14px; color: #333; }
.footer-center .privacy-link { font-weight: bold; }
.footer-right { display: flex; gap: 20px; width: 30%; justify-content: flex-end; }
.footer-right a { font-size: 24px; color: #000; }

/* [5. 서브 페이지 - 게시판 스타일] */
.sub-container { max-width: 1000px; margin: 60px auto; padding: 0 20px; min-height: 500px; }
.page-title { text-align: center; margin-bottom: 40px; font-size: 32px; font-weight: bold; color: #004080; }
.board-table { width: 100%; border-collapse: collapse; border-top: 2px solid #333; }
.board-table th, .board-table td { padding: 15px; border-bottom: 1px solid #ddd; text-align: center; }
.board-table th { background: #f9f9f9; font-weight: 600; color: #555; }
.td-title { text-align: left !important; padding-left: 20px !important; }
.td-title a:hover { text-decoration: underline; color: #004080; }

/* 모바일 대응 */
@media (max-width: 768px) {
    .footer-inner { flex-direction: column; gap: 40px; }
    .footer-left, .footer-center, .footer-right { width: 100%; text-align: left; }
    .footer-right { justify-content: flex-start; }
    .th-date, .th-author, .board-table td:nth-child(3), .board-table td:nth-child(4) { display: none; } /* 모바일에서 날짜, 작성자 숨김 */
}

/* [6. 추가 페이지용 스타일 (style.css 맨 아래에 추가)] */

/* 교회비전/인사말 (텍스트 중심) */
.content-box { line-height: 1.8; font-size: 16px; color: #444; text-align: center; }
.content-box img { max-width: 100%; border-radius: 8px; margin-bottom: 20px; }

/* 섬기는 분들 (카드 형태) */
.people-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 30px; margin-top: 30px; }
.person-card { border: 1px solid #eee; border-radius: 10px; padding: 20px; text-align: center; box-shadow: 0 4px 10px rgba(0,0,0,0.05); }
.person-img { width: 150px; height: 150px; background-color: #ddd; border-radius: 50%; margin: 0 auto 20px; object-fit: cover; }
.person-role { color: #004080; font-weight: bold; margin-bottom: 5px; }
.person-name { font-size: 20px; font-weight: bold; }

/* 오시는 길 (지도) */
.map-container { width: 100%; height: 400px; background-color: #eee; border-radius: 8px; display: flex; align-items: center; justify-content: center; color: #777; font-size: 18px; margin-bottom: 20px; }

/* 예배 시간표 (표 디자인) */
.worship-table { width: 100%; border-collapse: collapse; margin-top: 20px; }
.worship-table th, .worship-table td { border: 1px solid #ddd; padding: 15px; text-align: center; }
.worship-table th { background-color: #f5f5f5; color: #004080; }

/* 온라인 예배 (유튜브 반응형) */
.video-container { position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden; border-radius: 10px; background: #000; }
.video-container iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }

/* [리스트 내 관리 버튼 스타일] */
.btn-mini {
    padding: 5px 10px;
    font-size: 12px;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    margin-left: 2px;
    color: white;
}
.btn-mini.edit { background-color: #004080; } /* 수정: 파란색 */
.btn-mini.del { background-color: #d32f2f; }  /* 삭제: 빨간색 */
.btn-mini:hover { opacity: 0.8; }

/* =========================================
   [모바일 반응형 스타일 추가] 
   화면 너비가 768px 이하(태블릿, 스마트폰)일 때 적용됨
   ========================================= */
@media (max-width: 768px) {

    /* 1. 전체 레이아웃: 고정 너비 해제하고 꽉 차게 */
    .sub-container {
        width: 100%;
        padding: 0 15px; /* 양옆 여백 살짝 */
        margin-top: 20px;
    }
    
    /* 2. 헤더(메뉴): 세로로 배치하거나 간격 좁히기 */
    header {
        padding: 0 15px; /* 헤더 양옆 여백 줄임 */
        height: auto;    /* 높이 자동 조절 */
        flex-direction: column; /* 로고와 메뉴를 위아래로 배치 */
        padding-bottom: 15px;
    }
    .logo {
        margin-top: 15px;
        margin-bottom: 10px;
    }
    .gnb {
        gap: 15px; /* 메뉴 사이 간격 좁힘 */
        font-size: 14px; /* 글자 크기 조금 줄임 */
    }
    .gnb > li > a {
        padding: 5px; /* 터치 영역 조정 */
    }

    /* 3. 게시판 테이블: 좁은 화면에 맞게 변신 */
    .board-table {
        border-top: 1px solid #333;
    }
    .board-table th, .board-table td {
        padding: 10px 5px; /* 셀 안쪽 여백 줄임 */
        font-size: 13px;   /* 글자 크기 줄임 */
    }

    /* ★ 중요: 모바일에서는 공간이 부족하므로 덜 중요한 정보 숨기기 */
    /* 번호, 작성자, 날짜 숨김 -> 제목과 관리 버튼만 보여줌 */
    .board-table th:nth-child(1), .board-table td:nth-child(1), /* 번호 */
    .board-table th:nth-child(3), .board-table td:nth-child(3), /* 작성자 */
    .board-table th:nth-child(4), .board-table td:nth-child(4)  /* 날짜 */
    {
        display: none;
    }

    /* 제목 칸은 넓게 씀 */
    .td-title {
        width: auto; 
    }

    /* 4. 글쓰기/수정 폼 */
    .write-form input, .write-form textarea {
        width: 100%; /* 입력창 화면 꽉 차게 */
    }
    
    /* 5. 지도/이미지 */
    .map-box {
        height: 250px; /* 지도 높이 좀 줄임 */
    }
    .content-box img {
        width: 100%; /* 이미지 삐져나가지 않게 */
        height: auto;
    }
    
    /* 6. 버튼들 */
    .btn-mini {
        padding: 4px 6px; /* 버튼 크기 살짝 줄임 */
        font-size: 11px;
    }
}

/* [교인 등록 안내 - 스텝 박스 디자인] */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2개씩 가로로 배치 */
    gap: 30px; /* 박스 사이 간격 */
    margin-top: 40px;
}

.step-card {
    background-color: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 15px; /* 둥근 모서리 */
    padding: 40px 30px; /* 안쪽 여백을 많이 줘서 뚱뚱하게 만듦 */
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05); /* 살짝 그림자 */
    transition: transform 0.3s ease;
}

.step-card:hover {
    transform: translateY(-5px); /* 마우스 올리면 살짝 떠오름 */
    border-color: #004080;
}

.step-num {
    display: inline-block;
    background-color: #f0f8ff;
    color: #004080;
    font-weight: 900;
    font-size: 14px;
    padding: 5px 15px;
    border-radius: 20px;
    margin-bottom: 20px;
    letter-spacing: 1px;
}

.step-card h3 {
    font-size: 22px;
    margin-bottom: 15px;
    color: #333;
}

.step-card p {
    font-size: 16px;
    color: #666;
    line-height: 1.6;
    word-break: keep-all;
}

/* 모바일에서는 한 줄로 나오게 */
@media (max-width: 768px) {
    .steps-grid {
        grid-template-columns: 1fr; /* 1개씩 세로로 */
    }
}

/* [스크롤 애니메이션 효과] */

/* 1. 처음에 숨겨진 상태 (아래로 30px 내려가 있고 투명함) */
.scroll-hidden {
    opacity: 0;
    transform: translateY(30px);
    transition: all 1.0s ease-out; /* 1초 동안 부드럽게 올라옴 */
}

/* 2. 화면에 보일 때 상태 (제자리로 오고 선명해짐) */
.scroll-visible {
    opacity: 1;
    transform: translateY(0);
}

/* 3. 순차적으로 올라오게 하는 지연 효과 (옵션) */
.delay-100 { transition-delay: 0.1s; }
.delay-200 { transition-delay: 0.2s; }
.delay-300 { transition-delay: 0.3s; }

/* [메인 화면 타이틀 전용 애니메이션 (더 강조됨)] */
.hero-animate {
    animation: fadeInUp 1.2s ease-out forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
/* [화살표 버튼 숨기기] */
.slider-btn {
    display: none !important;
}

/* [텍스트 안내 박스 디자인] */
.text-card-wide {
    background-color: #f9f9f9;
    border-left: 5px solid #004080; /* 왼쪽 파란 줄 포인트 */
    padding: 30px;
    margin-bottom: 40px; /* 아래 요소와 간격 */
    border-radius: 0 10px 10px 0;
}

/* 이별 박스는 색상을 다르게 (선택사항) */
.text-card-wide.farewell {
    border-left-color: #666; /* 회색 줄 */
    background-color: #fff;
    border: 1px solid #eee;
    border-left: 5px solid #666;
    margin-top: 40px; /* 위 요소와 간격 */
}

.text-card-wide h3 {
    font-size: 20px;
    color: #333;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.text-card-wide p {
    font-size: 16px;
    line-height: 1.8;
    color: #555;
    margin-bottom: 10px;
    word-break: keep-all;
}

/* 강조 문구 */
.highlight-msg {
    font-weight: bold;
    color: #004080;
}

/* [책 소개 박스 디자인] */
.book-box {
    display: flex; /* 가로 배치 */
    gap: 20px;     /* 사진과 글 사이 간격 */
    background-color: #fff;
    border: 1px solid #eee;
    padding: 20px;
    margin: 20px 0;
    border-radius: 8px;
    align-items: flex-start; /* 위쪽 라인 맞춤 */
}

.book-img {
    width: 120px; /* 책 표지 너비 고정 */
    height: auto;
    border: 1px solid #ddd;
    box-shadow: 2px 2px 5px rgba(0,0,0,0.1);
}

.book-info h4 {
    font-size: 18px;
    color: #004080; /* 제목 파란색 */
    margin-bottom: 8px;
    font-weight: bold;
}

.book-info .meta {
    font-size: 14px;
    color: #666;
    margin-bottom: 10px;
}

/* 모바일에서는 세로로 보이게 */
@media (max-width: 768px) {
    .book-box {
        flex-direction: column; /* 세로 배치 */
        align-items: center;    /* 가운데 정렬 */
        text-align: center;
    }
}

/* [본문용 멀티 슬라이드 스타일] */
.content-slider {
    position: relative;
    width: 100%;
    height: 600px; /* 높이 조절 가능 */
    overflow: hidden;
    margin-bottom: 30px;
    border-radius: 10px;
    background: #000;
}

.content-slider .slide {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.content-slider .slide.active { opacity: 1; }

.content-slider img {
    width: 100%; height: 100%;
    object-fit: cover; /* 사진 꽉 차게 */
}

/* 화살표 위치 수정 */
.content-slider .slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.3);
    color: white;
    border: none;
    padding: 10px;
    cursor: pointer;
    font-size: 20px;
    border-radius: 50%;
    z-index: 10;
}
.content-slider .prev-btn { left: 10px; }
.content-slider .next-btn { right: 10px; }

/* 하단 점 스타일 */
.content-slider .slider-dots {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}
.content-slider .dot {
    width: 10px; height: 10px;
    background: rgba(255,255,255,0.5);
    border-radius: 50%;
    cursor: pointer;
}
.content-slider .dot.active { background: white; }

/* [링크 모음 리스트 디자인] */
.link-collection {
    display: flex;
    flex-direction: column; /* 세로로 나열 */
    gap: 15px; /* 간격 */
    margin-top: 20px;
    max-width: 100%; /* 너무 넓지 않게 */
}

.link-item {
    display: flex;
    align-items: center;
    justify-content: space-between; /* 아이콘과 화살표 양옆 배치 */
    background-color: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 10px; /* 둥근 모서리 */
    padding: 15px 20px;
    text-decoration: none; /* 밑줄 제거 */
    color: #333;
    font-weight: bold;
    font-size: 16px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05); /* 살짝 그림자 */
    transition: all 0.3s ease; /* 부드러운 움직임 */
}

/* 아이콘 스타일 */
.link-item i.fa-play-circle {
    color: #d32f2f; /* 유튜브 색상 (빨강) */
    font-size: 20px;
    margin-right: 15px;
}

.link-item i.fa-chevron-right {
    color: #ccc;
    font-size: 14px;
}

/* 마우스 올렸을 때 효과 */
.link-item:hover {
    background-color: #f0f8ff; /* 연한 파란색 배경 */
    border-color: #004080;
    transform: translateX(5px); /* 오른쪽으로 살짝 이동 */
    color: #004080;
}

.link-item:hover i.fa-chevron-right {
    color: #004080;
}

/* [세로 사진 전용 슬라이드 디자인] */
.slide.vertical-mode {
    display: flex;
    justify-content: center; /* 가운데 정렬 */
    align-items: center;
    background-color: #000;  /* 배경 검은색 */
    overflow: hidden;
}

/* 1. 배경에 깔릴 흐릿한 이미지 */
.blur-bg {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-size: cover;
    background-position: center;
    filter: blur(20px) brightness(0.6); /* 흐리고 어둡게 처리 */
    z-index: 1;
    transform: scale(1.1); /* 블러 때문에 생기는 테두리 흰색 방지 */
}

/* 2. 가운데 선명하게 보일 실제 사진 */
.main-img {
    position: relative;
    z-index: 2;          /* 배경보다 위에 */
    height: 100%;        /* 높이를 슬라이드에 맞춤 */
    width: auto;         /* 너비는 비율대로 */
    object-fit: contain; /* 사진 안 잘리게 */
    box-shadow: 0 0 30px rgba(0,0,0,0.5); /* 그림자 효과 */
}

/* 텍스트가 사진 위에 잘 보이도록 순서 조정 */
.slide.vertical-mode .slide-content {
    z-index: 3; /* 사진보다 더 위에 */
}

/* [세로 사진 전용 스타일 (강제 적용)] */

/* 1. 슬라이드 배경: 검은색 + 정렬 */
.slide.vertical-mode {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    background-color: #000 !important;
    overflow: hidden !important;
}

/* 2. 뒷배경 (흐릿한 이미지) */
.slide.vertical-mode .blur-bg {
    position: absolute !important;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-size: cover;
    background-position: center;
    filter: blur(20px) brightness(0.6); /* 흐리고 어둡게 */
    z-index: 1;
    transform: scale(1.1); /* 테두리 안 보이게 확대 */
}

/* 3. 메인 사진 (가운데 선명한 이미지) */
.slide.vertical-mode .main-img {
    position: relative !important;
    z-index: 2 !important;
    height: 100% !important;       /* 높이는 꽉 채우고 */
    width: auto !important;        /* 너비는 알아서 줄어들게 */
    object-fit: contain !important; /* 사진이 잘리지 않게 */
    box-shadow: 0 0 30px rgba(0,0,0,0.5);
}

/* [비전 페이지 전용 디자인] */

/* 1. 비전 & 슬로건 박스 */
.vision-hero {
    /* 배경: 파란색 그라데이션 (원하시면 이미지 url로 바꾸셔도 됩니다) */
    background: linear-gradient(135deg, #004080 0%, #87CEEB 100%);
    color: white;
    padding: 60px 20px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 64, 128, 0.2);
    margin-bottom: 50px;
}

.vision-label {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 14px;
    margin-bottom: 15px;
    letter-spacing: 1px;
}

.vision-main {
    font-size: 32px;
    font-weight: 900;
    margin-bottom: 30px;
    line-height: 1.3;
}

.vision-slogan {
    font-size: 20px;
    font-weight: 300; /* 얇은 글씨 */
    opacity: 0.9;
    border-top: 1px solid rgba(255,255,255,0.3);
    display: inline-block;
    padding-top: 20px;
    margin-top: 10px;
}

/* 2. 3대 핵심 가치 (3단 배열) */
.values-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3칸으로 나누기 */
    gap: 20px;
    margin-top: 30px;
}

.value-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    padding: 30px 20px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s;
}

.value-card:hover {
    transform: translateY(-10px); /* 마우스 올리면 위로 둥실 */
    border-color: #004080;
}

.value-icon {
    font-size: 40px;
    color: #004080;
    margin-bottom: 15px;
}

.value-title {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 10px;
    color: #333;
    display: block;
}

.bible-ref {
    font-size: 14px;
    color: #666;
    margin-bottom: 15px;
    display: block;
    font-weight: bold;
}

.value-desc {
    font-size: 15px;
    line-height: 1.6;
    color: #555;
    word-break: keep-all;
}

/* 모바일에서는 1줄로 변경 */
@media (max-width: 768px) {
    .values-grid {
        grid-template-columns: 1fr;
    }
    .vision-highlight { font-size: 22px; }
    .slogan-box { font-size: 16px; padding: 12px 20px; }
}