Lompat ke isi

MediaWiki:Common.js: Perbedaan antara revisi

Dari Maliki Encyclopedia
Tidak ada ringkasan suntingan
Tidak ada ringkasan suntingan
Tanda: Dikembalikan
Baris 1: Baris 1:
/* =========================================================
/* =====================================
   MALIKI ENCYCLOPEDIA
   MALIKI ENCYCLOPEDIA
   HEADER NAVIGATION — PHASE 1A
   Common.css v13
   Vector 2022
   Navigation + World History Inspired Style
   ========================================================= */
   ===================================== */


(function () {


    'use strict';
/* =========================
  GLOBAL
  ========================= */


     function createMalikiNavigation() {
body {
     background: #f5f8f7;
    color: #24343b;
}


        /* Jangan membuat menu dua kali */
.firstHeading {
        if (document.getElementById('maliki-top-navigation')) {
    color: #004f40;
            return;
}
        }


        /* Pastikan halaman sudah memiliki header Vector */
a {
        var header = document.querySelector('.vector-header-container');
    color: #1f5f8b;
}


        if (!header) {
a:hover {
            return;
    color: #006b54;
        }
}


        /* =====================================================
          CONTAINER NAVIGASI
          ===================================================== */


        var navigation = document.createElement('nav');
/* =====================================
  MALIKI TOP NAVIGATION
  Header Navigation — Phase 1B
  ===================================== */


        navigation.id = 'maliki-top-navigation';
/*
        navigation.setAttribute(
  Navigasi utama ditempatkan di dalam
            'aria-label',
  Vector 2022 header.
            'Navigasi utama Maliki Encyclopedia'
        );


        navigation.innerHTML = `
  Common.js menangani struktur dan interaksi.
  Common.css menangani tampilan.
*/


            <div class="maliki-nav-inner">
#maliki-top-navigation {
    width: 100%;
    flex: 0 0 100%;
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    border-top: 1px solid #eaecf0;
    border-bottom: 1px solid #d8dee4;
    background: #ffffff;
    position: relative;
    z-index: 100;
}


                <!-- ENSIKLOPEDIA -->


                <div class="maliki-nav-item has-dropdown">
/* =========================
  NAVIGATION INNER
  ========================= */


                    <button
#maliki-top-navigation .maliki-nav-inner {
                        type="button"
    max-width: 1200px;
                        class="maliki-nav-button"
    margin: 0 auto;
                        aria-expanded="false">
    padding: 0 20px;
                        Ensiklopedia
    display: flex;
                        <span class="maliki-nav-arrow">⌄</span>
    align-items: stretch;
                    </button>
    justify-content: center;
    gap: 2px;
    box-sizing: border-box;
}


                    <div class="maliki-nav-dropdown">


                        <a href="/index.php/Tokoh">
/* =========================
                            Tokoh
  NAVIGATION ITEM
                        </a>
  ========================= */


                        <a href="/index.php/Konsep">
#maliki-top-navigation .maliki-nav-item {
                            Konsep
    position: relative;
                        </a>
    display: flex;
    align-items: stretch;
}


                        <a href="/index.php/Karya_Intelektual">
                            Karya Intelektual
                        </a>


                        <a href="/index.php/Lembaga">
/* =========================
                            Lembaga
  NAVIGATION BUTTON
                        </a>
  ========================= */


                        <a href="/index.php/Peristiwa">
#maliki-top-navigation .maliki-nav-button {
                            Peristiwa
    appearance: none;
                        </a>
    -webkit-appearance: none;


                        <a href="/index.php/Tempat">
    border: 0;
                            Tempat
    background: transparent;
                        </a>


                    </div>
    color: #24343b;


                </div>
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;


    line-height: 1.4;


                <!-- JELAJAH -->
    padding: 14px 15px;


                <div class="maliki-nav-item has-dropdown">
    margin: 0;


                    <button
    cursor: pointer;
                        type="button"
                        class="maliki-nav-button"
                        aria-expanded="false">
                        Jelajah
                        <span class="maliki-nav-arrow">⌄</span>
                    </button>


                    <div class="maliki-nav-dropdown">
    white-space: nowrap;


                        <a href="/index.php/Maliki:Jelajah_Pengetahuan">
    transition:
                            Jelajah Pengetahuan
        background-color 0.18s ease,
                        </a>
        color 0.18s ease;
}


                        <a href="/index.php/Spesial:Halaman_Baru">
                            Pengetahuan Terbaru
                        </a>


                        <a href="/index.php/Kategori:Unggulan">
