    /* AESTHETIC: Clean Editorial with Bold Accents - SLIGHTLY MORE COMPACT */
    /* Hero section styles */
.hero-section {
    background: var(--primary-gradient);
    padding: 2.5rem 1.5rem;
    margin-bottom: 1rem;
    border-radius: 12px;
    text-align: center;
}

.hero-section h1 {
    font-size: 2rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.hero-section p {
    font-size: 1.20rem;
    color: #a0aec0;
    margin-bottom: 1.5rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-btn {
    display: inline-flex;
    align-items: center;
    padding: 0.44rem 1.2rem;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.90rem;
}

.hero-btn-primary {
    background: #667eea;
    color: #ffffff;
    border: 2px solid #667eea;
}

.hero-btn-primary:hover {
    background: #5568d3;
    border-color: #5568d3;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.hero-btn-secondary {
    background: transparent;
    color: #ffffff;
    border: 2px solid #4a5568;
}

.hero-btn-secondary:hover {
    background: #4a5568;
    border-color: #4a5568;
    color: #ffffff;
    transform: translateY(-2px);
}

    /* Quick Create Form */
    .quick-create-form {
        background: rgba(255, 255, 255, 0.98);
        border-radius: 16px;
        padding: 1.25rem; /* Reduced from 1.5rem */
        box-shadow: var(--shadow-md);
        backdrop-filter: blur(10px);
    }

    .quick-create-input {
        border: 2px solid var(--border-color);
        border-radius: 12px;
        padding: 0.875rem 1.125rem; /* Reduced from 1rem 1.25rem */
        font-size: 0.95rem; /* Reduced from 1rem */
        transition: all 0.3s ease;
        background: white;
    }

    .quick-create-input:focus {
        border-color: var(--accent-color);
        box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
        outline: none;
    }

    .quick-create-actions {
        display: flex;
        gap: 1rem;
        margin-top: 0.875rem; /* Reduced from 1rem */
        align-items: center;
    }

    .btn-gradient {
        background: var(--primary-gradient);
        color: white;
        border: none;
        padding: 0.625rem 1.25rem; /* Reduced from 0.75rem 1.5rem */
        border-radius: 10px;
        font-weight: 600;
        cursor: pointer;
        transition: all 0.3s ease;
        box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
    }

    .btn-gradient:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 16px rgba(102, 126, 234, 0.4);
    }

    /* Filter Tabs - SLIGHTLY SMALLER */
    .filter-section {
        background: var(--bg-card);
        border-radius: 16px;
        padding: 1rem; /* Reduced from 1.25rem */
        box-shadow: var(--shadow-sm);
        display: flex;
        justify-content: space-between;
        align-items: center;
        flex-wrap: wrap;
        gap: 0.875rem; /* Reduced from 1rem */
    }

    .filter-tabs {
        display: flex;
        gap: 0.5rem;
        background: var(--bg-secondary);
        padding: 0.375rem;
        border-radius: 12px;
    }

    .filter-tab {
        padding: 0.5rem 1rem; /* Reduced from 0.625rem 1.25rem */
        border-radius: 8px;
        border: none;
        background: transparent;
        color: var(--text-secondary);
        font-weight: 600;
        cursor: pointer;
        transition: all 0.3s ease;
        font-size: 0.9rem; /* Reduced from 0.95rem */
    }

    .filter-tab:hover {
        background: rgba(102, 126, 234, 0.1);
        color: var(--accent-color);
    }

    .filter-tab.active {
        background: var(--accent-color);
        color: var(--text-primary); /* Keep white text on accent */
        box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
    }

    .category-filter {
        border: 2px solid var(--border-color);
        border-radius: 10px;
        padding: 0.5rem 0.875rem; /* Reduced from 0.625rem 1rem */
        font-size: 0.9rem; /* Reduced from 0.95rem */
        color: var(--text-primary);
        background: var(--bg-primary);
        cursor: pointer;
        transition: all 0.3s ease;
        min-width: 160px; /* Reduced from 180px */
    }

    .category-filter:focus {
        border-color: var(--accent-color);
        outline: none;
        box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
    }

    /* Post Cards - SLIGHTLY SMALLER */
    .posts-container {
        display: grid;
    
    }

    .post-card {
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-tertiary) 100%);
    /*  background-color: var(--bg-secondary);*/
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid var(--border-color);
    overflow-wrap: break-word;     
    position: relative;
    overflow: hidden;
}

    .post-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    background: var(--primary-gradient);
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

    .post-card:hover {
        transform: translateY(-4px);
        box-shadow: var(--shadow-md);
        border-color: var(--accent-color);
    }

    .post-card:hover::before {
        transform: scaleY(1);
    }

    .post-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
}
    .post-header-left {
    display: flex;
    align-items: flex-start;
    gap: 0.875rem;
    flex: 1;
    min-width: 0; /* Allows text truncation */
}
.post-header-right {
    display: flex;
    align-items: flex-start;
    flex-shrink: 0;
}
    .post-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%; /* Circular for sleeker look */
    border: 2px solid var(--border-color);
    object-fit: cover;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

    .post-image {
    text-align: center;
    margin: 1rem 0;
    border-radius: 8px;
    overflow: hidden;
}
    .post-image-preview {
    transition: transform 0.3s ease;
}

    .post-author-info {
        flex: 1;
    }

    .post-author-name {
        font-weight: 700;
        color: var(--text-primary);
        font-size: 0.95rem; /* Reduced from 1rem */
        margin-bottom: 0.25rem;
        display: flex;
        align-items: center;
        gap: 0.5rem;
    }

    .post-meta {
        font-size: 0.825rem; /* Reduced from 0.875rem */
        color: var(--text-secondary);
        display: flex;
        align-items: center;
        gap: 0.75rem;
        flex-wrap: wrap;
    }
    .post-badge{
        align-items: center;
    }

    .category-badge {
        display: inline-flex;
        align-items: center;
        padding: 0.4rem 0.75rem;
        border-radius: 20px; /* Pill shape for sleeker look */
        font-size: 0.75rem;
        font-weight: 700;

        text-decoration: none;
        transition: all 0.3s ease;
        white-space: nowrap;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    }

    .category-badge:hover {
        opacity: 0.9;
        transform: translateY(-1px);
    }
    .featured-badge {
        display: inline-flex;
        align-items: center;
        padding: 0.1rem 0.50rem;
        border-radius: 5px; /* Pill shape for sleeker look */
        font-size: 0.75rem;
        font-weight: 700;
        gap:0.25rem;
     
        color: #e1bb34;
        text-decoration: none;
        transition: all 0.3s ease;
        white-space: nowrap;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    }
    .hub-badge {
        display: inline-flex;
        align-items: center;
        gap: 0.375rem;
        padding: 0.3rem 0.625rem; /* Reduced from 0.375rem 0.75rem */
        background: var(--bg-secondary);
        border-radius: 8px;
        font-size: 0.7rem; /* Reduced from 0.75rem */
        font-weight: 600;
        color: var(--text-primary);
        text-decoration: none;
        transition: all 0.3s ease;
    }

    .hub-badge:hover {
        background: var(--accent-color);
        color: white;
    }

    .post-title {
        font-size: 1.35rem;
        font-weight: 700;
        margin-bottom: 0.75rem;
        line-height: 1.3;
    }


    .post-title a {
        color: var(--text-primary);
        text-decoration: none;
        transition: color 0.3s ease;
        background: linear-gradient(to right, var(--accent-color), var(--accent-color)) no-repeat;
        background-size: 0% 2px;
        background-position: left bottom;
        transition: background-size 0.3s ease, color 0.3s ease;
    }

    .post-title a:hover {
        color: var(--accent-color);
    }

    .post-image-preview {
        max-width: 100%;
        max-height: 350px; /* Added limit - was unlimited */
        border-radius: 12px;
        margin-bottom: 0.875rem; /* Reduced from 1rem */
        object-fit: cover; /* Added for consistent sizing */
    }

    .post-excerpt  {
     
        line-height: 1.6;
        margin-bottom: 1rem;
    }
    .post-excerpt a {
        color: var(--text-secondary);
        text-decoration: none;
    }
    .post-footer {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding-top: 1rem;
      
    }

    .post-stats {
        display: flex;
        gap: 1.25rem; /* Reduced from 1.5rem */
    }

    .post-stat {
        display: flex;
        align-items: center;
        gap: 0.375rem;
        color: var(--text-secondary);
        font-size: 0.85rem;
        transition: color 0.3s ease;
    }

    .read-more-btn {
        color: var(--accent-color);
        font-weight: 600;
        text-decoration: none;
        display: inline-flex;
        align-items: center;
        transition: all 0.3s ease;
        font-size: 0.875rem;
        padding: 0.5rem 1rem;
        border-radius: 8px;
        background: transparent;
    }

    .read-more-btn:hover {
        background: rgba(var(--accent-color-rgb), 0.1);
        transform: translateX(4px);
    }

    /* FIXED: Sidebar Sticky Scrolling */
    .sidebar {
        position: sticky;
        top: 80px;
        max-height: calc(100vh - 100px);
        overflow-y: auto;
        overflow-x: hidden;
        padding-right: 0.5rem;
    }

    /* Custom scrollbar for sidebar */
    .sidebar::-webkit-scrollbar {
        width: 6px;
    }

    .sidebar::-webkit-scrollbar-track {
        background: var(--bg-secondary);
        border-radius: 10px;
    }

    .sidebar::-webkit-scrollbar-thumb {
        background: var(--border-color);
        border-radius: 10px;
        transition: background 0.3s ease;
    }

    .sidebar::-webkit-scrollbar-thumb:hover {
        background: var(--accent-color);
    }

    /* For Firefox */
    .sidebar {
        scrollbar-width: thin;
        scrollbar-color: var(--border-color) var(--bg-secondary);
    }

    /* Loading Spinner */
    .loading-spinner {
        text-align: center;
        padding: 2.5rem 1rem; /* Reduced from 3rem */
    }

    .spinner {
        width: 45px; /* Reduced from 50px */
        height: 45px;
        border: 4px solid var(--border-color);
        border-top: 4px solid var(--accent-color);
        border-radius: 50%;
        animation: spin 1s linear infinite;
        margin: 0 auto;
    }
 
    @keyframes spin {
        0% { transform: rotate(0deg); }
        100% { transform: rotate(360deg); }
    }

    /* Stats Button with Menu */
