/* ===================================================================
   Trường Tiểu học Phú Long — Components: nút, tiêu đề section, thẻ, form, sidebar,
   breadcrumb, phân trang, thông báo
   =================================================================== */

/* ================================================== NÚT =========== */
.btn-book,
.btn-pill,
.btn-link,
.contact-submit,
.booking-submit,
.search-submit,
.tour-cta,
.section-more {
    font-family: var(--font-base);
    font-weight: 600;
    cursor: pointer;
}

/* Nút chính: nền vàng đồng, chữ navy, góc vuông */
.btn-book,
.btn-accent-pill,
.contact-submit,
.booking-submit,
.search-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 10px 15px;
    border: 1px solid var(--c-accent);
    border-radius: var(--radius);
    background: var(--c-accent);
    color: var(--c-primary-dark);
    font-size: 14px;
    letter-spacing: .01em;
    transition: background var(--t-fast), border-color var(--t-fast), transform var(--t-fast);
}
.btn-book:hover,
.btn-accent-pill:hover,
.contact-submit:hover,
.booking-submit:hover,
.search-submit:hover {
    background: var(--c-accent-dark);
    border-color: var(--c-accent-dark);
    color: var(--c-primary-dark);
    transform: translateY(-1px);
}
.booking-submit[disabled], .contact-submit[disabled] { opacity: .6; cursor: not-allowed; transform: none; }

/* Nut WhatsApp — mau thuong hieu #25D366 (mau nhan dien, khong lay tu token).
   Dung o dai CTA cuoi trang va the "Can ho tro phap ly?" o sidebar. */
.btn-whatsapp {
    display: inline-flex; align-items: center; justify-content: center; gap: 9px;
    padding: 12px 22px;
    border: 1px solid #25d366;
    border-radius: var(--radius);
    background: #25d366;
    color: var(--c-white);
    font-family: var(--font-base); font-weight: 600; font-size: .9375rem;
    transition: background var(--t-fast), border-color var(--t-fast), transform var(--t-fast);
}
.btn-whatsapp:hover {
    background: #1da851; border-color: #1da851;
    color: var(--c-white); transform: translateY(-1px);
}
.btn-whatsapp i { font-size: 1.125rem; }

/* Nút phụ: viền navy */
.btn-pill.btn-primary-pill,
.btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 12px 22px;
    border: 1px solid currentColor;
    border-radius: var(--radius);
    background: transparent;
    color: var(--c-primary);
    font-size: .9375rem;
}
.btn-pill.btn-primary-pill:hover, .btn-outline:hover {
    background: var(--c-primary);
    border-color: var(--c-primary);
    color: var(--c-white);
}
.btn-lg-pill { padding: 15px 30px; font-size: 1rem; }

/* Nút chữ có mũi tên */
.btn-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--c-primary);
    border-bottom: 1px solid var(--c-accent);
    padding-bottom: 3px;
    text-decoration: none;
}
.btn-link i { color: var(--c-accent); transition: transform var(--t-fast); }
.btn-link:hover i { transform: translateX(4px); }

/* Nút trong header khi nền tối */
.site-header .btn-pill.btn-primary-pill { color: var(--c-white); border-color: rgba(255, 255, 255, .5); }
.site-header .btn-pill.btn-primary-pill:hover { background: var(--c-white); color: var(--c-primary); border-color: var(--c-white); }

/* ================================================== TIÊU ĐỀ ======= */
.section-heading {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 10px 32px;
    margin-bottom: var(--sp-block);
}
.section-title {
    position: relative;
    margin: 0;
    padding-bottom: 10px;
    font-size: var(--fs-h2);
    color: var(--c-primary);
}
.section-title::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100px;
    height: var(--rule);
    background: var(--c-accent);
}
.section-heading-center { flex-direction: column; align-items: center; text-align: center; }
.section-heading-center .section-title::after { left: 50%; transform: translateX(-50%); }

