/* Google Fonts - Unified Font System */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Montserrat:wght@400;600;700;800&family=Poppins:wght@300;400;500;600;700&display=swap');

/* Modern Design Variables */
:root {
    /* Typography - Unified Font System */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif;
    --font-secondary: 'Poppins', var(--font-primary);
    --font-display: 'Montserrat', var(--font-primary);
    --font-heading: 'Montserrat', var(--font-primary);
    --font-body: 'Inter', var(--font-primary);
    --font-ui: 'Inter', var(--font-primary);
    
    /* Rich Color Palette - Adjusted for better contrast */
    --primary: #1a5d1a;      /* Darker Forest Green */
    --secondary: #c53030;    /* Deep Red */
    --accent: #d97706;      /* Deep Orange */
    --accent-2: #b45309;    /* Deep Amber */
    --accent-3: #0f766e;    /* Deep Teal */
    
    /* Text Colors - Improved contrast */
    --text: #1a202c;        /* Very Dark Gray */
    --text-light: #2d3748;  /* Dark Gray */
    --text-white: #ffffff;  /* White */
    
    /* Background Colors - Softer tones */
    --background: #faf5f0;   /* Soft Cream */
    --background-alt: #f3e7dc; /* Soft Beige */
    --background-dark: #e6d5c3; /* Soft Tan */
    --card-bg: #ffffff;     /* Pure White for better contrast */
    
    /* Gradients - Adjusted for readability */
    --gradient-primary: linear-gradient(135deg, #1a5d1a 0%, #2d6a4f 100%);
    --gradient-secondary: linear-gradient(135deg, #c53030 0%, #e53e3e 100%);
    --gradient-accent: linear-gradient(135deg, #d97706 0%, #f59e0b 100%);
    --gradient-cream: linear-gradient(135deg, #faf5f0 0%, #f3e7dc 100%);
    
    /* Shadows - Adjusted for better depth */
    --shadow-sm: 0 1px 2px rgba(26, 32, 44, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(26, 32, 44, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(26, 32, 44, 0.1);
    
    /* Transitions */
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 300ms cubic-bezier(0.4, 0, 0.2, 1);
    
    --primary-color: #2563eb;
    --secondary-color: #3b82f6;
    --accent-color: #60a5fa;
    --highlight-color: #93c5fd;
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
    --transition-base: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    --bg-color: #f8fafc;           /* Light Gray Background */
    --bg-light-section: #ffffff;   /* White for sections/cards */
    --light-text-color: #f8fafc;   /* Light Gray/White for dark backgrounds */
    --heading-color: #0f172a;      /* Dark Slate for Headings */
    --border-color: #e2e8f0;       /* Light Gray for Borders */
    --heading-font: 'Montserrat', sans-serif;
    --body-font: 'Poppins', sans-serif;
    --card-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --hover-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    
    /* Legacy variables for compatibility */
    --primary-dark: #145214;
    --bg-primary: #fff;
    --bg-secondary: #f8fafc;
    --bg-tertiary: #f1f5f9;
    --bg-gradient: linear-gradient(135deg, #1a5d1a 0%, #2d6a4f 100%);
    --bg-gradient-legal: linear-gradient(135deg, #0056b3 0%, #1a5d1a 100%);
    --text-primary: #1a202c;
    --text-color: #1a202c;
    --radius-lg: 24px;
    --radius-xl: 32px;
    --radius-2xl: 40px;
    --radius-md: 12px;
    --space-lg: 2rem;
    --space-xl: 3rem;
    --space-2xl: 4rem;
    --space-3xl: 6rem;
    --space-md: 1rem;
    --space-sm: 0.5rem;
    --space-xs: 0.25rem;
    --shadow-xl: 0 8px 32px rgba(0,0,0,0.12);
    --shadow-2xl: 0 16px 48px rgba(0,0,0,0.16);
    --a4-height: 1122px;
    --text-5xl: 3rem;
    --text-xl: 1.25rem;
    --text-lg: 1.125rem;
    --text-sm: 0.95rem;
    --leading-relaxed: 1.7;
}

/* Modern Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    line-height: 1.6;
    color: var(--text);
    background: var(--background);
    overflow-x: hidden;
    padding-left: 0;
    padding-right: 0;
    margin-left: 0;
    margin-right: 0;
    font-weight: 400;
    font-size: 1rem;
}

/* Consistent container/section widths and margins */
.container, .main-content, .hero-section, .section-padding, section {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 2rem;
  padding-right: 2rem;
  box-sizing: border-box;
}

@media (max-width: 700px) {
  .container, .main-content, .hero-section, .section-padding, section {
    max-width: 100%;
    margin: 0 auto;
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

main {
    width: 100%;
    padding-left: 0;
    padding-right: 0;
    margin-left: 0;
    margin-right: 0;
}

section {
    width: 100%;
    padding-left: 0;
    padding-right: 0;
    margin-left: 0;
    margin-right: 0;
}

.hero-section {
    width: 100%;
    padding-left: 0;
    padding-right: 0;
    margin-left: 0;
    margin-right: 0;
}

.hero-content {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding-left: 2rem;
    padding-right: 2rem;
    box-sizing: border-box;
}

.section-padding {
    padding: 5rem 2rem;
    width: 100%;
    margin-left: 0;
    margin-right: 0;
}

.main-content {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding-left: 2rem;
    padding-right: 2rem;
    box-sizing: border-box;
}

/* Modern Typography Enhancements - Unified Font System */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--heading-color);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

p, li, span, div {
    font-family: var(--font-body);
    color: var(--text);
    line-height: 1.6;
    font-weight: 400;
}

/* Enhanced Button Styles */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    font-family: var(--font-ui);
    font-weight: 600;
    text-decoration: none;
    border-radius: 8px;
    transition: var(--transition-normal);
    cursor: pointer;
    border: none;
    text-align: center;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--text-white);
    box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
    color: var(--text-white);
}

.btn-secondary {
    background: var(--gradient-secondary);
    color: var(--text-white);
    box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
    color: var(--text-white);
}

.btn-accent {
    background: var(--gradient-accent);
    color: var(--text-white);
    box-shadow: var(--shadow-sm);
}

.btn-accent:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
    color: var(--text-white);
}

.btn-success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: var(--text-white);
    box-shadow: var(--shadow-sm);
}

.btn-success:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
    color: var(--text-white);
}

.btn-danger {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: var(--text-white);
    box-shadow: var(--shadow-sm);
}

.btn-danger:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
    color: var(--text-white);
}

/* Modern Card Enhancements */
.card {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: var(--card-shadow);
    border: 1px solid var(--border-color);
    transition: var(--transition-normal);
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: var(--hover-shadow);
    border-color: var(--primary-color);
}

/* Enhanced Badge Styles */
.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: 20px;
    text-decoration: none;
    transition: var(--transition-normal);
    background: var(--gradient-primary);
    color: var(--text-white);
    box-shadow: var(--shadow-sm);
}

.badge:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
    color: var(--text-white);
}

/* Modern Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-color);
}

/* Enhanced Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes progress {
    0% {
        width: 0%;
    }
    100% {
        width: 100%;
    }
}

/* Enhanced Form Elements */
.form-control {
    border-radius: 10px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    padding: 1rem;
    transition: var(--transition-base);
}

.form-control:focus {
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

/* Enhanced Section Overlay */
.section-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(8px);
    z-index: 1;
}

/* Enhanced Navigation */
.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(26, 32, 44, 0.1);
    transition: var(--transition-base);
}

