.bottom-border {
    border-bottom: 1px solid #ddd;
    padding: 10px 0 0 0;
    margin: 10px 0;
}

.btn-default,
.btn-default:focus,
.btn-default:hover,
.btn-default:active {
    color: #fff !important;
    background-color: #ee5068 !important;
}

.btn-primary,
.btn-primary:focus,
.btn-primary:hover,
.btn-primary:active {
    color: #fff !important;
    background-color: #333 !important;
}

.button-container {
    margin: 80px 0;
}

.btn-group {
    display: flex;
    justify-content: center;
    gap: 10px;
}


.cards-toolbar {
    color: rgb(51, 51, 51);
    font-size: 16px;
    margin: 25px 5px;
}


/* ----- */

.btn-clean {
    background-color: transparent !important;
    border: none !important;
    color: #333;
    box-shadow: none !important;
    height: 20px;
    padding: 0px 12px;
    margin-top: 1em;
}

.sort-buttons .icon {
    background: url('/assets/arrow-up-grey.png');
    background-repeat: no-repeat;
    background-position: 99.5% 50%;
}

.sort-buttons .icon.active {
    background: url('/assets/arrow-up-red.png');
    background-repeat: no-repeat;
    background-position: 99.5% 50%;
}

.sort-buttons .icon.active.reverse {
    background: url('/assets/arrow-down-red.png');
    background-repeat: no-repeat;
    background-position: 99.5% 50%;
}

.btn-clean.active {
    color: rgb(238, 80, 104) !important;
}

.checkbox-inline .font-small {
    font-size: 14px;
}

@media (max-width: 1200px) {
    .checkbox-inline .font-small {
        font-size: 13px;
    }
}

.box-school {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border: 1px solid #ddd;
    margin-bottom: 20px;
    border-radius: 5px;
    color: #333;
    background-color: rgba(255, 255, 255, 1);
    box-sizing: border-box;
    border-width: 1px;
    border-style: solid;
    -moz-box-shadow: 5px 5px 5px rgba(204, 204, 204, 0.349019607843137);
    -webkit-box-shadow: 5px 5px 5px rgba(204, 204, 204, 0.349019607843137);
    box-shadow: 5px 5px 5px rgba(204, 204, 204, 0.349019607843137);
}

.text-group {
    font-size: 18px;
    font-weight: 700;
}

.text-school-type {
    padding: 8px 15px 8px 0;
    border-right: 3px solid #ee5068;
}

.text-school-name {
    padding: 8px 0 8px 15px;
}

.box-category {
    background-color: #CC6600;
    color: #fff;
    margin-left: 5px;
    border-radius: 20px;
    padding: 10px 20px;
    font-size: 16px;
}

@media (max-width: 599px) {
    .box-school {
        flex-direction: column;
        align-items: flex-start;
    }

    .text-group {
        display: flex;
        flex-direction: column;
        text-align: left;
        font-size: 16px;
    }

    .text-school-type {
        padding: 5px 0 5px 15px;
        border-left: 3px solid #ee5068;
        border-right: 0;
        margin-bottom: 10px;
    }

    .text-school-name {
        padding: 5px 0 5px 15px;
        border-left: 3px solid #ee5068;
    }

    .box-category {
        margin-top: 10px;
    }
}

.box {
    border: 1px solid #ddd;
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 5px;
    color: #333;
    background-color: rgba(255, 255, 255, 1);
    box-sizing: border-box;
    border-width: 1px;
    border-style: solid;
    -moz-box-shadow: 5px 5px 5px rgba(204, 204, 204, 0.349019607843137);
    -webkit-box-shadow: 5px 5px 5px rgba(204, 204, 204, 0.349019607843137);
    box-shadow: 5px 5px 5px rgba(204, 204, 204, 0.349019607843137);
    text-align: justify;
}

.box span.text-header {
    font-family: '微軟正黑體';
    font-weight: bold;
    font-size: 18px;
    line-height: 60px;
    height: 38px;
    margin-right: 10px;
    width: auto;
    padding: 0;
}

