/* Blog Page Styles */
.vc-blog-page {
    background-color: #ffffff;
    padding-bottom: 5rem;
}

/* ==========================================================================
   Header Section
   ========================================================================== */
.vc-blog-header {
    background: linear-gradient(135deg, #ffffff 0%, #d4e6f1 50%, #0b6dcb 100%);
    padding: 6rem 0 4rem;
    position: relative;
    border-bottom: 1px solid #eee;
}

.vc-blog-header__title {
    font-size: clamp(3.5rem, 8vw, 6rem);
    font-weight: 900;
    color: #0b6dcb;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-align: center;
    margin: 1.5rem 0;
}

.vc-blog-header__search-wrap {
    max-width: 500px;
    margin: 0 auto;
}

.vc-blog-search__input {
    width: 100%;
    padding: 1rem 1.5rem;
    border: none;
    border-radius: 50px;
    background: #ffffff;
    font-size: 1rem;
    outline: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: box-shadow 0.3s ease;
}

.vc-blog-search__input:focus {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

/* ==========================================================================
   Filter Bar
   ========================================================================== */
.vc-blog-filter-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
    margin-bottom: 2rem;
    border-bottom: 1px solid #f0f0f0;
}

.vc-blog-filter-bar__left {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
    /* for scrollbar breathing room */
}

/* Hide scrollbar for cleaner look on webkit */
.vc-blog-filter-bar__left::-webkit-scrollbar {
    display: none;
}

.vc-blog-filter-label {
    font-weight: 800;
    font-size: 0.95rem;
    color: #1a1a1a;
    text-transform: uppercase;
    letter-spacing: 1px;
    white-space: nowrap;
}

.vc-blog-categories-list {
    display: flex;
    gap: 0.75rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

.vc-blog-categories-list a {
    display: inline-block;
    padding: 0.6rem 1.5rem;
    background: #ffffff;
    border: 1px solid #666;
    border-radius: 50px;
    color: #333;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    white-space: nowrap;
    transition: all 0.3s ease;
}

.vc-blog-categories-list a:hover,
.vc-blog-categories-list a.is-active {
    background: #0b6dcb;
    color: #ffffff;
    border-color: #0b6dcb;
}

.vc-blog-view-toggle {
    display: flex;
    gap: 0.5rem;
}

.vc-view-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: #ccc;
    padding: 0.5rem;
    transition: color 0.3s ease;
}

.vc-view-btn.is-active {
    color: #0b6dcb;
}

/* ==========================================================================
   Main Grid Layout
   ========================================================================== */
.vc-blog__grid {
    display: grid;
    gap: 3rem 2rem;
}

.vc-blog-view--grid {
    grid-template-columns: repeat(3, 1fr);
}

/* ==========================================================================
   Blog Cards
   ========================================================================== */
.vc-blog__card {
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
}

.vc-blog__card:hover {
    transform: translateY(-5px);
}

.vc-blog__media-wrapper {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.vc-blog__media img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.vc-blog__card:hover .vc-blog__media img {
    transform: scale(1.05);
}

.vc-blog__badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: #0b6dcb;
    color: #ffffff;
    padding: 0.4rem 1.2rem;
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: 50px;
    z-index: 2;
}

.vc-blog__content {
    padding: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.vc-blog__post-title {
    margin: 0 0 1rem;
    font-size: 1.15rem;
    font-weight: 800;
    line-height: 1.4;
}

.vc-blog__post-title a {
    color: #1a1a1a;
    text-decoration: none;
    transition: color 0.3s ease;
}

.vc-blog__post-title a:hover {
    color: #0b6dcb;
}

.vc-blog__excerpt {
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 1.5rem;
    line-height: 1.6;
    flex: 1;
    /* Pushes read more to bottom if cards vary in height */
}

.bredcrum p {
    color: #000;
}

.vc-blog__read-more-link {
    font-size: 0.85rem;
    font-weight: 800;
    color: #1a1a1a;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.3s ease;
    display: inline-block;
    align-self: flex-start;
}

.vc-blog__read-more-link:hover {
    color: #0b6dcb;
}

/* List View Styles */
.vc-blog-view--list {
    grid-template-columns: 1fr 1fr;
}

.vc-blog-view--list .vc-blog__card {
    flex-direction: row;
    align-items: center;
    gap: 2rem;
}

.vc-blog-view--list .vc-blog__media-wrapper {
    flex: 0 0 35%;
    margin-bottom: 0;
}

.vc-blog-view--list .vc-blog__media img {
    height: 100% !important;
    width: 100% !important;
}

.vc-blog-view--list .vc-blog__content {
    flex: 1;
    justify-content: center;
}

/* ==========================================================================
   Pagination
   ========================================================================== */
.vc-blog__pagination {
    margin-top: 4rem;
    display: flex;
    justify-content: center;
}

.vc-blog__pagination ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 0.5rem;
}

.vc-blog__pagination .page-numbers {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid #ddd;
    color: #333;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.vc-blog__pagination .page-numbers:hover,
.vc-blog__pagination .page-numbers.current {
    background: #0b6dcb;
    color: #ffffff;
    border-color: #0b6dcb;
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 1024px) {
    .vc-blog-view--grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .vc-blog-header__title {
        color: #ffffff;
        /* Contrast check for smaller screens where blue might overwhelm */
    }

    .vc-blog-view--grid {
        grid-template-columns: 1fr;
    }

    .vc-blog-view--list .vc-blog__card {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
    }

    .vc-blog-view--list .vc-blog__media-wrapper {
        flex: none;
        width: 100%;
    }

    .vc-blog-filter-bar {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .vc-blog-filter-bar__left {
        width: 100%;
    }
}

/* Meta Stats (Listing Cards) */
.vc-blog__meta-stats {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid #f0f0f0;
}

.vc-blog__stat {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: #666;
    font-weight: 500;
}

.vc-blog__stat svg {
    color: #0056b3;
    opacity: 0.7;
}

/* Professional Author Card */
.vc-post-author {
    margin-top: 2rem;
}

.vc-post-author__card {
    display: flex;
    gap: 3rem;
    padding: 1.5rem;
    background: #ffffff;
    border-radius: 24px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.04);
    position: relative;
    overflow: hidden;
}

.vc-post-author__avatar {
    flex: 0 0 160px;
    height: 160px;
    border-radius: 50%;
    overflow: hidden;
    border: 6px solid #f8fafc;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.06);
}

.vc-post-author__avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.vc-post-author__info {
    flex: 1;
}

.vc-post-author__label {
    display: block;
    font-size: 0.75rem;
    font-weight: 800;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 0.8rem;
}

.vc-post-author__name {
    font-size: 1.75rem;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 0.4rem;
}

.vc-post-author__role {
    font-size: 0.95rem;
    font-weight: 600;
    color: #0056b3;
    margin-bottom: 1.5rem;
}

.vc-post-author__bio {
    font-size: 1.05rem;
    line-height: 1.7;
    color: #475569;
    margin-bottom: 2rem;
}

.vc-post-author__btn {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.9rem 1.8rem;
    background: #0f172a;
    color: #ffffff;
    border-radius: 12px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.vc-post-author__btn svg {
    transition: transform 0.3s ease;
}

.vc-post-author__btn:hover {
    background: #0056b3;
    transform: translateX(5px);
    box-shadow: 0 10px 20px rgba(0, 86, 179, 0.15);
}

.vc-post-author__btn:hover svg {
    transform: translateX(3px);
}

/* Professional Comments */
.vc-post-comments {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #e2e8f0;
}

.vc-comments-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

.vc-no-comments-yet {
    padding: 2rem;
    background: #f8fafc;
    border-radius: 24px;
    text-align: center;
    border: 2px dashed #e2e8f0;
}

.comment-reply-title,
.vc-comments-title {
    font-size: 1.75rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 2rem;
    position: relative;
    padding-bottom: 1.2rem;
}

.comment-reply-title::after,
.vc-comments-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background: #0056b3;
    border-radius: 2px;
}

.vc-comment-list {
    list-style: none;
    padding: 0;
}

.vc-comment-list li.comment {
    margin-bottom: 3.5rem;
    list-style: none;
}

.comment-body {
    display: flex;
    gap: 1.8rem;
}

.comment-meta {
    flex: 0 0 64px;
}

.comment-meta img {
    border-radius: 16px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.comment-content {
    flex: 1;
}

.comment-author cite {
    font-style: normal;
    font-weight: 800;
    color: #0f172a;
    font-size: 1.15rem;
}

.comment-metadata {
    font-size: 0.85rem;
    color: #64748b;
    margin-bottom: 1rem;
}

.comment-content p {
    color: #334155;
    line-height: 1.7;
    margin-bottom: 1.2rem;
}

.reply a {
    font-size: 0.85rem;
    font-weight: 800;
    color: #0056b3;
    text-decoration: none;
    padding: 0.5rem 1.2rem;
    background: #f1f5f9;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.reply a:hover {
    background: #0056b3;
    color: #ffffff;
}

/* Professional Comment Form */
.vc-comment-form {
    background: #f8fafc;
    padding: 2rem;
    border-radius: 24px;
    border: 1px solid #e2e8f0;
}

.vc-comment-form label {
    display: block;
    font-size: 0.9rem;
    font-weight: 700;
    color: #475569;
    margin-bottom: 0.6rem;
}

.vc-comment-form input[type="text"],
.vc-comment-form input[type="email"],
.vc-comment-form textarea {
    width: 100%;
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.1rem 1.4rem;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
    margin-bottom: 1.5rem;
}

.vc-comment-form input:focus,
.vc-comment-form textarea:focus {
    border-color: #0056b3;
    box-shadow: 0 0 0 4px rgba(0, 86, 179, 0.1);
    outline: none;
}

.vc-comment-submit {
    background: #0056b3;
    color: #ffffff;
    padding: 1.1rem 2.5rem;
    border-radius: 12px;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.vc-comment-submit:hover {
    background: #004494;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 86, 179, 0.2);
}

@media (max-width: 1024px) {
    .vc-comments-container {
        grid-template-columns: 1fr;
        gap: 4rem;
    }
}

@media (max-width: 768px) {
    .vc-post-author__card {
        flex-direction: column;
        text-align: center;
        padding: 2.5rem;
    }

    .vc-post-author__avatar {
        margin: 0 auto;
    }

    .comment-body {
        flex-direction: column;
        gap: 1rem;
    }
}