/*--------------------------------------------------------------
# News Hero Section
--------------------------------------------------------------*/
.news-hero .featured-post {
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 2rem;
}

.news-hero .featured-post img {
  width: 100%;
  height: 500px;
  object-fit: cover;
}

.news-hero .featured-post .post-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.8) 100%);
  padding: 2rem;
  color: var(--contrast-color);
}

.news-hero .featured-post .post-content {
  max-width: 800px;
}

.news-hero .featured-post .post-excerpt {
  min-height: 70px;
  max-height: 70px;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

.news-hero .featured-post .post-title {
  font-size: 2rem;
  margin: 1rem 0;
}

.news-hero .featured-post .post-title a {
  color: var(--contrast-color);
}

.news-hero .featured-post .post-title a:hover {
  color: color-mix(in srgb, var(--contrast-color), transparent 20%);
}

.news-hero .featured-post .post-excerpt {
  font-size: 1rem;
  margin-bottom: 1rem;
  opacity: 0.9;
}

.news-hero .secondary-post {
  background-color: var(--surface-color);
  border-radius: 8px;
  overflow: hidden;
  height: 100%;
}

.news-hero .secondary-post .post-img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  overflow: hidden;
}

.news-hero .secondary-post .post-img img {
  min-width: 100%;
  min-height: 100%;
}

.news-hero .secondary-post .post-content {
  padding: 1.5rem;
}

.news-hero .secondary-post .post-excerpt {
  min-height: 76px;
  max-height: 76px;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

.news-hero .secondary-post .post-title {
  font-size: 1.25rem;
  margin: 0.5rem 0;
  line-height: 1.4;
  min-height: 56px;
  max-height: 56px;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.news-hero .secondary-post .post-title a {
  color: var(--heading-color);
}

.news-hero .secondary-post .post-title a:hover {
  color: var(--accent-color);
}

.news-hero .news-tabs {
  background-color: var(--surface-color);
  border-radius: 8px;
  overflow: hidden;
}

.news-hero .news-tabs .tab-content {
  padding: 1.5rem;
}

.news-hero .tab-post {
  padding: 1rem 0;
  border-bottom: 1px solid color-mix(in srgb, var(--default-color), transparent 90%);
}

.news-hero .tab-post:first-child {
  padding-top: 0;
}

.news-hero .tab-post:last-child {
  padding-bottom: 0;
  border-bottom: none;
}

.news-hero .tab-post img {
  border-radius: 8px;
  width: 100%;
  height: 100px;
  object-fit: cover;
}

.news-hero .category {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 500;
  background-color: var(--accent-color);
  color: var(--contrast-color);
  margin-right: 0.5rem;
}
/* 
.news-hero .date {
  font-size: 0.875rem;
  color: color-mix(in srgb, var(--default-color), transparent 30%);
}

.news-hero .post-author {
  font-size: 0.8125rem;
  margin-top: 0.5rem;
}

.news-hero .post-author span {
  color: color-mix(in srgb, var(--default-color), transparent 30%);
}

.news-hero .post-author a {
  color: var(--accent-color);
  font-weight: 500;
}

.news-hero .post-author a:hover {
  color: color-mix(in srgb, var(--accent-color), transparent 25%);
}
 */
@media (max-width: 991.98px) {
  .news-hero .featured-post img {
    height: 400px;
  }

  .news-hero .featured-post .post-title {
    font-size: 1.75rem;
  }

  .news-hero .secondary-post .post-image img {
    height: 220px;
  }

  .news-hero .news-tabs {
    margin-top: 2rem;
  }
}

@media (max-width: 767.98px) {
  .news-hero .featured-post img {
    height: 500px;
  }

  .news-hero .featured-post .post-title {
    font-size: 1.5rem;
  }

  .news-hero .featured-post .post-overlay {
    padding: 1.5rem;
  }

  .news-hero .tab-post .post-title {
    font-size: 0.875rem;
  }

  .news-hero .tab-post img {
    height: 80px;
  }
}

/*--------------------------------------------------------------
# News Posts Section
--------------------------------------------------------------*/
.news-posts article {
  background: var(--surface-color);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  padding: 30px;
  height: 100%;
  border-radius: 10px;
  overflow: hidden;
}

/* .news-posts .post-img {
  max-height: 240px;
  margin: -30px -30px 15px -30px;
  overflow: hidden;
} */

.news-posts .post-img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  overflow: hidden;
}

.news-posts .post-img img {
  min-width: 100%;
  min-height: 100%;
}

.news-posts .post-category {
  font-size: 16px;
  color: color-mix(in srgb, var(--default-color), transparent 50%);
  margin-bottom: 10px;
}

.news-posts .title {
  font-size: 20px;
  font-weight: 700;
  padding: 0;
  margin: 0 0 20px 0;
}

.news-posts .title a {
  color: var(--heading-color);
  transition: 0.3s;
}

.news-posts .title a:hover {
  color: var(--accent-color);
}

/* 
.news-posts .post-author-img {
  width: 50px;
  border-radius: 50%;
  margin-right: 15px;
}

.news-posts .post-author {
  font-weight: 600;
  margin-bottom: 5px;
}

.news-posts .post-date {
  font-size: 14px;
  color: color-mix(in srgb, var(--default-color), transparent 50%);
  margin-bottom: 0;
} */

/*--------------------------------------------------------------
# Pagination 2 Section
--------------------------------------------------------------*/
/* .pagination-2 {
  padding-top: 0;
}

.pagination-2 nav {
  position: relative;
}

.pagination-2 ul {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.pagination-2 li {
  margin: 0;
  transition: all 0.3s ease-in-out;
}

.pagination-2 li.ellipsis {
  color: color-mix(in srgb, var(--default-color), transparent 40%);
  padding: 8px 16px;
  user-select: none;
}

.pagination-2 li a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 8px 16px;
  color: var(--default-color);
  background-color: var(--surface-color);
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.3s ease-in-out;
  box-shadow: 0 2px 4px color-mix(in srgb, var(--default-color), transparent 90%);
}

.pagination-2 li a.active {
  background-color: var(--accent-color);
  color: var(--contrast-color);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px color-mix(in srgb, var(--accent-color), transparent 70%);
}

.pagination-2 li a:hover:not(.active) {
  background-color: color-mix(in srgb, var(--accent-color), transparent 90%);
  transform: translateY(-1px);
  box-shadow: 0 3px 6px color-mix(in srgb, var(--default-color), transparent 85%);
}

.pagination-2 li a i {
  font-size: 14px;
}

.pagination-2 li a span {
  margin: 0 4px;
}

@media (max-width: 575px) {
  .pagination-2 ul {
    gap: 4px;
  }

  .pagination-2 li a {
    min-width: 36px;
    height: 36px;
    padding: 8px 12px;
    font-size: 14px;
  }
} */

.news-hero .detail-post {
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 2rem;
}

.news-hero .detail-post img {
  width: 100%;
  height: 500px;
  object-fit: cover;
}

.news-hero .detail-post .post-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.8) 100%);
  padding: 2rem;
  color: var(--contrast-color);
}

.news-hero .post-detail .post-content img{
  width:100% !important;
  max-height: 3000px;
  object-fit: cover;
  object-position: center;
  display: block;
  border-radius: 10px;
}

.news-hero .detail-post .post-title {
  font-size: 2rem;
  margin: 1rem 0;
}

.news-hero .detail-post .post-title a {
  color: var(--contrast-color);
}

.news-hero .detail-post .post-title a:hover {
  color: color-mix(in srgb, var(--contrast-color), transparent 20%);
}