/* ===========================
   엠마오교회 - 교회소개 페이지 스타일
   ========================== */

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #5c8fdc;
    --secondary-color: #7ba5e8;
    --accent-color: #5c8fdc;
    --teal-color: #5c8fdc;
    --text-dark: #1a1a1a;
    --text-light: #666;
    --bg-light: #f8f9fa;
    --white: #ffffff;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    /* --transition: all 0.3s ease; (애니메이션 제거됨) */

    /* ✅ 추가: navbar 높이 통일(틈 방지 핵심) */
    --nav-h: 80px;
}
body {
    font-family: 'Noto Sans KR', sans-serif;
    line-height: 1.7;
    color: var(--text-dark);
    word-break: keep-all;
    word-wrap: break-word;
    overflow-x: hidden;
    font-weight: 300;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===========================
   Navigation
   ========================== */
/* style.css의 navbar 스타일 사용 */

/* ===========================
   Hero Section
   ========================== */
.hero-about {
    height: 350px;
    background: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--text-dark);
    margin-top: 100px;
    margin-bottom: 0;
    padding-top: 0;
    padding-bottom: 40px;
    position: relative;
    overflow: visible;
}
.hero-overlay {
    display: none;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 500;
    margin-bottom: 1rem;
    color: var(--teal-color);
}

.hero-content p {
    font-size: 1.3rem;
    font-weight: 300;
    color: var(--text-light);
}

.fade-in {
    /* animation: fadeInUp 1s ease-out; (애니메이션 제거됨) */
}

.fade-in-delay {
    /* animation: fadeInUp 1s ease-out 0.3s backwards; (애니메이션 제거됨) */
}

/* @keyframes fadeInUp (애니메이션 제거됨) */

/* ===========================
   Sub Navigation
   ========================== */
.sub-nav {
    background: var(--white);
    box-shadow: none;

    position: sticky;
    top: 70px;

    z-index: 999;

    /* ✅ 위쪽 패딩을 줄여서 ‘틈’ 느낌 제거 */
    padding: 20px 0;

    overflow: visible;
    margin-top: 0;
}

.sub-nav .container {
    overflow: visible;
}

.sub-nav-list {
    display: flex;
    list-style: none;
    justify-content: center;
    gap: 3rem;
    padding: 0;
    margin: 0;
    overflow: visible;
}

.sub-nav-list li {
    overflow: visible;
}

.sub-nav-list a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 400;
    /* transition: var(--transition); (애니메이션 제거됨) */
    padding: 14px 26px;
    border-radius: 25px;
    display: inline-block;
    line-height: 1.2;
}

.sub-nav-list a:hover,
.sub-nav-list a.active {
    background: var(--primary-color);
    color: var(--white);
    /* transform: translateY(0); (애니메이션 제거됨) */
}

/* ===========================
   Section Common Styles
   ========================== */
.section {
    padding: 5rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-tag {
    display: inline-block;
    color: var(--accent-color);
    font-weight: 400;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 0.5rem;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 400;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.section-header p {
    font-size: 1.1rem;
    color: var(--text-light);
}

/* ===========================
   Church Introduction Section
   ========================== */
.intro-section {
    background: var(--white);
}

.intro-content-simple {
    max-width: 900px;
    margin: 0 auto;
}

.intro-text-center {
    text-align: center;
}

.intro-text-center .section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.intro-description {
    font-size: 1.2rem;
    line-height: 2;
    color: var(--text-dark);
    margin-bottom: 2rem;
}

/* Highlight Text */
.highlight-text {
    color: var(--primary-color);
    font-weight: 400;
    position: relative;
}

/* Vision Cards Horizontal */
.vision-cards-horizontal {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    margin-top: 4rem;
}

.vision-item-simple {
    text-align: center;
    padding: 2rem 1rem;
    /* transition: var(--transition); (애니메이션 제거됨) */
}

.vision-item-simple:hover {
    transform: translateY(-5px);
}

.vision-item-simple .vision-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 1.5rem;
    /* transition: var(--transition); (애니메이션 제거됨) */
}

.vision-item-simple:hover .vision-icon {
    transform: scale(1.1);
    box-shadow: 0 10px 30px rgba(44, 95, 125, 0.3);
}

.vision-item-simple h4 {
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-weight: 400;
}

.vision-item-simple p {
    color: var(--text-light);
    font-size: 1rem;
    line-height: 1.6;
}

/* Gallery Grid */
.intro-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.gallery-item {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    height: 300px;
    box-shadow: var(--shadow);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* transition: var(--transition); (애니메이션 제거됨) */
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(44, 95, 125, 0.95), transparent);
    padding: 2rem;
    color: var(--white);
    transform: translateY(100%);
    /* transition: var(--transition); (애니메이션 제거됨) */
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
}

