/*
Theme Name: Tin Tức Du Lịch V8
Description: Mẫu giao diện cho website tin tức du lịch
Version: 1.0
*/


/* Đảm bảo khung figure luôn chiếm hết chiều rộng container */
figure img,
figure.tplCaption.image {
    width: 100% !important;
    /* Ép width 100% thay vì lấy width cố định từ HTML */
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
    display: block;
}

/* Đảm bảo hình ảnh bên trong co giãn theo figure */
figure img,
figure.tplCaption.image img {
    width: 100% !important;
    height: auto !important;
    margin-top: 0;
    /* Giữ tỉ lệ ảnh, không bị méo */
    display: block;
    object-fit: cover;
    /* Giúp ảnh trông đẹp hơn nếu bị ép khung */
    margin-bottom: 0;
}

/* Căn chỉnh chú thích ảnh cho đẹp */
figure figcaption,
figure.tplCaption.image figcaption {
    width: 100%;
    text-align: center;
    font-style: italic;
    font-size: 0.9rem;
    color: #64748b;
    /* Màu xám slate nhẹ nhàng */
}

figure>figcaption {
    margin: 0;
}

/* Ẩn các đoạn văn trống hoặc chỉ chứa khoảng trắng thực thể */
p:empty,
p:has(br:only-child),
p:is(:only-child):empty {
    display: none !important;
}

/* Đặc trị cho mã &nbsp; (khoảng trắng không ngắt) */
/* Lưu ý: CSS thuần khó lọc chính xác nội dung văn bản bên trong, 
   nhưng ta có thể nhắm vào các đoạn p có margin thừa thãi */
figure p:empty,
article p:empty {
    margin: 0;
    height: 0;
    display: none !important;
}

.articles-suggest-wrapper {
    display: none;
}

/* Kiểu chung cho các con số và nút điều hướng */
.page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 800;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid #f1f5f9;
    /* Slate-100 */
    background: #ffffff;
    /* Trắng */
    color: #0f172a;
    /* Đen Slate-900 */
}

/* Khi di chuột vào các số (không phải trang hiện tại) */
a.page-numbers:hover {
    background: #E63946;
    /* Đỏ khi hover */
    border-color: #E63946;
    color: #ffffff;
}

/* Trang hiện tại (Current Page) */
.page-numbers.current {
    background: #E63946;
    /* Đỏ rực */
    border-color: #E63946;
    color: #ffffff;
    box-shadow: 0 8px 15px rgba(230, 57, 70, 0.3);
}

/* Các nút Mũi tên (Next/Prev) */
.prev.page-numbers,
.next.page-numbers {
    width: auto;
    padding: 0 20px;
    /* Đen */
    color: #0f172a;
    vertical-align: bottom;
}

.prev.page-numbers:hover,
.next.page-numbers:hover {
    background: #E63946;
    /* Đỏ khi hover */
    border-color: #E63946;
    color: #ffffff;

}

/* Dấu chấm lửng (...) */
.dots {
    border: none;
    background: transparent;
    color: #94a3b8;
    width: 30px;
}