.box span.school-type {
    padding: 0 15px;
    box-shadow: none;
    border-width: 3px;
    border-top-width: 3px;
    border-bottom-width: 3px;
    border-left-width: 3px;
    border-style: solid;
    border-top-style: solid;
    border-bottom-style: solid;
    border-left-style: solid;
    border-color: #ee5068;
    border-left: 7px;
    border-top: 4px;
    border-bottom: 0px;
}

.box.case-content .case-title {
    /* height: 63px; */
    background: inherit;
    background-color: inherit;
    background-color: rgba(238, 80, 104, 1);
    border: none;
    border-radius: 0px;
    -moz-box-shadow: none;
    -webkit-box-shadow: none;
    box-shadow: none;
    font-family: '微軟正黑體';
    font-weight: 400;
    font-size: 16px;
    color: #FFFFFF;
    text-align: left;
    /* line-height: 63px; */
    padding: 15px 15px;
    margin-bottom: 15px;
    display: table;
    width: 100%;
}

.box.case-content .case-title .prefix-label {
    padding-right: 15px;
    width: 80px;
    border-right: 1px solid #FFFFFF;
    display: table-cell;
    vertical-align: middle;
    white-space: nowrap !important;
}

.box.case-content .case-title .content {
    padding-left: 15px;
    display: table-cell;
    word-break: break-all;
    text-align: justify;
}

.box.case-content .case-description {
    color: #333333;
    line-height: 28px;
}

.box .case-mark {
    display: relative;
    font-size: 14px;
    line-height: 20px;
}

.box .case-mark .column1 {
    width: 42px;
    display: inline-block;
    vertical-align: top;
}

.box .case-mark .column2 {
    max-width: 95%;
    display: inline-block;
}

.box .school-logo {
    text-align: left;
    display: flex;
    align-items: center;
    /*Aligns vertically center */
    justify-content: left;
    /*Aligns horizontally center */
    height: 100px;
}



.box .school-logo img.img-responsive {
    max-height: 65px;
}

.box .row.custom-row-height {
    /* height: 80px; */
    /* Or any desired height for the row */
}

@media (max-width: 768px) {
    .box .row.custom-row-height {
        /* height: 300px; */
    }


}

@media (max-width: 768px) {

    .slider-buttons,
    .slider-buttons * {
        display: none;
    }
}

.box .row.custom-row-height>.vertically-centered-text {
    line-height: 40px;
    margin: 0;
}

.box .row.custom-row-height>.vertically-centered-text .compact {
    /* margin-left: 2px; */
    /* margin-right: -1px; */
    /* padding: 0px 4px; */
}

.box .row.custom-row-height>.vertically-centered-text .case-info {
    color: #333;
    border: 1px solid #f2f2f2;
    padding: 0;
    font-weight: 300;
    font-size: 15px;
    margin-top: 5px;
    margin-bottom: 5px;
}

.box .row.custom-row-height>.vertically-centered-text .case-info>.info-name {
    background-color: #f2f2f2;
    display: inline-block;
    padding: 0px 8px;
}

.meta {
    margin-top: 10px;
    text-align: left;
    margin-bottom: 10px;
}

.meta .badge,
.box .badge {
    width: auto;
    height: 38px;
    border-radius: 20px;
    -moz-box-shadow: none;
    -webkit-box-shadow: none;
    padding: 0 20px;
    box-shadow: none;
    font-family: '微軟正黑體';
    font-weight: 400;
    font-style: normal;
    font-size: 16px;
    line-height: 38px;
    margin-bottom: 10px;
    margin: 10px 0;
}

.badge-type {
    background-color: #33CC99;
    color: #fff;
}

.badge-category {
    background-color: #CC6600;
    color: #fff;
    margin-left: 5px;
}

.badge-subject {
    background-color: #6699CC;
    color: #fff;
    margin-left: 5px;
}

