.quick-main-title,
.quick-main-desc,
.quick-secondary-title {
  text-decoration: none !important;
  border-bottom: none !important;
}

.menu-box:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);
  background: linear-gradient(145deg, #e6f0ff, #ffffff);
  border-color: #003388;
}

.menu-box img {
  width: 45px;
  height: 45px;
  margin-bottom: 12px;
  transition: transform 0.3s ease;
}

.menu-box:hover img {
  transform: scale(1.1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');


body {
  font-family: 'Montserrat';
  margin: 0;
  padding: 0;
  background: radial-gradient(circle at top left, #e8f0ff 0%, #ffffff 40%, #e8f0ff 100%);
  color: #333;
  min-height: 100vh;
}

body,
html {
  overflow-x: hidden;
  max-width: 100%;
}

#waktu-sholat {
  margin: 5px 0;
  font-size: 1.5em;
  font-weight: bold;
}

#countdown {
  font-size: 1.2em;
  margin: 4px 0;
}

#tanggal {
  font-size: 0.9em;
}


/* RESPONSIF UNTUK MOBILE */
@media (max-width: 768px) {
  .contact-mini {
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column; /* Ubah jadi vertikal */
    justify-content: center;
    align-items: center;
    gap: 10px;
    z-index: 9999;
    font-size: 13px;
    color: #fff;
  }

  .contact-item {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #fff;
    text-decoration: none;
    white-space: nowrap;
    opacity: 0.9;
  }

  .contact-item img {
    width: 16px;
    height: 16px;
    filter: brightness(0) invert(1);
  }

  .contact-item span {
    display: inline-block;
    max-width: 120px;
    word-break: break-word;
    font-weight: 500;
    text-align: center;
  }
}

.hero-header {
  background: #003388;
  color: #e6f0ff;
  padding: 30px;
  position: relative;
  min-height: 100vh;
  box-sizing: border-box;
  opacity: 0;
  transform: translateY(-50px);
  animation: slideDown 1s ease-out forwards;
  overflow: hidden; /* jika ada animasi gambar yang melewati batas */
}


.hero-header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('Image/kaligrafi.jpg'); /* Pastikan path sesuai */
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  opacity: 0.20;
  z-index: 1;
}

.hero-header * {
  position: relative;
  z-index: 2;
}

.header-bar {
  display: flex;
  justify-content: space-between;
  align-items: center; 
  padding: 10px 30px 0;
  max-width: 1200px;
  margin: 0 auto;
}

.contact-mini {
  display: flex;
  gap: 20px;
  font-size: 12px;
  color: white;
  flex-wrap: wrap;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #fff;
  text-decoration: none;
  opacity: 0.85;
  transition: opacity 0.2s;
  white-space: nowrap;
}

.contact-item img {
  width: 16px;
  height: 16px;
  filter: brightness(0) invert(1);
}

/*.logo-area {
}*/

.logo-qalibee {
  width: 185px;
  height: auto;
  display: block;
}

.hero-container {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: 0 auto;
  gap: 20px;
}

.hero-left {
  flex: 1;
  min-width: 300px;
  padding-top: 120px;
  padding-bottom: 60px; /* tambahkan ini */
  opacity: 0;
  transform: translateX(-50px);
  animation: slideFromLeft 1s ease-out 0.6s forwards;
}

.hero-left h1 {
  font-size: 3em;
  font-weight: 800;
  margin-bottom: 20px;
  color: #e8f0f9;
  text-align: left;
  line-height: 1.1;
}

.hero-left p {
  font-size: 1.05em;
  color: #e8f0f9;
  max-width: 600px;
  line-height: 1.6;
  text-align: left;
  margin-bottom: 30px;
}


.hero-right {
  text-align: right;
  min-width: 153px;
  font-size: 1.4em;
  color: #e6f0ff;
  padding-top: 123px;
  /* Animasi slide dari kanan */
  opacity: 0;
  transform: translateX(50px);
  animation: slideFromRight 1s ease-out 0.8s forwards;
}

