/* ============================================================================
 * blog.css — Trang Tin tức & Sự Kiện/Blog (/blog) — UI/UX chuẩn chuyển đổi cao.
 * Tách riêng theo trang (CLAUDE.md 6.3), chỉ nạp ở /blog qua @section Styles.
 * Responsive đầy đủ mobile → desktop (6.4). Không có phần "Danh mục".
 * ========================================================================== */

:root {
    --bl-accent: var(--aq-common-red, #e4002b);
    --bl-accent-dark: #c20025;
    --bl-ink: #16181c;
    --bl-muted: #6b7280;
    --bl-line: #ececf1;
    --bl-soft: #f6f7f9;
    --bl-radius: 18px;
}

/* Đồng bộ "vỏ trang" kiểu Cửa hàng: nền tông xám-xanh nhạt; hero nằm trong dải header
   gradient (.oe-page-head). Dùng padding của bl-crumb/bl-hero, bỏ padding dọc của band
   để không bị cộng dồn khoảng cách. */
.bl-page { background: #f4f6f8; }
/* Đồng bộ dải header với các trang khác: giữ padding-top chuẩn (20px) cho breadcrumb,
   bỏ padding-bottom của band vì hero ở dưới đã có padding riêng. Breadcrumb dùng style chung
   .oe-page-head .pd-breadcrumb-list (page-frame.css) → KHÔNG cần .bl-crumb nữa. */
.bl-page .oe-page-head { padding-bottom: 0; }

/* ---- Hero / tiêu đề trang ---------------------------------------------- */
.bl-hero {
    padding: 16px 0 30px;
}

/* ---- Thân trang: nhịp khoảng cách đồng đều giữa các khối ---------------- */
.bl-body { padding: 36px 0 72px; }
/* CTA ở trang Tin tức & Sự Kiện: cách lưới 56px, đáy do .bl-body lo (không cộng dồn margin). */
.bl-body .bl-cta { margin: 56px 0 0; }

.bl-hero-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
}

.bl-hero-text { max-width: none; }
/* Giữ đoạn mô tả dễ đọc, không kéo dài hết chiều ngang */
.bl-lead { max-width: 760px; }

.bl-subtitle {
    display: inline-block;
    margin-bottom: 14px;
    padding: 6px 14px;
    border-radius: 999px;
    background: rgba(228, 0, 43, .08);
    color: var(--bl-accent);
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.bl-title {
    margin: 0;
    font-size: clamp(28px, 4.5vw, 46px);
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -.8px;
    color: var(--bl-ink);
}

.bl-lead {
    margin: 14px 0 0;
    font-size: 16px;
    line-height: 1.6;
    color: var(--bl-muted);
}

/* ---- Tiêu đề khu + tab lọc danh mục ----------------------------------- */
.bl-section { margin-bottom: 56px; }
.bl-section:last-of-type { margin-bottom: 0; }
.bl-section-head {
    display: flex; align-items: center; justify-content: space-between;
    gap: 14px 24px; flex-wrap: wrap; margin-bottom: 24px;
}
.bl-section-title {
    position: relative; margin: 0; padding-left: 14px;
    font-size: clamp(20px, 2.4vw, 26px); font-weight: 800; letter-spacing: -.4px; color: var(--bl-ink);
}
.bl-section-title::before {
    content: ""; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
    width: 4px; height: 22px; border-radius: 999px; background: var(--bl-accent);
}
/* ---- Meta ngày đăng (dùng chung featured / side / card) --------------- */
.bl-meta { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--bl-muted); }
.bl-meta svg { flex: none; }

/* ---- Bài nổi bật: card lớn (trái) + danh sách bài (phải) -------------- */
.bl-feature-layout { display: grid; grid-template-columns: 1.55fr 1fr; gap: 28px; align-items: start; }
.bl-feature-layout.is-solo { grid-template-columns: 1fr; }

/* Card lớn: ảnh trên, nội dung dưới */
.bl-featured {
    display: flex; flex-direction: column;
    border: 1px solid var(--bl-line); border-radius: var(--bl-radius); overflow: hidden;
    background: #fff; transition: box-shadow .25s, transform .25s;
}
.bl-featured:hover { box-shadow: 0 18px 50px rgba(15, 23, 42, .12); }
.bl-featured-thumb { position: relative; display: block; overflow: hidden; aspect-ratio: 16 / 9; background: var(--bl-soft); }
.bl-featured-thumb img,
.bl-card-thumb img,
.bl-side-thumb img {
    width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s ease;
}
.bl-featured:hover .bl-featured-thumb img,
.bl-card:hover .bl-card-thumb img { transform: scale(1.05); }
.bl-featured-body { display: flex; flex-direction: column; flex: 1; gap: 12px; padding: 26px 28px 28px; }
.bl-featured-title { margin: 0; font-size: clamp(20px, 2.2vw, 26px); font-weight: 800; line-height: 1.3; letter-spacing: -.4px; }
.bl-featured-title a { color: var(--bl-ink); }
.bl-featured-title a:hover { color: var(--bl-accent); }
.bl-featured-excerpt {
    margin: 0; font-size: 15px; line-height: 1.65; color: var(--bl-muted);
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.bl-featured .bl-readmore { margin-top: 4px; }

/* Danh sách bài bên phải: mini-card (thumb + tiêu đề + ngày) */
.bl-feature-side { display: flex; flex-direction: column; gap: 14px; }
.bl-side-item {
    display: flex; gap: 14px; align-items: flex-start; padding: 12px;
    border: 1px solid var(--bl-line); border-radius: 14px; background: #fff;
    transition: box-shadow .2s, transform .2s;
}
.bl-side-item:hover { box-shadow: 0 10px 26px rgba(15, 23, 42, .08); transform: translateY(-2px); }
.bl-side-thumb { flex: 0 0 92px; width: 92px; aspect-ratio: 1 / 1; border-radius: 10px; overflow: hidden; background: var(--bl-soft); }
.bl-side-body { min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.bl-side-title {
    margin: 0; font-size: 14.5px; font-weight: 600; line-height: 1.4; letter-spacing: -.2px;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.bl-side-title a { color: var(--bl-ink); }
.bl-side-title a:hover { color: var(--bl-accent); }
.bl-side-excerpt {
    margin: 0; font-size: 13px; line-height: 1.55; color: var(--bl-muted);
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

/* ---- Lưới bài viết ----------------------------------------------------- */
.bl-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.bl-card {
    display: flex;
    flex-direction: column;
    border: 1px solid var(--bl-line);
    border-radius: var(--bl-radius);
    overflow: hidden;
    background: #fff;
    transition: box-shadow .25s, transform .25s;
}

.bl-card:hover { box-shadow: 0 14px 38px rgba(15, 23, 42, .1); transform: translateY(-4px); }

.bl-card-thumb {
    display: block;
    overflow: hidden;
    aspect-ratio: 16 / 10;
    background: var(--bl-soft);
}

.bl-card-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 22px 22px 24px;
}

.bl-card-title {
    margin: 0 0 10px;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.35;
    letter-spacing: -.2px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.bl-card-title a { color: var(--bl-ink); }
.bl-card-title a:hover { color: var(--bl-accent); }

.bl-card-excerpt {
    margin: 0 0 14px;
    font-size: 14.5px;
    line-height: 1.6;
    color: var(--bl-muted);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Ngày đăng dưới card: ghim đáy để các card thẳng hàng dù tiêu đề dài ngắn khác nhau. */
.bl-card-meta { margin-top: auto; padding-top: 4px; }

/* Link "Đọc tiếp" (featured) */
.bl-readmore {
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 700;
    color: var(--bl-accent);
    transition: gap .2s;
}

.bl-readmore svg { transition: transform .2s; }
.bl-readmore:hover { color: var(--bl-accent-dark); }
.bl-readmore:hover svg { transform: translateX(4px); }

/* ---- Trạng thái rỗng --------------------------------------------------- */
.bl-empty {
    text-align: center;
    padding: 70px 20px;
    color: var(--bl-muted);
    font-size: 15px;
}

/* ---- Dải CTA chuyển đổi ------------------------------------------------ */
.bl-cta {
    margin: 64px 0 20px;
    padding: 52px 48px;
    border-radius: 24px;
    background: linear-gradient(135deg, #fff5f6 0%, #ffe9ec 55%, #ffdfe4 100%);
    color: var(--bl-ink);
    border: 1px solid #ffd0d8;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 24px 60px -34px rgba(228, 0, 43, .35);
}

/* Khối sáng trang trí */
.bl-cta::before,
.bl-cta::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.bl-cta::after {
    right: -80px;
    top: -90px;
    width: 320px;
    height: 320px;
    background: radial-gradient(circle, rgba(228, 0, 43, .18), transparent 68%);
}

.bl-cta::before {
    left: -70px;
    bottom: -110px;
    width: 260px;
    height: 260px;
    background: radial-gradient(circle, rgba(255, 255, 255, .6), transparent 70%);
}

.bl-cta-text { max-width: 600px; position: relative; z-index: 1; }

.bl-cta-eyebrow {
    display: inline-flex;
    align-items: center;
    margin-bottom: 14px;
    padding: 5px 14px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .6px;
    text-transform: uppercase;
    color: var(--bl-accent);
    background: rgba(228, 0, 43, .1);
    border: 1px solid rgba(228, 0, 43, .25);
}

.bl-cta-text h3 { margin: 0 0 10px; font-size: clamp(22px, 2.6vw, 30px); font-weight: 800; letter-spacing: -.5px; line-height: 1.25; color: var(--bl-ink); }
.bl-cta-text p { margin: 0; font-size: 15px; color: var(--bl-muted); line-height: 1.6; }

.bl-cta-feats {
    list-style: none;
    margin: 20px 0 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px 22px;
}

.bl-cta-feats li {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--bl-ink);
}

.bl-cta-feats svg {
    flex: none;
    width: 18px;
    height: 18px;
    padding: 2px;
    border-radius: 50%;
    color: #fff;
    background: var(--bl-accent);
}

.bl-cta-btn {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    height: 56px;
    padding: 0 34px;
    border-radius: 999px;
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    background: var(--bl-accent);
    box-shadow: 0 14px 32px rgba(228, 0, 43, .4);
    transition: transform .15s ease, background .2s, box-shadow .2s;
    white-space: nowrap;
}

.bl-cta-btn svg { transition: transform .2s ease; }
.bl-cta-btn:hover { background: var(--bl-accent-dark); color: #fff; transform: translateY(-2px); box-shadow: 0 18px 40px rgba(228, 0, 43, .5); }
.bl-cta-btn:hover svg { transform: translateX(3px); }

/* ---- Responsive -------------------------------------------------------- */
@media (max-width: 991px) {
    .bl-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
    /* Bài nổi bật: card lớn lên trên, danh sách bài xuống dưới */
    .bl-feature-layout { grid-template-columns: 1fr; gap: 22px; }
    .bl-featured-body { padding: 24px 24px 26px; }
    /* Danh sách bài: chia 2 cột cho cân khi nằm dưới card lớn */
    .bl-feature-side { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
}

@media (max-width: 575px) {
    .bl-grid { grid-template-columns: 1fr; gap: 20px; }
    .bl-feature-side { grid-template-columns: 1fr; }
    .bl-hero-inner { flex-direction: column; align-items: stretch; }
    .bl-cta { padding: 34px 24px; flex-direction: column; align-items: flex-start; gap: 24px; }
    .bl-cta-feats { gap: 10px 18px; }
    .bl-cta-btn { width: 100%; justify-content: center; }
}
