/* Import Google Font Manrope */
@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&display=swap');

/* ===============================
   GLOBAL / NEWS SHARED
================================= */
.side-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 16px;
}

.fit-img,
.hero-thumb img,
.feed-thumb img,
.side-thumb img,
.layout-b .fit-img,
.layout-b .featured-3 .feat3-thumb>img,
.layout-b .featured-3 .feat3-thumb>.fit-img,
.layout-b .news-feed-b .feedb-thumb>img,
.layout-b .news-feed-b .feedb-thumb>.fit-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ===============================
   HERO (BÊN TRÁI LAYOUT A)
================================= */
.hero-thumb {
  position: relative;
  display: block;
  width: 100%;
  height: 448px;
  overflow: hidden;
  border-radius: 6px;
  align-self: stretch;
}

.hero-meta-line {
  margin: 16px 0 4px;
}

.hero-author a {
  font-family: 'Manrope', sans-serif;
  color: #787A7D !important;
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 700;
}

.hero-time {
  font-family: 'Manrope', sans-serif;
  font-size: 12px;
  font-weight: 400;
  color: #97989B;
  margin-left: 6px;
  text-transform: lowercase;
}

.hero-title {
  font-family: 'Manrope', sans-serif;
  font-size: 24px;
  color: #000;
}

.hero-excerpt {
  font-family: 'Manrope', sans-serif;
  font-size: 14px !important;
  font-weight: 400;
  color: #787A7D;
}

/* ===============================
   FEED (LIST BÊN DƯỚI HERO)
================================= */
.feed-thumb {
  position: relative;
  display: block;
  width: 100%;
  height: 200px;
  overflow: hidden;
  border-radius: 6px;
}

/* ===============================
   SIDE LIST (CỘT PHẢI LAYOUT A)
================================= */
.side-thumb {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 6px;
  width: 160px;
  height: 100px;
  flex: 0 0 160px;
}

.side-title {
  font-family: 'Manrope', sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: #000;
  padding-left: 10px;
}

.side-meta-line {
  padding-left: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.side-cat {
  font-family: 'Manrope', sans-serif;
  font-size: 12px;
  font-weight: 700;
}

.side-cat>a {
  font-family: 'Manrope', sans-serif;
  color: #787A7D !important;
  text-transform: uppercase;
}

.side-time {
  font-family: 'Manrope', sans-serif;
  font-size: 12px;
  font-weight: 400;
  color: #97989B;
}

/* ===============================
   LAYOUT B (FEATURED 3 + FEED LIST)
================================= */
.layout-b .featured-3 .feat3-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 18px;
}

.layout-b .featured-3 .feat3-thumb,
.layout-b .news-feed-b .feedb-thumb {
  position: relative;
  display: block;
  width: 100%;
  overflow: hidden;
  border-radius: 6px;
  background: #f5f5f5;
  aspect-ratio: 16/9;
}

@supports not (aspect-ratio: 16 / 9) {

  .layout-b .featured-3 .feat3-thumb::before,
  .layout-b .news-feed-b .feedb-thumb::before {
    content: "";
    display: block;
    padding-top: 56.25%;
  }

  .layout-b .featured-3 .feat3-thumb>img,
  .layout-b .featured-3 .feat3-thumb>.fit-img,
  .layout-b .news-feed-b .feedb-thumb>img,
  .layout-b .news-feed-b .feedb-thumb>.fit-img {
    position: absolute;
    inset: 0;
  }
}

.layout-b .featured-3 .feat3-title {
  font-family: 'Manrope', sans-serif;
  font-size: 16px;
  line-height: 1.35;
  margin: 0;
  color: #000;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.layout-b .meta-line {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #777;
}

.layout-b .meta-line .meta-cat {
  text-transform: uppercase;
  font-size: 11px;
  white-space: nowrap;
}

.layout-b .meta-line .meta-cat a {
  font-family: 'Manrope', sans-serif;
  color: #787A7D;
  text-decoration: none;
  font-size: 12px;
  font-weight: 700;
}

.layout-b .meta-line .meta-time {
  font-family: 'Manrope', sans-serif;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  color: #97989B;
  margin-bottom: 1px;
}

.layout-b .meta-line .meta-dot {
  opacity: .5;
}

.layout-b .news-feed-b .entry-title {
  font-family: 'Manrope', sans-serif;
  font-size: 18px;
  line-height: 1.35;
  margin: 2px 0 6px;
  color: #000;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.layout-b .news-feed-b .entry-summary {
  font-family: 'Manrope', sans-serif;
  color: #555;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Sidebar layout B */
.layout-b .right-cards .rcard {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border: 1px solid rgba(0, 0, 0, .06);
  border-radius: 10px;
  margin-bottom: 10px;
  background: #fff;
}

.layout-b .right-ads-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 10px 0 15px;
}

.layout-b .right-ads-grid img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
}