.stats-wrapper {
    position: relative;
}

.post-stat-clickable {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;

    border-radius: 8px;

    cursor: pointer;
    transition: all 0.2s ease;
    border: 2px solid transparent;
    font-size: 0.9rem;
}

.post-stat-clickable:hover {
    border-color: #667eea;
    transform: translateY(-1px);
}

/* Stats Dropdown Menu */
.stats-menu {
    position: absolute;
    bottom: 100%;
    left: 0;
    margin-bottom: 8px;
    border: 2px solid #667eea;
    border-radius: 12px;
    padding: 12px;
    min-width: 250px;
    background:white;
    color: black;
    box-shadow: 0 8px 24px rgba(0,0,0,0.4);
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
}

.stats-menu.show {
    visibility: visible;
    transform: translateY(0);
}

.stats-menu-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding-bottom: 12px;
 
}

.stats-menu-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px;
    margin-bottom: 8px;
    border-radius: 8px;
}

.stat-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
}

.stat-value {
    font-size: 1rem;
    font-weight: 600;
}

.stat-value.highlight {
    color: #10b981;
}

.ctr-bar {
    margin-top: 8px;
    height: 6px;

    border-radius: 3px;
    overflow: hidden;
}

.ctr-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #667eea, #10b981);
    border-radius: 3px;
    transition: width 0.3s ease;
}

