/*
Theme Name: DKDV VIETTEL
Theme URI: 
Author: Epart Tech 
Author URI: 
Description:
Version: 1.0
Requires at least: 5.0
Tested up to: 6.4
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Tags: custom-theme
Text Domain: dkdvviettel

This theme, like WordPress, is licensed under the GPL.
Use it to make something cool, have fun, and share what you've learned with others.
*/

/* ========== Cấu trúc chính ========== */
.wordpress-content {
	max-width: 100%;
	line-height: 1.8;
	font-size: 16px;
	color: #222;
	word-wrap: break-word;
	overflow-wrap: break-word;
}
.wordpress-content ul {
	list-style-type: disc;
}
.wordpress-content ol {
	list-style: decimal;
}
.wordpress-content p,
.wordpress-content ul,
.wordpress-content ol,
.wordpress-content blockquote,
.wordpress-content pre,
.wordpress-content table {
	margin-bottom: 1em;
}

/* ========== Tiêu đề ========== */
.wordpress-content h1,
.wordpress-content h2,
.wordpress-content h3,
.wordpress-content h4,
.wordpress-content h5,
.wordpress-content h6 {
	margin: 0 0 1em;
	line-height: 1.3;
	font-weight: 600;
	color: #111;
}

/* ========== Danh sách ========== */
.wordpress-content ul,
.wordpress-content ol {
	padding-left: 2em;
}

/* ========== Liên kết ========== */
.wordpress-content a {
	color: #0073aa;
	text-decoration: underline;
	transition: color 0.2s ease;
}
.wordpress-content a:hover {
	color: #005177;
}

/* ========== Ảnh & figure ========== */
.wordpress-content img {
	max-width: 100%;
	height: auto;
	display: block;
}
.wordpress-content figure {
	margin: 1.5em 0;
	text-align: center;
}
.wordpress-content figcaption {
	font-size: 0.9em;
	color: #666;
	margin-top: 0.5em;
}

/* ========== Blockquote ========== */
.wordpress-content blockquote {
	border-left: 4px solid #0073aa;
	padding-left: 1em;
	color: #555;
	font-style: italic;
	background: #f9f9f9;
}

/* ========== Bảng ========== */
.wordpress-content table {
	border-collapse: collapse;
	width: 100%;
	margin-bottom: 1.5em;
}
.wordpress-content th,
.wordpress-content td {
	border: 1px solid #ddd;
	padding: 8px 12px;
}
.wordpress-content th {
	background: #f5f5f5;
	font-weight: 600;
}

/* ========== Code & Pre ========== */
.wordpress-content pre {
	background: #f4f4f4;
	padding: 1em;
	border-radius: 4px;
	overflow-x: auto;
}
.wordpress-content code {
	background: #f4f4f4;
	padding: 0.2em 0.4em;
	border-radius: 3px;
	font-family: Consolas, monospace;
	font-size: 0.95em;
}

/* ========== Căn trái / phải / giữa (chuẩn WP) ========== */
.wordpress-content .alignleft {
	float: left;
	margin-right: 1.5em;
	margin-bottom: 1em;
}
.wordpress-content .alignright {
	float: right;
	margin-left: 1.5em;
	margin-bottom: 1em;
}
.wordpress-content .aligncenter {
	display: block;
	margin-left: auto;
	margin-right: auto;
	clear: both;
}

/* ========== Ảnh có chú thích (caption) ========== */
.wordpress-content .wp-caption {
	max-width: 100%;
	text-align: center;
	margin-bottom: 1.5em;
}
.wordpress-content .wp-caption img {
	display: inline-block;
	max-width: 100%;
	height: auto;
}
.wordpress-content .wp-caption-text {
	font-size: 0.9em;
	color: #666;
	margin-top: 0.5em;
}

/* ========== Gallery (Gutenberg hoặc Classic) ========== */
.wordpress-content .gallery {
	display: flex;
	flex-wrap: wrap;
	gap: 1em;
	justify-content: center;
}
.wordpress-content .gallery-item {
	flex: 1 1 150px;
	text-align: center;
}
.wordpress-content .gallery img {
	width: 100%;
	height: auto;
	border-radius: 4px;
}

/* ========== Clearfix ========== */
.wordpress-content::after {
	content: "";
	display: block;
	clear: both;
}

/* ========== Gutenberg block hỗ trợ cơ bản ========== */
.wordpress-content .wp-block-image {
	margin: 1.5em 0;
	text-align: center;
}
.wordpress-content .wp-block-image img {
	display: inline-block;
	height: auto;
}
.wordpress-content .wp-block-quote {
	border-left: 4px solid #0073aa;
	padding-left: 1em;
	background: #f9f9f9;
	margin: 1.5em 0;
}
.wordpress-content .wp-block-table {
	border-collapse: collapse;
	width: 100%;
}
.wordpress-content .wp-block-table th,
.wordpress-content .wp-block-table td {
	border: 1px solid #ddd;
	padding: 8px 12px;
}

#sidebar > ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

#sidebar .widget_block {
    background-color: #ffffff;
    border-radius: 8px;
    padding: 25px 20px;
    margin-bottom: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05); /* Đổ bóng nhẹ tạo độ sâu */
    border: 1px solid #f0f0f0;
}

#sidebar .wp-block-heading {
    font-size: 18px;
    font-weight: 700;
    color: #333333;
    margin-top: 0;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid #eaeaea;
    position: relative;
    text-transform: uppercase;
}

#sidebar .wp-block-heading::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 50px; /* Chiều dài vệt đỏ */
    height: 2px;
    background-color: #ee0033; /* Mã màu đỏ */
}

#sidebar .wp-block-latest-posts,
#sidebar .wp-block-categories {
    list-style: none;
    padding: 0;
    margin: 0;
}

#sidebar .wp-block-latest-posts li,
#sidebar .wp-block-categories li {
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px dashed #e5e5e5;
    position: relative;
    padding-left: 20px; /* Chừa khoảng trống cho icon */
}

#sidebar .wp-block-latest-posts li:last-child,
#sidebar .wp-block-categories li:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

#sidebar .wp-block-latest-posts a,
#sidebar .wp-block-categories a {
    text-decoration: none;
    color: #444444;
    font-size: 15px;
    line-height: 1.5;
    display: inline-block;
    transition: all 0.3s ease;
}

#sidebar .wp-block-latest-posts li:hover a,
#sidebar .wp-block-categories li:hover a {
    color: #ee0033;
}

#sidebar .wp-block-latest-posts li:hover,
#sidebar .wp-block-categories li:hover {
    padding-left: 25px; 
}
.nav-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin: 30px 0;
    flex-wrap: wrap;
}

.nav-links .page-numbers {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-width: 38px;
    height: 38px;
    padding: 0 10px;
    background-color: #f8f9fa;
    color: #495057;
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.nav-links a.page-numbers:hover {
    background-color: #ee0033;
    color: #ffffff;
    border-color: #ee0033;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(238, 0, 51, 0.2);
}

.nav-links .current {
    background-color: #ee0033;
    color: #ffffff;
    border-color: #ee0033;
    box-shadow: 0 4px 8px rgba(238, 0, 51, 0.25);
    pointer-events: none;
}

@media (max-width: 768px) {
    .nav-links {
        gap: 5px;
        margin: 20px 0;
    }
    .nav-links .page-numbers {
        min-width: 34px;
        height: 34px;
        font-size: 14px;
        padding: 0 8px;
    }
}