﻿/* FAQ.css
   將原本 FAQ.aspx 中的 inline styles 移至此檔以符合 CSP 要求。
*/

/* 基本字型 */
body {
    font-family: "Helvetica Neue", "Helvetica", "Arial", "sans-serif", "Microsoft JhengHei";
}

/* 標題字 */
.thcs_font1 {
    font-size: 1.125em;
    font-weight: bold;
}

/* 常用清單 */
ul, li {
    margin-top: 5px;
    list-style: none;
}

/* 可重複使用的 focus outline（無 inline style） */
a:focus,
.font-outline:focus {
    outline: 2px solid #0056b3 !important;
    outline-offset: 2px;
    position: relative;
    z-index: 9999;
}

/* 頁首動作區 (取代 inline styles) */
.top-actions {
    margin-top: 10px;
    display: flex;
    justify-content: flex-end;
}

.top-actions-col {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 0;
}

.separator {
    margin: 0 0.25rem;
}

/* 字型大小調整按鈕外框（原先 inline outline） */
.font-outline {
    outline: 2px solid transparent;
    outline-offset: 2px;
}

/* 搜尋欄 */
.site-search-input {
    max-width: 180px;
    box-sizing: border-box;
}

.site-search-btn {
    vertical-align: middle;
}

/* 標題圖片 */
.title-img {
    width: 100%;
    height: auto;
    display: block;
}

/* 主要頁面標題小字 */
.page-title {
    color: black;
    font-size: 0.563em;
}

/* Tab 連結字級 */
.tab-link {
    font-size: 0.875em;
}

/* 問題/答案樣式（移自原 inline 與 <style>） */
.question {
    font-size: 0.750em;
    font-family: "Helvetica Neue", "Helvetica", "Arial", "sans-serif", "Microsoft JhengHei";
    background: #fff;
}

    .question a {
        color: #83521e;
        text-decoration: none;
        outline: none;
        cursor: pointer;
    }

.clear {
    clear: both;
    display: block;
    overflow: hidden;
    visibility: hidden;
    width: 0;
    height: 0;
}

.answer {
    background: #fff;
    margin: 0 40px 0 10px;
    font-size: 0.750em;
    font-family: "Helvetica Neue", "Helvetica", "Arial", "sans-serif", "Microsoft JhengHei";
    color: #706e6c;
}

    .answer li {
        padding: 30px 0;
        background: none;
        border-bottom: 1px #c8c2bb dotted;
        margin: 0;
    }

    .answer .top {
        border-top: 1px #c8c2bb dotted;
    }

    .answer h3 {
        font-size: 1em;
        font-weight: bold;
        margin: 0;
        padding: 0;
    }

/* Accordion 樣式（文字風格） */
.accordion-question {
    color: black;
    font-size: 0.875em;
    font-weight: bold;
    display: block;
}

.accordion-body-text {
    color: black;
    font-size: 0.875em;
}

/* 置換 <br/> 的間距用類別 */
.spacer-br {
    height: 1rem;
}

/* 自訂下拉選單樣式（保持與原本行為一致） */
.dropdown-toggle::after {
    display: none !important;
}

.btn.btn-danger {
    border-radius: 0px;
    padding: 0.375rem 0.75rem;
}

/* 下拉選單容器 */
.dropdown {
    position: relative;
    display: inline-block;
}

/* 子選單 */
.dropdown-menu {
    display: none;
    position: absolute;
    background-color: white;
    min-width: 160px;
    z-index: 1050;
    box-shadow: 0px 4px 8px rgba(0,0,0,0.2);
    list-style: none;
    padding: 0;
    margin: 0;
}

/* 展開條件 */
.dropdown:hover .dropdown-menu,
.dropdown:focus-within .dropdown-menu,
.dropdown.open .dropdown-menu {
    display: block;
}

/* 子選單項目 */
.dropdown-item {
    padding: 8px 16px;
    display: block;
    color: black;
    text-decoration: none;
}

    .dropdown-item:hover,
    .dropdown-item:focus {
        background-color: #f1f1f1;
        outline: none;
    }

/* footer 相關 */
.footer-section {
    margin-top: 1rem;
}

.footer-bg {
    background-color: #dc3545; /* 與 .bg-danger 保持一致 */
    color: #fff;
    padding: 1rem 0;
}

.logo-img {
    width: 110px;
    height: 73px;
}

.footer-title {
    font-size: 0.875em;
    letter-spacing: 6px;
}

.footer-subtitle {
    font-size: 0.75em;
}

.footer-text {
    font-size: 0.875em;
}

.footer-link {
    font-size: 0.875em;
    color: #fff;
    text-decoration: none;
}

    .footer-link:hover,
    .footer-link:focus {
        text-decoration: underline;
    }

.footer-skip {
    color: #fff;
}

.footer-icon-link img {
    vertical-align: middle;
}

/* 小螢幕調整（必要時） */
@media (max-width: 576px) {
    .top-actions {
        justify-content: center;
    }

    .footer-right {
        margin-top: 0.5rem;
    }
}
