/* ==========================================================================
   WMS Application - Blog & Module Explorer Stylesheet (PART 1 OF 3)
   ========================================================================== */
    blog.css
/* --- 1. Pengaturan Jarak Header / Breadcrumbs (Sangat Rapat) --- */
.blog-breadcrumbs {
    padding: 35px 0 15px 0 !important;
    background: #2042e3;
    border-bottom: 1px solid #eee;
}

.blog-breadcrumbs p {
    margin-bottom: 0 !important;
}

/* --- 2. Pengaturan Jarak Area Kartu Modul --- */
.blog-module-section {
    padding: 20px 0 20px 0 !important; 
    background: #fff;
    min-height: calc(100vh - 150px); 
}

/* --- 3. Gaya Komponen Utama Kartu Modul (Modern Clean Layout) --- */
.single-news {
    border: 1px solid #eee;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    height: 100%;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    display: flex;
    flex-direction: column;
}

/* Kepala Kartu - Gambar Di-stretch Penuh Sesuai Ukuran Boks */
.news-head {
    height: 190px; 
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background-size: 100% 100% !important; 
    background-position: center center !important;
    background-repeat: no-repeat !important;
    overflow: hidden;
    z-index: 1;
    transition: all 0.4s ease;
}

/* Lapisan Overlay Dinamis Saat Kartu Ditunjuk Kursor (Hover) */
.news-head::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(26, 29, 46, 0); 
    z-index: 1;
    transition: all 0.4s ease;
}

