/* Church Introduction Section */
.section-intro {
    min-height: 1500px;
}

.section-intro .section-bg {
    background-image: url('../assets/images/bg_blur.png');
    filter: blur(2px);
}

.section-intro .section-content {
    min-height: 1300px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.intro-text {
    font-size: 1.1rem;
    line-height: 2;
    margin-bottom: 50px;
}

.intro-text p {
    margin-bottom: 20px;
}

.intro-text .highlight {
    font-size: 1.15rem;
    margin: 30px 0;
}

.intro-text .note {
    font-size: 1rem;
    color: var(--text-dark);
    margin-top: 30px;
}

/* Worship Schedule */
.worship-schedule {
    width: 100%;
    margin-top: 50px;
    padding: 20px;
}

.schedule-table {
    width: 80%;
    margin: 0 auto;
    border: 1.4px solid #000;
    font-family: 'Courier New', Courier, monospace;
}

.schedule-table thead {
    background-color: rgba(80, 162, 233, 0.46);
}

.schedule-table th {
    padding: 20px 10px;
    font-size: 2rem;
    font-weight: bold;
    border: 1.4px solid #000;
    text-align: center;
}

.schedule-table td {
    padding: 15px 10px;
    font-size: 1.5rem;
    border: 1.4px solid #000;
    text-align: center;
}

.table-link {
    color: #000;
    text-decoration: underline;
    transition: color 0.3s ease;
}

.table-link:hover {
    color: var(--primary-color);
}

/* Church News Section */
.section-news {
    min-height: 1000px;
}

.section-news .section-bg {
    background-image: url('../assets/images/news.png');
}

.section-news .section-content {
    min-height: 800px;
}

.news-content {
    text-align: left;
    font-size: 1.1rem;
    line-height: 2;
}

.news-item {
    margin-bottom: 40px;
    display: flex;
    gap: 15px;
}

.news-number {
    font-weight: bold;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.news-item p {
    margin: 0;
}

.prayer-list {
    margin-top: 20px;
    padding-left: 20px;
}

.prayer-list li {
    list-style: disc;
    margin-bottom: 10px;
}

/* Location Section */
.section-location {
    min-height: 1000px;
    background-color: var(--background-light);
}

.section-location .section-content {
    background-color: var(--white);
}

.map-container {
    width: 100%;
    margin: 40px 0;
}

.map-container iframe {
    width: 60%;
    height: 800px;
    border: 1px solid #000;
    display: block;
    margin: 0 auto;
}

.address {
    margin-top: 30px;
}

.address-main {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--text-dark);
    margin-bottom: 10px;
}

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

/* Popup Modal */
.popup-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 35;
    justify-content: center;
    align-items: center;
}

.popup-modal.active {
    display: flex;
}

.popup-content {
    position: relative;
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    background-color: var(--white);
    border-radius: 20px;
    padding: 40px;
    overflow-y: auto;
}

.popup-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 2.5rem;
    color: var(--text-dark);
    background: none;
    border: none;
    cursor: pointer;
    transition: color 0.3s ease;
}

.popup-close:hover {
    color: var(--primary-color);
}

/* Responsive Sections */
@media screen and (max-width: 768px) {
    .section-intro,
    .section-news {
        min-height: auto;
        padding: 50px 0;
    }

    .section-intro .section-content,
    .section-news .section-content {
        min-height: auto;
    }

    .intro-text {
        font-size: 1rem;
    }

    .schedule-table {
        width: 100%;
        font-size: 0.9rem;
    }

    .schedule-table th {
        font-size: 1.2rem;
        padding: 10px 5px;
    }

    .schedule-table td {
        font-size: 1rem;
        padding: 10px 5px;
    }

    .news-content {
        font-size: 1rem;
    }

    .news-item {
        flex-direction: column;
        gap: 5px;
    }

    .map-container iframe {
        width: 100%;
        height: 400px;
    }

    .address-main {
        font-size: 1.3rem;
    }

    .address-sub {
        font-size: 1rem;
    }

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

@media screen and (max-width: 480px) {
    .intro-text,
    .news-content {
        font-size: 0.9rem;
        line-height: 1.8;
    }

    .schedule-table th {
        font-size: 1rem;
    }

    .schedule-table td {
        font-size: 0.85rem;
    }

    .address-main {
        font-size: 1.1rem;
    }

    .popup-content {
        padding: 20px 15px;
    }
}
