/* ============================================================
   Arga Project — Stylesheet blog & artikel
   ============================================================ */

/* ---------- Kartu artikel (beranda & daftar) ---------- */
.article-card {
    background: #fff;
    border: 1px solid #eef2ff;
    border-radius: 1.5rem;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: all .3s ease;
    box-shadow: 0 10px 25px -8px rgba(15, 23, 42, .06);
}
.article-card:hover {
    transform: translateY(-6px);
    border-color: #cbdffc;
    box-shadow: 0 22px 38px -16px rgba(15, 23, 42, .18);
}
.article-card-cover {
    display: block;
    aspect-ratio: 16 / 9;
    background: linear-gradient(135deg, #2563eb, #10b981);
    overflow: hidden;
    position: relative;
}
.article-card-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .45s ease;
}
.article-card:hover .article-card-cover img {
    transform: scale(1.05);
}
.article-card-cover .cover-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, .9);
    font-size: 3rem;
}
.article-card-body {
    padding: 1.4rem 1.5rem 1.6rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.article-meta-line {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .5rem .9rem;
    font-size: .78rem;
    color: #64748b;
    margin-bottom: .65rem;
}
.article-meta-line i {
    color: #2563eb;
}
.article-card-title {
    font-size: 1.12rem;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: .6rem;
}
.article-card-title a {
    color: #0f172a;
    text-decoration: none;
}
.article-card:hover .article-card-title a {
    color: #2563eb;
}
.article-card-excerpt {
    font-size: .9rem;
    color: #64748b;
    line-height: 1.65;
    flex: 1;
}
.article-card-footer {
    margin-top: 1.1rem;
    padding-top: 1rem;
    border-top: 1px dashed #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: .82rem;
}
.article-card-footer .read-more {
    color: #2563eb;
    font-weight: 600;
    text-decoration: none;
}
.article-card-footer .read-more:hover {
    text-decoration: underline;
}

/* ---------- Header halaman artikel ---------- */
.page-hero {
    padding: 4rem 0 3.5rem;
    background: linear-gradient(150deg, #f8fafc 0%, #eef2ff 100%);
    border-bottom: 1px solid #e2e8f0;
}
.page-hero h1 {
    font-weight: 800;
    letter-spacing: -.5px;
    line-height: 1.2;
}
.breadcrumb-nav {
    --bs-breadcrumb-divider: '›';
    font-size: .82rem;
    margin-bottom: 1rem;
}
.breadcrumb-nav a {
    color: #2563eb;
    text-decoration: none;
}
.breadcrumb-nav a:hover {
    text-decoration: underline;
}

/* ---------- Filter & pencarian ---------- */
.filter-bar {
    background: #fff;
    border: 1px solid #eef2ff;
    border-radius: 1.25rem;
    padding: 1.1rem 1.25rem;
    box-shadow: 0 12px 30px -20px rgba(15, 23, 42, .3);
}
.filter-chip {
    display: inline-block;
    padding: .4rem .95rem;
    border-radius: 40px;
    border: 1px solid #dbe4f3;
    background: #fff;
    color: #334155;
    font-size: .82rem;
    font-weight: 600;
    text-decoration: none;
    transition: .2s;
}
.filter-chip:hover {
    border-color: #93b4f8;
    color: #2563eb;
}
.filter-chip.active {
    background: linear-gradient(100deg, #2563eb, #3b82f6);
    border-color: transparent;
    color: #fff;
}
.search-box {
    position: relative;
}
.search-box input {
    border-radius: 40px;
    padding-left: 2.7rem;
    border: 1px solid #dbe4f3;
}
.search-box i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
}

/* ---------- Pagination ---------- */
.pagination-custom {
    display: flex;
    gap: .4rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 3rem;
}
.pagination-custom a,
.pagination-custom span {
    min-width: 42px;
    height: 42px;
    padding: 0 .8rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    border: 1px solid #dbe4f3;
    color: #334155;
    text-decoration: none;
    font-weight: 600;
    font-size: .9rem;
    background: #fff;
}
.pagination-custom a:hover {
    border-color: #2563eb;
    color: #2563eb;
}
.pagination-custom .active {
    background: #2563eb;
    border-color: #2563eb;
    color: #fff;
}
.pagination-custom .disabled {
    opacity: .45;
    pointer-events: none;
}

/* ---------- Halaman detail artikel ---------- */
.article-header {
    padding: 6.5rem 0 2rem;
    background: linear-gradient(150deg, #ffffff 0%, #f8fafc 100%);
}
.article-title {
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: -.6px;
    color: #0f172a;
}
.article-lead {
    font-size: 1.08rem;
    color: #475569;
    line-height: 1.7;
    max-width: 760px;
}
.article-byline {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .75rem 1.4rem;
    color: #64748b;
    font-size: .85rem;
    margin-top: 1.2rem;
}
.article-byline .author-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2563eb, #10b981);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}
.article-cover {
    border-radius: 1.5rem;
    overflow: hidden;
    margin-top: 2rem;
    box-shadow: 0 25px 50px -25px rgba(15, 23, 42, .4);
    background: linear-gradient(135deg, #2563eb, #10b981);
}
.article-cover img {
    width: 100%;
    height: auto;
    display: block;
}

/* ---------- Isi artikel (prose) ---------- */
.article-layout {
    padding: 3rem 0 4rem;
}
.article-content {
    font-size: 1.03rem;
    line-height: 1.85;
    color: #334155;
    overflow-wrap: break-word;
}
.article-content > *:first-child {
    margin-top: 0;
}
.article-content h2 {
    font-size: 1.6rem;
    font-weight: 800;
    color: #0f172a;
    margin: 2.4rem 0 1rem;
    line-height: 1.35;
    scroll-margin-top: 100px;
}
.article-content h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #0f172a;
    margin: 1.9rem 0 .8rem;
    line-height: 1.4;
    scroll-margin-top: 100px;
}
.article-content h4 {
    font-size: 1.08rem;
    font-weight: 700;
    margin: 1.5rem 0 .6rem;
}
.article-content p {
    margin-bottom: 1.15rem;
}
.article-content a {
    color: #1d4ed8;
    text-decoration: underline;
    text-underline-offset: 3px;
}
.article-content a:hover {
    color: #0f766e;
}
.article-content ul,
.article-content ol {
    padding-left: 1.4rem;
    margin-bottom: 1.3rem;
}
.article-content li {
    margin-bottom: .5rem;
}
.article-content li > ul,
.article-content li > ol {
    margin-top: .5rem;
    margin-bottom: .5rem;
}
.article-content blockquote {
    margin: 1.6rem 0;
    padding: 1rem 1.4rem;
    background: #f0f9ff;
    border-left: 4px solid #2563eb;
    border-radius: 0 .75rem .75rem 0;
    color: #1e3a8a;
    font-style: italic;
}
.article-content blockquote p:last-child {
    margin-bottom: 0;
}
.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 1rem;
    margin: 1.5rem 0;
    box-shadow: 0 12px 30px -18px rgba(15, 23, 42, .4);
}
.article-content hr {
    margin: 2.5rem 0;
    border-color: #e2e8f0;
}
.article-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    font-size: .95rem;
}
.article-content th,
.article-content td {
    border: 1px solid #e2e8f0;
    padding: .7rem .9rem;
    text-align: left;
    vertical-align: top;
}
.article-content th {
    background: #f1f5f9;
    font-weight: 700;
    color: #0f172a;
}
.article-content code {
    background: #f1f5f9;
    color: #be123c;
    padding: .15rem .4rem;
    border-radius: .35rem;
    font-size: .9em;
}
.article-content pre {
    background: #0f172a;
    color: #e2e8f0;
    padding: 1.2rem 1.4rem;
    border-radius: .9rem;
    overflow-x: auto;
    margin: 1.5rem 0;
    font-size: .88rem;
    line-height: 1.6;
}
.article-content pre code {
    background: none;
    color: inherit;
    padding: 0;
}
.article-content .table-responsive {
    overflow-x: auto;
}
.article-content iframe {
    max-width: 100%;
    border-radius: 1rem;
}

/* ---------- Daftar isi ---------- */
.toc-card {
    background: #fff;
    border: 1px solid #eef2ff;
    border-radius: 1.25rem;
    padding: 1.4rem 1.5rem;
    position: sticky;
    top: 100px;
    box-shadow: 0 15px 35px -28px rgba(15, 23, 42, .4);
}
.toc-card h2 {
    font-size: .82rem;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: #64748b;
    font-weight: 700;
    margin-bottom: .9rem;
}
.toc-card ol {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: .88rem;
}
.toc-card li {
    margin-bottom: .5rem;
    line-height: 1.45;
}
.toc-card li.toc-h3 {
    padding-left: 1rem;
    font-size: .83rem;
}
.toc-card a {
    color: #475569;
    text-decoration: none;
}
.toc-card a:hover {
    color: #2563eb;
}
/* Halaman layanan: dua kartu daftar (Artikel Terkait & Layanan Lainnya)
   berada setelah kartu CTA; jangan biarkan keduanya sticky di offset yang
   sama agar tidak saling menumpuk saat halaman digulir. */
.sidebar-cta ~ .toc-card {
    position: relative;
    top: auto;
}

/* ---------- Share & tag ---------- */
.share-box {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .6rem;
    padding: 1.2rem 1.4rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    margin-top: 2.5rem;
}
.share-box span {
    font-weight: 700;
    font-size: .88rem;
    color: #0f172a;
}
.share-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #fff;
    border: 0;
    transition: .2s;
}
.share-btn:hover {
    transform: translateY(-2px);
    color: #fff;
}
.share-btn.wa { background: #25d366; }
.share-btn.fb { background: #1877f2; }
.share-btn.x { background: #0f172a; }
.share-btn.copy { background: #64748b; cursor: pointer; }
.tag-pill {
    display: inline-block;
    background: #eef2ff;
    color: #1d4ed8;
    border-radius: 30px;
    padding: .35rem .9rem;
    font-size: .78rem;
    font-weight: 600;
    text-decoration: none;
    margin: 0 .3rem .4rem 0;
}
.tag-pill:hover {
    background: #2563eb;
    color: #fff;
}

/* Kartu konten utama halaman layanan: jangan ikut stretch.
   .feature-card punya height:100% (untuk kartu grid beranda); di dalam
   kolom col-lg-8 yang di-stretch Bootstrap dengan konten lain di
   bawahnya (artikel, FAQ, form penawaran), kartu ikut mengembang
   memenuhi seluruh tinggi kolom -> kotak kosong raksasa dan footer
   tampak melayang di tengah halaman. */
.col-lg-8 > .feature-card {
    height: auto;
}

/* ---------- Kartu sidebar CTA ---------- */.sidebar-cta {
    background: linear-gradient(145deg, #0a192f, #1e3a8a);
    color: #fff;
    border-radius: 1.25rem;
    padding: 1.6rem 1.5rem;
    margin-top: 1.5rem;
}
.sidebar-cta h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: .6rem;
}
.sidebar-cta p {
    font-size: .85rem;
    opacity: .8;
    line-height: 1.6;
}

/* ---------- Form penawaran (halaman layanan) ---------- */
#penawaran {
    scroll-margin-top: 90px;
}
.quote-card {
    background: #fff;
    border: 1px solid #eef2ff;
    border-radius: 1.25rem;
    padding: 1.8rem 1.6rem;
    box-shadow: 0 15px 35px -28px rgba(15, 23, 42, .4);
}
.quote-card .form-label {
    margin-bottom: .35rem;
}
.quote-card .form-control:focus {
    border-color: #93b4f8;
    box-shadow: 0 0 0 .2rem rgba(37, 99, 235, .12);
}

/* ---------- Halaman layanan "sedang dalam proses" ---------- */
.segera-card {
    background: #fff;
    border: 1px solid #eef2ff;
    border-radius: 2rem;
    padding: 3rem 2rem;
    box-shadow: 0 15px 35px -28px rgba(15, 23, 42, .4);
}
.segera-icon {
    position: relative;
    width: 88px;
    height: 88px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.4rem;
    color: #2563eb;
    background: linear-gradient(135deg, #eef2ff, #e0f2fe);
    border: 1px solid #dbe4f3;
    margin-bottom: 1.2rem;
}
.segera-dot {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #10b981;
    border: 3px solid #fff;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, .18);
}

/* ---------- Prev / next ---------- */
.post-nav {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1rem;
    margin-top: 2.5rem;
}
.post-nav a {
    display: block;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    padding: 1.1rem 1.25rem;
    text-decoration: none;
    color: #0f172a;
    transition: .2s;
}
.post-nav a:hover {
    border-color: #93b4f8;
    box-shadow: 0 15px 30px -22px rgba(15, 23, 42, .5);
}
.post-nav .dir {
    display: block;
    font-size: .75rem;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: #64748b;
    margin-bottom: .35rem;
}
.post-nav .ttl {
    font-weight: 700;
    font-size: .95rem;
    line-height: 1.45;
}

/* ---------- Bagian artikel di beranda ---------- */
.articles-home {
    padding: 4.5rem 0;
}

/* ---------- Responsif ---------- */
@media (max-width: 991.98px) {
    .toc-card {
        position: static;
        margin-bottom: 2rem;
    }
    .page-hero {
        padding: 4.5rem 0 2.5rem;
    }
}
@media (max-width: 575.98px) {
    .article-card-body {
        padding: 1.2rem;
    }
    .article-header {
        padding: 5.5rem 0 1.5rem;
    }
    .article-content {
        font-size: .98rem;
    }
    .share-box {
        justify-content: center;
    }
}
