/* =====================================================
   news.css : เฉพาะหน้าข่าวประชาสัมพันธ์ (pages/news/announcement.html)
   ใช้ร่วมกับ .news-grid / .news-card / .news-title / .news-date ใน custom.css
   ===================================================== */
.news-title {
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.news-page {
    padding: 28px 0 56px;
}

/* กันกฎเก่าของเทมเพลต (div { text-align: justify }) */
.news-page div { text-align: left; }
.news-page .news-card,
.news-page .news-card div { text-align: center; }

/* ---------- แถบเครื่องมือ ---------- */
.news-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 14px 20px;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}
.news-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.news-chip {
    padding: 7px 18px;
    border: 1px solid var(--theme, #b2bb1e);
    border-radius: 999px;
    background: #fff;
    color: #111;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background .2s, color .2s;
}
.news-chip:hover { background: var(--theme-soft, #e0f2f1); }
.news-chip.is-active {
    background: var(--theme, #b2bb1e);
    color: #111;
    font-weight: 700;
}
.news-tools {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.news-tools input,
.news-tools select {
    height: 42px;
    padding: 0 14px;
    border: 1px solid #cfcfcf;
    border-radius: 8px;
    background: #fff;
    color: #111;
    font-size: 16px;
}
.news-tools input { min-width: 220px; }
.news-tools input:focus,
.news-tools select:focus {
    outline: 2px solid var(--theme, #b2bb1e);
    outline-offset: 1px;
}

.news-count {
    margin: 0 0 18px;
    font-size: 15px;
    color: #444;
}

/* ---------- การ์ดข่าว (ต่อยอดจาก custom.css) ---------- */
.news-page .news-img { position: relative; }
.news-page .news-card { position: relative; }
.news-cat {
    align-self: center;
    margin-top: 12px;
    padding: 2px 12px;
    border-radius: 999px;
    background: var(--theme-soft, #e0f2f1);
    color: #111;
    font-size: 13px;
    font-weight: 600;
}
.news-page .news-title { margin-top: 8px; }
.news-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    padding: 2px 12px;
    border-radius: 999px;
    background: #d32f2f;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
}

/* ---------- สถานะว่าง / ปุ่มแสดงเพิ่ม ---------- */
.news-empty {
    padding: 48px 0;
    text-align: center;
    font-size: 18px;
    color: #444;
}
.news-more-wrap { text-align: center; margin-top: 32px; }
.news-more-btn {
    padding: 12px 36px;
    border: 2px solid var(--theme, #b2bb1e);
    border-radius: 999px;
    background: #fff;
    color: #111;
    font-size: 17px;
    font-weight: 600;
    cursor: pointer;
    transition: background .2s;
}
.news-more-btn:hover { background: var(--theme, #b2bb1e); }

@media (max-width: 576px) {
    .news-tools, .news-tools input, .news-tools select { width: 100%; }
}
