/* Reset CSS */
* {
    padding: 0;
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}
.entry-header .post-categories {
    padding: 0 !important;
    margin-bottom: 5px !important;
}
.entry-header .category-breadcrumb {
    padding: 0 !important;
    margin-bottom: 0 !important;
    font-size: 14px !important;
}
.single-post .wp-block-button__link {
    color: #fff !important;
}

#site-content {
    width: 100%;
    padding: 20px 0;
    margin-bottom: 0;
    flex: 1 0 auto;
}

.single #site-footer {
    max-width: none;
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
}

.container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

.row {
    display: flex;
    margin: 0 -15px;
}

.col-8 {
    width: 75%;
    padding: 0 15px;
}

.col-4 {
    width: 25%;
    padding: 0 15px;
}

.col-8 ul,
.wp-block-list {
    padding-left: 5px;
}

.col-8 ul li,
.wp-block-list li {
    padding-left: 0;
    margin-bottom: 8px;
}

/* Single Post Styles */
.single-post {
    background: #fff;
    padding: 0;
    margin: 0;
}

.entry-header {
    margin-bottom: 30px;
    padding: 0;
}

.post-title {
    padding: 0;
    margin: 0;
}

.post-title h1 {
    font-size: 24px;
    font-weight: 600;
    color: #333;
    margin: 0 0 15px;
    line-height: 1.4;
    padding: 0;
}

.entry-meta {
    font-size: 14px;
    color: #666;
}

.entry-meta span {
    margin-right: 20px;
}

.entry-meta i {
    margin-right: 5px;
}

.entry-content {
    padding: 0;
    margin: 0;
}

.entry-content p {
    margin-bottom: 1.5em;
	line-height: 1.5em;
    padding: 0;
}

.entry-content img {
    max-width: 100%;
    height: auto;
    display: block;
}

.entry-footer {
    margin-top: 30px;
    padding-top: 20px;
}

.tags {
    font-size: 14px;
    color: #666;
}

.tags i {
    margin-right: 5px;
}

.tags a {
    color: #007bff;
    text-decoration: none;
    margin-right: 10px;
}

.tags a:hover {
    text-decoration: underline;
}

/* Recent Posts Widget Styles */
.recent-posts-widget {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin: 0;
}

.recent-posts-widget .widget-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #eee;
}

.recent-posts-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.recent-post-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.recent-post-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.recent-post-thumbnail {
    flex: 0 0 50px;
    margin-right: 10px;
}

.recent-post-thumbnail img {
    width: 50px;
    height: 70px;
    object-fit: cover;
    border-radius: 4px;
}

.recent-post-content {
    flex: 1;
}

.recent-post-title {
    font-size: 14px;
    line-height: 1.4;
    margin-bottom: 5px;
}

.recent-post-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s;
}

.recent-post-title a:hover {
    color: #007bff;
}

.recent-post-date {
    font-size: 12px;
    color: #666;
}

/* Related Posts */
.related-posts {
    margin-top: 0;
}

.related-posts-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #333;
}

.related-posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.related-post-item {
    display: flex;
    align-items: flex-start;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.related-post-thumbnail {
    flex: 0 0 50px;
    margin-right: 10px;
}

.related-post-thumbnail img {
    width: 60px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
}

.related-post-content {
    flex: 1;
    padding: 10px;
}

.related-post-title {
    font-size: 14px;
    line-height: 1.4;
    margin: 0;
}

.related-post-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s;
}

.related-post-title a:hover {
    color: #007bff;
}

/* Mobile Styles */
@media (max-width: 768px) {
    #site-content {
        padding: 15px 0;
    }

    .container {
        padding: 0 15px;
    }

    .row {
        margin: 0;
        flex-direction: column;
    }

    .col-8, .col-4 {
        width: 100%;
        padding: 0;
    }

    .col-8 {
        margin-bottom: 30px;
    }

    .hotel-details ul li {
        padding-left: 10px;
        margin-bottom: 8px;
    }

    .hotel-details ul li:before {
        left: 0;
    }

    .single-post {
        padding: 0;
    }

    .post-title h1 {
        font-size: 20px;
    }

    .entry-meta {
        font-size: 13px;
    }

    .entry-content {
        font-size: 15px;
    }

    .entry-footer {
        margin-top: 20px;
        padding-top: 15px;
        border-top: 1px solid #eee;
    }

    /* Related Posts Mobile */
    .related-posts {
        margin-top: 20px;
    }

    .related-posts-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .related-post-item {
        padding: 0;
    }

    /* Sidebar Mobile */
    .widget-area {
        margin-top: 20px;
        box-shadow: none;
        padding: 0;
    }

    .recent-posts-widget {
        box-shadow: none;
        padding: 0;
    }

    .recent-posts-widget .widget-title {
        padding: 0;
        margin-bottom: 15px;
    }

    .recent-post-item {
        padding: 0;
        margin-bottom: 10px;
    }

    .recent-post-item:last-child {
        margin-bottom: 0;
    }
}

