/* General Layout */
.container {
    max-width: 1200px;
    margin: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

/* Row and Column System */
.row {
    display: flex;
    flex-wrap: wrap;
    margin-left: -15px;
    margin-right: -15px;
}



/* Hero Section */
.hero-section {
    text-align: center;
    margin-bottom: 40px;
}

.carousel {
    position: relative;
    width: 100%;
    height: 700px;
    overflow: hidden;
}

.carousel-item {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.carousel-item.active {
    opacity: 1;
    z-index: 1;
}

.carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-section h1 {
    font-size: 2rem;
    margin-top: 20px;
}

.hero-section p {
    font-size: 1.2rem;
    color: gray;
}

/* Summary Section */
.summary-section {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.summary-img {
    width: 100%; /* 確保圖片適應列寬 */
    max-width: 300px; /* 限制圖片最大寬度 */
    height: auto;
    object-fit: cover;
    border-radius: 5px;
}

.summary-item h3 {
    margin: 0 0 10px;
    font-size: 1.5rem;
}

.summary-item p {
    margin: 0 0 20px;
    color: gray;
}

.summary-item .btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: #007BFF;
    color: white;
    text-decoration: none;
    border-radius: 5px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .col-4,
    .col-8 {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .row {
        flex-direction: column;
    }
}
