/* Blog Page Styles */

body {
  background-color: white;
}

.blog-section {
  padding: 60px 40px 80px;
  background-color: white;
}

.blog-container {
  max-width: 900px;
  margin: 0 auto;
}

.blog-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.blog-post {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 40px;
  padding: 40px 0;
  border-bottom: 1px solid #e5e7eb;
  text-decoration: none;
  color: inherit;
  transition: opacity 0.2s ease;
}

.blog-post:first-child {
  padding-top: 0;
}

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

.blog-post:hover {
  opacity: 0.8;
}

.blog-post:hover .blog-title {
  color: #082845;
}

.blog-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
}

.blog-category {
  font-size: 13px;
  font-weight: 500;
  color: #6b7280;
  letter-spacing: 0.3px;
}

.blog-title {
  font-size: 22px;
  font-weight: 700;
  line-height: 1.35;
  color: #1a1a1a;
  margin: 0;
  letter-spacing: -0.3px;
  transition: color 0.2s ease;
}

.blog-excerpt {
  font-size: 15px;
  line-height: 1.6;
  color: #6b7280;
  margin: 0;
}

.blog-image {
  width: 280px;
  height: 180px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
}

.blog-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.blog-image-placeholder {
  width: 100%;
  height: 100%;
  background-color: #f3f4f6;
  display: flex;
  align-items: center;
  justify-content: center;
}

.blog-image-placeholder i {
  font-size: 48px;
  color: #9ca3af;
}

/* Different placeholder gradients for visual variety */
.blog-post:nth-child(1) .blog-image-placeholder {
  background: linear-gradient(135deg, #cffafe 0%, #a5f3fc 50%, #67e8f9 100%);
}

.blog-post:nth-child(1) .blog-image-placeholder i {
  color: #0e7490;
}

.blog-post:nth-child(2) .blog-image-placeholder {
  background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 50%, #6ee7b7 100%);
}

.blog-post:nth-child(2) .blog-image-placeholder i {
  color: #047857;
}

.blog-post:nth-child(3) .blog-image-placeholder {
  background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 50%, #93c5fd 100%);
}

.blog-post:nth-child(3) .blog-image-placeholder i {
  color: #1d4ed8;
}

.blog-post:nth-child(4) .blog-image-placeholder {
  background: linear-gradient(135deg, #fce7f3 0%, #fbcfe8 50%, #f9a8d4 100%);
}

.blog-post:nth-child(4) .blog-image-placeholder i {
  color: #be185d;
}

.blog-post:nth-child(5) .blog-image-placeholder {
  background: linear-gradient(135deg, #e0e7ff 0%, #c7d2fe 50%, #a5b4fc 100%);
}

.blog-post:nth-child(5) .blog-image-placeholder i {
  color: #4338ca;
}

.blog-post:nth-child(6) .blog-image-placeholder {
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 50%, #fcd34d 100%);
}

.blog-post:nth-child(6) .blog-image-placeholder i {
  color: #b45309;
}

/* Additional gradient styles for future posts */
.blog-post:nth-child(7) .blog-image-placeholder {
  background: linear-gradient(135deg, #ede9fe 0%, #ddd6fe 50%, #c4b5fd 100%);
}

.blog-post:nth-child(7) .blog-image-placeholder i {
  color: #6d28d9;
}

.blog-post:nth-child(8) .blog-image-placeholder {
  background: linear-gradient(135deg, #fef2f2 0%, #fecaca 50%, #fca5a5 100%);
}

.blog-post:nth-child(8) .blog-image-placeholder i {
  color: #b91c1c;
}

/* Responsive Styles */
@media (max-width: 768px) {
  .blog-section {
    padding: 40px 20px 60px;
  }

  .blog-post {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .blog-image {
    width: 100%;
    height: 200px;
    order: -1;
  }

  .blog-title {
    font-size: 20px;
  }

  .blog-excerpt {
    font-size: 14px;
  }
}

/* Active nav link style */
.nav-link.active {
  color: #082845;
  font-weight: 600;
}

/* ===========================================
   Blog Article (Single Post) Styles
   =========================================== */

.blog-article {
  max-width: 680px;
  margin: 0 auto;
  padding: 80px 20px 80px;
  background-color: white;
}

/* Article Header */
.article-header {
  margin-bottom: 40px;
}

/* Breadcrumb */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  margin-bottom: 24px;
}

.breadcrumb-link {
  color: #6b7280;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

.breadcrumb-link:hover {
  color: #082845;
}

.breadcrumb-separator {
  color: #d1d5db;
}

.breadcrumb-current {
  color: #1a1a1a;
  font-weight: 500;
}

.article-category {
  display: inline-block;
  font-size: 13px;
  font-weight: 500;
  color: #6b7280;
  letter-spacing: 0.3px;
  margin-bottom: 12px;
}

.article-title {
  font-size: 36px;
  font-weight: 700;
  line-height: 1.25;
  color: #1a1a1a;
  margin: 0 0 16px 0;
  letter-spacing: -0.5px;
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: #6b7280;
}

.meta-separator {
  color: #d1d5db;
}

/* Featured Image */
.article-featured-image {
  width: 100%;
  height: 360px;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 48px;
}

.article-featured-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.article-image-placeholder {
  width: 100%;
  height: 100%;
  background-color: #cffafe;
  display: flex;
  align-items: center;
  justify-content: center;
}

.article-image-placeholder i {
  font-size: 80px;
  color: #0891b2;
}

/* Article Content */
.article-content {
  font-size: 17px;
  line-height: 1.75;
  color: #374151;
}

.article-content p {
  margin: 0 0 24px 0;
}

.article-lead {
  font-size: 20px;
  line-height: 1.65;
  color: #1a1a1a;
  margin-bottom: 32px;
}

.article-content h2 {
  font-size: 24px;
  font-weight: 700;
  color: #1a1a1a;
  margin: 48px 0 20px 0;
  letter-spacing: -0.3px;
}

.article-content h3 {
  font-size: 20px;
  font-weight: 600;
  color: #1a1a1a;
  margin: 36px 0 16px 0;
}

.article-content ul,
.article-content ol {
  margin: 0 0 24px 0;
  padding-left: 24px;
}

.article-content li {
  margin-bottom: 12px;
}

.article-content strong {
  color: #1a1a1a;
  font-weight: 600;
}

.article-content blockquote {
  margin: 32px 0;
  padding: 24px 28px;
  background-color: #f9fafb;
  border-left: 4px solid #082845;
  border-radius: 0 8px 8px 0;
  font-size: 18px;
  font-style: italic;
  color: #1a1a1a;
  line-height: 1.6;
}

.article-content a {
  color: #082845;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.article-content a:hover {
  text-decoration: none;
}

/* Responsive Styles for Article */
@media (max-width: 768px) {
  .blog-article {
    padding: 24px 16px 60px;
  }

  .article-title {
    font-size: 28px;
  }

  .article-featured-image {
    height: 240px;
    margin-bottom: 32px;
  }

  .article-lead {
    font-size: 18px;
  }

  .article-content {
    font-size: 16px;
  }

  .article-content h2 {
    font-size: 22px;
    margin: 40px 0 16px 0;
  }

  .article-content blockquote {
    padding: 20px;
    font-size: 16px;
  }
}
