
:root {
    --brand: #3157d5;
    --brand-dark: #213eaa;
    --text-main: #182230;
    --text-muted: #667085;
    --border-color: #e8ecf2;
    --surface: #ffffff;
    --page-bg: #f8faff;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    color: var(--text-main);
    background: var(--surface);
    line-height: 1.7;
}

a {
    color: var(--brand);
}

.site-navbar {
    background: #111b35;
    box-shadow: 0 2px 14px rgba(16, 24, 40, 0.08);
}

.navbar-brand {
    letter-spacing: -0.4px;
}

.brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    margin-right: 7px;
    border-radius: 9px;
    background: var(--brand);
    color: white;
}

.hero-section {
    background:
        radial-gradient(ellipse at 90% 15%, #dce6ff 0, transparent 40%),
        linear-gradient(135deg, #f8faff, #edf2ff);
    border-bottom: 1px solid var(--border-color);
}

.hero-label,
.section-eyebrow {
    color: var(--brand);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1.5px;
}

.hero-section h1 {
    color: #152344;
    letter-spacing: -1.6px;
    line-height: 1.2;
}

.hero-section .lead {
    max-width: 660px;
    font-size: 1.1rem;
}

.search-form {
    max-width: 620px;
}

.search-form .form-control,
.search-form .btn {
    min-height: 56px;
}

.search-form .form-control {
    border-color: #dce3ef;
    box-shadow: none;
}

.search-form .form-control:focus {
    border-color: var(--brand);
    box-shadow: 0 0 0 0.2rem rgba(49, 87, 213, 0.12);
}

.btn-primary {
    background: var(--brand);
    border-color: var(--brand);
}

.btn-primary:hover {
    background: var(--brand-dark);
    border-color: var(--brand-dark);
}

.section-title {
    margin-top: 8px;
    color: #152344;
    font-size: clamp(1.6rem, 3vw, 2rem);
    font-weight: 750;
    letter-spacing: -0.8px;
}

.article-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 14px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.article-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(25, 45, 90, 0.09);
}

.article-card-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: flex-start;
    padding: 24px;
}

.category-label {
    display: inline-block;
    padding: 4px 10px;
    color: #2849ad;
    background: #edf2ff;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    text-decoration: none;
}

.article-title {
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1.45;
}

.article-title a {
    color: var(--text-main);
    text-decoration: none;
}

.article-title a:hover {
    color: var(--brand);
}

.article-excerpt {
    margin-top: 10px;
    margin-bottom: 22px;
    color: var(--text-muted);
    font-size: 0.93rem;
    line-height: 1.8;
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 0.8rem;
}

.meta-dot {
    color: #a0a9b8;
}

.article-read-more {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 24px;
    border-top: 1px solid var(--border-color);
    color: var(--brand);
    font-size: 0.88rem;
    font-weight: 700;
    text-decoration: none;
}

.article-read-more:hover {
    background: #f8faff;
}

.empty-state {
    border: 1px dashed #d6deeb;
    border-radius: 14px;
    background: var(--page-bg);
}

.article-detail-container {
    min-height: 55vh;
}

.breadcrumb a {
    text-decoration: none;
}

.detail-title {
    color: #152344;
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -1.3px;
}

.detail-excerpt {
    margin-top: 20px;
    color: var(--text-muted);
    font-size: 1.15rem;
    line-height: 1.8;
}

.detail-meta {
    margin-top: 20px;
}

.article-content {
    color: #344054;
    font-size: 1.05rem;
    line-height: 1.95;
    overflow-wrap: anywhere;
}

.article-content p {
    margin-bottom: 1.35rem;
}

.article-content h2,
.article-content h3 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: #152344;
    font-weight: 750;
}

.article-content pre,
.article-content code {
    font-family: Consolas, "Courier New", monospace;
}

.article-content pre {
    overflow-x: auto;
    padding: 18px;
    background: #111b35;
    color: #edf2ff;
    border-radius: 10px;
}

.site-footer {
    border-top: 1px solid var(--border-color);
    background: #f8faff;
}

@media (max-width: 767.98px) {
    .hero-section h1 {
        font-size: 2.25rem;
        letter-spacing: -1px;
    }

    .article-card-body {
        padding: 20px;
    }

    .detail-title {
        letter-spacing: -0.7px;
    }
}


