/* =============================================
   CATEGORY / ARCHIVE PAGE
   ============================================= */

/* ---------- Page Wrapper ---------- */
#category-page {
  background: #231000;
  padding-bottom: 24px;
}
#category-page .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0;
}

/* ---------- Breadcrumb: styled globally ---------- */

/* ---------- Tabs: reuses .itabs-nav / .itabs-tab from gioi-thieu.css ---------- */
#category-page .itabs-nav {
  padding: 0;
  margin-bottom: 24px;
}


/* ---------- Featured Section ---------- */
.cat-featured {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 32px;
  align-items: start;
}

/* Hero (left) */
.cat-hero {
  display: flex;
  flex-direction: column;
}
.cat-hero-link {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.cat-hero-thumb {
  position: relative;
  width: 100%;
  height: 400px;
  overflow: hidden;
  border-radius: 12px;
  background: #2a1200;
}
.cat-hero-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.cat-hero-title {
  font-family: 'Manrope', sans-serif;
  font-size: 24px;
  font-style: normal;
  font-weight: 700;
  color: #FFFFFF;
  margin: 14px 0 6px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.cat-hero-date {
  font-family: 'Manrope', sans-serif;
  font-size: 14px;
  font-style: normal;
  font-weight: 400;
  color: #E6DACD;
  margin-bottom: 8px;
}
.cat-hero-date svg {
  vertical-align: -2px;
  margin-right: 4px;
}
.cat-hero-excerpt {
  font-family: 'Manrope', sans-serif;
  font-size: 14px;
  color: #E6DACD;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0;
}

/* Sidebar list (right) */
.cat-sidebar-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.cat-side-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 0;
  text-decoration: none;
  color: inherit;
  transition: background .15s;
}
.cat-side-item:first-child {
  padding-top: 0;
}
.cat-side-item:last-child {
  border-bottom: none;
}
.cat-side-item:hover .cat-side-title {
  color: #FFB800;
}
.cat-side-thumb {
  flex: 0 0 200px;
  width: 200px;
  height: 130px;
  border-radius: 8px;
  overflow: hidden;
  background: #2a1200;
}
.cat-side-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.cat-side-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}
.cat-side-title {
  font-family: 'Manrope', sans-serif;
  font-size: 18px;
  font-style: normal;
  font-weight: 700;
  color: #FFFFFF;
  line-height: 1.4;
  margin: 0 0 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color .2s;
}
.cat-side-date {
  font-family: 'Manrope', sans-serif;
  font-size: 12px;
  color: #E6DACD;
}
.cat-side-date svg {
  vertical-align: -2px;
  margin-right: 4px;
}
.cat-side-excerpt {
  font-family: 'Manrope', sans-serif;
  font-size: 13px;
  color: #E6DACD;
  line-height: 1.5;
  margin-top: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ---------- Post Grid ---------- */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 32px;
}
.cat-card {
  background: transparent;
  overflow: hidden;
  text-decoration: none;
  display: flex;
  flex-direction: column;
}
.cat-card-thumb {
  width: 100%;
  height: 209px;
  overflow: hidden;
  border-radius: 8px;
  background: #2a1200;
}
.cat-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.cat-card-body {
  padding: 10px 0 0;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.cat-card-title {
  font-family: 'Manrope', sans-serif;
  font-size: 16px;
  font-style: normal;
  font-weight: 600;
  color: #FFFFFF;
  margin: 0;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.cat-card-date {
  font-family: 'Manrope', sans-serif;
  font-size: 14px;
  font-style: normal;
  font-weight: 400;
  color: #E6DACD;
}
.cat-card-date svg {
  vertical-align: -2px;
  margin-right: 4px;
}
.cat-card-excerpt {
  font-family: 'Manrope', sans-serif;
  font-size: 14px;
  font-style: normal;
  font-weight: 400;
  color: #E6DACD;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0;
}

/* ---------- Pagination ---------- */
.cat-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0;
}
.cat-pagination .page-numbers {
  font-family: 'Manrope', sans-serif;
  display: flex;
  height: 38px;
  min-width: 38px;
  padding: 0 12px;
  justify-content: center;
  align-items: center;
  border-radius: 8px;
  background: #381A00;
  color: #E6DACD;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  transition: all .15s ease;
  border: 1px solid transparent;
}
.cat-pagination .page-numbers:hover {
  background: #4a2800;
  border-color: rgba(255, 184, 0, 0.2);
}
.cat-pagination .page-numbers.current {
  background: #FFB800;
  color: #1a0a00;
  font-weight: 700;
  border-color: transparent;
}
.cat-pagination .page-numbers.dots {
  background: #381A00;
  color: #97989B;
  border: 1px solid rgba(255, 184, 0, 0.1);
}
.cat-pagination .page-numbers.prev,
.cat-pagination .page-numbers.next {
  background: transparent;
  border: none;
  font-size: 22px;
  min-width: auto;
  height: auto;
  padding: 0 6px;
  color: #97989B;
}
.cat-pagination .page-numbers.prev:hover,
.cat-pagination .page-numbers.next:hover {
  color: #FFB800;
}

/* ---------- Responsive ---------- */

/* Tablet */
@media (max-width: 992px) {
  .cat-featured {
    grid-template-columns: 1fr;
  }
  .cat-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Mobile */
@media (max-width: 600px) {
  #category-page {
    padding-bottom: 32px;
  }
  #category-page .container {
    padding: 0 16px;
  }

  /* Tabs: horizontal scroll */
  #category-page .itabs-nav {
    gap: 8px;
    margin-bottom: 16px;
  }

  /* Featured: single column */
  .cat-featured {
    grid-template-columns: 1fr;
    gap: 16px;
    margin-bottom: 20px;
  }

  /* Hero image */
  .cat-hero-thumb {
    height: 220px;
    border-radius: 8px;
  }
  .cat-hero-title {
    font-size: 18px;
    margin: 10px 0 4px;
  }
  .cat-hero-date {
    font-size: 13px;
  }
  .cat-hero-excerpt {
    font-size: 13px;
  }

  /* Sidebar items: keep horizontal, smaller thumb */
  .cat-sidebar-list {
    gap: 14px;
  }
  .cat-side-item {
    flex-direction: row;
    gap: 12px;
  }
  .cat-side-thumb {
    flex: 0 0 130px;
    width: 130px;
    height: 90px;
    border-radius: 8px;
  }
  .cat-side-title {
    font-size: 15px;
    margin: 0 0 4px;
  }
  .cat-side-date {
    font-size: 13px;
  }
  .cat-side-excerpt {
    font-size: 13px;
  }

  /* Grid: single column, vertical cards */
  .cat-grid {
    grid-template-columns: 1fr;
    gap: 16px;
    margin-bottom: 24px;
  }
  .cat-card-thumb {
    height: 200px;
  }
  .cat-card-body {
    padding: 8px 0 0;
  }
  .cat-card-title {
    font-size: 16px;
    font-style: normal;
    font-weight: 600;
  }
  .cat-card-date {
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    margin-top: 4px;
  }
  .cat-card-excerpt {
    font-size: 13px;
  }

  /* Pagination */
  .cat-pagination {
    gap: 6px;
    padding: 12px 0;
  }
  .cat-pagination .page-numbers {
    height: 34px;
    min-width: 34px;
    font-size: 13px;
  }
}
