/* 內容區樣式 */
.bulletin-list {
    padding: 20px;
}

.bulletin-list a {
    text-decoration: none;
}

.bulletin-item {
    border: 2px solid #FBB03B;
    border-radius: 10px;
    margin-bottom: 13px;
    padding: 10px;
    box-shadow: 0px 5px 10px rgba(0, 0, 0, 0.3);
    background-color: #fff;
}

.bulletin-item .tag:hover {
    background-color: #FBB03B;
    color: #292929;
    border: 2px solid #821A25;
}

.bulletin-item p {
    margin: 0;
    color: #333;
}

.bulletin-item .tag {
    display: inline-block;
    padding: 5px 10px;
    border: 2px solid #ff9800;
    border-radius: 20px;
    font-size: calc(var(--global-font-size) * (12 / 16));
    color: #821A25;
    margin-right: 10px;
}

.bulletin-item .date {
    display: inline-block;
    padding: 5px 10px;
    border: 2px solid #ff9800;
    border-radius: 20px;
    font-size: calc(var(--global-font-size) * (12 / 16));
    color: #821A25;
}

/* 按鈕點擊樣式 */
.bulletin-item .tag:hover {
    background-color: #FBB03B;
    color: #292929;
    border: 2px solid #821A25;
}

.bulletin-item .date:hover {
    background-color: #FBB03B;
    color: #292929;
    border: 2px solid #821A25;
}

.tag-date-container {
    margin-top: 15PX;
    text-align: right;
}

/* 分頁按鈕樣式 */
.pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 10px;
}

.pagination button {
    background-color: #333;
    color: white;
    border: none;
    height: 50px;
    /* 固定高度 */
    line-height: 50px;
    /* 垂直置中 */
    border-radius: 5px;
    text-align: center;
    padding: 0 20px;
}

.pagination .prev,
.pagination .next {
    background-color: #333;
    color: white;
    border: none;
    height: 50px;
    /* 固定高度 */
    line-height: 50px;
    /* 垂直置中 */
    border-radius: 5px;
    text-align: center;
    padding: 0 20px;

    flex-grow: 1;
    /* 讓“上一頁”和“下一頁”按鈕填滿剩餘空間 */
    margin: 0 5px;
    border-radius: 30px;
}

.pagination .prev a,
.pagination .next a{
    display: block;
    color: white;
    text-decoration: none;
}

.pagination .page-number {
    background-color: #333;
    color: white;
    border: none;
    height: 50px;
    /* 固定高度 */
    line-height: 50px;
    /* 垂直置中 */
    border-radius: 5px;
    text-align: center;
    padding: 0 20px;

    background-color: #800000;
    color: white;
    width: 50px;
    /* 固定中間按鈕寬度 */
    text-align: center;
    /* 水平置中 */
    border-radius: 10px;
    display: inline-block;
}

/* 平板版設計 */
@media (min-width: 768px) and (max-width: 1024px) {
    /* 確保比例一致並維持樣式 */

    .bulletin-item {
        margin-bottom: 40px;
        height: 120px;
    }

    .tag-date-container {
        margin-top: 32px;
    }
}
