/* --- FONT IMPORT --- */
@import url(https://fonts.googleapis.com/css?family=Poppins:300,400,500,600,700);

@font-face {
    font-family: fontArab;
    src: url(../fonts/lpmq.ttf)
}

/* --- RESET & BODY SETTING (KUNCI FULL SCREEN) --- */
html, body {
    width: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden; /* Mencegah scroll samping yang tidak perlu */
    font-family: Poppins, sans-serif;
    background: #fafafa;
    unicode-bidi: bidi-override !important;
}

p {
    font-family: Poppins, sans-serif;
    font-size: 1.1em;
    font-weight: 300;
    line-height: 1.7em;
    color: #999;
}

a, a:focus, a:hover {
    color: inherit;
    text-decoration: none;
    transition: all .3s;
}

/* --- NAVBAR --- */
.navbar {
    padding: 15px 10px;
    background: #fff;
    border: none;
    border-radius: 0;
    margin-bottom: 0; /* Ubah margin-bottom jadi 0 agar nyambung dengan konten */
    box-shadow: 0 2px 5px rgba(0, 0, 0, .1); /* Shadow lebih halus */
}

.navbar-btn {
    box-shadow: none;
    outline: 0 !important;
    border: none;
}

.line {
    width: 100%;
    height: 1px;
    border-bottom: 1px dashed #ddd;
    margin: 40px 0;
}

/* --- WRAPPER & SIDEBAR --- */
.wrapper {
    display: flex;
    width: 100%;
    align-items: stretch;
}

#sidebar {
    min-width: 250px;
    max-width: 250px;
    background: #7386d5;
    color: #fff;
    transition: all .3s;
}

#sidebar.active {
    margin-left: -250px;
}

#sidebar .sidebar-header {
    padding: 20px;
    background: #6d7fcc;
}

#sidebar ul.components {
    padding: 20px 0;
    border-bottom: 1px solid #47748b;
}

#sidebar ul p {
    color: #fff;
    padding: 10px;
}

#sidebar ul li a {
    padding: 10px;
    font-size: 1.1em;
    display: block;
}

#sidebar ul li a:hover {
    color: #7386d5;
    background: #fff;
}

#sidebar ul li.active>a,
a[aria-expanded=true] {
    color: #fff;
    background: #6d7fcc;
}

a[data-toggle=collapse] {
    position: relative;
}

.dropdown-toggle::after {
    display: block;
    position: absolute;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
}

ul ul a {
    font-size: .9em !important;
    padding-left: 30px !important;
    background: #6d7fcc;
}

ul.CTAs {
    padding: 20px;
}

ul.CTAs a {
    text-align: center;
    font-size: .9em !important;
    display: block;
    border-radius: 5px;
    margin-bottom: 5px;
}

a.download {
    background: #fff;
    color: #7386d5;
}

a.article,
a.article:hover {
    background: #6d7fcc !important;
    color: #fff !important;
}

/* --- CONTENT AREA (PERBAIKAN UTAMA) --- */
#content {
    width: 100%;
    padding: 0; /* UBAH DARI 20px JADI 0 AGAR FULL SCREEN */
    min-height: 100vh;
    transition: all .3s;
}

/* Agar konten di dalam #content tetap rapi (tidak nempel banget) */
#content > .container, 
#content > .container-fluid {
    padding-top: 20px;
    padding-bottom: 20px;
}

/* --- MEDIA QUERY (MOBILE) --- */
@media (max-width: 768px) {
    #sidebar {
        margin-left: -250px;
    }

    #sidebar.active {
        margin-left: 0;
    }

    #sidebarCollapse span {
        display: none;
    }
    
    /* Perbaikan Mobile: Pastikan padding tidak membuat layar goyang */
    #content {
        padding: 0; 
    }
}

/* --- LIST SURAT --- */
.list-surat ul {
    margin: 0;
    padding: 0;
    list-style-type: none;
    max-height: 200px;
    overflow: auto;
}

.list-surat ul li {
    margin: 0;
    padding: 0;
}

.list-surat ul li a {
    padding: 5px 10px;
}

.list-surat h4 {
    margin: 0;
    padding: 10px 20px;
    font-size: 16px;
}

.list-surat, .list-unstyled {
    margin: 0;
    padding: 0;
}

/* --- AYAT ITEMS --- */
.ayat-item {
    border-bottom: 1px solid #ccc;
    padding: 15px; /* Tambah padding agar nafas */
    margin-bottom: 5px;
    background: #fff; /* Tambah background putih */
}

.ayat-item audio {
    width: 100%;
    box-sizing: border-box;
    border-radius: 4px;
    margin-top: 10px;
}

.arab {
    direction: rtl;
    font-size: 28px;
    line-height: 185%;
    font-family: fontArab, "Traditional Arabic", Tahoma, sans-serif;
    font-weight: 400;
    text-align: right;
    padding: 10px 0 5px 0;
}

.translation {
    line-height: 150%;
    padding: 10px 0;
    font-size: 14px;
}

.translation em {
    background-color: #ff0;
    font-style: normal;
}

/* --- SEARCH FORM --- */
.search-form {
    position: relative;
    margin: 10px; /* Beri sedikit jarak */
}

.search-form input[type=text] {
    width: 100%;
    box-sizing: border-box;
    padding: 10px 60px 10px 15px;
    font-size: 14px;
    border: 1px solid #ccc;
    border-radius: 5px; /* Sedikit rounded */
}

.search-form input[type=text]:focus {
    outline: 0;
    border-color: #7386d5;
}

.search-form input[type=submit] {
    position: absolute;
    right: 8px;
    top: 8px;
    padding: 3px 10px;
    font-size: 14px;
    background: transparent;
    border: none;
    color: #7386d5;
    font-weight: bold;
    cursor: pointer;
}

.link-surat {
    padding: 5px 0 0 0;
}

#btn-back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: none;
    z-index: 9999;
}

.main-content {
    padding: 0; /* Hapus padding di main content wrapper */
    width: 100%;
}