/* styles.css */

/* Global Reset & Typography */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Inter', sans-serif;
}

body {
  background-image: url("/assets/images/bg.png");
  background-size: cover;
  background-repeat: no-repeat;
  background-attachment: fixed;
  background-position: center center;
  color: #222;
  padding-bottom: 90px;
  display: flex;
  justify-content: center;
}

.mobile-container {
  max-width: 640px;
  margin: 0 auto;
  background: #fff;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.05);
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  width: 100%;
}

/* Header */
header {
  background: #fff;
  color: #000;
  padding: 22px 14px;
  text-align: center;
  border-bottom-left-radius: 24px;
  border-bottom-right-radius: 24px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

header h1 {
  font-size: 1.7rem;
  letter-spacing: 0.5px;
}

header p {
  font-size: 1rem;
  opacity: 0.9;
}

/* Hero Slider */
.slider {
  position: relative;
  overflow: hidden;
  margin: 16px;
  border-radius: 16px;
  height: 180px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.slides {
  display: flex;
  width: 300%;
  height: 100%;
  transition: transform 0.6s ease;
}

.slide {
  flex: 1 0 100%;
  position: relative;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.slide-overlay {
  position: absolute;
  bottom: 16px;
  left: 16px;
  color: #fff;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}

.slide-overlay h2 {
  font-size: 1.25rem;
  font-weight: 600;
}

.cta-btn {
  margin-top: 8px;
  background: #10b981;
  border: none;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 0.85rem;
  color: #fff;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  transition: transform 0.1s;
}

.cta-btn:active {
  transform: scale(0.97);
}

/* Section */
.section {
  padding: 0 16px;
  margin-top: 8px;
}

.section h2 {
  font-size: 1.25rem;
  margin-bottom: 12px;
  color: #15803d;
}

.card {
  background: #fff;
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 16px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.prayer-list,
.activity-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.prayer-list i,
.activity-list i {
  margin-right: 8px;
  color: #15803d;
}

.time {
  float: right;
  font-weight: 600;
}

/* Announcement */
.announcement {
  display: flex;
  align-items: center;
  background: #ecfdf5;
  border-left: 5px solid #10b981;
  padding: 12px 16px;
  border-radius: 8px;
  margin-bottom: 16px;
  color: #065f46;
  gap: 10px;
}

.announcement i {
  font-size: 20px;
}

/* Quick Links */
.quick-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 16px;
  text-decoration: none;
}

.quick-link {
  background: #fff;
  border-radius: 16px;
  padding: 18px 8px;
  text-align: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  font-size: 14px;
  color: #15803d;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.2s;
  cursor: pointer;
  text-decoration: none;
}

.quick-link:hover {
  transform: translateY(-3px);
}

.quick-link i {
  font-size: 22px;
  margin-bottom: 6px;
}

/* Footer */
footer {
  background: #15803d;
  color: #fff;
  padding: 16px;
  text-align: center;
  font-size: 12px;
  margin-top: 24px;
  border-top-left-radius: 16px;
  border-top-right-radius: 16px;
}

/* Bottom Navigation */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 490px;
  display: flex;
  justify-content: space-around;
  background: #fff;
  border-top: 1px solid #ddd;
  height: 70px;
  z-index: 20;
}

.nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 8px 0;
  color: #555;
  font-size: 12px;
  transition: background 0.1s, transform 0.1s;
    text-decoration: none; /* hilangkan underline */

}

.nav-item i {
  display: block;
  font-size: 20px;
  margin-bottom: 4px;
}

.nav-item.active {
  color: #15803d;
  font-weight: bold;
}
.nav-item.active i {
  color: #15803d;
}

 

/* Click Effect for Navigation */
.nav-item:active {
  background: rgba(0, 0, 0, 0.05);
  transform: scale(0.95);
}
.card h4 {
  font-size: 1.1rem;
  color: #15803d;
}
.card small {
  font-size: 0.8rem;
  color: #555;
}
.card img {
  max-height: 180px;
  object-fit: cover;
}
.auth-card {
  background: #ffffff;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  margin-top: 20px;
}

.auth-toggle {
  display: flex;
  margin-bottom: 16px;
}

.auth-toggle button {
  flex: 1;
  padding: 12px;
  border: none;
  font-weight: bold;
  font-size: 1rem;
  cursor: pointer;
  border-radius: 8px 8px 0 0;
  transition: 0.2s;
}

.auth-toggle button.active {
  background: #15803d;
  color: #fff;
}

.auth-form input {
  width: 100%;
  padding: 10px;
  margin: 8px 0;
  border-radius: 8px;
  border: 1px solid #ccc;
  font-size: 0.95rem;
}

.auth-form .cta-btn {
  width: 100%;
  margin-top: 10px;
}
.input-group {
  position: relative;
}
.input-group input {
  width: 100%;
  padding-right: 40px;
}
.toggle-pass {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  color: #888;
}
.toggle-pass i {
  font-size: 14px;
}

.grid-box {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.grid-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.grid-card img {
  width: 100%;
  height: 140px;
  object-fit: cover;
}

.grid-text {
  padding: 10px;
}

.grid-text h4 {
  font-size: 1rem;
  margin: 0 0 4px;
  color: #111;
}

.grid-text p {
  font-size: 0.9rem;
  margin-bottom: 6px;
  color: #555;
}

.grid-text a {
  font-size: 0.85rem;
  color: #15803d;
  text-decoration: none;
  font-weight: bold;
}

.grid-card.berita {
  border-left: 4px solid #10b981;
}

.grid-card.agenda {
  border-left: 4px solid #dc2626;
}

.filter-form {
  margin-bottom: 20px;
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.filter-form select,
.filter-form button {
  padding: 8px 12px;
  font-size: 14px;
  border-radius: 8px;
  border: 1px solid #ccc;
  background: #fff;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
}

.filter-form select:focus,
.filter-form button:focus {
  border-color: #15803d;
  outline: none;
}

.filter-form button {
  background-color: #15803d;
  color: #fff;
  font-weight: bold;
  border: none;
}

.filter-form button:hover {
  background-color: #166534;
}
.filter-wrapper {
  display: flex;
  justify-content: center;
}

.galeri-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.galeri-item {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  cursor: pointer;
  text-align: center;
}

.galeri-item img,
.video-thumb img {
  width: 100%;
  height: 140px;
  object-fit: cover;
}

.video-thumb {
  position: relative;
}
.play-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  font-size: 2rem;
  color: white;
  transform: translate(-50%, -50%);
  text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.judul-galeri {
  padding: 6px;
  font-size: 14px;
  color: #15803d;
}

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  top:0; left:0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.75);
  justify-content: center;
  align-items: center;
  z-index: 999;
}

.lightbox-content {
  position: relative;
  max-width: 90%;
  max-height: 90%;
}

.lightbox img, .lightbox iframe {
  max-width: 100%;
  max-height: 80vh;
  display: block;
  border-radius: 12px;
}

.close-btn {
  position: absolute;
  top: -12px;
  right: -12px;
  font-size: 24px;
  color: white;
  cursor: pointer;
}

textarea {
  width: 100%;
  min-height: 100px;
  padding: 8px;
  border-radius: 8px;
  border: 1px solid #ccc;
  font-family: inherit;
}

.flash-msg {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: #15803d;
  color: #fff;
  padding: 12px 20px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  z-index: 999;
  font-size: 14px;
}

/* Form Kontak Styling */
form input[type="text"],
form input[type="email"],
form textarea {
  width: 100%;
  padding: 10px;
  margin-bottom: 12px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 14px;
}

form textarea {
  min-height: 100px;
  resize: vertical;
}

form button.cta-btn {
  width: 100%;
  padding: 10px;
  background-color: #15803d;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: bold;
  color: #fff;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

form button.cta-btn:hover {
  background-color: #166534;
}

.kontak-box {
  background: #fff;
  padding: 16px;
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  margin-bottom: 24px;
}

.kontak-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.kontak-list li {
  margin-bottom: 10px;
  font-size: 15px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.kontak-list i {
  color: #15803d;
  width: 18px;
}

.kontak-desc {
  margin-top: 16px;
  background: #f1f5f9;
  padding: 12px;
  border-radius: 8px;
  font-size: 14px;
}

.map-embed {
  margin-top: 24px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
.user-actions a.reset {
  background: #f59e0b;
}
.reset-card {
  background: #fff;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  margin: 16px 0;
}

.reset-card input[type="password"] {
  width: 100%;
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 8px;
  margin-bottom: 12px;
  font-size: 14px;
}

.reset-card button.cta-btn {
  width: 100%;
  padding: 12px;
  background: #15803d;
  color: #fff;
  font-size: 14px;
  font-weight: bold;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.reset-card button.cta-btn:hover {
  background: #166534;
}

.media-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}
.media-tabs a {
  background: #e5e7eb;
  padding: 8px 14px;
  border-radius: 20px;
  text-decoration: none;
  color: #333;
  font-size: 14px;
}
.media-tabs a.active {
  background: #15803d;
  color: #fff;
}

.media-box {
  background: #fff;
  padding: 16px;
  margin-bottom: 16px;
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.03);
}

.video-wrap iframe {
  width: 100%;
  height: 200px;
  border: none;
  border-radius: 12px;
  margin-top: 12px;
}
.card {
  background: #fff;
  padding: 18px;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  font-size: 15px;
  line-height: 1.6;
  color: #333;
}
.article-actions .cta-btn {
  padding: 10px 14px;
  font-size: 14px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  background: #15803d;
  color: #fff;
}
.article-actions .cta-btn:hover {
  background: #166534;
}

.media-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
  justify-content: center;
}
.media-tabs a {
  background: #e5e7eb;
  padding: 8px 14px;
  border-radius: 20px;
  text-decoration: none;
  color: #333;
  font-size: 14px;
  transition: background 0.3s ease;
}
.media-tabs a.active {
  background: #15803d;
  color: #fff;
}

.media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 16px;
}

.media-box {
  background: #fff;
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.03);
  transition: transform 0.2s ease;
}
.media-box:hover {
  transform: translateY(-3px);
}
.media-box h3 {
  font-size: 1.1rem;
  margin-bottom: 6px;
  color: #15803d;
}
.media-box p {
  font-size: 14px;
  color: #444;
  margin-bottom: 8px;
}
.media-box img {
  width: 100%;
  border-radius: 10px;
  margin-top: 10px;
}
.video-wrap iframe {
  width: 100%;
  height: 200px;
  border: none;
  border-radius: 12px;
  margin-top: 12px;
}

.info-rekening {
  background: #f0fdf4;
  border: 1px solid #16a34a;
  border-radius: 10px;
  padding: 12px 16px;
  margin-top: 14px;
  color: #065f46;
  font-size: 14px;
}

.salin-btn {
  margin-left: 10px;
  padding: 4px 8px;
  font-size: 12px;
  background: #16a34a;
  border: none;
  color: white;
  border-radius: 6px;
  cursor: pointer;
}

.salin-btn:hover {
  background: #15803d;
}

.tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}
.tabs button {
  flex: 1;
  padding: 10px;
  border: none;
  background: #eee;
  cursor: pointer;
  border-radius: 8px;
}
.tabs button.active {
  background: #15803d;
  color: white;
  font-weight: bold;
}
.tab-content {
  display: none;
}
.tab-content.active {
  display: block;
}
/* Form dan Input */
form {
  background: #fff;
  padding: 16px;
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  margin-bottom: 24px;
}

