/* ================= RESET ================= */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Segoe UI", sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  background: #f8f9fa;
  color: #333;
  line-height: 1.6;
}

/* ================= NAVBAR ================= */

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 40px;
  background: rgba(135, 203, 245, 0.85);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  width: 100%;
  z-index: 1000;
}

.logo {
  font-size: 26px;
  font-style: italic;
  font-weight: bold;
  color: white;
  letter-spacing: 1px;
}

/* ================= MENU ================= */

.nav-menu {
  display: flex;
  list-style: none;
  gap: 35px;
  align-items: center;
}

.nav-menu a {
  text-decoration: none;
  color: white;
  font-size: 15px;
  font-weight: 500;
  padding: 6px 0;
  position: relative;
  transition: 0.3s;
}

/* underline hover */

.nav-menu a::after {
  content: "";
  position: absolute;
  width: 0%;
  height: 2px;
  bottom: -3px;
  left: 0;
  background: #0d6efd;
  transition: 0.3s;
}

.nav-menu a:hover::after {
  width: 100%;
}

.nav-menu a:hover {
  color: #0d6efd;
}

/* ================= DROPDOWN ================= */

.dropdown {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: 120%;
  left: 0;
  background: #111;
  list-style: none;
  min-width: 190px;
  border-radius: 10px;
  padding: 6px 0;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);

  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: all 0.3s ease;
}

.dropdown-menu a {
  display: block;
  padding: 14px 22px;
  color: white;
  font-size: 14px;
  transition: 0.25s;
}

.dropdown-menu a:hover {
  background: #1e293b;
  color: #38bdf8;
}

.dropdown-menu a:hover {
  background: #1e293b;
  color: #38bdf8;
}

/* muncul */

.dropdown:hover .dropdown-menu {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* ================= HAMBURGER ================= */

.menu-toggle {
  display: none;
  font-size: 26px;
  cursor: pointer;
  color: white;
}

/* ================= HERO ================= */

.hero {
  width: 100%;
  height: 100vh;
  background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.6)), url(../img/hero.jpg) center/cover no-repeat;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero h1 {
  color: white;
  font-size: 35px;
  margin-top: 10px;
}

/* ================= SECTION ================= */

section {
  padding: 100px 20px;
  text-align: center;
}

section h2 {
  margin-bottom: 25px;
  font-size: 28px;
  color: #0d6efd;
}

/* ================= TENTANG ================= */

.tentang {
  padding: 80px 7%;
  background: #f8f9fa;
}

.tentang .container {
  display: flex;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
}

.tentang-img {
  flex: 1 1 400px;
}

.tentang-img img {
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.tentang-text {
  flex: 1 1 400px;
}

.tentang-text h2 {
  font-size: 2.2rem;
  margin-bottom: 20px;
  color: #0d6efd;
}

.tentang-text p {
  font-size: 1rem;
  line-height: 1.7;
  color: #555;
  margin-bottom: 15px;
}

.btn {
  display: inline-block;
  padding: 10px 25px;
  background: #0d6efd;
  color: #fff;
  border-radius: 6px;
  text-decoration: none;
  transition: 0.3s;
}

.btn:hover {
  background: #084298;
}

/* JADWAL SHOLAT */

.jadwal {
  padding: 3rem 7%;
  text-align: center;
}

.jadwal-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 25px;
  max-width: 900px;
  margin: auto;
  margin-top: 40px;
}

.jadwal-card {
  background: white;
  border-radius: 15px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
  transition: 0.3s;
}

.jadwal-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.jadwal-card .icon {
  font-size: 28px;
  display: block;
  margin-bottom: 10px;
}

.jadwal-card h3 {
  font-size: 18px;
  color: #0d6efd;
  margin-bottom: 5px;
}

.jadwal-card p {
  font-size: 20px;
  font-weight: bold;
  color: #333;
}

/* ================= BERITA ================= */

.berita {
  padding: 100px 20px;
  background: #f1f5f9;
  text-align: center;
}

.berita h2 {
  font-size: 30px;
  margin-bottom: 40px;
  color: #0d6efd;
}

.berita-container {
  display: flex;
  gap: 30px;
  justify-content: center;
  flex-wrap: wrap;
}