.hero-right h2,
.hero-right p,
.hero-right small,
.hero-right span {
  color: #e6f0ff;
  margin: 6px 0;
}

#countdown {
  font-size: 1.3em;
  font-weight: bold;
  display: inline-block;
  margin-top: 5px;
}

.quran-button-container {
  display: block;
  width: 100%;
  margin-top: 50px;
  text-align: left;
  opacity: 0;
  transform: translateY(30px) scale(0.9);
  animation: bounceUp 1.2s ease-out 1s forwards;
}

.quran-highlight {
  background: white;
  color: #003388;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  border-radius: 20px;
  gap: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  text-decoration: none !important;
  transition: all 0.3s ease;
  width: auto;
  max-width: 300px;
  border: 2px solid transparent;
  margin: 0;
  position: relative;
}

.quran-highlight:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  border-color: #003388;
  background: linear-gradient(145deg, #e6f0ff, #ffffff);
}

.quran-highlight img {
  width: 32px;
  height: 32px;
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.quran-highlight:hover img {
  transform: scale(1.1);
}

.quran-highlight-text h4 {
  margin: 0;
  font-size: 1.1em;
  font-weight: 700;
  color: #003388;
  line-height: 1.2;
}

.quran-highlight-text small {
  font-size: 0.8em;
  color: #5998db;
  line-height: 1.2;
  margin-top: 2px;
  display: block;
}


#tsparticles {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
}


/* ANIMASI UNTUK HEADER - SLIDE DOWN */

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-50px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes glow {
  from {
    text-shadow: 0 0 10px #fff, 0 0 20px #5fbef9;
  }

  to {
    text-shadow: 0 0 15px #fff, 0 0 30px #87cefa;
  }
}