/* ===============================
   RESPONSIVE
================================= */
@media (max-width: 849px) {

  .layout-b .featured-3 .feat3-thumb,
  .layout-b .news-feed-b .feedb-thumb {
    aspect-ratio: 4/3;
  }
}

@media (max-width: 600px) {
  .hero-thumb {
    height: 320px;
  }

  .feed-thumb {
    height: 180px;
  }

  .side-thumb {
    width: 120px;
    height: 80px;
    flex-basis: 120px;
  }

  .layout-b .news-feed-b .feedb-thumb {
    aspect-ratio: 16/10;
  }
}

/* ===============================
   RIGHT CAT BOX
================================= */
.right-cat-box {
  background: #fff;
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  margin-top: 12px;
}

.right-cat-box .widget-title {
  font-family: 'Manrope', sans-serif;
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 16px;
}

.cat-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.cat-list li {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #f7f7f7;
  border-radius: 8px;
  padding: 10px 14px;
  margin-bottom: 10px;
  font-size: 15px;
  transition: all .2s ease;
}

.cat-list li:hover {
  background: #eee;
}

.cat-list li a {
  font-family: 'Manrope', sans-serif;
  text-decoration: none;
  color: #000;
  font-weight: 600;
  font-size: 16px;
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cat-list li a+span,
.cat-list li a+.count {
  font-family: 'Manrope', sans-serif;
  margin-left: auto;
  background: #FFCECE;
  color: #660404;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: 6px;
  min-width: 28px;
  font-size: 16px;
  text-align: center;
}

/* Biến thể trong right-cat-box */
.right-cat-box .cat-list li {
  justify-content: space-between;
  gap: 10px;
  padding: 8px 6px;
  color: #6B6C70;
  transition: background .15s ease;
  background: #f7f7f7;
}

.right-cat-box .cat-list li:hover {
  background: #f8f8f8;
}

.widget-title {
  font-family: 'Manrope', sans-serif;
  font-weight: 700;
  font-size: 24px;
}

.right-cat-box .widget-title {
  margin: 0 0 10px;
  font-weight: 700;
  font-size: 16px;
}

.right-cat-box .cat-list .current-cat>a,
.right-cat-box .cat-list .current-cat-parent>a {
  color: #a31212;
  font-weight: 700;
}

.right-cat-box .cat-list .current-cat {
  background: #fff3f4;
}

.right-cat-box .cat-list .children {
  list-style: none;
  margin: 6px 0 0;
  padding-left: 14px;
  border-left: 2px solid #eee;
}

.right-cat-box .cat-list .children li {
  background: transparent;
  margin: 6px 0 0;
  padding: 6px 10px;
  border-radius: 8px;
}

.right-cat-box .cat-list .children li>a {
  font-family: 'Manrope', sans-serif;
  font-weight: 500;
  font-size: 14px;
}

.right-cat-box .cat-list .children li>a::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 8px;
  background: #d9d9d9;
  border-radius: 999px;
  vertical-align: middle;
}

.right-cat-box .cat-list li>a+span,
.right-cat-box .cat-list li>a+.count {
  background: #FFCECE;
  color: #660404;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: 6px;
  margin-left: 12px;
  min-width: 28px;
  font-size: 16px;
  text-align: center;
}

/* ===============================
   BÀI VIẾT – TÓM TẮT
================================= */
.entry-summary p {
  font-family: 'Manrope', sans-serif;
  font-size: 14px;
}

/* ===============================
   PAGINATION
================================= */
.pagination-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 0;
}

.pagination-container .page-numbers {
  font-family: 'Manrope', sans-serif;
  display: flex;
  height: 36px;
  min-width: 36px;
  padding: 0 12px;
  justify-content: center;
  align-items: center;
  border-radius: 8px;
  background: #fff;
  color: #111827;
  font-size: 16px;
  transition: all .15s ease;
}

.pagination-container .page-numbers:hover {
  background: #f3f4f6;
}

.pagination-container .page-numbers.current {
  background: #a31212;
  color: #fff;
  border-color: transparent;
}

.pagination-container .page-numbers.dots {
  background: #fff;
  color: #6b7280;
  border: 1px solid #e5e7eb;
}

/* Mũi tên hai bên */
.pagination-container .page-numbers.prev,
.pagination-container .page-numbers.next {
  background: transparent;
  border: none;
  font-size: 22px;
  min-width: auto;
  height: auto;
  padding: 0 6px;
  color: #374151;
}

.pagination-container .page-numbers.prev:hover,
.pagination-container .page-numbers.next:hover {
  color: #111827;
}

/* ===============================
   RESPONSIVE – WIDGET
================================= */
@media (max-width: 849px) {
  .right-cat-box {
    padding: 14px;
  }

  .right-cat-box .cat-list li {
    padding: 8px 10px;
  }
}
