/**
 * Blog & Single Post Styles (Light SaaS Theme)
 * Tool Hub Theme - Matches ToolsPark / FreeOnlineConvert White UI System
 *
 * Primary Brand Blue: #2563eb / #1d4ed8
 * Background Tint:     #f8fafc
 * Card Background:     #ffffff
 * Typography:          #0f172a (Headings), #334155 (Body), #64748b (Meta/Muted)
 * Borders:             #e2e8f0 / #f1f5f9
 */

/* ==========================================================================
   1. Universal Layout & Hero Header
   ========================================================================== */
.tp-blog-page,
.tp-single-post-page {
    min-height: 85vh;
    padding-bottom: 70px;
    background-color: #f8fafc;
    color: #334155;
    font-family: var(--font-sans, 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif);
}

.tp-blog-hero {
    position: relative;
    padding: 36px 0 32px;
    background: linear-gradient(180deg, #f0f7ff 0%, #ffffff 100%);
    border-bottom: 1px solid #eef2f6;
    margin-bottom: 36px;
}

/* Breadcrumbs */
.tp-blog-breadcrumbs {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13.5px;
    color: #64748b;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.tp-blog-breadcrumbs a {
    color: #64748b;
    text-decoration: none;
    transition: color 0.15s ease;
}

.tp-blog-breadcrumbs a:hover {
    color: #2563eb;
}

.tp-blog-breadcrumbs .sep {
    color: #cbd5e1;
    font-size: 11px;
}

.tp-blog-breadcrumbs .current {
    color: #0f172a;
    font-weight: 600;
}

/* Hero Content */
.tp-blog-hero-content {
    max-width: 800px;
}

.tp-blog-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 9999px;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    color: #2563eb;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.02em;
    margin-bottom: 12px;
}

.tp-blog-title {
    font-size: 32px;
    font-weight: 800;
    line-height: 1.25;
    color: #0f172a;
    margin-bottom: 10px;
    letter-spacing: -0.025em;
}

@media (min-width: 768px) {
    .tp-blog-title {
        font-size: 38px;
    }
}

.tp-blog-subtitle {
    font-size: 15px;
    line-height: 1.6;
    color: #64748b;
    margin-bottom: 20px;
}

/* Category Filter Bar */
.tp-blog-filter-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid #e2e8f0;
}

.tp-blog-pills {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.tp-blog-pill {
    padding: 7px 16px;
    border-radius: 9999px;
    font-size: 13px;
    font-weight: 500;
    color: #475569;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    text-decoration: none;
    transition: all 0.2s ease;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}

.tp-blog-pill:hover {
    color: #0f172a;
    background: #f8fafc;
    border-color: #cbd5e1;
}

.tp-blog-pill.active {
    color: #ffffff !important;
    background: #2563eb !important;
    border-color: #2563eb !important;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}

/* Blog Search Input */
.tp-blog-search-form {
    position: relative;
    min-width: 270px;
}

.tp-blog-search-input {
    width: 100%;
    padding: 8px 16px 8px 38px;
    border-radius: 9999px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    color: #0f172a;
    font-size: 13px;
    outline: none;
    transition: all 0.2s;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}

.tp-blog-search-input:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.tp-blog-search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 13px;
    pointer-events: none;
}

/* ==========================================================================
   2. Featured Article Card
   ========================================================================== */
.tp-featured-post-card {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 36px;
    box-shadow: 0 4px 20px -4px rgba(0, 0, 0, 0.05);
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

@media (min-width: 768px) {
    .tp-featured-post-card {
        grid-template-columns: 1.15fr 1fr;
    }
}

.tp-featured-post-card:hover {
    transform: translateY(-3px);
    border-color: #bfdbfe;
    box-shadow: 0 16px 32px -8px rgba(37, 99, 235, 0.12);
}

.tp-featured-thumb-wrap {
    position: relative;
    min-height: 280px;
    background: #f1f5f9;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tp-featured-thumb-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.tp-featured-post-card:hover .tp-featured-thumb-wrap img {
    transform: scale(1.03);
}

.tp-featured-content {
    padding: 36px 32px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: #ffffff;
}

.tp-featured-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    align-self: flex-start;
    padding: 4px 10px;
    border-radius: 6px;
    background: #eff6ff;
    color: #2563eb;
    border: 1px solid #dbeafe;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 14px;
}

.tp-featured-title {
    font-size: 22px;
    font-weight: 800;
    line-height: 1.35;
    color: #0f172a;
    margin-bottom: 12px;
}

.tp-featured-title a {
    color: #0f172a;
    text-decoration: none;
    transition: color 0.15s;
}

.tp-featured-title a:hover {
    color: #2563eb;
}

.tp-featured-excerpt {
    font-size: 14px;
    line-height: 1.65;
    color: #475569;
    margin-bottom: 22px;
}

.tp-featured-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
    font-size: 12.5px;
    color: #64748b;
    margin-bottom: 20px;
}

