/* ===== CSS Khusus Halaman Blog ===== */

.blog-main {
    margin-top: 120px;
    min-height: 60vh;
}

.page-header {
    text-align: center;
    margin-bottom: 40px;
}

.page-header h1 {
    font-size: 38px;
    font-weight: 600;
    color: #111;
}

.page-header p {
    font-size: 17px;
    color: #555;
    margin-top: 8px;
}

.filters {
    display: flex;
    gap: 12px;
    margin-bottom: 30px;
    justify-content: center;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 8px 18px;
    border: 1px solid #ddd;
    background-color: transparent;
    border-radius: 20px;
    font-size: 14px;
    color: #555;
    cursor: pointer;
    transition: all 0.2s ease;
}

.filter-btn:hover {
    border-color: #bbb;
}

.filter-btn.active {
    background-color: #fbece9;
    color: #a43a29;
    border-color: #fbece9;
    font-weight: 500;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin-bottom: 40px;
}

.blog-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #eaeaea;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}

.card-image {
    background-color: #1a5892;
    height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 32px;
    overflow: hidden;
    position: relative;
}

.card-image > a {
    display: block;
    width: 100%;
    height: 100%;
}

.card-content {
    padding: 24px;
}

.card-meta {
    font-size: 13px;
    color: #888;
    margin-bottom: 12px;
}

.card-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 12px;
    color: #1a1a1a;
    line-height: 1.4;
}

.card-excerpt {
    font-size: 15px;
    color: #555;
    margin-bottom: 24px;
    line-height: 1.5;
}

.read-more {
    color: #145da0;
    font-weight: 600;
    text-decoration: none;
    font-size: 15px;
}

.read-more:hover {
    text-decoration: underline;
}

.load-more-container {
    text-align: center;
    margin-bottom: 80px;
}

.load-more-btn {
    padding: 10px 24px;
    background: transparent;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    color: #111;
    transition: background 0.2s ease;
}

.load-more-btn:hover {
    background: #f0f0f0;
}

.card-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ======================================================
   TAMBAHAN: Styling untuk halaman ARTIKEL TUNGGAL (single post)
   ====================================================== */
/* Breadcrumb */
nav.breadcrumb {
    font-size: 13px;
    color: #888;
    margin: 20px 0 28px;
}
nav.breadcrumb a {
    color: #1a5892;
    text-decoration: none;
}
.nav.breadcrumb a:hover {
    text-decoration: underline;
}

/* Header artikel (judul + meta) */
.article-header {
    max-width: 820px;
    margin: 0 auto 24px;
    text-align: center;
}
.article-header h1 {
    font-size: 32px;
    font-weight: 600;
    line-height: 1.35;
    color: #111;
    margin: 0 0 12px;
}
.article-meta span  {
    margin: 0 6px;
}

/* Gambar unggulan */
.article-featured-img {
    max-width: 900px;
    margin: 0 auto 32px;
}
.article-featured-img img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    display: block;
}

/* Isi artikel */
.article-body {
    max-width: 900px;
    margin: 0 auto 48px;
    font-size: 16px;
    line-height: 1.85;
    color: #333;
}
.article-body h2 {
    font-size: 24px;
    font-weight: 600;
    color: #111;
    margin: 36px 0 14px;
}
.article-body h3 {
    font-size: 19px;
    font-weight: 600;
    color: #1a5892;
    margin: 28px 0 12px;
}
.article-body p {
    margin: 0 0 18px;
}
.article-body ul,
.article-body ol {
    list-style: none;
    padding-left: 0;
    margin: 20px 0;
}
.article-body ul li {
    position: relative;
    padding-left: 28px;
    margin-bottom: 12px;
    line-height: 1.6;
}
.article-body ul li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0;
    color: #1a5892;
    font-weight: 700;
}
.article-body li {
    margin-bottom: 8px;
}
.article-body strong {
    color: #111;
}

/* Tabel di dalam artikel */
.article-body table {
    border-collapse: collapse;
    width: 100%;
    margin: 20px 0;
    font-size: 14.5px;
}
.article-body th,
.article-body td {
    border: 1px solid #eaeaea;
    padding: 10px 14px;
    text-align: left;
}
.article-body th {
    background: #1a5892;
    color: #fff;
    font-weight: 600;
}
.article-body tr:nth-child(even) td {
    background: #fafafa;
}
.article-body a {
    color: #1a5892;
    text-decoration: underline;
    text-decoration-color: #c9d9e8;
    text-underline-offset:3px;
    pointer: cursor;
}
.article-body a:hover {
    color:  #a43a29;
    text-decoration-color: #a43a29;
}

