/* ---------------------------------------------------
   ILMUDALIL - Themed Islamic CSS
--------------------------------------------------- */

body {
    background: #f9fafc;
    color: #23312d;
    font-family: 'Source Sans Pro', 'Segoe UI', Arial, sans-serif;
}

.navbar {
    background: #24613c !important;
    border-bottom: 3px solid #a7df95;
}

.navbar .navbar-brand {
    color: #fff !important;
    font-family: 'Amiri', serif;
    font-weight: bold;
    font-size: 1.6rem;
}

.navbar-nav .nav-link {
    color: #f8ffe7 !important;
    font-weight: 500;
    margin-right: 10px;
    transition: color 0.2s;
}

.navbar-nav .nav-link:hover, .navbar-nav .nav-link.active {
    color: #70b77e !important;
}

.site-footer {
  background: #24613c;
  color: #fff;
  font-family: 'Source Sans Pro', Arial, sans-serif;
  letter-spacing: 0.01em;
  margin-top: 2em;
  position: relative;
}
.site-footer .footer-title {
  color: #fff !important;
  font-weight: 700;
  letter-spacing: 1px;
}
.footer-divider {
  display: inline-block;
  border-bottom: 2px solid #a7df95;
  width: 34px;
  margin-left: 10px;
  position: relative;
  top: -3px;
}
.footer-link {
  color: #a7df95 !important;
  text-decoration: none;
  transition: color 0.18s, text-decoration 0.2s;
}
.footer-link:hover {
  color: #fff;
  text-decoration: underline;
}
.brand-highlight {
  color: #a7df95;
  font-weight: 700;
}
.footer-ic {
  color: #a7df95;
  min-width: 20px;
  margin-right: 7px;
}
.footer-supported {
  color: #a7df95;
  font-weight: 600;
}
.footer-bottom {
  font-size: 1em;
  background: #234c29;
}
.footer-scrollup {
  position: fixed;
  right: 24px;
  bottom: 28px;
  width: 44px;
  height: 44px;
  background: #a7df95;
  border-radius: 50%;
  color: #24613c;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2em;
  box-shadow: 0 3px 16px #0003;
  z-index: 1999;
  cursor: pointer;
  transition: background .15s, color .15s;
  text-decoration: none;
  opacity: 0.85;
}
.footer-scrollup:hover {
  background: #fff;
  color: #24613c;
  opacity: 1;
}
@media (max-width: 900px) {
  .footer-title { font-size: 1.09em; }
}
@media (max-width: 576px) {
  .site-footer .container,
  .site-footer .row { padding: 0 8px; }
  .footer-title { font-size: 1.05em; margin-bottom: 6px; }
}

h1, h2, h3, h4, h5 {
    font-family: 'Amiri', serif;
    color: #234c29;
}

.list-group-item {
    background: #fff;
    border: 1px solid #e2f2de;
    border-radius: 8px;
    margin-bottom: 10px;
    padding-top: 15px;
    padding-bottom: 15px;
}

.list-group-item h4 a {
    color: #24613c;
    text-decoration: none;
    transition: color 0.2s;
}
.list-group-item h4 {
  font-weight: bold;
}
.list-group-item h4 a:hover {
    color: #328d54;
     
}

.btn-success, .btn-primary {
    background: linear-gradient(90deg, #328d54 80%, #24613c);
    border: none;
}
.btn-success:hover, .btn-primary:hover {
    background: #24613c;
}

/* Islamic green ornament border for card highlight */
.ornament {
    border: 2.5px solid #a7df95 !important;
    box-shadow: 0 4px 16px 0 rgba(75, 156, 64, 0.06);
    border-radius: 16px !important;
}

.card {
    border-radius: 1rem;
    border: none;
}

/* Amiri font for ayat/dalil */
.arabic, .dalil-arabic {
    font-family: 'Amiri', serif;
    font-size: 1.3em;
    direction: rtl;
    color: #107446;
    margin-bottom: .5em;
    line-height: 1.8;
}

.dalil-tafsir, .tafsir {
    font-style: italic;
    background: #23704811;
    border-left: 3px solid #328d54;
    padding: 9px 18px;
    margin-bottom: 16px;
}

/* Highlight verse number, sumber dll */
.dalil-sumber {
    background: #c6f5e2;
    color: #1f4d2c;
    font-size: .95em;
    padding: 2px 13px;
    border-radius: 12px;
    margin-left: 8px;
}

.badge-topik {
    background: #8fb596;
    color: #fff;
    font-size: 0.9em;
    padding: 3px 11px;
    border-radius: 8px;
    margin-right: 5px;
}

/* Pencarian Box */
#searchbox, .searchbox {
    border: 2px solid #a7df95;
    border-radius: 6px;
    width: 100%;
    max-width: 340px;
    font-size: 1.1em;
    padding: 7px 10px;
    margin-bottom: 15px;
}

.pagination .page-link {
    color: #24613c;
}
.pagination .active .page-link,
.pagination .page-link.active {
    background: #70b77e;
    border: none;
    color: #fff;
}

@media (max-width: 768px) {
    .navbar {
        padding: 0.35em 1.1em;
    }
    .container {
        padding-left: 0.7em;
        padding-right: 0.7em;
    }
    .list-group-item h4 {
        font-size: 1.18rem;
    }
}

::-webkit-scrollbar {
    width: 7px;
    background: #def6d8;
}
::-webkit-scrollbar-thumb {
    background: #8ebfa7;
}
.artikel-thumb {
    min-height: 120px;
    height: 100%;           /* Tinggi gambar = tinggi card! */
    object-fit: cover;
    border-radius: 0.9rem 0 0 0.9rem;
    box-shadow: 0 1px 6px #24613c21;
    background: #dbf1e7;
    border-right: 2px solid #a7df95;
}
@media (max-width: 768px) {
  .artikel-thumb {
    min-height: 80px;
  }
}
.article-tags {
    text-align: right; 
    /* pastikan block, agar tag badge selalu di bawah */
    width: 100%;
}
.article-tags .badge-topik {
    margin-left: 3px;
    margin-bottom: 2px;
}
@media (max-width: 768px) {
  .article-tags {
    text-align: left !important; /* agar di mobile pas */
    margin-top: 5px;
  }
}
.wa-float-btn {
  position: fixed;
  right: 26px;
  bottom: 30px;
  width: 55px;
  height: 55px;
  background: #25d366;
  color: #fff;
  border-radius: 50%;
  box-shadow: 0 2px 12px #0002;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2001;
  font-size: 2.2em;
  transition: box-shadow 0.18s, background 0.15s;
  text-align: center;
  text-decoration: none;
  opacity: 0.95;
}
.wa-float-btn:hover,
.wa-float-btn:focus {
  background: #128c4c;
  color: #fff;
  box-shadow: 0 4px 18px #25d36655;
  text-decoration: none;
}
@media (max-width:600px) {
  .wa-float-btn { right: 14px; bottom: 20px; width: 46px; height: 46px; font-size: 1.7em;}
}
.nav-item.active .nav-link, .nav-link.active {
  color: #ffc107 !important;
  background: #24613c !important;
  border-radius: 5px;
  font-weight: 600;
}
/* End Islamic Theme CSS */