/* Container bao quanh toàn bộ hệ thống */
.hhc-slider-container {
    width: 100%;
    position: relative;
    padding: 15px 0 40px 0;
    box-sizing: border-box;
}

/* ==========================================================================
   BÀI VIẾT ĐẠI DIỆN NỔI BẬT (FEATURED POST)
   ========================================================================== */
.hhc-featured-post {
    margin-bottom: 25px;
    background: #ffffff;
    border: 1px solid #e8e8e8;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.45s ease-in-out;
}

.hhc-featured-post:hover {
    transform: translateY(-4px);
    border-color: #cccccc;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
}

.hhc-featured-link {
    text-decoration: none !important;
    display: flex;
    flex-direction: column;
}

@media (min-width: 768px) {
    .hhc-featured-link {
        flex-direction: row;
    }
}

.hhc-featured-media {
    flex: 1.2;
    min-height: 250px;
    background: #f0f0f0;
    position: relative;
    overflow: hidden;
}

.hhc-featured-media img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    position: absolute;
    top: 0;
    left: 0;
    transition: transform 0.55s ease-in-out;
}

.hhc-featured-post:hover .hhc-featured-media img {
    transform: scale(1.04);
}

.hhc-featured-body {
    flex: 1;
    padding: 25px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hhc-featured-title {
    font-size: 1.4em !important;
    font-weight: 700 !important;
    line-height: 1.4 !important;
    color: #1a1a1a !important;
    margin: 0 0 12px 0 !important;
    transition: color 0.45s ease-in-out;
}

.hhc-featured-post:hover .hhc-featured-title {
    color: #1a56db !important;
}

.hhc-featured-excerpt {
    font-size: 1em;
    color: #555555;
    line-height: 1.5;
}

/* ==========================================================================
   SLIDER BÊN DƯỚI (DANH SÁCH BÀI NHỎ)
   ========================================================================== */
.hhc-swiper-instance {
    width: 100%;
    padding: 10px 52px 35px 52px !important;
    overflow: hidden;
    box-sizing: border-box;
}

/* Đảm bảo tất cả các bài viết trong hàng tự động cao bằng nhau */
.hhc-swiper-instance .swiper-slide {
    height: auto !important;
}

/* Thẻ bài viết nhỏ */
.hhc-card-item {
    background: #ffffff;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    overflow: hidden;
    height: 100%;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
    transition: all 0.45s ease-in-out;
    position: relative;
}

.hhc-card-link {
    text-decoration: none !important;
    display: flex;
    flex-direction: column;
    height: 100%;
    outline: none;
}

/* Chiều cao vùng ảnh thu gọn gọn gàng */
.hhc-card-media {
    width: 100%;
    height: 135px;
    overflow: hidden;
    position: relative;
    background: #f0f0f0;
}

.hhc-card-media img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    transition: transform 0.55s ease-in-out;
}

.hhc-card-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e8e8e8;
    color: #888888;
    font-weight: 700;
    font-size: 1em;
    letter-spacing: 1px;
}

/* Khoảng trống đệm bên trong phần chữ */
.hhc-card-body {
    padding: 12px 14px 14px 14px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

/* Tiêu đề tự động xuống dòng và luôn hiển thị đầy đủ */
.hhc-card-title {
    font-size: 0.95em !important;
    font-weight: 600 !important;
    line-height: 1.45 !important;
    color: #1a1a1a !important;
    margin: 0 !important;
    word-break: break-word;
    transition: color 0.45s ease-in-out;
}

/* HIỆU ỨNG HOVER */
.hhc-card-item:hover {
    transform: translateY(-3px);
    border-color: #cccccc;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
}

.hhc-card-item:hover .hhc-card-media img {
    transform: scale(1.04);
}

.hhc-card-item:hover .hhc-card-title {
    color: #1a56db !important;
}

/* ==========================================================================
   NÚT ĐIỀU HƯỚNG & PHÂN TRANG SWIPER
   ========================================================================== */
.hhc-nav-btn {
    width: 38px !important;
    height: 38px !important;
    border-radius: 6px !important;
    background: #ffffff;
    border: 1.5px solid #cccccc;
    color: #1a1a1a !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
    transition: background 0.3s ease, border-color 0.3s ease,
                color 0.3s ease, box-shadow 0.3s ease, transform 0.25s ease;
}

.hhc-nav-btn::after {
    font-size: 12px !important;
    font-weight: 900 !important;
    color: inherit;
}

.hhc-nav-btn:hover {
    background: #1a1a1a;
    border-color: #1a1a1a;
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: scale(1.05);
}

.hhc-swiper-instance .swiper-button-prev {
    left: 4px !important;
}

.hhc-swiper-instance .swiper-button-next {
    right: 4px !important;
}

.hhc-pagination {
    bottom: 0px !important;
}

.hhc-pagination .swiper-pagination-bullet {
    background: #cccccc !important;
    opacity: 1;
    width: 7px;
    height: 7px;
    transition: all 0.3s ease;
    margin: 0 4px !important;
}

.hhc-pagination .swiper-pagination-bullet-active {
    background: #1a1a1a !important;
    width: 18px;
    border-radius: 4px;
}

.hhc-no-posts {
    color: #666;
    font-style: italic;
    padding: 15px;
    text-align: center;
}