.stats-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: none;
    z-index: 999;
}

.stats-menu-overlay.active {
    display: block;
}

    /* Load More Button */
    .load-more-btn {
        width: 100%;
        padding: 0.875rem; /* Reduced from 1rem */
        margin-top: 1.25rem; /* Reduced from 1.5rem */
        background: var(--bg-card);
        border: 2px solid var(--border-color);
        border-radius: 12px;
        color: var(--accent-color);
        font-weight: 600;
        cursor: pointer;
        transition: all 0.3s ease;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 0.5rem;
        font-size: 0.9rem; /* Reduced slightly */
    }

    .load-more-btn:hover {
        border-color: var(--accent-color);
        background: var(--accent-color);
        color: white;
        transform: translateY(-2px);
        box-shadow: var(--shadow-md);
    }

    /* Empty State */
    .empty-state {
        text-align: center;
        padding: 3rem 2rem; /* Reduced from 4rem */
        background: var(--bg-card);
        border-radius: 16px;
        box-shadow: var(--shadow-sm);
    }

    .empty-state-icon {
        font-size: 4rem; /* Reduced from 5rem */
        color: var(--text-secondary);
        opacity: 0.3;
        margin-bottom: 1.25rem; /* Reduced from 1.5rem */
    }

    .empty-state-title {
        font-size: 1.5rem; /* Reduced from 1.75rem */
        font-weight: 700;
        color: var(--text-primary);
        margin-bottom: 0.625rem; /* Reduced from 0.75rem */
    }

    .empty-state-text {
        font-size: 1rem; /* Reduced from 1.1rem */
        color: var(--text-secondary);
        margin-bottom: 1.75rem; /* Reduced from 2rem */
    }

    /* Responsive Design */
    @media (max-width: 991px) {
        .sidebar {
            position: relative;
            top: 0;
            max-height: none;
            margin-top: 2rem;
        }
          .hero-section h1 {
           font-size: 1.5rem;
       }
          .hero-section p {
           font-size: 1rem;
       }
        .filter-section {
            flex-direction: column;
            align-items: stretch;
        }
        
        .filter-tabs {
            width: 100%;
            justify-content: center;
        }
        
        .category-filter {
            width: 100%;
        }
    }


    @media (max-width: 576px) {
               .hero-section h1 {
           font-size: 1.5rem;
       }
             .hero-section p {
           font-size: 1rem;
       }
        
        .filter-tab {
            padding: 0.4rem 0.75rem;
            font-size: 0.85rem;
        }
        
        .post-title {
            font-size: 1.1rem;
        }

        .post-card {
            padding: 1rem;
        }

        .post-image-preview {
            max-height: 250px;
        }

    }