* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Arial, sans-serif;
}

html {
  scroll-behavior: smooth;
}

/* ===== RAMADHAN FULL BACKGROUND ===== */

body {
  margin: 0;
  min-height: 100vh;
  background: linear-gradient(
    160deg,
    #4a84e2 0%,
    #295fb7 40%,
    #0a366c 70%,
    #062a58 100%
  );
  background-attachment: fixed;
}

/* Ornamen Tengah Halus */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: url("../assets/images/kaligrafi.png") center -6vh no-repeat;
  background-size: min(900px, 92vw);
  opacity: 0.038;
  filter: grayscale(100%) contrast(105%) brightness(140%);
  pointer-events: none;
}

/* ===============================
   MOBILE BACKGROUND FIX
=============================== */

@media (max-width: 768px) {

  body::before {
    background-size: 92vw;   /* ikut lebar layar */
    background-position: center;
    opacity: 0.025;
    filter: grayscale(100%) contrast(105%) brightness(155%) blur(0.6px);
  }

}

/* =====================
   NAVBAR
===================== */
.navbar {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 20px;
  background: #0b2c5f;
  color: white;

  position: relative;   /* penting */
  z-index: 1000;        /* supaya di atas hero */
  overflow: visible;    /* biar dropdown tidak kepotong */
}

/* Navbar home — desktop: baris 2 “menyatu” lagi dengan flex (display:contents) */
@media (min-width: 641px) {
  body.home-page .navbar .navbar-home-row2 {
    display: contents;
  }
}

/*
  Mobile home (id/en): baris1 kiri = menu + teks portal, kanan = dark
  baris2 dari kiri: Online → bahasa → bookmark
  AR (body.rtl-ui): grid & flex mengikuti direction:rtl — cermin otomatis
*/
@media (max-width: 640px) {
  body.home-page .navbar {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    grid-template-rows: auto auto;
    align-items: center;
    column-gap: 8px;
    row-gap: 10px;
    padding: 12px 12px 12px;
    flex-wrap: nowrap;
  }

  body.home-page .navbar > .menu-btn,
  body.home-page .navbar > .logo,
  body.home-page .navbar > #themeToggle,
  body.home-page .navbar > .navbar-home-row2 {
    order: 0;
  }

  body.home-page .navbar .menu-btn {
    grid-column: 1;
    grid-row: 1;
    margin-right: 0;
    justify-self: start;
  }

  body.home-page .navbar .logo {
    position: static;
    transform: none;
    grid-column: 2;
    grid-row: 1;
    justify-self: start;
    align-self: center;
    min-width: 0;
    max-width: 100%;
    font-size: 14px;
    z-index: 1;
    pointer-events: auto;
  }

  body.home-page .navbar .logo .logo-glass {
    max-width: 100%;
    padding: 6px 10px;
    gap: 8px;
  }

  body.home-page .navbar .logo .logo-text {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  body.home-page .navbar .logo-icon {
    width: 18px;
    height: 18px;
  }

  body.home-page .navbar #themeToggle {
    grid-column: 3;
    grid-row: 1;
    margin-left: 0;
    margin-inline-start: auto;
    justify-self: end;
    font-size: 18px;
  }

  body.home-page .navbar .navbar-home-row2 {
    grid-column: 1 / -1;
    grid-row: 2;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: nowrap;
    gap: 10px;
    min-width: 0;
  }

  body.home-page .navbar .navbar-home-row2 .offline-indicator {
    flex: 0 0 auto;
    font-size: 10px;
    padding: 5px 8px;
  }

  body.home-page .navbar .navbar-home-row2 .lang-dropdown {
    flex: 0 0 auto;
  }

  body.home-page .navbar .navbar-home-row2 .nav-bookmark-icon {
    flex: 0 0 auto;
    width: 36px;
    height: 36px;
    font-size: 18px;
    margin-left: 0;
  }

  body.home-page .navbar .lang-btn {
    gap: 4px;
    padding: 4px 8px;
    font-size: 12px;
  }

  body.home-page .navbar .lang-menu {
    min-width: 130px;
    top: 36px;
  }

  body.rtl-ui.home-page .navbar .logo {
    margin-left: 0;
    margin-right: 0;
  }
}

/* Fallback mobile untuk halaman lain yang pakai navbar flex */
@media (max-width: 640px) {
  .navbar {
    flex-wrap: wrap;
    gap: 10px;
    padding: 10px 12px;
    position: relative;
  }

  .menu-btn {
    margin-right: 0;
  }

  .theme-toggle {
    margin-left: 0;
    font-size: 18px;
  }

  .offline-indicator {
    font-size: 11px;
    padding: 5px 10px;
    max-width: 100%;
  }

  .lang-btn {
    gap: 6px;
    padding: 4px 8px;
    font-size: 12px;
  }

  .lang-menu {
    min-width: 130px;
    top: 36px;
  }

  .nav-bookmark-icon {
    width: 36px;
    height: 36px;
    font-size: 18px;
    margin-left: 0;
  }
}

/* Tombol hamburger — lebih kecil + glass */
.menu-btn {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 3px;
  width: 28px;
  height: 28px;
  padding: 5px;
  margin-right: 15px;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.4);
  background: rgba(255, 255, 255, 0.2);
  background-image: none;
  box-shadow:
    0 8px 20px rgba(15, 23, 42, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  cursor: pointer;
  color: #fff;
  transition: background 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.menu-btn:hover {
  background: rgba(255, 255, 255, 0.3);
  border-color: rgba(186, 230, 253, 0.45);
  box-shadow:
    0 10px 24px rgba(15, 23, 42, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.65);
}

.menu-btn-bar {
  display: block;
  width: 14px;
  height: 1.75px;
  background: currentColor;
  border-radius: 2px;
  transition: all 0.25s ease;
}

.menu-btn-bar--short {
  width: 9px;
  align-self: flex-start;
}

body.rtl-ui .menu-btn-bar--short {
  align-self: flex-end;
}

.logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  font-size: 18px;
  margin: 0;
}

/* Ikon + teks dalam satu chip glass */
.logo-glass {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.12);
  box-shadow:
    0 10px 28px rgba(2, 6, 23, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.logo-icon {
  width: 20px;
  height: 20px;
  object-fit: contain;
  display: block;
  flex-shrink: 0;
}

.logo-text {
  display: block;
  min-width: 0;
  white-space: nowrap;
}

 .navbar .logo {
   color: #f8fbff;
   font-weight: 700;
   text-shadow: 0 6px 16px rgba(6, 26, 64, 0.35);
 }

.theme-toggle {
  background: transparent;
  border: none;
  font-size: 20px;
  cursor: pointer;
  color: #fff;
  margin-left: auto;
}

.theme-toggle:hover {
  opacity: 0.8;
}

/* =====================
   HERO SECTION
===================== */

.hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 72px 40px 88px;
}

.hero-content {
  max-width: 560px;
  text-align: center;
  padding: 36px 0 40px; /* jarak atas bawah konten hero */

  display: flex;
  flex-direction: column;
  align-items: center;
}


@keyframes fadeHero {
  from {
    opacity: 0;
    transform: translateY(15px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero h1 {
  font-size: 42px;
  line-height: 1.2;
  font-family: "Playfair Display", serif;
}

.hero p {
  font-size: 18px;
  line-height: 1.7;
  color: #e5e7eb;
  margin-bottom: 28px;
  font-family: "Libre Baskerville", serif;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 22px;
}

.hero-buttons {
  display: flex;
  gap: 14px;
  margin-top: 22px;
}

.hero-buttons .btn-secondary {
  position: relative;
  background: rgba(255, 215, 0, 0.15);
  color: #fde047;
  border: 1px solid rgba(253, 224, 71, 0.55);
  box-shadow: 0 0 0 rgba(253,224,71,0);
  transition: all 0.3s ease;
}

.hero-buttons .btn-secondary:hover {
  background: rgba(253, 224, 71, 0.25);
  box-shadow:
    0 0 18px rgba(253,224,71,0.55),
    0 8px 22px rgba(0,0,0,0.25);
  transform: translateY(-2px);
}


.btn-primary,
.btn-secondary {
  display: inline-block;
  padding: 12px 22px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  transition: 0.25s ease;
}

.btn-primary {
  background: #22c55e;
  color: #052e16;
}

.btn-primary:hover {
  background: #16a34a;
  color: #ecfdf5;
}

.btn-secondary {
  background: rgba(255,255,255,0.15);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.25);
}

.btn-secondary:hover {
  background: rgba(255,255,255,0.25);
}

/* Dark mode hero */
body.dark .hero {
  background: linear-gradient(135deg, #020617, #0f172a);
}

body.dark .hero p {
  color: #cbd5f5;
}

/* Hero: strip artikel berputar (teks saja: label + judul + ringkas) */
.hero-rotating-wrap {
  margin-top: 18px;
  margin-bottom: clamp(1.1rem, 3.2vw, 1.85rem);
  width: 100%;
  max-width: 640px;
  position: relative;
  z-index: 3;
}

.hero-rotating-wrap[hidden] {
  display: none !important;
}

.hero-rotating-card {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  width: 100%;
  padding: 14px 16px;
  border-radius: 18px;
  text-decoration: none;
  color: inherit;
  position: relative;
  z-index: 3;
  cursor: pointer;
  pointer-events: auto;
  isolation: isolate;
  -webkit-tap-highlight-color: rgba(56, 189, 248, 0.25);
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.14),
    rgba(255, 255, 255, 0.06)
  );
  border: 1px solid rgba(255, 255, 255, 0.28);
  box-shadow:
    0 14px 40px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition:
    border-color 0.3s ease,
    box-shadow 0.3s ease,
    transform 0.25s ease;
}

.hero-rotating-card:hover {
  border-color: rgba(253, 224, 71, 0.45);
  box-shadow:
    0 18px 48px rgba(0, 0, 0, 0.35),
    0 0 0 1px rgba(253, 224, 71, 0.2);
  transform: translateY(-2px);
}

.hero-rotating-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 6px;
}

.hero-rotating-label {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(253, 224, 71, 0.95);
  line-height: 1.2;
}

#hero-featured-title,
.hero-rotating-title {
  display: -webkit-box;
  font-size: clamp(16px, 2.5vw, 19px);
  font-weight: 700;
  line-height: 1.35;
  color: #fff;
  text-decoration: none;
  max-width: 100%;
  overflow: hidden;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  text-overflow: ellipsis;
  text-wrap: pretty;
}

