.haiwode-news-container {
  margin: 0 auto;
  background-color: #f5f5f5;
}

/* Hot News Section */
.hot-news-section {
  max-width: 1600px;
  margin: 0 auto;
  margin-bottom: 120px;
  position: relative;
}

.section-header {
  text-align: center;
  margin-bottom: 50px;
  padding-top: 140px;
}

.section-title {
  color: #003365;
  text-align: center;
  font-family: Inter;
  font-size: var(--font-50);
  font-style: normal;
  font-weight: 700;
  line-height: 1.2;
}

.section-title-line {
  width: 60px;
  height: 5px;
  background: #C52316;
  margin: 18px auto 20px;
}

.section-subtitle {
  color: #333;
  text-align: center;
  font-family: Inter;
  font-size: var(--font-20);
  font-style: normal;
  font-weight: 400;
  line-height: 1.5;
}

.hot-news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 50px;
}

.hot-news-card {
  border-radius: 15px;
  background: #FFF;
  transition: box-shadow 0.3s ease;
  display: flex;
  width: 100%;
  padding: 25px 20px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 24px;
  box-sizing: border-box;
}

.hot-news-card:hover {
  box-shadow: 0 15px 20px 0 rgba(210, 212, 217, 0.50);
}

.card-date {
  width: 100%;
  height: 24px;
  flex-shrink: 0;
  color: #666;
  font-family: Inter;
  font-size: 18px;
  font-style: normal;
  font-weight: 300;
  line-height: 24px;
}

.card-title {
  width: 100%;
  flex-shrink: 0;
  color: #313131;
  font-family: Inter;
  font-size: 32px;
  font-style: normal;
  font-weight: 600;
  line-height: 44px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  min-height: 50px;
  cursor: pointer;
  margin-bottom: 0;
}

.card-image {
  width: 100%;
  aspect-ratio: 447/260;
  overflow: hidden;
  border-radius: 15px;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.hot-news-card:hover .card-image img {
  transform: scale(1.05);
}

.card-link {
  display: inline-block;
  text-decoration: none;
  transition: color 0.3s ease;
  height: 38px;
  flex-shrink: 0;
  align-self: stretch;
  color: #C52316;
  font-family: Inter;
  font-size: 24px;
  font-style: normal;
  font-weight: 600;
  line-height: normal;
}


/* All News Section */
.all-news-container {
  width: 100%;
  background: #FFF;
}

.all-news-section {
  max-width: 1600px;
  margin: 0 auto;
  padding-top: 1px;
  margin-bottom: 80px;
  position: relative;
}

.all-news-section .all-news-section-title {
  text-align: left;
  margin-bottom: 60px;
  margin-top: var(--component-gap);
  color: #999;
  font-family: var(--font-text-family);
  font-size: 48px;
  font-style: normal;
  font-weight: 400;
  line-height: normal; /* 50% */
}

.all-news-list {
  margin-bottom: 40px;
  display: flex;
  flex-direction: column;
  justify-content: start;
  align-items: start;
  gap: 24px;
}

.news-item {
  display: flex;
  align-items: center;
  width: 100%;
  padding: 30px 0;
  gap: 80px;
}

.news-item:last-child {
  border-bottom: none;
}

.news-date {
  flex-shrink: 0;
  text-align: center;
}

.date-day {
  height: 52.078px;
  align-self: stretch;
  color: #003365;
  text-align: center;
  font-family: Inter;
  font-size: 60.556px;
  font-style: normal;
  font-weight: 600;
  line-height: 53.289px;
}

.date-line {
  width: 95.003px;
  height: 1.211px;
  background: #000000;
  margin-top: 10px;
  margin-bottom: 10px;
}

.date-month {
  height: 27.856px;
  align-self: stretch;
  color: #313131;
  text-align: center;
  font-family: Inter;
  font-size: 21.8px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
}

.news-content {
  flex: 1;
  min-width: 0;
  height: 200px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-bottom: 1px solid rgba(196, 196, 196, 0.50);
}

.news-title {
  /* height: 43px; */
  color: #313131;
  font-family: Inter;
  font-size: 32px;
  font-style: normal;
  font-weight: 600;
  line-height: 44px;
  /* white-space: nowrap; */
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: pointer;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
}

.news-title:hover {
  color: #003365;
}

.news-description {
  font-size: var(--font-20);
  color: #666;
  line-height: 1.5;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-top: 20px;
}

.news-line {
  width: 100%;
  line-height: 0;
}

.news-line svg {
  width: 100%;
  height: 1px;
  stroke-width: 1px;
  stroke: rgba(196, 196, 196, 0.50);
}

.news-image {
  flex-shrink: 0;
  max-width: 350px;
  aspect-ratio: 7 / 4;
  border-radius: 15px;
  overflow: hidden;
}

.news-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.news-image:hover img {
  transform: scale(1.05);
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 40px;
}

.pagination-btn,
.pagination-number {
  padding: 8px 16px;
  border: 1px solid #ddd;
  background: white;
  color: #666;
  cursor: pointer;
  font-size: 14px;
  border-radius: 4px;
  transition: all 0.3s ease;
}

.pagination-btn:hover,
.pagination-number:hover {
  border-color: #C52316;
  color: #C52316;
}

.pagination-number.active {
  color: #C52316;
  border-color: #C52316;
}

.pagination-btn.disabled,
.pagination-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
}

.pagination-dots {
  color: #999;
  padding: 0 8px;
}

/* Responsive Design - based on container breakpoints */

/* >= 1500px: max-width 1440px (default above) */

