@import "../../common/base/index.css";
@import "../../common/layout/index.css";
@import "../../common/header/index.css";
@import "../../common/footer/index.css";

/* Banner */
.news-banner {
  position: relative;
}
.news-banner-bg {
  height: 260px;
  background: url("/static/image/temp/bg1.jpg") center/cover
    no-repeat;
  /* background: linear-gradient(135deg, #6d6d6d, #32435c); */
  filter: brightness(0.55);
}
.news-banner .tabs {
  position: relative;
  margin-top: -48px;
}
.news-tab {
  background: #ffffff;
  color: #000;
  padding: 14px 10px;
  font-weight: 700;
  transition: all 0.3s ease;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
}
.news-tab:hover {
  background: #ffffff;
}
.news-tab.active {
  background: rgba(0, 0, 0, 0.8);
  color: #f97316;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
}

/* Cards */
.news-list {
  background: #fff;
}
.news-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  overflow: hidden;
  transition: all 0.3s ease;
}
.news-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.08);
}
.news-card .thumb {
  background: #e5e7eb;
  height: 320px;
}
.news-card .title {
  font-size: 1rem;
  font-weight: 700;
  color: #000;
  padding: 14px 16px 4px;
}
.news-card .meta {
  color: #6b7280;
  font-size: 0.825rem;
  padding: 0 16px 8px;
}
.news-card .excerpt {
  color: #4b5563;
  padding: 0 16px 14px;
  line-height: 1.6;
}
.news-card .btn-read {
  display: inline-block;
  margin: 0 16px 18px;
  background: #000;
  color: #fff;
  padding: 10px 18px;
  border-radius: 9999px;
  font-weight: 600;
  transition: all 0.3s ease;
}
.news-card a:hover .btn-read {
  background: #111827;
}

/* Pagination */
.news-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.75rem;
  margin-top: 2rem;
}
.page-num {
  width: 36px;
  height: 36px;
  border-radius: 6px;
  border: 1px solid #e5e7eb;
  background: #fff;
  cursor: pointer;
  transition: all 0.2s ease;
}
.page-num:hover {
  background: #f3f4f6;
}
.page-num.active {
  background: #000;
  color: #fff;
  border-color: #000;
}
.page-next {
  padding: 8px 14px;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  background: #fff;
  cursor: pointer;
}

/* Animations */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.news-card {
  animation: fadeUp 0.6s ease both;
}

/* Responsive */
@media (max-width: 768px) {
  .news-banner-bg {
    height: 200px;
  }
  .news-banner .tabs {
    margin-top: -40px;
  }
}
@media (max-width: 480px) {
  .news-cta h2 {
    font-size: 1.25rem;
  }
}
