@charset "UTF-8";
.hero-background {
  position: relative;
}
.hero-background img {
  width: 100%;
  height: auto;
  -o-object-fit: cover;
     object-fit: cover;
}
.hero-background .hero-content h1 {
  font-size: 2.5rem;
  font-weight: 300;
  margin-bottom: 10px;
  opacity: 0.9;
}
.hero-background .hero-content h2 {
  font-size: 1.8rem;
  font-weight: 600;
  margin: 0;
}
.hero-background .banner-title {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: #fff;
}

.categories-container {
  margin: 82px auto 128px;
}
.categories-container .page-title {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 48px;
  color: #2d2d2d;
  text-align: center;
}

.categories-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-bottom: 60px;
}

.category-card {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
}
.category-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}
.category-card:hover .category-card__image img {
  transform: scale(1.1);
}
.category-card:hover .category-card__overlay {
  opacity: 0.3;
}
.category-card:hover .category-card__arrow {
  color: #007bff;
}
.category-card:hover .category-card__arrow i {
  transform: translateX(5px);
}
.category-card__link {
  text-decoration: none;
  color: inherit;
  display: block;
}
.category-card__image {
  position: relative;
  width: 100%;
  height: 240px;
  overflow: hidden;
}
.category-card__image img {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
  transition: transform 0.3s ease;
}
.category-card__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.4) 100%);
  opacity: 0.5;
  transition: opacity 0.3s ease;
}
.category-card__content {
  padding: 24px;
}
.category-card__title {
  font-size: 22px;
  font-weight: 700;
  color: #292929;
  margin-bottom: 12px;
  line-height: 1.4;
}
.category-card__description {
  font-size: 15px;
  color: #636363;
  line-height: 1.6;
  margin-bottom: 16px;
}
.category-card__count {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: #7b7a7a;
  margin-bottom: 16px;
}
.category-card__count i {
  color: #007bff;
}
.category-card__arrow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 15px;
  font-weight: 600;
  color: #363637;
  transition: all 0.3s ease;
}
.category-card__arrow i {
  transition: transform 0.3s ease;
}

.no-categories {
  text-align: center;
  padding: 60px 20px;
  color: #666;
  font-size: 16px;
}

.category-detail-container {
  margin: 82px auto 128px;
}

.category-detail-wrapper {
  display: flex;
  gap: 40px;
}

.category-detail-main {
  flex: 1;
  width: 65%;
}

.category-detail-header {
  margin-bottom: 48px;
}
.category-detail-header .page-title {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 16px;
  color: #2d2d2d;
}
.category-detail-header .category-description {
  font-size: 16px;
  color: #636363;
  line-height: 1.8;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-bottom: 60px;
}

.news-card {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  transition: all 0.3s ease;
}
.news-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}
.news-card:hover .news-card__image img {
  transform: scale(1.05);
}
.news-card__link {
  text-decoration: none;
  color: inherit;
  display: block;
}
.news-card__image {
  width: 100%;
  height: 220px;
  overflow: hidden;
}
.news-card__image img {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
  transition: transform 0.3s ease;
}
.news-card__content {
  padding: 20px;
}
.news-card__title {
  font-size: 18px;
  font-weight: 700;
  color: #292929;
  line-height: 1.5;
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  text-overflow: ellipsis;
  height: 54px;
}
.news-card__meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: #636363;
  margin-bottom: 12px;
}
.news-card__author {
  font-style: italic;
}
.news-card__date::before {
  content: "•";
  margin-right: 8px;
}
.news-card__excerpt {
  font-size: 14px;
  color: #6f6f6f;
  line-height: 1.7;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
  text-overflow: ellipsis;
}

.no-news {
  text-align: center;
  padding: 60px 20px;
  color: #666;
  font-size: 16px;
}

.pagination-wrapper {
  display: flex;
  justify-content: center;
  margin-top: 40px;
}

.category-detail-sidebar {
  width: 35%;
}
.category-detail-sidebar .sidebar-title {
  font-size: 20px;
  font-weight: 700;
  color: #2d2d2d;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 3px solid #007bff;
}