.section-heading-light .section-title { color: var(--c-white); }

.section-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--c-accent-dark);
    font-size: .9375rem;
    white-space: nowrap;
}
.section-more::after { content: "\2192"; transition: transform var(--t-fast); }
.section-more:hover::after { transform: translateX(4px); }
.section-heading-light .section-more { color: var(--c-accent); }

/* ================================================== THẺ BÀI VIẾT == */
.service-card,
.tour-card {
    height: 100%;
    background: var(--c-white);
    border: 1px solid var(--c-line);
    border-radius: var(--radius);
    overflow: hidden;
    transition: border-color var(--t), box-shadow var(--t), transform var(--t);
}
.service-card:hover,
.tour-card:hover {
    border-color: var(--c-accent);
    box-shadow: var(--shadow);
    transform: translateY(-3px);
}

/* -- Thẻ bài viết chuẩn (.news-card) --
   Dùng ở trang chủ (Tin tức), danh sách bài, bài liên quan và kết quả tìm kiếm.
   Không viền, không nền — ảnh + chữ, kiểu ấn phẩm. Markup sinh từ
   FrontendPostCard.RenderCard nên sửa class ở đây phải sửa cả bên đó.
   ĐẶT Ở components.css (không phải home.css) vì trang con cũng dùng. -- */
.news-card {display: flex;flex-direction: column;height: 100%;margin-bottom: 20px;}
.news-card-thumb {
    display: block;
    overflow: hidden;
    border-radius: var(--radius);
    margin-bottom: 18px;
    background: var(--c-primary-mist);
    aspect-ratio: 4 / 3;
}
.news-card-thumb img {width: 100%;object-fit: cover;display: block;transition: transform .6s var(--ease);height: 100%;image-rendering: -webkit-optimize-contrast;image-rendering: auto;transform: translateZ(0);backface-visibility: hidden;perspective: 1000px;}
.news-card:hover .news-card-thumb img { transform: scale(1.04); }
.news-card-body { display: flex; flex-direction: column; flex: 1; }
.news-card-meta {
    display: flex; flex-wrap: wrap; gap: 8px 16px;
    margin: 0 0 10px;
    font-size: var(--fs-kicker);
    letter-spacing: .08em; text-transform: uppercase;
    color: var(--c-muted);
}
.news-card-cat { color: var(--c-accent-dark); font-weight: 600; }
.news-card-title {margin: 0 0 10px;font-size: var(--fs-h3);line-height: 1.35;overflow: hidden;text-overflow: ellipsis;display: -webkit-box;-webkit-line-clamp: 2;-webkit-box-orient: vertical;}
.news-card-title a { color: var(--c-primary); }
.news-card-title a:hover { color: var(--c-accent-dark); }
.news-card-desc {margin: 0 0 16px;font-size: var(--fs-small);color: #5c5c5d;overflow: hidden;text-overflow: ellipsis;display: -webkit-box;-webkit-line-clamp: 3;-webkit-box-orient: vertical;font-size: 15px;text-align: justify;}
.news-card .btn-link {margin-top: 0;align-self: flex-start;}
.news-card-noimg {
    display: flex; align-items: center; justify-content: center;
    width: 100%; height: 100%;
    color: var(--c-accent); font-size: 2rem;
}
/* Logo trường thay ảnh đại diện (FrontendPostCard.RenderCard, nhánh không có ảnh). Phải thắng
   `.news-card-thumb img` (cover, 100%, 4/3) nên viết bằng 2 class. */
.news-card-noimg .news-card-logo {
    width: auto; height: auto; max-width: 42%; max-height: 62%;
    aspect-ratio: auto; object-fit: contain; opacity: .6;
}

/* -- Thẻ lĩnh vực hành nghề -- */
.service-card { display: flex; flex-direction: column; }
.service-thumb { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--c-primary-mist); }
.service-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.service-card:hover .service-thumb img { transform: scale(1.05); }
.service-arrow {
    position: absolute;
    right: 14px; bottom: 14px;
    z-index: 2;
    width: 40px; height: 40px;
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--c-accent);
    color: var(--c-primary-dark);
    border-radius: 50%;
    transition: background var(--t-fast), transform var(--t-fast);
}
.service-arrow:hover { background: var(--c-primary); color: var(--c-white); transform: translateX(3px); }
.service-body { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 8px; }
.service-title { margin: 0; font-size: 1.0625rem; }
.service-title a { color: var(--c-primary); }
.service-title a:hover { color: var(--c-accent-dark); }
.service-desc { margin: 0; font-size: var(--fs-small); color: var(--c-muted); }

