/*
Theme Name: Malayalam Text FX
Theme URI: https://github.com/yourname/malayalam-text-fx
Description: A Malayalam text-effect generator web app with live canvas preview, full styling controls, downloadable PNG/SVG exports, and Gutenberg/shortcode integration. Create beautiful Malayalam text effects with multiple fonts, gradients, shadows, and more.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.4
Requires PHP: 8.0
Author: Your Name
Author URI: https://yoursite.com
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: malayalam-text-fx
Domain Path: /languages
Tags: malayalam, text-effects, canvas, svg, generator, accessibility-ready, custom-colors, editor-style, full-site-editing, rtl-language-support
*/

/**
 * Malayalam Text FX Theme
 * 
 * This theme provides a Malayalam text effect generator with:
 * - Live canvas preview
 * - Multiple Malayalam fonts (Noto Sans Malayalam, Manjari, Meera, Rachana)
 * - Gradient and shadow effects
 * - PNG and SVG export
 * - Gutenberg block integration
 * - Shortcode support
 * 
 * All assets are GPL-licensed and this theme is fully WCAG 2.1 AA compliant.
 */

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

html {
    overflow-x: hidden;
    box-sizing: border-box;
}

*, *::before, *::after {
    box-sizing: inherit;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif;
    line-height: 1.6;
    color: #374151;
    background: #f5f5f5;
    overflow-x: hidden;
    width: 100%;
}

/* Skip to content link for accessibility */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: #000;
    color: #fff;
    padding: 8px;
    text-decoration: none;
    z-index: 100;
}

.skip-link:focus {
    top: 0;
}

/* Main container */
.site-container {
    max-width: 100%;
    margin: 0 auto;
}

/* Basic typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: 2.5rem;
}

p {
    margin-bottom: 1rem;
}

/* Links */
a {
    color: #0073aa;
    text-decoration: none;
}

a:hover,
a:focus {
    color: #005177;
    text-decoration: underline;
}

/* Focus styles for accessibility */
*:focus {
    outline: 2px solid #0073aa;
    outline-offset: 2px;
}

/* Screen reader only text */
.sr-only,
.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* ===========================
   Header Styles
   =========================== */
.site-header {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid #f1f5f9;
    position: sticky;
    top: 0;
    z-index: 999;
}

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.25rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
}

