@charset "utf-8";
a{
    text-decoration: none;
}
.wrapper-main{
    position: relative;
    z-index: 4;
}

.newslist {
    list-style: none;
}
.newslist__link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 59px;
    padding: 0 20px 0 8px;
    border-top: 1px dashed var(--primary-color);
    color: #333333;
    text-decoration: none;
    cursor: pointer;
}
.newslist__link:hover{
    background-color: #ffffff;
}
.newslist__info {
    display: flex;
    align-items: center;
    gap: 57px;
    min-width: 0;
}

.col-date {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 119px;
    height: 37px;
    padding: 6px 20px;
    color: #333333;
    font-size: 16px;
    font-weight: 400;
    letter-spacing: 0.05em;
    line-height: normal;
}

.col-titile {
    color: #333333;
    font-size: 18px;
    font-weight: 400;
    letter-spacing: 0.05em;
    line-height: normal;
}

.newslist__arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    position: relative;
    left: 0;
    transition: left 0.3s ease-in-out;
}

.newslist__arrow img {
    display: block;
    width: 24px;
    height: 24px;
    transform: rotate(180deg) scaleY(-1);
}

.newslist__link:hover .newslist__arrow {
    left: 10px;
}

.newslist__link:hover .col-titile,
.newslist__link:hover .col-date {
    color: #222121;
}

@media (max-width: 950px) {
    .newslist {
        padding-right: 1.25rem;
    }

    .newslist__link {
        min-height: 0;
        padding-top: 1.25rem;
        padding-bottom: 1.25rem;
    }

    .newslist__info {
        flex: 1;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }

    .col-date {
        width: auto;
        height: auto;
        padding: 0;
        justify-content: flex-start;
    }

    .col-titile {
        font-size: 1rem;
        word-break: break-word;
    }

    .newslist__arrow {
        z-index: 2;
    }
}

/* 回上一頁：視覺同 .site-header_li */
.wrapper-btn {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.wrapper-btn .btn-back {
    display: flex;
    position: relative;
    width: auto;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    background-color: var(--primary-color);
    border-radius: 50px;
    padding: 6px;
    text-decoration: none;
    transition: background-color 0.3s ease-in-out;
}

.btn-back__in {
    color: #ffffff;
    letter-spacing: clamp(0rem, 1vw, 0.08rem);
    font-family: "NotoSansTC";
    text-align: center;
    font-size: clamp(1rem, 3.2vw, 1.125rem);
    line-height: 1.2;
    white-space: nowrap;
    font-weight: bold;
    border-radius: 50px;
    border: 1px dashed #ffffff;
    padding: 8px 16px;
    width: 100%;
    gap: 0.5rem;
}

.wrapper-btn .btn-back:hover {
    background-color: #ffffff;
}

.wrapper-btn .btn-back:hover .btn-back__in {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-back__in .back-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.btn-back__in .back-arrow img {
    display: block;
    width: 24px;
    height: 24px;
}

/* 檔案下載：同 btn-back 結構，顏色相反 */
.wrapper-btn .wrapper-file {
    padding-top: 0;
    border-top: 0;
}

.wrapper-btn .list-file {
    display: flex;
    position: relative;
    width: auto;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    background-color: #ffffff;
    border-radius: 50px;
    padding: 6px;
    color: var(--primary-color);
    text-decoration: none;
    overflow: visible;
    font-weight: bold;
    transition: background-color 0.3s ease-in-out;
}

.list-file__in {
    color: var(--primary-color);
    letter-spacing: clamp(0rem, 1vw, 0.08rem);
    font-family: "NotoSansTC";
    text-align: center;
    font-size: clamp(1rem, 3.2vw, 1.125rem);
    line-height: 1.2;
    white-space: nowrap;
    font-weight: bold;
    border-radius: 50px;
    border: 1px dashed var(--primary-color);
    padding: 8px 16px;
    width: 100%;
    gap: 0.5rem;
}

.wrapper-btn .list-file:hover {
    background-color: var(--primary-color);
}

.wrapper-btn .list-file:hover .list-file__in {
    color: #ffffff;
    border-color: #ffffff;
}

.list-file__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.list-file__icon img {
    display: block;
    width: 24px;
    height: 24px;
}

.wrapper-btn .list-file:hover .list-file__icon img {
    filter: brightness(0) invert(1);
}