/*
Theme Name: ASSAADAH v1.10
Theme URI: https://ruzqa.id
Author: RUZQA.ID
Author URI: https://ruzqa.id
Description: Clean, light, documentary-style WordPress theme for Pondok Pesantren Assa'adah KHM 'Isa 'Abbas. Website Resmi Pesantren untuk Pendidikan, Dakwah, dan Kehidupan Santri. Fitur: Amiri Arabic Typography Engine, Word-Style Natural Paragraphs, 16:9 Cinematic Posts, Documentary Grid Layout, Mobile & SEO Friendly. Created for assaadah.id by ruzqa.id.
Version: 1.1.0
License: GNU General Public License v2 or later
Text Domain: assaadah V1.10
*/

/* 1. IMPORT GOOGLE FONT ARAB AMIRI (STANDAR LARUT.ID) */
@import url('https://fonts.googleapis.com/css2?family=Amiri:ital,wght@0,400;0,700;1,400;1,700&display=swap');

/* 2. TIPOGRAFI ARAB & KHAT NASKHI OTOMATIS */
.arabic-text, 
[lang="ar"],
[dir="rtl"],
.entry-content p:lang(ar),
.entry-content blockquote:lang(ar) {
    font-family: 'Amiri', 'Traditional Arabic', 'Scheherazade New', serif !important;
    font-size: 1.55rem !important;
    line-height: 2.3 !important;
    direction: rtl !important;
    text-align: right !important;
    word-spacing: 2px !important;
    color: #111111 !important;
}

/* 3. FORMAT PARAGRAF NATURAL ALA MICROSOFT WORD (ENTER & SHIFT+ENTER) */
.entry-content p {
    margin-bottom: 1.4rem;
    line-height: 1.85;
}

.entry-content p br {
    display: block;
    content: "";
    margin-top: 8px;
}

/* 4. PEMBATASAN UKURAN FOTO DI HALAMAN TUNGGAL (PAGE & SINGLE CONTENT) */
.single .entry-content img,
.page .entry-content img {
    max-width: 420px;
    height: auto;
    display: block;
    margin: 25px auto;
    border-radius: 4px;
    border: 1px solid #e2e2de;
}

/* Khusus Foto Utama Hero di Beranda & Bingkai 16:9 Single Post tetap 100% */
.hero-section img {
    max-width: 100% !important;
    margin: 0 !important;
}

.post-featured-16-9 img.wp-post-image {
    max-width: 100% !important;
    width: 100% !important;
    height: 100% !important;
    margin: 0 !important;
    object-fit: cover !important;
    object-position: center !important;
    border: none !important;
    border-radius: 0 !important;
}

/* 5. FOOTER STYLING (WARNA TEKS LINK PUTIH TERANG & BEBAS BULLET) */
.site-footer a, 
.site-footer a:visited,
.site-footer ul li a { 
    color: #ffffff !important; 
    opacity: 0.95;
    text-decoration: none;
}

.site-footer a:hover { 
    color: #ffffff !important; 
    opacity: 1; 
    text-decoration: underline;
}

.site-footer ul { 
    list-style: none !important; 
    padding: 0 !important; 
    margin: 0 !important; 
}

.site-footer li { 
    margin-bottom: 8px; 
}

/* ===================================================
   6. RESPONSIVE MOBILE VIEWPORT (Maksimal Layar 768px)
   =================================================== */
@media screen and (max-width: 768px) {

    /* HEADER & MENU NAVIGASI */
    .header-inner {
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
        gap: 14px !important;
        padding: 15px 10px !important;
    }

    .main-nav {
        display: block !important;
        width: 100% !important;
    }

    .main-nav ul {
        display: flex !important;
        flex-wrap: wrap !important;
        justify-content: center !important;
        gap: 12px !important;
        padding: 0 !important;
        margin: 0 !important;
        list-style: none !important;
    }

    .main-nav li {
        margin: 0 !important;
    }

    .main-nav a {
        font-size: 0.9rem !important;
    }

    /* HERO SECTION */
    .hero-grid {
        display: flex !important;
        flex-direction: column !important;
        gap: 20px !important;
    }

    .hero-title {
        font-size: 1.6rem !important;
        line-height: 1.25 !important;
    }

    /* SECTION GRID 01, 02, 03 (JEJAK SEJARAH, ARSIP, PENGASUH) */
    .section-block .container {
        display: flex !important;
        flex-direction: column !important;
        gap: 18px !important;
    }

    .section-block .container > div:first-child {
        width: 100% !important;
    }

    .section-block .container img {
        max-width: 200px !important;
        height: auto !important;
        margin: 10px 0 0 0 !important;
    }

    .section-block h2 {
        font-size: 1.4rem !important;
        margin-top: 5px !important;
    }

    /* CONTAINER & PADDING GLOBAL */
    .container {
        padding-left: 20px !important;
        padding-right: 20px !important;
    }

    .section-block {
        padding: 35px 0 !important;
    }

    .footer-grid {
        grid-template-columns: 1fr !important;
        gap: 25px !important;
    }
}