.gallery-overlay h4 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    font-weight: 400;
}

.gallery-overlay p {
    font-size: 0.95rem;
}

/* ===========================
   Staff Section
   ========================== */
.staff-section {
    background: var(--bg-light);
}

.pastor-profile {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
    margin-bottom: 4rem;
    background: var(--white);
    padding: 3rem;
    border-radius: 15px;
    box-shadow: var(--shadow);
}

.pastor-image {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pastor-image img {
    width: 100%;
    border-radius: 15px;
    box-shadow: var(--shadow);
}

.silhouette-image {
    width: 100%;
    height: 400px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow);
}

.silhouette-image i {
    font-size: 8rem;
    color: rgba(255, 255, 255, 0.3);
}

.pastor-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.pastor-label {
    display: inline-block;
    background: var(--primary-color);
    color: var(--white);
    padding: 0.5rem 1.5rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 400;
    width: fit-content;
}

.pastor-info h3 {
    font-size: 2rem;
    color: var(--primary-color);
    font-weight: 400;
}

.pastor-quote {
    background: var(--bg-light);
    padding: 1.5rem;
    border-left: 4px solid var(--accent-color);
    border-radius: 5px;
    margin: 1rem 0;
}

.pastor-quote i {
    color: var(--accent-color);
    font-size: 1.2rem;
    margin-right: 0.5rem;
}

.pastor-quote p {
    font-size: 1.1rem;
    font-style: italic;
    color: var(--text-dark);
}

.pastor-bio p {
    line-height: 1.8;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
}

.pastor-education h4 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.pastor-education ul {
    list-style: none;
    margin-left: 1.5rem;
}

.pastor-education li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.pastor-education li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--accent-color);
}

/* Staff Grid */
.staff-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.staff-card {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    /* transition: var(--transition); (애니메이션 제거됨) */
}

.staff-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.staff-image {
    position: relative;
    height: 300px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    display: flex;
    align-items: center;
    justify-content: center;
}

.staff-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* transition: var(--transition); (애니메이션 제거됨) */
}

.staff-card:hover .staff-image img {
    transform: scale(1.1);
}

.staff-image .silhouette-image {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    /* transition: var(--transition); (애니메이션 제거됨) */
}

.staff-image .silhouette-image i {
    font-size: 5rem;
    color: rgba(255, 255, 255, 0.3);
    /* transition: var(--transition); (애니메이션 제거됨) */
}

.staff-card:hover .staff-image .silhouette-image {
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
}

.staff-card:hover .staff-image .silhouette-image i {
    transform: scale(1.1);
    color: rgba(255, 255, 255, 0.4);
}

.staff-info {
    padding: 1.5rem;
    text-align: center;
}

.staff-info h4 {
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-weight: 400;
}

.staff-role {
    display: inline-block;
    color: var(--accent-color);
    font-weight: 400;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.staff-info p {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ===========================
   Location Section
   ========================== */
.location-section {
    background: var(--white);
}

.location-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 3rem;
}

.location-map iframe {
    border-radius: 15px;
    box-shadow: var(--shadow);
}

.location-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.info-box {
    display: flex;
    gap: 1.5rem;
    padding: 1.5rem;
    background: var(--bg-light);
    border-radius: 10px;
    /* transition: var(--transition); (애니메이션 제거됨) */
}

.info-box:hover {
    background: var(--white);
    box-shadow: var(--shadow);
}

.info-icon {
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
}

.info-text h4 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
    font-weight: 400;
}

