/* Change Life Church 主要樣式 */
body {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
}

#wrapper {
    width: 100%;
    min-height: 100vh;
}

/* Loading 樣式 */
#loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.9);
    z-index: 9999;
    display: none;
}

#myspin {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #008088;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Header 樣式 */
.headerTable {
    width: 100%;
    background: #008088;
    padding: 10px 0;
    position: relative;
}

.headerTable.on {
    display: block;
}

.logo {
    text-align: center;
    margin-bottom: 20px;
}

.logo a {
    color: white;
    text-decoration: none;
    font-size: 24px;
    font-weight: bold;
}

.nav {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

.menu li {
    position: relative;
    margin: 0 15px;
}

.menu li a {
    color: white;
    text-decoration: none;
    padding: 10px 15px;
    display: block;
    transition: background-color 0.3s;
}

.menu li a:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.submenu {
    position: absolute;
    top: 100%;
    left: 0;
    background: #006666;
    min-width: 200px;
    display: none;
    z-index: 1000;
}

.menu li:hover .submenu {
    display: block;
}

.submenu a {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    white-space: nowrap;
}

.topbar {
    list-style: none;
    margin: 20px 0 0 0;
    padding: 0;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

.topbar li {
    margin: 0 10px;
}

.topbar li a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 14px;
}

.share {
    list-style: none;
    margin: 20px 0 0 0;
    padding: 0;
    display: flex;
    justify-content: center;
}

.share li {
    margin: 0 10px;
}

.share li a {
    color: white;
    text-decoration: none;
    padding: 5px;
    display: block;
}

/* Mobile Header */
.headerMobile {
    display: none;
    background: #008088;
    position: fixed;
    top: 0;
    left: -100%;
    width: 80%;
    height: 100vh;
    z-index: 10000;
    transition: left 0.3s;
    overflow-y: auto;
}

.headerMobile.open {
    left: 0;
}

.mobileMenu {
    display: none;
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 10001;
    color: white;
    text-decoration: none;
    font-size: 18px;
}

/* Content 樣式 */
.content {
    min-height: calc(100vh - 200px);
    padding: 40px 0;
}

.mainbox {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.banner {
    position: relative;
    height: 400px;
    margin-bottom: 40px;
    overflow: hidden;
}

.banner .box {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    z-index: 2;
}

.banner .box h2 {
    font-size: 36px;
    margin: 0 0 10px 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.banner .box h3 {
    font-size: 24px;
    margin: 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.banner .bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #008088, #006666);
}

.banner .bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.7;
}

.mainboxhd {
    background: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.mainboxhd h2 {
    color: #008088;
    font-size: 28px;
    margin: 0 0 10px 0;
    text-align: center;
}

.mainboxhd h3 {
    color: #666;
    font-size: 20px;
    margin: 0 0 30px 0;
    text-align: center;
}

.mainboxhd .text {
    line-height: 1.8;
    color: #333;
    font-size: 16px;
}

/* Footer 樣式 */
.footer {
    background: #333;
    color: white;
    text-align: center;
    padding: 20px 0;
    margin-top: 40px;
}

.copyright {
    font-size: 14px;
}

/* Popup 樣式 */
.popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 10000;
    display: none;
}

.popup .close {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 10001;
}

.popup .close a {
    color: white;
    text-decoration: none;
    font-size: 18px;
}

#iframe {
    width: 80%;
    height: 80%;
    margin: 5% auto;
    background: white;
}

/* Responsive 設計 */
@media (max-width: 768px) {
    .mobileMenu {
        display: block;
    }
    
    .headerTable {
        display: none;
    }
    
    .headerMobile {
        display: block;
    }
    
    .menu {
        flex-direction: column;
    }
    
    .menu li {
        margin: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .submenu {
        position: static;
        display: none;
        background: #004444;
    }
    
    .menu li.active .submenu {
        display: block;
    }
    
    .topbar, .share {
        flex-direction: column;
        align-items: center;
    }
    
    .topbar li, .share li {
        margin: 5px 0;
    }
    
    .banner {
        height: 250px;
    }
    
    .banner .box h2 {
        font-size: 24px;
    }
    
    .banner .box h3 {
        font-size: 18px;
    }
    
    .mainboxhd {
        padding: 20px;
        margin: 0 10px;
    }
    
    .mainboxhd h2 {
        font-size: 22px;
    }
    
    .mainboxhd h3 {
        font-size: 16px;
    }
}

/* 輔助類別 */
.cs3amAll {
    transition: all 0.3s ease;
}

.mobileMenuMask {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
}

#isMobile, #footerSaveWidth {
    display: none;
}