:root {
    --primary-color: #e63946;
    /* Merah WP */
    --primary-dark: #c12b36;
    --text-dark: #1a1a1a;
    --text-gray: #6c757d;
    --bg-light: #f4f6f9;
    --footer-bg: #22242b;
    --accent-green: #5db99c;
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    color: var(--text-dark);
    line-height: 1.7;
    background-color: var(--bg-light);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Plus Jakarta Sans', sans-serif;
}


/* Hero Section */
.hero-section {
    position: relative;
    padding: 220px 0 180px;
    /* Padding bawah dilebarkan untuk efek overlap */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    text-align: center;
    background-attachment: fixed;
    /* Parallax effect */
}

/* Gradient Overlay: Dark to Subtle Red */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.5) 0%, rgba(20, 20, 20, 0.4) 40%, rgba(230, 57, 70, 0.65) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.badge-category {
    background-color: var(--primary-color);
    color: #fff;
    padding: 8px 24px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    font-family: 'Plus Jakarta Sans', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 30px;
    display: inline-block;
    box-shadow: 0 4px 15px rgba(230, 57, 70, 0.3);
}

.hero-title {
    color: #fff;
    font-size: 48px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 35px;
    max-width: 950px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

/* Content Card (Overlap Effect) */
.article-container {
    position: relative;
    z-index: 10;
    margin-top: -100px;
    /* Menarik konten ke atas hero */
    padding-bottom: 80px;
}

.content-card {
    background: #fff;
    border-radius: 20px;
    padding: 60px 50px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08);
}

.meta-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 30px;
    margin-bottom: 40px;
    border-bottom: 1px solid #eaeaea;
    flex-wrap: wrap;
    gap: 20px;
}

.meta-author {
    display: flex;
    align-items: center;
    gap: 15px;
}

.meta-author img {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    object-fit: cover;
}

.meta-author-info h6 {
    margin: 0;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 15px;
    font-weight: 700;
    color: var(--text-dark);
}

.meta-author-info span {
    font-size: 13px;
    color: var(--text-gray);
}

.meta-stats {
    display: flex;
    gap: 25px;
    color: var(--text-gray);
    font-size: 14px;
    font-weight: 500;
}

.meta-stats i {
    color: var(--primary-color);
    margin-right: 6px;
}

/* Blog Content */
.blog-content {
    font-size: 17px;
    line-height: 1.9;
    color: #4a4a4a;
}

.blog-content h2,
.blog-content h3,
.blog-content h4 {
    color: var(--text-dark);
    margin-top: 45px;
    margin-bottom: 20px;
}

.blog-content img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 40px 0;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.blog-content p {
    margin-bottom: 25px;
}

.blog-content blockquote {
    border-left: 4px solid var(--primary-color);
    padding: 20px 30px;
    margin: 40px 0;
    background: #fdf5f6;
    border-radius: 0 12px 12px 0;
    font-style: italic;
    font-size: 19px;
    color: var(--text-dark);
}

/* Download Box Stylings */
.download-box {
    background-color: #f8f9fa;
    border-left: 4px solid var(--primary-color);
    transition: all 0.3s ease;
}

.download-box:hover {
    background-color: #f1f3f5;
    transform: translateY(-2px);
}

/* Container Sticky Utama */
.sidebar-sticky {
    position: sticky;
    top: 110px;
    z-index: 5;
    height: fit-content;
}

/* Outer Card Container */
.sidebar-card {
    background: #ffffff;
    border-radius: 24px;
    padding: 32px 24px;
    border: 1px solid #f1f5f9;
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.02);
}

/* Judul Utama */
.sidebar-title {
    font-size: 18px;
    font-weight: 700;
    color: #0f172a;
    position: relative;
    padding-bottom: 12px;
    margin-bottom: 24px;
    border-bottom: 1px solid #f1f5f9;
}

.sidebar-title::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 45px;
    height: 2.5px;
    background-color: #b31924;
    border-radius: 2px;
}