/* -- Thẻ lớn (nổi bật) -- */
.tour-card { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
.tour-media { position: relative; overflow: hidden; min-height: 220px; background: var(--c-primary-mist); }
.tour-media img { width: 100%; height: 100%; object-fit: cover; }
.tour-badge {
    position: absolute; left: 0; top: 18px;
    padding: 5px 14px;
    background: var(--c-accent);
    color: var(--c-primary-dark);
    font-size: .6875rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
}
.tour-body { padding: 26px 26px 28px; display: flex; flex-direction: column; gap: 12px; }
.tour-title { margin: 0; font-size: 1.375rem; }
.tour-title a { color: var(--c-primary); }
.tour-summary { margin: 0; font-size: var(--fs-small); color: var(--c-muted); }
.tour-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.tour-cta { display: inline-flex; align-items: center; gap: 8px; color: var(--c-accent-dark); font-size: var(--fs-small); }
.tour-cta:hover i { transform: translateX(4px); }
.tour-cta i { transition: transform var(--t-fast); }

/* -- Thẻ nhỏ trong sidebar --
   Markup do FrontendPostCard.RenderCompact sinh: <a class="post-mini"> bọc THẲNG
   <img class="post-mini-thumb"> (hoặc <span class="post-mini-thumb"> khi bài chưa có ảnh)
   và <span class="post-mini-body"> chứa hai <span>. KHÔNG có <img> lồng bên trong thumb,
   nên selector phải bám đúng hình dạng đó — xem docs/DEPLOY-NOTES.md §1. */
.post-mini { display: flex; align-items: flex-start; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--c-line-soft); }
.post-mini:last-child { border-bottom: 0; padding-bottom: 0; }
/* object-fit đặt THẲNG lên .post-mini-thumb vì nó LÀ thẻ <img>.
   Viết ".post-mini-thumb img" là selector chết: ảnh 16:9 bị ép vào khung 78x62 và méo. */
.post-mini-thumb { flex: 0 0 78px; width: 78px; height: 62px; object-fit: cover; overflow: hidden; border-radius: var(--radius); background: var(--c-primary-mist); }
/* Nhánh bài chưa có ảnh: <span class="post-mini-thumb"><i class="fa-image"></i></span> */
span.post-mini-thumb { display: flex; align-items: center; justify-content: center; color: var(--c-primary-soft); }
.post-mini-body { min-width: 0; }
.post-mini-title { display: block; font-size: .9375rem; font-weight: 600; color: var(--c-primary); line-height: 1.45; }
.post-mini:hover .post-mini-title { color: var(--c-accent-dark); }
.post-mini-date { display: block; margin-top: 5px; font-size: .75rem; color: var(--c-muted); }

/* ================================================== FORM ========== */
.form-label,
.cf-label {
    display: block;
    margin-bottom: 7px;
    font-size: .8125rem;
    font-weight: 600;
    color: var(--c-primary);
    letter-spacing: .02em;
}
.form-label i, .cf-label i {color: var(--c-accent);margin-right: 6px;display: none;}
.req { color: var(--c-danger); }

