/* MNetWork Remote CMS - Redesigned Stylesheet */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Fallback variables just in case layout.php doesn't load them */
:root {
    --bg-primary: #0a0a0a;
    --bg-secondary: #111111;
    --bg-tertiary: #161616;
    --bg-card: #0f0f0f;
    --text-primary: #f5f5f5;
    --text-secondary: #a0a0a0;
    --text-muted: #555555;
    --accent: #e8e8e8;
    --accent-hover: #ffffff;
    --border-color: #1a1a1a;
    --font-heading: sans-serif;
    --font-body: sans-serif;
    --radius: 0;
    --box-margin: 0;
    --box-border: 1px solid var(--border-color);
    --title-size: 22px;
    --header-pad: 0.75rem;
    --max-width: 1280px;
    --header-bg: var(--bg-primary);
    --header-text: var(--text-primary);
    --footer-bg: var(--bg-secondary);
    --footer-text: var(--text-secondary);
}

body {
    font-family: var(--font-body);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    font-size: 15px;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s ease;
}

img {
    max-width: 100%;
    display: block;
}

/* ===== STICKY HEADER ===== */
.header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--header-bg, var(--bg-primary));
    border-bottom: 1px solid var(--border-color);
}

.header-inner {
    max-width: var(--max-width, 1280px);
    margin: 0 auto;
    padding: var(--header-pad, 0.75rem) 40px;
    min-height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-family: var(--font-heading);
    font-size: var(--title-size, 22px);
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--header-text, var(--text-primary));
}

.logo span {
    font-weight: 300;
    color: var(--header-text, var(--text-primary));
    opacity: 0.6;
}
.site-tagline {
    font-size: 12px;
    color: var(--header-text, var(--text-primary));
    opacity: 0.7;
    margin-left: 10px;
}

.nav {
    display: flex;
    gap: 36px;
    align-items: center;
}

.nav a {
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--header-text, var(--text-primary));
    opacity: 0.8;
}

.nav a:hover {
    opacity: 1;
}

.nav a.active {
    opacity: 1;
}

.menu-toggle {
    display: none;
    background: none;
    border: 1px solid var(--border-color);
    border-radius: var(--radius, 0);
    padding: .4rem .65rem;
    font-size: 1.25rem;
    cursor: pointer;
    color: var(--header-text, var(--text-primary));
}

/* ===== MAIN LAYOUT ===== */
.main-wrapper {
    max-width: var(--max-width, 1280px);
    margin: 0 auto;
    padding: 0 40px;
    display: grid;
    grid-template-columns: 1fr min(340px, 30%);
    gap: 0;
    flex: 1;
}
.main-wrapper.sidebar-left {
    grid-template-columns: min(340px, 30%) 1fr;
}
.main-wrapper.no-sidebar {
    grid-template-columns: 1fr;
}

.content-area {
    border-right: 1px solid var(--border-color);
    padding: 40px 40px 40px 0;
}
.main-wrapper.sidebar-left .content-area {
    border-right: none;
    border-left: 1px solid var(--border-color);
    padding: 40px 0 40px 40px;
}
.main-wrapper.no-sidebar .content-area {
    border-right: none;
    padding-right: 0;
}

.sidebar {
    padding-left: 40px;
    padding-top: 40px;
}
.main-wrapper.sidebar-left .sidebar {
    padding-left: 0;
    padding-right: 40px;
}

/* ===== POSTS GRID ===== */
.posts-section {
    padding: 0 0 60px 0;
}
.posts-list {
    display: block;
}
.posts-layout-grid .posts-list,
.posts-layout-magazine .posts-list {
    display: grid;
    gap: 24px;
}
.posts-layout-grid .posts-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}
.posts-layout-magazine .posts-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}
.posts-layout-magazine .post-card.featured {
    grid-column: 1 / -1;
}
.posts-layout-list .posts-list {
    display: block;
}
.posts-layout-list .post-card {
    background: transparent;
    border-radius: 0;
    padding: 28px 0;
}
.posts-layout-list .post-card:hover {
    background: transparent;
}
.posts-layout-list .post-card + .post-card {
    border-top: 1px solid var(--border-color);
}

.posts-layout-timeline .posts-list {
    position: relative;
    padding-left: 22px;
}
.posts-layout-timeline .posts-list::before {
    content: '';
    position: absolute;
    left: 6px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--border-color);
}
.posts-layout-timeline .post-card {
    position: relative;
    background: transparent;
    border-radius: 0;
    padding: 28px 0 28px 22px;
}
.posts-layout-timeline .post-card::before {
    content: '';
    position: absolute;
    left: -2px;
    top: 38px;
    width: 12px;
    height: 12px;
    border-radius: 999px;
    background: var(--bg-primary);
    border: 2px solid var(--accent);
}
.posts-layout-timeline .post-card:hover {
    background: transparent;
}
.posts-layout-timeline .post-card + .post-card {
    border-top: 1px solid var(--border-color);
}
.posts-layout-grid .post-card,
.posts-layout-magazine .post-card {
    margin-bottom: 0;
    border: var(--box-border, 1px solid var(--border-color));
    border-bottom: none;
}
.posts-layout-grid .post-card.featured,
.posts-layout-magazine .post-card.featured {
    padding: 40px 36px;
}

.section-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.section-title {
    font-family: var(--font-heading);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--text-muted);
}

