/*
Theme Name: Phú Quốc Toplist 
Theme URI: https://phuquoctoplist.vn
Author: Bùi Công Luận
Description: Cẩm nang du lịch Phú Quốc
Version: 2.0.0
Text Domain: pq-toplist
*/

html {
    scroll-behavior: smooth;
}

/* Định dạng nội dung bài viết chuẩn Toplist */
.prose p {
    margin-bottom: 1.15rem;
    line-height: 1.8;
    color: #334155;
    font-size: 1.025rem;
}

.prose h2 {
    font-size: 1.5rem;
    font-weight: 800;
    color: #0f172a;
    margin-top: 2.25rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #ffedd5;
}

.prose h3 {
    font-size: 1.25rem;
    font-weight: 800;
    color: #ea580c;
    margin-top: 1.75rem;
    margin-bottom: 0.75rem;
}

/* Biến danh sách bullet (Địa chỉ, Giá, Giờ mở cửa) trong bài viết thành khung thông tin đẹp mắt */
.prose ul {
    list-style-type: none;
    padding: 1rem 1.25rem;
    margin-bottom: 1.25rem;
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    border-left: 4px solid #f97316;
    border-radius: 0.75rem;
    color: #334155;
}

.prose ul li {
    margin-bottom: 0.4rem;
    font-size: 0.95rem;
    position: relative;
    padding-left: 1.25rem;
}

.prose ul li::before {
    content: "•";
    color: #f97316;
    font-weight: bold;
    position: absolute;
    left: 0;
}

.prose ul li:last-child {
    margin-bottom: 0;
}

.prose img {
    border-radius: 0.875rem;
    margin: 1.25rem 0;
    width: 100%;
    height: auto;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.prose a {
    color: #ea580c;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.prose a:hover {
    color: #c2410c;
}

.prose blockquote {
    background-color: #fff7ed;
    border-left: 4px solid #ea580c;
    padding: 1rem 1.25rem;
    border-radius: 0 0.75rem 0.75rem 0;
    font-style: normal;
    margin: 1.25rem 0;
}
/* Khung cuộn ngang cho bảng Gutenberg trên điện thoại */
.prose .wp-block-table,
#pq-post-content .wp-block-table {
    overflow-x: auto;
    margin: 24px 0;
}

/* Định dạng khung bảng, đường viền và khoảng cách ô */
.prose table,
#pq-post-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-size: 14px;
    line-height: 1.55;
    background-color: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    overflow: hidden;
}

.prose thead th,
#pq-post-content thead th {
    background-color: #f8fafc;
    color: #0f172a;
    font-weight: 700;
    text-align: left;
    padding: 12px 14px;
    border: 1px solid #cbd5e1;
}

.prose tbody td,
#pq-post-content tbody td {
    padding: 11px 14px;
    border: 1px solid #e2e8f0;
    color: #334155;
    vertical-align: top;
}

/* Tô màu xen kẽ nhẹ giữa các hàng cho dễ đọc */
.prose tbody tr:nth-child(even),
#pq-post-content tbody tr:nth-child(even) {
    background-color: #f8fafc;
}

.prose tbody tr:hover,
#pq-post-content tbody tr:hover {
    background-color: #fff7ed;
}

