#news {
  display: flex;
  flex-direction: column;
  gap: 12px;               /* spacing between news items */
  padding: 10px;
  width: 100%;
  max-width: 420px;
  height: 360px;           /* FIXED height */
  overflow: hidden;        /* No scroll */
  border-radius: 10px;
  box-sizing: border-box;
}


/* Each news item: looks like a card */
.news-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  text-decoration: none;
  color: var(--text-color);
  border-radius: 10px;
  padding: 10px;
  background: var(--bc_primary);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 0.2rem 0.5rem var(--shadow-semitransparent-color);
  height: 105px;                    /* Fixed height to fit 3 items */
  box-sizing: border-box;
}


.news-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* News image */
.news-img {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 6px;
  flex-shrink: 0;
}


/* News text content */
.news-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  min-width: 0;
}

/* Title */
.news-title {
  margin: 0 0 6px 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

/* Summary */
.news-summary {
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-date {
  margin-top: 3px;
}

@media (max-width: 1152px){
  .main_section_title{
    display: none;
  }

  #news_wrapper{
    display: none;
  }

}