/* ANIMASI UNTUK LOGO - FADE IN */
@keyframes logoFadeIn {
  from {
    opacity: 0;
    transform: scale(0.8);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* ANIMASI UNTUK HERO CONTAINER - STAGGERED ANIMATION */


@keyframes slideFromLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideFromRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* ANIMASI UNTUK TOMBOL AL-QURAN */

@keyframes bounceUp {
  0% {
    opacity: 0;
    transform: translateY(30px) scale(0.9);
  }

  60% {
    opacity: 1;
    transform: translateY(-5px) scale(1.02);
  }

  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}


/* Menu Grid - Fitur Lainnya */
.menu-wrapper {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* Tetap 3 kolom */
  gap: 60px; /* Jarak antar box */
  justify-content: center;
  align-items: center;
  text-align: center;
  margin: 0 auto;
  padding: 0 50px; /* Tambah padding kiri-kanan */
  max-width: 1300px; /* Lebarkan max-width agar tidak sempit */
}


.menu-section-title {
  text-align: center;
  color: #003388;
  font-size: 1.5em;
  font-weight: 600;
  margin: 40px 0 20px;
}


.menu-icons h2 {
  color: #003388;
  text-align: center;
  margin-top: 65px;
  margin-bottom: 45px;
  font-size: 1.8em;
  font-weight: 700;
}


.menu-box p {
  margin: 0;
  font-weight: 600;
  font-size: 0.95em;
  color: #003388;
  text-decoration: none;
  border-bottom: none;
}

.menu-box {
  background: white;
  border-radius: 20px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  text-align: center;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  border: 1px solid rgba(0, 51, 136, 0.1);
  cursor: pointer;
  text-decoration: none;
  width: 80%;
  height: 170px;
  padding: 25px;
}

.menu-box * {
  text-decoration: none !important;
  border-bottom: none !important;
}

.search-bar {
  padding: 0 20px;
  margin: 20px 0;
}

.search-bar input {
  width: 100%;
  padding: 15px 20px;
  border-radius: 25px;
  border: 2px solid #e8f0f9;
  background: white;
  font-size: 16px;
  outline: none;
  transition: all 0.3s ease;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.search-bar input:focus {
  border-color: #003388;
  box-shadow: 0 5px 15px rgba(0, 51, 136, 0.2);
  transform: scale(1.01);
}

.search-bar input::placeholder {
  color: #999;
}

.banner img {
  width: 100%;
  margin: 15px 0;
  border-radius: 20px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.bottom-nav {
  position: fixed;
  bottom: 0;
  width: 100%;
  display: flex;
  justify-content: space-around;
  background: white;
  border-top: 1px solid #e8f0f9;
  padding: 15px 0;
  box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.1);
}

.bottom-nav a {
  color: #003388;
  text-decoration: none;
  text-align: center;
  padding: 5px 15px;
  border-radius: 15px;
  transition: all 0.3s ease;
  font-weight: 500;
}

.bottom-nav a:hover {
  background: rgba(0, 51, 136, 0.1);
  transform: translateY(-2px);
}

.bottom-nav a.active {
  background: #003388;
  color: white;
}

/* kajian */
.kajian-section {
  margin: 50px auto;
  padding: 20px;
  max-width: 1000px;
}

.kajian-container {
  margin-top: 25px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 80px;
}

.video-card {
  width: 300px;
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  text-align: center;
  transition: transform 0.3s ease;
}

.video-card:hover {
  transform: translateY(-5px);
}

.video-card h3 {
  margin: 10px;
  font-size: 16px;
  color: #003388;
}


.single-box-section {
  text-align: center;
  padding: 40px 20px;
}

.single-box-section h2 {
  color: #003388;
  margin-bottom: 25px;
  font-size: 1.8em;
  font-weight: 700;
}

.single-box-wrapper {
  position: relative;
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
  height: 180px;
}

.single-box-slide {
  background: white;
  border-radius: 20px;
  padding: 25px;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  opacity: 0;
  transform: scale(0.95);
  transition: all 0.5s ease;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  font-size: 16px;
  color: #333;
  border: 1px solid #e8f0f9;
}

.single-box-slide.active {
  opacity: 1;
  transform: scale(1);
  z-index: 1;
}

.single-box-slide span {
  display: block;
  margin-top: 10px;
  font-size: 14px;
  color: #666;
}

.single-box-dots {
  margin-top: 20px;
  display: flex;
  justify-content: center;
  gap: 10px;
}

.single-box-dots button {
  width: 12px;
  height: 12px;
  background: #ccc;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
}

.single-box-dots button.active {
  background: #003388;
  transform: scale(1.2);
}

.form-saran-section {
  padding: 40px 20px;
  text-align: center;
}

.form-saran-section h2 {
  color: #003388;
  font-size: 1.8em;
  font-weight: 700;
  margin-bottom: 25px;
}

#form-saran {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 600px;
  margin: 0 auto;
  gap: 15px;
}

#saran {
  width: 100%;
  min-height: 100px;
  padding: 15px;
  border-radius: 15px;
  border: 2px solid #e8f0f9;
  font-size: 15px;
  resize: vertical;
  outline: none;
  transition: all 0.3s ease;
}

#saran:focus {
  border-color: #003388;
  box-shadow: 0 5px 15px rgba(0, 51, 136, 0.2);
}

#form-saran button {
  padding: 12px 30px;
  border: none;
  border-radius: 25px;
  background: #003388;
  color: white;
  cursor: pointer;
  font-size: 16px;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(0, 51, 136, 0.3);
}

#form-saran button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 51, 136, 0.4);
}

.page-transition {
  transition: all 0.4s ease;
  opacity: 1;
  transform: translateY(0);
}

.page-transition.out {
  opacity: 0;
  transform: translateY(20px);
}

.scroll-fade {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

.scroll-fade.show {
  opacity: 1;
  transform: translateY(0);
}

.rating-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  background: transparent;
  text-align: center;
}

.rating-section h2,
.rating-section h3 {
  color: #2a3693;
  margin-bottom: 15px;
}

