/*
Theme Name: Dulich Travel v10 Burgundy Edition
Author: Antigravity
Description: Modern Burgundy Travel Blog Theme Redesign
Version: 10.0
Text Domain: dulichv10
*/

:root {
    --primary: #4A2630;
    --secondary: #3B1F26;
    --accent: #4A2630;
    --bg-main: #FDF8FA;
    --text-main: #2D1B24;
    --text-muted: #4A2630;
    --white: #ffffff;

    /* Gradations */
    --grad-primary: linear-gradient(135deg, #3B1F26 0%, #4A2630 100%);
    --grad-soft: linear-gradient(135deg, #4A2630 0%, #3B1F26 100%);

    /* Shaping */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 32px;
    --radius-xl: 48px;

    /* Shadows */
    --shadow-sm: 0 4px 10px rgba(59, 31, 38, 0.05);
    --shadow-md: 0 15px 40px rgba(59, 31, 38, 0.1);
    --shadow-lg: 0 25px 60px rgba(59, 31, 38, 0.15);
}


body {
    background-color: var(--bg-main);
    color: var(--text-main);
    font-family: 'Be Vietnam Pro', sans-serif;
    line-height: 1.6;
}

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

.premium-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.hover-lift:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.burgundy-badge {
    color: white;
    padding: 6px 16px;
    border-radius: 100px;
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    background: var(--grad-primary);
    display: inline-block;
}

/* Ticker Animation */
@keyframes ticker {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.animate-ticker {
    animation: ticker 30s linear infinite;
}

/* Selection & Scrollbar */
::selection {
    background: var(--primary);
    color: var(--white);
}

::-webkit-scrollbar {
    width: 8px;
}

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

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

/* Container chính của phân trang */
.custom-pagination ul {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    /* khoảng cách giữa các số */
    list-style: none;
    padding: 0;
}

/* Style chung cho tất cả các ô (số, mũi tên, dấu ba chấm) */
.custom-pagination ul li a,
.custom-pagination ul li span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3.5rem;
    /* 56px */
    height: 3.5rem;
    border-radius: 1.25rem;
    /* Bo góc hiện đại */
    font-weight: 900;
    font-size: 0.875rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid rgba(var(--color-secondary), 0.05);
    /* Giả định bạn có biến màu */
    background: white;
    color: #4A2630;
    /* Màu chữ tối */
    text-decoration: none;
}

/* Số trang hiện tại */
.custom-pagination ul li span.current {
    background: #4A2630;
    /* Hoặc dùng màu accent của bạn */
    color: white;
    border-color: #4A2630;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
    transform: scale(1.1);
    z-index: 10;
}

/* Hiệu ứng hover cho các số trang không được chọn và nút điều hướng */
.custom-pagination ul li a:hover {
    border-color: #3B1F26;
    /* Màu accent của bạn (ví dụ: hồng đỏ) */
    color: #3B1F26;
    transform: translateY(-4px);
    box-shadow: 0 8px 15px rgba(255, 51, 102, 0.1);
}

/* Dấu ba chấm (...) */
.custom-pagination ul li span.dots {
    border: 2px solid transparent;
    background: transparent;
    color: #cbd5e1;
}

/* Điều chỉnh riêng cho icon Material Symbols */
.custom-pagination ul li a .material-symbols-outlined {
    font-size: 1.25rem !important;
    transition: transform 0.3s ease;
}

/* Hiệu ứng mũi tên khi hover */
.custom-pagination ul li a:hover .material-symbols-outlined {
    /* Mũi tên qua trái thì dịch trái, qua phải dịch phải */
}

.custom-pagination ul li:first-child a:hover .material-symbols-outlined {
    transform: translateX(-3px);
}

.custom-pagination ul li:last-child a:hover .material-symbols-outlined {
    transform: translateX(3px);
}

/* Responsive cho mobile */
@media (max-width: 640px) {
    .custom-pagination ul {
        gap: 0.5rem;
    }

    .custom-pagination ul li a,
    .custom-pagination ul li span {
        width: 2.75rem;
        height: 2.75rem;
        border-radius: 0.875rem;
    }
}



/* Đả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;
}