.blog-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}

.blog-post {
  padding: 12px 0;
}

.blog-image {
  width: 620px;
  height: 275px;
  object-fit: cover;
  margin-bottom: 20px;
}

.blog-grid {
  display: grid;
  gap: 30px;
}

.blog-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  align-items: start;
  padding: 12px 0;
  border-bottom: 1px solid var(--border-light);
}

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

@media (max-width: 1024px) {
  .blog-content {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .blog-image {
    height: 280px;
  }
}

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

  .blog-post {
    padding: 8px 0;
  }

  .blog-image {
    height: 220px;
  }

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

/* detail css */
.article-section {
  display: flex;
  flex-direction: column;
  width: 100%;
  overflow: hidden;
}

.header-image {
  width: 100%;
  margin-top: 20px;
}

.header-image img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  max-height: 400px;
  margin-bottom: 20px;
}

.article-summary,
.section-text {
  font-size: 16px;
  font-weight: 400;
  color: var(--text-light);
  line-height: 28px;
}

.article-summary {
  margin-bottom: 30px;
}

.article-content-info {
  margin-bottom: 30px;
}
.content-section {
  margin-bottom: 12px;
}

.section-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-light);
  line-height: 28px;
  margin-bottom: 5px;
}

/* related articles */

.article-blog-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}

.blog-post {
  padding: 12px 0;
}

.blog-image {
  width: 100%;
  height: 324px;
  object-fit: cover;
  margin-bottom: 20px;
}

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

/* Back button styling */
.back-button-container {
  margin-bottom: 20px;
}

#back-to-list {
  background: transparent;
  border: 2px solid #333;
  color: #333;
  padding: 10px 20px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.3s ease;
}

#back-to-list:hover {
  background-color: var(--green-200);
  border-color: transparent;
  color: var(--green-1000);
}

/* Smooth transitions for view switching */
.blog-container,
.article-container {
  transition: opacity 0.3s ease;
}

/* Loading state for continue reading buttons */
.continue-reading:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
