/* ===== NEWS BANNER ===== */
.news-banner {
  position: relative;
  height: 420px;
  overflow: hidden;
}
.news-banner-slides { height: 100%; }
.news-banner-slide {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: 0; transition: opacity 0.8s ease;
  display: flex; align-items: center;
}
.news-banner-slide.active { opacity: 1; z-index: 1; }
.news-banner-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(0,0,0,0.68) 0%, rgba(0,0,0,0.25) 65%, transparent 100%);
}
.news-banner-content {
  position: relative; z-index: 2;
  max-width: 620px; color: #fff;
  padding-left: 20px;
}
.news-banner-tag {
  display: inline-block;
  background: var(--pink); color: #fff;
  font-size: 12px; font-weight: 700;
  padding: 4px 14px; border-radius: 20px;
  text-transform: uppercase; letter-spacing: 1px;
  margin-bottom: 14px;
}
.news-banner-content h2 {
  font-size: 34px; font-weight: 800;
  line-height: 1.25; margin-bottom: 14px;
}
.news-banner-content p {
  font-size: 15px; opacity: 0.88;
  margin-bottom: 24px; line-height: 1.6;
}
.news-banner-content .btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
}
.news-banner-prev, .news-banner-next {
  position: absolute; top: 50%; transform: translateY(-50%);
  z-index: 10; background: rgba(255,255,255,0.18);
  border: 2px solid rgba(255,255,255,0.45);
  color: #fff; width: 42px; height: 42px;
  border-radius: 50%; cursor: pointer; font-size: 15px;
  transition: all 0.2s; backdrop-filter: blur(4px);
}
.news-banner-prev { left: 18px; }
.news-banner-next { right: 18px; }
.news-banner-prev:hover, .news-banner-next:hover { background: var(--pink); border-color: var(--pink); }
.news-banner-dots {
  position: absolute; bottom: 16px; left: 50%; transform: translateX(-50%);
  z-index: 10; display: flex; gap: 8px;
}

/* ===== BREADCRUMB ===== */
.breadcrumb-bar {
  background: #f5f5f5;
  border-bottom: 1px solid var(--border);
  padding: 10px 0;
}
.breadcrumb {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; color: var(--text-light);
}
.breadcrumb a { color: var(--pink); transition: opacity 0.2s; }
.breadcrumb a:hover { opacity: 0.75; }
.breadcrumb i.fa-chevron-right { font-size: 10px; }

/* ===== NEWS PAGE LAYOUT ===== */
.news-page { padding: 40px 0 60px; background: #f9f9f9; }
.news-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 32px;
  align-items: start;
}

/* ===== FILTER TABS ===== */
.news-filter-tabs {
  display: flex; gap: 8px; flex-wrap: wrap;
  margin-bottom: 28px;
}
.news-tab {
  padding: 8px 20px; border-radius: 24px;
  border: 1.5px solid var(--border);
  background: #fff; cursor: pointer;
  font-size: 13px; font-weight: 600;
  color: var(--text-light); transition: all 0.2s;
}
.news-tab.active, .news-tab:hover {
  background: var(--pink); color: #fff; border-color: var(--pink);
}

/* ===== FEATURED POST ===== */
.news-featured {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 0; background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  margin-bottom: 28px;
}
.news-featured-img {
  position: relative; display: block;
  aspect-ratio: 4/3; overflow: hidden;
}
.news-featured-img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.4s;
}
.news-featured:hover .news-featured-img img { transform: scale(1.05); }
.news-featured-body {
  padding: 28px 28px;
  display: flex; flex-direction: column; justify-content: center;
}
.news-featured-body h2 {
  font-size: 20px; font-weight: 800;
  line-height: 1.4; margin: 10px 0 12px;
}
.news-featured-body h2 a { color: var(--text); transition: color 0.2s; }
.news-featured-body h2 a:hover { color: var(--pink); }
.news-featured-body p {
  font-size: 14px; color: var(--text-light);
  line-height: 1.7; margin-bottom: 18px;
  display: -webkit-box; -webkit-line-clamp: 4;
  -webkit-box-orient: vertical; overflow: hidden;
}

/* ===== NEWS GRID ===== */
.news-grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 22px; margin-bottom: 36px;
}
.news-card {
  background: #fff; border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow);
  transition: transform 0.3s, box-shadow 0.3s;
}
.news-card:hover { transform: translateY(-5px); box-shadow: 0 12px 30px rgba(0,0,0,0.1); }
.news-card-img {
  position: relative; display: block;
  aspect-ratio: 16/9; overflow: hidden;
}
.news-card-img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.4s;
}
.news-card:hover .news-card-img img { transform: scale(1.06); }
.news-card-body { padding: 18px 20px; }
.news-card-body h3 {
  font-size: 15px; font-weight: 700;
  line-height: 1.45; margin: 8px 0 10px;
  display: -webkit-box; -webkit-line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden;
}
.news-card-body h3 a { color: var(--text); transition: color 0.2s; }
.news-card-body h3 a:hover { color: var(--pink); }
.news-card-body p {
  font-size: 13px; color: var(--text-light);
  line-height: 1.65; margin-bottom: 14px;
  display: -webkit-box; -webkit-line-clamp: 3;
  -webkit-box-orient: vertical; overflow: hidden;
}

