/*
 Theme Name:   Hello Elementor Child
 Theme URI:    https://elementor.com/hello-theme/
 Description:  Hello Elementor Child Theme
 Author:       LBG Glass
 Template:     hello-elementor
 Version:      1.0.0
 Text Domain:  hello-elementor-child
*/

/* ==========================================================================
   LBG GLASS - PREMIUM CUSTOM BLOG SYSTEM STYLING
   ========================================================================== */

:root {
    --lbg-primary: #2e2d8a;
    --lbg-primary-hover: #1e1d6b;
    --lbg-dark: #080e1a;
    --lbg-dark-accent: #0f172a;
    --lbg-text-main: #1f2937;
    --lbg-text-muted: #6b7280;
    --lbg-bg-light: #f8fafc;
    --lbg-border: #eef0f5;
    --lbg-radius: 14px;
    --lbg-shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    --lbg-shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.03);
    --lbg-shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.05), 0 10px 10px -5px rgba(0, 0, 0, 0.03);
    --lbg-font-read: 'Outfit', 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* --- Reading Progress Bar --- */
#lbgProgressContainer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: transparent;
    z-index: 99999;
}
#lbgProgressBar {
    height: 100%;
    background: linear-gradient(to right, #2e2d8a, #4f46e5);
    width: 0%;
    transition: width 0.1s ease;
}

/* --- Breadcrumbs --- */
.lbg-breadcrumb-container {
    padding: 20px 0;
    margin-bottom: 10px;
}
.lbg-breadcrumbs {
    font-size: 13px;
    color: var(--lbg-text-muted);
    font-family: var(--lbg-font-read);
}
.lbg-breadcrumbs a {
    color: var(--lbg-text-muted);
    text-decoration: none;
    transition: color 0.2s ease;
}
.lbg-breadcrumbs a:hover {
    color: var(--lbg-primary);
}
.lbg-breadcrumbs .sep {
    margin: 0 8px;
    color: #cbd5e1;
}
.lbg-breadcrumbs .current {
    color: var(--lbg-dark-accent);
    font-weight: 500;
}

/* --- Blog Banner --- */
.lbg-blog-header-banner {
    position: relative;
    background-color: var(--lbg-dark);
    background-image: url('https://images.unsplash.com/photo-1618220179428-22790b461013?auto=format&fit=crop&w=1920&q=80');
    background-size: cover;
    background-position: center;
    padding: 80px 20px;
    text-align: center;
    color: #fff;
    margin-bottom: 40px;
}
.lbg-blog-header-banner .banner-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(8, 14, 26, 0.9), rgba(8, 14, 26, 0.75));
    z-index: 1;
}
.lbg-blog-header-banner .banner-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}
.lbg-blog-header-banner h1 {
    font-size: 42px;
    font-weight: 800;
    margin-bottom: 12px;
    line-height: 1.2;
    color: #fff;
}
.lbg-blog-header-banner p {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto;
}

/* --- Blog Container & Layout --- */
.lbg-blog-container,
.lbg-article-page-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px 80px;
}

/* --- Category Filters & Search Bar --- */
.lbg-blog-filter-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--lbg-border);
    padding-bottom: 20px;
    margin-bottom: 35px;
    gap: 20px;
    flex-wrap: wrap;
}
.blog-categories-tabs {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.blog-categories-tabs .cat-tab {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 999px;
    background: #f1f5f9;
    color: #475569;
    text-decoration: none;
    font-size: 13.5px;
    font-weight: 600;
    transition: all 0.22s ease;
    font-family: var(--lbg-font-read);
}
.blog-categories-tabs .cat-tab:hover,
.blog-categories-tabs .cat-tab.active {
    background: var(--lbg-primary);
    color: #fff;
}
.blog-search-wrapper {
    position: relative;
    min-width: 250px;
}
.blog-search-form {
    display: flex;
    align-items: center;
}
.blog-search-input {
    width: 100%;
    padding: 10px 40px 10px 16px;
    border-radius: 999px;
    border: 1px solid #cbd5e1;
    font-size: 13.5px;
    outline: none;
    background: #fff;
    transition: all 0.2s ease;
    font-family: var(--lbg-font-read);
}
.blog-search-input:focus {
    border-color: var(--lbg-primary);
    box-shadow: 0 0 0 3px rgba(46, 45, 138, 0.12);
}
.blog-search-submit {
    position: absolute;
    right: 5px;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--lbg-text-muted);
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.blog-search-submit:hover {
    color: var(--lbg-primary);
}

/* --- Articles Grid --- */
.lbg-articles-main-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 50px;
}

