/* ============================================================
   TG DATA HUB TOOLS — Combined Styles
   ============================================================ */

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

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background-color: #ffffff;
    color: #1e293b;
    font-size: 1rem;
    line-height: 1.6;
}

@media (min-width: 768px) {
    body {
        font-size: 1.125rem;
    }
}

/* Tool Card */
.tool-card {
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.2s ease-out, box-shadow 0.2s ease-out, border-color 0.2s ease-out;
}

@media (min-width: 768px) {
    .tool-card {
        padding: 1.5rem;
    }
}

.tool-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    border-color: #818cf8;
}

.tool-card:focus {
    outline: none;
    ring: 2px solid #818cf8;
    ring-offset: 2px;
}

/* Category Grid */
.category-grid {
    display: grid;
    gap: 1.5rem;
}

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

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

@media (min-width: 1280px) {
    .category-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Mobile Menu */
#mnavPanel {
    transform-origin: top center;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

#mnavPanel.closed {
    transform: scaleY(0.95);
    opacity: 0;
}

#mnavPanel.open {
    transform: scaleY(1);
    opacity: 1;
}

#mnavOverlay {
    transition: opacity 0.2s ease;
}

#mnavOverlay.closed {
    opacity: 0;
}

#mnavOverlay.open {
    opacity: 1;
}

/* Back to Top */
#toTop {
    position: fixed;
    bottom: 1.25rem;
    right: 1.25rem;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 9999px;
    background-color: #4f46e5;
    color: #ffffff;
    border: none;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    cursor: pointer;
    transition: opacity 0.2s ease, background-color 0.2s ease;
    z-index: 40;
}

#toTop:hover {
    background-color: #4338ca;
}

#toTop.visible {
    display: flex;
}

/* FAQ */
details summary::-webkit-details-marker {
    display: none;
}

details summary {
    list-style: none;
    cursor: pointer;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

details[open] summary .text-slate-400 {
    transform: rotate(45deg);
}

/* Tool Content */
.tool-content h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e293b;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.tool-content p {
    margin-bottom: 1rem;
    color: #475569;
}

.tool-content strong {
    color: #1e293b;
    font-weight: 600;
}

.tool-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
}

.tool-content table th,
.tool-content table td {
    border: 1px solid #e2e8f0;
    padding: 0.5rem 0.75rem;
    text-align: left;
}

.tool-content table th {
    background-color: #f8fafc;
    font-weight: 600;
    color: #1e293b;
}

.tool-content ul,
.tool-content ol {
    margin: 0.75rem 0;
    padding-left: 1.5rem;
    color: #475569;
}

.tool-content ul li,
.tool-content ol li {
    margin-bottom: 0.25rem;
}
/* ============================================================
   BLOG SECTION - Homepage Cards
   ============================================================ */

/* Blog Section */
.blog-section {
    position: relative;
}

.blog-section .blog-card {
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateY(0);
}

.blog-section .blog-card:hover {
    transform: translateY(-6px);
}

.blog-section .blog-card .line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Image Overlay Effect */
.blog-section .blog-card a.block {
    position: relative;
}

.blog-section .blog-card a.block::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0,0,0,0.1) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.blog-section .blog-card:hover a.block::after {
    opacity: 1;
}

/* Badge Animations */
.blog-section .blog-card .badge {
    animation: fadeIn 0.5s ease;
}

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

/* Responsive Adjustments */
@media (max-width: 640px) {
    .blog-section .blog-card .w-full.h-56 {
        height: 200px;
    }
    
    .blog-section .flex.justify-between.items-end {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 12px;
    }
}

/* Pagination Styles */
.blog-section .pagination a {
    min-width: 40px;
    text-align: center;
}

.blog-section .pagination a:hover:not(.bg-indigo-600) {
    background: #f1f5f9;
    border-color: #4f46e5;
}

