﻿/*.pagination-sm {
    display: inline-block;
    padding: 0
}


.pagination-sm>.active>a,
.pagination-sm>.active>span,
.pagination-sm>.active>a:hover,
.pagination-sm>.active>span:hover,
.pagination-sm>.active>a:focus,
.pagination-sm>.active>span:focus {
    z-index: 2;
    color: #fff!important;
    cursor: pointer!important;
    background-color: #428bca!important;
    border-color: #428bca!important;
    overflow: hidden;
}
*/

/* 針對電腦版稍微調整 */
@media (min-width: 768px) {
    .footer_container {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }
    .footer_container .footer_info {
        text-align: right;
    }
}
.pagination-sm>li>a:hover {
    background-color: #f00;
}

.pagination-sm>.active>a:hover {
    background-color: #4ea3ec!important
}

.pagination-sm>.active>a:hover {
    background-color: darkblue;
}

.pagination-sm li.first a::after {
    content: "หน้าแรก";
}

.pagination-sm li.prev a::after {
    content: "ก่อนหน้า"
}

.pagination-sm li.next a::after {
    content: "ถัดไป"
}

.pagination-sm li.last a::after {
    content: "หน้าสุดท้าย"
}

html:lang(en-us) .pagination-sm li.first a::after {
    content: "First"
}

html:lang(en-us) .pagination-sm li.prev a::after {
    content: "Previous"
}

html:lang(en-us) .pagination-sm li.next a::after {
    content: "Next"
}

html:lang(en-us) .pagination-sm li.last a::after {
    content: "Last"
}

html:lang(ja) .pagination-sm li.first a::after {
    content: "先頭"
}

html:lang(ja) .pagination-sm li.prev a::after {
    content: "前"
}

html:lang(ja) .pagination-sm li.next a::after {
    content: "次の"
}

html:lang(ja) .pagination-sm li.last a::after {
    content: "最終"
}

html:lang(th) .pagination-sm li.first a::after {
    content: "หน้าแรก"
}

html:lang(th) .pagination-sm li.prev a::after {
    content: "ก่อนหน้า"
}

html:lang(th) .pagination-sm li.next a::after {
    content: "ถัดไป"
}

html:lang(th) .pagination-sm li.last a::after {
    content: "หน้าสุดท้าย"
}


/* 頁籤*/

.pagination {
    display: inline-block;
    padding-left: 0;
    margin: 20px 0;
    border-radius: 4px
}

.pagination>li {
    display: inline
}

.pagination>li>a,
.pagination>li>span {
    position: relative;
    float: left;
    padding: 6px 12px;
    margin-left: -1px;
    line-height: 1.42857143;
    color: #ffd35f;
    text-decoration: none;
}

.pagination>li:first-child>a,
.pagination>li:first-child>span {
    margin-left: 0;
    border-top-left-radius: 4px;
    border-bottom-left-radius: 4px
}

.pagination>li:last-child>a,
.pagination>li:last-child>span {
    border-top-right-radius: 4px;
    border-bottom-right-radius: 4px
}

.pagination>li>a:hover,
.pagination>li>span:hover,
.pagination>li>a:focus,
.pagination>li>span:focus {
    color: #ffd35f;
    background-color: #6d2724;
}

.pagination>.active>a,
.pagination>.active>span,
.pagination>.active>a:hover,
.pagination>.active>span:hover,
.pagination>.active>a:focus,
.pagination>.active>span:focus {
    z-index: 2;
    color: #000000;
    background-color: #ffd35f;
}

.pagination>.disabled>span,
.pagination>.disabled>span:hover,
.pagination>.disabled>span:focus,
.pagination>.disabled>a,
.pagination>.disabled>a:hover,
.pagination>.disabled>a:focus {
    color: #ffd35f;
    cursor: not-allowed;
}

.pagination>.disabled>a,
.pagination>.disabled>a:hover {
    color: #000000;
    background-color: #ffd35f;
}

.pagination-lg>li>a,
.pagination-lg>li>span {
    padding: 10px 16px;
    font-size: 18px
}

.pagination-lg>li:first-child>a,
.pagination-lg>li:first-child>span {
    border-top-left-radius: 6px;
    border-bottom-left-radius: 6px
}

.pagination-lg>li:last-child>a,
.pagination-lg>li:last-child>span {
    border-top-right-radius: 6px;
    border-bottom-right-radius: 6px
}

.pagination-sm>li>a,
.pagination-sm>li>span {
    padding: 5px 20px;
    font-size: 20px;
}

.pagination-sm>li:first-child>a,
.pagination-sm>li:first-child>span {
    border-top-left-radius: 3px;
    border-bottom-left-radius: 3px
}

.pagination-sm>li:last-child>a,
.pagination-sm>li:last-child>span {
    border-top-right-radius: 3px;
    border-bottom-right-radius: 3px
}

ul.pagination li:first-child,
ul.pagination li:last-child {
    display: none;
}


/*公告*/


/*#detail {
    /*position: fixed;*/


/*position: fixed;
    display: none;
    z-index: 999;
    left: 0;
    top: 0;
    width: 100%;
    height: 200px;
    background: rgba(17, 5, 5, 0.9);
}*/

