.darkmode-toggle .moon-icon {
      display: block;
      position: absolute;
      left: 50%;
      top: 50%;
      transform: translate(-50%, -50%) scale(0.7) rotate(40deg);
      opacity: 0;
      transition: transform 0.5s cubic-bezier(.5,1.5,.5,1), opacity 0.3s;
      will-change: transform, opacity;
      pointer-events: none;
    }
    .darkmode-toggle .moon-icon svg {
      width: 28px;
      height: 28px;
      display: block;
      filter: drop-shadow(0 2px 8px #ffd60044);
    }
    .darkmode-toggle.dark .moon-icon {
      opacity: 1;
      transform: translate(-50%, -50%) scale(1) rotate(0);
    }
    /* ===============================
       DARK MODE TOGGLE BUTTON
    ================================ */
    .darkmode-toggle {
      position: fixed;
      top: 22px;
      right: 22px;
      z-index: 2001;
      background: var(--abu-bg, #f5f7fa);
      border: none;
      border-radius: 50%;
      box-shadow: 0 2px 12px rgba(30,58,95,0.10);
      width: 48px;
      height: 48px;
      display: flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      transition: background 0.2s, box-shadow 0.2s;
      outline: none;
    }
    .darkmode-toggle:active {
      box-shadow: 0 4px 18px rgba(30,58,95,0.18);
    }
    .darkmode-toggle .sun-icon {
      display: block;
      transition: transform 0.5s cubic-bezier(.5,1.5,.5,1), opacity 0.3s;
      will-change: transform, opacity;
    }
    .darkmode-toggle .sun-icon svg {
      width: 32px;
      height: 32px;
      display: block;
      filter: drop-shadow(0 2px 8px #ffd60044);
    }
    .darkmode-toggle.dark .sun-icon {
      opacity: 0;
      transform: scale(0.7) rotate(-40deg);
    }

    /* ===============================
       DARK MODE
    ================================ */
    body.dark {
      background: linear-gradient(135deg, #23272f 0%, #181a20 100%) !important;
      color: #e6e6e6;
    }
    body.dark .section-card,
    body.dark .section-card-small,
    body.dark .main-warta-container {
    background: #23272f !important;
    color: #e6e6e6;
    border: 1px solid rgba(255,255,255,0.04);
    box-shadow:0 10px 30px rgba(0,0,0,0.35);}
    body.dark .section-card h3,
    body.dark .section-card h4,
    body.dark .section-header h3 {
      color: #ffd600;
    }
    body.dark .icon-badge {
      background: linear-gradient(135deg, #ffd600 60%, #ffb300 100%);
      color: #23272f;
      box-shadow: 0 2px 12px #ffd60033;
    }
    body.dark .footer {
      background: linear-gradient(135deg, #23272f, #181a20);
      color: #ffd600;
    }
    body.dark .gallery-slider img,
    body.dark #galleryActiveImg {
      background: #23272f;
      box-shadow: 0 2px 12px #000a;
    }
    body.dark .table-wrapper,
    body.dark .schedule-table th,
    body.dark .auto-table th {
      background: #23272f !important;
      color: #ffd600 !important;
    }
    body.dark .schedule-table td,
    body.dark .auto-table td {
      background: #23272f !important;
      color: #e6e6e6 !important;
    }
    body.dark .bottom-nav {
      background: #181a20;
      border-top: 1px solid #23272f;
    }
    body.dark .bottom-nav .nav-item {
      color: #ffd600;
    }
    body.dark .more-menu {
      background: #23272f;
      color: #ffd600;
    }
    body.dark .more-menu a {
      color: #ffd600;
    }
    body.dark .more-header {
      border-bottom: 1px solid #ffd60044;
    }
    body.dark .contact-item {
      background: #181a20;
      border-color: #23272f;
    }
    body.dark .contact-label {
      color: #ffd600;
    }
    .gallery-slider {
      position: relative;
      display: flex;
      align-items: center;
      justify-content: center;
      width: 100%;
      max-width: 420px;
      margin: 0 auto;
      min-height: 180px;
      padding: 0 12px;
      box-sizing: border-box;
    }

    .gallery-slider img,
    #galleryActiveImg {
      max-width: 100%;
      width: 100%;
      height: auto;
      border-radius: 16px;
      box-shadow: 0 2px 12px rgba(30,58,95,0.10);
      margin: 0 8px;
      object-fit: contain;
      background: #f8fafc;
      display: block;
    }
  .gallery-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.5);
    border: none;
    color: #444;
    font-size: 2rem;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 3;
    opacity: 0.5;
    transition: opacity 0.2s;
    box-shadow: 0 2px 8px #0001;
    display: none;
  }
  .gallery-nav-btn:active {
    opacity: 0.7;
  }
  .gallery-nav-btn:hover {
    opacity: 0.85;
  }
  .gallery-nav-prev {
    left: 8px;
  }
  .gallery-nav-next {
    right: 8px;
  }
  .gallery-slider:hover .gallery-nav-btn {
    display: block;
  }
  .floating-cross {
    position: absolute;
    width: 28px;
    height: 28px;
    background: none;
    z-index: 2;
    opacity: 0.18;
    animation: floatCross 5s ease-in-out infinite alternate;
  }
  .floating-cross::before, .floating-cross::after {
    content: '';
    position: absolute;
    background: #fff;
    border-radius: 2px;
  }
  .floating-cross::before {
    left: 13px; top: 2px; width: 2px; height: 24px;
  }
  .floating-cross::after {
    top: 13px; left: 2px; width: 24px; height: 2px;
  }
  @keyframes floatCross {
    0% { transform: translateY(0) scale(1) rotate(-8deg); }
    50% { transform: translateY(-12px) scale(1.08) rotate(8deg); }
    100% { transform: translateY(0) scale(1) rotate(-8deg); }
  }
  .hero-svg-bg { pointer-events: none; }

/* ===============================
   GLOBAL RESET & SAFETY
================================ */
* {
  box-sizing: border-box;
}


html, body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  background: linear-gradient(135deg, #f5f7fa 0%, #e3e9f0 100%);
}

body {
  margin: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: #222;
  line-height: 1.6;
  position: relative;
  min-height: 100vh;
  background: linear-gradient(135deg, #f5f7fa 0%, #e3e9f0 100%);
}

/* ===============================
   HEADER
================================ */

.header {
  background: linear-gradient(120deg, #1f7a63 60%, #185848 100%);
  color: #fff;
  text-align: center;
  padding: 24px 10px 18px 10px;
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: opacity 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 2px 16px rgba(30, 58, 95, 0.18);
  overflow: hidden;
}

.header::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 8px;
  background: linear-gradient(90deg, #fff0 0%, #fff6 50%, #fff0 100%);
  opacity: 0.3;
  pointer-events: none;
}

.header.hide {
  opacity: 0;
  pointer-events: none;
}

.header.scrolled {
  box-shadow: 0 6px 16px rgba(0,0,0,.12);
}


.header h1 {
  margin: 8px 0 4px;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.08);
  animation: fadeInDown 1s cubic-bezier(.5,1.5,.5,1) 0.1s both;
}

.header .sub-title {
  font-size: 18px;
  font-weight: 400;
  opacity: 0.92;
  margin-bottom: 0;
  animation: fadeInDown 1s cubic-bezier(.5,1.5,.5,1) 0.3s both;
}

.header p {
  margin: 0;
  font-size: 12px;
  opacity: 0.9;
}

.logo {
  height: 60px;
  margin: 8px 0;
}

/* ===============================
   OVERLAY
================================ */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.4);
  display: none;
  z-index: 998;
}

.overlay.active {
  display: block;
}

/* ===============================
   HERO SECTION
================================ */

.hero {
  background: radial-gradient( circle at top, rgba(255, 200, 0, 0.12), transparent 60% ), #0f1115;
  color: white;
  padding: 70px 20px 60px 20px;
  text-align: center;
  position: relative;
  overflow: hidden;
  min-height: 320px;
}

.hero::before {
  content: '';
  position: absolute;
  top: -80px;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 300px;
  background: radial-gradient(circle at 60% 40%, #fff3 0%, #fff0 80%);
  z-index: 1;
  pointer-events: none;
  opacity: 0.7;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -60px;
  left: 10%;
  width: 400px;
  height: 120px;
  background: linear-gradient(90deg, #fff2 0%, #fff0 100%);
  border-radius: 50%;
  z-index: 1;
  pointer-events: none;
  opacity: 0.5;
}


.hero-content {
  position: relative;
  z-index: 2;
  max-width: 600px;
  margin: 0 auto;
  animation: fadeUp 0.8s ease;
}


.hero h2 {
  font-size: 38px;
  margin: 0 0 16px;
  font-weight: 800;
  letter-spacing: -0.5px;
  text-shadow: 0 4px 24px rgba(0,0,0,0.10);
  animation: fadeUp 0.8s ease;
}

.hero p {
  font-size: 20px;
  margin: 0;
  opacity: 0.97;
  font-weight: 400;
  animation: fadeUp 0.8s ease;
}


/* ===============================
   CONTENT
================================ */
.content {
  padding: 20px;
  width: 100%;
  margin: 0;
}

/* ===============================
   CARD SECTIONS
================================ */


.section-card {
  background: white;
  border-radius: 18px;
  padding: 36px 28px;
  margin-bottom: 28px;
  box-shadow: 0 4px 24px rgba(30, 58, 95, 0.10);
  border: 1px solid rgba(0, 0, 0, 0.04);
  transition: transform 0.3s cubic-bezier(.5,1.5,.5,1), box-shadow 0.3s cubic-bezier(.5,1.5,.5,1);
  position: relative;
  opacity: 0;
  transform: translateY(40px);
}

.section-card.revealed {
  opacity: 1;
  transform: none;
  animation: cardReveal 0.9s cubic-bezier(.5,1.5,.5,1);
}

.section-card:nth-of-type(2) { animation-delay: 0.4s; }
.section-card:nth-of-type(3) { animation-delay: 0.6s; }
.section-card:nth-of-type(4) { animation-delay: 0.8s; }

.section-card:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 8px 32px rgba(30, 58, 95, 0.13);
}

.section-card h3 {
  margin: 15px 0 12px;
  font-size: 22px;
  color: #1e3a5f;
  font-weight: 600;
}

.section-card h4 {
  margin: 0 0 12px;
  font-size: 18px;
  color: #1e3a5f;
  font-weight: 600;
}

.section-card p {
  margin: 0;
  font-size: 15px;
  color: #555;
  line-height: 1.6;
}



.section-card-small {
  background: white;
  border-radius: 14px;
  padding: 28px 18px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(0, 0, 0, 0.04);
  text-align: center;
  transition: transform 0.3s cubic-bezier(.5,1.5,.5,1), box-shadow 0.3s cubic-bezier(.5,1.5,.5,1);
  opacity: 0;
  transform: translateY(40px);
}

.section-card-small.revealed {
  opacity: 1;
  transform: none;
  animation: cardReveal 0.9s cubic-bezier(.5,1.5,.5,1);
}
/* GALLERY GRID */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 14px;
  margin-top: 18px;
}
.gallery-grid img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(30,58,95,0.08);
  transition: transform 0.3s cubic-bezier(.5,1.5,.5,1), box-shadow 0.3s cubic-bezier(.5,1.5,.5,1);
}
.gallery-grid img:hover {
  transform: scale(1.04) rotate(-1deg);
  box-shadow: 0 8px 24px rgba(30,58,95,0.13);
}

