/* =====================================================================
   SIMPLIFIED BLOG TYPOGRAPHY - Clean & Professional
   ===================================================================== */

/* Override any parent text-align center */
main article,
main .blog-single,
main .blog-single *,
article.blog-single,
article.blog-single * {
  text-align: left !important;
}

/* Specific overrides for common centered elements */
.blog-single h1,
.blog-single h2,
.blog-single h3,
.blog-single h4,
.blog-single h5,
.blog-single h6,
.blog-single p,
.blog-single li,
.blog-single div {
  text-align: left !important;
}

/* Blog Single Clean Typography */
.blog-single {
  padding: var(--al-space-4xl) var(--al-space-4xl);
  color: var(--al-white);
  max-width: 100%;
  margin: 0;
  text-align: left !important;
}

/* Blog Header */
.blog-single-header {
  margin-bottom: var(--al-space-4xl);
  padding-bottom: var(--al-space-3xl);
  border-bottom: 1px solid rgba(0, 255, 78, 0.2);
}

/* Clean Title Styling */
.blog-single-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: var(--al-space-xl);
  color: var(--al-white);
  letter-spacing: -0.02em;
}

/* Meta Information */
.blog-single-meta {
  color: var(--al-gray-400);
  font-size: 0.95rem;
  display: flex;
  gap: var(--al-space-xl);
  flex-wrap: wrap;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.blog-single-meta span {
  position: relative;
}

.blog-single-meta span:not(:last-child)::after {
  content: '•';
  position: absolute;
  right: calc(var(--al-space-xl) * -0.5);
  color: var(--al-gray-600);
}

/* Content Typography */
.blog-single-content {
  color: var(--al-gray-200);
  line-height: 1.8;
  font-size: 1.1rem;
  font-weight: 400;
  max-width: 100%;
  margin: 0;
  text-align: left !important;
}

/* Headings */
.blog-single-content h1,
.blog-single-content h2,
.blog-single-content h3,
.blog-single-content h4,
.blog-single-content h5,
.blog-single-content h6 {
  color: var(--al-white);
  margin: var(--al-space-3xl) 0 var(--al-space-lg) 0;
  font-weight: 700;
  position: relative;
  letter-spacing: -0.01em;
  line-height: 1.3;
}

.blog-single-content h2 {
  font-size: 2rem;
  padding-bottom: var(--al-space-md);
  border-bottom: 1px solid rgba(0, 255, 78, 0.2);
}

.blog-single-content h3 {
  font-size: 1.5rem;
  color: var(--al-gray-100);
}

.blog-single-content h4 {
  font-size: 1.25rem;
  color: var(--al-gray-200);
}

/* Paragraphs */
.blog-single-content p {
  margin-bottom: var(--al-space-xl);
  text-align: left !important;
}

/* Strong & Emphasis */
.blog-single-content strong,
.blog-single-content b {
  color: var(--al-white);
  font-weight: 600;
}

.blog-single-content em,
.blog-single-content i {
  color: var(--al-gray-100);
  font-style: italic;
}

/* Lists */
.blog-single-content ul,
.blog-single-content ol {
  margin: var(--al-space-xl) 0;
  padding-left: var(--al-space-xl);
}

.blog-single-content li {
  margin-bottom: var(--al-space-sm);
  line-height: 1.8;
}

.blog-single-content ul li {
  list-style: none;
  position: relative;
  padding-left: var(--al-space-lg);
}

.blog-single-content ul li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--al-primary);
  font-weight: bold;
}

.blog-single-content ol {
  counter-reset: blog-counter;
}

.blog-single-content ol li {
  counter-increment: blog-counter;
  list-style: none;
  position: relative;
  padding-left: var(--al-space-2xl);
}

.blog-single-content ol li::before {
  content: counter(blog-counter) '.';
  position: absolute;
  left: 0;
  color: var(--al-primary);
  font-weight: 600;
}

/* Links */
.blog-single-content a {
  color: var(--al-primary);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
  border-bottom: 1px solid transparent;
}

.blog-single-content a:hover {
  color: var(--al-primary-light);
  border-bottom-color: var(--al-primary-light);
}

/* Code */
.blog-single-content code {
  background: rgba(0, 255, 78, 0.1);
  color: var(--al-primary);
  padding: 0.2em 0.4em;
  border-radius: 3px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.9em;
  font-weight: 500;
}

.blog-single-content pre {
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(0, 255, 78, 0.2);
  border-radius: 8px;
  padding: var(--al-space-lg);
  overflow-x: auto;
  margin: var(--al-space-2xl) 0;
}

.blog-single-content pre code {
  background: none;
  padding: 0;
  color: var(--al-gray-100);
  display: block;
  line-height: 1.6;
}

/* Blockquotes */
.blog-single-content blockquote {
  border-left: 3px solid var(--al-primary);
  padding-left: var(--al-space-xl);
  margin: var(--al-space-2xl) 0;
  font-style: italic;
  color: var(--al-gray-300);
}

/* Tables */
.blog-single-content table {
  width: 100%;
  border-collapse: collapse;
  margin: var(--al-space-2xl) 0;
}

.blog-single-content th {
  background: rgba(0, 255, 78, 0.1);
  color: var(--al-white);
  font-weight: 600;
  padding: var(--al-space-md);
  text-align: left;
  border-bottom: 2px solid rgba(0, 255, 78, 0.3);
}