.tp-featured-meta span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.tp-featured-author {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #334155;
    font-weight: 600;
}

.tp-featured-author img {
    width: 24px;
    height: 24px;
    border-radius: 50%;
}

.tp-btn-read {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    align-self: flex-start;
    padding: 10px 22px;
    border-radius: 10px;
    background: #2563eb;
    color: #ffffff !important;
    font-size: 13.5px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}

.tp-btn-read:hover {
    background: #1d4ed8;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.35);
}

/* ==========================================================================
   3. Blog Post Grid (3 Columns)
   ========================================================================== */
.tp-blog-grid {
    display: grid;
    grid-template-columns: repeat(1, minmax(0, 1fr));
    gap: 28px;
    margin-bottom: 48px;
}

@media (min-width: 640px) {
    .tp-blog-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1024px) {
    .tp-blog-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.tp-blog-card {
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    overflow: hidden;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.tp-blog-card:hover {
    transform: translateY(-4px);
    border-color: #bfdbfe;
    box-shadow: 0 12px 24px -6px rgba(37, 99, 235, 0.1), 0 4px 8px -2px rgba(0, 0, 0, 0.03);
}

.tp-blog-card-thumb {
    position: relative;
    width: 100%;
    height: 195px;
    background: #f8fafc;
    overflow: hidden;
}

.tp-blog-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.tp-blog-card:hover .tp-blog-card-thumb img {
    transform: scale(1.05);
}

.tp-blog-card-thumb-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #2563eb;
    font-size: 34px;
    background: linear-gradient(135deg, #eff6ff 0%, #e0f2fe 100%);
}

.tp-blog-card-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 4px 10px;
    border-radius: 6px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    color: #2563eb;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.tp-blog-card-body {
    padding: 22px 20px 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.tp-blog-card-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 12px;
    color: #64748b;
    margin-bottom: 10px;
}

.tp-blog-card-meta i {
    margin-right: 4px;
    color: #94a3b8;
}

.tp-blog-card-title {
    font-size: 17px;
    font-weight: 700;
    line-height: 1.45;
    color: #0f172a;
    margin-bottom: 10px;
}

.tp-blog-card-title a {
    color: #0f172a;
    text-decoration: none;
    transition: color 0.15s;
}

.tp-blog-card-title a:hover {
    color: #2563eb;
}

.tp-blog-card-excerpt {
    font-size: 13.5px;
    line-height: 1.6;
    color: #64748b;
    margin-bottom: 18px;
    flex-grow: 1;
}

.tp-blog-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 14px;
    border-top: 1px solid #f1f5f9;
    font-size: 12px;
}

.tp-blog-card-author {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #334155;
    font-weight: 500;
}

.tp-blog-card-author img {
    width: 22px;
    height: 22px;
    border-radius: 50%;
}

.tp-blog-card-link {
    color: #2563eb;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: gap 0.2s ease;
}

.tp-blog-card-link:hover {
    gap: 7px;
    color: #1d4ed8;
}

/* ==========================================================================
   4. Pagination & Empty State
   ========================================================================== */
.tp-blog-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    margin: 40px 0 20px;
}

