/* Main Styles */
:root {
    --primary-color: #2c9aa0;
    --primary-light: #4a7bc8;
    --primary-dark: #1a3d6f;
    --secondary-color: #5c6f82;
    --accent-color: #e67e22;
    --text-dark: #2c3e50;
    --text-light: #6c757d;
    --text-muted: #95a5a6;
    --background-light: #f8f9fa;
    --background-lighter: #ffffff;
    --border-color: #e0e6ed;
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
    --white: #ffffff;
}

/* Header */
.header {
    position: relative;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%);
    color: var(--white);
    box-shadow: var(--shadow-md);
    z-index: 10;
}

.header-shadow {
    display: none;
}

.header-title {
    font-size: 2.2rem;
    font-weight: 700;
    z-index: 1;
    letter-spacing: -0.5px;
    margin: 0;
}

/* Mobile Menu Toggle Button in Header (햄버거) */
.menu-toggle {
    display: none;
    position: absolute;
    right: 30px;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 40px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    z-index: 10;
    padding: 0;
    background: transparent;
    border: none;
    transition: opacity 0.3s ease;
}

.menu-toggle.active {
    opacity: 0;
    pointer-events: none;
}

.menu-toggle span {
    display: block;
    width: 28px;
    height: 3px;
    background-color: var(--white);
    transition: all 0.3s ease;
    border-radius: 2px;
    position: relative;
}

/* Mobile Menu Close Button (X - 메뉴 안) */
.menu-close {
    display: none;
    position: absolute;
    right: 30px;
    top: 30px;
    width: 50px;
    height: 40px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 0;
    cursor: pointer;
    z-index: 10;
    padding: 0;
    background: transparent;
    border: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.menu-close.active {
    opacity: 1;
}

.menu-close span {
    display: block;
    width: 28px;
    height: 3px;
    background-color: var(--text-dark);
    transition: all 0.3s ease;
    border-radius: 2px;
    position: absolute;
}

.menu-close span:nth-child(1) {
    transform: rotate(45deg);
}

.menu-close span:nth-child(2) {
    opacity: 0;
}

.menu-close span:nth-child(3) {
    transform: rotate(-45deg);
}

/* Bible Banner */
.bible-banner {
    height: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--background-light);
    color: var(--text-light);
}

.bible-banner p {
    margin: 0;
    font-size: 0.9rem;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--white);
    border: 1px solid #000;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 25;
    transition: all 0.3s ease;
    padding: 10px;
}

.back-to-top img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

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

.back-to-top.visible {
    display: flex;
}

/* Main Content */
.main-content {
    width: 100%;
}

/* Section Base Styles */
.section {
    position: relative;
    min-height: 600px;
    padding: 100px 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.section-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 0;
}

.section-content {
    position: relative;
    width: 90%;
    max-width: 1200px;
    background-color: var(--overlay);
    border-radius: 40px;
    padding: 50px;
    text-align: center;
    z-index: 1;
}

.section-title {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 30px;
    color: var(--text-dark);
}

/* Footer */
.footer {
    background: linear-gradient(135deg, #2a2a2a 0%, #1a1a1a 100%);
    color: #b8b8b8;
    padding: 40px 0 20px;
    margin-top: 60px;
}

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

.footer-top {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 20px;
    margin-bottom: 30px;
}

.footer-links {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.footer-links a {
    color: #d0d0d0;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
    padding: 5px 10px;
}

.footer-links a:hover {
    color: var(--white);
}

.footer-divider {
    color: rgba(255, 255, 255, 0.3);
}

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

.footer-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.footer-logo-section {
    flex-shrink: 0;
}

.footer-logo {
    width: 200px;
    height: auto;
    opacity: 0.9;
}

.footer-contact {
    text-align: center;
}

.footer-church-name {
    font-size: 18px;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 10px;
}

.footer-address {
    font-size: 13px;
    line-height: 1.8;
    color: #b8b8b8;
    margin-bottom: 5px;
}

.footer-address a {
    color: #b8b8b8;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-address a:hover {
    color: var(--white);
}

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

.footer-copyright {
    font-size: 12px;
    color: #888;
}

footer .credit {
    font-size: 0.85rem;
    color: #9ca3af;
    margin-top: 8px;
}

footer .credit a {
    color: #6b7280;
    text-decoration: none;
}

footer .credit a:hover {
    color: #4a9eff;
    text-decoration: underline;
}

/* Responsive */
@media screen and (max-width: 768px) {
    .footer {
        padding: 30px 0 15px;
    }

    .footer-links {
        flex-direction: column;
        gap: 8px;
    }

    .footer-divider {
        display: none;
    }

    .footer-info {
        flex-direction: column;
        gap: 20px;
    }

    .footer-logo {
        width: 150px;
    }

    .footer-address {
        font-size: 12px;
    }
}

/* Responsive Design */
@media screen and (max-width: 768px) {
    .header {
        height: 120px;
    }

    .header-title {
        font-size: 1.5rem;
    }

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

    .section-content {
        width: 95%;
        padding: 30px 20px;
    }

    .back-to-top {
        width: 40px;
        height: 40px;
        font-size: 20px;
        bottom: 20px;
        right: 20px;
    }
}

@media screen and (max-width: 480px) {
    .header {
        height: 100px;
    }

    .header-title {
        font-size: 1.2rem;
    }

    .section-title {
        font-size: 1.5rem;
    }
}