.rating-stars {
  display: flex;
  flex-direction: row-reverse;
  justify-content: center;
  margin-bottom: 15px;
}

.rating-stars input[type="radio"] {
  display: none;
}

.rating-stars label {
  font-size: 30px;
  color: #ccc;
  cursor: pointer;
  transition: color 0.2s;
}

.rating-stars input:checked ~ label,
.rating-stars label:hover,
.rating-stars label:hover ~ label {
  color: gold;
}

.rating-summary {
  display: flex;
  justify-content: center;
  gap: 6px;
  font-size: 1.2rem;
  margin: 16px 0;
  color: #333;
}

.average-score {
  font-weight: bold;
  font-size: 1.3rem;
}

.stars {
  color: gold;
  font-size: 1.2rem;
}


.star-display {
  display: flex;
  gap: 2px;
  margin-bottom: 8px;
}

.star-display span {
  font-size: 28px;
  color: #ccc; /* default abu-abu */
}

.star-display .filled {
  color: gold;
}

textarea#komentar {
  width: 100%;
  max-width: 100%;
  height: 100px;
  padding: 10px 15px;
  font-size: 16px;
  border-radius: 10px;
  border: 1px solid #ccc;
  resize: none;
  margin-bottom: 10px;
}

.rating-section button {
  padding: 10px 30px;
  font-size: 16px;
  background-color: #11338f;
  color: #fff;
  border: none;
  border-radius: 30px;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  transition: background 0.3s ease;
}

.rating-section button:hover {
  background-color: #0d2c7a;
}

#ratingMessage {
  margin-top: 10px;
  font-weight: 500;
  color: green;
}

.komentar-section {
  margin-top: 40px;
  text-align: left;
}

.komentar-section h3 {
  text-align: center;
}

button {
  transition: opacity 0.3s ease;
}

button:disabled {
  opacity: 0.6;
  cursor: not-allowed !important;
}


/* Grid tampilan ulasan */
#komentarList {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* Lebar minimum 300px */
  gap: 20px;
  margin-top: 20px;
}

/* Komentar box */
#komentarList > div {
  padding: 20px;
  min-height: 160px;
  border: 1px solid #ddd;
  border-radius: 12px;
  background-color: #ffffff;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s;
}

#komentarList > div:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* Sembunyikan komentar setelah ke-3 */
#komentarList:not(.expanded) > div:nth-child(n+4) {
  display: none;
}

/* Tombol toggle komentar lebih cantik */
#toggleKomentarBtn {
  display: inline-block;
  margin-top: 20px;
  background-color: #11338f;
  color: white;
  padding: 10px 25px;
  border-radius: 25px;
  font-size: 14px;
  border: none;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

#toggleKomentarBtn:hover {
  background-color: #0d2c7a;
}

/* Responsive */
@media (max-width: 900px) {
  #komentarList {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  #komentarList {
    grid-template-columns: 1fr;
  }
}



.modern-footer {
  background: #003388;
  color: white;
  padding: 40px 20px;
  font-family: 'Inter', Arial, sans-serif;
  margin-top: 50px;
}

.footer-icon {
  width: 170px;
  height: 50px;
  margin-bottom: 15px;
}

.footer-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 25px;
}

.footer-column h3,
.footer-column h4 {
  margin-bottom: 15px;
  font-weight: 700;
}

.footer-column ul {
  list-style: none;
  padding: 0;
}

.footer-column ul li a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  font-size: 0.9em;
  transition: color 0.3s ease;
}

.footer-column ul li a:hover {
  color: white;
}

.footer-bottom {
  margin-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  align-items: center;
}

.footer-bottom p {
  margin: 0;
}

.store-badges img {
  height: 40px;
  margin-left: 10px;
  transition: transform 0.3s ease;
}

.store-badges img:hover {
  transform: scale(1.05);
}

