:root {
  --p1: #F97316;
  --p2: #EA580C;
  --p3: #C2410C;
  --soft: #FFEDD5;
  --soft2: #FFF3E6;
  --gold: #FBBF24;
  --gold-dark: #B45309;
  --emerald: #059669;
  --emerald-soft: #D1FAE5;
  --ink: #0F172A;
  --ink-soft: #1E293B;
  --bs-primary: var(--p1);
  --bs-primary-rgb: 249, 115, 22;
  --bs-primary-dark: var(--p3);
  --bs-emerald: var(--emerald);
  --bs-dark: var(--ink);
  --bs-body-font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  --radius: 20px;
  --radius-sm: 12px;
  --shadow-card: 0 6px 24px rgba(30, 41, 59, .07);
  --shadow-hover: 0 18px 44px rgba(249, 115, 22, .22);
  --shadow-glow: 0 0 0 4px rgba(249, 115, 22, .16);
  --bg-body: #FFF8F0;
  --bg-card: #fff;
  --surface-card: #fff;
  --bg-soft-card: #F8FAFC;
  --line: #EEE2D5;
  --text-body: #334155;
  --text-muted: #64748B;
  --text-head: #1E293B;
}



body {
  background: var(--bg-body);
  background-image:
    radial-gradient(1100px 480px at 85% -8%, rgba(249, 115, 22, .10), transparent 60%),
    radial-gradient(900px 420px at -10% 30%, rgba(251, 191, 36, .08), transparent 55%);
  background-attachment: fixed;
  color: var(--text-body);
  font-family: 'Plus Jakarta Sans', Arial, 'Segoe UI', system-ui, sans-serif;
}
h1, h2, h3, h4, h5, h6 { text-rendering: optimizeLegibility; }

html { scroll-behavior: smooth; }

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg-body); }
::-webkit-scrollbar-thumb { background: linear-gradient(180deg, var(--p1), var(--p3)); border-radius: 8px; }

.text-primary { color: var(--bs-primary) !important; }
a { transition: color .2s; }

.btn { border-radius: 14px; font-weight: 600; }
.btn-primary {
  background: linear-gradient(135deg, var(--p1) 0%, var(--p2) 60%, var(--p3) 100%);
  border: none; position: relative; overflow: hidden;
  transition: transform .18s, box-shadow .18s, filter .18s;
  box-shadow: 0 8px 20px rgba(249, 115, 22, .30);
}
.btn-primary:hover, .btn-primary:focus {
  background: linear-gradient(135deg, var(--p1) 0%, var(--p2) 60%, var(--p3) 100%);
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(249, 115, 22, .40);
  filter: brightness(1.06);
}
.btn-primary::after {
  content: ''; position: absolute; top: 0; left: -80%;
  width: 50%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.45), transparent);
  transform: skewX(-20deg);
  transition: left .45s ease;
}
.btn-primary:hover::after { left: 130%; }
.btn-outline-primary {
  color: var(--bs-primary); border: 1.5px solid var(--bs-primary);
  transition: transform .18s, box-shadow .18s, background .18s, color .18s;
}
.btn-outline-primary:hover, .btn-outline-primary:focus {
  background: var(--bs-primary); border-color: var(--bs-primary); color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(249, 115, 22, .30);
}
.btn-light { border: none; }
.btn:focus-visible, .form-control:focus-visible, .form-select:focus-visible, a:focus-visible { outline: 3px solid rgba(249, 115, 22, .45); outline-offset: 2px; }

.bg-orange-gradient {
  background: linear-gradient(135deg, var(--p1) 0%, var(--p2) 55%, var(--p3) 100%);
}
.bg-soft-orange { background: var(--soft); }


.navbar-site {
  background: rgba(255, 255, 255, .82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: box-shadow .25s, padding .25s, background .25s;
}
@supports not (backdrop-filter: blur(1px)) {
  .navbar-site { background: rgba(255, 255, 255, .98); }
}






.navbar.navbar-scrolled { box-shadow: 0 8px 30px rgba(30, 41, 59, .10); }
.navbar .nav-link {
  font-weight: 600; color: var(--text-muted);
  border-radius: 10px; padding-inline: .85rem !important;
  position: relative;
  transition: color .18s, background .18s;
}
.navbar .nav-link:hover, .navbar .nav-link.active { color: var(--bs-primary); background: var(--soft); }


.navbar-brand { font-weight: 800; }
.navbar .brand-badge, .brand-badge {
  width: 46px; height: 46px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
}
.brand-badge { transition: transform .3s ease; }
.navbar-brand:hover .brand-badge { transform: rotate(-8deg) scale(1.08); }

.avatar {
  width: 42px; height: 42px; border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--p1);
  transition: transform .2s, box-shadow .2s;
}
a:hover .avatar { transform: scale(1.06); box-shadow: 0 0 0 4px rgba(249,115,22,.18); }
.avatar-lg { width: 120px; height: 120px; border: 4px solid var(--p1); }
.avatar-sm { width: 36px; height: 36px; border-width: 2px; }
.avatar-no-border { border: none !important; box-shadow: none !important; }
.avatar-circle { border-radius: 50%; width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 15px; flex-shrink: 0; }

.dropdown-menu {
  background: var(--surface-card); border: 1px solid var(--line);
  animation: dropDown .18s ease;
}

@keyframes dropDown { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.dropdown-item { color: var(--text-body); border-radius: 10px; margin: 2px 6px; }
.dropdown-item:hover, .dropdown-item:focus { background: var(--soft); color: var(--p3); }


/* ---------- HERO ---------- */
.hero {
  position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='%23ffffff' stroke-opacity='0.14'%3E%3Cpath d='M40 8l6 18 18 6-18 6-6 18-6-18-18-6 18-6z'/%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}
.hero .container { position: relative; z-index: 2; }
.hero-blob {
  position: absolute; border-radius: 50%;
  filter: blur(50px); opacity: .55; pointer-events: none;
  animation: blobMove 14s ease-in-out infinite alternate;
}
.hero-blob.b1 { width: 380px; height: 380px; top: -120px; right: -90px; background: rgba(255, 255, 255, .18); }
.hero-blob.b2 { width: 280px; height: 280px; bottom: -120px; left: -80px; background: rgba(255, 191, 36, .28); animation-delay: -4s; }
.hero-blob.b3 { width: 180px; height: 180px; top: 30%; left: 16%; background: rgba(255, 255, 255, .12); animation-delay: -8s; }
@keyframes blobMove {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(40px, -30px) scale(1.15); }
}
.hero-float {
  position: absolute; pointer-events: none; z-index: 1;
  font-size: 1.6rem; color: rgba(255,255,255,.55);
  animation: floatY 5s ease-in-out infinite;
}
.hero-float.f1 { top: 22%; left: 8%; animation-delay: .4s; }
.hero-float.f2 { top: 64%; right: 12%; font-size: 2.1rem; animation-delay: 1.6s; }
.hero-float.f3 { bottom: 16%; left: 42%; animation-delay: 2.8s; }
@keyframes floatY { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }

.hero-chip {
  display: inline-flex; align-items: center; gap: .5rem;
  background: rgba(255,255,255,.16);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,.25);
  color: #fff; font-weight: 700;
  padding: 6px 14px; border-radius: 999px; font-size: .8rem;
  letter-spacing: .3px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.2);
}
.glass-card {
  position: relative;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,.55);
  border-radius: 24px;
  box-shadow: 0 24px 60px rgba(15, 23, 42, .30);
  animation: glassFloat 6s ease-in-out infinite;
}

@keyframes glassFloat { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.glass-card .hero-shine {
  position: absolute; inset: 0; border-radius: 24px; overflow: hidden; pointer-events: none;
}
.glass-card .hero-shine::before {
  content: ''; position: absolute; top: -40%; left: -20%; width: 60%; height: 180%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.28), transparent);
  transform: rotate(18deg);
  animation: shineSweep 6s ease-in-out infinite;
}
@keyframes shineSweep { 0%, 55% { left: -60%; } 100% { left: 130%; } }

/* ---------- MARQUEE ---------- */
.marquee {
  overflow: hidden; white-space: nowrap;
  background: var(--ink);
  color: #FDE8D2;
  border-top: 2px solid var(--p1);
  border-bottom: 2px solid var(--p1);
  padding: .65rem 0;
  position: relative; z-index: 2;
}
.marquee-track {
  display: inline-block;
  animation: marqueeRoll 22s linear infinite;
  will-change: transform;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee span { margin: 0 1.6rem; font-weight: 600; letter-spacing: .4px; opacity: .92; }
.marquee .dot { color: var(--gold); }
@keyframes marqueeRoll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- CARD / SECTION ---------- */
.card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-card);
  box-shadow: var(--shadow-card);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s;
}
.card-hover:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(249, 115, 22, .35);
}
.img-card { width: 100%; border-radius: var(--radius) var(--radius) 0 0; object-fit: cover; }

.card h1, .card h2, .card h3, .card h4, .card h5, .card h6 {
  line-height: 1.4; margin: 0 0 .5rem;
}
.card .card-body > * + * { margin-top: .45rem; }
.card .chip { margin: 0 0 .6rem; }
.card p, .card .small, .card .text-muted { line-height: 1.65; margin-top: 0; }
.card .agenda-meta { margin-top: .4rem !important; }

.tilt-glare { position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .3s; background: radial-gradient(600px 300px at var(--gx,50%) var(--gy,50%), rgba(255,255,255,.22), transparent 60%); }
.tilt-wrap:hover .tilt-glare, [data-tilt]:hover .tilt-glare { opacity: 1; }


.section-title { display: flex; flex-direction: column; align-items: flex-start; gap: .85rem; }
.section-title h2 {
  position: relative;
  display: inline-block;
  font-weight: 800;
  margin-bottom: 0;
}
.section-title h2::after {
  content: ''; position: absolute; left: 0; bottom: -12px;
  width: 64px; height: 5px; border-radius: 99px;
  background: linear-gradient(90deg, var(--p1), var(--gold));
}
.kicker {
  display: inline-block; font-size: .74rem; font-weight: 800;
  letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--p1); margin: 0;
}
.kicker::before { content: '\2726 '; }

/* ---------- CHIP / STAT ---------- */
.chip {
  display: inline-flex; align-items: center; gap: .35rem;
  padding: 5px 12px; border-radius: 999px;
  font-size: .78rem; font-weight: 600;
  background: var(--soft); color: var(--p3);
}

.chip-green { background: var(--emerald-soft); color: var(--emerald); }


.stat-icon {
  width: 48px; height: 48px; border-radius: 14px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 1.25rem; flex-shrink: 0;
  background: var(--soft); color: var(--p3);
  transition: transform .25s ease;
}
.card:hover .stat-icon { transform: scale(1.1) rotate(-6deg); }
.stat-label { font-size: .72rem; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: .4px; }
.stat-number { font-size: 1.5rem; font-weight: 800; color: var(--text-head); line-height: 1.1; }

.feature-icon {
  width: 62px; height: 62px; border-radius: 18px;
  display: inline-flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--p1), var(--p3));
  color: #fff; box-shadow: 0 10px 24px rgba(249,115,22,.35);
  transition: transform .3s var(--ease-bounce, cubic-bezier(.34,1.56,.64,1));
}
.card:hover .feature-icon { transform: rotate(-8deg) scale(1.1); }

/* ---------- AGENDA ---------- */
.date-tile {
  background: linear-gradient(135deg, var(--p1), var(--p3));
  color: #fff; border-radius: 14px;
  flex: 0 0 auto;
  width: 60px; min-height: 64px;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  line-height: 1.15;
  position: relative; overflow: hidden;
  box-shadow: 0 8px 18px rgba(249,115,22,.35);
}
.date-tile::before {
  content: ''; position: absolute; width: 44px; height: 44px;
  right: -14px; top: -14px; border-radius: 50%;
  background: rgba(255,255,255,.18);
}
.hour-chip {
  display: inline-flex; align-items: center; gap: .35rem;
  font-size: .7rem; font-weight: 700; color: var(--p3);
  background: var(--soft); border-radius: 999px; padding: 4px 10px;
  line-height: 1;
}

.agenda-meta {
  display: inline-flex; align-items: center; gap: .35rem;
  font-size: .84rem; color: var(--text-muted);
}
.agenda-meta i { line-height: 1; }

/* ---------- GALERI ---------- */
figure.gallery-item { position: relative; overflow: hidden; margin: 0; }
.gallery-img { width: 100%; height: 230px; object-fit: cover; transition: transform .5s ease; }
.gallery-item:hover .gallery-img { transform: scale(1.07); }
.gallery-overlay {
  position: absolute; inset: 0;
  display: flex; align-items: flex-end;
  padding: 16px;
  background: linear-gradient(180deg, transparent 45%, rgba(15,23,42,.85));
  color: #fff; opacity: 0; transition: opacity .3s ease;
}
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-overlay .gl-meta { display: flex; gap: .5rem; align-items: center; }
.gallery-overlay small { opacity: .9; }
.gallery-img:hover { transform: scale(1.03); }

