/* ===================================================
   all_news.css — สไตล์เฉพาะหน้ารายการข่าวทั้งหมด (all_news.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: 22px;
    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);
}

.section-title {
    font-size: 18px;
    font-weight: 800;
    color: var(--hosp-orange-dark);
    border-left: 5px solid var(--hosp-orange);
    padding-left: 12px;
    margin-bottom: 20px;
}

.news-list-card {
    /* background: #fff; */
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(243, 112, 33, 0.08);
    overflow: hidden;
}

.news-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    padding: 13px 18px;
    border-bottom: 1px solid #f3ece4;
    text-decoration: none;
    color: inherit;
    transition: background 0.15s;
}

.news-row:last-child {
    border-bottom: none;
}

.news-row:hover {
    background-color: #fdf5ee;
}

.news-row-left {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    flex: 1;
    min-width: 0;
}

.news-row-left i {
    color: var(--hosp-orange);
    margin-top: 3px;
    flex-shrink: 0;
}

.news-row-title {
    font-size: 14px;
    font-weight: 600;
    color: #2d2d2d;
    line-height: 1.5;
}

.news-row:hover .news-row-title {
    color: var(--hosp-orange-dark);
}

.badge-new {
    display: inline-block;
    background: #dc3545;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    padding: 1px 7px;
    border-radius: 10px;
    margin-left: 6px;
    vertical-align: middle;
}

.news-row-date {
    font-size: 12px;
    color: #aaa;
    font-weight: 500;
    flex-shrink: 0;
    white-space: nowrap;
    padding-top: 2px;
}

.content-category-accordion {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.content-category-group {
    overflow: hidden;
    border: 1px solid #eadfd3;
    border-radius: 8px;
    background: #fff;
}

.content-category-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 18px;
    background: #fdf5ee;
    color: var(--hosp-orange-dark);
    font-weight: 700;
    cursor: pointer;
    list-style: none;
}

.content-category-heading::-webkit-details-marker {
    display: none;
}

.content-category-heading::after {
    content: "";
    position: static;
    flex: 0 0 auto;
    width: 8px;
    height: 8px;
    line-height: normal;
    text-align: initial;
    border: 0;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    border-radius: 0;
    transform: rotate(45deg);
    transition: transform 0.18s ease;
}

.content-category-group[open]>.content-category-heading::after {
    content: "";
    transform: rotate(225deg);
}

.content-category-body-cards {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 16px;
}

.content-category-body-cards>.dept-content-card {
    margin: 0;
}

.content-category-body-cards .dc-title {
    margin-top: 0;
}

.empty-state {
    text-align: center;
    padding: 60px 0;
    color: #aaa;
}

.empty-state i {
    font-size: 48px;
    margin-bottom: 12px;
    display: block;
}

.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;
}