/* =========================================
   Project Cases: Archive & Single Styles
   ========================================= */

/* --- Archive (List) Page --- */
.hbc-case-archive-hero {
    background: #1a2230;
    color: #fff;
    padding: 80px 20px;
    text-align: center;
}
.hbc-case-archive-title {
    font-size: 48px;
    font-weight: 700;
    margin: 0 0 16px;
    color: #fff;
}
.hbc-case-archive-desc {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.8);
    max-width: 800px;
    margin: 0 auto;
}

.hbc-case-container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 60px 50px 100px;
}

/* Category Filter */
.hbc-case-filters {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
    margin-bottom: 48px;
}
.hbc-case-filter {
    padding: 10px 24px;
    border-radius: 50px;
    background: #f5f6f8;
    color: #333;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.3s;
}
.hbc-case-filter:hover, .hbc-case-filter.active {
    background: #ff7900;
    color: #fff;
}

/* Grid & Cards */
.hbc-case-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}
.hbc-case-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #eee;
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
}
.hbc-case-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.08);
}
.hbc-case-img {
    width: 100%;
    height: 240px;
    object-fit: cover;
}
.hbc-case-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.hbc-case-card-title {
    font-size: 20px;
    font-weight: 700;
    color: #111;
    margin: 0 0 20px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    overflow: hidden;
}
.hbc-case-card-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px 12px;
    margin-bottom: 24px;
    flex: 1;
}
.hbc-case-ci-item {
    font-size: 13px;
}
.hbc-case-ci-label {
    color: #888;
    margin-bottom: 4px;
}
.hbc-case-ci-value {
    color: #111;
    font-weight: 600;
}
.hbc-case-card-btn {
    display: inline-block;
    text-align: center;
    padding: 12px 0;
    border-radius: 8px;
    background: #f5f6f8;
    color: #333;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
}
.hbc-case-card:hover .hbc-case-card-btn {
    background: #ff7900;
    color: #fff;
}

/* Pagination */
.hbc-case-pagination {
    margin-top: 60px;
    display: flex;
    justify-content: center;
    gap: 8px;
}
.hbc-case-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: #f5f6f8;
    color: #333;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
}
.hbc-case-pagination .page-numbers:hover,
.hbc-case-pagination .page-numbers.current {
    background: #ff7900;
    color: #fff;
}

/* --- Single Page --- */
.hbc-single-hero {
    position: relative;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    padding: 0 20px;
}
.hbc-single-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.3) 100%);
    z-index: 1;
}
.hbc-single-hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}
.hbc-single-hero-content {
    position: relative;
    z-index: 2;
    max-width: 1000px;
}
.hbc-single-title {
    font-size: 48px;
    font-weight: 700;
    margin: 0 0 16px;
    color: #fff;
}
.hbc-single-meta-bar {
    background: #fff;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    max-width: 1200px;
    margin: -40px auto 40px;
    position: relative;
    z-index: 5;
    border-radius: 12px;
    display: flex;
    padding: 30px 40px;
}
.hbc-single-meta-item {
    flex: 1;
    border-left: 2px solid #ff7900;
    padding: 0 20px;
}
.hbc-single-meta-item:first-child { border-left: none; }
.hbc-single-meta-label {
    font-size: 14px;
    color: #666;
    margin-bottom: 8px;
}
.hbc-single-meta-value {
    font-size: 20px;
    font-weight: 700;
    color: #111;
}
.hbc-single-content {
    max-width: 1000px;
    margin: 0 auto;
    padding: 40px 20px 100px;
    font-size: 18px;
    line-height: 1.8;
    color: #444;
}
.hbc-single-content img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 32px 0;
}
.hbc-single-content h2, .hbc-single-content h3 {
    color: #111;
    margin: 40px 0 20px;
}

/* Responsive */
@media (max-width: 1024px) {
    .hbc-case-grid { grid-template-columns: repeat(2, 1fr); }
    .hbc-single-meta-bar { flex-wrap: wrap; padding: 20px; margin: -20px 20px 40px; }
    .hbc-single-meta-item { flex: 0 0 50%; border-left: none; padding: 15px; }
}
@media (max-width: 768px) {
    .hbc-case-container { padding: 40px 20px 60px; }
    .hbc-case-archive-title { font-size: 32px; }
    .hbc-case-grid { grid-template-columns: 1fr; }
    .hbc-single-title { font-size: 32px; }
    .hbc-single-meta-item { flex: 0 0 100%; }
}
