/**
 * Blog CSS - DongVon Financial Blog
 * Premium design cho trang blog và bài viết đơn
 */

/* ============================================
   BLOG LISTING PAGE
   ============================================ */
.dv-blog-hero {
    background: linear-gradient(135deg, #002046 0%, #00152e 100%);
    padding: 80px 0 60px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.dv-blog-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 70% 50%, rgba(197,160,89,0.12) 0%, transparent 60%);
}
.dv-blog-hero h1 {
    color: #fff;
    font-family: 'Playfair Display', serif;
    font-size: 2.8rem;
    margin-bottom: 15px;
    position: relative;
}
.dv-blog-hero h1 span { color: #C5A059; }
.dv-blog-hero p {
    color: #ccc;
    font-size: 1.05rem;
    max-width: 600px;
    margin: 0 auto;
    position: relative;
}

.dv-blog-wrap {
    background: #f5f7fa;
    padding: 70px 0;
}

/* Blog page layout: content + sidebar 2 cột */
.dv-blog-page-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 40px;
    align-items: start;
}
.dv-blog-main { min-width: 0; } /* Prevent grid blowout */

/* Sidebar service links */
.dv-sidebar-service-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
    text-decoration: none;
    color: #333;
    font-size: 0.9rem;
    transition: color 0.2s;
    min-height: 44px; /* Touch target */
}
.dv-sidebar-service-link:hover { color: #C5A059; }
.dv-sidebar-service-link .fas:first-child { color: #C5A059; width: 20px; text-align: center; }

/* Mobile CTA bar — chỉ hiển thị trên mobile */
.dv-mobile-cta-bar {
    display: none; /* Ẩn mặc định — chỉ hiện qua media query dưới */
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9000;
    background: #002046;
    padding: 10px 16px;
    gap: 10px;
    box-shadow: 0 -2px 15px rgba(0,0,0,0.2);
    /* Safe area iOS */
    padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px));
}
.dv-mobile-cta-call {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #C5A059;
    color: #002046;
    padding: 12px;
    border-radius: 8px;
    font-weight: 800;
    font-size: 0.9rem;
    text-decoration: none;
    min-height: 44px;
}
.dv-mobile-cta-form {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: transparent;
    color: #C5A059;
    padding: 12px;
    border-radius: 8px;
    border: 1.5px solid #C5A059;
    font-weight: 700;
    font-size: 0.9rem;
    text-decoration: none;
    min-height: 44px;
}

