/* =========================================================
   blog.css - CSS Khusus Blog PT DPSS
   ========================================================= */

/* =========================================================
   BLOG INDEX
========================================================= */

.blog-index-section {
    background: var(--light);
}

.blog-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 20px;
}

.blog-list-item {
    background: white;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: 0.3s;
    border: 1px solid var(--border);
}

.blog-list-item:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow);
}

.blog-list-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.blog-list-image {
    height: 200px;
    background-size: cover;
    background-position: center;
    background-color: var(--sky-light);
}

.blog-list-content {
    padding: 22px 24px;
}

.blog-list-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 10px;
    font-size: 12px;
    color: var(--muted);
}

.blog-list-date i {
    margin-right: 4px;
}

.blog-list-category {
    background: var(--sky-light);
    color: var(--sky-dark);
    padding: 2px 12px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.blog-list-content h3 {
    color: var(--navy);
    font-size: 18px;
    line-height: 1.3;
    margin-bottom: 8px;
    font-weight: 800;
}

.blog-list-content p {
    color: var(--muted);
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 12px;
}

.blog-list-readmore {
    display: inline-block;
    color: var(--sky-dark);
    font-weight: 700;
    font-size: 13px;
    transition: 0.2s;
}

.blog-list-readmore:hover {
    color: var(--orange);
    transform: translateX(4px);
}

/* =========================================================
   PAGINATION
========================================================= */

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.pagination a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    color: var(--navy);
    background: white;
    border: 1px solid var(--border);
    transition: 0.2s;
    min-width: 40px;
}

.pagination a:hover {
    background: var(--sky-light);
    border-color: var(--sky-dark);
}

.pagination a.active {
    background: var(--sky-dark);
    color: white;
    border-color: var(--sky-dark);
}

.pagination a.pagination-prev,
.pagination a.pagination-next {
    gap: 6px;
}

/* =========================================================
   BLOG POST DETAIL
========================================================= */

.blog-post-section {
    background: var(--light);
}

.blog-post-container {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    border-radius: 22px;
    padding: 40px 45px;
    box-shadow: var(--shadow-soft);
}

.blog-post-header {
    margin-bottom: 30px;
    border-bottom: 1px solid var(--border);
    padding-bottom: 25px;
}

.blog-post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 13px;
    color: var(--muted);
    margin-bottom: 12px;
}

.blog-post-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.post-title {
    font-size: clamp(28px, 3.5vw, 40px);
    color: var(--navy);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 12px;
}

.post-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.post-tags .tag {
    background: var(--light-blue);
    color: var(--sky-dark);
    padding: 2px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
}

/* Blog Post Body */
.blog-post-body {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text);
}

.blog-post-body h2 {
    font-size: 24px;
    color: var(--navy);
    margin: 30px 0 14px;
    font-weight: 800;
}

.blog-post-body h3 {
    font-size: 20px;
    color: var(--navy);
    margin: 24px 0 10px;
    font-weight: 700;
}

.blog-post-body p {
    margin-bottom: 16px;
}

.blog-post-body ul,
.blog-post-body ol {
    padding-left: 24px;
    margin-bottom: 16px;
}

.blog-post-body ul li,
.blog-post-body ol li {
    margin-bottom: 6px;
}

.blog-post-body ul li {
    list-style: disc;
}

.blog-post-body ol li {
    list-style: decimal;
}

.blog-post-body img {
    max-width: 100%;
    border-radius: 12px;
    margin: 20px 0;
    box-shadow: var(--shadow-soft);
}

.blog-post-body blockquote {
    border-left: 4px solid var(--sky);
    padding: 16px 24px;
    margin: 20px 0;
    background: var(--light-blue);
    border-radius: 0 12px 12px 0;
    font-style: italic;
    color: var(--navy);
}

.blog-post-body blockquote p {
    margin-bottom: 0;
}

.blog-post-body table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.blog-post-body table th,
.blog-post-body table td {
    padding: 10px 14px;
    border: 1px solid var(--border);
    text-align: left;
}

.blog-post-body table th {
    background: var(--navy);
    color: white;
}

.blog-post-body .highlight-box {
    background: var(--sky-light);
    padding: 20px 24px;
    border-radius: 12px;
    margin: 20px 0;
    border-left: 4px solid var(--sky-dark);
}

/* Blog Post Footer */
.blog-post-footer {
    margin-top: 35px;
    padding-top: 25px;
    border-top: 1px solid var(--border);
}

.post-share {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.post-share span {
    font-weight: 600;
    color: var(--navy);
    font-size: 14px;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: white;
    transition: 0.3s;
    font-size: 18px;
}

.share-btn:hover {
    transform: scale(1.1);
}

.share-wa { background: #25D366; }
.share-fb { background: #1877F2; }
.share-tw { background: #1DA1F2; }
.share-li { background: #0A66C2; }

/* =========================================================
   RESPONSIVE BLOG
========================================================= */

@media (max-width: 768px) {
    .blog-list {
        grid-template-columns: 1fr;
    }

    .blog-post-container {
        padding: 24px 18px;
        border-radius: 16px;
    }

    .blog-post-body {
        font-size: 15px;
    }

    .blog-post-body h2 {
        font-size: 20px;
    }

    .blog-post-body h3 {
        font-size: 17px;
    }

    .blog-list-image {
        height: 160px;
    }

    .pagination {
        gap: 4px;
    }

    .pagination a {
        padding: 6px 12px;
        font-size: 12px;
        min-width: 34px;
    }

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

@media (max-width: 480px) {
    .blog-post-container {
        padding: 18px 14px;
    }

    .blog-list-content {
        padding: 16px 18px;
    }

    .blog-list-content h3 {
        font-size: 16px;
    }

    .post-title {
        font-size: 22px;
    }
}