.hero-rotating-preview {
  margin: 0;
  font-size: 13px;
  line-height: 1.55;
  color: rgba(226, 232, 240, 0.88);
  text-align: justify;
  text-align-last: start;
  text-wrap: pretty;
  overflow-wrap: anywhere;
  hyphens: auto;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hero-rotating-preview[hidden] {
  display: none !important;
}

.hero-rotating-card.hero-rotating--enter .hero-rotating-body {
  animation: heroRotatingReveal 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes heroRotatingReveal {
  from {
    opacity: 0;
    transform: translateX(14px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

body.rtl-ui .hero-rotating-card.hero-rotating--enter .hero-rotating-body {
  animation-name: heroRotatingRevealRtl;
}

@keyframes heroRotatingRevealRtl {
  from {
    opacity: 0;
    transform: translateX(-14px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-rotating-card.hero-rotating--enter .hero-rotating-body {
    animation: none !important;
  }
}

/* Dark home hero strip */
body.dark.home-page .hero-rotating-card {
  background: linear-gradient(
    135deg,
    rgba(15, 23, 42, 0.92),
    rgba(30, 58, 138, 0.55)
  );
  border-color: rgba(56, 189, 248, 0.35);
  box-shadow:
    0 16px 44px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(56, 189, 248, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

body.dark.home-page .hero-rotating-card:hover {
  border-color: rgba(125, 211, 252, 0.45);
  box-shadow:
    0 20px 50px rgba(0, 0, 0, 0.6),
    0 0 28px rgba(56, 189, 248, 0.18);
}

body.dark.home-page .hero-rotating-label {
  color: #7dd3fc;
}

body.dark.home-page #hero-featured-title,
body.dark.home-page .hero-rotating-title {
  color: #f8fafc;
}

body.dark.home-page .hero-rotating-preview {
  color: rgba(203, 213, 225, 0.92);
}

body.rtl-ui .hero-rotating-card {
  flex-direction: column;
}

/* Arab: label & judul artikel pilihan di tengah; pratinjau tetap rata kiri-kanan dari kanan */
body.rtl-ui .hero-rotating-body {
  align-items: center;
  text-align: center;
}

body.rtl-ui .hero-rotating-label,
body.rtl-ui #hero-featured-title,
body.rtl-ui .hero-rotating-title {
  text-align: center;
  width: 100%;
}

body.rtl-ui .hero-rotating-preview {
  text-align: justify;
  text-align-last: auto;
  direction: rtl;
  unicode-bidi: plaintext;
  width: 100%;
}

/* =========================
   SIDEBAR — FINAL VERSION
========================= */

.sidebar {
  position: fixed;
  top: 0;
  left: -280px;
  width: 280px;
  height: 100vh;
  background: #ffffff;
  z-index: 1200;
  overflow-y: auto;
  transition: left 0.3s ease, right 0.3s ease;
  box-shadow: 4px 0 24px rgba(15,23,42,0.08);
}

.sidebar.active {
  left: 0;
}

body.rtl-ui .sidebar {
  left: auto;
  right: -280px;
  box-shadow: -4px 0 24px rgba(15,23,42,0.08);
}

body.rtl-ui .sidebar.active {
  right: 0;
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 18px 16px 8px;
  color: #0f172a;
  font-weight: 800;
  letter-spacing: 0.2px;
}

body.dark .sidebar-brand {
  color: #e6edf7;
}

.sidebar-brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(2, 6, 23, 0.08);
  flex: 0 0 auto;
}

body.dark .sidebar-brand-mark {
  background: rgba(255, 255, 255, 0.08);
}

.sidebar-brand-icon {
  width: 20px;
  height: 20px;
  object-fit: contain;
  display: block;
}

.sidebar-brand-text {
  font-size: 15px;
  line-height: 1.2;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(15, 23, 42, 0.10);
  box-shadow:
    0 10px 24px rgba(15,23,42,0.10),
    inset 0 1px 0 rgba(255,255,255,0.55);
  backdrop-filter: blur(10px);
}

body.dark .sidebar-brand-text {
  background: rgba(2, 6, 23, 0.45);
  border: 1px solid rgba(56, 189, 248, 0.18);
  box-shadow:
    0 12px 30px rgba(0,0,0,0.55),
    inset 0 1px 0 rgba(255,255,255,0.10);
}

/* dark mode */
body.dark .sidebar {
  background: #020617;
  box-shadow: 4px 0 30px rgba(0,0,0,0.6);
}

/* =========================
   SIDEBAR MENU
========================= */

.sidebar-menu {
  list-style: none;
  padding: 20px 16px;
  margin: 0;
}

/* ===== SINGLE ITEM (SEMUA) ===== */

.single-item {
  margin-bottom: 18px;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 14px;
  border-radius: 16px;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  color: #064e3b;
  background: linear-gradient(to right, #16a34a 4px, #f0fdf4 4px);
  transition: all 0.25s ease;
}

.sidebar-link:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(22,163,74,0.2);
}

body.dark .sidebar-link {
  background: linear-gradient(to right, #22c55e 4px, #020617 4px);
  color: #dcfce7;
}

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

.has-children {
  margin-bottom: 14px;
}

.sidebar-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 14px;
  border-radius: 16px;
  background: linear-gradient(to right, #2563eb 4px, #f8fafc 4px);
  border: none;
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 600;
  color: #0f172a;
  transition: all 0.25s ease;
}

.sidebar-toggle:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 22px rgba(37,99,235,0.2);
}

body.dark .sidebar-toggle {
  background: linear-gradient(to right, #60a5fa 4px, #020617 4px);
  color: #e6edf7;
}

/* icon — lebih kecil + glass (override .icon global) */
.sidebar .sidebar-toggle .icon,
.sidebar .sidebar-link .icon {
  flex-shrink: 0;
  font-size: 0.82rem;
  line-height: 1;
  width: 1.65rem;
  height: 1.65rem;
  min-width: 1.65rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  margin: 0;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.42);
  background-image: none;
  border: 1px solid rgba(148, 163, 184, 0.38);
  box-shadow:
    0 8px 20px rgba(15, 23, 42, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

body.dark .sidebar .sidebar-toggle .icon,
body.dark .sidebar .sidebar-link .icon {
  background: rgba(15, 23, 42, 0.55);
  border-color: rgba(148, 163, 184, 0.28);
  box-shadow:
    0 8px 22px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

/* =========================
   BADGE COUNT
========================= */

.badge {
  margin-left: auto;
  background: #2563eb;
  color: #ffffff;
  font-size: 0.7rem;
  padding: 4px 8px;
  border-radius: 999px;
}

body.dark .badge {
  background: #60a5fa;
  color: #020617;
}

/* =========================
   SUBMENU (LEVEL 2)
========================= */

.submenu {
  max-height: 0;
  overflow: hidden;
  margin-top: 6px;
  padding-left: 6px;
  transition: max-height 0.35s ease;
}

.has-children.active .submenu {
  max-height: 400px;
}

.submenu li {
  list-style: none;
}

.submenu a {
  display: block;
  padding: 9px 12px;
  border-radius: 12px;
  font-size: 0.88rem;
  color: #475569;
  text-decoration: none;
  transition: all 0.2s ease;
}

.submenu a:hover {
  background: #e0e7ff;
  color: #1d4ed8;
}

body.dark .submenu a {
  color: #cbd5e1;
}

body.dark .submenu a:hover {
  background: rgba(96,165,250,0.15);
  color: #93c5fd;
}

/* =========================
   SCROLLBAR (CLEAN)
========================= */

.sidebar::-webkit-scrollbar {
  width: 6px;
}

.sidebar::-webkit-scrollbar-thumb {
  background: rgba(0,0,0,0.15);
  border-radius: 6px;
}

body.dark .sidebar::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.15);
}

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

.submenu a.active,
.sidebar-link.active {
  background: linear-gradient(to right, #2563eb 3px, #e0e7ff 3px);
  color: #1d4ed8;
  font-weight: 600;
}

body.dark .submenu a.active,
body.dark .sidebar-link.active {
  background: linear-gradient(to right, #60a5fa 3px, rgba(96,165,250,0.18) 3px);
  color: #bfdbfe;
}

/* =====================
   OVERLAY
===================== */
#overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 1000;
}

#overlay.active {
  opacity: 1;
  visibility: visible;
}

body.dark #overlay {
  background: rgba(0, 0, 0, 0.65);
}


/* =====================
   CONTENT
===================== */
.content {
  padding: 20px;
}

.search-box {
  margin: 15px 0;
}

.search-box input {
  width: 100%;
  max-width: 320px;
  padding: 12px;
  border-radius: 6px;
  border: 1px solid #ccc;
  font-size: 14px;
}

/* =====================
   CARD (ARTIKEL)
===================== */
.card {
  position: relative;
  background: #ffffff;
  padding: 20px;
  border-radius: 14px;
  overflow: hidden;

  display: flex;
  flex-direction: column;

  box-shadow:
    0 8px 24px rgba(0, 0, 0, 0.08),
    0 20px 50px rgba(212, 175, 55, 0.18);

  transition: all 0.3s ease;

  animation: fadeUp 0.6s ease forwards;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.card {
  border: 2px solid transparent;
  transition: all 0.3s ease;
}

.card:not(.active-card) {
  box-shadow:
    0 8px 24px rgba(16, 185, 129, 0.12),
    0 0 0 rgba(16, 185, 129, 0);
}

.card:hover {
  transform: translateY(-8px);

  box-shadow:
    0 12px 35px rgba(0, 0, 0, 0.12),
    0 25px 60px rgba(212, 175, 55, 0.35);
}

.card h3 {
  margin: 10px 0;
  color: #0b2c5f;
  overflow: hidden;

  /* modern browsers */
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;

  display: box;
  line-clamp: 2;
}

.card p {
  font-size: 14px;
  color: #555;
  line-height: 1.6;
  overflow: hidden;

  /* modern browsers */
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;

  display: box;
  line-clamp: 3;
}

/* =====================
   ARTICLE CARD – ENHANCED
===================== */

.card {
  overflow: hidden;
}

/* judul lebih tegas */
.card h3 {
  font-size: 16px;
  font-weight: 700;
  transition: color .25s ease;
}

.card:hover h3 {
  color: #1d4ed8;
}

/* kategori jadi pill */
.card .category {
  display: inline-block;
  font-size: 11px;
  padding: 5px 10px;
  border-radius: 999px;
  background: #e0e7ff;
  color: #1e3a8a;
  margin-bottom: 8px;
}

/* tombol baca */
.card .read-more {
  margin-top: auto;
  font-size: 13px;
  color: #2563eb;
  font-weight: 600;
  transition: transform .25s ease, color .25s ease;
}

.card:hover .read-more {
  color: #1d4ed8;
  transform: translateX(4px);
}

/* Dark mode */
body.dark .card .category {
  background: rgba(255,255,255,0.12);
  color: #e5e7eb;
}

body.dark .card:hover h3 {
  color: #fde047;
}

body.dark .card .read-more {
  color: #93c5fd;
}

body.dark .navbar {
  background: #020617;
}

body.dark .logo {
  color: #e5e7eb;
}

body.dark .logo-glass {
  border-color: rgba(148, 163, 184, 0.28);
  background: rgba(15, 23, 42, 0.58);
  box-shadow:
    0 10px 28px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.07);
}

body.home-page.dark .navbar .logo-text,
body.dark.home-page .navbar .logo-text{
  background: linear-gradient(135deg, #7dd3fc, #60a5fa, #34d399);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  text-shadow:
    0 0 18px rgba(56,189,248,0.12),
    0 10px 30px rgba(0,0,0,0.55);
}

/* =====================
   THUMBNAIL
===================== */
.thumb {
  width: 100%;
  height: 160px;
  border-radius: 10px;
  margin-bottom: 10px;
  object-fit: cover;
  background: #e5e7eb;
  transition: transform 0.35s ease;
}

.card:hover .thumb {
  transform: scale(1.05);
}

.thumb-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #e5e7eb, #cbd5e1);
  color: #475569;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.5px;
}

/* =====================
   BADGE BARU
===================== */
.badge-new {
  position: absolute;
  top: 12px;
  left: auto;
  right: 12px;
  background: #d41111;
  color: #fff;
  font-size: 11px;
  padding: 4px 8px;
  border-radius: 999px;
  font-weight: 600;
  z-index: 2;
}

/* =====================
   META & KATEGORI
===================== */
.category {
  font-size: 12px;
  color: white;
  background: #0b2c5f;
  padding: 4px 8px;
  border-radius: 4px;
}

/* Footer kartu: Baca Selengkapnya di atas, tanggal persis di bawahnya (sejajar vertikal) */
.card-footer {
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;

  margin-top: auto;
  padding-top: 12px;
}

/* Pastikan layout vertikal di grid Artikel Terbaru & Artikel Populer */
#articles-container .card-footer,
.articles-grid .card-footer,
.popular-section .card-footer {
  flex-direction: column;
  align-items: flex-start;
}

.card-footer .read-more {
  margin-top: 0;
}

.card-footer .card-date {
  margin-top: 0;
}

.card-date {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: #0b2c5f;
  background: linear-gradient(90deg, rgba(253, 230, 138, 0.95), rgba(125, 211, 252, 0.75), rgba(147, 197, 253, 0.85));
  box-shadow:
    0 10px 22px rgba(2, 8, 23, 0.10),
    inset 0 1px 0 rgba(255, 255, 255, 0.7);
  white-space: nowrap;
}

body.dark .card-date {
  color: #0b1224;
  background: linear-gradient(90deg, rgba(251, 191, 36, 0.95), rgba(96, 165, 250, 0.75), rgba(147, 197, 253, 0.85));
}

body.rtl-ui .card-footer {
  align-items: flex-end;
}

.read-more {
  display: inline-block;
  margin-top: 10px;
  text-decoration: none;
  color: #0b2c5f;
  font-weight: bold;
}

.read-more:hover {
  text-decoration: underline;
}

/* =====================
   GRID CONTAINER
===================== */
.articles {
  max-width: 1100px;
  margin: 0 auto;
}

/* ===== SAFE PATCH ===== */

#articles-container {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 20px;
}

#articles-container .card {
  width: calc(33.333% - 20px);
}

@media (max-width: 900px) {
  #articles-container .card {
    width: calc(50% - 20px);
  }
}

@media (max-width: 500px) {
  #articles-container .card {
    width: 100%;
  }
}


/* =====================
   ARTICLE DETAIL
===================== */
.article-content {
  max-width: 760px;
  margin: 60px auto;
  padding: 0 20px 40px;
  background: white;
  border-radius: 8px;
}

.article-content h2 {
  color: #0b2c5f;
  margin-bottom: 10px;
}

.article-content p {
  line-height: 1.8;
  margin-bottom: 15px;
  color: #333;
}

.meta {
  display: flex;
  gap: 10px;
  font-size: 12px;
  color: #666;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

/* =====================
   BREADCRUMB
===================== */
.breadcrumb {
  font-size: 14px;
  margin-bottom: 15px;
}

.breadcrumb a {
  text-decoration: none;
  color: #1c377e;
}

.breadcrumb span::before {
  content: " > ";
  color: #888;
}

/* =====================
   PREV / NEXT
===================== */
.article-nav {
  display: flex;
  justify-content: space-between;
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid #ddd;
}

.nav-link {
  text-decoration: none;
  color: #1c377e;
  font-weight: 600;
  max-width: 45%;
}

.nav-link:hover {
  text-decoration: underline;
}

/* =====================
   DARK MODE
===================== */
body.dark {
  background: #0f172a;
  color: #e5e7eb;
}

/* Halaman bookmark, offline, artikel — mode gelap: gradasi biru navy modern */
body.dark.bookmark-page,
body.dark.offline-page,
body.dark.article-page {
  background:
    radial-gradient(ellipse 95% 70% at 50% -18%, rgba(59, 130, 246, 0.24) 0%, transparent 52%),
    radial-gradient(ellipse 100% 85% at 100% 0%, rgba(37, 99, 235, 0.16) 0%, transparent 56%),
    radial-gradient(ellipse 90% 60% at 0% 100%, rgba(30, 58, 138, 0.32) 0%, transparent 50%),
    linear-gradient(168deg, #020617 0%, #0a1628 26%, #0f172a 52%, #0c1929 80%, #020617 100%);
  background-attachment: fixed;
  min-height: 100vh;
}

body.dark.bookmark-page .navbar,
body.dark.offline-page .navbar,
body.dark.article-page .navbar {
  background: linear-gradient(135deg, rgba(2, 6, 23, 0.94) 0%, rgba(15, 23, 42, 0.96) 45%, rgba(15, 23, 42, 0.94) 100%);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(59, 130, 246, 0.14);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
}

body.dark .navbar {
  background: #020617;
}

body.dark .logo {
  color: #e5e7eb;
}

body.dark .menu-btn {
  color: rgba(226, 232, 240, 0.95);
  background: rgba(15, 23, 42, 0.48);
  border-color: rgba(148, 163, 184, 0.28);
  box-shadow:
    0 8px 22px rgba(0, 0, 0, 0.42),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

body.dark .menu-btn:hover {
  background: rgba(30, 41, 59, 0.62);
  border-color: rgba(56, 189, 248, 0.35);
}

body.dark .theme-toggle{
  color: rgba(56,189,248,0.95);
}

body.dark .nav-bookmark-icon{
  color: rgba(226,232,240,0.95);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(56,189,248,0.18);
  box-shadow:
    0 10px 26px rgba(0,0,0,0.42),
    0 0 0 1px rgba(56,189,248,0.08);
}

body.dark .nav-bookmark-icon:hover{
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(56,189,248,0.32);
}

body.dark .offline-indicator{
  color: rgba(226,232,240,0.92);
  border: 1px solid rgba(56,189,248,0.16);
  background: rgba(2,6,23,0.38);
  box-shadow:
    0 12px 28px rgba(0,0,0,0.42),
    0 0 0 1px rgba(56,189,248,0.06);
}

body.dark .lang-btn{
  color: rgba(226,232,240,0.95);
  border: 1px solid rgba(56,189,248,0.20);
  background: rgba(2,6,23,0.32);
}

body.dark .lang-btn-code{
  background: rgba(56,189,248,0.18);
  color: rgba(226,232,240,0.96);
}

body.dark .lang-menu{
  background: rgba(2,6,23,0.92);
  border: 1px solid rgba(148,163,184,0.18);
  box-shadow: 0 12px 30px rgba(0,0,0,0.45);
}

body.dark .lang-menu button{
  color: rgba(226,232,240,0.95);
}

body.dark .lang-menu button:hover{
  background: rgba(56,189,248,0.10);
}

body.dark .lang-menu button.active{
  background: rgba(56,189,248,0.14);
}

body.dark .content {
  color: #e5e7eb;
}

body.dark .card {
  background: #0f172a;
  color: #e5e7eb;
  border: 1px solid rgba(56,189,248,0.35);
  box-shadow: 0 0 14px rgba(56,189,248,0.15);
}

body.dark .card:hover {
  border-color: rgba(56,189,248,0.5);
  box-shadow: 0 0 20px rgba(56,189,248,0.25);
}

body.dark .card h3 {
  color: #e5e7eb;
}

body.dark .breadcrumb,
body.dark .meta {
  color: #cbd5f5;
}

body.dark .article-content {
  color: #e5e7eb;
}

/* =====================
   ANIMATIONS
===================== */
@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse {
  0% { opacity: 1; }
  50% { opacity: 0.4; }
  100% { opacity: 1; }
}

/* =====================
   SKELETON LOADING
===================== */
.skeleton-card {
  background: #e5e7eb;
  border-radius: 12px;
  padding: 15px;
  animation: pulse 1.4s ease-in-out infinite;
}

.skeleton-thumb {
  width: 100%;
  height: 160px;
  background: #d1d5db;
  border-radius: 10px;
  margin-bottom: 12px;
}

.skeleton-line {
  height: 14px;
  background: #d1d5db;
  border-radius: 6px;
  margin-bottom: 10px;
}

.skeleton-line.short {
  width: 60%;
}

/* =====================
   FEATURED ARTICLE (HOME)
===================== */

/* Jarak ke featured diselaraskan dengan gap landasan–profil (lihat .values-author-wrap + .intro-values) */
#featured-article {
  margin: 0 auto 40px;
  max-width: 1100px;
  padding: 0 20px;
}

.featured-card {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 24px;
  cursor: pointer;

  background: linear-gradient(
    135deg,
    #facc15,
    #fde68a
  );

  border-radius: 20px;
  overflow: hidden;
  text-decoration: none;
  color: #111;

  box-shadow: 0 16px 40px rgba(0,0,0,0.15);
  transition: transform .35s ease, box-shadow .35s ease;
}

.featured-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 60px rgba(0,0,0,0.22);
}

/* gambar */
.featured-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* konten */
.featured-content {
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.featured-content .category {
  display: inline-block;
  background: rgba(0,0,0,0.08);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 12px;
}

.featured-content h2 {
  font-size: 26px;
  line-height: 1.3;
  margin-bottom: 14px;
}

.featured-content p {
  font-size: 15px;
  line-height: 1.7;
  color: #333;
}

/* animasi fade */
.fade {
  animation: fadeUp .6s ease both;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Dark mode */
body.dark .featured-inner {
  background: #020617;
}

body.dark .featured-content h2 {
  color: #e5e7eb;
}

body.dark .featured-content p {
  color: #cbd5f5;
}

@media (max-width: 768px) {
  .featured-inner {
    grid-template-columns: 1fr;
  }

  .featured-thumb {
    min-height: 220px;
    max-height: 260px;
  }

  .featured-content h2 {
    font-size: 24px;
  }
}

.featured-content .category {
  display: inline-block;
  margin-bottom: 10px;
}

.featured-section {
  max-width: 1200px;
  margin: 0 auto 25px;
}

.featured-content .read-more {
  align-self: flex-start;
  padding: 10px 18px;
  background: #0b2c5f;
  color: #fff;
  border-radius: 8px;
  font-weight: 600;
}

.featured-content .read-more:hover {
  background: #09234d;
  text-decoration: none;
}

/* =====================
   SECTION: ARTIKEL TERBARU
===================== */

.articles {
  margin-top: 30px;
  padding: 10px 0 40px;
}

.section-header {
  margin-bottom: 18px;
}

.section-header h2 {
  font-size: 24px;
  color: #0b2c5f;
  margin-bottom: 6px;
  font-family: "PT Serif", serif;
}

.section-subtitle {
  font-size: 14px;
  color: #666;
  max-width: 600px;
  line-height: 1.6;
}

/* Dark mode */

body.dark .section-header h2 {
  color: #e5e7eb;
}

body.dark .section-subtitle {
  color: #cbd5f5;
}


/* =====================
   HERO HEADER
===================== */

.hero {
  position: relative;
  min-height: 750px;
  background: url("../assets/images/hero.png") center center / cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 72px 40px 88px;
  color: white;
  border-radius: 0 0 28px 28px;
  overflow: hidden;
  padding-bottom: 60px;   /* RUANG NAFAS */
  backdrop-filter: blur(1px);
}

.hero-overlay {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
    to bottom,
    rgba(10, 25, 47, 0.72),
    rgba(10, 25, 47, 0.52)
    );
  z-index: 1;
}

.hero-content h1 {
  font-size: 36px;
  margin-bottom: 10px;
  line-height: 1.2;
}

.hero-content p {
  font-size: 15px;
  color: #e5e7eb;
  margin-bottom: 18px;
  line-height: 1.6;
}

.hero-buttons {
  margin-bottom: 18px;
}

.btn-primary {
  background: #2563eb;
  color: #fff;
  padding: 12px 20px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
}

.btn-primary:hover {
  background: #1d4ed8;
}

.btn-secondary {
  border: 1px solid rgba(255,255,255,0.4);
  color: #fff;
  padding: 12px 20px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
}

.btn-secondary:hover {
  background: rgba(255,255,255,0.1);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.45);
  backdrop-filter: blur(2px);
}

.hero-buttons a {
  box-shadow: 0 8px 18px rgba(0,0,0,0.25);
}

.badge-featured {
  position: absolute;
  top: 12px;
  right: 12px;
  background: linear-gradient(135deg, #f5c542, #ff9f1a);
  color: #1a1a1a;
  font-size: 12px;
  font-weight: 700;
  padding: 6px 10px;
  border-radius: 999px;
  box-shadow: 0 4px 12px rgba(255, 165, 0, 0.4);
  z-index: 3;
  animation: glow 2.5s ease-in-out infinite;
}

/* glow halus */
@keyframes glow {
  0% {
    box-shadow: 0 0 6px rgba(255, 165, 0, 0.4),
                0 0 12px rgba(255, 165, 0, 0.25);
  }
  50% {
    box-shadow: 0 0 12px rgba(255, 165, 0, 0.7),
                0 0 24px rgba(255, 165, 0, 0.4);
  }
  100% {
    box-shadow: 0 0 6px rgba(255, 165, 0, 0.4),
                0 0 12px rgba(255, 165, 0, 0.25);
  }
}

.card.is-featured {
  border: 2px solid rgba(255, 180, 0, 0.6);
  box-shadow: 0 10px 30px rgba(255, 180, 0, 0.15);
  position: relative;
}

/* FEATURED FADE ANIMATION */
#featured-article.fade {
  animation: featuredFade 0.6s ease;
}

@keyframes featuredFade {
  from {
    opacity: 0.4;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

body.dark .hero-overlay {
  background: linear-gradient(
    to right,
    rgba(2, 6, 23, 0.9),
    rgba(2, 6, 23, 0.6)
  );
}

body.dark .btn-primary {
  background: #fde047;
  color: #020617;
}

/* ===== HERO ANIMATION ===== */
.hero-content {
  position: relative;
  max-width: 600px;
  z-index: 2;

  opacity: 0;
  transform: translateY(20px);
  animation: heroFadeUp 0.9s ease forwards;
}

@keyframes heroFadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Hero rotating strip: gaya utama di blok atas (hero-rotating-*) */

body.dark .hero::before {
  background: rgba(0,0,0,0.25);
}

body.dark .hero-overlay {
  background: linear-gradient(
    90deg,
    rgba(2, 6, 23, 0.45),
    rgba(2, 6, 23, 0.15)
  );
}

body.dark .hero::before {
  background: rgba(0,0,0,0.25);
}

body.dark .hero-overlay {
  background: linear-gradient(
    90deg,
    rgba(2, 6, 23, 0.45),
    rgba(2, 6, 23, 0.15)
  );
}

.hero-featured-title {
  display: inline-block;
  margin-top: 10px;
  font-size: 14px;
  color: #facc15;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.25s ease;
}

.hero-featured-title:hover {
  color: #fde047;
  text-decoration: underline;
  transform: translateX(4px);
}

/* dark mode tetap cakep */
body.dark .hero-featured-title {
  color: #fde68a;
}

body.dark .hero-featured-title:hover {
  color: #fef08a;
}

body.dark .featured-card {
  background: linear-gradient(135deg, #0f172a, #1e293b);
  color: #f9fafb;
  border: 1px solid rgba(56,189,248,0.4);
  box-shadow: 0 0 20px rgba(56,189,248,0.2);
}

body.dark .featured-card:hover {
  border-color: rgba(56,189,248,0.55);
  box-shadow: 0 0 26px rgba(56,189,248,0.3);
}

body.dark .featured-content p {
  color: #d1d5db;
}

body.dark .featured-content .category {
  background: rgba(255,255,255,0.15);
}

@media (max-width: 768px) {
  .featured-card {
    grid-template-columns: 1fr;
  }

  .featured-card img {
    height: 220px;
  }

  .featured-content h2 {
    font-size: 22px;
  }
}


/* =====================
   HERO — iPhone 12 Pro Max (PAS & RAPI)
===================== */
@media (max-width: 430px) {

  .hero {
    padding: 84px 20px 64px;   /* 🔽 dipersempit dikit */
    min-height: 120vh;          /* 🔽 ga full banget */
    background-position: center 38%;
    background-size: cover;
    background-repeat: no-repeat;
    justify-content: center;
  }

  .hero-content {
    text-align: center;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .hero-content p,
  .hero-tagline {
    text-align: center;
  }

  .hero-title {
    font-size: 30px;           /* 🔽 dari 32 */
    line-height: 1.28;
    margin-bottom: 12px;
    font-family: "Playfair Display", serif;
  }

  .hero-text {
    font-size: 15px;           /* 🔽 dari 16 */
    line-height: 1.6;
    font-family: "Spectral", serif;
  }

  .hero-tagline {
    font-size: 14px;
    line-height: 1.55;
    opacity: 0.9;
  }

  .hero-buttons {
    margin-top: 22px;
    gap: 14px;
  }

  .hero-buttons a {
    width: 100%;
    font-size: 15px;           /* 🔽 dari 16 */
    padding: 12px 0;           /* 🔽 lebih ramping */
    border-radius: 13px;
  }

  .hero-rotating-card {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px 14px;
  }

  body.rtl-ui .hero-rotating-card {
    flex-direction: column;
  }
}

.hero-tagline {
  font-size: 13px;
  color: rgba(255,255,255,0.75);
  margin-bottom: 26px;
  letter-spacing: 0.3px;
}

/* ===== HERO STAGGER ANIMATION ===== */
.hero-title {
  display: inline-block;
  color: var(--hero-title-fallback, #f8fbff);
  opacity: 0;
  transform: translateY(20px);
  animation: heroIn 0.8s ease forwards;
  text-shadow: 0 10px 24px rgba(4, 20, 44, 0.28);
}

html[lang="id"] .hero-title {
  --hero-title-fallback: #f8ecd1;
  --hero-title-gradient: linear-gradient(96deg, #f8ecd1 0%, #e0e7ff 42%, #bae6fd 100%);
}

html[lang="en"] .hero-title {
  --hero-title-fallback: #f5ead7;
  --hero-title-gradient: linear-gradient(96deg, #f5ead7 0%, #dbeafe 46%, #bfdbfe 100%);
}

html[lang="ar"] .hero-title {
  --hero-title-fallback: #f7ebc8;
  --hero-title-gradient: linear-gradient(96deg, #f7ebc8 0%, #ddd6fe 44%, #c4b5fd 100%);
  font-family: "Amiri", "Playfair Display", serif;
  letter-spacing: 0;
}

body.rtl-ui .hero-title {
  background-position: right center;
}

@supports ((-webkit-background-clip: text) and (-webkit-text-fill-color: transparent)) {
  .hero-title {
    background-image: var(--hero-title-gradient);
    background-repeat: no-repeat;
    background-size: 100% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: none;
  }
}

.hero-text {
  opacity: 0;
  transform: translateY(16px);
  animation: heroIn 0.8s ease forwards;
  animation-delay: 0.2s;
}

.hero-cta {
  opacity: 0;
  transform: translateY(12px);
  animation: heroIn 0.8s ease forwards;
  animation-delay: 0.4s;
}

.hero-rotating-wrap {
  opacity: 0;
  transform: translateY(10px);
  animation: heroIn 0.8s ease forwards;
  animation-delay: 0.6s;
}

@keyframes heroIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

main.content {
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px 20px 60px;
}

.hero {
  height: 420px;
  padding: 72px 40px 88px;
}

/* margin #featured-article: atur di blok FEATURED ARTICLE (HOME) di atas */

/* ===== TRANSLATE BUTTON ===== */
.article-translate {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 16px 0;
  font-size: 14px;
}

.article-translate button {
  border: 1px solid #d1d5db;
  background: #f9fafb;
  color: #111827;
  padding: 4px 10px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 12px;
  transition: all 0.2s ease;
}

.article-translate button:hover {
  background: #e5e7eb;
}

/* ✅ STATE AKTIF */
.article-translate button.active {
  background: #2563eb;
  color: #fff;
  border-color: #2563eb;
  font-weight: 600;
}

/* dark mode */
body.dark .article-translate button {
  background: #020617;
  color: #e5e7eb;
  border-color: #334155;
}

body.dark .article-translate button.active {
  background: #fde047;
  color: #020617;
  border-color: #fde047;
}


/* ===== RTL MODE ===== */
.article-content.rtl {
  direction: rtl;
  font-family: "Amiri", "Scheherazade", serif;
}

.article-content.rtl h1,
.article-content.rtl h2,
.article-content.rtl h3 {
  text-align: right;
}

.lang-badge {
  width: 22px;
  height: 16px;
  display: inline-block;
  border-radius: 3px;
  background-size: cover;
  background-position: center;
}

/* Indonesia */
.flag-id {
  background-image: url("https://flagcdn.com/w40/id.png");
}

/* Inggris */
.flag-en {
  background-image: url("https://flagcdn.com/w40/gb.png");
}

/* Arab Saudi */
.flag-ar {
  background-image: url("https://flagcdn.com/w40/sa.png");
}

.card { position: relative; }


.hero-title {
  letter-spacing: -0.5px;
}

.hero-tagline {
  font-size: 14px;
  opacity: 0.85;
  margin-top: -10px;
  font-style: italic;
}

.hero-content::after {
  content: "";
  display: block;
  width: 60px;
  height: 3px;
  background: linear-gradient(to right, #facc15, transparent);
  margin-top: 18px;
}

.featured-content h2 {
  letter-spacing: -0.3px;
}

.featured-content p {
  opacity: 0.9;
}

.featured-card::after {
  pointer-events: none;
  content: attr(data-featured-label);
  position: absolute;
  top: 14px;
  left: 14px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.3px;

  /* GRADIENT EMAS PREMIUM */
  background: linear-gradient(
    135deg,
    #fff6c2,
    #f7d774,
    #e6b800,
    #c99600
  );

  color: #3a2b00;
  padding: 6px 12px;
  border-radius: 999px;

  /* EFEK KACA / PREMIUM */
  box-shadow:
    0 4px 14px rgba(230, 184, 0, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);

  backdrop-filter: blur(6px);
}

.featured-card::before {
  pointer-events: none;
  content: "";
  position: absolute;
  top: 0;
  left: -40%;
  width: 40%;
  height: 100%;
  background: linear-gradient(
    120deg,
    transparent,
    rgba(255,255,255,0.6),
    transparent
  );
  transform: skewX(-20deg);
  transition: 0.6s;
}

.featured-card:hover::before {
  left: 120%;
}

#articles-container {
  margin-top: 30px;
}

.card {
  transition: transform .25s ease, box-shadow .25s ease;
}

.card:hover h3 {
  color: #1d4ed8;
}

.article-translate {
  display: flex;
  gap: 8px;
  align-items: center;
  margin: 14px 0 10px;
  font-size: 13px;
}

.article-translate button {
  border: 1px solid #ddd;
  background: transparent;
  padding: 4px 10px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 12px;
}

.article-translate button:hover {
  background: #f1f5f9;
}

.music-toggle {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: none;
  background: linear-gradient(135deg, #2563eb, #1e40af);
  color: #fff;
  font-size: 22px;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(37,99,235,.35);
  z-index: 999;
  transition: transform .25s ease, box-shadow .25s ease;
}

.music-toggle:hover {
  transform: scale(1.08);
  box-shadow: 0 16px 40px rgba(37,99,235,.5);
}

body.dark .music-toggle {
  background: #fde047;
  color: #020617;
}

#isi-artikel {
  font-size: 17px;
  line-height: 1.9;
  color: #1f2937;
 font-family: "Merriweather", serif;
}

#isi-artikel p {
  margin-bottom: 18px;
}

#isi-artikel h2 {
  font-size: 26px;
  margin: 42px 0 16px;
  color: #0b2c5f;
  font-family: "Merriweather", serif;
}

#isi-artikel h3 {
  font-size: 20px;
  margin: 30px 0 12px;
  color: #1c377e;
  font-family: "Merriweather", serif;
}

#isi-artikel blockquote {
  border-left: 4px solid #facc15;
  padding: 14px 18px;
  margin: 24px 0;
  background: #f9fafb;
  font-style: italic;
  color: #374151;
  font-family: "Inter", sans-serif;
}

body.dark #isi-artikel {
  color: #e5e7eb;
}

body.dark #isi-artikel blockquote {
  background: #020617;
  border-left-color: #fde047;
}

.thumb {
  height: 180px;
}

.article-thumb {
  margin-bottom: 16px;
}

.article-translate button {
  font-size: 12px;
  padding: 4px 10px;
  opacity: 0.9;
}

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 12px;
  color: #64748b;
}

#reading-time {
  background: #eef2ff;
  color: #1e3a8a;
  padding: 4px 8px;
  border-radius: 999px;
  font-weight: 500;
}

.article-tools {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.font-size-control button {
  background: #f1f5f9;
  border: none;
  padding: 6px 10px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
}

.font-size-control button:hover {
  background: #e2e8f0;
}

/* Dark mode */
body.dark .font-size-control button {
  background: rgba(255,255,255,0.1);
  color: #e5e7eb;
}

.article-thumb {
  border-radius: 14px;
  margin-bottom: 16px;
}

.article-content {
  box-shadow: 0 10px 30px rgba(0,0,0,.08);
}

.music-toggle {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2563eb, #1e40af);
  color: #fff;
  font-size: 22px;
  border: none;
  box-shadow: 0 10px 30px rgba(0,0,0,.25);
}

.music-toggle:hover {
  transform: scale(1.05);
}

.bookmark-btn {
  background: #facc15;
  border: none;
  padding: 6px 12px;
  border-radius: 20px;
  font-weight: 600;
  pointer-events: auto;
  cursor: pointer;
  z-index: 5;
}

body.focus-mode .navbar,
body.focus-mode .sidebar,
body.focus-mode .related-articles,
body.focus-mode .article-nav {
  display: none;
}

body.focus-mode .article-content {
  max-width: 720px;
}

.reader-controls {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 12px;
}

.reader-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  font-size: 14px;
  border-radius: 999px;
  border: 1px solid #e5e7eb;
  background: #f8fafc;
  cursor: pointer;
  transition: all 0.25s ease;
}

.reader-btn:hover {
  background: #e0f2fe;
}

.reader-btn.active {
  background: #2563eb;
  color: white;
  border-color: #2563eb;
}

.reader-btn.danger:hover {
  background: #fee2e2;
  color: #b91c1c;
}

/* dark mode */
body.dark .reader-btn {
  background: #020617;
  border-color: #1e293b;
  color: #e5e7eb;
}

body.reading .article-content {
  max-width: 680px;
  line-height: 1.85;
}

body.reading .article-content {
  max-width: 680px;
  line-height: 1.85;
}

/* =====================
   MODE BACA
===================== */
body.read-mode {
  background: #020617;
}

body.read-mode .navbar,
body.read-mode .article-nav,
body.read-mode .related-articles {
  display: none;
}

body.read-mode .article-content {
  max-width: 720px;
  margin: auto;
  padding: 24px;
}

body.read-mode #article-body {
  font-size: 18px;
  line-height: 1.95;
}

.reader-controls {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 16px 0;
}

.reader-btn {
  background: #f1f5f9;
  border: none;
  padding: 8px 14px;
  border-radius: 12px;
  font-weight: 600;
  cursor: pointer;
}

.reader-btn:hover {
  transform: translateY(-1px);
}

/* Dark mode */
body.dark .reader-btn {
  background: #1e293b;
  color: #e5e7eb;
}

/* Reset */
.reader-btn.danger {
  background: #fee2e2;
  color: #7f1d1d;
}

body.dark .reader-btn.danger {
  background: #3f1d1d;
  color: #fecaca;
}

.quote-box {
  position: fixed;
  bottom: 90px;
  left: 50%;
  transform: translateX(-50%);
  max-width: 90%;
  background: #ffffff;
  border-radius: 16px;
  padding: 14px;
  box-shadow: 0 15px 40px rgba(0,0,0,.2);
  display: none;
  z-index: 999;
}

.quote-box p {
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 10px;
}

.quote-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}

.quote-actions button {
  border: none;
  padding: 8px 12px;
  border-radius: 10px;
  font-weight: 600;
  cursor: pointer;
}

/* Dark mode */
body.dark .quote-box {
  background: #020617;
  color: #e5e7eb;
}

.quote-box {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 9999;
  pointer-events: auto;
}

/* MODE BACA */

body.read-mode .article-content {
  background: #fdf6e3;
}

body.read-mode #isi-artikel {
  font-family: "Georgia", "Times New Roman", serif;
  font-size: 18px;
  line-height: 1.9;
  color: #2b2b2b;
}

body.dark.read-mode .article-content {
  background: #020617;
}

/* =========================
   WELCOME SECTION
========================= */
.welcome {
  max-width: 920px;
  margin: 0 auto 28px;
  text-align: center;
  padding: 0 20px;
}

/* JUDUL */
.welcome-title {
  font-family: "Inter", sans-serif;
  font-size: 2.2rem;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 18px;
  line-height: 1.35;
}

.welcome-title span {
  color: #1d4ed8;
  position: relative;
}


.welcome-title span::after {
  content: "";
  display: block;
  width: 56%;
  height: 4px;
  background: linear-gradient(90deg, #3b82f6, #60a5fa);
  margin: 8px auto 0;
  border-radius: 3px;
}

/* DESKRIPSI */
.welcome-desc {
  font-family: "Source Serif 4", serif;
  font-size: 1.05rem;
  line-height: 1.9;
  color: #4b5563;
  max-width: 780px;
  margin: 0 auto 28px;
}

/* TOPIK */
.welcome-topics {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 36px;
}

.welcome-topics span {
  font-size: 0.85rem;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.08);
  color: #1d4ed8;
  font-weight: 500;
  transition: all 0.25s ease;
}

.welcome-topics span:hover {
  background: rgba(37, 99, 235, 0.15);
  transform: translateY(-1px);
}

/* SEARCH */
.welcome-search {
  display: flex;
  justify-content: center;
}

.welcome-search input {
  width: 100%;
  max-width: 520px;
  padding: 14px 20px;
  border-radius: 999px;
  border: 1px solid #e5e7eb;
  background: linear-gradient(180deg, #ffffff, #f9fafb);
  font-size: 0.95rem;
  outline: none;
  transition: all 0.25s ease;
  box-shadow: 0 6px 20px rgba(0,0,0,0.06);
}

.welcome-search input:focus {
  border-color: #3b82f6;
  box-shadow: 0 10px 30px rgba(59,130,246,0.25);
}

/* RESPONSIVE */
@media (max-width: 640px) {
  .welcome-title {
    font-size: 1.8rem;
  }

  .welcome-desc {
    font-size: 0.95rem;
  }
}

.welcome {
  margin-top: 24px;
  padding-top: 16px;
  position: relative;
}

.welcome::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(59,130,246,0.6),
    transparent
  );
  border-radius: 4px;
}

@media (max-width: 640px) {
  .welcome {
    margin-top: 24px;
  }
}

/* =====================
   SEARCH POLISH
===================== */
.welcome-search {
  max-width: 520px;
  margin: 0 auto 60px;
}

.welcome-search input {
  width: 100%;
  padding: 16px 22px;
  border-radius: 999px;
  border: 1px solid #334155;
  background: rgba(2,6,23,0.6);
  color: #e5e7eb;
  font-size: 14.5px;
}

.welcome-search input:focus {
  outline: none;
  border-color: #3b82f6;
  background: rgba(2,6,23,0.8);
}

/* =========================
   DARK MODE WELCOME (FINAL)
========================= */
body.dark .welcome-title {
  color: #e5e7eb;
}

body.dark .welcome-title span {
  color: #60a5fa;
}

body.dark .welcome-desc {
  color: #cbd5f5;
}
/* =========================
   INTRO VALUES — CARD STYLE
========================= */

.intro-values {
  /* Padding bawah = jarak profil → featured (sama dengan gap landasan–profil) */
  padding: 28px 0 60px;
  background: transparent;
}

/* Satu kolom lebar dengan artikel pilihan (featured): max-width + padding sama */
.values-author-wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  /* Imbang dengan jarak bawah section ke featured */
  gap: 60px;
}

