/* ===========================
   엠마오교회 - 예배안내 페이지 스타일
   ========================== */

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

:root {
    --primary-color: #5c8fdc;
    --secondary-color: #7ba5e8;
    --accent-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; (애니메이션 제거됨) */
}

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

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

/* ===========================
   Navigation
   ========================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: none;
    z-index: 1000;
    padding: 1rem 0;
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: 300;
    color: var(--primary-color);
    text-decoration: none;
    /* transition: var(--transition); (애니메이션 제거됨) */
}

.logo:hover {
    color: var(--secondary-color);
}

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

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

.nav-menu a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 600; /* 400 → 600 (다른 페이지와 통일) */
    font-size: 1.05rem; /* 크기도 통일 */
    padding-bottom: 5px;
    border-bottom: 3px solid transparent;
    /* transition: var(--transition); (애니메이션 제거됨) */
}

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

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

.nav-social a {
    color: var(--text-dark);
    font-size: 1.2rem;
    /* transition: var(--transition); (애니메이션 제거됨) */
}

.nav-social a:hover {
    color: var(--primary-color);
    /* transform: translateY(-2px); (애니메이션 제거됨) */
}

/* ===========================
   Hero Section
   ========================== */
.hero-worship {
    height: 400px;
    background: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--text-dark);
    margin-top: 80px;
    position: relative;
    overflow: hidden;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 500;
    margin-bottom: 1rem;
    color: var(--primary-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 (애니메이션 제거됨) */

/* ===========================
   Worship Schedule Section
   ========================== */
.worship-schedule-section {
    padding: 5rem 0;
    background: var(--white);
}

.worship-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

/* Worship Image */
.worship-image {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.worship-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.image-year {
    position: absolute;
    top: 20px;
    left: 20px;
    background: var(--white);
    color: var(--primary-color);
    padding: 0.5rem 1.5rem;
    border-radius: 25px;
    font-weight: 500;
    font-size: 1rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Worship Schedule */
.worship-schedule h2 {
    font-size: 2.5rem;
    font-weight: 500;
    color: var(--text-dark);
    margin-bottom: 3rem;
}

.schedule-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.schedule-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.8rem 2rem;
    background: var(--white);
    border-bottom: 1px solid #e8e8e8;
    /* transition: var(--transition); (애니메이션 제거됨) */
}

.schedule-item:first-child {
    border-radius: 15px 15px 0 0;
}

.schedule-item:last-child {
    border-bottom: none;
    border-radius: 0 0 15px 15px;
}

.schedule-item:hover {
    background: #f9fbff;
    transform: translateX(5px);
}

.schedule-name {
    font-size: 1.2rem;
    font-weight: 400;
    color: var(--text-dark);
}

.schedule-time {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 1.1rem;
    color: var(--text-light);
}

.schedule-time i {
    color: var(--primary-color);
    font-size: 1rem;
}

/* ===========================
   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) {
    .worship-layout {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

@media (max-width: 768px) {
    .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.9rem;
    }
    
    .nav-social {
        order: 2;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-content p {
        font-size: 1.1rem;
    }
    
    .worship-schedule h2 {
        font-size: 2rem;
    }
    
    .schedule-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
        padding: 1.5rem;
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .worship-schedule h2 {
        font-size: 1.75rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
}
