/* ==========================================
   新聞風格文章頁面專屬樣式 (css/web.css)
   ========================================== */
.news-article-container {
    text-align: left;
    max-width: 900px;
    margin: 0 auto;
    padding: 10px 0;
}

/* 1. 標題 (左側藍條) */
.news-title {
    font-size: 28px;
    font-weight: bold;
    color: #111111;
    padding-left: 14px;
    border-left: 6px solid #00A4DE;
    line-height: 1.35;
    margin-bottom: 10px;
}

/* 2. 發布日期 */
.news-date {
    font-size: 14px;
    color: #666666;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eeeeee;
}

/* 3. 引言摘要區塊 */
.news-lead {
    font-size: 17px;
    font-weight: 500;
    color: #222222;
    background-color: #f4f9fc;
    border-left: 4px solid #00A4DE;
    padding: 16px 20px;
    margin-bottom: 25px;
    line-height: 1.7;
    border-radius: 0 6px 6px 0;
}

/* 4. 文章主文 */
.news-body {
    font-size: 18px;
    color: #333333;
    line-height: 1.85;
}

    .news-body h2 {
        font-size: 22px;
        font-weight: bold;
        color: #111111;
        margin: 30px 0 15px 0;
        padding-bottom: 6px;
        border-bottom: 2px solid #00A4DE;
    }

    .news-body p {
        margin-bottom: 20px;
    }

/* 5. 圖片與圖說 */
.news-figure {
    margin: 25px 0;
    text-align: center;
}

    .news-figure img {
        max-width: 100%;
        height: auto;
        border-radius: 8px;
        display: block;
        margin: 0 auto;
        box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    }

.news-caption {
    font-size: 14px;
    color: #666666;
    margin-top: 8px;
    text-align: center;
}

/* ==========================================
   RUNNING TRAIN 文章列表頁卡片與分頁樣式
   ========================================== */
.page-main-title {
    text-align: left;
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 30px;
    color: #333333;
}

.article-list-container {
    display: flex;
    flex-direction: column;
    gap: 40px;
    width: 100%;
}

.train-card {
    display: flex;
    flex-direction: column;
    text-align: left;
    background-color: #ffffff;
    border-radius: 8px;
}

.train-card-title {
    font-size: 22px;
    font-weight: bold;
    color: #111111;
    padding-left: 12px;
    border-left: 5px solid #00A4DE;
    margin-bottom: 12px;
    line-height: 1.3;
}

    .train-card-title a {
        color: inherit;
        text-decoration: none;
    }

.train-card-excerpt {
    font-size: 15px;
    color: #444444;
    line-height: 1.6;
    margin-bottom: 18px;
}

.train-card-img-wrapper {
    position: relative;
    width: 100%;
    max-height: 380px;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
}

    .train-card-img-wrapper img {
        width: 100%;
        height: 380px;
        object-fit: cover;
        object-position: center;
        display: block;
        transition: transform 0.4s ease;
    }

.train-card-overlay {
    position: absolute;
    top: 0;
    right: 0;
    width: 42%;
    height: 100%;
    background-color: rgba(0, 164, 222, 0.85);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 0 12px 12px 0;
    pointer-events: none;
}

    .train-card-overlay span {
        color: #ffffff;
        font-size: 22px;
        font-weight: bold;
    }

.train-card-img-wrapper:hover img {
    transform: scale(1.03);
}

.train-card-img-wrapper:hover .train-card-overlay,
.train-card-img-wrapper:active .train-card-overlay {
    opacity: 1;
}

/* 分頁按鈕 */
.pagination-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 50px;
}

.page-btn {
    padding: 8px 16px;
    border: 1px solid #00A4DE;
    background-color: #ffffff;
    color: #00A4DE;
    font-size: 16px;
    font-weight: bold;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
}

    .page-btn:hover,
    .page-btn.active {
        background-color: #00A4DE;
        color: #ffffff;
    }

    .page-btn:disabled {
        border-color: #ccc;
        color: #ccc;
        cursor: not-allowed;
        background-color: #f5f5f5;
    }

@media (max-width: 768px) {
    .news-title {
        font-size: 24px;
    }

    .news-lead {
        font-size: 16px;
    }

    .news-body {
        font-size: 16px;
    }

    .train-card-img-wrapper img {
        height: 220px;
    }

    .train-card-overlay {
        width: 60%;
    }
}