/* ---------- COMMENT ---------- */
.comment-box { background: var(--bg-soft-card); border: 1px solid var(--line); border-radius: 14px; }

.comment-avatar { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; box-shadow: 0 2px 6px rgba(15,23,42,.20); }

/* ---------- GALERI GRID ---------- */
.gal-post {
  position: relative; display: block; width: 100%; padding: 0; border: 0;
  border-radius: 16px; overflow: hidden; background: transparent; cursor: pointer;
}
.gal-post .gallery-img { height: auto; aspect-ratio: 1 / 1; }
.gal-missing-card {
  width: 100%; aspect-ratio: 1 / 1;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #FED7AA, #FDBA74);
  color: #B45309; font-size: 2.2rem;
}
.gal-post:hover .gallery-img { transform: scale(1.04); }
.gal-overlay {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center; gap: 6px;
  background: rgba(15, 23, 42, .38); color: #fff;
  font-size: .95rem; font-weight: 700; letter-spacing: .3px;
  opacity: 0; transition: opacity .2s ease;
}
.gal-post:hover .gal-overlay,
.gal-post:focus-visible .gal-overlay { opacity: 1; }
.gal-bubble { background: var(--bg-soft-card); border-radius: 12px; padding: 8px 10px; }

/* ===== LIGHTBOX SIDE-BY-SIDE ===== */
.gal-modal {
  position: fixed; inset: 0; z-index: 2100;
  background: rgba(15, 23, 42, .65);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  display: none; align-items: center; justify-content: center;
  padding: 16px;
  animation: lbFadeIn .3s ease;
}
.gal-modal.open { display: flex; }
@keyframes lbFadeIn { from { opacity: 0; } to { opacity: 1; } }

/* modal card */
.gal-card {
  position: relative; display: flex; flex-direction: row;
  width: min(920px, 100%); max-height: 90vh;
  background: #000; border-radius: 18px; overflow: hidden;
  box-shadow: 0 32px 80px rgba(0,0,0,.35);
  animation: galCardIn .32s cubic-bezier(.4,0,.2,1);
}
.gal-card.gal-fullscreen { width: 100vw; max-width: 100vw; max-height: 100vh; height: 100vh; border-radius: 0; }
@keyframes galCardIn { from { opacity: 0; transform: scale(.94) translateY(16px); } to { opacity: 1; transform: none; } }

/* ===== MEDIA AREA (kiri) ===== */
.gal-media-area {
  position: relative; flex: 1 1 0; min-width: 0;
  background: #0f172a;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.gal-card.gal-fullscreen .gal-media-area { flex: 1; }
[data-gal-media-container] {
  display: flex; align-items: center; justify-content: center;
  width: 100%; height: 100%; cursor: zoom-in;
  transition: opacity .25s ease, transform .25s ease;
}
[data-gal-media-container].gal-fade-out { opacity: 0; transform: scale(.97); }
[data-gal-media-container].gal-zoom {
  position: fixed; inset: 0; z-index: 2400;
  background: rgba(0,0,0,.97); cursor: zoom-out;
}
.gal-big {
  display: block; width: 100%; height: 100%; object-fit: contain;
  transition: opacity .25s ease, transform .25s ease;
}
[data-gal-media-container].gal-zoom .gal-big { width: 96vw; height: 96vh; max-width: 96vw; max-height: 96vh; }
.gal-big.gal-big-video { }
[data-gal-media-container].gal-zoom .gal-big.gal-big-video { width: 96vw; height: 96vh; max-width: 96vw; max-height: 96vh; }
.gal-missing {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  color: #64748b; text-align: center; padding: 40px;
}
.gal-missing i { font-size: 3rem; }
.gal-missing p { margin: 0; font-size: .95rem; }

/* close button — kiri atas media area */
.gal-close {
  position: absolute; top: 12px; left: 12px; z-index: 20;
  width: 36px; height: 36px; border-radius: 50%; border: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,.5); color: #fff; font-size: 1rem;
  backdrop-filter: blur(4px); transition: all .25s ease;
}
.gal-close:hover { background: rgba(0,0,0,.7); transform: scale(1.08); }