.dv-blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}
.dv-post-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,32,70,0.07);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}
.dv-post-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0,32,70,0.15);
}
.dv-post-thumb {
    position: relative;
    overflow: hidden;
    height: 220px;
    background: #002046;
}
.dv-post-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.dv-post-card:hover .dv-post-thumb img {
    transform: scale(1.06);
}
.dv-post-cat {
    position: absolute;
    top: 15px;
    left: 15px;
    background: #C5A059;
    color: #002046;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.dv-post-thumb-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #002046, #003a7a);
    font-size: 3rem;
    color: rgba(197,160,89,0.4);
}
.dv-post-body {
    padding: 25px;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.dv-post-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 12px;
    font-size: 0.82rem;
    color: #999;
}
.dv-post-meta i { color: #C5A059; }
.dv-post-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.15rem;
    color: #002046;
    margin-bottom: 12px;
    line-height: 1.5;
    font-weight: 700;
}
.dv-post-title a { color: inherit; text-decoration: none; }
.dv-post-title a:hover { color: #C5A059; }
.dv-post-excerpt {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.7;
    flex: 1;
    margin-bottom: 20px;
}
.dv-read-more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #002046;
    font-weight: 700;
    font-size: 0.88rem;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid #C5A059;
    padding-bottom: 2px;
    transition: color 0.2s, gap 0.2s;
    width: fit-content;
}
.dv-read-more:hover { color: #C5A059; gap: 10px; }

/* Featured Post */
.dv-post-card.featured {
    grid-column: 1 / -1;
    flex-direction: row;
}
.dv-post-card.featured .dv-post-thumb {
    height: auto;
    min-height: 300px;
    flex: 0 0 45%;
}
.dv-post-card.featured .dv-post-body { padding: 40px; }
.dv-post-card.featured .dv-post-title { font-size: 1.7rem; }

/* Sidebar */
.dv-blog-sidebar { display: flex; flex-direction: column; gap: 30px; }
.dv-sidebar-widget {
    background: #fff;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0,32,70,0.06);
}
.dv-sidebar-title {
    font-family: 'Playfair Display', serif;
    color: #002046;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid #C5A059;
}
.dv-recent-post {
    display: flex;
    gap: 12px;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f0f0f0;
}
.dv-recent-post:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.dv-recent-thumb {
    width: 70px;
    height: 55px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    background: #002046;
}
.dv-recent-thumb img { width: 100%; height: 100%; object-fit: cover; }
.dv-recent-info a {
    font-size: 0.88rem;
    color: #002046;
    font-weight: 600;
    line-height: 1.4;
    text-decoration: none;
    display: block;
    margin-bottom: 4px;
}
.dv-recent-info a:hover { color: #C5A059; }
.dv-recent-date { font-size: 0.78rem; color: #999; }

/* CTA Sidebar Widget */
.dv-sidebar-cta {
    background: linear-gradient(135deg, #002046, #003a7a);
    border-radius: 12px;
    padding: 30px 25px;
    text-align: center;
    color: #fff;
}
.dv-sidebar-cta h3 { color: #C5A059; font-size: 1.15rem; margin-bottom: 12px; }
.dv-sidebar-cta p { color: #ccc; font-size: 0.88rem; margin-bottom: 20px; line-height: 1.6; }
.dv-sidebar-cta a {
    display: block;
    background: #C5A059;
    color: #002046;
    padding: 12px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.9rem;
    text-decoration: none;
    text-transform: uppercase;
}

/* Tags Cloud */
.dv-tag-cloud { display: flex; flex-wrap: wrap; gap: 8px; }
.dv-tag {
    background: #f0f4f8;
    color: #002046;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.82rem;
    text-decoration: none;
    transition: 0.2s;
}
.dv-tag:hover { background: #C5A059; color: #002046; }

/* Pagination */
.dv-pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 50px;
}
.dv-pagination a, .dv-pagination span {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: 0.2s;
    border: 1.5px solid #e0e0e0;
    color: #444;
    background: #fff;
}
.dv-pagination a:hover, .dv-pagination span.current {
    background: #002046;
    color: #fff;
    border-color: #002046;
}

/* ============================================
   SINGLE POST PAGE
   ============================================ */
.dv-single-hero {
    background: linear-gradient(135deg, #002046 0%, #003366 100%);
    padding: 80px 0 60px;
    position: relative;
}
.dv-single-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 80% 50%, rgba(197,160,89,0.1) 0%, transparent 60%);
}
.dv-single-hero-inner { position: relative; max-width: 850px; }
.dv-single-cat {
    display: inline-block;
    background: rgba(197,160,89,0.2);
    color: #C5A059;
    border: 1px solid rgba(197,160,89,0.4);
    padding: 5px 16px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 20px;
    text-decoration: none;
}
.dv-single-title {
    font-family: 'Playfair Display', serif;
    color: #fff;
    font-size: 2.4rem;
    line-height: 1.3;
    margin-bottom: 25px;
}
.dv-single-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    color: #aaa;
    font-size: 0.88rem;
}
.dv-single-meta span { display: flex; align-items: center; gap: 6px; }
.dv-single-meta i { color: #C5A059; }

.dv-single-wrap { padding: 60px 0 80px; background: #f5f7fa; }
.dv-single-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 40px;
    align-items: start;
}

/* Article Content */
.dv-article {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 25px rgba(0,32,70,0.07);
    /* Critical: prevent horizontal overflow */
    max-width: 100%;
    overflow-x: hidden;
    word-break: break-word;
    overflow-wrap: break-word;
}
.dv-article-featured-img {
    width: 100%;
    max-width: 100%;
    max-height: 450px;
    object-fit: cover;
    display: block;
    height: auto;
}
.dv-article-body {
    padding: 40px;
    /* Prevent any child from breaking out */
    overflow-x: hidden;
    max-width: 100%;
    box-sizing: border-box;
}

/* ===== CONTENT CONTAINMENT: Fix inline styles from editor ===== */
/* Tất cả ảnh trong bài viết — kể cả có width cứng */
.dv-article-body img,
.dv-article-body figure img,
.wp-post-image,
.entry-content img {
    max-width: 100% !important;
    width: auto !important;
    height: auto !important;
    display: block;
    border-radius: 8px;
    margin: 20px auto;
}
/* Iframe embed (YouTube, Maps, v.v.) */
.dv-article-body iframe,
.dv-article-body embed,
.dv-article-body video,
.dv-article-body object {
    max-width: 100% !important;
    width: 100% !important;
    height: auto;
    min-height: 200px;
}
/* Tables trong nội dung */
.dv-article-body table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    white-space: nowrap;
    max-width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
    font-size: 0.88rem;
}
.dv-article-body th,
.dv-article-body td {
    padding: 10px 14px;
    border: 1px solid #e0e0e0;
    min-width: 100px;
    white-space: normal;
    vertical-align: top;
}
.dv-article-body th { background: #002046; color: #fff; font-weight: 700; }
.dv-article-body tr:nth-child(even) td { background: #f8fafc; }
/* Div/section với width cứng trong editor */
.dv-article-body div,
.dv-article-body section {
    max-width: 100% !important;
    box-sizing: border-box !important;
}
/* Xử lý pre/code tràn */
.dv-article-body pre {
    overflow-x: auto;
    max-width: 100%;
    white-space: pre-wrap;
    word-break: break-all;
    background: #1e1e2e;
    color: #cdd6f4;
    padding: 20px;
    border-radius: 8px;
    font-size: 0.85rem;
    line-height: 1.6;
}
/* WordPress gallery */
.dv-article-body .wp-block-gallery,
.dv-article-body .gallery {
    max-width: 100% !important;
    box-sizing: border-box;
}
.dv-article-body .wp-block-image figure { max-width: 100% !important; }

.dv-article-body h2 {
    font-family: 'Playfair Display', serif;
    color: #002046;
    font-size: 1.6rem;
    margin: 35px 0 15px;
    line-height: 1.35;
}
.dv-article-body h3 {
    font-family: 'Playfair Display', serif;
    color: #002046;
    font-size: 1.25rem;
    margin: 25px 0 12px;
    line-height: 1.4;
}
.dv-article-body h4 {
    color: #002046;
    font-size: 1.05rem;
    margin: 20px 0 10px;
}
.dv-article-body p {
    color: #444;
    line-height: 1.9;
    margin-bottom: 20px;
    font-size: 1rem;
    overflow-wrap: break-word;
    word-break: break-word;
}
.dv-article-body ul, .dv-article-body ol {
    margin: 0 0 20px 25px;
    color: #444;
    line-height: 1.9;
}
.dv-article-body ul li { margin-bottom: 8px; }
.dv-article-body ol li { margin-bottom: 8px; }
.dv-article-body blockquote {
    border-left: 4px solid #C5A059;
    background: #f8f6f0;
    margin: 30px 0;
    padding: 20px 25px;
    border-radius: 0 8px 8px 0;
    font-style: italic;
    color: #555;
    font-size: 1.05rem;
    overflow-x: hidden;
}
.dv-article-body strong { color: #002046; font-weight: 700; }
.dv-article-body a { color: #C5A059; text-decoration: underline; word-break: break-all; }

/* Reading Progress Bar */
.dv-reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(90deg, #C5A059, #DFC68E);
    z-index: 99999;
    transition: width 0.1s linear;
}

/* Info Box */
.dv-info-box {
    background: linear-gradient(135deg, #002046, #003a7a);
    border-radius: 12px;
    padding: 25px 30px;
    margin: 30px 0;
    color: #fff;
}
.dv-info-box h4 { color: #C5A059; margin-bottom: 10px; font-size: 1rem; }
.dv-info-box p { color: #ddd; margin: 0; font-size: 0.92rem; }

/* Tags */
.dv-post-tags { margin-top: 30px; padding-top: 25px; border-top: 1px solid #eee; }
.dv-post-tags span { font-weight: 700; color: #002046; }

/* Author Box */
.dv-author-box {
    background: linear-gradient(135deg, #002046, #003a7a);
    border-radius: 16px;
    padding: 30px;
    margin-top: 40px;
    display: flex;
    gap: 20px;
    align-items: flex-start;
    color: #fff;
}
.dv-author-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 3px solid #C5A059;
    object-fit: cover;
    flex-shrink: 0;
}
.dv-author-name { color: #C5A059; font-weight: 700; font-size: 1.05rem; margin-bottom: 5px; }
.dv-author-role { color: #aaa; font-size: 0.82rem; margin-bottom: 10px; }
.dv-author-bio { color: #ccc; font-size: 0.9rem; line-height: 1.6; margin: 0; }

/* Related Posts */
.dv-related { background: #fff; border-radius: 16px; padding: 35px; margin-top: 30px; }
.dv-related-title {
    font-family: 'Playfair Display', serif;
    color: #002046;
    font-size: 1.4rem;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #C5A059;
}
.dv-related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.dv-related-card { text-decoration: none; }
.dv-related-thumb {
    height: 140px;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 12px;
    background: #002046;
}
.dv-related-thumb img { width: 100%; height: 100%; object-fit: cover; transition: 0.3s; }
.dv-related-card:hover .dv-related-thumb img { transform: scale(1.05); }
.dv-related-card h4 { color: #002046; font-size: 0.92rem; line-height: 1.5; font-weight: 700; }
.dv-related-card:hover h4 { color: #C5A059; }
.dv-related-date { color: #999; font-size: 0.8rem; margin-top: 5px; }

/* ============================================
   RESPONSIVE - BLOG LISTING
   ============================================ */
@media (max-width: 1024px) {
    /* Layout: 2 cột → 1 cột (sidebar biến mất) */
    .dv-blog-page-layout {
        grid-template-columns: 1fr !important;
    }
    .dv-blog-sidebar { display: none !important; } /* Sidebar ẩn trên tablet/mobile */
    .dv-blog-grid { grid-template-columns: repeat(2, 1fr); }
    .dv-post-card.featured { flex-direction: column; grid-column: auto; }
    .dv-post-card.featured .dv-post-thumb { min-height: 200px; flex: none; }
    .dv-single-layout { grid-template-columns: 1fr; }
    .dv-related-grid { grid-template-columns: repeat(2, 1fr); }
    .dv-archive-layout { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
    /* Hero */
    .dv-blog-hero { padding: 50px 0 40px; }
    .dv-blog-hero h1 { font-size: clamp(1.5rem, 6vw, 2rem); }
    /* Grid: 1 cột */
    .dv-blog-grid { grid-template-columns: 1fr !important; gap: 20px; }
    .dv-blog-wrap { padding: 40px 0 80px; } /* 80px padding-bottom để không bị mobile CTA bar che */
    /* Post card */
    .dv-post-thumb { height: 200px; }
    .dv-post-body { padding: 18px; }
    /* Single */
    .dv-single-hero { padding: 50px 0 35px; }
    .dv-single-title { font-size: clamp(1.3rem, 5vw, 1.8rem) !important; }
    .dv-single-meta { gap: 10px; font-size: 0.8rem; }
    .dv-article-body { padding: 20px 16px; }
    .dv-article-body h2 { font-size: 1.3rem; margin: 25px 0 12px; }
    .dv-article-body h3 { font-size: 1.1rem; }
    .dv-article-body p { font-size: 0.95rem; }
    /* Author */
    .dv-author-box { flex-direction: column; padding: 20px; gap: 15px; }
    .dv-author-avatar { width: 65px; height: 65px; }
    /* Related */
    .dv-related { padding: 25px 16px; }
    .dv-related-grid { grid-template-columns: 1fr; gap: 15px; }
    .dv-related-thumb { height: 110px; }
    /* Pagination */
    .dv-pagination { gap: 5px; }
    .dv-pagination a, .dv-pagination span { width: 36px; height: 36px; font-size: 0.85rem; }
    /* Mobile CTA Bar - hiện lên */
    .dv-mobile-cta-bar { display: flex !important; }
}
@media (max-width: 480px) {
    .dv-single-meta { flex-wrap: wrap; gap: 8px; }
    .dv-post-card.featured { flex-direction: column; }
    .dv-related-grid { grid-template-columns: 1fr 1fr; }
    .dv-share-btns { flex-direction: column; }
    .dv-share-btn { width: 100%; justify-content: center; }
    .dv-post-cta-btns { flex-direction: column; gap: 10px; }
    .dv-cta-call, .dv-cta-form { width: 100%; text-align: center; justify-content: center; }
}

/* ============================================
   SHARE BUTTONS
   ============================================ */
.dv-share-wrap {
    margin-top: 30px;
    padding-top: 25px;
    border-top: 1px solid #eee;
}
.dv-share-title {
    font-weight: 700;
    color: #002046;
    margin-bottom: 12px;
    font-size: 0.95rem;
}
.dv-share-btns {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}
.dv-share-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 10px 18px;
    border-radius: 8px;
    font-size: 0.88rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    border: none;
    min-height: 44px;
    transition: opacity 0.2s;
}
.dv-share-btn:hover { opacity: 0.85; }
.dv-share-fb   { background: #1877F2; color: #fff; }
.dv-share-zalo { background: #0068FF; color: #fff; }
.dv-share-copy { background: #f0f4f8; color: #002046; }

/* ============================================
   POST CTA BOX (cuối bài)
   ============================================ */
.dv-post-cta {
    background: linear-gradient(135deg, #002046, #003a7a);
    border-radius: 16px;
    padding: 40px 30px;
    text-align: center;
    margin-top: 30px;
    color: #fff;
}
.dv-post-cta-icon { font-size: 2.5rem; margin-bottom: 15px; }
.dv-post-cta h3 {
    color: #C5A059;
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    margin-bottom: 12px;
}
.dv-post-cta p {
    color: #ccc;
    margin-bottom: 25px;
    font-size: 0.95rem;
    line-height: 1.7;
}
.dv-post-cta strong { color: #C5A059; }
.dv-post-cta-btns {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}
.dv-cta-call {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #C5A059;
    color: #002046;
    padding: 14px 28px;
    border-radius: 8px;
    font-weight: 800;
    text-decoration: none;
    font-size: 0.95rem;
    text-transform: uppercase;
    min-height: 44px;
}
.dv-cta-form {
    display: inline-flex;
    align-items: center;
    background: transparent;
    color: #C5A059;
    padding: 14px 28px;
    border-radius: 8px;
    font-weight: 800;
    text-decoration: none;
    font-size: 0.95rem;
    border: 1.5px solid #C5A059;
    min-height: 44px;
}

/* ============================================
   ARCHIVE LAYOUT
   ============================================ */
.dv-archive-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 40px;
    align-items: start;
}
.dv-archive-badge {
    display: inline-block;
    background: rgba(197,160,89,0.2);
    color: #C5A059;
    border: 1px solid rgba(197,160,89,0.4);
    padding: 6px 18px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 20px;
    position: relative;
}

/* ============================================
   PLACEHOLDER / NO IMAGE
   ============================================ */
.dv-thumb-placeholder,
.dv-related-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #002046, #003a7a);
    color: rgba(197,160,89,0.5);
    font-size: 1.5rem;
}

/* ============================================
   NO POSTS STATE
   ============================================ */
.dv-no-posts {
    text-align: center;
    padding: 60px 20px;
    background: #fff;
    border-radius: 16px;
    color: #666;
}
.dv-no-posts h3 { color: #002046; font-size: 1.3rem; margin-bottom: 10px; }

/* ============================================
   AUTHOR INFO (trong author box)
   ============================================ */
.dv-author-info { flex: 1; }

/* ============================================
   WORDPRESS NATIVE PAGINATION FIX
   ============================================ */
.dv-pagination .nav-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    width: 100%;
}
.dv-pagination .page-numbers {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    border: 1.5px solid #e0e0e0;
    color: #444;
    background: #fff;
    transition: 0.2s;
}
.dv-pagination .page-numbers.current,
.dv-pagination .page-numbers:hover {
    background: #002046;
    color: #fff;
    border-color: #002046;
}
.dv-pagination .page-numbers.dots { border: none; background: none; }

/* ============================================
   PAGE LINKS (<!--nextpage--> split)
   ============================================ */
.dv-page-links {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #eee;
    font-size: 0.9rem;
    color: #666;
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}
.dv-page-links span a, .dv-page-links span span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    border: 1.5px solid #e0e0e0;
    text-decoration: none;
    color: #444;
    font-weight: 600;
}
.dv-page-links span span { background: #002046; color: #fff; border-color: #002046; }