/* Lebih sempit dari blok profil di bawah — dipusatkan, tidak selebar author-preview */
.values-inner {
  max-width: min(760px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

/* KARTU SATUAN */
.value-item {
  background: #ffffff;
  padding: 22px 24px 22px 22px;
  border-radius: 22px;
  border-left: 4px solid #2563eb;
  box-shadow:
    0 10px 26px rgba(15, 23, 42, 0.06),
    0 2px 6px rgba(15, 23, 42, 0.04);
  transition: 
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

/* HOVER HALUS */
.value-item:hover {
  transform: translateY(-2px);
  box-shadow:
    0 16px 36px rgba(15, 23, 42, 0.08),
    0 4px 10px rgba(15, 23, 42, 0.06);
}

/* JUDUL */
.value-item h3 {
  font-size: 1rem;
  font-weight: 600;
  color: #0f172a;
  margin-bottom: 8px;
}

/* DESKRIPSI */
.value-item p {
  font-size: 0.95rem;
  line-height: 1.85;
  color: #475569;
  margin: 0;
}

/* ===== DARK MODE ===== */

body.dark .value-item {
  background: #020617;
  border-left-color: #60a5fa;
  box-shadow:
    0 14px 32px rgba(0,0,0,0.45),
    inset 0 0 0 1px rgba(255,255,255,0.04);
}

body.dark .value-item h3 {
  color: #e6edf7;
}

body.dark .value-item p {
  color: #c7d2e9;
}

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

@media (max-width: 768px) {
  .values-inner {
    grid-template-columns: 1fr;
    gap: 22px;
  }
}

/* ANIMASI MASUK */
.value-item {
  opacity: 0;
  transform: translateY(14px);
}

.value-item.is-visible {
  opacity: 1;
  transform: translateY(0);
  transition:
    opacity 0.6s ease,
    transform 0.6s ease,
    box-shadow 0.25s ease;
}

.value-item h3 {
  position: relative;
  padding-left: 22px;
}

.value-item h3::before {
  content: "•";
  position: absolute;
  left: 0;
  top: 0;
  color: #2563eb;
  font-size: 0.75rem;
  transform: translateY(3px);
}

body.dark .value-item h3::before {
  color: #60a5fa;
}

.value-item h3 {
  position: relative;
  padding-left: 22px;
}

.value-item h3::before {
  content: "•";
  position: absolute;
  left: 0;
  top: 0;
  color: #2563eb;
  font-size: 0.75rem;
  transform: translateY(3px);
}

body.dark .value-item h3::before {
  color: #60a5fa;
}

.intro-values h3,
.about-editorial h2 {
  letter-spacing: -0.2px;
}

/* ===== ANIMATION ===== */
@keyframes introFadeUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  h2 {
    font-size: 1.25rem;
  }

  .intro-inner {
    padding: 28px 22px;
  }

  .values-inner {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .intro-values {
    padding-top: 22px;
    padding-bottom: 60px;
  }

  .values-author-wrap {
    gap: 60px;
  }
}

/* Profil di bawah landasan: satu blok, tidak “mengambang” dengan margin besar */
.author-preview-inline {
  margin-top: 0;
}

.author-preview-card {
  background: linear-gradient(180deg,#ffffff,#f7f9fc);
  padding: 22px 24px;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.06);
  border-left: 4px solid #1e88e5;
}

.author-name {
  font-size: 1.4rem;
  margin-bottom: 6px;
}

.author-cred {
  color: #1e88e5;
  font-weight: 600;
  font-size: 0.95rem;
}

.author-desc {
  margin-top: 10px;
  color: #555;
  line-height: 1.6;
}

.author-btn {
  display: inline-block;
  margin-top: 14px;
  font-weight: 600;
  color: #1e88e5;
  text-decoration: none;
}

/* =========================
   AUTHOR PREVIEW DARK MODE
========================= */

body.dark .author-preview-card {
  background: linear-gradient(
    180deg,
    #020617,
    #0f172a
  );

  border-left: 4px solid #fde047;
  box-shadow: 0 10px 30px rgba(0,0,0,0.4);
}

body.dark .author-name {
  color: #e5e7eb;
}

body.dark .author-cred {
  color: #fde047;
}

body.dark .author-desc {
  color: #cbd5f5;
}

body.dark .author-btn {
  color: #fde047;
}

body.dark .author-btn:hover {
  opacity: 0.85;
}

/* =====================
   PRE FOOTER
===================== */

.prefooter {
  position: relative;
  background: url("../assets/images/islamic-pattern.png") center/cover no-repeat;
  padding: 70px 24px 48px;
  color: #ffffff;
}

.prefooter-overlay {
  position: absolute;
  inset: 0;
  background: rgba(8, 32, 72, 0.92);
  z-index: 0;
}

.prefooter-inner {
  position: relative;
  z-index: 1;
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 32px;
}

/* ===============================
   KOLOM PREFOOTER
================================ */

.prefooter-col h4 {
  font-size: 1.1rem;
  margin-bottom: 16px;
  color: #ffffff;
  font-weight: 600;
  letter-spacing: 0.4px;
}

/* ===============================
   PARAGRAF DESKRIPSI
================================ */

.prefooter-col p {
  font-size: 0.95rem;
  line-height: 1.7;
  color: #c8d6e5;
}

/* ===============================
   LIST KAJIAN & FITUR
================================ */

.prefooter-col ul,
.prefooter-col li {
  list-style: none;
  padding: 0;
  margin: 0;
}

/* jarak tiap item */
.prefooter-col li {
  margin-bottom: 10px;
}

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

.prefooter-col li a {
  text-decoration: none;
  color: #dfe6ed;
  font-size: 0.95rem;
  transition: 0.25s ease;
  position: relative;
}

/* underline elegan */
.prefooter-col li a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 0%;
  height: 2px;
  background: #4ea1ff;
  transition: 0.3s ease;
}

/* hover */
.prefooter-col li a:hover {
  color: #ffffff;
  padding-left: 4px;
}

.prefooter-col li a:hover::after {
  width: 100%;
}

/* ===============================
   CATATAN KHUSUS
================================ */

.prefooter-note {
  font-size: 0.9rem;
  color: #b7c6d6;
  line-height: 1.7;
  font-style: italic;
}

/* =============================
   SOCIAL MEDIA ICON
============================= */

.prefooter-social {
  margin-top: 34px;
  display: flex;
  justify-content: center;
  gap: 18px;
}

.prefooter-social a {
  width: 56px;
  height: 56px;
  border-radius: 50%;

  display: flex;
  align-items: center;
  justify-content: center;

  text-decoration: none;
  border: none;

  font-size: 22px;
  color: white;

  position: relative;
  z-index: 3;

  transition: 0.3s ease;
}

/* Hover */
.prefooter-social a:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 22px rgba(0,0,0,0.35);
}

/* WARNA BRAND */
.prefooter-social a:nth-child(1) {
  background: linear-gradient(135deg,#25D366,#128C7E);
}

.prefooter-social a:nth-child(2) {
  background: linear-gradient(135deg,#f58529,#dd2a7b,#8134af);
}

.prefooter-social a:nth-child(3) {
  background: linear-gradient(135deg,#000,#333);
}

.prefooter-social a:nth-child(4) {
  background: linear-gradient(135deg,#00aaff,#0077cc);
}
/* =====================
   PREFooter Social — MOBILE
===================== */
@media (max-width: 600px) {

  .prefooter-social {
    margin-top: 32px;
    gap: 20px;           /* 🔽 lebih rapat */
  }

  .prefooter-social a {
    width: 48px;         /* 🔽 dari 56 */
    height: 48px;
    font-size: 1.8rem;   /* 🔽 dari 2.2rem */
  }
  
}


/* =====================
   FOOTER
===================== */
.site-footer{

  position: relative;
  z-index: 10;

  background:
  linear-gradient(rgba(11,44,95,0.92), rgba(11,44,95,0.92)),
  url("../assets/images/biru.png");

  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  text-align:center;
  padding:30px 15px;
  font-size:15px;
  color:#e7eaed;
  font-family:"Source Serif 4", serif;

}

/* =====================
   FOOTER — DARK ONLY
===================== */

body.dark .site-footer{

background:#000;

color:#6fb6ff;

font-size:0.85rem;
text-align:center;
padding:20px 12px;

border-top:1px solid #2a7fff;
border-bottom:1px solid #2a7fff;

box-shadow:
0 -2px 20px rgba(42,127,255,0.4),
0 2px 20px rgba(42,127,255,0.25);

font-family:"Source Serif 4", serif;

animation:footerGlow 4s ease-in-out infinite;

}

@keyframes footerGlow{

0%{
box-shadow:
0 -2px 15px rgba(42,127,255,0.2),
0 2px 15px rgba(42,127,255,0.2);
}

50%{
box-shadow:
0 -2px 35px rgba(42,127,255,0.7),
0 2px 35px rgba(42,127,255,0.7);
}

100%{
box-shadow:
0 -2px 15px rgba(42,127,255,0.2),
0 2px 15px rgba(42,127,255,0.2);
}

}

body.dark .footer-links a{
color:#7cc2ff;
}

body.dark .footer-links a:hover{
color:#9fd3ff;
text-shadow:0 0 8px rgba(120,190,255,0.9);
}

.footer-links {
  margin-bottom: 10px;
}

.footer-links a {
  color: #cbd5e1;
  margin: 0 10px;
  text-decoration: none;
  font-size: 13px;
}

.footer-links a:hover {
  color: #fff;
}

.footer-copy {
  opacity: 0.8;
}


/* =====================
   PRE FOOTER — DARK ONLY
===================== */

body.dark .prefooter {
  position: relative;
  background: linear-gradient(135deg, #020617, #020617);
  padding: 72px 20px 56px;
  color: #e5e7eb;
}

body.dark .prefooter-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at top,
    rgba(96, 165, 250, 0.18),
    transparent 60%
  );
  pointer-events: none;
}

body.dark .prefooter-inner {
  position: relative;
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 36px;
}

/* Judul kolom */
body.dark .prefooter-col h4 {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 14px;
  color: #9cabba;
  letter-spacing: 0.2px;
}

/* Isi teks */
body.dark .prefooter-col p,
body.dark .prefooter-col li {
  font-size: 0.85rem;
  line-height: 1.75;
  color: #cbd5e1;
}

body.dark .prefooter-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

body.dark .prefooter-col li {
  margin-bottom: 6px;
}

/* =====================
   SOCIAL ICONS — DARK
===================== */

body.dark .prefooter-social {
  position: relative;
  margin-top: 48px;
  display: flex;
  justify-content: center;
  gap: 22px;
}

body.dark .prefooter-social a {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #e5e7eb;
  font-size: 1.35rem;
  transition: all 0.25s ease;
}

body.dark .prefooter-social a:hover {
  background: #953b14;
  color: #07175b;
  transform: translateY(-3px);
}

.nav-bookmark {
  position: relative;
  text-decoration: none;
  font-size: 1.1rem;
  margin-right: 10px;
}

.bookmark-badge {
  position: absolute;
  top: -6px;
  right: -8px;
  background: #ef4444;
  color: white;
  font-size: .65rem;
  padding: 2px 6px;
  border-radius: 999px;
  line-height: 1;
}

body.dark .bookmark-badge {
  background: #f87171;
}

.site-footer {
  font-weight: 600; /* bold halus */
}

/* =====================
   NAV BOOKMARK ICON + COUNT
===================== */

.nav-bookmark-icon {
  position: relative;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: 38px;
  height: 38px;
  margin-left: 8px;

  font-size: 18px;
  text-decoration: none;

  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;

  transition: all 0.25s ease;
}

/* hover */
.nav-bookmark-icon:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-1px);
}

/* badge count */
.bookmark-count {
  position: absolute;
  top: -4px;
  right: -4px;

  min-width: 18px;
  height: 18px;
  padding: 0 5px;

  display: flex;
  align-items: center;
  justify-content: center;

  font-size: 11px;
  font-weight: 700;

  background: #dc2626; /* merah */
  color: #ffffff;

  border-radius: 999px;
  line-height: 1;
  pointer-events: none;
}

/* hide jika 0 */
.bookmark-count:empty,
.bookmark-count[data-count="0"] {
  display: none;
}

/* active (di halaman bookmark) */
.nav-bookmark-icon.active {
  background: #facc15;
  color: #78350f;
}

.nav-bookmark-icon.active .bookmark-count {
  background: #92400e;
}

/* dark mode */
body.dark .nav-bookmark-icon {
  background: rgba(255, 255, 255, 0.08);
  color: #e5e7eb;
}

body.dark .nav-bookmark-icon:hover {
  background: rgba(255, 255, 255, 0.18);
}

/* mobile */
@media (max-width: 768px) {
  .nav-bookmark-icon {
    width: 42px;
    height: 42px;
    font-size: 20px;
  }

  .bookmark-count {
    top: -3px;
    right: -3px;
  }
}



/* DARK MODE SUPPORT */
body.dark .floating-whatsapp {
  box-shadow: 0 10px 25px rgba(0,0,0,0.6);
}

/* MOBILE ADJUSTMENT */
@media (max-width: 600px) {
  .floating-whatsapp {
    width: 50px;
    height: 50px;
    font-size: 24px;
    bottom: 18px;
    right: 18px;
  }
}

.bookmark-hint {
  margin-top: 12px;
  padding: 8px 12px;

  font-size: 12px;
  line-height: 1.6;

  color: #475569;
  background: #f8fafc;

  border-left: 3px solid #facc15;
  border-radius: 6px;

  display: inline-block;
}

/* highlight kata Bookmark */
.bookmark-hint strong {
  font-weight: 600;
  color: #0b2c5f;
}

/* dark mode */
body.dark .bookmark-hint {
  background: rgba(255,255,255,0.05);
  color: #cbd5e1;
  border-left-color: #fde047;
}

body.dark .bookmark-hint strong {
  color: #fde047;
}

/* =====================
   PIN: ARTIKEL POPULER (HALUS)
===================== */

.card.is-popular {
  position: relative;
  border: 1px solid rgba(37, 99, 235, 0.35);
  background: linear-gradient(
    180deg,
    rgba(37, 99, 235, 0.04),
    rgba(255,255,255,1)
  );
  box-shadow: 0 8px 22px rgba(37, 99, 235, 0.12);
}

/* badge kecil */
.card.is-popular::before {
  content: "\1F525  Populer";
  position: absolute;
  top: 12px;
  right: 12px;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  background: #2563eb;
  color: #ffffff;
  letter-spacing: 0.3px;
}

/* judul jangan aneh */
.card.is-popular h3 {
  color: #0b2c5f;
}

/* hover tetep konsisten */
.card.is-popular:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 30px rgba(37, 99, 235, 0.2);
}

/* =====================
   DARK MODE
===================== */

body.dark .card.is-popular {
  background: linear-gradient(180deg, rgba(15,23,42,0.6), #0f172a);
  border: 1px solid rgba(56,189,248,0.4);
  box-shadow: 0 0 16px rgba(56,189,248,0.2);
}

body.dark .card.is-popular:hover {
  border-color: rgba(56,189,248,0.6);
  box-shadow: 0 0 24px rgba(56,189,248,0.3);
}

body.dark .card.is-popular::before {
  background: #60a5fa;
  color: #020617;
}

body.dark .card.is-popular h3 {
  color: #e5e7eb;
}

.card.show-featured {
  display: block !important;
}

.prayer-wrapper {
  margin: 48px auto 0;
  max-width: 900px;
  padding: 0 18px;
}



.prayer-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.15rem;
  font-weight: 600;
  color: #f1f5f9;
  margin-bottom: 18px;
}

.prayer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 14px;
}

.prayer-item {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  padding: 14px 12px;
  text-align: center;
  backdrop-filter: blur(10px);
  transition: all 0.35s ease;
}

.prayer-name {
  font-size: 0.85rem;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: #cbd5e1;
  margin-bottom: 6px;
}

.prayer-item.active {
  background: linear-gradient(
    135deg,
    #fbbf24,
    #f59e0b
  );
  border: none;
  box-shadow: 0 10px 25px rgba(245, 158, 11, 0.45);
  transform: translateY(-4px) scale(1.03);
}

.prayer-item.active .prayer-name {
  color: #3b2f0a;
  font-weight: 600;
}

.prayer-item.active .prayer-time {
  color: #1f1604;
}

.prayer-item:hover {
  transform: translateY(-2px);
  background: rgba(255,255,255,0.12);
}

.prayer-time {
  font-size: 1.4rem;
  font-weight: 700;
  color: #f8fafc;
}

.prayer-wrapper {
  position: relative;
  margin-top: -24px;
}

.prayer-wrapper::before {
  content: "";
  display: block;
  width: 64px;
  height: 3px;
  margin: 0 auto 18px;

  background: linear-gradient(
    to right,
    rgba(245,195,106,0.25),
    rgba(245,195,106,0.9),
    rgba(245,195,106,0.25)
  );

  border-radius: 3px;
}

:root {
  --gold-main: #f5c36a;
  --gold-soft: rgba(245, 195, 106, 0.25);
  --gold-strong: rgba(245, 195, 106, 0.85);

  --blue-dark: #0f2a44;
  --glass-white: rgba(255,255,255,0.15);
}

.prayer-item {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 14px;
  padding: 14px 16px;
  text-align: center;
  backdrop-filter: blur(6px);

  transition: all 0.35s ease;
}

.prayer-name {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.75);
  margin-bottom: 4px;
}

.prayer-time {
  font-size: 1.15rem;
  font-weight: 600;
  color: #fff;
}

.prayer-item.active {
  background: linear-gradient(
    145deg,
    rgba(245,195,106,0.95),
    rgba(214,160,70,0.95)
  );

  color: #2a1a00;
  border: none;

  box-shadow:
    0 8px 28px rgba(245,195,106,0.45),
    inset 0 0 0 1px rgba(255,255,255,0.35);

  transform: translateY(-3px);
}

.prayer-item.active .prayer-name {
  color: rgba(60,40,10,0.85);
  font-weight: 600;
}

.prayer-item.active .prayer-time {
  color: #2a1a00;
  font-size: 1.25rem;
  font-weight: 700;
}

.prayer-item.active {
  animation: glowPulse 2.8s ease-in-out infinite;
}

@keyframes glowPulse {
  0%, 100% {
    box-shadow: 0 6px 22px rgba(245,195,106,0.35);
  }
  50% {
    box-shadow: 0 10px 34px rgba(245,195,106,0.55);
  }
}

/* ======================
   HEADER WAKTU SHOLAT
====================== */
.prayer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

/* JAM */
.prayer-clock {
  color: #fff;
  text-align: left;
}

#current-time {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 1px;
}

#current-date {
  display: block;
  font-size: 0.75rem;
  opacity: 0.75;
}

