html { scroll-behavior: smooth; }

/* ── Desktop / Mobile toggle ── */
@media only screen and (max-width: 768px) {
    .v2b-desktop { display: none !important; }
    .v2b-mobile  { display: block !important; }
}
@media only screen and (min-width: 769px) {
    .v2b-mobile  { display: none !important; }
    .v2b-desktop { display: block !important; }
}

/* ── Load More ── */
.v2b-load-more-wrap { text-align: center; margin-top: 8px; padding-bottom: 24px; }
.v2b-load-more-btn {
    padding: 10px 36px; border-radius: 6px;
    background: #1e3a5f; color: #fff;
    border: none; cursor: pointer;
    font-size: 14px; font-weight: 600;
    transition: background .2s;
}
.v2b-load-more-btn:hover    { background: #2563eb; }
.v2b-load-more-btn:disabled { opacity: .6; cursor: not-allowed; }

/* ── Grid fade-in ── */
#v2b-grid { transition: opacity .35s ease; }

/* ── Empty state ── */
.v2b-empty { color: #9ca3af; padding: 40px 0; font-size: 14px; text-align: center; }

/* ─────────────────────────────────────────────────
   Right panel inner structure
───────────────────────────────────────────────── */
.v2b-panel-accent {
    display: inline-block;
    width: 4px; height: 20px;
    background: rgba(255,255,255,0.55);
    border-radius: 4px;
    flex-shrink: 0;
}
.resc-main-inner .v2b-sub-wrap {
    border-top: none;
}
.v2b-grid-scroll {
    padding: 20px 20px 8px;
    background: #f8fafc;
}
.v2b-grid-row {
    margin-left: -8px;
    margin-right: -8px;
}
.v2b-grid-row > [class*="col-"] {
    padding-left: 8px;
    padding-right: 8px;
}

/* ─────────────────────────────────────────────────
   Sidebar & panel header overrides (remove navy bg, green text)
───────────────────────────────────────────────── */
.v2b-col-sidebar .resc-sidebar-title {
    background: transparent;
    color: #28a745;
    border-bottom: 8px solid #fff;
    font-size: 15px;
}
.v2b-col-sidebar .resc-sidebar-title i {
    color: #28a745;
    opacity: 1;
}
.v2b-col-content .resc-panel-header {
    background: transparent;
}
.v2b-col-content .resc-panel-title {
    color: #1f5183;
}
.v2b-col-content .v2b-panel-accent {
    background: #15416e;
}

/* ─────────────────────────────────────────────────
   Left sidebar / right content gap
───────────────────────────────────────────────── */
.v2b-col-sidebar {
    padding-right: 14px !important;
}
.v2b-col-sidebar .resc-sidebar-inner {
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: #e3e5ea;
}
.v2b-col-sidebar .resc-cat-link {
    color: #333;
    background: transparent;
    border-left-color: transparent;
}
.v2b-col-sidebar .resc-cat-link:hover {
    background: rgba(0,0,0,0.08);
    color: #15416e;
}
.v2b-col-sidebar .resc-cat-link.active {
    background: #15416e;
    color: #fff;
    font-weight: 600;
    border-left-color: #15416e;
}
.v2b-col-sidebar .resc-cat-list {
    flex: 1;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 transparent;
}
.v2b-col-sidebar .resc-cat-list::-webkit-scrollbar { width: 4px; }
.v2b-col-sidebar .resc-cat-list::-webkit-scrollbar-track { background: transparent; }
.v2b-col-sidebar .resc-cat-list::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 4px; }

.v2b-col-content {
    padding-left: 0 !important;
    padding-right: 0 !important;
}

/* ─────────────────────────────────────────────────
   Subcategory scroll bar
───────────────────────────────────────────────── */
.v2b-sub-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: #f8fafc;
    border-top: 1px solid #e9eef4;
    border-bottom: 1px solid #e9eef4;
}