.view-all {
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--text-secondary);
}
.view-all:hover {
    color: var(--text-primary);
}

/* Post Card (No Images) */
.post-card {
    display: block;
    background: var(--bg-card);
    margin-bottom: var(--box-margin, 0);
    border-bottom: var(--box-border, 1px solid var(--border-color));
    transition: background 0.3s ease;
    border-radius: var(--radius, 0);
    padding: 32px 36px;
}
body[data-card-style="shadow"] .post-card {
    border: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.25);
}
body[data-card-style="flat"] .post-card {
    background: transparent;
    border-radius: 0;
    padding: 28px 0;
}

.post-card:hover {
    background: var(--bg-secondary);
}

.post-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 14px;
    font-size: 12px;
    color: var(--text-muted);
    letter-spacing: 0.5px;
}
.post-meta .dot {
    width: 3px;
    height: 3px;
    background: var(--text-muted);
}
.post-meta .category-tag {
    color: var(--text-primary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.post-title {
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: -0.5px;
    margin-bottom: 12px;
    color: var(--text-primary);
}
.post-title a { color: var(--text-primary); }
.post-title a:hover {
    color: var(--accent-hover);
}

.post-excerpt {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 20px;
}

.post-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.read-time {
    font-size: 11px;
    color: var(--text-muted);
    letter-spacing: 1px;
    text-transform: uppercase;
    font-weight: 500;
}

.read-more {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.read-more:hover {
    color: var(--text-primary);
}

/* Featured Post (first) */
.post-card.featured {
    padding: 40px 36px;
    background: var(--bg-secondary);
}

.post-card.featured .post-title {
    font-size: 32px;
}

/* === Single Post / Page === */
.single-post-wrapper {
    max-width: 800px;
    margin: 0 auto;
}

.post-header {
    margin-bottom: 40px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 20px;
}

.entry-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.entry-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-secondary);
}
.entry-content h2, .entry-content h3 {
    font-family: var(--font-heading);
    color: var(--text-primary);
    margin: 2rem 0 1rem;
}
.entry-content p {
    margin-bottom: 1.5rem;
}
.entry-content ul, .entry-content ol {
    margin: 1.5rem 0 1.5rem 2rem;
}
.entry-content blockquote {
    border-left: 4px solid var(--border-color);
    padding: 1rem 1.5rem;
    margin: 2rem 0;
    background: var(--bg-secondary);
    color: var(--text-muted);
    font-style: italic;
}

/* ===== SIDEBAR ===== */
.sidebar-block {
    padding: 40px 0;
    border-bottom: var(--box-border, 1px solid var(--border-color));
}

.sidebar-block:first-child {
    padding-top: 0;
}
.sidebar-block:last-child {
    border-bottom: none;
}

.sidebar-title {
    font-family: var(--font-heading);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 24px;
}

/* Popular Posts */
.popular-item {
    display: flex;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid var(--border-color);
    align-items: flex-start;
}

.popular-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.popular-item:first-child {
    padding-top: 0;
}

.popular-num {
    font-family: var(--font-heading);
    font-size: 28px;
    font-weight: 700;
    color: var(--border-color);
    line-height: 1;
    min-width: 32px;
}

.popular-content {
    flex: 1;
}

.popular-title {
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 6px;
    color: var(--text-primary);
}

.popular-title:hover {
    color: var(--accent-hover);
}

.popular-date {
    font-size: 11px;
    color: var(--text-muted);
    letter-spacing: 0.5px;
}

/* Tags Cloud */
.tags-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag {
    background: var(--bg-secondary);
    color: var(--text-secondary);
    font-size: 12px;
    font-weight: 500;
    padding: 8px 16px;
    letter-spacing: 0.5px;
    transition: all 0.2s ease;
    border-radius: var(--radius, 0);
}

.tag:hover {
    background: var(--text-primary);
    color: var(--bg-primary);
}

/* HTML Widget Content */
.widget-content {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ===== FOOTER ===== */
.footer {
    background: var(--footer-bg, var(--bg-secondary));
    border-top: 1px solid var(--border-color);
    margin-top: auto;
    color: var(--footer-text, var(--text-secondary));
}

.footer-inner {
    max-width: var(--max-width, 1280px);
    margin: 0 auto;
    padding: 60px 40px 40px;
}
.footer .logo,
.footer .footer-desc,
.footer .footer-links a,
.footer .copyright {
    color: var(--footer-text, var(--text-secondary));
    opacity: 0.9;
}
.footer .footer-title {
    color: var(--footer-text, var(--text-secondary));
    opacity: 0.75;
}
.footer .footer-links a:hover {
    opacity: 1;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
}

.footer-brand .logo {
    margin-bottom: 20px;
    display: inline-block;
}

.footer-desc {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.7;
    max-width: 320px;
}

.footer-title {
    font-family: var(--font-heading);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 24px;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    font-size: 14px;
    color: var(--text-secondary);
}

.footer-links a:hover {
    color: var(--text-primary);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 30px;
    border-top: 1px solid var(--border-color);
}

.copyright {
    font-size: 12px;
    color: var(--text-muted);
    letter-spacing: 0.5px;
}


/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .main-wrapper {
        grid-template-columns: 1fr;
    }
    .content-area {
        border-right: none;
        border-bottom: 1px solid var(--border-color);
        padding-right: 0;
    }
    .sidebar {
        padding-left: 0;
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .header-inner {
        padding: 0 20px;
    }
    .menu-toggle {
        display: block;
    }
    .nav {
        display: none;
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        background: var(--bg-primary);
        flex-direction: column;
        padding: 20px;
        border-bottom: 1px solid var(--border-color);
    }
    .nav.open {
        display: flex;
    }
    .main-wrapper {
        padding: 0 20px;
    }
    .content-area {
        padding: 20px 0;
    }
    .post-card {
        padding: 24px 20px;
    }
    body[data-card-style="flat"] .post-card {
        padding: 24px 0;
    }
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .footer-bottom {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
}

body[data-header-style="centered"] .header-inner {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
}
body[data-header-style="centered"] .site-tagline {
    margin-left: 0;
}
body[data-header-style="centered"] .nav {
    justify-content: center;
    flex-wrap: wrap;
    gap: 18px;
}

body[data-theme-preset="minimal"] .header {
    position: static;
}
body[data-theme-preset="minimal"] .post-card {
    background: transparent;
}

body[data-theme-preset="classic"] {
    --font-heading: Georgia, "Times New Roman", serif;
    --font-body: Georgia, "Times New Roman", serif;
}
body[data-theme-preset="classic"] .nav a {
    text-transform: none;
    letter-spacing: 0.5px;
}

body[data-theme-preset="brutal"] {
    --radius: 0px;
}
body[data-theme-preset="brutal"] .post-card {
    border: 2px solid var(--border-color);
}
body[data-theme-preset="brutal"] .nav a {
    letter-spacing: 0;
}

body[data-blog-variant="editorial"] {
    --font-heading: Georgia, "Times New Roman", serif;
}
body[data-blog-variant="editorial"] .post-title {
    letter-spacing: -0.8px;
    font-weight: 700;
}
body[data-blog-variant="editorial"] .post-excerpt {
    font-size: 15px;
}
body[data-blog-variant="editorial"] .posts-section {
    padding-bottom: 80px;
}

body[data-blog-variant="minimal"] .section-header {
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 28px;
}
body[data-blog-variant="minimal"] .post-excerpt {
    display: none;
}
body[data-blog-variant="minimal"] .read-more svg {
    display: none;
}

body[data-blog-variant="timeline"] .posts-layout-stack .posts-list {
    position: relative;
    padding-left: 22px;
}
body[data-blog-variant="timeline"] .posts-layout-stack .posts-list::before {
    content: '';
    position: absolute;
    left: 6px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--border-color);
}
body[data-blog-variant="timeline"] .posts-layout-stack .post-card {
    position: relative;
    background: transparent;
    border-radius: 0;
    padding: 28px 0 28px 22px;
}
body[data-blog-variant="timeline"] .posts-layout-stack .post-card::before {
    content: '';
    position: absolute;
    left: -2px;
    top: 38px;
    width: 12px;
    height: 12px;
    border-radius: 999px;
    background: var(--bg-primary);
    border: 2px solid var(--accent);
}

/* ===== TEMPLATE VARIANTS (wzor2-wzor7) ===== */

body[data-theme-template="wzor2"] {
    --bg-primary: #f5f7fb;
    --bg-secondary: #ffffff;
    --bg-tertiary: #eef2ff;
    --bg-card: #ffffff;
    --text-primary: #1e293b;
    --text-secondary: #334155;
    --text-muted: #64748b;
    --accent: #2563eb;
    --accent-hover: #7c3aed;
    --border-color: #e2e8f0;
    --radius: 24px;
    --box-margin: 0 0 2rem 0;
    --box-border: 1px solid #eef2ff;
    --header-bg: rgba(255, 255, 255, 0.96);
    --header-text: #334155;
    --footer-bg: #ffffff;
    --footer-text: #475569;
    --title-size: 1.75rem;
    --header-pad: 1rem;
    --max-width: 1280px;
}
body[data-theme-template="wzor2"] .header {
    backdrop-filter: blur(8px);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}
body[data-theme-template="wzor2"] .logo {
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    letter-spacing: -0.03em;
    text-transform: none;
}
body[data-theme-template="wzor2"] .nav a {
    text-transform: none;
    letter-spacing: 0;
    font-size: 1rem;
    font-weight: 500;
}
body[data-theme-template="wzor2"] .nav a.active {
    color: var(--accent);
    border-bottom: 2px solid var(--accent);
    padding-bottom: 4px;
}
body[data-theme-template="wzor2"] .main-wrapper {
    gap: 2.5rem;
    padding-top: 2rem;
    padding-bottom: 2rem;
}
body[data-theme-template="wzor2"] .content-area,
body[data-theme-template="wzor2"] .main-wrapper.sidebar-left .content-area,
body[data-theme-template="wzor2"] .sidebar,
body[data-theme-template="wzor2"] .main-wrapper.sidebar-left .sidebar {
    border: none;
    padding: 0;
}
body[data-theme-template="wzor2"] .section-header {
    border-bottom: none;
    margin-bottom: 1.5rem;
    padding-bottom: 0;
}
body[data-theme-template="wzor2"] .section-title {
    font-size: 1.15rem;
    letter-spacing: 0;
    text-transform: none;
    color: var(--text-primary);
}
body[data-theme-template="wzor2"] .post-card,
body[data-theme-template="wzor2"] .sidebar-block {
    border: 1px solid #eef2ff;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
    border-radius: 24px;
}
body[data-theme-template="wzor2"] .post-card {
    padding: 1.6rem 1.8rem;
    margin-bottom: 2rem;
}
body[data-theme-template="wzor2"] .post-card:hover {
    transform: translateY(-3px);
    background: #ffffff;
    box-shadow: 0 18px 36px rgba(15, 23, 42, 0.1);
}
body[data-theme-template="wzor2"] .post-meta .category-tag {
    background: #eef2ff;
    color: #1e40af;
    padding: 0.25rem 0.7rem;
    border-radius: 999px;
    letter-spacing: 0.03em;
}
body[data-theme-template="wzor2"] .post-meta .dot {
    display: none;
}
body[data-theme-template="wzor2"] .post-title {
    font-size: 1.7rem;
    letter-spacing: -0.03em;
}
body[data-theme-template="wzor2"] .post-excerpt {
    border-left: 3px solid #e2e8f0;
    padding-left: 1rem;
}
body[data-theme-template="wzor2"] .read-more {
    color: var(--accent);
    text-transform: none;
    letter-spacing: 0;
    font-size: 0.95rem;
}
body[data-theme-template="wzor2"] .sidebar {
    gap: 2rem;
}
body[data-theme-template="wzor2"] .sidebar-block {
    padding: 1.5rem;
    margin-bottom: 0;
}
body[data-theme-template="wzor2"] .sidebar-title {
    font-size: 1.1rem;
    text-transform: none;
    letter-spacing: -0.01em;
    color: var(--text-primary);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #eef2ff;
}
body[data-theme-template="wzor2"] .tag {
    border-radius: 999px;
}
body[data-theme-template="wzor2"] .footer {
    box-shadow: inset 0 1px 0 #e2e8f0;
}
body[data-theme-template="wzor2"] .footer-inner {
    padding-top: 1.8rem;
    padding-bottom: 1.8rem;
}
body[data-theme-template="wzor2"] .footer-bottom {
    border-top: none;
}

body[data-theme-template="wzor3"] {
    --bg-primary: #f5f7fc;
    --bg-secondary: #ffffff;
    --bg-tertiary: #eef2fa;
    --bg-card: #ffffff;
    --text-primary: #1a2c3e;
    --text-secondary: #2c4a66;
    --text-muted: #5b6f82;
    --accent: #2b6c9e;
    --accent-hover: #1e6f9f;
    --border-color: #e2edf7;
    --radius: 28px;
    --box-border: 1px solid rgba(0, 0, 0, 0.03);
    --header-bg: rgba(255, 255, 255, 0.96);
    --header-text: #2c3e50;
    --footer-bg: #ffffff;
    --footer-text: #2c4a66;
    --title-size: 1.7rem;
    --header-pad: 1rem;
    --max-width: 1280px;
}
body[data-theme-template="wzor3"] .header {
    backdrop-filter: blur(12px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
}
body[data-theme-template="wzor3"] .logo {
    background: linear-gradient(135deg, #1e3c72, #2b4c7c);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    letter-spacing: -0.03em;
    text-transform: none;
}
body[data-theme-template="wzor3"] .nav a {
    text-transform: none;
    letter-spacing: 0;
    font-size: 1rem;
}
body[data-theme-template="wzor3"] .main-wrapper {
    gap: 3rem;
    padding-top: 3rem;
    padding-bottom: 4rem;
}
body[data-theme-template="wzor3"] .content-area,
body[data-theme-template="wzor3"] .main-wrapper.sidebar-left .content-area,
body[data-theme-template="wzor3"] .sidebar,
body[data-theme-template="wzor3"] .main-wrapper.sidebar-left .sidebar {
    border: none;
    padding: 0;
}
body[data-theme-template="wzor3"] .section-header {
    border-bottom: none;
}
body[data-theme-template="wzor3"] .section-title {
    font-size: 2rem;
    text-transform: none;
    letter-spacing: -0.02em;
    color: #0f2c3f;
    border-left: 5px solid var(--accent);
    padding-left: 1rem;
}
body[data-theme-template="wzor3"] .post-card,
body[data-theme-template="wzor3"] .sidebar-block {
    border-radius: 28px;
    box-shadow: 0 10px 25px -8px rgba(0, 0, 0, 0.05);
}
body[data-theme-template="wzor3"] .post-card {
    padding: 1.8rem;
    margin-bottom: 2rem;
}
body[data-theme-template="wzor3"] .post-card:hover {
    transform: translateY(-4px);
    background: #ffffff;
    box-shadow: 0 20px 30px -12px rgba(0, 0, 0, 0.1);
}
body[data-theme-template="wzor3"] .post-meta {
    text-transform: uppercase;
}
body[data-theme-template="wzor3"] .post-meta .category-tag {
    background: #eef2fa;
    color: #1e5a7d;
    padding: 0.2rem 0.7rem;
    border-radius: 40px;
}
body[data-theme-template="wzor3"] .post-title {
    font-size: 1.7rem;
}
body[data-theme-template="wzor3"] .read-more {
    text-transform: none;
    letter-spacing: 0;
    color: var(--accent);
}
body[data-theme-template="wzor3"] .sidebar {
    gap: 2.2rem;
}
body[data-theme-template="wzor3"] .sidebar-block {
    padding: 1.5rem;
    border: 1px solid #eef2f8;
}
body[data-theme-template="wzor3"] .sidebar-title {
    font-size: 1.2rem;
    text-transform: none;
    letter-spacing: 0;
    color: #1e3a5f;
    margin-bottom: 1rem;
    padding-bottom: 0.6rem;
    border-bottom: 2px solid #e2e8f0;
}
body[data-theme-template="wzor3"] .popular-num {
    color: #c7d7e9;
}
body[data-theme-template="wzor3"] .tag {
    background: #eef2fa;
    color: #1e5a7d;
    border-radius: 999px;
}
body[data-theme-template="wzor3"] .tag:hover {
    background: #dfe7f2;
    color: #1a2c3e;
}
body[data-theme-template="wzor3"] .footer-inner {
    padding-top: 2.5rem;
    padding-bottom: 2rem;
}

body[data-theme-template="wzor4"] {
    --bg-primary: #f8fafc;
    --bg-secondary: #ffffff;
    --bg-tertiary: #e0e7ff;
    --bg-card: #ffffff;
    --text-primary: #0f172a;
    --text-secondary: #334155;
    --text-muted: #64748b;
    --accent: #4f46e5;
    --accent-hover: #4338ca;
    --border-color: #e2e8f0;
    --radius: 12px;
    --box-border: 1px solid var(--border-color);
    --header-bg: rgba(255, 255, 255, 0.85);
    --header-text: #334155;
    --footer-bg: #0f172a;
    --footer-text: #cbd5e1;
    --title-size: 1.5rem;
    --header-pad: 1rem;
    --max-width: 1200px;
}
body[data-theme-template="wzor4"] .header {
    backdrop-filter: blur(12px);
}
body[data-theme-template="wzor4"] .logo {
    letter-spacing: -0.02em;
    text-transform: none;
    font-weight: 800;
}
body[data-theme-template="wzor4"] .nav a {
    text-transform: none;
    letter-spacing: 0;
    font-size: 0.95rem;
}
body[data-theme-template="wzor4"] .main-wrapper {
    gap: 2.5rem;
    padding-top: 2.5rem;
}
body[data-theme-template="wzor4"] .content-area,
body[data-theme-template="wzor4"] .main-wrapper.sidebar-left .content-area,
body[data-theme-template="wzor4"] .sidebar,
body[data-theme-template="wzor4"] .main-wrapper.sidebar-left .sidebar {
    border: none;
    padding: 0;
}
body[data-theme-template="wzor4"] .posts-section {
    counter-reset: postthumb;
}
body[data-theme-template="wzor4"] .section-header {
    border-bottom: none;
}
body[data-theme-template="wzor4"] .section-title {
    font-size: 1.35rem;
    letter-spacing: 0;
    text-transform: none;
    color: var(--text-primary);
}
body[data-theme-template="wzor4"] .post-card {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    padding: 0;
    margin-bottom: 2rem;
}
body[data-theme-template="wzor4"] .post-card::before {
    counter-increment: postthumb;
    content: counter(postthumb, decimal-leading-zero);
    display: flex;
    align-items: center;
    justify-content: center;
    height: 180px;
    background: linear-gradient(135deg, #6366f1 0%, #a855f7 100%);
    color: #ffffff;
    font-size: 3rem;
    font-weight: 700;
    opacity: 0.92;
}
body[data-theme-template="wzor4"] .post-card:nth-child(3n)::before {
    background: linear-gradient(135deg, #f59e0b 0%, #ef4444 100%);
}
body[data-theme-template="wzor4"] .post-card:nth-child(3n + 2)::before {
    background: linear-gradient(135deg, #0ea5e9 0%, #22c55e 100%);
}
body[data-theme-template="wzor4"] .post-card > * {
    padding-left: 1.75rem;
    padding-right: 1.75rem;
}
body[data-theme-template="wzor4"] .post-meta {
    padding-top: 1.25rem;
    margin-bottom: 0.75rem;
}
body[data-theme-template="wzor4"] .post-meta .category-tag {
    background: #e0e7ff;
    color: var(--accent);
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
}
body[data-theme-template="wzor4"] .post-title {
    font-size: 1.5rem;
    font-weight: 700;
}
body[data-theme-template="wzor4"] .post-excerpt {
    margin-bottom: 1.5rem;
}
body[data-theme-template="wzor4"] .post-footer {
    padding-bottom: 1.75rem;
}
body[data-theme-template="wzor4"] .read-more {
    text-transform: none;
    letter-spacing: 0;
    font-size: 0.95rem;
    color: var(--accent);
}
body[data-theme-template="wzor4"] .sidebar {
    gap: 1.5rem;
}
body[data-theme-template="wzor4"] .sidebar-block {
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    padding: 1.5rem;
}
body[data-theme-template="wzor4"] .sidebar-title {
    font-size: 1.1rem;
    text-transform: none;
    letter-spacing: 0;
    color: var(--text-primary);
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 0.75rem;
}
body[data-theme-template="wzor4"] .tag {
    background: #f8fafc;
    border: 1px solid var(--border-color);
    border-radius: 6px;
}
body[data-theme-template="wzor4"] .tag:hover {
    background: var(--accent);
    color: #ffffff;
}
body[data-theme-template="wzor4"] .footer .logo,
body[data-theme-template="wzor4"] .footer .footer-desc,
body[data-theme-template="wzor4"] .footer .footer-links a,
body[data-theme-template="wzor4"] .footer .copyright,
body[data-theme-template="wzor4"] .footer .footer-title {
    color: #cbd5e1;
}
body[data-theme-template="wzor4"] .footer .footer-links a:hover {
    color: #ffffff;
}

body[data-theme-template="wzor5"] {
    --bg-primary: #0a0c10;
    --bg-secondary: #111318;
    --bg-tertiary: #0f1117;
    --bg-card: #111318;
    --text-primary: #eef2fb;
    --text-secondary: #cbd8ec;
    --text-muted: #8e9fb1;
    --accent: #9bbaf0;
    --accent-hover: #ffffff;
    --border-color: #252a36;
    --radius: 0px;
    --box-margin: 0;
    --box-border: 1px solid #252a36;
    --header-bg: #0f1117;
    --header-text: #cfddee;
    --footer-bg: #0b0d12;
    --footer-text: #b7c3da;
    --title-size: 1.7rem;
    --header-pad: 1rem;
    --max-width: 1400px;
}
body[data-theme-template="wzor5"] .header {
    box-shadow: none;
}
body[data-theme-template="wzor5"] .logo {
    background: linear-gradient(135deg, #c0d4ff, #9bb8e8);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-transform: none;
    letter-spacing: -0.02em;
}
body[data-theme-template="wzor5"] .nav a {
    text-transform: none;
    letter-spacing: 0;
    font-size: 1rem;
}
body[data-theme-template="wzor5"] .main-wrapper {
    gap: 0;
    padding-top: 2rem;
}
body[data-theme-template="wzor5"] .content-area,
body[data-theme-template="wzor5"] .main-wrapper.sidebar-left .content-area {
    border-right: none;
    border-left: none;
    padding: 0;
}
body[data-theme-template="wzor5"] .sidebar,
body[data-theme-template="wzor5"] .main-wrapper.sidebar-left .sidebar {
    padding: 0;
    background: #0d0f14;
    border-left: 1px solid #242933;
}
body[data-theme-template="wzor5"] .main-wrapper.sidebar-left .sidebar {
    border-left: none;
    border-right: 1px solid #242933;
}
body[data-theme-template="wzor5"] .section-header {
    border-bottom: none;
    margin-bottom: 1rem;
}
body[data-theme-template="wzor5"] .section-title {
    font-size: 2rem;
    text-transform: none;
    letter-spacing: -0.01em;
    color: #f0f4fc;
    border-left: 5px solid #6688cc;
    padding-left: 1rem;
}
body[data-theme-template="wzor5"] .post-card,
body[data-theme-template="wzor5"] .sidebar-block,
body[data-theme-template="wzor5"] .menu-toggle,
body[data-theme-template="wzor5"] .tag {
    border-radius: 0 !important;
}
body[data-theme-template="wzor5"] .post-card {
    border: none;
    border-bottom: 1px solid #252a36;
    box-shadow: none;
    padding: 1.8rem;
}
body[data-theme-template="wzor5"] .post-card:hover {
    background: #151a22;
}
body[data-theme-template="wzor5"] .post-card:last-child {
    border-bottom: none;
}
body[data-theme-template="wzor5"] .post-meta .category-tag {
    background: #1e2533;
    color: #bdd4ff;
    padding: 0.2rem 0.7rem;
}
body[data-theme-template="wzor5"] .post-meta .dot {
    background: #7c9bd6;
}
body[data-theme-template="wzor5"] .post-title a:hover,
body[data-theme-template="wzor5"] .read-more:hover {
    color: #ffffff;
}
body[data-theme-template="wzor5"] .sidebar {
    gap: 0;
}
body[data-theme-template="wzor5"] .sidebar-block {
    background: #111318;
    border: none;
    border-bottom: 1px solid #252a36;
    padding: 1.8rem;
}
body[data-theme-template="wzor5"] .sidebar-title {
    font-size: 1.35rem;
    text-transform: none;
    letter-spacing: 0;
    color: #e8edff;
    border-bottom: 2px solid #2c3342;
    padding-bottom: 0.6rem;
}
body[data-theme-template="wzor5"] .popular-num {
    color: #42506a;
}
body[data-theme-template="wzor5"] .tag {
    background: #1e2535;
    color: #c6d9ff;
}
body[data-theme-template="wzor5"] .tag:hover {
    background: #2f3a4e;
    color: #ffffff;
}
body[data-theme-template="wzor5"] .footer {
    margin-top: 0;
}
body[data-theme-template="wzor5"] .footer-inner {
    padding-top: 2.5rem;
}

body[data-theme-template="wzor6"] {
    --bg-primary: #f5f7fc;
    --bg-secondary: #ffffff;
    --bg-tertiary: #eef2fa;
    --bg-card: #ffffff;
    --text-primary: #1a2c3e;
    --text-secondary: #2c4a66;
    --text-muted: #5b6f82;
    --accent: #2b6c9e;
    --accent-hover: #1e6f9f;
    --border-color: #cfdfed;
    --radius: 28px;
    --box-margin: 0 0 2rem 0;
    --box-border: 1px solid #eef2f8;
    --header-bg: rgba(255, 255, 255, 0.96);
    --header-text: #2c3e50;
    --footer-bg: #ffffff;
    --footer-text: #2c4a66;
    --title-size: 1.7rem;
    --header-pad: 1rem;
    --max-width: 1280px;
}
body[data-theme-template="wzor6"] .header {
    backdrop-filter: blur(12px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
}
body[data-theme-template="wzor6"] .logo {
    background: linear-gradient(135deg, #1e3c72, #2b4c7c);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    letter-spacing: -0.02em;
    text-transform: none;
}
body[data-theme-template="wzor6"] .nav a {
    text-transform: none;
    letter-spacing: 0;
    font-size: 1rem;
}
body[data-theme-template="wzor6"] .main-wrapper {
    gap: 3rem;
    padding-top: 3rem;
    padding-bottom: 2rem;
}
body[data-theme-template="wzor6"] .content-area,
body[data-theme-template="wzor6"] .main-wrapper.sidebar-left .content-area,
body[data-theme-template="wzor6"] .sidebar,
body[data-theme-template="wzor6"] .main-wrapper.sidebar-left .sidebar {
    border: none;
    padding: 0;
}
body[data-theme-template="wzor6"] .section-header {
    border-bottom: none;
}
body[data-theme-template="wzor6"] .section-title {
    font-size: 2rem;
    text-transform: none;
    letter-spacing: -0.01em;
    color: #0f2c3f;
    border-left: 5px solid var(--accent);
    padding-left: 1rem;
}
body[data-theme-template="wzor6"] .post-card,
body[data-theme-template="wzor6"] .sidebar-block {
    border-radius: 28px;
    box-shadow: 0 10px 25px -8px rgba(0, 0, 0, 0.05);
}
body[data-theme-template="wzor6"] .post-card {
    padding: 1.8rem;
    margin-bottom: 2rem;
}
body[data-theme-template="wzor6"] .post-card:hover {
    transform: translateY(-4px);
    background: #ffffff;
    box-shadow: 0 20px 30px -12px rgba(0, 0, 0, 0.1);
}
body[data-theme-template="wzor6"] .post-meta .category-tag {
    background: #eef2fa;
    color: #1e5a7d;
    padding: 0.2rem 0.7rem;
    border-radius: 40px;
}
body[data-theme-template="wzor6"] .read-more {
    text-transform: none;
    letter-spacing: 0;
    color: var(--accent);
}
body[data-theme-template="wzor6"] .sidebar {
    gap: 2.2rem;
}
body[data-theme-template="wzor6"] .sidebar-block {
    padding: 1.5rem;
    border: 1px solid #eef2f8;
}
body[data-theme-template="wzor6"] .sidebar-title {
    font-size: 1.35rem;
    text-transform: none;
    letter-spacing: 0;
    color: #1e3a5f;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 0.6rem;
}
body[data-theme-template="wzor6"] .tag {
    background: #eef2fa;
    color: #1e5a7d;
    border-radius: 40px;
}
body[data-theme-template="wzor6"] .tag:hover {
    background: #dfe7f2;
    color: #1a2c3e;
}

body[data-theme-template="wzor7"] {
    --bg-primary: #f3f4f6;
    --bg-secondary: rgba(255, 255, 255, 0.96);
    --bg-tertiary: rgba(248, 250, 252, 0.96);
    --bg-card: rgba(255, 255, 255, 0.94);
    --text-primary: #0f172a;
    --text-secondary: #334155;
    --text-muted: #64748b;
    --accent: #f97316;
    --accent-hover: #ea580c;
    --border-color: rgba(148, 163, 184, 0.3);
    --radius: 24px;
    --box-margin: 0 0 1.5rem 0;
    --box-border: 1px solid rgba(255, 255, 255, 0.45);
    --header-bg: rgba(255, 255, 255, 0.88);
    --header-text: #0f172a;
    --footer-bg: rgba(15, 23, 42, 0.88);
    --footer-text: #e2e8f0;
    --title-size: 1.7rem;
    --header-pad: 1rem;
    --max-width: 1180px;
    background:
        linear-gradient(135deg, rgba(15, 23, 42, 0.7), rgba(30, 41, 59, 0.42)),
        var(--boxed-bg-image) center / cover fixed no-repeat;
}
body[data-theme-template="wzor7"] .header {
    position: static;
    background: transparent;
    border-bottom: none;
    padding: 26px 24px 0;
}
body[data-theme-template="wzor7"] .header-inner,
body[data-theme-template="wzor7"] .footer-inner {
    max-width: var(--max-width, 1180px);
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.45);
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.18);
    backdrop-filter: blur(14px);
}
body[data-theme-template="wzor7"] .header-inner {
    background: var(--header-bg);
    padding: 1rem 1.75rem;
}
body[data-theme-template="wzor7"] .logo {
    letter-spacing: -0.03em;
    text-transform: none;
}
body[data-theme-template="wzor7"] .nav a {
    text-transform: none;
    letter-spacing: 0;
    font-size: 0.98rem;
}
body[data-theme-template="wzor7"] .nav a.active {
    color: var(--accent);
}
body[data-theme-template="wzor7"] .menu-toggle {
    background: rgba(255, 255, 255, 0.35);
}
body[data-theme-template="wzor7"] .main-wrapper {
    max-width: calc(var(--max-width, 1180px) + 48px);
    gap: 1.75rem;
    padding: 2rem 24px 2.5rem;
    align-items: start;
}
body[data-theme-template="wzor7"] .content-area,
body[data-theme-template="wzor7"] .main-wrapper.sidebar-left .content-area,
body[data-theme-template="wzor7"] .sidebar,
body[data-theme-template="wzor7"] .main-wrapper.sidebar-left .sidebar {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.45);
    border-radius: 30px;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.12);
    backdrop-filter: blur(12px);
}
body[data-theme-template="wzor7"] .content-area,
body[data-theme-template="wzor7"] .main-wrapper.sidebar-left .content-area {
    padding: 2rem;
    border-right: 1px solid rgba(255, 255, 255, 0.45);
}
body[data-theme-template="wzor7"] .sidebar,
body[data-theme-template="wzor7"] .main-wrapper.sidebar-left .sidebar {
    padding: 1.5rem;
}
body[data-theme-template="wzor7"] .section-header {
    border-bottom: none;
    margin-bottom: 1.5rem;
}
body[data-theme-template="wzor7"] .section-title {
    font-size: 1.3rem;
    text-transform: none;
    letter-spacing: -0.01em;
    color: var(--text-primary);
}
body[data-theme-template="wzor7"] .post-card,
body[data-theme-template="wzor7"] .sidebar-block {
    border-radius: 24px;
    border: 1px solid rgba(226, 232, 240, 0.9);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
}
body[data-theme-template="wzor7"] .post-card {
    padding: 1.6rem 1.7rem;
    margin-bottom: 1.5rem;
}
body[data-theme-template="wzor7"] .post-card:hover {
    background: #ffffff;
    transform: translateY(-3px);
}
body[data-theme-template="wzor7"] .post-meta .category-tag {
    background: rgba(249, 115, 22, 0.12);
    color: #c2410c;
    padding: 0.2rem 0.7rem;
    border-radius: 999px;
}
body[data-theme-template="wzor7"] .post-title {
    font-size: 1.65rem;
}
body[data-theme-template="wzor7"] .read-more {
    text-transform: none;
    letter-spacing: 0;
    color: var(--accent);
}
body[data-theme-template="wzor7"] .sidebar {
    gap: 1.5rem;
}
body[data-theme-template="wzor7"] .sidebar-block {
    background: rgba(255, 255, 255, 0.82);
    padding: 1.35rem;
}
body[data-theme-template="wzor7"] .sidebar-title {
    font-size: 1.1rem;
    text-transform: none;
    letter-spacing: 0;
    color: var(--text-primary);
    border-bottom: 2px solid rgba(249, 115, 22, 0.14);
    padding-bottom: 0.6rem;
}
body[data-theme-template="wzor7"] .tag {
    background: rgba(255, 247, 237, 0.95);
    color: #9a3412;
    border-radius: 999px;
}
body[data-theme-template="wzor7"] .tag:hover {
    background: var(--accent);
    color: #ffffff;
}
body[data-theme-template="wzor7"] .footer {
    background: transparent;
    border-top: none;
    padding: 0 24px 24px;
}
body[data-theme-template="wzor7"] .footer-inner {
    background: var(--footer-bg);
    color: var(--footer-text);
    padding-top: 2.25rem;
}
body[data-theme-template="wzor7"] .footer .logo,
body[data-theme-template="wzor7"] .footer .footer-desc,
body[data-theme-template="wzor7"] .footer .footer-links a,
body[data-theme-template="wzor7"] .footer .copyright,
body[data-theme-template="wzor7"] .footer .footer-title {
    color: var(--footer-text);
}
body[data-theme-template="wzor7"] .footer .footer-links a:hover {
    color: #ffffff;
}

@media (max-width: 1024px) {
    body[data-theme-template="wzor2"] .main-wrapper,
    body[data-theme-template="wzor3"] .main-wrapper,
    body[data-theme-template="wzor4"] .main-wrapper,
    body[data-theme-template="wzor6"] .main-wrapper,
    body[data-theme-template="wzor7"] .main-wrapper {
        gap: 2rem;
    }
    body[data-theme-template="wzor5"] .sidebar,
    body[data-theme-template="wzor5"] .main-wrapper.sidebar-left .sidebar {
        border-left: none;
        border-right: none;
        border-top: 1px solid #242933;
    }
    body[data-theme-template="wzor7"] {
        background-attachment: scroll;
    }
    body[data-theme-template="wzor7"] .content-area,
    body[data-theme-template="wzor7"] .main-wrapper.sidebar-left .content-area {
        border-right: 1px solid rgba(255, 255, 255, 0.45);
        border-left: 1px solid rgba(255, 255, 255, 0.45);
    }
}

@media (max-width: 768px) {
    body[data-theme-template="wzor7"] .header,
    body[data-theme-template="wzor7"] .footer {
        padding-left: 16px;
        padding-right: 16px;
    }
    body[data-theme-template="wzor7"] .header-inner,
    body[data-theme-template="wzor7"] .footer-inner,
    body[data-theme-template="wzor7"] .content-area,
    body[data-theme-template="wzor7"] .main-wrapper.sidebar-left .content-area,
    body[data-theme-template="wzor7"] .sidebar,
    body[data-theme-template="wzor7"] .main-wrapper.sidebar-left .sidebar {
        border-radius: 22px;
    }
    body[data-theme-template="wzor7"] .main-wrapper {
        padding: 1.25rem 16px 2rem;
    }
    body[data-theme-template="wzor7"] .content-area,
    body[data-theme-template="wzor7"] .main-wrapper.sidebar-left .content-area,
    body[data-theme-template="wzor7"] .sidebar,
    body[data-theme-template="wzor7"] .main-wrapper.sidebar-left .sidebar {
        padding: 1.25rem;
    }
    body[data-theme-template="wzor7"] .post-card {
        padding: 1.25rem;
    }
}