form label {
  display: block;
  font-weight: bold;
  margin-top: 12px;
  margin-bottom: 6px;
  font-size: 14px;
  color: #374151;
}

form input, form select, form textarea {
  padding: 10px 12px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 14px;
}

form textarea {
  min-height: 80px;
  resize: vertical;
}

form .cta-btn {
  margin-top: 16px;
  display: inline-block;
  background: #15803d;
  color: #fff;
  padding: 10px 18px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  font-size: 14px;
}

form .cta-btn:hover {
  background: #166534;
}

/* Table Responsif */
table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 16px;
  font-size: 14px;
}

th, td {
  border: 1px solid #ddd;
  padding: 8px;
  text-align: left;
}

th {
  background: #f0fdf4;
  font-weight: bold;
}

.cta-btn.small {
  padding: 6px 10px;
  font-size: 12px;
  margin-right: 4px;
}

/* Tombol Aksi */
a.cta-btn.small {
  display: inline-block;
  background: #15803d;
  color: #fff;
  text-decoration: none;
  padding: 6px 12px;
  border-radius: 6px;
}

a.cta-btn.small:hover {
  background: #166534;
}

/* Responsive Table */
@media screen and (max-width: 600px) {
  table, thead, tbody, th, td, tr {
    display: block;
  }
  tr {
    margin-bottom: 12px;
    border-bottom: 1px solid #ccc;
    padding-bottom: 10px;
  }
  th {
    display: none;
  }
  td {
    padding: 6px 0;
    position: relative;
  }
  td::before {
    content: attr(data-label);
    font-weight: bold;
    display: block;
    color: #15803d;
  }
}
.tab-content { display: none; }
.tab-content.active { display: block; }
.tabs { display: flex; gap: 8px; margin-bottom: 16px; }
.tabs button {
  flex: 1; padding: 10px; border: none; background: #eee;
  border-radius: 8px; cursor: pointer;
}
.tabs button.active {
  background: #15803d; color: white; font-weight: bold;
}
.copy-btn {
  background: #16a34a;
  color: #fff;
  border: none;
  padding: 6px 10px;
  border-radius: 6px;
  cursor: pointer;
  margin-top: 6px;
}
.copy-btn:hover {
  background: #166534;
}