.form-control,
.form-select,
.cf-input {
    width: 100%;
    padding: 11px 14px;
    font-family: var(--font-base);
    font-size: .9375rem;
    color: var(--c-ink);
    background: var(--c-white);
    border: 1px solid var(--c-line);
    border-radius: var(--radius);
    transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.form-control:focus,
.form-select:focus,
.cf-input:focus {
    outline: none;
    border-color: var(--c-accent);
    box-shadow: 0 0 0 3px rgba(200, 162, 74, .18);
}
textarea.form-control, textarea.cf-input { min-height: 96px; resize: vertical; }

/* Ô bẫy bot: luôn ẩn với người dùng thật */
.hp-field { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

/* Thông báo dưới form */
.booking-msg, .contact-msg {
    margin: 12px 0 0;
    font-size: var(--fs-small);
    min-height: 1.2em;
}
.booking-msg.is-error, .contact-msg.is-error { color: var(--c-danger); }
.booking-msg.is-success, .contact-msg.is-success { color: var(--c-success); }
.booking-msg.is-info, .contact-msg.is-info { color: var(--c-muted); }

/* ================================================== SIDEBAR ======= */
.sticky-sidebar { position: sticky; top: calc(var(--header-h) + 20px); }

.sidebar-box {
    background: var(--c-white);
    border: 1px solid var(--c-line);
    border-radius: var(--radius);
    padding: 15px;
    margin-bottom: 24px;
}
.sidebar-title {
    position: relative;
    margin: 0 0 8px;
    padding-bottom: 14px;
    font-size: 1.125rem;
    color: var(--c-primary);
}
.sidebar-title::after {
    content: ""; position: absolute; left: 0; bottom: 0;
    width: 40px; height: 2px; background: var(--c-accent);
}
.sidebar-booking { background: var(--c-primary); border-color: var(--c-primary); }
.sidebar-booking .sidebar-title { color: var(--c-white); }
.sidebar-booking-sub { margin: 14px 0 18px; font-size: var(--fs-small); color: rgba(255, 255, 255, .74); }
.booking-form-sm { display: flex; flex-direction: column; gap: 10px; }
.booking-form-sm .booking-submit { width: 100%; margin-top: 4px; }
.sidebar-hotline {
    display: flex; align-items: center; justify-content: center; gap: 9px;
    margin-top: 14px;
    color: var(--c-accent);
    font-weight: 600;
    font-size: var(--fs-small);
}
.sidebar-hotline:hover { color: var(--c-white); }

/* ================================================== BREADCRUMB ==== */
.breadcrumb-nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    font-size: var(--fs-small);
    color: var(--c-muted);
    justify-content: center;
}
.breadcrumb-nav a { color: var(--c-primary); font-weight: 500; display: inline-flex; align-items: center; gap: 7px; }
.breadcrumb-nav a i{display:none}
.breadcrumb-nav a:hover { color: var(--c-sky-deep); }
.breadcrumb-nav .sep { color: var(--c-line); }
.breadcrumb-nav .current { color: var(--c-ink); font-weight: 500; }

/* ================================================== TRẠNG THÁI ==== */
.empty-note, .album-empty {
    display: flex; align-items: center; gap: 12px;
    padding: 26px;
    background: var(--c-bg-soft);
    border: 1px dashed var(--c-line);
    border-radius: var(--radius);
    color: var(--c-muted);
}
.empty-note i, .album-empty i { color: var(--c-accent); font-size: 1.25rem; }

/* ================================================== PHÂN TRANG ==== */
.pager, .pagination-nav {
    display: flex; flex-wrap: wrap; justify-content: center; gap: 8px;
    margin-top: var(--sp-block);
    list-style: none; padding: 0;
}
.pager a, .pager span, .pagination-nav a, .pagination-nav span {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 40px; height: 40px; padding: 0 12px;
    border: 1px solid var(--c-line);
    border-radius: var(--radius);
    color: var(--c-primary);
    font-size: var(--fs-small);
    font-weight: 600;
}
.pager a:hover, .pagination-nav a:hover { border-color: var(--c-accent); color: var(--c-accent-dark); }
.pager .is-active, .pager .current, .pagination-nav .is-active, .pagination-nav .current {
    background: var(--c-primary); border-color: var(--c-primary); color: var(--c-white);
}

/* ================================================== SWIPER ======== */
/* Chừa chỗ cho hiệu ứng nâng + bóng đổ của thẻ (Swiper đặt overflow:hidden).
   Áp cho MỌI slider dựng bằng home.js — không liệt kê tên slider của từng dự án. */
.js-swiper { padding: 6px 4px 10px; }

.swiper-button-prev, .swiper-button-next {
    width: 44px; height: 44px;
    background: var(--c-white);
    border: 1px solid var(--c-line);
    border-radius: 50%;
    color: var(--c-primary);
    box-shadow: var(--shadow-sm);
}
.swiper-button-prev::after, .swiper-button-next::after { font-size: 15px; font-weight: 700; }
.swiper-button-prev:hover, .swiper-button-next:hover { background: var(--c-accent); border-color: var(--c-accent); color: var(--c-primary-dark); }
/* Chấm phân trang: đặt DƯỚI slider thay vì đè lên.
   Phải dùng đúng selector của Swiper (.swiper-horizontal > ...) mới thắng được
   quy tắc position:absolute mặc định của thư viện. */
.swiper-horizontal > .swiper-pagination-bullets,
.swiper-pagination-bullets.swiper-pagination-horizontal,
.swiper-pagination { position: static; margin-top: 22px; }
.swiper-pagination-bullet { width: 22px; height: 3px; border-radius: 0; background: var(--c-line); opacity: 1; transition: background var(--t-fast); }
.swiper-pagination-bullet-active { background: var(--c-accent); }

/* Mô tả ngắn dưới tiêu đề section */
.section-lead { max-width: 640px; margin: 14px auto 0; color: var(--c-muted); }
.section-heading-light .section-lead { color: rgba(255, 255, 255, .7); }

/* Không có AOS (CDN chặn) thì phần tử vẫn phải hiện — xem main.js */
.no-aos [data-aos] { opacity: 1 !important; transform: none !important; }


/* ================================================== Bổ sung cho khung dùng chung === */

/* Nút viền — cặp với .btn-accent-pill, dùng trên nền tối lẫn nền sáng. */
.btn-outline-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 10px 15px;
    border: 1px solid currentColor;
    border-radius: var(--radius);
    background: transparent;
    color: inherit;
    font-weight: 600;
    transition: background var(--t), color var(--t), border-color var(--t);
}
.btn-outline-pill:hover { background: var(--c-white); color: var(--c-primary); border-color: var(--c-white); }

