/* -------------------------------------------------------------------------- */
/*                                Blog Listing Styles                         */
/* -------------------------------------------------------------------------- */

.mz-blog-page {
    min-height: 100vh;
    width: 100%;
    display: block;
}

/* Breadcrumbs */
.mz-breadcrumbs-container {
    background: transparent;
    padding: 15px 0;
    border-bottom: none;
}

.mz-breadcrumbs {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 14px;
    color: var(--mz-text-light);
}

.mz-breadcrumbs li + li::before {
    content: "/";
    margin: 0 10px;
    color: var(--mz-border-color);
}

.mz-breadcrumbs a {
    color: var(--mz-text-light);
    text-decoration: none;
    transition: color 0.3s;
}

.mz-breadcrumbs a:hover {
    color: var(--mz-primary);
}

.mz-breadcrumbs .active {
    color: var(--mz-text-main);
}

/* Blog Hero */
.mz-blog-hero {
    background: transparent;
    padding: 20px 0;
    text-align: center;
    border-bottom: none;
}

.mz-blog-main-title {
    font-size: 32px;
    font-family: var(--mz-font-bold);
    color: var(--mz-text-dark);
    margin-bottom: 15px;
}

.mz-blog-description {
    color: var(--mz-text-light);
    font-size: 16px;
    max-width: 1200px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Blog Grid */
.mz-blog-list-section {
    padding: 10px 0;
}

.mz-blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 50px;
}

@media (max-width: 768px) {
    .mz-blog-grid {
        grid-template-columns: 1fr !important;
    }
}

@media (max-width: 400px) {
    .mz-blog-grid {
        grid-template-columns: 1fr !important;
    }
}

.mz-blog-card {
    background: var(--mz-white);
    border: 1px solid var(--mz-border-color);
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    width: 100%;
    box-sizing: border-box;
}

.mz-blog-card:hover {
}

.mz-blog-thumb {
    position: relative;
    padding-top: 60%; /* 16:9 Aspect Ratio */
    overflow: hidden;
}

.mz-blog-thumb img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: fill;
}

.mz-blog-card:hover .mz-blog-thumb img {
}

.mz-blog-cat {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--mz-primary);
    color: #fff;
    padding: 5px 12px;
    border-radius: 8px;
    font-size: 12px;
    font-family: var(--mz-font-bold);
    z-index: 1;
}

.mz-blog-video-badge {
    position: absolute;
    bottom: 15px;
    left: 15px;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 12px;
    font-family: var(--mz-font-bold);
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 6px;
    backdrop-filter: blur(4px);
}

.mz-blog-video-badge svg {
    color: #fff !important;
}

/* Video player in single post */
.mz-video-wrapper {
    position: relative;
    width: 100%;
    background: #000;
    border-radius: 15px;
    overflow: hidden;
}

.mz-post-video {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 15px;
    cursor: pointer;
    background: #000;
}

.mz-post-video:focus {
    outline: none;
}

/* Video play button overlay (YouTube-like) */
.mz-video-wrapper .mz-video-play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 68px;
    height: 68px;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 2;
    pointer-events: none;
}

.mz-video-wrapper .mz-video-play-overlay svg {
    width: 28px;
    height: 28px;
    color: #fff !important;
    margin-left: 3px;
}

.mz-video-wrapper:hover .mz-video-play-overlay {
    background: rgba(0, 0, 0, 0.9);
    transform: translate(-50%, -50%) scale(1.1);
}

.mz-blog-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}
.mz-blog-card:hover {
    box-shadow: none;
}

.mz-blog-meta {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: var(--mz-text-light);
    margin-bottom: 15px;
}

.mz-blog-meta i {
    margin-left: 5px;
    color: var(--mz-primary);
}

/* Updated Badge for blog cards */
.mz-updated-badge {
    display: inline-block;
    font-size: 11px;
    color: #e67e22;
    background: #fef3e7;
    padding: 1px 6px;
    border-radius: 3px;
    margin-right: 4px;
    white-space: nowrap;
}

.mz-blog-title {
    font-size: 18px;
    font-family: var(--mz-font-bold);
    margin-bottom: 15px;
    line-height: 1.5;
    overflow-wrap: break-word;
    word-break: break-word;
}

.mz-blog-title a {
    color: var(--mz-text-dark);
    text-decoration: none;
    transition: color 0.3s;
}

.mz-blog-title a:hover {
    color: var(--mz-primary);
}

.mz-blog-excerpt {
    font-size: 14px;
    color: var(--mz-text-main);
    line-height: 1.8;
    margin-bottom: 20px;
    flex-grow: 1;
    overflow-wrap: break-word;
    word-break: break-word;
}

.mz-blog-read-more {
    color: var(--mz-primary);
    font-size: 14px;
    font-family: var(--mz-font-bold);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    justify-content: flex-start;
}

.mz-blog-read-more:hover {
    gap: 12px;
}

/* Pagination */
.mz-pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 40px;
}

.mz-pagination .page-numbers {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: var(--mz-white);
    color: var(--mz-text-main);
    text-decoration: none;
    border: 1px solid var(--mz-border-color);
}

.mz-pagination .page-numbers.current,
.mz-pagination .page-numbers:hover {
    background: var(--mz-primary);
    color: #fff;
    border-color: var(--mz-primary);
}

/* -------------------------------------------------------------------------- */
/*                                Single Post Styles                          */
/* -------------------------------------------------------------------------- */

.mz-single-post-page {
    /* background-color: #f9f9f9;  Removed background */
    padding-bottom: 0px;
    width: 100%;
}

.mz-post-layout {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 25px;
    margin-top: 10px;
    align-items: start;
}

@media (max-width: 992px) {
    .mz-post-layout {
        grid-template-columns: 1fr;
    }
}

/* Post Article */
.mz-post-article {
    background: #fff;
    border-radius: 8px;
    padding: 40px;
    margin-bottom: 40px;
    position: relative; /* For scroll spy context if needed */
}

.mz-post-header {
    margin-bottom: 30px;
}

.mz-post-badges {
    margin-bottom: 15px;
}

.mz-post-category {
    background: rgba(0, 137, 138, 0.1);
    color: var(--mz-primary);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
}