/* --- Premium Article Card --- */
.lbg-article-card {
    background: #fff;
    border-radius: var(--lbg-radius);
    border: 1px solid var(--lbg-border);
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
}
.lbg-article-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--lbg-shadow-lg);
    border-color: var(--lbg-primary);
}
.card-image-link {
    display: block;
    position: relative;
    overflow: hidden;
    padding-top: 60%; /* 5:3 Aspect Ratio */
    background: #f1f5f9;
}
.card-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.lbg-article-card:hover .card-image {
    transform: scale(1.05);
}
.card-image-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    letter-spacing: 1px;
    color: #cbd5e1;
    background: #080e1a;
    font-size: 20px;
}
.card-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}
.card-category {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--lbg-primary);
    letter-spacing: 0.8px;
    margin-bottom: 10px;
    display: inline-block;
    font-family: var(--lbg-font-read);
}
.card-title {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.35;
    margin: 0 0 12px;
}
.card-title a {
    color: var(--lbg-dark-accent);
    text-decoration: none;
    transition: color 0.2s;
}
.card-title a:hover {
    color: var(--lbg-primary);
}
.card-excerpt {
    font-size: 14px;
    color: var(--lbg-text-muted);
    line-height: 1.6;
    margin: 0 0 20px;
    flex-grow: 1;
}
.card-meta {
    display: flex;
    align-items: center;
    font-size: 12px;
    color: var(--lbg-text-muted);
    border-top: 1px solid #f1f5f9;
    padding-top: 15px;
    font-family: var(--lbg-font-read);
}
.card-meta .bullet {
    margin: 0 8px;
    color: #cbd5e1;
}

/* --- Pagination --- */
.lbg-blog-pagination {
    text-align: center;
    margin-top: 40px;
}
.lbg-blog-pagination ul.page-numbers {
    display: inline-flex;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 6px;
    border: 1px solid var(--lbg-border);
    border-radius: 999px;
    background: #fff;
    padding: 6px;
}
.lbg-blog-pagination ul.page-numbers li {
    margin: 0;
}
.lbg-blog-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    color: #475569;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s;
    font-family: var(--lbg-font-read);
}
.lbg-blog-pagination .page-numbers:hover:not(.current) {
    background: #f1f5f9;
    color: var(--lbg-primary);
}
.lbg-blog-pagination .page-numbers.current {
    background: var(--lbg-primary);
    color: #fff;
}

/* --- Single Post Page Layout --- */
.lbg-article-page-wrapper {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 50px;
    margin-top: 20px;
}
.lbg-article-main-content {
    min-width: 0;
}

/* --- Single Article View --- */
.lbg-single-post {
    background: #fff;
    margin-bottom: 40px;
    padding: 40px 48px;
    border-radius: var(--lbg-radius);
    border: 1px solid var(--lbg-border);
    box-shadow: var(--lbg-shadow-sm);
}
.lbg-article-cat-badge {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 999px;
    background: rgba(46, 45, 138, 0.08);
    color: var(--lbg-primary);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    text-decoration: none;
    margin-bottom: 18px;
    transition: all 0.2s;
    font-family: var(--lbg-font-read);
}
.lbg-article-cat-badge:hover {
    background: var(--lbg-primary);
    color: #fff;
}
.lbg-post-title {
    font-size: 38px;
    font-weight: 800;
    line-height: 1.2;
    color: var(--lbg-dark-accent);
    margin: 0 0 20px;
}
.lbg-post-meta {
    display: flex;
    align-items: center;
    font-size: 13.5px;
    color: var(--lbg-text-muted);
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 8px;
    font-family: var(--lbg-font-read);
}
.lbg-post-author {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: var(--lbg-dark-accent);
}
.author-avatar {
    width: 24px;
    height: 24px;
    background: var(--lbg-primary);
    color: #fff;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
}
.lbg-post-meta-sep {
    color: #cbd5e1;
}
.lbg-post-featured-image-wrapper {
    border-radius: var(--lbg-radius);
    overflow: hidden;
    margin-bottom: 35px;
    box-shadow: var(--lbg-shadow-md);
}
.lbg-post-featured-image {
    width: 100%;
    height: auto;
    display: block;
}

