/* Article Content Styles - Premium Typography */

.article-content {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 1.0625rem;
    line-height: 1.75;
    color: #1e293b;
    max-width: 100%;
    font-weight: 400;
}

/* Lead Paragraph with Drop Cap */
.article-content .lead-paragraph {
    font-size: 1.1875rem;
    line-height: 1.6;
    color: #334155;
    font-weight: 400;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #e2e8f0;
}

.article-content .lead-paragraph::first-letter {
    float: left;
    font-size: 3.5rem;
    line-height: 1;
    font-weight: 700;
    margin-right: 0.125rem;
    margin-top: 0.125rem;
    color: #2868ed;
}

/* Headings */
.article-content h2 {
    font-size: 1.875rem;
    font-weight: 700;
    color: #0f172a;
    margin-top: 3.5rem;
    margin-bottom: 1.25rem;
    line-height: 1.25;
    letter-spacing: -0.025em;
    scroll-margin-top: 120px;
}

.article-content h3 {
    font-size: 1.375rem;
    font-weight: 600;
    color: #1e293b;
    margin-top: 2.75rem;
    margin-bottom: 1rem;
    line-height: 1.4;
    letter-spacing: -0.015em;
    scroll-margin-top: 120px;
}

.article-content h4 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #334155;
    margin-top: 2.25rem;
    margin-bottom: 0.875rem;
    line-height: 1.5;
}

/* Paragraphs */
.article-content p {
    margin-bottom: 1.75rem;
    color: #334155;
    max-width: 75ch;
}

/* Lists */
.article-content ul,
.article-content ol {
    margin-bottom: 2rem;
    padding-left: 0;
    list-style: none;
}

.article-content ul li {
    position: relative;
    margin-bottom: 0.875rem;
    color: #334155;
    line-height: 1.75;
    padding-left: 1.75rem;
}

.article-content ul li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: #2868ed;
    font-weight: 600;
    font-size: 1.125rem;
}

.article-content ol {
    counter-reset: custom-counter;
    padding-left: 0;
}

.article-content ol li {
    position: relative;
    margin-bottom: 0.875rem;
    color: #334155;
    line-height: 1.75;
    padding-left: 2rem;
    counter-increment: custom-counter;
}

.article-content ol li::before {
    content: counter(custom-counter) ".";
    position: absolute;
    left: 0;
    color: #2868ed;
    font-weight: 700;
    font-size: 1rem;
}

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

/* Links */
.article-content a {
    color: #2563eb;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 2px;
    transition: all 0.2s ease;
}

.article-content a:hover {
    color: #1d4ed8;
    text-decoration-thickness: 2px;
}

.article-content a:focus {
    outline: 2px solid #2563eb;
    outline-offset: 2px;
    border-radius: 2px;
}

/* Table of Contents */
.toc {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-left: 4px solid #2868ed;
    border-radius: 8px;
    padding: 2rem 2rem 2rem 2.25rem;
    margin: 3rem 0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.toc-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 1.5rem 0;
    letter-spacing: -0.01em;
}

.toc-list {
    list-style: none;
    padding-left: 0;
    margin: 0;
    counter-reset: toc-counter;
}

.toc-list li {
    counter-increment: toc-counter;
    margin-bottom: 0.875rem;
    position: relative;
    padding-left: 2rem;
}

.toc-list li::before {
    content: counter(toc-counter) ".";
    position: absolute;
    left: 0;
    font-weight: 700;
    color: #2868ed;
    font-size: 0.9375rem;
}

.toc-list a {
    color: #334155;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9375rem;
    transition: all 0.2s ease;
    display: inline-block;
}

.toc-list a:hover {
    color: #2563eb;
    transform: translateX(4px);
}

.toc-list a:focus {
    outline: 2px solid #2563eb;
    outline-offset: 2px;
    border-radius: 2px;
}

