/* CSS dùng chung cho mọi trang public. CSS riêng của từng trang vẫn nằm trong <style> của trang đó. */
body{margin:0;background:#F5F6FA}
a{color:#0072BC}a:hover{color:#005A96}
[hidden]{display:none !important}
summary{cursor:pointer}

.ph{background-color:#DCE8F2;background-image:repeating-linear-gradient(135deg,rgba(25,58,106,.05) 0 12px,transparent 12px 24px);color:#3A4466;display:flex;align-items:center;justify-content:center;text-align:center;font-size:13px;font-weight:500;box-sizing:border-box;padding:12px}

/* Responsive helpers */
@media (max-width:640px){.r-2col{grid-template-columns:repeat(2,minmax(0,1fr)) !important;gap:12px !important}.r-chips{flex-wrap:nowrap !important;overflow-x:auto;scrollbar-width:none;-webkit-overflow-scrolling:touch;padding-bottom:4px;justify-content:flex-start !important}.r-chips::-webkit-scrollbar{display:none}.r-chips > *{flex:0 0 auto}.r-stack-img > img{flex:1 1 100% !important;width:100% !important;height:190px !important;min-height:0 !important}.r-img-m{height:120px !important}.r-img-t{height:220px !important}.r-collapse-m{display:none !important}.r-stat span:first-child{font-size:32px !important}}
.r-show-m{display:none !important}
@media (max-width:640px){.r-show-m{display:inline-flex !important}.r-hide-on-m{display:none !important}}

/* Header */
.hdr-burger{display:none !important}
@media (max-width:1240px){.hdr-phone{display:none !important}}
@media (max-width:1080px){.hdr-nav,.hdr-cta{display:none !important}.hdr-burger{display:inline-flex !important}}
@media (min-width:1081px){.hdr-drawer{display:none !important}}
@media (max-width:400px){.hdr-logo{height:40px !important}.hdr-row{padding:12px 16px !important}}
.drw-link:hover{background:#E0F0FA}
.mega-l2:hover{background:#E0F0FA;color:#0072BC !important}
.mega-l1:hover{text-decoration:underline}

/* Nút lọc dạng chip (dùng chung cho các trang có bộ lọc) */
.chip{font-family:inherit;font-size:15px;font-weight:600;background:#FFFFFF;color:#193A6A;border:1.5px solid #E3E6F0;border-radius:999px;padding:0 18px;min-height:44px;cursor:pointer}
.chip[aria-pressed="true"]{background:#193A6A;color:#FFFFFF;border-color:#193A6A;font-weight:700}
.sr-tab{font-family:inherit;font-size:15px;font-weight:600;background:#FFFFFF;color:#193A6A;border:1.5px solid #E3E6F0;border-radius:999px;padding:0 18px;min-height:44px;cursor:pointer}
.sr-tab .sr-cnt{color:#4A5372}
.sr-tab[aria-selected="true"]{background:#193A6A;color:#FFFFFF;border-color:#193A6A;font-weight:700}
.sr-tab[aria-selected="true"] .sr-cnt{color:#FFFFFF;opacity:.75}

/* Phân trang */
.pager{display:flex;gap:8px;justify-content:center;flex-wrap:wrap}
.pager button{width:44px;height:44px;border-radius:999px;background:#FFFFFF;color:#193A6A;border:0;font-family:inherit;font-size:16px;font-weight:700;cursor:pointer}
.pager button[aria-current="page"]{background:#193A6A;color:#FFFFFF}

/* Khung chờ dữ liệu */
.skel{background:linear-gradient(90deg,#E9ECF4 0%,#F3F5FA 50%,#E9ECF4 100%);background-size:200% 100%;animation:skel 1.2s ease-in-out infinite;border-radius:20px}
@keyframes skel{0%{background-position:100% 0}100%{background-position:-100% 0}}
@media (prefers-reduced-motion:reduce){.skel{animation:none}}
.empty-note{grid-column:1 / -1;background:#FFFFFF;border-radius:20px;padding:24px;font-size:15px;color:#4A5372;text-align:center}

/* Thông báo sau khi gửi form */
.form-msg{grid-column:1 / -1;margin:0;border-radius:14px;padding:12px 16px;font-size:15px;font-weight:600;line-height:1.5}
.form-msg[data-kind="ok"]{background:#DDF5E6;color:#155C33}
.form-msg[data-kind="err"]{background:#F6E1E1;color:#8A1F1F}
button[disabled]{opacity:.6;cursor:progress}

/*
  Nội dung soạn trong admin (HTML từ trình soạn thảo) được chèn vào .rich-content.
  Phải định dạng tường minh từng thẻ, nếu không định dạng của người soạn sẽ "biến mất".
*/
.rich-content{color:#2B3A55;font-size:18px;line-height:1.8;overflow-wrap:anywhere}
.rich-content > :first-child{margin-top:0}
.rich-content p{margin:0 0 18px}
.rich-content h2{margin:40px 0 16px;font-size:28px;line-height:1.25;font-weight:800;color:#193A6A;scroll-margin-top:24px}
.rich-content h3{margin:28px 0 12px;font-size:21px;line-height:1.35;font-weight:700;color:#193A6A;scroll-margin-top:24px}
.rich-content h4{margin:24px 0 10px;font-size:18px;font-weight:700;color:#193A6A}
.rich-content ul,.rich-content ol{margin:0 0 20px;padding-left:24px}
.rich-content ul{list-style:disc}
.rich-content ol{list-style:decimal}
.rich-content li{margin-bottom:6px}
.rich-content li::marker{color:#0072BC}
.rich-content li > p{margin:0}
.rich-content a{color:#0072BC;text-decoration:underline;text-underline-offset:3px}
.rich-content strong{font-weight:700;color:#193A6A}
.rich-content em{font-style:italic}
.rich-content u{text-decoration:underline}
.rich-content s{text-decoration:line-through}
.rich-content blockquote{margin:0 0 24px;padding:16px 20px;border-left:4px solid #FFF200;background:#FFFBD1;border-radius:0 16px 16px 0;color:#2B3A55}
.rich-content blockquote p:last-child{margin-bottom:0}
.rich-content img{max-width:100%;height:auto;border-radius:20px;display:block;margin:8px 0 24px}
.rich-content figure{margin:8px 0 24px}
.rich-content figcaption{font-size:13px;color:#4A5372;margin-top:8px}
.rich-content table{width:100%;border-collapse:collapse;font-size:16px;margin:0 0 24px;display:block;overflow-x:auto}
.rich-content th,.rich-content td{padding:12px 16px;border:1px solid #E3E6F0;text-align:left;vertical-align:top}
.rich-content th{background:#F5F6FA;font-weight:700}
.rich-content hr{border:0;border-top:1px solid #E3E6F0;margin:32px 0}
.rich-content [style*="text-align: center"]{text-align:center}
.rich-content [style*="text-align: right"]{text-align:right}
.rich-content [style*="text-align: justify"]{text-align:justify}
