/**
 * Veeru Tech - Main Blog Archive Module Stylesheet
 * Synchronized with Vibrant Bright Hero Opacity Engine & Mode Switcher
 */

: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;
}

/* Elementor widget wrapper 100% Expansion */
.elementor-widget-vt_blogs_archive,
.veeru-blog-archive-widget-wrapper {
    width: 100% !important;
    max-width: 100% !important;
    display: block !important;
    position: relative !important;
    box-sizing: border-box !important;
}

/* 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;
}

/* ==========================================================================
   1. HERO BANNER & BRIGHT IMAGE ENGINE (MATCHES ABOUT US HERO)
   ========================================================================== */
.vt-blog-hero-section {
    background-color: #06172e;
    padding: 80px 0;
    color: #ffffff;
    position: relative;
    overflow: hidden;
    min-height: 420px;
    display: flex;
    align-items: center;
    box-sizing: border-box;
    width: 100%;
}

/* Bright Background Image Layer */
.vt-blog-hero-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image: var(--vt-hero-bg-img, none);
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    opacity: var(--vt-hero-bg-opacity, 1);
    z-index: 1;
    transition: opacity 0.3s ease;
}

/* Transparent Overlay Layer */
.vt-blog-hero-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: var(--vt-hero-overlay-bg, linear-gradient(90deg, rgba(6, 23, 46, 0.45) 0%, rgba(6, 23, 46, 0.15) 50%, transparent 100%));
    opacity: 0.4;
    z-index: 2;
    pointer-events: none;
    transition: opacity 0.3s ease, background 0.3s ease;
}

.vt-blog-hero-section .vt-blog-hero-container {
    position: relative;
    z-index: 3;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
    box-sizing: border-box;
}

/* GRID SETUP FOR BOTH MODES */
.vt-hero-grid {
    display: grid;
    gap: 40px;
    align-items: center;
    width: 100%;
    box-sizing: border-box;
}

/* 1-Col Layout when Full Background is Active */
.vt-hero-grid.vt-grid-layout-bg_image {
    grid-template-columns: 1fr !important;
}

.vt-hero-grid.vt-grid-layout-bg_image .vt-hero-text-col {
    max-width: 720px;
}

/* 2-Col Split Layout when Right Side Image is Active */
.vt-hero-grid.vt-grid-layout-right_image {
    grid-template-columns: 1.2fr 0.8fr !important;
}

.vt-hero-text-col {
    display: flex;
    flex-direction: column;
    z-index: 3;
}

.vt-blog-hero-title {
    font-size: 48px;
    font-weight: 800;
    margin: 0 0 10px 0;
    color: #ffffff;
    line-height: 1.2;
    word-break: break-word;
    overflow-wrap: break-word;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.vt-blog-hero-title a {
    color: inherit;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.vt-blog-hero-title a:hover {
    opacity: 0.9;
    text-decoration: underline;
}

.vt-breadcrumbs {
    font-size: 14px;
    color: #f17a28;
    margin-bottom: 20px;
    font-weight: 600;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}

.vt-breadcrumbs a {
    color: #f1f5f9;
    text-decoration: none;
}

.vt-blog-hero-desc {
    font-size: 16px;
    line-height: 1.7;
    color: #f1f5f9;
    max-width: 580px;
    word-break: break-word;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.5);
}

.vt-blog-hero-desc p {
    margin: 0 0 10px 0;
    color: inherit;
}

.vt-blog-hero-desc p:last-child {
    margin-bottom: 0;
}

.vt-blog-hero-desc a {
    color: #60a5fa !important;
    text-decoration: underline !important;
    text-underline-offset: 3px !important;
    font-weight: 600 !important;
    transition: opacity 0.2s ease, color 0.2s ease !important;
}

.vt-blog-hero-desc a:hover {
    color: #ffffff !important;
    opacity: 0.95 !important;
}

/* RIGHT HERO FLOATING IMAGE */
.vt-hero-img-col {
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 3;
}

.vt-hero-floating-img {
    max-width: 100% !important;
    height: auto !important;
    max-height: 380px;
    object-fit: contain !important;
    display: block;
    filter: drop-shadow(0 20px 30px rgba(0,0,0,0.5));
    transition: max-height 0.3s ease;
}

/* ==========================================================================
   2. MAIN CONTENT AREA & FILTER TABS
   ========================================================================== */
.vt-blog-main-section {
    padding: 60px 0 80px 0;
    background-color: #ffffff;
    width: 100% !important;
    box-sizing: border-box;
}

.vt-blog-main-container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

.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;
}