.entry-content h1,
.entry-content h2,
.entry-content h3,
.entry-content h4,
.entry-content h5,
.entry-content h6 {
    font-weight: 700 !important;
    font-weight: bold !important;
    margin-bottom: 15px;
}

.entry-content b,
.entry-content strong {
    font-weight: 700 !important;
    font-weight: bold !important;
}

/* Requirements và Downloads */
.post-requirements,
.post-downloads {
    margin: 30px 0;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.post-requirements h3,
.post-downloads h3 {
    font-size: 20px;
    color: #333;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e9ecef;
}

.requirements-list,
.downloads-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.requirements-list li,
.downloads-list li {
    margin-bottom: 10px;
}

.requirements-list li:last-child,
.downloads-list li:last-child {
    margin-bottom:  5px;
}

.requirements-list a,
.downloads-list a {
    display: inline-block;
    padding: 8px 15px;
    background: #fff;
    color: #0073aa;
    text-decoration: none;
    border-radius: 4px;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

.requirements-list a:hover,
.downloads-list a:hover {
    background: #0073aa;
    color: #fff;
    border-color: #0073aa;
}

/* Responsive */
@media (max-width: 768px) {
    .post-requirements,
    .post-downloads {
        padding: 15px;
    }

    .post-requirements h3,
    .post-downloads h3 {
        font-size: 18px;
    }

    .requirements-list a,
    .downloads-list a {
        padding: 6px 12px;
        font-size: 14px;
    }
	.downloads-list {
    margin-left: 0 !important;
    padding-left: 0 !important;
	}

	.downloads-list li {
    margin-left: 0 !important;
    padding-left: 0 !important;
	}
}

.download-group-block {
    margin-bottom: 24px;
    padding-bottom: 18px;
    border-bottom: 2px dashed #d0d7de;
}

.download-group-block:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

/* Xóa padding của các block trong entry-content */
.entry-content > * {
    padding: 0;
    margin-left: 0;
    margin-right: 0;
}

.entry-content ol {
    margin-left: 0;
    padding-left: 15px;
	list-style-position: outside !important;
}

.entry-content ul {
    margin-left: 0.5em;
    padding-left: 0.5em;
}

.entry-content li {
    margin-left: 0;
    padding-left: 0;
}

/* Đảm bảo title và nội dung thẳng hàng bên trái */
.col-8 .post-title,
.col-8 .post-title h1,
.col-8 .entry-content {
    margin-left: 0;
    padding-left: 0;
}

/* Thêm khoảng cách giữa các dòng cho danh sách số */
.entry-content ol li {
    margin-bottom: 10px;
}

/* Style cho meta views và thời gian dưới title */
.post-meta-info {
    font-size: 12px;
    color: #b0b0b0;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.post-views-meta {
    display: flex;
    align-items: center;
    gap: 3px;
    font-size: 15px;
    color: #b0b0b0;
}

.post-views-number {
    color: #27ae60;
    font-weight: 600;
    font-size: 15px;
}

.separator {
    color: #d0d0d0;
    margin: 0 6px;
}

.post-time-meta {
    color: #b0b0b0;
    font-size: 13px;
}

/* Style cho mod-type trên single post */
.post-mod-types {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.mod-type-icon {
    font-size: 18px;
    color: #22c55e;
}

.mod-type-label {
    font-size: 14px;
    color: #333;
    font-weight: 500;
}

.mod-type-item {
    display: inline-block;
    padding: 3px 4px;
    border-radius: 16px;
    border: 1px solid #e0e0e0;
    background: #f8f8f8;
    color: #333;
    text-decoration: none;
    transition: all 0.2s;
}

.mod-type-item:hover {
    background: #e0f7e9;
    color: #22c55e;
    border-color: #22c55e;
}

.post-mod-types .mod-type-item {
    background: #22c55e;
    color: #fff !important;
    border-color: #22c55e;
}

.post-mod-types .mod-type-item:hover {
    background: #16a34a;
    color: #fff !important;
    border-color: #16a34a;
}

@media (max-width: 768px) {
    .post-meta-info {
        font-size: 12px;
        gap: 6px;
    }
    
    .post-mod-types {
        margin-top: 8px;
        width: 100%;
    }
}

/* Style cho nút download */
.downloads-list li {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    margin-bottom: 10px;
}

.downloads-list .file-label {
    flex: 1 1 auto;
    min-width: 0;
    font-weight: 500;
    color: #333;
    white-space: normal;
    word-break: break-word;
}

.downloads-list .download-link-wrap {
    margin-right: 250px;
}

.downloads-list .download-link {
    min-width: 140px;
    justify-content: center;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 8px 15px;
    background: #22c55e;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    border: 1px solid #22c55e;
    transition: all 0.3s ease;
}

.downloads-list .download-link:hover {
    background: #16a34a;
    color: #fff;
    border-color: #16a34a;
}

.downloads-list .material-symbols-outlined {
    font-size: 18px;
    line-height: 1;
    color: #fff;
}
#secondary .wp-block-heading{
    display:block;          /* đảm bảo chiếm trọn chiều ngang */
    background:#2b2d42 !important;   /* màu nền */
    color:#fff !important;           /* màu chữ */
    padding:8px 14px;
    margin:0 0 18px;
    font-size:1.05rem;
    font-weight:600;
    border-radius:4px;
    text-transform:uppercase;
    letter-spacing:.5px;
}

/* Ưu tiên cao: selector dài + !important */
#secondary .widget_block .wp-block-heading{
    background:#2b2d42 !important;  /* nền */
    color:#ffffff   !important;      /* chữ */
    padding:8px 14px;
    margin:0 0 18px;
    font-size:1.05rem;
    font-weight:600;
    border-radius:4px;
    text-transform:uppercase;
    letter-spacing:.5px;
}

/* Dải màu nhấn bên trái (tuỳ chọn) */
#secondary .widget_block .wp-block-heading::before{
    content:"";
    display:inline-block;
    width:4px;
    height:100%;
    margin-right:8px;
    background:#ef476f;
}