/* Hàng tiêu đề section có link "xem tất cả" ở bên phải. */
.section-heading-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 22px;
}
.section-heading-row .section-heading { margin-bottom: 0; }
.section-heading-more { font-size: var(--fs-small); font-weight: 600; color: var(--c-primary); white-space: nowrap; }
.section-heading-more i { transition: transform var(--t); }
.section-heading-more:hover i { transform: translateX(3px); }

/* Thẻ thông tin đơn giản: icon + tiêu đề + mô tả. Dùng cho mục con của khối nội dung. */
.info-card {
    background: var(--c-bg);
    border: 1px solid var(--c-line);
    border-radius: var(--radius);
    padding: 22px;
    height: 100%;
    transition: box-shadow var(--t), transform var(--t);
}
.info-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.info-card h3 { font-size: var(--fs-h3); margin: 12px 0 8px; }
.info-card-desc { color: var(--c-muted); font-size: var(--fs-small); }

/* Icon của mục con: ẢNH thắng icon font (xem RenderItemIcon trong Default.aspx.cs).
   Một quy tắc kích thước dùng chung cho cả hai dạng. */
.item-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: var(--radius);
    background: var(--c-primary-mist);
    color: var(--c-primary);
    font-size: 1.35rem;
}
.item-icon img { width: 28px; height: 28px; object-fit: contain; display: block; }
.section-dark .item-icon { background: rgba(255, 255, 255, .12); color: var(--c-white); }