.section-card-small:hover {
  transform: translateY(-6px) scale(1.03);
  box-shadow: 0 12px 32px rgba(30, 58, 95, 0.13);
}

.section-card-small p {
  margin: 0;
  font-size: 14px;
  color: #666;
  line-height: 1.6;
}

.section-card-full {
  margin-bottom: 20px;
}

.card-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 20px;
}

/* ICON BADGE */

.icon-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  background: linear-gradient(135deg, #1f7a63 60%, #185848 100%);
  border-radius: 16px;
  font-size: 28px;
  box-shadow: 0 4px 16px rgba(30, 58, 95, 0.18);
  margin-bottom: 8px;
  animation: popIn 0.8s cubic-bezier(.5,1.5,.5,1) 0.2s both;
}

.section-header {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 20px;
}

.section-header h3 {
  margin: 0;
  font-size: 22px;
  color: #1e3a5f;
  font-weight: 600;
}

/* ===============================
   TABLE (SAFE MOBILE)
================================ */
.table-wrapper {
  max-width: 100%;
  overflow-x: auto;
  border-radius: 8px;
  border: 1px solid rgba(0, 0, 0, 0.06);
}

table {
  width: 100%;
  border-collapse: collapse;
}

.schedule-table {
  width: 100%;
  border-collapse: collapse;
}

