/* ==========================================================================
   BẮC NINH PLUS — Modern Editorial & Local Discovery Theme
   ========================================================================== */

:root {
    --bnp-bg: #f7f6f2;
    --bnp-surface: #ffffff;
    --bnp-surface-alt: #f1efe9;
    --bnp-text: #16202c;
    --bnp-text-muted: #526071;
    --bnp-primary: #0f4c81;
    --bnp-primary-dark: #0a355c;
    --bnp-accent: #c2410c;
    --bnp-accent-soft: #fff3eb;
    --bnp-border: #e4e2dc;
    --bnp-radius: 14px;
    --bnp-radius-sm: 9px;
    --bnp-shadow: 0 10px 28px -10px rgba(15, 34, 58, 0.08);
    --bnp-shadow-hover: 0 16px 36px -10px rgba(15, 34, 58, 0.15);
}

html, body {
    background-color: var(--bnp-bg) !important;
    color: var(--bnp-text) !important;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
}

#container {
    width: 100%;
    overflow-x: hidden;
    background: var(--bnp-bg);
}

.wrap, .bnp-wrap {
    max-width: 1240px !important;
    width: 100% !important;
    margin: 0 auto !important;
    padding: 0 20px !important;
    box-sizing: border-box !important;
    float: none !important;
}

/* Hide legacy Fipal elements */
#top-web, #header, #header-mobile, #navigation, #document, #buttonshare, .fp-chat-launch, .fp-mobile-call {
    display: none !important;
}

/* ==========================================================================
   HEADER & NAVIGATION
   ========================================================================== */
.bnp-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--bnp-border);
    box-shadow: 0 2px 14px rgba(15, 34, 58, 0.04);
}

.bnp-header-top {
    background: var(--bnp-primary-dark);
    color: rgba(255, 255, 255, 0.88);
    font-size: 12.5px;
    padding: 6px 0;
}

.bnp-header-top-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.bnp-header-top-links {
    display: flex;
    align-items: center;
    gap: 18px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.bnp-header-top-links a {
    color: rgba(255, 255, 255, 0.86);
    text-decoration: none;
    transition: color 0.15s;
}

.bnp-header-top-links a:hover {
    color: #fff;
    text-decoration: underline;
}

.bnp-header-main {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    min-height: 74px;
    padding-top: 10px !important;
    padding-bottom: 10px !important;
}

.bnp-brand {
    display: inline-flex;
    flex-direction: column;
    text-decoration: none !important;
    flex-shrink: 0;
}

.bnp-brand-title {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 23px;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--bnp-primary-dark);
    line-height: 1.1;
}

.bnp-brand-mark {
    display: inline-block;
    background: linear-gradient(135deg, #ea580c, #b45309);
    color: #fff;
    font-size: 13px;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 6px;
    letter-spacing: 0.04em;
    vertical-align: middle;
}

.bnp-brand-sub {
    font-size: 12px;
    color: var(--bnp-text-muted);
    margin-top: 3px;
    font-weight: 500;
}

.bnp-nav {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
}

.bnp-nav-item {
    position: relative;
}

.bnp-nav-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 9px 13px;
    border-radius: 8px;
    font-size: 14.5px;
    font-weight: 600;
    color: var(--bnp-text) !important;
    text-decoration: none !important;
    transition: background 0.15s, color 0.15s;
}

.bnp-nav-link:hover, .bnp-nav-item:hover > .bnp-nav-link {
    background: var(--bnp-surface-alt);
    color: var(--bnp-primary) !important;
}

.bnp-nav-caret {
    font-size: 11px;
    opacity: 0.65;
}

.bnp-dropdown {
    position: absolute;
    top: calc(100% + 2px);
    left: 0;
    min-width: 240px;
    background: #fff;
    border: 1px solid var(--bnp-border);
    border-radius: 12px;
    box-shadow: 0 18px 38px -10px rgba(15, 34, 58, 0.18);
    padding: 8px;
    display: none;
    z-index: 1100;
}