/* TOMBOL ALARM */
.alarm-btn {
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.2);
  color: #ffd66b;
  font-size: 1.1rem;
  border-radius: 10px;
  padding: 8px 12px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.alarm-btn.active {
  background: linear-gradient(145deg, #ffd66b, #e3b553);
  color: #2a1a00;
  box-shadow: 0 6px 20px rgba(245,195,106,0.45);
}

/* TOMBOL ALARM */
.alarm-btn {
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.2);
  color: #ffd66b;
  font-size: 1.1rem;
  border-radius: 10px;
  padding: 8px 12px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.alarm-btn.active {
  background: linear-gradient(145deg, #ffd66b, #e3b553);
  color: #2a1a00;
  box-shadow: 0 6px 20px rgba(245,195,106,0.45);
}

/* TOMBOL ALARM */
.alarm-btn {
  position: relative;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.25);
  color: #ffd66b;
  font-size: 1.1rem;
  border-radius: 12px;
  padding: 8px 14px;
  cursor: pointer;
  transition: all 0.3s ease;
}

/* ALARM AKTIF */
.alarm-btn.active {
  background: linear-gradient(145deg, #ffd66b, #e0b24f);
  color: #2a1a00;
  box-shadow:
    0 0 0 0 rgba(255,214,107,0.7),
    0 8px 22px rgba(255,214,107,0.45);
  animation: alarmPulse 2s infinite;
}

@keyframes alarmPulse {
  0% {
    box-shadow:
      0 0 0 0 rgba(255,214,107,0.6),
      0 8px 22px rgba(255,214,107,0.4);
  }
  70% {
    box-shadow:
      0 0 0 12px rgba(255,214,107,0),
      0 8px 22px rgba(255,214,107,0.4);
  }
  100% {
    box-shadow:
      0 0 0 0 rgba(255,214,107,0),
      0 8px 22px rgba(255,214,107,0.4);
  }
}

.prayer-item.is-adzan {
  background: linear-gradient(135deg, #ffd66b, #f1c15a);
  color: #342103;
  box-shadow: 0 10px 30px rgba(255,214,107,0.55);
  transform: scale(1.04);
}

.prayer-meta {
  display: flex;
  justify-content: center;
  gap: 10px;
  font-size: 0.9rem;
  opacity: 0.8;
  margin-bottom: 10px;
}

#current-clock {
  font-weight: 600;
}

.azan-toggle {
  margin: 12px auto 0;
  display: block;
  background: rgba(255,255,255,0.12);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.25);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.8rem;
  cursor: pointer;
}

.azan-toggle.active {
  background: linear-gradient(135deg, #f6c453, #f2a900);
  color: #1a1a1a;
  border: none;
}

.prayer-controls {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-top: 10px;
}

.prayer-controls select,
.prayer-controls button {
  background: rgba(255,255,255,0.15);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.25);
  padding: 6px 10px;
  border-radius: 8px;
  font-size: 0.8rem;
}

.prayer-location {
  margin-top: 8px;
  font-size: 0.75rem;
  opacity: 0.75;
  text-align: center;
}

body.dark .prayer-wrapper {
  background: transparent;
}

body.dark .prayer-box {
  background: linear-gradient(135deg, #0f172a, #1e293b);
  color: #e5e7eb;
  border: 1px solid rgba(56,189,248,0.4);
  box-shadow: 0 0 18px rgba(56,189,248,0.2);
}

body.dark .prayer-title {
  color: #fde68a;
}

body.dark .prayer-meta {
  color: #cbd5f5;
}

body.dark #current-clock {
  color: #fde047;
  font-weight: 700;
}

body.dark .prayer-item {
  background: rgba(15,23,42,0.5);
  border: 1px solid rgba(56,189,248,0.2);
  color: #e5e7eb;
}

body.dark .prayer-item:hover {
  border-color: rgba(56,189,248,0.35);
  box-shadow: 0 0 10px rgba(56,189,248,0.15);
}

body.dark .azan-toggle,
body.dark .alarm-btn {
  background: rgba(255,255,255,.06);
  color: #fde68a;
  border: 1px solid rgba(255,255,255,.1);
}

body.dark .azan-toggle.active {
  background: linear-gradient(135deg, #facc15, #fde047);
  color: #1f2937;
}

body.dark .prayer-item.active {
  background: linear-gradient(135deg, #facc15, #fde047);
  color: #1f2937;

  box-shadow: 
    0 10px 28px rgba(250,204,21,.45);
}

body.dark .prayer-item.active .prayer-name,
body.dark .prayer-item.active .prayer-time {
  color: #1f2937;
  font-weight: 700;
}

/* QUICK MENU WRAPPER */
.quick-menu {
background: linear-gradient(
  135deg,
  rgba(15, 23, 42, 0.9),
  rgba(30, 58, 138, 0.85)
  );
  padding: 14px 0 18px;
}

/* BIAR NEMPEL KE NAV */
.quick-menu + .navbar {
  margin-top: 0;
}

/* ISI TENGAH */
.quick-menu-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 16px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
}

/* KARTU */
.quick-card {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(255,255,255,0.55);
  backdrop-filter: blur(6px);
  text-decoration: none;
  color: #2b2b2b;
  box-shadow: 0 8px 18px rgba(0,0,0,0.08);
  transition: all .25s ease;
}

.quick-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 30px rgba(0,0,0,0.15);
}

/* ICON */
.quick-card .icon {
  font-size: 22px;
}

/* TEXT */
.quick-card strong {
  display: block;
  font-size: 14px;
}

.quick-card small {
  font-size: 12px;
  opacity: .75;
}

/* DONASI KHUSUS */
.quick-card.highlight {
  background: linear-gradient(
    135deg,
    #ffb347,
    #ffcc80
  );
  font-weight: 600;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .quick-menu-inner {
    grid-template-columns: repeat(2, 1fr);
  }
}
/* ========================
   AYAH PLAYER SLIM
======================== */

.ayah-player {

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;

  background: linear-gradient(
    135deg,
    #1e3a5f,
    #274b73,
    #1e3a5f
  );

  border-radius: 16px;
  padding: 14px 20px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.2);

  color: white;
  flex-wrap: wrap;
}

/* ========================
   TEXT AREA
======================== */

.ayah-player {
  background: linear-gradient(135deg, #1e3a8a, #2563eb);
  border-radius: 18px;
  padding: 32px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.25);

  display: flex;
  flex-direction: column;
  gap: 20px;
}

#daily-ayah-arab {
  font-family: "Amiri", serif;
  font-size: 20px;
  line-height: 2.2;
  text-align: center;
  direction: rtl;
  color: #ffffff;

  margin: 0;
}

#daily-ayah-arti {
  font-size: 15px;
  line-height: 1.8;
  text-align: center;     /* Tengah */
  direction: ltr;
  color: #e2e8f0;

  max-width: 750px;       /* Biar nggak terlalu melebar */
  margin: 0 auto;         /* Supaya tetap di tengah */
  padding-top: 14px;
}

#daily-ayah-arti {
  border-top: 1px solid rgba(255,255,255,0.2);
  padding-top: 16px;
}

/* ========================
   CONTROL AREA
======================== */

.ayah-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* DROPDOWN */

#qari-select {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  color: white;

  padding: 6px 10px;
  border-radius: 8px;
  font-size: 13px;
  cursor: pointer;
}

/* ========================
   BUTTONS
======================== */

.ayah-controls button {

  width: 34px;
  height: 34px;

  border: none;
  border-radius: 8px;

  cursor: pointer;
  font-size: 14px;

  transition: 0.25s;
}

/* PLAY */

#daily-ayah-play {
  background: #3b82f6;
  color: white;
}

#daily-ayah-play:hover {
  background: #60a5fa;
}

/* STOP */

#daily-ayah-stop {
  background: rgba(255,255,255,0.2);
  color: white;
}

#daily-ayah-stop:hover {
  background: rgba(255,255,255,0.35);
}

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

@media (max-width: 768px) {

  .ayah-player {
    flex-direction: column;
    align-items: flex-start;
  }

  #daily-ayah-arab {
    font-size: 20px;
  }

  #daily-ayah-arti {
    font-size: 13px;
  }

}

.dev-only {
  display: none;
}

/* ======================
   PROGRESS MENUJU SHOLAT
====================== */

.prayer-progress {
  margin: 14px 0 18px;
}

.progress-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.8);
  margin-bottom: 6px;
}

.progress-bar {
  width: 100%;
  height: 8px;
  border-radius: 999px;
  background: rgba(255,255,255,0.15);
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(
    90deg,
    #facc15,
    #fde047
  );
  border-radius: 999px;
  transition: width 0.6s ease;
}

/* dark mode aman */
body.dark .progress-label {
  color: rgba(255,255,255,0.7);
}

.prayer-status {
  margin-left: auto;
  font-size: 0.75rem;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.15);
  color: #fff;
}

.prayer-status.active {
  background: linear-gradient(135deg,#facc15,#fde047);
  color: #1f2937;
  font-weight: 600;
  box-shadow: 0 0 14px rgba(250,204,21,.6);
}

/* ======================
   PRAYER HEADER LAYOUT
====================== */
.prayer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 16px;
}

/* JAM + TANGGAL DI KIRI */
.prayer-clock {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

#current-time {
  font-size: 1.6rem;
  font-weight: 700;
}

#current-date {
  font-size: 0.8rem;
  opacity: 0.75;
  margin-top: 2px;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .prayer-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .prayer-clock {
    flex-direction: row;
    gap: 10px;
    align-items: center;
  }

  #current-date {
    margin-top: 0;
  }
}

.prayer-controls-simple {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 12px;
}

/* PANEL SETTINGS */
.settings-panel {
  display: none;
  flex-direction: column;
  gap: 14px;
  margin-top: 14px;
  padding: 16px;

  background: rgba(10, 20, 40, 0.65);
  backdrop-filter: blur(12px);
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.08);

  box-shadow: 0 10px 30px rgba(0,0,0,0.35);
  animation: fadeSlide 0.25s ease;
}

.settings-panel.active {
  display: flex;
}

/* SETTING ITEM */
.setting-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.setting-item label {
  font-size: 13px;
  color: rgba(255,255,255,0.7);
  font-weight: 500;
}

/* SLIDER */
#azan-volume {
  width: 100%;
  accent-color: #22c55e;
  cursor: pointer;
}

/* SELECT MUADZIN */
#muadzin-select {
  width: 100%;
  padding: 8px 10px;
  border-radius: 8px;
  border: none;
  background: rgba(255,255,255,0.08);
  color: white;
  font-size: 14px;
}

/* NOTIF BUTTON */
.notif-btn {
  margin-top: 6px;
  background: linear-gradient(135deg, #facc15, #f59e0b);
  color: #1f2937;
  border: none;
  padding: 9px 12px;
  border-radius: 10px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.2s;
}

.notif-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(0,0,0,0.25);
}

/* ANIMATION */
@keyframes fadeSlide {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* PANEL SETTINGS */
.settings-panel {
  display: none;
  flex-direction: column;
  gap: 14px;
  margin-top: 14px;
  padding: 16px;

  background: rgba(10, 20, 40, 0.65);
  backdrop-filter: blur(12px);
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.08);

  box-shadow: 0 10px 30px rgba(0,0,0,0.35);
  animation: fadeSlide 0.25s ease;
}

.settings-panel.active {
  display: flex;
}

/* SETTING ITEM */
.setting-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.setting-item label {
  font-size: 13px;
  color: rgba(255,255,255,0.7);
  font-weight: 500;
}

/* SLIDER */
#azan-volume {
  width: 100%;
  accent-color: #22c55e;
  cursor: pointer;
}

/* SELECT MUADZIN */
#muadzin-select {
  width: 100%;
  padding: 8px 10px;
  border-radius: 8px;
  border: none;
  background: rgba(255,255,255,0.08);
  color: white;
  font-size: 14px;
}

/* NOTIF BUTTON */
.notif-btn {
  margin-top: 6px;
  background: linear-gradient(135deg, #facc15, #f59e0b);
  color: #1f2937;
  border: none;
  padding: 9px 12px;
  border-radius: 10px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.2s;
}

.notif-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(0,0,0,0.25);
}

/* ANIMATION */
@keyframes fadeSlide {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* TEKS MENUJU SHOLAT */
#next-prayer {
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
  letter-spacing: 0.3px;
}

/* STATUS SHOLAT (Menuju Fajr dll) */
.prayer-status {
  color: #facc15; /* emas lembut */
  font-weight: 600;
  margin-left: 8px;
}

/* JAM BESAR */
#current-clock {
  color: white;
  font-weight: 700;
}

/* TANGGAL */
#current-date {
  color: rgba(255, 255, 255, 0.7);
}

/* KONTROL AZAN + SETTINGS */
.prayer-controls-simple {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin: 10px 0 6px;
}

/* LOKASI + HIJRI SEJAJAR */
.prayer-info-row {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 10px;
  flex-wrap: wrap;
}


/* style biar kelihatan premium */
.prayer-location,
.prayer-hijri {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;

  padding: 6px 14px;
  border-radius: 20px;

  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(6px);

  font-size: 13px;
  color: #e2e8f0;

  min-height: 30px;
  white-space: nowrap;
}


/* =========================
   QUICK MENU DARK MODE
========================= */
body.dark .quick-menu {
  background: linear-gradient(135deg, #0f172a, #1e293b);
}

body.dark .quick-card {
  background: #1f2937;
  color: #e5e7eb;
}

body.dark .quick-card small {
  color: #94a3b8;
}

body.dark .quick-card.highlight {
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  color: #1f2937;
}

/* =========================
   DARK MODE – PRAYER BOX
========================= */

body.dark .prayer-wrapper {
  background: transparent;
}

body.dark .prayer-box {
  background: linear-gradient(135deg, #0f172a, #1e293b);
  color: #e5e7eb;
  border: 1px solid rgba(56,189,248,0.4);
  box-shadow: 0 0 18px rgba(56,189,248,0.2);
}

/* Judul */
body.dark .prayer-title {
  color: #f1f5f9;
}

/* Meta info (jam + countdown) */
body.dark .prayer-meta {
  color: #cbd5f1;
}

/* Progress bar */
body.dark .progress-bar {
  background: rgba(255,255,255,0.1);
}

/* Item sholat */
body.dark .prayer-item {
  background: rgba(15,23,42,0.5);
  color: #e5e7eb;
  border: 1px solid rgba(56,189,248,0.2);
}

body.dark .prayer-item:hover {
  border-color: rgba(56,189,248,0.35);
  box-shadow: 0 0 10px rgba(56,189,248,0.15);
}

body.dark .prayer-item .prayer-name {
  color: #94a3b8;
}

body.dark .prayer-item .prayer-time {
  color: #f8fafc;
}

/* Item aktif */
body.dark .prayer-item.active {
  background: linear-gradient(135deg, #1d4ed8, #2563eb);
  color: white;
}

/* Lokasi & hijri */
body.dark .prayer-location,
body.dark .prayer-hijri {
  background: rgba(255,255,255,0.06);
  color: #cbd5f1;
}

/* Ayat harian */
body.dark .ayah-player {
  background: linear-gradient(135deg, #1e3a8a, #1d4ed8);
  color: white;
}

/* PAKSA posisi badge di artikel */
header .lang-badge {
  position: static !important;
  margin-right: 10px !important;
}

#popular-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 30px;
}

.card {
  background: #ffffff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
  transition: all 0.25s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.08);
}

.card h3 {
  padding: 12px 16px 4px;
  font-size: 18px;
}

.card p {
  padding: 0 16px 12px;
  color: #555;
  line-height: 1.6;
}

.card .read-more {
  display: inline-block;
  margin: 0 16px 16px;
  font-weight: 600;
}

.card .thumb {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}

/* CARD POPULER – STYLE PROFESIONAL */
.card.is-popular {
  position: relative;
  border: 1px solid rgba(29, 78, 216, 0.25);
  box-shadow: 0 10px 28px rgba(29, 78, 216, 0.12);
  transition: all 0.25s ease;
}

/* GARIS ATAS POPULER (TIPIS & HALUS) */
.card.is-popular::before {
  content: "POPULER";
  position: absolute;
  top: 12px;
  right: 12px;
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
  color: white;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  letter-spacing: 0.5px;
}
/* HOVER EFFECT */
.card.is-popular:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 34px rgba(29, 78, 216, 0.18);
}


/* badge hanya berlaku di dalam card */
.card .badge-popular {
  position: absolute;
  top: 12px;
  right: 12px;

  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #fff;

  padding: 5px 14px;
  border-radius: 999px;

  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.4px;

  display: inline-flex;
  align-items: center;
  gap: 6px;

  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.35);
  z-index: 2;
}

/* card populer */
.card.is-popular {
  border: 1px solid rgba(37, 99, 235, 0.25);
  box-shadow:
    0 10px 30px rgba(37, 99, 235, 0.12),
    0 0 0 1px rgba(37, 99, 235, 0.08);
  transition: all 0.25s ease;
}

/* efek hover premium */
.card.is-popular:hover {
  transform: translateY(-4px);
  box-shadow:
    0 18px 40px rgba(37, 99, 235, 0.18),
    0 0 0 1px rgba(37, 99, 235, 0.15);
}

/* =========================
   MOBILE: ARTIKEL POPULER
========================= */
@media (max-width: 768px) {

  /* grid jadi 1 kolom */
  .popular-section .articles-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
  }

  /* card populer */
  .card.is-popular {
    padding: 14px;
    border-radius: 16px;
  }

  /* gambar lebih kecil */
  .card.is-popular .thumb {
    height: 160px;
    object-fit: cover;
    border-radius: 12px;
  }

  /* badge populer lebih kecil */
  .badge-popular {
    top: 8px;
    right: 8px;
    font-size: 10px;
    padding: 4px 10px;
  }

  /* judul lebih ringkas */
  .card.is-popular h3 {
    font-size: 16px;
    line-height: 1.35;
    margin: 8px 0 4px;
  }

  /* deskripsi lebih kecil */
  .card.is-popular p {
    font-size: 13px;
    line-height: 1.5;
  }

}

/* baris atas kategori + bintang */
.card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

/* bintang kecil */
.card-bookmark {
  background: none;
  border: none;
  font-size: 18px;
  cursor: pointer;
  color: #cbd5f5;
  transition: transform 0.2s ease, color 0.2s ease;
}

.card-bookmark:hover {
  transform: scale(1.2);
}

/* saat disimpan */
.card-bookmark.active {
  color: #facc15; /* kuning */
}

.card-bookmark.pop {
  transform: scale(1.3);
}

.section-header {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

#download-category {
  width: fit-content;
}

/* ============================= */
/* DOWNLOAD CATEGORY BUTTON      */
/* ============================= */
#download-category {
  position: relative;
  margin-top: 14px;
  padding: 12px 24px;
  border-radius: 999px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  color: white;
  overflow: hidden;

  /* gradient biru */
  background: linear-gradient(135deg, #2563eb, #1e40af);
  box-shadow: 0 8px 22px rgba(37, 99, 235, 0.35);

  transition: all 0.35s ease;
}

/* hover */
#download-category:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(37, 99, 235, 0.45);
}

/* efek kilau */
#download-category::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(
    120deg,
    transparent,
    rgba(255, 255, 255, 0.5),
    transparent
  );
  transition: all 0.6s ease;
}

#download-category:hover::before {
  left: 120%;
}

/* ============================= */
/* STATE: DOWNLOADED (HIJAU)     */
/* ============================= */
#download-category.downloaded {
  background: linear-gradient(135deg, #16a34a, #22c55e);
  box-shadow: 0 8px 24px rgba(34, 197, 94, 0.35);
  transform: scale(1.04);
}

/* animasi centang */
#download-category.downloaded::after {
  content: "\2713";
  margin-left: 8px;
  animation: pop 0.4s ease;
}

/* animasi pop */
@keyframes pop {
  0% {
    transform: scale(0);
    opacity: 0;
  }
  60% {
    transform: scale(1.4);
    opacity: 1;
  }
  100% {
    transform: scale(1);
  }
}

/* responsive */
@media (max-width: 600px) {
  #download-category {
    width: 100%;
    justify-content: center;
    font-size: 0.9rem;
  }
}


/* =========================
   DOWNLOAD PROGRESS
========================= */
.download-progress {
  margin-top: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: #334155;
}

.progress-bar {
  flex: 1;
  height: 8px;
  background: #e2e8f0;
  border-radius: 20px;
  overflow: hidden;
}

#progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #2563eb, #16a34a);
  transition: width 0.3s ease;
  border-radius: 20px;
}

/* =========================
   EFEK HIDUP ONLINE
========================= */
.offline-indicator:not(.offline) {
  animation: onlinePulse 2.2s infinite;
}

/* animasi cahaya berdenyut */
@keyframes onlinePulse {
  0% {
    box-shadow:
      0 0 0 0 rgba(59,130,246,0.45),
      inset 0 1px 0 rgba(255,255,255,0.25);
  }
  70% {
    box-shadow:
      0 0 0 10px rgba(59,130,246,0),
      inset 0 1px 0 rgba(255,255,255,0.25);
  }
  100% {
    box-shadow:
      0 0 0 0 rgba(59,130,246,0),
      inset 0 1px 0 rgba(255,255,255,0.25);
  }
}

/* =========================
   ONLINE / OFFLINE BADGE
========================= */
.offline-indicator {
  font-size: 13px;
  padding: 6px 14px;
  border-radius: 999px;
  font-weight: 600;
  letter-spacing: 0.3px;
  display: inline-flex;
  align-items: center;
  gap: 6px;

  /* warna online (biru gradasi) */
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  color: #fff;

  box-shadow:
    0 4px 10px rgba(37, 99, 235, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);

  transition: all 0.25s ease;
}

/* glow halus */
.offline-indicator::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 999px;
  opacity: 0.25;
  filter: blur(8px);
  background: linear-gradient(135deg, #60a5fa, #3b82f6);
  z-index: -1;
}