.tp-blog-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 14px;
    border-radius: 10px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    color: #475569;
    font-size: 13.5px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}

.tp-blog-pagination .page-numbers:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
    color: #0f172a;
}

.tp-blog-pagination .page-numbers.current {
    background: #2563eb !important;
    border-color: #2563eb !important;
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}

.tp-blog-empty {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 60px 24px;
    text-align: center;
    max-width: 540px;
    margin: 40px auto;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.tp-blog-empty-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: #eff6ff;
    color: #2563eb;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin: 0 auto 16px;
}

.tp-blog-empty h3 {
    font-size: 18px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 8px;
}

.tp-blog-empty p {
    font-size: 14px;
    color: #64748b;
    margin-bottom: 20px;
}

/* ==========================================================================
   5. Single Blog Detail Page Layout
   ========================================================================== */
.tp-single-hero {
    padding: 36px 0 28px;
    background: linear-gradient(180deg, #f0f7ff 0%, #ffffff 100%);
    border-bottom: 1px solid #eef2f6;
    margin-bottom: 36px;
}

.tp-single-header-meta {
    max-width: 860px;
    margin: 0 auto 20px;
}

.tp-single-category-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 9999px;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    color: #2563eb;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 14px;
    text-decoration: none;
    transition: all 0.2s;
}

.tp-single-category-pill:hover {
    background: #dbeafe;
    color: #1d4ed8;
}

.tp-single-title {
    font-size: 32px;
    font-weight: 800;
    line-height: 1.25;
    color: #0f172a;
    margin-bottom: 18px;
    letter-spacing: -0.025em;
}

@media (min-width: 768px) {
    .tp-single-title {
        font-size: 40px;
    }
}

.tp-single-meta-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 18px;
    font-size: 13px;
    color: #64748b;
    padding-bottom: 12px;
}

.tp-single-author {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: #0f172a;
}

.tp-single-author img {
    width: 28px;
    height: 28px;
    border-radius: 50%;
}

.tp-single-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.tp-single-meta-item i {
    color: #94a3b8;
}

/* Featured Image Banner */
.tp-single-featured-wrap {
    max-width: 960px;
    margin: 24px auto 0;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.06);
    background: #ffffff;
}

.tp-single-featured-wrap img {
    width: 100%;
    height: auto;
    display: block;
}

/* Main Content Grid (Article + Sidebar) */
.tp-single-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 36px;
    max-width: 1140px;
    margin: 0 auto;
}

@media (min-width: 1024px) {
    .tp-single-layout {
        grid-template-columns: 1fr 320px;
    }
}