.bnp-nav-item:hover .bnp-dropdown,
.bnp-nav-item:focus-within .bnp-dropdown {
    display: block;
}

.bnp-dropdown a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    color: var(--bnp-text) !important;
    text-decoration: none !important;
    transition: background 0.15s, color 0.15s;
}

.bnp-dropdown a:hover {
    background: #f0f6fb;
    color: var(--bnp-primary) !important;
}

.bnp-dropdown a.bnp-dropdown-all {
    font-weight: 700;
    color: var(--bnp-primary) !important;
    border-bottom: 1px solid #f1f5f9;
    margin-bottom: 4px;
    padding-bottom: 9px;
}

.bnp-header-search {
    display: flex;
    align-items: center;
    background: var(--bnp-surface-alt);
    border: 1px solid var(--bnp-border);
    border-radius: 999px;
    padding: 3px 5px 3px 14px;
    min-width: 230px;
    transition: border-color 0.2s, background 0.2s;
}

.bnp-header-search:focus-within {
    background: #fff;
    border-color: var(--bnp-primary);
    box-shadow: 0 0 0 3px rgba(15, 76, 129, 0.12);
}

.bnp-header-search input {
    border: none !important;
    background: transparent !important;
    outline: none !important;
    font-size: 13.5px;
    color: var(--bnp-text);
    width: 100%;
    padding: 5px 0;
}

.bnp-header-search button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: var(--bnp-primary);
    color: #fff;
    cursor: pointer;
    flex-shrink: 0;
    transition: background 0.15s;
}

.bnp-header-search button:hover {
    background: var(--bnp-primary-dark);
}

.bnp-mobile-menu {
    display: none;
}

/* ==========================================================================
   HERO DISCOVERY SECTION
   ========================================================================== */
.bnp-hero {
    padding: 34px 0 28px;
}

.bnp-hero-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 28px;
    align-items: stretch;
}

.bnp-hero-card {
    background: linear-gradient(140deg, #0b2f52 0%, #0f4c81 60%, #165b96 100%);
    color: #fff;
    border-radius: 20px;
    padding: 38px 36px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 18px 40px -15px rgba(11, 47, 82, 0.35);
    position: relative;
    overflow: hidden;
}

.bnp-hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.14);
    color: #fcd34d;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 6px 13px;
    border-radius: 999px;
    margin: 0 0 16px;
    width: fit-content;
}

.bnp-hero-card h1 {
    font-size: 36px;
    line-height: 1.2;
    font-weight: 800;
    margin: 0 0 14px;
    color: #fff !important;
    letter-spacing: -0.02em;
}

.bnp-hero-card h1 span {
    color: #fde68a;
}

.bnp-hero-lead {
    font-size: 15.5px;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.88);
    margin: 0 0 24px;
    max-width: 580px;
}

.bnp-search-bar {
    display: grid;
    grid-template-columns: 1.2fr 0.9fr auto;
    gap: 10px;
    background: #fff;
    padding: 8px;
    border-radius: 14px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.bnp-search-field {
    display: flex;
    flex-direction: column;
    padding: 4px 12px;
    border-right: 1px solid #e2e8f0;
}

.bnp-search-field:last-of-type {
    border-right: none;
}

.bnp-search-field span {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #64748b;
}

.bnp-search-field input,
.bnp-search-field select {
    border: none !important;
    background: transparent !important;
    font-size: 14px;
    font-weight: 500;
    color: #0f172a;
    padding: 4px 0 2px;
    outline: none !important;
    width: 100%;
}

.bnp-search-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: var(--bnp-accent);
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 0 22px;
    font-size: 14.5px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.15s, transform 0.15s;
}

.bnp-search-submit:hover {
    background: #9a3412;
    transform: translateY(-1px);
}

.bnp-hero-localities {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 20px;
    font-size: 13px;
}

.bnp-hero-localities > span {
    color: rgba(255, 255, 255, 0.75);
    font-weight: 600;
}

