/* ============================================================
   DỰ ÁN ARCHIVE — CHILD THEME FLATSOME
   Thêm vào: /wp-content/themes/flatsome-child/style.css
   HOẶC enqueue riêng qua functions.php
   ============================================================ */

/* ---------- Breadcrumbs ---------- */
:root {
  --mhp-primary:    #1a3a6c;
  --mhp-primary-dk: #112850;
  --mhp-accent:     #e8600a;
  --mhp-accent-lt:  #f5a623;
  --mhp-green:      #27ae60;
  --mhp-white:      #ffffff;
  --mhp-light:      #f5f7fa;
  --mhp-gray:       #666666;
  --mhp-gray-lt:    #eeeeee;
  --mhp-border:     #dde3ec;
  --mhp-text:       #2d2d2d;
  --mhp-radius:     6px;
  --mhp-radius-lg:  12px;
  --mhp-shadow:     0 2px 10px rgba(26,58,108,.08);
  --mhp-shadow-md:  0 6px 24px rgba(26,58,108,.13);
  --mhp-trans:      .25s ease;
  --mhp-sidebar:    300px;
  --mhp-gap:        36px;
}
.du-an-breadcrumb {
  margin: 20px 0 0;
}

.du-an-breadcrumb__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  font-size: .85rem;
  color: #999;
}

.du-an-breadcrumb__item {
  display: flex;
  align-items: center;
}

/* Dấu phân cách "›" tự động giữa các item */
.du-an-breadcrumb__item + .du-an-breadcrumb__item::before {
  content: '›';
  margin-right: 4px;
  color: #ccc;
}
.du-an-breadcrumb__item{
	margin-bottom: 0px;
}
.du-an-breadcrumb__item a {
  color: #666;
  text-decoration: none;
  transition: color .2s;
}

.du-an-breadcrumb__item a:hover {
  color: #dc3522;
}

.du-an-breadcrumb__item--current {

}

/* ---------- Header chuyên mục ---------- */
.du-an-archive-header {
  text-align: center;
  padding: 40px 0 32px;
  border-bottom: 2px solid #e8e8e8;
  margin-bottom: 40px;
}

.du-an-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0 0 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-align: left;
}

.du-an-desc {
  color: #666;
  font-size: 1rem;
  max-width: 600px;
  margin: 0 auto;
}

/* ---------- Lưới 3 cột ---------- */
.du-an-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-bottom: 50px;
}

@media (max-width: 900px) {
  .du-an-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}

@media (max-width: 560px) {
  .du-an-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

/* ---------- Card ---------- */
.du-an-card {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,.08);
  transition: box-shadow .25s ease, transform .25s ease;
  display: flex;
  flex-direction: column;
}

.du-an-card:hover {
  box-shadow: 0 8px 28px rgba(0,0,0,.15);
  transform: translateY(-4px);
}

/* Thumbnail */
.du-an-card__thumb {
  display: block;
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #f0f0f0;
}

.du-an-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
  display: block;
}

.du-an-card:hover .du-an-card__thumb img {
  transform: scale(1.06);
}

/* Overlay khi hover */
.du-an-card__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity .3s ease;
}

.du-an-card:hover .du-an-card__overlay {
  opacity: 1;
}

.du-an-card__overlay-icon {
  color: #fff;
  font-size: 2rem;
  font-weight: bold;
}

/* Body */
.du-an-card__body {
  padding: 18px 20px 22px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.du-an-card__title {
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.5;
  margin: 0 0 10px;
}

.du-an-card__title a {
  color: #1a1a1a;
  text-decoration: none;
  transition: color .2s;
}

.du-an-card__title a:hover {
  color: #dc3522;
}

.du-an-card__excerpt {
  color: #666;
  font-size: 1.15rem;
  line-height: 1.5;
  margin: 0 0 16px;
  flex: 1;
}

.du-an-card__btn {
  display: none;
  background: #dc3522;
  color: #fff !important;
  padding: 8px 20px;
  border-radius: 4px;
  font-size: .85rem;
  font-weight: 600;
  text-decoration: none !important;
  align-self: flex-start;
  transition: background .2s;
}

.du-an-card__btn:hover {
  background: #b52c1b;
}

/* ---------- Phân trang ---------- */
.du-an-pagination {
  text-align: center;
  margin: 10px 0 40px;
}

.du-an-pagination .nav-links {
  display: inline-flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: center;
}

.du-an-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  color: #333;
  text-decoration: none;
  font-size: .9rem;
  transition: background .2s, color .2s, border-color .2s;
}

.du-an-pagination .page-numbers:hover,
.du-an-pagination .page-numbers.current {
  background: #dc3522;
  color: #fff;
  border-color: #dc3522;
}

/* ---------- Empty ---------- */
.du-an-empty {
  text-align: center;
  color: #999;
  padding: 60px 0;
  font-size: 1.1rem;
}
.mhp-breadcrumb {
    background: var(--mhp-light);
    border-bottom: 1px solid var(--mhp-border);
    padding: 10px 0;
    font-size: 13px;
    color: var(--mhp-gray);
}
.mhp-container {
    max-width: 1160px;
    margin: 0 auto;
    padding: 0 20px;
}
.mhp-breadcrumb a {
    color: var(--mhp-primary);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: color var(--mhp-trans);
}
