/* Modern Design Framework for Nagrik Sahayta Kendra */

/* CSS Variables for Consistent Design */
:root {
    /* Colors */
    --primary-color: #1a73e8;
    --primary-dark: #1557b0;
    --secondary-color: #34a853;
    --accent-color: #fbbc04;
    --danger-color: #ea4335;
    --warning-color: #ff9800;
    --info-color: #00bcd4;
    --success-color: #4caf50;
    
    /* Gradients */
    --primary-gradient: linear-gradient(135deg, #1a73e8 0%, #1557b0 100%);
    --secondary-gradient: linear-gradient(135deg, #34a853 0%, #2e7d32 100%);
    --hero-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --card-gradient: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    
    /* Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-secondary: 'Poppins', sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
    
    /* Font Sizes */
    --text-xs: 0.75rem;
    --text-sm: 0.875rem;
    --text-base: 1rem;
    --text-lg: 1.125rem;
    --text-xl: 1.25rem;
    --text-2xl: 1.5rem;
    --text-3xl: 1.875rem;
    --text-4xl: 2.25rem;
    --text-5xl: 3rem;
    
    /* Spacing */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.25rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
    --space-10: 2.5rem;
    --space-12: 3rem;
    --space-16: 4rem;
    --space-20: 5rem;
    
    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    --radius-full: 9999px;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.07);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.1);
    --shadow-2xl: 0 25px 50px rgba(0, 0, 0, 0.25);
    
    /* Transitions */
    --transition-fast: all 0.15s ease;
    --transition-normal: all 0.3s ease;
    --transition-slow: all 0.5s ease;
    
    /* Z-Index Scale */
    --z-dropdown: 1000;
    --z-sticky: 1020;
    --z-fixed: 1030;
    --z-modal-backdrop: 1040;
    --z-modal: 1050;
    --z-popover: 1060;
    --z-tooltip: 1070;
    --z-toast: 1080;
}

/* Global Reset and Base Styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-primary);
    font-size: var(--text-base);
    line-height: 1.6;
    color: #1f2937;
    background-color: #ffffff;
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-secondary);
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: var(--space-4);
}

h1 { font-size: var(--text-4xl); }
h2 { font-size: var(--text-3xl); }
h3 { font-size: var(--text-2xl); }
h4 { font-size: var(--text-xl); }
h5 { font-size: var(--text-lg); }
h6 { font-size: var(--text-base); }

p {
    margin-bottom: var(--space-4);
    color: #4b5563;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition-fast);
}

a:hover {
    color: var(--primary-dark);
}

/* Modern Container System */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-4);
}

.container-fluid {
    width: 100%;
    padding: 0 var(--space-4);
}

.container-sm { max-width: 640px; }
.container-md { max-width: 768px; }
.container-lg { max-width: 1024px; }
.container-xl { max-width: 1280px; }

/* Modern Grid System */
.grid {
    display: grid;
    gap: var(--space-6);
}

.grid-cols-1 { grid-template-columns: repeat(1, 1fr); }
.grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid-cols-4 { grid-template-columns: repeat(4, 1fr); }

/* Flexbox Utilities */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.items-end { align-items: flex-end; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.justify-start { justify-content: flex-start; }
.justify-end { justify-content: flex-end; }

/* Modern Card Component */
.modern-card {
    background: white;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    padding: var(--space-6);
    transition: var(--transition-normal);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.modern-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-2xl);
}

.modern-card-header {
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: var(--space-4);
    margin-bottom: var(--space-6);
}

.modern-card-title {
    font-size: var(--text-xl);
    font-weight: 600;
    color: #111827;
    margin-bottom: var(--space-2);
}

.modern-card-subtitle {
    color: #6b7280;
    font-size: var(--text-sm);
}

/* Modern Button System */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-6);
    font-size: var(--text-sm);
    font-weight: 500;
    border-radius: var(--radius-lg);
    border: none;
    cursor: pointer;
    transition: var(--transition-fast);
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--primary-gradient);
    color: white;
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
    color: white;
}

.btn-secondary {
    background: var(--secondary-gradient);
    color: white;
    box-shadow: var(--shadow-md);
}

