/* 전역 스타일 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #8a9ba8;
    --secondary-color: #b4c5d4;
    --accent-color: #c9a96e;
    --text-dark: #3d4852;
    --text-light: #6c7983;
    --bg-light: #f4f6f8;
    --white: #ffffff;
    --gray-100: #e8ecf0;
    --gray-200: #d4dce4;
    --warm-silver: #c5cfd9;
    --shadow: 0 2px 20px rgba(138, 155, 168, 0.12);
    --shadow-hover: 0 8px 30px rgba(138, 155, 168, 0.2);
}

body {
    font-family: 'Noto Sans KR', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    overflow-x: hidden;
}

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

/* 헤더 */
.header {
    background: var(--white);
    box-shadow: var(--shadow);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.logo i {
    font-size: 2rem;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-menu a:hover {
    color: var(--primary-color);
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-menu a:hover::after {
    width: 100%;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--primary-color);
    cursor: pointer;
}

/* 히어로 섹션 */
.hero {
    height: 100vh;
    background-image: 
        linear-gradient(135deg, rgba(138, 155, 168, 0.85) 0%, rgba(180, 197, 212, 0.75) 100%),
        url('../images/church-interior.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin-top: 70px;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(2px);
}

.hero-content {
    position: relative;
    z-index: 1;
    color: var(--white);
    padding: 2rem;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    animation: fadeInUp 1s ease;
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    animation: fadeInUp 1.2s ease;
}

.hero-verse {
    background: rgba(255, 255, 255, 0.15);
    padding: 2rem;
    border-radius: 10px;
    border-left: 4px solid var(--accent-color);
    margin: 2rem auto;
    max-width: 600px;
    backdrop-filter: blur(5px);
    animation: fadeInUp 1.4s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.hero-verse p {
    font-size: 1.2rem;
    font-style: italic;
    margin-bottom: 0.5rem;
}

.hero-verse span {
    font-size: 0.9rem;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
    animation: fadeInUp 1.6s ease;
}

.btn {
    padding: 0.8rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-primary {
    background: var(--accent-color);
    color: var(--white);
    border: none;
}

.btn-primary:hover {
    background: #c69463;
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.btn-secondary:hover {
    background: var(--white);
    color: var(--primary-color);
}

/* 섹션 공통 스타일 */
section {
    padding: 5rem 0;
}

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

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

.divider {
    width: 60px;
    height: 4px;
    background: var(--accent-color);
    margin: 0 auto;
}

/* 교회 소개 */
.about {
    background: var(--bg-light);
}

.about-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.about-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-top: 3px solid transparent;
}

.about-card:hover {
    border-top-color: var(--primary-color);
}

.about-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.about-card:hover .icon-box {
    transform: scale(1.1);
    box-shadow: 0 5px 15px rgba(45, 90, 140, 0.3);
}

.icon-box {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--warm-silver) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(138, 155, 168, 0.3);
}

.icon-box i {
    font-size: 2rem;
    color: var(--white);
}

.about-card h3 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.about-card p {
    color: var(--text-light);
    line-height: 1.8;
}

/* 담임목사 섹션 */
.pastor {
    background: var(--white);
}

.pastor-content {
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: 4rem;
    align-items: start;
}

.pastor-image-wrapper {
    position: sticky;
    top: 100px;
}

.pastor-image {
    position: relative;
    background: linear-gradient(135deg, var(--gray-100) 0%, var(--warm-silver) 100%);
    border-radius: 10px;
    overflow: hidden;
    padding: 2rem;
    box-shadow: var(--shadow);
}

.pastor-image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
}

.pastor-name-card {
    margin-top: 1.5rem;
    padding: 1.5rem;
    background: var(--white);
    border-radius: 10px;
    box-shadow: var(--shadow);
    text-align: center;
    border-top: 3px solid var(--primary-color);
}

.pastor-name-card h3 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.pastor-name-card p {
    color: var(--text-light);
    font-size: 0.95rem;
}

.pastor-greeting {
    background: var(--white);
    padding: 0;
}

.pastor-greeting h4 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--gray-200);
}

.pastor-greeting h4 i {
    color: var(--accent-color);
    margin-right: 0.8rem;
}

.greeting-text {
    line-height: 2;
    color: var(--text-dark);
}

.greeting-text p {
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
    line-height: 1.9;
}

.greeting-text strong {
    color: var(--primary-color);
    font-weight: 600;
}

.pastor-signature {
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid var(--gray-200);
    text-align: right;
    font-size: 1.1rem;
    color: var(--text-dark);
}

.pastor-signature strong {
    font-size: 1.2rem;
    color: var(--primary-color);
}

/* 설교 영상 */
.sermons {
    background: var(--bg-light);
}

.section-subtitle {
    text-align: center;
    color: var(--text-light);
    font-size: 1.1rem;
    margin-top: 0.5rem;
}

.sermons-content {
    display: grid;
    gap: 3rem;
}

.youtube-channel {
    background: linear-gradient(135deg, #ff0000 0%, #cc0000 100%);
    padding: 3rem;
    border-radius: 15px;
    text-align: center;
    color: var(--white);
    box-shadow: 0 10px 30px rgba(255, 0, 0, 0.2);
}

.channel-info i {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.channel-info h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.channel-info p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

.btn-youtube {
    background: var(--white);
    color: #ff0000;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    transition: all 0.3s ease;
    font-size: 1.1rem;
}

.btn-youtube:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(255, 255, 255, 0.3);
}

.btn-youtube i {
    font-size: 1.5rem;
}

.sermon-placeholder {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: var(--shadow);
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.video-item {
    background: var(--gray-100);
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.video-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.video-thumbnail {
    aspect-ratio: 16/9;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--white);
    position: relative;
}

.video-thumbnail i {
    font-size: 4rem;
    margin-bottom: 0.5rem;
    opacity: 0.9;
}

.video-thumbnail p {
    font-size: 1.2rem;
    font-weight: 600;
}

.video-info {
    padding: 1.5rem;
    background: var(--white);
}

.video-info h4 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.video-info p {
    color: var(--text-light);
    font-size: 0.95rem;
}

.sermon-note {
    text-align: center;
    color: var(--text-light);
    padding: 1.5rem;
    background: var(--gray-100);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.sermon-note i {
    color: var(--primary-color);
}

/* 예배안내 */
.worship {
    background: var(--white);
}

.worship-schedule {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.worship-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    position: relative;
}

.worship-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.worship-card.featured {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--white);
    border: none;
    box-shadow: 0 8px 25px rgba(138, 155, 168, 0.3);
}

.worship-icon {
    width: 70px;
    height: 70px;
    background: var(--bg-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.worship-card.featured .worship-icon {
    background: rgba(255, 255, 255, 0.2);
}

.worship-icon i {
    font-size: 2rem;
    color: var(--primary-color);
}

.worship-card.featured .worship-icon i {
    color: var(--white);
}

.worship-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.worship-card.featured h3 {
    color: var(--white);
}

.worship-card .time {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--accent-color);
    margin-bottom: 0.5rem;
}

.worship-card.featured .time {
    color: var(--accent-color);
}

.worship-card .location {
    color: var(--text-light);
}

.worship-card.featured .location {
    color: rgba(255, 255, 255, 0.9);
}

.worship-card .day {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-top: 0.3rem;
}

.worship-card.featured .day {
    color: rgba(255, 255, 255, 0.9);
}

.badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--accent-color);
    color: var(--white);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

/* 부서안내 */
.ministry {
    background: var(--white);
}

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

.ministry-card {
    background: var(--bg-light);
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.ministry-card:hover {
    border-color: var(--primary-color);
    transform: scale(1.05);
}

.ministry-card i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.ministry-card h3 {
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-bottom: 0.8rem;
}

.ministry-card p {
    color: var(--text-light);
    line-height: 1.6;
}

/* 갤러리 */
.gallery {
    background: var(--bg-light);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: var(--shadow);
    aspect-ratio: 4/3;
}

.gallery-placeholder {
    width: 100%;
    height: 100%;
    background: var(--gray-200);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-placeholder {
    transform: scale(1.05);
}

.gallery-placeholder i {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.gallery-placeholder p {
    font-size: 1.2rem;
    font-weight: 600;
}

/* 오시는길 */
.contact {
    background: var(--white);
}

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

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.info-item {
    display: flex;
    gap: 1.5rem;
    align-items: start;
}

.info-item i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-top: 0.3rem;
}

.info-item h4 {
    font-size: 1.2rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.info-item p {
    color: var(--text-light);
    line-height: 1.6;
}

.contact-map {
    background: var(--bg-light);
    border-radius: 10px;
    overflow: hidden;
    min-height: 400px;
}

.map-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    text-align: center;
    color: var(--text-light);
}

.map-placeholder i {
    font-size: 4rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.map-placeholder p {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.map-placeholder small {
    font-size: 0.9rem;
}

/* 푸터 */
.footer {
    background: var(--text-dark);
    color: var(--white);
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-logo i {
    font-size: 2.5rem;
}

.footer-logo h3 {
    font-size: 1.5rem;
}

.footer-info p {
    margin-bottom: 0.5rem;
    color: rgba(255, 255, 255, 0.8);
}

.footer-social {
    display: flex;
    gap: 1rem;
}

.footer-social a {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.3rem;
    transition: all 0.3s ease;
}

.footer-social a:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.6);
}

/* 맨 위로 버튼 */
.scroll-to-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.5rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
}

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

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

/* 애니메이션 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 반응형 디자인 */
@media (max-width: 968px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: var(--white);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: var(--shadow);
        padding: 2rem 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .mobile-menu-toggle {
        display: block;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .pastor-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .pastor-image-wrapper {
        position: relative;
        top: 0;
    }

    .pastor-image {
        max-width: 350px;
        margin: 0 auto;
    }

    .contact-content {
        grid-template-columns: 1fr;
    }

    .section-header h2 {
        font-size: 2rem;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 1.5rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-verse p {
        font-size: 1rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }

    .about-content,
    .worship-schedule,
    .ministry-grid,
    .gallery-grid {
        grid-template-columns: 1fr;
    }

    section {
        padding: 3rem 0;
    }

    .scroll-to-top {
        width: 45px;
        height: 45px;
        bottom: 20px;
        right: 20px;
    }
}