/* ==========================================================================
   /ielts/fees.html 雅思報名費用
   載入順序：site.css → article.css → 本檔
   命名空間：.fe-*（全站最小字級 14px）
   色彩約定：IDP ＝ 品牌紅、英國文化協會 BC ＝ 深灰 #272727，全頁一致
   延伸連結（.ip-related）、A／B／C 小標（.ip-letter-title／.ip-letter）、表格說明（.ip-table-note）、
   編號列（.ip-numlist）已移到 article.css 共用，這裡只放本頁的間距微調
   ========================================================================== */

/* ---------- 費用表（沿用 .ip-table-wrap） ---------- */
.ielts-article .fe-table table {
    min-width: 560px;
}

.ielts-article .fe-table thead th.fe-col-idp {
    background: var(--red);
    border-color: var(--red);
}

.ielts-article .fe-price-table thead th:not(:first-child),
.ielts-article .fe-price-table td {
    width: 28%;
    text-align: center;
    vertical-align: middle;
}

.ielts-article .fe-table tbody th {
    color: #222;
    font-size: 16px;
    line-height: 1.5;
}

/* 列標題的英文／補充名稱：換行、灰字 */
.ielts-article .fe-en {
    display: block;
    margin-top: 2px;
    font-size: 14px;
    font-weight: 500;
    color: #777;
}

.ielts-article .fe-price {
    font: 700 21px/1.3 Georgia, "Times New Roman", serif;
    letter-spacing: .01em;
    color: #222;
    white-space: nowrap;
}

.ielts-article .fe-price-table td:nth-child(2) .fe-price {
    color: var(--red);
}

/* ---------- 小標＋區塊 ---------- */
.ielts-article .fe-block {
    margin-top: 44px;
}

.ielts-article .fe-block > .ip-letter-title {
    margin-top: 0;
}

.ielts-article .fe-block .ip-note {
    margin-top: 0;
}

/* ---------- 延伸閱讀連結：本頁上方間距 22px（共用元件預設 24px） ---------- */
.ielts-article .ip-related {
    margin-top: 22px;
}

/* 官方政策／成績服務連結清單：雙箭頭文字連結，逐行排列 */
.ielts-article .ip-related--list {
    margin-top: 16px;
}

/* ---------- 02｜單科重考／成績複查兩張卡 ---------- */
.ielts-article .fe-services {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.ielts-article .fe-service {
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 26px 26px 24px;
    background: #fff;
    border: 1px solid var(--ip-border);
    border-top: 3px solid var(--red);
}

.ielts-article .fe-service:nth-child(2) {
    background: var(--ip-cream);
    border-top-color: #272727;
}

.ielts-article .fe-service-title {
    margin: 0 0 14px;
    padding-bottom: 14px;
    border-bottom: 1px dashed var(--ip-border);
    font-size: clamp(18px, 1.5vw, 20px);
    line-height: 1.55;
    color: #222;
}

.ielts-article .fe-service-tag {
    display: table;
    margin-bottom: 10px;
    padding: 2px 10px;
    background: var(--red);
    color: #fff;
    font: italic 700 14px/1.6 Georgia, serif;
    letter-spacing: .06em;
}

.ielts-article .fe-service:nth-child(2) .fe-service-tag {
    background: #272727;
}

.ielts-article .fe-service p {
    font-size: 15px;
}

/* 連結固定在卡片底部 */
.ielts-article .fe-service .ip-related {
    margin-top: auto;
    padding-top: 14px;
    border-top: 1px solid var(--ip-border);
}

/* ---------- 03｜退改規則表 ---------- */
.ielts-article .fe-policy-table table {
    min-width: 640px;
    table-layout: fixed;
}

.ielts-article .fe-policy-table thead th:first-child {
    width: 130px;
}

.ielts-article .fe-policy-table tbody th {
    white-space: nowrap;
}

.ielts-article .fe-rules {
    margin: 0;
    padding: 0;
    list-style: none;
}

.ielts-article .fe-rules li {
    position: relative;
    padding-left: 16px;
}

.ielts-article .fe-rules li + li {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px dashed var(--ip-border);
}

.ielts-article .fe-rules li::before {
    content: "";
    position: absolute;
    left: 0;
    top: .7em;
    width: 6px;
    height: 6px;
    background: var(--red);
}

.ielts-article .fe-rules li + li::before {
    top: calc(10px + .7em);
}

.ielts-article .fe-policy-table td:last-child .fe-rules li::before {
    background: #272727;
}

.ielts-article .fe-rules strong {
    color: #222;
    background: linear-gradient(transparent 62%, #f6d4da 62%);
}

/* 改期 vs 取消 提醒框 */
.ielts-article .fe-alert {
    position: relative;
    margin: 30px 0 0;
    padding: 26px 30px 24px;
    background: #fff;
    border: 1px solid var(--ip-border);
    border-top: 4px solid var(--red);
    box-shadow: 6px 6px 0 var(--ip-cream);
}

.ielts-article .ip-content .fe-alert-title {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    padding-bottom: 14px;
    border-bottom: 2px solid #222;
    font-size: clamp(18px, 1.6vw, 21px);
    font-weight: 700;
    line-height: 1.5;
    color: #222;
}

.ielts-article .fe-alert-icon {
    flex: none;
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    background: #f8edef;
    font-size: 20px;
    line-height: 1;
}

.ielts-article .fe-alert p {
    font-size: 15px;
}

.ielts-article .ip-content .fe-alert-point {
    margin: 0;
    padding: 12px 16px;
    background: #272727;
    color: #fff;
}

/* ---------- 04｜其他支出（編號列沿用 article.css 的 .ip-numlist） ---------- */
.ielts-article .fe-costs .ip-numitem:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.ielts-article .fe-cost-title {
    margin: 0 0 12px;
    font-size: clamp(19px, 1.7vw, 22px);
    line-height: 1.5;
    color: #222;
}

.ielts-article .fe-costs .ip-related--list {
    margin-top: 0;
}

/* ---------- RWD ---------- */
@media (max-width: 960px) {

    .ielts-article .fe-services,
    .ielts-article .ip-related--pair {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 760px) {
    .ielts-article .fe-block {
        margin-top: 36px;
    }

    .ielts-article .fe-price {
        font-size: 18px;
    }

    .ielts-article .fe-service {
        padding: 22px 18px 20px;
    }

    .ielts-article .fe-alert {
        padding: 20px 18px;
        box-shadow: none;
    }
}

