a {
    color: inherit;
    text-decoration: none;
}

.carousel-item img {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

    .carousel-item img:hover {
        transform: scale(1.05);
        box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
        cursor: pointer;
    }

.mx-auto {
    width: 100%; /* 預設滿版 */
    max-width: 50%; /* 桌面最大佔一半 */
    transition: max-width 0.3s ease; /* 平滑縮放 */
}

@media (max-width: 768px) {
    .mx-auto {
        max-width: 100%; /* 手機滿版 */
    }
}

.card img {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 6px;
}

    .card img:hover {
        transform: scale(1.05);
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    }

.carousel-control-prev,
.carousel-control-next {
    top: 50%; /* 垂直置中 */
    transform: translateY(-50%);
    bottom: auto; /* 移除底部延伸 */
    height: 500px; /* 限制箭頭範圍 */
    width: 40px; /* 限制寬度 */
    /* background-color: rgba(0,0,0,0.3); 
    /* 可選：增加背景讓箭頭更清楚 */ 
    border-radius: 50%;
}
