#edu {
    --edu-banner-height: 250px;
}

/* ─── Hero banner (transitions & bg image) ─── */
#edu .edu_banner_slider,
#edu .edu_banner_panels,
#edu .edu_banner_slide,
#edu .edu_banner_slide_container,
#edu .edu_banner_inner {
    height: var(--edu-banner-height);
}

#edu .edu_banner_panel {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.45s ease, visibility 0.45s ease;
    z-index: 0;
}

#edu .edu_banner_panel.active {
    opacity: 1;
    visibility: visible;
    z-index: 1;
}

/* #edu .edu_banner_visual {
    background-image: url(../images/edu_top_img.png);
} */

#edu .edu_banner_copy_panel {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.45s ease, visibility 0.45s ease;
}

#edu .edu_banner_copy_panel.active {
    opacity: 1;
    visibility: visible;
}

#edu .edu_banner_copy_panel:not(.active) {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
}

#edu .banner_dot {
    transition: width 0.25s ease, background-color 0.25s ease;
}

#edu .banner_dot.active {
    width: 14px;
    background-color: #1A7B99;
}

#edu .banner_dot:hover {
    background-color: #1A7B99;
    opacity: 0.85;
}


/* ─── Anchor tab bar (active states & icons) ─── */
#edu .edu_anchor_tab {
    transition: background-color 0.2s ease, color 0.2s ease;
}

#edu .edu_anchor_tab:last-child {
    border-right: none;
}

#edu .edu_anchor_tab:hover:not(.active) {
    background-color: #F5F7F8;
}

#edu .edu_anchor_tab.active {
    background-color: #1A7B99;
    color: #FFFFFF;
}

#edu .edu_anchor_tab_icon_focus {
    background-image: url(../images/icon_edu_focus.svg);
}

#edu .edu_anchor_tab_icon_video {
    background-image: url(../images/icon_edu_video.svg);
}

#edu .edu_anchor_tab_icon_hat {
    background-image: url(../images/icon_edu_hat.svg);
}

#edu .edu_anchor_tab_icon_mobile {
    background-image: url(../images/icon_edu_mobile.svg);
}

#edu .edu_anchor_tab.active .edu_anchor_tab_icon {
    filter: brightness(0) invert(1);
}

@media (max-width: 1023px) {
    #edu .edu_anchor_tab.active {
        color: #31373D !important;
    }

    #edu .edu_anchor_tab.active .edu_anchor_tab_icon,
    #edu .edu_anchor_tab .edu_anchor_tab_icon {
        filter: brightness(0) invert(0) !important;
    }
}

/* ─── Video Thumbnail Carousel ─── */
.video-thumb-carousel {
    position: relative;
}

.video-thumb-carousel:focus {
    outline: none;
}

.video-thumb-carousel.is-dragging .video-thumb-list {
    cursor: grabbing;
}

.video-thumb-list {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    scroll-behavior: smooth;
    cursor: grab;
    touch-action: pan-y;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.video-thumb-list::-webkit-scrollbar {
    display: none;
}

.video-thumb-arrow {
    position: absolute;
    top: 36%;
    transform: translateY(-50%);
    z-index: 2;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: #1A7B99;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.video-thumb-arrow.prev {
    left: 8px;
}

.video-thumb-arrow.next {
    right: 8px;
}

.video-thumb-arrow:hover {
    background: #1A7B99;
    border-color: #1A7B99;
    color: #fff;
}

.video-thumb-arrow:disabled {
    opacity: 0;
    cursor: not-allowed;
    pointer-events: none;
}

.video-thumb {
    position: relative;
    flex-shrink: 0;
    width: 180px;
    cursor: pointer;
    border-radius: 8px;
    overflow: visible;
    border: none;
}

.video-thumb img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    display: block;
    border-radius: 8px;
}

.video-thumb:hover::after,
.video-thumb.active::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    aspect-ratio: 16 / 9;
    border: 2px solid #1A7B99;
    border-radius: 8px;
    pointer-events: none;
    box-sizing: border-box;
}

.video-thumb .duration {
    position: absolute;
    bottom: 54px;
    right: 4px;
    background: rgba(0, 0, 0, 0.75);
    color: #fff;
    font-size: 16px;
    padding: 1px 4px;
    border-radius: 8px;
}

.video-thumb .thumb-title {
    font-size: 16px;
    color: #31373D;
    margin-top: 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ─── Article link list ─── */
.article-link-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.article-link-list li {
    padding-bottom: 12px;
}

.article-link-list li:last-child {
    border-bottom: none;
    padding-bottom: 0px;
}

.article-link-list a {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #31373D;
    text-decoration: none;
    font-size: 16px;
    transition: color 0.2s;
    background: #ffffff;
    padding: 16px;
    border-radius: 8px;
}

.article-link-list a:hover {
    color: #1A7B99;
}

.article-link-list .icon-doc {
    width: 24px;
    min-width: 24px;
    height: 24px;
    background-image: url(../images/icon_doc.svg);
}

/* ─── "See More" link ─── */
.see-more-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 16px;
    font-weight: 600;
    color: #1A7B99;
    text-decoration: none;
    transition: gap 0.2s ease;
}