.mz-post-title {
    color: #333;
    margin-bottom: 20px;
    line-height: 1.4;
}

.mz-post-meta-wrapper {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
    padding: 15px 0;
    margin-top: 20px;
}

.mz-post-meta {
    display: flex;
    gap: 25px;
    color: #666;
    font-size: 0.9rem;
}

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

.mz-meta-item svg {
    color: var(--mz-primary);
}

.mz-post-featured-image {
    margin: 30px 0;
    border-radius: 15px;
    overflow: hidden;
}

.mz-post-featured-image img {
    width: 100%;
    height: auto;
    display: block;
    cursor: pointer; /* Lightbox trigger */
}
.mz-post-featured-image img:hover {
}

/* Post Body Typography */
.mz-post-body {
    font-size: 1.05rem;
    line-height: 1.9;
    color: #444;
    width: 100%;
    box-sizing: border-box;
}

.mz-post-body h2 {
    font-size: 1.5rem;
    margin-top: 40px;
    margin-bottom: 20px;
    color: #222;
    scroll-margin-top: 100px; /* Sticky Header offset */
}

.mz-post-body h3 {
    font-size: 1.3rem;
    margin-top: 30px;
    margin-bottom: 15px;
    color: #333;
    scroll-margin-top: 100px;
}

.mz-post-body p {
    line-height: 40px;
    padding-left: 25px;
    padding-right: 25px;
    margin-bottom: 20px;
    font-size: 15px;
}

.mz-post-body ul, .mz-post-body ol {
    margin-bottom: 10px;
    padding-left: 25px;
}

.mz-post-body li {
    margin-bottom: 20px;
    margin-left: 30px;
    margin-right: 0;
}

.mz-post-body code {
    background: #f4f6f8;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: monospace;
    color: #c7254e;
    font-size: 0.9em;
}

/* Code Block Styling */
.mz-post-body pre {
    background: #f5f7fa;
    color: #333;
    padding: 0;
    border-radius: 12px;
    overflow: hidden;
    margin: 25px 0;
    direction: ltr;
    text-align: left;
    font-size: 13px;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    position: relative;
    box-shadow: none;
    border: 1px solid #e1e4e8;
}


.mz-post-body pre .mz-code-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #eef1f5;
    padding: 8px 16px;
    border-bottom: 1px solid #e1e4e8;
    direction: ltr;
}

.mz-post-body pre .mz-code-lang {
    color: #666;
    font-size: 12px;
    font-family: 'A-Light', Tahoma, sans-serif;
}

.mz-post-body pre .mz-copy-btn {
    background: #fff;
    border: 1px solid #d1d5da;
    color: #555;
    padding: 4px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 12px;
    font-family: 'A-Light', Tahoma, sans-serif;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 6px;
}

.mz-post-body pre .mz-copy-btn:hover {
    background: #f3f4f6;
    border-color: #bbb;
}

.mz-post-body pre .mz-copy-btn.copied {
    background: #dcffe4;
    border-color: #34d058;
    color: #1a7f37;
}

.mz-post-body pre .mz-code-body {
    padding: 0;
    overflow-x: auto;
    direction: ltr;
    text-align: left;
}

.mz-post-body pre .mz-code-table {
    display: table;
    width: 100%;
    border-collapse: collapse;
    direction: ltr;
    text-align: left;
}

.mz-post-body pre .mz-code-row {
    display: table-row;
}

.mz-post-body pre .mz-line-number {
    display: table-cell;
    color: #999;
    font-size: 12px;
    line-height: 1.8;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    padding: 0 12px 0 8px;
    border-left: 1px solid #e1e4e8;
    user-select: none;
    direction: ltr;
    text-align: left;
    min-width: 36px;
    background: #f8f9fb;
    vertical-align: top;
    white-space: nowrap;
}

.mz-post-body pre .mz-code-line {
    display: table-cell;
    color: #333;
    font-size: 13px;
    line-height: 1.8;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    padding: 0 16px 0 0;
    white-space: pre;
    vertical-align: top;
    background: #fff;
}

/* Alternate row colors for readability */
.mz-post-body pre .mz-code-row:nth-child(even) .mz-code-line {
    background: #fafbfc;
}

.mz-post-body pre .mz-code-row:nth-child(even) .mz-line-number {
    background: #f5f7fa;
}




.mz-post-body blockquote {
    border-left: 4px solid var(--mz-primary);
    background: #f9fbfb;
    padding: 20px;
    margin: 30px 0;
    color: #555;
}

/* Post Body Tables */
.mz-post-body table {
    width: auto;
    min-width: 50%;
    max-width: 100%;
    border-collapse: collapse;
    margin: 25px auto;
    font-size: 14px;
    text-align: left;
    direction: ltr;
    white-space: normal;
}


.mz-post-body table thead {
    background: var(--mz-primary);
    color: #fff;
}

.mz-post-body table th {
    padding: 12px 15px;
    font-family: var(--mz-font-bold);
    font-size: 14px;
    border: 1px solid var(--mz-primary);
    text-align: left;
}

.mz-post-body table td {
    padding: 10px 15px;
    border: 1px solid #e0e0e0;
    color: #444;
    line-height: 1.7;
}

.mz-post-body table tbody tr:nth-child(even) {
    background: #f8f9fa;
}

.mz-post-body table tbody tr:hover {
    background: #e8f5f4;
}

.mz-post-body table tbody tr:nth-child(even):hover {
    background: #e0f0ef;
}


.mz-post-body img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    cursor: pointer;
}
.mz-post-body img:hover {
}

/* Figures */
.mz-post-image {
    margin: 30px 0;
    text-align: center;
}

.mz-post-image img {
    max-width: 100%;
    border-radius: 10px;
}

.mz-post-image figcaption {
    margin-top: 10px;
    font-size: 0.9rem;
    color: #888;
    font-style: italic;
}

/* TOC (In-Content) - Keeping for mobile or fallback */
.mz-toc-container {
    display: none;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 10px;
    padding: 25px;
    margin: 30px 0;
}

.mz-toc-title {
    font-weight: bold;
    margin-bottom: 15px;
    font-size: 1.1rem;
    color: #333;
}