/* saat OFFLINE */
.offline-indicator.offline {
  background: linear-gradient(135deg, #ef4444, #b91c1c);
  box-shadow:
    0 4px 10px rgba(239, 68, 68, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

/* ============================= */
/* OFFLINE TOAST NOTIFICATION */
/* ============================= */
.offline-toast {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: linear-gradient(135deg, #f59e0b, #f97316);
  color: white;
  padding: 14px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
  opacity: 0;
  pointer-events: none;
  transition: all 0.4s ease;
  z-index: 9999;
}

.offline-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* =========================
   OFFLINE SECTION CLEAN
========================= */
.offline-section {
  margin: 60px 0;
  padding: 0;          /* hapus padding besar */
  background: none;    /* hilangkan kotak gradien */
  border: none;
}

/* HEADER */
.offline-section .section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

/* JUDUL OFFLINE JADI SEPERTI LABEL */
.offline-section h2 {
  font-size: 1.4rem;
  font-weight: 700;
  color: #0f172a;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;

  background: linear-gradient(
    135deg,
    rgba(30, 64, 175, 0.12),
    rgba(37, 99, 235, 0.18)
  );

  border: 1px solid rgba(30, 64, 175, 0.15);
}

/* LINK LIHAT SEMUA */
.offline-section .see-all {
  font-size: 0.95rem;
  font-weight: 600;
  color: #1e40af;
  text-decoration: none;
  transition: 0.25s;
}

.offline-section .see-all:hover {
  opacity: 0.7;
}

/* =========================
   OFFLINE BUTTON STYLE
========================= */

/* JUDUL JADI BADGE BUNDLED */
.offline-section h2 {
  font-size: 1.4rem;
  font-weight: 700;
  color: white;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: 999px;
  background: linear-gradient(90deg, #1e40af, #2563eb);
  background: linear-gradient(
    135deg,
    #1e3a8a,
    #2563eb
  );

  box-shadow:
    0 8px 18px rgba(37, 99, 235, 0.25),
    inset 0 1px 0 rgba(255,255,255,0.25);

  transition: all 0.3s ease;
}

.offline-section h2:hover {
  transform: translateY(-1px);
  box-shadow:
    0 12px 24px rgba(37, 99, 235, 0.35);
}

/* TOMBOL LIHAT SEMUA */
.offline-section .see-all {
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  color: white;

  background: linear-gradient(
    135deg,
    #0ea5e9,
    #2563eb
  );

  box-shadow:
    0 6px 16px rgba(37, 99, 235, 0.25);

  transition: all 0.25s ease;
}

.offline-section .see-all:hover {
  transform: translateY(-2px);
  box-shadow:
    0 10px 22px rgba(37, 99, 235, 0.35);
}

#offline-home-list{
  display:none !important;
}

/* JIKA ADA TOMBOL DI DALAM CARD OFFLINE */
.offline-section .read-more {
  display: inline-block;
  margin-top: 10px;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  color: #1e40af;

  background: linear-gradient(
    135deg,
    rgba(30, 64, 175, 0.12),
    rgba(37, 99, 235, 0.18)
  );

  border: 1px solid rgba(37, 99, 235, 0.25);
  transition: 0.25s;
}

.offline-section .read-more:hover {
  background: linear-gradient(
    135deg,
    rgba(30, 64, 175, 0.2),
    rgba(37, 99, 235, 0.28)
  );
}



/* =========================
   LANJUTKAN MEMBACA - FINAL
   ========================= */

.last-reading {
  margin: 16px 0 10px;
}

.last-reading h2 {
  font-size: 24px;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* CARD UTAMA */
.last-reading-card {
  background: linear-gradient(135deg, #2563eb, #06b6d4);
  color: white;
  padding: 22px 26px;
  border-radius: 16px;
  box-shadow: 
    0 12px 30px rgba(37, 99, 235, 0.35),
    0 4px 10px rgba(0,0,0,0.12);
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

/* efek hover halus */
.last-reading-card:hover {
  transform: translateY(-4px) scale(1.01);
  box-shadow: 
    0 18px 45px rgba(37, 99, 235, 0.45),
    0 6px 15px rgba(0,0,0,0.15);
}

.last-reading-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    120deg,
    transparent,
    rgba(255,255,255,0.18),
    transparent
  );
  opacity: 0;
  transition: opacity 0.4s ease;
}

.last-reading-card:hover::before {
  opacity: 1;
}

/* kategori */
.last-reading-card .category {
  display: inline-block;
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 20px;
  background: rgba(255,255,255,0.15);
  margin-bottom: 8px;
}

/* judul */
.last-reading-card h3 {
  font-size: 18px;
  margin: 6px 0;
  font-weight: 600;
}

/* progress text */
.last-reading-card p {
  font-size: 14px;
  opacity: 0.85;
  margin-bottom: 14px;
}

/* tombol */
.last-reading-card .btn-premium {
  display: inline-block;
  padding: 8px 18px;
  border-radius: 999px;
  background: linear-gradient(135deg, #60a5fa, #3b82f6);
  color: white;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.25s ease;
}

.last-reading-card .btn-premium:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(59,130,246,0.4);
}

.reading-progress-bar {
  width: 100%;
  height: 8px;
  background: rgba(255,255,255,0.25);
  border-radius: 999px;
  overflow: hidden;
  margin: 10px 0 14px;
}

.reading-progress-fill {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, #ffffff, #c7f9ff);
  border-radius: 999px;
  transition: width 0.8s ease;
}

/* === HOME OFFLINE STATS === */
.home-stats {
  display: flex;
  gap: 16px;
  margin: 8px 0 0; /* jarak atas & bawah diperkecil */
  flex-wrap: wrap;
  justify-content: center;
}

.home-stats .stat-card {
  min-width: 220px;
  background: linear-gradient(135deg, rgba(255,255,255,0.22), rgba(255,255,255,0.10));
  color: #0f172a;
  border-radius: 18px;
  padding: 16px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  border: 1px solid rgba(255,255,255,0.38);
  box-shadow: 0 16px 42px rgba(2,6,23,0.12);
  backdrop-filter: blur(12px);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.home-stats .stat-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 56px rgba(2,6,23,0.16);
  border-color: rgba(14,165,233,0.35);
}

.home-stats .stat-icon {
  font-size: 24px;
  background: rgba(15,23,42,0.08);
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.55);
}

.home-stats .stat-info span {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0.01em;
  display: block;
}

.home-stats .stat-info small {
  color: rgba(15,23,42,0.72);
  font-size: 13px;
  font-weight: 600;
}

body.dark .home-stats .stat-card{
  background: linear-gradient(135deg, rgba(2,6,23,0.72), rgba(15,23,42,0.46));
  color: rgba(226,232,240,0.96);
  border: 1px solid rgba(56,189,248,0.20);
  box-shadow: 0 20px 60px rgba(0,0,0,0.52);
  animation: home-dark-green-pulse-home-stat 3.5s cubic-bezier(0.45, 0.05, 0.55, 0.95) infinite;
}

body.dark .home-stats .stat-card:hover{
  border-color: rgba(56,189,248,0.34);
  box-shadow: 0 26px 70px rgba(0,0,0,0.58);
}

body.dark .home-stats .stat-icon{
  background: rgba(255,255,255,0.08);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.12);
}

body.dark .home-stats .stat-info small{
  color: rgba(203,213,245,0.82);
}

/* ============================= */
/* DARK MODE – LAST READING */
/* ============================= */
body.dark .last-reading-card {
  background: linear-gradient(
    135deg,
    rgba(15, 23, 42, 0.95),
    rgba(30, 58, 138, 0.85)
  );
  color: #e2e8f0;
  border: 1px solid rgba(59, 130, 246, 0.35);
  box-shadow:
    0 10px 28px rgba(0, 0, 0, 0.55),
    0 0 18px rgba(59, 130, 246, 0.25);
}

body.dark .last-reading-card h3 {
  color: #93c5fd;
}

body.dark .last-reading-card a {
  background: linear-gradient(135deg, #3b82f6, #60a5fa);
  color: white;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

/* Dark home: pembungkus Statistik Membaca — cincin biru terang */
@keyframes home-dark-blue-pulse-reader-stats {
  0%,
  100% {
    box-shadow:
      0 10px 30px rgba(0, 0, 0, 0.42),
      0 0 0 1px rgba(56, 189, 248, 0.32),
      0 0 14px rgba(56, 189, 248, 0.14),
      inset 0 0 0 1px rgba(255, 255, 255, 0.03);
    border-color: rgba(56, 189, 248, 0.38);
  }
  25%,
  75% {
    box-shadow:
      0 10px 30px rgba(0, 0, 0, 0.42),
      0 0 0 1px rgba(96, 200, 245, 0.44),
      0 0 20px rgba(56, 189, 248, 0.26),
      0 0 34px rgba(14, 165, 233, 0.09),
      inset 0 0 0 1px rgba(56, 189, 248, 0.04);
    border-color: rgba(96, 200, 245, 0.48);
  }
  50% {
    box-shadow:
      0 10px 30px rgba(0, 0, 0, 0.42),
      0 0 0 1px rgba(125, 211, 252, 0.52),
      0 0 26px rgba(56, 189, 248, 0.34),
      0 0 40px rgba(14, 165, 233, 0.11),
      inset 0 0 0 1px rgba(56, 189, 248, 0.06);
    border-color: rgba(125, 211, 252, 0.52);
  }
}

body.dark.home-page .reader-stats {
  border: 1px solid rgba(56, 189, 248, 0.35);
  box-sizing: border-box;
  animation: home-dark-blue-pulse-reader-stats 3.5s cubic-bezier(0.45, 0.05, 0.55, 0.95) infinite;
}

body.dark.home-page .reader-stats h3 {
  color: #e0f2fe;
}


/* ============================= */
/* DARK MODE – OFFLINE STAT */
/* ============================= */
body.dark .offline-stat {
  background: linear-gradient(
    135deg,
    rgba(15, 23, 42, 0.95),
    rgba(30, 58, 138, 0.85)
  );
  color: #e2e8f0;
  border: 1px solid rgba(59, 130, 246, 0.35);
  box-shadow:
    0 10px 28px rgba(0, 0, 0, 0.55),
    0 0 18px rgba(59, 130, 246, 0.25);
}

body.dark .offline-stat span {
  color: #93c5fd;
  font-weight: 600;
}

/* ===================== */
/* READER STATS WIDGET */
/* ===================== */
.reader-stats {
  margin: 10px 16px 24px;
  padding: 18px;
  border-radius: 18px;
  background: linear-gradient(135deg, #eff6ff, #dbeafe);
  box-shadow: 0 10px 28px rgba(0,0,0,0.08);
}

.reader-stats h3 {
  margin-bottom: 14px;
  font-size: 18px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.stat-box {
  background: white;
  padding: 14px;
  border-radius: 14px;
  text-align: center;
  box-shadow: 0 6px 16px rgba(0,0,0,0.08);
}

.stat-box span {
  display: block;
  font-size: 22px;
  font-weight: 700;
  color: #1e3a8a;
}

.stat-box p {
  font-size: 12px;
  color: #475569;
  margin-top: 4px;
}

/* DARK MODE */
body.dark .reader-stats {
  background: linear-gradient(135deg, #0f172a, #1e3a8a);
  color: #e2e8f0;
}

body.dark .stat-box {
  background: rgba(15, 23, 42, 0.9);
  color: #e2e8f0;
}

body.dark .stat-box span {
  color: #93c5fd;
}

/* ========== Home dark: cincin hijau di keliling tepi membulat (mirip kartu artikel) ========== */
body.dark.home-page .intro-values .value-item::after {
  display: none;
}

body.dark .intro-values .value-item {
  border: 1px solid rgba(34, 197, 94, 0.28);
  border-radius: 22px;
  box-shadow:
    0 14px 32px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(34, 197, 94, 0.2),
    inset 0 0 0 1px rgba(255, 255, 255, 0.04);
  animation: home-dark-green-pulse-value 3.5s cubic-bezier(0.45, 0.05, 0.55, 0.95) infinite;
}

body.dark .intro-values .author-preview-card.author-preview-inline {
  border: 1px solid rgba(34, 197, 94, 0.22);
  border-left: 4px solid #fde047;
  border-radius: 16px;
}

body.dark .reader-stats .stat-box {
  border-radius: 14px;
  border: 1px solid rgba(34, 197, 94, 0.2);
}

@keyframes home-dark-green-pulse-value {
  0%,
  100% {
    box-shadow:
      0 14px 32px rgba(0, 0, 0, 0.45),
      0 0 0 1px rgba(34, 197, 94, 0.25),
      0 0 12px rgba(34, 197, 94, 0.12),
      inset 0 0 0 1px rgba(255, 255, 255, 0.04);
    border-color: rgba(34, 197, 94, 0.3);
  }
  25%,
  75% {
    box-shadow:
      0 14px 32px rgba(0, 0, 0, 0.45),
      0 0 0 1px rgba(52, 211, 153, 0.38),
      0 0 18px rgba(34, 197, 94, 0.22),
      0 0 28px rgba(34, 197, 94, 0.09),
      inset 0 0 0 1px rgba(255, 255, 255, 0.04);
    border-color: rgba(52, 211, 153, 0.44);
  }
  50% {
    box-shadow:
      0 14px 32px rgba(0, 0, 0, 0.45),
      0 0 0 1px rgba(74, 222, 128, 0.5),
      0 0 24px rgba(34, 197, 94, 0.34),
      0 0 38px rgba(34, 197, 94, 0.11),
      inset 0 0 0 1px rgba(34, 197, 94, 0.06);
    border-color: rgba(74, 222, 128, 0.52);
  }
}

@keyframes home-dark-green-pulse-author {
  0%,
  100% {
    box-shadow:
      0 10px 30px rgba(0, 0, 0, 0.4),
      0 0 0 1px rgba(34, 197, 94, 0.22);
    border-color: rgba(34, 197, 94, 0.28);
    border-left-color: #fde047;
  }
  25%,
  75% {
    box-shadow:
      0 10px 30px rgba(0, 0, 0, 0.4),
      0 0 0 1px rgba(52, 211, 153, 0.36),
      0 0 18px rgba(34, 197, 94, 0.26),
      0 0 30px rgba(34, 197, 94, 0.08);
    border-color: rgba(52, 211, 153, 0.4);
    border-left-color: #fde047;
  }
  50% {
    box-shadow:
      0 10px 30px rgba(0, 0, 0, 0.4),
      0 0 0 1px rgba(74, 222, 128, 0.48),
      0 0 22px rgba(34, 197, 94, 0.32),
      0 0 36px rgba(34, 197, 94, 0.1);
    border-color: rgba(74, 222, 128, 0.42);
    border-left-color: #fde047;
  }
}

@keyframes home-dark-green-pulse-home-stat {
  0%,
  100% {
    box-shadow:
      0 20px 60px rgba(0, 0, 0, 0.52),
      0 0 0 1px rgba(34, 197, 94, 0.18);
    border-color: rgba(56, 189, 248, 0.22);
  }
  25%,
  75% {
    box-shadow:
      0 20px 60px rgba(0, 0, 0, 0.52),
      0 0 0 1px rgba(52, 211, 153, 0.32),
      0 0 18px rgba(34, 197, 94, 0.24),
      0 0 32px rgba(34, 197, 94, 0.07);
    border-color: rgba(45, 212, 191, 0.38);
  }
  50% {
    box-shadow:
      0 20px 60px rgba(0, 0, 0, 0.52),
      0 0 0 1px rgba(74, 222, 128, 0.46),
      0 0 22px rgba(34, 197, 94, 0.3),
      0 0 38px rgba(34, 197, 94, 0.1);
    border-color: rgba(34, 197, 94, 0.44);
  }
}

@keyframes home-dark-green-pulse-reader-box {
  0%,
  100% {
    box-shadow:
      0 6px 16px rgba(0, 0, 0, 0.35),
      0 0 0 1px rgba(34, 197, 94, 0.2);
    border-color: rgba(34, 197, 94, 0.22);
  }
  25%,
  75% {
    box-shadow:
      0 6px 16px rgba(0, 0, 0, 0.35),
      0 0 0 1px rgba(52, 211, 153, 0.36),
      0 0 14px rgba(34, 197, 94, 0.26),
      0 0 26px rgba(34, 197, 94, 0.07);
    border-color: rgba(52, 211, 153, 0.4);
  }
  50% {
    box-shadow:
      0 6px 16px rgba(0, 0, 0, 0.35),
      0 0 0 1px rgba(74, 222, 128, 0.48),
      0 0 20px rgba(34, 197, 94, 0.32),
      0 0 32px rgba(34, 197, 94, 0.09);
    border-color: rgba(74, 222, 128, 0.48);
  }
}

@keyframes home-dark-green-pulse-search {
  0%,
  100% {
    box-shadow:
      0 6px 20px rgba(0, 0, 0, 0.35),
      0 0 0 1px rgba(34, 197, 94, 0.15);
    border-color: #334155;
  }
  25%,
  75% {
    box-shadow:
      0 6px 20px rgba(0, 0, 0, 0.35),
      0 0 0 1px rgba(52, 211, 153, 0.32),
      0 0 12px rgba(34, 197, 94, 0.22),
      0 0 24px rgba(34, 197, 94, 0.07);
    border-color: rgba(34, 197, 94, 0.25);
  }
  50% {
    box-shadow:
      0 6px 20px rgba(0, 0, 0, 0.35),
      0 0 0 1px rgba(74, 222, 128, 0.44),
      0 0 18px rgba(34, 197, 94, 0.28),
      0 0 28px rgba(34, 197, 94, 0.09);
    border-color: rgba(34, 197, 94, 0.46);
  }
}

body.dark .intro-values .value-item:nth-child(2) {
  animation-delay: 0.45s;
}

body.dark .intro-values .author-preview-card.author-preview-inline {
  animation: home-dark-green-pulse-author 3.5s cubic-bezier(0.45, 0.05, 0.55, 0.95) infinite;
  animation-delay: 0.2s;
}

body.dark .reader-stats .stat-box {
  animation: home-dark-green-pulse-reader-box 3.5s cubic-bezier(0.45, 0.05, 0.55, 0.95) infinite;
}

body.dark .reader-stats .stats-grid .stat-box:nth-child(1) {
  animation-delay: 0s;
}
body.dark .reader-stats .stats-grid .stat-box:nth-child(2) {
  animation-delay: 0.3s;
}
body.dark .reader-stats .stats-grid .stat-box:nth-child(3) {
  animation-delay: 0.6s;
}

body.dark .welcome-search input {
  animation: home-dark-green-pulse-search 3.5s cubic-bezier(0.45, 0.05, 0.55, 0.95) infinite;
}

@media (prefers-reduced-motion: reduce) {
  body.dark .intro-values .value-item,
  body.dark .intro-values .author-preview-card.author-preview-inline,
  body.dark .home-stats .stat-card,
  body.dark .reader-stats .stat-box,
  body.dark .welcome-search input,
  body.dark.home-page .ads-carousel-card,
  body.dark.home-page .reader-stats {
    animation: none !important;
  }
}

/* pastikan card last reading bisa diklik */
.last-reading {
  position: relative;
  z-index: 20;
}

.last-reading-card {
  position: relative;
  z-index: 21;
}

.last-reading-card a {
  position: relative;
  z-index: 22;
  display: inline-block;
  pointer-events: auto;
}

/* ===============================
   PRAYER BOX PREMIUM FINAL
================================= */

.prayer-box {
  position: relative;
  background: linear-gradient(135deg, #0f172a, #1e3a8a);
  border-radius: 20px;
  padding: 22px;
  color: white;
  overflow: hidden;
  transition: all 0.4s ease;

  /* GLOW BIRU ELEGAN */
  box-shadow:
    0 12px 35px rgba(0, 0, 0, 0.35),
    0 0 18px rgba(59, 130, 246, 0.25),
    0 0 40px rgba(59, 130, 246, 0.15);
}

/* efek kilap bergerak */
.prayer-box::after {
  content: "";
  position: absolute;
  top: -50%;
  left: -30%;
  width: 160%;
  height: 200%;
  background: linear-gradient(
    120deg,
    transparent,
    rgba(255,255,255,0.25),
    transparent
  );
  transform: rotate(25deg);
  animation: shineMove 6s linear infinite;
}

/* animasi kilap */
@keyframes shineMove {
  0% {
    transform: translateX(-100%) rotate(25deg);
  }
  100% {
    transform: translateX(100%) rotate(25deg);
  }
}

/* konten di atas efek */
.prayer-box > * {
  position: relative;
  z-index: 2;
}

/* ===============================
   WARNA SESUAI WAKTU
================================= */

.prayer-subuh {
  background: linear-gradient(135deg, #0f2027, #2c5364);
  box-shadow:
    0 0 40px rgba(100,200,255,0.5),
    0 10px 50px rgba(0,0,0,0.4);
}

.prayer-dzuhur {
  background: linear-gradient(135deg, #f7971e, #ffd200);
  color: #1a1a1a;
  box-shadow:
    0 0 40px rgba(255,200,0,0.6),
    0 10px 50px rgba(0,0,0,0.4);
}

.prayer-ashar {
  background: linear-gradient(135deg, #f46b45, #eea849);
  box-shadow:
    0 0 40px rgba(255,150,80,0.5),
    0 10px 50px rgba(0,0,0,0.4);
}

.prayer-maghrib {
  background: linear-gradient(135deg, #141e30, #243b55);
  box-shadow:
    0 0 40px rgba(80,120,255,0.5),
    0 10px 50px rgba(0,0,0,0.4);
}

.prayer-isya {
  background: linear-gradient(135deg, #020024, #090979, #000000);
  box-shadow:
    0 0 50px rgba(0,0,80,0.7),
    0 10px 60px rgba(0,0,0,0.5);
}

.card-date {
  display: inline-block;
  margin-top: 10px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 500;
  color: #374151;
  background: #f3f4f6;
  border-radius: 999px;
}

.quick-card.ramadhan-card {
  background: linear-gradient(135deg, #0f172a, #0ea5e9);
  color: white;
  box-shadow: 0 0 20px rgba(14, 165, 233, 0.35);
}

.quick-card.ramadhan-card small {
  color: rgba(255,255,255,0.8);
}

/* =====================
   RAMADHAN MODE
===================== */

/* warna teks menuju imsak */
.next-imsak {
  color: #ffd166 !important;
  text-shadow: 0 0 8px rgba(255, 209, 102, 0.6);
  font-weight: 600;
}

/* container prayer harus relative */
.prayer-box {
  position: relative;
  overflow: hidden;
}

/* bintang ramadhan */
.ramadhan-stars {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.ramadhan-stars::before,
.ramadhan-stars::after {
  content: "";
  position: absolute;
  width: 2px;
  height: 2px;
  background: #ffd166;
  box-shadow:
    20vw 10vh #ffd166,
    40vw 30vh #ffd166,
    60vw 20vh #ffd166,
    80vw 40vh #ffd166,
    10vw 60vh #ffd166,
    30vw 80vh #ffd166,
    70vw 70vh #ffd166,
    90vw 15vh #ffd166;
  animation: starFloat 20s linear infinite;
  opacity: 0.6;
}

.ramadhan-stars::after {
  animation-duration: 35s;
  opacity: 0.4;
}

@keyframes starFloat {
  from {
    transform: translateY(0);
  }
  to {
    transform: translateY(-100vh);
  }
}

/* =========================
   RAMADHAN MODE
========================= */

/* efek teks imsak */
.next-imsak {
  color: #ffd166 !important;
  text-shadow: 0 0 8px rgba(255, 209, 102, 0.6);
  font-weight: 600;
}

/* efek maghrib */
.next-iftar {
  color: #ff9f1c !important;
  text-shadow: 0 0 10px rgba(255, 159, 28, 0.7);
  font-weight: 600;
}

/* progress bar saat berbuka */
.ramadhan-mode .prayer-box.prayer-maghrib .prayer-progress-fill {
  background: linear-gradient(90deg, #ff9f1c, #ff6b35);
  box-shadow: 0 0 12px rgba(255, 159, 28, 0.7);
}

.ramadhan-mode::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(2px 2px at 20% 30%, rgba(255,255,255,0.6), transparent),
    radial-gradient(2px 2px at 70% 40%, rgba(255,255,255,0.4), transparent),
    radial-gradient(1px 1px at 50% 80%, rgba(255,255,255,0.5), transparent);
  opacity: 0.2;
  z-index: 0;
}

/* =========================
   MODE SAHUR
========================= */
.sahur-mode .prayer-box {
  background: linear-gradient(135deg, #0f2027, #203a43, #2c5364);
}

.sahur-mode .next-imsak {
  color: #7dd3fc !important;
  text-shadow: 0 0 10px rgba(125, 211, 252, 0.7);
}

/* =========================
   MODE BERBUKA
========================= */
.iftar-mode .prayer-box {
  background: linear-gradient(135deg, #2c0f0f, #4b1d1d, #7c2d12);
}

.iftar-mode .next-iftar {
  color: #ff9f1c !important;
  text-shadow: 0 0 10px rgba(255, 159, 28, 0.7);
}

.ramadhan-day {
  margin-top: 6px;
  font-size: 0.9rem;
  color: #fbbf24;
  font-weight: 600;
}

/* =========================
   RAMADHAN VISUAL UPGRADE
========================= */
.ramadhan-mode .prayer-box {
  background: linear-gradient(135deg, #0f2e25, #1b3f35);
}

.ramadhan-mode .prayer-card {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 215, 100, 0.15);
}

.ramadhan-mode .prayer-progress-fill {
  background: linear-gradient(90deg, #ffd166, #ff9f1c);
  box-shadow: 0 0 12px rgba(255, 200, 80, 0.6);
}

.home-prayer-widget {
  padding: 30px 14px;
  display: flex;
  justify-content: center;
}

.home-prayer-widget .widget-card {
  display: flex;
  gap: 18px;
  padding: 18px 20px;
  border-radius: 18px;
  color: rgba(226,232,240,0.98);
  background: linear-gradient(135deg, rgba(30,58,138,0.92), rgba(14,165,233,0.52));
  border: 1px solid rgba(255,255,255,0.22);
  box-shadow:
    0 18px 42px rgba(2,6,23,0.18),
    inset 0 1px 0 rgba(255,255,255,0.18);
  backdrop-filter: blur(10px);
}

.home-prayer-widget .widget-card div {
  text-align: center;
  min-width: 84px;
}

.home-prayer-widget .widget-card small {
  display: block;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(226,232,240,0.82);
}

.home-prayer-widget .widget-card h3 {
  margin: 6px 0 0;
  font-size: 1.45rem;
  font-weight: 800;
  color: rgba(248,250,252,0.98);
  text-shadow: 0 10px 26px rgba(0,0,0,0.28);
}

body.dark .home-prayer-widget .widget-card {
  background: linear-gradient(135deg, #0f172a, #1e293b);
  border: 1px solid rgba(56,189,248,0.4);
  box-shadow: 0 0 14px rgba(56,189,248,0.2);
}

body.dark .home-prayer-widget .widget-card small{
  color: rgba(203,213,245,0.80);
}

/* =========================
   ZAKAT CARD COMPACT MODERN
   ========================= */
.zakat-card {
  display: flex;
  justify-content: space-between;
  align-items: center;

  max-width: 1100px;       /* bikin lebih kecil */
  margin: 20px auto;
  padding: 16px 20px;

  background: linear-gradient(135deg, #0f172a, #1e3a8a);
  color: white;
  border-radius: 16px;

  text-decoration: none;
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);

  transition: all 0.35s ease;
  overflow: hidden;
  position: relative;
}

/* efek glow halus */
.zakat-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,0.15), transparent);
  opacity: 0;
  transition: opacity 0.4s ease;
}

/* hover effect */
.zakat-card:hover {
  transform: translateY(-4px) scale(1.01);
  box-shadow: 0 18px 40px rgba(0,0,0,0.25);
}

.zakat-card:hover::before {
  opacity: 1;
}

/* kiri */
.zakat-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

/* icon */
.zakat-icon {
  font-size: 26px;
  background: rgba(255,255,255,0.15);
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;

  animation: floatIcon 3s ease-in-out infinite;
}

/* animasi icon */
@keyframes floatIcon {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

/* teks */
.zakat-text h3 {
  margin: 0;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0.3px;
}

.zakat-text p {
  margin: 3px 0 0;
  font-size: 13px;
  opacity: 0.85;
}

/* panah */
.zakat-arrow {
  font-size: 20px;
  opacity: 0.8;
  transition: transform 0.3s ease;
}

.zakat-card:hover .zakat-arrow {
  transform: translateX(6px);
}

/* responsif */
@media (max-width: 600px) {
  .zakat-card {
    margin: 16px;
    padding: 14px 16px;
  }

  .zakat-text h3 {
    font-size: 15px;
  }

  .zakat-text p {
    font-size: 12px;
  }
}

/* === DROPDOWN BAHASA === */
.lang-dropdown {
  position: relative;
}

.lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.4);
  background: rgba(255,255,255,0.08);
  color: white;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
}

.lang-btn:hover {
  background: rgba(255,255,255,0.16);
}

.lang-btn-icon {
  font-size: 13px;
  line-height: 1;
}

.lang-btn-code {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 999px;
  padding: 2px 6px;
  background: rgba(255,255,255,0.16);
  line-height: 1;
}

.lang-menu {
  position: absolute;
  right: 0;
  top: 38px;
  background: #0b3a75;
  border-radius: 8px;
  overflow: hidden;
  min-width: 140px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);

  /* default hidden */
  display: none;
}

.lang-menu button {
  width: 100%;
  padding: 10px 14px;
  background: none;
  border: none;
  color: white;
  text-align: left;
  cursor: pointer;
}

.lang-menu button:hover {
  background: rgba(255,255,255,0.1);
}

/* saat aktif */
.lang-dropdown.active .lang-menu {
  display: block;
}

.goog-te-banner-frame.skiptranslate {
  display: none !important;
}

body {
  top: 0px !important;
}

.goog-te-gadget {
  display: none !important;
}

.goog-logo-link {
  display: none !important;
}

.goog-te-gadget span {
  display: none !important;
}

iframe.goog-te-banner-frame {
  display: none !important;
}

/* AUTO RTL SAAT GOOGLE SET ARAB */
html[lang="ar"] body {
  direction: rtl;
  text-align: right;
}

html[lang="ar"] .hero,
html[lang="ar"] .navbar,
html[lang="ar"] .quick-menu,
html[lang="ar"] .article-content {
  text-align: right;
}

/* ===============================
   BUTTON BACA QURAN (PRAYER BOX)
================================ */

#open-quran {
  padding: 8px 18px;
  border-radius: 16px;
  border: none;
  cursor: pointer;

  font-weight: 600;
  font-size: 15px;

  background: linear-gradient(135deg, #facc15, #f59e0b);
  color: #111;

  box-shadow: 0 6px 20px rgba(250, 204, 21, 0.35);
  transition: all 0.25s ease;
}

#open-quran:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(250, 204, 21, 0.55);
}

/* ===============================
   QURAN POPUP MODERN CLEAN UI
================================ */

.quran-popup {
  position: fixed;
  inset: 0;
  background: rgba(10, 20, 40, 0.75);
  backdrop-filter: blur(6px);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  padding: 20px;
}

.quran-popup.active {
  display: flex;
  animation: fadeIn 0.25s ease;
}

/* CARD CONTAINER */
.quran-container {
  width: 100%;
  max-width: 950px;
  height: 85vh;
  background: #ffffff;
  border-radius: 20px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* HEADER */
.quran-header {
  background: linear-gradient(135deg, #0f172a, #1e3a8a);
  color: white;
  padding: 18px 25px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.quran-header h2 {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
}

.quran-header-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

#juz-select {
  padding: 6px 10px;
  border-radius: 8px;
  border: none;
  font-size: 14px;
  cursor: pointer;
}

#quran-close {
  background: #facc15;
  border: none;
  padding: 6px 10px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: bold;
  transition: 0.2s;
}

#quran-close:hover {
  background: #eab308;
}

/* BODY */
.quran-body {
  flex: 1;
  overflow-y: auto;
  padding: 30px;
  background: #f8fafc;
}

/* SCROLL STYLE */
.quran-body::-webkit-scrollbar {
  width: 8px;
}

.quran-body::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 10px;
}

/* AYAH CARD */
.ayah {
  background: white;
  padding: 20px;
  border-radius: 12px;
  margin-bottom: 18px;
  box-shadow: 0 6px 15px rgba(0,0,0,0.05);
}

/* ARABIC TEXT */
.arab {
  font-size: 26px;
  line-height: 2.3;
  text-align: right;
  direction: rtl;
  font-family: "Amiri", serif;
  color: #111827;
}

/* VERSE INFO */
.info {
  margin-top: 8px;
  font-size: 12px;
  color: #6b7280;
  text-align: left;
}

/* LOADING */
.loading {
  text-align: center;
  font-size: 16px;
  padding: 40px;
  color: #64748b;
}

/* ANIMATION */
@keyframes fadeIn {
  from { opacity: 0 }
  to { opacity: 1 }
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .quran-container {
    height: 95vh;
    border-radius: 12px;
  }

  .arab {
    font-size: 20px;
  }
}

.translation {
  margin-top: 10px;
  font-size: 15px;
  line-height: 1.6;
  color: #334155;
}

.ayah-number {
  font-size: 12px;
  color: #94a3b8;
  margin-bottom: 6px;
}

/* =========================
   TRANSLATION DROPDOWN PRO
========================= */

#translation-select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;

  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(6px);

  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.25);

  padding: 6px 34px 6px 12px;
  border-radius: 10px;

  font-size: 14px;
  font-weight: 500;

  cursor: pointer;
  transition: all 0.25s ease;

  background-image: url("data:image/svg+xml;utf8,<svg fill='white' height='20' viewBox='0 0 24 24' width='20' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/></svg>");
  background-repeat: no-repeat;
  background-position: right 8px center;
}

#translation-select:hover {
  background: rgba(255, 255, 255, 0.25);
}

#translation-select:focus {
  outline: none;
  border-color: #facc15;
  box-shadow: 0 0 0 3px rgba(250, 204, 21, 0.3);
}

/* Option styling */
#translation-select option {
  color: #111;
}

@media (max-width: 768px) {

  .prayer-box button {
    width: 100%;
    max-width: 260px;
  }

  #open-quran,
  #open-hadith {
    display: block;
    margin: 12px auto;
  }

}

.floating-actions {
  position: fixed;
  right: 20px;
  bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  z-index: 999;
  transition: transform 0.35s ease, opacity 0.35s ease;
}

.floating-actions.hide {
  transform: translateY(140px);
  opacity: 0;
  pointer-events: none;
}

.floating-btn {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: linear-gradient(145deg, #ffd54f, #ffb300);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  cursor: pointer;
  box-shadow:
    0 6px 18px rgba(0,0,0,0.25),
    inset 0 2px 6px rgba(255,255,255,0.4);
  transition: all 0.25s ease;
}

.floating-btn:hover {
  transform: translateY(-4px) scale(1.08);
  box-shadow:
    0 10px 25px rgba(0,0,0,0.35);
}

/* WA */
.wa-btn {
  background: linear-gradient(145deg, #25D366, #1ebc57);
  color: white;
}
/* KIBLAT DI ATASNYA */
#openKiblat {
  bottom: 150px;
}

/* OVERLAY */
.popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(6px);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}


#kiblatPopup .popup-content {
  height: auto;
  max-height: none;
  overflow: visible;
}

.popup-content {
  background: linear-gradient(135deg, #1e3c72, #2a5298);
  padding: 28px;
  border-radius: 20px;
  text-align: center;
  width: 90%;
  max-width: 380px;
  color: white;
  box-shadow: 0 20px 50px rgba(0,0,0,0.4);
  animation: popupFade 0.3s ease;
}

@keyframes popupFade {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* CLOSE BUTTON */
.close-popup {
  float: right;
  cursor: pointer;
  font-size: 22px;
}

/* TASBIH */
.tasbih-arab {
  font-size: 26px;
  margin: 15px 0;
  direction: rtl;
}

.tasbih-count {
  font-size: 40px;
  margin: 15px 0;
}

.compass {
  font-size: 60px;
  margin-top: 20px;
  transition: transform 0.2s linear;
}

#tasbihBtn,
#resetTasbih {
  padding: 10px 20px;
  border-radius: 12px;
  border: none;
  font-weight: 600;
  cursor: pointer;
  margin: 5px;
  transition: 0.2s ease;
}

#tasbihBtn {
  background: #ffd54f;
}

#tasbihBtn:hover {
  background: #ffca28;
}

#resetTasbih {
  background: #eeeeee;
}

/* WA FIX FULL */
.wa-btn {
  background: #25D366 !important;
  color: white !important;
  border: none !important;
  outline: none !important;
  text-decoration: none !important;
  box-shadow: 0 6px 18px rgba(0,0,0,0.25) !important;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Hilangkan garis bawah link */
.wa-btn:link,
.wa-btn:visited,
.wa-btn:hover,
.wa-btn:active {
  text-decoration: none !important;
}

/* Hilangkan fokus putih browser */
.wa-btn:focus {
  outline: none !important;
  box-shadow: 0 6px 18px rgba(0,0,0,0.25) !important;
}

.ayah-actions {
  margin-top: 10px;
  display: flex;
  gap: 8px;
}

.ayah-actions button {
  padding: 6px 10px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 12px;
  background: #2563eb;
  color: white;
  transition: 0.2s;
}

.ayah-actions button:hover {
  opacity: 0.8;
}

.bookmark-btn {
  background: #f59e0b;
}

/* OVERLAY */
#hadith-popup {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(10,15,30,0.75);
  backdrop-filter: blur(10px);
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

#hadith-popup.active {
  display: flex;
}

/* CONTAINER */
.popup-content {
  width: 92%;
  max-width: 950px;
  max-height: 90vh;
  overflow-y: auto;

  background: linear-gradient(145deg, #0f172a, #1e293b);
  border-radius: 20px;
  padding: 30px;

  box-shadow:
    0 0 40px rgba(0,0,0,0.5),
    0 0 80px rgba(0,0,0,0.3);

  color: white;
}

/* HEADER */
.popup-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.popup-header h2 {
  font-size: 22px;
  font-weight: 600;
}

.popup-header button {
  background: #ef4444;
  border: none;
  padding: 8px 12px;
  border-radius: 8px;
  color: white;
  cursor: pointer;
}

/* CONTROLS */
.hadith-controls {
  margin: 20px 0;
  display: flex;
  gap: 10px;
}

.hadith-controls select,
.hadith-controls input {
  padding: 10px 14px;
  border-radius: 10px;
  border: none;
  background: #1e293b;
  color: white;
}

.hadith-controls button {
  padding: 10px 18px;
  border-radius: 10px;
  border: none;
  background: linear-gradient(45deg, #facc15, #f59e0b);
  font-weight: bold;
  cursor: pointer;
  color: black;
  transition: 0.3s;
}

.hadith-controls button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(250,204,21,0.4);
}

/* CARD */
.hadith-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  padding: 25px;
  border-radius: 18px;
  margin-bottom: 25px;
  transition: 0.3s;
}

.hadith-card:hover {
  background: rgba(255,255,255,0.08);
  transform: translateY(-4px);
}

/* TITLE */
.hadith-card h3 {
  margin-top: 0;
  color: #facc15;
  font-size: 18px;
  margin-bottom: 15px;
}

/* ARAB */
.hadith-card .arab {
  font-size: 24px;
  text-align: right;
  line-height: 2;
  margin-bottom: 15px;
  color: #e2e8f0;
}

/* TERJEMAHAN */
.hadith-card .translation {
  font-size: 15px;
  line-height: 1.8;
  color: #cbd5e1;

  text-align: justify;          /* rata kiri kanan */
  text-justify: inter-word;     /* lebih rapi */
}

/* =============================
   PREMIUM SMOOTH SCROLL DESKTOP
============================= */

.popup-content {
  overflow-y: auto;
  scroll-behavior: smooth;
  padding-right: 6px; /* biar gak nempel ke tepi */
}

/* Chrome / Edge */
.popup-content::-webkit-scrollbar {
  width: 6px;
}

.popup-content::-webkit-scrollbar-track {
  background: transparent;
}

.popup-content::-webkit-scrollbar-thumb {
  background: linear-gradient(
    to bottom,
    rgba(148,163,184,0.35),
    rgba(148,163,184,0.25)
  );
  border-radius: 50px;
  transition: all 0.3s ease;
}

.popup-content::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(
    to bottom,
    rgba(148,163,184,0.6),
    rgba(148,163,184,0.4)
  );
}

/* Firefox */
.popup-content {
  scrollbar-width: thin;
  scrollbar-color: rgba(148,163,184,0.4) transparent;
}

/* =============================
   HADITH POPUP FIXED HEADER
============================= */

#hadith-popup .popup-content {
  display: flex;
  flex-direction: column;
  max-height: 85vh;
  overflow: hidden; /* penting */
}

/* HEADER & CONTROL TETAP */
#hadith-popup .popup-header,
#hadith-popup .hadith-controls {
  flex-shrink: 0;
}

/* YANG SCROLL CUMA BODY */
#hadith-body {
  overflow-y: auto;
  padding: 20px;
  scroll-behavior: smooth;
}

