:root {
  --main: #116b5f;
  --dark: #0d4f46;
  --light: #f7f5ef;
  --text: #2f2f2f;
  --radius: 22px;
}

/* RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

body {
  background: var(--light);
  color: var(--text);
  padding-bottom: 40px;
  overflow-x: hidden;
  box-shadow: inset 0 0 50px rgba(0,0,0,0.04);
}

/* HEADER */
header {
  padding: 30px 0 15px;
  text-align: center;
  animation: fadeDown .6s ease;
}

@keyframes fadeDown {
  from { opacity: 0; transform: translateY(-15px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* BRAND */
.brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.brand img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: white;
  padding: 6px;
  object-fit: cover;
  box-shadow: 0 6px 16px rgba(0,0,0,0.18);
  transition: .3s;
}

.brand img:hover {
  transform: scale(1.05);
}

.brand h1 {
  font-size: 1.65rem;
  font-weight: 700;
  color: var(--dark);
  letter-spacing: 1.2px;
  text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

/* ================================
      GRID MENU
================================ */
.menu-grid {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 28px;
  padding: 0 25px;
  margin-top: 15px;
  animation: fadeUp .7s ease;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.menu-btn {
  text-decoration: none;
  color: var(--dark);
  text-align: center;
  font-weight: 600;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  transition: .3s;
}

.menu-btn:hover .icon-circle {
  transform: translateY(-3px) scale(1.1);
  box-shadow: 0 8px 18px rgba(0,0,0,0.2);
}

.icon-circle {
  width: 75px;
  height: 75px;
  border-radius: 50%;
  background: white;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.12);
  transition: .3s;
  outline: 2px solid transparent;
}

.icon-circle:hover {
  box-shadow: 0 6px 18px rgba(0,0,0,0.18);
  transform: scale(1.08);
}

.icon-circle img {
  width: 30px;
  height: 30px;
  object-fit: contain;
}

.menu-btn span {
  font-size: .82rem;
  margin-top: 4px;
}

/* MOBILE GRID */
@media (max-width: 480px){
  .menu-grid {
    gap: 20px;
  }
  .icon-circle {
    width: 65px;
    height: 65px;
  }
  .icon-circle img {
    width: 26px;
    height: 26px;
  }
  .menu-btn span {
    font-size: .7rem;
  }
}

/* ================================
      FOOTER (IMPROVED)
================================ */

.site-footer {
  background: linear-gradient(180deg, var(--dark), #093c35);
  color: var(--light);
  padding: 40px 22px 25px;
  margin-top: 55px;
  border-top-left-radius: var(--radius);
  border-top-right-radius: var(--radius);
  box-shadow: 0 -4px 16px rgba(0,0,0,0.15);
  animation: fadeUp .8s ease;
}

.footer-container {
  max-width: 1000px;
  margin: auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px,1fr));
  gap: 28px;
}

.footer-col h3,
.footer-col h4 {
  color: white;
  margin-bottom: 14px;
  font-size: 1.12rem;
  font-weight: 600;
}

.footer-col p {
  font-size: .92rem;
  line-height: 1.45rem;
  opacity: .9;
}

.footer-col ul li a {
  color: var(--light);
  opacity: .75;
  font-size: .9rem;
  transition: .25s;
}

.footer-col ul li a:hover {
  opacity: 1;
  text-decoration: underline;
}

.social-links {
  display: flex;
  align-items: center;
  gap: 14px;
}

.social-links a img {
  width: 34px;
  height: 34px;
  padding: 6px;
  background: white;
  border-radius: 50%;
  transition: .3s;
  box-shadow: 0 3px 10px rgba(0,0,0,0.15);
}

.social-links a img:hover {
  transform: scale(1.15) rotate(3deg);
  background: var(--main);
  filter: brightness(1.2);
}

.footer-bottom {
  text-align: center;
  margin-top: 28px;
  padding-top: 14px;
  border-top: 1px solid rgba(255,255,255,0.25);
  font-size: .85rem;
  opacity: .85;
}

@media(max-width:480px){
  .footer-container { text-align:center; }
  .social-links { justify-content:center; }
}


/* WRAPPER */
.banner-slider {
  width: 90%;
  max-width: 520px;
  height: 240px;
  margin: 25px auto;
  border-radius: 22px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

/* GAMBAR SLIDE */
.banner-slide {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

/* SLIDE AKTIF */
.banner-slide.active {
  opacity: 1;
  z-index: 2;
}
.latest-quotes {
  margin: 30px auto;
  width: 90%;
  max-width: 700px;
  background: var(--light);
  padding: 20px;
  border-radius: var(--radius);
}

.latest-quotes h2 {
  text-align: center;
  color: var(--main);
  margin-bottom: 20px;
  font-size: 1.4rem;
}

.quote-item {
  background: #fff;
  padding: 15px;
  border-radius: var(--radius);
  margin-bottom: 15px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

.quote-text {
  font-size: 1rem;
  color: var(--dark);
  margin-bottom: 6px;
  line-height: 1.5;
}

.quote-author {
  font-size: 0.9rem;
  color: var(--main);
  font-weight: 600;
}

.quote-date {
  font-size: 0.8rem;
  color: #777;
}
/* BOX WAKTU & SHOLAT */
.top-time-box {
  background: var(--main);
  color: var(--light);
  padding: 18px;
  margin: 15px;
  border-radius: var(--radius);
  box-shadow: 0 5px 15px rgba(0,0,0,0.10);
  text-align: center;
  animation: fadeUp .7s ease;
}

/* JAM */
.time-now {
  font-size: 26px;
  font-weight: bold;
  margin-bottom: 5px;
  color: var(--light);
}

/* TANGGAL */
.date-now {
  font-size: 15px;
  opacity: 0.85;
  margin-bottom: 12px;
  color: var(--light);
}

/* BOX SHOLAT TERDEKAT */
.next-prayer {
  background: var(--dark);
  color: var(--light);
  padding: 12px;
  border-radius: var(--radius);
  cursor: pointer;
  transition: 0.2s ease;
  border: 1px solid rgba(255,255,255,0.15);
}

.next-prayer:hover {
  background: #0e5a52;
  transform: scale(1.02);
}

/* JADWAL SHOLAT LENGKAP */
#allPrayer {
  margin-top: 15px;
  background: #0d4f46;
  padding: 12px;
  border-radius: var(--radius);
  display: none;
  border: 1px solid rgba(255,255,255,0.10);
}

#allPrayer h4 {
  margin-bottom: 10px;
  font-size: 16px;
  color: var(--light);
}

#allPrayer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

#allPrayer li {
  padding: 7px 0;
  border-bottom: 1px solid rgba(255,255,255,0.15);
  color: var(--light);
  font-size: 15px;
}

/* Efek terakhir item */
#allPrayer li:last-child {
  border-bottom: none;
}