


/* 社區區塊樣式 */
.community {
    padding: 60px 40px;
    text-align: center;
    color: #333;
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 1s ease-out, transform 1s ease-out;
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

section.visible {
    opacity: 1;
    transform: translateY(0);
}

.bg1 {
    background-image: url('../img/2024-10-Discovery Bay Dragon Boat-2.jpg');
}
.bg2 {
    background-image: url('../img/Community1.jpg')
}

.bg3 {
    background-image: url('../img/PXL_20241213_044659325.jpg');
}



.section-bg  {
    position: relative;
    z-index: 0;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;

}

.section-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    z-index: -1;
}

.section-bg>* {
    position: relative;
    z-index: 1;
}

.community-content {
    max-width: 800px;
    margin: 0 auto;
    color: #ffffff;
    transition: transform 0.3s ease;
}

.community-content:hover {
    transform: translateY(-5px);
}

.community-content p {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.6);
}


.community p {
    font-size: 31px;
    margin: 14px 0;
    line-height: 1.6;
    letter-spacing: 2px;
}




@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.community-content {
    animation: fadeInUp 1s ease-out;
}