.yellow-btn {
  padding: 8px 18px;
  border-radius: 16px;
  border: none;
  cursor: pointer;

  font-weight: 600;
  font-size: 15px;

  background: linear-gradient(135deg, #facc15, #f59e0b);
  color: #111;

  box-shadow: 0 6px 20px rgba(250, 204, 21, 0.35);
  transition: all 0.25s ease;
}

.yellow-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(250, 204, 21, 0.55);
}

.yellow-btn:active {
  transform: scale(0.97);
}

/* ================= MOBILE PERFECT ALIGN ================= */
/* ================= PERFECT ALIGN MOBILE ================= */
@media (max-width: 768px) {

  .prayer-controls-simple {
    display: flex;
    align-items: center;      /* 🔥 sejajar vertikal */
    justify-content: space-between;
    gap: 12px;
  }

  #azan-toggle {
    flex: 1;
    height: 48px;
    border-radius: 14px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin: 0;               /* 🔥 hapus margin aneh */
  }

  #settings-toggle,
  #alarm-toggle {
    width: 48px;
    height: 48px;
    border-radius: 14px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin: 0;               /* 🔥 penting */
  }

}
/* ================= DAILY AYAH MOBILE FIX ================= */
@media (max-width: 768px) {

  /* Perbesar dropdown qari */
  #qari-select {
    width: 80%;
    height: 44px;
    border-radius: 12px;
    font-size: 15px;
    padding: 0 12px;
    margin: 12px auto;
    display: block;
  }

  /* Container tombol */
  .ayah-controls {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: 15px;
  }

  /* Tombol play & stop */
  .ayah-controls button {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 20px rgba(0,0,0,0.25);
  }

}

.reader-default {
  background: linear-gradient(135deg,#2c3e50,#34495e);
}

.reader-green {
  background: linear-gradient(135deg,#1f8f4e,#2ecc71);
}

.reader-blue {
  background: linear-gradient(135deg,#1f6fd1,#3498db);
}

.reader-gold {
  background: linear-gradient(135deg,#d4a017,#f1c40f);
}

#reader-stats {
  padding: 16px;
  border-radius: 16px;
  color: white;
  transition: 0.4s ease;
}

/* ===== HOME STATS COLORS ===== */

.home-default {
  background: linear-gradient(135deg,#2c3e50,#34495e);
}

.home-green {
  background: linear-gradient(135deg,#1f8f4e,#2ecc71);
}

.home-blue {
  background: linear-gradient(135deg,#1f6fd1,#3498db);
}

.home-gold {
  background: linear-gradient(135deg,#d4a017,#f1c40f);
}

.home-stat-box {
  padding: 14px;
  border-radius: 14px;
  color: white;
  transition: 0.4s ease;
}

/* =============================
   🎨 AUTO PREMIUM CARD SYSTEM
============================= */

.last-reading-card {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  transition: all 0.35s cubic-bezier(.4,0,.2,1);
  backdrop-filter: blur(12px);
}

/* ===============================
   LOW (Blue Modern)
================================= */
.card-low {
  background:
    radial-gradient(circle at top left, rgba(255,255,255,0.15), transparent 40%),
    linear-gradient(145deg, #1e40af, #2563eb, #38bdf8);

  box-shadow:
    0 15px 35px rgba(37, 99, 235, 0.25),
    0 4px 15px rgba(0, 0, 0, 0.15),
    inset 0 1px 0 rgba(255,255,255,0.25);
}

/* ===============================
   MID (Emerald Smooth)
================================= */
.card-mid {
  background:
    radial-gradient(circle at top right, rgba(255,255,255,0.15), transparent 45%),
    linear-gradient(145deg, #047857, #059669, #6ee7b7);

  box-shadow:
    0 15px 35px rgba(5, 150, 105, 0.25),
    0 4px 15px rgba(0, 0, 0, 0.15),
    inset 0 1px 0 rgba(255,255,255,0.25);
}

/* ===============================
   HIGH (Gold Elegant)
================================= */
.card-high {
  background:
    radial-gradient(circle at top left, rgba(255,255,255,0.2), transparent 45%),
    linear-gradient(145deg, #b45309, #d4a017, #facc15);

  box-shadow:
    0 18px 45px rgba(212, 160, 23, 0.35),
    0 6px 18px rgba(0, 0, 0, 0.18),
    inset 0 1px 0 rgba(255,255,255,0.3);
}

/* ===============================
   HOVER EFFECT
================================= */
.last-reading-card:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow:
    0 25px 60px rgba(0,0,0,0.25),
    0 8px 25px rgba(0,0,0,0.18);
}

/* ===============================
   SHIMMER LIGHT – LEBIH HALUS
================================= */
.card-low::before,
.card-mid::before,
.card-high::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    120deg,
    transparent 30%,
    rgba(255,255,255,0.22),
    transparent 70%
  );
  transform: translateX(-100%);
  transition: transform 0.8s ease;
}

.card-low:hover::before,
.card-mid:hover::before,
.card-high:hover::before {
  transform: translateX(100%);
}

/* default */
.stat-card {
  transition: all 0.3s ease;
}

/* LOW */
.stat-card.offline-low {
  background: linear-gradient(135deg, #1e3a8a, #2563eb);
}

/* MID */
.stat-card.offline-mid {
  background: linear-gradient(135deg, #7c2d12, #ea580c);
}

/* HIGH */
.stat-card.offline-high {
  background: linear-gradient(135deg, #14532d, #16a34a);
}

/* ===============================
   GOLD GLOW CARD (AUTO FEATURED)
================================ */

.card.is-featured {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  transition: all 0.35s ease;

  background: linear-gradient(145deg, #ffffff, #fffdf2);

  box-shadow:
    0 6px 25px rgba(255, 200, 0, 0.35),
    0 0 35px rgba(255, 215, 0, 0.45);
}

/* =========================
   PREMIUM GOLD CARD GLOW
========================= */

.card {
  position: relative;
  border-radius: 18px;
  transition: all 0.35s ease;
  background: linear-gradient(145deg, #ffffff, #fffdf6);
}

/* glow lembut */
.card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 18px;
  pointer-events: none;
  box-shadow:
    0 0 25px rgba(255, 200, 0, 0.25),
    0 0 50px rgba(255, 215, 0, 0.15);
  opacity: 0;
  transition: 0.4s ease;
}

/* hover menyala */
.card:hover::after {
  opacity: 1;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow:
    0 8px 30px rgba(255, 190, 0, 0.35),
    0 0 60px rgba(255, 215, 0, 0.4);
}

/* ======================================
   HADITH POPUP — MOBILE FIX
====================================== */
@media (max-width: 768px) {

  /* Overlay full screen */
  .popup {
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  /* Box popup full mobile */
  .popup-content {
    width: 95%;
    max-width: 95%;
    height: 90vh;
    overflow-y: auto;
    border-radius: 18px;
    padding: 18px;
  }

  /* Header rapikan */
  .popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  /* Controls rapikan */
  .hadith-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
  }

  .hadith-controls select,
  .hadith-controls input {
    flex: 1;
    min-width: 100px;
  }

  .hadith-controls button {
    flex: 0 0 auto;
  }

  /* Body jangan overflow */
  #hadith-body {
    width: 100%;
    overflow-wrap: break-word;
  }

  /* Arabic text biar tidak kepotong */
  #hadith-body p,
  #hadith-body div {
    word-wrap: break-word;
    overflow-wrap: break-word;
  }

}

/* =========================
   MOBILE HALF MODAL CENTER
========================= */
@media (max-width: 768px) {

  .popup-overlay {
    display: flex;
    align-items: center;      /* tetap tengah */
    justify-content: center;  /* tetap tengah */
  }

  #tasbihPopup .popup-content,
  #kiblatPopup .popup-content {

    width: 90%;
    max-width: 420px;

    height: 50vh;           /* setengah layar */
    max-height: 420px;

    border-radius: 20px;
    padding: 22px;

    overflow-y: auto;
  }

}

.popup-overlay {
  display: none;   /* default hidden */
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

/* =========================
   MOBILE FIX STATS GRID
========================= */
@media (max-width: 768px) {

  .stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr; /* 2 kolom */
    gap: 14px;
  }

  .stats-grid .stat-box {
    width: 100%;
    min-width: 0;
  }

  /* box terakhir full width */
  .stats-grid .stat-box:last-child {
    grid-column: span 2;
  }

}


/* ===== PERKUAT TEXT DI ATAS BACKGROUND ===== */

.welcome-title span {
  color: #ffffff;
  font-weight: 900;
}

.welcome-desc {
  color: rgba(255,255,255,0.95);
  text-shadow: 0 2px 6px rgba(0,0,0,0.3);
}

.welcome-topics span {
  color: white;
  background: rgba(0,0,0,0.25);
  backdrop-filter: blur(6px);
}

/* ===== PERKUAT SEMUA SECTION TEXT ===== */

.section-header h2 {
  color: #ffffff;
  font-weight: 800;
  text-shadow: 0 3px 10px rgba(0,0,0,0.35);
}

.section-subtitle {
  color: rgba(255,255,255,0.95);
  text-shadow: 0 2px 6px rgba(0,0,0,0.3);
}

.articles h2,
.articles-popular-section h2,
.offline-section h2 {
  color: #ffffff;
  font-weight: 800;
  text-shadow: 0 3px 10px rgba(0,0,0,0.35);
}

.card {
  border-radius: 22px;
  border: 4px solid transparent;

  background:
    linear-gradient(white, white) padding-box,
    linear-gradient(
      120deg,
      #1e3a8a,
      #2563eb,
      #06b6d4,
      #10b981,
      #1e3a8a
    ) border-box;

  background-size: 100% 100%, 200% 200%;

  animation:
    borderShift 8s ease infinite,
    borderBreath 4s ease-in-out infinite;

  transition: 0.3s ease;
}

@keyframes borderShift {
  0%   { background-position: 0% 50%, 0% 50%; }
  50%  { background-position: 0% 50%, 100% 50%; }
  100% { background-position: 0% 50%, 0% 50%; }
}

/* INI YANG BIKIN HIDUP */
@keyframes borderBreath {
  0%   { filter: brightness(0.85); }
  50%  { filter: brightness(1.2); }
  100% { filter: brightness(0.85); }
}

/* =========================
   CATEGORY SECTION
========================= */

.categories-home{
padding:60px 0;
}

.categories-home h2{
font-size:28px;
font-weight:700;
margin-bottom:28px;
letter-spacing:.3px;
}

/* GRID */

#category-grid{
display:grid;
grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
gap:22px;
}


#category-grid .category-card{
display:block;
position:relative;
min-height:228px;
border-radius:26px;
overflow:hidden;
text-decoration:none;
background:linear-gradient(140deg, rgba(255,255,255,0.32), rgba(255,255,255,0.08));
border:1px solid rgba(255,255,255,0.2);
box-shadow:
0 18px 44px rgba(15,23,42,0.16),
inset 0 1px 0 rgba(255,255,255,0.34);
transition:transform .35s ease, box-shadow .35s ease, border-color .35s ease;
isolation:isolate;
}

#category-grid .category-card::before{
content:"";
position:absolute;
inset:1px;
border-radius:25px;
background:var(--category-gradient, linear-gradient(145deg, #0f172a 0%, #1d4ed8 45%, #38bdf8 100%));
z-index:0;
}

#category-grid .category-card::after{
content:"";
position:absolute;
right:-48px;
bottom:-56px;
width:180px;
height:180px;
border-radius:999px;
background:radial-gradient(circle, var(--category-glow, rgba(147,197,253,0.34)) 0%, transparent 70%);
z-index:0;
pointer-events:none;
transition:transform .35s ease, opacity .35s ease;
}

#category-grid .category-card:hover{
transform:translateY(-8px);
border-color:rgba(255,255,255,0.34);
box-shadow:
0 24px 54px rgba(15,23,42,0.22),
0 10px 34px rgba(15,23,42,0.16);
}

#category-grid .category-card:hover::after{
transform:scale(1.08);
opacity:1;
}

body.dark #category-grid .category-card {
  background: #0f172a;
  border: 1px solid rgba(34,197,94,0.4);
  --category-gradient: #0f172a !important;
  --category-glow: rgba(34,197,94,0.35) !important;
  --category-accent: rgba(226,232,240,0.96) !important;
  box-shadow: 0 0 18px rgba(34,197,94,0.2);
}

body.dark #category-grid .category-card::before {
  background: var(--category-gradient, #0f172a);
}

body.dark #category-grid .category-card::after {
  background: radial-gradient(circle, var(--category-glow, rgba(34,197,94,0.35)) 0%, transparent 70%);
}

body.dark #category-grid .category-card:hover {
  border-color: rgba(34,197,94,0.6);
  box-shadow: 0 0 24px rgba(34,197,94,0.35);
}

body.dark #category-grid .category-card-title {
  color: rgba(74,222,128,0.96);
  text-shadow: 0 0 18px rgba(34,197,94,0.25);
}