/* Responsive */
@media (max-width: 768px) {
  .header-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 15px 20px;
  }

  .logo-area {
    padding-left: 0;
  }

  .contact-mini {
    justify-content: flex-start;
    flex-wrap: wrap;
    font-size: 13px;
    gap: 12px;
  }

  .contact-item img {
    width: 14px;
    height: 14px;
  }

  .hero-header {
    padding: 20px 15px;
    text-align: center;
  }

  .logo-area {
    text-align: center;
    padding-left: 0;
    margin: 0 auto 30px auto;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .logo-qalibee {
    margin: 0 auto;
    display: block;
  }

  .hero-left {
    text-align: center;
    padding-top: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }

  .hero-left h1 {
    font-size: 2.2em;
    text-align: center;
    margin: 0 auto 20px auto;
  }

  .hero-left p {
    text-align: center;
    max-width: 100%;
    margin: 0 auto 30px auto;
  }

  .hero-container {
    flex-direction: column;
    gap: 30px;
    text-align: center;
    align-items: center;
    justify-content: center;
  }

  .hero-right {
    text-align: center;
    order: -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
  }

  .hero-right h2,
  .hero-right div,
  .hero-right small {
    text-align: center;
    margin: 6px auto;
    display: block;
  }

  #countdown {
    text-align: center;
    display: block;
    margin: 8px auto;
  }

  .quran-button-container {
    text-align: center !important;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
  }

  .quran-button-container.align-left,
  .quran-button-container.align-right {
    text-align: center !important;
    justify-content: center !important;
  }

  .quran-highlight {
    max-width: 280px;
    padding: 10px 16px;
    margin: 0 auto;
  }

  .menu-wrapper {
    grid-template-columns: repeat(2, 1fr); /* Jadi 2 kolom di HP */
    gap: 20px;
    padding: 0 20px;
  }

  .menu-box {
    width: 100%;
    height: 140px;
    padding: 20px;
  }

  .menu-icons {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
  }
    .menu-icons h2 {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .hero-header {
    padding: 20px 15px;
    text-align: center;
  }

  .hero-header h1 {
    font-size: 24px;
  }

  .logo-area {
    margin: 0 auto 20px auto;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
  }

  .logo-qalibee {
    width: 120px;
    margin: 0 auto;
    display: block;
  }

  .hero-left {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
  }

  .hero-left h1 {
    font-size: 1.8em;
    text-align: center;
    line-height: 1.2;
    margin: 0 auto 15px auto;
  }

  .hero-left p {
    font-size: 0.95em;
    text-align: center;
    padding: 0 10px;
    margin: 0 auto 25px auto;
  }

  .hero-right {
    padding: 0 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 100%;
  }

  .hero-right h2 {
    font-size: 1.1em;
    text-align: center;
    margin: 5px auto;
  }

  .hero-right div {
    text-align: center;
    margin: 8px auto;
  }

  .hero-right small {
    text-align: center;
    margin: 5px auto;
  }

  #countdown {
    font-size: 1.1em;
    text-align: center;
    display: block;
    margin: 8px auto;
  }

  .quran-button-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    text-align: center;
  }

  .quran-highlight {
    max-width: 250px;
    padding: 8px 14px;
    margin: 0 auto;
  }

  .quran-highlight-text h4 {
    font-size: 1em;
  }

  .quran-highlight-text small {
    font-size: 0.75em;
  }

  .menu-wrapper {
    grid-template-columns: repeat(2, 1fr); /* Jadi 2 kolom di HP */
    gap: 20px;
    padding: 0 20px;
  }

  .menu-box {
    width: 100%;
    height: 140px;
    padding: 20px;
  }

}

@media (max-width: 360px) {
  .hero-left h1 {
    font-size: 1.6em;
  }

  .quran-highlight {
    max-width: 230px;
    font-size: 14px;
    padding: 8px 12px;
  }

  .menu-box {
    height: 130px;
    padding: 15px;
  }
}


/* Additional styling untuk konsistensi */
.hero-quran * {
  text-decoration: none !important;
  border-bottom: none !important;
}