/**
* 2025 Nov 12: Daica@OTSC
*/


@media (min-width: 769px) {
  .articles-container {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
  }

  .articles-container article {
    background-color: var(--highlight-bg);
  }

  .articles-container article:first-child,
  .articles-container article:nth-of-type(n+4) {
    background-color: inherit;
    width: 100%;
  }

  .articles-container article:first-child:hover,
  .articles-container article:nth-of-type(n+4):hover {
    background-color: var(--highlight-bg);
  }

  .articles-container article:first-child img {
    width: 100%;
    object-fit: cover;
  }

  .articles-container a.article-title {
    display: block;
    text-decoration: none;
  }

  /* Hai bài tiếp theo (thứ 2, 3) */
  .articles-container article:nth-of-type(2),
  .articles-container article:nth-of-type(3) {
    flex: 1 1 auto;
    width: calc(50% - 12px);
  }

  /* Từ article thứ 4 trở đi */
  .articles-container article:nth-of-type(n+4) {
    display: flex;
    /* chia ảnh và text theo hàng ngang */
    flex-wrap: nowrap;
    margin-bottom: 24px;
    /* khoảng cách giữa các article */
  }

  /* Ảnh bên trái */
  .articles-container article:nth-of-type(n+4) .article-image {
    width: calc((3 / 8 * 100%) - 12px);
    margin-right: 12px;
    flex-shrink: 0;
  }

  .articles-container article:nth-of-type(n+4) .article-image img {
    width: 100%;
    object-fit: cover;
    display: block;
    margin-bottom: 0;
  }

  /* Phần text bên phải */
  /* Container cho phần text bên phải */
  .articles-container article:nth-of-type(n+4) .article-text-container {
    display: flex;
    flex-direction: column;
    /* title trên, sapo dưới */
    justify-content: flex-start;
    width: calc((5 / 8 * 100%) - 12px);
  }

  /* đảm bảo title block */
  .articles-container article:nth-of-type(n+4) .article-title {
    display: block;
    margin-bottom: 8px;
    /* khoảng cách giữa title và sapo */
  }

  /* sapo paragraph */
  .articles-container article:nth-of-type(n+4) p {
    margin: 0;
  }

  /* Mở rộng nhẹ cho trang chi tiết */
  .article-detail-item {
    background-color: inherit;
    display: block;
    margin-bottom: 48px;
  }

  .article-detail-item .article-image img {
    width: 100%;
    height: auto;
    border-radius: 6px;
    margin-bottom: 16px;
  }

  .article-detail-item .article-meta {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 8px;
  }

  .article-detail-item .article-sapo {
    font-weight: 500;
    font-size: 1.1rem;
    margin-bottom: 16px;
  }

  .article-detail-item .article-content {
    font-size: 1rem;
    line-height: 1.7;
    color: #222;
  }

  .related-section {
    margin-top: 48px;
  }

  .related-section h3 {
    margin-bottom: 16px;
    font-size: 1.2rem;
    font-weight: 600;
  }

}