body.dark #category-grid .category-card-copy{
  color: rgba(226,232,240,0.82);
}

body.dark #category-grid .category-card-icon{
  background: rgba(255,255,255,0.10);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.14),
    0 12px 26px rgba(0,0,0,0.35);
}

body.dark #category-grid .category-card-count{
  background: rgba(2,6,23,0.38);
  border: 1px solid rgba(148,163,184,0.20);
  color: rgba(248,250,252,0.90);
}

body.dark #category-grid .category-card-thumb{
  background: rgba(255,255,255,0.06);
  border: 2px solid rgba(148,163,184,0.24);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.12),
    0 18px 38px rgba(0,0,0,0.42);
}

body.dark #category-grid .category-card-ring {
  border: 1px solid rgba(34,197,94,0.3);
  box-shadow: 0 0 0 12px rgba(34,197,94,0.08);
}

#category-grid .category-card-shell{
position:relative;
z-index:1;
display:grid;
grid-template-columns:56px minmax(0, 1fr) 120px;
grid-template-areas:
"icon count art"
"body body art";
column-gap:16px;
row-gap:14px;
min-height:228px;
padding:22px;
}

#category-grid .category-card-icon{
grid-area:icon;
display:flex;
align-items:center;
justify-content:center;
width:56px;
height:56px;
border-radius:18px;
font-size:26px;
background:rgba(255,255,255,0.18);
backdrop-filter:blur(10px);
color:var(--category-accent, #f8fbff);
box-shadow:
inset 0 1px 0 rgba(255,255,255,0.3),
0 10px 24px rgba(15,23,42,0.18);
}

#category-grid .category-card-count{
grid-area:count;
justify-self:start;
align-self:start;
display:inline-flex;
align-items:center;
padding:8px 12px;
border-radius:999px;
background:rgba(255,255,255,0.12);
border:1px solid rgba(255,255,255,0.16);
font-size:12px;
font-weight:700;
letter-spacing:.01em;
color:rgba(248,250,252,0.92);
backdrop-filter:blur(12px);
}

#category-grid .category-card-body{
grid-area:body;
max-width:none;
min-width:0;
padding-right:16px;
text-align:left;
}

#category-grid .category-card-title{
margin:0 0 8px;
font-size:24px;
line-height:1.16;
font-weight:700;
color:#f8fbff;
text-shadow:0 10px 24px rgba(15,23,42,0.24);
word-break:break-word;
}

#category-grid .category-card-copy{
margin:0;
font-size:14px;
line-height:1.65;
color:rgba(239,246,255,0.86);
max-width:30ch;
text-wrap:pretty;
}

#category-grid .category-card-art{
grid-area:art;
justify-self:end;
align-self:center;
position:relative;
width:112px;
height:112px;
opacity:1;
}

#category-grid .category-card-art-glow{
position:absolute;
inset:0;
border-radius:999px;
background:radial-gradient(circle, var(--category-glow, rgba(147,197,253,0.34)) 0%, transparent 72%);
filter:blur(10px);
opacity:.85;
}

#category-grid .category-card-thumb{
position:absolute;
right:6px;
bottom:6px;
width:96px;
height:96px;
border-radius:999px;
overflow:hidden;
background:rgba(255,255,255,0.08);
border:2px solid rgba(255,255,255,0.28);
box-shadow:
inset 0 1px 0 rgba(255,255,255,0.18),
0 18px 34px rgba(15,23,42,0.24);
transition:transform .35s ease, box-shadow .35s ease;
}

#category-grid .category-card-photo{
display:block;
width:100%;
height:100%;
object-fit:cover;
object-position:center;
opacity:1;
filter:none;
}

#category-grid .category-card-ring{
position:absolute;
right:0;
bottom:0;
width:104px;
height:104px;
border-radius:999px;
border:1px solid rgba(255,255,255,0.24);
box-shadow:
0 0 0 12px rgba(255,255,255,0.05),
inset 0 0 0 1px rgba(255,255,255,0.18);
opacity:.78;
transition:transform .35s ease, opacity .35s ease;
}

#category-grid .category-card:hover .category-card-thumb{
transform:translateY(-2px) scale(1.04);
box-shadow:
inset 0 1px 0 rgba(255,255,255,0.24),
0 22px 38px rgba(15,23,42,0.28);
}

#category-grid .category-card:hover .category-card-ring{
transform:scale(1.03);
opacity:.92;
}

body.rtl-ui #category-grid .category-card-shell{
grid-template-columns:120px minmax(0, 1fr) 56px;
grid-template-areas:
"art count icon"
"art body body";
}

body.rtl-ui #category-grid .category-card-count{
justify-self:end;
}

body.rtl-ui #category-grid .category-card-art{
justify-self:start;
}

body.rtl-ui #category-grid .category-card-body{
max-width:none;
min-width:0;
padding-right:0;
padding-left:16px;
text-align:right;
}

body.rtl-ui #category-grid .category-card-title{
font-family:"Amiri", "Scheherazade", serif;
font-size:22px;
line-height:1.24;
}

body.rtl-ui #category-grid .category-card-copy{
font-family:"Amiri", "Scheherazade", serif;
font-size:16px;
line-height:1.8;
max-width:none;
}

body.rtl-ui #category-grid .category-card-thumb{
right:auto;
left:6px;
}

body.rtl-ui #category-grid .category-card-ring{
right:auto;
left:0;
}

@media (max-width: 640px) {
  #category-grid{
    grid-template-columns:1fr;
  }

  #category-grid .category-card-shell{
    grid-template-columns:56px minmax(0, 1fr) 92px;
    min-height:210px;
    padding:20px;
  }

  #category-grid .category-card-title{
    font-size:20px;
  }

  #category-grid .category-card-copy{
    max-width:none;
    font-size:13px;
  }

  #category-grid .category-card-art{
    width:92px;
    height:92px;
  }

  #category-grid .category-card-thumb{
    width:78px;
    height:78px;
  }

  #category-grid .category-card-ring{
    width:86px;
    height:86px;
  }

  body.rtl-ui #category-grid .category-card-shell{
    grid-template-columns:92px minmax(0, 1fr) 56px;
  }
}

@media (min-width: 1024px) {
  #category-grid{
    grid-template-columns:repeat(auto-fit, minmax(260px, 1fr));
    gap:18px;
  }

  #category-grid .category-card{
    min-height:0;
  }

  #category-grid .category-card::before{
    filter:brightness(0.98) saturate(1.05);
  }

  #category-grid .category-card-shell{
    grid-template-columns:48px minmax(0, 1fr);
    grid-template-areas:
    "icon count"
    "body body"
    "art art";
    min-height:0;
    padding:18px;
    column-gap:12px;
    row-gap:12px;
  }

  #category-grid .category-card-icon{
    width:48px;
    height:48px;
    border-radius:16px;
    font-size:22px;
  }

  #category-grid .category-card-count{
    padding:7px 10px;
    font-size:11px;
  }

  #category-grid .category-card-title{
    font-size:16px;
    line-height:1.24;
    margin:0 0 4px;
    word-break:normal;
    overflow-wrap:anywhere;
    hyphens:auto;
    display:-webkit-box;
    -webkit-box-orient:vertical;
    -webkit-line-clamp:3;
    overflow:hidden;
  }

  @supports (-webkit-background-clip: text) {
    #category-grid .category-card-title{
      background: linear-gradient(90deg, rgba(255,255,255,0.98), rgba(226,232,240,0.78));
      -webkit-background-clip: text;
      background-clip: text;
      color: transparent;
      text-shadow: none;
    }
  }

  #category-grid .category-card-copy{
    font-size:12px;
    line-height:1.55;
    max-width:none;
    word-break:normal;
    overflow-wrap:anywhere;
    hyphens:auto;
    display:-webkit-box;
    -webkit-box-orient:vertical;
    -webkit-line-clamp:2;
    overflow:hidden;
  }

  #category-grid .category-card-art{
    justify-self:stretch;
    width:100%;
    height:96px;
  }

  #category-grid .category-card-thumb{
    right:50%;
    bottom:0;
    transform:translateX(50%);
    width:78px;
    height:78px;
  }

  #category-grid .category-card-ring{
    right:50%;
    bottom:0;
    transform:translateX(50%);
    width:86px;
    height:86px;
  }

  body.rtl-ui #category-grid .category-card-title{
    font-size:16px;
    line-height:1.32;
    hyphens:manual;
  }

  body.rtl-ui #category-grid .category-card-copy{
    font-size:13px;
    line-height:1.7;
    hyphens:manual;
  }

  body.rtl-ui #category-grid .category-card-thumb,
  body.rtl-ui #category-grid .category-card-ring{
    left:50%;
    right:auto;
    transform:translateX(-50%);
  }
}

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

section{

padding:70px 0;

position:relative;

}

.section-header{

margin-bottom:36px;

}

.section-header h2{

font-size:32px;

font-weight:700;

color:#111;

display:flex;

align-items:center;

gap:10px;

margin-bottom:10px;

}

.section-sub{

font-size:14px;

color:#e5e7eb;

max-width:520px;

line-height:1.6;

text-shadow:0 1px 2px rgba(0,0,0,0.25);

}

/* garis kecil modern */

.section-header::after{

content:"";

display:block;

width:60px;

height:3px;

background:linear-gradient(90deg,#3b82f6,#22c55e);

margin-top:14px;

border-radius:4px;

}

.section-icon{
font-size:24px;
}

/* gambar zoom halus */

.card img,
.category-card img{

transition:transform .4s ease;

}

.card:hover img,
.category-card:hover img{

transform:scale(1.05);

}

.card h3{

font-size:18px;

font-weight:600;

line-height:1.35;

margin-bottom:8px;

}

.card p{

font-size:14px;

color:#6b7280;

line-height:1.6;

}

/* =========================
TOOLS SECTION
========================= */

.tools-section{

position:relative;

}

.tools-section::before{

content:"";

position:absolute;

top:-100px;

left:-100px;

width:300px;

height:300px;

background:radial-gradient(
circle,
rgba(0,212,255,0.3),
transparent
);

filter:blur(80px);

}


/* GRID */

.tools-grid{

display:grid;

grid-template-columns:repeat(auto-fit,minmax(220px,1fr));

gap:20px;

margin-top:30px;

}

.tools-sub{
font-size:15px;
color:#e5e7eb;
max-width:520px;
line-height:1.6;

margin-top:6px;
margin-bottom:24px;

opacity:.9;
}

/* Tombol / kartu Beranda → index di tiap blok grid */
.grid-home-to-index{
display:flex;
justify-content:center;
flex-wrap:wrap;
gap:10px;
margin-top:20px;
margin-bottom:4px;
}

.grid-home-to-index--prayer{
margin-top:14px;
margin-bottom:10px;
}

a.btn-grid-home{
display:inline-flex;
align-items:center;
gap:8px;
padding:10px 20px;
border-radius:999px;
font-size:14px;
font-weight:600;
text-decoration:none;
color:#f8fafc;
background:rgba(59,130,246,0.45);
border:1px solid rgba(147,197,253,0.5);
box-shadow:0 4px 14px rgba(15,23,42,0.25);
transition:background .2s,transform .2s,box-shadow .2s;
}

a.btn-grid-home:hover{
background:rgba(59,130,246,0.62);
transform:translateY(-2px);
box-shadow:0 8px 20px rgba(37,99,235,0.35);
}

body.home-page .tool-card.tool-card-home{
border:1px solid rgba(125,211,252,0.5);
background:rgba(59,130,246,0.2);
}

body.home-page .tool-bridge-card.tool-card-home{
border:1px solid rgba(125,211,252,0.5);
background:rgba(59,130,246,0.2);
}

body.dark.home-page a.btn-grid-home{
background:rgba(37,99,235,0.35);
border-color:rgba(125,211,252,0.45);
}

body.dark.home-page a.btn-grid-home:hover{
background:rgba(37,99,235,0.5);
}

.tools-bridge-section{
position:relative;
margin-top:28px;
padding-top:12px;
}

.tools-bridge-section::before{
content:"";
position:absolute;
top:-18px;
left:0;
right:0;
height:1px;
background:linear-gradient(
90deg,
transparent,
rgba(125,211,252,0.45),
rgba(253,224,71,0.32),
transparent
);
}

.tools-bridge-sub{
font-size:14px;
color:#dbeafe;
max-width:720px;
line-height:1.7;
margin-top:8px;
margin-bottom:24px;
opacity:.94;
}

.tools-bridge-grid{
display:grid;
grid-template-columns:repeat(auto-fit,minmax(280px,1fr));
gap:18px;
margin-top:26px;
}

.tool-bridge-card{
display:grid;
grid-template-columns:56px minmax(0,1fr);
align-items:start;
gap:14px;
min-height:140px;
padding:18px 18px;
padding-inline-end:88px;
}

.tool-bridge-card > span.icon{
display:grid;
place-items:center;
width:56px;
height:56px;
border-radius:18px;
font-size:24px;
line-height:1;
background:rgba(255,255,255,0.1);
border:1px solid rgba(255,255,255,0.12);
box-shadow:0 10px 24px rgba(8,47,73,0.14);
}

.tool-bridge-card .tool-bridge-copy{
width:100%;
}

.tool-bridge-copy{
display:grid;
gap:6px;
flex:1;
min-width:0;
}

.tool-bridge-copy h3{
font-size:16px;
line-height:1.4;
max-width:100%;
word-break:normal;
overflow-wrap:normal;
}

.tool-bridge-copy p{
margin:0;
font-size:13px;
line-height:1.6;
color:rgba(239,246,255,0.86);
}

.tool-bridge-badge{
position:absolute;
top:18px;
inset-inline-end:18px;
padding:6px 10px;
border-radius:999px;
font-size:11px;
font-weight:700;
letter-spacing:.06em;
text-transform:uppercase;
color:#082f49;
background:linear-gradient(135deg,#fde68a,#7dd3fc);
box-shadow:0 8px 18px rgba(14,165,233,0.18);
}

/* =========================
   ADS CAROUSEL (Kampanye Iklan - Modern)
========================= */
.ads-carousel-section {
  margin: 48px 0 56px;
}

.ads-carousel-wrapper {
  position: relative;
  max-width: 560px;
  margin: 0 auto;
  padding: 0 20px;
  direction: ltr;
}

.ads-carousel-card {
  position: relative;
  overflow: hidden;
  width: 100%;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08), 0 1px 3px rgba(0, 0, 0, 0.06);
}

body.dark .ads-carousel-card {
  background: #1e293b;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.06);
}

/* Dark home: kotak pasang iklan — cincin hijau mengelilingi (carousel + slot AdSense atas/bawah alur halaman) */
body.dark.home-page .ads-carousel-card {
  border: 1px solid rgba(34, 197, 94, 0.28);
  animation: home-dark-green-pulse-value 3.5s cubic-bezier(0.45, 0.05, 0.55, 0.95) infinite;
}

.ads-carousel-track {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.ads-carousel-slide {
  flex: 0 0 100%;
  min-width: 0;
  position: relative;
}

/* Rasio area 560×235 — gambar/video mengisi penuh tanpa celah (block + object-fit cover) */
.ads-carousel-slide .ads-slide-media-anchor {
  display: block;
  position: relative;
  aspect-ratio: 560 / 235;
  overflow: hidden;
  line-height: 0;
}

.ads-carousel-slide img,
.ads-carousel-slide video.ads-slide-video {
  display: block;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.ads-slide-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 8px;
  background: linear-gradient(135deg, #facc15, #eab308);
  color: #1e293b;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

body.rtl-ui .ads-slide-badge {
  left: auto;
  right: 12px;
}

/* Slide placeholder — rasio sama dengan slide gambar/video */
.ads-slide-empty {
  position: relative;
  width: 100%;
  aspect-ratio: 560 / 235;
  background: rgba(248, 250, 252, 0.8);
  border: 2px dashed rgba(148, 163, 184, 0.4);
}

/* Link placeholder: override .ads-carousel-slide a { padding-bottom } agar teks bisa benar-benar di tengah area slide */
.ads-slide-empty .ads-slide-placeholder-link {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 !important;
  padding-bottom: 0 !important;
  height: 100%;
  width: 100%;
  box-sizing: border-box;
  text-decoration: none;
  color: inherit;
  border-radius: inherit;
  transition: background 0.2s ease, box-shadow 0.2s ease;
}

.ads-slide-empty .ads-slide-placeholder-link:hover {
  background: rgba(37, 99, 235, 0.07);
  box-shadow: inset 0 0 0 2px rgba(37, 99, 235, 0.18);
}

.ads-slide-empty .ads-slide-placeholder-link:focus-visible {
  outline: 2px solid #2563eb;
  outline-offset: 2px;
}

.ads-slide-empty .ads-slide-placeholder-inner {
  position: static;
  transform: none;
  width: 100%;
  max-width: 100%;
}

body.dark .ads-slide-empty {
  background: rgba(30, 41, 59, 0.5);
  border-color: rgba(148, 163, 184, 0.2);
}

.ads-slide-placeholder-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 16px 20px;
  text-align: center;
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
}

.ads-slide-placeholder-label {
  font-size: 0.65rem;
  font-weight: 700;
  color: #94a3b8;
  letter-spacing: 0.15em;
  margin-top: 2px;
}

.ads-slide-placeholder-text {
  font-size: 1.1rem;
  font-weight: 600;
  color: #475569;
  line-height: 1.35;
}

.ads-slide-placeholder-size {
  font-size: 0.72rem;
  color: #64748b;
}

body.dark .ads-slide-placeholder-text {
  color: #94a3b8;
}

.ads-carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  color: #334155;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.12);
  transition: transform 0.2s, opacity 0.2s, box-shadow 0.2s;
  z-index: 3;
}

.ads-carousel-btn:hover {
  background: #fff;
  transform: translateY(-50%) scale(1.05);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.18);
}

.ads-carousel-btn svg {
  width: 20px;
  height: 20px;
}

.ads-carousel-prev {
  left: 12px;
}

.ads-carousel-next {
  right: 12px;
}

body.rtl-ui .ads-carousel-prev {
  left: auto;
  right: 12px;
}

body.rtl-ui .ads-carousel-next {
  right: auto;
  left: 12px;
}

.ads-carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 14px;
}

.ads-carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  background: rgba(148, 163, 184, 0.5);
  cursor: pointer;
  padding: 0;
  transition: all 0.3s ease;
}

.ads-carousel-dot:hover {
  background: rgba(148, 163, 184, 0.8);
}

.ads-carousel-dot.active {
  background: #facc15;
  transform: scale(1.25);
  box-shadow: 0 0 0 2px rgba(250, 204, 21, 0.3);
}

.ads-slot-root {
  width: 100%;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

/* Slot placeholder bawah carousel: teks (560×160) atau media penuh lewat .ads-slot-placeholder--media */
.ads-slot-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  min-height: 160px;
  aspect-ratio: 3.5 / 1;
  margin-top: 20px;
  padding: 20px;
  border: 2px dashed rgba(148, 163, 184, 0.5);
  border-radius: 16px;
  background: rgba(248, 250, 252, 0.6);
  text-align: center;
  width: 100%;
}

/* Gambar/video iklan di slot bawah (isi PORTAL_ADS_BOTTOM di js/ads-config.js) */
a.ads-slot-placeholder.ads-slot-placeholder--media {
  display: block;
  position: relative;
  padding: 0;
  min-height: 160px;
  aspect-ratio: 3.5 / 1;
  overflow: hidden;
  border: 2px solid rgba(148, 163, 184, 0.35);
  background: #0f172a;
}

a.ads-slot-placeholder--media .ads-slot-video,
a.ads-slot-placeholder--media .ads-slot-img {
  display: block;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: 14px;
}

body.dark a.ads-slot-placeholder.ads-slot-placeholder--media {
  border-color: rgba(148, 163, 184, 0.28);
  background: #020617;
}

.ads-slot-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  text-align: center;
  width: 100%;
  max-width: 100%;
}

a.ads-slot-placeholder--link {
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

a.ads-slot-placeholder--link:hover {
  border-color: rgba(37, 99, 235, 0.45);
  background: rgba(239, 246, 255, 0.85);
  box-shadow: 0 6px 22px rgba(37, 99, 235, 0.12);
  transform: translateY(-2px);
}

a.ads-slot-placeholder--link.ads-slot-placeholder--media:hover {
  transform: none;
  background: #0f172a;
  border-color: rgba(96, 165, 250, 0.4);
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.2);
}

a.ads-slot-placeholder--link:focus-visible {
  outline: 2px solid #2563eb;
  outline-offset: 3px;
}

body.dark a.ads-slot-placeholder--link:hover {
  background: rgba(30, 41, 59, 0.65);
  border-color: rgba(96, 165, 250, 0.45);
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.35);
}

body.dark a.ads-slot-placeholder--link.ads-slot-placeholder--media:hover {
  background: #020617;
  border-color: rgba(96, 165, 250, 0.45);
}

body.dark .ads-slot-placeholder:not(.ads-slot-placeholder--media) {
  border-color: rgba(148, 163, 184, 0.3);
  background: rgba(30, 41, 59, 0.4);
}