.modal {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.5);
  justify-content: center;
  align-items: center;
  z-index: 999;
}
.modal-content {
  background: #fff;
  padding: 20px;
  border-radius: 10px;
  max-width: 360px;
  width: 90%;
}
.modal-btn {
  padding: 8px 12px;
  border: none;
  border-radius: 6px;
  margin-left: 8px;
}
.modal-confirm {
  background: #15803d;
  color: #fff;
}
.modal-btn:hover {
  opacity: 0.9;
}
.copy-success {
  color: #15803d;
  margin-top: 6px;
  font-size: 13px;
}
.summary-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
  }

  .summary-table td {
    padding: 8px;
    border-bottom: 1px solid #e5e7eb;
  }

  .summary-table .text-right {
    text-align: right;
    font-weight: bold;
  }

  @media (max-width: 600px) {
    .summary-table td {
      font-size: 13px;
      display: block;
      width: 100%;
      text-align: left !important;
      padding: 6px 4px;
    }

    .summary-table tr {
      display: block;
      margin-bottom: 10px;
      border: 1px solid #e5e7eb;
      border-radius: 6px;
      background: #f9fafb;
    }
  }
/* Footer Styling */
.site-footer {
  background: #fff;
  text-align: center;
  padding: 24px 16px 80px;
  font-size: 13px;
  border-top: 1px solid #ccc;
  position: relative;
  color:#000;
}