.blog-section .pagination a.bg-indigo-600 {
    cursor: default;
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .blog-section .blog-card {
        background: #1e293b;
        border-color: #334155;
    }
    
    .blog-section .blog-card h3 {
        color: #f1f5f9;
    }
    
    .blog-section .blog-card p {
        color: #94a3b8;
    }
    
    .blog-section .blog-card .border-slate-100 {
        border-color: #334155;
    }
}
/* ============================================================
   BLOG COMMENT STYLES
   ============================================================ */

/* Comment Section */
.comment-section {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #e2e8f0;
}

.comment-section .comment-item {
    background: #f8fafc;
    border-radius: 0.75rem;
    padding: 1rem;
    border: 1px solid #e2e8f0;
    margin-bottom: 0.75rem;
    transition: all 0.2s ease;
}

.comment-section .comment-item:hover {
    border-color: #818cf8;
}

.comment-section .comment-avatar {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 9999px;
    background: #eef2ff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.75rem;
    color: #4f46e5;
    flex-shrink: 0;
}

.comment-section .comment-form textarea,
.comment-section .comment-form input {
    border-radius: 0.5rem;
    border: 1px solid #e2e8f0;
    padding: 0.5rem 0.75rem;
    width: 100%;
    transition: all 0.2s ease;
}

.comment-section .comment-form textarea:focus,
.comment-section .comment-form input:focus {
    outline: none;
    border-color: #4f46e5;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.comment-section .comment-form .submit-btn {
    background: #4f46e5;
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: background 0.2s ease;
}

.comment-section .comment-form .submit-btn:hover {
    background: #4338ca;
}

/* Comment Status Badges */
.comment-status-badge {
    display: inline-block;
    padding: 0.125rem 0.5rem;
    border-radius: 9999px;
    font-size: 0.625rem;
    font-weight: 600;
    text-transform: uppercase;
}

.comment-status-badge.approved {
    background: #dcfce7;
    color: #16a34a;
}

.comment-status-badge.pending {
    background: #fef3c7;
    color: #d97706;
}

.comment-status-badge.spam {
    background: #fee2e2;
    color: #dc2626;
}

/* Responsive */
@media (max-width: 640px) {
    .comment-section .comment-item {
        padding: 0.75rem;
    }
    .comment-section .comment-avatar {
        width: 2rem;
        height: 2rem;
        font-size: 0.625rem;
    }
}
/* ============================================================
   BLOG SINGLE POST - PROFESSIONAL TYPOGRAPHY
   ============================================================ */