.blog-single-content td {
  padding: var(--al-space-md);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.blog-single-content tr:hover {
  background: rgba(0, 255, 78, 0.05);
}

/* Horizontal Rules */
.blog-single-content hr {
  border: none;
  height: 1px;
  background: rgba(0, 255, 78, 0.3);
  margin: var(--al-space-3xl) 0;
}

/* Tags */
.blog-tags {
  margin-top: var(--al-space-4xl);
  padding-top: var(--al-space-2xl);
  border-top: 1px solid rgba(0, 255, 78, 0.2);
}

.blog-tags .tag {
  display: inline-block;
  background: rgba(0, 255, 78, 0.1);
  color: var(--al-primary);
  padding: var(--al-space-xs) var(--al-space-md);
  border-radius: 20px;
  font-size: 0.9rem;
  margin: var(--al-space-xs);
  transition: all 0.2s ease;
  border: 1px solid rgba(0, 255, 78, 0.3);
  font-weight: 500;
}

.blog-tags .tag:hover {
  background: rgba(0, 255, 78, 0.2);
  transform: translateY(-2px);
}

/* Related Posts */
.related-posts {
  margin-top: var(--al-space-4xl);
  padding: var(--al-space-4xl) var(--al-space-3xl);
  border-top: 1px solid rgba(0, 255, 78, 0.2);
}

.related-posts .section-title {
  color: var(--al-white);
  margin-bottom: var(--al-space-3xl);
  font-size: 2rem;
  font-weight: 700;
}

/* Blog List Styles */
.blog-list-container {
  padding: var(--al-space-4xl) var(--al-space-3xl);
}

.blog-list-header {
  margin-bottom: var(--al-space-4xl);
  padding-bottom: var(--al-space-3xl);
  border-bottom: 2px solid rgba(0, 255, 78, 0.2);
}

.blog-list-title {
  font-size: 3rem;
  font-weight: 800;
  color: var(--al-white);
  margin-bottom: var(--al-space-lg);
  letter-spacing: -0.02em;
}

.blog-list-description {
  color: var(--al-gray-300);
  font-size: 1.2rem;
  line-height: 1.6;
}

.blog-list {
  margin-bottom: var(--al-space-4xl);
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
  gap: var(--al-space-2xl);
}

.blog-list-item {
  padding: var(--al-space-2xl);
  background: rgba(0, 255, 78, 0.02);
  border: 1px solid rgba(0, 255, 78, 0.1);
  border-radius: 8px;
  transition: all 0.2s ease;
}

.blog-list-item:hover {
  background: rgba(0, 255, 78, 0.05);
  border-color: rgba(0, 255, 78, 0.3);
  transform: translateY(-2px);
}

.blog-list-item-title {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: var(--al-space-sm);
}

.blog-list-item-title a {
  color: var(--al-white);
  text-decoration: none;
  transition: color 0.2s ease;
}

.blog-list-item-title a:hover {
  color: var(--al-primary);
}

.blog-list-meta {
  color: var(--al-gray-400);
  font-size: 0.9rem;
  margin-bottom: var(--al-space-md);
  display: flex;
  gap: var(--al-space-lg);
  flex-wrap: wrap;
}

.blog-list-excerpt {
  color: var(--al-gray-300);
  line-height: 1.6;
  margin-bottom: var(--al-space-md);
}

.blog-list-tags {
  display: flex;
  gap: var(--al-space-sm);
  flex-wrap: wrap;
}

.blog-list-tags .tag {
  display: inline-block;
  background: rgba(0, 255, 78, 0.1);
  color: var(--al-primary);
  padding: 0.25rem 0.75rem;
  border-radius: 15px;
  font-size: 0.85rem;
  transition: all 0.2s ease;
}

.blog-list-tags .tag:hover {
  background: rgba(0, 255, 78, 0.2);
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  gap: var(--al-space-md);
  margin-top: var(--al-space-3xl);
}

.pagination a,
.pagination span {
  padding: var(--al-space-sm) var(--al-space-md);
  background: rgba(0, 255, 78, 0.1);
  color: var(--al-primary);
  text-decoration: none;
  border-radius: 5px;
  transition: all 0.2s ease;
}

.pagination a:hover {
  background: rgba(0, 255, 78, 0.2);
}

.pagination .active {
  background: var(--al-primary);
  color: var(--al-black);
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .blog-single {
    padding: var(--al-space-2xl) var(--al-space-lg);
    max-width: 100%;
  }

  .blog-single-title {
    font-size: 2rem;
  }

  .blog-single-content {
    font-size: 1rem;
    max-width: 100%;
  }

  .blog-single-content h2 {
    font-size: 1.5rem;
  }

  .blog-single-content h3 {
    font-size: 1.25rem;
  }

  .blog-single-meta {
    flex-direction: column;
    gap: var(--al-space-sm);
  }

  .blog-single-meta span:not(:last-child)::after {
    display: none;
  }

  .blog-list {
    grid-template-columns: 1fr;
  }

  .blog-list-title {
    font-size: 2rem;
  }

  .blog-list-item-title {
    font-size: 1.4rem;
  }

  .related-posts {
    padding: var(--al-space-2xl) var(--al-space-lg);
  }
}