/* Info Box */
.info-box {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border-left: 4px solid #2868ed;
    border-radius: 8px;
    padding: 1.75rem 2rem;
    margin: 2.5rem 0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.info-box h4 {
    margin-top: 0;
    margin-bottom: 1.125rem;
    color: #1e40af;
    font-size: 1.0625rem;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.info-box ul {
    margin-bottom: 0;
}

.info-box li {
    color: #1e40af;
}

.info-box li::before {
    color: #3b82f6;
}

/* Action Steps Box */
.action-steps {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    border-left: 4px solid #22c55e;
    border-radius: 8px;
    padding: 1.75rem 2rem;
    margin: 2.5rem 0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.action-steps h3 {
    color: #15803d;
    margin-top: 0;
    font-size: 1.125rem;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.action-steps ol {
    padding-left: 0;
}

.action-steps li {
    color: #166534;
    margin-bottom: 1rem;
}

.action-steps li::before {
    color: #22c55e;
}

/* FAQ Section - Minimalist design matching index.html */
.article-content .accordion {
    margin: 1.5rem 0;
    gap: 0 !important;
}

.article-content .accordion-item {
    background: transparent;
    border: none;
    border-bottom: 1px solid #e2e8f0;
    border-radius: 0 !important;
    margin-bottom: 0;
    border-left: none !important;
}

.article-content .accordion-item:last-child {
    border-bottom: 1px solid #e2e8f0;
}

.article-content .accordion-button {
    font-weight: 400;
    font-size: 1.125rem;
    color: #0f172a;
    background: transparent;
    padding: 0.75rem 2rem 0.75rem 0;
    border: none;
    box-shadow: none;
    text-align: left;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.article-content .accordion-button:not(.collapsed) {
    background: transparent;
    color: #0f172a;
    box-shadow: none;
}

.article-content .accordion-button:focus {
    box-shadow: none;
    border: none;
}

.article-content .accordion-button::after {
    content: "";
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 2px;
    border-radius: 1px;
    background-color: #0f172a;
    background-image: none !important;
}

.article-content .accordion-button::before {
    content: "";
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 2px;
    height: 18px;
    border-radius: 1px;
    background-color: #0f172a;
    transition: opacity 0.2s ease;
}

.article-content .accordion-button:not(.collapsed)::before {
    opacity: 0;
}

.article-content .accordion-button:not(.collapsed)::after {
    background-image: none !important;
}

.article-content .accordion-body {
    padding: 0 0 1.5rem 0;
    color: #475569;
    font-size: 1rem;
    line-height: 1.6;
}

/* CTA Box - Using bg-cta from main styles */
.article-content .bg-cta {
    margin: 4rem 0;
}

.article-content .bg-cta h2 {
    color: var(--primary);
}

.article-content .bg-cta p {
    color: var(--primary);
}

/* Make CTA button inside article readable on blue background */
.article-content .bg-cta .btn-accent-4 {
    color: #ffffff !important;
    text-decoration: none !important;
    border: 1.5px solid #ffffff;
    background-color: transparent; /* match Contacts look */
}

/* Stronger specificity to avoid inherited underline from .article-content a */
.article-content .bg-cta a.btn.btn-accent-4,
.article-content .bg-cta a.btn.btn-accent-4 span {
    color: #ffffff !important;
    text-decoration: none !important;
}

.article-content .bg-cta a.btn.btn-accent-4:hover {
    color: #ffffff !important;
}

/* White circular icon at the right like Contacts */
.article-content .bg-cta .btn-accent-4 .icon-box.blue {
    background-color: #ffffff !important;
    color: #2868ed !important;
}

/* Remove skewed line animation inside CTA button (keeps Contacts style clean) */
.article-content .bg-cta .btn-accent-4::before {
    display: none !important;
}

/* CTA Button - white text on blue background */
.article-content .bg-cta .btn-accent-4 span {
    color: #ffffff;
}

/* Post Tags */
.post-tag {
    display: inline-block;
    background: #f1f5f9;
    color: #334155;
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s ease;
    border: 1px solid #e2e8f0;
}

.post-tag:hover {
    background: #e0e7ff;
    color: #3b82f6;
    border-color: #c7d2fe;
}

/* Social Share */
.social-share {
    display: flex;
    gap: 0.75rem;
}

.share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #f1f5f9;
    color: #475569;
    text-decoration: none;
    transition: all 0.2s ease;
    border: 1px solid #e2e8f0;
}

.share-btn:focus {
    outline: 2px solid #2563eb;
    outline-offset: 2px;
}

.share-btn:hover {
    background: #2868ed;
    color: #ffffff;
    border-color: #2868ed;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(40, 104, 237, 0.2);
}

/* Related Posts use wrapper-news component from blog.html */
/* Styles are defined in main style.css */

/* WordPress Tables */
.article-content table,
.article-content .wp-block-table table {
    width: 100%;
    border-collapse: collapse;
    margin: 2.5rem 0;
    font-size: 0.9375rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    border-radius: 8px;
    overflow: hidden;
}

.article-content table thead th,
.article-content .wp-block-table table thead th {
    background: linear-gradient(135deg, #2868ed 0%, #1e4fc9 100%);
    color: #ffffff;
    font-weight: 600;
    text-align: left;
    padding: 1rem 1.25rem;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.article-content table tbody td,
.article-content .wp-block-table table tbody td {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid #e2e8f0;
    color: #334155;
    line-height: 1.6;
}

.article-content table tbody tr,
.article-content .wp-block-table table tbody tr {
    background: #ffffff;
    transition: background 0.2s ease;
}

.article-content table tbody tr:nth-child(even),
.article-content .wp-block-table table tbody tr:nth-child(even) {
    background: #f8fafc;
}

.article-content table tbody tr:hover,
.article-content .wp-block-table table tbody tr:hover {
    background: #eff6ff;
}

.article-content table tbody tr:last-child td,
.article-content .wp-block-table table tbody tr:last-child td {
    border-bottom: none;
}

.article-content .wp-block-table figure {
    margin: 2.5rem 0;
}

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

/* Mobile Responsive */
@media (max-width: 768px) {
    .article-content {
        font-size: 1rem;
    }

    .article-content .lead-paragraph {
        font-size: 1.0625rem;
    }

    .article-content .lead-paragraph::first-letter {
        font-size: 2.75rem;
    }

    .article-content h2 {
        font-size: 1.5rem;
        margin-top: 2.5rem;
    }

    .article-content h3 {
        font-size: 1.25rem;
        margin-top: 2rem;
    }

    .article-content h4 {
        font-size: 1.0625rem;
    }

    .article-content p {
        max-width: 100%;
    }

    .toc {
        padding: 1.5rem 1.5rem 1.5rem 1.75rem;
    }

    .info-box,
    .action-steps {
        padding: 1.5rem;
    }

    .article-content .accordion-button {
        font-size: 1rem;
        padding: 0.875rem 2rem 0.875rem 0;
    }
    
    .article-content .accordion-button::after {
        font-size: 1.25rem;
    }
    
    .article-content .accordion-body {
        padding: 0 0 1.25rem 0;
        font-size: 0.9375rem;
    }

    .article-content .bg-cta {
        padding: 2.5rem 1.5rem !important;
        margin: 3rem 0 !important;
    }
    
    .article-content .bg-cta h2 {
        font-size: clamp(1.5rem, 5vw, 2rem) !important;
        margin-bottom: 1rem !important;
    }
    
    .article-content .bg-cta p {
        font-size: 1rem !important;
        margin-bottom: 1.5rem !important;
    }

    .social-share {
        justify-content: center;
    }

    .post-meta-bottom .row {
        text-align: center;
    }

    .post-meta-bottom .col-md-7,
    .post-meta-bottom .col-md-5 {
        justify-content: center !important;
    }
}

/* Print Styles */
@media print {
    .article-content {
        font-size: 12pt;
        line-height: 1.6;
    }

    .social-share,
    .cta-box {
        display: none;
    }
}