/* navigation arrows */
.gal-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 42px; height: 42px; border-radius: 50%; border: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.85); color: #1e293b; font-size: 1.2rem;
  box-shadow: 0 2px 10px rgba(0,0,0,.25); transition: all .25s ease;
  opacity: 0; pointer-events: none; z-index: 10;
}
.gal-card:hover .gal-nav { opacity: 1; pointer-events: auto; }
.gal-nav:hover { background: #fff; transform: translateY(-50%) scale(1.08); }
.gal-nav-prev { left: 14px; }
.gal-nav-next { right: 14px; }

/* media counter — kanan atas */
.gal-counter {
  position: absolute; top: 12px; right: 12px; z-index: 10;
  background: rgba(0,0,0,.55); color: #fff; border-radius: 20px;
  padding: 4px 14px; font-size: .78rem; font-weight: 600;
  backdrop-filter: blur(4px); letter-spacing: .3px;
}

/* thumbnail strip — bawah media area */
.gal-strip {
  position: absolute; bottom: 0; left: 0; right: 0; z-index: 10;
  display: flex; align-items: center; justify-content: center; gap: 5px;
  padding: 8px 12px;
  background: linear-gradient(transparent, rgba(0,0,0,.45));
}
.gal-strip:empty { display: none; }
.gal-strip-th {
  width: 42px; height: 42px; border-radius: 8px; object-fit: cover;
  border: 2px solid rgba(255,255,255,.4); cursor: pointer; opacity: .6;
  transition: all .2s ease; flex-shrink: 0;
}
.gal-strip-th.active { border-color: var(--p1); opacity: 1; transform: scale(1.08); }
.gal-strip-th:hover { opacity: 1; }
.gal-strip-th video { width: 100%; height: 100%; object-fit: cover; border-radius: 6px; }

/* media tools — kiri bawah */
.gal-media-tools {
  position: absolute; bottom: 12px; left: 12px; z-index: 10;
  display: flex; gap: 6px;
  opacity: 0; transition: opacity .3s ease;
}
.gal-card:hover .gal-media-tools { opacity: 1; }
.gal-tool-btn {
  width: 36px; height: 36px; border-radius: 50%; border: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,.5); color: #fff; font-size: .9rem;
  backdrop-filter: blur(4px); transition: all .25s ease;
  text-decoration: none; cursor: pointer;
}
.gal-tool-btn:hover { background: rgba(0,0,0,.7); transform: scale(1.08); color: #fff; }
.gal-tool-btn.gal-fs-active { background: var(--p1); }

/* ===== INFO PANEL (kanan) ===== */
.gal-info-panel {
  width: 360px; flex: 0 0 360px; min-height: 0;
  display: flex; flex-direction: column;
  background: #fff; border-left: 1px solid #e2e8f0;
}
.gal-info-head {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 16px; border-bottom: 1px solid #f1f5f9;
}
.gal-info-head .comment-avatar { width: 36px; height: 36px; border: 2px solid #e2e8f0; }
.gal-info-head strong { color: #1e293b; font-size: .88rem; }
.gal-info-head small { color: #64748b; font-size: .75rem; }
.gal-info-head .chip { background: #f1f5f9; color: #475569; font-size: .72rem; }
.gal-caption {
  padding: 12px 16px; font-size: .85rem; color: #334155;
  border-bottom: 1px solid #f1f5f9;
  white-space: pre-line; max-height: 100px; overflow-y: auto;
}
.gal-caption:empty { display: none; }

/* komentar list */
.gal-comments {
  flex: 1 1 auto; min-height: 0; overflow-y: auto;
  padding: 12px 16px;
  scrollbar-width: thin; scrollbar-color: #cbd5e1 transparent;
}
.gal-comments::-webkit-scrollbar { width: 4px; }
.gal-comments::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 4px; }
.gal-komen-item { display: flex; gap: 8px; margin-bottom: 10px; }
.gal-komen-item .comment-avatar { width: 30px; height: 30px; flex-shrink: 0; border-radius: 50%; }
.gal-bubble {
  flex: 1; min-width: 0;
  background: #f1f5f9; border-radius: 12px; padding: 8px 10px;
}
.gal-bubble-head {
  display: flex; justify-content: space-between; align-items: center; gap: 6px;
}
.gal-bubble-head strong { color: #1e293b; font-size: .8rem; }
.gal-bubble-head small { color: #94a3b8; font-size: .68rem; white-space: nowrap; }
.gal-bubble p { margin: 2px 0 0; font-size: .82rem; color: #334155; line-height: 1.5; word-break: break-word; }
.gal-bubble .btn-link.text-danger { color: #dc2626 !important; font-size: .68rem; }

/* form komentar */
.gal-form {
  display: flex; gap: 8px; align-items: flex-end;
  padding: 12px 16px; border-top: 1px solid #e2e8f0;
  background: #fff;
}
.gal-form textarea {
  resize: none; flex: 1 1 auto; min-height: 36px; max-height: 80px;
  background: #f1f5f9; border: 1px solid #e2e8f0;
  color: #1e293b; border-radius: 10px; padding: 7px 12px;
  font-size: .85rem; line-height: 1.4;
}
.gal-form textarea::placeholder { color: #94a3b8; }
.gal-form textarea:focus { background: #fff; border-color: var(--p1); outline: none; }
.gal-form [data-gal-kirim] {
  flex-shrink: 0;
  background: linear-gradient(135deg, var(--p1), var(--p3));
  border: 0; color: #fff; border-radius: 10px; padding: 7px 16px;
  font-size: .82rem; font-weight: 600; transition: transform .2s, box-shadow .2s, opacity .2s;
}
.gal-form [data-gal-kirim]:hover { transform: scale(1.04); box-shadow: 0 4px 14px rgba(249,115,22,.35); }
.gal-form [data-gal-kirim]:disabled { opacity: .55; pointer-events: none; }
.gal-form .gal-kirim-spin { display: none; }
.gal-form.loading [data-gal-kirim] { pointer-events: none; }
.gal-form.loading .gal-kirim-text { display: none; }
.gal-form.loading .gal-kirim-spin { display: inline-flex; }

/* comment delete confirm modal */
.gal-del-confirm {
  position: fixed; inset: 0; z-index: 2500;
  display: none; align-items: center; justify-content: center;
  background: rgba(0,0,0,.4); backdrop-filter: blur(3px);
}
.gal-del-confirm.show { display: flex; }
.gal-del-card {
  background: #fff; border-radius: 16px; padding: 24px;
  max-width: 340px; width: 90%; text-align: center;
  box-shadow: 0 24px 60px rgba(0,0,0,.2);
  animation: galCardIn .25s cubic-bezier(.4,0,.2,1);
}
.gal-del-card p { color: #475569; font-size: .9rem; margin-bottom: 16px; }
.gal-del-actions { display: flex; gap: 8px; justify-content: center; }
.gal-del-actions .btn { min-width: 100px; border-radius: 10px; font-weight: 600; font-size: .85rem; }

/* popup login prompt */
.gal-popup-bg {
  position: fixed; inset: 0; z-index: 2300;
  background: rgba(0, 0, 0, .4);
  display: none; align-items: center; justify-content: center; padding: 20px;
  backdrop-filter: blur(4px);
}
.gal-popup-bg.show { display: flex; }
.gal-popup-card {
  position: relative; width: min(360px, 94vw);
  background: #fff; border-radius: 20px; padding: 32px 28px 24px;
  text-align: center;
  box-shadow: 0 40px 100px rgba(0, 0, 0, .25);
  animation: galPopIn .25s cubic-bezier(.4,0,.2,1);
}
@keyframes galPopIn {
  from { opacity: 0; transform: scale(.9) translateY(12px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}
.gal-popup-close {
  position: absolute; top: 12px; right: 12px;
  width: 34px; height: 34px; border-radius: 50%; border: 0;
  display: flex; align-items: center; justify-content: center;
  background: #f1f5f9; color: #64748b; font-size: .95rem;
  transition: all .2s;
}
.gal-popup-close:hover { background: #e2e8f0; color: #1e293b; }
.gal-popup-icon {
  width: 56px; height: 56px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--p1), var(--p3)); color: #fff;
  font-size: 1.5rem; margin-bottom: 14px;
  box-shadow: 0 10px 30px rgba(249,115,22,.4);
}
.gal-popup-card h6 { color: #1e293b; }
.gal-popup-card p { color: #64748b; }
.gal-popup-card strong { color: #334155; }
.gal-popup-card .btn { border-radius: 12px; }

/* media badge on card */
.gal-badge-media {
  display: inline-flex; align-items: center; gap: 4px;
  background: rgba(255,255,255,.85); color: #1e293b; border-radius: 8px;
  padding: 3px 10px; font-size: .82rem; backdrop-filter: blur(4px);
  box-shadow: 0 2px 6px rgba(0,0,0,.1);
}

/* gallery video card */
.gallery-video { border-radius: 0; }

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .gal-card { flex-direction: column; border-radius: 16px 16px 0 0; max-height: 94vh; width: 100%; }
  .gal-card.gal-fullscreen { border-radius: 0; max-height: 100vh; height: 100vh; }
  .gal-media-area { flex: 0 0 auto; max-height: 50vh; }
  .gal-info-panel { width: 100%; flex: 1 1 auto; border-left: none; border-top: 1px solid #e2e8f0; }
  .gal-nav { width: 36px; height: 36px; font-size: 1rem; opacity: 1; pointer-events: auto; }
  .gal-nav-prev { left: 8px; }
  .gal-nav-next { right: 8px; }
  .gal-strip-th { width: 36px; height: 36px; }
  .gal-media-tools { opacity: 1; }
}
@media (max-width: 480px) {
  .gal-modal { padding: 0; align-items: flex-end; }
  .gal-card { max-height: 96vh; }
  .gal-media-area { max-height: 42vh; }
  .gal-nav { width: 44px; height: 44px; font-size: 1rem; }
  .gal-close { width: 44px; height: 44px; }
  .gal-strip-th { width: 38px; height: 38px; }
}

/* ---------- CALENDAR ---------- */
.calendar-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.cal-day {
  min-height: 84px; border-radius: 12px;
  background: var(--surface-card);
  border: 1px solid var(--line);
  padding: 6px; transition: .18s;
  box-shadow: 0 1px 2px rgba(30,41,59,.05);
}
.cal-day:hover { border-color: var(--p1); background: var(--soft); transform: translateY(-2px); }

.cal-day.today {
  background: linear-gradient(135deg, var(--p1), var(--p3));
  color: #fff; box-shadow: 0 8px 22px rgba(249,115,22,.45);
  animation: todayPop 2.4s ease-in-out infinite;
}

.cal-day.today .cal-num { color: #fff; background: rgba(255,255,255,.28); border-radius: 8px; padding: 0 5px; }
@keyframes todayPop { 0%,100% { transform: scale(1); } 50% { transform: scale(1.03); } }
.cal-num { font-size: .85rem; font-weight: 700; color: var(--text-body); }
.cal-day.libur .cal-num { color: #DC2626; }
.cal-day.today.libur .cal-num { color: #fff; }
.cal-label {
  display: block; font-size: .5rem; line-height: 1.15; font-weight: 700;
  color: #B91C1C; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 2px;
}

.cal-event {
  font-size: .62rem; font-weight: 700;
  background: linear-gradient(135deg, var(--p1), var(--p3)); color: #fff;
  border-radius: 6px; padding: 2px 6px; position: relative;
  margin-top: 3px; box-shadow: 0 1px 3px rgba(249,115,22,.3);
  transition: filter .18s, box-shadow .18s;
}
.cal-event-label { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cal-event:hover .cal-event-label { filter: brightness(1.1); }
.cal-event:hover { box-shadow: 0 4px 10px rgba(249,115,22,.4); }
.cal-day.today .cal-event { background: rgba(255,255,255,.25); box-shadow: none; }
.cal-pop {
  position: absolute; bottom: calc(100% + 10px); left: 50%;
  width: 15rem; max-width: 78vw;
  transform: translateX(-50%) translateY(6px);
  background: #fff; border: 1px solid var(--line); border-radius: 14px; overflow: hidden;
  box-shadow: 0 18px 45px rgba(15,23,42,.25);
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .18s ease, transform .18s ease, visibility .18s;
  z-index: 40; text-align: left; display: block;
}

.cal-event:hover .cal-pop,
.cal-event:focus-within .cal-pop { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.cal-pop-img { width: 100%; height: 110px; object-fit: cover; display: block; border-bottom: 1px solid var(--line); }
.cal-pop-body { display: block; padding: .7rem .8rem .8rem; }
.cal-pop-title { display: block; font-size: .85rem; color: #0F172A; }

.cal-pop-meta { display: flex; flex-direction: column; gap: 3px; margin-top: .35rem; font-size: .72rem; color: var(--text-muted); }
.cal-pop-desc { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; margin-top: .45rem; font-size: .76rem; color: var(--text-body); }

/* ---------- QURAN / AYAT ---------- */
.ayah-arabic {
  font-family: 'Scheherazade New', 'Amiri', serif;
  font-size: 1.9rem; line-height: 2.4; direction: rtl;
  color: var(--text-head);
}

.ayah-latin {
  color: var(--text-muted);
  font-size: .9rem;
  font-style: italic;
  padding-left: .75rem;
  border-left: 3px solid var(--p1);
}

.ayah-terjemah {
  color: var(--text-body);
  font-size: .95rem;
  background: var(--soft);
  padding: .75rem 1rem;
  border-radius: .5rem;
  margin-top: .75rem;
}

/* Mode Buku — lembaran continuous */
body.book-mode .ayah-latin,
body.book-mode .ayah-terjemah { display: none !important; }

body.book-mode .card {
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
    padding: .5rem 0 !important;
    text-align: center;
}

body.book-mode .card .d-flex:first-child { margin-bottom: .3rem; }

body.book-mode .chip {
    background: var(--p1) !important;
    color: #fff !important;
    font-size: .75rem;
    padding: .15rem .6rem;
}
.surah-item:hover .surah-num-badge { transform: rotate(-10deg) scale(1.15); }
.surah-num-badge {
  width: 40px; height: 40px; border-radius: 12px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--soft); color: var(--p3); font-weight: 800;
  transition: transform .25s var(--ease, cubic-bezier(.34,1.56,.64,1));
}




/* ---------- FORM ---------- */
.form-control, .form-select {
  border-radius: 12px; padding: .65rem .9rem;
  background: var(--surface-card); color: var(--text-body);
  border: 1px solid var(--line);
  transition: box-shadow .2s, border-color .2s;
}
.form-control::placeholder { color: var(--text-muted); opacity: .7; }
.form-control:focus, .form-select:focus {
  border-color: var(--p1);
  box-shadow: var(--shadow-glow);
  background: var(--surface-card); color: var(--text-body);
}
.form-label { color: var(--text-head); }
.input-group .auth-icon, .auth-icon {
  background: var(--soft); border: 1px solid #fed7aa; border-right: 0;
  border-radius: 12px 0 0 12px; color: var(--p3);
}

.auth-eye { border-radius: 0 12px 12px 0; border-left: 0; }
.auth-eye:hover { color: var(--bs-primary); }

/* ---------- FOOTER ---------- */
.footer {
  color: #CBD5E1;
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #1E293B 0%, #16203A 45%, #0F172A 100%);
}
.footer::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='%23ffffff' stroke-opacity='0.035'%3E%3Cpath d='M40 8l6.5 19.5 19.5 6.5-19.5 6.5L40 60l-6.5-19.5L14 34l19.5-6.5z'/%3E%3C/g%3E%3C/svg%3E");
}
.footer::after {
  content: ''; position: absolute; top: -60px; right: -40px; pointer-events: none;
  width: 260px; height: 260px; border-radius: 50%;
  background: radial-gradient(circle, rgba(249,115,22,.07), transparent 65%);
}
.footer .container { position: relative; }
.footer a { color: #E2E8F0; text-decoration: none; }
.footer a:hover { color: #FDBA74; }
.footer-title {
  color: #F8FAFC; font-weight: 700; font-size: .78rem;
  text-transform: uppercase; letter-spacing: 1.2px;
  padding-bottom: .6rem; margin-bottom: 1rem;
  border-bottom: 1px solid rgba(255,255,255,.08);
  position: relative;
}
.footer-title::after {
  content: ''; position: absolute; left: 0; bottom: -1px; width: 48px; height: 2px;
  background: linear-gradient(90deg, var(--p1), var(--gold));
  box-shadow: 0 0 12px rgba(251,191,36,.35);
}
.footer-tagline, .footer-desc { color: #94A3B8; }
.footer-desc { line-height: 1.8; }
.footer-link { display: inline-flex; align-items: center; gap: .45rem; color: #CBD5E1; transition: color .2s, transform .2s; }
.f-icon { width: 1em; height: 1em; fill: var(--gold); flex-shrink: 0; transition: transform .2s; }
.footer-link:hover { color: var(--p1); transform: translateX(4px); }
.footer-link:hover .f-icon { transform: rotate(-6deg) scale(1.12); }
.footer-contact { display: flex; gap: .6rem; align-items: center; }
.footer-contact .value { display: inline; color: #E2E8F0; line-height: 1.5; }
.footer-contact .value strong { color: var(--gold); font-weight: 600; margin-right: .4rem; }
.value-inline {
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  min-width: 0; max-width: 100%;
}
.cicon {
  width: 32px; height: 32px; border-radius: 12px; flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(249,115,22,.10);
  border: 1px solid rgba(251,191,36,.22);
  color: var(--gold); font-size: .85rem;
}
.social-circle {
  width: 44px; height: 44px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(249,115,22,.16), rgba(251,191,36,.08));
  border: 1px solid rgba(251,191,36,.22);
  color: #FDE8D2;
  transition: .25s var(--ease, cubic-bezier(.34,1.56,.64,1));
}
.social-circle:hover {
  background: linear-gradient(135deg, var(--p1), var(--p3));
  border-color: transparent; color: #fff !important;
  transform: translateY(-4px) rotate(6deg);
  box-shadow: 0 10px 22px rgba(249,115,22,.45);
}
.footer-menu-cols { column-count: 2; column-gap: 1.25rem; }
.footer-bottom {
  margin-top: 6.5rem;
  border-top: 1px solid rgba(255,255,255,.10);
  padding: 2rem 0;
  color: #94A3B8; font-size: .875rem;
  text-align: center;
}

/* ---------- AUTH ---------- */
.auth-hero {
  background: linear-gradient(135deg, var(--p1) 0%, var(--p3) 100%);
  border-radius: 1rem 1rem 0 0;
  padding: 2.2rem 1.5rem;
  position: relative;
  overflow: hidden;
}
.auth-hero::before {
  content: ''; position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='%23ffffff' stroke-opacity='0.12'%3E%3Cpath d='M40 8l6.5 19.5 19.5 6.5-19.5 6.5L40 60l-6.5-19.5L14 34l19.5-6.5z'/%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}
.auth-hero .hero-float { color: rgba(255,255,255,.25); }
.auth-card {
  border: 1px solid rgba(0,0,0,.05);
  border-radius: 0 0 1rem 1rem;
  box-shadow: 0 4px 24px rgba(0,0,0,.05);
  transition: box-shadow .3s;
}
.auth-card:focus-within {
  box-shadow: 0 8px 32px rgba(249,115,22,.1);
}
.auth-icon {
  background: var(--soft); border: 1.5px solid #E2E8F0; border-right: 0;
  border-radius: .75rem 0 0 .75rem; color: var(--p3);
  transition: border-color .25s;
}
.auth-input {
  border: 1.5px solid #E2E8F0;
  border-radius: 0 .75rem .75rem 0;
  padding: .6rem .9rem;
  transition: border-color .25s, box-shadow .25s;
}
.auth-input:focus {
  border-color: var(--p1);
  box-shadow: 0 0 0 3px rgba(249,115,22,.1);
  outline: none;
}
.auth-input:focus + .auth-icon,
.input-group:focus-within .auth-icon {
  border-color: var(--p1);
}
.auth-eye {
  border-radius: 0 .75rem .75rem 0;
  border: 1.5px solid #E2E8F0; border-left: 0;
  color: #94A3B8;
  transition: color .2s, border-color .25s;
}
.auth-eye:hover { color: var(--p1); }
.input-group:focus-within .auth-eye { border-color: var(--p1); }
.btn-auth {
  border-radius: .75rem;
  padding: .7rem;
  font-weight: 700;
  transition: transform .2s, box-shadow .2s;
}
.btn-auth:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(249,115,22,.3);
}
.btn-auth:active { transform: translateY(0); }

/* ---------- AUTH ANIMATIONS ---------- */
@keyframes authFadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.auth-animate {
  animation: authFadeUp .5s ease-out forwards;
}
.auth-animate-delay {
  animation: authFadeUp .5s ease-out .15s forwards;
  opacity: 0;
}
.auth-section-title {
  font-size: .82rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .04em;
  border-top: 1px solid #E2E8F0;
  padding-top: 1rem;
}
.auth-section-title i { color: var(--p1); }

/* ---------- BACK TO TOP ---------- */
.to-top {
  position: fixed; right: 22px; bottom: 26px; z-index: 1050;
  width: 46px; height: 46px; border-radius: 14px; border: none;
  background: linear-gradient(135deg, var(--p1), var(--p3));
  color: #fff; font-size: 1.1rem;
  box-shadow: 0 12px 26px rgba(249,115,22,.45);
  opacity: 0; visibility: hidden; transform: translateY(16px);
  transition: opacity .3s, transform .3s, visibility .3s;
}
.to-top.show { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { transform: translateY(-4px) scale(1.05); filter: brightness(1.08); }

/* ---------- NOTIF BADGE PULSE ---------- */
#notifBadge { animation: notifPulse 2s ease-in-out infinite; }
@keyframes notifPulse { 0%,100% { box-shadow: 0 0 0 0 rgba(220,38,38,.5); } 50% { box-shadow: 0 0 0 6px rgba(220,38,38,0); } }

/* ---------- REVEAL ---------- */
html.js .rev { opacity: 0; transform: translateY(26px); transition: opacity .6s ease, transform .6s cubic-bezier(.22,.61,.36,1); }
html.js .rev.rev-on { opacity: 1; transform: none; }
html.js .rev-scale { opacity: 0; transform: scale(.94); transition: opacity .6s ease, transform .6s cubic-bezier(.34,1.56,.64,1); }
html.js .rev-scale.rev-on { opacity: 1; transform: none; }
html.js .rev-left { opacity: 0; transform: translateX(-30px); transition: opacity .6s ease, transform .6s ease; }
html.js .rev-left.rev-on { opacity: 1; transform: none; }
html.js .rev-right { opacity: 0; transform: translateX(30px); transition: opacity .6s ease, transform .6s ease; }
html.js .rev-right.rev-on { opacity: 1; transform: none; }

/* ---------- MISC ---------- */
.text-head { color: var(--text-head) !important; }
.comment-bubble { background: #fff; border-radius: 12px; padding: .5rem; box-shadow: 0 1px 3px rgba(30,41,59,.06); }





.hr-grad { border: 0; height: 2px; background: linear-gradient(90deg, var(--p1), var(--gold), transparent); border-radius: 2px; opacity: 1; }










.cta-btn { transition: transform .2s, box-shadow .2s; }
.cta-btn:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(15,23,42,.25); }

.cta-badge {
  display: inline-block; background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.35); color: #fff;
  border-radius: 999px; padding: 6px 16px;
  font-size: .8rem; font-weight: 700; letter-spacing: .5px; margin-bottom: 14px;
}
.cta-circle { position: absolute; border-radius: 50%; background: rgba(255,255,255,.12); pointer-events: none; }
.cta-circle-1 { width: 180px; height: 180px; top: -70px; left: -40px; animation: blobMove 10s ease-in-out infinite alternate; }
.cta-circle-2 { width: 120px; height: 120px; bottom: -20px; right: 8%; animation: blobMove 12s ease-in-out infinite alternate-reverse; }
.cta-circle-3 { width: 70px; height: 70px; top: 14px; right: 26%; animation: blobMove 9s ease-in-out infinite alternate; }
.sidebar-card { top: 90px; }
.min-width-0 { min-width: 0; }
.kegiatan-dot { width: 12px; height: 12px; border-radius: 50%; }

/* ---------- ADMIN (tetap terang) ---------- */
.table-admin th { font-size: .8rem; text-transform: uppercase; letter-spacing: .4px; color: #94A3B8; }
.table-admin td { vertical-align: middle; }
body.admin-page .table > :not(caption) > * > * + * { border-left: 1px solid var(--line); }
body.admin-page .table thead th { border-bottom: 1px solid var(--line); }
.admin-sidebar .nav-link { color: #E2E8F0; border-radius: 12px; padding: .6rem .9rem; font-weight: 600; font-size: .875rem; }
.admin-sidebar .nav-link:hover, .admin-sidebar .nav-link.active { background: var(--p1); color: #fff; box-shadow: 0 6px 16px rgba(249, 115, 22, .22); }
.admin-sidebar .text-primary { color: var(--gold) !important; }
.admin-sidebar .avatar-sm { width: 42px; height: 42px; border-width: 2px; }
.admin-page .profile-card { overflow: hidden; }
.admin-page .profile-card .fw-bold { line-height: 1.35; }
.admin-page .profile-card small { line-height: 1.4; margin-top: 2px; }

/* ---------- ADMIN PANEL (halaman /admin) ---------- */
body.admin-page .navbar .container { max-width: 1440px; }
body.admin-page #navMain .d-flex.align-items-center { flex-wrap: nowrap !important; }
body.admin-page .navbar-brand { padding-block: .1rem; }
body.admin-page .navbar-brand small { white-space: nowrap; }
.avatar-toggle { line-height: 0; }
.avatar-toggle::after { display: none !important; }

/* ---------- ADMIN MOBILE DRAWER ---------- */
.admin-drawer { max-width: 280px; }
.admin-drawer .offcanvas-header { border-bottom: 1px solid rgba(255,255,255,.1); padding: 1rem 1.25rem; }
.admin-drawer .offcanvas-body { background: #1E293B; }
.admin-drawer .admin-sidebar { padding: 0 !important; }
.admin-drawer .admin-sidebar .nav-link { transition: background .2s, transform .1s; }
.admin-drawer .admin-sidebar .nav-link:active { transform: scale(.97); }
.admin-menu-toggle { width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; padding: 0; border-radius: 12px; }
.offcanvas { border-right: none; }

/* ---------- REDUCED MOTION ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 992px) {
  .navbar-site { background: var(--surface-card); }
  .hero-blob.b1 { width: 220px; height: 220px; }
}
@media (max-width: 768px) {
  body { background-attachment: scroll; }
  .ayah-arabic { font-size: 1.4rem; }
  .cal-day { min-height: 56px; }
  .cal-event { display: inline-flex; align-items: center; justify-content: center; min-width: 12px; min-height: 12px; padding: 0; font-size: 0; margin: 2px 1px 0 0; box-shadow: none; border-radius: 4px; }
  .cal-label { display: none; }
  .hero-blob { filter: blur(30px); }
  .to-top { right: 14px; bottom: 18px; }
  .footer-menu-cols { column-count: 1; }
  .gal-nav { width: 44px; height: 44px; font-size: 1.1rem; }
  .gal-close { width: 44px; height: 44px; }
  .gal-strip-th { width: 40px; height: 40px; }
  .gal-tool-btn { width: 44px; height: 44px; font-size: 1rem; }
}
@media (max-width: 576px) {
  .hero { padding-top: 2rem !important; padding-bottom: 2rem !important; }
  .stat-number { font-size: 1.3rem; }
}
@media (max-height: 500px) and (orientation: landscape) {
  .hero { min-height: auto !important; padding-top: 1.5rem !important; padding-bottom: 1.5rem !important; }
  .gal-media-area { max-height: 70vh; }
}
/* ---------- MODAL KONFIRMASI ---------- */
.bdi-modal {
  position: fixed; inset: 0; z-index: 3000;
  display: flex; align-items: center; justify-content: center;
  background: rgba(15, 23, 42, .55);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  padding: 1rem;
}
.bdi-modal-card {
  width: min(440px, 100%);
  background: var(--surface-card);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 1.75rem 1.75rem 1.5rem;
  box-shadow: 0 24px 70px rgba(2, 6, 23, .35);
  text-align: center;
  animation: dropIn .22s ease;
}
.bdi-modal-icon {
  width: 56px; height: 56px; margin: 0 auto 1rem;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  font-size: 1.5rem;
  color: var(--p1); background: rgba(249, 115, 22, .12);
}
.bdi-modal-icon.danger { color: #EF4444; background: rgba(239, 68, 68, .12); }
.bdi-modal-card h6 { font-weight: 800; color: var(--text-head); margin-bottom: .5rem; }
.bdi-modal-msg { color: var(--text-muted); font-size: .92rem; line-height: 1.6; margin-bottom: 1.4rem; }
.bdi-modal-actions { display: flex; gap: .6rem; justify-content: center; flex-wrap: wrap; }
.bdi-modal-actions .btn { min-width: 120px; border-radius: 12px; font-weight: 600; }
@keyframes dropIn { from { opacity: 0; transform: translateY(14px) scale(.96); } to { opacity: 1; transform: none; } }


/* ---------- CALENDAR: POLISH ---------- */
.cal-day.weekend .cal-num { color: #DC2626; }

/* ---------- KEGIATAN: SKELETON ---------- */
@keyframes spin { to { transform: rotate(360deg); } }
.spin { animation: spin .7s linear infinite; display: inline-block; }
.keg-skel-head { height: 18px; width: 260px; background: #e2e8f0; border-radius: 8px; margin-bottom: 12px; animation: skelPulse 1.4s ease-in-out infinite; }
.keg-skel-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.keg-skel-day { aspect-ratio: 1; background: #f1f5f9; border-radius: 8px; animation: skelPulse 1.4s ease-in-out infinite; }
.keg-skel-card { background: #fff; border-radius: 14px; overflow: hidden; box-shadow: 0 2px 12px rgba(0,0,0,.06); margin-bottom: 1rem; }
.keg-skel-img { width: 100%; height: 160px; background: #e2e8f0; animation: skelPulse 1.4s ease-in-out infinite; }
.keg-skel-text { height: 14px; background: #e2e8f0; border-radius: 6px; margin: 10px 14px 0; animation: skelPulse 1.4s ease-in-out infinite; }
.keg-skel-text.short { width: 60%; margin-bottom: 14px; }
@keyframes skelPulse { 0%, 100% { opacity: .55; } 50% { opacity: 1; } }

/* ---------- KEGIATAN: CARD ---------- */
.keg-card { border-radius: 14px; cursor: pointer; transition: transform .25s ease, box-shadow .25s ease; }
.keg-card:hover { transform: translateY(-4px); box-shadow: 0 12px 28px rgba(0,0,0,.1) !important; }
.keg-card:focus-visible { outline: 2px solid var(--p1); outline-offset: 2px; }
.keg-card-img { width: 100%; height: 170px; object-fit: cover; display: block; }
.keg-card-noimg { display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, var(--p1), var(--p3)); color: rgba(255,255,255,.6); }
.keg-date-badge { display: flex; flex-direction: column; align-items: center; min-width: 44px; padding: 4px 6px; background: var(--p1); color: #fff; border-radius: 10px; line-height: 1; flex-shrink: 0; }
.keg-date-day { font-size: 1.1rem; font-weight: 800; }
.keg-date-month { font-size: .6rem; text-transform: uppercase; opacity: .85; }

/* ---------- KEGIATAN: MODAL ---------- */
.keg-modal { display: none; position: fixed; inset: 0; z-index: 9999; align-items: center; justify-content: center; }
.keg-modal.open { display: flex; }
.keg-modal-backdrop { position: absolute; inset: 0; background: rgba(15, 23, 42, .55); backdrop-filter: blur(4px); }
.keg-modal-card { position: relative; background: #fff; border-radius: 18px; max-width: 560px; width: calc(100% - 32px); max-height: 85vh; overflow-y: auto; box-shadow: 0 24px 60px rgba(0,0,0,.2); animation: dropIn .3s ease; }
.keg-modal-card.loading { pointer-events: none; opacity: .6; }
.keg-modal-close { position: absolute; top: 12px; right: 12px; z-index: 2; width: 36px; height: 36px; border: none; border-radius: 50%; background: rgba(0,0,0,.08); color: #475569; font-size: 1rem; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: background .2s; }
.keg-modal-close:hover { background: rgba(0,0,0,.15); color: #1e293b; }
.keg-modal-poster { width: 100%; max-height: 260px; overflow: hidden; border-radius: 18px 18px 0 0; }
.keg-modal-poster img { width: 100%; height: 100%; object-fit: cover; display: block; }
.keg-modal-noimg { width: 100%; height: 140px; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, var(--p1), var(--p3)); color: rgba(255,255,255,.5); font-size: 3rem; border-radius: 18px 18px 0 0; }
.keg-modal-body { padding: 1.25rem 1.5rem 1.5rem; }
.keg-modal-desc { color: #475569; font-size: .92rem; line-height: 1.7; white-space: pre-line; }

@media (max-width: 576px) {
    .keg-modal-card { max-height: 90vh; border-radius: 14px; }
    .keg-modal-poster, .keg-modal-noimg { border-radius: 14px 14px 0 0; max-height: 200px; }
    .keg-modal-body { padding: 1rem; }
    .keg-card-img { height: 140px; }
}
