/* ==========================================================================
   Blog Archive Styles
   ========================================================================== */
   .vp-blog-pagination h2 {
    display: none;
}
/* ==========================================================================
   Breadcrumb Override for Blog
   ========================================================================== */
   .vp-blog-breadcrumb {
    background: var(--Secondary-2);
}

/* ==========================================================================
   Section 1: Hero
   ========================================================================== */
.vp-blog-hero-section {
    background: var(--Secondary-2);
}

.vp-blog-hero-bg {
    background: linear-gradient(180deg, var(--Secondary-2) 60%, var(--Neutral-200) 60%);
}

.vp-blog-hero {
    gap: 60px;
    padding-bottom: 40px;
    align-items: flex-start;
}

.vp-blog-hero-text {
    flex: 1;
    max-width: 500px;
    padding-top: 20px;
}

.vp-blog-hero-text .vp-title-hero {
    min-width: auto;
}

.vp-blog-hero-text .vp-title-hero svg {
    width: 100%;
    max-width: 338px;
}

.vp-blog-hero-desc {
    color: var(--Neutral-600);
    font-size: 18px;
    font-weight: 400;
    line-height: 148%;
    margin-top: 20px;
}

/* Featured Post Wrapper */
.vp-blog-featured-wrapper {
    position: relative;
    flex: 1;
    max-width: 700px;
}

.vp-blog-featured-img {
    border-radius: var(--24);
    overflow: hidden;
    max-height: 400px;
}

.vp-blog-featured-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Featured Post Card */
.vp-blog-featured-card {
    position: absolute;
    bottom: -60px;
    right: 0;
    background: var(--Neutral-100);
    border-radius: var(--24) 0 0 var(--24);
    border: 1px solid var(--Neutral-300);
    box-shadow: 0 4px 12px 0 rgba(0, 0, 0, 0.02);
    padding: 32px;
    max-width: 500px;
    width: 90%;
}

.vp-blog-category-badge {
    display: inline-block;
    padding: 12px 16px;
    border-radius: var(--12);
    border: 1px solid var(--Primary-primary);
    background: var(--Primary-3);
    color: var(--Primary-primary);
    font-size: 16px;
    font-weight: 700;
    line-height: 140%;
    margin-bottom: 16px;
}

.vp-blog-featured-title {
    font-size: 28px;
    font-weight: 500;
    line-height: 132%;
    color: var(--Neutral-800);
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--Neutral-300);
}

.vp-blog-featured-title a {
    color: inherit;
    text-decoration: none;
}

.vp-blog-featured-title a:hover {
    color: var(--Primary-primary);
}

.vp-blog-featured-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.vp-blog-date {
    color: var(--Neutral-600);
    font-size: 16px;
    font-weight: 500;
    line-height: 140%;
}

/* ==========================================================================
   Section 2: Posts Grid
   ========================================================================== */
.vp-blog-posts-section {
    background: var(--Neutral-100);
    padding: 100px 0;
}

/* Section Title */
.vp-blog-section-title {
    margin-bottom: 44px;
}

.vp-blog-section-title h2 {
    display: inline;
}

.vp-blog-section-title svg {
    display: block;
    max-width: 280px;
}

/* Filters Row */
.vp-blog-filters-row {
    display: flex;
    justify-content: space-between; 
    gap: 24px;
    margin-bottom: 44px;
}

.vp-blog-filters {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}

.vp-filter-btn {
    display: flex;
    height: 64px;
    padding: 20px 24px;
    justify-content: center;
    align-items: center;
    gap: 10px;
    border-radius: var(--12);
    border: 1px solid var(--Neutral-300);
    background: var(--Neutral-100);
    color: var(--Neutral-800);
    font-size: 18px;
    font-weight: 500;
    line-height: 140%;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.vp-filter-btn:hover {
    border-color: var(--Primary-primary);
    color: var(--Primary-primary);
}

.vp-filter-btn.vp-active {
    background: var(--Primary-primary);
    border-color: var(--Primary-primary);
    color: var(--Neutral-100);
}

/* Search Bar */
.vp-blog-search {
    max-width: 460px;
    width: 100%;
}

.vp-search-form {
    display: flex;
    border-radius: var(--16);
    border: 1px solid var(--Neutral-400);
    background: var(--Neutral-100);
    box-shadow: 0 4px 12px 0 rgba(0, 0, 0, 0.02);
    overflow: hidden;
}

.vp-search-form input {
    flex: 1;
    padding: 20px;
    border: none;
    background: transparent;
    font-size: 16px;
    color: var(--Neutral-800);
    outline: none;
}

.vp-search-form input::placeholder {
    color: var(--Neutral-500);
}

.vp-search-form button {
    padding: 20px;
    border: none;
    border-radius: var(--12);
    background: var(--Primary-primary);
    color: var(--Neutral-100);
    font-size: 18px;
    font-weight: 700;
    line-height: 140%;
    cursor: pointer;
    margin: 3px;
    transition: background 0.3s ease;
}

.vp-search-form button:hover {
    background: var(--Primary-dark, #7340c4);
}

/* Posts Grid */
.vp-blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

/* Blog Card */
.vp-blog-card {
    border-radius: var(--24);
    border: 1px solid var(--Neutral-300);
    background: var(--Neutral-100);
    padding: 20px;
    box-shadow: 0 4px 12px 0 rgba(0, 0, 0, 0.02);
    display: flex;
    flex-direction: column;
    gap: 20px;
    transition: box-shadow 0.3s ease;
}

.vp-blog-card:hover {
    box-shadow: 0 8px 24px 0 rgba(0, 0, 0, 0.08);
}

.vp-blog-card-img {
    position: relative;
}

.vp-blog-card-img img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: var(--20);
    display: block;
}

.vp-blog-card-category {
    position: absolute;
    bottom: -12px;
    left: 16px;
    padding: 12px 16px;
    border-radius: var(--12);
    border: 1px solid var(--Primary-primary);
    background: var(--Primary-3);
    color: var(--Primary-primary);
    font-size: 14px;
    font-weight: 700;
    line-height: 140%;
}

.vp-blog-card-title {
    font-size: 22px;
    font-weight: 600;
    line-height: 140%;
    color: var(--Neutral-800);
    margin-top: 8px;
}

.vp-blog-card-title a {
    color: inherit;
    text-decoration: none;
}

.vp-blog-card-title a:hover {
    color: var(--Primary-primary);
}

.vp-blog-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    border-top: 1px solid var(--Neutral-300);
    margin-top: auto;
}