.ads-slot-label {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  color: #94a3b8;
  letter-spacing: 0.15em;
  margin-bottom: 6px;
}

.ads-slot-text {
  font-size: 0.95rem;
  font-weight: 500;
  color: #64748b;
}

.ads-slot-size {
  display: block;
  font-size: 0.7rem;
  color: #94a3b8;
  margin-top: 8px;
}

body.dark .ads-slot-text {
  color: #94a3b8;
}

body.dark .ads-slot-size {
  color: #64748b;
}

/* Saat tidak ada kampanye: tampilkan slot placeholder saja (persegi panjang jelas) */
.ads-carousel-section[data-ad-slots="0"] .ads-carousel-card,
.ads-carousel-section[data-ad-slots="0"] .ads-carousel-btn,
.ads-carousel-section[data-ad-slots="0"] .ads-carousel-dots {
  display: none;
}

.ads-carousel-section[data-ad-slots="0"] .ads-slot-placeholder {
  margin-top: 0;
}

@media (max-width: 768px) {
  .ads-carousel-section {
    margin: 32px 0 40px;
  }

  .ads-carousel-wrapper {
    padding: 0 16px;
  }

  .ads-carousel-card {
    border-radius: 20px;
  }

  .ads-carousel-btn {
    width: 36px;
    height: 36px;
  }

  .ads-carousel-btn svg {
    width: 18px;
    height: 18px;
  }

  .ads-carousel-prev {
    left: 8px;
  }

  .ads-carousel-next {
    right: 8px;
  }

  body.rtl-ui .ads-carousel-prev {
    right: 8px;
  }

  body.rtl-ui .ads-carousel-next {
    left: 8px;
  }

  .ads-slot-placeholder {
    margin-top: 16px;
    padding: 16px;
    min-height: 120px;
    aspect-ratio: 3.2 / 1;
  }

  .ads-slot-placeholder .ads-slot-size {
    font-size: 0.65rem;
  }

  .ads-carousel-section[data-ad-slots="0"] .ads-slot-placeholder {
    margin-top: 0;
  }
}

/* =========================
CARD STYLE
========================= */

.tool-card{

display:flex;

align-items:center;

gap:12px;

padding:18px 22px;

border-radius:14px;

text-decoration:none;

color:white;

font-weight:600;

background:rgba(255,255,255,0.08);

backdrop-filter:blur(12px);

border:1px solid rgba(255,255,255,0.1);

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

transition:all .35s ease;

position:relative;

overflow:hidden;

}

.tool-card::before{

content:"";

position:absolute;

top:-50%;

left:-50%;

width:200%;

height:200%;

background:linear-gradient(
120deg,
transparent,
rgba(0,212,255,0.4),
transparent
);

transform:rotate(25deg);

opacity:0;

transition:.5s;

}

/* icon */

.tool-card span{

font-size:24px;

}


/* title */

.tool-card h3{

font-size:15px;
font-weight:600;
margin:0;

}



/* hover hidup */

.tool-card:hover{

transform:translateY(-6px);

box-shadow:
0 20px 40px rgba(0,0,0,0.6),
0 0 20px rgba(0,212,255,0.4);

background:rgba(255,255,255,0.12);

}

.tool-card:hover::before{

opacity:1;

animation:shine 1.5s linear;

}

@keyframes shine{

0%{

transform:translateX(-100%) rotate(25deg);

}

100%{

transform:translateX(100%) rotate(25deg);

}

}

.icon{

font-size:20px;

background:linear-gradient(
135deg,
#ffd166,
#fca311
);

padding:8px;

border-radius:8px;

}

/* =========================
TOOLS CARD DARK MODE
========================= */

body.dark .tool-card {
  color: #f8fafc;
  background: linear-gradient(135deg, #0f172a, #1e293b);
  border: 1px solid rgba(34,197,94,0.4);
  box-shadow: 0 0 16px rgba(34,197,94,0.2);
}

body.dark .tool-card:hover {
  transform: translateY(-4px) scale(1.04);
  border-color: rgba(34,197,94,0.6);
  box-shadow: 0 0 24px rgba(34,197,94,0.35);
}

body.dark .tool-bridge-copy p{
  color:#dbeafe;
}

body.dark .tool-bridge-badge{
  color:#082f49;
  background:linear-gradient(135deg,#fef08a,#93c5fd);
}


.tools-section h2{
font-size:26px;
font-weight:700;
margin-bottom:14px;
position:relative;
display:inline-block;
}

/* tulisan kecil */

.tools-sub{
font-size:14px;
color:#e5e7eb;
max-width:520px;
line-height:1.6;

margin-top:6px;
margin-bottom:32px;   /* jarak ke card */

position:relative;
}

/* garis gradient */

.tools-sub::after{
content:"";
display:block;

width:60px;
height:3px;

margin-top:12px;

background:linear-gradient(
90deg,
rgba(56,189,248,0.96),
rgba(167,139,250,0.85),
rgba(56,189,248,0.96)
);

border-radius:4px;

box-shadow:0 0 12px rgba(14,165,233,0.26);
}

.hero-auth-buttons {
  margin-top: 14px;
}

.hero-auth-buttons .auth-entry-btn,
.hero-auth-buttons .auth-exit-btn {
  min-width: 132px;
  text-align: center;
}

.hero-auth-buttons .auth-exit-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
}

.lang-menu button.active {
  background: rgba(255,255,255,0.16);
}

body.rtl-ui {
  direction: rtl;
}

/* Desktop: navbar & content mulai dari kanan, menu-btn di pojok kanan */
@media (min-width: 521px) {
  body.rtl-ui .navbar {
    flex-direction: row;
    justify-content: flex-start;
  }

  body.rtl-ui .navbar .logo {
    order: -1;
  }

  body.rtl-ui .navbar .menu-btn {
    order: 99;
    margin-right: 0;
    margin-left: 12px;
  }

  body.rtl-ui .navbar .theme-toggle {
    margin-left: 0;
    margin-right: auto;
  }
}

body.rtl-ui .lang-menu {
  right: auto;
  left: 0;
}

body.rtl-ui .lang-menu button,
body.rtl-ui .hero-content,
body.rtl-ui .welcome,
body.rtl-ui .reader-stats,
body.rtl-ui .section-header,
body.rtl-ui .tools-section,
body.rtl-ui .tools-bridge-section,
body.rtl-ui .categories-home,
body.rtl-ui .offline-section,
body.rtl-ui .author-preview-card,
body.rtl-ui .prefooter-col,
body.rtl-ui .popup-content,
body.rtl-ui .quran-header,
body.rtl-ui .hadith-controls {
  text-align: right;
}

body.rtl-ui .quick-card,
body.rtl-ui .tool-card,
body.rtl-ui .smart-fiqh-card,
body.rtl-ui .hero-rotating-wrap,
body.rtl-ui .widget-card,
body.rtl-ui .zakat-card,
body.rtl-ui .footer-links,
body.rtl-ui .prefooter-social,
body.rtl-ui .hadith-controls {
  direction: rtl;
}

body.rtl-ui .tool-bridge-copy{
  text-align:right;
}

body.rtl-ui .tool-bridge-badge{
  inset-inline-end:auto;
  inset-inline-start:18px;
}

body.rtl-ui .welcome,
body.rtl-ui .welcome-title,
body.rtl-ui .welcome-desc,
body.rtl-ui .welcome-topics,
body.rtl-ui .welcome-search {
  text-align: center;
}

/* =========================
   OVERFLOW FIX (RTL SAFE)
========================= */
html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

main,
.hero,
.categories-home {
  max-width: 100%;
}

.categories-home {
  overflow-x: visible;
  padding-inline: 16px;
}

#category-grid {
  width: 100%;
  max-width: 100%;
}

.prayer-wrapper {
  width: 100%;
  max-width: 1100px;
  margin-inline: auto;
  padding-inline: 20px;
}

.prayer-box {
  width: 100%;
  max-width: none;
  margin-inline: auto;
  padding: 16px 20px;
}

.prayer-title {
  flex-wrap: wrap;
  justify-content: center;
  text-align: center;
}

.prayer-meta {
  flex-wrap: wrap;
  row-gap: 6px;
  padding-inline: 8px;
}

#next-prayer,
.prayer-status,
.prayer-location,
.prayer-hijri {
  max-width: 100%;
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.prayer-location,
.prayer-hijri {
  white-space: normal;
}

@media (max-width: 768px) {
  .prayer-wrapper {
    width: 100%;
    max-width: 100%;
    padding: 0 16px;
  }

  .prayer-box {
    max-width: 100%;
    padding: 14px 16px;
  }
}

body.rtl-ui .prayer-title,
body.rtl-ui .prayer-meta {
  text-align: center;
}

/* =========================
   PRAYER AYAH BOX (height follows content; avoids large empty gap)
========================= */
.prayer-header .ayah-player {
  flex: 1 1 780px;
  width: 100%;
  max-width: 920px;
  min-height: 0;
  margin-inline: auto;
  box-sizing: border-box;
}

.prayer-header .ayah-player #daily-ayah-arab,
.prayer-header .ayah-player #daily-ayah-arti {
  width: 100%;
  max-width: 820px;
  margin-inline: auto;
}

@media (max-width: 768px) {
  .prayer-header .ayah-player {
    flex: none;
    max-width: 100%;
    min-height: 0;
  }
}

/* AdSense: rapat ke prefooter (spacing vertikal minimal) */
.portal-ad-slot {
  max-width: 100%;
  margin: 0 auto;
  padding: 0 1rem;
  text-align: center;
}

/* Slot iklan Google di atas prayer: margin tipis + batas tinggi biar tidak boros ruang */
body.home-page .portal-ad-slot--above-prayer {
  margin-top: 0.35rem;
  margin-bottom: 0.35rem;
  padding: 0 1rem;
  max-height: min(280px, 38vh);
  overflow: hidden;
  line-height: 0;
}

body.home-page .portal-ad-slot--above-prayer ins.adsbygoogle {
  display: block !important;
  min-height: 0 !important;
  max-height: min(280px, 38vh) !important;
}

/* Jangan tarik prayer ke atas (-24px) saat iklan sudah di atasnya; jarak nyaman ke prefooter */
body.home-page .prayer-wrapper {
  margin-top: 0;
  margin-bottom: clamp(1.75rem, 4vw, 2.75rem);
}

.portal-ad-slot ins.adsbygoogle {
  display: block;
  min-height: 0;
}

/* Beranda: prefooter tidak mepet ke prayer; padding atas cukup */
body.home-page .prefooter {
  margin-top: 0;
  padding-top: clamp(3rem, 5vw, 4.25rem);
}

/* =========================
   HOME MODERN MOON THEME
========================= */
body.home-page {
  font-family: "Inter", "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 16% 14%, rgba(191, 219, 254, 0.26), transparent 28%),
    radial-gradient(circle at 84% 16%, rgba(125, 211, 252, 0.22), transparent 34%),
    linear-gradient(160deg, #0a2a57 0%, #0b3d77 36%, #1157a4 68%, #0b4c8f 100%);
  color: #eff6ff;
}

body.home-page::after {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at 16% 11%, rgba(255, 255, 255, 0.2), transparent 18%),
    radial-gradient(circle at 88% 14%, rgba(191, 219, 254, 0.2), transparent 21%),
    radial-gradient(circle at 50% 86%, rgba(147, 197, 253, 0.16), transparent 30%);
  pointer-events: none;
}

body.home-page main,
body.home-page .welcome-desc,
body.home-page .section-subtitle,
body.home-page .section-sub,
body.home-page .tools-sub {
  font-family: "Inter", "Segoe UI", sans-serif;
}

body.home-page .welcome-title,
body.home-page .articles > .section-header h2,
body.home-page .popular-section .section-header h2,
body.home-page .tools-section h2,
body.home-page .categories-home h2,
body.home-page #offline-section .section-header h2 {
  font-family: "Playfair Display", "Times New Roman", serif;
  letter-spacing: 0.02em;
  font-weight: 700;
}

body.home-page .section-icon-fixed {
  background: none !important;
  -webkit-text-fill-color: initial !important;
  color: initial !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-right: 8px;
  filter: drop-shadow(0 4px 10px rgba(8, 47, 73, 0.25));
}

body.rtl-ui.home-page .section-icon-fixed {
  margin-right: 0;
  margin-left: 8px;
}

/* "Selamat Datang di" satu warna */
body.home-page .welcome-title {
  color: #f8fbff;
  text-shadow: 0 12px 26px rgba(6, 26, 64, 0.34);
}

/* "Portal Literasi Islam" beda warna modern */
body.home-page .welcome-title span {
  color: #fefce8; /* fallback kalau gradient text tidak didukung */
  background: linear-gradient(96deg, #fef9c3 0%, #fde68a 36%, #93c5fd 72%, #67e8f9 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 6px 14px rgba(7, 25, 66, 0.22);
}

/* kontras nama/brand di home agar tetap terbaca di semua bahasa */
body.home-page .logo {
  color: #f8fbff;
  font-weight: 700;
  text-shadow: 0 6px 16px rgba(6, 26, 64, 0.35);
}

body.home-page .author-name {
  color: #0f172a;
  background: linear-gradient(120deg, #1d4ed8 0%, #2563eb 26%, #0ea5e9 58%, #10b981 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 800;
  letter-spacing: 0.01em;
  text-shadow:
    0 10px 26px rgba(14, 165, 233, 0.18),
    0 0 16px rgba(37, 99, 235, 0.14);
}

body.home-page .author-cred {
  color: #1d4ed8;
}

body.home-page .author-desc {
  color: #1f2937;
}

body.home-page .welcome-title span::after,
body.home-page .articles > .section-header::after,
body.home-page .popular-section .section-header::after,
body.home-page .tools-section .section-header::after,
body.home-page .categories-home .section-header::after,
body.home-page #offline-section .section-header::after {
  background: linear-gradient(90deg, #fde68a, #7dd3fc, #93c5fd);
}

body.home-page .articles > .section-header h2,
body.home-page #popular-title-text,
body.home-page #tools-title-text,
body.home-page #categories-title-text {
  background: linear-gradient(100deg, #ffffff 0%, #dbeafe 46%, #7dd3fc 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: none;
}

body.home-page .popular-section .section-header h2,
body.home-page .tools-section h2,
body.home-page .categories-home .section-header h2 {
  display: inline-flex;
  align-items: center;
  color: #f8fbff;
}

body.home-page #offline-section .section-header h2 {
  color: #f8fbff;
  background: linear-gradient(130deg, #1e3a8a, #2563eb, #0ea5e9);
  border: 1px solid rgba(125, 211, 252, 0.34);
  box-shadow:
    0 12px 24px rgba(7, 25, 66, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

/* Dark mode override: hitam abu, pinggir biru nyala (override home-page) */
body.dark.home-page #offline-section .section-header h2,
body.dark #offline-section .section-header h2 {
  color: #f1f5f9;
  background: #1e293b;
  border: 1px solid rgba(56,189,248,0.5);
  box-shadow: 0 0 12px rgba(56,189,248,0.3), inset 0 0 0 1px rgba(56,189,248,0.15);
}

body.dark.home-page #offline-section .see-all,
body.dark #offline-section .see-all {
  color: #f1f5f9;
  background: #1e293b;
  border: 1px solid rgba(56,189,248,0.5);
  box-shadow: 0 0 10px rgba(56,189,248,0.25);
}

body.dark.home-page #offline-section .see-all:hover,
body.dark #offline-section .see-all:hover {
  border-color: rgba(56,189,248,0.7);
  box-shadow: 0 0 16px rgba(56,189,248,0.4);
}

body.dark.home-page #offline-section .offline-home-list,
body.dark #offline-section .offline-home-list {
  background: #0f172a;
  border: 1px solid rgba(56,189,248,0.4);
  border-radius: 18px;
  padding: 14px;
  box-shadow: 0 0 14px rgba(56,189,248,0.2);
}

body.home-page .section-subtitle,
body.home-page .section-sub,
body.home-page .tools-sub,
body.home-page .tools-bridge-sub,
body.home-page .welcome-desc {
  color: rgba(241, 245, 255, 0.95);
  text-shadow: 0 2px 9px rgba(7, 25, 66, 0.28);
}

body.home-page .tools-bridge-section h2{
  font-family: "Playfair Display", "Times New Roman", serif;
  letter-spacing: 0.02em;
  font-weight: 700;
  display:inline-flex;
  align-items:center;
  color:#f8fbff;
}

body.home-page #tools-bridge-title-text{
  background: linear-gradient(100deg, #ffffff 0%, #dbeafe 46%, #fde68a 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: none;
}

body.home-page .tool-bridge-card{
  background:rgba(255,255,255,0.1);
  border:1px solid rgba(255,255,255,0.12);
}

body.home-page .tool-bridge-card:hover{
  background:rgba(255,255,255,0.16);
  box-shadow:
  0 20px 40px rgba(0,0,0,0.55),
  0 0 22px rgba(125,211,252,0.28);
}

@media (max-width: 768px) {
  .tools-bridge-grid{
    grid-template-columns:1fr;
    gap:12px;
  }

  .tool-bridge-card{
    grid-template-columns:48px minmax(0,1fr);
    padding:14px 12px;
    padding-inline-end:12px;
    gap:10px;
    min-height:auto;
  }

  .tool-bridge-card > span.icon{
    width:48px;
    height:48px;
    font-size:22px;
  }

  .tool-bridge-copy h3{
    font-size:15px;
  }

  .tool-bridge-badge{
    position:static;
    grid-column:2;
    justify-self:start;
    font-size:10px;
    padding:4px 8px;
  }
}

@media (max-width: 360px) {
  .tools-bridge-grid{
    gap:10px;
  }

  .tool-bridge-copy p{
    font-size:12px;
    line-height:1.5;
  }
}

/* value card aksen biru miring tebal */
body.home-page .value-item {
  position: relative;
  border-left: 7px solid #1d4ed8;
  border-radius: 24px;
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.94), rgba(239, 246, 255, 0.9));
}

body.home-page .value-item::after {
  content: "";
  position: absolute;
  left: -7px;
  top: 22px;
  width: 12px;
  height: 44px;
  border-radius: 7px;
  background: linear-gradient(170deg, #60a5fa, #2563eb, #1d4ed8);
  transform: skewY(-18deg);
  box-shadow: 0 10px 20px rgba(37, 99, 235, 0.35);
}

body.home-page .value-item h3 {
  padding-left: 26px;
  font-weight: 700;
}

body.home-page .value-item h3::before {
  content: "";
  width: 11px;
  height: 15px;
  left: 0;
  top: 2px;
  border-radius: 4px;
  background: linear-gradient(165deg, #93c5fd, #3b82f6, #1d4ed8);
  transform: skewX(-18deg);
  box-shadow: 0 6px 12px rgba(37, 99, 235, 0.32);
}

body.rtl-ui.home-page .value-item {
  border-left: 0;
  border-right: 7px solid #1d4ed8;
}

body.rtl-ui.home-page .value-item::after {
  left: auto;
  right: -7px;
  transform: skewY(18deg);
}

body.rtl-ui.home-page .value-item h3 {
  padding-left: 0;
  padding-right: 26px;
}

body.rtl-ui.home-page .value-item h3::before {
  left: auto;
  right: 0;
  transform: skewX(18deg);
}

body.home-page.dark .welcome-title,
body.home-page.dark .welcome-title span,
body.home-page.dark .articles > .section-header h2,
body.home-page.dark #popular-title-text,
body.home-page.dark #tools-title-text,
body.home-page.dark #categories-title-text {
  background: linear-gradient(100deg, #f8fafc 0%, #dbeafe 52%, #7dd3fc 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

body.home-page.dark .logo {
  color: #eaf4ff;
  text-shadow: 0 6px 16px rgba(8, 47, 73, 0.45);
}

body.home-page.dark .author-name {
  color: #e2f7ff;
  background: linear-gradient(120deg, #93c5fd 0%, #60a5fa 26%, #38bdf8 58%, #34d399 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow:
    0 12px 32px rgba(2, 6, 23, 0.44),
    0 0 18px rgba(56, 189, 248, 0.16);
}

body.home-page.dark .author-cred {
  color: #93c5fd;
}

body.home-page.dark .author-desc {
  color: #dbeafe;
}

body.home-page.dark .value-item {
  background: linear-gradient(165deg, rgba(2, 6, 23, 0.88), rgba(15, 23, 42, 0.85));
  border-left-color: #60a5fa;
}

body.rtl-ui.home-page.dark .value-item {
  border-right-color: #60a5fa;
}

/* intro: cincin hijau — timpa border tebal / warna biru dari .home-page.dark .value-item */
body.home-page.dark .intro-values .value-item,
body.rtl-ui.home-page.dark .intro-values .value-item {
  border: 1px solid rgba(34, 197, 94, 0.28);
  border-radius: 22px;
}

/* DARK MODE BODY */

body.dark{
  background: radial-gradient(circle at top, #0f1c2e 0%, #070d17 60%, #02060c 100%);
  color: #e6edf7;
  min-height: 100vh;
}

/* teks umum supaya tetap jelas */
body.dark p{
  color:#cfd7e6;
}

body.dark h1,
body.dark h2,
body.dark h3,
body.dark h4{
  color:#ffffff;
}

/* link */
body.dark a{
  color:#ffd65a;
}

body.dark a:hover{
  color:#ffea9a;
}

/* =========================
   SCROLL TO TOP - LEFT SIDE
========================= */

.scroll-to-top{
  position: fixed;

  left: 18px;          /* tetap di kiri semua bahasa */
  bottom: 26px;

  width: 42px;         /* lebih kecil */
  height: 36px;

  border: none;
  border-radius: 10px; /* bukan bulat */

  display: flex;
  align-items: center;
  justify-content: center;

  cursor: pointer;

  background: linear-gradient(135deg,#ef4444,#dc2626); /* merah modern */

  color: white;

  box-shadow:
    0 6px 16px rgba(0,0,0,0.25),
    0 3px 8px rgba(239,68,68,0.35);

  opacity: 0;
  visibility: hidden;

  transform: translateY(14px);
  transition: all 0.28s ease;

  z-index: 999;
  pointer-events: none;
}

/* icon */
.scroll-to-top svg{
  width: 16px;
  height: 16px;
}

/* muncul */
.scroll-to-top.show{
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

/* hover */
.scroll-to-top:hover{
  transform: translateY(-2px);
  box-shadow:
    0 10px 22px rgba(0,0,0,0.3),
    0 6px 14px rgba(239,68,68,0.45);
}

/* klik */
.scroll-to-top:active{
  transform: scale(0.95);
}

/* =========================
   POPUP CENTER FIX — TASBIH & KIBLAT
========================= */
#tasbihPopup,
#kiblatPopup {
  justify-content: center;
  align-items: center;
}

#tasbihPopup .popup-content,
#kiblatPopup .popup-content {
  position: relative;
  width: min(92vw, 440px);
  max-width: 440px;
  min-height: 260px;
  height: auto;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center !important;
  gap: 12px;
  overflow-y: auto;
}

#kiblatPopup .popup-content {
  min-height: 240px;
}

#tasbihPopup h3,
#kiblatPopup h3,
#tasbihText,
#tasbihTranslation,
#tasbihCount,
#kiblatDegree,
#compass {
  width: 100%;
  text-align: center !important;
  margin-left: auto;
  margin-right: auto;
}

#tasbihText {
  direction: rtl;
}

#tasbihTranslation,
#kiblatDegree {
  line-height: 1.6;
}

#tasbihBtn,
#resetTasbih {
  min-width: 114px;
}

#tasbihPopup .close-popup,
#kiblatPopup .close-popup {
  position: absolute;
  top: 14px;
  right: 18px;
  float: none;
  line-height: 1;
}

body.rtl-ui #tasbihPopup .popup-content,
body.rtl-ui #kiblatPopup .popup-content,
body.rtl-ui #tasbihPopup h3,
body.rtl-ui #kiblatPopup h3,
body.rtl-ui #tasbihText,
body.rtl-ui #tasbihTranslation,
body.rtl-ui #tasbihCount,
body.rtl-ui #kiblatDegree,
body.rtl-ui #compass {
  text-align: center !important;
}

@media (max-width: 768px) {
  #tasbihPopup .popup-content,
  #kiblatPopup .popup-content {
    width: min(92vw, 420px);
    min-height: 220px;
    height: auto;
    max-height: 80vh;
    padding: 24px 20px;
  }
}
