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

:root {
    --primary: #00A8E8;
    --primary-dark: #007EA7;
    --accent: #F4A261;
    --background: #F0F8FF;
    --text: #1B263B;
    --text-muted: #4A5568;
    --white: #ffffff;
    --card-bg: #ffffff;
    --border-color: rgba(0, 168, 232, 0.1);

    --header-gradient: linear-gradient(135deg, #001f3f 0%, #003366 50%, #001f3f 100%);
    --tropical-gradient: linear-gradient(90deg, #007EA7 0%, #00A8E8 50%, #007EA7 100%);
    --accent-gradient: linear-gradient(135deg, #F4A261 0%, #E76F51 100%);
}

body {
    background-color: var(--background);
    color: var(--text);
    font-family: 'Be Vietnam Pro', sans-serif;
    line-height: 1.4;
    font-size: 0.9375rem;
    /* 15px */
}

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

/* Override Tailwind-like classes if necessary */
.bg-primary {
    background-color: var(--primary) !important;
}

.text-primary {
    color: var(--primary) !important;
}

.border-primary {
    border-color: var(--primary) !important;
}

.hover\:text-primary:hover {
    color: var(--primary) !important;
}

.hover\:bg-primary:hover {
    background-color: var(--primary) !important;
}

a {
    transition: all 0.3s ease;
    text-decoration: none;
}

/* Modern Card Style */
.modern-card {
    background: var(--white);
    border-radius: 1.5rem;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--border-color);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s ease;
}

.modern-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 168, 232, 0.12);
}

/* Utilities */
.no-scrollbar::-webkit-scrollbar {
    display: none;
}

.no-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.section-title {
    font-size: 1.75rem;
    font-weight: 900;
    font-style: italic;
    letter-spacing: -0.02em;
    position: relative;
    padding-bottom: 0.75rem;
    margin-bottom: 2rem;
    color: var(--text);
}

/* ─── Premium Pagination Modern Overwrite ─── */
.tropical-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.75rem;
    /* Tăng khoảng cách để các nút "thở" hơn */
    margin-top: 5rem;
}

.tropical-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 3.5rem;
    /* Tăng kích thước để dễ bấm trên mobile */
    height: 3.5rem;
    border-radius: 1.25rem;
    /* Bo góc mượt hơn */
    background: #ffffff;
    border: 2px solid rgba(2, 62, 138, 0.05);
    /* Border dày hơn nhưng mờ */
    font-weight: 900;
    font-size: 0.9rem;
    color: #023E8A;
    /* Màu xanh đậm đặc trưng */
    text-transform: uppercase;
    font-style: italic;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.04);
    text-decoration: none;
}

/* Hiệu ứng Hover rực rỡ */
.tropical-pagination a.page-numbers:hover {
    background: #023E8A;
    /* Màu xanh biển sáng */
    color: #fff;
    border-color: #023E8A;
    box-shadow: 0 20px 25px -5px rgba(2, 62, 138, 0.25);
}

/* Trạng thái trang hiện tại - Điểm nhấn chính */
.tropical-pagination .page-numbers.current {
    background: #023E8A;
    color: #fff;
    /* Màu vàng cam cực kỳ nổi bật */
    border-color: #023E8A;
    box-shadow: 0 15px 30px -5px rgba(2, 62, 138, 0.3);
    /* Phóng to nhẹ trang hiện tại */
    z-index: 2;
}

/* --- Tinh chỉnh Mũi tên Phân trang --- */
.tropical-pagination .nav-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

/* Nút Next/Prev chung */
.tropical-pagination .page-numbers.next,
.tropical-pagination .page-numbers.prev {
    padding: 0;
    /* Xóa padding thừa để icon nằm chính giữa */
    width: 3.5rem;
    /* Đảm bảo hình vuông bằng các nút số */
    background: rgba(2, 62, 138, 0.05);
    border-color: rgba(2, 62, 138, 0.1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Căn chỉnh Icon Material nội bộ */
.tropical-pagination .page-numbers .material-symbols-outlined {
    font-size: 1.5rem;
    /* Kích thước icon */
    font-weight: 900;
    line-height: 1;
    display: block;
    /* Đảm bảo icon không bị lệch lên hoặc xuống */
    margin: 0;
    padding: 0;
}

/* Hiệu ứng riêng cho nút mũi tên khi hover */
.tropical-pagination a.next:hover,
.tropical-pagination a.prev:hover {
    background: #023E8A;
    /* Màu vàng Accent khi di chuột vào mũi tên */
    border-color: #023E8A;
    color: #fff;
}

/* Nếu bạn muốn mũi tên "bay" nhẹ khi hover */
.tropical-pagination a.next:hover .material-symbols-outlined {
    transform: translateX(3px);
    transition: transform 0.3s ease;
}

/* Responsive cho điện thoại */
@media (max-width: 640px) {
    .tropical-pagination {
        gap: 0.4rem;
    }

    .tropical-pagination .page-numbers {
        min-width: 2.8rem;
        height: 2.8rem;
        font-size: 0.75rem;
        border-radius: 0.75rem;
    }
}

/* ─── Single Post Typography Refinement ─── */
.prose {
    line-height: 1.8;
    color: #334155;
}

.prose p {
    margin-bottom: 1.5rem;
}

.prose h2,
.prose h3 {
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    color: #0f172a;
}

.prose blockquote p {
    margin-bottom: 0;
}

.prose img {
    margin: 3rem 0;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 80px;
    height: 6px;
    background: var(--primary);
    border-radius: 3px;
}

/* Featured Badge */
.featured-badge {
    background: var(--tropical-gradient);
    color: white;
    padding: 8px 24px;
    border-radius: 9999px;
    font-size: 0.825rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    box-shadow: 0 10px 20px rgba(0, 168, 232, 0.2);
}

/* custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--background);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-dark);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

/* Đảm bảo khung figure luôn chiếm hết chiều rộng container */
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.tplCaption.image img {
    width: 100% !important;
    height: auto !important;
    /* 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.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 */
}

/* Ẩ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 */
article .prose p:empty {
    margin: 0;
    height: 0;
}