/* ---Features--- */

/*button, input, select, optgroup, textarea {
    font: inherit;
    font-feature-settings: inherit;
    font-variation-settings: inherit;
    letter-spacing: inherit;
    color: inherit;
    opacity: 1;
    background-color: #0000;
    border-radius: 0;
}
button, input:where([type=button],[type=reset],[type=submit]) {
    appearance: button;
}
*, :after, :before, ::backdrop {
    box-sizing: border-box;
    border: 0 solid;
    margin: 0;
    padding: 0;
}

.Features {
    width: 100vw;
    height: 100vh;
    background: #111;
    display: flex;
    justify-content: center;
    overflow-x: hidden;
    font-family: serif;
    font-weight: 700;

}

.carousel {
    position: relative;
    width: 100%;
    max-width: 100vw;
    height: 20vh;
    perspective: 1000px;
    touch-action: pan-y;
    writing-mode: vertical-rl;
}

.carousel__track {
    width: 100%;
    height: 100%;
    position: absolute;
    transform-style: preserve-3d;
    transition: transform 0.3s ease;
}

.carousel__slide {
    width: 30vw;
    height: 60vw;
    position: absolute;
    top: 20px;
    left: 35%;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s, opacity 0.3s;
    cursor: grab;
    overflow: hidden;
}

.carousel__slide img,
.carousel__slide .label {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 105%;
    object-fit: cover;
    border-radius: 12px;
    opacity: 0;
    transition: opacity 0.5s ease, color 0.3s ease;
    pointer-events: none;
    z-index: 1;
}

.label {
    z-index: 2;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 20px;
    background: transparent;
    color: #333;
    text-align: center;
}

.carousel__slide img.visible,
.carousel__slide .label.visible {
    opacity: 1;
    pointer-events: auto;
}

.label.visible {
    opacity: 1;
}

.label.center {
    color: #fff;
}

img {
    pointer-events: none;
    user-select: none;
    -webkit-user-drag: none;
    -webkit-user-select: none;
}*/

#schedule-container {
    margin-top: 20vw;
    width: 80vw;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

/* 卡片統一高度 + column layout */
#schedule-container .schedule-card {
    position: relative;
    width: calc(100% - 8px);
    box-sizing: border-box;
    background-color: #b8e3e2;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    height: 100%; /* 由 flex 決定統一高度 */
}

/* 用 flex 保證高度一致（關鍵） */
.schedule-card > div:last-child {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.schedule-card .category {
    z-index: 90;
    position: absolute;
    top: 1.1rem;
    left: 1.1rem;
    font-size: 3vw;
    font-weight: 100;
}

.schedule-card .category::before {
    content: "";
    z-index: -1;
    position: absolute;
    width: 20vw;
    height: 3vw;
    left: -2rem;
    top: 1vw;
    background-image: url('../img/index/wave_yellow.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: bottom;
}

.schedule-card h3 {
    font-size: 3.2vw;
    margin-top: 10px;
}

.schedule-card p {
    margin: 0;
    font-size: 3vw;
    font-weight: 100;
    flex-grow: 1; /* 占據剩餘空間但不擠壓其他元素 */
}

.schedule-card img {
    width: 100%;
    height: auto; /* 保持圖片比例 */
    object-fit: cover;
}

.animate-in {
  opacity: 0;
  transform: translateY(50px); /* 預設位置要和 from 動畫一致 */
}