/* abu-news fixes */
.swiper-horizontal > .swiper-wrapper,
.swiper-h > .swiper-wrapper,
.swiper:not(.swiper-vertical) > .swiper-wrapper { height: auto; }

/* ---------- Menu: green gradient, always readable (also when sticky) ---------- */
:root { --abu-green-1: #6b0a10; --abu-green-2: #b3141b; --abu-green-3: #e11d27; --abu-accent: #fff3b0; }

.site-header__main,
.site-header.is-sticky .site-header__main,
.site-header-mobile__main,
.site-header-mobile.is-sticky .site-header-mobile__main {
  background: linear-gradient(100deg, var(--abu-green-1) 0%, var(--abu-green-2) 55%, var(--abu-green-3) 100%) !important;
  border: 0 !important;
}
.site-header.is-sticky,
.site-header-mobile.is-sticky { box-shadow: 0 6px 24px rgba(107, 10, 16, .35); }

.site-header__main .rt-menu,
.site-header__main .rt-menu .menu-item a,
.site-header-mobile__main .rt-menu .menu-item a {
  --menu-color: #ffffff;
  --menu-color-active: var(--abu-accent);
  color: #ffffff !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, .35);
}
.site-header__main .rt-menu .menu-item a:hover,
.site-header__main .rt-menu .menu-item.current-menu-item > a,
.site-header__main .rt-menu .menu-item.current_page_item > a,
.site-header-mobile__main .rt-menu .menu-item.current-menu-item > a {
  color: var(--abu-accent) !important;
}
.site-header__main .rt-menu .menu-item a:before { background-color: var(--abu-accent); }
.site-header__main .rt-menu .rt-menu-arrow { color: #fff; }
.site-header__main .rt-menu .sub-menu { background: #6b0a10; }
.site-header__main .rt-menu .sub-menu a { color: #fff !important; }

/* Menu icons */
.abu-menu-icon {
  width: 1.15em; height: 1.15em; flex: 0 0 auto; margin-right: .5em;
  fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}
.rt-menu .menu-item a { gap: 0; }

/* Desktop menu: wrap neatly on narrower screens */
.site-header__main .rt-menu.is-menu-horizontal > ul { gap: .35rem 1.4rem; }
@media (max-width: 1200px) {
  .site-header__main .rt-menu.is-menu-horizontal > ul { gap: .35rem 1rem; }
  .site-header__main { font-size: 12px; }
}

/* ---------- Mobile ---------- */
.site-header-mobile__middle { border-bottom: 3px solid var(--abu-green-3); }
.rt-menu-toggle { color: var(--abu-green-2); }
.rt-menu-toggle span, .rt-menu-toggle span:before, .rt-menu-toggle span:after { background-color: var(--abu-green-2); }
.rt-offcanvas-menu .rt-menu .menu-item a { display: flex; align-items: center; padding: .85rem 1rem; font-weight: 600; }
.rt-offcanvas-menu .rt-menu .menu-item.current-menu-item > a { color: var(--abu-green-3); }
.rt-offcanvas-menu .abu-menu-icon { color: var(--abu-green-3); width: 1.3em; height: 1.3em; margin-right: .75em; }
@media (max-width: 992px) {
  .rt-gotop { right: 14px !important; bottom: 14px !important; }
}

/* ---------- Go-to-top ---------- */
.rt-gotop {
  width: 44px; height: 44px; padding: 0; line-height: 1; border-radius: 50%;
  background: var(--abu-green-3) !important; color: #fff;
  align-items: center; justify-content: center;
  box-shadow: 0 6px 16px rgba(107, 10, 16, .28);
  transition: transform .25s ease, box-shadow .25s ease, background-color .25s ease;
}
.rt-gotop.is-active { display: flex !important; }
.rt-gotop .rt-icon { display: flex; align-items: center; justify-content: center; }
.rt-gotop:hover { background: var(--abu-green-2) !important; transform: translateY(-3px); box-shadow: 0 10px 22px rgba(107, 10, 16, .35); }

.rt-gotop svg { width: 20px; height: 20px; display: block; }

/* ---------- Breadcrumb: no visible scrollbar (still swipe/scrollable) ---------- */
.rt-breadcrumbs { scrollbar-width: none; -ms-overflow-style: none; }
.rt-breadcrumbs::-webkit-scrollbar { display: none; width: 0; height: 0; }


/* ---------- Header: compact sticky bar (logo + menu + search) ---------- */
.site-header { position: relative; z-index: 999; }
.site-header-mobile { position: sticky; top: 0; z-index: 999; }
.abu-bar { display: flex; align-items: center; gap: 22px; }
.abu-bar nav { flex: 1 1 auto; min-width: 0; }
.abu-bar-logo, .abu-bar-search { display: none; align-items: center; color: #fff; flex: 0 0 auto; }
.abu-bar-logo img { height: 36px; width: auto; display: block; }
.abu-bar-search { width: 38px; height: 38px; justify-content: center; border-radius: 50%; background: rgba(255,255,255,.14); transition: background .25s ease, transform .25s ease; }
.abu-bar-search:hover { background: rgba(255,255,255,.28); transform: scale(1.06); }

.site-header.abu-compact {
  position: fixed; top: 0; left: 0; right: 0;
  margin: 0 !important; animation: abuDown .38s cubic-bezier(.22,.8,.3,1);
  box-shadow: 0 8px 26px rgba(107, 10, 16, .38);
}
.site-header.abu-compact .site-header__middle { display: none; }
.site-header.abu-compact .site-header__main { padding-top: 10px; padding-bottom: 10px; }
.site-header.abu-compact .abu-bar-logo,
.site-header.abu-compact .abu-bar-search { display: flex; animation: abuFade .5s ease .1s both; }
.site-header.abu-compact .rt-menu.is-menu-horizontal > ul { flex-wrap: nowrap; gap: .2rem 1.1rem; justify-content: flex-end; }
.site-header.abu-compact .rt-menu .menu-item a { font-size: 12px; white-space: nowrap; }
@media (max-width: 1280px) { .site-header.abu-compact .abu-menu-icon { display: none; } }
.rt-menu .menu-item a { transition: color .2s ease, transform .2s ease; }
.site-header__main { transition: padding .3s ease; }
@keyframes abuDown { from { transform: translateY(-100%); opacity: .4; } to { transform: translateY(0); opacity: 1; } }
@keyframes abuFade { from { opacity: 0; transform: translateX(-8px); } to { opacity: 1; transform: none; } }

.site-header-mobile__middle { transition: padding .3s ease, box-shadow .3s ease; }
.site-header-mobile.abu-scrolled .site-header-mobile__middle { padding-top: 10px; padding-bottom: 10px; box-shadow: 0 6px 18px rgba(0,0,0,.12); }
.site-header-mobile .rt-logo-mobile img { transition: width .3s ease; }
.site-header-mobile.abu-scrolled .rt-logo-mobile img { width: 150px !important; height: auto; }

/* ---------- Flash bar (typewriter) ---------- */
.abu-flash { background: #0e0e10; color: #fff; }
.abu-flash__inner { display: flex; align-items: center; gap: 14px; min-height: 52px; padding-top: 6px; padding-bottom: 6px; }
.abu-flash__label { display: inline-flex; align-items: center; gap: 6px; flex: 0 0 auto; background: var(--abu-green-3); color: #fff; font-weight: 700; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; padding: 6px 12px; border-radius: 999px; }
.abu-flash__item { display: flex; align-items: center; gap: 12px; flex: 1 1 auto; min-width: 0; color: #fff; text-decoration: none; }
.abu-flash__thumb { width: 34px; height: 34px; border-radius: 8px; object-fit: cover; flex: 0 0 auto; }
.abu-flash__text { font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.abu-flash__caret { width: 2px; height: 1.1em; background: var(--abu-accent); flex: 0 0 auto; animation: abuCaret .8s steps(1) infinite; }
.abu-flash__item.is-in .abu-flash__thumb { animation: abuPop .45s ease both; }
.abu-flash__nav { display: inline-flex; gap: 6px; flex: 0 0 auto; }
.abu-flash__btn { width: 28px; height: 28px; display: inline-flex; align-items: center; justify-content: center; border: 0; border-radius: 50%; background: rgba(255,255,255,.1); color: #fff; cursor: pointer; padding: 0; transition: background .2s ease; }
.abu-flash__btn:hover { background: rgba(255,255,255,.25); }
@keyframes abuCaret { 50% { opacity: 0; } }
@keyframes abuPop { from { opacity: 0; transform: scale(.6) rotate(-6deg); } to { opacity: 1; transform: none; } }
@media (max-width: 600px) { .abu-flash__nav { display: none; } .abu-flash__text { font-size: 13px; } .abu-flash__label span { display: none; } }

/* ---------- Slider arrows + active thumbnail ---------- */
.abu-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 5;
  width: 42px; height: 42px; border: 0; border-radius: 50%; padding: 0;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(15, 15, 15, .55); color: #fff; cursor: pointer;
  backdrop-filter: blur(4px); opacity: .85;
  transition: background .25s ease, opacity .25s ease, transform .25s ease;
}
.abu-arrow:hover { background: var(--abu-green-3); opacity: 1; transform: translateY(-50%) scale(1.08); }
.abu-arrow--prev { left: 14px; }
.abu-arrow--next { right: 14px; }
.rt-swiper-gallery__thumbnails .swiper-slide { cursor: pointer; opacity: .7; transition: opacity .3s ease, transform .3s ease; }
.rt-swiper-gallery__thumbnails .swiper-slide.abu-thumb-active,
.rt-swiper-gallery__thumbnails .swiper-slide:hover { opacity: 1; }
.rt-swiper-gallery__thumbnails .swiper-slide.abu-thumb-active .rt-post__thumbnail { box-shadow: 0 0 0 3px var(--abu-green-3); }

/* ---------- Tooltip ---------- */
.abu-tip {
  position: fixed; z-index: 100000; pointer-events: none; left: 0; top: 0;
  max-width: 280px; padding: 7px 12px; border-radius: 10px;
  background: rgba(20, 20, 22, .94); color: #fff; font-size: 12.5px; line-height: 1.35; font-weight: 500;
  box-shadow: 0 10px 28px rgba(0,0,0,.28); border-left: 3px solid var(--abu-green-3);
  opacity: 0; transform: translateY(6px) scale(.96);
  transition: opacity .18s ease, transform .18s ease;
}
.abu-tip.is-show { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .site-header.abu-compact, .abu-flash__caret, .abu-flash__item.is-in .abu-flash__thumb { animation: none; }
}
.abu-header-spacer { margin: 0 !important; padding: 0 !important; }
.rt-block-heading__title a { color: inherit; text-decoration: none; }

/* ---------- Arabic text (Amiri, as swaraquran.com) ---------- */
.abu-arab { font-family: 'Amiri', 'Traditional Arabic', 'Scheherazade New', serif; font-size: 2em; line-height: 1.9; font-weight: 400; color: inherit; }
.abu-arab--block { display: block; text-align: right; line-height: 2.15; margin: .35em 0 .5em; }
.entry-content .abu-arab, .rt-post-content .abu-arab, article .abu-arab { font-size: 2em; }
.abu-flash__caret, .abu-flash__nav { display: none !important; }
.rt-avatar img, .avatar { object-fit: cover; border-radius: 50%; background: #000; }
/* honorifics (ﷺ ﷻ, radhiyallahu 'anhu, ...) stay small */
.abu-arab-honor { font-family: 'Amiri', 'Traditional Arabic', serif; font-size: 1.15em; line-height: 1.6; font-weight: 400; }
.abu-arab .abu-arab-honor { font-size: .56em; }
a.abu-url { unicode-bidi: isolate; direction: ltr; word-break: break-all; }
.rt-avatar img, .avatar { background: transparent !important; border-radius: 0 !important; }
/* ---------- Tighter spacing between flash bar and logo row ---------- */
.site-header { margin-top: 0 !important; }
.site-header .site-header__middle { padding-top: 14px; padding-bottom: 14px; }
.site-header-mobile { margin-top: 0 !important; }
.site-header-mobile .site-header-mobile__middle { padding-top: 14px; padding-bottom: 14px; }
.site-header-mobile.abu-scrolled .site-header-mobile__middle { padding-top: 8px; padding-bottom: 8px; }
/* ---------- Arabic size standard ---------- */
.abu-arab-sm { font-family: 'Amiri', 'Traditional Arabic', serif; font-size: 1.15em; line-height: 1.6; font-weight: 400; }
.abu-arab-sm .abu-arab-honor { font-size: 1em; }
/* inside headings, the table of contents and links: never the big size */
h1 .abu-arab, h2 .abu-arab, h3 .abu-arab, h4 .abu-arab, h5 .abu-arab, h6 .abu-arab,
.rt-toc .abu-arab, .rt-toc-list .abu-arab, a .abu-arab {
  display: inline !important; font-size: 1.1em !important; line-height: 1.5 !important; text-align: inherit !important; margin: 0 !important;
}
h1 .abu-arab-honor, h2 .abu-arab-honor, h3 .abu-arab-honor, h4 .abu-arab-honor, h5 .abu-arab-honor, h6 .abu-arab-honor,
.rt-toc .abu-arab-honor, .rt-toc-list .abu-arab-honor, a .abu-arab-honor { font-size: 1em !important; }
/* ---------- Search autocomplete ---------- */
.abu-sg { position: absolute; left: 0; right: 0; top: calc(100% + 8px); z-index: 100001; background: #fff; color: #1b1411;
  border: 1px solid var(--wp--preset--color--outline, #e2d7c2); border-top: 3px solid var(--abu-green-3, #e11d27); border-radius: 2px;
  box-shadow: 0 18px 40px rgba(0,0,0,.18); max-height: min(70vh, 460px); overflow: auto; display: none; text-align: left; min-width: 280px; }
.abu-sg.is-open { display: block; animation: abuFade .18s ease both; }
.abu-sg.is-loading:after { content: ""; position: absolute; top: 0; left: 0; height: 2px; width: 40%; background: var(--abu-green-3, #e11d27); animation: abuSgLoad 1s linear infinite; }
@keyframes abuSgLoad { from { left: -40%; } to { left: 100%; } }
.abu-sg__item { display: flex; align-items: center; gap: 12px; padding: 10px 14px; text-decoration: none; color: inherit; border-bottom: 1px solid #f1e9d9; transition: background .15s ease; }
.abu-sg__item:hover, .abu-sg__item.is-active { background: #fbf4e6; }
.abu-sg__img { width: 58px; height: 44px; flex: 0 0 auto; object-fit: cover; border-radius: 2px; background: #eee; display: block; }
.abu-sg__catico { width: 58px; height: 44px; flex: 0 0 auto; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 20px; color: #fff; background: #111; border-radius: 2px; }
.abu-sg__body { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.abu-sg__title { font-size: 14px; font-weight: 600; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.abu-sg__title mark { background: #ffe9a8; color: inherit; padding: 0 1px; border-radius: 2px; }
.abu-sg__meta { font-size: 11.5px; color: #7a6c61; }
.abu-sg__all { display: block; padding: 11px 14px; font-size: 13px; font-weight: 600; color: var(--abu-green-2, #b3141b); text-decoration: none; background: #fff; position: sticky; bottom: 0; }
.abu-sg__all:hover { background: #fbf4e6; }
.abu-sg__empty { padding: 16px; font-size: 13.5px; color: #7a6c61; }
.retheme-dark-scheme .abu-sg { background: #1c1c1e; color: #eee; border-color: #333; }
.retheme-dark-scheme .abu-sg__item { border-color: #2c2c2e; }
.retheme-dark-scheme .abu-sg__item:hover, .retheme-dark-scheme .abu-sg__item.is-active, .retheme-dark-scheme .abu-sg__all:hover { background: #2a2a2d; }
.retheme-dark-scheme .abu-sg__all { background: #1c1c1e; }
/* autocomplete inside the search modal: let it overflow the white box */
.rt-search-main .rt-modal__inner, .rt-search-main .rt-modal__body, .rt-search-main .rt-modal__dialog { overflow: visible !important; max-height: none !important; }
.rt-search-main .rt-global-search { position: relative; }
.rt-search-main .abu-sg { top: calc(100% + 6px); z-index: 100002; }
/* ---------- Comment-count badge on thumbnails ---------- */
.abu-cc { position: absolute; left: 8px; top: 8px; z-index: 3; display: inline-flex; align-items: center; gap: 5px; padding: 3px 8px 3px 7px;
  background: rgba(17,17,17,.82); color: #fff; font-size: 11.5px; font-weight: 700; line-height: 1.4; border-radius: 2px; pointer-events: none;
  backdrop-filter: blur(3px); border-left: 3px solid var(--abu-green-3, #e11d27); }
.abu-cc svg { display: block; }
.rt-post__thumbnail { position: relative; }

/* ---------- "Muat lebih banyak": spinner only on the button ---------- */
.rt-loading:before, .rt-loading:after { content: none !important; display: none !important; }
.rt-loading { opacity: 1 !important; }
.js-retheme-loop-load { position: relative; transition: padding .2s ease; }
.js-retheme-loop-load.is-loading { padding-left: 46px; pointer-events: none; opacity: .85; }
.js-retheme-loop-load.is-loading::before {
  content: ""; position: absolute; left: 18px; top: 50%; width: 16px; height: 16px; margin-top: -8px; border-radius: 50%;
  border: 2px solid rgba(0,0,0,.18); border-top-color: var(--abu-green-3, #e11d27); animation: abuSpin .7s linear infinite;
}
@keyframes abuSpin { to { transform: rotate(360deg); } }

/* ---------- Footer logo ---------- */
.site-footer .rt-logo { display: block; width: 100% !important; max-width: 290px; }
.site-footer .rt-logo img { width: 100%; height: auto; }

/* Visually hidden (still read by search engines and screen readers) */
.abu-sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.abu-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; opacity: 0; }
