    * {
        box-sizing: border-box;
    }

    html {
        scroll-behavior: smooth;
    }

    body {
        background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
        min-height: 100vh;
    }

    .page-container {
        display: flex;
        gap: 40px;
        max-width: 1400px;
        margin: 0 auto;
        /* padding: 20px; */
        animation: fadeIn 0.5s ease-in;
    }

    @keyframes fadeIn {
        from {
            opacity: 0;
            transform: translateY(20px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    /* Sidebar Styles */
    .sidebar {
        width: 300px;
        flex-shrink: 0;
    }

    .sidebar-section {
        background: #ffffff;
        border-radius: 16px;
        padding: 28px 24px;
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
        position: sticky;
        top: 90px;
        transition: all 0.3s ease;
    }

    .sidebar-section:hover {
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    }

    .sidebar-title {
        font-size: 1.5rem;
        font-weight: 800;
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
        margin-bottom: 24px;
        letter-spacing: -0.02em;
    }

    .category-list {
        display: flex;
        flex-direction: column;
        gap: 6px;
    }

    .category-item {
        padding: 14px 18px;
        border-radius: 10px;
        text-decoration: none;
        color: #475569;
        font-weight: 500;
        font-size: 0.95rem;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        display: flex;
        align-items: center;
        position: relative;
        overflow: hidden;
    }

    .category-item::before {
        content: '';
        position: absolute;
        left: 0;
        top: 0;
        height: 100%;
        width: 3px;
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        transform: scaleY(0);
        transition: transform 0.3s ease;
    }

    .category-item:hover {
        background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
        color: #1e293b;
        transform: translateX(4px);
        box-shadow: 0 2px 8px rgba(102, 126, 234, 0.15);
    }

    .category-item:hover::before {
        transform: scaleY(1);
    }

    .category-item.active {
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        color: #ffffff;
        font-weight: 600;
        box-shadow: 0 4px 16px rgba(102, 126, 234, 0.35);
        transform: translateX(4px);
    }

    .category-item.active::before {
        transform: scaleY(1);
        background: #ffffff;
    }

    .category-item:focus {
        outline: 2px solid #667eea;
        outline-offset: 2px;
    }

    /* Main Content Styles */
    .main-content {
        flex: 1;
        min-width: 0;
        padding: 0;
    }

    .search-container {
        margin-bottom: 48px;
    }

    .search-box {
        position: relative;
        max-width: 100%;
    }

    .search-input {
        width: 100%;
        padding: 18px 24px 18px 54px;
        border: 2px solid #e2e8f0;
        border-radius: 4px;
        font-size: 1rem;
        color: #1e293b;
        background: #ffffff;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    }

    .search-input:hover {
        border-color: #cbd5e1;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    }

    .search-input:focus {
        outline: none;
        border-color: #667eea;
        box-shadow: 0 4px 20px rgba(102, 126, 234, 0.25);
        transform: translateY(-2px);
    }

    .search-icon {
        position: absolute;
        left: 20px;
        top: 50%;
        transform: translateY(-50%);
        color: #64748b;
        font-size: 1.25rem;
        transition: color 0.3s ease;
        pointer-events: none;
    }

    .search-box:focus-within .search-icon {
        color: #667eea;
    }

    .posts-grid {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
        gap: 28px;
        margin-bottom: 60px;
    }

    .post-card {
        background: #ffffff;
        border-radius: 4px;
        overflow: hidden;
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        display: flex;
        flex-direction: column;
        height: 100%;
        border: 1px solid #f1f5f9;
        position: relative;
        animation: fadeInUp 0.6s ease-out backwards;
    }

    @keyframes fadeInUp {
        from {
            opacity: 0;
            transform: translateY(30px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .post-card:nth-child(1) { animation-delay: 0.1s; }
    .post-card:nth-child(2) { animation-delay: 0.15s; }
    .post-card:nth-child(3) { animation-delay: 0.2s; }
    .post-card:nth-child(4) { animation-delay: 0.25s; }
    .post-card:nth-child(5) { animation-delay: 0.3s; }
    .post-card:nth-child(6) { animation-delay: 0.35s; }
    .post-card:nth-child(n+7) { animation-delay: 0.4s; }

    .post-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        border-radius: 16px;
        padding: 2px;
        -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
        -webkit-mask-composite: xor;
        mask-composite: exclude;
        opacity: 0;
        transition: opacity 0.4s ease;
        pointer-events: none;
    }

    .post-card:hover {
        transform: translateY(-8px);
        box-shadow: 0 20px 40px rgba(102, 126, 234, 0.2);
    }

    .post-card:hover::before {
        opacity: 1;
    }

    .post-image-link {
        display: block;
        text-decoration: none;
        overflow: hidden;
    }

    .post-image {
        width: 100%;
        height: 240px;
        object-fit: cover;
        background: linear-gradient(135deg, #f0f4f8 0%, #d9e2ec 100%);
        display: block;
        transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .post-card:hover .post-image {
        transform: scale(1.05);
    }

    .post-content {
        padding: 24px;
        flex-grow: 1;
        display: flex;
        flex-direction: column;
    }

    .post-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        margin-bottom: 16px;
        flex-wrap: wrap;
    }

    .post-date {
        font-size: 0.875rem;
        color: #475569;
        font-weight: 500;
    }

    .post-badges {
        display: flex;
        align-items: center;
        justify-content: space-between;;
        flex: 1;
    }

    .post-date::before {
        /* content: '📅'; */
        font-size: 0.85rem;
    }


    .badge {
        padding: 4px 10px;
        border-radius: 4px;
        font-size: 0.75rem;
        font-weight: 600;
        text-transform: capitalize;
        letter-spacing: 0.025em;
    }

    .badge:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    }

    .badge-category {
        background: linear-gradient(135deg, #e0e7ff 0%, #c7d2fe 100%);
        color: #4f46e5;
    }

    .badge-category.marketing {
        background: linear-gradient(135deg, #fce7f3 0%, #fbcfe8 100%);
        color: #db2777;
    }

    .badge-category.sales {
        background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
        color: #2563eb;
    }

    .badge-category.business {
        background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
        color: #059669;
    }


    @keyframes pulse {
        0%, 100% {
            opacity: 1;
        }
        50% {
            opacity: 0.85;
        }
    }

    .post-title {
        font-size: 1.375rem;
        font-weight: 700;
        color: #1e293b;
        margin: 0 0 12px 0;
        line-height: 1.4;
        letter-spacing: -0.02em;
    }

    .post-title a {
        color: inherit;
        text-decoration: none;
        transition: all 0.3s ease;
        background-size: 0% 2px;
        background-repeat: no-repeat;
        background-position: left bottom;
    }

    .post-title a:hover {
        background-size: 100% 2px;
        color: #667eea;
    }

    .post-excerpt {
        color: #64748b;
        line-height: 1.7;
        margin-bottom: 20px;
        flex-grow: 1;
        font-size: 0.9375rem;
        font-weight: 400;
        letter-spacing: 0.01em;
    }

    .post-meta {
        display: flex;
        align-items: center;
        gap: 12px;
        padding-top: 16px;
        border-top: 1px solid #e2e8f0;
        margin-top: auto;
    }

    .post-author {
        display: flex;
        align-items: center;
        gap: 10px;
        flex: 1;
    }

    .author-avatar {
        width: 56px;
        height: 56px;
        border-radius: 50%;
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        display: flex;
        align-items: center;
        justify-content: center;
        color: #fff;
        font-weight: 600;
        font-size: 0.875rem;
        flex-shrink: 0;
        border: 2px solid #ffffff;
        box-shadow: 0 2px 8px rgba(102, 126, 234, 0.25);
        transition: transform 0.3s ease;
    }

    .post-card:hover .author-avatar {
        transform: scale(1.1) rotate(5deg);
    }

    .author-info {
        display: flex;
        flex-direction: column;
        gap: 2px;
    }

    .author-name {
        font-size: 0.9375rem;
        font-weight: 600;
        color: #1e293b;
        line-height: 1.2;
    }

    .author-role {
        font-size: 0.8125rem;
        color: #64748b;
        line-height: 1.2;
    }

    .post-stats {
        display: flex;
        gap: 12px;
        font-size: 0.8125rem;
        color: #64748b;
    }

    .stat-item {
        display: flex;
        align-items: center;
        gap: 6px;
        /* font-weight: 500; */
    }

    /* .stat-item::before {
        font-size: 0.9rem;
    } */

    .no-posts {
        text-align: center;
        padding: 100px 20px;
        background: #ffffff;
        border-radius: 20px;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    }

    .no-posts-icon {
        font-size: 5rem;
        margin-bottom: 24px;
        opacity: 0.4;
        animation: float 3s ease-in-out infinite;
    }

    @keyframes float {
        0%, 100% {
            transform: translateY(0);
        }
        50% {
            transform: translateY(-10px);
        }
    }

    .no-posts-text {
        font-size: 1.5rem;
        color: #64748b;
        font-weight: 500;
    }

    .breadcrumb {
        display: flex;
        align-items: center;
        gap: 10px;
        margin-bottom: 30px;
        padding: 15px 0;
        font-size: 0.9rem;
        color: #64748b;
    }
    
    .breadcrumb a {
        color: #667eea;
        text-decoration: none;
        transition: color 0.3s ease;
    }
    
    .breadcrumb a:hover {
        color: #764ba2;
        text-decoration: underline;
    }
    
    .breadcrumb-separator {
        color: #cbd5e0;
    }

    .back-link {
        display: inline-block;
        margin-bottom: 30px;
        color: #667eea;
        text-decoration: none;
        font-weight: 600;
        font-size: 1rem;
        transition: color 0.3s ease;
    }

    .back-link:hover {
        color: #764ba2;
    }

    @media screen and (max-width: 768px) {
        .page-container {
            flex-direction: column;
            gap: 20px;
            /* padding: 16px; */
        }

        .sidebar {
            width: 100%;
            order: 2;
        }

        .sidebar-section {
            position: static;
        }

        .main-content {
            order: 1;
        }

        .search-container {
            margin-bottom: 24px;
        }

        .breadcrumb-nav {
            margin-bottom: 24px;
        }

        .breadcrumb-list {
            font-size: 0.8125rem;
            overflow-x: auto;
            scrollbar-width: none;
        }

        .breadcrumb-list::-webkit-scrollbar {
            display: none;
        }

        .breadcrumb-link {
            padding: 5px 10px;
            gap: 5px;
            white-space: nowrap;
        }

        .breadcrumb-current-text {
            /* padding: 5px 0px; */
            white-space: nowrap;
        }

        .breadcrumb-separator {
            margin: 0 3px;
        }

        .search-input {
            padding: 16px 20px 16px 50px;
            font-size: 0.95rem;
        }

        .posts-grid {
            grid-template-columns: 1fr;
            gap: 20px;
        }

        .post-title {
            font-size: 1.25rem;
        }

        .post-image {
            height: 200px;
        }
    }

    @media screen and (min-width: 1200px) {
        .posts-grid {
            grid-template-columns: repeat(3, 1fr);
        }
        
        .grid-ad {
            grid-column: 1 / -1;
            /* 🔥 THIS forces full width */
            width: 100%;
        }
    }

    /* Breadcrumb Styles */
    .breadcrumb-nav {
        margin-bottom: 32px;
        animation: slideInDown 0.5s ease-out;
    }

    @keyframes slideInDown {
        from {
            opacity: 0;
            transform: translateY(-10px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .breadcrumb-list {
        display: flex;
        align-items: center;
        list-style: none;
        margin: 0;
        font-size: 0.875rem;
        color: #64748b;
        transition: box-shadow 0.3s ease;
    }


    .breadcrumb-item {
        display: flex;
        align-items: center;
    }

    .breadcrumb-link {
        display: inline-flex;
        align-items: center;
        gap: 7px;
        color: #1536c9;
        text-decoration: none;
        /* padding: 6px 14px;
        border-radius: 8px; */
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        font-weight: 500;
        position: relative;
    }

    .breadcrumb-link::after {
        content: '';
        position: absolute;
        bottom: 4px;
        left: 14px;
        right: 14px;
        height: 2px;
        /* background: linear-gradient(90deg, #667eea, #764ba2); */
        transform: scaleX(0);
        transition: transform 0.3s ease;
    }

    .breadcrumb-link:hover {
        background: linear-gradient(135deg, rgba(102, 126, 234, 0.08) 0%, rgba(118, 75, 162, 0.08) 100%);
        color: #764ba2;
    }

    .breadcrumb-link:hover::after {
        transform: scaleX(1);
    }

    .breadcrumb-separator {
        color: #64748b;
        margin: 0 8px;
    }

    .breadcrumb-separator span {
        opacity: 0.5;
    }

    .breadcrumb-current-text {
        color: #1e293b;
        font-weight: 600;
        /* padding: 6px 14px; */
        position: relative;
        overflow: hidden;
    }

    .breadcrumb-current-text::before {
        content: '';
        position: absolute;
        left: 0;
        top: 0;
        bottom: 0;
        width: 3px;
    }

    /* Search Dropdown Styles */
    .search-container {
        position: relative;
    }

    .search-dropdown {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #ffffff;
        border: 1px solid #e2e8f0;
        border-top: none;
        border-radius: 0 0 12px 12px;
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
        max-height: 400px;
        overflow-y: auto;
        z-index: 1000;
        margin-top: 1px;
    }

    /* Custom Scrollbar for Search Dropdown */
    .search-dropdown::-webkit-scrollbar {
        width: 8px;
    }

    .search-dropdown::-webkit-scrollbar-track {
        background: #f1f5f9;
        border-radius: 0 0 12px 0;
    }

    .search-dropdown::-webkit-scrollbar-thumb {
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        border-radius: 4px;
    }

    .search-dropdown::-webkit-scrollbar-thumb:hover {
        background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
    }

    .search-result-item {
        padding: 18px 20px;
        border-bottom: 1px solid #f1f5f9;
        cursor: pointer;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        position: relative;
    }

    .search-result-item::before {
        content: '';
        position: absolute;
        left: 0;
        top: 0;
        height: 100%;
        width: 3px;
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        transform: scaleY(0);
        transition: transform 0.3s ease;
    }

    .search-result-item:hover {
        background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
        transform: translateX(6px);
    }

    .search-result-item:hover::before {
        transform: scaleY(1);
    }

    .search-result-item:last-child {
        border-bottom: none;
    }

    .search-result-header {
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
        margin-bottom: 8px;
    }

    .search-result-title {
        font-size: 1rem;
        font-weight: 600;
        color: #1e293b;
        margin: 0;
        line-height: 1.4;
        flex: 1;
        margin-right: 12px;
        transition: color 0.3s ease;
    }

    .search-result-item:hover .search-result-title {
        color: #667eea;
    }

    .search-result-category {
        font-size: 0.75rem;
        padding: 5px 12px;
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        color: white;
        border-radius: 6px;
        font-weight: 600;
        white-space: nowrap;
        box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
        text-transform: uppercase;
        letter-spacing: 0.05em;
    }

    .search-result-excerpt {
        font-size: 0.9rem;
        color: #64748b;
        margin: 8px 0;
        line-height: 1.5;
    }

    .search-result-date {
        font-size: 0.8rem;
        color: #64748b;
        font-weight: 500;
    }

    .search-loading,
    .search-no-results {
        padding: 24px;
        text-align: center;
        color: #64748b;
        font-style: italic;
        font-size: 0.95rem;
    }

    .search-loading {
        background: linear-gradient(90deg, #fafbfc 0%, #f1f5f9 50%, #fafbfc 100%);
        background-size: 200% 100%;
        animation: shimmer 2s infinite ease-in-out;
        position: relative;
    }

    .search-loading::before {
        content: '🔍';
        display: block;
        font-size: 2rem;
        margin-bottom: 8px;
        animation: rotate 2s linear infinite;
    }

    @keyframes rotate {
        from {
            transform: rotate(0deg);
        }
        to {
            transform: rotate(360deg);
        }
    }

    @keyframes shimmer {
        0% {
            background-position: 200% 0;
        }
        100% {
            background-position: -200% 0;
        }
    }

    .search-no-results::before {
        content: '📭';
        display: block;
        font-size: 2rem;
        margin-bottom: 8px;
        opacity: 0.6;
    }

    /* Highlight search terms */
    mark {
        background-color: #fef08a;
        color: #854d0e;
        padding: 2px 1px;
        border-radius: 2px;
        font-weight: 600;
    }

    /* Mobile optimization for search dropdown */
    @media (max-width: 768px) {
        .search-dropdown {
            max-height: 300px;
        }
        
        .search-result-item {
            padding: 12px;
        }
        
        .search-result-header {
            flex-direction: column;
            align-items: flex-start;
            gap: 8px;
        }
        
        .search-result-title {
            margin-right: 0;
            font-size: 0.95rem;
        }
        
        .search-result-category {
            align-self: flex-start;
        }
    }
