/**
 * Veeru Tech - Main Blog Archive Module Stylesheet
 * Strictly for Blog Archive & Filter Grid (Image 1 Style)
 */

:root {
    --vt-blog-primary: #06172e;
    --vt-blog-accent: #f17a28;
    --vt-blog-accent-hover: #d96313;
    --vt-blog-bg-light: #f8fafc;
    --vt-blog-card-bg: #ffffff;
    --vt-blog-text-dark: #0f172a;
    --vt-blog-text-muted: #64748b;
    --vt-blog-border: #e2e8f0;
    --vt-blog-radius: 12px;
}

/* GLOBAL SVG LOCKS */
.vt-blog-card-date svg,
.vt-newsletter-icon svg,
.vt-cta-feature-icon svg {
    display: inline-block !important;
    vertical-align: middle !important;
    flex-shrink: 0 !important;
}

.vt-blog-card-date svg {
    width: 15px !important;
    height: 15px !important;
    max-width: 15px !important;
    max-height: 15px !important;
    fill: var(--vt-blog-text-muted) !important;
}

.vt-newsletter-icon svg {
    width: 24px !important;
    height: 24px !important;
    max-width: 24px !important;
    max-height: 24px !important;
    fill: var(--vt-blog-accent) !important;
}

.vt-cta-feature-icon svg {
    width: 22px !important;
    height: 22px !important;
    max-width: 22px !important;
    max-height: 22px !important;
    fill: var(--vt-blog-accent) !important;
}

/* HERO BANNER ARCHIVE MODE */
.vt-blog-hero-section {
    position: relative;
    background-color: var(--vt-blog-primary);
    padding: 60px 0 70px 0;
    color: #ffffff;
    overflow: hidden;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}

.vt-blog-hero-section.vt-hero-bg-mode {
    min-height: 380px;
    display: flex;
    align-items: center;
}

.vt-blog-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #06172e;
    opacity: 0.75;
    z-index: 1;
}

