/* ===================================================
   news_detail.css — สไตล์เฉพาะหน้ารายละเอียดข่าว (news_detail.php)
   ใช้คู่กับ style.css
   =================================================== */

body { background-color: #f8f4f0; font-family: 'Sarabun', sans-serif, Arial; }

.top-bar { background-color: var(--hosp-orange-dark); color: #fff; font-size: 13px; padding: 7px 0; }

.page-header {
    background-color: var(--hosp-orange);
    color: #fff;
    padding: 18px 0;
    border-bottom: 4px solid var(--hosp-orange-dark);
}
.page-header h1 { font-size: 20px; font-weight: 800; margin: 0; }

.btn-back {
    background-color: #fff;
    color: var(--hosp-orange-dark);
    border: none;
    font-weight: 700;
    font-size: 14px;
    padding: 6px 16px;
    border-radius: 6px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: background 0.2s;
}
.btn-back:hover { background-color: #ffe8d6; color: var(--hosp-orange-dark); }

.detail-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 3px 16px rgba(0,0,0,0.08);
}
.detail-hero-img {
    width: 100%;
    max-height: 460px;
    object-fit: contain;
    background: #f8f4f0;
    display: block;
}
.pdf-embed {
    width: 100%;
    height: 520px;
    border: none;
    display: block;
}
.detail-body { padding: 28px 32px 32px; }
.detail-title { font-size: 22px; font-weight: 800; color: #1a1a1a; line-height: 1.5; margin-bottom: 14px; }
.detail-meta { display: flex; align-items: center; gap: 12px; margin-bottom: 24px; flex-wrap: wrap; }
.badge-date {
    background-color: var(--hosp-orange);
    color: #fff;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
}
.badge-isnew {
    background-color: #e06b2d;
    color: #fff;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
}
.detail-divider { border: none; border-top: 2px solid #f0e8e0; margin: 0 0 24px; }
.detail-content { font-size: 15px; line-height: 1.9; color: #444; white-space: pre-wrap; }
.detail-content-empty { color: #bbb; font-size: 14px; text-align: center; padding: 20px 0 10px; }
.detail-file-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: var(--hosp-orange);
    color: #fff;
    border-radius: 8px;
    padding: 9px 22px;
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
    margin-top: 20px;
    transition: background 0.2s;
}
.detail-file-btn:hover { background-color: var(--hosp-orange-dark); color: #fff; }

.section-title {
    font-size: 16px;
    font-weight: 800;
    color: var(--hosp-orange-dark);
    border-left: 5px solid var(--hosp-orange);
    padding-left: 12px;
    margin-bottom: 16px;
}
.related-news-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid #f0e8e0;
    text-decoration: none;
    color: inherit;
    transition: background 0.15s;
}
.related-news-item:last-child { border-bottom: none; }
.related-news-item:hover { color: var(--hosp-orange-dark); }
.related-news-item i { color: var(--hosp-orange); margin-top: 3px; flex-shrink: 0; }
.related-news-title { font-size: 13px; font-weight: 600; line-height: 1.5; }
.related-news-date { font-size: 11px; color: #aaa; margin-top: 3px; }

.main-footer { background-color: var(--hosp-orange-dark); color: #fff; padding: 28px 0 14px; font-size: 13px; margin-top: 48px; }
.footer-copyright { background-color: #e06b2d; padding: 10px 0; font-size: 12px; color: #fff; margin-top: 16px; }

/* Lightbox */
.lightbox-trigger { cursor: zoom-in; }

@media (max-width: 575.98px) {
    .detail-body { padding: 18px 16px 20px; }
    .detail-title { font-size: 17px; }
    .pdf-embed { height: 380px; }
}
