/* Reset & Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: 'Segoe UI', sans-serif;
  line-height: 1.6;
  color: #333;
  background: #f9f9f9;
}

/* Popup notif dengan animasi */
.popup {
  position: fixed;
  top: 200px;
  right: 50px;
  background: #4caf50;
  color: white;
  padding: 14px 24px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 500;
  box-shadow: 0 6px 15px rgba(0,0,0,0.25);
  opacity: 0;
  transform: translateY(-20px);
  pointer-events: none;
  transition: opacity 0.6s ease, transform 0.6s ease;
  z-index: 9999;
}

.popup.show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.popup.hide {
  opacity: 0;
  transform: translateY(-20px);
}

/* Navbar */
header {
  background: #064635;
  color: #fff;
  padding: 15px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 1000;
}
header h1 {
  font-size: 20px;
  font-weight: bold;
}

header h2 {
  font-size: 15px;
  font-weight: bold;
}

nav {
  display: flex;
}
nav a {
  margin: 0 10px;
  color: #fff;
  font-weight: 500;
  text-decoration: none;
}
nav a:hover {
  text-decoration: underline;
}

/* Toggle button */
.menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
}
.menu-toggle span {
  height: 3px;
  width: 25px;
  background: #fff;
  margin: 4px 0;
  border-radius: 2px;
  transition: all .3s;
}

/* Hero dengan overlay */
.hero {
  position: relative;
  height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
  color: #fff;
  padding: 0 20px;
  overflow: hidden;

  /* Sudut bawah saja yang melengkung */
  border-bottom-left-radius: 30px;
  border-bottom-right-radius: 30px;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: url('../img/bg.png') center center no-repeat;
  background-size: cover;
  filter: brightness(0.5);
  border-radius: inherit; /* ikut radius parent */
  z-index: -2;
}


/* Tambahan Kalimat di atas gambar */
.hero-text-top {
  position: absolute;
  top: 15px;           /* 👉 atur jarak dari atas sesuai kebutuhan */
  left: 50%;
  transform: translateX(-50%);
  color: #ffff;
  text-align: center;
  z-index: 2;
  width: 90%;
}

.hero-text-top h3 {
  font-size: 24px;     /* bisa disesuaikan */
  font-weight: bold;
  margin: 0;
  line-height: 1.4;
  text-shadow: 2px 2px 5px rgba(0,0,0,0.7);
}

/* Tambahan gambar Qur’an di kanan bawah */
.hero::after {
  content: "";
  position: absolute;
  bottom: 0;
  right: 0;
  width: 80%;               /* diperlebar */
  aspect-ratio: 23/24;
  background: url('../img/quran1.jpeg') no-repeat center;
  background-size: cover;
  border-radius: 10%;
  opacity: 0.25;
  z-index: -1;              /* tetap di belakang teks */
  
  /* sisi kiri & atas transparan */
  -webkit-mask-image: linear-gradient(
    to top left,
    rgba(0,0,0,0) 0%,
    rgba(0,0,0,1) 70%
  );
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-size: cover;
  mask-image: linear-gradient(
    to top left,
    rgba(0,0,0,0) 0%,
    rgba(0,0,0,1) 70%
  );
  mask-repeat: no-repeat;
  mask-size: cover;
}

/* pastikan teks & tombol selalu di atas overlay */
.hero h2,
.hero p,
.hero .btn {
  position: relative;
  z-index: 2;
}

.hero h2 {
  font-size: 36px;
  margin-bottom: 15px;
  text-shadow: 2px 2px 6px rgba(0,0,0,0.7);
}
.hero p {
  font-size: 18px;
  margin-bottom: 20px;
}
.btn {
  padding: 10px 25px;
  background: #f0a500;
  color: #fff;
  border-radius: 5px;
  font-weight: bold;
  border: none;
  cursor: pointer;
}
.btn:hover {
  background: #c97f00;
}

/* Sections */
section {
  padding: 60px 20px;
  max-width: 1200px;
  margin: auto;
  scroll-margin-top: 100px; /* biar pas klik link ga ketutup header */
}
section h3 {
  text-align: center;
  margin-bottom: 30px;
  font-size: 26px;
  color: #064635;
}


/* Activities */
.activities {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}
.activity {
  flex: 1 1 250px;
  background: #fff;
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  text-align: center;
  transition: .3s;
}
.activity:hover {
  transform: translateY(-5px);
}
.activity img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 15px;
}

/* Team */
.team {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}
.member {
  flex: 1 1 200px;
  background: #fff;
  border-radius: 10px;
  padding: 15px;
  text-align: center;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}
.member img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 10px;
}

/* Testimonials */
.testimonials {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}
.testimonial {
  background: #fff;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}
.testimonial p {
  font-style: italic;
  margin-bottom: 10px;
}
.testimonial h4 {
  text-align: right;
  color: #064635;
}

/* Donation */
.donation-box {
  max-width: 600px;
  margin: auto;
  background: #fff;
  padding: 15px;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  text-align: center;
}
.quick-donate button {
  background: #064635;
  color: #fff;
  padding: 10px 15px;
  margin: 5px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}
.quick-donate button:hover {
  background: #046f50;
}
#donationAmount {
  padding: 10px;
  width: 80%;
  border: 1px solid #ccc;
  border-radius: 5px;
  margin-bottom: 15px;
}
#donateNow {
  background: #f0a500;
  color: #fff;
  padding: 10px 25px;
  border: none;
  border-radius: 5px;
  font-weight: bold;
  cursor: pointer;
}
#donateNow:hover {
  background: #c97f00;
}

/* Contact */
.contact {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}
.contact-info, .contact-form {
  flex: 1 1 300px;
  background: #fff;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}
.contact-form input, .contact-form textarea {
  width: 100%;
  padding: 10px;
  margin: 10px 0;
  border-radius: 5px;
  border: 1px solid #ccc;
}
.contact-form button {
  background: #064635;
  color: #fff;
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}
.contact-form button:hover {
  background: #046f50;
}

footer {
  text-align: center;
  background: #064635;
  color: #fff;
  padding: 20px;
  margin-top: 50px;
}

/* Brand (logo + teks) */
.brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-size: 1.8rem;
  font-weight: bold;
  text-align: center;
}
.brand img {
  height: 70px;
  width: auto;
}
.brand .sk {
  display: block;
  font-size: 0.7em;
  font-weight: normal;
  margin-top: 2px;
  color: #ddd;
}

/* Responsive */
@media (max-width: 768px) {
  nav {
    display: none;
    flex-direction: column;
    background: #064635;
    position: absolute;
    top: 60px;
    right: 0;
    width: 200px;
    text-align: right;
    padding: 10px;
  }
  nav a {
    display: block;
    margin: 10px;
  }
  .menu-toggle {
    display: flex;
  }
  nav.active {
    display: flex;
  }
  .brand {
    font-size: 1.2rem;
    gap: 8px;
  }
  .brand img {
    height: 50px;
  }
  .brand .sk {
    font-size: 0.65em;
  }
  header h2 {
  font-size: 10px;
  font-weight: bold;
  }

/* Tambahan Kalimat di atas gambar */

.hero-text-top h3 {
  font-size: 12px;     /* bisa disesuaikan */
}


@media (max-width: 480px) {
  .brand {
    font-size: 1rem;
  }
  .brand img {
    height: 32px;
  }
  .brand .sk {
    font-size: 0.6em;    
  }
/* Tambahan Kalimat di atas gambar */

.hero-text-top h3 {
  font-size: 12px;     /* bisa disesuaikan */
}

}