/* =========================
                            Artikel Unggulan
  ARROW
                        </a>
  ========================= */


                    </div>
#maliki-top-navigation .maliki-nav-arrow {
    display: inline-block;


                </div>
    margin-left: 5px;


    font-size: 12px;


                <!-- BIDANG ILMU -->
    color: #72777d;


                <div class="maliki-nav-item has-dropdown">
    transform: translateY(-1px);


                    <button
    transition:
                        type="button"
        transform 0.18s ease,
                        class="maliki-nav-button"
        color 0.18s ease;
                        aria-expanded="false">
}
                        Bidang Ilmu
                        <span class="maliki-nav-arrow">⌄</span>
                    </button>


                    <div class="maliki-nav-dropdown">


                        <a href="/index.php/Kategori:Studi_Islam">
/* =========================
                            Studi Islam
  HOVER / FOCUS
                        </a>
  ========================= */


                        <a href="/index.php/Kategori:Pendidikan">
#maliki-top-navigation .maliki-nav-item:hover
                            Pendidikan
.maliki-nav-button,
                        </a>


                        <a href="/index.php/Kategori:Sains">
#maliki-top-navigation .maliki-nav-button:focus {
                            Sains
    background: #f5f8f7;
                        </a>
    color: #006b54;
    outline: none;
}


                        <a href="/index.php/Kategori:Kesehatan">
                            Kesehatan
                        </a>


                        <a href="/index.php/Kategori:Humaniora">
#maliki-top-navigation .maliki-nav-item:hover
                            Humaniora
.maliki-nav-arrow,
                        </a>


                        <a href="/index.php/Kategori:Sosial">
#maliki-top-navigation .maliki-nav-item.is-open
                            Sosial
.maliki-nav-arrow {
                        </a>
    color: #006b54;
    transform: rotate(180deg);
}


                    </div>


                </div>
/* =========================
  ACTIVE / OPEN ITEM
  ========================= */


#maliki-top-navigation .maliki-nav-item.is-open
.maliki-nav-button {
    background: #f5f8f7;
    color: #006b54;
}


                <!-- ISLAM SAINS -->


                <div class="maliki-nav-item has-dropdown">
/* =========================
  DROPDOWN
  ========================= */


                    <button
#maliki-top-navigation .maliki-nav-dropdown {
                        type="button"
    position: absolute;
                        class="maliki-nav-button"
                        aria-expanded="false">
                        Islam–Sains
                        <span class="maliki-nav-arrow">⌄</span>
                    </button>


                    <div class="maliki-nav-dropdown">
    top: 100%;
    left: 0;


                        <a href="/index.php/Kategori:Nilai_dan_Etika">
    min-width: 220px;
                            Nilai &amp; Etika
                        </a>


                        <a href="/index.php/Kategori:Perspektif">
    padding: 8px 0;
                            Perspektif
                        </a>


                        <a href="/index.php/Kategori:Dialog_Keilmuan">
    background: #ffffff;
                            Dialog Keilmuan
                        </a>


                        <a href="/index.php/Kategori:Integrasi_Substantif">
    border: 1px solid #d8dee4;
                            Integrasi Substantif
                        </a>


                    </div>
    border-radius: 0 0 8px 8px;


                </div>
    box-shadow:
        0 8px 22px rgba(0, 0, 0, 0.10);


    display: none;


                <!-- KONTRIBUSI -->
    z-index: 1000;
}


                <div class="maliki-nav-item has-dropdown">


                    <button
/* =========================
                        type="button"
  SHOW DROPDOWN
                        class="maliki-nav-button"
  ========================= */
                        aria-expanded="false">
                        Kontribusi
                        <span class="maliki-nav-arrow">⌄</span>
                    </button>


                    <div class="maliki-nav-dropdown">
#maliki-top-navigation
.maliki-nav-item.is-open
.maliki-nav-dropdown {
    display: block;
}


                        <a href="/index.php/Maliki:Pengajuan_Artikel">
                            Mulai Membuat Artikel
                        </a>


                        <a href="/index.php/Maliki:Panduan_Kontributor">
