/* Blog Archive Page Styles - Do NOT override global theme styles */
    .blog-hero,
    .blog-page-wrapper {
        --primary: #ff6b35;
        --primary-dark: #e55a2b;
        --secondary: #2a5298;
        --secondary-dark: #1e3c72;
        --text-dark: #333;
        --text-light: #666;
        --glass-bg: rgba(255,255,255,0.95);
        --glass-border: rgba(255,255,255,0.6);
        --glass-shadow: 0 8px 32px 0 rgba(31,38,135,0.1);
    }
    
    /* Only style blog-specific elements, don't reset global styles */
    
    /* =============================
       BLOG HERO BANNER
    ============================= */
    .blog-hero {
        background: linear-gradient(135deg, #1e3c72 0%, #2a5298 50%, #667eea 100%);
        color: white;
        padding: 5rem 0 6rem;
        text-align: center;
        position: relative;
        overflow: hidden;
    }
    /* Animated background blobs */
    .blog-hero::before {
        content: '';
        position: absolute;
        top: -80px; right: -80px;
        width: 400px; height: 400px;
        background: rgba(255,107,53,0.12);
        border-radius: 50%;
        filter: blur(60px);
        animation: blobFloat 8s ease-in-out infinite;
    }
    .blog-hero::after {
        content: '';
        position: absolute;
        bottom: -100px; left: -60px;
        width: 350px; height: 350px;
        background: rgba(102,126,234,0.15);
        border-radius: 50%;
        filter: blur(60px);
        animation: blobFloat 10s ease-in-out infinite reverse;
    }
    @keyframes blobFloat {
        0%, 100% { transform: translateY(0) scale(1); }
        50%       { transform: translateY(-20px) scale(1.05); }
    }
    .blog-hero-inner {
        position: relative;
        z-index: 2;
        max-width: 800px;
        margin: 0 auto;
        padding: 0 2rem;
    }
    .blog-hero-badge {
        display: inline-flex;
        align-items: center;
        gap: 0.5rem;
        background: rgba(255,107,53,0.2);
        border: 1px solid rgba(255,107,53,0.35);
        color: #ffcbba;
        padding: 0.45rem 1.2rem;
        border-radius: 50px;
        font-size: 0.88rem;
        font-weight: 600;
        margin-bottom: 1.5rem;
    }
    .blog-hero h1 {
        font-size: 3rem;
        font-weight: 800;
        line-height: 1.2;
        margin-bottom: 1rem;
    }
    .blog-hero p {
        font-size: 1.15rem;
        opacity: 0.85;
        max-width: 600px;
        margin: 0 auto 2.5rem;
        line-height: 1.7;
    }
    /* Search bar inside hero */
    .blog-search-form {
        max-width: 560px;
        margin: 0 auto;
    }
    .blog-search-form .search-group {
        background: white;
        border-radius: 50px;
        display: flex;
        align-items: center;
        padding: 0.4rem;
        box-shadow: 0 20px 50px rgba(0,0,0,0.2);
        border: 3px solid rgba(255,255,255,0.2);
    }
    .blog-search-form .search-group i {
        color: var(--primary);
        font-size: 1.1rem;
        margin-left: 1.2rem;
        margin-right: 0.5rem;
    }
    .blog-search-form input {
        flex: 1;
        border: none;
        outline: none;
        font-size: 1rem;
        color: #333;
        padding: 0.9rem 0.5rem;
        background: transparent;
    }
    .blog-search-form input::placeholder { color: #aaa; }
    .blog-search-form button {
        background: var(--primary);
        color: white;
        border: none;
        padding: 0.85rem 1.8rem;
        border-radius: 40px;
        font-weight: bold;
        cursor: pointer;
        transition: all 0.3s;
        font-size: 0.95rem;
    }
    .blog-search-form button:hover {
        background: var(--primary-dark);
        transform: translateY(-1px);
        box-shadow: 0 4px 15px rgba(255,107,53,0.4);
    }

    /* =============================
       BLOG LAYOUT WRAPPER
    ============================= */
    .blog-page-wrapper {
        /* Dot-grid background — same as pricing section */
        background-color: #f4f6f8;
        background-image: radial-gradient(#dde1e7 1.2px, transparent 1.2px);
        background-size: 28px 28px;
        padding: 4rem 0 5rem;
    }
    .blog-container {
        max-width: 1200px;
        margin: 0 auto;
        padding: 0 2rem;
        display: grid;
        grid-template-columns: 1fr 340px;
        gap: 3rem;
        align-items: start;
    }
    @media (max-width: 1024px) {
        .blog-container { grid-template-columns: 1fr; }
    }
    
    @media (max-width: 768px) {
        .blog-hero h1 { font-size: 2rem; }
        .blog-hero p { font-size: 1rem; }
        .blog-search-form input { font-size: 16px; } /* Prevent iOS zoom */
        .featured-post-card { grid-template-columns: 1fr; min-height: auto; }
        .featured-post-content { padding: 1.5rem; }
        .featured-post-card h2 { font-size: 1.3rem; }
        .post-card { flex-direction: column; }
        .post-thumbnail-wrapper { height: 180px; }
        .post-body { padding: 1.2rem; }
        .post-title { font-size: 1rem; }
        .category-pills { gap: 0.4rem; padding: 1rem; }
        .pill { padding: 0.4rem 0.8rem; font-size: 0.8rem; }
        .blog-sidebar { position: static; }
    }
    
    @media (max-width: 480px) {
        .blog-hero { padding: 3rem 0 4rem; }
        .blog-hero-inner { padding: 0 1rem; }
        .featured-post-content { padding: 1rem; }
        .featured-post-card h2 { font-size: 1.1rem; }
        .post-thumbnail-wrapper { height: 150px; }
        .post-body { padding: 1rem; }
        .post-title { font-size: 0.95rem; }
        .category-pills { 
            gap: 0.3rem; 
            margin-bottom: 1.5rem;
        }
        .blog-pagination { margin-top: 2rem; }
        .sidebar-widget { margin-bottom: 1.5rem; padding: 1.2rem; }
    }

    /* =============================
       CATEGORY FILTER PILLS
    ============================= */
    .category-pills {
        display: flex;
        gap: 0.7rem;
        flex-wrap: wrap;
        margin-bottom: 2.5rem;
        padding: 1.5rem 2rem;
        background: var(--glass-bg);
        backdrop-filter: blur(12px);
        border: 1px solid var(--glass-border);
        border-radius: 20px;
        box-shadow: var(--glass-shadow);
    }
    .pill {
        padding: 0.5rem 1.2rem;
        border-radius: 50px;
        font-size: 0.88rem;
        font-weight: 600;
        cursor: pointer;
        transition: all 0.3s;
        text-decoration: none;
        border: 1.5px solid #e0e0e0;
        color: var(--text-light);
        background: white;
    }
    .pill:hover, .pill.active {
        background: var(--primary);
        color: white;
        border-color: var(--primary);
        transform: translateY(-2px);
        box-shadow: 0 5px 15px rgba(255,107,53,0.3);
    }

    /* =============================
       FEATURED POST (TOP CARD)
    ============================= */
    .featured-post-card {
        background: linear-gradient(135deg, var(--secondary-dark) 0%, var(--secondary) 100%);
        color: white;
        border-radius: 24px;
        overflow: hidden;
        margin-bottom: 2rem;
        display: grid;
        grid-template-columns: 1fr 1fr;
        min-height: 300px;
        box-shadow: 0 20px 50px rgba(30,60,114,0.25);
        transition: transform 0.3s, box-shadow 0.3s;
        position: relative;
    }
    .featured-post-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 30px 60px rgba(30,60,114,0.3);
    }
    @media (max-width: 768px) { .featured-post-card { grid-template-columns: 1fr; } }
    .featured-post-content {
        padding: 2.5rem;
        display: flex;
        flex-direction: column;
        justify-content: center;
        position: relative;
        z-index: 2;
    }
    .featured-label {
        background: var(--primary);
        color: white;
        padding: 0.3rem 0.9rem;
        border-radius: 20px;
        font-size: 0.75rem;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 1px;
        display: inline-block;
        margin-bottom: 1rem;
        width: fit-content;
    }
    .featured-post-card h2 {
        font-size: 1.7rem;
        font-weight: 800;
        line-height: 1.3;
        margin-bottom: 1rem;
        color: white;
    }
    .featured-post-card p {
        opacity: 0.85;
        font-size: 1rem;
        line-height: 1.6;
        margin-bottom: 1.5rem;
    }
    .featured-post-meta {
        display: flex;
        align-items: center;
        gap: 1rem;
        font-size: 0.85rem;
        opacity: 0.7;
        margin-bottom: 1.5rem;
    }
    .btn-read-more {
        background: var(--primary);
        color: white;
        padding: 0.75rem 1.8rem;
        border-radius: 30px;
        text-decoration: none;
        font-weight: bold;
        font-size: 0.95rem;
        width: fit-content;
        transition: all 0.3s;
        display: inline-flex;
        align-items: center;
        gap: 0.5rem;
    }
    .btn-read-more:hover {
        background: var(--primary-dark);
        transform: translateY(-2px);
        box-shadow: 0 8px 20px rgba(255,107,53,0.4);
    }
    .featured-post-image {
        position: relative;
        overflow: hidden;
    }
    .featured-post-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.5s;
    }
    .featured-post-card:hover .featured-post-image img {
        transform: scale(1.05);
    }
    /* Fallback gradient thumbnail when no image */
    .featured-post-image .img-placeholder {
        width: 100%;
        height: 100%;
        background: linear-gradient(135deg, rgba(255,107,53,0.3), rgba(102,126,234,0.4));
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 5rem;
        color: rgba(255,255,255,0.3);
    }

    /* =============================
       POST GRID (3 columns)
    ============================= */
    .posts-grid {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
        gap: 1.8rem;
    }
    .post-card {
        background: var(--glass-bg);
        backdrop-filter: blur(12px);
        border: 1px solid var(--glass-border);
        border-radius: 20px;
        overflow: hidden;
        transition: all 0.3s ease;
        box-shadow: var(--glass-shadow);
        display: flex;
        flex-direction: column;
    }
    .post-card:hover {
        transform: translateY(-6px);
        box-shadow: 0 25px 50px rgba(0,0,0,0.12);
        border-color: rgba(255,107,53,0.2);
    }
    .post-thumbnail {
        width: 100%;
        height: 200px;
        object-fit: cover;
        display: block;
        transition: transform 0.4s ease;
    }
    .post-card:hover .post-thumbnail { transform: scale(1.04); }
    .post-thumbnail-wrapper {
        overflow: hidden;
        position: relative;
    }
    /* Category label on image */
    .post-category-badge {
        position: absolute;
        top: 12px;
        left: 12px;
        background: var(--primary);
        color: white;
        font-size: 0.72rem;
        font-weight: 700;
        padding: 0.3rem 0.8rem;
        border-radius: 20px;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }
    /* Gradient thumbnail fallback per category */
    .thumb-placeholder {
        width: 100%;
        height: 200px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 3rem;
    }
    .thumb-blue   { background: linear-gradient(135deg, #e3f2fd, #bbdefb); color: #1976d2; }
    .thumb-orange { background: linear-gradient(135deg, #fff3e0, #ffe0b2); color: #ef6c00; }
    .thumb-green  { background: linear-gradient(135deg, #e8f5e9, #c8e6c9); color: #2e7d32; }
    .thumb-purple { background: linear-gradient(135deg, #f3e5f5, #e1bee7); color: #7b1fa2; }

    .post-body { padding: 1.5rem; flex: 1; display: flex; flex-direction: column; }
    .post-meta {
        display: flex;
        align-items: center;
        gap: 1rem;
        font-size: 0.82rem;
        color: var(--text-light);
        margin-bottom: 0.75rem;
    }
    .post-meta i { color: var(--primary); }
    .post-title {
        font-size: 1.15rem;
        font-weight: 700;
        color: var(--text-dark);
        line-height: 1.4;
        margin-bottom: 0.75rem;
        text-decoration: none;
        display: block;
        transition: color 0.2s;
    }
    .post-title:hover { color: var(--primary); }
    .post-excerpt {
        color: var(--text-light);
        font-size: 0.92rem;
        line-height: 1.6;
        flex: 1;
        margin-bottom: 1.2rem;
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    .post-footer {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding-top: 1rem;
        border-top: 1px solid #f0f0f0;
    }
    .author-mini {
        display: flex;
        align-items: center;
        gap: 0.6rem;
        font-size: 0.85rem;
        color: var(--text-light);
    }
    .author-avatar-mini {
        width: 32px; height: 32px;
        border-radius: 50%;
        background: linear-gradient(135deg, #667eea, #764ba2);
        color: white;
        font-weight: bold;
        font-size: 0.8rem;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .read-link {
        color: var(--primary);
        font-size: 0.88rem;
        font-weight: 700;
        text-decoration: none;
        display: flex;
        align-items: center;
        gap: 4px;
        transition: gap 0.2s;
    }
    .read-link:hover { gap: 8px; }
    .read-time {
        font-size: 0.8rem;
        color: var(--text-light);
        background: #f1f3f5;
        padding: 0.25rem 0.7rem;
        border-radius: 20px;
    }

    /* =============================
       PAGINATION
    ============================= */
    .blog-pagination {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 0.5rem;
        margin-top: 3.5rem;
        flex-wrap: wrap;
    }
    .blog-pagination .page-numbers {
        width: 44px; height: 44px;
        border-radius: 12px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-weight: 600;
        font-size: 0.95rem;
        text-decoration: none;
        transition: all 0.3s;
        border: 1.5px solid #e0e0e0;
        color: var(--text-dark);
        background: white;
    }
    .blog-pagination .page-numbers:hover,
    .blog-pagination .page-numbers.current {
        background: var(--primary);
        color: white;
        border-color: var(--primary);
        box-shadow: 0 5px 15px rgba(255,107,53,0.3);
    }

    /* =============================
       SIDEBAR
    ============================= */
    .blog-sidebar { position: sticky; top: 90px; }

    .sidebar-widget {
        background: var(--glass-bg);
        backdrop-filter: blur(12px);
        border: 1px solid var(--glass-border);
        border-radius: 20px;
        padding: 1.8rem;
        margin-bottom: 2rem;
        box-shadow: var(--glass-shadow);
    }
    .widget-title {
        font-size: 1.1rem;
        font-weight: 700;
        color: var(--text-dark);
        margin-bottom: 1.2rem;
        padding-bottom: 0.8rem;
        border-bottom: 2px solid var(--primary);
        display: flex;
        align-items: center;
        gap: 0.5rem;
    }
    .widget-title i { color: var(--primary); }

    /* Popular posts in sidebar */
    .popular-post-item {
        display: flex;
        gap: 0.8rem;
        padding: 0.8rem 0;
        border-bottom: 1px solid #f0f0f0;
        align-items: flex-start;
        text-decoration: none;
        transition: all 0.2s;
    }
    .popular-post-item:last-child { border-bottom: none; }
    .popular-post-item:hover { transform: translateX(4px); }
    .pop-num {
        width: 28px; height: 28px;
        border-radius: 8px;
        background: linear-gradient(135deg, var(--primary), var(--primary-dark));
        color: white;
        font-size: 0.8rem;
        font-weight: bold;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
    }
    .pop-title {
        font-size: 0.88rem;
        font-weight: 600;
        color: var(--text-dark);
        line-height: 1.4;
    }
    .pop-meta { font-size: 0.78rem; color: var(--text-light); margin-top: 0.2rem; }

    /* Tag cloud */
    .tag-cloud { display: flex; flex-wrap: wrap; gap: 0.5rem; }
    .tag-pill {
        padding: 0.35rem 0.9rem;
        border-radius: 20px;
        font-size: 0.82rem;
        font-weight: 600;
        background: #f0f2f5;
        color: var(--text-light);
        text-decoration: none;
        border: 1px solid #e5e7eb;
        transition: all 0.3s;
    }
    .tag-pill:hover {
        background: var(--primary);
        color: white;
        border-color: var(--primary);
    }

    /* CTA Widget */
    .cta-widget {
        background: linear-gradient(135deg, var(--secondary-dark), var(--secondary));
        color: white;
        border-radius: 20px;
        padding: 2rem;
        text-align: center;
        position: relative;
        overflow: hidden;
    }
    .cta-widget::before {
        content: '';
        position: absolute;
        top: -30px; right: -30px;
        width: 120px; height: 120px;
        background: rgba(255,107,53,0.15);
        border-radius: 50%;
    }
    .cta-widget h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: 0.8rem; position: relative; z-index: 1; }
    .cta-widget p { font-size: 0.9rem; opacity: 0.85; margin-bottom: 1.5rem; line-height: 1.6; position: relative; z-index: 1; }
    .cta-widget a {
        display: inline-block;
        background: var(--primary);
        color: white;
        padding: 0.8rem 1.8rem;
        border-radius: 30px;
        font-weight: bold;
        font-size: 0.9rem;
        text-decoration: none;
        transition: all 0.3s;
        position: relative; z-index: 1;
    }
    .cta-widget a:hover { background: var(--primary-dark); transform: translateY(-2px); box-shadow: 0 8px 20px rgba(255,107,53,0.4); }

    /* No posts message */
    .no-posts {
        text-align: center;
        padding: 5rem 2rem;
        background: var(--glass-bg);
        border-radius: 24px;
        border: 1px solid var(--glass-border);
    }
    .no-posts i { font-size: 3.5rem; color: #ddd; margin-bottom: 1rem; }
    .no-posts h3 { font-size: 1.5rem; color: var(--text-dark); margin-bottom: 0.5rem; }
    .no-posts p { color: var(--text-light); }

    /* Animations */
    .fade-in-up { opacity: 0; transform: translateY(24px); transition: all 0.55s ease-out; }
    .fade-in-up.visible { opacity: 1; transform: translateY(0); }

    @media (max-width: 768px) {
        .blog-hero h1 { font-size: 2rem; }
        .posts-grid { grid-template-columns: 1fr; }
        .featured-post-card { grid-template-columns: 1fr; }
        .blog-container { grid-template-columns: 1fr; }
    }