/* Code blocks dalam artikel dokumentasi */
.article-content pre {
    margin: 1.5rem 0;
    padding: 1.25rem;
    overflow-x: auto;
    border: 1px solid #26334d;
    border-radius: 12px;
    background: #0d1117;
    color: #e6edf3;
    font-size: 0.9rem;
    line-height: 1.7;
    tab-size: 4;
}

.article-content pre code {
    padding: 0;
    background: transparent;
    color: inherit;
    font-family: Consolas, "Courier New", monospace;
    font-size: inherit;
    white-space: pre;
}

.article-content :not(pre) > code {
    padding: 0.15rem 0.35rem;
    border-radius: 4px;
    background: #edf2ff;
    color: #2849ad;
    font-family: Consolas, "Courier New", monospace;
    font-size: 0.9em;
}


/* Gambar artikel rata kiri, teks mengalir di sebelah kanan */
.article-content img.align-left {
    float: left;
    max-width: 45%;
    height: auto;
    margin: 0 20px 12px 0;
}

/* Gambar artikel rata kanan, teks mengalir di sebelah kiri */
.article-content img.align-right {
    float: right;
    max-width: 45%;
    height: auto;
    margin: 0 0 12px 20px;
}

/* Gambar di tengah tanpa wrapping */
.article-content img.align-center {
    display: block;
    float: none;
    max-width: 100%;
    height: auto;
    margin: 20px auto;
}

/* Pastikan paragraf dan artikel tetap responsif */
/* .article-content img {
    height: auto;
}

.article-content::after {
    content: "";
    display: block;
    clear: both;
}

@media (max-width: 576px) {
    .article-content img.align-left,
    .article-content img.align-right {
        float: none;
        display: block;
        max-width: 100%;
        margin: 16px auto;
    }
} */



/* Area isi artikel */
.article-content {
    padding: 28px 32px;
    color: #343a40;
    font-family: Arial, sans-serif;
    font-size: 17px;
    line-height: 1.85;
    overflow-wrap: break-word;
}

/* Jangan biarkan teks biasa mewarisi format blok kode */
.article-content p {
    font-family: Arial, sans-serif;
    font-size: 17px;
    line-height: 1.85;
    margin: 0 0 20px;
    white-space: normal;
}

/* Gambar mengambang di kiri */
.article-content img.align-left {
    float: left;
    width: 45%;
    max-width: 420px;
    height: auto;
    margin: 5px 24px 16px 0;
    border-radius: 10px;
}

/* Gambar mengambang di kanan */
.article-content img.align-right {
    float: right;
    width: 45%;
    max-width: 420px;
    height: auto;
    margin: 5px 0 16px 24px;
    border-radius: 10px;
}

/* Gambar di tengah */
.article-content img.align-center {
    display: block;
    float: none;
    width: auto;
    max-width: 100%;
    margin: 24px auto;
}

/* Blok kode hanya untuk kode program */
.article-content pre {
    display: block;
    clear: both;
    padding: 20px;
    margin: 24px 0;
    overflow-x: auto;
    border-radius: 10px;
}

.article-content pre code {
    font-family: Consolas, monospace;
    white-space: pre;
}

/* Membersihkan float di akhir konten */
.article-content::after {
    content: "";
    display: block;
    clear: both;
}

@media (max-width: 768px) {
    .article-content {
        padding: 20px 16px;
    }

    .article-content img.align-left,
    .article-content img.align-right {
        float: none;
        display: block;
        width: auto;
        max-width: 100%;
        margin: 20px auto;
    }
}



.article-content p {
    line-height: 1.85;
    margin-bottom: 24px;
    overflow-wrap: break-word;
}

.article-content p img {
    max-width: 45%;
    height: auto;
    border-radius: 10px;
}

.article-content pre {
    margin: 24px 0;
    padding: 20px;
    border-radius: 10px;
    overflow-x: auto;
}

@media (max-width: 576px) {
    .article-content p img[style*="float: left"],
    .article-content p img[style*="float:left"],
    .article-content p img[style*="float: right"],
    .article-content p img[style*="float:right"] {
        max-width: 100%;
        float: none !important;
        display: block;
        margin: 0 auto 18px;
    }
}