.bnp-hero-localities a {
    background: rgba(255, 255, 255, 0.13);
    color: #fff !important;
    text-decoration: none !important;
    padding: 4px 11px;
    border-radius: 999px;
    font-size: 12.5px;
    font-weight: 500;
    border: 1px solid rgba(255, 255, 255, 0.18);
    transition: background 0.15s;
}

.bnp-hero-localities a:hover {
    background: rgba(255, 255, 255, 0.26);
}

/* Featured Spotlight Card on Right of Hero */
.bnp-hero-spotlight {
    background: var(--bnp-surface);
    border: 1px solid var(--bnp-border);
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: var(--bnp-shadow);
}

.bnp-spotlight-media {
    position: relative;
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #e2e8f0;
}

.bnp-spotlight-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease;
}

.bnp-hero-spotlight:hover .bnp-spotlight-media img {
    transform: scale(1.03);
}

.bnp-spotlight-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    background: rgba(15, 34, 58, 0.85);
    backdrop-filter: blur(6px);
    color: #fff !important;
    font-size: 11.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 5px 11px;
    border-radius: 999px;
}

.bnp-spotlight-body {
    padding: 20px 24px 22px;
    display: flex;
    flex-direction: column;
    flex: 1;
    justify-content: space-between;
}

.bnp-spotlight-body h2 {
    margin: 0 0 8px;
    font-size: 20px;
    line-height: 1.38;
    font-weight: 700;
}

.bnp-spotlight-body h2 a {
    color: var(--bnp-text) !important;
    text-decoration: none !important;
}

.bnp-spotlight-body h2 a:hover {
    color: var(--bnp-primary) !important;
}

.bnp-spotlight-body p {
    margin: 0 0 14px;
    font-size: 14px;
    color: var(--bnp-text-muted);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.bnp-spotlight-more {
    font-size: 13.5px;
    font-weight: 700;
    color: var(--bnp-primary) !important;
    text-decoration: none !important;
}

/* ==========================================================================
   TOPIC EXPLORATION GRID
   ========================================================================== */
.bnp-section {
    padding: 26px 0;
    clear: both;
}

.bnp-section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.bnp-kicker {
    margin: 0 0 4px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--bnp-accent);
}

.bnp-section-title {
    margin: 0;
    font-size: 25px;
    font-weight: 800;
    color: var(--bnp-text);
    letter-spacing: -0.015em;
}

.bnp-section-link {
    font-size: 14px;
    font-weight: 700;
    color: var(--bnp-primary) !important;
    text-decoration: none !important;
    white-space: nowrap;
}

.bnp-section-link:hover {
    text-decoration: underline !important;
}

.bnp-topic-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}

