/* ============================================================
   GDDNA 防詐驗真宣告 — 主站 (IIIEDU) 頁尾樣式
   配色融入品牌天空藍 #6CAEDF（頁尾底色）：卡片改為淡色面板
   （近白的淺藍），與頁尾底色形成柔和對比；文字改用深藍以維持
   易讀性，複製按鈕維持品牌藍系實心按鈕作為主要動作。
   卡片包在既有 .container 內，與頁尾其他欄位左右對齊，
   卡片內容整體置中。
   下方為「全球 DNA 碼」膠囊，置中顯示、附複製按鈕。
   斷點對齊 public/iiiedufile/css/sass/helpers/_mixins.scss
   maxSmall = 991px, maxMobile = 767px
   ============================================================ */

.gddna-declaration {
    padding: 0 0 2rem;
}

.gddna-declaration__card {
    background-color: #6CAEDF !important;
    border-top: 1px solid rgba(32, 78, 116, 0.18);
    /*border-radius: 12px;*/
    padding: 1.75rem 2rem;
    margin-top: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    /*box-shadow: 0 4px 14px rgba(11, 39, 64, 0.15);*/
}

.gddna-declaration__copy-block {
    max-width: 100%;
}

.gddna-declaration__title {
    color: #FFF;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.gddna-declaration__text {
    color: #fff;
    font-size: 0.9rem;
    line-height: 1.75;
    margin-bottom: 0;
	text-align: justify;
}

.gddna-declaration__text a {
    color: #FFF;
    text-decoration: underline;
    font-weight: 600;
}

/* ---- 全球 DNA 碼膠囊 ---- */
.gddna-declaration__pill {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    margin: 1.25rem auto 0;
    padding: 0.55rem 0.6rem 0.55rem 1.1rem;
    background: rgba(32, 78, 116, 0.06);
    border: 1px solid rgba(32, 78, 116, 0.25);
    border-radius: 999px;
    flex-wrap: wrap;
    justify-content: center;
}

.gddna-declaration__pill-label {
    color: #123653;
    font-weight: 700;
    font-size: 0.9rem;
    white-space: nowrap;
}

.gddna-declaration__pill code {
    background: transparent;
    color: #123653;
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 0.04em;
    white-space: nowrap;
}

.gddna-declaration__copy {
    padding: 0.4rem 1rem;
    font-size: 0.8125rem;
    border-radius: 999px;
    white-space: nowrap;
    cursor: pointer;
    display: inline-block;
    background: #204E74;
    color: #fff;
    border: 1px solid #204E74;
    font-weight: 600;
}

.gddna-declaration__copy:hover {
    background: #163C5C;
    border-color: #163C5C;
    color: #fff;
}

/* ---- 平板 (maxSmall: 991px) ---- */
@media (max-width: 991px) {
    .gddna-declaration__card {
        padding: 1.5rem 1.5rem;
    }
}

/* ---- 手機 (maxMobile: 767px)：放大字體、方便閱讀 ---- */
@media (max-width: 767px) {
    .gddna-declaration__card {
        padding: 1.5rem 1.25rem;
        margin-top: 1.5rem;
        border-radius: 10px;
    }

    .gddna-declaration__title {
        font-size: 1.1rem;
    }

    .gddna-declaration__text {
		color: #fff;
        font-size: 1.25rem;
        line-height: 1.8;
    }

    .gddna-declaration__pill {
        width: 100%;
        justify-content: center;
        padding: 0.6rem 0.75rem;
    }

    .gddna-declaration__pill-label {
        font-size: 0.95rem;
    }

    .gddna-declaration__pill code {
        font-size: 0.95rem;
    }

    .gddna-declaration__copy {
        font-size: 0.875rem;
        padding: 0.45rem 1.1rem;
    }
}

/* ============================================================
   首頁防詐驗真宣告 Popup（Bootstrap 4 modal）
   ============================================================ */
.gddna-modal .modal-content {
    border: 0;
    border-radius: 14px;
    overflow: hidden;
}

.gddna-modal .modal-header {
    background: #204E74;
    color: #fff;
    border-bottom: 0;
    padding: 1rem 1.25rem;
}

.gddna-modal .modal-title {
    font-weight: 700;
    font-size: 1.15rem;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.gddna-modal .modal-header .close {
    color: #fff;
    opacity: 0.9;
    text-shadow: none;
}

.gddna-modal .modal-header .close:hover {
    color: #fff;
    opacity: 1;
}

.gddna-modal .modal-body {
    padding: 1.5rem;
}

.gddna-modal__text {
    color: #274B66;
    font-size: 0.95rem;
    line-height: 1.9;
    margin: 0;
    text-align: justify;
}

.gddna-modal__text a {
    color: #1D6FA8;
    font-weight: 600;
    text-decoration: underline;
}

.gddna-modal .modal-footer {
    border-top: 1px solid #EAF0F5;
    justify-content: space-between;
    align-items: center;
}

.gddna-modal__check {
    margin: 0;
    font-size: 0.875rem;
    color: #5A6B7B;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    cursor: pointer;
}

.gddna-modal__btn {
    background: #204E74;
    color: #fff;
    border: 0;
    border-radius: 8px;
    padding: 0.5rem 1.4rem;
    font-weight: 600;
}

.gddna-modal__btn:hover {
    background: #163C5C;
    color: #fff;
}

@media (max-width: 767px) {
    .gddna-modal .modal-footer {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
    }

    .gddna-modal__btn {
        width: 100%;
    }
}
