/*
Theme Name: Astra Child
Template: astra
Version: 1.0.6
*/

/* [1] 헤더 레이아웃 - 수정본 */
#custom_imweb_header {
    background-color: #ffffff !important;
    position: fixed !important;
    top: 0;
    width: 100%;
    height: 93px;
    z-index: 9999;
    border-bottom: 1px solid #eeeeee;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
}

.admin-bar #custom_imweb_header { top: 32px !important; }
@media screen and (max-width: 782px) { .admin-bar #custom_imweb_header { top: 46px !important; } }

.header-container { width: 1200px; max-width: 95%; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; }
.logo-area img { display: block !important; width: 156px !important; height: auto !important; }
.custom-nav-ul { display: flex !important; list-style: none !important; margin: 0 !important; padding: 0 !important; }
.custom-nav-ul li { margin-left: 25px !important; }
.custom-nav-ul li a { text-decoration: none !important; color: #333333 !important; font-size: 15px !important; font-weight: 500 !important; }
.header-spacer { height: 93px; }
/*.ast-primary-header-bar, .site-header { display: none !important; }*/


/* [2] 푸터 레이아웃 */
#custom_imweb_footer { background-color: #212121 !important; color: #999999 !important; padding: 60px 0 40px; font-size: 14px; line-height: 1.8; }
.footer-container { width: 1200px; max-width: 92%; margin: 0 auto; }
.footer-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 30px; }
.footer-menu ul { display: flex; list-style: none; gap: 25px; }
.footer-menu ul li a { color: #ffffff !important; text-decoration: none; font-weight: 500; }
.footer-divider { border: 0; border-top: 1px solid #333333; margin: 30px 0; }
.footer-bottom { display: flex; justify-content: space-between; align-items: flex-end; }
.account-info { color: #f4f4f4 !important; margin-top: 10px; }
#scroll_top_btn { display: flex; width: 40px; height: 40px; background: #333333; color: #ffffff; justify-content: center; align-items: center; border-radius: 50%; text-decoration: none; opacity: 0; transition: 0.3s; }

/* [3] 메인 섹션 스타일 */
section { width: 100%; overflow: hidden; }
.main-vision-section {
    position: relative; padding: 160px 0;
    background-image: url('/images/1ec66110b655c.jpg');
    background-attachment: fixed; background-position: center center; background-repeat: no-repeat; background-size: cover;
}
.vision-overlay { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.45); z-index: 1; }
.main-vision-inner { position: relative; z-index: 2; width: 1200px; max-width: 92%; margin: 0 auto; text-align: center; color: #ffffff; }

/* [4] 서브페이지 공통 스타일 (더월드미션 소개 등) 
.twm-page { width: 100%; overflow: hidden; color: #222; line-height: 1.8; }
.twm-container { width: 1200px; max-width: 92%; margin: 0 auto; }
.twm-section { padding: 100px 0; }
.twm-center { text-align: center; }
*/

/* 공통 서브페이지 상단 비주얼 (Hero) 수정 */
.twm-hero, .twm-serving-hero, .twm-plan-hero, .twm-join-hero, .nanum-hero {
    position: relative;
    width: 100%;
    height: 290px !important; /* 요청하신 세로 길이 */
    background: url('/images/bdfa1d8fc1a0f.jpg') center center / cover no-repeat !important;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

/* 히어로 오버레이 (글자 가독성) */
.twm-hero::before, .twm-serving-hero::before, .twm-plan-hero::before, .twm-join-hero::before, .nanum-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
    z-index: 1;
}

/* 히어로 텍스트 공통 */
.twm-hero-content, .twm-serving-hero-content, .twm-plan-hero-content, .twm-join-hero-content, .nanum-hero-content {
    position: relative;
    z-index: 2;
    color: #ffffff !important; /* 흰색 고정 */
}

.twm-title, .twm-serving-hero h1, .twm-plan-hero h1, .twm-join-hero h1, .nanum-hero h1 {
    font-size: 38px; 
    font-weight: 700; 
    color: #ffffff !important; /* 한글 제목 흰색 */
    margin-bottom: 10px;
}

.twm-subtitle { color: rgba(255,255,255,0.8) !important; font-size: 16px; letter-spacing: 3px; text-transform: uppercase; }

/* 기타 본문 스타일 */
.twm-blue { color: #0060a5; }
.twm-heading { font-size: 30px; font-weight: 700; margin-bottom: 30px; color: #0060a5; }
.twm-text { font-size: 17px; line-height: 2; color: #333; word-break: keep-all; }
.twm-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; margin-top: 40px; }
.twm-gallery img { width: 100%; height: 220px; object-fit: cover; border-radius: 8px; }
.twm-flex { display: flex; gap: 60px; align-items: flex-start; }
.twm-image-large { width: 100%; border-radius: 10px; object-fit: cover; box-shadow: 0 10px 30px rgba(0,0,0,0.1); }

/* [5] 섬기는 이들 전용 스타일 */
.twm-serving-page { color: #222; line-height: 1.8; }
.twm-serving-container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.twm-serving-section { padding: 100px 0; background: #fff; }
.twm-serving-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 50px; }
.twm-member { text-align: left; }
.twm-member-image { width: 100%; height: 500px; overflow: hidden; border-radius: 10px; margin-bottom: 30px; background: #f3f3f3; }
.twm-member-image img { width: 100%; height: 100%; object-fit: cover; transition: 0.5s; }
.twm-member:hover .twm-member-image img { transform: scale(1.05); }
.twm-member h2 { font-size: 26px; margin-bottom: 8px; color: #111; }
.twm-member h3 { font-size: 18px; font-weight: 700; color: #0060A5; margin-bottom: 24px; }
.twm-member ul { list-style: none; padding: 0; margin: 0; }
.twm-member ul li { position: relative; padding-left: 18px; margin-bottom: 12px; font-size: 15px; color: #444; }
.twm-member ul li::before { content: '·'; position: absolute; left: 0; top: 0; color: #0060A5; font-weight: bold; }

/* [6] 연중사역 및 계획 전용 스타일 */
.twm-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 40px; }
.twm-card { background: #fff; border-radius: 12px; overflow: hidden; box-shadow: 0 10px 30px rgba(0,0,0,0.08); transition: 0.3s; }
.twm-card:hover { transform: translateY(-5px); }
.twm-card img { width: 100%; height: 260px; object-fit: cover; }
.twm-card-content { padding: 30px; }
.twm-card h3 { color: #0060a5; margin-bottom: 15px; font-size: 24px; }

.twm-timeline { display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px; }
.twm-timeline-item { padding: 35px; background: #f7f9fb; border-left: 5px solid #0060a5; border-radius: 10px; }
.twm-timeline-item h3 { margin-bottom: 15px; color: #0060a5; font-size: 24px; }
.twm-timeline-item ul { padding-left: 20px; list-style: disc; }
.twm-timeline-item li { margin-bottom: 10px; color: #444; }

.twm-ministry-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.twm-ministry-box { background: #fff; padding: 40px 30px; text-align: center; border-radius: 12px; box-shadow: 0 8px 20px rgba(0,0,0,0.06); }
.twm-ministry-box h4 { color: #0060a5; margin-bottom: 15px; font-size: 22px; }

.twm-contact-box { background: #0060a5; color: #fff; text-align: center; border-radius: 15px; padding: 70px 40px; margin-top: 40px; }
.twm-contact-box h2 { font-size: 38px; margin-bottom: 20px; color: #fff; font-weight: 700; }
.twm-contact-box p { font-size: 18px; margin-bottom: 10px; color: rgba(255,255,255,0.9); }

/* [7] 공용 반응형 스타일 */
@media (max-width:991px){
    /* 상단 히어로 반응형 */
    .twm-hero, .twm-serving-hero, .twm-plan-hero, .twm-join-hero, .nanum-hero { height: 200px !important; }
    .twm-title, .twm-serving-hero h1, .twm-plan-hero h1, .twm-join-hero h1, .nanum-hero h1 { font-size: 28px; }

    .twm-serving-grid { grid-template-columns: 1fr; gap: 80px; }
    .twm-member-image { height: auto; }
    .twm-grid, .twm-timeline, .twm-ministry-list { grid-template-columns: 1fr; }
    .twm-section { padding: 70px 0; }
    .twm-heading { font-size: 26px; }
    .twm-contact-box h2 { font-size: 30px; }
}

/* [8] 함께하기 전용 스타일 */
.twm-office { padding: 110px 20px; text-align: center; background: #fff; }
.twm-office p { font-size: 22px; margin-bottom: 10px; color: #222; word-break: keep-all; }
.twm-office .address { margin-top: 30px; font-size: 16px; color: #888; line-height: 1.9; }

.twm-support-section {
    background: url('/wp-content/uploads/theworldmission/join/join-bg.jpg') center center / cover no-repeat;
    padding: 100px 0;
}
.twm-support-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; }
.twm-card-join { background: rgba(255,255,255,0.95); padding: 50px; border-radius: 10px; box-shadow: 0 10px 30px rgba(0,0,0,0.05); }
.twm-card-join h2 { font-size: 32px; color: #0060A5; margin-bottom: 20px; font-weight: 700; }
.twm-card-join hr { border: none; border-top: 1px solid #ddd; margin: 20px 0 30px; }
.twm-card-join p { margin-bottom: 14px; font-size: 17px; color: #333; word-break: keep-all; }

.twm-bank-box {
    margin-top: 35px; display: flex; align-items: center; gap: 18px;
    background: #f5f8fb; padding: 25px; border-radius: 10px; border: 1px solid #e1e8ef;
}
.twm-bank-box img { width: 45px; height: auto; }
.twm-bank-title { color: #0060A5; font-weight: 700; margin-bottom: 8px; font-size: 17px; }
.twm-bank-account { font-size: 18px; font-weight: 700; color: #222; line-height: 1.7; }

@media screen and (max-width: 991px){
    .twm-office p { font-size: 18px; }
    .twm-support-grid { grid-template-columns: 1fr; gap: 40px; }
    .twm-card-join { padding: 35px 25px; }
    .twm-bank-account { font-size: 16px; }
}

/* [9] 나눔공간 전용 스타일 */
.nanum-section { padding: 120px 0; }
.nanum-grid { display: grid; grid-template-columns: 380px 1fr; gap: 60px; align-items: start; }

.nanum-vision {
    background: url('https://cdn.imweb.me/thumbnail/20230504/d515e3895032c.png') center center / cover no-repeat;
    padding: 50px 40px; color: #fff; border-radius: 10px; position: sticky; top: 120px;
}
.nanum-vision::before { content: ''; position: absolute; inset: 0; background: rgba(0,0,0,0.55); border-radius: 10px; }
.nanum-vision-inner { position: relative; z-index: 2; }
.nanum-vision p { margin-bottom: 18px; font-size: 15px; line-height: 2; word-break: keep-all; }

.nanum-board-header {
    display: grid; grid-template-columns: 80px 1fr 120px 140px;
    padding: 18px 20px; border-top: 2px solid #111; border-bottom: 1px solid #ddd;
    font-weight: 700; background: #fafafa; text-align: center;
}
.nanum-board-row {
    display: grid; grid-template-columns: 80px 1fr 120px 140px;
    padding: 22px 20px; border-bottom: 1px solid #eee; transition: 0.2s; align-items: center; text-align: center;
}
.nanum-board-row:hover { background: #fafafa; }
.nanum-board-title { text-align: left; padding-left: 10px; }
.nanum-board-title a { color: #222; text-decoration: none; font-weight: 600; }
.nanum-comment { color: #0060a5; font-size: 14px; margin-left: 8px; font-weight: 600; }

.nanum-board-footer { display: flex; justify-content: space-between; align-items: center; margin-top: 30px; gap: 20px; }
.nanum-search { display: flex; gap: 10px; }
.nanum-search input { width: 260px; height: 45px; border: 1px solid #ddd; padding: 0 15px; }
.nanum-search button, .nanum-write-btn {
    height: 45px; border: none; background: #0060a5; color: #fff; padding: 0 24px; cursor: pointer; transition: 0.2s;
}
.nanum-write-btn:hover, .nanum-search button:hover { background: #004a80; }

@media (max-width: 991px) {
    .nanum-grid { grid-template-columns: 1fr; gap: 40px; }
    .nanum-vision { position: relative; top: 0; padding: 35px 25px; }
    .nanum-board-header { display: none; }
    .nanum-board-row { grid-template-columns: 1fr; text-align: left; padding: 25px 15px; gap: 5px; }
    .nanum-board-footer { flex-direction: column; align-items: stretch; }
}

/* [10] 콕미(KOGMI) 전용 스타일 */
.kogmi-page { width: 100%; background: #ffffff; }
.kogmi-container { max-width: 1200px; margin: 0 auto; padding: 120px 20px; text-align: center; }
.kogmi-image-link { display: inline-block; transition: all 0.3s ease; }
.kogmi-image-link:hover { transform: translateY(-8px); opacity: 0.95; }
.kogmi-image {
    width: 100%; max-width: 436px; height: auto; display: block;
    border-radius: 20px; box-shadow: 0 15px 45px rgba(0,0,0,0.1); border: 1px solid #f0f0f0;
}

/* 섹션 2: 정체성 소개 스타일 */
.twm-intro-section { width: 100%; background-color: #ffffff; text-align: center; }
.twm-container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* 여백 조절 */
.twm-spacer-100 { height: 100px; }
.twm-spacer-120 { height: 120px; }

.twm-intro-content { max-width: 800px; margin: 0 auto; }

.twm-intro-text { 
    font-size: 17px; 
    line-height: 2; 
    color: #333; 
    margin-bottom: 20px; 
    word-break: keep-all; 
}

/* T.H.E 강조 스타일 */
.twm-the-values { margin: 40px 0; }
.value-item { 
    font-size: 22px; 
    font-weight: 700; 
    color: #0060a5; 
    line-height: 2.5; 
    margin: 0;
}

/* 하단 강조 박스 (형광펜 효과) */
.highlight-box { 
    margin-top: 30px;
    padding: 20px;
    background-color: rgba(0, 96, 165, 0.05); /* 연한 파란 배경 */
    border-radius: 8px;
}
.highlight-box strong { color: #0060a5; }

/* 버튼 스타일 */
.twm-button-area { margin-top: 40px; }
.twm-more-btn {
    display: inline-block;
    padding: 12px 40px;
    background-color: #0060a5;
    color: #ffffff !important;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    border-radius: 4px;
    transition: background 0.3s;
}
.twm-more-btn:hover { background-color: #004a80; }

/* 모바일 최적화 */
@media (max-width: 768px) {
    .twm-spacer-100, .twm-spacer-120 { height: 60px; }
    .value-item { font-size: 19px; }
    .twm-intro-text { font-size: 15px; }
}

/* 섹션 3: 패럴랙스 비전 섹션 */
.twm-vision-parallax {
    position: relative;
    width: 100%;
    /* 배경 이미지 경로 (실제 워드프레스 업로드 경로로 수정 필요) */
    background-image: url('https://cdn.imweb.me/thumbnail/20230503/1ec66110b655c.jpg');
    background-attachment: fixed; /* 배경 고정 효과 */
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    overflow: hidden;
}

/* 어두운 오버레이 (글자를 잘 보이게 함) */
.twm-vision-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(20, 21, 22, 0.4); /* 아임웹의 0.3보다 가독성을 위해 살짝 높임 */
    z-index: 1;
}

.twm-vision-parallax .twm-container {
    position: relative;
    z-index: 2; /* 오버레이 위로 텍스트 배치 */
    text-align: center;
}

/* 텍스트 스타일 */
.twm-vision-content p {
    font-size: 24px;
    color: #ffffff;
    line-height: 2;
    margin-bottom: 0;
    word-break: keep-all;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3); /* 글자 가독성 보정 */
}

/* 파란색 강조 텍스트 */
.twm-blue-light {
    color: #4da3ff !important; /* 배경이 어두우므로 기존 진한 파랑보다 밝은 파랑 권장 */
    font-weight: 700;
}

.twm-highlight-text {
    line-height: 2.5 !important;
}

/* 여백 조절 */
.twm-spacer-60 { height: 60px; }
.twm-spacer-54 { height: 54px; }

/* 모바일 대응 */
@media (max-width: 768px) {
    .twm-vision-parallax {
        background-attachment: scroll; /* 모바일에서는 고정 효과가 어색할 수 있어 해제 가능 */
    }
    .twm-vision-content p {
        font-size: 18px;
        line-height: 1.8;
    }
    .twm-spacer-60, .twm-spacer-54 { height: 40px; }
}

/* 섹션 4: 뉴스 및 갤러리 그리드 */
.twm-news-section { 
    width: 1200px !important;    /* 가로폭을 1200px로 고정 */
    max-width: 92% !important;   /* 모바일 등 작은 화면에서 옆이 잘리지 않게 보호 */
    margin: 0 auto !important;   /* 좌우 여백을 자동으로 설정해 중앙으로 배치 */
    background: #ffffff; 
    padding: 60px 0;             /* 위아래 적절한 여백 */
}

.twm-news-grid { 
    display: grid; 
    grid-template-columns: 1fr 1fr; /* 5:5 비율 혹은 6:6 비율 */
    gap: 40px; 
    align-items: start;
}

.twm-section-title {
    font-size: 20px;
    font-weight: 700;
    color: #0060a5;
    margin-bottom: 25px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f0f0;
}

/* 게시판 목록 스타일 */
.twm-latest-posts { display: flex; flex-direction: column; }

.twm-post-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 13px 0;
    border-bottom: 1px solid #eeeeee;
}

.twm-post-item:last-child { border-bottom: none; }

.post-title {
    font-size: 16px;
    color: #333;
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
    margin-right: 20px;
}

.post-title:hover { color: #0060a5; }

.post-meta {
    font-size: 14px;
    color: #888;
    display: flex;
    gap: 15px;
    white-space: nowrap;
}

/* 갤러리 영역 스타일 */
.twm-gallery-container {
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
}

.twm-gallery-img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

/* 여백 */
.twm-spacer-50 { height: 50px; }

/* 모바일 대응 */
@media (max-width: 991px) {
    .twm-news-grid { grid-template-columns: 1fr; gap: 50px; }
    .twm-spacer-50 { height: 30px; }
}

/* [1] 헤더 레이아웃 - 수정본 */
#custom_imweb_header {
    background-color: #ffffff !important;
    position: fixed !important;
    top: 0;
    width: 100%;
    height: 93px;
    z-index: 9999;
    border-bottom: 1px solid #eeeeee;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
}

/* 관리자 바 대응 */
.admin-bar #custom_imweb_header { top: 32px !important; }
@media screen and (max-width: 782px) { .admin-bar #custom_imweb_header { top: 46px !important; } }

/* 헤더 컨테이너 */
.header-container { 
    width: 1200px; 
    max-width: 95%; 
    margin: 0 auto; 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
}

/* 로고 영역 */
.logo-area img { 
    display: block !important; 
    width: 156px !important; 
    height: auto !important; 
}

/* 메뉴 네비게이션 */
.custom-nav-ul { 
    display: flex !important; 
    list-style: none !important; 
    margin: 0 !important; 
    padding: 0 !important; 
    align-items: center;
}

.custom-nav-ul li { 
    margin-left: 30px !important; 
    position: relative;
}

/* 메뉴 텍스트 스타일: 경기천년바탕, 17px, Bold 적용 */
.custom-nav-ul li a { 
    text-decoration: none !important; 
    color: #333333 !important; 
    font-family: '경기천년바탕', 'GyeonggiBatang', serif !important; 
    font-size: 17px !important;     /* 17px로 수정 */
    font-weight: 700 !important;    /* Bold(두껍게) 적용 */
    transition: color 0.3s ease;
    padding: 10px 0;
    display: block;
}

/* 호버 효과: 브랜드 컬러(#0060a5) */
.custom-nav-ul li a:hover { 
    color: #0060a5 !important; 
}

/* 호버 시 하단 라인 애니메이션 */
.custom-nav-ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: #0060a5;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.custom-nav-ul li a:hover::after {
    width: 100%;
}

/* 헤더 공간 확보용 스페이서 */
.header-spacer { height: 93px; }

/* 기존 테마 헤더 숨김 
.ast-primary-header-bar, .site-header, .main-header-bar { display: none !important; }
*/

/* 모바일 대응 */
@media screen and (max-width: 991px) {
    .custom-nav-ul li { margin-left: 15px !important; }
    .custom-nav-ul li a { font-size: 15px !important; }
}

/* 모든 메뉴 페이지 히어로 영역 가로 풀사이즈 강제 적용 */
.twm-hero, 
.twm-serving-hero, 
.twm-plan-hero, 
.twm-join-hero, 
.nanum-hero {
    position: relative !important;
    width: 100vw !important;         /* 화면 전체 너비 */
    left: 50% !important;            /* 중앙 기준점 */
    transform: translateX(-50%) !important; /* 중앙 정렬 */
    height: 290px !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    box-sizing: border-box !important;
}

/* 히어로 내부 텍스트 위치 보정 */
.twm-hero-content, 
.twm-serving-hero-content, 
.twm-plan-hero-content, 
.twm-join-hero-content, 
.nanum-hero-content {
    width: 100% !important;
    max-width: 1200px !important;    /* 글자는 다시 1200px 안으로 */
    margin: 0 auto !important;
    padding: 0 20px !important;
    position: relative !important;
    z-index: 2 !important;
}

/* =========================
   Scroll Fade Up Animation
========================= */

/* 기본 상태 */
.twm-animate {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s ease;
    will-change: opacity, transform;
}

/* 활성 상태 */
.twm-animate.active {
    opacity: 1;
    transform: translateY(0);
}