.bnp-topic-card {
    display: flex;
    align-items: center;
    gap: 14px;
    background: var(--bnp-surface);
    border: 1px solid var(--bnp-border);
    border-radius: var(--bnp-radius);
    padding: 16px 18px;
    text-decoration: none !important;
    color: var(--bnp-text) !important;
    box-shadow: 0 4px 12px rgba(15, 34, 58, 0.03);
    transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.bnp-topic-card:hover {
    transform: translateY(-2px);
    border-color: var(--bnp-primary);
    box-shadow: var(--bnp-shadow);
}

.bnp-topic-icon {
    width: 44px;
    height: 44px;
    border-radius: 11px;
    background: #eef5fb;
    color: var(--bnp-primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.bnp-topic-icon svg {
    width: 22px;
    height: 22px;
}

.bnp-topic-card:hover .bnp-topic-icon {
    background: var(--bnp-primary);
    color: #fff;
}

.bnp-topic-info {
    flex: 1;
    min-width: 0;
}

.bnp-topic-info strong {
    display: block;
    font-size: 15px;
    font-weight: 700;
    color: var(--bnp-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.bnp-topic-info small {
    font-size: 12.5px;
    color: var(--bnp-text-muted);
}

.bnp-topic-arrow {
    color: #94a3b8;
    font-weight: 700;
}

.bnp-more-topics {
    margin-top: 12px;
    background: var(--bnp-surface);
    border: 1px solid var(--bnp-border);
    border-radius: 12px;
    padding: 10px 16px;
}

.bnp-more-topics summary {
    cursor: pointer;
    font-size: 13.5px;
    font-weight: 700;
    color: var(--bnp-primary);
    list-style: none;
}

.bnp-more-topics-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px dashed var(--bnp-border);
}

.bnp-more-topics-list a {
    padding: 6px 13px;
    background: var(--bnp-bg);
    border: 1px solid var(--bnp-border);
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    color: var(--bnp-text) !important;
    text-decoration: none !important;
}

.bnp-more-topics-list a:hover {
    background: var(--bnp-primary);
    border-color: var(--bnp-primary);
    color: #fff !important;
}

/* ==========================================================================
   CATEGORY SECTIONS & PLACE CARDS (4-COLUMN MODERN GRID)
   ========================================================================== */
#product-home {
    float: none !important;
    width: 100% !important;
    padding: 10px 0 30px !important;
}

.bnp-cat-block {
    background: var(--bnp-surface);
    border: 1px solid var(--bnp-border);
    border-radius: 18px;
    padding: 24px;
    margin-bottom: 26px;
    box-shadow: var(--bnp-shadow);
}

.bnp-cat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 14px;
    padding-bottom: 16px;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--bnp-border);
}

.bnp-cat-title-group {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    flex: 1;
}

.bnp-cat-heading {
    margin: 0;
    font-size: 21px;
    font-weight: 800;
    letter-spacing: -0.01em;
}

.bnp-cat-heading a {
    color: var(--bnp-primary-dark) !important;
    text-decoration: none !important;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.bnp-cat-heading a::before {
    content: "";
    display: inline-block;
    width: 5px;
    height: 22px;
    border-radius: 4px;
    background: var(--bnp-accent);
}

.bnp-subcat-pills {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    list-style: none;
    margin: 0 0 0 8px;
    padding: 0;
}

.bnp-subcat-pills li a {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    color: var(--bnp-text-muted) !important;
    background: var(--bnp-bg);
    border: 1px solid var(--bnp-border);
    text-decoration: none !important;
    transition: all 0.15s;
}

.bnp-subcat-pills li.active a,
.bnp-subcat-pills li a:hover {
    background: var(--bnp-primary);
    border-color: var(--bnp-primary);
    color: #fff !important;
}

.bnp-card-grid,
.bnp-ajax-grid {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 20px !important;
    width: 100% !important;
    float: none !important;
}

/* Override legacy .item-product inside Bắc Ninh Plus grids */
.bnp-card-grid .item-product,
.bnp-ajax-grid .item-product,
.bnp-place-card {
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    float: none !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 1px solid var(--bnp-border) !important;
    border-radius: 14px !important;
    background: #fff !important;
    overflow: hidden !important;
    display: flex !important;
    flex-direction: column !important;
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease !important;
    box-shadow: 0 4px 14px rgba(15, 34, 58, 0.04) !important;
}

.bnp-card-grid .item-product:hover,
.bnp-ajax-grid .item-product:hover,
.bnp-place-card:hover {
    transform: translateY(-4px) !important;
    box-shadow: var(--bnp-shadow-hover) !important;
    border-color: #cbd5e1 !important;
}

.bnp-card-grid .item-product .image,
.bnp-ajax-grid .item-product .image,
.bnp-place-card .bnp-card-thumb {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 16 / 10 !important;
    overflow: hidden !important;
    background: #e2e8f0 !important;
    position: relative !important;
    margin: 0 !important;
    padding: 0 !important;
    display: block !important;
}

.bnp-card-grid .item-product .image a,
.bnp-ajax-grid .item-product .image a,
.bnp-place-card .bnp-card-thumb a {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
}

.bnp-card-grid .item-product .image img,
.bnp-ajax-grid .item-product .image img,
.bnp-place-card .bnp-card-thumb img {
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    max-height: none !important;
    object-fit: cover !important;
    object-position: center !important;
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
    transition: transform 0.35s ease !important;
}

.bnp-card-grid .item-product:hover .image img,
.bnp-ajax-grid .item-product:hover .image img,
.bnp-place-card:hover .bnp-card-thumb img {
    transform: scale(1.05) !important;
}

.bnp-card-body {
    padding: 15px 16px 16px !important;
    display: flex !important;
    flex-direction: column !important;
    flex: 1 !important;
    justify-content: space-between !important;
}

.bnp-card-badge {
    display: inline-block;
    font-size: 11.5px;
    font-weight: 700;
    color: var(--bnp-primary);
    background: #eef5fb;
    padding: 3px 9px;
    border-radius: 6px;
    margin-bottom: 8px;
    width: fit-content;
    text-decoration: none !important;
}

.bnp-card-grid .item-product h3,
.bnp-ajax-grid .item-product h3,
.bnp-place-card h3 {
    margin: 0 0 8px !important;
    padding: 0 !important;
    font-size: 15.5px !important;
    line-height: 1.42 !important;
    font-weight: 700 !important;
    height: auto !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    text-align: left !important;
}

.bnp-card-grid .item-product h3 a,
.bnp-ajax-grid .item-product h3 a,
.bnp-place-card h3 a {
    color: var(--bnp-text) !important;
    text-decoration: none !important;
}

.bnp-card-grid .item-product h3 a:hover,
.bnp-ajax-grid .item-product h3 a:hover,
.bnp-place-card h3 a:hover {
    color: var(--bnp-primary) !important;
}

.bnp-card-excerpt {
    margin: 0 0 12px !important;
    font-size: 13px !important;
    line-height: 1.5 !important;
    color: var(--bnp-text-muted) !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
}

.bnp-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 10px;
    border-top: 1px dashed #e2e8f0;
    font-size: 12.5px;
    color: var(--bnp-text-muted);
}

.bnp-card-more {
    font-weight: 700;
    color: var(--bnp-primary) !important;
    text-decoration: none !important;
}

/* ==========================================================================
   EDITORIAL 3-COLUMN GRID (NEWS INDEX, SEARCH, LATEST GUIDES)
   ========================================================================== */
.bnp-editorial-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.bnp-article-card {
    background: var(--bnp-surface);
    border: 1px solid var(--bnp-border);
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: var(--bnp-shadow);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.bnp-article-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--bnp-shadow-hover);
}

