



/* styles for validation helpers */
.field-validation-error {
    color: #b94a48;
}

.field-validation-valid {
    display: none;
}

input.input-validation-error {
    border: 1px solid #b94a48;
}

input[type="checkbox"].input-validation-error {
    border: 0 none;
}

.validation-summary-errors {
    color: #b94a48;
}

.validation-summary-valid {
    display: none;
}

.hide {
    display: none;
}

.bg-dark-grey {
    background-color: #4c5157;
}

.mandatory::before {
    content: "*";
    color: red;
}

.well {
    min-height: 20px;
    padding: 19px;
    margin-bottom: 20px;
    background-color: #eef8fb;
    /*border: 1px solid #e3e3e3;*/
    border-radius: 10px;
    -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.05);
    box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.05);
}

.m-table th {
    color: #6e7a89;
}

.m-table th {
    color: #6e7a89;
}

.m-table > :not(:last-child) > :last-child > * {
    border-bottom-color: rgb(153 167 185);
}


/* 只有最外層的清單才重設數字 */
ol.chinese-ol {
    list-style-type: none;
    padding-left: 0;
}


ol.chinese-ol>li {
counter-increment: chinese-num;
line-height: 1.8;
margin-bottom: 8px;
/* 懸浮縮排設定：確保換行時對齊文字而非括號 */
padding-left: 2em;
text-indent: -3.5em;
}

ol.chinese-ol>li::before {
    /* 使用中文數字格式 (一) */
    content: "(" counter(chinese-num, trad-chinese-informal) ") ";
    display: inline-block;
    width: 3.5em;
    text-align: right;
    padding-right: 8px;
    box-sizing: border-box;
}

ol.chinese-ol>ol {
    padding-left: 3.5em;
}

ol.chinese-ol > ol>ol {
    padding-left: 1.5em;
}

.activity-table {
    vertical-align: top;
    margin-bottom: 20px;
}

.activity-table th {
    color: #f9cb84;
    border-bottom: 2px solid #b3cded;
}

.activity-table tr {
    border-bottom: 1px solid #c7dfe3;
    vertical-align: top;
}

.filepond--file-info-sub {
    display: none !important;
}

.text-right {
    text-align: right;
}

.maintain-table {
    vertical-align: top;
    margin-bottom: 20px;
}

.maintain-table th {
    color: #00529D;
    border-bottom: 2px solid #b3babb
}

.maintain-table tr {
    border-bottom: 1px solid #b3babb;
    vertical-align: top;
}

.para-1 {
    text-indent: 2em;
}

.news-video-section {
    padding: 20px 0 70px;
    background-color: #fff;
}

.news-card,
.promo-video-card {
    max-width: 1060px;
    margin: 0 auto;
    padding: 28px 36px;
    background: #fff;
    border-radius: 12px;
    border-bottom: 6px solid #00529D;
    box-shadow: 0 8px 28px rgba(0, 82, 157, 0.15);
}

.news-item {
    display: grid;
    grid-template-columns: 150px 100px minmax(0, 1fr);
    gap: 18px;
    align-items: center;
    padding: 18px 10px;
    border-bottom: 1px solid #d9e3ef;
    color: #0a2b66;
    font-size: 20px;
}

.news-item:last-child {
    border-bottom: 0;
}

.news-date {
    white-space: nowrap;
}

.news-category {
    min-width: 74px;
    padding: 5px 14px;
    border-radius: 8px;
    background-color: #d9e8ff;
    color: #00529D;
    text-align: center;
    font-weight: 600;
}

.news-title {
    min-width: 0;
    font-weight: 500;
    overflow-wrap: anywhere;
    padding-left: 20px;
}

.news-empty {
    padding: 22px 10px;
    text-align: center;
    color: #5b6f8f;
    font-size: 20px;
}

.promo-video-card {
    padding: 24px 36px 18px;
}

.promo-video-frame {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 12px;
    background: linear-gradient(135deg, #dfeeff, #ffffff 45%, #d2e6ff);
}

.promo-video-frame iframe,
.promo-video-placeholder {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.promo-video-frame iframe {
    border: 0;
}

.promo-video-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #00529D;
    text-align: center;
}

.promo-video-placeholder i {
    margin-bottom: 18px;
    color: #ff1f1f;
    font-size: 76px;
}

.promo-video-placeholder h4 {
    margin-bottom: 8px;
    color: #003b7d;
    font-size: 36px;
    font-weight: 700;
}

.promo-video-placeholder p,
.promo-video-caption {
    margin-bottom: 0;
    color: #0a2b66;
    font-size: 18px;
}

.promo-video-caption {
    margin-top: 14px;
    text-align: center;
}

@media (max-width: 767px) {
    .news-video-section {
        padding: 10px 0 50px;
    }

    .news-card,
    .promo-video-card {
        padding: 20px 18px;
        border-radius: 10px;
    }

    .news-item {
        grid-template-columns: 1fr;
        gap: 8px;
        padding: 16px 0;
        font-size: 17px;
    }

    .news-category {
        width: max-content;
    }

    .promo-video-placeholder i {
        font-size: 52px;
    }

    .promo-video-placeholder h4 {
        font-size: 26px;
    }

    .promo-video-placeholder p,
    .promo-video-caption {
        font-size: 16px;
    }
}

.news-more-wrapper {
    padding-top: 14px;
    text-align: right;
}

.news-more-btn {
    display: inline-flex;
    gap: 8px;
    align-items: center;
    padding: 8px 12px;
    border: 0;
    background: transparent;
    color: #00529D;
    font-size: 18px;
    font-weight: 600;
}

.news-more-btn:hover,
.news-more-btn:focus {
    color: #003b7d;
}

.news-more-btn i {
    transition: transform 0.2s ease-out;
}

.news-more-btn[data-expanded="Y"] i {
    transform: rotate(180deg);
}

@media (max-width: 767px) {
    .news-more-wrapper {
        text-align: center;
    }
}

.news-collapsed {
    display: none !important;
}