/* ==========================================================================
   3. FLEXIBLE LAYOUT & CARDS GRID
   ========================================================================== */
.vt-blog-layout-wrapper {
    display: flex;
    gap: 40px;
    width: 100%;
    box-sizing: border-box;
}

.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%;
    box-sizing: border-box;
}

.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;
    box-sizing: border-box;
}

.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;
    box-sizing: border-box;
}

.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;
    transition: color 0.25s ease;
}

.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;
    transition: transform 0.25s ease;
    display: inline-block;
}

.vt-blog-card-readmore:hover {
    transform: translateX(4px);
}

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

.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;
    transition: background-color 0.25s ease;
}

.vt-newsletter-form button:hover {
    background-color: var(--vt-blog-accent-hover);
}

.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-popular-post-title a:hover { color: var(--vt-blog-accent); }

.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;
    transition: all 0.25s ease;
}

.vt-category-item a:hover {
    background-color: var(--vt-blog-primary);
    color: #ffffff;
}

/* ==========================================================================
   5. 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;
    box-sizing: border-box;
}

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

.vt-cta-title a {
    color: inherit !important;
    text-decoration: none !important;
}

.vt-cta-title a:hover {
    color: var(--vt-blog-accent) !important;
}

.vt-cta-desc {
    font-size: 13px;
    color: #94a3b8;
    margin: 0;
}

.vt-cta-desc p {
    margin: 0 0 6px 0;
    color: inherit;
}

.vt-cta-desc p:last-child {
    margin-bottom: 0;
}

.vt-cta-desc a {
    color: var(--vt-blog-accent);
    text-decoration: underline;
}

.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;
    transition: background-color 0.25s ease, transform 0.25s ease;
    display: inline-block;
}

.vt-cta-btn:hover {
    background-color: var(--vt-blog-accent-hover);
    transform: translateY(-2px);
}

/* ==========================================================================
   RESPONSIVE MEDIA QUERIES (MOBILE & TABLET ENGINE)
   ========================================================================== */

@media (max-width: 991px) {
    .vt-hero-grid.vt-grid-layout-right_image {
        grid-template-columns: 1fr !important;
        gap: 30px;
    }

    .vt-blog-layout-wrapper {
        flex-direction: column !important;
    }

    .vt-blog-sidebar {
        width: 100% !important;
    }

    .vt-blog-cta-banner {
        flex-direction: column;
        align-items: flex-start;
    }

    .vt-cta-features {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
        width: 100%;
    }
}

@media (max-width: 768px) {
    .vt-blog-hero-section::before {
        background-position: center center !important;
        background-size: cover !important;
    }

    .vt-blog-hero-container {
        padding: 0 18px !important;
    }

    .vt-hero-grid {
        display: flex !important;
        flex-direction: column !important;
        gap: 20px !important;
    }

    .vt-hero-text-col {
        width: 100% !important;
        text-align: left !important;
    }

    .vt-blog-hero-title {
        font-size: clamp(24px, 7vw, 36px) !important;
        line-height: 1.25 !important;
        margin-bottom: 10px !important;
        word-break: break-word !important;
    }

    .vt-breadcrumbs {
        margin-bottom: 14px !important;
        font-size: 13px !important;
    }

    .vt-blog-hero-desc {
        font-size: 13.5px !important;
        line-height: 1.55 !important;
        max-width: 100% !important;
    }

    .vt-hero-img-col {
        width: 100% !important;
        display: flex !important;
        justify-content: center !important;
        margin-top: 10px !important;
    }

    .vt-hero-floating-img {
        max-height: 240px !important;
        width: auto !important;
        max-width: 100% !important;
        object-fit: contain !important;
    }

    /* GRID & CARDS */
    .vt-blog-cards-grid {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }

    .vt-cta-btn {
        width: 100% !important;
        text-align: center !important;
        box-sizing: border-box !important;
    }
}

@media (max-width: 480px) {
    .vt-blog-hero-title {
        font-size: 26px !important;
    }
}