/* ============================================
   BLOG DETAIL PAGE
   ============================================ */

.blog-detail-page {
  background-color: var(--color-bg-alt);
}

.blog-hero {
  position: relative;
  height: 400px;
  background-color: var(--color-primary-dark);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-bottom: -100px; /* Overlap effect */
}

.blog-hero__bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.6;
}

.blog-hero__content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 800px;
  padding: var(--space-6);
}

.blog-hero__title {
  color: white;
  font-size: var(--font-size-4xl);
  margin-bottom: var(--space-4);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  font-weight: 800;
}

.blog-hero__meta {
  color: rgba(255, 255, 255, 0.9);
  font-size: var(--font-size-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
}

.blog-article-container {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
  padding: 0 var(--space-4);
}

.blog-article {
  background: white;
  padding: var(--space-12);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  font-size: 1.125rem; /* Larger base font size */
  line-height: 1.8;
  color: var(--color-text);
  overflow: hidden; /* For floating elements if any */
}

/* === HEADINGS === */
.blog-article__content h2 {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--color-primary-dark);
  margin-top: var(--space-10);
  margin-bottom: var(--space-6);
  padding-bottom: var(--space-3);
  border-bottom: 2px solid var(--color-border-light);
  position: relative;
}

.blog-article__content h2::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 80px;
  height: 2px;
  background-color: var(--color-accent);
}

.blog-article__content h3 {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--color-text);
  margin-top: var(--space-8);
  margin-bottom: var(--space-4);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

/* === PARAGRAPH & TEXT === */
.blog-article__content p {
  margin-bottom: var(--space-6);
  color: var(--color-text-secondary);
}

.blog-article__content strong {
  color: var(--color-primary-dark);
  font-weight: 700;
}

/* === LISTS STYLING === */
.blog-article__content ul,
.blog-article__content ol {
  position: relative;
  margin: var(--space-8) 0;
  padding: var(--space-6) var(--space-6) var(--space-6) var(--space-10);
  border-radius: var(--radius-lg);
  list-style: none;
}

/* Unordered List (Checkmarks) */
.blog-article__content ul {
  background-color: #f0fdfa; /* Light Teal */
  border-left: 4px solid var(--color-primary);
}

.blog-article__content ul li {
  margin-bottom: var(--space-3);
  position: relative;
}

.blog-article__content ul li::before {
  content: "check_circle"; /* Material Icon */
  font-family: "Material Symbols Outlined";
  position: absolute;
  left: -32px;
  top: 3px;
  color: var(--color-primary);
  font-size: 1.25rem;
  line-height: 1;
}

/* Ordered List (Numbered) */
.blog-article__content ol {
  background-color: #fffbeb; /* Light Amber */
  border-left: 4px solid var(--color-accent);
  counter-reset: blog-counter;
}

.blog-article__content ol li {
  margin-bottom: var(--space-4);
  position: relative;
  counter-increment: blog-counter;
}

.blog-article__content ol li::before {
  content: counter(blog-counter);
  position: absolute;
  left: -34px;
  top: 0;
  width: 24px;
  height: 24px;
  background-color: var(--color-accent);
  color: white;
  border-radius: 50%;
  font-size: 0.85rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 4px rgba(245, 158, 11, 0.3);
}

/* Nested lists should look normal */
.blog-article__content ul.nested-list {
  background-color: transparent;
  border: none;
  padding: var(--space-2) 0 0 var(--space-4);
  margin: var(--space-2) 0;
}

.blog-article__content ul.nested-list li {
  margin-bottom: var(--space-2);
}

.blog-article__content ul.nested-list li::before {
  content: "•";
  font-family: inherit;
  font-size: 1.5rem;
  color: var(--color-text-muted);
  left: -20px;
  top: -5px;
  box-shadow: none;
  background: none;
  width: auto;
  height: auto;
}

/* === NAVIGATION BUTTON === */
.blog-nav-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  margin-top: var(--space-10);
  padding: var(--space-3) var(--space-6);
  background-color: white;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  font-weight: 600;
  color: var(--color-text-secondary);
  transition: all var(--transition-fast);
  text-decoration: none;
}

.blog-nav-btn:hover {
  background-color: var(--color-primary-light);
  color: var(--color-primary);
  border-color: var(--color-primary-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
  .blog-hero {
    height: 300px;
  }
  .blog-hero__title {
    font-size: var(--font-size-2xl);
  }
  .blog-article-container {
    padding: 0 var(--space-2);
  }
  .blog-article {
    padding: var(--space-6);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  }
}
