/* ============================================
   Crest IPTV — single-article.css
   Article typography, Table of Contents, sidebar.
   Only loaded on is_single().
   ============================================ */

/* ── Article Content Typography ────────────────────── */
.article-content h2 {
    font-family: 'Crimson Pro', serif;
    font-weight: 700;
    font-size: 28px;
    color: #0C4A6E;
    margin-top: 40px;
    margin-bottom: 16px;
    padding-left: 16px;
    border-left: 4px solid #0891B2;
    line-height: 1.3;
}

.article-content h3 {
    font-family: 'Crimson Pro', serif;
    font-weight: 700;
    font-size: 22px;
    color: #0C4A6E;
    margin-top: 32px;
    margin-bottom: 12px;
    line-height: 1.3;
}

.article-content p {
    font-family: 'Rubik', sans-serif;
    font-size: 17px;
    line-height: 1.8;
    color: #334155;
    margin-bottom: 20px;
}

.article-content ul,
.article-content ol {
    font-family: 'Rubik', sans-serif;
    font-size: 16px;
    line-height: 1.8;
    color: #334155;
    margin-bottom: 20px;
    padding-left: 20px;
}

.article-content ul {
    list-style: none;
}

.article-content ul li {
    position: relative;
    padding-left: 24px;
    margin-bottom: 8px;
}

.article-content ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #0891B2;
}

.article-content ol {
    list-style: decimal;
    padding-left: 24px;
}

.article-content ol li {
    margin-bottom: 8px;
    padding-left: 8px;
}

.article-content ol li::marker {
    color: #0891B2;
    font-weight: 600;
}

.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 24px 0;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.article-content blockquote {
    border-left: 4px solid #0891B2;
    background: #F1F5F9;
    padding: 20px 24px;
    margin: 24px 0;
    border-radius: 0 12px 12px 0;
    font-style: italic;
    font-size: 17px;
    line-height: 1.7;
    color: #334155;
}

.article-content a {
    color: #0891B2;
    text-decoration: none;
    font-weight: 500;
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s ease;
}

.article-content a:hover {
    border-bottom-color: #0891B2;
}

.article-content code {
    font-family: 'Courier New', monospace;
    background: #F1F5F9;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 14px;
    color: #0E7490;
}

.article-content pre {
    background: #0C4A6E;
    color: #F8FAFC;
    padding: 20px;
    border-radius: 12px;
    overflow-x: auto;
    margin: 24px 0;
    font-size: 14px;
    line-height: 1.6;
}

.article-content pre code {
    background: none;
    padding: 0;
    color: inherit;
}

.article-content strong {
    font-weight: 700;
    color: #0C4A6E;
}

.article-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 24px 0;
    font-family: 'Rubik', sans-serif;
    font-size: 15px;
    border-radius: 12px;
    overflow: hidden;
}

.article-content table th {
    background: #0C4A6E;
    color: #fff;
    padding: 12px 16px;
    text-align: left;
    font-weight: 600;
}

.article-content table td {
    padding: 12px 16px;
    border-bottom: 1px solid #E2E8F0;
    color: #334155;
}

.article-content table tr:nth-child(even) td {
    background: #F8FAFC;
}

/* ── Table of Contents ─────────────────────────────── */
.toc-list a {
    display: block;
    padding: 6px 0;
    color: #64748B;
    text-decoration: none;
    border-left: 2px solid transparent;
    padding-left: 12px;
    transition: all 0.3s ease;
    font-size: 14px;
    line-height: 1.5;
}

.toc-list a:hover {
    color: #0891B2;
    border-left-color: #0891B2;
}

.toc-list a.active {
    color: #0891B2;
    border-left-color: #0891B2;
    font-weight: 600;
}

/* ── Sidebar ───────────────────────────────────────── */
.article-sidebar > div {
    transition: transform 0.3s ease;
}

/* ── Responsive ────────────────────────────────────── */
@media (max-width: 768px) {
    .article-content h2 {
        font-size: 24px;
        margin-top: 32px;
    }

    .article-content h3 {
        font-size: 20px;
    }

    .article-content p {
        font-size: 16px;
    }

    .article-content blockquote {
        font-size: 15px;
        padding: 16px 20px;
    }
}
