/* Refined Styles to match Mechodal Blog */
* {
    box-sizing: border-box;
}

.single-post-wrapper {
    font-family: 'Outfit', 'Inter', sans-serif;
    background: #fff;
    overflow: visible;
    width: 100%;
}

.post-breadcrumbs a {
    color: #1a1a1a;
    text-decoration: none;
    font-weight: 400;
}

.post-breadcrumbs span {
    color: #64748b;
}

.post-breadcrumbs .current-item {
    color: #ff9c00;
    font-weight: 500;
}

.post-header-section {
    padding: 80px 0 60px;
    background: #fff;
    border-bottom: 1px solid #f1f5f9;
    text-align: left;
}

.post-full-title {
    font-size: 42px;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.2;
    margin-bottom: 24px;
    max-width: 900px;
}

.post-excerpt {
    font-size: 19px;
    color: #475569;
    line-height: 1.6;
    max-width: 850px;
    margin-bottom: 30px;
}

.post-meta-extra {
    display: flex;
    align-items: center;
    gap: 24px;
    color: #64748b;
    font-size: 15px;
}

.post-meta-extra span {
    display: flex;
    align-items: center;
    gap: 8px;
}

.post-body-section {
    background: #f4fbf4;
    padding: 70px 0;
}

.post-content-grid {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 60px;
}

.toc-card {
    background: transparent;
    padding: 0;
    border-radius: 0;
    box-shadow: none;
    position: sticky;
    top: 140px;
    max-height: calc(100vh - 160px);
    overflow-y: auto;
    padding-right: 10px;
}

/* Custom scrollbar for TOC */
.toc-card::-webkit-scrollbar {
    width: 4px;
}
.toc-card::-webkit-scrollbar-track {
    background: #f1f5f9;
}
.toc-card::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 10px;
}
.toc-card::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

.toc-card h4 {
    font-size: 14px;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 25px;
    margin-top: 0;
}

.toc-list li {
    position: relative;
    list-style: none;
    margin-bottom: 12px;
}

.toc-list li.toc-h2 {
    padding-left: 20px;
    font-size: 15px;
    font-weight: 700;
}

.toc-list li.toc-h2 a {
    color: #1e293b;
}

.toc-list li.toc-h2::before {
    content: "•";
    position: absolute;
    left: 0;
    top: 0;
    font-size: 16px;
    color: #1e293b;
}

.toc-list li.toc-h3 {
    padding-left: 35px;
    font-size: 14px;
    font-weight: 500;
}

.toc-list li.toc-h3 a {
    color: #475569;
}

.toc-list li.toc-h3::before {
    content: "-";
    position: absolute;
    left: 18px;
    top: 0;
    font-size: 14px;
    color: #475569;
}

.toc-list li.toc-h4 {
    padding-left: 50px;
    font-size: 13px;
    font-weight: 400;
}

.toc-list li.toc-h4 a {
    color: #64748b;
}

/* Hide theme-generated archive titles on author pages */
.author-detail-page-v2 ~ .wp-block-post-title,
.author-detail-page-v2 .wp-block-post-title,
.author-archive-title-hide {
    display: none !important;
}

body.author .wp-block-post-title,
body.author h1.page-title,
body.author .archive-title,
body.author .page-header,
body.author .wp-block-site-title,
body.author .wp-block-query-title,
body.author .entry-title,
body.author #header,
body.author #header + hr {
    display: none !important;
}

/* Premium Author Section */
.author-section-premium {
    margin-top: 80px;
    padding-top: 50px;
    border-top: 1px solid #f2f2f2;
}

.author-card-premium {
    background: #fff;
    border: 1.5px solid #f1f5f9;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
}

.author-card-flex {
    display: flex;
    gap: 40px;
    align-items: center;
}

.author-avatar-wrap {
    flex-shrink: 0;
}

.author-avatar-wrap img {
    width: 220px;
    height: auto;
    max-height: 280px;
    object-fit: contain;
    border-radius: 0;
}

.author-details-wrap {
    flex-grow: 1;
}

.article-meta-label {
    display: block;
    color: #94a3b8;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.author-display-name {
    font-size: 32px;
    font-weight: 700;
    margin: 0 0 10px 0;
    letter-spacing: -0.5px;
}

.author-display-name a {
    color: #111;
    text-decoration: none;
    transition: 0.3s;
}

.author-display-name a:hover {
    color: #ff9c00;
}

