﻿/* 整個內容方塊 */
.index學生成就6 {
    /*height : 300px;   --- if simpleBar (i.e. scroll bar) is set on the whole block, change the number.*/
    --event-name-num-of-line: 5;
    --date-bg-color: #0026ff;
    --date-font-color: #FFFFFF;
}

    /* 內容方塊標題 */
    .index學生成就6 .blockTitle {
        text-align: center;
    }

        .index學生成就6 .blockTitle h2 {
        }

        .index學生成就6 .blockTitle img {
        }

        /* 內容方塊標題超連結 */
        .index學生成就6 .blockTitle a {
        }

    /* 比賽容器，每個比賽都放在裡面 */
    .index學生成就6 .loopElementList {
        /*height : 300px;   --- if simpleBar (i.e. scroll bar) is set on the content, change the number.*/
    }

    .index學生成就6 .elementContainer {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: space-around;
        align-items: stretch;
    }


    /*單一比賽*/
    .index學生成就6 .eachCompetition {
    }

    .index學生成就6 .innerShell {
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap;
        justify-content: flex-start;
        align-items: flex-start;
        border-bottom: var(--r-el-border-bottom, solid 1px #dddddd);
        padding: var(--r-el-padding, 1rem);
        position: relative;
        background-color: rgba(255,255,255,0.5);
        border-radius: 10px;
        height : 100%;
    }

    .index學生成就6 .glide .innerShell {
        display: block;
        border-bottom: none 0;
        padding: 0;
    }

        .index學生成就6 .innerShell:hover {
            background-color: #c6d9f5;
            border: solid 1px #FFFFFF;
        }

            .index學生成就6 .glide .innerShell:hover
            {
                border : none 0;
            }

            .index學生成就6 .eachCompetition .date {
                aspect-ratio: 1 / 1;
                width: 4em;
                padding: 10px 0;
                border-radius: 5px;
                background-color: var(--date-bg-color);
                color: var(--date-font-color);
                text-align: center;
                flex-shrink: 0;
                margin: 0 2em 0 0;
            }

    .index學生成就6 .eachCompetition .dayOfMonth {
        font-size: 1.5em;
        line-height: 1em;
        font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
        font-style: italic;
    }

    .index學生成就6 .eachCompetition .month {
        font-size: 0.8em;
    }

        .index學生成就6 .eachCompetition .text {
        }

    .index學生成就6 .eachCompetition .heading {
        font-weight: var(--r-heading-font-weight, 700);
        font-size: var(--r-heading-font-size, 1.2em);
    }

        .index學生成就6 .glide .eachCompetition .heading
        {
            margin : 0.5em 0;
        }

        .index學生成就6 .eachCompetition .details {
            line-height: 1.5;
            overflow: hidden;
            text-overflow: ellipsis;
            display: -webkit-box;
            -webkit-line-clamp: 3;
            -webkit-box-orient: vertical;
            height: calc(1.5em * 3);
        }

        .index學生成就6 .eachCompetition .details * {
            max-width: 100%;
        }

        .index學生成就6 .eachCompetition .details > p
        {
            margin : 0 auto;
        }

        /*無詳情*/
        .index學生成就6 .eachCompetition div.details:empty {
            display: none;
        }

    .index學生成就6 .eachCompetition .link {
        position: absolute;
        z-index: 1;
        top: 0;
        right: 0;
        left: 0;
        bottom: 0;
    }

    .index學生成就6 .more {
        text-align: right;
        font-weight: 700;
        font-size: 1.5em;
        margin-right: 2em;
        font-style: italic;
        line-height: 2;
    }

@media (max-width: 480px) {

    .index學生成就6 .eachCompetition {
        flex-basis: 100%;
    }

    .index學生成就6 .eachCompetition .innerShell {
        flex-wrap: wrap;
    }

    .index學生成就6 .eachCompetition .date {
        aspect-ratio: auto;
        width: auto;
        padding: 5px 10px;
    }

    .index學生成就6 .eachCompetition .dayOfMonth {
        display: inline-block;
        font-size: 1em;
    }

    .index學生成就6 .eachCompetition .month {
        display: inline-block;
    }

    .index學生成就6 .eachCompetition {
        display: none;
    }

        .index學生成就6 .eachCompetition:nth-child(-n+6) {
            display: block;
        }
}

@media (min-width: 481px) and (max-width: 767px) {

    .index學生成就6 .eachCompetition {
        flex-basis: 100%;
    }

    .index學生成就6 .eachCompetition {
        display: none;
    }

        .index學生成就6 .eachCompetition:nth-child(-n+6) {
            display: block;
        }
}

@media (min-width: 768px) and (max-width: 979px) {
    .index學生成就6 .elementContainer {
        justify-content: space-between;
    }

    .index學生成就6 .eachCompetition {
        flex-basis: 48%;
    }

    .index學生成就6 .eachCompetition {
        display: none;
    }

        .index學生成就6 .eachCompetition:nth-child(-n+8) {
            display: block;
        }
}

@media (min-width: 980px) and (max-width:1199px) {
    .index學生成就6 .elementContainer {
        justify-content: space-between;
    }

    .index學生成就6 .eachCompetition {
        flex-basis: 45%;
    }

    .index學生成就6 .eachCompetition {
        display: none;
    }

        .index學生成就6 .eachCompetition:nth-child(-n+8) {
            display: block;
        }
}

@media (min-width: 1200px) and (max-width:1919px) {
    .index學生成就6 .eachCompetition {
        flex-basis: 30%;
    }
}

@media (min-width: 1920px) {
    .index學生成就6 .eachCompetition {
        flex-basis: 30%;
    }
}
