/* 
Theme Name: Hello Elementor Child
Theme URI: https://github.com/elementor/hello-theme-child/
Description: Hello Elementor Child is a child theme of Hello Elementor, created by Elementor team
Author: Elementor Team
Author URI: https://elementor.com/
Template: hello-elementor
Version: 2.0.0
Text Domain: hello-elementor-child
License: GNU General Public License v3 or later.
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Tags: flexible-header, custom-colors, custom-menu, custom-logo, editor-style, featured-images, rtl-language-support, threaded-comments, translation-ready
*/

    /* Custom CSS for Blueblocks Blog Template */
    :root {
        --primary-color: #003366;
        --secondary-color: #64748b;
        --bg-light: #f8fafc;
        --white: #ffffff;
        --text-dark: #1e293b;
        --text-muted: #64748b;
        --border-color: #e2e8f0;
        --accent-gold: #fbbf24;
        --accent-teal: #0d9488;
        --font-main: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    }
    
.search-input:focus {
    outline: none;
    box-shadow: none;
}
    
.search_bar input {
    border: none !important;
    background: none;
}
.search_bar {
    display: flex;
}

.search_bar {
    display: flex;
    align-items: center;
    background: #fff;
    border: 1px solid #000;
    border-radius: 5px;
    padding: 0px 0px 0px 13px;
}

    .blueblocks-blog {
        font-family: var(--font-main);
        background-color: var(--bg-light);
        color: var(--text-dark);
        padding: 40px 20px;
        min-height: 100vh;
    }

    .container {
        max-width: 1200px;
        margin: 0 auto;
    }

    /* Header Section */
    .blog-header {
        margin-bottom: 40px;
    }

    .back-link {
        color: var(--text-muted);
        text-decoration: none;
        font-size: 14px;
        display: inline-block;
        margin-bottom: 15px;
    }

    .blog-title {
        color: var(--primary-color);
        font-size: 36px;
        font-weight: 700;
        margin: 0 0 10px 0;
    }

    .blog-subtitle {
        color: var(--text-muted);
        font-size: 18px;
        max-width: 600px;
        line-height: 1.5;
    }

    /* Filters & Search Bar */
    .controls-bar {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 30px;
        flex-wrap: wrap;
        gap: 20px;
    }

.search_bar input {
    border: none;
    background: none;
}
.search_bar {
    display: flex;
}

