/* =========================================
   RESET SEDERHANA
   ========================================= */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  background: #f9fafb;
  color: #111827;
}

/* Link default */
a {
  color: inherit;
  text-decoration: none;
}

/* =========================================
   LAYOUT DASAR
   ========================================= */
.container {
  width: 100%;
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 1.75rem;
}

/* Wrapper main */
.site-main,
.page-wrapper {
  min-height: calc(100vh - 120px);
  background: radial-gradient(
    circle at top left,
    #ffffff 0,
    #f9fafb 40%,
    #f3f4f6 100%
  );
  padding-top: 3rem;
  padding-bottom: 3rem;
}

/* =========================================
   HEADER
   ========================================= */
.site-header {
  border-bottom: 1px solid #e5e7eb;
  background: #ffffffcc;
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 50;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 0;
}

/* BRANDING */
.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: inherit;
}

.brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  overflow: hidden;
  background: #fef3c7;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 20px rgba(251, 191, 36, 0.45);
}

.brand-logo {
  max-width: 100%;
  max-height: 100%;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-weight: 600;
  font-size: 0.95rem;
}

.brand-tagline {
  font-size: 0.78rem;
  color: #6b7280;
}

/* NAVIGASI DESKTOP */
.main-nav {
  display: flex;
  align-items: center;
}

.main-nav a {
  font-size: 0.9rem;
  color: #374151;
  margin-left: 1.3rem;
  position: relative;
  padding-bottom: 0.2rem;
}

.main-nav a:hover {
  color: #eab308;
}

.main-nav a.is-active,
.main-nav a.active {
  color: #eab308;
}

.main-nav a.is-active::after,
.main-nav a.active::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.25rem;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, #f97316, #eab308);
  border-radius: 999px;
}

/* TOMBOL MENU MOBILE (ikon tiga garis) */
.mobile-menu-btn {
  display: none;
  font-size: 1.6rem;
  cursor: pointer;
  color: #eab308;
}

/* =========================================
   FOOTER
   ========================================= */
.site-footer {
  border-top: 1px solid #e5e7eb;
  background: #ffffff;
}

.footer-inner {
  padding: 0.9rem 0;
  text-align: center;
  font-size: 0.8rem;
  color: #6b7280;
}

/* =========================================
   HALAMAN BERANDA
   ========================================= */
.page-home .hero,
.home .hero {
  max-width: 640px;
  margin: 0 auto;
  padding: 2rem 0;
}

/* Hero Section – full terang dan center */
.hero {
  text-align: center;
  padding-top: 2rem;
  padding-bottom: 2rem;
}

.hero h1,
.page-home h1,
.home h1 {
  font-size: 2.4rem;
  margin: 0 0 1rem 0;
  color: #111827;
}

.hero p,
.page-home p,
.home p {
  font-size: 1rem;
  line-height: 1.8;
  color: #4b5563;
  margin-bottom: 1.5rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero-actions {
  margin-top: 2rem;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
}

/* =========================================
   BUTTONS
   ========================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.6rem 1.5rem;
  font-size: 0.9rem;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: 0.12s ease;
}

/* tombol utama: emas lembut */
.btn-primary {
  background: radial-gradient(
    circle at 30% 0,
    #fef9c3 0,
    #fde68a 35%,
    #fbbf24 70%,
    #f97316 100%
  );
  color: #111827;
  border-color: #fbbf24;
  box-shadow: 0 12px 30px rgba(250, 204, 21, 0.5);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 40px rgba(250, 204, 21, 0.7);
}

/* tombol garis tipis */
.btn-ghost {
  background: #ffffff;
  border-color: #d1d5db;
  color: #374151;
}

.btn-ghost:hover {
  background: #f3f4f6;
}

/* =========================================
   HALAMAN TENTANG – PUTIH-EMAS + FOTO LINGKAR
   ========================================= */
.page-about {
  min-height: calc(100vh - 140px);
  display: flex;
  align-items: center;
  padding-top: 3rem;
  padding-bottom: 3rem;
}

.about-layout {
  max-width: 980px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3rem;
}

/* FOTO PROFIL – LINGKAR & DIPERKECIL */
.about-photo {
  flex: 0 0 320px;
  max-width: 320px;
  aspect-ratio: 1 / 1;
  border-radius: 999px;
  overflow: hidden;
  position: relative;

  background: radial-gradient(
    circle at 30% 0,
    #fef9c3 0%,
    #fde68a 45%,
    #ffffff 100%
  );

  box-shadow: 0 25px 60px rgba(15, 23, 42, 0.2);
}

.about-photo img {
  width: 100%;
  height: 100%;
  object-fit: contain;   /* jaga lingkar asli foto */
  transform: scale(1.0); /* kecilkan 20% */
  transform-origin: center;
}

/* TEKS BIO */
.about-copy {
  flex: 1;
  max-width: 560px;
}

.about-copy h1 {
  margin: 0 0 1.2rem 0;
  font-size: 1.9rem;
  letter-spacing: 0.01em;
  font-weight: 700;
  color: #0f172a;
}

.about-copy p {
  margin: 0 0 1rem 0;
  font-size: 1.05rem;
  line-height: 1.85;
  color: #374151;
}

/* =========================================
   HALAMAN KARYA
   ========================================= */
.page-karya h1,
.karya h1 {
  font-size: 1.5rem;
  margin-bottom: 1.2rem;
}

.karya-list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0 0;
}

.karya-list li {
  padding: 0.7rem 0;
  border-bottom: 1px solid #e5e7eb;
  font-size: 0.98rem;
  color: #374151;
}

/* =========================================
   HALAMAN RENUNG AKSARA (LIST)
   ========================================= */

/* Wrapper & heading */
.renung-wrap {
  max-width: 900px;
  margin: 0 auto;
}

.renung-title {
  font-size: 1.9rem;
  margin-bottom: 0.4rem;
}

.renung-sub {
  max-width: 640px;
  line-height: 1.7;
  color: #4b5563;
  margin-bottom: 1.5rem;
}

