﻿/* ============================================================
   Pharma360 2026 – CẨM NANG NGHỀ NGHIỆP (Views/P360/News/*)
   Banner đầu trang, sidebar DANH MỤC + 2 banner, danh sách bài (thumb 200×150), phân trang,
   BÀI VIẾT NỔI BẬT (1 lớn + 3 nhỏ), trang chi tiết (mục lục, nội dung).
   ============================================================ */
.p360-news__hero { background: linear-gradient(100deg, #ffffff 0%, #eaf3ff 60%, #dbe9ff 100%); }
.p360-news__hero img { width: 100%; height: auto; display: block; }
.p360-news { padding-top: 28px; padding-bottom: 48px; background: var(--p360-bg-inner); }
.p360-news--detail { padding-top: 32px; }
.p360-news__grid { display: grid; grid-template-columns: 330px minmax(0, 1fr); gap: 28px; align-items: start; }
.p360-news__side { display: flex; flex-direction: column; gap: 22px; position: sticky; top: calc(var(--p360-header-h) + 16px); }
body.p360-has-topbar .p360-news__side { top: calc(var(--p360-header-h) + var(--p360-topbar-h) + 16px); }
.p360-news__main { display: flex; flex-direction: column; gap: 28px; min-width: 0; }
.p360-news__card { background: #fff; border-radius: 22px; padding: 28px 34px 32px; box-shadow: var(--p360-shadow-sm); }
.p360-news__h1 { font-size: 26px; color: var(--p360-primary); margin: 0 0 16px; line-height: 1.3; }
.p360-news .p360-breadcrumb { font-size: 15px; margin-bottom: 12px; }
.p360-news .p360-breadcrumb svg { width: 15px; height: 15px; }
.p360-news__crumb-last span { color: var(--p360-text-muted); }

/* Sidebar */
.p360-news__cats { background: #fff; border-radius: 18px; padding: 18px 22px 20px; box-shadow: var(--p360-shadow-sm); }
.p360-news__cats-head { font-weight: 700; text-transform: uppercase; color: var(--p360-primary); font-size: 18px; margin-bottom: 12px; }
.p360-news__cats li { margin: 0 0 10px; }
.p360-news__cats a { display: flex; align-items: center; gap: 10px; color: var(--p360-text-muted); font-size: 16px; line-height: 1.4; }
.p360-news__cats a:hover, .p360-news__cats a.is-active { color: var(--p360-primary); }
.p360-news__box { width: 16px; height: 16px; border: 1.5px solid var(--p360-border-strong); border-radius: 3px; flex-shrink: 0; position: relative; background: #fff; }
.p360-news__cats a.is-active .p360-news__box { background: var(--p360-primary); border-color: var(--p360-primary); }
.p360-news__cats a.is-active .p360-news__box::after { content: ""; position: absolute; left: 4px; top: 1px; width: 5px; height: 9px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.p360-news__banner { display: block; border-radius: 18px; overflow: hidden; box-shadow: var(--p360-shadow-sm); }
.p360-news__banner img { width: 100%; height: auto; display: block; }

/* Danh sách bài */
.p360-news__list { display: flex; flex-direction: column; }
.p360-news__row { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 22px; padding: 18px 0; border-bottom: 1px solid var(--p360-border); }
.p360-news__row:first-child { padding-top: 4px; }
.p360-news__thumb { display: block; width: 200px; height: 150px; border-radius: 12px; overflow: hidden; background: var(--p360-primary); }
.p360-news__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.p360-news__body { min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.p360-news__body h3 { font-size: 18px; margin: 0; line-height: 1.4; }
.p360-news__body h3 a { color: var(--p360-primary); }
.p360-news__meta { display: flex; flex-wrap: wrap; gap: 6px 24px; font-size: 14px; color: var(--p360-text-muted); }
.p360-news__meta i { font-style: italic; }
.p360-news__meta--detail { margin-bottom: 18px; }
.p360-news__excerpt { color: var(--p360-text-muted); font-size: 15px; line-height: 1.55; margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; text-align: justify; }
.p360-news__more { align-self: flex-end; font-weight: 700; color: var(--p360-primary); font-size: 15px; }
.p360-news__pager { margin-top: 24px; }
.p360-news__pager a, .p360-news__pager span { min-width: 36px; height: 36px; border-radius: 10px; }

/* Bài viết nổi bật */
.p360-news__featured .p360-section__head { margin-bottom: 18px; }
.p360-news__featured .p360-title { font-size: 26px; }
.p360-news__arrows { display: inline-flex; gap: 10px; }
.p360-news__arrows button { width: 36px; height: 36px; border-radius: 50%; background: var(--p360-primary); color: #fff; display: inline-flex; align-items: center; justify-content: center; }
.p360-news__arrows button:hover { background: var(--p360-primary-bright); }
.p360-news__arrows svg { width: 16px; height: 16px; }
.p360-news__featured-page { display: none; grid-template-columns: 300px minmax(0, 1fr); gap: 22px; align-items: stretch; }
.p360-news__featured-page.is-active { display: grid; }
.p360-news__big { display: flex; flex-direction: column; background: #fff; border-radius: 18px; overflow: hidden; box-shadow: var(--p360-shadow-sm); color: var(--p360-text); }
.p360-news__big:hover { color: var(--p360-text); box-shadow: var(--p360-shadow-md); }
.p360-news__big-img { display: block; aspect-ratio: 4 / 3; background: var(--p360-primary); }
.p360-news__big-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.p360-news__big-body { display: flex; flex-direction: column; gap: 8px; padding: 14px 16px 18px; }
.p360-news__big-body b { color: var(--p360-primary); font-size: 16px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.p360-news__date { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--p360-text-muted); }
.p360-news__date svg { width: 15px; height: 15px; color: var(--p360-primary); }
.p360-news__small-list { display: flex; flex-direction: column; gap: 14px; }
.p360-news__small { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 16px; background: #fff; border-radius: 14px; padding: 12px; box-shadow: var(--p360-shadow-sm); color: var(--p360-text); flex: 1 1 auto; }
.p360-news__small:hover { color: var(--p360-text); box-shadow: var(--p360-shadow-md); }
.p360-news__small-img { display: block; height: 100%; min-height: 100px; border-radius: 10px; overflow: hidden; background: var(--p360-primary); }
.p360-news__small-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.p360-news__small-body { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.p360-news__small-body b { color: var(--p360-primary); font-size: 15px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.p360-news__small-body .p360-news__excerpt { font-size: 14px; }

/* Chi tiết */
.p360-news__toc { margin: 0 0 22px; }
.p360-news__toc[hidden] { display: none; }
.p360-news__toc .p360-toc__title { font-size: 17px; color: var(--p360-primary); }
.p360-news__toc .p360-toc__title svg { width: 18px; height: 18px; flex-shrink: 0; }
.p360-news__toc ol { padding-left: 4px; list-style: none; } /* bài viết thường tự đánh số "1. ..." nên không đánh số lại */
.p360-news__toc li { margin: 6px 0; font-size: 15px; }
.p360-news__toc li.is-sub { margin-left: 16px; list-style: circle; }
.p360-news__content { font-size: 16px; line-height: 1.75; text-align: justify; }
.p360-news__content h2, .p360-news__content h3 { color: var(--p360-primary); font-size: 19px; margin: 24px 0 10px; scroll-margin-top: calc(var(--p360-header-h) + 20px); }
.p360-news__content h3 { font-size: 17px; }
.p360-news__content img { max-width: 100%; height: auto; border-radius: 12px; }
.p360-news__content table { max-width: 100%; }
.p360-news__content iframe { max-width: 100%; }
.p360-news__pdf { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; background: #fff4c7; border-radius: 12px; padding: 12px 16px; margin-bottom: 18px; font-size: 15px; }
.p360-news__pdf-form { display: inline; }
.p360-news__source { margin: 24px 0 0; font-size: 14px; color: var(--p360-text-muted); font-style: italic; }

/* ================= RESPONSIVE ================= */
@media (max-width: 1599px) {
  .p360-news__grid { grid-template-columns: 290px minmax(0, 1fr); gap: 22px; }
  .p360-news__card { padding: 22px 26px 26px; border-radius: 18px; }
  .p360-news__h1 { font-size: 22px; }
  .p360-news__row { grid-template-columns: 170px minmax(0, 1fr); gap: 18px; padding: 14px 0; }
  .p360-news__thumb { width: 170px; height: 128px; }
  .p360-news__body h3 { font-size: 16px; }
  .p360-news__excerpt { font-size: 14px; }
  .p360-news__featured .p360-title { font-size: 22px; }
  .p360-news__featured-page { grid-template-columns: 260px minmax(0, 1fr); gap: 18px; }
  .p360-news__small { grid-template-columns: 130px minmax(0, 1fr); }
}
@media (max-width: 1023px) {
  .p360-news__grid { grid-template-columns: minmax(0, 1fr); }
  .p360-news__side { position: static; order: 2; flex-direction: row; flex-wrap: wrap; }
  .p360-news__side > * { flex: 1 1 260px; }
  .p360-news__main { order: 1; }
  .p360-news__featured-page { grid-template-columns: minmax(0, 1fr); }
  .p360-news__big { flex-direction: row; }
  .p360-news__big-img { width: 40%; aspect-ratio: auto; }
  .p360-news__big-body { flex: 1; }
}
@media (max-width: 767px) {
  .p360-news { padding-top: 16px; padding-bottom: 28px; }
  .p360-news__card { padding: 16px 14px 20px; border-radius: 14px; }
  .p360-news__h1 { font-size: 19px; }
  .p360-news__row { grid-template-columns: 110px minmax(0, 1fr); gap: 12px; }
  .p360-news__thumb { width: 110px; height: 82px; border-radius: 8px; }
  .p360-news__body { gap: 4px; }
  .p360-news__body h3 { font-size: 15px; }
  .p360-news__meta { gap: 4px 12px; font-size: 12px; }
  .p360-news__excerpt { display: none; }
  .p360-news__more { font-size: 13px; }
  .p360-news__big { flex-direction: column; }
  .p360-news__big-img { width: 100%; aspect-ratio: 16 / 9; }
  .p360-news__small { grid-template-columns: 100px minmax(0, 1fr); gap: 10px; padding: 8px; }
  .p360-news__small-body .p360-news__excerpt { display: none; }
  .p360-news__content { font-size: 15px; }
}