.berita-card {
  background: white;
  width: 320px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
  transition: 0.3s;
}

.berita-card:hover {
  transform: translateY(-8px);
}

.berita-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.berita-text {
  padding: 20px;
  text-align: left;
}

.berita-text span {
  font-size: 13px;
  color: gray;
}

.berita-text h3 {
  margin: 10px 0;
  font-size: 18px;
}

.berita-text p {
  font-size: 14px;
  color: #555;
}

.berita-text a {
  display: inline-block;
  margin-top: 10px;
  color: #0d6efd;
  text-decoration: none;
  font-weight: 500;
}
/* ================= KONTAK ================= */

.kontak {
  padding: 100px 20px;
  background: #ffffff;
  text-align: center;
}

.kontak h2 {
  font-size: 30px;
  color: #0d6efd;
  margin-bottom: 40px;
}

.kontak-container {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}

/* INFO */

.kontak-info {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.info-box {
  background: #f8f9fa;
  padding: 25px;
  border-radius: 10px;
  width: 260px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.05);
  text-align: left;
}

.info-box h3 {
  margin-bottom: 8px;
  color: #0d6efd;
}

/* FORM */

.kontak-form {
  background: #f8f9fa;
  padding: 30px;
  border-radius: 12px;
  width: 340px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.05);
}

.kontak-form form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.kontak-form input,
.kontak-form textarea {
  padding: 12px;
  border-radius: 8px;
  border: 1px solid #ddd;
  font-size: 14px;
}

.kontak-form input:focus,
.kontak-form textarea:focus {
  outline: none;
  border-color: #0d6efd;
}

.kontak-form button {
  padding: 12px;
  border: none;
  background: #0d6efd;
  color: white;
  font-size: 15px;
  border-radius: 8px;
  cursor: pointer;
  transition: 0.3s;
}

.kontak-form button:hover {
  background: #0b5ed7;
}

/* ================= PENGAJIAN ================= */

.pengajian {
  padding: 100px 20px;
  background: #f8fafc;
  text-align: center;
}

.pengajian h2 {
  font-size: 30px;
  color: #0d6efd;
}

.subtitle {
  color: #666;
  margin-bottom: 40px;
}

/* container */

.pengajian-container {
  display: flex;
  justify-content: center;
  gap: 25px;
  flex-wrap: wrap;
}

/* card */

.pengajian-card {
  background: white;
  width: 320px;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.05);
  transition: 0.3s;
}

.pengajian-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.08);
}

/* tanggal */

.tanggal {
  background: #0d6efd;
  color: white;
  padding: 15px;
  border-radius: 10px;
  text-align: center;
  min-width: 60px;
}

.tanggal span {
  font-size: 20px;
  font-weight: bold;
  display: block;
}

/* info */

.pengajian-info {
  text-align: left;
}

.pengajian-info h3 {
  font-size: 16px;
  margin-bottom: 5px;
}

.pengajian-info p {
  font-size: 14px;
  color: #555;
}

.pengajian-info a {
  display: inline-block;
  margin-top: 8px;
  font-size: 13px;
  color: #0d6efd;
  text-decoration: none;
}

/* ================= KONSULTASI ================= */

.konsultasi {
  padding: 100px 20px;
  background: #f8fafc;
  text-align: center;
}

.konsultasi h2 {
  font-size: 30px;
  color: #0d6efd;
  margin-bottom: 10px;
}

.konsultasi-sub {
  color: #666;
  margin-bottom: 40px;
}

.konsultasi-container {
  display: flex;
  gap: 40px;
  justify-content: center;
  flex-wrap: wrap;
}

/* FORM */

.konsultasi-form {
  background: white;
  padding: 30px;
  border-radius: 12px;
  width: 400px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.05);
}

.input-group {
  margin-bottom: 15px;
}

.input-group input,
.input-group textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 14px;
  outline: none;
  transition: 0.2s;
}

.input-group input:focus,
.input-group textarea:focus {
  border-color: #0d6efd;
}

.konsultasi-form button {
  width: 100%;
  padding: 12px;
  background: #0d6efd;
  border: none;
  color: white;
  border-radius: 8px;
  font-size: 15px;
  cursor: pointer;
  transition: 0.3s;
}

.konsultasi-form button:hover {
  background: #0b5ed7;
}