.schedule-table th,
.schedule-table td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  font-size: 15px;
}

.schedule-table th {
  background: linear-gradient(135deg, #f5f7fa 0%, #eef2f7 100%);
  font-weight: 600;
  color: #1e3a5f;
  border-bottom: 2px solid rgba(30, 58, 95, 0.15);
}

.schedule-table td {
  color: #555;
}

.schedule-table tr:hover {
  background: rgba(30, 58, 95, 0.02);
}

.schedule-table tr:last-child td {
  border-bottom: none;
}

.auto-table {
  width: 100%;
  table-layout: auto;
  border-collapse: collapse;
}

.auto-table th,
.auto-table td {
  white-space: nowrap;
  padding: 12px;
  border: 1px solid #ddd;
}

th, td {
  padding: 12px;
  text-align: left;
}

th {
  background: #f0f4f8;
  font-weight: 600;
}

/* ===============================
   CONTACT INFO
================================ */
.contact-info {
  display: grid;
  gap: 16px;
}

.contact-item {
  display: flex;
  gap: 16px;
  padding: 16px;
  background: rgba(30, 58, 95, 0.02);
  border-radius: 8px;
  border: 1px solid rgba(30, 58, 95, 0.08);
  transition: all 0.3s ease;
}

.contact-item:hover {
  background: rgba(30, 58, 95, 0.04);
  border-color: rgba(30, 58, 95, 0.15);
}

.contact-icon {
  font-size: 24px;
  min-width: 32px;
  text-align: center;
}

.contact-label {
  margin: 0 0 4px;
  font-weight: 600;
  color: #1e3a5f;
  font-size: 14px;
}

.contact-item p {
  margin: 0;
  color: #555;
  font-size: 14px;
  line-height: 1.5;
}

/* ===============================
   FOOTER
================================ */
.footer {
  background: linear-gradient(135deg, #1f7a63, #185848);
  color: #fff;
  text-align: center;
  padding: 20px 15px;
  font-size: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* ===============================
   BOTTOM NAVIGATION
================================ */
.bottom-nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  height: 64px;
  background: #fff;
  border-top: 1px solid #ddd;
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 1000;
}

.bottom-nav .nav-item {
  flex: 1;
  text-align: center;
  text-decoration: none;
  color: #333;
  padding: 6px 0;
  position: relative;
  transition: all .25s ease;
}

.bottom-nav .icon {
  font-size: 22px;
  display: block;
}

.bottom-nav .label {
  font-size: 12px;
}

/* =====================
   MORE MENU
===================== */
.more-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  display: none;
  z-index: 1100;
}


.more-menu {
  position: fixed;
  left: 0;
  right: 0;
  bottom: -100%;
  background: #fff;
  border-radius: 20px 20px 0 0;
  z-index: 1200;
  transition: bottom 0.4s cubic-bezier(.5,1.5,.5,1);
  padding-bottom: env(safe-area-inset-bottom);
  box-shadow: 0 -8px 32px rgba(30, 58, 95, 0.13);
}

.more-menu.show {
  bottom: 0;
}


.more-overlay.show {
  display: block;
  animation: fadeInOverlay 0.4s cubic-bezier(.5,1.5,.5,1);
}

.more-menu a {
  display: block;
  padding: 14px 20px;
  text-decoration: none;
  color: #333;
  border-bottom: 1px solid #eee;
  font-size: 15px;
}

/* HEADER MORE MENU */
.more-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 20px;
  border-bottom: 1px solid #ddd;
  font-weight: 600;
}