.news-head .badge {
    position: absolute;
    bottom: 15px;
    left: 20px;
    color: #fff;
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    z-index: 2;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

/* Bagian Badan/Konten Kartu */
.news-body {
    padding: 30px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.news-body .meta {
    font-size: 12px;
    color: #888d9e;
    margin-bottom: 10px;
}

.news-body h4 {
    margin-bottom: 15px;
    font-size: 20px;
    font-weight: 700;
}

.news-body h4 a {
    color: #1a1d2e;
    transition: color 0.2s ease;
    text-decoration: none;
}

.news-body p {
    color: #61667d;
    font-size: 14px;
    line-height: 24px;
    margin-bottom: 0;
}

.read-more {
    display: inline-block;
    margin-top: 20px;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.2s ease;
}

/* ==========================================================================
   WMS Application - Blog & Module Explorer Stylesheet (PART 2 OF 3)
   ========================================================================== */

/* --- 4. Variasi Warna Otomatis Berdasarkan Kategori Modul --- */
.procurement .badge { background: #5830e0; }
.procurement .read-more { color: #5830e0; }

.distribution .badge { background: #a855f7; }
.distribution .read-more { color: #a855f7; }

.retail .badge { background: #10b981; }
.retail .read-more { color: #10b981; }

.inventory .badge { background: #f97316; }
.inventory .read-more { color: #f97316; }

.user-management .badge { background: #db2777; }
.user-management .read-more { color: #db2777; }

.sapa-kasir .badge { background: #83c724; }
.sapa-kasir .read-more { color: #83c724; }

/* --- 5. Efek Transisi Animasi Hover Interaktif Pada Daftar Kartu --- */
.shadow-hover:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 35px rgba(26, 29, 46, 0.05);
}

.shadow-hover:hover .news-head {
    transform: scale(1.01);
}

.procurement.shadow-hover:hover { border-color: #5830e0 !important; }
.procurement.shadow-hover:hover h4 a { color: #5830e0 !important; }
.procurement.shadow-hover:hover .news-head::before { background: rgba(88, 48, 224, 0.25); }

.distribution.shadow-hover:hover { border-color: #a855f7 !important; }
.distribution.shadow-hover:hover h4 a { color: #a855f7 !important; }
.distribution.shadow-hover:hover .news-head::before { background: rgba(168, 85, 247, 0.25); }

.retail.shadow-hover:hover { border-color: #10b981 !important; }
.retail.shadow-hover:hover h4 a { color: #10b981 !important; }
.retail.shadow-hover:hover .news-head::before { background: rgba(16, 185, 129, 0.25); }

.inventory.shadow-hover:hover { border-color: #f97316 !important; }
.inventory.shadow-hover:hover h4 a { color: #f97316 !important; }
.inventory.shadow-hover:hover .news-head::before { background: rgba(249, 115, 22, 0.25); }

.user-management.shadow-hover:hover { border-color: #db2777 !important; }
.user-management.shadow-hover:hover h4 a { color: #db2777 !important; }
.user-management.shadow-hover:hover .news-head::before { background: rgba(219, 39, 119, 0.25); }

.sapa-kasir.shadow-hover:hover { border-color: #83c724 !important; }
.sapa-kasir.shadow-hover:hover h4 a { color: #83c724 !important; }
.sapa-kasir.shadow-hover:hover .news-head::before { background: rgba(1, 95, 6, 0.25); }

/* ==========================================================================
   WMS Application - Blog & Module Explorer Stylesheet (PART 3 OF 3)
   ========================================================================== */

/* --- 6. WMS Split Flowchart Style Layout (2 Bagian - No Scroll) --- */
.wms-split-flow-container {
    background: #eef2ff;
    padding: 35px 30px;
    border-radius: 16px;
    margin: 25px 0 45px 0;
    border: 1px solid #dbeafe;
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100% !important;
    overflow: hidden !important;
}

.wms-split-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.flow-split-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 18px 10px;
    text-align: center;
    width: 27% !important; /* Lebar 27% mengunci 3 boks atas agar tidak berdesakan */
    box-shadow: 0 4px 15px rgba(26, 29, 46, 0.02);
    border: 1px solid #eaeaea;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    flex-shrink: 0;
}

.flow-split-card .card-icon {
    font-size: 28px;
    color: #5830e0;
    margin-bottom: 6px;
}

.flow-split-card h5 {
    font-size: 14px;
    font-weight: 700;
    color: #1a1d2e;
    margin-bottom: 4px;
    white-space: nowrap;
}

.flow-split-card p {
    font-size: 12px;
    color: #61667d;
    margin-bottom: 0;
    font-weight: 500;
    white-space: nowrap;
}

.highlight-step {
    border-color: #5830e0;
}
.highlight-step .card-icon {
    color: #db2777;
}

.flow-split-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 2px;
    background: #cbd5e1;
    position: relative;
    flex-grow: 1;
    margin: 0 12px;
}

.flow-split-arrow::after {
    content: '';
    position: absolute;
    right: -2px;
    width: 6px;
    height: 6px;
    border-top: 2px solid #cbd5e1;
    border-right: 2px solid #cbd5e1;
    transform: rotate(45deg);
}

.wms-row-divider {
    width: 100%;
    height: 1px;
    border-top: 1px dashed #cbd5e1;
    margin: 10px 0;
}

.flow-split-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 25px rgba(88, 48, 224, 0.08);
    border-color: #5830e0;
}

/* --- 7. Stylesheet Khusus untuk Halaman Detail (blog-detail.php) --- */
.blog-inner-page { 
    padding: 80px 0 60px 0 !important; 
    background: #fff; 
    min-height: calc(100vh - 250px); 
}

.detail-meta { margin-bottom: 25px; display: flex; align-items: center; }
.detail-badge { color: #fff; padding: 6px 16px; border-radius: 20px; font-size: 12px; font-weight: 600; margin-right: 15px; }
.detail-time { color: #888d9e; font-size: 14px; }
.detail-title { font-size: 32px; font-weight: 700; color: #1a1d2e; line-height: 44px; margin-bottom: 30px; }
.detail-thumb-box { height: 450px; background-size: 100% 100% !important; background-position: center !important; background-repeat: no-repeat !important; border-radius: 12px; display: flex; align-items: center; justify-content: center; margin-bottom: 40px; }
.detail-article-body { color: #4b5563; font-size: 16px; line-height: 28px; }
.detail-article-body p { margin-bottom: 20px; text-align: justify; }
.back-to-blog-footer { margin-top: 50px; padding-top: 30px; border-top: 1px solid #eee; }
.back-to-blog-footer a { color: #5830e0; font-weight: 600; text-decoration: none; font-size: 15px; transition: color 0.2s; }
.back-to-blog-footer a:hover { color: #1a1d2e; }

.procurement-badge { background: #5830e0; }
.distribution-badge { background: #a855f7; }
.retail-badge { background: #10b981; }
.inventory-badge { background: #f97316; }
.user-badge { background: #db2777; }

/* --- 8. Gaya Dokumentasi Langkah Vertikal (Timeline) --- */
.wms-timeline-container {
    position: relative;
    padding-left: 30px;
    margin: 30px 0;
    border-left: 3px dashed #eee;
}

.timeline-step { position: relative; margin-bottom: 30px; }
.timeline-step:last-child { margin-bottom: 0; }
.step-number-box {
    position: absolute; left: -47px; top: 0; width: 32px; height: 32px; border-radius: 50%;
    background: #5830e0; color: #fff; font-weight: 700; text-align: center;
    line-height: 32px; font-size: 14px; box-shadow: 0 4px 10px rgba(88, 48, 224, 0.2); z-index: 2; transition: all 0.3s ease;
}
.step-content-box { background: #f9fafb; padding: 20px; border-radius: 8px; border: 1px solid #eee; transition: all 0.3s ease; }
.step-content-box h5 { font-size: 16px; font-weight: 700; color: #1a1d2e; margin-bottom: 6px; }
.step-content-box p { font-size: 13px; color: #61667d; line-height: 20px; margin-bottom: 0; }
.timeline-step:hover .step-number-box { background: #2042e3; transform: scale(1.1); }
.timeline-step:hover .step-content-box { border-color: #2042e3; background: #fff; box-shadow: 0 10px 25px rgba(32, 66, 227, 0.05); }

/* Adaptasi Responsif Layar HP Sempit */
@media (max-width: 576px) {
    .wms-split-row { flex-direction: column; gap: 15px; }
    .flow-split-card { width: 100% !important; }
    .flow-split-arrow { width: 2px; height: 15px; margin: 5px 0; }
    .flow-split-arrow::after { transform: rotate(135deg); bottom: -2px; right: -2px; }
}
