/* EVS Category Layout Styles */

/* Layout Variables */
:root {
    --evs-primary-color: #0073aa;
    --evs-hover-color: #FF0E80;
    --evs-text-color: #333;
    --evs-meta-color: #777;
    --evs-border-color: #eee;
    --evs-bg-color: #fff;
    --evs-shadow: 0 4px 12px rgba(0,0,0,0.05);
    --evs-radius: 8px;
    --evs-gap: 30px;
    --evs-font-family: 'Poppins', sans-serif;
}

/* Container */
.evs-category-archive-wrapper,
.evs-category-archive-wrapper * {
    font-family: var(--evs-font-family) !important;
}
.evs-category-archive-wrapper {
    padding: 60px 0;
    background-color: #f9f9f9;
}
.evs-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Header & Author Profile */
.evs-archive-header {
    margin-bottom: 40px;
    text-align: center;
}
.evs-archive-title {
    font-size: 32px;
    margin-bottom: 10px;
    color: var(--evs-text-color);
}
.evs-archive-description {
    font-size: 16px;
    color: var(--evs-meta-color);
    max-width: 800px;
    margin: 15px auto 0;
}
.evs-archive-meta {
    font-size: 14px;
    color: var(--evs-primary-color);
    font-weight: 500;
}

.evs-author-profile {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    background: var(--evs-bg-color);
    padding: 30px;
    border-radius: var(--evs-radius);
    box-shadow: var(--evs-shadow);
    text-align: left;
    max-width: 900px;
    margin: 0 auto;
}
.evs-author-avatar img {
    border-radius: 50%;
    width: 120px;
    height: 120px;
    object-fit: cover;
}
.evs-author-info {
    flex: 1;
}
.evs-author-info .evs-archive-title {
    margin-bottom: 5px;
}
.evs-author-bio {
    margin: 10px 0;
    font-size: 15px;
    color: #555;
}
.evs-author-social {
    display: flex;
    gap: 15px;
    margin-top: 15px;
}
.evs-social-link {
    color: var(--evs-primary-color);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.3s;
}
.evs-social-link:hover {
    color: var(--evs-hover-color) !important;
}

@media (max-width: 767px) {
    .evs-author-profile {
        flex-direction: column;
        text-align: center;
    }
}

/* Layout Grid */
.evs-row {
    display: flex;
    flex-wrap: wrap;
    gap: var(--evs-gap);
}
.evs-main-content {
    flex: 1;
    min-width: 0; /* prevent flex blowout */
}
.evs-sidebar {
    width: 320px;
    flex-shrink: 0;
}

/* Blog Grid (Masonry / CSS Grid) */
.evs-blog-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--evs-gap);
    margin-bottom: 40px;
}

/* Card Styling */
.evs-blog-card {
    background: var(--evs-bg-color);
    border-radius: var(--evs-radius);
    box-shadow: var(--evs-shadow);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}
.evs-blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}
.evs-card-image img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    display: block;
}
.evs-card-content {
    padding: 25px;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.evs-card-meta {
    font-size: 13px;
    color: var(--evs-meta-color);
    margin-bottom: 10px;
}
.evs-card-title {
    font-size: 20px;
    margin: 0 0 15px;
    line-height: 1.4;
}
.evs-card-title a {
    color: var(--evs-text-color);
    text-decoration: none;
    transition: color 0.3s;
}
.evs-card-title a:hover {
    color: var(--evs-hover-color) !important;
}
.evs-card-excerpt {
    font-size: 15px;
    line-height: 1.6;
    color: #555;
    margin-bottom: 20px;
    flex: 1;
}
.evs-card-footer {
    margin-top: auto;
}
.evs-read-more {
    display: inline-block;
    font-weight: 600;
    color: var(--evs-primary-color);
    text-decoration: none;
    text-transform: uppercase;
    font-size: 14px;
    letter-spacing: 0.5px;
    transition: color 0.3s;
}
.evs-read-more:hover {
    color: var(--evs-hover-color) !important;
}

/* Button */
.evs-btn {
    display: inline-block;
    padding: 12px 24px;
    background-color: var(--evs-primary-color);
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    transition: background 0.3s;
}
.evs-btn:hover {
    background-color: var(--evs-hover-color) !important;
}
.evs-btn-block {
    display: block;
    width: 100%;
}
.evs-btn.loading {
    opacity: 0.7;
    pointer-events: none;
}

.evs-load-more-container {
    text-align: center;
}

/* Sidebar */
.evs-sidebar-widget {
    background: var(--evs-bg-color);
    padding: 25px;
    border-radius: var(--evs-radius);
    box-shadow: var(--evs-shadow);
    margin-bottom: 30px;
}
.evs-widget-title {
    font-size: 18px;
    margin: 0 0 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--evs-border-color);
    color: var(--evs-text-color);
}

/* Popular Posts Widget */
.evs-popular-posts {
    list-style: none;
    padding: 0;
    margin: 0;
}
.evs-popular-posts li {
    margin-bottom: 15px;
}
.evs-popular-posts li:last-child {
    margin-bottom: 0;
}
.evs-popular-posts a {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--evs-text-color);
    transition: color 0.3s;
}
.evs-popular-posts a:hover {
    color: var(--evs-hover-color) !important;
}
.evs-popular-posts .evs-thumb {
    width: 60px;
    height: 60px;
    flex-shrink: 0;
    margin-right: 15px;
    border-radius: 4px;
    overflow: hidden;
}
.evs-popular-posts .evs-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.evs-popular-posts .evs-title {
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
}

/* Categories List */
.evs-categories-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.evs-categories-list li {
    padding: 10px 0;
    border-bottom: 1px solid var(--evs-border-color);
    display: flex;
    justify-content: space-between;
}
.evs-categories-list li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}
.evs-categories-list a {
    color: var(--evs-text-color);
    text-decoration: none;
    transition: color 0.3s;
}
.evs-categories-list a:hover {
    color: var(--evs-hover-color) !important;
}
.evs-categories-list .evs-count {
    color: var(--evs-meta-color);
    font-size: 13px;
}

/* Tags now share the .evs-categories-list styling */

/* CTA Widget */
.evs-cta-banner h4 {
    margin: 0 0 10px;
    font-size: 20px;
}
.evs-cta-banner p {
    margin: 0 0 20px;
    font-size: 14px;
    color: var(--evs-meta-color);
}

/* Responsive */
@media (max-width: 991px) {
    .evs-row {
        flex-direction: column;
    }
    .evs-sidebar {
        width: 100%;
    }
}
@media (max-width: 767px) {
    .evs-blog-grid {
        grid-template-columns: 1fr;
    }
    .evs-category-title {
        font-size: 26px;
    }
}