/* Article Body Typography */
.tp-single-article {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 32px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

@media (min-width: 768px) {
    .tp-single-article {
        padding: 48px;
    }
}

.tp-prose {
    font-size: 16.5px;
    line-height: 1.8;
    color: #334155;
}

.tp-prose p {
    margin-bottom: 22px;
}

.tp-prose h2 {
    font-size: 24px;
    font-weight: 700;
    color: #0f172a;
    margin: 38px 0 16px;
    letter-spacing: -0.01em;
    padding-bottom: 8px;
    border-bottom: 1px solid #e2e8f0;
}

.tp-prose h3 {
    font-size: 20px;
    font-weight: 700;
    color: #0f172a;
    margin: 28px 0 12px;
}

.tp-prose h4 {
    font-size: 17px;
    font-weight: 600;
    color: #1e293b;
    margin: 22px 0 10px;
}

.tp-prose ul, .tp-prose ol {
    margin: 0 0 24px 24px;
    padding-left: 8px;
    color: #334155;
}

.tp-prose li {
    margin-bottom: 8px;
}

.tp-prose strong {
    color: #0f172a;
    font-weight: 700;
}

.tp-prose blockquote {
    margin: 28px 0;
    padding: 18px 24px;
    border-left: 4px solid #2563eb;
    background: #f8fafc;
    border-radius: 0 12px 12px 0;
    color: #475569;
    font-style: italic;
    border-top: 1px solid #f1f5f9;
    border-right: 1px solid #f1f5f9;
    border-bottom: 1px solid #f1f5f9;
}

.tp-prose pre {
    background: #0f172a;
    border: 1px solid #1e293b;
    border-radius: 12px;
    padding: 20px;
    overflow-x: auto;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 13.5px;
    line-height: 1.6;
    color: #38bdf8;
    margin: 24px 0;
}

.tp-prose code {
    background: #f1f5f9;
    color: #0f172a;
    padding: 2px 7px;
    border-radius: 6px;
    font-size: 0.9em;
    font-family: ui-monospace, monospace;
    border: 1px solid #e2e8f0;
}

.tp-prose pre code {
    background: transparent;
    padding: 0;
    color: inherit;
    border: 0;
}

.tp-prose hr {
    border: 0;
    border-top: 1px solid #e2e8f0;
    margin: 36px 0;
}

.tp-prose a {
    color: #2563eb;
    text-decoration: underline;
    text-underline-offset: 3px;
    font-weight: 500;
    transition: color 0.15s;
}

.tp-prose a:hover {
    color: #1d4ed8;
}

.tp-prose table {
    width: 100%;
    border-collapse: collapse;
    margin: 24px 0;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
}

.tp-prose th {
    background: #f8fafc;
    color: #0f172a;
    font-weight: 700;
    padding: 12px 16px;
    border-bottom: 2px solid #e2e8f0;
    text-align: left;
    font-size: 13.5px;
}

.tp-prose td {
    padding: 12px 16px;
    border-bottom: 1px solid #f1f5f9;
    color: #334155;
    font-size: 13.5px;
}

/* Post Tags */
.tp-post-tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid #e2e8f0;
}

.tp-post-tags-label {
    font-size: 13px;
    font-weight: 600;
    color: #64748b;
    margin-right: 4px;
}

.tp-post-tag-pill {
    padding: 4px 12px;
    border-radius: 6px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #475569;
    font-size: 12px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.15s;
}

.tp-post-tag-pill:hover {
    color: #2563eb;
    background: #eff6ff;
    border-color: #bfdbfe;
}

/* Social Share Bar */
.tp-share-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 32px 0;
    padding: 16px 20px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
}

.tp-share-label {
    font-size: 13px;
    font-weight: 600;
    color: #334155;
    margin-right: 6px;
}

.tp-share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    color: #64748b;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.2s;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}

.tp-share-btn:hover {
    color: #ffffff;
    transform: translateY(-2px);
}

