/* Article Content Typography and Styling */
.article-content {
    font-family: 'Open Sans', sans-serif;
    line-height: 1.7;
    color: #333;
    margin-top: 20px;
    background-color: #fff;
    padding: 30px 35px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.article-content h1,
.article-content h2,
.article-content h3,
.article-content h4,
.article-content h5,
.article-content h6 {
    margin-top: 1.8em;
    margin-bottom: 0.8em;
    font-weight: 600;
    color: #252525;
    font-family: 'Open Sans', sans-serif;
    scroll-margin-top: 150px; /* Meningkatkan margin untuk mencegah heading tertutup navbar */
    border-bottom: 1px solid #eee;
    padding-bottom: 8px;
}

.article-content h1 { font-size: 2.2em; }
.article-content h2 { font-size: 1.9em; }
.article-content h3 { font-size: 1.6em; }
.article-content h4 { font-size: 1.4em; }
.article-content h5 { font-size: 1.2em; }
.article-content h6 { font-size: 1.1em; }

.article-content p,
.article-content li,
.article-content td,
.article-content th,
.article-content figcaption,
.article-content blockquote {
    color: #333 !important;
    font-size: 1.15rem;
    font-family: 'Open Sans', sans-serif;
    line-height: 1.8;
}

.article-content ul,
.article-content ol {
    margin-bottom: 1.2em;
    padding-left: 2em;
    color: #333;
}

.article-content li {
    margin-bottom: 0.5em;
}

.article-content blockquote {
    margin: 1.5em 0;
    padding: 1em 1.5em;
    border-left: 4px solid #007bff;
    background-color: #f8f9fa;
    font-style: italic;
}

.article-content img {
    max-width: 100%;
    height: auto;
    margin: 1.5em 0;
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.article-content table {
    width: 100%;
    margin: 1.5em 0;
    border-collapse: collapse;
}

.article-content table th,
.article-content table td {
    padding: 0.75em;
    border: 1px solid #dee2e6;
}

.article-content table th {
    background-color: #f8f9fa;
    font-weight: 600;
}

.article-content pre {
    margin: 1.5em 0;
    padding: 1em;
    background-color: #f8f9fa;
    border-radius: 4px;
    overflow-x: auto;
    font-family: "Courier New", Courier, monospace;
    border: 1px solid #dee2e6;
}

.article-content a,
.article-link {
    color: #0066cc !important;
    text-decoration: none;
    font-weight: 500;
    border-bottom: 1px dotted #0066cc;
    transition: color 0.2s, border-bottom 0.2s;
}

.article-content a:hover,
.article-link:hover {
    color: #004c99 !important;
    border-bottom: 1px solid #004c99;
}

/* Styling untuk thumbnail artikel */
.article-thumbnail {
    width: 100%;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

/* Styling untuk judul artikel */
.article-title {
    font-family: 'Open Sans', sans-serif;
    font-size: 2.2em;
    font-weight: 700;
    margin-bottom: 2.22.2px;
    color: #252525 !important;
    line-height: 1.3;
}

/* Article Heading Anchor Links */
.article-heading {
    position: relative;
}

.article-heading:not(:hover) .heading-anchor {
    opacity: 0;
}

.heading-anchor {
    font-size: 0.8em;
    margin-left: 0.5em;
    color: #007bff;
    opacity: 0.5;
    text-decoration: none !important;
    transition: opacity 0.2s ease;
}

.heading-anchor:hover {
    opacity: 1 !important;
}

/* Responsive Typography */
@media (max-width: 767.98px) {
    .article-content {
        padding: 20px;
    }

    .article-title {
        font-size: 1.8em;
    }

    .article-content h1 { font-size: 1.8em; }
    .article-content h2 { font-size: 1.6em; }
    .article-content h3 { font-size: 1.4em; }
    .article-content h4 { font-size: 1.2em; }
    .article-content h5 { font-size: 1.1em; }
    .article-content h6 { font-size: 1em; }

    .article-content p,
    .article-content li,
    .article-content td,
    .article-content th,
    .article-content figcaption,
    .article-content blockquote {
        font-size: 1rem;
    }
}

@media (max-width: 575.98px) {
    .article-content {
        padding: 15px;
    }

    .article-title {
        font-size: 1.5em;
    }
}