/* USTADZ INFO */

.konsultasi-info {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.ustadz-card {
  background: white;
  padding: 20px;
  border-radius: 12px;
  width: 250px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.05);
  text-align: left;
  transition: 0.3s;
}

.ustadz-card:hover {
  transform: translateY(-5px);
}

.ustadz-card h3 {
  font-size: 16px;
  margin-bottom: 5px;
}

.ustadz-card p {
  font-size: 14px;
  color: #555;
}
/* ================= SEJARAH ================= */

.sejarah {
  padding: 100px 20px;
  background: white;
  text-align: center;
}

.sejarah h2 {
  font-size: 30px;
  color: #0d6efd;
  margin-bottom: 10px;
}

.sejarah-sub {
  color: #666;
  margin-bottom: 50px;
}

/* TIMELINE */

.timeline {
  max-width: 900px;
  margin: auto;
  position: relative;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 50%;
  width: 3px;
  height: 100%;
  background: #0d6efd;
  transform: translateX(-50%);
}

/* ITEM */

.timeline-item {
  display: flex;
  justify-content: space-between;
  margin-bottom: 50px;
  position: relative;
}

.timeline-year {
  background: #0d6efd;
  color: white;
  padding: 10px 18px;
  border-radius: 20px;
  font-weight: bold;
  height: fit-content;
}

.timeline-content {
  background: #f8f9fa;
  padding: 20px;
  border-radius: 10px;
  width: 45%;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  text-align: left;
}

.timeline-content h3 {
  margin-bottom: 8px;
}

/* kanan kiri */

.timeline-item:nth-child(even) {
  flex-direction: row-reverse;
}
/* ================= STRUKTUR ================= */

.struktur {
  padding: 100px 20px;
  background: #f1f5f9;
  text-align: center;
}

.struktur h2 {
  font-size: 30px;
  color: #0d6efd;
  margin-bottom: 10px;
}

.struktur-sub {
  color: #666;
  margin-bottom: 50px;
}

/* GRID */

.struktur-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 30px;
  max-width: 1100px;
  margin: auto;
}

/* CARD */

.pengurus-card {
  background: white;
  padding: 25px;
  border-radius: 15px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
  transition: 0.3s;
}

.pengurus-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

/* FOTO */

.pengurus-card img {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 50%;
  margin-bottom: 15px;
  border: 4px solid #0d6efd;
}

/* TEXT */

.pengurus-card h3 {
  font-size: 18px;
  margin-bottom: 5px;
}

.pengurus-card span {
  font-size: 14px;
  color: #555;
}
/* ================= VISI MISI ================= */

.visi-misi {
  padding: 100px 20px;
  background: white;
  text-align: center;
}

.visi-misi h2 {
  font-size: 30px;
  color: #0d6efd;
  margin-bottom: 10px;
}

.visi-sub {
  color: #666;
  margin-bottom: 50px;
}

/* CONTAINER */

.visi-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  max-width: 1000px;
  margin: auto;
}

/* CARD */

.visi-card,
.misi-card {
  background: #f8f9fa;
  padding: 35px;
  border-radius: 15px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
  text-align: left;
  transition: 0.3s;
}

.visi-card:hover,
.misi-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

/* TITLE */

.visi-card h3,
.misi-card h3 {
  color: #0d6efd;
  margin-bottom: 15px;
  font-size: 22px;
}

/* LIST */

.misi-card ul {
  padding-left: 20px;
}

.misi-card li {
  margin-bottom: 10px;
}

/* RESPONSIVE */

@media (max-width: 768px) {
  .visi-container {
    grid-template-columns: 1fr;
  }
}
/* ================= ZAKAT ================= */

.zakat {
  padding: 100px 20px;
  background: #f1f5f9;
  text-align: center;
}

.zakat h2 {
  font-size: 30px;
  color: #0d6efd;
  margin-bottom: 10px;
}

.zakat-sub {
  color: #666;
  margin-bottom: 50px;
}

/* GRID */

.zakat-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  max-width: 1100px;
  margin: auto;
}

/* CARD */

.zakat-card {
  background: white;
  padding: 30px;
  border-radius: 15px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
  transition: 0.3s;
}