.v2b-sub-scroll-area {
    position: relative;
    flex: 1;
    min-width: 0;
    overflow: hidden;
}
.v2b-sub-scroll-area::before,
.v2b-sub-scroll-area::after {
    content: '';
    position: absolute;
    top: 0; bottom: 0;
    width: 32px;
    z-index: 2;
    pointer-events: none;
    transition: opacity .3s ease;
}

.v2b-sub-bar {
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 5px 10px;
    min-height: 42px;
    align-items: center;
    will-change: scroll-position;
}
.v2b-sub-bar::-webkit-scrollbar { display: none; }
.v2b-sub-bar-hint {
    font-size: 12px; color: #94a3b8; font-style: italic; white-space: nowrap;
}

/* ── Arrow scroll buttons ── */
.v2b-sub-arrow {
    width: 34px; height: 34px;
    border-radius: 10px;
    border: 1.5px solid #28a745;
    background: #28a745;
    box-shadow: 0 2px 8px rgba(40,167,69,.25);
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    color: #fff;
    font-size: 13px;
    transition: background .22s ease, border-color .22s ease,
                box-shadow .22s ease, transform .15s ease, color .22s ease;
    user-select: none;
}
.v2b-sub-arrow:hover {
    background: #a8f0c6;
    border-color: #a8f0c6;
    color: #0d7a3e;
    box-shadow: 0 4px 14px rgba(40,167,69,.20);
    transform: scale(1.08);
}
.v2b-sub-arrow:active { transform: scale(0.95); }
.v2b-sub-arrow:disabled {
    opacity: .28; cursor: not-allowed;
    pointer-events: none; box-shadow: none; transform: none;
}

/* ── Sub-category buttons ── */
.v2b-sub-btn {
    padding: 7px 16px;
    border-radius: 7px;
    border: 1.5px solid #e2e8f0;
    background: #fff;
    color: #4b5563;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
    line-height: 1.3;
    box-shadow: 0 1px 4px rgba(0,0,0,.05);
    transition: background .2s ease, border-color .2s ease,
                color .2s ease, box-shadow .2s ease, transform .15s ease;
    position: relative;
    min-width: 140px;
    text-align: center;
}
.v2b-sub-btn:hover {
    background: #f0f6ff;
    border-color: #93c5fd;
    color: #1e3a5f;
    box-shadow: 0 2px 8px rgba(30,58,95,.10);
    transform: translateY(-1px);
}
.v2b-sub-btn:active { transform: translateY(0); }
.v2b-sub-btn.active {
    background: #28a745;
    border-color: #28a745;
    color: #fff;
    font-weight: 500;
    /* box-shadow: 0 4px 12px rgba(40,167,69,.30); */
    transform: translateY(-1px);
}