/* Kotak CTA di dalam artikel */
.cta-box {
    background: #f4f8fb;
    border: 1px solid #dce8f1;
    border-radius: 12px;
    padding: 24px 28px;
    margin: 28px 0;
}
.cta-box p {
    margin: 0 0 14px;
}
.cta-box a.button{
    display: inline-block;
    background: #1a5892;
    color: #fff !important;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    padding: 10px 22px;
    border-radius: 8px;
    margin: 4px 10px 4px 0;
    transition: background 0.2s ease;
}
.cta-box a.button:hover{
    background: #a43a29;
}
.impact-box {
    background: #fff7f0;
    border: 1px solid #f3ddc9;
    border-radius: 12px;
    padding: 20px 24px;
    margin: 24px 0;
}
.impact-item {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    padding: 12px 0;
    border-bottom: 1px solid #f3ddc9;
}
.impact-item:last-child{ border-bottom: none; }
.impact-item i {
    color: #a43a29;
    font-size: 20px;
    margin-top: 2px;
    flex-shrink: 0;
}
.toc-box {
    background: #f7f7f5;
    border: 5px solid #e2e2de;
    border-radius: 10px;
    padding: 22px 26px;
    margin: 28px 0;
    max-width: 640px;
}
.toc-box .toc-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-weight: 700;
    font-size: 1.05rem;
    margin-bottom: 12px;
    cursor: pointer;
}
.toc-box .toc-title i {
    color: #888;
    font-size: 0.95rem;
}
.toc-box ol {
    margin: 0;
    padding-left: 22px;
}
.toc-box ol li {
    margin-bottom: 8px;
}
.toc-box ol li a {
    color: #2f6b3a;
    text-decoration: none;
}
.toc-box ol li a:hover {
    text-decoration: underline;
}
.inline-promo-image {
    margin: 28px 0;
    text-align: center;
}
.inline-promo-image img {
    width: 100%;
    max-width: 900px;
    height: auto;
    border-radius: 8px;
}
.inline-promo-image figcaption {
    margin-top: 8px;
    font-size: 0.95rem;
    color: #333;
}
.inline-promo-image figcaption .caption-title {
    font-weight: 600;
}
.inline-promo-image figcaption .caption-sep {
    margin: 0 8px;
    color: #ccc;
}
.inline-promo-image figcaption .caption-source {
    color: #a43a29;
}

.impact-item strong{ display: block; margin-bottom: 4px; color: #111; }
.impact-item p{ margin: 0; font-size: 14px; color: #666; }

/* FAQ */
.faq-item{
    margin-bottom: 20px;
    padding-bottom: 4px;
    border-bottom: 1px solid #f0f0f0;
}
.faq-item h3{
    margin-top: 0;
    font-size: 17px;
    color: #111;
}
.faq-item h3:hover{
    color: #1a5892;
}
.faq-item.is-open h3{
    color: #1a5892;
}
.faq-item p{
    margin: 0 0 12px;
}
 
/* Artikel terkait */
.related-posts{
    max-width: 900px;
    margin: 40px auto 60px;
    padding-top: 28px;
    border-top: 1px solid #eaeaea;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}
.related-posts h3{
    width: 100%;
}
/* Kartu artikel terkait dipakai di luar .blog-grid, batasi lebarnya */
.related-posts .blog-card{
    flex: 1 1 calc(33.333% - 20px);
    max-width: 340px;
}
.related-posts .card-title a{
    color: #1a1a1a;
    text-decoration: none;
}
.related-posts .card-title a:hover{
    color: #1a5892;
}
.blog-card.card-hidden {
    display: none;
}
 
@media (max-width: 600px){
    .article-header h1{ font-size: 24px; }
    .article-body{ font-size: 15px; }
    .page-header h1{ font-size: 28px; }
    .related-posts .blog-card{
        flex: 1 1 100%;
        max-width: 100%;
    }
    .article-body table{
        display: block;
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        white-space: nowrap;
    }
    .article-body th,
    .article-body td{
        white-space: normal;
        min-width: 140px;
    }
}
 