.search_bar {
    display: flex;
    align-items: center;
    background: #fff;
    border: 1px solid #000;
    border-radius: 5px;
    padding: 0px 0px 0px 13px;
}

    .toggle-wrapper {
        display: flex;
        align-items: center;
        gap: 10px;
        font-size: 14px;
        font-weight: 600;
    }

    .switch {
        position: relative;
        display: inline-block;
        width: 44px;
        height: 24px;
    }

    .switch input {
        opacity: 0;
        width: 0;
        height: 0;
    }

    .slider {
        position: absolute;
        cursor: pointer;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background-color: #ccc;
        transition: .4s;
        border-radius: 24px;
    }

    .slider:before {
        position: absolute;
        content: "";
        height: 18px;
        width: 18px;
        left: 3px;
        bottom: 3px;
        background-color: white;
        transition: .4s;
        border-radius: 50%;
    }

    input:checked + .slider {
        background-color: var(--primary-color);
    }

    input:checked + .slider:before {
        transform: translateX(20px);
    }

    /* Category Tabs */
    .category-tabs {
        display: flex;
        gap: 10px;
        margin-bottom: 30px;
        overflow-x: auto;
        padding-bottom: 5px;
    }

    .tab-item {
        padding: 8px 16px;
        border-radius: 20px;
        background: #eef2f6;
        color: var(--text-dark);
        text-decoration: none;
        font-size: 14px;
        font-weight: 500;
        white-space: nowrap;
        transition: all 0.3s ease;
    }

    .tab-item.active {
        background: var(--primary-color);
        color: var(--white);
    }

    .tab-item:hover:not(.active) {
        background: #e2e8f0;
    }

    /* Content Layout */
    .blog-main-layout {
        display: grid;
        grid-template-columns: 1fr 300px;
        gap: 40px;
    }

    @media (max-width: 992px) {
        .blog-main-layout {
            grid-template-columns: 1fr;
        }
    }

    /* Post Grid */
    .post-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }

    @media (max-width: 640px) {
        .post-grid {
            grid-template-columns: 1fr;
        }
    }

    /* Post Card */
    .post-card {
        background: var(--white);
        border-radius: 12px;
        overflow: hidden;
        box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
        transition: transform 0.3s ease;
        display: flex;
        flex-direction: column;
    }

    .post-card:hover {
        transform: translateY(-5px);
    }

    .post-thumbnail {
        position: relative;
        height: 200px;
        width: 100%;
        overflow: hidden;
    }

    .post-thumbnail img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .badge {
        position: absolute;
        top: 12px;
        padding: 4px 10px;
        border-radius: 4px;
        font-size: 11px;
        font-weight: 700;
        text-transform: uppercase;
        color: var(--white);
    }

    .badge-category {
        left: 12px;
        background: rgba(13, 148, 136, 0.9);
    }

    .badge-verified {
        right: 12px;
        background: rgba(251, 191, 36, 0.9);
        color: #000;
        display: flex;
        align-items: center;
        gap: 4px;
    }

    .post-content {
        padding: 20px;
        flex-grow: 1;
        display: flex;
        flex-direction: column;
    }

    .post-title {
        font-size: 20px;
        font-weight: 700;
        margin: 0 0 12px 0;
        line-height: 1.3;
        color: var(--primary-color);
    }

    .post-title a {
        color: inherit;
        text-decoration: none;
    }

    .post-excerpt {
        color: var(--text-muted);
        font-size: 14px;
        line-height: 1.6;
        margin-bottom: 20px;
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .post-meta {
        display: flex;
        align-items: center;
        gap: 12px;
        margin-top: auto;
        font-size: 12px;
        color: var(--text-muted);
    }

    .author-img {
        width: 32px;
        height: 32px;
        border-radius: 50%;
        object-fit: cover;
    }

    .meta-details {
        display: flex;
        gap: 8px;
        align-items: center;
    }

    /* Sidebar */
    .sidebar {
        display: flex;
        flex-direction: column;
        gap: 30px;
    }

    .sidebar-widget {
        background: var(--white);
        padding: 24px;
        border-radius: 12px;
        border: 1px solid var(--border-color);
    }

    .widget-title {
        display: flex;
        align-items: center;
        gap: 10px;
        font-size: 16px;
        font-weight: 700;
        margin: 0 0 20px 0;
        color: var(--primary-color);
    }

    .latest-research-list {
        list-style: none;
        padding: 0;
        margin: 0;
    }

    .research-item {
        margin-bottom: 15px;
        padding-bottom: 15px;
        border-bottom: 1px solid var(--border-color);
    }

    .research-item:last-child {
        border-bottom: none;
        margin-bottom: 0;
        padding-bottom: 0;
    }

    .research-item-title {
        font-size: 14px;
        font-weight: 600;
        margin: 0 0 5px 0;
        line-height: 1.4;
    }

    .research-links {
        display: flex;
        gap: 10px;
        font-size: 12px;
        color: var(--primary-color);
    }

    .research-links a {
        color: inherit;
        text-decoration: none;
        display: flex;
        align-items: center;
        gap: 4px;
    }

    .tag-cloud {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
    }

    .tag-cloud a {
        padding: 6px 12px;
        background: #f1f5f9;
        border-radius: 4px;
        font-size: 12px;
        text-decoration: none;
        color: var(--text-dark);
        font-weight: 500;
    }

    .tag-cloud a:hover {
        background: #e2e8f0;
    }

    .zenodo-link {
        display: block;
        margin-top: 15px;
        color: var(--primary-color);
        font-weight: 600;
        font-size: 14px;
        text-decoration: none;
    }

    /* Pagination */
    .pagination {
        margin-top: 40px !important;
        display: flex;
        justify-content: center !important;
        gap: 10px;
    }

    .pagination .page-numbers {
        padding: 8px 16px;
        background: var(--white);
        border: 1px solid var(--border-color);
        border-radius: 8px;
        text-decoration: none;
        color: var(--text-dark);
        font-weight: 500;
    }

    .pagination .current {
        background: var(--primary-color);
        color: var(--white);
        border-color: var(--primary-color);
    }

    /* Icons (Simple CSS SVG approach) */
    .icon { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2; }