.btn-outline {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-outline:hover {
    background: var(--primary-color);
    color: white;
}

.btn-ghost {
    background: rgba(26, 115, 232, 0.1);
    color: var(--primary-color);
}

.btn-ghost:hover {
    background: rgba(26, 115, 232, 0.2);
}

/* Button Sizes */
.btn-sm {
    padding: var(--space-2) var(--space-4);
    font-size: var(--text-xs);
}

.btn-lg {
    padding: var(--space-4) var(--space-8);
    font-size: var(--text-lg);
}

.btn-xl {
    padding: var(--space-5) var(--space-10);
    font-size: var(--text-xl);
}

/* Modern Hero Section */
.hero-section {
    background: var(--primary-gradient);
    color: white;
    padding: var(--space-20) 0;
    position: relative;
    overflow: hidden;
}

.hero-title {
    font-size: var(--text-5xl);
    font-weight: 700;
    margin-bottom: var(--space-6);
    background: linear-gradient(45deg, #ffffff, #e3f2fd);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: var(--text-xl);
    margin-bottom: var(--space-8);
    opacity: 0.9;
}

/* Modern Section Layouts */
.section {
    padding: var(--space-16) 0;
}

.section-header {
    text-align: center;
    margin-bottom: var(--space-12);
}

.section-title {
    font-size: var(--text-4xl);
    font-weight: 700;
    margin-bottom: var(--space-4);
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    font-size: var(--text-lg);
    color: #6b7280;
    max-width: 600px;
    margin: 0 auto;
}

/* Main Content Layout */
.main-content-wrapper {
    min-height: calc(100vh - 200px);
    padding-top: 1rem;
}

.main-content-wrapper .container-fluid {
    padding: 1rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

#latest-updates {
    background: linear-gradient(135deg, #8B5CF6 0%, #A855F7 100%);
    color: white;
    padding: 2.5rem 2rem;
    margin: -1rem -1rem 2rem -1rem;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 8px 25px rgba(139, 92, 246, 0.3);
}

#latest-updates h2 {
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

#latest-updates p {
    font-size: 1.125rem;
    opacity: 0.95;
    margin: 0;
    max-width: 600px;
    margin: 0 auto;
}

/* Modern Forms */
.form-group {
    margin-bottom: var(--space-6);
}

.form-label {
    display: block;
    font-weight: 500;
    margin-bottom: var(--space-2);
    color: #374151;
}

.form-input {
    width: 100%;
    padding: var(--space-3) var(--space-4);
    border: 2px solid #e5e7eb;
    border-radius: var(--radius-lg);
    font-size: var(--text-base);
    transition: var(--transition-fast);
    background: white;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(26, 115, 232, 0.1);
}

.form-textarea {
    resize: vertical;
    min-height: 120px;
}

/* Modern Tables */
.modern-table {
    width: 100%;
    background: white;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.modern-table th {
    background: var(--primary-gradient);
    color: white;
    padding: var(--space-4);
    text-align: left;
    font-weight: 600;
}

.modern-table td {
    padding: var(--space-4);
    border-bottom: 1px solid #e5e7eb;
}

.modern-table tr:hover {
    background: #f9fafb;
}

/* Modern Badges */
.badge {
    display: inline-flex;
    align-items: center;
    padding: var(--space-1) var(--space-3);
    font-size: var(--text-xs);
    font-weight: 500;
    border-radius: var(--radius-full);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.badge-primary {
    background: rgba(26, 115, 232, 0.1);
    color: var(--primary-color);
}

.badge-success {
    background: rgba(52, 168, 83, 0.1);
    color: var(--secondary-color);
}

.badge-warning {
    background: rgba(255, 152, 0, 0.1);
    color: var(--warning-color);
}

/* Modern Alerts */
.alert {
    padding: var(--space-4);
    border-radius: var(--radius-lg);
    margin-bottom: var(--space-4);
    border-left: 4px solid;
}

.alert-info {
    background: rgba(0, 188, 212, 0.1);
    border-color: var(--info-color);
    color: #00695c;
}

.alert-success {
    background: rgba(76, 175, 80, 0.1);
    border-color: var(--success-color);
    color: #2e7d32;
}

.alert-warning {
    background: rgba(255, 152, 0, 0.1);
    border-color: var(--warning-color);
    color: #ef6c00;
}

.alert-danger {
    background: rgba(234, 67, 53, 0.1);
    border-color: var(--danger-color);
    color: #c62828;
}

/* Utility Classes */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.font-light { font-weight: 300; }
.font-normal { font-weight: 400; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }

.text-primary { color: var(--primary-color); }
.text-secondary { color: var(--secondary-color); }
.text-muted { color: #6b7280; }

.bg-primary { background: var(--primary-gradient); }
.bg-secondary { background: var(--secondary-gradient); }
.bg-light { background: #f9fafb; }

.rounded { border-radius: var(--radius-md); }
.rounded-lg { border-radius: var(--radius-lg); }
.rounded-xl { border-radius: var(--radius-xl); }
.rounded-full { border-radius: var(--radius-full); }

.shadow { box-shadow: var(--shadow-md); }
.shadow-lg { box-shadow: var(--shadow-lg); }
.shadow-xl { box-shadow: var(--shadow-xl); }

/* Spacing Utilities */
.m-0 { margin: 0; }
.m-4 { margin: var(--space-4); }
.m-8 { margin: var(--space-8); }

.mt-4 { margin-top: var(--space-4); }
.mt-8 { margin-top: var(--space-8); }
.mb-4 { margin-bottom: var(--space-4); }
.mb-8 { margin-bottom: var(--space-8); }

.p-4 { padding: var(--space-4); }
.p-6 { padding: var(--space-6); }
.p-8 { padding: var(--space-8); }

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 var(--space-3);
    }
    
    .hero-title {
        font-size: var(--text-3xl);
    }
    
    .section-title {
        font-size: var(--text-2xl);
    }
    
    .grid-cols-2,
    .grid-cols-3,
    .grid-cols-4 {
        grid-template-columns: 1fr;
    }
    
    .section {
        padding: var(--space-8) 0;
    }
}

/* Animation Classes */
.fade-in {
    animation: fadeIn 0.6s ease-in-out;
}

.slide-up {
    animation: slideUp 0.6s ease-out;
}

.scale-in {
    animation: scaleIn 0.4s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from { transform: translateY(30px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

@keyframes scaleIn {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

/* Loading States */
.loading {
    position: relative;
    color: transparent !important;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    border: 2px solid #e5e7eb;
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* ==============================================
   POST DETAIL PAGE STYLES
   ============================================== */

/* Post Hero Section */
.post-hero {
    background: linear-gradient(135deg, #8B5CF6 0%, #A855F7 50%, #7C3AED 100%);
    color: white;
    padding: 80px 0 60px;
    position: relative;
}

.post-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="0.5" fill="white" opacity="0.1"/><circle cx="75" cy="75" r="0.5" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.post-hero .container {
    position: relative;
    z-index: 2;
}

/* Post Meta Information */
.post-meta {
    background: rgba(255, 255, 255, 0.25);
    padding: 12px 20px;
    border-radius: 25px;
    margin-bottom: 20px;
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    backdrop-filter: blur(10px);
    font-size: 0.9rem;
    color: #ffffff;
    font-weight: 500;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.post-meta .meta-item {
    display: flex;
    align-items: center;
    white-space: nowrap;
    color: #ffffff;
}

.post-meta .meta-item i {
    color: rgba(255, 255, 255, 0.9);
    margin-right: 6px;
}

.post-meta .meta-separator {
    color: rgba(255, 255, 255, 0.8);
    margin: 0 8px;
    font-weight: bold;
}

/* Post Content */
.post-content {
    background: white;
    padding: 40px 0;
    line-height: 1.8;
}

.post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    margin: 20px 0;
}

/* Modern Author Info Box */
.author-info {
    background: linear-gradient(135deg, #ffffff 0%, #f8fbff 100%);
    padding: 30px;
    border-radius: 20px;
    margin: 40px 0;
    border: 1px solid #e2e8f0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: hidden;
}

.author-info::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #8B5CF6, #A855F7, #7C3AED);
}

.author-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.author-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 20px;
    border: 3px solid #8B5CF6;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3);
}

.author-details h5 {
    margin: 0;
    color: #1a202c;
    font-weight: 700;
    font-size: 1.2rem;
}

.author-role {
    color: #8B5CF6;
    font-weight: 600;
    font-size: 0.9rem;
    margin: 2px 0 8px 0;
}

.author-stats {
    display: flex;
    gap: 20px;
    margin-top: 15px;
}

.author-stat {
    display: flex;
    align-items: center;
    color: #64748b;
    font-size: 0.85rem;
}

.author-stat i {
    color: #8B5CF6;
    margin-right: 6px;
    width: 14px;
}

.author-bio {
    color: #4a5568;
    line-height: 1.6;
    margin-top: 15px;
    font-size: 0.95rem;
}

/* Recent Posts */
.recent-posts {
    background: #f8f9fa;
    padding: 30px 0;
}

.post-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin-bottom: 2rem;
    border: 1px solid #f1f5f9;
}

.post-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.15);
}

.post-card .post-image {
    width: 100%;
    height: 240px;
    object-fit: cover;
}

.post-card .post-content {
    padding: 1.5rem;
}

.post-card .post-meta {
    margin-bottom: 1rem;
}

.post-card .meta-item {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-right: 1rem;
    margin-bottom: 0.5rem;
    color: #6b7280;
    font-size: 0.875rem;
}

.post-card .meta-item i {
    color: #8B5CF6;
}

.modern-badge {
    background: linear-gradient(135deg, #8B5CF6 0%, #A855F7 100%);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-decoration: none;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.badge-category {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
}

.badge-author {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.badge-status {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

.post-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.post-excerpt {
    color: #6b7280;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.post-tags {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.reaction-buttons {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    padding-top: 1rem;
    border-top: 1px solid #f1f5f9;
}

.reaction-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    border: 2px solid #e5e7eb;
    border-radius: 25px;
    background: #ffffff;
    color: #6b7280;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.reaction-btn:hover {
    background: #f8fafc;
    border-color: #8B5CF6;
    color: #8B5CF6;
    transform: translateY(-2px);
}

.reaction-btn.active {
    background: linear-gradient(135deg, #8B5CF6 0%, #A855F7 100%);
    border-color: #8B5CF6;
    color: white;
}

.reaction-emoji {
    font-size: 1.1rem;
}

.reaction-count {
    font-weight: 700;
    min-width: 20px;
    text-align: center;
}

/* Reactions */
.reactions {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    margin: 30px 0;
}

.reaction-btn {
    background: none;
    border: 2px solid #dee2e6;
    padding: 10px 15px;
    border-radius: 25px;
    margin: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.reaction-btn:hover {
    background: #8B5CF6;
    color: white;
    border-color: #8B5CF6;
}

.reaction-btn.active {
    background: #8B5CF6;
    color: white;
    border-color: #8B5CF6;
}

/* ==============================================
   RESPONSIVE DESIGN FOR POST PAGES
   ============================================== */

/* Mobile responsive for meta */
@media (max-width: 768px) {
    .post-meta {
        padding: 10px 16px;
        font-size: 0.8rem;
        gap: 6px;
        justify-content: center;
        text-align: center;
    }
    
    .post-meta .meta-separator {
        margin: 0 6px;
    }
    
    .post-hero {
        padding: 60px 0 40px;
    }
    
    .post-hero h1 {
        font-size: 1.8rem !important;
    }
    
    .author-info {
        padding: 20px;
        margin: 30px 0;
    }
    
    .author-header {
        flex-direction: column;
        text-align: center;
        margin-bottom: 15px;
    }
    
    .author-avatar {
        margin-right: 0;
        margin-bottom: 15px;
        width: 50px;
        height: 50px;
    }
    
    .author-stats {
        justify-content: center;
        flex-wrap: wrap;
        gap: 15px;
    }
}

@media (max-width: 576px) {
    .post-meta {
        padding: 8px 12px;
        font-size: 0.75rem;
        gap: 4px;
    }
    
    .post-meta .meta-separator {
        margin: 0 4px;
    }
}

/* ==============================================
   UTILITY CLASSES FOR PURPLE THEME
   ============================================== */

.purple-gradient {
    background: linear-gradient(135deg, #8B5CF6 0%, #A855F7 50%, #7C3AED 100%);
}

.text-purple-600 {
    color: #8B5CF6;
}

.text-purple-700 {
    color: #7C3AED;
}

.border-purple-500 {
    border-color: #8B5CF6;
}

.bg-purple-50 {
    background-color: #faf5ff;
}

.bg-purple-100 {
    background-color: #f3e8ff;
}

.shadow-purple {
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3);
}

/* ==============================================
   BLOG LISTING PAGE STYLES
   ============================================== */

/* Blog Hero Section */
.blog-hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 120px 0 80px;
    position: relative;
    overflow: hidden;
}

.blog-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="news" width="25" height="25" patternUnits="userSpaceOnUse"><rect width="25" height="25" fill="none"/><path d="M5 5h15v3H5zM5 10h10v2H5zM5 15h12v2H5z" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23news)"/></svg>');
}

.blog-hero-content {
    position: relative;
    z-index: 2;
}

/* Modern Post Cards */
.post-card-modern {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 50px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    height: 100%;
    border: 1px solid rgba(0,0,0,0.05);
}

.post-card-modern:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 70px rgba(0,0,0,0.15);
}

.post-card-modern .card-img-top {
    height: 240px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.post-card-modern:hover .card-img-top {
    transform: scale(1.05);
}

.post-card-modern .card-body {
    padding: 25px;
}

.post-card-modern .card-title {
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 15px;
    line-height: 1.4;
}

.post-card-modern .card-text {
    color: #4a5568;
    line-height: 1.6;
    margin-bottom: 20px;
}

.post-meta-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.875rem;
    color: #718096;
    margin-bottom: 15px;
}

.post-author {
    display: flex;
    align-items: center;
}

.post-stats {
    display: flex;
    gap: 15px;
}

.post-stat {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Sidebar Styles */
.sidebar-widget {
    background: white;
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    border: 1px solid rgba(0,0,0,0.05);
}

.sidebar-widget h5 {
    color: #2d3748;
    font-weight: 700;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e2e8f0;
}

/* Category List */
.category-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.category-list li {
    margin-bottom: 10px;
}

.category-list a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    color: #4a5568;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.category-list a:hover {
    background: #f7fafc;
    color: var(--primary-color);
    transform: translateX(5px);
}

.category-count {
    background: #e2e8f0;
    color: #4a5568;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}

/* Recent Posts Widget */
.recent-post-item {
    display: flex;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid #e2e8f0;
}

.recent-post-item:last-child {
    border-bottom: none;
}

.recent-post-thumb {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
}

.recent-post-content h6 {
    margin: 0;
    font-size: 0.875rem;
    line-height: 1.3;
    color: #2d3748;
}

.recent-post-date {
    font-size: 0.75rem;
    color: #718096;
    margin-top: 5px;
}

/* Pagination Styles */
.pagination-modern {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 40px;
}

.pagination-modern .page-link {
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    color: #4a5568;
    text-decoration: none;
    border-radius: 12px;
    transition: all 0.3s ease;
    font-weight: 600;
}

.pagination-modern .page-link:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-2px);
}

.pagination-modern .page-link.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

/* Responsive Design for Blog */
@media (max-width: 768px) {
    .blog-hero {
        padding: 80px 0 60px;
    }
    
    .post-card-modern .card-body {
        padding: 20px;
    }
    
    .post-meta-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .sidebar-widget {
        padding: 20px;
        margin-bottom: 20px;
    }
}

/* Additional Blog Page Components */
.post-card-modern .card-img-top {
    position: relative;
    overflow: hidden;
}

.post-category-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--primary-color);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.post-content-wrapper {
    padding: 2rem;
}

.post-meta-modern {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: var(--muted-color);
}

.post-meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.post-title-modern {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 1rem;
    line-height: 1.4;
}

.post-excerpt {
    color: var(--muted-color);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.read-more-btn {
    background: var(--primary-color);
    color: white;
    padding: 12px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.read-more-btn:hover {
    background: var(--secondary-color);
    color: white;
    transform: translateY(-2px);
}

.sidebar-widget-modern {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
    margin-bottom: 2rem;
    border: 1px solid rgba(0,0,0,0.05);
}

.widget-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.widget-icon {
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    color: white;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.recent-post-image {
    width: 80px;
    height: 80px;
    border-radius: 12px;
    object-fit: cover;
    flex-shrink: 0;
}

.category-item {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--light-bg);
}

.category-item:last-child {
    border-bottom: none;
}

.category-link {
    text-decoration: none;
    color: var(--dark-color);
    font-weight: 500;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.category-link:hover {
    color: var(--primary-color);
    padding-left: 10px;
}

.featured-post-item {
    padding: 1rem 0;
    border-bottom: 1px solid var(--light-bg);
}

.featured-post-item:last-child {
    border-bottom: none;
}

.featured-post-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.featured-post-date {
    font-size: 0.85rem;
    color: var(--muted-color);
}

.no-posts-state {
    text-align: center;
    padding: 4rem 2rem;
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
}

.no-posts-icon {
    font-size: 4rem;
    color: var(--muted-color);
    margin-bottom: 1.5rem;
}

/* Enhanced Mobile Responsive Design */
@media (max-width: 768px) {
    .main-content-wrapper .container-fluid {
        padding: 0.5rem 1rem;
    }
    
    #latest-updates {
        padding: 1.5rem 1rem;
        margin: -0.5rem -0.5rem 1.5rem -0.5rem;
    }
    
    #latest-updates h2 {
        font-size: 1.75rem;
        flex-direction: column;
        gap: 0.5rem;
    }
    
    #latest-updates p {
        font-size: 1rem;
    }
    
    .post-card {
        margin-bottom: 1.5rem;
    }
    
    .post-card .post-image {
        height: 200px;
    }
    
    .post-card .post-content {
        padding: 1rem;
    }
    
    .post-card .meta-item {
        margin-right: 0.5rem;
        margin-bottom: 0.75rem;
        font-size: 0.8rem;
    }
    
    .post-title {
        font-size: 1.1rem;
    }
    
    .reaction-buttons {
        justify-content: center;
        gap: 0.375rem;
        flex-wrap: wrap;
    }
    
    .reaction-btn {
        padding: 0.375rem 0.5rem;
        font-size: 0.8rem;
    }
    
    .modern-badge {
        font-size: 0.7rem;
        padding: 0.2rem 0.5rem;
    }
}
