/* ============================================================
   Julyem - Trang BLOG / Lưu trữ
   Lưới card giống khối "Bài viết liên quan" (single post).
   Markup do home.php / archive.php tự dựng (.jl-blog-card).
   ============================================================ */

.blog-archive {
    --jl-primary: #003462;
    --jl-heading: #0B3F66;
    --jl-gold:    #CFA56A;
    --jl-text:    #333333;
    --jl-muted:   #7A8A99;
    --jl-line:    rgba(11, 63, 102, .1);
    --jl-paper:   #faf8f4;
}

/* ============================================================
   HERO
   ============================================================ */
.jl-blog-hero {
    position: relative;
    overflow: hidden;
    text-align: center;
    color: #d6e0ea;
    background:
        radial-gradient(1100px 520px at 80% -20%, rgba(207, 165, 106, .12), transparent 60%),
        linear-gradient(160deg, #003462 0%, #022744 100%);
}
.jl-blog-hero-inner {
    position: relative;
    z-index: 1;
    max-width: 820px;
    margin: 0 auto;
    padding: 64px 24px 68px;
}
.jl-blog-hero-eyebrow {
    margin: 0 0 12px;
    color: var(--jl-gold);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 4px;
    text-transform: uppercase;
}
.jl-blog-hero-title {
    margin: 0;
    color: var(--jl-gold);
    font-size: clamp(28px, 4.4vw, 46px);
    font-weight: 700;
    letter-spacing: 1px;
    line-height: 1.15;
    text-shadow: 0 1px 10px rgba(207, 165, 106, .25);
}
.jl-blog-hero-sub {
    margin: 16px auto 0;
    max-width: 620px;
    color: #aebecd;
    font-size: 16px;
    line-height: 1.75;
}

/* ============================================================
   KHUNG DANH SÁCH
   ============================================================ */
.blog-archive.page-wrapper {
    background: var(--jl-paper);
    padding-bottom: 64px;
}
.jl-blog-wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 56px 24px 0;
}

/* Lưới 3 cột */
.jl-blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

/* ============================================================
   CARD (giống .jl-rel-card của single post)
   ============================================================ */
.jl-blog-card {
    display: flex;
    flex-direction: column;
    margin: 0;
    background: #fff;
    border: 1px solid var(--jl-line);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 26px -18px rgba(0, 52, 98, .4);
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.jl-blog-card:hover {
    transform: translateY(-6px);
    border-color: rgba(207, 165, 106, .55);
    box-shadow: 0 18px 38px -16px rgba(0, 52, 98, .5);
}

/* Ảnh */
.jl-blog-thumb {
    display: block;
    aspect-ratio: 16 / 11;
    overflow: hidden;
    background: var(--jl-paper);
}
.jl-blog-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .4s ease;
}
.jl-blog-card:hover .jl-blog-thumb img {
    transform: scale(1.06);
}
.jl-blog-thumb-ph {
    display: block;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0e4a78, var(--jl-gold));
}

/* Nội dung */
.jl-blog-body {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    padding: 16px 20px 20px;
}
.jl-blog-date {
    color: var(--jl-muted);
    font-size: 13px;
    letter-spacing: .4px;
    margin-bottom: 8px;
}
.jl-blog-card-title {
    margin: 0 0 16px;
    font-size: 17px;
    line-height: 1.45;
    font-weight: 700;
    flex: 1 1 auto;
}
.jl-blog-card-title a {
    color: var(--jl-heading);
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color .2s ease;
}
.jl-blog-card-title a:hover {
    color: var(--jl-gold);
}
.jl-blog-more {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-top: auto;
    align-self: flex-start;
    color: var(--jl-gold);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: color .2s ease, gap .2s ease;
}
.jl-blog-more svg { transition: transform .2s ease; }
.jl-blog-more:hover { color: var(--jl-primary); gap: 11px; }
.jl-blog-more:hover svg { transform: translateX(2px); }

/* ============================================================
   PHÂN TRANG
   ============================================================ */
.jl-blog-pagination { margin-top: 48px; }
.jl-blog-pagination .nav-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.jl-blog-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    padding: 0 14px;
    border: 1px solid rgba(11, 63, 102, .18);
    border-radius: 8px;
    color: var(--jl-heading);
    text-decoration: none;
    font-weight: 600;
    transition: background .2s, color .2s, border-color .2s;
}
.jl-blog-pagination .page-numbers:hover,
.jl-blog-pagination .page-numbers.current {
    background: var(--jl-gold);
    border-color: var(--jl-gold);
    color: #022744;
}
.jl-blog-pagination .page-numbers.dots {
    border-color: transparent;
    background: transparent;
}

/* Trống */
.jl-blog-empty {
    text-align: center;
    color: var(--jl-muted);
    padding: 48px 0;
    font-size: 16px;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 849px) {
    .jl-blog-grid { grid-template-columns: repeat(2, 1fr); gap: 22px; }
}
@media (max-width: 549px) {
    .jl-blog-grid { grid-template-columns: 1fr; }
    .jl-blog-wrap { padding: 40px 16px 0; }
    .jl-blog-hero-inner { padding: 48px 20px 52px; }
}