.author-title-tag {
    display: inline-block;
    background: #fff5eb;
    color: #ff9c00;
    font-weight: 700;
    font-size: 14px;
    padding: 4px 12px;
    border-radius: 30px;
    margin-bottom: 20px;
}

.author-bio-text {
    font-size: 17px;
    line-height: 1.7;
    color: #4b5563;
    margin-bottom: 30px;
}

.author-links-premium {
    display: flex;
    gap: 12px;
}

.social-btn-premium {
    width: 40px;
    height: 40px;
    background: #f3f4f6;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6b7280;
    font-size: 18px;
    transition: all 0.3s ease;
}

.social-btn-premium:hover {
    background: #ff9c00;
    color: #fff;
    transform: translateY(-3px);
}

@media (max-width: 768px) {
    .author-card-flex {
        flex-direction: column;
        text-align: center;
    }
    .author-links-premium { justify-content: center; }
}

.toc-list li.toc-h4::before {
    content: "•";
    position: absolute;
    left: 35px;
    top: 2px;
    font-size: 10px;
    color: #64748b;
}

.toc-list li a {
    color: #475569;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.toc-list li a:hover {
    color: #ff9c00;
}

.toc-list li.sub-item {
    padding-left: 35px;
    color: #64748b;
    margin-bottom: 12px;
    font-size: 14px;
}

.toc-list li.sub-item::before {
    content: "-";
    left: 15px;
}

.post-main-content h2 {
    font-size: 34px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 30px;
    position: relative;
    padding-bottom: 20px;
}

.post-main-content h3 {
    font-size: 20px;
    font-weight: 500;
    color: #334155;
    margin-top: 15px;
    margin-bottom: 7px;
    margin-left: 20px;
}

.post-main-content h4 {
    font-size: 18px;
    font-weight: 600;
    color: #4f5b6b;
    margin-top: 10px;
    margin-bottom: 10px;
    margin-left: 50px;
}

.post-main-content h4+.section-content-inner p {
    font-size: 15px;
    margin-left: 50px;
}

.post-main-content h2::after {
    content: "";
    display: block;
    width: 60px;
    height: 2px;
    background: #ff9c00;
    position: absolute;
    bottom: 0;
    left: 0;
}

.post-main-content p {
    font-size: 17px;
    color: #475569;
    line-height: 1.8;
    margin-bottom: 30px;
}

.post-main-content h3+.section-content-inner p {
    font-size: 15px;
    margin-left: 20px;
}

.single-post-wrapper p:empty,
.single-post-wrapper p:is(:empty, :has(> br:only-child)),
.mailblog-item p:has(> a:only-child:empty),
.post-main-content>p:empty,
.post-sidebar>p:empty {
    display: none !important;
    visibility: hidden;
    margin: 0;
    padding: 0;
    height: 0;
}

@media (max-width: 1024px) {
    .post-content-grid {
        gap: 40px;
        grid-template-columns: 280px 1fr;
    }
}

@media (max-width: 991px) {
    .post-content-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .post-full-title {
        font-size: 36px;
    }

    .toc-card {
        display: none !important;
    }
}

@media (max-width: 767px) {
    .post-header-section {
        padding: 50px 0 40px;
    }

    .post-full-title {
        font-size: 30px;
    }

    .post-excerpt {
        font-size: 17px;
    }

    .post-meta-extra {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .post-body-section {
        padding: 40px 0;
    }

    .container {
        padding-left: 20px;
        padding-right: 20px;
    }

    .post-content-grid {
        grid-template-columns: 1fr;
        gap: 0 !important;
    }
}

@media (max-width: 480px) {
    .post-full-title {
        font-size: 26px;
    }
}

/* Premium Pagination Styles */
.mailblog-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 60px;
    gap: 10px;
    padding-bottom: 40px;
}

.mailblog-pagination .page-numbers {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 45px;
    height: 45px;
    padding: 0 15px;
    border-radius: 12px;
    background: #fff;
    border: 1.5px solid #f1f5f9;
    color: #475569;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.mailblog-pagination .page-numbers:hover {
    border-color: #ff9c00;
    color: #ff9c00;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(255, 156, 0, 0.1);
}

.mailblog-pagination .page-numbers.current {
    background: #ff9c00;
    border-color: #ff9c00;
    color: #fff;
    box-shadow: 0 8px 25px rgba(255, 156, 0, 0.25);
}

.mailblog-pagination .page-numbers.dots {
    border: none;
    background: transparent;
    cursor: default;
}

.mailblog-pagination .page-numbers.dots:hover {
    transform: none;
    box-shadow: none;
}