/*
Project         :  Hedayat
Version         :  0.1
Author          :  Rowad
Developer       :  Kareem Sultan (HTML-CSS)
Framework       :  Bootstrap 5
Date            :
*/

/* ============================================ *

 * Contents

 1- ROOT
 2- FONT
 3- HEADINGS - TEXT-SIZE - TEXT-COLOR
 4- FRAMEWORK
 5- BODY
 6- NAVBAR
 7- CONTAINER
 8- MAIN SECTION
 9- MODAL
 10- HERO
 11- ABOUT
 12- CARDS
 13- CATEGORY
 14- CATEGORIES PAGE
 15- BACK TO TOP BUTTON
 16- MEDIA QUERIES

 * ============================================ */

/* ============================================ *
 * ROOT
 * ============================================ */

:root {
  --black: #2a2a2a;
  --white: #FFFFFF;
  --dark: #21201e;
  --bright-gray: #363F4D;
  --main-bg: #ceb87c;
  --secondary-bg: #faf8f2;
  --primary-bg: #f7f0e4;
  --primary-bg-2: #eae1c8;
  --brown-bg: #766d57;
  --brown-bg-2: #444444;
  --gray: #EEEEEE;
  --gray-200: #e5e7eb;
  --gray-500: #d5d5d5;
  --orange-light: #ffa473;
  --orange: #FF6D1F;
}

/* ============================================ *
 * DARK LIGHT SWITCHER
 * ============================================ */

/* .theme-toggle.theme-toggle--reversed .theme-toggle__expand {
  transform: scale(-1, 1)
}

.theme-toggle {
  --theme-toggle__expand--duration: 500ms
}

.theme-toggle__expand g circle,
.theme-toggle__expand g path {
  transform-origin: center;
  transition: transform calc(var(--theme-toggle__expand--duration) * .65) cubic-bezier(0, 0, 0, 1.25) calc(var(--theme-toggle__expand--duration) * .35)
}

.theme-toggle__expand :first-child path {
  transition-property: transform, d;
  transition-duration: calc(var(--theme-toggle__expand--duration) * .6);
  transition-timing-function: cubic-bezier(0, 0, 0.5, 1)
}

.theme-toggle input[type=checkbox]:checked~.theme-toggle__expand g circle,
.theme-toggle--toggled:not(label).theme-toggle .theme-toggle__expand g circle {
  transform: scale(1.4);
  transition-delay: 0s
}

.theme-toggle input[type=checkbox]:checked~.theme-toggle__expand g path,
.theme-toggle--toggled:not(label).theme-toggle .theme-toggle__expand g path {
  transform: scale(.75);
  transition-delay: 0s
}

.theme-toggle input[type=checkbox]:checked~.theme-toggle__expand :first-child path,
.theme-toggle--toggled:not(label).theme-toggle .theme-toggle__expand :first-child path {
  d: path("M-9 3h25a1 1 0 0017 13v30H0Z");
  transition-delay: calc(var(--theme-toggle__expand--duration) * 0.4);
  transition-timing-function: cubic-bezier(0, 0, 0, 1.25)
}

@supports not (d:path("")) {

  .theme-toggle input[type=checkbox]:checked~.theme-toggle__expand :first-child path,
  .theme-toggle--toggled:not(label).theme-toggle .theme-toggle__expand :first-child path {
    transform: translate3d(-9px, 14px, 0)
  }
}

.theme-toggle {
  border: none;
  background: 0 0;
  cursor: pointer
}

.theme-toggle input[type=checkbox] {
  display: none
}


@media (prefers-reduced-motion:reduce) {
  .theme-toggle:not(.theme-toggle--force-motion) * {
    transition: none !important
  }
} */

/* ============================================ *
 * FONT
 * ============================================ */

@font-face {
  font-family: 'Janna';
  font-style: normal;
  font-weight: normal;
  src: url('../fonts/Janna-regular.woff') format('woff');
}

@font-face {
  font-family: 'Janna';
  font-style: normal;
  font-weight: 700;
  src: url('../fonts/Janna-bold.woff') format('woff');
}

@font-face {
  font-family: 'Hafs';
  font-style: normal;
  font-weight: normal;
  src: url('../fonts/hafs.woff') format('woff');
}

@font-face {
  font-family: 'Mada';
  font-style: normal;
  font-weight: normal;
  src: url('../fonts/mada-regular.woff2') format('woff2');
}