.more-header button {
  background: none;
  border: none;
  font-size: 18px;
  cursor: pointer;
}

/* ===============================
   LOADER
================================ */

#loader {
    position: fixed;
    inset: 0;
    background: black;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.9s ease, visibility 0.9s ease;
}

/* ✨ Ambient Glow Background */
#loader::before {
    content: "";
    position: absolute;
    width: 420px;
    height: 420px;
    background: radial-gradient(
        circle,
        rgba(255,255,255,0.12),
        transparent 70%
    );
    filter: blur(40px);
    animation: ambientGlow 3s ease-in-out infinite;
}

/* 😎 Logo Container */
.loader-content {
    position: relative;
    display: inline-block;
}

/* ✨ Light Sweep Effect (Silau Garis Menyamping) */
.loader-content::after {
    content: "";
    position: absolute;
    inset: 0;

    background: linear-gradient(
        110deg,
        transparent 35%,
        rgba(255,255,255,0.85),
        transparent 65%
    );

    transform: translateX(-140%);

    animation: lightSweep 3s ease 0.5s forwards;
}

/* 😎 Logo */
.loader-content img {
    width: clamp(310px, 18vw, 360px);

    opacity: 0;
    transform: scale(0.92);
    filter: blur(14px);

    animation: logoReveal 1.6s ease forwards,
               logoBreath 2.4s ease-in-out infinite;

    /* ✨ Worship Glow */
    filter: blur(14px) drop-shadow(0 0 30px rgba(255,255,255,0.35));
}