.footer-logo {
  max-width: 100px;
  margin-bottom: 10px;
}

.footer-links {
  margin-top: 8px;
}

.footer-links a {
  color: #15803d;
  text-decoration: none;
  margin: 0 4px;
  font-weight: 500;
}

.footer-links a:hover {
  text-decoration: underline;
}

/* Bottom Navigation */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 640px;
  display: flex;
  justify-content: space-around;
  background: #ffffff;
  border-top: 1px solid #ccc;
  height: 70px;
  z-index: 999;
}

.nav-item {
  flex: 1;
  text-align: center;
  padding-top: 8px;
  color: #444;
  font-size: 12px;
  text-decoration: none;
}

.nav-item i {
  display: block;
  font-size: 20px;
  margin-bottom: 4px;
}

 

/* ZISWAF Special Button */
.nav-ziswaf {
  background: #15803d;
  color: #fff !important;
  border-radius: 12px;
  padding-top: 6px;
  margin-top: -22px;
  width: 64px;
  height: 64px;
  font-size: 12px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.15);
  position: relative;
  z-index: 1000;
}

.nav-ziswaf i {
  font-size: 20px;
  margin-bottom: 2px;
}

.nav-ziswaf span {
  font-size: 11px;
}

/* Ensure body leaves space for nav */
body {
  padding-bottom: 90px;
}

.program-box {
  min-height: 80px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 16px;
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  transition: all 0.3s ease;
}
html {
  scroll-behavior: smooth;
}
/* Highlight animasi saat program dikunjungi */
@keyframes highlightFade {
  0%   { background-color: #fef08a; }
  100% { background-color: transparent; }
}

.highlight-target {
  animation: highlightFade 2.5s ease-out;
  transition: background-color 0.5s ease;
}

