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

/* 既有類別 */
.thcs_font1 {
    font-size: 1.125em;
    font-weight: bold;
}

.thcs_font2 {
    font-size: 0.875em;
    font-weight: bold;
}

/* 導覽焦點樣式 */
a:focus {
    outline: 2px solid #0056b3 !important;
    outline-offset: 2px;
    position: relative;
    z-index: 9999;
}

/* carousel control button 基礎（原 style 與自定義） */
.carousel-control-custom button {
    top: 0;
    right: 0;
    min-width: 68px;
}

/* 移除 Bootstrap 預設的下拉箭頭背景 */
.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;
    }

/* ===== 自定義搬移的樣式 ===== */

/* header 右側控制群組 */
.top-controls {
    margin-top: 10px;
    display: flex;
    justify-content: flex-end;
}

/* top row inner container */
.top-row-inner {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 0;
}

/* font adjust 按鈕外觀（移除 inline outline） */
.font-adjust-btn {
    outline: 2px solid transparent;
    outline-offset: 2px;
}

/* site search input & button */
.site-search-input {
    max-width: 180px;
    box-sizing: border-box;
}

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

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

/* 確保該段落為黑色（放在 Home.css 中） */
.card-body-black {
    color: #000000;
}

/* 卡片內段落補充 */
.thcs-paragraph {
    margin: 0;
}

/* 最新消息標題 */
.news-heading {
    color: black;
    font-size: 1.207em;
}

/* 最新消息各項目標題 */
.news-item-title {
    color: black;
    font-size: 1em;
}

/* 折疊內文（小字） */
.news-body {
    color: black;
    font-size: 0.875em;
    display: inline;
}

/* 內文中強調連結 */
.news-link {
    font-weight: bold;
    font-size: 0.875em;
}

/* 輪播圖片尺寸 */
.carousel-img {
    width: 300px;
    height: 350px;
    object-fit: cover;
    display: block;
}

/* 輪播控制容器位置與層級 */
.carousel-control-container {
    top: 10px;
    right: 16px;
    z-index: 2;
}

/* 輪播控制按鈕 */
.carousel-btn {
    position: absolute;
}

/* 隱藏顯示用 */
.hidden {
    display: none !important;
}

/* footer 相關 */
.sr-focusable-white {
    color: white;
}

.logo-img {
    width: 110px;
    height: 73px;
    object-fit: contain;
    display: block;
}

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

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

.footer-small-75 {
    font-size: 0.75em;
}

.footer-link {
    font-size: 0.875em;
    color: inherit;
    text-decoration: underline;
}

.gov-img {
    width: 31px;
    height: 31px;
}

.access-img {
    width: 88px;
    height: 31px;
    border: 0;
}

.footer-row {
    padding: 12px 0;
}

.footer-icons img {
    vertical-align: middle;
}

/* 如需額外微幅調整可在此新增覆寫 */