.zakat-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.zakat-card h3 {
  color: #0d6efd;
  margin-bottom: 10px;
}

/* REKENING */

.rekening-box {
  margin-top: 60px;
  background: white;
  padding: 40px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.rekening {
  background: #f8f9fa;
  padding: 20px;
  border-radius: 10px;
  margin: 20px 0;
  font-size: 18px;
}

.konfirmasi {
  font-size: 14px;
  color: #555;
}

/* ================= FOOTER ================= */

footer {
  background: #0d6efd;
  color: #fff;
  text-align: center;
  padding: 25px 20px;
  margin-top: 60px;
  font-size: 14px;
}

footer p {
  font-weight: bold;
}

/* ================= RESPONSIVE ================= */

/* Tablet (max-width: 780px) */
@media (max-width: 780px) {
  .menu-toggle {
    display: block;
    color: #333; /* make it visible if background is white */
  }

  .nav-menu {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 70px;
    right: 0;
    left: 0;
    background: #fff;
    width: 100%;
    padding: 20px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  }

  .nav-menu.active {
    display: flex;
  }

  .nav-menu a {
    color: #333;
    padding: 10px 0;
    display: block;
  }
  
  .nav-menu a::after {
    display: none;
  }

  /* Dropdown Fix - Push content down */
  .dropdown-menu {
    position: static;
    box-shadow: none;
    margin-top: 5px;
    padding-left: 15px;
    opacity: 1;
    transform: none;
    pointer-events: auto;
    display: none;
    background: transparent;
  }

  .dropdown-menu a {
    color: #555;
    padding: 10px;
  }

  .dropdown-menu a:hover {
    color: #0d6efd;
    background: transparent;
  }

  .dropdown:hover .dropdown-menu,
  .dropdown.active .dropdown-menu {
    display: block;
  }

  /* Layout adjustments */
  .tentang .container {
    flex-direction: column;
    text-align: center;
  }

  .tentang-text p {
    text-align: center;
  }

  .hero h1 {
    font-size: 28px;
    text-align: center;
    padding: 0 20px;
  }

  section {
    padding: 80px 20px;
  }
  
  .visi-container {
    grid-template-columns: 1fr;
  }
}

/* Mobile (max-width: 450px) */
@media (max-width: 450px) {
  .hero h1 {
    font-size: 24px;
  }
  
  .jadwal-container,
  .berita-container,
  .zakat-container,
  .pengajian-container,
  .struktur-container {
    grid-template-columns: 1fr;
    justify-content: center;
  }
  
  .jadwal-card,
  .berita-card,
  .zakat-card,
  .pengajian-card,
  .pengurus-card {
    width: 100%;
    max-width: 320px;
    margin: 0 auto;
  }
  
  .kontak-container {
    flex-direction: column;
  }
  
  .kontak-info .info-box,
  .kontak-form {
    width: 100%;
  }
  
  .timeline::before {
    left: 20px;
  }
  
  .timeline-item, 
  .timeline-item:nth-child(even) {
    flex-direction: column;
    align-items: flex-start;
    padding-left: 40px;
  }
  
  .timeline-year {
    position: absolute;
    left: 0;
    top: 0;
    font-size: 14px;
    padding: 5px 10px;
  }
  
  .timeline-content {
    width: 100%;
    margin-top: 40px;
  }
}

/* ================= MODAL POP-UP ================= */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: 0.3s ease;
  backdrop-filter: blur(5px);
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background: white;
  padding: 30px;
  border-radius: 12px;
  width: 90%;
  max-width: 500px;
  position: relative;
  transform: translateY(-20px);
  transition: 0.3s ease;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
  text-align: left;
}

.modal-overlay.active .modal-content {
  transform: translateY(0);
}

.modal-close {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 24px;
  cursor: pointer;
  color: #333;
  transition: 0.3s;
}

.modal-close:hover {
  color: #e53935;
}

.modal-img {
  width: 100%;
  max-height: 250px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 15px;
  display: none;
}

.modal-title {
  font-size: 22px;
  color: #1b5e20;
  margin-bottom: 10px;
}

.modal-date {
  font-size: 13px;
  color: #888;
  margin-bottom: 15px;
  display: block;
}

.modal-desc {
  font-size: 15px;
  color: #555;
  line-height: 1.6;
}