/*
                            Panduan Kontributor
  Desktop hover support.
                        </a>
  Click interaction tetap disediakan
  oleh Common.js.
*/


                    </div>
@media (min-width: 801px) {
 
    #maliki-top-navigation
    .maliki-nav-item:hover
    .maliki-nav-dropdown {
        display: block;
    }
 
}
 
 
/* =========================
  DROPDOWN LINKS
  ========================= */
 
#maliki-top-navigation .maliki-nav-dropdown a {
    display: block;
 
    padding: 10px 18px;
 
    color: #24343b;
 
    font-size: 14px;
 
    line-height: 1.45;
 
    text-decoration: none;
 
    white-space: nowrap;
 
    border-left: 3px solid transparent;
 
    transition:
        background-color 0.16s ease,
        color 0.16s ease,
        border-color 0.16s ease;
}
 
 
/* =========================
  DROPDOWN HOVER
  ========================= */
 
#maliki-top-navigation
.maliki-nav-dropdown a:hover {
    background: #f5f8f7;
 
    color: #006b54;
 
    border-left-color: #c79b2b;
 
    text-decoration: none;
}
 
 
/* =========================
  NAVIGATION SHADOW
  ========================= */
 
#maliki-top-navigation::after {
    content: "";
 
    position: absolute;
 
    left: 0;
    right: 0;
    bottom: -1px;
 
    height: 1px;
 
    background: rgba(0, 0, 0, 0.02);
}


                </div>


/* =========================
  HOME CONTAINER
  ========================= */


                <!-- MEDIA -->
.me-home {
    max-width: 1200px;
    margin: 0 auto;
}


                <div class="maliki-nav-item has-dropdown">


                    <button
/* =====================================
                        type="button"
  HERO BANNER
                        class="maliki-nav-button"
  ===================================== */
                        aria-expanded="false">
                        Media
                        <span class="maliki-nav-arrow">⌄</span>
                    </button>


                    <div class="maliki-nav-dropdown">
.me-hero-image {
    width: 100%;
    margin: 25px auto 0;
    text-align: center;
}


                        <a href="/index.php/Kategori:Gambar">
.me-hero-image img {
                            Gambar
    width: 100%;
                        </a>
    height: 220px;
    object-fit: cover;
    display: block;
}


                        <a href="/index.php/Kategori:Video">
                            Video
                        </a>


                        <a href="/index.php/Maliki:Sumber_Pengetahuan">
/* =====================================
                            Sumber Pengetahuan
  HERO CONTENT
                        </a>
  ===================================== */


                    </div>
.me-hero {
    background: #f8f6ef;
    border: 1px solid #ddd;
    border-radius: 12px;
    text-align: center;
    margin: 0 auto 45px;
    padding: 25px 40px 35px;
}


                </div>
.me-hero h1 {
    font-family: Georgia, serif;
    font-size: 54px;
    font-weight: normal;
    color: #006b54;
    margin: 0 auto 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #ccc;
    max-width: 850px;
}


.me-hero h3.tagline {
    font-size: 24px;
    font-weight: bold;
    color: #24343b;
    margin: 25px 0 15px;
}


                <!-- TENTANG -->
.me-hero p {
    font-size: 17px;
    line-height: 1.6;
    max-width: 850px;
    margin: 15px auto;
}


                <div class="maliki-nav-item has-dropdown">


                    <button
/* =====================================
                        type="button"
  FEATURED GRID
                        class="maliki-nav-button"
  Pengetahuan Pilihan
                        aria-expanded="false">
  ===================================== */
                        Tentang Maliki
                        <span class="maliki-nav-arrow">⌄</span>
                    </button>


                    <div class="maliki-nav-dropdown">
.featured-grid {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 12px;
    margin: 25px auto 45px;
}


                        <a href="/index.php/Maliki:Tentang">
                            Tentang Maliki Encyclopedia
                        </a>


                        <a href="/index.php/Maliki:UIN_Malang">
/* =====================================
                            UIN Maulana Malik Ibrahim Malang
  FEATURED ITEM
                        </a>
  ===================================== */


                        <a href="/index.php/Maliki:Tim_Editorial">