.logo-icon {
    font-size: 2rem;
    font-weight: 800;
    background: linear-gradient(135deg, #6366f1, #ec4899);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.site-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: #0f172a;
    letter-spacing: -0.02em;
}

.nav-menu {
    list-style: none;
    display: flex;
    gap: 1.5rem;
    margin: 0;
    padding: 0;
}

.nav-menu a {
    color: #475569;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9375rem;
    transition: color 0.2s;
}

.nav-menu a:hover {
    color: #6366f1;
}

.mobile-menu-toggle {
    display: none;
    background: transparent;
    border: none;
    padding: 0.5rem;
    cursor: pointer;
}

.menu-icon {
    display: block;
    width: 24px;
    height: 2px;
    background: #1e293b;
    position: relative;
    transition: all 0.3s;
}

.menu-icon::before,
.menu-icon::after {
    content: '';
    display: block;
    width: 24px;
    height: 2px;
    background: #1e293b;
    position: absolute;
    transition: all 0.3s;
}

.menu-icon::before {
    top: -8px;
}

.menu-icon::after {
    bottom: -8px;
}

@media (max-width: 768px) {
    .header-inner {
        padding: 1rem 1.5rem;
    }

    .mobile-menu-toggle {
        display: block;
        position: relative;
        z-index: 1000;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        height: 100vh;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(15px);
        -webkit-backdrop-filter: blur(15px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        padding: 2rem;
        opacity: 0;
        visibility: hidden;
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        transform: translateY(-20px);
        z-index: 998;
    }

    /* ==========================================================================
   Premium Refined Theme Styles for Pages & Posts
   ========================================================================== */
    :root {
        --mtfx-global-bg-gradient: linear-gradient(135deg, #f8fafc 0%, #eef2ff 100%);
        --mtfx-global-card-bg: rgba(255, 255, 255, 0.95);
        --mtfx-global-glass-border: 1px solid rgba(255, 255, 255, 0.8);
        --mtfx-global-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.08);
    }

    [data-theme="dark"] {
        --mtfx-global-bg-gradient: linear-gradient(135deg, #0f172a 0%, #1e1b4b 100%);
        --mtfx-global-card-bg: rgba(30, 41, 59, 0.9);
        --mtfx-global-glass-border: 1px solid rgba(255, 255, 255, 0.1);
    }

    body {
        background: var(--mtfx-global-bg-gradient) !important;
        background-attachment: fixed !important;
    }

    /* Singular & Page Main Structure */
    .singular-main {
        max-width: 1200px;
        margin: 40px auto;
        padding: 0 20px;
    }

    .singular-article {
        background: var(--mtfx-global-card-bg);
        border-radius: 32px;
        padding: 50px;
        box-shadow: var(--mtfx-global-shadow);
        border: var(--mtfx-global-glass-border);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s ease;
    }

    .singular-article:hover {
        box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.12);
    }

    .entry-header.post-hero {
        text-align: center;
        margin-bottom: 40px;
        padding-bottom: 30px;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    }

    [data-theme="dark"] .entry-header.post-hero {
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }

    .entry-title {
        font-size: 3rem;
        font-weight: 800;
        line-height: 1.2;
        letter-spacing: -0.025em;
        margin: 20px 0;
        color: var(--mtfx-text);
    }

    .entry-content {
        font-size: 1.125rem;
        line-height: 1.8;
        color: var(--mtfx-text-secondary);
    }

    .entry-content h1,
    .entry-content h2,
    .entry-content h3,
    .entry-content h4,
    .entry-content h5,
    .entry-content h6 {
        color: var(--mtfx-text);
        font-weight: 700;
        line-height: 1.3;
        margin-top: 2.5rem;
        margin-bottom: 1rem;
    }

    .entry-content h2 { font-size: 1.75rem; }
    .entry-content h3 { font-size: 1.45rem; }
    .entry-content h4 { font-size: 1.2rem; }
    .entry-content h5 { font-size: 1.05rem; }
    .entry-content h6 { font-size: 0.95rem; }

    .entry-meta {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 20px;
        font-size: 0.95rem;
        color: var(--mtfx-text-muted);
    }

    .meta-item {
        display: flex;
        align-items: center;
        gap: 8px;
    }

    .author-meta img {
        border-radius: 50%;
    }

    .post-categories {
        display: flex;
        justify-content: center;
        gap: 10px;
        margin-bottom: 15px;
    }

    .category-badge {
        background: var(--mtfx-primary);
        color: white !important;
        padding: 4px 12px;
        border-radius: 20px;
        font-size: 0.85rem;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        transition: all 0.3s;
    }

    .category-badge:hover {
        background: #4f46e5;
        transform: translateY(-2px);
        text-decoration: none !important;
    }

    .post-thumbnail-wrapper {
        margin: 0 -50px 40px;
        border-radius: 0;
        overflow: hidden;
    }

    .hero-image {
        width: 100%;
        height: auto;
        display: block;
    }

    .entry-footer {
        margin-top: 50px;
        padding-top: 30px;
        border-top: 1px solid rgba(0, 0, 0, 0.05);
    }

    @media (max-width: 768px) {
        .singular-article {
            padding: 30px 20px;
            border-radius: 24px;
        }

        .entry-title {
            font-size: 2rem;
        }

        .post-thumbnail-wrapper {
            margin: 0 -20px 30px;
        }
    }

    /* Index.php specific premium updates */
    .posts-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 30px;
        margin: 40px auto;
        max-width: 1200px;
        padding: 0 20px;
    }

    .mini-post-card {
        background: var(--mtfx-global-card-bg);
        border-radius: 24px;
        padding: 32px;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
        border: var(--mtfx-global-glass-border);
        backdrop-filter: blur(10px);
        transition: all 0.3s ease;
    }

    .mini-post-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 15px 30px rgba(99, 102, 241, 0.15);
        border-color: #6366f1;
    }

    .mini-post-card .entry-title a {
        font-size: 1.5rem;
        font-weight: 700;
        color: var(--mtfx-text);
        text-decoration: none;
        transition: color 0.2s;
    }

    .mini-post-card .entry-title a:hover {
        color: #6366f1;
    }

    .mini-post-card .entry-excerpt {
        margin-top: 15px;
        color: var(--mtfx-text-secondary);
        line-height: 1.6;
    }

    .hero-section {
        background: var(--mtfx-global-card-bg);
        border: var(--mtfx-global-glass-border);
        border-radius: 32px;
        margin: 40px auto;
        max-width: 1200px;
        padding: 60px 40px;
        box-shadow: var(--mtfx-global-shadow);
        text-align: center;
    }

    .hero-demo-card {
        background: linear-gradient(135deg, #6366f1, #ec4899);
        border-radius: 24px;
        padding: 40px;
        color: white;
        font-size: 4rem;
        font-weight: bold;
        margin-top: 30px;
        box-shadow: 0 20px 40px -10px rgba(99, 102, 241, 0.4);
    }

    .nav-menu.active {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .nav-menu a {
        font-size: 1.25rem;
        font-weight: 700;
        color: #0f172a;
    }

    .mobile-menu-toggle[aria-expanded="true"] .menu-icon {
        background: transparent;
    }

    .mobile-menu-toggle[aria-expanded="true"] .menu-icon::before {
        transform: rotate(45deg) translate(6px, 6px);
    }

    .mobile-menu-toggle[aria-expanded="true"] .menu-icon::after {
        transform: rotate(-45deg) translate(6px, -6px);
    }
}

/* ===========================
   Post / Page Styles
   =========================== */
/* ===========================
   Post / Page Styles (Modern)
   =========================== */
.singular-main {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem clamp(0.75rem, 3vw, 2rem);
    background: transparent;
    box-shadow: none;
    border: none;
    box-sizing: border-box;
    overflow-x: hidden;
}

.singular-article {
    background: #ffffff;
    border-radius: 2rem;
    overflow: hidden;
    box-shadow: 0 30px 60px -12px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(226, 232, 240, 0.8);
    display: flex;
    flex-direction: column;
    width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
}

.post-hero {
    padding: clamp(2rem, 5vw, 4rem) clamp(1.25rem, 5vw, 4rem) 2rem;
    text-align: center;
    background: linear-gradient(to bottom, #f8fafc, #ffffff);
}

.entry-meta-top {
    margin-bottom: 1.5rem;
}

.post-categories {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.category-badge {
    background: #4f46e5;
    color: white;
    padding: 0.4rem 1rem;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: all 0.3s ease;
}

.category-badge:hover {
    background: #3730a3;
    transform: translateY(-2px);
    color: white;
    text-decoration: none;
}

.singular-article .entry-title {
    font-size: clamp(1.6rem, 5vw, 3.5rem);
    font-weight: 900;
    color: #0f172a;
    line-height: 1.15;
    margin-bottom: 2rem;
    letter-spacing: -0.02em;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    word-break: break-word;
    overflow-wrap: break-word;
}

.singular-article .entry-meta {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    color: #64748b;
    font-weight: 500;
    font-size: 0.95rem;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.author-meta img {
    border-radius: 50%;
    border: 2px solid #e2e8f0;
}

.post-thumbnail-wrapper {
    padding: 0 clamp(1rem, 4vw, 4rem);
    margin-bottom: 3rem;
}

.hero-image {
    width: 100%;
    height: auto;
    max-height: 600px;
    object-fit: cover;
    border-radius: 1.5rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.entry-content-wrapper {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 clamp(1.25rem, 4vw, 2rem) 4rem;
    box-sizing: border-box;
}

.entry-content {
    font-size: 1.125rem;
    line-height: 1.85;
    color: #334155;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* ── Headings inside post content ── */
.entry-content h1,
.entry-content h2,
.entry-content h3,
.entry-content h4,
.entry-content h5,
.entry-content h6 {
    font-weight: 700;
    line-height: 1.3;
    color: #0f172a;
    margin-top: 2.75rem;
    margin-bottom: 0.85rem;
}

.entry-content h2 {
    font-size: clamp(1.4rem, 3vw, 1.75rem);
    padding-bottom: 0.4rem;
    border-bottom: 2px solid #e2e8f0;
}

.entry-content h3 {
    font-size: clamp(1.15rem, 2.5vw, 1.4rem);
}

.entry-content h4 {
    font-size: 1.15rem;
}

.entry-content h5,
.entry-content h6 {
    font-size: 1rem;
    color: #475569;
}

/* ── Paragraphs ── */
.entry-content p {
    margin-top: 0;
    margin-bottom: 1.6rem;
    font-size: inherit;
    line-height: 1.85;
}

/* ── Unordered lists ── */
.entry-content ul {
    list-style: none;
    padding: 0;
    margin: 0.5rem 0 1.75rem 0;
}

.entry-content ul li {
    position: relative;
    padding-left: 1.6rem;
    margin-bottom: 0.65rem;
    line-height: 1.75;
    font-size: inherit;
    color: #334155;
}

.entry-content ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.55em;
    width: 8px;
    height: 8px;
    background: #7c3aed;
    border-radius: 50%;
    flex-shrink: 0;
}

/* ── Ordered lists ── */
.entry-content ol {
    list-style: none;
    padding: 0;
    margin: 0.5rem 0 1.75rem 0;
    counter-reset: post-counter;
}

.entry-content ol li {
    position: relative;
    padding-left: 2.25rem;
    margin-bottom: 0.75rem;
    line-height: 1.75;
    font-size: inherit;
    color: #334155;
    counter-increment: post-counter;
}

.entry-content ol li::before {
    content: counter(post-counter);
    position: absolute;
    left: 0;
    top: 0.05em;
    width: 1.6rem;
    height: 1.6rem;
    background: #7c3aed;
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ── Nested lists ── */
.entry-content ul ul,
.entry-content ol ol,
.entry-content ul ol,
.entry-content ol ul {
    margin-top: 0.4rem;
    margin-bottom: 0.4rem;
}

.entry-content ul ul li::before {
    background: transparent;
    border: 2px solid #7c3aed;
    width: 7px;
    height: 7px;
}

/* ── Tables ── */
.entry-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0 2rem;
    font-size: 0.95rem;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.entry-content th {
    background: #7c3aed;
    color: white;
    font-weight: 700;
    padding: 0.7rem 1rem;
    text-align: left;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.entry-content td {
    padding: 0.65rem 1rem;
    border-bottom: 1px solid #e2e8f0;
    color: #334155;
    vertical-align: top;
}

.entry-content tr:last-child td {
    border-bottom: none;
}

.entry-content tr:nth-child(even) td {
    background: #f8fafc;
}

/* ── Images ── */
.entry-content img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 1.5rem 0;
    display: block;
}

/* ── Strong & em ── */
.entry-content strong {
    font-weight: 700;
    color: #0f172a;
}

.entry-content em {
    font-style: italic;
    color: #475569;
}

/* ── Code ── */
.entry-content code {
    background: #f1f5f9;
    color: #7c3aed;
    padding: 0.15em 0.4em;
    border-radius: 5px;
    font-size: 0.88em;
    font-family: 'Courier New', monospace;
}

.entry-content pre {
    background: #1e293b;
    color: #e2e8f0;
    padding: 1.5rem;
    border-radius: 12px;
    overflow-x: auto;
    margin: 1.5rem 0 2rem;
    font-size: 0.9rem;
    line-height: 1.6;
}

.entry-content pre code {
    background: none;
    color: inherit;
    padding: 0;
}

/* ── Horizontal rule ── */
.entry-content hr {
    border: none;
    border-top: 2px solid #e2e8f0;
    margin: 2.5rem 0;
}

/* ── Links inside content ── */
.entry-content a {
    color: #7c3aed;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color 0.2s;
}

.entry-content a:hover {
    color: #6d28d9;
}

.entry-content blockquote {
    font-size: 1.5rem;
    border: none;
    padding: 3rem;
    background: #f8fafc;
    border-radius: 2rem;
    position: relative;
    margin: 3rem 0;
    color: #1e293b;
    font-weight: 600;
    line-height: 1.5;
}

.entry-content blockquote::before {
    content: '“';
    position: absolute;
    top: 0.5rem;
    left: 1.5rem;
    font-size: 8rem;
    color: #e2e8f0;
    line-height: 1;
    font-family: serif;
}

.entry-footer {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.tags-links a {
    background: #f1f5f9;
    padding: 0.4rem 1rem;
    border-radius: 0.5rem;
    color: #475569;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.2s;
}

.tags-links a:hover {
    background: #e2e8f0;
    text-decoration: none;
}

.post-share {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.share-buttons {
    display: flex;
    gap: 0.5rem;
}

.share-btn {
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-size: 0.85rem;
    font-weight: 700;
    color: white !important;
    transition: transform 0.2s;
}

.share-btn:hover {
    transform: translateY(-2px);
    text-decoration: none;
}

.share-btn.fb {
    background: #1877f2;
}

.share-btn.tw {
    background: #1da1f2;
}

.share-btn.wa {
    background: #25d366;
}

/* Navigation */
.post-navigation {
    background: #f8fafc;
    padding: 4rem;
    border-top: 1px solid #e2e8f0;
}

.post-navigation .nav-links {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.nav-direction {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #64748b;
    margin-bottom: 0.5rem;
}

.post-navigation .nav-title {
    font-size: 1.4rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.3;
}

/* Comments Style */
.mtfx-comments-container {
    padding: 4rem;
    background: #ffffff;
    max-width: 900px;
    margin: 0 auto;
}

.comments-title {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 3rem;
    color: #0f172a;
    text-align: center;
}

.comment-list {
    list-style: none;
    margin: 0 0 4rem;
    padding: 0;
}

.comment-body {
    padding: 2rem;
    background: #f8fafc;
    border-radius: 1.5rem;
    margin-bottom: 2rem;
    position: relative;
    border: 1px solid #e2e8f0;
}

.comment-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.comment-author .avatar {
    border-radius: 50%;
}

.comment-author .fn {
    font-weight: 700;
    color: #0f172a;
}

.comment-metadata {
    font-size: 0.85rem;
    color: #64748b;
}

.comment-content {
    color: #334155;
    line-height: 1.6;
}

.reply {
    margin-top: 1rem;
}

.comment-reply-link {
    font-weight: 700;
    font-size: 0.9rem;
    color: #4f46e5;
}

/* Comment Form */
.comment-respond {
    background: #f1f5f9;
    padding: 3rem;
    border-radius: 2rem;
}

.comment-reply-title {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 2rem;
}

.mtfx-comment-form textarea,
.mtfx-comment-form input {
    width: 100%;
    padding: 1rem 1.5rem;
    border-radius: 1rem;
    border: 2px solid #e2e8f0;
    font-size: 1rem;
    transition: border-color 0.2s;
    background: white;
}

.mtfx-comment-form textarea:focus,
.mtfx-comment-form input:focus {
    border-color: #4f46e5;
    outline: none;
}

.comment-form-fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.comment-form-comment {
    margin-bottom: 1.5rem;
}

.mtfx-btn-primary {
    background: #4f46e5;
    color: white;
    padding: 1rem 2.5rem;
    font-weight: 700;
    border-radius: 1rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
}

.mtfx-btn-primary:hover {
    background: #4338ca;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(79, 70, 229, 0.2);
}

/* Breadcrumbs */
.mtfx-breadcrumbs {
    padding: 1.5rem 4rem 0;
    font-size: 0.85rem;
    font-weight: 600;
}

.breadcrumbs-inner {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #64748b;
}

.mtfx-breadcrumbs a {
    color: #4f46e5;
    text-decoration: none;
    transition: color 0.2s;
}

.mtfx-breadcrumbs a:hover {
    color: #3730a3;
    text-decoration: underline;
}

.mtfx-breadcrumbs .sep {
    color: #cbd5e1;
    font-size: 0.7rem;
}

.mtfx-breadcrumbs .current {
    color: #94a3b8;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 300px;
}

@media (max-width: 768px) {
    .mtfx-breadcrumbs {
        padding: 1rem 1rem 0;
    }

    .mtfx-breadcrumbs .current {
        max-width: 150px;
    }
}

@media (max-width: 991px) {
    .post-hero {
        padding: 3rem 2rem;
    }

    .singular-article .entry-title {
        font-size: 2.5rem;
    }

    .post-thumbnail-wrapper {
        padding: 0 2rem;
    }

    .post-navigation,
    .mtfx-comments-container,
    .comment-respond {
        padding: 2rem;
    }
}

@media (max-width: 768px) {
    .singular-main {
        padding: 1rem;
    }

    .singular-article {
        border-radius: 1rem;
    }

    .post-hero {
        padding: 2rem 1rem;
    }

    .singular-article .entry-title {
        font-size: 2rem;
    }

    .singular-article .entry-meta {
        flex-direction: column;
        gap: 0.5rem;
        align-items: flex-start;
    }

    .post-thumbnail-wrapper {
        padding: 0 1rem;
        margin-bottom: 2rem;
    }

    .hero-image {
        border-radius: 1rem;
    }

    .entry-content-wrapper {
        padding: 0 1rem 2rem;
    }

    .entry-content {
        font-size: 1rem;
        line-height: 1.8;
    }

    .entry-content h2 {
        font-size: 1.35rem;
        margin-top: 2rem;
    }

    .entry-content h3 {
        font-size: 1.15rem;
        margin-top: 1.75rem;
    }

    .entry-content h4 {
        font-size: 1.05rem;
        margin-top: 1.5rem;
    }

    .entry-content ul li,
    .entry-content ol li {
        font-size: 1rem;
        margin-bottom: 0.55rem;
    }

    .entry-content table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
        font-size: 0.875rem;
    }

    .post-navigation .nav-links {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .comment-form-fields {
        grid-template-columns: 1fr;
    }

    .post-share {
        flex-direction: column;
        align-items: flex-start;
    }
}


/* ===========================
   Footer Styles
   =========================== */
.site-footer {
    background: #0f172a;
    color: #94a3b8;
    padding: 4rem 0 2rem;
    margin-top: 4rem;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-brand {
    max-width: 400px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    margin-bottom: 1.25rem;
}

.footer-logo .logo-icon {
    font-size: 2rem;
    font-weight: 800;
    background: linear-gradient(135deg, #6366f1, #ec4899);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-logo .site-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: #f8fafc;
}

.footer-desc {
    font-size: 0.9375rem;
    line-height: 1.6;
    color: #64748b;
}

.footer-navigation .footer-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-menu a {
    color: #94a3b8;
    text-decoration: none;
    font-size: 0.9375rem;
    transition: color 0.2s;
}

.footer-menu a:hover {
    color: #6366f1;
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
}

.footer-bottom .copyright {
    color: #475569;
    font-size: 0.875rem;
    margin: 0;
}

@media (max-width: 768px) {
    .footer-inner {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 2.5rem;
    }

    .footer-navigation .footer-menu {
        align-items: center;
    }

    .footer-brand {
        max-width: 100%;
    }
}

/* ===========================
   Dark/Light Mode Toggle
   =========================== */
.theme-mode-toggle {
    position: relative;
    width: 50px;
    height: 50px;
    background: transparent;
    border: 2px solid var(--mtfx-border);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.theme-mode-toggle:hover {
    border-color: var(--mtfx-primary);
    transform: scale(1.1);
}

.mode-icon {
    font-size: 1.5rem;
    position: absolute;
    transition: all 0.3s ease;
}

[data-theme="light"] .light-icon {
    opacity: 1;
    transform: rotate(0deg) scale(1);
}

[data-theme="light"] .dark-icon {
    opacity: 0;
    transform: rotate(180deg) scale(0);
}

[data-theme="dark"] .light-icon {
    opacity: 0;
    transform: rotate(-180deg) scale(0);
}

[data-theme="dark"] .dark-icon {
    opacity: 1;
    transform: rotate(0deg) scale(1);
}

/* Dark mode specific overrides */
[data-theme="dark"] .site-header {
    background: #2a2a2a;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

[data-theme="dark"] .site-footer {
    background: #1a1a1a;
}

[data-theme="dark"] .nav-menu a,
[data-theme="dark"] .logo-link,
[data-theme="dark"] .site-name {
    color: #e0e0e0;
}

[data-theme="dark"] .nav-menu a:hover {
    color: #ff7700;
}

[data-theme="dark"] .menu-icon,
[data-theme="dark"] .menu-icon::before,
[data-theme="dark"] .menu-icon::after {
    background: #e0e0e0;
}

/* ===========================
   About Page Styles
   =========================== */
.about-header {
    text-align: center;
    margin-bottom: 3rem;
    padding: 2rem 0;
    background: white;
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.about-header .main-title {
    font-size: 3rem;
    font-weight: 800;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.about-header .subtitle {
    font-size: 1.3rem;
    color: #64748b;
    font-weight: 500;
    margin-bottom: 1.5rem;
}

.about-header .hero-text {
    font-size: 1.1rem;
    color: #475569;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
}

.about-content .section {
    background: white;
    margin: 2rem 0;
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.about-content .section-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 1.5rem;
    position: relative;
}

.about-content .section-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    border-radius: 2px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.feature-card {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid #cbd5e1;
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: block;
}

.feature-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 0.8rem;
}

.feature-description {
    color: #475569;
    line-height: 1.6;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.stat-card {
    text-align: center;
    padding: 1.5rem;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: white;
    border-radius: 16px;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.9;
}

.testimonial {
    background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
    padding: 2rem;
    border-radius: 16px;
    border-left: 4px solid #10b981;
    margin: 1.5rem 0;
}

.testimonial-text {
    font-style: italic;
    font-size: 1.1rem;
    color: #065f46;
    margin-bottom: 1rem;
}

.testimonial-author {
    font-weight: 600;
    color: #047857;
}

.cta-section {
    text-align: center;
    padding: 3rem;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: white;
    border-radius: 20px;
    margin: 3rem 0;
}

.cta-button {
    display: inline-block;
    background: white;
    color: #6366f1;
    padding: 1rem 2rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    margin-top: 1.5rem;
    transition: all 0.3s ease;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.3);
}

.steps-container {
    margin-top: 2rem;
}

.step-item {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
}

.step-number {
    background: #6366f1;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-right: 1rem;
    flex-shrink: 0;
}

.step-content {
    flex: 1;
}

.malayalam-text {
    font-family: 'Noto Sans Malayalam', 'Manjari', sans-serif;
    font-size: 1.1rem;
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    padding: 1rem;
    border-radius: 8px;
    margin: 1rem 0;
    text-align: center;
}

/* Mobile Responsiveness for About Page */
@media (max-width: 768px) {
    .about-header .main-title {
        font-size: 2rem;
    }

    .about-content .section {
        padding: 1.5rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .stat-number {
        font-size: 2rem;
    }
}

/* ===========================
   Converter Tool Styles
   =========================== */
.converter-container {
    max-width: 1000px;
    margin: 40px auto;
    padding: 40px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.8);
    position: relative;
    overflow: hidden;
}

/* Decorative background gradient blob */
.converter-container::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 50% 50%, rgba(99, 102, 241, 0.05) 0%, transparent 50%);
    z-index: 0;
    pointer-events: none;
}

.converter-title {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
    z-index: 1;
}

.converter-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    position: relative;
    z-index: 1;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.input-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: #475569;
    font-size: 1.1rem;
}

.input-label i {
    color: #6366f1;
}

.textarea-wrapper {
    position: relative;
    border-radius: 16px;
    background: white;
    padding: 4px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
    border: 2px solid #e2e8f0;
    transition: all 0.3s ease;
}

.textarea-wrapper:focus-within {
    border-color: #6366f1;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
    transform: translateY(-2px);
}

.custom-textarea {
    width: 100%;
    height: 300px;
    padding: 1.5rem;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    line-height: 1.6;
    color: #1e293b;
    resize: vertical;
    background: transparent;
    outline: none;
}

.custom-textarea::placeholder {
    color: #94a3b8;
}

#unicode_text {
    font-family: 'Noto Sans Malayalam', sans-serif;
}

#mltt_text {
    font-family: 'ML-TTKarthika', 'Karthika', sans-serif;
    background-color: #f8fafc;
}

.controls {
    grid-column: 1 / -1;
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 2rem;
}

.btn-action {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1rem 2.5rem;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.4);
}

.btn-secondary {
    background: white;
    color: #475569;
    border: 2px solid #e2e8f0;
}

.btn-secondary:hover {
    border-color: #cbd5e1;
    background: #f8fafc;
    transform: translateY(-2px);
}

.btn-success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
    color: white !important;
    border: none !important;
}

.info-box {
    margin-top: 3rem;
    padding: 1.5rem;
    background: #eff6ff;
    border-left: 4px solid #6366f1;
    border-radius: 8px;
    color: #1e40af;
    font-size: 0.95rem;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .converter-container {
        padding: 20px;
        margin: 20px;
    }

    .converter-grid {
        grid-template-columns: 1fr;
    }

    .controls {
        flex-direction: column;
    }

    .btn-action {
        width: 100%;
        justify-content: center;
    }
}

/* ===========================
   Landing Page / Home Styles
   =========================== */

.home-landing {
    overflow-x: hidden;
}

/* Hero Section */
.hero-section {
    position: relative;
    padding: 6rem 2rem;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 4rem;
    min-height: 80vh;
}

.hero-content {
    flex: 1;
    min-width: 300px;
    max-width: 600px;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: #1e293b;
}

.hero-title .highlight {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: #64748b;
    margin-bottom: 2.5rem;
    line-height: 1.6;
}

.hero-actions {
    display: flex;
    gap: 1rem;
}

.hero-visual {
    flex: 1;
    min-width: 300px;
    max-width: 500px;
    display: flex;
    justify-content: center;
}

.hero-demo-card {
    background: white;
    padding: 3rem;
    border-radius: 24px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
    transform: rotate(-3deg);
    transition: transform 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.5);
    text-align: center;
}

.hero-demo-card:hover {
    transform: rotate(0deg) scale(1.02);
}

.hero-demo-card .demo-text {
    font-size: 5rem;
    font-family: 'Manjari', sans-serif;
    font-weight: bold;
    background: linear-gradient(to right, #6366f1, #ec4899);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: block;
    line-height: 1.2;
}

.hero-demo-card .demo-label {
    display: block;
    text-align: right;
    font-size: 0.875rem;
    color: #94a3b8;
    margin-top: 1rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Landing Buttons */
.cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    border-radius: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
}

.cta-button.primary {
    background: #6366f1;
    color: white;
    box-shadow: 0 10px 15px -3px rgba(99, 102, 241, 0.3);
}

.cta-button.primary:hover {
    background: #4f46e5;
    transform: translateY(-2px);
    box-shadow: 0 20px 25px -5px rgba(99, 102, 241, 0.4);
    color: white;
}

.cta-button.secondary {
    background: white;
    color: #475569;
    border: 1px solid #e2e8f0;
}

.cta-button.secondary:hover {
    background: #f8fafc;
    color: #1e293b;
}

/* Features Section */
.features-section {
    padding: 6rem 2rem;
    background: white;
}

.section-container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 4rem;
    color: #0f172a;
}

.landing-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
}

.feature-item {
    text-align: center;
    padding: 2rem;
    border-radius: 16px;
    transition: all 0.3s;
}

.feature-item:hover {
    background: #f8fafc;
    transform: translateY(-5px);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    display: inline-block;
}

.feature-item h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #1e293b;
}

.feature-item p {
    color: #64748b;
    line-height: 1.6;
}

/* Latest Updates / Blog */
.latest-updates {
    padding: 6rem 2rem;
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

@media (max-width: 1024px) {
    .posts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .posts-grid {
        grid-template-columns: 1fr;
    }
}

.mini-post-card {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    transition: all 0.3s;
    border: 1px solid #f1f5f9;
}

.mini-post-card:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.mini-post-card .entry-title {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.mini-post-card .entry-title a {
    color: #1e293b;
}

.mini-post-card .entry-title a:hover {
    color: #6366f1;
}

.mini-post-card .entry-excerpt {
    color: #64748b;
    font-size: 0.9375rem;
}

/* Archive & Grid Post Cards */
.archive-header {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    padding: 6rem 2rem 4rem;
    text-align: center;
    border-bottom: 1px solid #e2e8f0;
}

.archive-title {
    font-size: 3rem;
    font-weight: 800;
    color: #0f172a;
    margin-top: 1.5rem;
}

.archive-description {
    max-width: 600px;
    margin: 1.5rem auto 0;
    font-size: 1.125rem;
    color: #64748b;
    line-height: 1.7;
}

.archive-posts-grid {
    padding: 6rem 0;
}

.post-card {
    background: white;
    border-radius: 1.5rem;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
}

.post-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.1);
}

.post-card-image {
    position: relative;
    padding-top: 60%;
    overflow: hidden;
}

.post-card-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.card-categories {
    position: absolute;
    bottom: 1rem;
    left: 1rem;
    z-index: 2;
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.category-pill {
    background: rgba(79, 70, 229, 0.9);
    backdrop-filter: blur(4px);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

.post-card-content {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.post-meta {
    font-size: 0.85rem;
    color: #94a3b8;
    font-weight: 600;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.post-card-title {
    font-size: 1.5rem;
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 1rem;
}

.post-card-title a {
    color: #1e293b;
    text-decoration: none;
}

.post-card-title a:hover {
    color: #4f46e5;
}

.post-card-excerpt {
    font-size: 1rem;
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.post-card-footer {
    margin-top: auto;
}

.read-more-link {
    font-weight: 700;
    color: #4f46e5;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.read-more-link:hover .arrow {
    transform: translateX(4px);
}

.read-more-link .arrow {
    transition: transform 0.2s;
}

.no-posts-found {
    text-align: center;
    padding: 6rem 0;
}

.no-posts-found h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.pagination-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 4rem;
}

.pagination .nav-links {
    display: flex;
    gap: 0.5rem;
}

.pagination .page-numbers {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.75rem;
    background: white;
    border: 1px solid #e2e8f0;
    font-weight: 700;
    color: #475569;
}

.pagination .page-numbers.current {
    background: #4f46e5;
    color: white;
    border-color: #4f46e5;
}

.pagination .page-numbers:hover:not(.current) {
    background: #f1f5f9;
    color: #4f46e5;
}

/* Mobile Adjustments */

/* Mobile Adjustments */
@media (max-width: 991px) {
    .post-hero {
        padding: 3rem 2rem;
    }

    .singular-article .entry-title {
        font-size: 2.5rem;
    }

    .post-thumbnail-wrapper {
        padding: 0 2rem;
    }

    .post-navigation,
    .mtfx-comments-container,
    .comment-respond {
        padding: 2rem;
    }
}

@media (max-width: 768px) {
    .archive-header {
        padding: 4rem 1rem 2.5rem;
    }

    .archive-title {
        font-size: 2.25rem;
    }

    .archive-description {
        font-size: 1rem;
    }

    .archive-posts-grid {
        padding: 2.5rem 0;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-section {
        flex-direction: column;
        text-align: center;
        padding-top: 4rem;
        gap: 3rem;
    }

    .hero-actions {
        justify-content: center;
        flex-direction: column;
        width: 100%;
    }

    .cta-button {
        width: 100%;
    }

    .hero-demo-card {
        transform: rotate(0deg);
        width: 100%;
        padding: 2rem;
    }

    .hero-demo-card .demo-text {
        font-size: 3.5rem;
    }
}

@media (max-width: 480px) {
    .archive-title {
        font-size: 1.75rem;
    }

    .post-card-content {
        padding: 1.5rem;
    }
}

/* ==========================================================================
   Premium Refined Theme Styles for Pages & Posts
   ========================================================================== */
:root {
    --mtfx-global-bg-gradient: linear-gradient(135deg, #f8fafc 0%, #eef2ff 100%);
    --mtfx-global-card-bg: rgba(255, 255, 255, 0.95);
    --mtfx-global-glass-border: 1px solid rgba(255, 255, 255, 0.8);
    --mtfx-global-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.08);
}

[data-theme="dark"] {
    --mtfx-global-bg-gradient: linear-gradient(135deg, #0f172a 0%, #1e1b4b 100%);
    --mtfx-global-card-bg: rgba(30, 41, 59, 0.9);
    --mtfx-global-glass-border: 1px solid rgba(255, 255, 255, 0.1);
}

body {
    background: var(--mtfx-global-bg-gradient) !important;
    background-attachment: fixed !important;
}

/* Singular & Page Main Structure */
.singular-main {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

.singular-article {
    background: var(--mtfx-global-card-bg);
    border-radius: 32px;
    padding: 50px;
    box-shadow: var(--mtfx-global-shadow);
    border: var(--mtfx-global-glass-border);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s ease;
}

.singular-article:hover {
    box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.12);
}

.entry-header.post-hero {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

[data-theme="dark"] .entry-header.post-hero {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.entry-title {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.025em;
    margin: 20px 0;
    color: var(--mtfx-text);
}

@media (max-width: 768px) {
    .singular-article {
        padding: 30px 20px;
        border-radius: 24px;
    }

    .entry-title {
        font-size: 2rem;
    }
}