/* ===== Container & Base ===== */
.blog-content {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 1.0625rem;          /* 17px */
    line-height: 1.85;
    color: #334155;
    letter-spacing: -0.003em;
    word-spacing: 0.02em;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* ===== First Paragraph Drop Cap ===== */
.blog-content > p:first-of-type::first-letter {
    font-family: 'Georgia', 'Times New Roman', serif;
    font-size: 3.4em;
    font-weight: 700;
    line-height: 0.85;
    float: left;
    margin: 0.08em 0.12em 0 0;
    color: #4f46e5;
}

/* ===== Paragraphs ===== */
.blog-content p {
    margin: 0 0 1.5em 0;
    font-size: 1.0625rem;
    line-height: 1.85;
    color: #334155;
}

.blog-content p strong {
    color: #0f172a;
    font-weight: 600;
}

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

/* ===== Headings ===== */
.blog-content h1,
.blog-content h2,
.blog-content h3,
.blog-content h4 {
    font-family: 'Space Grotesk', 'Inter', sans-serif;
    color: #0f172a;
    letter-spacing: -0.02em;
    scroll-margin-top: 90px;
}

.blog-content h1 {
    font-size: 2.25rem;
    font-weight: 800;
    line-height: 1.2;
    margin: 2.5rem 0 1.25rem;
    letter-spacing: -0.03em;
}

.blog-content h2 {
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1.3;
    margin: 2.75rem 0 1rem;
    padding-bottom: 0.4rem;
    position: relative;
}

.blog-content h2::after {
    content: '';
    display: block;
    width: 44px;
    height: 3px;
    background: linear-gradient(90deg, #4f46e5, #818cf8);
    border-radius: 3px;
    margin-top: 0.65rem;
}

.blog-content h3 {
    font-size: 1.35rem;
    font-weight: 700;
    line-height: 1.4;
    margin: 2rem 0 0.75rem;
    color: #1e293b;
}

.blog-content h4 {
    font-size: 1.125rem;
    font-weight: 600;
    line-height: 1.5;
    margin: 1.75rem 0 0.5rem;
    color: #334155;
}

/* ===== Links ===== */
.blog-content a {
    color: #4f46e5;
    text-decoration: none;
    font-weight: 500;
    border-bottom: 1.5px solid rgba(79, 70, 229, 0.25);
    padding-bottom: 1px;
    transition: all 0.2s ease;
    word-break: break-word;
}

.blog-content a:hover {
    color: #4338ca;
    border-bottom-color: #4338ca;
    background: rgba(79, 70, 229, 0.06);
}

/* ===== Lists ===== */
.blog-content ul,
.blog-content ol {
    margin: 1.25em 0 1.75em;
    padding-left: 1.5rem;
    color: #334155;
}

.blog-content ul {
    list-style: none;
    padding-left: 0;
}

.blog-content ul li {
    position: relative;
    padding-left: 1.75rem;
    margin-bottom: 0.75em;
    line-height: 1.75;
    font-size: 1.0625rem;
}

.blog-content ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.65em;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: linear-gradient(135deg, #4f46e5, #818cf8);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.12);
}

.blog-content ol {
    list-style: none;
    padding-left: 0;
    counter-reset: item;
}

.blog-content ol li {
    position: relative;
    padding-left: 2.5rem;
    margin-bottom: 0.85em;
    line-height: 1.75;
    font-size: 1.0625rem;
    counter-increment: item;
}

.blog-content ol li::before {
    content: counter(item);
    position: absolute;
    left: 0;
    top: 0.05em;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #eef2ff;
    color: #4f46e5;
    font-weight: 700;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.blog-content li strong {
    color: #0f172a;
    font-weight: 600;
}

/* ===== Blockquote ===== */
.blog-content blockquote {
    margin: 2em 0;
    padding: 1.25em 1.5em 1.25em 2em;
    background: linear-gradient(135deg, #f8fafc 0%, #eef2ff 100%);
    border-left: 4px solid #4f46e5;
    border-radius: 0 12px 12px 0;
    font-style: italic;
    color: #1e293b;
    position: relative;
}

.blog-content blockquote::before {
    content: '"';
    position: absolute;
    top: -0.25rem;
    left: 0.75rem;
    font-family: Georgia, serif;
    font-size: 3rem;
    color: #a5b4fc;
    line-height: 1;
}

.blog-content blockquote p {
    margin: 0;
    color: #1e293b;
    font-size: 1.05rem;
    line-height: 1.75;
}

/* ===== Code ===== */
.blog-content code {
    background: #f1f5f9;
    color: #db2777;
    padding: 0.15em 0.4em;
    border-radius: 4px;
    font-size: 0.875em;
    font-family: 'Menlo', 'Monaco', 'Courier New', monospace;
    font-weight: 500;
}

.blog-content pre {
    background: #0f172a;
    color: #e2e8f0;
    padding: 1.25em 1.5em;
    border-radius: 12px;
    overflow-x: auto;
    margin: 1.75em 0;
    font-size: 0.9em;
    line-height: 1.7;
    font-family: 'Menlo', 'Monaco', 'Courier New', monospace;
}

.blog-content pre code {
    background: transparent;
    color: inherit;
    padding: 0;
}

/* ===== Images ===== */
.blog-content img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 1.75em auto;
    display: block;
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.08);
}

.blog-content figure {
    margin: 2em 0;
}

.blog-content figcaption {
    text-align: center;
    font-size: 0.875rem;
    color: #64748b;
    margin-top: 0.75rem;
    font-style: italic;
}

/* ===== Horizontal Rule ===== */
.blog-content hr {
    border: none;
    height: 1px;
    background: linear-gradient(90deg, transparent, #cbd5e1, transparent);
    margin: 2.5em 0;
}

/* ===== Tables ===== */
.blog-content .table-responsive {
    overflow-x: auto;
    margin: 2em 0;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.blog-content table,
.blog-content .wp-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
    background: #fff;
    min-width: 480px;
}

.blog-content thead {
    background: linear-gradient(135deg, #f8fafc 0%, #eef2ff 100%);
}

.blog-content th {
    padding: 0.9em 1.1em;
    text-align: left;
    font-weight: 700;
    color: #0f172a;
    border-bottom: 2px solid #e2e8f0;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    white-space: nowrap;
}

.blog-content td {
    padding: 0.85em 1.1em;
    border-bottom: 1px solid #f1f5f9;
    color: #475569;
    font-size: 0.95rem;
    line-height: 1.6;
}

.blog-content tbody tr {
    transition: background 0.15s ease;
}

.blog-content tbody tr:hover {
    background: #f8fafc;
}

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

.blog-content td strong {
    color: #0f172a;
    font-weight: 600;
}

/* ===== Highlight ===== */
.blog-content mark {
    background: linear-gradient(180deg, transparent 55%, #fef08a 55%);
    color: inherit;
    padding: 0 0.15em;
    font-weight: 500;
}

/* ===== Callout Boxes (auto-styled) ===== */
.blog-content .callout {
    padding: 1.25em 1.5em;
    border-radius: 12px;
    margin: 1.75em 0;
    border-left: 4px solid;
    background: #f8fafc;
}

.blog-content .callout.info {
    border-color: #3b82f6;
    background: #eff6ff;
}

.blog-content .callout.success {
    border-color: #22c55e;
    background: #f0fdf4;
}

.blog-content .callout.warning {
    border-color: #f59e0b;
    background: #fffbeb;
}

.blog-content .callout.danger {
    border-color: #ef4444;
    background: #fef2f2;
}

/* ===== Lead Paragraph ===== */
.blog-content .lead {
    font-size: 1.2rem;
    line-height: 1.75;
    color: #1e293b;
    font-weight: 400;
    margin-bottom: 1.75em;
}

/* ===== Small Text ===== */
.blog-content small {
    font-size: 0.875em;
    color: #64748b;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .blog-content {
        font-size: 1rem;
        line-height: 1.8;
    }
    
    .blog-content p {
        font-size: 1rem;
        margin-bottom: 1.35em;
    }
    
    .blog-content h1 {
        font-size: 1.75rem;
    }
    
    .blog-content h2 {
        font-size: 1.45rem;
        margin-top: 2.25rem;
    }
    
    .blog-content h3 {
        font-size: 1.2rem;
    }
    
    .blog-content h4 {
        font-size: 1.05rem;
    }
    
    .blog-content > p:first-of-type::first-letter {
        font-size: 2.8em;
    }
    
    .blog-content ul li,
    .blog-content ol li {
        font-size: 1rem;
    }
    
    .blog-content blockquote {
        padding: 1em 1.25em 1em 1.5em;
        margin: 1.5em 0;
    }
    
    .blog-content pre {
        padding: 1em 1.1em;
        font-size: 0.82em;
    }
    
    .blog-content .table-responsive {
        border-radius: 8px;
        margin: 1.5em 0;
    }
    
    .blog-content th,
    .blog-content td {
        padding: 0.65em 0.85em;
        font-size: 0.85rem;
    }
}

/* ===== Reading Progress Bar (Optional nice touch) ===== */
.reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, #4f46e5, #818cf8);
    z-index: 100;
    transition: width 0.1s ease;
    width: 0%;
}

/* ===== Print Styles ===== */
@media print {
    .blog-content {
        font-size: 12pt;
        line-height: 1.6;
        color: #000;
    }
    
    .blog-content a {
        color: #000;
        border: none;
        text-decoration: underline;
    }
    
    .blog-content h2::after {
        display: none;
    }
    
    .blog-content img {
        box-shadow: none;
    }
}
/* ============================================================
   TOOL CONTENT — PROFESSIONAL TYPOGRAPHY
   ============================================================ */

/* ===== Container ===== */
.tool-content {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 1.0625rem;          /* 17px */
    line-height: 1.85;
    color: #334155;
    letter-spacing: -0.003em;
    word-spacing: 0.02em;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e2e8f0;
}

/* ===== Paragraphs ===== */
.tool-content p {
    margin: 0 0 1.5em 0;
    font-size: 1.0625rem;
    line-height: 1.85;
    color: #334155;
}

.tool-content p strong {
    color: #0f172a;
    font-weight: 600;
}

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

/* ===== Headings (H2 - main sections) ===== */
.tool-content h2 {
    font-family: 'Space Grotesk', 'Inter', sans-serif;
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1.3;
    color: #0f172a;
    letter-spacing: -0.02em;
    margin: 2.75rem 0 1rem;
    padding-bottom: 0.5rem;
    position: relative;
    scroll-margin-top: 90px;
}

.tool-content h2::after {
    content: '';
    display: block;
    width: 48px;
    height: 3px;
    background: linear-gradient(90deg, #4f46e5, #818cf8);
    border-radius: 3px;
    margin-top: 0.7rem;
}

.tool-content h2:first-child {
    margin-top: 0;
}

/* ===== Headings (H3 - subsections) ===== */
.tool-content h3 {
    font-family: 'Space Grotesk', 'Inter', sans-serif;
    font-size: 1.35rem;
    font-weight: 700;
    line-height: 1.4;
    color: #1e293b;
    letter-spacing: -0.015em;
    margin: 2rem 0 0.75rem;
    scroll-margin-top: 90px;
}

/* ===== Headings (H4 - small subheadings) ===== */
.tool-content h4 {
    font-family: 'Space Grotesk', 'Inter', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.5;
    color: #334155;
    margin: 1.75rem 0 0.5rem;
}

/* ===== Links ===== */
.tool-content a {
    color: #4f46e5;
    text-decoration: none;
    font-weight: 500;
    border-bottom: 1.5px solid rgba(79, 70, 229, 0.25);
    padding-bottom: 1px;
    transition: all 0.2s ease;
    word-break: break-word;
}

.tool-content a:hover {
    color: #4338ca;
    border-bottom-color: #4338ca;
    background: rgba(79, 70, 229, 0.06);
}

/* ===== Unordered Lists ===== */
.tool-content ul {
    margin: 1.25em 0 1.75em;
    padding-left: 0;
    list-style: none;
    color: #334155;
}

.tool-content ul li {
    position: relative;
    padding-left: 1.85rem;
    margin-bottom: 0.75em;
    line-height: 1.75;
    font-size: 1.0625rem;
}

.tool-content ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.65em;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: linear-gradient(135deg, #4f46e5, #818cf8);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.12);
}

/* ===== Ordered Lists ===== */
.tool-content ol {
    margin: 1.25em 0 1.75em;
    padding-left: 0;
    list-style: none;
    color: #334155;
    counter-reset: tool-item;
}

.tool-content ol li {
    position: relative;
    padding-left: 2.75rem;
    margin-bottom: 0.9em;
    line-height: 1.75;
    font-size: 1.0625rem;
    counter-increment: tool-item;
}

.tool-content ol li::before {
    content: counter(tool-item);
    position: absolute;
    left: 0;
    top: 0.1em;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #eef2ff;
    color: #4f46e5;
    font-weight: 700;
    font-size: 0.82rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1.5px solid #c7d2fe;
}

.tool-content li strong {
    color: #0f172a;
    font-weight: 600;
}

/* ===== Blockquotes ===== */
.tool-content blockquote {
    margin: 2em 0;
    padding: 1.25em 1.5em 1.25em 2em;
    background: linear-gradient(135deg, #f8fafc 0%, #eef2ff 100%);
    border-left: 4px solid #4f46e5;
    border-radius: 0 12px 12px 0;
    font-style: italic;
    color: #1e293b;
    position: relative;
}

.tool-content blockquote::before {
    content: '"';
    position: absolute;
    top: -0.25rem;
    left: 0.75rem;
    font-family: Georgia, serif;
    font-size: 3rem;
    color: #a5b4fc;
    line-height: 1;
}

.tool-content blockquote p {
    margin: 0;
    color: #1e293b;
    font-size: 1.05rem;
    line-height: 1.75;
}

/* ===== Inline Code ===== */
.tool-content code {
    background: #f1f5f9;
    color: #db2777;
    padding: 0.15em 0.4em;
    border-radius: 4px;
    font-size: 0.875em;
    font-family: 'Menlo', 'Monaco', 'Courier New', monospace;
    font-weight: 500;
}

/* ===== Code Blocks ===== */
.tool-content pre {
    background: #0f172a;
    color: #e2e8f0;
    padding: 1.25em 1.5em;
    border-radius: 12px;
    overflow-x: auto;
    margin: 1.75em 0;
    font-size: 0.9em;
    line-height: 1.7;
    font-family: 'Menlo', 'Monaco', 'Courier New', monospace;
}

.tool-content pre code {
    background: transparent;
    color: inherit;
    padding: 0;
}

/* ===== Images ===== */
.tool-content img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 1.75em auto;
    display: block;
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.08);
}

.tool-content figure {
    margin: 2em 0;
}

.tool-content figcaption {
    text-align: center;
    font-size: 0.875rem;
    color: #64748b;
    margin-top: 0.75rem;
    font-style: italic;
}

/* ===== Horizontal Rule ===== */
.tool-content hr {
    border: none;
    height: 1px;
    background: linear-gradient(90deg, transparent, #cbd5e1, transparent);
    margin: 2.5em 0;
}

/* ===== Tables ===== */
.tool-content .table-responsive {
    overflow-x: auto;
    margin: 2em 0;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    -webkit-overflow-scrolling: touch;
}

.tool-content table,
.tool-content .wp-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
    background: #fff;
    min-width: 480px;
}

.tool-content thead {
    background: linear-gradient(135deg, #f8fafc 0%, #eef2ff 100%);
}

.tool-content th {
    padding: 0.9em 1.1em;
    text-align: left;
    font-weight: 700;
    color: #0f172a;
    border-bottom: 2px solid #e2e8f0;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    white-space: nowrap;
}

.tool-content td {
    padding: 0.85em 1.1em;
    border-bottom: 1px solid #f1f5f9;
    color: #475569;
    font-size: 0.95rem;
    line-height: 1.6;
}

.tool-content tbody tr {
    transition: background 0.15s ease;
}

.tool-content tbody tr:hover {
    background: #f8fafc;
}

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

.tool-content td strong {
    color: #0f172a;
    font-weight: 600;
}

/* ===== Highlight ===== */
.tool-content mark {
    background: linear-gradient(180deg, transparent 55%, #fef08a 55%);
    color: inherit;
    padding: 0 0.15em;
    font-weight: 500;
}

/* ===== Small Text ===== */
.tool-content small {
    font-size: 0.875em;
    color: #64748b;
}

/* ===== Callouts ===== */
.tool-content .callout {
    padding: 1.25em 1.5em;
    border-radius: 12px;
    margin: 1.75em 0;
    border-left: 4px solid;
    background: #f8fafc;
}

.tool-content .callout.info {
    border-color: #3b82f6;
    background: #eff6ff;
}

.tool-content .callout.success {
    border-color: #22c55e;
    background: #f0fdf4;
}

.tool-content .callout.warning {
    border-color: #f59e0b;
    background: #fffbeb;
}

.tool-content .callout.danger {
    border-color: #ef4444;
    background: #fef2f2;
}

/* ===== Lead Paragraph ===== */
.tool-content .lead {
    font-size: 1.2rem;
    line-height: 1.75;
    color: #1e293b;
    font-weight: 400;
    margin-bottom: 1.75em;
}

/* ============================================================
   TABLET
   ============================================================ */
@media (max-width: 768px) {
    .tool-content {
        font-size: 1rem;
        line-height: 1.8;
        margin-top: 1.75rem;
        padding-top: 1.25rem;
    }
    
    .tool-content p {
        font-size: 1rem;
        margin-bottom: 1.35em;
    }
    
    .tool-content h2 {
        font-size: 1.45rem;
        margin-top: 2.25rem;
        padding-bottom: 0.4rem;
    }
    
    .tool-content h2::after {
        width: 40px;
        height: 2.5px;
        margin-top: 0.55rem;
    }
    
    .tool-content h3 {
        font-size: 1.2rem;
        margin-top: 1.75rem;
    }
    
    .tool-content h4 {
        font-size: 1.05rem;
    }
    
    .tool-content ul li,
    .tool-content ol li {
        font-size: 1rem;
    }
    
    .tool-content blockquote {
        padding: 1em 1.25em 1em 1.5em;
        margin: 1.5em 0;
    }
    
    .tool-content blockquote::before {
        font-size: 2.4rem;
    }
    
    .tool-content pre {
        padding: 1em 1.1em;
        font-size: 0.82em;
        border-radius: 10px;
    }
    
    .tool-content .table-responsive {
        border-radius: 8px;
        margin: 1.5em 0;
    }
    
    .tool-content th,
    .tool-content td {
        padding: 0.65em 0.85em;
        font-size: 0.85rem;
    }
    
    .tool-content .lead {
        font-size: 1.08rem;
    }
}

/* ============================================================
   MOBILE
   ============================================================ */
@media (max-width: 480px) {
    .tool-content {
        font-size: 0.98rem;
        line-height: 1.75;
    }
    
    .tool-content p {
        font-size: 0.98rem;
        margin-bottom: 1.25em;
    }
    
    .tool-content h2 {
        font-size: 1.3rem;
        margin-top: 2rem;
    }
    
    .tool-content h3 {
        font-size: 1.12rem;
        margin-top: 1.6rem;
    }
    
    .tool-content h4 {
        font-size: 1rem;
    }
    
    .tool-content ul li,
    .tool-content ol li {
        font-size: 0.98rem;
        padding-left: 1.65rem;
    }
    
    .tool-content ol li {
        padding-left: 2.4rem;
    }
    
    .tool-content ol li::before {
        width: 24px;
        height: 24px;
        font-size: 0.75rem;
        top: 0.15em;
    }
    
    .tool-content ul li::before {
        width: 7px;
        height: 7px;
        top: 0.6em;
    }
    
    .tool-content blockquote {
        padding: 0.9em 1em 0.9em 1.25em;
        font-size: 0.95rem;
    }
    
    .tool-content blockquote::before {
        font-size: 2rem;
        left: 0.5rem;
    }
    
    .tool-content th,
    .tool-content td {
        padding: 0.55em 0.7em;
        font-size: 0.8rem;
    }
}

/* ============================================================
   PRINT
   ============================================================ */
@media print {
    .tool-content {
        font-size: 12pt;
        line-height: 1.6;
        color: #000;
    }
    
    .tool-content a {
        color: #000;
        border: none;
        text-decoration: underline;
    }
    
    .tool-content h2::after {
        display: none;
    }
    
    .tool-content img {
        box-shadow: none;
        page-break-inside: avoid;
    }
    
    .tool-content h2,
    .tool-content h3 {
        page-break-after: avoid;
    }
    
    .tool-content table {
        page-break-inside: avoid;
    }
}