/* =======================================================
   1. HEADER HERO BANNER
   ======================================================= */
.duan-archive-hero {
    position: relative;
    width: 100%;
    padding: 60px 15px;
    background-image: url('/wp-content/uploads/2026/04/bg-project-header.jpg');
    background-size: contain;
    background-attachment: fixed;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 420px;
}
/* Lớp phủ làm tối ảnh nền để nổi chữ */
.duan-hero-overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-color: rgba(0, 0, 0, 0.2);
    z-index: 1;
}
/* Breadcrumbs trong Header */
.duan-breadcrumbs {
    font-size: 14px;
    margin-bottom: 10px;
    text-transform: uppercase;
}
.duan-breadcrumbs a { color: #ddd; transition: 0.3s; }
.duan-breadcrumbs a:hover { color: #f58f20; }
.duan-breadcrumbs span { color: #fff; }
.duan-hero-content {
    position: relative;
    z-index: 2;
    color: #fff;
    width: 100%;
    max-width: 1200px;
}
.duan-hero-title {
    font-size: 2.5em;
    font-weight: 800;
    color: #fff;
    margin-bottom: 20px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}
.duan-term-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    list-style: none;
    padding: 0;
    margin: 0;
}
.duan-term-list .term-item { margin: 0; padding: 0; }
.duan-term-list .term-link {
    display: inline-block;
    background-color: #f58f20;
    color: #fff;
	text-transform: uppercase;
    padding: 8px 24px;
    border-radius: 99px;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.3s ease;
    text-decoration: none;
	border: 1px solid transparent;
}
.duan-term-list .term-link:hover,
.duan-term-list .term-link.active {
    border: 1px solid #fff;
}
/* =======================================================
   2. GRID CARD DỰ ÁN VÀ HIỆU ỨNG HOVER
   ======================================================= */
.duan-card {
    display: block;
}
.duan-card-img-wrapper {
    position: relative;
    width: 100%;
    padding-top: 60%;
    overflow: hidden;
}
.duan-thumbnail {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.duan-card-title-overlay {
    position: absolute;
    bottom: 0; left: 0;
    width: 100%;
    padding: 40px 15px 15px;
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, transparent 100%);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease-in-out;
    text-align: center;
}
.duan-card-title {
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    margin: 0;
    line-height: 1.4;
}
.duan-card-meta {
    text-align: center;
    font-size: 16px;
    font-weight: 700;
    color: #333;
    padding-top: 15px;
    transition: color 0.3s ease;
}
.duan-card:hover .duan-thumbnail {
    transform: scale(1.05);
}
.duan-card:hover .duan-card-title-overlay {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.duan-card:hover .duan-card-meta {
    color: #f58f20;
}
@media only screen and (max-width: 48em) {
/*************** ADD MOBILE ONLY CSS HERE  ***************/
		.duan-archive-hero {
		min-height: 240px;
	}

}