@media (max-width: 768px) {
    section.slider-section {
        margin: 0px 10px 20px 10px;
    }

    section.slider-section .slider-content .card-block {
        width: 250px !important;
    }

    .box.case-content .case-title {}

    .box.case-content .text-header {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    section.slider-section .slider-content .card-block .meta {
        padding: 0;
        margin: 0;
        margin-bottom: 5px;
    }

    .box .badge,
    section.slider-section .slider-content .card-block .meta .badge {
        /* padding: 0 11px; */
        /* margin: 0; */
        /* margin-top: 4px; */
        /* height: 30px; */
        /* line-height: 30px; */
    }
}

.btn-noshadow {
    box-shadow: none !important;
}

/* .btn-circle,
.btn-circle:focus {
    background: url('/assets/btn-circle-bg.png') no-repeat;
    background-size: contain;
    background-position: center;
    text-align: center;
    height: 32px;
    width: 32px;
    vertical-align: middle;
}

.btn-circle.pull-right {
    margin-right: -15px;
}

.btn-circle.pull-right img {
    margin-right: -2px;
}

.btn-circle.pull-left {
    margin-left: -15px;
}

.btn-circle.pull-left img {
    margin-left: -2px;
} */

.card.card-block {
    box-shadow: #aaaaaa 0px 2px 5px 0px;
    padding: 10px 10px 0 10px;
    margin-bottom: 30px;
    /* min-height: 350px; */
    position: relative;
    border-radius: 5px;
}

.card .card-title {
    font-size: 14px;
    font-weight: 400;
    margin-bottom: 20px;
    color: #333;
    line-height: 10px;
    text-align: center;
}

.card .card-title h3 {
    font-size: 18px;
    font-weight: 700;
    color: #333;
}

.card .description {
    /* white-space: nowrap; */
    overflow: hidden;
    max-height: 100%;
    /* padding: 10px; */
    color: #666;
    padding-bottom: 40px;
    /* position: absolute; */
}

.card .btn-read {
    position: absolute;
    bottom: 0;
    right: 0;
}

.card .btn-read,
.card .btn-read:hover,
.card .btn-read:active {
    color: #fff !important;
}

.card .card-hero {
    /* position: absolute; 
    top: 5px;
    left: 0;
    width: 100%;
    height: 55px;
    text-align: center;*/
}

.card .card-wide-image {
    margin: 10px 0 20px;
    width: 85%;
    height: 55px;
    object-fit: contain;
    display: inline-block;
    vertical-align: middle;
}

.card .label-type {
    z-index: 99;
    position: absolute;
    top: 0;
    right: 0;
    width: 60px;
    height: 60px;
    background: inherit;
    background-color: inherit;
    border: none;
    border-radius: 100px;
    border-top-left-radius: 100px;
    border-top-right-radius: 100px;
    border-bottom-right-radius: 100px;
    border-top-left-radius: 0px;
    border-top-right-radius: 0px;
    border-bottom-right-radius: 0px;
    -moz-box-shadow: none;
    -webkit-box-shadow: none;
    box-shadow: none;
    font-family: '微軟正黑體 Bold', '微軟正黑體 Regular', '微軟正黑體';
    font-weight: 700;
    font-style: normal;
    color: #FFFFFF;
    text-align: center;
}

.card .label-type .label-text {
    border-width: 0px;
    position: absolute;
    left: 20px;
    top: 16px;
    width: 30px;
    font-size: 14px;
    white-space: nowrap;
}

.card .label-type.label-public {
    background-color: #EE5068;
}

.card .label-type.label-private {
    background-color: #3399CC;
}

.box-case-mark {
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
}

.box-case-mark .column1 {
    flex: 0 0 auto;
    margin-right: 8px;
    font-weight: bold;
}

.box-case-mark .column2 {
    flex: 1 1 auto;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

@media (max-width: 798px) {
    .box-case-mark {
        flex-direction: column;
        align-items: flex-start;
    }

    .box-case-mark .column1 {
        margin-bottom: 4px;
    }
}

.card-row {
    display: flex;
    flex-wrap: wrap;
    margin-right: -15px;
    margin-left: -15px;
}

.card-row .col-md-4,
.card-row.col-sm-6 {
    display: flex;
}

.card-row .card {
    flex: 1;
    display: flex;
    flex-direction: column;
}

@media (max-width: 1024px) and (min-width: 799px) {
    .card .card-title h3 {
        font-size: 16px;
        font-weight: 700;
        color: #333;
    }
}

@media (max-width: 1200px) and (min-width: 992px) {
    .col-md-2 {
        width: 25% !important;
    }
}