/* ===========================
   Container / Layout
   =========================== */
.blog .site-content {
    background: white;
}

.vi-arch-cat-mobile {
    display: block;
}

.vi-arch-cat-desktop {
    display: none;
}

@media (min-width: 992px) {
    .vi-arch-cat-mobile {
        display: none;
    }

    .vi-arch-cat-desktop {
        display: block;
    }
}

.vi-arch-container {
    max-width: 1200px;
    margin-inline: auto;
    padding-inline: 16px;
}

.vi-arch-hero {
    padding-top: 40px;
}

.vi-arch-wrap {
    padding-block: 40px;
}

/* Two-column layout (sidebar + main) */
.vi-arch-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

@media (min-width: 992px) {
    .vi-arch-layout {
        grid-template-columns: 275px 1fr;
        align-items: start;
    }
}

/* ===========================
     Header / Typography
     =========================== */
.vi-arch-breadcrumbs {
    text-align: center;
    font-weight: 500;
    line-height: 1.5;
    font-size: clamp(12px, 0.8rem + 0.2vw, 14px);
    color: #05559F;
    margin: 0 0 5px 0;
}

.vi-arch-container h2.vi-arch-title {
    text-align: center;
    color: #181B20 !important;
    font-size: clamp(24px, 1.2rem + 2.2vw, 40px);
    line-height: 1.3;
    max-width: 700px;
    margin: 0 auto;
}

/* ===========================
     Sidebar: Category Card & Search
     =========================== */
.vi-arch-cat-card {
    border: 1px solid rgba(0, 0, 0, .06);
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
}

.vi-arch-cat-card__header {
    background: #f8fafc;
    padding: 14px 16px;
    font-weight: 600;
}

.vi-arch-cat-card__body {
    padding: 16px;
}

.vi-arch-sticky-sidebar {
    position: sticky;
    top: 20px;
}

.vi-arch-search {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    margin-bottom: 16px;
}

.vi-arch-input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #d4dae0;
    border-radius: 8px;
    font-size: 16px;
    outline: none;
}

.vi-arch-input:focus {
    border-color: #083156;
    box-shadow: 0 0 0 3px rgba(8, 49, 86, .08);
}

.vi-arch-button {
    width: 100%;
    appearance: none;
    cursor: pointer;
    background: transparent;
    color: #083156;
    border: 1px solid #083156;
    border-radius: 999px;
    padding: 10px 14px;
    font-weight: 600;
    transition: background .2s ease, color .2s ease;
}

.vi-arch-button:hover {
    background: #083156;
    color: #fff;
}

/* Category list */
.vi-arch-list {
    display: grid;
    gap: 6px;
}

.vi-arch-list-item {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    padding: 10px 12px;
    border-radius: 10px;
    color: #021b32;
    background: transparent;
    border: 0;
    transition: background 0.2s ease, color 0.2s ease;
}

.vi-arch-list-item:hover {
    background: #f3f6fa;
    color: #021b32;
}

.vi-arch-list-item.is-active {
    background: #eff6ff;
    color: #021b32;
    font-weight: 500;
}

.vi-arch-list-count {
    color: inherit;
    font-size: 12px;
    opacity: .8;
}

/* ===========================
     Featured Block
     =========================== */
.vi-arch-featured-wrap {
    margin-bottom: 64px;
}

@media (max-width: 767px) {
    .vi-arch-featured-wrap {
        margin-bottom: 32px !important;
    }
}

.vi-arch-featured-card {
    display: grid;
    gap: 20px;
    align-items: center;
    grid-template-columns: 1fr;
    background: transparent;
    border: 0;
}

.vi-arch-featured-media {
    width: 100%;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 10px 28px rgba(2, 27, 50, .18);
}

.vi-arch-featured-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.vi-arch-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.vi-arch-badge-cat {
    display: inline-block;
    background: #eff6ff;
    color: #05559f;
    font-weight: 600;
    border-radius: 999px;
    padding: 4px 10px;
    font-size: 12px;
    text-decoration: none;
}


.vi-arch-featured-heading {
    margin: 0;
    font-size: clamp(20px, 1.1rem + 1.2vw, 28px);
    line-height: 1.3;
}

.vi-arch-featured-title {
    color: #021b32;
    text-decoration: none;
    font-size: clamp(22px, 1.1rem + 1.6vw, 34px);
    line-height: 1.3;
    font-weight: 600;
    line-height: 130%;
}

