/* =======================================================
   Dynamic Page Styles (Portal Standard with CSS Variables)
   Supports Light Mode & Standard Dark Mode
   ======================================================= */

.page-dynamic-wrapper {
    margin-top: 1.5rem;
    margin-bottom: 3.5rem;
}

/* =======================================================
   1. Breadcrumbs Bar
   ======================================================= */
.page-breadcrumbs {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 0.88rem;
    color: #64748b;
    padding: 12px 18px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    margin-bottom: 24px;
    transition: background 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}
.page-breadcrumbs a {
    color: #64748b;
    text-decoration: none;
    transition: color 0.2s;
    font-weight: 600;
}
.page-breadcrumbs a:hover {
    color: var(--primary, #e31e24);
}
.page-breadcrumbs .divider {
    color: #cbd5e1;
    font-size: 0.75rem;
}
.page-breadcrumbs .current {
    color: #0f172a;
    font-weight: 700;
}

/* =======================================================
   2. Main Grid Layout
   ======================================================= */
.page-layout-grid {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 30px;
    align-items: start;
}

/* =======================================================
   3. Page Article Card
   ======================================================= */
.page-card-main {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 36px 40px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.page-header-section {
    margin-bottom: 25px;
}
.page-verified-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #eff6ff;
    color: #2563eb;
    font-size: 0.78rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 20px;
    letter-spacing: 0.3px;
    margin-bottom: 12px;
    text-transform: uppercase;
    transition: all 0.25s ease;
}
.page-main-title {
    font-size: 2.3rem;
    font-weight: 800;
    line-height: 1.25;
    color: #0f172a;
    margin: 0 0 10px 0;
    letter-spacing: -0.5px;
    transition: color 0.3s ease;
}
.page-main-tagline {
    font-size: 1.05rem;
    color: var(--primary, #e31e24);
    font-weight: 600;
    margin: 0 0 20px 0;
}

/* =======================================================
   4. Meta Bar & Social Share
   ======================================================= */
.page-meta-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    padding: 14px 0;
    border-top: 1px solid #f1f5f9;
    border-bottom: 1px solid #f1f5f9;
    margin-bottom: 30px;
    font-size: 0.85rem;
    color: #64748b;
    transition: border-color 0.3s ease, color 0.3s ease;
}
.page-meta-left {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}
.page-meta-left span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.page-share-bar {
    display: flex;
    align-items: center;
    gap: 8px;
}
.share-btn-round {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    color: #ffffff;
    font-size: 0.88rem;
    text-decoration: none;
    transition: transform 0.2s, opacity 0.2s;
}
.share-btn-round:hover {
    transform: translateY(-2px);
    opacity: 0.9;
    color: #ffffff;
}
.share-wa   { background: #25d366; }
.share-fb   { background: #1877f2; }
.share-tw   { background: #000000; }
.share-copy { background: #64748b; cursor: pointer; border: none; }

/* =======================================================
   5. Content Typography
   ======================================================= */
.page-body-content {
    line-height: 1.85;
    color: #334155;
    font-size: 1.05rem;
    transition: color 0.3s ease;
}
.page-body-content p {
    margin-bottom: 1.3rem;
}
.page-body-content h1,
.page-body-content h2, 
.page-body-content h3, 
.page-body-content h4,
.page-body-content h5,
.page-body-content h6 {
    color: #0f172a;
    font-weight: 700;
    margin-top: 2rem;
    margin-bottom: 1rem;
    border-left: 4px solid var(--primary, #e31e24);
    padding-left: 12px;
    transition: color 0.3s ease;
}
.page-body-content ul, 
.page-body-content ol {
    margin-bottom: 1.5rem;
    padding-left: 24px;
}
.page-body-content li {
    margin-bottom: 8px;
}
.page-body-content strong,
.page-body-content b {
    color: #0f172a;
}
.page-body-content a {
    color: var(--primary, #e31e24);
    text-decoration: underline;
    transition: color 0.2s;
}
.page-body-content a:hover {
    color: #b91c1c;
}
.page-body-content blockquote {
    background: #f8fafc;
    border-left: 4px solid var(--primary, #e31e24);
    padding: 16px 20px;
    border-radius: 0 12px 12px 0;
    margin: 1.5rem 0;
    font-style: italic;
    color: #475569;
    transition: background 0.3s ease, color 0.3s ease;
}
.page-body-content code {
    background: #f1f5f9;
    color: #e11d48;
    padding: 2px 7px;
    border-radius: 6px;
    font-size: 0.9em;
    font-family: SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}
.page-body-content pre {
    background: #0f172a;
    color: #f8fafc;
    padding: 16px 20px;
    border-radius: 12px;
    overflow-x: auto;
    font-size: 0.92rem;
    line-height: 1.6;
    margin: 1.5rem 0;
}
.page-body-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
}
.page-body-content th,
.page-body-content td {
    padding: 12px 16px;
    border: 1px solid #e2e8f0;
    text-align: left;
}
.page-body-content th {
    background: #f8fafc;
    font-weight: 700;
    color: #0f172a;
}

/* =======================================================
   6. Sidebar Widgets
   ======================================================= */
.page-sidebar-widget {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
    transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.widget-heading {
    font-size: 1.05rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 2px solid #f1f5f9;
    padding-bottom: 12px;
    transition: color 0.3s ease, border-color 0.3s ease;
}
.widget-heading i {
    color: var(--primary, #e31e24);
}

/* Sidebar Page Links List */
.sidebar-page-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.sidebar-page-item {
    margin-bottom: 6px;
}
.sidebar-page-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    border-radius: 10px;
    color: #475569;
    text-decoration: none;
    font-size: 0.92rem;
    font-weight: 600;
    transition: all 0.2s ease;
    background: #ffffff;
    border: 1px solid transparent;
}
.sidebar-page-link:hover {
    background: #f8fafc;
    color: var(--primary, #e31e24);
    border-color: #e2e8f0;
    padding-left: 18px;
}
.sidebar-page-link.active {
    background: #fef2f2;
    color: var(--primary, #e31e24);
    font-weight: 700;
    border-color: #fecaca;
}

/* Quick Contact Card inside Sidebar */
.quick-contact-box {
    background: linear-gradient(145deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 12px;
    padding: 18px;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}
.quick-contact-item {
    display: flex;
    gap: 12px;
    margin-bottom: 14px;
    font-size: 0.88rem;
    color: #334155;
    line-height: 1.5;
}
.quick-contact-item:last-child {
    margin-bottom: 0;
}
.quick-contact-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary, #e31e24);
    flex-shrink: 0;
    font-size: 0.85rem;
    transition: all 0.3s ease;
}

/* Popular Articles in Sidebar */
.sidebar-pop-item {
    display: flex;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px dashed #e2e8f0;
    transition: border-color 0.3s ease;
}
.sidebar-pop-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}
.sidebar-pop-thumb {
    width: 65px;
    height: 50px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
}
.sidebar-pop-info h5 {
    font-size: 0.86rem;
    font-weight: 700;
    line-height: 1.35;
    margin: 0 0 4px 0;
}
.sidebar-pop-info h5 a {
    color: #1e293b;
    text-decoration: none;
    transition: color 0.2s;
}
.sidebar-pop-info h5 a:hover {
    color: var(--primary, #e31e24);
}
.sidebar-pop-views {
    font-size: 0.76rem;
    color: #94a3b8;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* =======================================================
   7. Structured & Modern Contact Form Styles (Light Mode)
   ======================================================= */
.contact-interactive-grid {
    display: grid;
    grid-template-columns: 1fr 1.15fr;
    gap: 28px;
    margin-top: 30px;
    align-items: start;
}

.contact-info-panel {
    background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 26px;
    transition: all 0.3s ease;
}
.contact-panel-title {
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 20px;
    font-size: 1.15rem;
    display: flex;
    align-items: center;
    transition: color 0.3s ease;
}
.contact-page-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    margin-bottom: 20px;
}
.contact-ops-note {
    padding: 14px 16px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    font-size: 0.82rem;
    color: #64748b;
    line-height: 1.5;
    transition: all 0.3s ease;
}

.contact-form-panel {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 28px;
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.04);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}
.contact-form-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary, #e31e24) 0%, #ff6b6b 100%);
}

.contact-form-header {
    margin-bottom: 22px;
}
.contact-form-title {
    font-size: 1.25rem;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 6px 0;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: color 0.3s ease;
}
.contact-form-desc {
    font-size: 0.88rem;
    color: #64748b;
    margin: 0;
    line-height: 1.5;
    transition: color 0.3s ease;
}

/* Form Row & Groups */
.contact-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}
.contact-form-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 16px;
    width: 100%;
}
.contact-form-label {
    display: block;
    font-size: 0.86rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 6px;
    transition: color 0.3s ease;
}
.contact-form-label .required-star {
    color: #dc2626;
    margin-left: 2px;
}
.contact-form-label .optional-text {
    font-weight: 500;
    font-size: 0.78rem;
    color: #64748b;
    margin-left: 4px;
}

/* Inputs & Textarea */
.contact-input,
.contact-textarea {
    display: block;
    width: 100%;
    box-sizing: border-box;
    font-family: inherit;
    font-size: 0.92rem;
    color: #1e293b;
    background-color: #ffffff;
    border: 1.5px solid #cbd5e1;
    border-radius: 10px;
    padding: 10px 14px;
    transition: all 0.2s ease;
}
.contact-input {
    height: 44px;
}
.contact-textarea {
    min-height: 120px;
    line-height: 1.6;
    resize: vertical;
}
.contact-input:focus,
.contact-textarea:focus {
    border-color: var(--primary, #e31e24);
    box-shadow: 0 0 0 3.5px rgba(227, 30, 36, 0.12);
    outline: none;
}
.contact-input::placeholder,
.contact-textarea::placeholder {
    color: #94a3b8;
}

/* Quick Topic Selection Chips */
.contact-topic-box {
    margin-bottom: 18px;
}
.contact-topic-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.78rem;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
    transition: color 0.3s ease;
}
.contact-topic-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}
.contact-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 13px;
    border-radius: 20px;
    font-size: 0.82rem;
    font-weight: 600;
    color: #475569;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
}
.contact-chip:hover {
    background: #e2e8f0;
    color: #0f172a;
    border-color: #cbd5e1;
}
.contact-chip.active {
    background: var(--primary, #e31e24);
    color: #ffffff;
    border-color: var(--primary, #e31e24);
    box-shadow: 0 2px 8px rgba(227, 30, 36, 0.25);
}

/* Textarea Meta (Char Counter) */
.contact-textarea-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 5px;
    font-size: 0.76rem;
    color: #64748b;
    transition: color 0.3s ease;
}

/* Captcha Security Card */
.contact-captcha-box {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border: 1.5px solid #cbd5e1;
    border-radius: 12px;
    padding: 16px 18px;
    margin-bottom: 22px;
    transition: all 0.3s ease;
}
.captcha-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}
.captcha-title {
    font-size: 0.86rem;
    font-weight: 700;
    color: #1e293b;
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0;
    transition: color 0.3s ease;
}
.captcha-title i {
    color: var(--primary, #e31e24);
}
.btn-captcha-refresh {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 20px;
    padding: 3px 12px;
    font-size: 0.78rem;
    font-weight: 600;
    color: #64748b;
    cursor: pointer;
    transition: all 0.2s ease;
}
.btn-captcha-refresh:hover {
    background: #f8fafc;
    color: var(--primary, #e31e24);
    border-color: var(--primary, #e31e24);
}
.captcha-equation-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}
.captcha-equation-badge {
    background: #ffffff;
    border: 1.5px solid #94a3b8;
    border-radius: 10px;
    padding: 8px 16px;
    font-size: 1.12rem;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: 1.5px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.04);
    transition: all 0.3s ease;
}
.captcha-equal-sign {
    font-size: 1.35rem;
    font-weight: 800;
    color: #94a3b8;
    transition: color 0.3s ease;
}
.captcha-answer-input {
    width: 105px !important;
    height: 44px;
    text-align: center;
    font-size: 1.15rem;
    font-weight: 800;
    border-radius: 10px;
    border: 1.5px solid #cbd5e1;
    background: #ffffff;
    color: #0f172a;
    box-sizing: border-box;
    transition: all 0.2s ease;
}
.captcha-answer-input:focus {
    border-color: var(--primary, #e31e24);
    box-shadow: 0 0 0 3px rgba(227, 30, 36, 0.15);
    outline: none;
}
.captcha-footer-note {
    font-size: 0.76rem;
    color: #64748b;
    margin-top: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: color 0.3s ease;
}

/* Submit Button */
.btn-contact-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    height: 48px;
    border-radius: 25px;
    background: linear-gradient(135deg, var(--primary, #e31e24) 0%, #b91c1c 100%);
    color: #ffffff !important;
    border: none;
    font-size: 0.98rem;
    font-weight: 700;
    letter-spacing: 0.3px;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(227, 30, 36, 0.28);
    transition: all 0.25s cubic-bezier(0.25, 0.8, 0.25, 1);
}
.btn-contact-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(227, 30, 36, 0.38);
    color: #ffffff !important;
}
.btn-contact-submit:active {
    transform: translateY(0);
}

.contact-privacy-note {
    text-align: center;
    font-size: 0.77rem;
    color: #64748b;
    margin-top: 14px;
    line-height: 1.5;
    transition: color 0.3s ease;
}

/* =======================================================
   8. Info Iklan CTA Banner
   ======================================================= */
.page-iklan-cta {
    background: linear-gradient(135deg, #fef2f2 0%, #fff1f2 100%);
    border: 1px solid #fecaca;
    border-radius: 16px;
    padding: 24px;
    text-align: center;
    margin-top: 24px;
    transition: all 0.3s ease;
}
.page-iklan-cta-title {
    font-weight: 800;
    color: #991b1b;
    margin-bottom: 8px;
    font-size: 1.25rem;
    transition: color 0.3s ease;
}
.page-iklan-cta-desc {
    color: #64748b;
    margin-bottom: 16px;
    font-size: 0.92rem;
    transition: color 0.3s ease;
}
.page-iklan-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #25d366;
    color: #ffffff !important;
    font-weight: 700;
    font-size: 0.92rem;
    padding: 10px 24px;
    border-radius: 25px;
    text-decoration: none;
    box-shadow: 0 4px 14px rgba(37, 211, 102, 0.3);
    transition: all 0.2s ease;
}
.page-iklan-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(37, 211, 102, 0.45);
    color: #ffffff !important;
}

/* =======================================================
   9. 404 Not Found Card
   ======================================================= */
.page-404-icon-wrapper {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: #fee2e2;
    color: #ef4444;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}
.page-404-title {
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 10px;
    font-size: 1.8rem;
    transition: color 0.3s ease;
}
.page-404-desc {
    color: #64748b;
    max-width: 520px;
    margin: 0 auto 24px auto;
    line-height: 1.6;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}
.page-404-desc code {
    background: #f1f5f9;
    color: #e11d48;
    padding: 2px 7px;
    border-radius: 6px;
}
.page-404-search-box {
    max-width: 440px;
    margin: 0 auto 24px auto;
}
.page-404-search-form {
    display: flex;
    width: 100%;
}
.page-404-search-input {
    flex: 1;
    height: 44px;
    padding: 10px 16px;
    border: 1.5px solid #cbd5e1;
    border-right: none;
    border-radius: 22px 0 0 22px;
    font-size: 0.92rem;
    outline: none;
    background: #ffffff;
    color: #0f172a;
    transition: all 0.2s ease;
}
.page-404-search-btn {
    height: 44px;
    padding: 0 22px;
    background: var(--primary, #e31e24);
    color: #ffffff;
    border: none;
    border-radius: 0 22px 22px 0;
    cursor: pointer;
    font-size: 1rem;
    transition: background 0.2s ease;
}
.page-404-search-btn:hover {
    background: #b91c1c;
}
.page-404-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 22px;
    border-radius: 22px;
    border: 1.5px solid #cbd5e1;
    color: #475569;
    font-weight: 700;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.2s ease;
}
.page-404-back-btn:hover {
    background: #f1f5f9;
    color: #0f172a;
    border-color: #94a3b8;
}

/* =======================================================
   10. Responsive Design Breakpoints
   ======================================================= */
@media (max-width: 992px) {
    .page-layout-grid {
        grid-template-columns: 1fr;
    }
    .contact-interactive-grid {
        grid-template-columns: 1fr;
    }
    .page-card-main {
        padding: 26px 20px;
    }
    .page-main-title {
        font-size: 1.8rem;
    }
}

@media (max-width: 640px) {
    .contact-form-row {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    .contact-form-panel {
        padding: 22px 18px;
    }
    .page-card-main {
        padding: 20px 16px;
    }
    .page-main-title {
        font-size: 1.55rem;
    }
}


/* ==========================================================================
   11. COMPREHENSIVE DARK MODE DESIGN SYSTEM FOR PAGE.PHP
   Standardized palette for body.dark-mode & html.dark-mode
   ========================================================================== */

/* Breadcrumbs in Dark Mode */
body.dark-mode .page-breadcrumbs,
html.dark-mode .page-breadcrumbs {
    background: #111827 !important;
    border-color: #1f2937 !important;
    color: #9ca3af !important;
}
body.dark-mode .page-breadcrumbs a,
html.dark-mode .page-breadcrumbs a {
    color: #cbd5e1 !important;
}
body.dark-mode .page-breadcrumbs a:hover,
html.dark-mode .page-breadcrumbs a:hover {
    color: var(--primary, #e31e24) !important;
}
body.dark-mode .page-breadcrumbs .divider,
html.dark-mode .page-breadcrumbs .divider {
    color: #4b5563 !important;
}
body.dark-mode .page-breadcrumbs .current,
html.dark-mode .page-breadcrumbs .current {
    color: #f9fafb !important;
}

/* Page Card Container in Dark Mode */
body.dark-mode .page-card-main,
html.dark-mode .page-card-main {
    background: #111827 !important;
    border-color: #1f2937 !important;
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.45) !important;
}

/* Verified Badge in Dark Mode */
body.dark-mode .page-verified-badge,
html.dark-mode .page-verified-badge {
    background: rgba(37, 99, 235, 0.16) !important;
    color: #60a5fa !important;
    border: 1px solid rgba(96, 165, 250, 0.25) !important;
}

/* Titles and Headers in Dark Mode */
body.dark-mode .page-main-title,
html.dark-mode .page-main-title {
    color: #f9fafb !important;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.7);
}
body.dark-mode .page-main-tagline,
html.dark-mode .page-main-tagline {
    color: #ef4444 !important;
}

/* Meta Bar & Social Share in Dark Mode */
body.dark-mode .page-meta-bar,
html.dark-mode .page-meta-bar {
    border-color: #1f2937 !important;
    color: #9ca3af !important;
}
body.dark-mode .page-meta-left span strong,
html.dark-mode .page-meta-left span strong {
    color: #f3f4f6 !important;
}
body.dark-mode .page-meta-left i,
html.dark-mode .page-meta-left i {
    color: #6b7280 !important;
}
body.dark-mode .share-btn-round.share-copy,
html.dark-mode .share-btn-round.share-copy {
    background: #374151 !important;
    color: #f9fafb !important;
}

/* Body Content Typography in Dark Mode */
body.dark-mode .page-body-content,
html.dark-mode .page-body-content {
    color: #d1d5db !important;
}
body.dark-mode .page-body-content p,
html.dark-mode .page-body-content p {
    color: #d1d5db !important;
}
body.dark-mode .page-body-content h1,
body.dark-mode .page-body-content h2,
body.dark-mode .page-body-content h3,
body.dark-mode .page-body-content h4,
body.dark-mode .page-body-content h5,
body.dark-mode .page-body-content h6,
html.dark-mode .page-body-content h1,
html.dark-mode .page-body-content h2,
html.dark-mode .page-body-content h3,
html.dark-mode .page-body-content h4,
html.dark-mode .page-body-content h5,
html.dark-mode .page-body-content h6 {
    color: #f9fafb !important;
    border-left-color: #ef4444 !important;
}
body.dark-mode .page-body-content strong,
body.dark-mode .page-body-content b,
html.dark-mode .page-body-content strong,
html.dark-mode .page-body-content b {
    color: #ffffff !important;
}
body.dark-mode .page-body-content a,
html.dark-mode .page-body-content a {
    color: #ef4444 !important;
}
body.dark-mode .page-body-content a:hover,
html.dark-mode .page-body-content a:hover {
    color: #f87171 !important;
}
body.dark-mode .page-body-content ul,
body.dark-mode .page-body-content ol,
body.dark-mode .page-body-content li,
html.dark-mode .page-body-content ul,
html.dark-mode .page-body-content ol,
html.dark-mode .page-body-content li {
    color: #d1d5db !important;
}
body.dark-mode .page-body-content blockquote,
html.dark-mode .page-body-content blockquote {
    background: #0f172a !important;
    border-left-color: #ef4444 !important;
    color: #9ca3af !important;
}
body.dark-mode .page-body-content code,
html.dark-mode .page-body-content code {
    background: #0f172a !important;
    color: #fb7185 !important;
    border: 1px solid #1f2937 !important;
}
body.dark-mode .page-body-content pre,
html.dark-mode .page-body-content pre {
    background: #090d16 !important;
    color: #f3f4f6 !important;
    border: 1px solid #1f2937 !important;
}
body.dark-mode .page-body-content table,
html.dark-mode .page-body-content table {
    border-color: #1f2937 !important;
}
body.dark-mode .page-body-content th,
body.dark-mode .page-body-content td,
html.dark-mode .page-body-content th,
html.dark-mode .page-body-content td {
    border-color: #1f2937 !important;
    color: #d1d5db !important;
}
body.dark-mode .page-body-content th,
html.dark-mode .page-body-content th {
    background: #0f172a !important;
    color: #ffffff !important;
}

/* Sidebar Widgets in Dark Mode */
body.dark-mode .page-sidebar-widget,
html.dark-mode .page-sidebar-widget {
    background: #111827 !important;
    border-color: #1f2937 !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4) !important;
}
body.dark-mode .widget-heading,
html.dark-mode .widget-heading {
    color: #f9fafb !important;
    border-bottom-color: #1f2937 !important;
}
body.dark-mode .widget-heading i,
html.dark-mode .widget-heading i {
    color: #ef4444 !important;
}

/* Sidebar Navigation Link Items in Dark Mode */
body.dark-mode .sidebar-page-link,
html.dark-mode .sidebar-page-link {
    color: #9ca3af !important;
    background: transparent !important;
    border-color: transparent !important;
}
body.dark-mode .sidebar-page-link:hover,
html.dark-mode .sidebar-page-link:hover {
    background: #0f172a !important;
    color: #ffffff !important;
    border-color: #1f2937 !important;
}
body.dark-mode .sidebar-page-link.active,
html.dark-mode .sidebar-page-link.active {
    background: rgba(227, 30, 36, 0.16) !important;
    color: #ef4444 !important;
    border-color: rgba(227, 30, 36, 0.35) !important;
}

/* Sidebar Quick Contact Box in Dark Mode */
body.dark-mode .quick-contact-box,
html.dark-mode .quick-contact-box {
    background: #0f172a !important;
    border-color: #1f2937 !important;
}
body.dark-mode .quick-contact-item,
html.dark-mode .quick-contact-item {
    color: #d1d5db !important;
}
body.dark-mode .quick-contact-item strong,
html.dark-mode .quick-contact-item strong {
    color: #ffffff !important;
}
body.dark-mode .quick-contact-item .text-muted,
html.dark-mode .quick-contact-item .text-muted {
    color: #9ca3af !important;
}
body.dark-mode .quick-contact-icon,
html.dark-mode .quick-contact-icon {
    background: #1e293b !important;
    border-color: #374151 !important;
    color: #ef4444 !important;
}

/* Sidebar Popular Articles in Dark Mode */
body.dark-mode .sidebar-pop-item,
html.dark-mode .sidebar-pop-item {
    border-bottom-color: #1f2937 !important;
}
body.dark-mode .sidebar-pop-info h5 a,
html.dark-mode .sidebar-pop-info h5 a {
    color: #f3f4f6 !important;
}
body.dark-mode .sidebar-pop-info h5 a:hover,
html.dark-mode .sidebar-pop-info h5 a:hover {
    color: #ef4444 !important;
}
body.dark-mode .sidebar-pop-views,
html.dark-mode .sidebar-pop-views {
    color: #6b7280 !important;
}

/* Contact Interactive Form Panel in Dark Mode */
body.dark-mode .contact-info-panel,
html.dark-mode .contact-info-panel {
    background: #0f172a !important;
    border-color: #1f2937 !important;
}
body.dark-mode .contact-panel-title,
html.dark-mode .contact-panel-title {
    color: #f9fafb !important;
}
body.dark-mode .contact-page-card,
html.dark-mode .contact-page-card {
    background: #111827 !important;
    border-color: #1f2937 !important;
}
body.dark-mode .contact-ops-note,
html.dark-mode .contact-ops-note {
    background: #111827 !important;
    border-color: #1f2937 !important;
    color: #9ca3af !important;
}
body.dark-mode .contact-form-panel,
html.dark-mode .contact-form-panel {
    background: #0f172a !important;
    border-color: #1f2937 !important;
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.45) !important;
}
body.dark-mode .contact-form-title,
html.dark-mode .contact-form-title {
    color: #f9fafb !important;
}
body.dark-mode .contact-form-desc,
html.dark-mode .contact-form-desc {
    color: #9ca3af !important;
}
body.dark-mode .contact-form-label,
html.dark-mode .contact-form-label {
    color: #e5e7eb !important;
}
body.dark-mode .contact-form-label .optional-text,
html.dark-mode .contact-form-label .optional-text {
    color: #6b7280 !important;
}
body.dark-mode .contact-input,
body.dark-mode .contact-textarea,
html.dark-mode .contact-input,
html.dark-mode .contact-textarea {
    background: #111827 !important;
    border: 1.5px solid #1f2937 !important;
    color: #ffffff !important;
}
body.dark-mode .contact-input:focus,
body.dark-mode .contact-textarea:focus,
html.dark-mode .contact-input:focus,
html.dark-mode .contact-textarea:focus {
    border-color: #ef4444 !important;
    box-shadow: 0 0 0 3.5px rgba(239, 68, 68, 0.25) !important;
}
body.dark-mode .contact-input::placeholder,
body.dark-mode .contact-textarea::placeholder,
html.dark-mode .contact-input::placeholder,
html.dark-mode .contact-textarea::placeholder {
    color: #4b5563 !important;
}
body.dark-mode .contact-topic-label,
html.dark-mode .contact-topic-label {
    color: #9ca3af !important;
}
body.dark-mode .contact-chip,
html.dark-mode .contact-chip {
    background: #111827 !important;
    border-color: #1f2937 !important;
    color: #9ca3af !important;
}
body.dark-mode .contact-chip:hover,
html.dark-mode .contact-chip:hover {
    background: #1f2937 !important;
    color: #ffffff !important;
    border-color: #374151 !important;
}
body.dark-mode .contact-chip.active,
html.dark-mode .contact-chip.active {
    background: var(--primary, #e31e24) !important;
    color: #ffffff !important;
    border-color: var(--primary, #e31e24) !important;
    box-shadow: 0 2px 10px rgba(227, 30, 36, 0.4) !important;
}
body.dark-mode .contact-textarea-meta,
html.dark-mode .contact-textarea-meta {
    color: #6b7280 !important;
}
body.dark-mode .contact-captcha-box,
html.dark-mode .contact-captcha-box {
    background: #090d16 !important;
    border-color: #1f2937 !important;
}
body.dark-mode .captcha-title,
html.dark-mode .captcha-title {
    color: #f9fafb !important;
}
body.dark-mode .btn-captcha-refresh,
html.dark-mode .btn-captcha-refresh {
    background: #111827 !important;
    border-color: #1f2937 !important;
    color: #9ca3af !important;
}
body.dark-mode .btn-captcha-refresh:hover,
html.dark-mode .btn-captcha-refresh:hover {
    background: #1f2937 !important;
    color: #ef4444 !important;
    border-color: #ef4444 !important;
}
body.dark-mode .captcha-equation-badge,
html.dark-mode .captcha-equation-badge {
    background: #111827 !important;
    border-color: #374151 !important;
    color: #ffffff !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3) !important;
}
body.dark-mode .captcha-equal-sign,
html.dark-mode .captcha-equal-sign {
    color: #6b7280 !important;
}
body.dark-mode .captcha-answer-input,
html.dark-mode .captcha-answer-input {
    background: #111827 !important;
    border-color: #374151 !important;
    color: #ffffff !important;
}
body.dark-mode .captcha-answer-input:focus,
html.dark-mode .captcha-answer-input:focus {
    border-color: #ef4444 !important;
    box-shadow: 0 0 0 3px rgba(227, 30, 36, 0.25) !important;
}
body.dark-mode .captcha-footer-note,
html.dark-mode .captcha-footer-note {
    color: #6b7280 !important;
}
body.dark-mode .contact-privacy-note,
html.dark-mode .contact-privacy-note {
    color: #6b7280 !important;
}

/* Info Iklan CTA Banner in Dark Mode */
body.dark-mode .page-iklan-cta,
html.dark-mode .page-iklan-cta {
    background: #0f172a !important;
    border-color: #1f2937 !important;
}
body.dark-mode .page-iklan-cta-title,
html.dark-mode .page-iklan-cta-title {
    color: #ef4444 !important;
}
body.dark-mode .page-iklan-cta-desc,
html.dark-mode .page-iklan-cta-desc {
    color: #9ca3af !important;
}

/* 404 Screen in Dark Mode */
body.dark-mode .page-404-icon-wrapper,
html.dark-mode .page-404-icon-wrapper {
    background: rgba(239, 68, 68, 0.16) !important;
    color: #f87171 !important;
}
body.dark-mode .page-404-title,
html.dark-mode .page-404-title {
    color: #f9fafb !important;
}
body.dark-mode .page-404-desc,
html.dark-mode .page-404-desc {
    color: #9ca3af !important;
}
body.dark-mode .page-404-desc code,
html.dark-mode .page-404-desc code {
    background: #0f172a !important;
    color: #fb7185 !important;
    border: 1px solid #1f2937 !important;
}
body.dark-mode .page-404-search-input,
html.dark-mode .page-404-search-input {
    background: #0f172a !important;
    border-color: #1f2937 !important;
    color: #ffffff !important;
}
body.dark-mode .page-404-search-input::placeholder,
html.dark-mode .page-404-search-input::placeholder {
    color: #4b5563 !important;
}
body.dark-mode .page-404-back-btn,
html.dark-mode .page-404-back-btn {
    border-color: #374151 !important;
    color: #cbd5e1 !important;
}
body.dark-mode .page-404-back-btn:hover,
html.dark-mode .page-404-back-btn:hover {
    background: #1f2937 !important;
    color: #ffffff !important;
    border-color: #4b5563 !important;
}

/* Bootstrap Alert Overrides in Dark Mode */
body.dark-mode .alert,
html.dark-mode .alert {
    border-radius: 12px !important;
}
body.dark-mode .alert-success,
html.dark-mode .alert-success {
    background: rgba(16, 185, 129, 0.14) !important;
    border: 1px solid rgba(16, 185, 129, 0.35) !important;
    color: #6ee7b7 !important;
}
body.dark-mode .alert-danger,
html.dark-mode .alert-danger {
    background: rgba(239, 68, 68, 0.14) !important;
    border: 1px solid rgba(239, 68, 68, 0.35) !important;
    color: #fca5a5 !important;
}
body.dark-mode .alert .alert-heading,
html.dark-mode .alert .alert-heading {
    color: inherit !important;
}
body.dark-mode .alert .close,
html.dark-mode .alert .close {
    color: #9ca3af !important;
    text-shadow: none !important;
    opacity: 0.8 !important;
}
body.dark-mode .alert .close:hover,
html.dark-mode .alert .close:hover {
    color: #ffffff !important;
    opacity: 1 !important;
}

/* Sanitization of Legacy / Admin Generated Content in Dark Mode */
body.dark-mode .page-body-content div[style*="background"],
html.dark-mode .page-body-content div[style*="background"] {
    background: #0f172a !important;
    border-color: #1f2937 !important;
    color: #d1d5db !important;
}
body.dark-mode .page-body-content [style*="color: #2c3e50"],
body.dark-mode .page-body-content [style*="color:#2c3e50"],
html.dark-mode .page-body-content [style*="color: #2c3e50"],
html.dark-mode .page-body-content [style*="color:#2c3e50"],
body.dark-mode .page-body-content [style*="color: #1a252f"],
body.dark-mode .page-body-content [style*="color:#1a252f"],
html.dark-mode .page-body-content [style*="color: #1a252f"],
html.dark-mode .page-body-content [style*="color:#1a252f"] {
    color: #f9fafb !important;
}
body.dark-mode .page-body-content [style*="color: #495057"],
body.dark-mode .page-body-content [style*="color:#495057"],
html.dark-mode .page-body-content [style*="color: #495057"],
html.dark-mode .page-body-content [style*="color:#495057"],
body.dark-mode .page-body-content [style*="color: #6c757d"],
body.dark-mode .page-body-content [style*="color:#6c757d"],
html.dark-mode .page-body-content [style*="color: #6c757d"],
html.dark-mode .page-body-content [style*="color:#6c757d"] {
    color: #9ca3af !important;
}
body.dark-mode .page-body-content hr,
html.dark-mode .page-body-content hr {
    border-color: #1f2937 !important;
}