.bnp-article-thumb {
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #e2e8f0;
    position: relative;
}

.bnp-article-thumb img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block;
    transition: transform 0.35s ease;
}

.bnp-article-card:hover .bnp-article-thumb img {
    transform: scale(1.05);
}

.bnp-article-body {
    padding: 18px 20px 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
    justify-content: space-between;
}

.bnp-article-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    color: var(--bnp-text-muted);
    margin-bottom: 8px;
}

.bnp-article-cat {
    font-weight: 700;
    color: var(--bnp-accent) !important;
    background: var(--bnp-accent-soft);
    padding: 3px 9px;
    border-radius: 6px;
    text-decoration: none !important;
}

.bnp-article-body h3 {
    margin: 0 0 10px;
    font-size: 17.5px;
    line-height: 1.4;
    font-weight: 700;
}

.bnp-article-body h3 a {
    color: var(--bnp-text) !important;
    text-decoration: none !important;
}

.bnp-article-body h3 a:hover {
    color: var(--bnp-primary) !important;
}

.bnp-article-body p {
    margin: 0 0 16px;
    font-size: 14px;
    line-height: 1.58;
    color: var(--bnp-text-muted);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.bnp-article-read {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13.5px;
    font-weight: 700;
    color: var(--bnp-primary) !important;
    text-decoration: none !important;
}

/* ==========================================================================
   ARTICLE DETAIL PAGE (#news-detail)
   ========================================================================== */
#news-detail {
    float: none !important;
    width: 100% !important;
    padding: 28px 0 50px !important;
}

.bnp-detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 32px;
    align-items: start;
}

.bnp-detail-main {
    background: var(--bnp-surface);
    border: 1px solid var(--bnp-border);
    border-radius: 18px;
    padding: 32px 36px;
    box-shadow: var(--bnp-shadow);
    min-width: 0;
}