.see-more-link:hover {
    gap: 10px;
}

/* ─── App Download Section ─── */
.app-section-bg {
    background: #FAF8F2;
    background-image: url(../images/bg-dot.png);
}

.app-section-line-bg {
    background: #ffffff;
    background-image: url(../images/bg-line.png);
    background-size: cover;
}

@media (max-width: 768px) {
    .app-section-line-bg {
        background: #ffffff;
        background-image: url(../images/bg-line_m.png);
        background-position: bottom center;
        background-size: 100% auto;
    }
}

/* ─── Main Event Carousel ─── */
.event-carousel {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    background: #ffffff;
}

.event-carousel-track {
    display: flex;
    transition: transform 0.4s ease;
    touch-action: pan-y;
}

.event-slide {
    min-width: 100%;
    flex: 0 0 100%;
}

.event-slide-content {
    height: 100%;
}

.event-carousel-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4px;
    margin-top: 10px;
}

.event-carousel-dot {
    width: 4px;
    height: 4px;
    border-radius: 9999px;
    border: none;
    padding: 0;
    background: rgba(49, 55, 61, 0.3);
    cursor: pointer;
    transition: width 0.2s ease, background-color 0.2s ease;
}

.event-carousel-dot.active {
    width: 14px;
    background: #1A7B99;
}

.event-carousel-dot:focus-visible {
    outline: 2px solid #1A7B99;
    outline-offset: 2px;
}

/* ─── Video Section Tab buttons ─── */
.vid-tab-btn {
    display: inline-block;
    font-size: 16px;
    font-weight: 600;
    color: #1A7B99;
    text-decoration: none;
    padding-bottom: 2px;
    border-bottom: 2px solid transparent;
    transition: border-color 0.2s;
}

.vid-tab-btn:hover,
.vid-tab-btn.active {
    border-bottom-color: #1A7B99;
}

/* ─── Topic Cards ─── */
.topic-card {
    background: #F5F7F8;
    border-radius: 8px;
    padding: 20px;
    transition: box-shadow 0.3s ease;
}

.topic-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}




/* ─── col  ─── */
.object-cover {
    object-fit: cover;
}

.grid-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.col-span-2 {
    grid-column: span 2 / span 2;
}

@media (min-width: 768px) {
    .md\:flex-row {
        flex-direction: row;
    }

    .md\:w-1\/2 {
        width: 50%;
    }

    .md\:w-1\/3 {
        width: 33.333333%;
    }

    .md\:w-2\/3 {
        width: 66.666667%;
    }

    .md\:w-\[40\%\] {
        width: 40%;
    }

    .md\:w-\[45\%\] {
        width: 45%;
    }

    .md\:w-\[55\%\] {
        width: 55%;
    }


    .md\:grid-cols-4 {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .video-thumb-arrow {
        width: 32px;
        height: 32px;
        font-size: 20px;
    }

    .video-thumb-arrow.prev {
        left: 6px;
    }

    .video-thumb-arrow.next {
        right: 6px;
    }
}

/* anchor nav 凍結 */
.edu_anchor_area.is-scrolled {
    position: fixed;
    left: 0;
    right: 0;
    z-index: 7;
}

#edu div.video {
    cursor: pointer;
}

@media (max-width: 1024px) {
    #edu .edu_anchor_tab.active .edu_anchor_tab_icon, #edu .edu_anchor_tab .edu_anchor_tab_icon {
        filter: brightness(0) invert(0);
    }
}

@media (max-width: 767px) {
    #edu .edu_banner_area {
        padding: 24px 0;
    }

    #edu .edu_banner_slider {
        height: auto;
        display: flex;
        flex-direction: column;
        position: relative;
    }

    #edu .edu_banner_panels {
        height: auto;
        position: relative;
        order: 2;
    }

    #edu .edu_banner_panel {
        position: absolute;
        inset: 0;
        opacity: 0;
        visibility: hidden;
        height: auto;
        transition: opacity 0.45s ease, visibility 0.45s ease;
    }

    #edu .edu_banner_panel.active {
        position: relative;
        opacity: 1;
        visibility: visible;
    }

    #edu .edu_banner_slide,
    #edu .edu_banner_slide_container {
        height: auto;
        position: relative;
    }

    #edu .edu_banner_visual {
        position: relative;
        width: 100%;
        height: auto;
        display: flex;
        justify-content: center;
        align-items: center;
        top: auto;
        right: auto;
    }

    #edu .edu_banner_inner {
        position: relative;
        height: auto;
        order: 1;
        padding: 0 16px;
    }

    #edu .banner_content_group {
        max-width: 100%;
        height: auto;
    }

    #edu .edu_banner_copy_stack {
        position: relative;
        width: 100%;
    }

    #edu .edu_banner_copy_panel {
        position: absolute;
        inset: 0;
        opacity: 0;
        visibility: hidden;
        height: auto;
    }

    #edu .edu_banner_copy_panel.active {
        position: relative;
        opacity: 1;
        visibility: visible;
    }
}


@media (max-width: 768px) {
    .md\:max-w-\[350px\] {
        max-width: 350px;
}
}