.sidebar-search {
  margin-bottom: 40px;
}
.sidebar-search .search-box {
  display: flex;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  overflow: hidden;
}
.sidebar-search .search-input {
  flex: 1;
  padding: 12px 16px;
  border: none;
  font-size: 14px;
  outline: none;
}
.sidebar-search .search-input::-moz-placeholder {
  color: #999;
}
.sidebar-search .search-input::placeholder {
  color: #999;
}
.sidebar-search .search-btn {
  padding: 0 20px;
  background: #007bff;
  border: none;
  color: #fff;
  cursor: pointer;
  transition: all 0.3s ease;
}
.sidebar-search .search-btn:hover {
  background: rgb(0, 98.4, 204);
}
.sidebar-search .search-btn i {
  font-size: 16px;
}

.sidebar-categories {
  margin-bottom: 40px;
}
.sidebar-categories .categories-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.sidebar-categories .categories-list__item {
  border-bottom: 1px solid #e0e0e0;
}
.sidebar-categories .categories-list__item:last-child {
  border-bottom: none;
}
.sidebar-categories .categories-list__item.active a {
  color: #007bff;
  font-weight: 600;
}
.sidebar-categories .categories-list__item a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 0;
  text-decoration: none;
  color: #363637;
  font-size: 15px;
  transition: all 0.3s ease;
}
.sidebar-categories .categories-list__item a:hover {
  color: #007bff;
  padding-left: 8px;
}
.sidebar-categories .categories-list__item a i {
  color: #007bff;
  font-size: 14px;
}
.sidebar-categories .categories-list__item a .count {
  margin-left: auto;
  color: #999;
  font-size: 13px;
}

.sidebar-latest .latest-news-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.sidebar-latest .latest-news-item {
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid #e0e0e0;
}
.sidebar-latest .latest-news-item:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}
.sidebar-latest .latest-news-item a {
  display: flex;
  gap: 12px;
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
}
.sidebar-latest .latest-news-item a:hover .latest-news-title {
  color: #007bff;
}
.sidebar-latest .latest-news-item a:hover .latest-news-image img {
  transform: scale(1.05);
}
.sidebar-latest .latest-news-image {
  width: 80px;
  height: 80px;
  flex-shrink: 0;
  border-radius: 4px;
  overflow: hidden;
}
.sidebar-latest .latest-news-image img {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
  transition: transform 0.3s ease;
}
.sidebar-latest .latest-news-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.sidebar-latest .latest-news-title {
  font-size: 14px;
  font-weight: 600;
  color: #292929;
  line-height: 1.5;
  margin-bottom: 8px;
  transition: all 0.3s ease;
}
.sidebar-latest .latest-news-date {
  font-size: 12px;
  color: #999;
}

@media (max-width: 1024px) {
  .categories-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
  .category-detail-wrapper {
    flex-direction: column;
  }
  .category-detail-main,
  .category-detail-sidebar {
    width: 100%;
  }
  .news-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 768px) {
  .hero-background img {
    height: 135px;
  }
  .categories-container,
  .category-detail-container {
    margin: 40px auto 60px;
    padding: 0 15px;
  }
  .categories-container .page-title,
  .category-detail-container .page-title {
    font-size: 24px;
    margin-bottom: 32px;
  }
  .categories-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .category-card__image {
    height: 200px;
  }
  .category-card__content {
    padding: 20px;
  }
  .category-card__title {
    font-size: 20px;
  }
  .category-detail-header {
    margin-bottom: 32px;
  }
  .category-detail-header .page-title {
    font-size: 26px;
  }
  .news-grid {
    gap: 20px;
    margin-bottom: 40px;
  }
  .news-card__image {
    height: 180px;
  }
  .news-card__content {
    padding: 16px;
  }
  .news-card__title {
    font-size: 16px;
    height: auto;
    -webkit-line-clamp: 3;
  }
  .category-detail-sidebar .sidebar-title {
    font-size: 18px;
  }
}