@font-face {
  font-family: 'Mada';
  font-style: normal;
  font-weight: 700;
  src: url('../fonts/mada-bold.woff2') format('woff2');
}

.ff_hafs {
  font-family: 'Hafs', sans-serif;
}

.ff_janna {
  font-family: 'Janna', sans-serif;
}

/* ============================================ *
 * HEADINGS - TEXT-SIZE - TEXT-COLOR
 * ============================================ */

h1,
h2,
h3,
h4,
h5,
h6,
p {
  line-height: 150%;
  margin-bottom: 0;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 700;
}

h1,
.heading_lg {
  font-size: 3rem;
}

h2,
.heading_md {
  font-size: 2.25rem;
}

h3,
.heading_sm {
  font-size: 2rem;
}

h4,
.heading_xs {
  font-size: 1.5rem;
}

h6,
.heading_xxs,
.text_xl {
  font-size: 1.25rem;
}

.text_lg {
  font-size: 1.125rem;
}

.text_base,
.title_secondary {
  font-size: 1rem;
}

.text_sm {
  font-size: 0.875rem;
}

.text_xs {
  font-size: 0.75rem;
}

.text_xxs {
  font-size: .625rem;
}

.text_orange {
  color: var(--orange);
}

.text_orange_light {
  color: var(--orange-light);
}

.radio_item_container,
.radio_item_container label {
  display: flex;
}

.radio_item_container {
  flex-direction: column;
  gap: .75rem;
}

.radio_item_container label {
  align-items: center;
  flex: 1;
  justify-content: space-between;
  border: 1px solid var(--gray-200);
  border-radius: 50rem;
  padding: .5rem .75rem .5rem .5rem;
  background-color: #fffaf2;
}

.radio_item_container label:hover {
  border-color: rgba(83, 45, 8, 0.459);
  background-color: #fff6e0;
}

.radio_item_container label,
.radio_item_container input {
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.radio_item_container input,
.radio_item_container input:after,
.radio_item_container input:checked:after,
.radio_item_container input:checked:before {
  display: inline-block;
}

.radio_item_container input {
  position: relative;
  appearance: none;
  width: 1.25rem;
  min-width: 1.25rem;
  height: 1.25rem;
  min-height: 1.25rem;
  text-align: left;
}

.radio_item_container input:after,
.radio_item_container input:checked:after,
.radio_item_container input:checked:before {
  content: "";
}

.radio_item_container input:checked {
  visibility: visible;
}

.radio_item_container input:after,
.radio_item_container input:checked:after {
  height: 100%;
  width: 100%;
}

.radio_item_container input:after,
.radio_item_container input:checked:before {
  border-radius: 50%;
}

.radio_item_container input:after {
  border-width: 2px;
  border-style: solid;
  border-color: rgba(83, 50, 17, 0.678);
}

.radio_item_container input:checked:after {
  background: transparent url(../img/checked-sepia.svg) no-repeat center center;
  border: none;
}

audio.audio_card::-webkit-media-controls-enclosure {
  border-radius: 0;
  background-color: transparent;
}

audio.audio_card {
  background-color: var(--white);
}

audio.audio_card::-webkit-media-controls-play-button {
  z-index: 1;
}

.audio_card {
  position: absolute;
  top: 50%;
  right: -255px;
  transform: translate(0, -50%);
}

/* ============================================ *
 * FRAMEWORK
 * ============================================ */

.flex_center {
  display: flex;
  justify-content: center;
  align-items: center;
}

.btn,
.btn-check:active+.btn:focus,
.btn-check:checked+.btn:focus,
.btn.active:focus,
.btn:active:focus,
.btn-check:focus+.btn,
.btn:focus,
.btn:hover,
.btn:active,
.btn:active:focus,
.form-control,
.form-control:focus,
.form-check-input:focus,
.form-control.is-valid,
.form-control.is-valid:focus,
.form-select,
.form-select:focus {
  box-shadow: none !important;
  border: none;
  color: inherit;
}

.form-select {
  background-position: left 1rem center;
}

.form-control,
.form-control:focus,
.form-check-input:focus {
  background-color: transparent;
  padding: 0;
  height: 100%;
  font-size: 0.875rem;
}

.btn {
  padding: 0;
  position: relative;
  border-radius: 0;
  border-top-right-radius: 1rem;
  border-bottom-left-radius: 1rem;
}

.btn_primary {
  padding: .5rem .75rem;
  background-color: #ffa473;
  color: var(--dark);
}

.btn_primary:hover,
.btn_primary:focus,
.nav-tabs .nav-link.active,
.nav-tabs .nav-link:hover,
.nav-tabs .nav-item.show .nav-link {
  background-color: var(--black) !important;
  color: var(--white) !important;
  border-color: var(--black);
}

.btn_outline {
  border: 1px solid var(--main-bg) !important;
}

.btn_outline:hover,
#search_nav_form_btn:hover {
  background-color: var(--primary-bg);
}