.vp-blog-card-date {
    color: var(--Neutral-600);
    font-size: 18px;
    font-weight: 500;
    line-height: 140%;
}

/* Pagination */
.vp-blog-pagination {
    display: flex;
    justify-content: center;
    margin-top: 44px;
}

.vp-blog-pagination .nav-links {
    display: flex;
    gap: 8px;
    align-items: center;
}

.vp-blog-pagination .page-numbers {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 48px;
    height: 48px;
    padding: 12px 16px;
    border-radius: var(--12);
    border: 1px solid var(--Neutral-300);
    background: var(--Neutral-100);
    color: var(--Neutral-800);
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
}

.vp-blog-pagination .page-numbers:hover {
    border-color: var(--Primary-primary);
    color: var(--Primary-primary);
}

.vp-blog-pagination .page-numbers.current {
    background: var(--Primary-primary);
    border-color: var(--Primary-primary);
    color: var(--Neutral-100);
}

.vp-blog-pagination .page-numbers.prev,
.vp-blog-pagination .page-numbers.next {
    padding: 12px;
}

.vp-blog-pagination .page-numbers svg {
    width: 24px;
    height: 24px;
}

/* No Posts */
.vp-blog-no-posts {
    text-align: center;
    padding: 60px 20px;
    color: var(--Neutral-600);
    font-size: 18px;
}

/* Featured card without image */
.vp-blog-featured-card.vp-no-image {
    position: relative;
    bottom: 0;
    border-radius: var(--24);
}

/* Card category badge without image */
.vp-blog-card-category.vp-no-image {
    position: relative;
    bottom: 0;
    left: 0;
    margin-bottom: 8px;
}

/* ==========================================================================
   Responsive - Tablet
   ========================================================================== */
@media (max-width: 1024px) {
    .vp-blog-hero {
        flex-direction: column;
        gap: 40px;
    }

    .vp-blog-hero-text {
        max-width: 100%;
        text-align: center;
    }

    .vp-blog-hero-text .vp-hero-content {
        align-items: center;
    }

    .vp-blog-featured-wrapper {
        max-width: 100%;
        width: 100%;
    }

    .vp-blog-featured-card {
        position: relative;
        bottom: -30px;
        max-width: 90%;
        margin: 0 auto;
        border-radius: var(--24);
    }

    .vp-blog-hero-bg {
        background: linear-gradient(180deg, var(--Secondary-2) 50%, var(--Neutral-200) 50%);
    }

    .vp-blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .vp-blog-filters-row {
        flex-direction: column;
        align-items: stretch;
    }

    .vp-blog-search {
        max-width: 100%;
        order: -1;
    }
}

/* ==========================================================================
   Responsive - Mobile
   ========================================================================== */
@media (max-width: 768px) {
    .vp-blog-hero-text .vp-SH-display-1 {
        font-size: 36px;
    }

    .vp-blog-hero-desc {
        font-size: 16px;
    }

    .vp-blog-featured-img {
        max-height: 240px;
    }

    .vp-blog-featured-card {
        padding: 24px;
        max-width: 95%;
    }

    .vp-blog-featured-title {
        font-size: 22px;
        margin-bottom: 16px;
        padding-bottom: 16px;
    }

    .vp-blog-posts-section {
        padding: 60px 0;
    }

    .vp-blog-section-title {
        text-align: center;
    }

    .vp-blog-section-title svg {
        margin: 0 auto;
    }

    .vp-blog-filters {
        overflow-x: auto;
        flex-wrap: nowrap;
        gap: 16px;
        padding-bottom: 8px;
    }

    .vp-filter-btn {
        height: 54px;
        padding: 16px 20px;
        font-size: 16px;
        white-space: nowrap;
        flex-shrink: 0;
    }

    .vp-blog-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .vp-blog-card {
        padding: 16px;
        gap: 16px;
    }

    .vp-blog-card-title {
        font-size: 20px;
    }

    .vp-blog-card-footer {
        padding-top: 16px;
    }

    .vp-blog-pagination .page-numbers {
        min-width: 40px;
        height: 40px;
        padding: 8px 12px;
        font-size: 14px;
    }
    .vp-blog-card-date { 
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .vp-blog-hero-text .vp-SH-display-1 {
        font-size: 28px;
    }

    .vp-blog-featured-meta {
        flex-direction: column;
        gap: 16px;
        align-items: flex-start;
    }

    .vp-blog-card-img img {
        height: 180px;
    }
}