.bnp-breadcrumb {
    display: block;
    font-size: 13px;
    color: var(--bnp-text-muted);
    margin-bottom: 16px;
}

.bnp-breadcrumb-list {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.bnp-breadcrumb-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    line-height: 1.45;
}

.bnp-breadcrumb a {
    color: var(--bnp-primary) !important;
    text-decoration: none !important;
    font-weight: 600;
    transition: color 0.15s ease;
}

.bnp-breadcrumb a:hover {
    color: var(--bnp-accent) !important;
    text-decoration: underline !important;
}

.bnp-breadcrumb-sep {
    color: #94a3b8;
    font-weight: 400;
    user-select: none;
}

.bnp-breadcrumb-current {
    color: var(--bnp-text-muted);
    font-weight: 500;
    max-width: 520px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.bnp-detail-main h1 {
    font-size: 30px !important;
    line-height: 1.3 !important;
    font-weight: 800 !important;
    color: var(--bnp-text) !important;
    margin: 0 0 14px !important;
}

.bnp-detail-lead {
    font-size: 16.5px;
    line-height: 1.65;
    color: #334155;
    background: #f8fafc;
    border-left: 4px solid var(--bnp-primary);
    padding: 14px 18px;
    border-radius: 0 10px 10px 0;
    margin: 0 0 20px;
}

.bnp-detail-sidebar {
    display: flex;
    flex-direction: column;
    gap: 24px;
    position: sticky;
    top: 94px;
}

.bnp-sidebar-box {
    background: var(--bnp-surface);
    border: 1px solid var(--bnp-border);
    border-radius: 16px;
    padding: 20px 22px;
    box-shadow: var(--bnp-shadow);
}

.bnp-sidebar-box h3.title {
    margin: 0 0 14px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--bnp-primary);
    font-size: 16px;
    font-weight: 800;
    color: var(--bnp-text);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.bnp-sidebar-cats {
    list-style: none;
    margin: 0;
    padding: 0;
}

.bnp-sidebar-cats li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px dashed var(--bnp-border);
    font-size: 14px;
}

.bnp-sidebar-cats li:last-child {
    border-bottom: none;
}

.bnp-sidebar-cats a {
    color: var(--bnp-text) !important;
    text-decoration: none !important;
    font-weight: 500;
}

.bnp-sidebar-cats a:hover {
    color: var(--bnp-primary) !important;
}

.bnp-sidebar-count {
    font-size: 12px;
    font-weight: 700;
    color: var(--bnp-primary);
    background: #eef5fb;
    padding: 2px 8px;
    border-radius: 999px;
}

.bnp-sidebar-news-item {
    display: flex;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px dashed var(--bnp-border);
}

.bnp-sidebar-news-item:last-child {
    border-bottom: none;
}

.bnp-sidebar-news-thumb {
    width: 78px;
    height: 58px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    background: #e2e8f0;
}

.bnp-sidebar-news-thumb img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}

.bnp-sidebar-news-info h4 {
    margin: 0 0 4px;
    font-size: 13.5px;
    line-height: 1.38;
    font-weight: 600;
}

.bnp-sidebar-news-info h4 a {
    color: var(--bnp-text) !important;
    text-decoration: none !important;
}

.bnp-sidebar-news-info h4 a:hover {
    color: var(--bnp-primary) !important;
}

.bnp-sidebar-news-info span {
    font-size: 12px;
    color: var(--bnp-text-muted);
}

/* ==========================================================================
   FOOTER (BẮC NINH PLUS EDITORIAL FOOTER)
   ========================================================================== */
.bnp-footer {
    background: #0f2338;
    color: rgba(255, 255, 255, 0.84);
    padding: 52px 0 28px;
    margin-top: 48px;
    clear: both;
}

.bnp-footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 32px;
    padding-bottom: 36px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.bnp-footer-brand {
    font-size: 22px;
    font-weight: 800;
    color: #fff !important;
    text-decoration: none !important;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 12px;
}

.bnp-footer-about h3 {
    margin: 0 0 10px;
    font-size: 17px;
    color: #fde68a;
}