.vt-blog-hero-container {
    position: relative;
    z-index: 2;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.vt-blog-hero-content { max-width: 650px; width: 100%; }
.vt-blog-hero-title { font-size: 42px; font-weight: 800; color: #ffffff; margin: 0 0 15px 0; line-height: 1.2; }
.vt-blog-hero-desc { font-size: 16px; color: #94a3b8; line-height: 1.6; margin: 0 0 25px 0; }
.vt-blog-breadcrumb { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 500; }
.vt-blog-breadcrumb a { color: #ffffff; text-decoration: none; }
.vt-blog-breadcrumb-sep { color: var(--vt-blog-accent); }
.vt-blog-hero-graphic { max-width: 480px; width: 100%; border-radius: 12px; overflow: hidden; }
.vt-blog-hero-graphic img { width: 100%; height: auto; display: block; object-fit: cover; }

/* MAIN CONTAINER & FILTER TABS */
.vt-blog-main-section { padding: 50px 0 80px 0; background-color: #ffffff; }
.vt-blog-main-container { max-width: 1240px; margin: 0 auto; padding: 0 20px; }

.vt-blog-filter-tabs {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 40px;
    border-bottom: 1px solid var(--vt-blog-border);
    padding-bottom: 15px;
}

.vt-blog-tab-btn {
    background: transparent;
    border: none;
    font-size: 14px;
    font-weight: 600;
    color: var(--vt-blog-text-muted);
    padding: 8px 18px;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.vt-blog-tab-btn.active, .vt-blog-tab-btn:hover {
    background-color: var(--vt-blog-primary);
    color: #ffffff;
}

/* FLEXIBLE LAYOUT & CARDS GRID */
.vt-blog-layout-wrapper { display: flex; gap: 40px; width: 100%; }
.vt-blog-layout-wrapper.vt-sidebar-pos-right { flex-direction: row; }
.vt-blog-layout-wrapper.vt-sidebar-pos-left  { flex-direction: row; }
.vt-blog-layout-wrapper.vt-sidebar-pos-none  { flex-direction: column; }

.vt-blog-main-content { flex-grow: 1; width: 100%; min-width: 0; }
.vt-blog-sidebar { width: 340px; flex-shrink: 0; display: flex; flex-direction: column; gap: 30px; }

.vt-blog-cards-grid { display: grid; gap: 24px; width: 100%; }
.vt-blog-cards-grid.vt-grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
.vt-blog-cards-grid.vt-grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
.vt-blog-cards-grid.vt-grid-cols-4 { grid-template-columns: repeat(4, 1fr); }
.vt-blog-cards-grid.vt-grid-cols-5 { grid-template-columns: repeat(5, 1fr); }
.vt-blog-cards-grid.vt-grid-cols-6 { grid-template-columns: repeat(6, 1fr); }

.vt-blog-card {
    background: var(--vt-blog-card-bg);
    border: 1px solid var(--vt-blog-border);
    border-radius: var(--vt-blog-radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.vt-blog-card:hover { transform: translateY(-5px); box-shadow: 0 12px 25px rgba(0,0,0,0.08); }

.vt-blog-card-image-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background-color: #06172e;
}

.vt-blog-card-image-wrap img { width: 100%; height: 100%; object-fit: cover; }

.vt-blog-card-category-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background-color: var(--vt-blog-primary);
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: 4px;
    z-index: 2;
}

.vt-blog-card-body { padding: 20px; display: flex; flex-direction: column; flex-grow: 1; }

.vt-blog-card-date {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--vt-blog-text-muted);
    margin-bottom: 10px;
}

.vt-blog-card-title { font-size: 16px; font-weight: 700; margin: 0 0 10px 0; line-height: 1.4; }
.vt-blog-card-title a { color: var(--vt-blog-text-dark); text-decoration: none; }
.vt-blog-card-title a:hover { color: var(--vt-blog-accent); }
.vt-blog-card-excerpt { font-size: 13px; color: var(--vt-blog-text-muted); line-height: 1.6; margin-bottom: 18px; flex-grow: 1; }
.vt-blog-card-readmore { font-size: 13px; font-weight: 700; color: var(--vt-blog-accent); text-decoration: none; }

/* SIDEBAR & NEWSLETTER WIDGET STYLES */
.vt-sidebar-widget {
    background: #ffffff;
    border: 1px solid var(--vt-blog-border);
    border-radius: var(--vt-blog-radius);
    padding: 25px;
}

.vt-sidebar-newsletter {
    background-color: var(--vt-blog-primary);
    color: #ffffff;
    text-align: center;
    border: none;
}

.vt-newsletter-icon {
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px auto;
}

.vt-newsletter-title { font-size: 20px; font-weight: 700; color: #ffffff; margin: 0 0 10px 0; }
.vt-newsletter-desc { font-size: 13px; color: #94a3b8; margin-bottom: 20px; line-height: 1.5; }

.vt-newsletter-form input[type="email"] {
    width: 100%;
    height: 44px;
    border-radius: 6px;
    padding: 0 15px;
    margin-bottom: 12px;
    box-sizing: border-box;
    border: 1px solid var(--vt-blog-border);
    font-size: 13px;
}

.vt-newsletter-form button {
    width: 100%;
    height: 44px;
    background: var(--vt-blog-accent);
    color: #ffffff;
    border: none;
    border-radius: 6px;
    font-weight: 700;
    cursor: pointer;
}

.vt-newsletter-privacy { font-size: 11px; color: #64748b; margin-top: 12px; margin-bottom: 0; }

.vt-sidebar-title {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 20px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--vt-blog-bg-light);
}

.vt-popular-posts-list { display: flex; flex-direction: column; gap: 16px; }
.vt-popular-post-item { display: flex; align-items: center; gap: 14px; }
.vt-popular-post-thumb { width: 64px; height: 64px; border-radius: 8px; overflow: hidden; flex-shrink: 0; }
.vt-popular-post-thumb img { width: 100%; height: 100%; object-fit: cover; }
.vt-popular-post-title { font-size: 13px; font-weight: 700; margin: 0 0 4px 0; }
.vt-popular-post-title a { color: var(--vt-blog-text-dark); text-decoration: none; }

.vt-categories-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.vt-category-item a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    border-radius: 6px;
    background-color: var(--vt-blog-bg-light);
    color: var(--vt-blog-text-dark);
    font-size: 13px;
    text-decoration: none;
}

/* CTA BANNER */
.vt-blog-cta-banner {
    background-color: var(--vt-blog-primary);
    border-radius: var(--vt-blog-radius);
    padding: 35px 40px;
    margin-top: 60px;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.vt-cta-title { font-size: 24px; font-weight: 800; margin: 0 0 8px 0; color: #ffffff; }
.vt-cta-desc { font-size: 13px; color: #94a3b8; margin: 0; }

.vt-cta-features { display: flex; align-items: center; gap: 25px; }
.vt-cta-feature-item { display: flex; align-items: center; gap: 10px; }

.vt-cta-feature-icon {
    width: 42px;
    height: 42px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.vt-cta-feature-icon-img {
    width: 24px;
    height: 24px;
    background-color: var(--vt-blog-accent);
    -webkit-mask-size: contain;
    mask-size: contain;
    -webkit-mask-position: center;
    mask-position: center;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    display: inline-block;
}

.vt-cta-feature-text { font-size: 12px; font-weight: 600; color: #e2e8f0; line-height: 1.3; }

.vt-cta-btn {
    background-color: var(--vt-blog-accent);
    color: #ffffff;
    padding: 14px 28px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

/* RESPONSIVE */
@media (max-width: 1024px) {
    .vt-blog-layout-wrapper { flex-direction: column !important; }
    .vt-blog-sidebar { width: 100%; }
    .vt-blog-cta-banner { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 600px) {
    .vt-blog-hero-container { flex-direction: column; text-align: center; }
    .vt-blog-cards-grid { grid-template-columns: 1fr !important; }
}