/* ─────────────────────────────────────────────────
   Blog card
───────────────────────────────────────────────── */
.v2b-reg-card {
    display: flex; flex-direction: column;
    border-radius: 12px; overflow: hidden;
    text-decoration: none; color: inherit;
    background: #fff;
    box-shadow: 0 2px 12px rgba(0,0,0,.07);
    height: 100%;
}
.v2b-reg-card:hover { color: inherit; text-decoration: none; }
.v2b-reg-img-wrap {
    position: relative; height: 185px; overflow: hidden; flex-shrink: 0;
}
.v2b-reg-img-wrap img {
    width: 100%; height: 100%; object-fit: cover; display: block;
}
.v2b-reg-no-img {
    width: 100%; height: 100%; background: #e5e7eb;
    display: flex; align-items: center; justify-content: center;
    color: #9ca3af; font-size: 12px;
}
.v2b-reg-overlay {
    position: absolute;
    inset: 0;
    background: rgba(31, 81, 131, 0.86);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px;
    opacity: 0;
    transform: translateY(100%);
    transition: opacity 0.35s ease, transform 0.35s ease;
}
.v2b-reg-card:hover .v2b-reg-overlay {
    opacity: 1;
    transform: translateY(0);
}
.v2b-reg-overlay-desc {
    color: #fff;
    font-size: 12px;
    line-height: 1.55;
    text-align: center;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.v2b-reg-overlay-btn {
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    border: 2px solid rgba(255,255,255,0.8);
    padding: 5px 16px;
    border-radius: 20px;
    letter-spacing: 0.3px;
    flex-shrink: 0;
}
.v2b-reg-img-gradient {
    position: absolute; bottom: 0; left: 0; right: 0; height: 60px;
    background: linear-gradient(to top, rgba(255,255,255,.95), transparent);
    pointer-events: none;
}
.v2b-reg-body {
    padding: 14px 16px 16px;
    display: flex; flex-direction: column; flex: 1;
}
.v2b-reg-title {
    font-size: 15px; font-weight: 600; color: #1e293b;
    line-height: 1.45; margin: 0 0 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}
.v2b-reg-meta {
    display: flex; align-items: center; gap: 6px;
    font-size: 11px; color: #94a3b8;
    margin-top: auto; padding-top: 8px;
    border-top: 1px solid #f1f5f9;
}
.v2b-reg-meta-dot {
    width: 3px; height: 3px;
    background: #cbd5e1; border-radius: 50%; flex-shrink: 0;
}
.v2b-reg-readmore {
    margin-left: auto;
    display: inline-flex; align-items: center; gap: 4px;
    font-size: 11px; font-weight: 600;
    color: #1e3a5f;
    background: #eef2f9;
    border: 1px solid #d0daea;
    padding: 4px 10px;
    border-radius: 20px;
    white-space: nowrap;
    transition: background .2s, color .2s, border-color .2s;
}
.v2b-reg-card:hover .v2b-reg-readmore {
    background: #1e3a5f;
    color: #fff;
    border-color: #1e3a5f;
}

/* ─────────────────────────────────────────────────
   Mobile
───────────────────────────────────────────────── */
.v2b-mob-cat-header {
    cursor: pointer; padding: 14px 16px;
    background: #1f5183; color: #fff;
    display: flex; justify-content: space-between; align-items: center;
    font-weight: 600; font-size: 14px;
}
.v2b-mob-cat-header.open { background: #193a64; }
.v2b-mob-cat-body { display: none; background: #f8f9fa; }
.v2b-mob-cat-body.open { display: block; }

.v2b-mob-sub-btns {
    display: flex; flex-wrap: wrap; gap: 8px;
    padding: 12px 14px;
    background: #fff;
    border-bottom: 1px solid #e2e8f0;
}
.v2b-mob-sub-btn {
    padding: 6px 14px; border-radius: 20px;
    border: 1.5px solid #cbd5e1; background: #fff;
    color: #64748b; font-size: 12px; font-weight: 500;
    cursor: pointer; transition: all .2s;
}
.v2b-mob-sub-btn.active {
    background: #28a745; border-color: #28a745; color: #fff; font-weight: 600;
}
.v2b-mob-blogs { padding: 12px; }
.v2b-mob-card {
    background: #fff; border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,.08);
    overflow: hidden; margin-bottom: 14px;
    text-decoration: none; color: inherit; display: block;
}
.v2b-mob-card img { width: 100%; height: 170px; object-fit: cover; display: block; }
.v2b-mob-img-placeholder { width:100%; height:170px; background:#e5e7eb; display:flex; align-items:center; justify-content:center; color:#9ca3af; font-size:12px; }
.v2b-mob-card-body { padding: 12px; }
.v2b-mob-card-title { font-size: 14px; font-weight: 600; color: #1e3a5f; line-height: 1.4; }
.v2b-mob-card-desc  { font-size: 12px; color: #6b7280; margin-top: 4px; line-height: 1.4; }
.v2b-mob-card-meta  { display:flex; align-items:center; gap:5px; font-size:11px; color:#94a3b8; margin-top:5px; }
.v2b-mob-card-meta-dot { width:3px; height:3px; background:#cbd5e1; border-radius:50%; flex-shrink:0; }
.v2b-mob-readmore   { font-size: 12px; font-weight: 600; color: #2563eb; margin-top: 6px; display: block; }
