/* =========================================
   LAYOUT HALAMAN (NO SIDEBAR)
   ========================================= */

.custom-page-container {
    width: 100%;
    background: #fff;
    min-height: 60vh; /* Agar footer tidak naik jika konten dikit */
}

/* Wrapper Tengah */
.custom-page-wrapper {
    max-width: 800px; /* Lebar ideal untuk membaca tanpa sidebar */
    margin: 0 auto;   /* KUNCI: Membuat posisi di tengah layar */
    padding: 50px 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

/* =========================================
   TYPOGRAPHY & ELEMENT
   ========================================= */

/* Judul Halaman */
.custom-page-header {
    text-align: center; /* Judul rata tengah */
    margin-bottom: 40px;
    border-bottom: 1px solid #eee;
    padding-bottom: 20px;
}

.custom-page-title {
    font-size: 36px;
    font-weight: 800;
    color: #111;
    margin: 0;
}

/* Gambar Utama */
.custom-page-image {
    margin-bottom: 30px;
    text-align: center;
}

.custom-page-image img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

/* Isi Konten */
.custom-page-content {
    font-size: 18px;
    line-height: 1.8;
    color: #2a2a2a;
}

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

.custom-page-content h2, 
.custom-page-content h3 {
    margin-top: 30px;
    margin-bottom: 15px;
    color: #000;
    font-weight: 700;
}

/* List (ul/ol) biar rapi */
.custom-page-content ul, 
.custom-page-content ol {
    margin-bottom: 25px;
    padding-left: 20px;
}
.custom-page-content li {
    margin-bottom: 10px;
}

/* =========================================
   RESPONSIF MOBILE
   ========================================= */
@media (max-width: 991px) {
    
    /* FIX JARAK ATAS (Agar tidak ketutup Header Sticky) */
    .custom-page-wrapper {
        padding-top: 100px; /* Turunkan konten di HP */
        padding-left: 15px;
        padding-right: 15px;
    }

    .custom-page-title {
        font-size: 28px; /* Judul lebih kecil di HP */
    }

    .custom-page-content {
        font-size: 16px; /* Font baca lebih kecil sedikit */
    }
}

/* =========================================
   STYLE LIST & QUOTE (FIX UNTUK .custom-page-content)
   ========================================= */

/* 1. Memaksa Titik (Bullet) Muncul */
.custom-page-content ul {
    list-style-type: disc !important; /* PENTING: Paksa titik muncul */
    margin-bottom: 25px;
    padding-left: 40px; /* Jarak kiri diperlebar agar titik tidak keluar layar */
}

/* 2. Memaksa Angka (Number) Muncul */
.custom-page-content ol {
    list-style-type: decimal !important; /* PENTING: Paksa angka muncul */
    margin-bottom: 25px;
    padding-left: 40px;
}

/* Style Item List */
.custom-page-content li {
    margin-bottom: 10px;
    line-height: 1.6;
}

/* 3. Style Quote (Kutipan) dengan Garis Biru */
.custom-page-content blockquote {
    background: #f8f9fa;            /* Latar abu-abu sangat muda */
    border-left: 5px solid #003399; /* Garis biru iPortal */
    margin: 30px 0;
    padding: 20px 25px;
    
    font-size: 19px;                /* Font sedikit lebih besar */
    font-style: italic;             /* Miring */
    color: #555;
    line-height: 1.6;
    
    border-radius: 0 8px 8px 0;     /* Sudut kanan melengkung */
    position: relative;
}

/* Hiasan Tanda Kutip Besar (Opsional - Estetik) */
.custom-page-content blockquote::before {
    content: "\201C"; /* Kode simbol kutip " */
    font-family: serif;
    font-size: 60px;
    color: #003399;
    opacity: 0.15;    /* Transparan */
    position: absolute;
    top: -10px;
    left: 10px;
    line-height: 1;
}

/* =========================================
   STYLE LINK (HYPERLINK) - SINGLE & PAGE
   ========================================= */

/* Target: Link di dalam paragraf (p) dan list point (li) */
.single-body-content p a,
.single-body-content li a,
.custom-page-content p a,
.custom-page-content li a {
    color: #003399;           /* Warna Biru iPortal */
    font-weight: 700;         /* Tebal agar beda dengan teks biasa */
    text-decoration: none;    /* Hapus garis bawah jadul */
    border-bottom: 1px solid rgba(0, 51, 153, 0.2); /* Garis bawah tipis modern */
    transition: all 0.2s ease;
}

/* Pengecualian: Jangan warnai link di dalam TOC atau Baca Juga (karena sudah ada style sendiri) */
.iportal-toc-container a,
.baca-juga-box a {
    border-bottom: none !important; /* Hapus garis bawah */
}

/* Efek Hover (Saat mouse diarahkan) */
.single-body-content p a:hover,
.single-body-content li a:hover,
.custom-page-content p a:hover,
.custom-page-content li a:hover {
    color: #002266;             /* Warna jadi lebih gelap */
    background-color: #e6f0ff;  /* Ada latar biru muda tipis */
    border-bottom-color: #002266;
    text-decoration: none;
}