.mz-toc-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mz-toc-list li {
    margin-bottom: 10px;
}

.mz-toc-list a {
    color: var(--mz-primary);
    text-decoration: none;
    transition: color 0.2s;
}

.mz-toc-list a:hover {
    color: #006061;
}

/* Alerts */
.mz-alert {
    padding: 15px 20px;
    border-radius: 8px;
    margin: 20px 0;
    border-left: 4px solid;
}

.mz-alert-warning {
background: var(--mz-primary-light);
    border-left-color: var(--mz-primary);
    color: var(--mz-primary);
    padding: 30px;
    line-height: 35px;
}

.mz-alert-info {
    background-color: #e3f2fd;
    border-color: #2196f3;
    color: #0d47a1;
}

/* Post Footer */
.mz-post-footer {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.mz-footer-meta {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.mz-post-category-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.mz-meta-label, .mz-tags-label {
    color: #666;
    font-weight: 600;
    min-width: 70px; /* Align labels */
}

.mz-category-link {
    color: var(--mz-primary);
    text-decoration: none;
    font-weight: 500;
}
.mz-category-link:hover {
    text-decoration: underline;
}

.mz-post-tags {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.mz-tags-label {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #666;
    font-weight: 600;
}

.mz-tag {
    background: #f1f1f1;
    color: #666;
    padding: 5px 12px;
    border-radius: 15px;
    text-decoration: none;
    font-size: 0.85rem;
    transition: all 0.2s;
}

.mz-tag:hover {
    background: var(--mz-primary);
    color: #fff;
}

.mz-post-share {
    display: flex;
    align-items: center;
    gap: 15px;
}
hr {
    margin-top: 30px;
    margin-bottom: 25px;
    border: none;
    border-top: 1px solid #f1f1f1;
}
.mz-share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 8px;
    background: #f3f4f6;
    color: #666;
    transition: background-color 0.2s, color 0.2s;
}

.mz-share-btn:hover {
}

.mz-share-telegram { background: #f3f4f6; }
.mz-share-twitter { background: #f3f4f6; }
.mz-share-linkedin { background: #f3f4f6; }

.mz-share-telegram:hover { background: #0088cc; color: #fff; }
.mz-share-twitter:hover { background: #1da1f2; color: #fff; }
.mz-share-linkedin:hover { background: #0077b5; color: #fff; }

.mz-share-btn svg {
    width: 20px;
    height: 20px;
    stroke-width: 2; /* Make icons slightly bolder/clearer */
    transition: all 0.2s;
}


/* Author Box */
.mz-author-box {
    display: flex;
    align-items: center;
    gap: 20px;
    background: #fff;
    padding: 30px;
    border-radius: 15px;
    margin-top: 40px;
}

.mz-author-avatar img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
}

.mz-author-info {
    flex: 1;
}

.mz-author-label {
    display: block;
    font-size: 0.8rem;
    color: #888;
    margin-bottom: 5px;
}

.mz-author-name {
    font-size: 1.2rem;
    margin: 0 0 10px;
    color: #333;
}

.mz-author-bio {
    font-size: 0.9rem;
    color: #666;
    margin: 0;
    line-height: 1.6;
}

/* -------------------------------------------------------------------------- */
/*                                Comments Section                            */
/* -------------------------------------------------------------------------- */

.mz-comments-section {
    margin-top: 60px;
    padding-top: 30px;
    border-top: 1px solid #eee;
    width: 100%;
    box-sizing: border-box;
}

.mz-comments-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.mz-comments-header h3 {
    font-size: 1.5rem;
    color: #333;
    margin: 0;
}

.mz-comments-count {
    background: #f1f1f1;
    color: #666;
    padding: 4px 12px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
}

/* Comment Form */
.mz-comment-form-container {
    margin-bottom: 50px;
}

.mz-reply-indicator {
    background: #faebd7;
    color: #0d47a1;
    padding: 10px 15px;
    border-radius: 8px;
    margin-bottom: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
}

.mz-reply-indicator button {
    border: none;
    color: #0d47a1;
    font-weight: bold;
    cursor: pointer;
    font-size: 0.85rem;
font-family: 'A-Bold';
    background: #fff;
    padding: 5px;
    border-radius: 8px;
}

.mz-comment-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.mz-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.mz-form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.mz-form-group label {
    font-size: 0.9rem;
    color: #555;
    font-weight: 500;
}

.mz-form-group input,
.mz-form-group textarea {
    padding: 12px;
    border: 1px solid #ddd; /* Minimal border */
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.95rem;
    transition: border-color 0.2s;
    background: #fff;
    box-sizing: border-box;
    width: 100%;
}

.mz-form-group input:focus,
.mz-form-group textarea:focus {
    border-color: var(--mz-primary);
    outline: none;
}

.mz-btn-submit {
    background: var(--mz-primary);
    color: #fff;
    border: none;
    padding: 10px 25px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-family: 'A-Bold';
    transition: background 0.2s;
}

.mz-btn-submit:hover {
    background: #006061;
}

.mz-btn-submit:disabled {
    background: #ccc;
    cursor: not-allowed;
}

/* Comments List */
.mz-comments-list {
background: #fff;
    border-radius: 8px;
    padding: 40px;
    display: flex;
    flex-direction: column;
    gap: 30px;

}

.mz-comment-item {
    position: relative;
}

.mz-comment-content-wrapper {
    /* Minimal design: No background, no shadow */
    padding-bottom: 20px;
    border-bottom: 1px solid #f0f0f0;
}

.mz-comment-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.mz-comment-author-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.mz-comment-author-name {
    font-weight: bold;
    color: #333;
    font-size: 1rem;
}

.mz-badge-admin {
    background: var(--mz-primary);
    color: #fff;
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 4px;
}

.mz-comment-time {
    font-size: 0.8rem;
    color: #999;
}

.mz-btn-reply {
    background: none;
    border: 1px solid #ddd;
    color: #666;
    padding: 4px 12px;
    border-radius: 8px;
    font-family: 'A-Light';
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s;
}

.mz-btn-reply:hover {
    border-color: var(--mz-primary);
    color: var(--mz-primary);
}

.mz-comment-text {
    font-size: 0.95rem;
    color: #444;
    line-height: 1.6;
    overflow-wrap: break-word;
    word-break: break-word;
}

/* Nested Comments */
.mz-comment-children {
    margin-top: 20px;
    margin-left: 40px;
    border-left: 2px solid #eee;
    padding-left: 20px;
}

/* Admin Specifics */
.mz-comment-admin .mz-comment-author-name {
    color: var(--mz-primary);
}

/* No Comments */
.mz-no-comments {
    text-align: center;
    color: #888;
    padding: 40px;
    background: #f9f9f9;
    border-radius: 10px;
}

@media (max-width: 768px) {
    .mz-form-row {
        grid-template-columns: 1fr;
    }
    
    .mz-comment-children {
        margin-left: 20px;
        padding-left: 15px;
    }
}

/* Sidebar Widgets */
.mz-sidebar-widget {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 0px;
    align-self: flex-start;
    border: 2px solid var(--mz-border-color);
}

.mz-post-sidebar {
    align-self: flex-start;
}

.mz-sidebar-widget h3 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #f1f1f1;
    color: #333;
}

.mz-widget-about p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.mz-btn-outline {
    display: inline-block;
    padding: 8px 20px;
    border: 2px solid var(--mz-primary);
    color: var(--mz-primary);
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s;
    font-size: 0.9rem;
}

.mz-btn-outline:hover {
    background: var(--mz-primary);
    color: #fff;
}

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

.mz-recent-posts li {
    margin-bottom: 15px;
}

.mz-recent-posts li:last-child {
    margin-bottom: 0;
}

.mz-recent-post-link {
    display: flex;
    gap: 15px;
    text-decoration: none;
    align-items: center;
}

.mz-recent-post-thumb {
    width: 60px;
    height: 60px;
    flex-shrink: 0;
    border-radius: 8px;
    overflow: hidden;
}

.mz-recent-post-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mz-recent-post-info {
    display: flex;
    flex-direction: column;
}

.mz-recent-post-title {
    font-size: 0.95rem;
    color: #444;
    line-height: 1.4;
    margin-bottom: 5px;
    transition: color 0.3s;
}

.mz-recent-post-link:hover .mz-recent-post-title {
    color: var(--mz-primary);
}

.mz-recent-post-date {
    font-size: 0.8rem;
    color: #999;
}

/* Sticky Widget (General) */
.mz-sticky-widget {
    position: relative;
    top: 0;
}

.mz-promo-box {
    text-align: center;
    background: linear-gradient(135deg, var(--mz-primary), #006061);
    padding: 20px;
    border-radius: 10px;
    color: #fff;
}

.mz-promo-box h4 {
    margin: 0 0 10px;
    font-size: 1.2rem;
}

.mz-promo-box p {
    font-size: 0.9rem;
    margin-bottom: 20px;
    opacity: 0.9;
}

.mz-promo-box .mz-btn {
    background: #fff;
    color: var(--mz-primary);
    border: none;
    width: 100%;
    display: block;
    padding: 10px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
}

.mz-promo-box .mz-btn:hover {
}

/* -------------------------------------------------------------------------- */
/*                                New Features                                */
/* -------------------------------------------------------------------------- */

/* TOC Widget - Position managed by JS */
.mz-toc-widget {
    position: relative;
}

.mz-toc-widget nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mz-toc-widget nav li {
    margin-bottom: 8px;
    position: relative;
}

.mz-toc-widget nav a {
    text-decoration: none;
    color: #444;
    transition: color 0.2s;
    display: block;
    padding: 6px 8px;
    border-left: 2px solid transparent;
    font-size: 0.95rem;
    border-radius: 6px;
}

.mz-toc-widget nav a:hover,
.mz-toc-widget nav a.active {
    color: #00898a;
    background: #00898a14;
    border-left-color: var(--mz-primary);
    font-weight: 600;
}

/* Nested level styles - subtle font size reduction for hierarchy */
.mz-toc-widget nav ul ul {
    padding-left: 20px;
    position: relative;
}

/* Vertical connector line for nested levels - continuous line next to sub-items */
.mz-toc-widget nav ul ul::before {
    content: '';
    position: absolute;
    left: 26px;
    top: 0;
    bottom: 0;
    width: 1px;
    background: #e0e0e0;
}

.mz-toc-widget nav ul ul ul {
    padding-left: 35px;
}

.mz-toc-widget nav ul ul ul ul {
    padding-left: 50px;
}

.mz-toc-widget nav ul ul ul ul ul {
    padding-left: 65px;
}

.mz-toc-widget nav ul ul a {
    font-size: 0.88rem;
}

.mz-toc-widget nav ul ul ul a {
    font-size: 0.82rem;
}

.mz-toc-widget nav ul ul ul ul a {
    font-size: 0.76rem;
}

.mz-toc-widget nav ul ul ul ul ul a {
    font-size: 0.70rem;
}



/* Related Posts Bottom */
.mz-related-posts-bottom {
    margin-top: 50px;
}

.mz-section-title {
    font-size: 1.6rem;
    margin-bottom: 25px;
    color: #333;
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
}

.mz-related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

.mz-related-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
}

.mz-related-card:hover {
}

.mz-related-thumb {
    display: block;
    height: 160px;
    overflow: hidden;
}

.mz-related-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mz-related-card:hover .mz-related-thumb img {
}

.mz-related-content {
    padding: 15px;
}

.mz-related-content h4 {
    margin: 0 0 10px;
    font-size: 1rem;
    line-height: 1.4;
}

.mz-related-content h4 a {
    color: #333;
    text-decoration: none;
    transition: color 0.2s;
}

.mz-related-content h4 a:hover {
    color: var(--mz-primary);
}

.mz-related-date {
    font-size: 0.8rem;
    color: #999;
}

/* Back to Top */

.mz-back-to-top {
    position: fixed;
    right: 20px;
    bottom: 20px;
    width: 45px;
    height: 45px;
    background: var(--mz-primary);
    color: #fff;
    border: none;
    border-radius: 50%;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    cursor: pointer;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}

.mz-back-to-top.show {
    opacity: 1;
    visibility: visible;
  display: none;
}

.mz-back-to-top:hover {
    background: #006061;
    transform: translateY(-3px);
}

/* Lightbox */
.mz-lightbox {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.9);
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.mz-lightbox-content {
    max-width: 90%;
    max-height: 80vh;
    border-radius: 5px;
}



.mz-lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}

.mz-lightbox-close:hover {
    color: #bbb;
}

#mz-lightbox-caption {
    margin-top: 20px;
    color: #ccc;
    font-size: 1.1rem;
}

/* Accordion / FAQ */
.mz-accordion {
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 20px;
}

.mz-accordion-item {
    border-bottom: 1px solid #ddd;
}

.mz-accordion-item:last-child {
    border-bottom: none;
}

.mz-accordion-header {
    background: #f9f9f9;
    padding: 15px 20px;
    cursor: pointer;
    font-weight: bold;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mz-accordion-header:hover {
    background: #f1f1f1;
}

.mz-accordion-header::after {
    content: '+';
    font-size: 1.2rem;
    color: var(--mz-primary);
}

.mz-accordion-item.active .mz-accordion-header::after {
    content: '-';
}

.mz-accordion-body {
    display: none;
    padding: 20px;
    background: #fff;
    line-height: 1.6;
}

.mz-accordion-item.active .mz-accordion-body {
    display: block;
}

/* -------------------------------------------------------------------------- */
/*                                Table of Contents (In-Content)              */
/* -------------------------------------------------------------------------- */
.mz-toc-container {
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 20px;
    margin: 30px 0;
    font-size: 0.95rem;
}

.mz-toc-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    font-weight: bold;
    color: var(--mz-text-main);
}

.mz-toc-title {
    font-size: 1.1rem;
}

.mz-toc-toggle {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--mz-text-light);
    padding: 0;
}

.mz-toc-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mz-toc-list.hidden {
    display: none;
}

.mz-toc-item {
    margin-bottom: 8px;
}

.mz-toc-item a {
    color: var(--mz-text-main);
    text-decoration: none;
    transition: color 0.2s;
    display: block;
    padding: 5px 0;
}

.mz-toc-item a:hover {
    color: var(--mz-primary);
}

.mz-toc-h2 {
    font-weight: 600;
}

.mz-toc-h3 {
    padding-left: 20px;
    font-size: 0.85em;
    color: var(--mz-text-light);
}

.mz-toc-h4 {
    padding-left: 0;
    font-size: 0.78em;
    color: var(--mz-text-light);
}

.mz-toc-h5 {
    padding-left: 60px;
    font-size: 0.72em;
    color: var(--mz-text-light);
}

.mz-toc-h6 {
    padding-left: 80px;
    font-size: 0.66em;
    color: var(--mz-text-light);
}

/* Auto Links */
.mz-auto-link {
    color: var(--mz-primary);
    font-weight: 600;
    font-family: 'A-Bold';
    text-decoration: none;
    border-bottom: 1px dashed var(--mz-primary);
}

.mz-auto-link:hover {
    background-color: rgba(0, 137, 138, 0.1);
}

/* Mobile Responsive - Blog Listing & Single Post */
@media (max-width: 768px) {
    html, body {
        width: 100%;
        overflow-x: hidden;
    }
    
    .mz-blog-page {
        width: 100%;
        overflow-x: hidden;
    }
    
    .mz-container {
        width: 100%;
        max-width: 100%;
        margin: 0 auto;
        padding: 0 15px;
        box-sizing: border-box;
        overflow-x: hidden;
    }
    
    .mz-breadcrumbs-container {
        padding: 10px 0;
        width: 100%;
    }
    
    .mz-breadcrumbs {
        flex-wrap: wrap;
        font-size: 12px;
    }
    
    .mz-blog-hero {
        padding: 15px 0;
        width: 100%;
    }
    
    .mz-blog-main-title {
        font-size: 22px;
        margin-bottom: 12px;
    }
    
    .mz-blog-description {
        font-size: 14px;
        line-height: 1.5;
    }
    
    .mz-blog-list-section {
        padding: 10px 0;
        width: 100%;
    }
    
    .mz-blog-grid {
        display: grid;
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .mz-blog-card {
        width: 100%;
        box-sizing: border-box;
        overflow: hidden;
    }
    
    .mz-blog-thumb img {
        max-width: 100%;
        height: auto;
    }
    
    .mz-blog-title {
        overflow-wrap: break-word;
        word-break: break-word;
    }
    
    .mz-blog-excerpt {
        overflow-wrap: break-word;
        word-break: break-word;
    }
    
    .mz-post-layout {
        display: grid;
        grid-template-columns: 1fr;
    }
    
    .mz-post-article {
        padding: 20px;
        display: block;
        box-sizing: border-box;
        overflow-x: hidden;
    }
    
    .mz-post-title {
        font-size: 20px;
    }
    
    .mz-blog-search-container {
        max-width: 100% !important;
        box-sizing: border-box;
        width: 100%;
    }
    
    .mz-blog-search-container input {
        width: 100%;
        box-sizing: border-box;
    }
    
    .mz-toc-widget {
        display: none !important;
    }
    
    .mz-post-meta-wrapper {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }
    
    /* Pagination Mobile Fix */
    .mz-pagination {
        flex-wrap: wrap;
        gap: 6px;
    }
    
    .mz-pagination .page-numbers {
        width: 36px;
        height: 36px;
        font-size: 13px;
    }
    
    /* ===== SINGLE POST MOBILE FIXES ===== */
    
    /* Fix post body paragraphs - remove large padding causing overflow */
    .mz-post-body p {
        padding-left: 0;
        padding-right: 0;
        line-height: 1.9;
        font-size: 15px;
    }
    
    .mz-post-body li {
        margin-left: 15px;
        margin-right: 0;
    }
    
    .mz-post-body ul,
    .mz-post-body ol {
        padding-left: 15px;
        padding-right: 0;
    }
    }
    
    /* Make comments list padding smaller */
    .mz-comments-list {
        padding: 20px;
    }
    
    /* Fix author box for mobile */
    .mz-author-box {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }
    
    .mz-author-avatar img {
        width: 60px;
        height: 60px;
    }
    
    /* Fix post footer for mobile */
    .mz-post-footer {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .mz-post-share {
        width: 100%;
        justify-content: flex-start;
    }
    
    /* Fix comment header row */
    .mz-comment-header-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    /* Fix comment form */
    .mz-comment-form-container {
        width: 100%;
        box-sizing: border-box;
    }
    
    .mz-comment-form {
        width: 100%;
    }
    
    .mz-post-content-area {
        width: 100%;
        overflow-x: hidden;
    }
    
    /* Fix TOC container */
    .mz-toc-container {
        width: 100%;
        box-sizing: border-box;
    }
    
    /* Mobile table fix - horizontal scroll */
    .mz-post-body table {
        display: block;
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        white-space: nowrap;
        font-size: 13px;
    }
    
    .mz-post-body table th,
    .mz-post-body table td {
        padding: 8px 10px;
        white-space: nowrap;
    }

}

@media (max-width: 480px) {
    .mz-blog-content {
        padding: 15px;
    }
    
    .mz-blog-meta {
        flex-direction: column;
        gap: 5px;
    }
    
    .mz-pagination {
        gap: 4px;
    }
    
    .mz-pagination .page-numbers {
        width: 32px;
        height: 32px;
        font-size: 11px;
    }
    
    /* Single post mobile fixes for very small screens */
    .mz-post-article {
        padding: 15px;
    }
    
    .mz-post-body p {
        font-size: 14px;
    }
    
    .mz-post-body h2 {
        font-size: 1.3rem;
    }
    
    .mz-post-body h3 {
        font-size: 1.1rem;
    }
    
    .mz-post-meta {
        flex-wrap: wrap;
        gap: 10px;
        font-size: 0.8rem;
    }
    
    .mz-comments-list {
        padding: 15px;
    }
    
    .mz-comment-author-info {
        flex-wrap: wrap;
    }
}

@media (max-width: 360px) {
    .mz-pagination .page-numbers {
        width: 28px;
        height: 28px;
        font-size: 10px;
        min-width: 28px;
    }
    
    .mz-container {
        padding: 0 10px;
    }
    
    .mz-post-article {
        padding: 10px;
    }
}

/* ============================================================
   AI Chat Box Styles for Blog Posts
   ============================================================ */
.mz-ai-chat-section {
    margin-top: 0;
    margin-bottom: 40px;
    background: var(--mz-bg-light);
    border-radius: var(--mz-radius-lg);
    padding: 30px;
    border: 1px solid var(--mz-border-color);
    position: relative;
    overflow: hidden;
    max-width: 100%;
    box-sizing: border-box;
}

.mz-ai-chat-section::before {
    content: '';
    position: absolute;
    top: -50px;
    left: -50px;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(0, 137, 138, 0.06) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.mz-ai-chat-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.mz-ai-chat-title {
    font-size: var(--mz-fs-xl);
    font-family: var(--mz-font-bold);
    color: var(--mz-text-dark);
    margin: 0;
}

.mz-ai-chat-subtitle {
    font-size: var(--mz-fs-sm);
    color: var(--mz-text-light);
    margin: 2px 0 0 0;
}

/* AI Chat Body - Flex layout with history sidebar + chat main */
.mz-ai-chat-body {
    display: flex;
    gap: 20px;
    min-height: 400px;
    max-width: 100%;
    box-sizing: border-box;
}

/* History Sidebar */
.mz-ai-chat-history {
    width: 220px;
    flex-shrink: 0;
    background: var(--mz-white);
    border: 1px solid var(--mz-border-color);
    border-radius: var(--mz-radius-sm);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    max-height: 400px;
}

.mz-ai-history-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 14px;
    font-size: var(--mz-fs-sm);
    font-family: var(--mz-font-bold);
    color: var(--mz-text-dark);
    border-bottom: 1px solid var(--mz-border-color);
    background: var(--mz-bg-light);
}

.mz-ai-history-header svg {
    color: var(--mz-primary);
    flex-shrink: 0;
}

.mz-ai-history-list {
    flex: 1;
    overflow-y: auto;
    padding: 8px;
}

.mz-ai-history-list::-webkit-scrollbar {
    width: 4px;
}

.mz-ai-history-list::-webkit-scrollbar-track {
    background: transparent;
}

.mz-ai-history-list::-webkit-scrollbar-thumb {
    background: var(--mz-text-muted);
    border-radius: 10px;
}

.mz-ai-history-empty {
    text-align: center;
    color: var(--mz-text-muted);
    font-size: var(--mz-fs-xs);
    padding: 20px 10px;
}

.mz-ai-history-item {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 10px 12px;
    border-radius: var(--mz-radius-sm);
    cursor: pointer;
    transition: var(--mz-transition);
    margin-bottom: 4px;
    font-size: var(--mz-fs-sm);
    color: var(--mz-text-main);
    line-height: 1.5;
}

.mz-ai-history-item:hover {
    background: var(--mz-bg-light);
}

.mz-ai-history-item:active {
    background: var(--mz-primary-light);
}

.mz-ai-history-item span {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-break: break-word;
}

/* Chat Main Area */
.mz-ai-chat-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
    max-width: 100%;
}

.mz-ai-chat-messages {
    height: 350px;
    overflow-y: auto;
    overflow-x: hidden;
    margin-bottom: 16px;
    padding: 5px;
    scroll-behavior: smooth;
    max-width: 100%;
    box-sizing: border-box;
}

.mz-ai-chat-messages::-webkit-scrollbar {
    width: 5px;
}

.mz-ai-chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.mz-ai-chat-messages::-webkit-scrollbar-thumb {
    background: var(--mz-text-muted);
    border-radius: 10px;
}

.mz-ai-message {
    display: flex;
    margin-bottom: 16px;
    animation: mzAiFadeIn 0.3s ease;
    scroll-margin-top: 10px;
}

.mz-ai-message-highlight {
    animation: mzAiHighlight 1.5s ease;
}

@keyframes mzAiHighlight {
    0% { background: transparent; }
    30% { background: rgba(0, 137, 138, 0.1); border-radius: 8px; }
    100% { background: transparent; }
}

@keyframes mzAiFadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.mz-ai-message-user {
    flex-direction: row;
    justify-content: flex-end;
}

.mz-ai-message-ai {
    flex-direction: row;
    justify-content: flex-start;
}

.mz-ai-message-bubble {
    max-width: 85%;
    padding: 12px 16px;
    border-radius: var(--mz-radius-md);
    font-size: var(--mz-fs-md);
    line-height: var(--mz-lh-base);
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-word;
    hyphens: auto;
}

.mz-ai-message-user .mz-ai-message-bubble {
    background: #000;
    color: var(--mz-white);
    border-bottom-right-radius: 4px;
}

.mz-ai-message-ai .mz-ai-message-bubble {
    background: var(--mz-white);
    border-bottom-left-radius: 4px;
}

.mz-ai-message-ai .mz-ai-message-bubble p {
    margin: 0 0 8px 0;
    line-height: var(--mz-lh-base);
}

.mz-ai-message-ai .mz-ai-message-bubble p:last-child {
    margin-bottom: 0;
}

.mz-ai-message-ai .mz-ai-message-bubble .ai-spacer {
    height: 8px;
}

.mz-ai-message-ai .mz-ai-message-bubble strong {
    font-family: var(--mz-font-bold);
    color: var(--mz-text-dark);
}

.mz-ai-message-ai .mz-ai-message-bubble code {
    background: var(--mz-bg-light);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: var(--mz-fs-sm);
    color: #c7254e;
    direction: ltr;
    display: inline-block;
}

.mz-ai-message-ai .mz-ai-message-bubble pre {
    background: var(--mz-bg-light);
    border: 1px solid var(--mz-border-color);
    border-radius: var(--mz-radius-sm);
    padding: 12px 16px;
    margin: 8px 0;
    overflow-x: auto;
    direction: ltr;
    text-align: left;
    max-width: 100%;
    box-sizing: border-box;
}

.mz-ai-message-ai .mz-ai-message-bubble pre code {
    background: none;
    padding: 0;
    border-radius: 0;
    color: var(--mz-text-dark);
    font-size: var(--mz-fs-sm);
    line-height: 1.6;
    display: block;
    white-space: pre-wrap;
    word-break: break-all;
    overflow-wrap: break-word;
}

.mz-ai-message-ai .mz-ai-message-bubble ol,
.mz-ai-message-ai .mz-ai-message-bubble ul {
    margin: 8px 0;
    padding-left: 20px;
    padding-left: 0;
}

.mz-ai-message-ai .mz-ai-message-bubble li {
    margin-bottom: 4px;
    line-height: var(--mz-lh-base);
    margin-right: 0;
    margin-left: 0;
}

.mz-ai-message-ai .mz-ai-message-bubble br {
    display: block;
    content: '';
    margin: 4px 0;
}

.mz-ai-message-rejected .mz-ai-message-bubble {
    background: #fff8e1;
    border-color: #ffe082;
    color: #6d5200;
}

.mz-ai-captcha-wrapper {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.mz-ai-captcha-display {
    background: var(--mz-bg-light);
    border: 1px solid var(--mz-border-color);
    border-radius: var(--mz-radius-sm);
    padding: 10px 14px;
    font-size: var(--mz-fs-md);
    font-family: var(--mz-font-bold);
    color: var(--mz-text-dark);
    direction: ltr;
    text-align: center;
    white-space: nowrap;
    user-select: none;
    min-width: 80px;
}

.mz-ai-captcha-input {
    width: 60px;
    padding: 10px 8px;
    border: 2px solid var(--mz-border-color);
    border-radius: var(--mz-radius-sm);
    font-family: var(--mz-font-main);
    font-size: var(--mz-fs-md);
    outline: none;
    transition: var(--mz-transition);
    background: var(--mz-white);
    color: var(--mz-text-main);
    text-align: center;
    direction: ltr;
}

.mz-ai-captcha-input:focus {
    border-color: var(--mz-primary);
}

.mz-ai-captcha-input.mz-ai-captcha-error {
    border-color: #c62828;
    background: #fff0f0;
}

.mz-ai-captcha-input::placeholder {
    color: var(--mz-text-muted);
    font-size: var(--mz-fs-xs);
}

.mz-ai-input-group {
    flex: 1;
    display: flex;
    align-items: center;
    position: relative;
}

.mz-ai-char-counter {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 11px;
    color: var(--mz-text-muted);
    direction: ltr;
    pointer-events: none;
    font-family: 'Consolas', monospace;
}

.mz-ai-char-counter.mz-ai-char-warning {
    color: #e65100;
}

.mz-ai-char-counter.mz-ai-char-limit {
    color: #c62828;
    font-weight: bold;
}

.mz-ai-chat-input-wrapper {
    display: flex;
    gap: 10px;
    align-items: center;
}

.mz-ai-chat-input {
    flex: 1;
    padding: 12px 18px;
    border: 2px solid var(--mz-border-color);
    border-radius: var(--mz-radius-sm);
    font-family: var(--mz-font-main);
    font-size: var(--mz-fs-md);
    outline: none;
    transition: var(--mz-transition);
    background: var(--mz-white);
    color: var(--mz-text-main);
}

.mz-ai-chat-input:focus {
    border-color: var(--mz-primary);
}

.mz-ai-chat-input::placeholder {
    color: var(--mz-text-muted);
}

.mz-ai-chat-send-btn {
    width: 46px;
    height: 46px;
    border: none;
    border-radius: var(--mz-radius-sm);
    background: #e1e1e1;
    color: var(--mz-white);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--mz-transition);
    flex-shrink: 0;
}

.mz-ai-chat-send-btn:hover {
    background: #d0d0d0;
}

.mz-ai-chat-send-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.mz-ai-chat-send-btn svg {
    width: 20px;
    height: 20px;
}

.mz-ai-chat-loading {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: var(--mz-white);
    border-radius: var(--mz-radius-md);
    border-bottom-left-radius: 4px;
    margin-bottom: 16px;
    animation: mzAiFadeIn 0.3s ease;
}

.mz-ai-chat-loading-dots {
    display: flex;
    gap: 4px;
}

.mz-ai-chat-loading-dots span {
    width: 8px;
    height: 8px;
    background: var(--mz-primary);
    border-radius: 50%;
    animation: mzAiBounce 1.4s ease-in-out infinite;
}

.mz-ai-chat-loading-dots span:nth-child(2) {
    animation-delay: 0.2s;
}

.mz-ai-chat-loading-dots span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes mzAiBounce {
    0%, 80%, 100% { transform: scale(0.6); opacity: 0.4; }
    40% { transform: scale(1); opacity: 1; }
}

.mz-ai-chat-error {
    padding: 10px 16px;
    background: #fff0f0;
    border: 1px solid #ffcdd2;
    border-radius: var(--mz-radius-sm);
    color: #c62828;
    font-size: var(--mz-fs-sm);
    margin-bottom: 12px;
    animation: mzAiFadeIn 0.3s ease;
}

.mz-ai-chat-welcome {
    text-align: center;
    padding: 30px 20px;
    color: var(--mz-text-light);
}

.mz-ai-chat-welcome svg {
    width: 48px;
    height: 48px;
    color: var(--mz-primary);
    opacity: 0.4;
    margin-bottom: 12px;
}

.mz-ai-chat-welcome p {
    font-size: var(--mz-fs-md);
    margin: 0;
    line-height: var(--mz-lh-base);
}

.mz-ai-chat-welcome strong {
    color: var(--mz-primary);
}

/* Responsive */
@media (max-width: 992px) {
    .mz-ai-chat-body {
        flex-direction: column;
    }
    
    .mz-ai-chat-history {
        width: 100%;
        max-height: 180px;
    }
    
    .mz-ai-history-list {
        max-height: 130px;
    }
}

@media (max-width: 768px) {
    .mz-ai-chat-section {
        padding: 20px;
        margin-top: 30px;
        margin-bottom: 30px;
    }
    
    .mz-ai-chat-messages {
        height: 300px;
    }
    
    .mz-ai-chat-title {
        font-size: var(--mz-fs-lg);
    }
    
    .mz-ai-chat-welcome {
        padding: 20px 15px;
    }
}

@media (max-width: 480px) {
    .mz-ai-chat-section {
        padding: 15px;
        border-radius: var(--mz-radius-sm);
    }
    
    .mz-ai-chat-messages {
        height: 280px;
    }
    
    .mz-ai-chat-input {
        padding: 10px 14px;
        font-size: var(--mz-fs-sm);
    }
    
    .mz-ai-chat-send-btn {
        width: 42px;
        height: 42px;
    }
}

/* -------------------------------------------------------------------------- */
/*                          FAQ Section Styles                                */
/* -------------------------------------------------------------------------- */

.mz-faq-section {
    margin: 30px 0;
    background: #f8f9fa;
    border-radius: var(--mz-radius-md, 12px);
    padding: 25px;
    border: 1px solid #e9ecef;
    max-width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
}

.mz-faq-header {
    margin-bottom: 20px;
}

.mz-faq-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--mz-heading-color, #1a1a2e);
    margin: 0 0 5px 0;
}

.mz-faq-subtitle {
    font-size: 13px;
    color: #6c757d;
    margin: 0;
}

.mz-faq-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.mz-faq-item {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: var(--mz-radius-sm, 8px);
    overflow: hidden;
    transition: box-shadow 0.2s ease;
    max-width: 100%;
}

.mz-faq-item:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.mz-faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: var(--mz-heading-color, #1a1a2e);
    text-align: left;
    direction: ltr;
    font-family: inherit;
    line-height: 1.6;
}

.mz-faq-question:hover {
    background: #f8f9fa;
}

.mz-faq-q-icon,
.mz-faq-a-icon {
    min-width: 55px;
    height: 28px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    flex-shrink: 0;
    padding: 0 10px;
    white-space: nowrap;
}

.mz-faq-q-icon {
    background: #e8f4fd;
    color: #0d6efd;
}

.mz-faq-a-icon {
    background: #e8f8e8;
    color: #198754;
    align-self: flex-start;
    margin-top: 2px;
}

.mz-faq-arrow {
    margin-left: auto;
    flex-shrink: 0;
    transition: transform 0.3s ease;
    color: #6c757d;
}

.mz-faq-item.open .mz-faq-arrow {
    transform: rotate(180deg);
}

.mz-faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.mz-faq-item.open .mz-faq-answer {
    max-height: 1000px;
}

.mz-faq-answer-inner {
    display: flex;
    gap: 10px;
    padding: 0 16px 16px 16px;
    border-top: 1px solid #e9ecef;
    padding-top: 14px;
    margin-top: 0;
    direction: ltr;
    text-align: left;
    font-size: 14px;
    line-height: 1.8;
    color: #444;
    max-height: 350px;
    overflow-y: auto;
}

.mz-faq-answer-inner > div {
    flex: 1;
    min-width: 0;
    max-width: 100%;
    overflow-x: hidden;
    word-break: break-word;
}

.mz-faq-answer-inner p {
    margin: 0 0 8px 0;
}

.mz-faq-answer-inner p:last-child {
    margin-bottom: 0;
}

.mz-faq-answer-inner strong {
    color: #1a1a2e;
}

.mz-faq-answer-inner ol,
.mz-faq-answer-inner ul {
    margin: 8px 0;
    padding-left: 20px;
}

.mz-faq-answer-inner li {
    margin-bottom: 4px;
}

.mz-faq-answer-inner code {
    background: #f0f0f0;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 13px;
    direction: ltr;
    display: inline-block;
}

.mz-faq-answer-inner pre {
    background: #f5f5f5;
    padding: 12px;
    border-radius: 6px;
    overflow-x: auto;
    direction: ltr;
    text-align: left;
    margin: 8px 0;
    max-width: 100%;
    box-sizing: border-box;
    white-space: pre-wrap;
    word-break: break-word;
    overflow-wrap: break-word;
}

.mz-faq-answer-inner pre code {
    background: none;
    padding: 0;
    white-space: pre-wrap;
    word-break: break-word;
    overflow-wrap: break-word;
}

@media (max-width: 768px) {
    .mz-faq-section {
        padding: 18px;
        margin: 20px 0;
    }
    
    .mz-faq-question {
        font-size: 13px;
        padding: 12px 14px;
    }
    
    .mz-faq-answer-inner {
        font-size: 13px;
        padding: 0 14px 14px 14px;
        padding-top: 12px;
    }
}
