
@media (max-width: 900px) {
    .topics {
        flex-direction: column;
        height: auto;
    }

    .topic-card {
        height: 300px;
        width: 100%;
        flex: none;
    }
}

/* 橫幅區塊 */
.banner {
    background-image: url('../img/Banner.png');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    height: 70vh;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    text-align: center;
    position: relative;
}

.banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    z-index: 0;
}

.banner-text {
    position: relative;
    z-index: 1;
}

.banner h1 {
    font-size: 44px;
    margin-bottom: 10px;
    color: #e87722;
}

.banner p {
    font-size: 23px;
}


.topics {
    display: flex;
    width: 100%;
    height: 100vh;
    margin: 0;
    padding: 0;
    overflow: visible;
    transition: 1s ease, background 1s ease, backdrop-filter 0.3s ease;
	
}

.topic-card {
    flex: 1;
    position: relative;
    overflow: hidden;
}

.topic-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(120%);
}

.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 2;
    width: 100%;
    height: 100%;
    color: white;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 30px;
    text-align: center;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.6));
    transition: 1s ease, background 1s ease, backdrop-filter 0.3s ease;
}

.card-overlay h2 {
    font-size: 28px;
    margin-bottom: 10px;
}

.card-overlay p {
    font-size: 16px;
    margin-bottom: 20px;
}

.btn {
    padding: 10px 20px;
    background: linear-gradient(45deg, #e87722, #ff9900);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-weight: bold;
    transition: background 0.3s ease;
}

.btn:hover {
    background: linear-gradient(45deg, #cc5f10, #e87722);
}


.topics:hover .card-overlay:hover {
    background: linear-gradient(to bottom, rgb(115 115 115 / 50%), rgba(0, 0, 0, 0.6));
}
.topics:hover .card-overlay:not(:hover) {
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.8));
    backdrop-filter: blur(6px);
	
}