/* CARD ITEM - Gradient & Tint Background */
.pejabat-card-item {
    background: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 20px;
    margin-bottom: 16px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Hover Effect: Memberikan efek glow hangat bernuansa merah brand */
.pejabat-card-item:hover {
    border-color: rgba(179, 25, 36, 0.2);
    background: #ffffff;
    transform: translateY(-3px);
    box-shadow: 0 14px 30px rgba(179, 25, 36, 0.06);
}

/* Avatar Profil dengan Border Ring Tipis */
.pejabat-avatar-wrapper {
    flex-shrink: 0;
    position: relative;
}

.pejabat-avatar-img {
    width: 64px;
    height: 64px;
    object-fit: cover;
    border-radius: 16px;
    border: 2px solid #ffffff;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
}

/* Hirarki Nama */
.pejabat-meta-info .pejabat-name {
    color: #0f172a;
    font-size: 16.5px;
    font-weight: 700;
    margin-bottom: 6px;
    line-height: 1.3;
    transition: color 0.2s ease;
}

.pejabat-card-item:hover .pejabat-name {
    color: #b31924;
}

/* Role Badge Berwarna (Pill Style) */
.pejabat-role-badge {
    display: inline-block;
    font-size: 11px;
    color: #b31924;
    background-color: rgba(179, 25, 36, 0.07);
    /* Warna merah transparan yang soft */
    padding: 4px 10px;
    border-radius: 8px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Blok Kontak */
.pejabat-contact-box {
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px dashed #e2e8f0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.contact-info-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 13.5px;
    min-width: 0;
}

/* Kapsul Pelindung Ikon (Memberikan Pop-of-Color) */
.icon-capsule {
    width: 28px;
    height: 28px;
    background-color: #f1f5f9;
    /* Default abu-abu terang */
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.25s ease;
}

.icon-capsule i {
    font-size: 13px;
    color: #64748b;
    transition: all 0.25s ease;
}

/* Interaksi Warna Saat Card Didekati */
.pejabat-card-item:hover .icon-capsule {
    background-color: #b319231a;
    /* Berubah menjadi solid merah brand */
}

.pejabat-card-item:hover .icon-capsule i {
    color: #b31924;
    /* Ikon menjadi putih bersih */
}

/* Teks dan Link Kontak */
.contact-text,
.contact-link {
    color: #475569;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.contact-link:hover {
    color: #b31924;
    text-decoration: underline;
}

/* Tags & Share */
.tags-share-box {
    border-top: 1px solid #eaeaea;
    padding: 35px 0 0;
    margin: 50px 0 40px;
}

.tag-cloud {
    display: inline-block;
    padding: 8px 20px;
    background: #f8f9fa;
    border: 1px solid #eaeaea;
    border-radius: 50px;
    color: #555;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    margin: 0 8px 8px 0;
    transition: all 0.3s ease;
}

.tag-cloud:hover {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.share-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #f8f9fa;
    color: var(--text-dark);
    margin-left: 10px;
    font-size: 16px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.share-icon:hover {
    background: var(--primary-color);
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(230, 57, 70, 0.3);
}

/* Author Box Bottom */
.author-box {
    background: #f8f9fc;
    border-radius: 16px;
    padding: 35px;
    display: flex;
    align-items: center;
    border-left: 5px solid var(--primary-color);
}

.author-box h5 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 18px;
    margin-bottom: 8px;
}

/* Related Articles Section */
.related-section {
    background-color: #fff;
    padding: 90px 0;
    border-top: 1px solid #eaeaea;
}

.section-subtitle {
    color: var(--accent-green);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 12px;
    display: block;
    text-align: center;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

.section-title {
    text-align: center;
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 60px;
    color: var(--text-dark);
}


.insights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
}

.insight-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    border: 1px solid rgba(0, 0, 0, 0.05);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.insight-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border-color: rgba(237, 28, 36, 0.1);
}

.insight-image {
    position: relative;
    height: 260px;
    overflow: hidden;
    background-color: #f8f9fa;
}

.insight-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s ease;
}

.insight-card:hover .insight-image img {
    transform: scale(1.1);
}

.insight-content {
    padding: 30px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.insight-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.insight-meta .tag {
    background-color: rgba(237, 28, 36, 0.08);
    color: #ed1c24;
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.insight-meta .date {
    color: #999;
    font-size: 13px;
}

.insight-content h3 {
    font-size: 20px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 20px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.read-more {
    margin-top: auto;
    color: #1a1a1a;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: gap 0.3s ease;
}


@media (max-width: 991px) {
    .hero-section {
        padding: 180px 0 120px;
    }

    .hero-title {
        font-size: 36px;
    }

    .content-card {
        padding: 40px 30px;
    }

    .article-container {
        margin-top: -60px;
    }

    .sidebar-sticky {
        position: static;
        margin-top: 40px;
    }
}

@media (max-width: 767px) {
    .hero-title {
        font-size: 28px;
    }

    .navbar-collapse {
        background: rgba(26, 26, 26, 0.98);
        padding: 20px;
        border-radius: 12px;
        margin-top: 15px;
    }

    .meta-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .tags-share-box {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 20px;
    }
}

/* =========================
           FOOTER
        ========================= */
#footer {
    background-color: #2a2a35;
    color: #989898;
    padding: 80px 0 40px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    gap: 60px;
    margin-bottom: 60px;
}

.footer-brand {
    flex: 1;
    max-width: 400px;
}

.footer-desc {
    margin-bottom: 30px;
    font-size: 14px;
}

.social-links {
    display: flex;
    gap: 16px;
}

.social-icon {
    width: 60px;
    height: 60px;
    background-color: #353543;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s;
}

.social-icon:hover {
    background-color: var(--primary-color);
}

.footer-links {
    flex: 1;
    display: flex;
    justify-content: space-between;
    gap: 40px;
}

.link-column h4 {
    color: #c7c7c7;
    font-size: 16px;
    margin-bottom: 24px;
}

.link-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.link-column li {
    margin-bottom: 16px;
}

.link-column a {
    font-size: 14px;
    transition: color 0.3s;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #989898;
}

.link-column a:hover {
    color: white;
}

.footer-bottom {
    text-align: center;
}

.divider {
    height: 1px;
    background-color: #404040;
    margin-bottom: 30px;
}

.footer-bottom p {
    color: #626262;
    font-size: 14px;
}

/* RESPONSIVE */
@media (max-width: 992px) {
    .detail-grid {
        flex-direction: column-reverse;
        gap: 50px;
    }

    .detail-image-box {
        margin: 0 auto;
        width: 100%;
        max-width: 320px;
    }
}

@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
    }

    .footer-links {
        flex-wrap: wrap;
    }

    .hero-detail h1 {
        font-size: 36px;
    }

    .detail-image-box::before {
        right: -15px;
        bottom: -15px;
    }
}

