/*
Theme Name: Dong Ho
Theme URI: 
Author: Minh Vu
Author URI: 
Description: Theme cơ bản cho trang web bán Đồng Hồ.
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: dongho
*/

/* Core Styles */
body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    color: #333;
    background: #fff;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 15px;
}

/* WordPress Core Alignments & Captions */
.alignnone { margin: 5px 20px 20px 0; }
.aligncenter, div.aligncenter { display: block; margin: 5px auto 5px auto; }
.alignright { float: right; margin: 5px 0 20px 20px; }
.alignleft { float: left; margin: 5px 20px 20px 0; }
a img.alignright { float: right; margin: 5px 0 20px 20px; }
a img.alignnone { margin: 5px 20px 20px 0; }
a img.alignleft { float: left; margin: 5px 20px 20px 0; }
a img.aligncenter { display: block; margin-left: auto; margin-right: auto; }

.wp-caption {
    background: #fff;
    max-width: 100%;
    padding: 0;
    text-align: center;
    margin-bottom: 24px;
}
.wp-caption.alignnone, .wp-caption.alignleft { margin: 5px 20px 20px 0; }
.wp-caption.alignright { margin: 5px 0 20px 20px; }
.wp-caption img {
    border: 0 none;
    height: auto;
    margin: 0 auto;
    max-width: 100%;
    padding: 0;
    width: auto;
    border-radius: 8px;
}
.wp-caption p.wp-caption-text {
    font-size: 14.5px;
    line-height: 1.5;
    margin: 12px 0 0 0;
    padding: 0;
    color: #6b7280;
    font-style: italic;
    text-align: center;
}

/* Post Content Typography & Images */
.entry-content a {
    color: #2563eb;
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color 0.2s ease;
}
.entry-content a:hover {
    color: #1d4ed8;
}
.entry-content h2 {
    font-size: 28px;
    font-weight: normal;
    color: #2563eb;
    margin-top: 48px;
    margin-bottom: 20px;
}
.entry-content h3 {
    font-size: 22px;
    font-weight: normal;
    color: #111827;
    margin-top: 32px;
    margin-bottom: 16px;
}
.entry-content p {
    margin-bottom: 24px;
}
.entry-content ul {
    list-style-type: disc !important;
    padding-left: 20px;
    margin: 24px 0;
}
.entry-content ul li {
    margin-bottom: 12px;
}
.entry-content ol {
    list-style-type: decimal !important;
    padding-left: 20px;
    margin: 24px 0;
}
.entry-content ol li {
    margin-bottom: 12px;
}
.entry-content blockquote {
    border-left: 4px solid #2563eb;
    padding: 16px 20px;
    font-style: italic;
    color: #4b5563;
    background: #f9fafb;
    margin: 32px 0;
    border-radius: 0 8px 8px 0;
}
.entry-content blockquote p:last-child {
    margin-bottom: 0;
}
.entry-content img {
    border-radius: 8px;
    height: auto;
    max-width: 100%;
    margin: 0 auto;
    display: block;
}

@media (max-width: 768px) {
    .entry-content p {
        margin-bottom: 16px;
    }
    .entry-content img, .wp-caption {
        max-width: 100% !important;
        margin-left: auto !important;
        margin-right: auto !important;
        display: block;
    }
    .entry-content h2 {
        font-size: 24px;
        margin-top: 32px;
    }
}

/* Pagination Styling */
.pagination { 
    margin-top: 10px;
    margin-bottom: 20px;
}
.pagination .nav-links {
    display: flex;
    align-items: center;
    gap: 10px;
}
.pagination .nav-links .page-numbers {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 0 16px;
    background: #fff;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 15.5px;
    font-weight: 700;
    color: #4b5563;
    transition: all 0.2s ease;
    text-decoration: none;
}
.pagination .nav-links .page-numbers:hover {
    border-color: #9ca3af;
    background: #f9fafb;
    color: #111827;
}
.pagination .nav-links .page-numbers.current {
    background: #dc2626;
    border-color: #dc2626;
    color: #fff;
    pointer-events: none;
}
.pagination .nav-links .dots {
    border: none;
    background: transparent;
    min-width: auto;
    padding: 0;
    color: #6b7280;
}