/* 🎬 Reveal Animation */
@keyframes logoReveal {
    0% {
        opacity: 0;
        transform: scale(0.88);
        filter: blur(24px);
    }
    60% {
        opacity: 1;
        transform: scale(1.03);
        filter: blur(6px);
    }
    100% {
        opacity: 1;
        transform: scale(1);
        filter: blur(0);
    }
}

/* ✨ Glow breathing halus */
@keyframes logoBreath {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.045); }
}

/* ✨ Ambient background glow */
@keyframes ambientGlow {
    0%, 100% { opacity: 0.6; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.08); }
}

/* ✨ Light Sweep Animation */
@keyframes lightSweep {
    to {
        transform: translateX(140%);
    }
}

/* ===============================
   MOBILE (HP)
================================ */
@media (max-width: 767px) {
  body {
    font-size: 16px;
    padding-bottom: 80px;
  }
  .content {
    padding: 12px;
  }
  .hero {
    padding: 32px 8px 28px 8px;
    min-height: 180px;
  }
  .hero h2 {
    font-size: 22px;
  }
  .hero p {
    font-size: 13px;
  }
  .section-card {
    padding: 16px 8px;
    margin-bottom: 12px;
  }
  .section-card h3 {
    font-size: 16px;
  }
  .card-grid {
    grid-template-columns: 1fr;
    gap: 8px;
    margin-bottom: 10px;
  }
  .gallery-slider {
    padding: 0 2vw;
    max-width: 98vw;
  }
  .gallery-slider img,
  #galleryActiveImg {
    max-width: 100vw;
    width: 100%;
    margin: 0 2vw;
    border-radius: 10px;
  }
  .schedule-table th,
  .schedule-table td {
    padding: 8px 6px;
    font-size: 12px;
  }
  th, td {
    font-size: 12px;
    padding: 6px;
  }
  .contact-item {
    padding: 8px;
    gap: 8px;
  }
  .contact-icon {
    font-size: 16px;
  }
}

/* ===============================
   TABLET
================================ */
@media (min-width: 768px) and (max-width: 1023px) {

  body {
    padding-bottom: 80px;
  }

  .content {
    max-width: 900px;
    margin: 0 auto;
  }

  .hero h2 {
    font-size: 28px;
  }

  .card-grid {
    grid-template-columns: 1fr 1fr;
  }

  .bottom-nav {
    height: 70px;
  }

  .bottom-nav .icon {
    font-size: 24px;
  }

  .bottom-nav .label {
    font-size: 14px;
  }
}

/* ===============================
   DESKTOP
================================ */
@media (min-width: 1024px) {
  body {
    padding-bottom: 0;
  }
  .content {
    max-width: 1100px;
    margin: 0 auto;
    padding: 40px 30px;
  }
  .hero h2 {
    font-size: 44px;
  }
  .hero p {
    font-size: 22px;
  }
  .card-grid {
    grid-template-columns: 1fr 1fr;
  }
  .section-card {
    padding: 45px 38px;
  }
  .bottom-nav {
    height: 74px;
  }
  table {
    min-width: 100%;
  }
}

/* ===============================
   ANIMATIONS
================================ */
@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-40px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes cardReveal {
  from {
    opacity: 0;
    transform: translateY(40px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes popIn {
  0% {
    opacity: 0;
    transform: scale(0.7);
  }
  80% {
    opacity: 1;
    transform: scale(1.1);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes fadeInOverlay {
  from { opacity: 0; }
  to { opacity: 1; }
}