.featured-item {
                            Tim Editorial
    width: 300px;
                        </a>
    flex: none;
    text-align: center;
}


                    </div>


                </div>
/* =====================================
  IMAGE BOX
  Border hanya gambar
  ===================================== */


            </div>
.featured-image {
    height: 130px;
    background: #f8f6ef;
    border: 1px solid #ddd;
    border-radius: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
}


        `;
.featured-image img {
    max-width: 120px;
    max-height: 120px;
    width: auto;
    height: auto;
    object-fit: contain;
}




        /* =====================================================
/* =====================================
          MASUKKAN NAVIGASI KE DALAM HEADER
  TITLE
          ===================================================== */
  ===================================== */


        header.appendChild(navigation);
.featured-item h3 {
    color: #006b54;
    font-size: 21px;
    margin: 15px 0 10px;
}




        /* =====================================================
/* =====================================
          INTERAKSI DROPDOWN
  DESCRIPTION
          ===================================================== */
  ===================================== */


        var dropdownButtons =
.featured-item p {
            navigation.querySelectorAll('.maliki-nav-button');
    max-width: 240px;
    margin: 0 auto;
    font-size: 14px;
    line-height: 1.55;
}




        dropdownButtons.forEach(function (button) {
/* =====================================
  LINK
  ===================================== */


            button.addEventListener('click', function (event) {
.featured-item a {
    display: inline-block;
    margin-top: 15px;
    color: #c79b2b;
    font-weight: bold;
    text-decoration: none;
}


                event.stopPropagation();
.featured-item a:hover {
    color: #006b54;
}


                var parent =
                    button.closest('.maliki-nav-item');


                var isOpen =
/* =====================================
                    parent.classList.contains('is-open');
  SECOND SECTION
  ===================================== */


.featured-grid + h2 {
    margin-top: 30px;
}


                /* Tutup semua dropdown */


                navigation
/* =====================================
                    .querySelectorAll('.maliki-nav-item')
  MALIKI ARTICLE STYLE
                    .forEach(function (item) {
  ===================================== */


                        item.classList.remove('is-open');
.me-article {
    max-width: 900px;
    margin: auto;
}


                        var itemButton =
.me-article-header h1 {
                            item.querySelector('.maliki-nav-button');
    font-family: Georgia, serif;
    font-size: 42px;
    color: #006b54;
    border-bottom: 1px solid #ddd;
    padding-bottom: 15px;
}


                        if (itemButton) {
.me-article-image {
                            itemButton.setAttribute(
    text-align: center;
                                'aria-expanded',
    margin: 25px 0;
                                'false'
}
                            );
                        }


                    });
.me-article-image img {
    max-width: 350px;
    height: auto;
}


.me-summary {
    background: #f8f6ef;
    border-left: 4px solid #c79b2b;
    padding: 20px;
    margin: 30px 0;
}


                /* Buka dropdown yang dipilih */
.me-section {
    margin: 35px 0;
}


                if (!isOpen) {
.me-section h2 {
    color: #006b54;
    border-bottom: 1px solid #ddd;
    padding-bottom: 8px;
}


                    parent.classList.add('is-open');


                    button.setAttribute(
/* ================================
                        'aria-expanded',
  NAVIGASI PENGETAHUAN
                        'true'
  ================================ */
                    );


                }
.me-navigation {
    margin: 35px 0;
}


            });
.me-navigation h2 {
    color: #006b54;
    font-size: 24px;
    margin-bottom: 25px;
    border-bottom: 1px solid #ddd;
    padding-bottom: 10px;
}


        });
.me-navigation-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}


.me-navigation-table th {
    width: 180px;
    text-align: left;
    background: #f5f3eb;
    padding: 12px;
    border: 1px solid #ddd;
    font-weight: bold;
}


        /* =====================================================
.me-navigation-table td {
          KLIK DI LUAR MENU
    padding: 12px;
          ===================================================== */
    border: 1px solid #ddd;
}


        document.addEventListener('click', function () {
.me-navigation-table a {
    color: #1f5f8b;
}


            navigation
.me-navigation-table a:hover {
                .querySelectorAll('.maliki-nav-item')
    color: #006b54;
                .forEach(function (item) {
}


                    item.classList.remove('is-open');
.me-knowledge-navigation {
    margin-top: 35px;
    margin-bottom: 35px;
}


                    var button =
                        item.querySelector('.maliki-nav-button');


                    if (button) {
/* =====================================
  JELAJAH PENGETAHUAN
  ===================================== */


                        button.setAttribute(
.me-grid {
                            'aria-expanded',
    display: grid;
                            'false'
    grid-template-columns: repeat(3, minmax(0, 1fr));
                        );
    gap: 20px;
    width: 100%;
    margin: 20px 0 35px;
    align-items: stretch;
}


                    }
.me-card {
    border: 1px solid #d9e2df;
    background: #fff;
    padding: 16px;
    box-sizing: border-box;
    border-radius: 10px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
    width: 100%;
    min-width: 0;
}


                });
.me-card img {
    width: 100%;
    max-width: 250px;
    height: 180px;
    object-fit: contain;
    display: block;
    margin: 0 auto 14px;
}


        });
.me-card a {
    color: #006b54;
    text-decoration: none;
    font-weight: bold;
}


.me-card a:hover {
    color: #c79b2b;
}


        /* =====================================================
          MOBILE / LAYAR KECIL
          ===================================================== */


        window.addEventListener('resize', function () {
/* =====================================
  RESPONSIVE NAVIGATION
  ===================================== */


            if (window.innerWidth > 800) {
@media (max-width: 900px) {
                return;
            }


            navigation
    #maliki-top-navigation
                .querySelectorAll('.maliki-nav-item')
    .maliki-nav-inner {
                .forEach(function (item) {
        justify-content: flex-start;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }


                    item.classList.remove('is-open');
    #maliki-top-navigation
    .maliki-nav-button {
        padding: 13px 12px;
        font-size: 13px;
    }


                });


         });
    .featured-grid {
         flex-wrap: wrap;
    }


    .me-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
     }
     }


}


    /* =========================================================
      JALANKAN SETELAH HALAMAN SIAP
      ========================================================= */


    if (document.readyState === 'loading') {
/* =====================================
  MOBILE NAVIGATION
  ===================================== */


        document.addEventListener(
@media (max-width: 700px) {
            'DOMContentLoaded',
            createMalikiNavigation
        );


     } else {
    #maliki-top-navigation {
        overflow: visible;
     }


         createMalikiNavigation();
    #maliki-top-navigation
    .maliki-nav-inner {
         padding: 0 10px;
        justify-content: flex-start;
    }


    #maliki-top-navigation
    .maliki-nav-button {
        padding: 12px 10px;
        font-size: 13px;
     }
     }


})();
    #maliki-top-navigation
    .maliki-nav-dropdown {
        position: fixed;
 
        left: 10px;
        right: 10px;
 
        top: auto;
 
        min-width: 0;
 
        max-width: 360px;
 
        border-radius: 8px;
 
        box-shadow:
            0 10px 30px rgba(0, 0, 0, 0.15);
    }
 
 
    .me-hero {
        padding: 20px;
    }
 
    .me-hero h1 {
        font-size: 36px;
    }
 
    .me-hero h3.tagline {
        font-size: 20px;
    }
 
    .me-hero-image img {
        height: 160px;
    }
 
    .featured-item {
        width: 100%;
    }
 
}
 
 
/* =====================================
  SMALL MOBILE
  ===================================== */
 
@media (max-width: 600px) {
 
    #maliki-top-navigation
    .maliki-nav-inner {
        overflow-x: auto;
    }
 
    #maliki-top-navigation
    .maliki-nav-button {
        font-size: 12px;
        padding: 11px 9px;
    }
 
    .me-grid {
        grid-template-columns: 1fr;
    }
 
}
 
 
/* =========================================
  MALIKI ENCYCLOPEDIA
  WikiEditor - Isi Artikel
  ========================================= */
 
.me-free-text,
.me-free-text textarea,
.wikiEditor-ui-text,
.wikiEditor-ui-textarea {
    width: 100% !important;
    max-width: none !important;
    box-sizing: border-box !important;
}
 
.wikiEditor-ui {
    width: 100% !important;
    max-width: none !important;
}
 
.wikiEditor-ui-text {
    width: 100% !important;
}
 
.wikiEditor-ui-text textarea {
    width: 100% !important;
    max-width: none !important;
    box-sizing: border-box !important;
}
 
 
/* =========================================
  FLAGGEDREVS
  Sembunyikan Review Form
  Sementara sampai extension dinonaktifkan
  ========================================= */
 
#mw-fr-reviewform {
    display: none !important;
}

Revisi per 27 September 2026 06.53

/* =====================================
   MALIKI ENCYCLOPEDIA
   Common.css v13
   Navigation + World History Inspired Style
   ===================================== */


/* =========================
   GLOBAL
   ========================= */

body {
    background: #f5f8f7;
    color: #24343b;
}

.firstHeading {
    color: #004f40;
}

a {
    color: #1f5f8b;
}

a:hover {
    color: #006b54;
}


/* =====================================
   MALIKI TOP NAVIGATION
   Header Navigation — Phase 1B
   ===================================== */

/*
   Navigasi utama ditempatkan di dalam
   Vector 2022 header.

   Common.js menangani struktur dan interaksi.
   Common.css menangani tampilan.
*/

#maliki-top-navigation {
    width: 100%;
    flex: 0 0 100%;
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    border-top: 1px solid #eaecf0;
    border-bottom: 1px solid #d8dee4;
    background: #ffffff;
    position: relative;
    z-index: 100;
}


/* =========================
   NAVIGATION INNER
   ========================= */

#maliki-top-navigation .maliki-nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: stretch;
    justify-content: center;
    gap: 2px;
    box-sizing: border-box;
}


/* =========================
   NAVIGATION ITEM
   ========================= */

#maliki-top-navigation .maliki-nav-item {
    position: relative;
    display: flex;
    align-items: stretch;
}


/* =========================
   NAVIGATION BUTTON
   ========================= */

#maliki-top-navigation .maliki-nav-button {
    appearance: none;
    -webkit-appearance: none;

    border: 0;
    background: transparent;

    color: #24343b;

    font-family: inherit;
    font-size: 14px;
    font-weight: 600;

    line-height: 1.4;

    padding: 14px 15px;

    margin: 0;

    cursor: pointer;

    white-space: nowrap;

    transition:
        background-color 0.18s ease,
        color 0.18s ease;
}


/* =========================
   ARROW
   ========================= */

#maliki-top-navigation .maliki-nav-arrow {
    display: inline-block;

    margin-left: 5px;

    font-size: 12px;

    color: #72777d;

    transform: translateY(-1px);

    transition:
        transform 0.18s ease,
        color 0.18s ease;
}


/* =========================
   HOVER / FOCUS
   ========================= */

#maliki-top-navigation .maliki-nav-item:hover
.maliki-nav-button,

#maliki-top-navigation .maliki-nav-button:focus {
    background: #f5f8f7;
    color: #006b54;
    outline: none;
}


#maliki-top-navigation .maliki-nav-item:hover
.maliki-nav-arrow,

#maliki-top-navigation .maliki-nav-item.is-open
.maliki-nav-arrow {
    color: #006b54;
    transform: rotate(180deg);
}


/* =========================
   ACTIVE / OPEN ITEM
   ========================= */

#maliki-top-navigation .maliki-nav-item.is-open
.maliki-nav-button {
    background: #f5f8f7;
    color: #006b54;
}


/* =========================
   DROPDOWN
   ========================= */

#maliki-top-navigation .maliki-nav-dropdown {
    position: absolute;

    top: 100%;
    left: 0;

    min-width: 220px;

    padding: 8px 0;

    background: #ffffff;

    border: 1px solid #d8dee4;

    border-radius: 0 0 8px 8px;

    box-shadow:
        0 8px 22px rgba(0, 0, 0, 0.10);

    display: none;

    z-index: 1000;
}


/* =========================
   SHOW DROPDOWN
   ========================= */

#maliki-top-navigation
.maliki-nav-item.is-open
.maliki-nav-dropdown {
    display: block;
}


/*
   Desktop hover support.
   Click interaction tetap disediakan
   oleh Common.js.
*/

@media (min-width: 801px) {

    #maliki-top-navigation
    .maliki-nav-item:hover
    .maliki-nav-dropdown {
        display: block;
    }

}


/* =========================
   DROPDOWN LINKS
   ========================= */

#maliki-top-navigation .maliki-nav-dropdown a {
    display: block;

    padding: 10px 18px;

    color: #24343b;

    font-size: 14px;

    line-height: 1.45;

    text-decoration: none;

    white-space: nowrap;

    border-left: 3px solid transparent;

    transition:
        background-color 0.16s ease,
        color 0.16s ease,
        border-color 0.16s ease;
}


/* =========================
   DROPDOWN HOVER
   ========================= */

#maliki-top-navigation
.maliki-nav-dropdown a:hover {
    background: #f5f8f7;

    color: #006b54;

    border-left-color: #c79b2b;

    text-decoration: none;
}


/* =========================
   NAVIGATION SHADOW
   ========================= */

#maliki-top-navigation::after {
    content: "";

    position: absolute;

    left: 0;
    right: 0;
    bottom: -1px;

    height: 1px;

    background: rgba(0, 0, 0, 0.02);
}


/* =========================
   HOME CONTAINER
   ========================= */

.me-home {
    max-width: 1200px;
    margin: 0 auto;
}


/* =====================================
   HERO BANNER
   ===================================== */

.me-hero-image {
    width: 100%;
    margin: 25px auto 0;
    text-align: center;
}

.me-hero-image img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}


/* =====================================
   HERO CONTENT
   ===================================== */

.me-hero {
    background: #f8f6ef;
    border: 1px solid #ddd;
    border-radius: 12px;
    text-align: center;
    margin: 0 auto 45px;
    padding: 25px 40px 35px;
}

.me-hero h1 {
    font-family: Georgia, serif;
    font-size: 54px;
    font-weight: normal;
    color: #006b54;
    margin: 0 auto 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #ccc;
    max-width: 850px;
}

.me-hero h3.tagline {
    font-size: 24px;
    font-weight: bold;
    color: #24343b;
    margin: 25px 0 15px;
}

.me-hero p {
    font-size: 17px;
    line-height: 1.6;
    max-width: 850px;
    margin: 15px auto;
}


/* =====================================
   FEATURED GRID
   Pengetahuan Pilihan
   ===================================== */

.featured-grid {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 12px;
    margin: 25px auto 45px;
}


/* =====================================
   FEATURED ITEM
   ===================================== */

.featured-item {
    width: 300px;
    flex: none;
    text-align: center;
}


/* =====================================
   IMAGE BOX
   Border hanya gambar
   ===================================== */

.featured-image {
    height: 130px;
    background: #f8f6ef;
    border: 1px solid #ddd;
    border-radius: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.featured-image img {
    max-width: 120px;
    max-height: 120px;
    width: auto;
    height: auto;
    object-fit: contain;
}


/* =====================================
   TITLE
   ===================================== */

.featured-item h3 {
    color: #006b54;
    font-size: 21px;
    margin: 15px 0 10px;
}


/* =====================================
   DESCRIPTION
   ===================================== */

.featured-item p {
    max-width: 240px;
    margin: 0 auto;
    font-size: 14px;
    line-height: 1.55;
}


/* =====================================
   LINK
   ===================================== */

.featured-item a {
    display: inline-block;
    margin-top: 15px;
    color: #c79b2b;
    font-weight: bold;
    text-decoration: none;
}

.featured-item a:hover {
    color: #006b54;
}


/* =====================================
   SECOND SECTION
   ===================================== */

.featured-grid + h2 {
    margin-top: 30px;
}


/* =====================================
   MALIKI ARTICLE STYLE
   ===================================== */

.me-article {
    max-width: 900px;
    margin: auto;
}

.me-article-header h1 {
    font-family: Georgia, serif;
    font-size: 42px;
    color: #006b54;
    border-bottom: 1px solid #ddd;
    padding-bottom: 15px;
}

.me-article-image {
    text-align: center;
    margin: 25px 0;
}

.me-article-image img {
    max-width: 350px;
    height: auto;
}

.me-summary {
    background: #f8f6ef;
    border-left: 4px solid #c79b2b;
    padding: 20px;
    margin: 30px 0;
}

.me-section {
    margin: 35px 0;
}

.me-section h2 {
    color: #006b54;
    border-bottom: 1px solid #ddd;
    padding-bottom: 8px;
}


/* ================================
   NAVIGASI PENGETAHUAN
   ================================ */

.me-navigation {
    margin: 35px 0;
}

.me-navigation h2 {
    color: #006b54;
    font-size: 24px;
    margin-bottom: 25px;
    border-bottom: 1px solid #ddd;
    padding-bottom: 10px;
}

.me-navigation-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.me-navigation-table th {
    width: 180px;
    text-align: left;
    background: #f5f3eb;
    padding: 12px;
    border: 1px solid #ddd;
    font-weight: bold;
}

.me-navigation-table td {
    padding: 12px;
    border: 1px solid #ddd;
}

.me-navigation-table a {
    color: #1f5f8b;
}

.me-navigation-table a:hover {
    color: #006b54;
}

.me-knowledge-navigation {
    margin-top: 35px;
    margin-bottom: 35px;
}


/* =====================================
   JELAJAH PENGETAHUAN
   ===================================== */

.me-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    width: 100%;
    margin: 20px 0 35px;
    align-items: stretch;
}

.me-card {
    border: 1px solid #d9e2df;
    background: #fff;
    padding: 16px;
    box-sizing: border-box;
    border-radius: 10px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
    width: 100%;
    min-width: 0;
}

.me-card img {
    width: 100%;
    max-width: 250px;
    height: 180px;
    object-fit: contain;
    display: block;
    margin: 0 auto 14px;
}

.me-card a {
    color: #006b54;
    text-decoration: none;
    font-weight: bold;
}

.me-card a:hover {
    color: #c79b2b;
}


/* =====================================
   RESPONSIVE NAVIGATION
   ===================================== */

@media (max-width: 900px) {

    #maliki-top-navigation
    .maliki-nav-inner {
        justify-content: flex-start;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    #maliki-top-navigation
    .maliki-nav-button {
        padding: 13px 12px;
        font-size: 13px;
    }


    .featured-grid {
        flex-wrap: wrap;
    }

    .me-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

}


/* =====================================
   MOBILE NAVIGATION
   ===================================== */

@media (max-width: 700px) {

    #maliki-top-navigation {
        overflow: visible;
    }

    #maliki-top-navigation
    .maliki-nav-inner {
        padding: 0 10px;
        justify-content: flex-start;
    }

    #maliki-top-navigation
    .maliki-nav-button {
        padding: 12px 10px;
        font-size: 13px;
    }

    #maliki-top-navigation
    .maliki-nav-dropdown {
        position: fixed;

        left: 10px;
        right: 10px;

        top: auto;

        min-width: 0;

        max-width: 360px;

        border-radius: 8px;

        box-shadow:
            0 10px 30px rgba(0, 0, 0, 0.15);
    }


    .me-hero {
        padding: 20px;
    }

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

    .me-hero h3.tagline {
        font-size: 20px;
    }

    .me-hero-image img {
        height: 160px;
    }

    .featured-item {
        width: 100%;
    }

}


/* =====================================
   SMALL MOBILE
   ===================================== */

@media (max-width: 600px) {

    #maliki-top-navigation
    .maliki-nav-inner {
        overflow-x: auto;
    }

    #maliki-top-navigation
    .maliki-nav-button {
        font-size: 12px;
        padding: 11px 9px;
    }

    .me-grid {
        grid-template-columns: 1fr;
    }

}


/* =========================================
   MALIKI ENCYCLOPEDIA
   WikiEditor - Isi Artikel
   ========================================= */

.me-free-text,
.me-free-text textarea,
.wikiEditor-ui-text,
.wikiEditor-ui-textarea {
    width: 100% !important;
    max-width: none !important;
    box-sizing: border-box !important;
}

.wikiEditor-ui {
    width: 100% !important;
    max-width: none !important;
}

.wikiEditor-ui-text {
    width: 100% !important;
}

.wikiEditor-ui-text textarea {
    width: 100% !important;
    max-width: none !important;
    box-sizing: border-box !important;
}


/* =========================================
   FLAGGEDREVS
   Sembunyikan Review Form
   Sementara sampai extension dinonaktifkan
   ========================================= */

#mw-fr-reviewform {
    display: none !important;
}