a {
  color: initial;
  text-decoration: none;
}

.circle,
.square {
  min-width: 2rem;
  width: 2rem;
  max-width: 2rem;
  min-height: 2rem;
  height: 2rem;
  max-height: 2rem;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
  font-size: 0.875rem;
  position: relative;
  overflow: hidden;
}

.square {
  border-radius: 0.5rem;
}

.circle_lg,
.square_lg {
  min-width: 2.5rem;
  width: 2.5rem;
  max-width: 2.5rem;
  min-height: 2.5rem;
  height: 2.5rem;
  max-height: 2.5rem;
}

.xy_center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

/* ============================================ *
 * SCROLLBAR
 * ============================================ */

.scroll {
  direction: ltr;
  overflow: auto;
}

.scroll>* {
  direction: rtl;
}

.scroll_left {
  direction: rtl;
}

.scroll_left>* {
  direction: ltr;
}

.scroll::-webkit-scrollbar {
  width: 6px;
}

.scroll::-webkit-scrollbar-thumb {
  background-color: var(--brown-bg);
  -webkit-border-radius: 0.5rem;
  border-radius: 0.5rem;
}

.scroll::-webkit-scrollbar-track {
  background-color: #f0e6dc;
}

/* ============================================ *
 * BODY
 * ============================================ */

body {
  font: 400 1rem / 1.35 "Janna", sans-serif;
  color: var(--dark);
  scroll-behavior: smooth;
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* ============================================ *
 * NAVBAR
 * ============================================ */

#navbar {
  padding: 2rem 0 1rem;
  transition: transform .6s ease, background-color .6s ease, padding .6s ease, box-shadow .5s ease;
}

#navbar:not(.scroll-down).nav-bg {
  background-color: #f9f0e8;
  box-shadow: 0px 3px 20px 0px rgba(0, 0, 0, 0.09);
  padding-top: 1rem;
}

#navbar.scroll-down {
  transform: translateY(calc(-100% - 2rem));
  box-shadow: none;
}

.dropdown-toggle::after {
  display: none;
}

.navbar-toggler {
  padding: .5rem .5rem;
  border-radius: .5rem;
}

.navbar-nav .nav-link {
  padding: 0.5rem 1rem !important;
}

.navbar-nav .nav-link,
.nav-link.dropdown-toggle {
  color: var(--dark) !important;
  border-top-right-radius: 1rem;
  border-bottom-left-radius: 1rem;
  min-width: 5rem;
  text-align: center;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  background-color: var(--orange-light) !important;
}

.nav-link.dropdown-toggle {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: .5rem;
}

.nav-link.dropdown-toggle:hover,
.nav-link.dropdown-toggle.show {
  background-color: var(--orange-light);
}

.dropdown-menu {
  border-top-right-radius: 2rem;
  border-bottom-left-radius: 2rem;
  border-top-left-radius: 0;
  border-bottom-right-radius: 0;
  border-color: #EEEEEE;
  padding: 1rem 1rem 1rem .75rem;
  min-width: 300px;
  background: #f0e6dc url(../img/dropdown-bg.png) no-repeat center center / cover;
}

.dropdown-menu ul {
  padding-inline: 0 0.5rem;
  display: flex;
  flex-direction: column;
  margin-inline-end: -0.75rem;
  max-height: 400px;
  margin-bottom: 0;
}

.radio_card,
.radio_card label {
  display: flex;
}

.dropdown-menu .radio_card {
  color: #21201e;
  text-align: start;
}

.radio_card label {
  padding: 1rem 0.75rem;
  align-items: center;
  flex: 1;
  justify-content: space-between;
  cursor: pointer;
  border-bottom: .5px solid #efdbbf;
  transition: all .1s ease-in-out;
  margin: .125rem 0;
}