#detail {
    /* 1. 讓整個彈窗固定在瀏覽器正中央 */
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    
    /* 2. 顯示設定：使用 Flexbox 強制內部所有元素垂直排列並置中 */
    display: flex;
    flex-direction: column;   /* 垂直排列 */
    align-items: center;      /* 水平置中所有子元素 */
    justify-content: flex-start; /* 內容從頂部開始排列，若要垂直也置中可改 center */
    
    /* 3. 尺寸控制 */
    width: 90%;
    max-width: 1000px;        /* 限制最大寬度，避免電腦版太扁 */
    height: 85vh;             /* 高度佔螢幕 85% */
    z-index: 9999;            /* 確保在最上層 */
    
    /* 4. 視覺樣式 */
    background: rgba(20, 10, 10, 0.95);
    padding: 50px 30px;
    border-radius: 20px;
    box-sizing: border-box;
    color: #fff;
    
    /* 5. 捲軸設定：內容太長時內部滾動 */
    overflow-y: auto;
    box-shadow: 0 0 30px rgba(0,0,0,0.8);
}

/* 確保標題與日期文字置中 */
[data-head="title"], 
[data-head="dt"] {
    text-align: center;
    width: 100%;
    margin-bottom: 15px;
}

/* 重點：內容區塊內的所有元素都要置中 */
[data-head="content"] {
    width: 100%;
    text-align: center;       /* 讓內文文字置中 */
}

/* 強制內容裡的圖片、段落、連結全部置中 */
[data-head="content"] p,
[data-head="content"] div,
[data-head="content"] span {
    text-align: center !important;
    margin-left: auto !important;
    margin-right: auto !important;
    display: block;           /* 轉為區塊元素才能置中 */
}

/* 圖片置中與自動縮放 */
[data-head="content"] img {
    display: block;
    margin: 20px auto !important; /* 上下留白，左右自動置中 */
    max-width: 100% !important;
    height: auto !important;
    border-radius: 10px;
}

/* 關閉按鈕（如果你希望它在右上角，而不是跟著全部置中） */
[data-button="close"] {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 30px;
    color: #999;
    text-decoration: none;
    z-index: 10001;
}

#detail [data-head="title"]:empty::after {
    content: "loading..."
}

#detail [data-head="dt"]:empty::after {
    content: "loading..."
}

#detail [data-head="content"]:empty::after {
    content: "loading..."
}


/*
#detail a[data-button="close"]::after {
    content: "X";
    color: #fff;
    position: relative;
    left: 10px;
    top: 4px;
}*/

#detail a[data-button="close"] {
    display: block;
    width: 40px;
    height: 40px;
    /*background: #f00;*/
    background: url('../images/mob-close.png') no-repeat;
    position: absolute;
    top: 3px;
    right: 3px;
}

#detail div[data-head="title"] {
    color: #ffe895;
    font-size: 40px;
    font-weight: bold;
    margin-bottom: 10px;
}

#detail div[data-head="kind"] {
    color: #ffe895;
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 5px;
}
#detail div[data-head="kind"] > [data-kind="icon_system"]{color:#ff4e2f;}
#detail div[data-head="kind"] > [data-kind="icon_event"]{color:#79ff17;}
#detail div[data-head="kind"] > [data-kind="icon_support"]{color:#fff900;}

#detail div[data-head="dt"] {
    color: #ff9f4e;
    font-size: 20px;
    margin-bottom: 5px;
}

#detail div[data-head="content"]>p {
    color: #feecd1;
    font-size: 18px !important;
    line-height: 1.4;
}

#detail div[data-head="content"]>h1 {
    color: #ffd35f;
    margin-bottom: 1%;
}

#detail div[data-head="content"]>h2,
#detail div[data-head="content"]>h3,
#detail div[data-head="content"]>h4,
#detail div[data-head="content"]>h5,
#detail div[data-head="content"]>h6 {
    color: #feecd1;
    margin-bottom: 1%;
}

#detail {
    -webkit-transition-duration: 0.2s;
    -moz-transition-duration: 0.2s;
    -o-transition-duration: 0.2s;
    transition-duration: 0.2s
    /*
-moz-transition: all 0.2s 0.5s ease-out;
    -o-transition: all 0.2s 0.5s ease-out;
    -webkit-transition: all 0.2s 0.5s ease-out;
    -ms-transition: all 0.2s 0.5s ease-out;
*/
}

#detail div[data-head="content"]>table {
    width: 100%;
}

#detail div[data-head="content"]>table tr td {
    width: auto;
}

#detail div[data-head="content"] img {
    max-width: 100%;
    margin: 20px 0;
}

@media only screen and (max-width: 950px) {
    #detail {
        padding: 50px;
    }
    #detail div[data-head="title"] {
        font-size: 35px;
    }
    #detail div[data-head="kind"] {
        font-size: 25px;
    }
    #detail div[data-head="dt"] {
        font-size: 20px;
    }
    #detail div[data-head="content"]>p {
        font-size: 18px !important;
        line-height: 1.4;
    }
}

@media only screen and (max-width: 767px) {
    #detail {
        padding: 50px 20px;
    }
    #detail div[data-head="title"] {
        font-size: 30px;
    }
    #detail div[data-head="kind"] {
        font-size: 22px;
    }
    #detail div[data-head="dt"] {
        font-size: 18px;
        margin-bottom: 5px;
    }
    #detail div[data-head="content"]>p {
        font-size: 18px !important;
        line-height: 1.4;
    }
}

@media only screen and (max-width: 460px) {
    .pagination-sm>li>a,
    .pagination-sm>li>span {
        padding: 5px 8px;
        font-size: 18px;
    }
}

[data-kind="icon_system"]::after{content:"System";}
[data-kind="icon_event"]::after{content:"Event";}
[data-kind="icon_support"]::after{content:"Service";}

