
    .timetable-container {
        max-width: 100%;
        overflow: hidden;
    }

    .timetable-header {
        background-color: #8B0000;
        padding: 12px 0;
        position: relative;
    }

    .timetable-title {
        color: #fff;
        font-size: 24px;
        text-align: center;
        margin: 0 0 10px;
        font-weight: bold;
    }

    .timetable-content {
        background-color: #4B0000;
        padding: 20px 15px;
        position: relative;
        min-height: 300px;
        text-align: center;
    }

    .timetable-carousel {
        position: relative;
        padding: 0 15px;
    }

    .timetable-item {
        text-align: center;
        width: calc(100% / 6); /* Each item takes 1/6th of the container for 6 visible items */
        min-width: 150px; /* Minimum width to ensure readability */
        margin: 0 auto;
        display: inline-block;
        vertical-align: top;
    }

    .timetable-time {
        text-align: center;
        color: #fff;
        font-size: 1.875em;
        position: relative;
        z-index: 2;
        opacity: 0.5; /* Non-active opacity */
        cursor: pointer;
        padding: 5px 8px;
        line-height: 1.2;
        white-space: pre-wrap;
        display: block;
        transition: opacity 0.3s ease, transform 0.3s ease;
    }

    .timetable-time.active {
        font-weight: bold;
        color: #fff; /* Active time is full white */
        opacity: 1; /* Full opacity for active */
        transform: translateX(0); /* Center active time */
    }

    .timetable-dot {
        width: 20px;
        height: 20px;
        background-color: #FFD700;
        border-radius: 50%;
        margin: -5px auto 0;
        position: relative;
        z-index: 2;
        transition: transform 0.3s ease;
    }

    .timetable-item.active .timetable-dot {
        transform: translateX(0); /* Ensure dot centers with active time */
    }

    .timetable-line {
        position: absolute;
        top: 68%;
        left: 15px;
        right: 15px;
        height: 4px;
        background-color: #FFD700;
        z-index: 1;
    }

    .timetable-text-content {
        position: relative;
        text-align: center;
        max-width: 300px;
        margin: 0 auto;
        display: none; /* Hide by default */
    }

    .timetable-item.active .timetable-text-content {
        display: block; /* Show text only for active item */
    }

    .timetable-overlay {
        position: relative;
        display: inline-block;
        background: none;
        color: #fff;
        padding: 20px;
    }

    .timetable-overlay h2 {
        font-size: 40px;
        margin: 0;
        font-weight: bold;
        text-transform: uppercase;
        line-height: 1;
        color: #fff;
    }

    .timetable-overlay p {
        font-size: 14px;
        margin: 10px 0 0;
        line-height: 1.4;
        max-width: 90%;
        color: #fff;
    }

    .timetable-triangle {
        position: absolute;
        top: -50px;
        left: 50%;
        transform: translateX(-50%);
        width: 0;
        height: 0;
        border-left: 25px solid transparent;
        border-right: 25px solid transparent;
        border-top: 25px solid #8B0000;
        z-index: 3;
    }

    .timetable-nav {
        background: none;
        border: none;
        color: #fff;
        font-size: 24px;
        cursor: pointer;
        padding: 10px;
        outline: none;
        border-radius: 50%;
        width: 40px;
        height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
        background-color: rgba(255, 255, 255, 0.1);
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        z-index: 10;
    }

    .timetable-nav.prev {
        left: 0;
    }

    .timetable-nav.next {
        right: 0;
    }