/* ===================================================================
   GIAO DIỆN TRƯỜNG HỌC — ghi đè/bổ sung các thành phần dùng chung.
   Nằm CUỐI components.css để thắng các rule mặc định phía trên.
   Màu lấy từ tokens.css; nút chính = gradient xanh như bản thiết kế.
   =================================================================== */

/* ---- Nút chính: gradient xanh + chữ trắng ---- */
.btn-book,
.btn-accent-pill,
.contact-submit,
.booking-submit,
.search-submit {
    padding: 10px 24px;
    border: 0;
    border-radius: var(--radius);
    background: linear-gradient(180deg, var(--c-sky) 0%, var(--c-sky-deep) 100%);
    color: var(--c-white);
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(10, 114, 232, .28);
}
.btn-book:hover,
.btn-accent-pill:hover,
.contact-submit:hover,
.booking-submit:hover,
.search-submit:hover {
    background: linear-gradient(180deg, var(--c-sky-deep) 0%, var(--c-primary) 100%);
    color: var(--c-white);
    box-shadow: 0 6px 16px rgba(10, 114, 232, .36);
}

.form-control:focus,
.form-select:focus,
.cf-input:focus {
    border-color: var(--c-sky-deep);
    box-shadow: 0 0 0 3px rgba(26, 140, 240, .2);
}
.form-control, .form-select, .cf-input { border-radius: var(--radius); border-color: var(--c-line); }

/* ---- Tiêu đề section: chữ hoa xanh + gạch vàng + link "Xem tất cả" ---- */
.section-heading-row {
    align-items: flex-end;
    margin-bottom: 24px;
}
.section-heading-row .section-heading {
    display: block;
    position: relative;
    margin: 0;
    padding-bottom: 10px;
    font-family: var(--font-display);
    font-size: clamp(1.375rem, 2.4vw, 1.75rem);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .01em;
    color: var(--c-primary);
}
.section-heading-row .section-heading::after {
    content: "";
    position: absolute;
    left: 0; bottom: 0;
    width: 78px; height: var(--rule);
    border-radius: var(--rule);
    background: var(--c-accent);
}
.section-heading-more {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 600;
    color: var(--c-primary);
}
.section-heading-more:hover { color: var(--c-sky-deep); }

.section-title { font-family: var(--font-display); text-transform: uppercase; }
.section-title::after { border-radius: var(--rule); }