@media (max-width: 768px) {
    .downloads-list li {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    .downloads-list .file-label {
        min-width: auto;
        width: auto;
    }
    .downloads-list .download-link-wrap {
        width: 100%;
        justify-content: center;
    }
    .downloads-list .download-link {
        width: 100%;
        min-width: auto;
    }
}

.post-tags {
    margin-top: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.post-tag {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px 3px 7px;
    background: #f8fafc;
    border: 1px solid #d0d7de;
    border-radius: 16px;
    font-size: 14px;
    color: #0073aa;
    text-decoration: none;
    transition: background 0.2s, color 0.2s, border 0.2s;
    font-weight: 500;
}

.post-tag:hover {
    background: #e0f2fe;
    color: #0369a1;
    border-color: #0369a1;
}

.post-tag .material-symbols-outlined {
    font-size: 16px;
    margin-right: 4px;
    color: #22c55e;
    vertical-align: middle;
}

.post-views-icon {
    font-size: 18px;
    display: inline-flex;
    align-items: center;
    vertical-align: middle;
}

/* Tabs UI cải tiến */
.post-tabs {
    display: flex;
    border-bottom: 2px solid #e0e0e0;
    margin-bottom: 20px;
    background: #f9f9f9;
    border-radius: 8px 8px 0 0;
    overflow: hidden;
}
.tab-btn {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-bottom: none;
    padding: 12px 32px;
    cursor: pointer;
    font-size: 16px;
    color: #333;
    transition: background 0.2s, color 0.2s, border 0.2s;
    border-radius: 8px 8px 0 0;
    margin-right: 2px;
    outline: none;
    position: relative;
    top: 2px;
    font-weight: 500;
    z-index: 1;
}
.tab-btn:last-child {
    margin-right: 0;
}
.tab-btn.active {
    background: #f4fff7;
    color: #22c55e;
    border-bottom: 2px solid #22c55e;
    font-weight: bold;
    z-index: 2;
}
.tab-content {
    display: none;
}
.tab-content.active {
    display: block;
}

.entry-content > .post-requirements,
.entry-content > .post-downloads {
    padding: 20px;
}

/* Gallery grid cho post-gallery */
.post-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.post-gallery img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 4px;
    transition: transform 0.3s ease;
}

.post-gallery img:hover {
    transform: scale(1.05);
}