.bnp-footer-about p {
    font-size: 14px;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.76);
    margin: 0 0 10px;
}

.bnp-footer-col h4 {
    margin: 0 0 14px;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #fff;
}

.bnp-footer-col ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.bnp-footer-col li {
    margin-bottom: 9px;
}

.bnp-footer-col a {
    color: rgba(255, 255, 255, 0.76) !important;
    text-decoration: none !important;
    font-size: 14px;
    transition: color 0.15s;
}

.bnp-footer-col a:hover {
    color: #fff !important;
    text-decoration: underline !important;
}

.bnp-footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    padding-top: 22px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.65);
}

.bnp-footer-bottom a {
    color: rgba(255, 255, 255, 0.85) !important;
    text-decoration: none !important;
    margin-left: 14px;
}

/* ==========================================================================
   RESPONSIVE BREAKPOINTS
   ========================================================================== */
@media (max-width: 1024px) {
    .bnp-hero-grid {
        grid-template-columns: 1fr;
    }
    .bnp-topic-grid,
    .bnp-card-grid,
    .bnp-ajax-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
    .bnp-editorial-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .bnp-detail-layout {
        grid-template-columns: 1fr;
    }
    .bnp-footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 767px) {
    .bnp-header-top,
    .bnp-nav,
    .bnp-header-search {
        display: none;
    }
    .bnp-mobile-menu {
        display: block;
    }
    .bnp-mobile-menu summary {
        list-style: none;
        padding: 8px 14px;
        border: 1px solid var(--bnp-border);
        border-radius: 8px;
        font-weight: 700;
        font-size: 14px;
        cursor: pointer;
    }
    .bnp-mobile-drawer {
        position: absolute;
        left: 0;
        right: 0;
        top: 100%;
        background: #fff;
        border-bottom: 1px solid var(--bnp-border);
        padding: 16px 20px;
        box-shadow: 0 14px 28px rgba(0, 0, 0, 0.12);
    }
    .bnp-mobile-drawer a {
        display: block;
        padding: 8px 0;
        font-weight: 600;
        color: var(--bnp-text) !important;
        text-decoration: none !important;
        border-bottom: 1px dashed var(--bnp-border);
    }
    .bnp-hero-card {
        padding: 24px 20px;
    }
    .bnp-hero-card h1 {
        font-size: 26px;
    }
    .bnp-search-bar {
        grid-template-columns: 1fr;
    }
    .bnp-search-field {
        border-right: none;
        border-bottom: 1px solid #e2e8f0;
        padding-bottom: 8px;
    }
    .bnp-search-submit {
        padding: 12px;
    }
    .bnp-topic-grid,
    .bnp-card-grid,
    .bnp-ajax-grid,
    .bnp-editorial-grid,
    .bnp-footer-grid {
        grid-template-columns: 1fr !important;
    }
    .bnp-detail-main {
        padding: 20px 18px;
    }
}

/* ==========================================================================
   PAGINATION (COMPACT WINDOWED PAGINATION)
   ========================================================================== */
.bnp-pagination-nav {
    display: flex;
    justify-content: center;
    width: 100%;
    margin: 8px 0 0;
}

ul.pagination.bnp-pagination {
    display: inline-flex !important;
    align-items: center !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    gap: 8px !important;
    list-style: none !important;
    margin: 0 !important;
    padding: 8px 12px !important;
    background: #fff !important;
    border: 1px solid var(--bnp-border) !important;
    border-radius: 14px !important;
    box-shadow: 0 6px 20px -8px rgba(15, 34, 58, 0.08) !important;
    float: none !important;
    width: auto !important;
}

ul.pagination.bnp-pagination > li.bnp-page-item {
    display: inline-flex !important;
    margin: 0 !important;
    padding: 0 !important;
    float: none !important;
    border: none !important;
    background: transparent !important;
}