/* --- Article Typography --- */
.lbg-post-body-content {
    font-size: 16px;
    line-height: 1.75;
    color: var(--lbg-text-main);
}
.lbg-post-body-content p {
    margin-bottom: 24px;
}
.lbg-post-body-content h2 {
    font-size: 24px;
    font-weight: 700;
    margin: 40px 0 16px;
    color: var(--lbg-dark-accent);
}
.lbg-post-body-content h3 {
    font-size: 20px;
    font-weight: 700;
    margin: 30px 0 12px;
    color: var(--lbg-dark-accent);
}
.lbg-post-body-content ul,
.lbg-post-body-content ol {
    margin: 0 0 24px 24px;
}
.lbg-post-body-content li {
    margin-bottom: 8px;
}
.lbg-post-body-content blockquote {
    border-left: 4px solid var(--lbg-primary);
    padding: 10px 20px;
    margin: 0 0 24px;
    background: var(--lbg-bg-light);
    border-top-right-radius: 8px;
    border-bottom-right-radius: 8px;
    font-style: italic;
    color: #475569;
}
.lbg-post-body-content blockquote p:last-child {
    margin-bottom: 0;
}
.lbg-post-body-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 20px 0;
}

/* --- Tag Pills --- */
.lbg-post-footer {
    border-top: 1px solid var(--lbg-border);
    padding-top: 25px;
    margin-top: 40px;
}
.lbg-post-tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.lbg-tag-pill {
    font-size: 13px;
    padding: 6px 12px;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    color: #475569;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s;
    font-family: var(--lbg-font-read);
}
.lbg-tag-pill:hover {
    border-color: var(--lbg-primary);
    color: var(--lbg-primary);
    background: rgba(46, 45, 138, 0.03);
}

/* --- Lead Generation Banner --- */
.lbg-article-cta-banner {
    position: relative;
    background-color: var(--lbg-dark);
    background-image: url('https://images.unsplash.com/photo-1616401784845-180882ba9ba8?auto=format&fit=crop&w=1200&q=80');
    background-size: cover;
    background-position: center;
    border-radius: var(--lbg-radius);
    padding: 40px 30px;
    color: #fff;
    overflow: hidden;
    margin: 50px 0;
    box-shadow: var(--lbg-shadow-md);
}
.lbg-article-cta-banner .lbg-cta-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(110deg, rgba(8, 14, 26, 0.95) 0%, rgba(8, 14, 26, 0.75) 100%);
    z-index: 1;
}
.lbg-article-cta-banner .lbg-cta-content {
    position: relative;
    z-index: 2;
    max-width: 550px;
}
.lbg-article-cta-banner h3 {
    color: #fff;
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 10px;
}
.lbg-article-cta-banner p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.5;
    margin: 0 0 22px;
}
.lbg-article-cta-banner .lbg-btn {
    display: inline-flex;
    align-items: center;
    padding: 12px 24px;
    background: #fff;
    color: var(--lbg-dark);
    text-decoration: none;
    border-radius: 8px;
    font-size: 13.5px;
    font-weight: 700;
    transition: all 0.25s ease;
    border: none;
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.15);
}
.lbg-article-cta-banner .lbg-btn:hover {
    background: var(--lbg-primary);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(46, 45, 138, 0.4);
}

/* --- Recommended Posts Grid --- */
.lbg-recommended-posts-section {
    border-top: 1px solid var(--lbg-border);
    padding-top: 40px;
    margin-top: 40px;
}
.lbg-recommended-posts-section .section-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 25px;
    color: var(--lbg-dark-accent);
}
.lbg-recommended-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.lbg-recommended-grid .lbg-article-card .card-title {
    font-size: 15.5px;
    line-height: 1.35;
    margin-bottom: 8px;
}
.lbg-recommended-grid .lbg-article-card .card-body {
    padding: 16px;
}
.lbg-recommended-grid .lbg-article-card .card-excerpt {
    font-size: 13px;
    margin-bottom: 12px;
}
.lbg-recommended-grid .lbg-article-card .card-meta {
    font-size: 11px;
    padding-top: 10px;
}

