/* ═══════════════════════════════════════════
   HALAMAN STATIS - halaman-statis-show.css
   Layout: 2-column with right sidebar (col-lg-8 + col-lg-4)
   ═══════════════════════════════════════════ */

/* ── Main Wrapper ── */
.halaman-statis-section {
    background: #f8fafc;
}

.halaman-statis-wrapper {
    background: #fff;
    border-radius: 16px;
    box-shadow:
        0 4px 24px rgba(0, 0, 0, 0.05),
        0 1px 4px rgba(0, 0, 0, 0.03);
    padding: 48px 56px;
    position: relative;
}

/* ── Featured Image ── */
.halaman-featured-image {
    margin: -48px -56px 36px;
    overflow: hidden;
    border-radius: 16px 16px 0 0;
}

.halaman-featured-image img {
    width: 100%;
    max-height: 420px;
    object-fit: cover;
    display: block;
    border-radius: 0;
}

/* ── Actions Top (Print) ── */
.halaman-actions-top {
    display: flex;
    align-items: center;
    gap: 12px;
}

.btn-print {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #fff;
    color: #475569;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-print:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
    color: #1e293b;
}

/* ── Content Body ── */
.halaman-content {
    font-size: 1rem;
    line-height: 1.85;
    color: #334155;
}

.halaman-content h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #0f172a;
    margin: 2.5rem 0 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e2e8f0;
}

.halaman-content h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #1e293b;
    margin: 2rem 0 0.75rem;
}

.halaman-content h4 {
    font-size: 1.05rem;
    font-weight: 600;
    color: #334155;
    margin: 1.5rem 0 0.5rem;
}

.halaman-content p {
    margin-bottom: 1rem;
    text-align: justify;
}

.halaman-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1.5rem 0;
}

.halaman-content blockquote {
    border-left: 4px solid #0369a1;
    background: #f0f9ff;
    padding: 16px 20px;
    margin: 1.5rem 0;
    border-radius: 0 8px 8px 0;
    font-style: italic;
    color: #475569;
}

.halaman-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    font-size: 0.9rem;
}

.halaman-content table th,
.halaman-content table td {
    border: 1px solid #e2e8f0;
    padding: 10px 14px;
    text-align: left;
}

.halaman-content table th {
    background: #f1f5f9;
    font-weight: 600;
    color: #1e293b;
}

.halaman-content table tr:hover td {
    background: #f8fafc;
}

.halaman-content ul,
.halaman-content ol {
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}

.halaman-content li {
    margin-bottom: 0.4rem;
}

/* ── Sidebar ── */
.halaman-sidebar {
    position: sticky;
    top: 100px;
}

.halaman-sidebar .sidebar-widget {
    background: #fff;
    border-radius: 12px;
    box-shadow:
        0 2px 12px rgba(0, 0, 0, 0.04),
        0 1px 3px rgba(0, 0, 0, 0.03);
    padding: 20px 24px;
    margin-bottom: 20px;
    border: 1px solid #f1f5f9;
}

.halaman-sidebar .widget-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e2e8f0;
}

/* ── TOC Sidebar ── */
.halaman-toc-sidebar {
    position: relative;
}

.halaman-toc-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.halaman-toc-header h6 {
    font-size: 0.85rem;
    font-weight: 600;
    color: #475569;
    margin: 0;
}

.halaman-toc-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.halaman-toc-nav ul li {
    padding: 6px 0;
    border-bottom: 1px dashed #e2e8f0;
}

.halaman-toc-nav ul li:last-child {
    border-bottom: none;
}

.halaman-toc-nav ul li a {
    color: #0369a1;
    text-decoration: none;
    font-size: 0.82rem;
    transition: color 0.2s;
}

.halaman-toc-nav ul li a:hover {
    color: #0c4a6e;
    text-decoration: underline;
}

.halaman-toc-nav ul li a.active {
    color: #0c4a6e;
    font-weight: 600;
}

.halaman-toc-nav ul li.toc-sub {
    padding-left: 16px;
}

.halaman-toc-nav ul li.toc-sub a {
    font-size: 0.78rem;
    color: #64748b;
}

/* ── Sidebar Related Pages ── */
.sidebar-related-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.sidebar-related-item {
    display: block;
    padding: 12px 14px;
    background: #f8fafc;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s;
}

.sidebar-related-item:hover {
    border-color: #0369a1;
    box-shadow: 0 2px 8px rgba(3, 105, 161, 0.1);
    text-decoration: none;
    color: inherit;
    transform: translateY(-1px);
}

.sidebar-related-title {
    font-size: 0.82rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 3px;
}

.sidebar-related-desc {
    font-size: 0.75rem;
    color: #64748b;
    line-height: 1.4;
}

/* ── Sidebar Post List (Berita Terbaru) ── */
.sidebar-post-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.sidebar-post-item {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    text-decoration: none;
    color: inherit;
    padding: 8px;
    border-radius: 8px;
    transition: background 0.2s;
}

.sidebar-post-item:hover {
    background: #f8fafc;
    text-decoration: none;
    color: inherit;
}

.sidebar-post-item .post-thumb {
    width: 56px;
    height: 56px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
}

.sidebar-post-item .post-info {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

.sidebar-post-item .post-title {
    font-size: 0.82rem;
    font-weight: 500;
    color: #1e293b;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.sidebar-post-item .post-info small {
    font-size: 0.72rem;
}

/* ── Print Styles ── */
@media print {
    .halaman-sidebar,
    .share-floating,
    .halaman-actions-top,
    header,
    footer,
    nav {
        display: none !important;
    }

    .halaman-statis-wrapper {
        box-shadow: none;
        padding: 0;
    }

    .col-lg-8 {
        width: 100% !important;
        flex: 0 0 100% !important;
        max-width: 100% !important;
    }

    .halaman-content {
        font-size: 12pt;
    }
}

/* ── Responsive ── */
@media (max-width: 991px) {
    .halaman-statis-wrapper {
        padding: 36px 32px;
    }

    .halaman-featured-image {
        margin: -36px -32px 28px;
    }

    .halaman-sidebar {
        position: static;
    }
}

@media (max-width: 767px) {
    .halaman-statis-wrapper {
        padding: 24px 18px;
        border-radius: 12px;
    }

    .halaman-featured-image {
        margin: -24px -18px 20px;
        border-radius: 12px 12px 0 0;
    }

    .halaman-featured-image img {
        max-height: 220px;
    }

    .halaman-content h2 {
        font-size: 1.25rem;
    }

    .halaman-content h3 {
        font-size: 1.05rem;
    }
}