.navbar-brand {
    color: var(--text);
    font-weight: 700;
}

.nav-link {
    color: var(--text-color);
    font-weight: 500;
    padding: 0.5rem 1rem;
    transition: all 0.3s ease;
    position: relative;
    text-transform: none;
}

.nav-link:hover {
    color: var(--primary-color);
}

.nav-link.active {
    color: var(--primary-color);
}

/* Animation Classes */
[data-aos] {
    opacity: 1 !important;
    transform: none !important;
}

/* Glass Effect */
.glass-effect {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
}

/* Blog Styles - Professional & Slick Design */
.blog-header {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
  color: white;
  padding: 4rem 3rem;
  text-align: center;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  position: relative;
  overflow: hidden;
}

.blog-header::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="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="white" opacity="0.1"/><circle cx="75" cy="75" r="1" fill="white" opacity="0.1"/><circle cx="50" cy="10" r="0.5" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
  pointer-events: none;
}

.blog-header h1 {
  font-size: 3rem;
  font-weight: 900;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
  position: relative;
  z-index: 1;
}

.blog-header p {
  font-size: 1.3rem;
  opacity: 0.95;
  margin-bottom: 2.5rem;
  font-weight: 300;
  position: relative;
  z-index: 1;
}

.blog-actions {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

/* Button Icons */
.btn-icon {
  margin-right: 0.5rem;
  font-size: 1.1rem;
}

/* Quick Publish Panel */
.quick-publish-panel {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.quick-publish-form {
  background: white;
  border-radius: var(--radius-xl);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  max-width: 800px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
}

.quick-publish-header {
  padding: 2rem 2rem 1rem;
  border-bottom: 1px solid rgba(226, 232, 240, 0.6);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.quick-publish-header h2 {
  margin: 0;
  color: var(--text-primary);
  font-size: 1.8rem;
  font-weight: 800;
}

.quick-publish-header p {
  margin: 0.5rem 0 0;
  color: var(--text-light);
  font-size: 1rem;
}

.quick-form-row {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.quick-publish-actions {
  display: flex;
  gap: 1rem;
  padding: 1.5rem 2rem 2rem;
  border-top: 1px solid rgba(226, 232, 240, 0.6);
}

/* Close Button */
.close-btn {
  background: none;
  border: none;
  font-size: 2rem;
  color: var(--text-light);
  cursor: pointer;
  padding: 0.5rem;
  border-radius: var(--radius-md);
  transition: all 0.2s ease;
  line-height: 1;
}

.close-btn:hover {
  background: rgba(0, 0, 0, 0.1);
  color: var(--text-primary);
}

/* Enhanced Form Layout */
.form-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 2px solid rgba(226, 232, 240, 0.6);
}

.form-header h2 {
  margin: 0;
  color: var(--text-primary);
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.form-header-actions {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.form-layout {
  display: grid;
  grid-template-columns: 1fr 350px;
  gap: 3rem;
  align-items: start;
}

.form-main {
  min-width: 0;
}

.form-sidebar {
  position: sticky;
  top: 2rem;
}

.sidebar-section {
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  border: 1px solid rgba(226, 232, 240, 0.6);
}

.sidebar-section h3 {
  margin: 0 0 1rem;
  color: var(--text-primary);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

/* Form Help Text */
.form-help {
  font-size: 0.85rem;
  color: var(--text-light);
  margin-top: 0.5rem;
  font-style: italic;
}

/* Enhanced Editor */
.editor-container {
  border: 2px solid rgba(226, 232, 240, 0.8);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: white;
}

.editor-toolbar {
  display: flex;
  gap: 0.5rem;
  padding: 1rem;
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  border-bottom: 1px solid rgba(226, 232, 240, 0.6);
  flex-wrap: wrap;
}

.toolbar-group {
  display: flex;
  gap: 0.25rem;
  padding-right: 1rem;
  border-right: 1px solid rgba(226, 232, 240, 0.6);
}

.toolbar-group:last-child {
  border-right: none;
  padding-right: 0;
}

.toolbar-btn {
  padding: 0.75rem 1rem;
  border: 2px solid rgba(226, 232, 240, 0.8);
  background: white;
  border-radius: var(--radius-md);
  cursor: pointer;
  font-weight: 600;
  transition: all 0.2s ease;
  font-size: 0.9rem;
  min-width: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.toolbar-btn:hover {
  background: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
  transform: translateY(-1px);
  box-shadow: 0 4px 6px -1px rgba(59, 130, 246, 0.2);
}

.toolbar-btn.active {
  background: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
  box-shadow: 0 4px 6px -1px rgba(59, 130, 246, 0.2);
}

.content-editor {
  min-height: 400px;
  padding: 1.5rem;
  border: none;
  background: white;
  font-size: 1rem;
  line-height: 1.7;
  overflow-y: auto;
  transition: all 0.3s ease;
  outline: none;
}

.content-editor:empty:before {
  content: attr(placeholder);
  color: var(--text-light);
  font-style: italic;
}

.editor-footer {
  display: flex;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  background: rgba(248, 250, 252, 0.8);
  border-top: 1px solid rgba(226, 232, 240, 0.6);
  font-size: 0.85rem;
  color: var(--text-light);
}

/* Preview Modal */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.modal-content {
  background: white;
  border-radius: var(--radius-xl);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  max-width: 900px;
  width: 100%;
  max-height: 90vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.modal-header {
  padding: 2rem;
  border-bottom: 1px solid rgba(226, 232, 240, 0.6);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-header h3 {
  margin: 0;
  color: var(--text-primary);
  font-size: 1.5rem;
  font-weight: 700;
}

.modal-body {
  padding: 2rem;
  overflow-y: auto;
  flex: 1;
}

/* Enhanced Manage Panel */
.manage-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 2px solid rgba(226, 232, 240, 0.6);
}

.manage-header h2 {
  margin: 0;
  color: var(--text-primary);
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.manage-stats {
  display: flex;
  gap: 2rem;
}

.stat-item {
  text-align: center;
  padding: 1rem 1.5rem;
  background: white;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(226, 232, 240, 0.6);
  min-width: 100px;
}

.stat-number {
  display: block;
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary-color);
  line-height: 1;
}

.stat-label {
  display: block;
  font-size: 0.85rem;
  color: var(--text-light);
  margin-top: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Enhanced Search */
.search-group {
  position: relative;
  flex: 1;
  min-width: 300px;
}

.search-input {
  width: 100%;
  padding: 1rem 3rem 1rem 1.5rem;
  border: 2px solid rgba(226, 232, 240, 0.8);
  border-radius: var(--radius-lg);
  font-size: 1rem;
  transition: all 0.3s ease;
  background: white;
}

.search-input:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
  transform: translateY(-1px);
}

.clear-search-btn {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  font-size: 1.2rem;
  color: var(--text-light);
  cursor: pointer;
  padding: 0.25rem;
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
}

.clear-search-btn:hover {
  background: rgba(0, 0, 0, 0.1);
  color: var(--text-primary);
}

/* Notification System */
.notification-container {
  position: fixed;
  top: 2rem;
  right: 2rem;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 400px;
}

.notification {
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
  padding: 1.5rem;
  border-left: 4px solid var(--primary-color);
  animation: slideInRight 0.3s ease-out;
  position: relative;
  overflow: hidden;
}

.notification.success {
  border-left-color: #10b981;
}

.notification.error {
  border-left-color: #ef4444;
}

.notification.warning {
  border-left-color: #f59e0b;
}

.notification::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
  animation: progress 3s linear;
}

.notification.success::before {
  background: linear-gradient(90deg, #10b981, #059669);
}

.notification.error::before {
  background: linear-gradient(90deg, #ef4444, #dc2626);
}

.notification.warning::before {
  background: linear-gradient(90deg, #f59e0b, #d97706);
}

@keyframes slideInRight {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes progress {
  from {
    width: 100%;
  }
  to {
    width: 0%;
  }
}

/* Blog Grid */
.blog-grid {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  padding: 4rem 3rem;
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
}

.blog-post {
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(226, 232, 240, 0.8);
  position: relative;
  width: 100%;
  max-width: 100%;
}

.blog-post::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.blog-post:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  border-color: rgba(59, 130, 246, 0.2);
}

.blog-post:hover::before {
  transform: scaleX(1);
}

.post-header {
  padding: 2rem;
  border-bottom: 1px solid rgba(226, 232, 240, 0.6);
  background: linear-gradient(135deg, #fafbfc 0%, #f8fafc 100%);
}

.post-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.post-meta {
  display: flex;
  gap: 1.5rem;
  font-size: 0.9rem;
  color: var(--text-light);
  margin-bottom: 1rem;
  align-items: center;
}

.post-meta span {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.post-excerpt {
  padding: 2rem;
  color: var(--text-secondary);
  line-height: 1.7;
  font-size: 1rem;
}

.post-tags {
  padding: 0 2rem 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.post-tag {
  background: linear-gradient(135deg, var(--accent-color) 0%, #e0e7ff 100%);
  color: var(--primary-color);
  padding: 0.4rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  border: 1px solid rgba(59, 130, 246, 0.2);
  transition: all 0.2s ease;
}

.post-tag:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 6px -1px rgba(59, 130, 246, 0.2);
}

.post-actions {
  padding: 2rem;
  border-top: 1px solid rgba(226, 232, 240, 0.6);
  display: flex;
  gap: 1rem;
  background: #fafbfc;
}

/* Post Form */
.post-form-container {
  padding: 4rem 3rem;
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
}

.post-form {
  background: white;
  border-radius: var(--radius-xl);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  padding: 3rem;
  border: 1px solid rgba(226, 232, 240, 0.8);
  position: relative;
  overflow: hidden;
}

.post-form::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: linear-gradient(90deg, var(--primary-color), var(--accent-color), #8b5cf6);
}

.post-form h2 {
  margin-bottom: 2.5rem;
  color: var(--text-primary);
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.form-group {
  margin-bottom: 2rem;
}

.form-group label {
  display: block;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
  font-size: 1rem;
  letter-spacing: -0.01em;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 1rem;
  border: 2px solid rgba(226, 232, 240, 0.8);
  border-radius: var(--radius-lg);
  font-size: 1rem;
  transition: all 0.3s ease;
  background: #fafbfc;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
  background: white;
  transform: translateY(-1px);
}

/* Enhanced Buttons */
.btn, .nav-toggle, .nav-overlay-close {
  outline: none;
  transition: box-shadow 0.2s, border-color 0.2s;
}
.btn:focus-visible, .nav-toggle:focus-visible, .nav-overlay-close:focus-visible {
  outline: 2px solid var(--accent-color);
  outline-offset: 2px;
  box-shadow: 0 0 0 3px rgba(217,119,6,0.2);
  border-color: var(--accent-color);
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
  color: white;
  box-shadow: 0 4px 6px -1px rgba(59, 130, 246, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 15px -3px rgba(59, 130, 246, 0.4);
}

.btn-secondary {
  background: linear-gradient(135deg, #64748b 0%, #475569 100%);
  color: white;
  box-shadow: 0 4px 6px -1px rgba(100, 116, 139, 0.3);
}

.btn-secondary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 15px -3px rgba(100, 116, 139, 0.4);
}

.btn-success {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: white;
  box-shadow: 0 4px 6px -1px rgba(16, 185, 129, 0.3);
}

.btn-success:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 15px -3px rgba(16, 185, 129, 0.4);
}

.btn-danger {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  color: white;
  box-shadow: 0 4px 6px -1px rgba(239, 68, 68, 0.3);
}

.btn-danger:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 15px -3px rgba(239, 68, 68, 0.4);
}

/* Manage Panel */
.manage-panel {
  padding: 4rem 3rem;
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
}

.manage-panel h2 {
  margin-bottom: 2.5rem;
  color: var(--text-primary);
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.manage-controls {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
  align-items: center;
}

.search-input,
.filter-select {
  padding: 1rem 1.5rem;
  border: 2px solid rgba(226, 232, 240, 0.8);
  border-radius: var(--radius-lg);
  font-size: 1rem;
  transition: all 0.3s ease;
  background: white;
}

.search-input:focus,
.filter-select:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
  transform: translateY(-1px);
}

.filter-select {
  min-width: 150px;
}

.posts-list {
  background: white;
  border-radius: var(--radius-xl);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  overflow: hidden;
  border: 1px solid rgba(226, 232, 240, 0.8);
}

.post-item {
  padding: 2rem;
  border-bottom: 1px solid rgba(226, 232, 240, 0.6);
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 2rem;
}

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

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

.post-item-info {
  flex: 1;
}

.post-item-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  letter-spacing: -0.01em;
}

.post-item-meta {
  color: var(--text-light);
  font-size: 0.9rem;
  display: flex;
  gap: 1rem;
  align-items: center;
}

.post-item-actions {
  display: flex;
  gap: 1rem;
  flex-shrink: 0;
}

.post-item-btn {
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: var(--radius-md);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 0.9rem;
}

.post-item-btn:hover {
  transform: translateY(-1px);
}

.post-item-btn.edit {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  color: white;
  box-shadow: 0 4px 6px -1px rgba(59, 130, 246, 0.3);
}

.post-item-btn.edit:hover {
  box-shadow: 0 10px 15px -3px rgba(59, 130, 246, 0.4);
}

.post-item-btn.delete {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  color: white;
  box-shadow: 0 4px 6px -1px rgba(239, 68, 68, 0.3);
}

.post-item-btn.delete:hover {
  box-shadow: 0 10px 15px -3px rgba(239, 68, 68, 0.4);
}

/* Status Badges */
.status-badge {
  padding: 0.4rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.status-published {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: white;
  box-shadow: 0 2px 4px -1px rgba(16, 185, 129, 0.3);
}

.status-draft {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: white;
  box-shadow: 0 2px 4px -1px rgba(245, 158, 11, 0.3);
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 4rem 2rem;
  color: var(--text-light);
}

.empty-state h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--text-primary);
  font-weight: 700;
}

/* Loading States */
.loading {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 3rem;
}

.spinner {
  width: 40px;
  height: 40px;
  border: 4px solid rgba(59, 130, 246, 0.1);
  border-left-color: var(--primary-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

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

/* Responsive Design */
@media (max-width: 768px) {
  .blog-header {
    padding: 3rem 2rem;
  }

  .blog-header h1 {
    font-size: 2.5rem;
  }

  .blog-grid {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    padding: 2rem;
  }

  .post-form-container,
  .manage-panel {
    padding: 2rem;
  }

  .form-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .form-sidebar {
    position: static;
  }

  .manage-controls {
    flex-direction: column;
    align-items: stretch;
  }

  .search-input,
  .filter-select {
    min-width: auto;
  }

  .post-item {
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
  }

  .post-item-actions {
    justify-content: flex-start;
  }

  .form-actions {
    flex-direction: column;
  }

  .blog-actions {
    flex-direction: column;
    align-items: center;
  }

  .quick-form-row {
    grid-template-columns: 1fr;
  }

  .manage-header {
    flex-direction: column;
    gap: 1rem;
    align-items: stretch;
  }

  .manage-stats {
    justify-content: space-around;
  }

  .modal {
    padding: 1rem;
  }

  .quick-publish-panel {
    padding: 1rem;
  }
  
  /* Responsive spacing for tablets */
  .container {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
  
  .hero-content {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
  
  .section-padding {
    padding: 4rem 1.5rem;
  }
  
  .main-content {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}

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

.blog-post {
  animation: fadeInUp 0.6s ease-out;
}

.blog-post:nth-child(2) {
  animation-delay: 0.1s;
}

.blog-post:nth-child(3) {
  animation-delay: 0.2s;
}

/* Glass Morphism Effects */
.glass-effect {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Alert Messages */
.alert {
  padding: 1rem 1.5rem;
  border-radius: var(--radius-lg);
  margin: 1rem 0;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border: 1px solid transparent;
}

.alert-success {
  background: linear-gradient(135deg, #dcfce7 0%, #bbf7d0 100%);
  color: #166534;
  border-color: #86efac;
}

.alert-error {
  background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
  color: #dc2626;
  border-color: #fca5a5;
}

.alert i {
  font-size: 1.1rem;
}

/* Login Form Styles */
.login-form {
  max-width: 400px;
  margin: 0 auto;
}

.login-form .form-actions {
  justify-content: center;
}

/* Enhanced Typography */
.blog-post .post-title {
  background: linear-gradient(135deg, var(--text-primary) 0%, var(--primary-color) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Hover Effects */
.blog-post:hover .post-title {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Comments Section */
.comments-section {
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(226, 232, 240, 0.8);
  overflow: hidden;
  margin-top: 2rem;
}

.comments-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2rem;
  border-bottom: 1px solid rgba(226, 232, 240, 0.6);
  background: linear-gradient(135deg, #fafbfc 0%, #f8fafc 100%);
}

.comments-header h3 {
  margin: 0;
  color: var(--text-primary);
  font-size: 1.3rem;
  font-weight: 700;
}

.comments-list {
  padding: 2rem;
}

.comment-item {
  padding: 1.5rem;
  border-bottom: 1px solid rgba(226, 232, 240, 0.6);
  transition: all 0.3s ease;
}

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

.comment-item:hover {
  background: rgba(248, 250, 252, 0.5);
}

.comment-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.comment-author {
  font-weight: 700;
  color: var(--text-primary);
  font-size: 1rem;
}

.comment-date {
  font-size: 0.85rem;
  color: var(--text-light);
}

.comment-content {
  color: var(--text-secondary);
  line-height: 1.6;
  font-size: 0.95rem;
}

.comment-actions {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
  font-size: 0.85rem;
}

.comment-action {
  color: var(--text-light);
  cursor: pointer;
  transition: color 0.2s ease;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.comment-action:hover {
  color: var(--primary-color);
}

/* Comment Form */
.comment-form {
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  border-top: 1px solid rgba(226, 232, 240, 0.6);
  padding: 2rem;
}

.comment-form .form-header {
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(226, 232, 240, 0.6);
}

.comment-form .form-header h4 {
  margin: 0;
  color: var(--text-primary);
  font-size: 1.2rem;
  font-weight: 700;
}

/* Enhanced Blog Post Cards with Comments */
.blog-post .post-actions {
  padding: 2rem;
  border-top: 1px solid rgba(226, 232, 240, 0.6);
  display: flex;
  gap: 1rem;
  background: #fafbfc;
  justify-content: space-between;
  align-items: center;
}

.post-actions-left {
  display: flex;
  gap: 1rem;
}

.post-actions-right {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.comment-count {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-light);
  font-size: 0.9rem;
  cursor: pointer;
  transition: color 0.2s ease;
}

.comment-count:hover {
  color: var(--primary-color);
}

/* Empty Comments State */
.empty-comments {
  text-align: center;
  padding: 3rem 2rem;
  color: var(--text-light);
}

.empty-comments h4 {
  font-size: 1.2rem;
  margin-bottom: 1rem;
  color: var(--text-primary);
  font-weight: 700;
}

.empty-comments p {
  margin-bottom: 2rem;
}

/* Responsive Comments */
@media (max-width: 768px) {
  .comments-header {
    flex-direction: column;
    gap: 1rem;
    align-items: stretch;
  }
  
  .post-actions {
    flex-direction: column;
    gap: 1rem;
    align-items: stretch;
  }
  
  .post-actions-left,
  .post-actions-right {
    justify-content: center;
  }
}

/* WordPress-like Blog Styles */

/* Blog Layout */
.blog-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 2rem;
    margin-top: 2rem;
}

@media (max-width: 768px) {
    .blog-layout {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

/* Blog Header */
.blog-header {
    text-align: center;
    margin-bottom: 2rem;
}

.blog-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--heading-color);
    margin-bottom: 0.5rem;
}

.blog-header p {
    font-size: 1.1rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

/* Blog Controls */
.blog-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding: 1rem;
    background: var(--card-bg);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    flex-wrap: wrap;
    gap: 1rem;
}

.search-box {
    position: relative;
    flex: 1;
    max-width: 400px;
}

.search-box i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
}

.search-box input {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 2.5rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 0.9rem;
    background: var(--background);
}

.search-box input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(26, 93, 26, 0.1);
}

.filter-controls {
    display: flex;
    gap: 0.5rem;
}

.filter-controls select {
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    background: var(--background);
    font-size: 0.9rem;
    cursor: pointer;
}

.filter-controls select:focus {
    outline: none;
    border-color: var(--primary);
}

/* Blog Grid */
.blog-grid {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* Blog Post Cards */
.blog-post-card {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: all var(--transition-normal);
    border: 1px solid var(--border-color);
    width: 100%;
    max-width: 100%;
}

.blog-post-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.blog-post-card.featured {
    border: 2px solid var(--accent);
    position: relative;
}

.featured-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--accent);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    z-index: 1;
}

.post-header {
    padding: 1.5rem 1.5rem 1rem;
}

.post-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.post-title a {
    color: var(--heading-color);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.post-title a:hover {
    color: var(--primary);
}

.post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.85rem;
    color: var(--text-light);
}

.post-meta span {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.post-meta i {
    font-size: 0.8rem;
}

.post-content {
    padding: 0 1.5rem 1rem;
}

.post-excerpt {
    color: var(--text-light);
    line-height: 1.6;
    margin: 0;
}

.post-footer {
    padding: 1rem 1.5rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    border-top: 1px solid var(--border-color);
    margin-top: 1rem;
}

.post-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.post-tag {
    background: var(--background-alt);
    color: var(--text-light);
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.8rem;
    text-decoration: none;
    transition: all var(--transition-fast);
}

.post-tag:hover {
    background: var(--primary);
    color: white;
}

.read-more {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all var(--transition-fast);
}

.read-more:hover {
    color: var(--accent);
    transform: translateX(2px);
}

/* No Posts */
.no-posts {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--text-light);
}

.no-posts i {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.no-posts h3 {
    margin-bottom: 0.5rem;
    color: var(--heading-color);
}

/* Pagination */
.pagination {
    margin-top: 3rem;
    display: flex;
    justify-content: center;
}

.pagination-controls {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.pagination-btn {
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    background: var(--card-bg);
    color: var(--text);
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: all var(--transition-fast);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.pagination-btn:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.pagination-btn.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* Sidebar */
.blog-sidebar {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.sidebar-widget {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}

.sidebar-widget h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--heading-color);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.sidebar-widget h3 i {
    color: var(--primary);
}

/* Category List */
.category-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.category-list li {
    margin-bottom: 0.5rem;
}

.category-list a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    color: var(--text);
    text-decoration: none;
    transition: color var(--transition-fast);
    border-bottom: 1px solid var(--border-color);
}

.category-list a:hover {
    color: var(--primary);
}

.category-list .count {
    background: var(--background-alt);
    color: var(--text-light);
    padding: 0.25rem 0.5rem;
    border-radius: 10px;
    font-size: 0.8rem;
}

/* Tag Cloud */
.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag-link {
    color: var(--text);
    text-decoration: none;
    padding: 0.25rem 0.5rem;
    background: var(--background-alt);
    border-radius: 15px;
    transition: all var(--transition-fast);
    font-size: 0.85rem;
}

.tag-link:hover {
    background: var(--primary);
    color: white;
    transform: scale(1.05);
}

/* Recent Posts */
.recent-posts {
    list-style: none;
    padding: 0;
    margin: 0;
}

.recent-posts li {
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.recent-posts li:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.recent-posts a {
    display: block;
    text-decoration: none;
    color: var(--text);
    transition: color var(--transition-fast);
}

.recent-posts a:hover {
    color: var(--primary);
}

.recent-post-title {
    display: block;
    font-weight: 500;
    margin-bottom: 0.25rem;
    line-height: 1.4;
}

.recent-post-date {
    font-size: 0.8rem;
    color: var(--text-light);
}

/* Archive List */
.archive-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.archive-list li {
    margin-bottom: 0.5rem;
}

.archive-list a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    color: var(--text);
    text-decoration: none;
    transition: color var(--transition-fast);
    border-bottom: 1px solid var(--border-color);
}

.archive-list a:hover {
    color: var(--primary);
}

.archive-list .count {
    background: var(--background-alt);
    color: var(--text-light);
    padding: 0.25rem 0.5rem;
    border-radius: 10px;
    font-size: 0.8rem;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .blog-layout {
        grid-template-columns: 1fr 250px;
    }
}

@media (max-width: 768px) {
    .blog-header h1 {
        font-size: 2rem;
    }
    
    .blog-controls {
        flex-direction: column;
        align-items: stretch;
    }
    
    .search-box {
        max-width: none;
    }
    
    .filter-controls {
        justify-content: center;
    }
    
    .post-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .post-footer {
        flex-direction: column;
        align-items: stretch;
    }
    
    .read-more {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .blog-header h1 {
        font-size: 1.75rem;
    }
    
    .post-title {
        font-size: 1.25rem;
    }
    
    .sidebar-widget {
        padding: 1rem;
    }
    
    .pagination-controls {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    /* Mobile spacing */
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .hero-content {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .section-padding {
        padding: 3rem 1rem;
    }
    
    .main-content {
        padding-left: 1rem;
        padding-right: 1rem;
    }
} 