body {
  font-family: Arial, sans-serif;
  background: #0a0e1a;
  color: #e0e7ff;
  margin: 0;
  padding: 0;
}

.wrap {
  max-width: 1200px;
  margin: auto;
  padding: 20px;
}

header {
  text-align: center;
  margin-bottom: 20px;
}

h1 {
  color: #3b82f6;
}

/* Blog container with sidebar */
.blog-container {
  display: grid;
  grid-template-columns: 3fr 1fr;
  gap: 32px;
}

/* Blog posts, lists, and categories */
.blog-post, .blog-list, .category-list {
  background: #1e2638;
  border-radius: 12px;
  padding: 20px;
  word-wrap: break-word;
}

.featured-image {
  max-width: 100%;
  border-radius: 10px;
  margin: 15px 0;
}

/* Sidebar styling */
.sidebar {
  background: #2a334d;
  padding: 20px;
  border-radius: 12px;
}

.sidebar h3 {
  color: #60a5fa;
}

.sidebar ul {
  list-style: none;
  padding: 0;
}

.sidebar li {
  margin-bottom: 10px;
}

.sidebar a {
  color: #e0e7ff;
  text-decoration: none;
  transition: color 0.3s ease;
}

.sidebar a:hover {
  color: #3b82f6;
}

/* Table of Contents */
.toc {
  background: #2a334d;
  padding: 15px;
  margin: 20px 0;
  border-radius: 10px;
}

.toc h3 {
  margin-bottom: 10px;
  color: #60a5fa;
}

.toc ul {
  list-style: none;
  padding-left: 0;
}

.toc li {
  margin-bottom: 8px;
}

.toc a {
  color: #e0e7ff;
  text-decoration: none;
  transition: color 0.3s ease;
}

.toc a:hover {
  color: #3b82f6;
}

/* Social share links */
.social-share {
  margin-top: 20px;
}

.social-share a {
  margin-right: 10px;
  color: #3b82f6;
  text-decoration: none;
  transition: color 0.3s ease;
}

.social-share a:hover {
  text-decoration: underline;
}

/* Responsive enhancements for mobile */
@media (max-width: 768px) {
  .blog-container {
    grid-template-columns: 1fr; /* Stack content */
    gap: 20px;
  }

  .sidebar {
    margin-top: 30px;
  }

  .toc {
    margin: 15px 0;
    padding: 12px;
  }

  .featured-image {
    margin: 10px 0;
  }

  h1 {
    font-size: 1.8rem;
  }

  .blog-post, .sidebar {
    padding: 15px;
  }
}

/* Optional: smoother link hover effect */
a {
  transition: color 0.2s ease-in-out;
}

/* Optional: improve text readability on small screens */
p, li {
  line-height: 1.6;
  font-size: 1rem;
}

    
    
/* Footer styles */
footer {
    background: var(--bg-card);
    border-top: 1px solid var(--border-neon);
    box-shadow: 0 -4px 20px var(--shadow-subtle), 0 0 15px var(--shadow-glow);
    padding: 2.5rem 1.5rem;
    margin-top: 2rem;
}

.footer-grid {
    display: grid;
    gap: 1.5rem;
}

.footer-heading {
    color: var(--secondary-neon);
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    text-shadow: 0 0 8px var(--shadow-glow);
    text-align: left; /* Ensure left alignment */
}

.footer-grid a {
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.3s var(--transition-ease), text-shadow 0.3s var(--transition-ease), transform 0.3s var(--transition-ease);
}

.footer-grid a:hover {
    color: var(--primary-neon);
    text-shadow: 0 0 8px var(--shadow-glow);
    transform: translateY(-2px);
}

.footer-badge {
    display: inline; /* Remove block behavior to avoid box effect */
    padding: 0; /* Remove padding to eliminate box */
    color: var(--text-primary);
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.3s var(--transition-ease), text-shadow 0.3s var(--transition-ease), transform 0.3s var(--transition-ease);
}

.footer-badge:hover {
    color: var(--primary-neon);
    text-shadow: 0 0 8px var(--shadow-glow);
    transform: translateY(-2px);
}

.social-links a {
    font-size: 0.9rem;
    color: var(--text-muted);
    transition: color 0.3s var(--transition-ease), text-shadow 0.3s var(--transition-ease), transform 0.3s var(--transition-ease);
}

.social-links a:hover {
    color: var(--secondary-neon);
    text-shadow: 0 0 8px var(--shadow-glow);
    transform: translateY(-2px);
}

footer p {
    color: var(--text-muted);
    font-size: 0.9rem;
    text-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
    margin-top: 1.5rem;
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        /* Remove text-align: center to preserve left alignment */
    }
    .footer-grid > div {
        margin-bottom: 1.5rem;
    }
    .footer-grid .social-links {
        justify-content: center;
    }
    .footer-badge {
        padding: 0; /* Ensure no padding on mobile */
        font-size: 0.8rem;
    }
}