/* --- Sidebar Widgets --- */
.lbg-article-sidebar {
    display: flex;
    flex-direction: column;
    gap: 30px;
}
.lbg-sidebar-widget {
    background: #fff;
    border: 1px solid var(--lbg-border);
    border-radius: var(--lbg-radius);
    padding: 24px;
}
.lbg-sidebar-widget .widget-title {
    font-size: 15px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--lbg-primary);
    border-bottom: 2px solid var(--lbg-border);
    padding-bottom: 10px;
    margin: 0 0 18px;
    letter-spacing: 0.8px;
    font-family: var(--lbg-font-read);
}

/* Recent Posts widget list */
.recent-posts-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.recent-posts-list li {
    display: flex;
    gap: 12px;
    align-items: center;
}
.widget-post-thumb {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    background: #f1f5f9;
    display: block;
}
.widget-post-thumb img {
    width: 60px;
    height: 60px;
    object-fit: cover;
}
.thumb-placeholder {
    width: 100%;
    height: 100%;
    background: var(--lbg-dark);
}
.widget-post-info {
    flex-grow: 1;
    min-width: 0;
}
.widget-post-title {
    font-size: 13.5px;
    font-weight: 600;
    line-height: 1.35;
    margin: 0 0 4px;
}
.widget-post-title a {
    color: var(--lbg-dark-accent);
    text-decoration: none;
    transition: color 0.2s;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.widget-post-title a:hover {
    color: var(--lbg-primary);
}
.widget-post-date {
    font-size: 11px;
    color: var(--lbg-text-muted);
    font-family: var(--lbg-font-read);
}

/* Category widget list */
.sidebar-categories-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.sidebar-categories-list li {
    margin: 0;
}
.sidebar-categories-list a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #475569;
    text-decoration: none;
    font-size: 13.5px;
    font-weight: 500;
    padding: 6px 0;
    border-bottom: 1px dashed #f1f5f9;
    transition: all 0.2s;
}
.sidebar-categories-list a:hover {
    color: var(--lbg-primary);
    padding-left: 4px;
}
.sidebar-categories-list .cat-count {
    font-size: 11px;
    background: #f1f5f9;
    padding: 2px 8px;
    border-radius: 999px;
    color: #64748b;
    font-weight: 600;
}

/* --- Archive & Search Empty Layout --- */
.lbg-no-posts-found {
    text-align: center;
    padding: 60px 20px;
    border: 2px dashed var(--lbg-border);
    border-radius: var(--lbg-radius);
    background: #fff;
    max-width: 600px;
    margin: 0 auto;
}
.lbg-no-posts-found h3 {
    font-size: 20px;
    margin: 0 0 10px;
    color: var(--lbg-dark-accent);
}
.lbg-no-posts-found p {
    font-size: 14.5px;
    color: var(--lbg-text-muted);
    margin-bottom: 24px;
}

/* --- Media Queries (Responsiveness) --- */
@media (max-width: 1024px) {
    .lbg-articles-main-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    .lbg-recommended-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .lbg-recommended-grid .lbg-article-card:last-child {
        display: none;
    }
    .lbg-article-page-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .lbg-article-sidebar {
        margin-top: 20px;
    }
}

@media (max-width: 768px) {
    .lbg-blog-header-banner h1 {
        font-size: 32px;
    }
    .lbg-blog-header-banner {
        padding: 50px 20px;
    }
    .lbg-single-post {
        padding: 24px 16px;
    }
    .lbg-post-title {
        font-size: 28px;
    }
    .lbg-blog-filter-bar {
        flex-direction: column;
        align-items: stretch;
    }
    .blog-categories-tabs {
        justify-content: flex-start;
    }
    .blog-search-wrapper {
        width: 100%;
    }
}

@media (max-width: 580px) {
    .lbg-articles-main-grid {
        grid-template-columns: 1fr;
    }
    .lbg-recommended-grid {
        grid-template-columns: 1fr;
    }
    .lbg-recommended-grid .lbg-article-card:last-child {
        display: flex;
    }
}