ul.pagination.bnp-pagination > li.bnp-page-item > a,
ul.pagination.bnp-pagination > li.bnp-page-item > span {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    min-width: 40px !important;
    height: 40px !important;
    padding: 0 12px !important;
    margin: 0 !important;
    border-radius: 10px !important;
    border: 1px solid transparent !important;
    background: transparent !important;
    color: var(--bnp-text) !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    line-height: 1 !important;
    text-decoration: none !important;
    transition: all 0.16s ease !important;
    float: none !important;
}

ul.pagination.bnp-pagination > li.bnp-page-item > a:hover {
    background: #eef5fb !important;
    border-color: #cde0f0 !important;
    color: var(--bnp-primary) !important;
}

ul.pagination.bnp-pagination > li.bnp-page-item.active > a,
ul.pagination.bnp-pagination > li.bnp-page-item.active > span {
    background: var(--bnp-primary) !important;
    border-color: var(--bnp-primary) !important;
    color: #fff !important;
    box-shadow: 0 4px 10px rgba(15, 76, 129, 0.25) !important;
}

ul.pagination.bnp-pagination > li.bnp-page-item.disabled > span {
    color: #94a3b8 !important;
    cursor: default !important;
    background: transparent !important;
}

ul.pagination.bnp-pagination > li.bnp-page-item.bnp-page-dots > span {
    min-width: 28px !important;
    padding: 0 4px !important;
    color: #64748b !important;
    letter-spacing: 1px;
}

/* ==========================================================================
   3-COLUMN SEARCH BAR & LIVE AUTOCOMPLETE SUGGESTIONS
   ========================================================================== */
.bnp-search-bar.bnp-search-bar-3col {
    grid-template-columns: 1.4fr 0.9fr 0.9fr auto;
    position: relative;
}

.bnp-header-search {
    position: relative;
}

.bnp-live-suggest {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 8px);
    background: #fff;
    border: 1px solid #cbd5e1;
    border-radius: 14px;
    box-shadow: 0 20px 40px -12px rgba(15, 34, 58, 0.22);
    z-index: 1200;
    padding: 12px;
    max-height: 420px;
    overflow-y: auto;
    text-align: left;
    color: var(--bnp-text);
}

.bnp-header-search .bnp-live-suggest {
    width: 380px;
    left: auto;
    right: 0;
}

.bnp-suggest-group-title {
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #64748b;
    padding: 4px 8px 6px;
    margin: 0;
}

.bnp-suggest-cats {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 0 8px 10px;
    border-bottom: 1px dashed #e2e8f0;
    margin-bottom: 8px;
}

.bnp-suggest-cats a {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 999px;
    background: #eef5fb;
    color: var(--bnp-primary) !important;
    font-size: 12.5px;
    font-weight: 700;
    text-decoration: none !important;
}

.bnp-suggest-cats a:hover {
    background: var(--bnp-primary);
    color: #fff !important;
}

.bnp-suggest-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px;
    border-radius: 10px;
    text-decoration: none !important;
    transition: background 0.15s;
}

.bnp-suggest-item:hover {
    background: #f1f5f9;
}

.bnp-suggest-thumb {
    width: 56px;
    height: 42px;
    border-radius: 7px;
    object-fit: cover;
    flex-shrink: 0;
    background: #e2e8f0;
}

.bnp-suggest-info {
    min-width: 0;
    flex: 1;
}

.bnp-suggest-info strong {
    display: block;
    font-size: 13.5px;
    font-weight: 700;
    color: #16202c;
    line-height: 1.35;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.bnp-suggest-info span {
    display: inline-block;
    font-size: 11.5px;
    font-weight: 600;
    color: var(--bnp-accent);
}

.bnp-suggest-more {
    display: block;
    text-align: center;
    padding: 9px 12px;
    margin-top: 6px;
    border-top: 1px solid #f1f5f9;
    font-size: 13px;
    font-weight: 700;
    color: var(--bnp-primary) !important;
    text-decoration: none !important;
}

.bnp-suggest-more:hover {
    background: #f8fafc;
    border-radius: 8px;
}

@media (max-width: 900px) {
    .bnp-search-bar.bnp-search-bar-3col {
        grid-template-columns: 1fr;
    }
}