/* List container */
.post-list {
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Card – mobile: kolom (gambar atas, teks bawah) */
.post-card {
  background: #ffffff;
  border-radius: 18px;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.08);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* Gambar */
.post-cover img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* Body teks */
.post-body {
  padding: 1rem 1.2rem 1.4rem;
}

.post-title {
  margin: 0 0 0.3rem 0;
  font-size: 1.05rem;
}

.post-title a {
  color: #111827;
}

.post-title a:hover {
  color: #eab308;
}

.post-meta {
  font-size: 0.78rem;
  color: #9ca3af;
  margin-bottom: 0.6rem;
}

/* Batasi panjang preview */
.post-excerpt {
  font-size: 0.92rem;
  color: #4b5563;
  margin-bottom: 0.5rem;
  line-height: 1.7;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.post-read {
  font-size: 0.85rem;
  color: #f97316;
}

/* --- Interaksi (suka, baca, komentar, bagikan) --- */
.engage-mini, .engage-bar {
  display: flex;
  align-items: center;
  gap: .65rem;
  margin: .65rem 0 .25rem;
  flex-wrap: wrap;
}

.engage-bar {
  margin: .8rem 0 1rem;
}

.engage-btn {
  appearance: none;
  border: 1px solid rgba(15,23,42,.12);
  background: #ffffff;
  border-radius: 999px;
  padding: .28rem .55rem;
  font-size: .82rem;
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  cursor: pointer;
}

.engage-btn:hover {
  border-color: rgba(234,179,8,.55);
  box-shadow: 0 8px 18px rgba(15,23,42,.08);
}

.engage-btn.is-on {
  border-color: rgba(239,68,68,.55);
  box-shadow: 0 10px 22px rgba(239,68,68,.10);
}

.engage-stat {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  font-size: .82rem;
  color: #6b7280;
  padding: .2rem .2rem;
}

.engage-ico {
  font-size: .95rem;
}

.engage-num {
  min-width: 1ch;
  font-variant-numeric: tabular-nums;
}

/* --- Komentar --- */
.comment-box {
  margin-top: 1.4rem;
  padding: 1rem 1rem;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  background: #fff;
}

.comment-title {
  margin: 0 0 .2rem;
  font-size: 1.05rem;
}

.comment-sub {
  margin: 0 0 .9rem;
  color: #6b7280;
  font-size: .9rem;
}

.comment-row {
  margin-bottom: .7rem;
}

.comment-input, .comment-textarea {
  width: 100%;
  padding: .65rem .75rem;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  font-size: .95rem;
  outline: none;
}

.comment-input:focus, .comment-textarea:focus {
  border-color: rgba(234,179,8,.65);
  box-shadow: 0 0 0 3px rgba(234,179,8,.18);
}

.comment-btn {
  appearance: none;
  border: 1px solid rgba(249,115,22,.45);
  background: linear-gradient(135deg, rgba(239,68,68,.15), rgba(250,204,21,.18));
  padding: .6rem .9rem;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 600;
}

.comment-btn:hover {
  border-color: rgba(249,115,22,.75);
}

.comment-msg {
  min-height: 1.2em;
  color: #6b7280;
  font-size: .86rem;
}

.comment-list {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: .75rem;
}

.comment-item {
  border-top: 1px dashed #e5e7eb;
  padding-top: .75rem;
}

.comment-meta {
  font-size: .82rem;
  color: #6b7280;
  margin-bottom: .3rem;
}

.comment-text {
  margin: 0;
  color: #374151;
  line-height: 1.65;
  white-space: pre-wrap;
}

.comment-empty {
  color: #6b7280;
  font-size: .9rem;
}

/* Desktop: gambar kiri, teks kanan */
@media (min-width: 768px) {
  .post-card {
    flex-direction: row;
    align-items: stretch;
  }

  .post-cover {
    flex: 0 0 260px;
  }

  .post-body {
    flex: 1;
  }
}

/* =========================================
   DETAIL TULISAN RENUNG
   ========================================= */
.post-cover-large {
  margin: 1.5rem 0;
  border-radius: 1rem;
  overflow: hidden;
  border: 1px solid #e5e7eb;
  background: #ffffff;
}

.post-cover-large img {
  width: 100%;
  height: auto;
}

.post-content {
  margin-top: 1rem;
  font-size: 0.98rem;
  line-height: 1.8;
  color: #374151;
}

/* =========================================
   HALAMAN KONTAK
   ========================================= */
.page-kontak h1,
.kontak h1 {
  font-size: 1.5rem;
  margin-bottom: 1.2rem;
}

.contact-info {
  font-size: 0.98rem;
  line-height: 1.8;
  color: #4b5563;
}

/* =========================================
   WIDGET WAKTU & SHALAT
   ========================================= */
.prayer-widget {
  margin-top: 2rem;
}

.pw-card {
  background: radial-gradient(circle at top left, #020617 0, #020617 40%, #020617 100%);
  color: #e5e7eb;
  border-radius: 24px;
  padding: 1.75rem 2rem;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 2rem;
  box-shadow: 0 28px 60px rgba(15, 23, 42, 0.55);
}

.pw-left,
.pw-right {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.pw-label {
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #9ca3af;
}

.pw-clock {
  font-family: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 2.2rem;
  letter-spacing: 0.12em;
}

.pw-location {
  font-size: 0.9rem;
  color: #9ca3af;
}

.pw-hijri {
  font-size: 0.9rem;
  color: #e5e7eb;
}

.pw-next-name {
  font-size: 1rem;
  font-weight: 600;
  color: #fde68a;
}

.pw-next-time {
  font-size: 1.3rem;
  letter-spacing: 0.08em;
}

.pw-countdown {
  font-size: 0.9rem;
  color: #e5e7eb;
}

.pw-current {
  font-size: 0.9rem;
  color: #a5b4fc;
}

/* catatan & metode */
.pw-note {
  margin-top: 0.6rem;
  font-size: 0.75rem;
  color: #9ca3af;
}

.pw-method {
  margin-top: 0.35rem;
  font-size: 0.78rem;
  color: #6b7280;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.pw-method select {
  font-size: 0.78rem;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  border: 1px solid #d1d5db;
  background: #ffffff;
  color: #374151;
}

/* RESPONSIVE untuk widget */
@media (max-width: 768px) {
  .pw-card {
    grid-template-columns: 1fr;
    padding: 1.5rem 1.4rem;
  }

  .pw-clock {
    font-size: 1.8rem;
  }

  .pw-next-time {
    font-size: 1.1rem;
  }
}

/* =========================================
   RESPONSIVE UMUM
   ========================================= */
@media (max-width: 900px) {
  .page-about {
    padding-top: 2.5rem;
    padding-bottom: 3rem;
  }

  .about-layout {
    flex-direction: column;
    text-align: center;
  }

  .about-photo {
    max-width: 240px;
  }

  .about-copy {
    max-width: 640px;
  }

  .about-copy h1 {
    font-size: 1.6rem;
  }

  .about-copy p {
    font-size: 1rem;
  }

  .pw-clock {
    font-size: 2.1rem;
  }

  .pw-next-time {
    font-size: 1.2rem;
  }
}

/* =========================================
   RESPONSIVE HEADER & MENU MOBILE
   ========================================= */
@media (max-width: 720px) {
  /* Tampilkan tombol ☰ */
  .mobile-menu-btn {
    display: block;
  }

  /* NAVIGASI MOBILE: awalnya sembunyi, muncul dorong konten ke bawah */
  .main-nav {
    display: none;
    flex-direction: column;
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 0.5rem 0;
    margin-top: 0.5rem;
  }

  .main-nav.show {
    display: flex;
  }

  .main-nav a {
    padding: 0.6rem 0;
    margin: 0 1.2rem;
    font-size: 0.98rem;
    border-bottom: 1px solid #f3f4f6;
  }

  .main-nav a:last-child {
    border-bottom: none;
  }

  .page-home h1,
  .home h1 {
    font-size: 2rem;
  }
}

@media (max-width: 640px) {
  .container {
    padding: 0 1.5rem;
  }

  .about-photo {
    max-width: 220px;
  }

  .about-copy h1 {
    font-size: 1.45rem;
  }

  .about-copy p {
    font-size: 0.97rem;
  }
}

/* Animasi dropdown menu mobile */
@keyframes dropdown {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ================================
   UNIFIED MENU (HP + PC) — HARD FIX
   - tombol selalu bisa diklik (anti ketutup layer)
   - menu jadi panel dropdown
================================= */
.site-header{
  position: sticky;
  top: 0;
  z-index: 9999;
  background: rgba(255,255,255,0.88);
  backdrop-filter: blur(10px);
}

.header-inner{
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

/* pastikan brand tidak “nabrak” tombol */
.brand{
  flex: 1;
  min-width: 0;
}

/* tombol selalu tampil & selalu di atas */
.site-header .mobile-menu-btn{
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;

  background: transparent;
  border: 0;
  border-radius: 12px;

  color: #eab308;
  font-size: 1.7rem;
  line-height: 1;
  cursor: pointer;

  position: relative;
  z-index: 10001;

  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

/* panel dropdown */
.site-header .main-nav{
  display: none;
  position: absolute;
  top: calc(100% + 10px);
  right: 0;

  width: min(86vw, 340px);
  flex-direction: column;

  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  box-shadow: 0 24px 80px rgba(2,6,23,.14);
  padding: 0.35rem 0;
  overflow: hidden;

  z-index: 10000;
}

.site-header .main-nav.show{
  display: flex;
  animation: amkDrop .18s ease;
}

@keyframes amkDrop{
  from{ transform: translateY(-8px); opacity: 0; }
  to{ transform: translateY(0); opacity: 1; }
}

.site-header .main-nav a{
  margin: 0 !important;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid #f3f4f6;
  font-size: 0.98rem;
}

.site-header .main-nav a:last-child{ border-bottom: none; }
.site-header .main-nav a:hover{ background: #fffbeb; }

/* underline active jangan bikin panel “loncat” */
.site-header .main-nav a.is-active::after,
.site-header .main-nav a.active::after{ display:none; }

/* layar kecil: panel jadi full-aman */
@media (max-width: 720px){
  .site-header .main-nav{
    left: 0;
    right: 0;
    width: auto;
    margin: 0 0.75rem;
  }
}

/* =========================================
   MENU TOTAL RESET (PURE CSS, HP + PC)
   - Tidak butuh JS
   - Anti konflik show/show
   - Anti "klik nggak nyangkut"
========================================= */

/* pastikan header selalu di paling atas */
.site-header{
  position: sticky;
  top: 0;
  z-index: 999999;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid #e5e7eb;
}

/* biar anak-anak header tidak bisa ketiban elemen lain */
.header-inner{
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0.9rem 0;
}

/* brand aman */
.brand{ flex: 1; min-width: 0; }

/* === NAVBOX pakai <details> === */
.navbox{
  position: relative;
  z-index: 999999;
}

/* tombol hamburger (summary) */
.navbox > summary{
  list-style: none;
  cursor: pointer;
  user-select: none;

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

  width: 44px;
  height: 44px;

  border: 0;
  border-radius: 12px;
  background: transparent;

  color: #eab308;
  font-size: 1.75rem;
  line-height: 1;

  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;

  position: relative;
  z-index: 1000000;
}

/* hilangkan marker default summary */
.navbox > summary::-webkit-details-marker{ display:none; }

/* ikon berubah saat open */
.navbox > summary .icon-open{ display: inline; }
.navbox > summary .icon-close{ display: none; }
.navbox[open] > summary .icon-open{ display:none; }
.navbox[open] > summary .icon-close{ display:inline; }

/* PANEL MENU (dropdown) */
.navbox .main-nav{
  display: none; /* default */
  position: absolute;
  top: calc(100% + 10px);
  right: 0;

  width: min(86vw, 360px);
  background: #fff;

  border: 1px solid #e5e7eb;
  border-radius: 16px;
  box-shadow: 0 24px 80px rgba(2,6,23,.14);
  overflow: hidden;

  z-index: 1000000;
}

/* saat details open => tampil */
.navbox[open] .main-nav{
  display: flex;
  flex-direction: column;
  animation: amkDrop .18s ease;
}

@keyframes amkDrop{
  from{ transform: translateY(-8px); opacity: 0; }
  to{ transform: translateY(0); opacity: 1; }
}

/* link menu */
.navbox .main-nav a{
  padding: 0.8rem 1rem;
  border-bottom: 1px solid #f3f4f6;
  font-size: 0.98rem;

  color: #374151;
}

.navbox .main-nav a:hover{
  background: #fffbeb;
  color: #eab308;
}

.navbox .main-nav a:last-child{ border-bottom: none; }

/* matikan underline active lama biar panel tidak aneh */
.navbox .main-nav a.is-active::after,
.navbox .main-nav a.active::after{ display:none !important; }

/* mobile: panel jadi lebih aman (melebar) */
@media (max-width: 720px){
  .navbox .main-nav{
    left: 0;
    right: 0;
    width: auto;
    margin: 0 0.75rem;
  }
}

/* === PENTING: matikan style menu lama yang bikin konflik === */
.main-nav.show{ display:none !important; }          /* kalau masih ada class show dari JS */
.mobile-menu-btn{ display:none !important; }       /* kalau tombol lama masih nongol */

/* ==== AMK MENU FORCE SHOW (PASTI MUNCUL) ==== */
.site-header{
  z-index: 999999 !important;
  overflow: visible !important;
}

.header-inner,
.container{
  overflow: visible !important;
}

#mainNav{
  /* paksa jadi dropdown panel */
  display: none;
  position: absolute;
  top: calc(100% + 10px);
  right: 0;

  width: min(86vw, 360px);
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  box-shadow: 0 24px 80px rgba(2,6,23,.14);
  padding: 0.35rem 0;

  z-index: 1000000 !important;
}

#mainNav a{
  display: block;
  padding: 0.8rem 1rem;
  margin: 0 !important;
  border-bottom: 1px solid #f3f4f6;
  color: #374151;
}

#mainNav a:last-child{ border-bottom: none; }
#mainNav a:hover{ background: #fffbeb; color: #eab308; }

/* INI KUNCI: kalau show, PASTI tampil */
#mainNav.show{
  display: flex !important;
  flex-direction: column;
}

/* ================================
   KARYA PAGE (cards + filter)
================================= */
.karya-wrap{max-width:1040px;margin:0 auto;}
.karya-title{font-size:1.9rem;margin:0 0 .4rem;}
.karya-sub{max-width:740px;line-height:1.8;color:#4b5563;margin:0 0 1.2rem;}
.karya-empty{background:#fff;border:1px solid #e5e7eb;border-radius:16px;padding:1rem 1.1rem;box-shadow:0 10px 25px rgba(15,23,42,.06);}

.karya-toolbar{display:flex;align-items:center;justify-content:space-between;gap:1rem;flex-wrap:wrap;margin:1rem 0 1.2rem;}
.karya-filters{display:flex;gap:.5rem;flex-wrap:wrap;}
.chip{
  display:inline-flex;align-items:center;gap:.5rem;
  border:1px solid #e5e7eb;background:#fff;border-radius:999px;
  padding:.45rem .8rem;font-size:.86rem;color:#374151;cursor:pointer;
  box-shadow:0 8px 18px rgba(15,23,42,.05);
}
.chip span{
  display:inline-flex;align-items:center;justify-content:center;
  min-width:28px;height:22px;border-radius:999px;
  background:#fffbeb;border:1px solid #fde68a;color:#92400e;
  font-size:.78rem;padding:0 .45rem;
}
.chip.is-active{border-color:#fbbf24;box-shadow:0 14px 30px rgba(250,204,21,.22);}
.karya-note{display:inline-flex;align-items:center;gap:.5rem;font-size:.82rem;color:#6b7280;}
.karya-note-dot{width:8px;height:8px;border-radius:999px;background:#fbbf24;box-shadow:0 0 0 6px rgba(251,191,36,.18);}

.karya-grid{
  display:grid;
  grid-template-columns:repeat(12,1fr);
  gap:1rem;
}
.work-card{
  grid-column:span 6;
  background:#fff;border:1px solid #e5e7eb;border-radius:18px;
  overflow:hidden;box-shadow:0 12px 30px rgba(15,23,42,.08);
  display:flex;flex-direction:column;
}
@media (max-width: 920px){ .work-card{grid-column:span 12;} }

.work-media{position:relative;display:block;background:#f3f4f6;}
.work-media img{width:100%;height:auto;display:block;}
.work-badge{
  position:absolute;left:12px;top:12px;
  background:rgba(2,6,23,.78);color:#fff;
  padding:.3rem .6rem;border-radius:999px;font-size:.78rem;
  backdrop-filter:blur(6px);
}
.work-placeholder{
  padding:2.2rem 1.3rem;
  background:radial-gradient(circle at 20% 0,#fef9c3 0,#fde68a 30%,#ffffff 100%);
}
.work-ph-inner{display:flex;flex-direction:column;gap:.6rem;}
.work-ph-badge{display:inline-flex;align-items:center;gap:.4rem;font-weight:600;color:#92400e;}
.work-ph-title{font-size:1.05rem;font-weight:700;color:#0f172a;max-width:100%;}

.work-body{padding:1rem 1.1rem 1.2rem;}
.work-title{margin:0 0 .35rem;font-size:1.05rem;line-height:1.35;}
.work-title a{color:#111827;}
.work-title a:hover{color:#eab308;}
.work-desc{margin:0 0 .75rem;color:#4b5563;line-height:1.75;font-size:.92rem;}
.work-tags{display:flex;flex-wrap:wrap;gap:.4rem;margin:.1rem 0 .9rem;}
.work-tags .tag{
  border:1px solid #e5e7eb;background:#fff;border-radius:999px;
  padding:.22rem .55rem;font-size:.78rem;color:#374151;
}
.work-actions{display:flex;gap:.6rem;flex-wrap:wrap;}
.karya-foot{margin:1.2rem 0 0;color:#6b7280;font-size:.88rem;line-height:1.8;max-width:760px;}

/* toast kecil */
.amk-toast{
  position:fixed;left:50%;bottom:18px;transform:translateX(-50%);
  background:rgba(2,6,23,.88);color:#fff;
  padding:.55rem .9rem;border-radius:999px;font-size:.85rem;
  box-shadow:0 18px 60px rgba(2,6,23,.35);
  z-index:99999;
}

/* =========================================
   KARYA / WORKS — Sweet Cards (YouTube + Web + App)
   ========================================= */

.karya-wrap{
  max-width: 1040px;
}

.karya-title{
  font-size: 1.9rem;
  margin: 0 0 .35rem 0;
}

.karya-sub{
  max-width: 680px;
  line-height: 1.8;
  color: #4b5563;
  margin: 0 0 1.4rem 0;
}

/* toolbar */
.karya-toolbar{
  display:flex;
  flex-direction:column;
  gap:.85rem;
  margin: 1.1rem 0 1.2rem;
}

.karya-filters{
  display:flex;
  flex-wrap:wrap;
  gap:.6rem;
  align-items:center;
}

.chip{
  appearance:none;
  border:1px solid #e5e7eb;
  background:#fff;
  color:#111827;
  border-radius:999px;
  padding:.5rem .85rem;
  font-size:.88rem;
  cursor:pointer;
  display:inline-flex;
  align-items:center;
  gap:.55rem;
  box-shadow: 0 10px 24px rgba(15,23,42,.06);
  transition: .14s ease;
  -webkit-tap-highlight-color: transparent;
}

.chip span{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width: 28px;
  height: 22px;
  padding: 0 .5rem;
  border-radius:999px;
  background:#fffbeb;
  border:1px solid #fde68a;
  color:#92400e;
  font-size:.78rem;
}

.chip:hover{
  transform: translateY(-1px);
  border-color:#fde68a;
  box-shadow: 0 16px 36px rgba(15,23,42,.10);
}

.chip.is-active{
  background: radial-gradient(circle at 30% 0, #fef9c3 0, #fde68a 45%, #fbbf24 100%);
  border-color:#fbbf24;
}

.karya-note{
  display:flex;
  align-items:center;
  gap:.55rem;
  color:#6b7280;
  font-size:.86rem;
}

.karya-note-dot{
  width:10px;height:10px;border-radius:999px;
  background: radial-gradient(circle at 30% 0, #fef9c3 0, #fde68a 40%, #f97316 100%);
  box-shadow: 0 10px 22px rgba(251,191,36,.35);
}

/* grid */
.karya-grid{
  display:grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1rem;
  margin-top: .6rem;
}

.work-card{
  grid-column: span 12;
  background:#fff;
  border:1px solid #e5e7eb;
  border-radius: 18px;
  overflow:hidden;
  box-shadow: 0 18px 48px rgba(15,23,42,.08);
  transition: .16s ease;
  display:flex;
  flex-direction:column;
}

.work-card:hover{
  transform: translateY(-2px);
  box-shadow: 0 26px 70px rgba(15,23,42,.12);
  border-color:#fde68a;
}

@media (min-width: 640px){
  .work-card{ grid-column: span 6; }
}
@media (min-width: 980px){
  .work-card{ grid-column: span 4; }
}

/* media: 16:9 selalu manis */
.work-media{
  position:relative;
  display:block;
  aspect-ratio: 16 / 9;
  background: radial-gradient(circle at top left, #ffffff 0, #f9fafb 50%, #f3f4f6 100%);
  overflow:hidden;
}

.work-media img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
  transform: scale(1.02);
  transition: .22s ease;
  filter: saturate(1.02);
}

.work-card:hover .work-media img{
  transform: scale(1.06);
}

/* badge kecil */
.work-badge{
  position:absolute;
  top:12px;
  left:12px;
  padding:.35rem .6rem;
  border-radius:999px;
  font-size:.78rem;
  letter-spacing:.01em;
  background: rgba(17,24,39,.82);
  color:#fff;
  border: 1px solid rgba(255,255,255,.18);
  backdrop-filter: blur(8px);
}

/* YouTube vibe: tombol play */
.work-play{
  position:absolute;
  inset:0;
  display:flex;
  align-items:center;
  justify-content:center;
  pointer-events:none;
}

.work-play::before{
  content:"";
  width: 74px;
  height: 74px;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 0, rgba(255,255,255,.75) 0, rgba(250,204,21,.50) 55%, rgba(249,115,22,.55) 100%);
  box-shadow: 0 18px 50px rgba(249,115,22,.22);
  border: 1px solid rgba(255,255,255,.55);
  backdrop-filter: blur(10px);
  transform: scale(.96);
  transition: .18s ease;
}

.work-play::after{
  content:"▶";
  position:absolute;
  font-size: 1.55rem;
  color: #111827;
  transform: translateX(2px);
  text-shadow: 0 10px 22px rgba(0,0,0,.10);
}

.work-card[data-type="youtube"] .work-play{
  opacity: 1;
}

.work-card:not([data-type="youtube"]) .work-play{
  opacity: 0;
}

.work-card:hover .work-play::before{
  transform: scale(1.03);
}

/* subtle shine */
.work-media::after{
  content:"";
  position:absolute;
  inset:-30% -40%;
  background: linear-gradient(120deg, rgba(255,255,255,0) 35%, rgba(255,255,255,.25) 50%, rgba(255,255,255,0) 65%);
  transform: translateX(-40%) rotate(6deg);
  opacity: .0;
  transition: .35s ease;
}

.work-card:hover .work-media::after{
  opacity: .9;
  transform: translateX(40%) rotate(6deg);
}

/* placeholder */
.work-placeholder{
  width:100%;
  height:100%;
  display:flex;
  align-items:center;
  justify-content:center;
  padding: 1rem;
}

.work-ph-inner{
  width:100%;
  border-radius:16px;
  border:1px dashed #d1d5db;
  background: #fff;
  padding: 1rem 1rem 1.1rem;
  text-align:center;
}

.work-ph-badge{
  display:inline-flex;
  padding:.35rem .7rem;
  border-radius:999px;
  background:#fffbeb;
  border:1px solid #fde68a;
  color:#92400e;
  font-size:.82rem;
}

.work-ph-title{
  margin-top:.7rem;
  font-weight:700;
  color:#111827;
}

/* body */
.work-body{
  padding: 1rem 1.1rem 1.15rem;
  display:flex;
  flex-direction:column;
  gap:.55rem;
}

.work-title{
  margin:0;
  font-size: 1.02rem;
  line-height:1.3;
}

.work-title a{
  color:#111827;
}

.work-title a:hover{
  color:#eab308;
}

.work-desc{
  margin:0;
  color:#4b5563;
  font-size:.92rem;
  line-height:1.7;
  display:-webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow:hidden;
}

.work-tags{
  display:flex;
  flex-wrap:wrap;
  gap:.4rem;
  margin-top:.15rem;
}

.tag{
  font-size:.78rem;
  padding:.22rem .55rem;
  border-radius:999px;
  background:#f9fafb;
  border:1px solid #e5e7eb;
  color:#374151;
}

/* actions */
.work-actions{
  display:flex;
  gap:.6rem;
  flex-wrap:wrap;
  margin-top:.35rem;
}

/* biar tombol di card halus */
.work-actions .btn{
  min-height: 40px;
}

/* footer */
.karya-foot{
  margin-top: 1.6rem;
  color:#6b7280;
  line-height:1.8;
  max-width: 680px;
}

/* ===== Home: section bawah kartu jam ===== */
.home-after-clock{
  width: 100%;
  max-width: 1140px;
  margin: 18px auto 0;
  padding: 0 16px 24px;
}

.home-grid-3{
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 16px;
}
.home-block{
  background: #ffffff;
  border: 1px solid rgba(15,23,42,0.08);
  border-radius: 18px;
  padding: 16px;
  box-shadow: 0 10px 30px rgba(2,6,23,0.05);
}

.home-block-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.home-block-title{
  margin:0;
  font-size: 16px;
  letter-spacing: 0.2px;
}

.home-block-link{
  font-size: 13px;
  text-decoration: none;
  color: rgba(2,6,23,0.75);
  border-bottom: 1px dashed rgba(2,6,23,0.25);
}

.mini-cards{
  display: grid;
  gap: 10px;
}

.mini-card{
  display:block;
  text-decoration:none;
  color: inherit;
  padding: 12px 12px;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(246,201,75,0.10), rgba(246,201,75,0.00));
  border: 1px solid rgba(246,201,75,0.22);
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}

.mini-card:hover{
  transform: translateY(-2px);
  box-shadow: 0 14px 40px rgba(2,6,23,0.10);
  border-color: rgba(246,201,75,0.35);
}

.mini-card-title{
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 4px;
}

.mini-card-desc{
  font-size: 13px;
  line-height: 1.45;
  color: rgba(2,6,23,0.72);
  margin-bottom: 8px;
}

.mini-card-cta{
  font-size: 13px;
  font-weight: 700;
  color: rgba(2,6,23,0.90);
}

.mini-card-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 10px;
  margin-bottom: 4px;
}

.pill{
  font-size: 11px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(246,201,75,0.20);
  border: 1px solid rgba(246,201,75,0.35);
  color: rgba(2,6,23,0.82);
}
@media (max-width: 1024px){
  .home-grid-3{ grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px){
  .home-grid-3{ grid-template-columns: 1fr; }
}

/* Responsive HP */
@media (max-width: 860px){
  .page-home .hero{ padding-top: 34px; padding-bottom: 12px; }
  .page-home .hero-intro h1{ font-size: clamp(28px, 7vw, 40px); }
  .page-home .hero-sub{ font-size: 15px; }
}

/* ===== HERO yang lebih “hidup” (ala SBMI tapi versi Ali) ===== */
.page-home .hero{
  position: relative;
  padding-top: 48px;
  padding-bottom: 14px;
}

/* blob halus biar nggak kosong */
.page-home .hero::before{
  content:"";
  position:absolute;
  left:50%;
  top:-120px;
  transform:translateX(-50%);
  width:min(980px, 92vw);
  height:320px;
  background:
    radial-gradient(circle at 30% 40%, rgba(246,201,75,0.22), transparent 55%),
    radial-gradient(circle at 70% 35%, rgba(2,6,23,0.08), transparent 55%);
  filter: blur(8px);
  pointer-events:none;
  z-index:0;
}

.page-home .hero-intro{
  position: relative;
  z-index: 1;
  max-width: 860px;
  margin: 0 auto;
  text-align: center;
}

/* pill atas */
.hero-badge{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(246,201,75,0.18);
  border: 1px solid rgba(246,201,75,0.35);
  color: rgba(2,6,23,0.80);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .2px;
  margin-bottom: 16px;
}

/* judul 2 tone */
.hero-title{
  font-size: clamp(34px, 4vw, 58px);
  line-height: 1.06;
  margin: 0 0 10px;
  letter-spacing: -0.6px;
  color: #0f172a;
}

.hero-accent{
  color: #b45309; /* amber gelap biar manis */
  position: relative;
  padding: 0 6px;
}

/* underline “hidup” */
.hero-accent::after{
  content:"";
  position:absolute;
  left: 6px;
  right: 6px;
  bottom: 6px;
  height: 10px;
  border-radius: 999px;
  background: rgba(246,201,75,0.55);
  z-index: -1;
}

/* highlight kata penting */
.page-home .hero-sub .hl{
  font-weight: 800;
  color: rgba(2,6,23,0.88);
}

/* rapetin jarak ke kartu jam */
.page-home .prayer-widget{ margin-top: 10px; }

@media (max-width: 860px){
  .page-home .hero{ padding-top: 32px; padding-bottom: 10px; }
  .hero-badge{ font-size: 12px; padding: 9px 14px; }
  .hero-title{ font-size: clamp(28px, 7vw, 40px); }
}

/* ===== HERO: hidup ala SBMI (versi kuning elegan) ===== */
.page-home .hero{
  position: relative;
}

/* glow lembut biar area atas tidak kosong */
.page-home .hero::before{
  content:"";
  position:absolute;
  left:50%;
  top:-120px;
  transform:translateX(-50%);
  width:min(980px, 92vw);
  height:320px;
  background:
    radial-gradient(circle at 30% 40%, rgba(246,201,75,0.22), transparent 55%),
    radial-gradient(circle at 70% 35%, rgba(2,6,23,0.08), transparent 55%);
  filter: blur(10px);
  pointer-events:none;
  z-index:0;
}

.page-home .hero-intro{
  position: relative;
  z-index: 1;
  text-align: center; /* biar terasa “hero” */
}

/* pill seperti contoh SBMI */
.hero-badge{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(246,201,75,0.16);
  border: 1px solid rgba(246,201,75,0.35);
  color: rgba(2,6,23,0.80);
  font-weight: 800;
  font-size: 13px;
  letter-spacing: .2px;
  margin: 0 auto 14px;
}

/* judul 2 tone */
.hero-title{
  margin: 0 0 10px;
  color: #0f172a;
  letter-spacing: -0.6px;
}

/* accent “manis” */
.hero-accent{
  color: #b45309;
  position: relative;
  padding: 0 6px;
  white-space: nowrap;
}

.hero-accent::after{
  content:"";
  position:absolute;
  left: 6px;
  right: 6px;
  bottom: 6px;
  height: 10px;
  border-radius: 999px;
  background: rgba(246,201,75,0.55);
  z-index: -1;
}

/* highlight kata kunci */
.page-home .hero-sub .hl{
  font-weight: 800;
  color: rgba(2,6,23,0.88);
}

/* responsive */
@media (max-width: 860px){
  .hero-badge{
    font-size: 12px;
    padding: 9px 14px;
  }
  .hero-accent{ white-space: normal; }
}

/* ===== FIX HP: biar hero nggak nempel tepian (iPhone safe-area) ===== */
@media (max-width: 520px){
  .page-home .hero-intro{
    padding-left:  calc(16px + env(safe-area-inset-left));
    padding-right: calc(16px + env(safe-area-inset-right));
  }

  /* kalau judul masih terasa mepet, kasih sedikit ruang ekstra */
  .page-home .hero-title{
    padding: 0 2px;
    letter-spacing: -0.3px; /* sedikit lebih ramah di layar kecil */
  }

  /* badge jangan sampai mepet juga */
  .hero-badge{
    max-width: 100%;
    box-sizing: border-box;
  }
}

/* jaga-jaga kalau ada elemen yang bikin overflow horizontal */
html, body{ overflow-x: hidden; }

/* ===== Header: jangan nempel pinggir ===== */
.site-header .header-inner{
  padding-left: 24px;
  padding-right: 24px;
}

/* HP (plus safe-area iPhone) */
@media (max-width: 520px){
  .site-header .header-inner{
    padding-left:  calc(16px + env(safe-area-inset-left));
    padding-right: calc(16px + env(safe-area-inset-right));
  }
}

/* ===== Tentang: hapus warna kuning di belakang foto ===== */
.page-about .about-photo{
  background: transparent !important;
  box-shadow: none !important;
  border: none !important;
}

.page-about .about-photo::before,
.page-about .about-photo::after{
  content: none !important;
  background: transparent !important;
  box-shadow: none !important;
}

.page-about .about-photo img{
  background: transparent !important;
  border: none !important;
  outline: none !important;
}

/* ===== Kontak: lebih hidup dan rapi ===== */
.page-contact .contact-wrap{
  max-width: 1040px;
}

.contact-head{
  text-align: center;
  padding: 10px 0 18px;
}

.contact-title{
  margin: 0 0 8px;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.05;
  letter-spacing: -0.5px;
}

.contact-sub{
  margin: 0 auto;
  max-width: 760px;
  font-size: 16px;
  line-height: 1.65;
  color: rgba(2,6,23,0.75);
}

.contact-quick{
  display:flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: 14px;
}

.qbtn{
  text-decoration: none;
  color: rgba(2,6,23,0.86);
  background: rgba(246,201,75,0.16);
  border: 1px solid rgba(246,201,75,0.30);
  padding: 10px 14px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 13px;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.qbtn:hover{
  transform: translateY(-1px);
  box-shadow: 0 14px 34px rgba(2,6,23,0.10);
  border-color: rgba(246,201,75,0.45);
}

.contact-grid{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 14px;
}

.contact-card{
  display:block;
  text-decoration:none;
  color: inherit;
  background: #fff;
  border: 1px solid rgba(15,23,42,0.08);
  border-radius: 18px;
  padding: 16px;
  box-shadow: 0 10px 28px rgba(2,6,23,0.05);
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.contact-card:hover{
  transform: translateY(-2px);
  box-shadow: 0 18px 42px rgba(2,6,23,0.11);
  border-color: rgba(246,201,75,0.35);
}

.cc-top{
  display:flex;
  gap: 12px;
  align-items:flex-start;
}

.cc-icon{
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display:flex;
  align-items:center;
  justify-content:center;
  background: rgba(246,201,75,0.18);
  border: 1px solid rgba(246,201,75,0.35);
  font-size: 18px;
  flex: 0 0 44px;
}

.cc-title{
  font-weight: 900;
  font-size: 15px;
  margin-bottom: 2px;
}

.cc-desc{
  font-size: 13px;
  line-height: 1.45;
  color: rgba(2,6,23,0.70);
}

.cc-value{
  margin-top: 12px;
  font-weight: 800;
  font-size: 13px;
  color: rgba(2,6,23,0.82);
  padding-top: 10px;
  border-top: 1px dashed rgba(2,6,23,0.14);
}

.cc-action{
  margin-top: 10px;
}

.cc-btn{
  display:inline-block;
  font-weight: 900;
  font-size: 13px;
  color: rgba(2,6,23,0.90);
}

.contact-note{
  margin-top: 16px;
}

.note-card{
  background: linear-gradient(180deg, rgba(246,201,75,0.14), rgba(246,201,75,0.02));
  border: 1px solid rgba(246,201,75,0.28);
  border-radius: 18px;
  padding: 16px;
}

.note-title{
  font-weight: 900;
  margin-bottom: 6px;
}

.note-text{
  color: rgba(2,6,23,0.76);
  line-height: 1.65;
  font-size: 14px;
}

/* responsive */
@media (max-width: 1024px){
  .contact-grid{ grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px){
  .contact-grid{ grid-template-columns: 1fr; }
}
.engagement-stats button {
  margin: 5px;
  padding: 10px;
  background-color: #f0f0f0;
  border: 1px solid #ccc;
  border-radius: 4px;
  cursor: pointer;
}

.engagement-stats button:hover {
  background-color: #e0e0e0;
}

.comment-button {
  background-color: #d9f9d9;
}

.share-button {
  background-color: #ffeb3b;
}

.comment-textarea {
  width: 100%;
  padding: 10px;
  margin-top: 10px;
}
.engage-mini {
  display: flex;
  justify-content: flex-start;
  margin-top: 15px;
  padding-top: 10px;
  border-top: 1px solid #ddd;
}

.engage-mini button {
  margin-right: 10px;
  background-color: #f0f0f0;
  padding: 8px 12px;
  border: 1px solid #ccc;
  border-radius: 4px;
  cursor: pointer;
}

.engage-mini .engage-stat {
  margin-right: 10px;
  display: flex;
  align-items: center;
}

.engage-mini .engage-stat .engage-ico {
  margin-right: 5px;
}

.engage-bar {
  display: flex;
  justify-content: flex-start;
  margin-top: 20px;
}

.engage-bar button,
.engage-bar .engage-stat {
  margin-right: 15px;
}

.engage-bar .engage-stat {
  display: inline-flex;
  align-items: center;
}

.engage-bar .engage-ico {
  margin-right: 5px;
}

.comment-box {
  margin-top: 30px;
}

.comment-title {
  font-size: 1.5em;
  margin-bottom: 10px;
}

.comment-sub {
  font-size: 0.9em;
  margin-bottom: 20px;
}

.comment-form .comment-row {
  margin-bottom: 15px;
}

.comment-input,
.comment-textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
}

.comment-btn {
  padding: 10px 15px;
  background-color: #007bff;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.comment-btn:hover {
  background-color: #0056b3;
}

.engage-bar {
  display: flex;
  justify-content: flex-start;
  margin-top: 20px;
}

.engage-bar button,
.engage-bar .engage-stat {
  margin-right: 15px;
}

.engage-bar .engage-stat {
  display: inline-flex;
  align-items: center;
}

.engage-bar .engage-ico {
  margin-right: 5px;
}

.comment-box {
  margin-top: 30px;
}

.comment-title {
  font-size: 1.5em;
  margin-bottom: 10px;
}

.comment-sub {
  font-size: 0.9em;
  margin-bottom: 20px;
}

.comment-form .comment-row {
  margin-bottom: 15px;
}

.comment-input,
.comment-textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
}

.comment-btn {
  padding: 10px 15px;
  background-color: #007bff;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.comment-btn:hover {
  background-color: #0056b3;
}

.engage-btn {
  background-color: #4CAF50;  /* Tombol hijau */
  color: white;
  border: none;
  padding: 10px 20px;
  cursor: pointer;
  font-size: 16px;
  border-radius: 5px;
  transition: background-color 0.3s ease;
}

.engage-btn:hover {
  background-color: #45a049;
}

.engage-ico {
  margin-right: 8px;
}
/* ====== HOME: Prayer Widget — Perbesar Jam ====== */
.prayer-widget .pw-clock{
  font-size: clamp(52px, 6vw, 78px);
  line-height: 1.02;
  letter-spacing: 1px;
}

.prayer-widget .pw-left{
  padding-right: 8px; /* biar napas, nggak mepet */
}

/* opsional: kalau di HP kepanjangan, kecilkan sedikit */
@media (max-width: 480px){
  .prayer-widget .pw-clock{
    font-size: clamp(44px, 10vw, 58px);
    letter-spacing: .5px;
  }
}
/* ====== HOME: Prayer Widget — Jam ke Tengah ====== */
.prayer-widget .pw-left{
  display: flex;
  flex-direction: column;
  align-items: center;     /* center horizontal */
  justify-content: center; /* center vertical */
  text-align: center;
  min-height: 240px;       /* biar tengahnya stabil */
}

.prayer-widget .pw-left .pw-label,
.prayer-widget .pw-left .pw-location,
.prayer-widget .pw-left .pw-hijri{
  text-align: center;
}

.prayer-widget .pw-clock{
  margin: 10px 0 8px;
}

/* kalau di mobile jangan terlalu tinggi */
@media (max-width: 640px){
  .prayer-widget .pw-left{ min-height: 200px; }
}
/* sembunyikan tulisan "Dari waktu ..." */
#pwCurrentInfo{ display:none !important; }
/* =========================
   BACKGROUND SYSTEM (AMK)
   ========================= */

:root{
  --bg-cream: #fffaf0;
  --bg-gold:  rgba(244,197,66,.22);
  --bg-mist:  rgba(148,163,184,.18);
  --ink:      #0f172a;
}

/* Latar global */
body{
  color: var(--ink);
  background:
    radial-gradient(900px 480px at 20% 10%, var(--bg-gold), transparent 60%),
    radial-gradient(820px 520px at 85% 20%, rgba(255,255,255,.9), transparent 60%),
    radial-gradient(900px 600px at 65% 90%, var(--bg-mist), transparent 65%),
    linear-gradient(180deg, var(--bg-cream), #ffffff 55%, #f8fafc);
  background-attachment: fixed;
}

/* Grain halus (ramai tapi sepi) */
body::before{
  content:"";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: .08;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='.35'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
}

/* Pastikan konten di atas layer grain */
header, main, footer, .page, .container{
  position: relative;
  z-index: 1;
}

/* Kartu / section biar nyatu dengan latar */
.home-block, .work-card, .mini-card{
  background: rgba(255,255,255,.78);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(15,23,42,.08);
  box-shadow: 0 18px 45px rgba(2,6,23,.08);
}

/* Sentuhan “glow” lembut pada hero */
.hero{
  position: relative;
}
.hero::after{
  content:"";
  position:absolute;
  inset:-30px -10px -10px -10px;
  background: radial-gradient(520px 260px at 50% 30%, rgba(244,197,66,.28), transparent 70%);
  pointer-events:none;
  z-index:-1;
  filter: blur(2px);
}

#pwClock{
  color: #F4C542;
  transition: transform .18s ease, filter .18s ease;
}
#pwClock.tick{
  transform: translateY(-1px);
  filter: drop-shadow(0 10px 18px rgba(244,197,66,.22));
}

/* Naikkan badge (Pelayan Tamu Allah • Penulis • Pembuat Aplikasi) */
.page-home .hero{
  padding-top: 26px; /* kecilin jarak atas hero */
}

.page-home .hero-badge{
  margin-top: -26px; /* dorong badge lebih naik */
}

/* Mobile: jangan terlalu mepet */
@media (max-width: 640px){
  .page-home .hero-badge{
    margin-top: -10px;
    margin-bottom: 12px;
  }
}

/* ====== THEME TOKENS ====== */
:root{
  --accent: #F4C542;          /* default */
  --accent-2: #C58B1D;
  --accent-glow: rgba(244,197,66,.30);
}

html[data-theme="gold"]{
  --accent:#F4C542; --accent-2:#C58B1D; --accent-glow: rgba(244,197,66,.30);
}
html[data-theme="emerald"]{
  --accent:#22C55E; --accent-2:#16A34A; --accent-glow: rgba(34,197,94,.28);
}
html[data-theme="ocean"]{
  --accent:#38BDF8; --accent-2:#0EA5E9; --accent-glow: rgba(56,189,248,.26);
}
html[data-theme="rose"]{
  --accent:#FB7185; --accent-2:#F43F5E; --accent-glow: rgba(251,113,133,.26);
}

/* contoh pemakaian: kamu bisa arahkan elemen penting ke --accent */
.btn.btn-primary{ 
  background: linear-gradient(180deg, var(--accent), var(--accent-2));
  box-shadow: 0 14px 34px var(--accent-glow);
}
.hero-accent{ color: var(--accent-2); }

/* ====== NAV THEME UI ====== */
.nav-divider{
  height: 1px;
  background: rgba(2,6,23,.08);
  margin: 10px 0;
}
.nav-theme{
  display:flex;
  align-items:center;
  gap:8px;
  flex-wrap:wrap;
}
.nav-theme-label{
  font-size: 12px;
  opacity: .72;
  margin-right: 6px;
}
.theme-btn{
  border: 1px solid rgba(2,6,23,.14);
  background: #fff;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
  cursor: pointer;
}
.theme-btn.is-active{
  border-color: color-mix(in srgb, var(--accent) 65%, rgba(2,6,23,.18));
  box-shadow: 0 10px 24px var(--accent-glow);
  transform: translateY(-1px);
}

/* ====== THEME APPLY PATCH (tempel paling bawah styles.css) ====== */

/* aksen teks */
.hero-accent,
.hl b,
.hl strong {
  color: var(--accent-2) !important;
}

/* badge “Pelayan Tamu Allah …” */
.hero-badge{
  border-color: color-mix(in srgb, var(--accent) 35%, rgba(2,6,23,.10)) !important;
  background: color-mix(in srgb, var(--accent) 14%, #fff) !important;
  box-shadow: 0 18px 38px var(--accent-glow) !important;
}

/* chip filter aktif (karya) */
.chip.is-active{
  border-color: color-mix(in srgb, var(--accent) 55%, rgba(2,6,23,.14)) !important;
  background: color-mix(in srgb, var(--accent) 14%, #fff) !important;
  box-shadow: 0 18px 38px var(--accent-glow) !important;
}

/* pill label (misal: App/Web/Utama) */
.pill{
  border-color: color-mix(in srgb, var(--accent) 55%, rgba(2,6,23,.14)) !important;
  background: color-mix(in srgb, var(--accent) 12%, #fff) !important;
}

/* link hover biar “hidup” */
a:hover{
  color: var(--accent-2) !important;
}

/* ====== WIDGET SHALAT ====== */

/* jam besar */
.pw-clock{
  color: var(--accent) !important;
  text-shadow: 0 18px 50px var(--accent-glow) !important;
}

/* nama shalat berikutnya (Dzuhur) */
.pw-next-name{
  color: var(--accent) !important;
}

/* highlight waktu aktif di list (misal 12:24 yang dibuletin) */
.pw-times .is-active,
.pw-times .active,
.pw-times .pill-active,
.pw-times .time-pill{
  border-color: color-mix(in srgb, var(--accent) 55%, rgba(255,255,255,.18)) !important;
  background: color-mix(in srgb, var(--accent) 18%, rgba(2,6,23,.10)) !important;
  box-shadow: 0 18px 38px var(--accent-glow) !important;
}

/* garis pemisah di widget */
.pw-card hr,
.pw-divider{
  border-color: color-mix(in srgb, var(--accent) 22%, rgba(255,255,255,.10)) !important;
}

/* =========================================================
   PRAYER WIDGET — SUPER COMPACT (Override paling bawah)
   ========================================================= */

.prayer-widget{
  margin-top: 14px;
}

/* Kartu utama: lebih sempit + padding lebih kecil */
.prayer-widget .pw-card{
  max-width: 820px;          /* lebih rapet dari 980 */
  margin: 0 auto;
  padding: 14px 14px;        /* rapetin dalam kartu */

  display: grid;
  grid-template-columns: 1.08fr .92fr; /* kanan lebih padat */
  gap: 14px;                 /* rapetin jarak kolom */
  align-items: start;
}

/* Rapetin ruang atas-bawah komponen */
.prayer-widget .pw-label{ margin: 0 0 4px; }
.prayer-widget .pw-location{ margin-top: 4px; }
.prayer-widget .pw-hijri{ margin-top: 2px; }

.prayer-widget .pw-next-name{ margin: 0; }
.prayer-widget .pw-next-time{ margin: 2px 0 0; }
.prayer-widget .pw-countdown{ margin-top: 3px; }
.prayer-widget .pw-current{ margin-top: 4px; }

/* Jam: sedikit diperkecil dan dirapikan jaraknya */
.prayer-widget .pw-clock{
  letter-spacing: .3px;
  margin-top: 2px;
}

/* List jadwal: makin rapet */
.prayer-widget #pwTimes{
  margin-top: 8px;
  padding-top: 8px;
  display: grid;
  gap: 5px;
  border-top: 1px solid rgba(255,255,255,.10);
}

.prayer-widget #pwTimes .pw-row{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap: 10px;
  font-size: 14.6px;         /* lebih kecil */
  line-height: 1.1;
}

.prayer-widget #pwTimes .pw-name{ opacity: .84; }
.prayer-widget #pwTimes .pw-time{
  font-weight: 700;
  letter-spacing: .1px;
}

.prayer-widget #pwTimes .pw-time.is-next{
  padding: 2px 7px;           /* badge next lebih tipis */
  border-radius: 999px;
}

/* Metode perhitungan: ikut sempit */
.prayer-widget .pw-method{
  max-width: 820px;
  margin: 8px auto 0;
}

/* Select metode: rapetin tinggi */
.prayer-widget .pw-method select{
  padding: 6px 10px;
  border-radius: 10px;
}

/* Tablet ke bawah: satu kolom + lebih rapet */
@media (max-width: 900px){
  .prayer-widget .pw-card{
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 12px 12px;
    max-width: 680px;
  }
  .prayer-widget .pw-method{ max-width: 680px; }
}

/* HP: full width + super rapet */
@media (max-width: 480px){
  .prayer-widget .pw-card{
    max-width: 100%;
    padding: 11px 11px;
    gap: 10px;
  }
  .prayer-widget .pw-method{
    max-width: 100%;
    margin-top: 7px;
  }
  .prayer-widget #pwTimes .pw-row{
    font-size: 14.2px;
  }
}