/* 1280px ~ 1499px */
@media (min-width: 1280px) and (max-width: 1499px) {
  .hot-news-section,
  .all-news-section {
    max-width: 1200px;
  }
}

/* 1200px ~ 1279px */
@media (min-width: 1200px) and (max-width: 1279px) {
  .hot-news-section,
  .all-news-section {
    max-width: 1140px;
  }

}

/* 992px ~ 1199px */
@media (min-width: 992px) and (max-width: 1199px) {
  .hot-news-section,
  .all-news-section {
    max-width: 960px;
  }

  .hot-news-section {
    margin-bottom: 80px;
  }

  .section-header {
    padding-top: 100px;
  }

  .hot-news-grid {
    gap: 20px;
  }

  .card-title {
    font-size: 24px;
    line-height: 34px;
  }

  .card-link {
    font-size: 20px;
  }

  .news-item {
    gap: 40px;
  }

  .news-title {
    font-size: 24px;
    line-height: 34px;
  }

  .news-image {
    max-width: 280px;
  }
}

/* 768px ~ 991px: 2 columns for hot news, stacked news items */
@media (min-width: 768px) and (max-width: 991px) {
  .hot-news-section,
  .all-news-section {
    max-width: 720px;
    padding: 0 20px;
  }

  .hot-news-section {
    margin-bottom: 60px;
  }

  .section-header {
    padding-top: 80px;
  }

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

  .hot-news-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .card-title {
    font-size: 22px;
    line-height: 30px;
    min-height: 40px;
  }

  .card-date {
    font-size: 14px;
  }

  .card-link {
    font-size: 18px;
  }

  .news-item {
    gap: 30px;
  }

  .date-day {
    font-size: 42px;
    line-height: 40px;
    height: auto;
  }

  .date-month {
    font-size: 16px;
    height: auto;
  }

  .date-line {
    width: 70px;
  }

  .news-title {
    font-size: 22px;
    line-height: 30px;
    height: auto;
  }

  .news-content {
    height: auto;
    gap: 20px;
  }

  .news-image {
    max-width: 220px;
  }

  .all-news-section .all-news-section-title {
    margin-top: 60px;
    margin-bottom: 30px;
    font-size: 22px;
  }
}

/* 576px ~ 767px: single column */
@media (min-width: 576px) and (max-width: 767px) {
  .hot-news-section,
  .all-news-section {
    max-width: 540px;
    padding: 0 20px;
  }

  .hot-news-section {
    margin-bottom: 40px;
  }

  .section-header {
    padding-top: 60px;
    margin-bottom: 30px;
  }

  .section-title {
    font-size: 24px;
  }

  .section-subtitle {
    font-size: 14px;
  }

  .hot-news-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .card-title {
    font-size: 20px;
    line-height: 28px;
    min-height: 36px;
  }

  .card-date {
    font-size: 14px;
  }

  .card-link {
    font-size: 16px;
  }

  .news-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    padding: 20px 0;
  }

  .news-date {
    width: 100%;
    text-align: left;
    display: flex;
    align-items: center;
    gap: 10px;
  }

  .date-day {
    font-size: 32px;
    line-height: 32px;
    height: auto;
  }

  .date-line {
    width: 1px;
    height: 30px;
    margin: 0;
  }

  .date-month {
    font-size: 14px;
    height: auto;
  }

  .news-content {
    height: auto;
    gap: 16px;
  }

  .news-title {
    font-size: 20px;
    line-height: 28px;
    height: auto;
  }

  .news-image {
    max-width: 100%;
    width: 100%;
  }

  .all-news-section .all-news-section-title {
    margin-top: 40px;
    margin-bottom: 24px;
    font-size: 20px;
  }
}

/* < 576px: mobile */
@media (max-width: 575px) {
  .hot-news-section,
  .all-news-section {
    max-width: 100%;
    padding: 0 16px;
    box-sizing: border-box;
  }

  .hot-news-section {
    margin-bottom: 30px;
  }

  .section-header {
    padding-top: 40px;
    margin-bottom: 20px;
  }

  .section-title {
    font-size: 22px;
  }

  .section-subtitle {
    font-size: 13px;
  }

  .hot-news-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .hot-news-card {
    padding: 16px;
    gap: 16px;
  }

  .card-title {
    font-size: 18px;
    line-height: 26px;
    min-height: 32px;
  }

  .card-date {
    font-size: 13px;
  }

  .card-link {
    font-size: 15px;
    height: auto;
  }

  .news-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
  }

  .news-date {
    width: 100%;
    text-align: left;
    display: flex;
    align-items: center;
    gap: 8px;
  }

  .date-day {
    font-size: 28px;
    line-height: 28px;
    height: auto;
  }

  .date-line {
    width: 1px;
    height: 24px;
    margin: 0;
  }

  .date-month {
    font-size: 13px;
    height: auto;
  }

  .news-content {
    height: auto;
    gap: 12px;
  }

  .news-title {
    font-size: 18px;
    line-height: 26px;
    height: auto;
  }

  .news-description {
    font-size: 13px;
  }

  .news-image {
    max-width: 100%;
    width: 100%;
  }

  .all-news-section .all-news-section-title {
    margin-top: 30px;
    margin-bottom: 20px;
    font-size: 18px;
  }

  .pagination {
    flex-wrap: wrap;
    gap: 6px;
  }

  .pagination-btn,
  .pagination-number {
    padding: 6px 10px;
    font-size: 12px;
  }
}

@media screen and (max-width: 1280px) {
  .all-news-section .all-news-section-title{
    font-size: 36px;
  }
}