/* Align content to left and limit width to 75% */
.content-wrapper {
  max-width: 80%;
  margin: 0 auto; /* Center the content horizontally */
  padding: 2rem 0;
}

/* Page Header */
.page-header {
  text-align: start;
  background-color: transparent;
  color: var(--primary);
  padding: 2.0rem 1.0rem;
  margin-left: 30px;
}

.page-header h1 {
  font-family: var(--heading);
  font-size: 3.5rem;
}

/* Vertical List */
.article-list {
  display: flex;
  flex-direction: column;
  padding: 0 1rem; /* Balanced space left and right */
}

.list-item {
  height: 150px; /* Adjust as needed */
  display: flex;
  gap: 1rem;
  background-color: transparent;
  overflow: hidden;
  transition: transform 0.3s ease;
}

.list-item:not(:last-child) {
  border-bottom: 1px solid var(--primary);
  margin-bottom: 1rem;
}

.list-item:hover {
  transform: translateY(-3px);
}

.list-item .article-image {
  width: 190px;
  height: 100px;
  object-fit: cover;
  object-fit: cover; /* Maintain aspect ratio */
  min-width: 190px; /* Ensure minimum width */
  min-height: 100px; /* Ensure minimum height */
}

.list-item .article-link-image {
  width: 70px;
  height: 50px;
  padding: 8px 0px;
  display: block;
  border-radius: 4px;
  margin: 10px 0 10px 10px;
}

.item-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.item-content h3 {
  font-family: var(--heading);
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.item-content p {
  color: var(--text-dark);
  font-size: 0.95rem;
}

@media (max-width: 768px) {
  .content-wrapper {
    max-width: 100%;
    margin: 0 auto;
    padding: 2rem 0;
  }

  .article-list {
    padding: 0 1rem;
  }

  .list-item {
    flex-direction: row; /* Keep horizontal layout */
    align-items: flex-start;
    text-align: left;
    gap: 0.75rem;
    height: 190px;
  }

  .list-item .article-image {
    width: 120px;
    height: 120px;
    min-width: 120px;
    min-height: 80px;
    object-fit: cover;
  }

  .item-content {
    padding-top: 0;
    align-items: flex-start;
    text-align: left;
    margin-bottom: 10px;
  }

  .item-content h3 {
    font-size: 1rem;
    display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  }

  .item-content p {
    font-size: 0.85rem;
    display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  }

  .list-item .article-link-image {
    width: 100px;
    height: 40px;
    margin-left: 0;
  }
}


@media (max-width: 480px) {
  .page-header h1 {
    font-size: 2.2rem;
  }

  .item-content h3 {
    font-size: 1.1rem;
  }

  .item-content p {
    font-size: 0.9rem;
  }
}


