/* 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;
}
.skip-to-downloads-btn {
    display: inline-block;
    font-weight: 600;
    font-size: 16px;
    color: #22c55e !important;
    text-decoration: none;
}

.skip-to-downloads-btn:hover {
    text-decoration: underline;
}

.skip-to-downloads-btn .material-symbols-outlined {
    font-size: 20px;
    vertical-align: middle;
    display: inline-block;
    line-height: 1;
   margin-bottom: 5px;
}
/* Cho nav Rank-Math trông y hệt breadcrumb cũ */
.rm-breadcrumb            { font-size: 14px; line-height: 1.4; margin-bottom: 8px; }
.rm-breadcrumb a          { color: #3498db; text-decoration: none; }
.rm-breadcrumb a:hover    { text-decoration: underline; }
.rm-breadcrumb .separator { margin: 0 4px; color: #888; }

/* Nếu trước đây bạn đặt class .category-breadcrumb, 
   chỉ cần “điều khiển” thêm ở đây để code CSS cũ vẫn áp lên: */
.category-breadcrumb,
.rm-breadcrumb {
    /* các khai báo cũ của bạn */
}

.single-post .wp-block-button__link {
    color: #fff !important;
}

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

/* Tabs container */
.tabs-wrap{margin-top:12px}
.tabs-header{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:12px}
.tab-btn{background:#1e2227;color:#cfd3da;border:0;padding:8px 14px;border-radius:10px;cursor:pointer;font-weight:600;line-height:1}
.tab-btn.active{background:#2a2f35;color:#fff}
.tab-content{display:none}
.tab-content.active{display:block}

/* Gallery (Fancybox anchors) */
.gallery-tab a[data-fancybox="gallery"]{display:block;margin:10px 0;border-radius:10px;overflow:hidden}

/* Versions (download links) */
.versions-box{margin-top:8px;padding:16px;border:1px solid #2b2f35;border-radius:12px;background:#111}
.versions-box .versions-list{display:grid;gap:12px}
.version-item{padding:10px 12px;border:1px solid #24282d;border-radius:10px;background:#161a20}
.version-meta{display:flex;gap:8px;align-items:center;margin-bottom:8px}
.ver-badge{font-size:12px;padding:4px 8px;border-radius:999px;background:#23272e;color:#cfd3da}
.downloads-list{list-style:none;margin:0;padding:0;display:grid;gap:8px}
.download-item{display:flex;gap:12px;align-items:center;justify-content:space-between}
.file-label{opacity:.9}
.btn.btn-download{background:#2a2f35;color:#fff;padding:6px 12px;border-radius:10px;text-decoration:none;display:inline-flex;align-items:center}
.btn.btn-download:hover{background:#39414a}
.download-note {
  font-size: 12px;
  color: #ccc;
  border: 1px dashed #444;   /* viền gạch đứt */
  margin-bottom: 20px;
  border-radius: 5px;
  background: #1a1a1a;
}

.download-note ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.download-note li {
  display: flex;
  align-items: flex-start;
  margin-bottom: 6px;
}

.download-note li:last-child {
  margin-bottom: 0;
}

.download-note .material-symbols-outlined {
  font-size: 16px;
  margin-right: 6px;
  color: #4CAF50; /* xanh lá check */
  line-height: 1.4;
}

.post-head-with-thumb{
  display:flex;
  align-items:flex-start;
  gap:16px;
  margin-bottom:0;
}

.post-thumb-col{
  flex:0 0 auto;
}

.post-thumb-icon{
  width:64px;
  height:64px;
  object-fit:cover;
  border-radius:12px;
  box-shadow:0 2px 10px rgba(0,0,0,.18);
  display:block;
}

.post-thumb-placeholder{
  width:64px;
  height:64px;
  border-radius:12px;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:34px;
  background:rgba(255,255,255,0.06);
  border:1px dashed rgba(255,255,255,0.25);
  color:#ccc;
}

.post-head-col{
  min-width:0;
}

.post-title-text{
  margin:0 0 6px;
  line-height:1.3;
  font-size:22px;
  font-weight:600;
}

.post-meta-info{
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:8px;
  font-size:14px;
  color:var(--muted, #9aa1a9);
}

.post-meta-info .separator{
  opacity:.5;
}

.post-mod-types{
  display:flex;
  align-items:center;
  gap:6px;
}

.post-mod-types .mod-type-item{
  padding:2px 6px;
  border-radius:999px;
  font-size:11px;
  line-height:1.6;
  background:rgba(255,255,255,.08);
}

.post-mod-types .mod-type-fabric{
  background:#113b22;
  color:#bdf0c9;
  border:1px solid #1e7a3a;
}


.single #site-footer {
    max-width: none;
    width: 100%;
    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;
}
.entry-content p,
.entry-content pre,
.entry-content code {
  word-break: break-word;
  overflow-wrap: break-word;
}

.entry-content code,
.entry-content pre {
  white-space: pre-wrap;
  overflow-x: auto;
}

/* 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 chung cho mod-type và map-type trên single post */
.post-mod-types,
.post-map-types {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

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

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

.mod-type-item,
.map-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,
.map-type-item:hover {
    background: #e0f7e9;
    color: #22c55e;
    border-color: #22c55e;
}

/* Style active/primary khi hiển thị trên single post */
.post-mod-types .mod-type-item,
.post-map-types .map-type-item {
    background: #22c55e;
    color: #fff !important;
    border-color: #22c55e;
}

.post-mod-types .mod-type-item:hover,
.post-map-types .map-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: 0;
        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) {
  .tabs-wrap .versions-tab .download-item {
    flex-direction: column;
    align-items: stretch;
  }
  .tabs-wrap .versions-tab .file-label {
    min-width: 0;
    width: 100%;
  }
  .btn.btn-download {
    justify-content: center;
  }
}

.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;
    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);
}
.post-head-with-thumb { gap: 12px; }
  .post-thumb-icon,
  .post-thumb-placeholder { width: 52px; height: 52px; }
  .post-title-text { font-size: 18px; }
  .post-meta-info { font-size: 13px; }