@import url("https://fonts.googleapis.com/css2?family=Amiri:wght@400;700&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Tajawal:wght@400;700&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Reem+Kufi:wght@500;700&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Scheherazade+New:wght@400;700&display=swap");

/* ---------- Islamic-themed top navbar ---------- */
#layout-navbar.layout-navbar {
  background-color: #0f5132 !important;
  background-image:
    linear-gradient(135deg, rgba(15, 81, 50, 0.72) 0%, rgba(20, 108, 67, 0.65) 45%, rgba(25, 135, 84, 0.72) 100%),
    url("../img/backgrounds/page-back.svg") !important;
  background-repeat: no-repeat, repeat !important;
  background-size: cover, 420px auto !important;
  background-position: center, center !important;
  background-blend-mode: normal, soft-light;
  box-shadow: 0 2px 14px rgba(15, 81, 50, 0.35) !important;
  border-bottom: 3px solid #d4af37;
  padding-top: 0.75rem !important;
  padding-bottom: 0.75rem !important;
  min-height: 76px;
}

#layout-navbar.layout-navbar .navbar-brand,
#layout-navbar.layout-navbar .app-brand {
  min-height: auto !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

#layout-navbar .app-brand-text,
#layout-navbar .app-brand-link,
#layout-navbar .app-brand-link i,
#layout-navbar .nav-link,
#layout-navbar .nav-item i {
  color: #fdfaf2 !important;
}

#layout-navbar .app-brand-text {
  font-family: "Reem Kufi", "Amiri", "Tajawal", serif;
  font-size: 1.65rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
}

#layout-navbar .app-brand-link {
  align-items: center;
  line-height: 1.2;
}

/* Card header gradient for index pages */
.card-action > .card-header {
  background: linear-gradient(180deg, rgb(43 138 82 / 10%) 0%, rgb(255 255 235 / 0%) 100%);
}

/* Page/card title with rub-el-hizb ornaments and brand green color */
.card-action .card-action-title .card-title {
  color: #146c43;
  font-family: "Reem Kufi", "Amiri", "Tajawal", serif;
  font-size: 1.65rem;
  font-weight: 700;
  letter-spacing: 0.3px;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}

.card-action .card-action-title .card-title::before,
.card-action .card-action-title .card-title::after {
  content: "\06DE";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: "Scheherazade New", "Amiri", "Traditional Arabic", serif;
  font-size: 1.5rem;
  line-height: 1;
  color: #d4af37;
  opacity: 0.95;
}

/* GridView summary aligned to the far left of the card */
.grid-view .summary {
  float: left;
  margin: 0 0 0.75rem 0 !important;
  padding: 0.35rem 0.85rem;
  background: rgba(20, 108, 67, 0.08);
  color: #146c43;
  font-weight: 500;
  border-radius: 999px;
  font-size: 0.85rem;
}

.grid-view::after {
  content: "";
  display: block;
  clear: both;
}

#layout-navbar .app-brand-logo svg,
#layout-navbar .app-brand-logo img {
  filter: brightness(0) invert(1);
}

#layout-navbar .navbar-fingerprint-avatar img {
  filter: brightness(0) invert(1);
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.auth-brand-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.auth-brand-logo img {
  width: 96px;
  height: auto;
  /* Tint to brand green */
  filter: brightness(0) saturate(100%) invert(28%) sepia(45%) saturate(800%) hue-rotate(105deg) brightness(95%) contrast(90%);
}

.dropdown-fingerprint-avatar img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  /* Tint to brand green so it remains visible on white dropdown background */
  filter: brightness(0) saturate(100%) invert(28%) sepia(45%) saturate(800%) hue-rotate(105deg) brightness(95%) contrast(90%);
}

#layout-navbar .app-brand-logo {
  overflow: visible !important;
  height: auto !important;
  width: auto !important;
  max-width: none !important;
  display: flex !important;
  align-items: center;
  flex: 0 0 auto;
}

#layout-navbar .app-brand-logo .brand-logo-img {
  height: 44px;
  width: auto;
  max-width: none;
  display: block;
  max-height: none;
}

.bg-home {
  background-image: url(../img/backgrounds/page-back.svg);
  background-position: top;
  background-size: cover;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

body {
  font-family: Tajawal;
}
.amiri {
  /* font-family: 'Amiri Quran' !important; */
  font-family: "Amiri" !important;
  font-size: larger;
  line-height: 2.6em;
}

.cursor {
  cursor: pointer;
}

.form-group {
  margin-top: 10px;
}

.control-label::after {
  content: ": ";
}

.form-switch .form-check-input {
  width: 4em !important;
  margin-left: 0.5em !important;
}

/* .form-check-input {
  height: 2em !important;
} */
.form-check label {
  color: transparent;
}

.ms-auto {
  margin-left: 0 !important;
}

/* .bg-menu-theme.menu-horizontal {
  background-color: rgba(255, 255, 255, 0.50) !important;
  box-shadow: none;
} */
.text-h1 {
  font-size: 6rem !important;
  font-weight: 500;
  line-height: 7rem;
  text-transform: none !important;
}
.summary,
.pagination {
  margin-right: 1rem !important;
  margin-left: 1rem !important;
}
.text-hero {
  font-size: 8em;
}
.text-shadow {
  text-shadow: 5px 3px 5px #999;
}

.note-btn-group button {
  border-radius: 0 !important;
  border-color: transparent !important;
  background-color: transparent !important;
  border-right: none !important;
  border-left: none !important;
  box-shadow: none !important;
  padding: 0.5rem !important;
}

.card-brick {
  background-color: rgba(256, 256, 256, 0.6);
  cursor: pointer;
  transition: transform 0.2s; /* Animation */
}

.card-brick:hover {
  transform: scale(1.05);
}

.card-brick::after {
  position: absolute;
  bottom: 10px;
  left: 10px;
  content: attr(data-name) " ";
  font-size: 6rem;
  font-weight: 800;
  line-height: 80px;
  opacity: 0.2;
  z-index: -1;
  transition: filter 0.2s; /* Animation */
}

.card-brick:hover:after {
  opacity: 0.1;
  filter: blur(4px);
}

.chapter-title {
  font-size: 1.05em;
  font-weight: bold;
}

.question-title {
  font-size: 1.02em;
  font-weight: bold;
}

.question-link {
  font-weight: 200;
}

.comment-title {
  font-size: 0.9em;
  font-weight: bold;
}

#loading-div {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(128, 128, 128, 0.5);
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
}

.ti-xxl {
  font-size: 8em;
}

.table th {
  letter-spacing: normal !important;
}
.card-dropdown {
  display: none;
}
@media only screen and (max-width: 500px) {
  .card-inlinelist {
    display: none;
  }
  .card-dropdown {
    display: block;
  }
  .card-dropdown .card-buttons {
    width: 90%;
    margin: 5px;
    justify-content: start;
  }
}

.select2-container--krajee-bs5 .select2-selection--single {
  background-position: right 0.75rem center !important;
}
.select2-container[dir="rtl"]
  .select2-selection--single
  .select2-selection__rendered {
  padding-right: 20px !important;
  padding-left: auto !important;
}

.ti-xxl {
  font-size: 6em;
}