.tp-share-btn.twitter:hover { background: #0f172a; border-color: #0f172a; color: #ffffff; }
.tp-share-btn.facebook:hover { background: #1877f2; border-color: #1877f2; color: #ffffff; }
.tp-share-btn.linkedin:hover { background: #0077b5; border-color: #0077b5; color: #ffffff; }
.tp-share-btn.copy:hover { background: #2563eb; border-color: #2563eb; color: #ffffff; }

/* Author Bio Card */
.tp-author-box {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    margin-top: 36px;
    padding: 24px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
}

.tp-author-avatar-lg {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid #bfdbfe;
    flex-shrink: 0;
}

.tp-author-avatar-lg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tp-author-details h4 {
    font-size: 16px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 6px;
}

.tp-author-details p {
    font-size: 13.5px;
    line-height: 1.6;
    color: #64748b;
    margin: 0;
}

/* Post Navigation (Prev / Next) */
.tp-post-nav {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    margin-top: 36px;
}

@media (min-width: 640px) {
    .tp-post-nav {
        grid-template-columns: 1fr 1fr;
    }
}

.tp-nav-card {
    display: flex;
    flex-direction: column;
    padding: 18px 20px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    text-decoration: none;
    transition: all 0.2s;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}

.tp-nav-card:hover {
    background: #f8fafc;
    border-color: #bfdbfe;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.08);
}

.tp-nav-label {
    font-size: 11px;
    font-weight: 700;
    color: #2563eb;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 6px;
}

.tp-nav-title {
    font-size: 14px;
    font-weight: 600;
    color: #0f172a;
    line-height: 1.4;
}

/* ==========================================================================
   6. Single Post Sidebar
   ========================================================================== */
.tp-single-sidebar {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.tp-sidebar-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 22px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}

.tp-sidebar-title {
    font-size: 14px;
    font-weight: 700;
    color: #0f172a;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 1px solid #f1f5f9;
    display: flex;
    align-items: center;
    gap: 8px;
}

.tp-sidebar-recent-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.tp-sidebar-recent-item a {
    display: flex;
    flex-direction: column;
    gap: 4px;
    text-decoration: none;
}

.tp-sidebar-recent-title {
    font-size: 13.5px;
    font-weight: 600;
    color: #0f172a;
    line-height: 1.4;
    transition: color 0.15s;
}

.tp-sidebar-recent-item a:hover .tp-sidebar-recent-title {
    color: #2563eb;
}

.tp-sidebar-recent-date {
    font-size: 11.5px;
    color: #64748b;
}

/* Tools CTA Widget in Sidebar */
.tp-sidebar-cta {
    background: linear-gradient(135deg, #eff6ff 0%, #e0f2fe 100%);
    border: 1px solid #bfdbfe;
    border-radius: 16px;
    padding: 24px;
    text-align: center;
}

.tp-cta-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: #ffffff;
    color: #2563eb;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    margin: 0 auto 14px;
    box-shadow: 0 2px 6px rgba(37, 99, 235, 0.15);
}

.tp-cta-title {
    font-size: 16px;
    font-weight: 700;
    color: #1e3a8a;
    margin-bottom: 8px;
}

.tp-cta-desc {
    font-size: 12.5px;
    line-height: 1.55;
    color: #1e40af;
    margin-bottom: 16px;
}

.tp-btn-cta {
    display: inline-block;
    width: 100%;
    padding: 9px 16px;
    border-radius: 8px;
    background: #2563eb;
    color: #ffffff !important;
    font-size: 12.5px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s;
    box-shadow: 0 4px 10px rgba(37, 99, 235, 0.25);
}

.tp-btn-cta:hover {
    background: #1d4ed8;
}

/* ==========================================================================
   7. Related Posts Section
   ========================================================================== */
.tp-related-posts-section {
    max-width: 1140px;
    margin: 48px auto 0;
    padding-top: 36px;
    border-top: 1px solid #e2e8f0;
}

.tp-related-heading {
    font-size: 20px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ==========================================================================
   8. Comments Area Styling
   ========================================================================== */
.tp-comments-area {
    margin-top: 40px;
    padding-top: 32px;
    border-top: 1px solid #e2e8f0;
}

.tp-comments-title {
    font-size: 20px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 24px;
}

.comment-list {
    list-style: none;
    padding: 0;
    margin: 0 0 32px;
}

.comment-list li.comment {
    margin-bottom: 20px;
    padding: 18px 20px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
}

.comment-author {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
    font-size: 13.5px;
    font-weight: 600;
    color: #0f172a;
}

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

.comment-metadata {
    font-size: 11.5px;
    color: #64748b;
    margin-bottom: 10px;
}

.comment-content {
    font-size: 13.5px;
    line-height: 1.6;
    color: #334155;
}

.comment-respond {
    margin-top: 32px;
    padding: 24px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
}

.comment-reply-title {
    font-size: 16px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 16px;
}

.comment-form p {
    margin-bottom: 14px;
}

.comment-form label {
    display: block;
    font-size: 12.5px;
    font-weight: 600;
    color: #334155;
    margin-bottom: 4px;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    padding: 9px 14px;
    border-radius: 8px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #0f172a;
    font-size: 13px;
    outline: none;
    transition: all 0.2s;
}

.comment-form input:focus,
.comment-form textarea:focus {
    background: #ffffff;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.comment-form input[type="submit"] {
    padding: 10px 24px;
    border-radius: 8px;
    background: #2563eb;
    border: 0;
    color: #ffffff;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    box-shadow: 0 4px 10px rgba(37, 99, 235, 0.25);
}

.comment-form input[type="submit"]:hover {
    background: #1d4ed8;
}