/* Kotak Utama Pembungkus */
.clean-download-box {
    background-color: #ffffff;
    border: 1px solid #e9ecef;
    border-radius: 16px;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    /* Kunci otomatis responsif: melorot jika kesempitan */
    gap: 20px;
    box-shadow: 0 .125rem .25rem rgba(0, 0, 0, .075);
}

/* Sisi Kiri: Gabungan Ikon & Teks */
.clean-download-left {
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 1;
    min-width: 280px;
    /* Menjaga teks tidak tergencet habis */
}

/* Deskripsi Teks */
.clean-download-text p {
    color: #6c757d;
    margin: 0;
    font-size: 0.875rem;
    line-height: 1.4;
}

/* Mengatur Baris Baru (<br>) Hanya Aktif di Layar Lebar */
.br-desktop {
    display: block;
}

/* Sisi Kanan: Tombol Merah */
.clean-download-right {
    flex-shrink: 0;
}

.clean-btn-red {
    background-color: #dc3545;
    color: #ffffff;
    padding: 10px 28px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    white-space: text-nowrap;
    /* Mencegah teks tombol pecah jadi 2 baris */
    box-shadow: 0 2px 4px rgba(220, 53, 69, 0.2);
    transition: background-color 0.2s ease;
}

.clean-btn-red:hover {
    background-color: #bb2d3b;
    color: #ffffff;
}

/* Otomatisasi Khusus Layar HP/Mobile Sempit */
@media (max-width: 576px) {
    .clean-download-box {
        flex-direction: column;
        align-items: stretch;
        /* Tombol otomatis full-width di HP */
        padding: 16px;
    }

    .clean-download-right {
        width: 100%;
    }

    .clean-btn-red {
        width: 100%;
    }

    .br-desktop {
        display: none;
        /* Hilangkan <br> di HP agar text mengalir normal */
    }
}

/* Kotak Utama Pembungkus */
.clean-download-box {
    background-color: #ffffff;
    border: 1px solid #eef1f6;
    border-radius: 16px;
    padding: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    transition: all 0.3s ease;
}

/* Modifikasi Khusus untuk Multi-File Box */
.clean-download-box.multi-file-box {
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    padding: 24px;
}

/* Sisi Kiri: Gabungan Ikon & Teks */
.clean-download-left {
    display: flex;
    align-items: center;
    gap: 18px;
    flex: 1;
    min-width: 280px;
}

/* Deskripsi Teks */
.clean-download-text p {
    color: #7a869a;
    margin: 0;
    font-size: 0.875rem;
    line-height: 1.5;
}

/* Mengatur Baris Baru (<br>) Hanya Aktif di Layar Lebar */
.br-desktop {
    display: block;
}

/* Sisi Kanan: Tombol Merah */
.clean-download-right {
    flex-shrink: 0;
}

.clean-btn-red {
    background-color: #dc3545;
    color: #ffffff;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.938rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.2);
    transition: all 0.2s ease-in-out;
}

.clean-btn-red:hover {
    background-color: #bd2130;
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 6px 15px rgba(220, 53, 69, 0.3);
}

/* List Item Dokumen */
.clean-download-list {
    width: 100%;
}

.clean-file-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    background-color: #f8fafc;
    border: 1px solid #f1f5f9;
    border-radius: 12px;
    gap: 15px;
    transition: all 0.2s ease-in-out;
}

.clean-file-item:hover {
    background-color: #ffffff;
    border-color: #e2e8f0;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

.clean-file-info {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
    flex: 1;
}

.clean-file-name {
    font-size: 0.875rem;
    color: #1e293b;
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Tombol Kecil List Item */
.clean-btn-download-sm {
    background-color: #ffffff;
    color: #dc3545;
    border: 1px solid #e2e8f0;
    padding: 8px 18px;
    border-radius: 50px;
    font-size: 0.813rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.clean-btn-download-sm:hover {
    background-color: #dc3545;
    color: #ffffff;
    border-color: #dc3545;
}

/* Otomatisasi Khusus Layar HP/Mobile Sempit */
@media (max-width: 576px) {
    .clean-download-box {
        padding: 20px;
    }

    .clean-download-box:not(.multi-file-box) {
        flex-direction: column;
        align-items: stretch;
    }

    .clean-download-right,
    .clean-btn-red {
        width: 100%;
    }

    .br-desktop {
        display: none;
    }
}

@media (max-width: 480px) {
    .clean-file-item {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        padding: 16px;
    }

    .clean-file-info {
        width: 100%;
    }

    .clean-btn-download-sm {
        width: 100%;
        justify-content: center;
    }
}