/* News page — clone souce_code_mau.html #page-news */

.hc-page-news .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
  box-sizing: border-box;
}

.hc-page-news .hc-news-page {
  background: var(--hc-bg);
}

/* Search */
.hc-page-news .news-search {
  display: flex;
  gap: 12px;
  max-width: 560px;
  margin: 0 auto 32px;
}

.hc-page-news .news-search input {
  flex: 1;
  padding: 14px 18px;
  border: 1.5px solid var(--hc-border);
  border-radius: 100px;
  font-family: inherit;
  font-size: 0.95rem;
  outline: none;
  background: #fff;
}

.hc-page-news .news-search input:focus {
  border-color: var(--hc-red);
  box-shadow: 0 0 0 3px rgba(229, 57, 53, 0.08);
}

.hc-page-news .news-search button,
.hc-page-news .hc-news-search-btn {
  background: var(--hc-red);
  color: #fff;
  border: none;
  border-radius: 100px;
  padding: 14px 24px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--hc-transition);
  font-family: inherit;
}

.hc-page-news .news-search button:hover {
  background: var(--hc-red-dark);
}

/* Category pills */
.hc-page-news .cat-pills {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 40px;
}

.hc-page-news .cat-pill {
  padding: 8px 18px;
  border-radius: 100px;
  border: 2px solid var(--hc-border);
  font-size: 0.83rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--hc-transition);
  background: #fff;
  font-family: inherit;
}

.hc-page-news .cat-pill.active,
.hc-page-news .cat-pill:hover {
  background: var(--hc-red);
  color: #fff;
  border-color: var(--hc-red);
}

/* Featured */
.hc-page-news .news-featured {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 28px;
  margin-bottom: 48px;
}

.hc-page-news .news-feat-main {
  background: #fff;
  border-radius: var(--hc-radius-lg);
  overflow: hidden;
  border: 1.5px solid var(--hc-border);
  transition: var(--hc-transition);
}

.hc-page-news .news-feat-main:hover {
  transform: translateY(-4px);
  box-shadow: var(--hc-shadow);
}

.hc-page-news .news-feat-img {
  height: 260px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.hc-page-news .news-feat-img i {
  font-size: 5rem;
  color: rgba(255, 255, 255, 0.9);
}

.hc-page-news .news-feat-label {
  position: absolute;
  top: 16px;
  left: 16px;
  background: var(--hc-yellow);
  color: var(--hc-text);
  font-size: 0.72rem;
  font-weight: 800;
  padding: 5px 12px;
  border-radius: 100px;
}

.hc-page-news .news-feat-body {
  padding: 24px;
}

.hc-page-news .news-feat-body h2 {
  font-size: 1.3rem;
  font-weight: 900;
  margin: 0 0 12px;
  line-height: 1.4;
}

.hc-page-news .news-feat-body h2 a {
  color: inherit;
  text-decoration: none;
}

.hc-page-news .news-feat-body > p {
  color: var(--hc-text-muted);
  font-size: 0.9rem;
  line-height: 1.7;
  margin: 0 0 16px;
}

.hc-page-news .news-feat-meta,
.hc-page-news .news-feat-meta-sm {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  color: var(--hc-text-muted);
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.hc-page-news .news-cat {
  background: var(--hc-red-light);
  color: var(--hc-red);
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 100px;
  font-size: 0.72rem;
}

.hc-page-news .read-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--hc-red);
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
}

.hc-page-news .read-more:hover {
  text-decoration: underline;
}

.hc-page-news .news-feat-sub {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.hc-page-news .news-feat-item {
  background: #fff;
  border-radius: var(--hc-radius);
  border: 1.5px solid var(--hc-border);
  overflow: hidden;
  display: flex;
  transition: var(--hc-transition);
}

.hc-page-news .news-feat-item:hover {
  border-color: var(--hc-red);
  box-shadow: var(--hc-shadow-card);
}

.hc-page-news .news-feat-item-img {
  width: 100px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  margin: 0;
}

.hc-page-news .news-feat-item-img i {
  font-size: 1.8rem;
  color: #fff;
}

.hc-page-news .news-feat-item-body {
  padding: 14px;
  flex: 1;
}

.hc-page-news .news-feat-item h4 {
  font-size: 0.88rem;
  font-weight: 800;
  line-height: 1.4;
  margin: 0 0 4px;
}

.hc-page-news .news-feat-item h4 a {
  color: inherit;
  text-decoration: none;
}

/* Layout main + sidebar */
.hc-page-news .news-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 40px;
  align-items: start;
}

.hc-page-news .news-list-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  gap: 16px;
  flex-wrap: wrap;
}

.hc-page-news .news-list-head h3 {
  font-weight: 900;
  font-size: 1.1rem;
  margin: 0;
}

.hc-page-news .news-list-head h3 span {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--hc-text-muted);
}

.hc-page-news .news-sort {
  padding: 8px 14px;
  border: 1.5px solid var(--hc-border);
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.85rem;
  outline: none;
  background: #fff;
}

/* Articles grid */
.hc-page-news .articles-grid {
  display: none;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.hc-page-news .articles-grid.is-active {
  display: grid;
}

.hc-page-news .article-card {
  background: #fff;
  border-radius: var(--hc-radius);
  overflow: hidden;
  border: 1.5px solid var(--hc-border);
  transition: var(--hc-transition);
}

.hc-page-news .article-card.is-hidden {
  display: none !important;
}

.hc-page-news .article-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--hc-shadow-card);
}

.hc-page-news .article-card-link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.hc-page-news .article-img {
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.hc-page-news .article-img i {
  font-size: 2.4rem;
  color: rgba(255, 255, 255, 0.92);
}

.hc-page-news .article-cat {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--hc-red);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 100px;
}