.search_input_container,
.radio_card label {
  border-top-right-radius: 1.25rem;
  border-bottom-left-radius: 1.25rem;
  border-top-left-radius: 0;
  border-bottom-right-radius: 0;
}

.radio_card label .label_text {
  color: var(--black);
}

.radio_card input,
.radio_card input:after,
.radio_card input:checked:after,
.radio_card input:checked:before {
  content: "";
  display: inline-block;
}

.radio_card input {
  position: relative;
  width: 1.25rem;
  height: 1.25rem;
  text-align: left;
}

.radio_card:has(input:checked) .primary_label,
.radio_card:hover .primary_label {
  background-color: var(--orange-light) !important;
}

.radio_card input:after,
.radio_card input:checked:after {
  height: 100%;
  width: 100%;
  background-color: #f2e8de;
  border-radius: 50%;
}

.radio_card input:checked:after,
.radio_card input:after {
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

.radio_card input:after {
  background-image: url(../img/unchecked.svg);
}

.radio_card input:checked:after {
  background-image: url(../img/checked.svg);
}

.nav-item.dropdown {
  transition: all .5s ease !important;
  margin-left: 0;
}

.search_input_container {
  background-color: var(--white);
  padding-block: .25rem;
  padding-inline: 1rem .25rem;
  height: 3rem;
}

.search_input_container .btn {
  display: flex;
  height: 100%;
  width: 3rem;
  border-radius: 10px;
}

.search_input_container .btn:hover {
  background-color: #f0e6dc !important;
}

.search_input_container input {
  padding-inline-end: .5rem !important;
}

@media (min-width: 1400px) {

  .container-xxl,
  .container-xl,
  .container-lg,
  .container-md,
  .container-sm,
  .container {
    max-width: 1320px;
  }
}

/* ============================================ *
 * MAIN SECTION
 * ============================================ */

main {
  position: relative;
  z-index: 2;
}

section {
  padding: 5rem 0;
  background-color: rgba(63, 85, 15, 0.071);
}

.section_title {
  color: #6a6a69;
}

.section_title h2 {
  color: #505050;
}

/* ============================================ *
 * MODAL
 * ============================================ */

.modal-content {
  border-radius: 2rem;
  border-color: #EEEEEE;
  padding: 1rem 1rem 1rem .75rem;
  min-width: 300px;
  background: #f0e6dc url(../img/dropdown-bg.png) no-repeat center center / cover;
}

#card_details_modal .modal-dialog {
  max-width: 800px !important;
}

.copy_url {
  padding: .5rem;
  border: 1px solid #9b9b9b;
  border-radius: 0.5rem;
}

.link_url {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  direction: ltr;
}

.card_details {
  height: 100%;
}

.lang_list_container {
  box-shadow: 0px 0px 14px 0px rgba(103, 103, 103, 0.2);
  padding: 1rem;
  border-radius: 1.25rem;
  border-top-left-radius: 1rem;
  border-top-right-radius: 1rem;
  background: #ffedd6;
  background: #ffedd6 url(../img/dropdown-bg.png) no-repeat center center / cover;
  border: 1px solid #cbcbcb;
  position: relative;
  overflow: hidden;
  max-height: 535px;
}

.lang_list {
  max-height: 332px;
  padding-right: 0;
  padding-left: .5rem;
  margin-bottom: 0;
}

.lang_list_container .lang_list {
  max-height: 300px;
}

.lang_list_container .search_input_container {
  background-color: var(--white);
}

.lang_list .radio_card {
  direction: rtl;
}

.social_share {
  padding-bottom: 4rem;
}

.download_btn {
  padding: .625rem;
  border-radius: 0;
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
}

/* ============================================ *
 * HERO
 * ============================================ */