/* ---- Thẻ bài viết ---- */
.news-card-thumb {border-radius: var(--radius-lg);margin-bottom: 14px;box-shadow: var(--shadow-sm);aspect-ratio: 4 / 3;}
.news-card-thumb img {aspect-ratio: 4/3;}
.news-card-cat { color: var(--c-sky-deep); }
.news-card-title {font-family: var(--font-base);font-size: 1rem;font-weight: 700;overflow: hidden;text-overflow: ellipsis;display: -webkit-box;-webkit-line-clamp: 1;-webkit-box-orient: vertical;font-size: 18px;}
.news-card-title a {color: #2b2b2c;}
.news-card-title a:hover { color: var(--c-sky-deep); }
.news-card .btn-link { color: var(--c-primary); border-bottom-color: var(--c-accent); font-size: var(--fs-small); }

.service-card, .tour-card { border-radius: var(--radius-lg); border-color: var(--c-line); }
.service-card:hover, .tour-card:hover { border-color: var(--c-sky); }
.service-arrow { background: var(--c-accent); color: var(--c-primary); }
.tour-badge { background: var(--c-accent); color: var(--c-primary); }

/* ---- Thẻ nhỏ trong sidebar ---- */
.post-mini-thumb { border-radius: var(--radius); }
.post-mini-title { font-family: var(--font-base); }
.post-mini:hover .post-mini-title { color: var(--c-sky-deep); }

/* ---- Mục thông báo / văn bản (dùng ở trang chủ, sidebar, trang danh sách) ----
   Markup do FrontendPostCard.RenderNoticeItem sinh:
   <a.notice-item> > span.notice-item-icon + span.notice-item-body > span.notice-item-title + span.notice-item-date */
.notice-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 9px 12px 9px 9px;
    background: var(--c-white);
    border-radius: 14px;
    box-shadow: 0 2px 8px rgba(247, 162, 27, .22);
    transition: transform var(--t-fast), box-shadow var(--t-fast);
}
.notice-item:hover { transform: translateX(3px); box-shadow: 0 4px 14px rgba(247, 162, 27, .34); }
.notice-item-icon {
    flex: 0 0 44px;
    width: 44px; height: 48px;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 10px;
    background: var(--c-primary-mist);
    color: var(--c-primary);
    font-size: 1.5rem;
}
.notice-item-body { min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.notice-item-title {
    font-size: .9rem;
    font-weight: 600;
    line-height: 1.35;
    color: var(--c-primary);
    overflow: hidden; text-overflow: ellipsis;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
}
.notice-item:hover .notice-item-title { color: var(--c-sky-deep); }
.notice-item-date { font-size: .8125rem; color: var(--c-body); }

/* ---- Sidebar ---- */
.sidebar-box {
    border-radius: var(--radius-lg);
    border-color: var(--c-line);
    box-shadow: var(--shadow-sm);
}
.sidebar-title {
    font-family: var(--font-display);
    font-size: 1.25rem;
    text-transform: uppercase;
    color: var(--c-primary);
}
.sidebar-title::after { height: var(--rule); width: 56px; border-radius: var(--rule); background: var(--c-accent); }

.sidebar-notice { background: var(--c-orange-mist); border-color: var(--c-orange-mist); }
.sidebar-notice .sidebar-title { color: var(--c-orange); }
.sidebar-notice .notice-list { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; }

.sidebar-contact {
    background: linear-gradient(180deg, var(--c-sky) 0%, var(--c-sky-deep) 100%);
    border-color: transparent;
    color: var(--c-white);
}
.sidebar-contact .sidebar-title { color: var(--c-white); }
.sidebar-contact .sidebar-title::after { background: var(--c-accent); }
.sidebar-contact-list { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 12px; }
.sidebar-contact-list li { display: flex; gap: 12px; align-items: flex-start; font-size: var(--fs-small); line-height: 1.5; }
.sidebar-contact-list i { color: var(--c-accent); margin-top: 3px; width: 16px; flex: 0 0 16px; }
.sidebar-contact-list a { color: var(--c-white); font-weight: 600; }
.sidebar-contact-list a:hover { color: var(--c-accent); }

/* ---- Phân trang ---- */
.pager a, .pager span, .pagination-nav a, .pagination-nav span { border-radius: var(--radius-pill); border-color: var(--c-line); }
.pager a:hover, .pagination-nav a:hover { border-color: var(--c-sky-deep); color: var(--c-sky-deep); }
.pager .is-active { background: var(--c-sky-deep); border-color: var(--c-sky-deep); }
.pager .is-disabled { opacity: .45; }

/* ---- Slider ---- */
.swiper-button-prev:hover, .swiper-button-next:hover { background: var(--c-accent); border-color: var(--c-accent); color: var(--c-primary); }
.swiper-pagination-bullet { width: 10px; height: 10px; border-radius: 50%; }
.swiper-pagination-bullet-active { background: var(--c-sky-deep); }

/* ---- Icon của mục con trong khối nội dung ---- */
.item-icon { border-radius: var(--radius-lg); background: var(--c-primary-mist); color: var(--c-primary); }