.hc-page-news .article-body {
  padding: 18px;
}

.hc-page-news .article-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  font-size: 0.76rem;
  color: var(--hc-text-muted);
}

.hc-page-news .article-body h3 {
  font-size: 0.95rem;
  font-weight: 800;
  line-height: 1.4;
  margin: 0 0 8px;
}

.hc-page-news .article-body p {
  font-size: 0.83rem;
  color: var(--hc-text-muted);
  line-height: 1.6;
  margin: 0 0 12px;
}

/* Pagination */
.hc-page-news .pagination {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 32px;
  justify-content: center;
}

.hc-page-news .page-num {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.88rem;
  font-weight: 700;
  border: 1.5px solid var(--hc-border);
  background: #fff;
  cursor: pointer;
  transition: var(--hc-transition);
  font-family: inherit;
}

.hc-page-news .page-num:hover:not(:disabled),
.hc-page-news .page-num.active {
  background: var(--hc-red);
  color: #fff;
  border-color: var(--hc-red);
}

.hc-page-news .page-num:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* Sidebar */
.hc-page-news .news-sidebar {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.hc-page-news .sidebar-widget {
  background: #fff;
  border-radius: var(--hc-radius);
  padding: 24px;
  border: 1.5px solid var(--hc-border);
}

.hc-page-news .sidebar-widget h3 {
  font-size: 0.95rem;
  font-weight: 800;
  margin: 0 0 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--hc-red-light);
  display: flex;
  align-items: center;
  gap: 8px;
}

.hc-page-news .sidebar-widget h3 i {
  color: var(--hc-red);
}

.hc-page-news .sidebar-widget-desc {
  font-size: 0.85rem;
  color: var(--hc-text-muted);
  margin: 0 0 14px;
  line-height: 1.6;
}

.hc-page-news .sidebar-search {
  position: relative;
}

.hc-page-news .sidebar-search input {
  width: 100%;
  padding: 12px 44px 12px 14px;
  border: 1.5px solid var(--hc-border);
  border-radius: var(--hc-radius-sm);
  font-family: inherit;
  font-size: 0.88rem;
  outline: none;
  box-sizing: border-box;
}

.hc-page-news .sidebar-search input:focus {
  border-color: var(--hc-red);
}

.hc-page-news .sidebar-search button {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--hc-red);
  font-size: 1rem;
  background: none;
  border: none;
  cursor: pointer;
}

.hc-page-news .cat-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.hc-page-news .cat-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 0.88rem;
  cursor: pointer;
  transition: var(--hc-transition);
}

.hc-page-news .cat-item:hover,
.hc-page-news .cat-item.is-active {
  background: var(--hc-red-light);
  color: var(--hc-red);
}

.hc-page-news .hc-news-empty {
  text-align: center;
  padding: 48px 24px;
  background: #fff;
  border-radius: var(--hc-radius);
  border: 1.5px dashed var(--hc-border);
  margin-top: 24px;
}

.hc-page-news .hc-news-empty[hidden] {
  display: none !important;
}

.hc-page-news .hc-news-empty i {
  font-size: 2.5rem;
  color: var(--hc-text-muted);
  display: block;
  margin-bottom: 12px;
}

.hc-page-news .hc-news-empty p {
  color: var(--hc-text-muted);
  margin: 0 0 16px;
}

.hc-page-news .cat-count {
  font-size: 0.75rem;
  font-weight: 700;
  background: var(--hc-red-light);
  color: var(--hc-red);
  padding: 2px 8px;
  border-radius: 100px;
}

.hc-page-news .popular-news {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.hc-page-news .popular-item {
  display: flex;
  gap: 12px;
  text-decoration: none;
  color: inherit;
  transition: var(--hc-transition);
}

.hc-page-news .popular-item:hover h4 {
  color: var(--hc-red);
}

.hc-page-news .popular-img {
  width: 64px;
  height: 52px;
  border-radius: 8px;
  background: var(--hc-red-light);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
}

.hc-page-news .popular-item h4 {
  font-size: 0.85rem;
  font-weight: 700;
  line-height: 1.4;
  margin: 0 0 4px;
}

.hc-page-news .popular-item span {
  font-size: 0.75rem;
  color: var(--hc-text-muted);
}

.hc-page-news .newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.hc-page-news .newsletter-form input {
  padding: 12px 14px;
  border: 1.5px solid var(--hc-border);
  border-radius: var(--hc-radius-sm);
  font-family: inherit;
  font-size: 0.88rem;
}

.hc-page-news .newsletter-form .btn {
  justify-content: center;
  width: 100%;
}

.hc-page-news .sidebar-widget-cta {
  background: linear-gradient(135deg, var(--hc-red), var(--hc-red-dark));
  border-color: transparent;
  text-align: center;
}

.hc-page-news .sidebar-widget-cta h3 {
  color: #fff;
  border-bottom-color: rgba(255, 255, 255, 0.2);
  justify-content: center;
  font-size: 1rem;
}

.hc-page-news .sidebar-widget-cta p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.82rem;
  margin: 0 0 16px;
  line-height: 1.5;
}

.hc-page-news .sidebar-cta-icon {
  font-size: 2.5rem;
  margin-bottom: 12px;
}

.hc-page-news .sidebar-widget-cta .btn {
  width: 100%;
  justify-content: center;
  font-size: 0.85rem;
}

@media (max-width: 1024px) {
  .hc-page-news .news-layout {
    grid-template-columns: 1fr;
  }

  .hc-page-news .news-featured {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .hc-page-news .articles-grid.is-active {
    grid-template-columns: 1fr;
  }

  .hc-page-news .news-search {
    flex-direction: column;
  }

  .hc-page-news .news-search button {
    width: 100%;
  }
}