.info-text p {
    color: var(--text-dark);
    font-size: 1rem;
    margin-bottom: 0.3rem;
}

.sub-text {
    color: var(--text-light);
    font-size: 0.9rem;
}

.info-text ul {
    list-style: none;
}

.info-text li {
    position: relative;
    padding-left: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
    font-size: 0.95rem;
}

.info-text li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--accent-color);
}

/* ===========================
   Footer
   ========================== */
.footer {
    background: #f8f8f8;
    color: #999;
    padding: 40px 0 20px;
    border-top: 1px solid #e8e8e8;
}

.footer-main {
    padding-bottom: 30px;
}

.footer-logo {
    margin-bottom: 10px;
}

.footer-church-logo {
    height: 40px;
    width: auto;
    object-fit: contain;
}

.footer-info {
    margin-left: 0;
    margin-top: 0;
}

.footer-address {
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 8px;
}

.footer-contact {
    font-size: 0.9rem;
    color: #999;
}

.footer-contact .separator {
    margin: 0 10px;
}

.footer-bottom {
    text-align: left;
    padding-top: 20px;
    border-top: 1px solid #e8e8e8;
    font-size: 0.85rem;
    color: #999;
}

.footer-bottom p {
    margin: 0;
}

/* ===========================
   Scroll to Top Button
   ========================== */
.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    box-shadow: var(--shadow);
    /* transition: var(--transition); (애니메이션 제거됨) */
    opacity: 0;
    visibility: hidden;
    z-index: 1000;
}

.scroll-top.show {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    background: var(--secondary-color);
    transform: translateY(-5px);
}

/* ===========================
   Animation Classes
   ========================== */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
}

/* ===========================
   Responsive Design
   ========================== */
@media (max-width: 1024px) {
    .vision-cards-horizontal {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .pastor-profile {
        grid-template-columns: 1fr;
    }
    
    .staff-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .location-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    body {
        font-size: 14px;
    }
    
    .nav-wrapper {
        flex-wrap: wrap;
        gap: 15px;
    }
    
    .logo-img {
        height: 40px;
        margin-right: 10px;
    }
    
    .nav-menu {
        width: 100%;
        justify-content: center;
        gap: 15px;
        padding: 10px 0;
        order: 3;
        font-size: 0.85rem;
    }
    
    .nav-social {
        order: 2;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
    
    .sub-nav-list {
        gap: 1rem;
        flex-wrap: wrap;
    }
    
    /* 모바일: 서브메뉴 fixed 해제 */
    .sub-nav {
        position: relative !important;
        top: auto !important;
        padding: 15px 0 !important;
    }
    
    /* 모바일: Hero 영역 조정 */
    .hero-about {
        margin-top: 20px !important;
        padding-top: 30px !important;
        height: auto !important;
        min-height: 200px !important;
    }
    
    .section {
        padding: 3rem 0;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .vision-cards-horizontal {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .staff-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .sub-nav-list {
        font-size: 0.9rem;
    }
    
    .section-header h2 {
        font-size: 1.75rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }

    /* ===========================
       모바일 서브메뉴 및 Hero 조정
       ========================== */
    
    /* 서브메뉴: sticky 해제하고 일반 flow로 */
    .sub-nav {
        position: relative !important;
        top: auto !important;
        padding: 15px 0 !important;
        margin-top: 0 !important;
    }
    
    /* Hero 영역: margin-top 줄이기 */
    .hero-about {
        margin-top: 20px !important;
        padding-top: 40px !important;
        height: auto !important;
        min-height: 250px !important;
    }
    
    .hero-content h1 {
        font-size: 1.75rem !important;
    }
    
    .hero-content p {
        font-size: 1rem !important;
    }
}