/* Category badges */
.news-cat-badge {
  position: absolute; top: 12px; left: 12px;
  background: var(--pink); color: #fff;
  font-size: 11px; font-weight: 700;
  padding: 3px 10px; border-radius: 12px;
  z-index: 2;
}
.news-cat-badge.badge-sale { background: #f44336; }
.news-cat-badge.badge-news { background: #1565c0; }

/* Meta info */
.news-meta {
  display: flex; gap: 14px; flex-wrap: wrap;
  font-size: 12px; color: var(--text-light);
}
.news-meta span { display: flex; align-items: center; gap: 5px; }
.news-meta i { color: var(--pink); font-size: 11px; }

/* Read more link */
.news-read-more {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 700; color: var(--pink);
  transition: gap 0.2s;
}
.news-read-more:hover { gap: 10px; }

/* ===== PAGINATION ===== */
.pagination {
  display: flex; gap: 8px; justify-content: center;
  margin-top: 8px;
}
.page-item {
  width: 38px; height: 38px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  background: #fff; border: 1.5px solid var(--border);
  font-size: 14px; font-weight: 600; color: var(--text-light);
  transition: all 0.2s; cursor: pointer;
}
.page-item:hover, .page-item.active {
  background: var(--pink); color: #fff; border-color: var(--pink);
}
.page-next { font-size: 12px; }

/* ===== SIDEBAR ===== */
.news-sidebar { display: flex; flex-direction: column; gap: 24px; }
.sidebar-widget {
  background: #fff; border-radius: var(--radius);
  padding: 22px; box-shadow: var(--shadow);
}
.widget-title {
  font-size: 16px; font-weight: 800; color: var(--text);
  padding-bottom: 12px; margin-bottom: 16px;
  border-bottom: 2px solid var(--pink);
  position: relative;
}

/* Sidebar search */
.sidebar-search {
  display: flex; border: 1.5px solid var(--border);
  border-radius: 8px; overflow: hidden;
}
.sidebar-search input {
  flex: 1; border: none; outline: none;
  padding: 9px 14px; font-size: 13px;
}
.sidebar-search button {
  background: var(--pink); border: none; color: #fff;
  padding: 9px 14px; cursor: pointer; font-size: 13px;
}

/* Sidebar categories */
.sidebar-cats { display: flex; flex-direction: column; gap: 4px; }
.sidebar-cats li a {
  display: flex; align-items: center; justify-content: space-between;
  padding: 9px 12px; border-radius: 8px;
  font-size: 14px; color: var(--text);
  transition: all 0.2s;
}
.sidebar-cats li a:hover { background: var(--pink-light); color: var(--pink); }
.sidebar-cats li a i { color: var(--pink); margin-right: 8px; font-size: 13px; }
.sidebar-cats li a span {
  background: var(--pink-light); color: var(--pink);
  font-size: 11px; font-weight: 700;
  padding: 2px 8px; border-radius: 10px;
}

/* Recent posts */
.recent-posts { display: flex; flex-direction: column; gap: 14px; }
.recent-posts li { display: flex; gap: 12px; align-items: flex-start; }
.recent-post-img {
  flex-shrink: 0; width: 68px; height: 56px;
  border-radius: 8px; overflow: hidden; display: block;
}
.recent-post-img img { width: 100%; height: 100%; object-fit: cover; }
.recent-posts li > div { flex: 1; }
.recent-post-title {
  display: block; font-size: 13px; font-weight: 600;
  color: var(--text); line-height: 1.4; margin-bottom: 5px;
  display: -webkit-box; -webkit-line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden;
  transition: color 0.2s;
}
.recent-post-title:hover { color: var(--pink); }
.recent-posts li > div span {
  font-size: 11px; color: var(--text-light);
  display: flex; align-items: center; gap: 5px;
}
.recent-posts li > div span i { color: var(--pink); }

/* Tag cloud */
.tag-cloud { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-cloud a {
  padding: 5px 14px; border-radius: 20px;
  background: var(--pink-light); color: var(--pink);
  font-size: 12px; font-weight: 600;
  transition: all 0.2s;
}
.tag-cloud a:hover { background: var(--pink); color: #fff; }

/* Sidebar promo */
.sidebar-promo { padding: 0; overflow: hidden; }
.sidebar-promo img { width: 100%; height: 160px; object-fit: cover; }
.sidebar-promo-body { padding: 18px; }
.sidebar-promo-body h4 { font-size: 16px; font-weight: 800; margin-bottom: 6px; }
.sidebar-promo-body p { font-size: 13px; color: var(--text-light); margin-bottom: 14px; }
.sidebar-promo-body .btn-primary { width: 100%; text-align: center; display: block; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .news-layout { grid-template-columns: 1fr 280px; }
}
@media (max-width: 768px) {
  .news-banner { height: 300px; }
  .news-banner-content h2 { font-size: 22px; }
  .news-layout { grid-template-columns: 1fr; }
  .news-sidebar { order: -1; }
  .news-featured { grid-template-columns: 1fr; }
  .news-featured-img { aspect-ratio: 16/9; }
  .news-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .news-banner { height: 240px; }
  .news-banner-content h2 { font-size: 18px; }
  .news-banner-content p { display: none; }
  .news-grid { grid-template-columns: 1fr; }
}