.hero {
  height: 100vh;
  padding: 12rem 0 0;
  overflow: hidden;
  background-image: linear-gradient(135deg, #fdfcfb 0%, #e2d1c3 100%);
  background: url(../img/hero-bg.svg) no-repeat center center / cover, linear-gradient(135deg, #fdfcfb 0%, #ffffff 100%);
}

.overlay {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1;
}

.body_overlay {
  background: url(../img/hero-bg-8.png) repeat center center / contain;
}

.hero .overlay {
  background: url(../img/hero-bg.png) no-repeat center center / cover;
  position: fixed;
}

.hero .container-lg {
  z-index: 2;
}

.logos_slider {
  display: inline-flex;
  flex-direction: row;
  align-items: flex-start;
  justify-content: center;
  gap: 1rem;
  position: relative;
  overflow: hidden;
  max-height: 500px;
  margin-right: auto;
  border-radius: 1rem;
  z-index: 2;
}

.logos_slider::before,
.logos_slider::after {
  content: '';
  display: block;
  position: absolute;
  z-index: 1;
  left: 0;
  width: 100%;
  height: 5rem;
}

.logos_slider::before {
  top: 0;
  background: linear-gradient(to bottom, #f2fbf3 0, rgb(0 0 0 / 0%) 100%)
}

.logos_slider::after {
  bottom: 0;
  background: linear-gradient(to top, #eafcf1 0, rgb(241 233 226 / 0%) 100%);
}

.logos_list {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: stretch;
  gap: 1.5rem;
}

.logos_list_right {
  animation: verSlide 200s linear 0s infinite;
}

.logos_list_left {
  animation: verSlideReverse 200s linear 0s infinite;
}

.logos_list_right:hover,
.logos_list_left:hover {
  animation-play-state: paused;
}

@keyframes verSlide {
  0% {
    transform: translateY(-50%)
  }

  to {
    transform: translateY(0)
  }
}

@keyframes verSlideReverse {
  0% {
    transform: translateY(-80%)
  }

  to {
    transform: translateY(0)
  }
}

.logo_item {
  border: 1px solid rgba(136, 189, 246, 0.12);
  max-width: 220px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.logo_item img {
  width: 100%;
  transition: all .3s ease-out;
  line-height: 1;
  opacity: .9;
  border-radius: 1rem;
}

.logo_item:hover img {
  filter: none;
  opacity: 1;
}

/* ============================================ *
 * ABOUT
 * ============================================ */

.about {
  /* background-color: rgba(249, 247, 247, 0.039); */
  position: relative;
  z-index: 3;
}

.features_cards {
  display: flex;
  justify-content: space-between;
  align-items: stretch;
  flex-wrap: wrap;
  width: 100%;
  gap: 1rem;
  position: relative;
}

.feature_card {
  width: calc(50% - 10px);
}

.radius_card {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: .6rem;
  background-color: #fffde9;
  color: #505050;
  border: 1px solid #e1e1e1;
  box-shadow: 0px 0px 18px 0px rgba(0, 0, 0, 0.031);
  padding: 1.5rem 1.4rem;
  border-top-right-radius: 1.875rem;
  border-bottom-left-radius: 1.875rem;
  position: relative;
  z-index: 2;
  text-align: start;
}

.radius_card .icon {
  max-width: 50px;
}

.radius_card .icon img {
  width: 100%
}

.radius_card .text_info h3 {
  margin-bottom: .5rem;
}

/* ============================================ *
 * CARDS
 * ============================================ */

.nav-tabs {
  display: inline-flex;
  justify-content: center;
  border-bottom: 0;
  padding: 0;
  gap: 1.25rem;
  margin-top: 1rem;
  margin-bottom: 1rem;
}

.nav-tabs .nav-link {
  min-width: 5rem;
  color: var(--dark) !important;
  border-top-right-radius: 1rem;
  border-bottom-left-radius: 1rem;
  padding: .5rem .75rem;
  background-color: #ffa473;
}

.tab-content {
  margin-top: 1rem;
}

.tab-pane {
  text-align: center;
}

.more_btn {
  margin-top: -2rem;
  position: relative;
  z-index: 1;
}

.hedayat_card {
  overflow: hidden;
  background-color: #fffde9;
  border: 1px solid #d8d8d8;
  padding: .5rem;
  border-radius: 1.75rem;
  transition: all .3s ease;
}

.hedayat_card:hover {
  background-color: #ffe6cb;
}

.card_img {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  min-height: 30rem;
  max-height: 30rem;
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  border-radius: 1.25rem;
}

.card_details .card_img {
  height: 100%;
  max-height: 100%
}


.container > .row > [class*='col'] > .hedayat_card .card_img {
  min-height: 45rem;
  max-height: 50rem;
}

.card_details .card_img {
  display: flex;
  height: 100%;
  max-height: none;
  min-height: 535px;
}

#background_options .btn_primary {
  background-color: var(--orange-light);
  line-height: 2rem;
}

.hedayat_card:hover .card_img>img {
  transform: scale(1.1);
}

.card_text_container {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  font-family: "Mada", sans-serif;
  z-index: 2;
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: flex-end;
}

.qout_card .card_text_container {
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
}

.surah_name {
  font-family: "Janna", sans-serif;
  font-weight: bold;
  line-height: 90%;
}

.ayah_text {
  display: block;
}

.card_logo,
.card_details .card_main_text .card_logo {
  max-width: 3.75rem;
  margin: 0 auto;
}

.card_details .surah_name {
  font-size: 1rem !important;
  font-weight: bold;
}

.card_main_heading {
  font-size: 1.75rem;
  line-height: 120%;
}

.card_details .card_main_heading {
  font-size: 2.125rem;
  line-height: 120%;
}

.ayah_card .card_main_heading,
.hadith_card .card_main_heading {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  font-size: 1.75rem;
  flex-grow: 1;
}

.card_details.ayah_card .card_main_heading,
.card_details.hadith_card .card_main_heading {
  align-items: flex-end;
  height: auto;
  max-height: none;
  overflow: visible;
}

.card_info_heading {
  font-size: .875rem;
  margin-top: .5rem;
}

.card_details .card_info_heading {
  font-size: 0.875rem;
}

.hedayat_card .lang_qr,
.card_details .lang_qr {
  padding: .25rem;
  background: #fffde9;
  border-radius: .5rem;
  border: 1px solid #b3b3b3;
  margin: auto;
  width: fit-content;
}

.qout_card .lang_qr {
  margin: 0;
}

.card_heading_explain {
  font-size: 1.125rem;
  line-height: 120%;
}

.ayah_card .card_heading_explain,
.hadith_card .card_heading_explain {
  font-family: "Janna", sans-serif;
  font-weight: normal;
  margin-top: auto;
  padding: .5rem;
  border-radius: .75rem;
  color: var(--dark);
  flex-grow: 1;
}

.card_details.ayah_card .card_heading_explain,
.card_details.hadith_card .card_heading_explain {
  overflow: visible;
}

.card_details .card_heading_explain {
  font-size: 1.125rem;
  max-height: none;
}

.card_text {
  width: 100%;
  padding: 1rem;
  background: linear-gradient(0deg, rgba(13, 0, 0, 0) 0%, rgba(0, 0, 0, 0.41) 50%, rgba(255, 255, 255, 0) 100%);
  position: relative;
}

.qout_card .card_text {
  flex-grow: 1;
}

.card_text::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  filter: blur(40px);
  z-index: 1;
  background: rgba(0, 0, 0, 0.3);
}

.ayah_card .card_text,
.hadith_card .card_text {
  padding: 1rem .5rem .5rem;
  border: 1px solid #e8e8e8;
  border-radius: 1.25rem;
}

.ayah_card .card_text {
  background: linear-gradient(0deg, rgb(246, 247, 242, 0.75) 0%, rgb(255 251 241) 50%, rgba(157, 143, 58, 0.23) 100%);
}

.hadith_card .card_text {
  background: linear-gradient(0deg, rgba(246, 247, 242, 0.7) 0%, rgba(195, 255, 201, 0.13) 50%, rgba(237, 255, 220, 0.86) 100%);
}

.card_details.ayah_card .card_text,
.card_details.ayah_card .card_text_container,
.card_details.hadith_card .card_text,
.card_details.hadith_card .card_text_container {
  position: static;
}

.ayah_card .card_text,
.hadith_card .card_text,
.card_main_text {
  height: 100%;
}

.ayah_card .card_text .card_main_text,
.hadith_card .card_text .card_main_text {
  color: var(--dark);
}

.ayah_card .card_text::before,
.hadith_card .card_text::before {
  display: none;
}

.card_details .card_main_text {
  gap: 1rem;
}

.card_main_text {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  position: relative;
  z-index: 2;
  color: var(--white);
}

.qout_card .card_main_text {
  justify-content: center;
  height: calc(100% - 60px);
}

.card_main_text::-webkit-scrollbar {
  width: 4px;
}

.card_footer {
  padding: .5rem;
}

.card_footer .btn_primary {
  background-color: transparent;
  justify-content: center;
  font-size: .875rem;
  border-width: 1px !important;
  flex-grow: 1;
}

.card_footer .btn_primary img {
  transition: all .3s ease;
}

.btn_primary:hover img,
.btn_primary:focus img {
  filter: brightness(0) invert(1);
  transition: all .3s ease;
}

.owl-theme .owl-nav {
  direction: ltr;
  gap: 1rem;
  display: flex;
  justify-content: end;
  margin-top: 1rem;
}

.owl-theme .owl-nav [class*=owl-]:hover,
.owl-theme .owl-nav [class*=owl-]:focus {
  background: none;
}

/* ============================================ *
 * CATEGORY
 * ============================================ */

.category_card {
  padding: 1rem;
  gap: 1rem;
}

/* ============================================ *
 * CATEGORIES PAGE
 * ============================================ */

.categories #navbar {
  padding: 1rem 0 1rem;
  background: #ffffff;
  border-bottom: 1px solid #d1d1d1;
}

.categories .overlay {
  position: absolute !important;
}

.categories .hero {
  height: auto;
  padding: 10rem 0 8rem;
  background-image: linear-gradient(135deg, #ffa473 0%, #ffffff 100%);
  position: relative !important;
}

.categories_list .nav-pills {
  padding: 1rem;
  border-top-right-radius: 2rem;
  border-bottom-left-radius: 2rem;
  border-top-left-radius: 0;
  border-bottom-right-radius: 0;
  border-color: #EEEEEE;
  background: var(--white) url(../img/dropdown-bg.png) no-repeat center center / cover;
  position: sticky;
  top: 1rem;
  margin-top: 4.375rem;
}

.categories_list .nav-pills .nav-link {
  border-top-right-radius: 1rem;
  border-bottom-left-radius: 1rem;
  border-top-left-radius: 0;
  border-bottom-right-radius: 0;
  padding: .5rem 0.75rem;
  border-bottom: .5px solid #efdbbf;
  transition: all .1s ease-in-out;
  margin: .125rem 0;
  color: var(--dark) !important;
}

.categories_list .nav-pills .nav-link:hover,
.categories_list .nav-pills .nav-link.active,
.categories_list .nav-pills .show>.nav-link {
  background-color: var(--orange-light) !important;
}

.categories_list .card_footer .btn_primary {
  font-size: .75rem;
}

.categories_list .hedayat_card {
  margin: auto;
}

.site_footer {
  padding: 3rem 2rem;
  background-color: #f9f0e8;
  position: relative;
  z-index: 9;
  border-top: 1px solid #e2e2e2;
  margin-top: auto;
}

/* ============================================ *
 * BACK TO TOP BUTTON
 * ============================================ */

.back-to-top {
  position: fixed;
  visibility: hidden;
  opacity: 0;
  right: 15px;
  bottom: 15px;
  z-index: 99999;
  background-color: var(--main-bg);
  width: 40px;
  height: 40px;
  border-radius: 4px;
  transition: all 0.4s;
  padding: .5rem;
}

.back-to-top svg {
  line-height: 0;
  fill: var(--white);
}

.back-to-top:hover {
  background-color: var(--gray-500);
}

.back-to-top.active {
  visibility: visible;
  opacity: 1;
}

.language-radio {
    cursor: pointer;
}

/* ============================================ *
 * MEDIA QUERIES
 * ============================================ */

@media(max-width: 1199px) {
  section {
    padding-top: 3rem;
    padding-bottom: 3rem;
  }
}

@media(max-width: 991px) {

  .hero_title h1.heading_lg {
    font-size: 2rem;
  }

  .ayah_card .card_img,
  .hadith_card .card_img {
    min-height: 25rem;
    max-height: 25rem;
  }
}

@media(max-width: 767px) {

  .navbar {
    padding-top: 1rem;
  }

  #navbar .container-lg {
    padding-top: 0;
    padding-bottom: 0;
  }

  .navbar-collapse {
    border-top-right-radius: 1.5rem;
    border-bottom-left-radius: 1.5rem;
    margin-top: 1rem;
    position: absolute;
    top: 100%;
    background-color: var(--white);
    z-index: 3;
    left: 1rem;
    right: 1rem;
    box-shadow: 0px 0px 15px 0px rgb(83 50 17 / 12%);
  }

  .navbar-nav {
    padding: 1rem !important;
    text-align: center;
    gap: .5rem !important;
  }

  .navbar-nav .nav-link {
    padding: .5rem !important;
    border-bottom: .5px solid #fcf1e2;
  }

  .nav-item.dropdown .dropdown-menu {
    position: fixed;
    bottom: 0;
    top: initial !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    width: 100%;
    max-width: 375px;
    min-width: 200px;
    border: none;
    z-index: 1080;
    box-shadow: none;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    margin: 0;
    height: 100%;
    max-height: fit-content;
    min-height: auto;
  }

  .nav_overlay {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background-color: rgba(0, 0, 0, 0.65);
    z-index: 2;
    display: none;
  }

  .nav-link.dropdown-toggle[aria-expanded="true"]+.nav_overlay {
    display: block;
  }

  h1.heading_lg,
  h1.heading_md {
    font-size: 2rem;
  }

  h2,
  .heading_md {
    font-size: 1.5rem;
  }

  h4,
  .heading_xs,
  .heading_xxs,
  .text_xl {
    font-size: 1.125rem;
  }

  section {
    padding-top: 2rem;
    padding-bottom: 2rem;
  }

  .section_title .heading_lg {
    font-size: 2rem;
  }

  .hero {
    height: auto;
    padding-top: 8rem;
    padding-bottom: 5rem;
  }

  .hero_title {
    text-align: center;
  }

  .tab-content {
    text-align: center;
  }

  .nav-tabs {
    display: flex;
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
  }

  .owl-theme .owl-nav {
    justify-content: center;
  }

  .more_btn {
    margin-top: 1rem;
  }

  #categories_sidebar {
    position: fixed !important;
    top: 0 !important;
    bottom: 0;
    right: -12.5rem;
    left: auto;
    margin-top: 0 !important;
    width: 12.5rem;
    z-index: 9;
    transition: right .5s ease;
  }

  #categories_sidebar .nav-pills {
    margin-top: 0 !important;
    position: absolute;
    top: auto;
    bottom: 0;
    right: 0;
    left: 0;
    z-index: 99;
  }

  #categories_sidebar.active {
    right: 0;
  }

  #categories_sidebar:after {
    content: '';
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    opacity: 0;
    visibility: hidden;
    background-color: rgba(0, 0, 0, .7);
    pointer-events: none;
    transition: opacity .5s ease-in-out, visibility .9s ease-in-out;
  }

  #categories_sidebar.active:after {
    z-index: 10;
    opacity: 1;
    visibility: visible;
  }

  #sidebar_btn_close {
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    border: 1px solid #808080;
    margin-bottom: 1rem;
    margin-right: auto;
  }

  .lang_list_container {
    padding-right: .25rem;
    padding-left: .25rem;
  }

  .lang_list_container .nav-tabs .nav-link {
    min-width: auto;
    padding: .5rem;
  }

  .main_list_cards .row div:nth-child(odd) .hedayat_card {
    margin-inline-start: auto;
    margin-inline-end: 0;
  }

  .main_list_cards .row div:nth-child(even) .hedayat_card {
    margin-inline-end: auto;
    margin-inline-start: 0;
  }

  .card_details .card_main_heading {
    font-size: 1.5rem;
  }

  .ayah_card .card_img,
  .hadith_card .card_img {
    min-height: 20rem;
    max-height: 20rem;
  }

  .ayah_card .card_main_heading,
  .hadith_card .card_main_heading {
    font-size: 1.25rem;
  }
}


@media(max-width:575px) {

  .nav-link.dropdown-toggle {
    padding: .5rem !important;
    min-width: auto;
  }

  .features_cards {
    gap: .5rem;
  }

  .feature_card {
    width: calc(50% - 0.25rem);
  }

  .main_list_cards .hedayat_card {
    margin: auto !important;
  }

  .radius_card {
    padding: .5rem;
    border-top-right-radius: 1rem;
    border-bottom-left-radius: 1rem;
  }

  .radius_card .icon {
    max-width: 36px;
  }
}

@media(max-width: 425px) {
  .modal-body {
    padding: 0;
  }

  .lang_list_container {
    padding-left: .25rem;
    padding-right: .25rem;
  }

  .lang_list_container .nav-tabs .nav-link {
    font-size: .875rem;
  }
}
