body.hadith-bg {
  background: linear-gradient(135deg, #f6f3ea 0%, #e3d7b5 100%);
  min-height: 100vh;
  font-family: 'Poppins', 'Cairo', sans-serif;
  color: #6b4f28;
}
.back-home-btn {
  position: fixed;
  top: 1.2em;
  left: 1.2em;
  z-index: 3000;
  display: flex;
  align-items: center;
  gap: 0.5em;
  background: rgba(255, 248, 232, 0.93);
  color: #e0b84c;
  font-weight: 700;
  font-size: 1.08em;
  border-radius: 2em;
  box-shadow: 0 2px 14px #e0b84c22, 0 1px 6px #67463611;
  padding: 0.55em 1.5em 0.55em 1.1em;
  text-decoration: none;
  border: 2px solid #e0b84c33;
  transition: background 0.18s, color 0.18s, box-shadow 0.18s, transform 0.15s;
  outline: none;
  letter-spacing: 0.01em;
  cursor: pointer;
}
.back-home-btn i {
  font-size: 1.18em;
  margin-right: 0.2em;
}
.back-home-btn:hover, .back-home-btn:focus {
  background: #e0b84c;
  color: #fff8e8;
  box-shadow: 0 4px 18px #e0b84c55;
  transform: scale(1.06);
}
.back-home-btn:active {
  background: #fff8e8;
  color: #e0b84c;
  transform: scale(0.98);
}
.hadith-header {
  text-align: center;
  margin-top: 3.5em;
  margin-bottom: 2em;
}
.hadith-header h1 {
  font-family: 'Scheherazade New', serif;
  font-size: 2.2em;
  color: #b4913e;
  margin-bottom: 0.2em;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.15;
}
.hadith-header p {
  font-size: 1.12em;
  color: #7b6335;
  opacity: 0.92;
}
.hadith-search-bar {
  display: flex;
  justify-content: center;
  margin-bottom: 2em;
  gap: 0.5em;
}
#hadithQuery {
  width: 320px;
  max-width: 80vw;
  padding: 0.7em 1.1em;
  border-radius: 1.6em;
  border: 2px solid #e0b84c55;
  font-size: 1.07em;
  background: #fff8e8cc;
  color: #6b4f28;
  outline: none;
  transition: border 0.18s;
}
#hadithQuery:focus {
  border: 2px solid #e0b84c;
}
#searchHadithBtn {
  background: #e0b84c;
  color: #fff8e8;
  border: none;
  border-radius: 1.6em;
  padding: 0.7em 1.5em;
  font-size: 1.07em;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.18s, color 0.18s;
  outline: none;
  display: flex;
  align-items: center;
  gap: 0.5em;
}
#searchHadithBtn:hover, #searchHadithBtn:focus {
  background: #b4913e;
  color: #fff;
}
.hadith-card {
  max-width: 600px;
  margin: 0 auto 2em auto;
  background: rgba(255, 248, 232, 0.97);
  border-radius: 1.8em;
  box-shadow: 0 4px 24px #e0b84c22, 0 1px 10px #67463611;
  border: 2px solid #e0b84c33;
  padding: 2em 2em 1.5em 2em;
  font-size: 1.08em;
  color: #6b4f28;
  text-align: left;
  min-height: 120px;
  display: flex;
  flex-direction: column;
  gap: 1.2em;
}
.hadith-card .hadith-text {
  font-family: 'Amiri', serif;
  font-size: 1.19em;
  color: #7b6335;
  margin-bottom: 0.3em;
}
.hadith-card .hadith-ref {
  font-size: 1.03em;
  color: #b4913e;
  margin-top: 0.2em;
  text-align: right;
}
.hadith-card .hadith-book {
  font-size: 1.01em;
  color: #8a7a4d;
  margin-bottom: 0.2em;
}
@media (max-width: 768px) {
  .hadith-card {
    max-width: 98vw;
    padding: 1.1em 0.7em 1em 0.7em;
    font-size: 1em;
  }
  .hadith-text, .hadith-book, .hadith-ref {
    font-size: 1em;
    word-break: break-word;
  }
  .back-home-btn {
    font-size: 1em;
    padding: 0.5em 1.1em;
    top: 0.6em;
    left: 0.6em;
  }
  .hadith-header {
    margin-top: 2em;
  }
}

@media (max-width: 480px) {
  .hadith-card {
    font-size: 0.98em;
    padding: 0.7em 0.3em 0.8em 0.3em;
    border-radius: 1em;
  }
  .hadith-text, .hadith-book, .hadith-ref {
    font-size: 0.97em;
  }
  .back-home-btn {
    font-size: 0.98em;
    padding: 0.46em 0.9em;
    top: 0.4em;
    left: 0.4em;
  }
}

@media (max-width: 700px) {
  .hadith-header {
    margin-top: 2em;
  }
  .hadith-card {
    max-width: 98vw;
    padding: 1.1em 0.7em 1em 0.7em;
    font-size: 1em;
  }
  #hadithQuery {
    width: 98vw;
    font-size: 1em;
  }
}