.vi-arch-featured-meta {
    color: #6c757d;
    font-size: 14px;
    margin-top: 6px;
}

.vi-arch-featured-excerpt {
    color: #656a76;
    max-width: 56ch;
    margin: 10px 0;
    font-size: clamp(16px, 1rem + 1vw, 18px);
    line-height: 1.5;
    /* keep the breathing room */
    font-weight: 500;
}

.vi-arch-featured-readmore {
    display: inline-block;
    font-weight: 600;
    font-size: 16px;
    text-decoration: none;
    color: #05559F;
}

/* Make featured media + text side-by-side on large screens */
@media (min-width: 992px) {
    .vi-arch-featured-card {
        grid-template-columns: 0.9fr 1.1fr;
        align-items: stretch;
        gap: 50px;
        /* balanced */
    }

    .vi-arch-featured-card> :last-child {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }
}

/* ===========================
     Posts Grid
     =========================== */
.vi-arch-posts-grid .vi-arch-grid-target {
    display: grid;
    gap: 24px;
    grid-template-columns: 1fr;
    /* mobile */
    align-items: stretch;
}

@media (min-width: 768px) {
    .vi-arch-posts-grid .vi-arch-grid-target {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ===========================
     Post Card
     =========================== */
.vi-arch-postcard {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #fff;
    overflow: hidden;
    transition: box-shadow 0.25s ease, transform 0.25s ease,
        border-color 0.25s ease;
    will-change: transform;
}

.vi-arch-postcard:hover,
.vi-arch-postcard:focus-within {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(2, 27, 50, .12);
    border-color: rgba(2, 27, 50, .18);
}

.vi-arch-post-thumb {
    aspect-ratio: 16 / 10;
    background: #f3f6fa;
}

.vi-arch-post-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 16px;
}

.vi-arch-post-body {
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding: 14px;
    flex: 1 1 auto;
}

.vi-arch-post-meta {
    color: #6c757d;
    font-size: 13px;
    margin: 0;
}

.vi-arch-post-body h3.vi-arch-post-title {
    color: #021B32 !important;
    text-decoration: none;
    font-size: 18px;
    line-height: 150%;
    height: 50px;
}

/* Override on mobile (for example screens <= 767px) */
@media (max-width: 767px) {
    .vi-arch-post-body h3.vi-arch-post-title {
        height: auto !important;
    }
}

.vi-arch-post-title-link {
    color: inherit;
    text-decoration: none;
}

.vi-arch-post-excerpt {
    color: #5b6b7a;
    margin: 0;
    font-size: 14px;
    line-height: 150%;
    letter-spacing: 0;
    color: #656A76;
}

input.vi-arch-input {
    max-height: 48px;
    border-radius: 12px;
    color: #f5f5f5;
    font-size: 16px;
    padding: 12px;
}

/* Utility */
.vi-arch-line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ===========================
     Pagination (WP .page-numbers)
     =========================== */
.vi-arch-pagination .pagination,
.vi-arch-pagination .nav-links {
    display: flex;
    gap: 8px;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
}

.vi-arch-pagination .page-numbers {
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    border: 1px solid rgba(0, 0, 0, .12);
    background: #fff;
    color: #0F243A;
    border-radius: 8px;
    font-weight: 600;
    line-height: 36px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background-color .2s ease, border-color .2s ease, color .2s ease, box-shadow .2s ease;
}

.vi-arch-pagination .page-numbers:hover,
.vi-arch-pagination .page-numbers:focus {
    border-color: rgba(0, 0, 0, .2);
    box-shadow: 0 2px 6px rgba(0, 0, 0, .06);
    outline: 0;
}

.vi-arch-pagination .page-numbers.current {
    background: #00A7C0;
    color: #fff;
    border-color: #00A7C0;
}

.vi-arch-pagination .page-numbers.dots {
    color: #94A3B8;
    background: transparent;
    border-color: transparent;
}

/* ===========================
     Empty state
     =========================== */
.vi-arch-empty {
    text-align: center;
    padding: 64px 0;
}

.vi-arch-empty-title {
    margin: 0 0 8px 0;
}

.vi-arch-empty-text {
    color: #6c757d;
    margin: 0 0 14px 0;
}

.vi-arch-empty-button {
    display: inline-block;
    border: 1px solid #083156;
    color: #083156;
    padding: 10px 14px;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 600;
}

.vi-arch-empty-button:hover {
    background: #083156;
    color: #fff;
}