* {
  font-family: "Noto Sans TC", "PingFang TC", 微軟正黑體, "Microsoft JhengHei",
    "Helvetica Neue", Helvetica, source-han-sans-traditional, Arial, sans-serif;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}


/* Carousel Container */
.carousel-container {
    position: relative;
    width: 100%;
    max-width: 1440px;
    margin: auto;
    overflow: hidden;
}

/* Carousel */
.carousel {
    position: relative;
}

.slides {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.slides img {
    width: 100%;
    height: auto;
    object-fit: cover; /* Prevent stretching */
    display: block;
    border-radius: 10px; /* Optional rounded corners */
}

/* Buttons */
.prev, .next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 2.5rem;
    background: rgba(0, 0, 0, 0);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    cursor: pointer;
    z-index: 2;
    border-radius: 5px;
}
.prev { left: 20px; }
.next { right: 20px; }

/* Dots */
.dots {
    position: absolute;
    bottom: 20px;
    width: 100%;
    text-align: center;
    z-index: 2;
}

.dots span {
    height: 12px;
    width: 12px;
    margin: 0 5px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    display: inline-block;
    cursor: pointer;
    transition: background 0.3s ease;
}

.dots .active { background: white; }

/* Show one image at a time with margins */
.slides > img {
    flex: 0 0 100%;
    max-width: calc(100% - 40px); /* Side margins */
    margin: 0 20px;
}

/* Responsive */
@media (max-width: 768px) {
    .slides img {
        height: auto;
    }
    .prev, .next {
        font-size: 1.8rem;
        padding: 0.3rem 0.6rem;
    }
}

@media (max-width: 480px) {
    .prev, .next {
        font-size: 1.5rem;
    }
    .dots span {
        height: 10px;
        width: 10px;
    }
}

.description-container{
    align-items: center;
    text-align: start;
    max-width: 1300px;
    color: #6895a1;
    font-size: 15px;
    font-weight: 300;
    margin: auto;
    padding: 35px 14px 14px 14px;
}
@media (max-width: 1350px) {
    .description-container{
         padding: 35px 7rem 14px 7rem;
    }
    .carousel-container {
    width: 80%;
    
}
}
@media (max-width: 768px) {
    .description-container{
         padding: 35px 35px 14px 35px;
    }
    .carousel-container {
    width: 100%;
    
}
}

.toggle-container {
    margin-top: 2rem;
    display: grid;
    gap: 1.5rem;
    justify-content: center;   /* Center items horizontally */
    padding: 0 1rem;           /* Add side padding so items never touch edges */
}

/* 4x1 layout */
@media (min-width: 1350px) {
    .toggle-container {
        grid-template-columns: repeat(4, 312px);
    }
    
}

/* 2x2 layout */
@media (min-width: 768px) and (max-width: 1349px) {
    .toggle-container {
        grid-template-columns: repeat(2, 312px);
    }
}

/* 1x4 layout */
@media (max-width: 767px) {
    .toggle-container {
        grid-template-columns: 312px;
    }
}

    .toggle-container a{
        text-decoration: none;
    }
    .toggle {
        width: 312px;
        height: 312px;
        background-size: cover;
        background-position: center;
        position: relative;
        display: flex;
        justify-content: center;
        align-items: center;
        text-align: center;
        color: white;
        font-weight: bold;
        overflow: hidden;
    }
    .overlay {
        background: rgba(0, 0, 0, 0.3);
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        transition: background 0.3s ease;
    }
    .toggle-content {
        position: relative;
        z-index: 2;
        transition: transform 0.3s ease, opacity 0.3s ease;
    }
    .toggle p {
        font-size: 12px;
        margin-bottom: 0.5rem;
    }
    .toggle button {
        padding: 10px 20px;
        font-size: 14px;
        cursor: pointer;
        background: rgba(255,255,255,0.2);
        color: white;
        border: 1px solid white;
        border-radius: 10px;
        backdrop-filter: blur(1px);
        transition: background 0.3s ease, transform 0.3s ease;
    }
    /* Hover Effects */
    .toggle:hover .overlay {
        backdrop-filter: blur(2px);
        background: rgba(24, 7, 7, 0.096);
    }
    .toggle:hover .toggle-content {
        transform: scale(1.05);
    }
    .toggle button:hover {
        background: rgba(255,255,255,0.6);
    }
    

    




/* Responsive design */
@media (max-width: 768px) {
    .foot-detail h3 {
        font-size: 1.5rem;
    }
    .foot-detail h5, .foot-detail h6 {
        font-size: 0.9rem;
    }
    .footer-img{
      width: 90%;
    }
}

@media (max-width: 1350px) {
    .footer-img {
    width: 80%;
}
}
@media (max-width: 480px) {
    .foot-detail h3 {
        font-size: 1.3rem;
    }
    .foot-detail h5, .foot-detail h6 {
        font-size: 0.8rem;
    }
}



