/*
Project         :  رسالة الحرمين
Version         :  0.1
Author          :  Rowad
Developer       :  Kareem Sultan (HTML-CSS)
Framework       :  Bootstrap 5
Date            :  13/05/2025
*/

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

 * Contents

 1-  ROOT
 2-  FONT
 3-  FRAMEWORK
 4-  BODY
 5-  MODAL
 6-  BTN - FORMS
 7-  ALIGNING
 8-  DROPDOWN - CARD
 9-  RADIO INPUT
 10- HEADINGS - TEXT-SIZE - TEXT-COLOR
 11- SCROLLBAR
 12- CAROUSEL
 13- CONTAINER
 14- HEADER - MAIN - SECTION
 15- NAVBAR
 16- HERO
 17- LANGUAGE
 18- SHARE QR
 19- SUBJECTS
 20- AYAT - HADITH >>>> DELETED >>>>> 29/4/2026
 21- FAQ
 22- ABOUT
 23- BOOK PAGE
 24- AUDIO - VIDEO PAGES
 25- ABOUT PAGE
 26- CONTACT
 27- FOOTER

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

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

:root {
  --primary: #3C7768;
  --secondary: #4B5563;
  --black: #1F2937;
  --white: #ffffff;
  --light-green: rgba(60, 119, 104, 0.04);
  --green-100: rgba(208, 220, 217, 1);
  --green-200: rgba(60, 119, 104, 1);
  --green-50: rgba(60, 119, 104, 0.04);
  --gray-25: #F9FAFB;
  --gray-100: #F3F4F6;
  --gray-200: #E5E7EB;
  --gray-500: #6B7280;
  --yellow-200: #DCB63B;
}

/* ============================================ *
 * 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: 'Lotus';
  font-style: normal;
  font-weight: normal;
  src: url('../fonts/Lotus.woff') format('woff');
}

.ff_lotus {
  font-family: "Lotus", sans-serif;
}

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

body {
  font: 400 1rem / 1.35 "Janna", sans-serif;
  color: var(--black);
  background-color: var(--white);
  /* height: 5000px; */
}

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

.modal-dialog {
  max-width: 610px;
}

.modal-content {
  border-radius: 1.5rem;
  padding: 2.5rem 1.75rem;
  position: relative;
}

.modal-header,
.modal-body,
.modal-footer {
  padding: 0;
  border-bottom: none;
  border-top: none;
  border-bottom-right-radius: 0;
  border-bottom-left-radius: 0;
  border-top-left-radius: 0;
  border-top-right-radius: 0;
}

.modal-body {
  padding-block: 3.125rem;
}

.modal-header .btn-close {
  background-image: url(../img/close.svg);
  padding: 0.125rem;
  margin: 0;
  opacity: 1;
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
}

.text_line {
  background-color: var(--gray-200);
  height: 1px;
  margin-top: 2px;
}

.copy_url {
  padding: 0.75rem 1rem;
  border: 1px solid var(--gray-200);
  border-radius: 0.5rem;
  line-height: 18px;
}

.qr_container {
  width: 155px;
  height: 155px;
}

.qr_container_xl {
  width: 176px;
  min-width: 176px;
  max-width: 176px;
  height: 176px;
  min-height: 176px;
  max-height: 176px;
  padding: 0.5rem;
  border-radius: 1rem;
  border: 1px solid var(--gray-200);
}

#share .modal-dialog {
  max-width: 916px;
}

#share .modal-content {
  background-color: var(--gray-25);
  padding: .5rem .5rem 1rem;
  border: 1px solid var(--gray-200);
}

#share .modal_inner_content {
  border-radius: 1.25rem;
  border: 1px solid var(--gray-200);
  background-color: var(--white);
  overflow: hidden;
}

#share .modal_inner_content .modal-hedaer {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  position: relative;
  padding: 1.5rem;
  background: url(../img/share-header-bg.png) no-repeat center center / cover;
}

#share .logo_circle {
  padding: .25rem;
  background-color: var(--white);
  box-shadow: 0px 0px 0px 1px rgba(0, 0, 0, 0.051),
    0px 1px 2px 0px rgba(0, 0, 0, 0.055),
    0px 2px 6px 0px rgba(0, 0, 0, 0.051);
}

#share .btn_share_close {
  background-color: var(--white);
  box-sizing: border-box;
  border: 1px solid var(--gray-200);
  box-shadow: 0px 2px 8px -1px rgba(13, 13, 18, 0.039);
  position: absolute !important;
  top: 1rem;
  left: 1rem;
  opacity: 1;
  padding: 0;
}

#share .modal_inner_content .modal-hedaer h2 {
  line-height: 100%;
}

#share .modal-body {
  padding: 1.5rem;
}

#share .share_dtails_block {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

#share .bg_btns_container {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
}

#share .bg_btn {
  width: 4rem;
  height: 4rem;
  padding: .375rem;
  border-radius: .75rem;
  background-color: var(--white);
  border: 1px solid transparent;
  transition: all .3s ease-in-out;
}

#share .bg_btn:hover,
#share .bg_btn.active {
  border-color: var(--primary);
  transition: all .3s ease-in-out;
}

#share .btn_bg,
#share .btn_bg img {
  width: 100%;
  height: 100%;
}

.share_container {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1rem;
  padding: 2rem 1.5rem 1rem;
  border-radius: 1rem;
  background: url(../img/share-bg-1.png) no-repeat center center / 100% 100%;
}

.share_container.share_bg_1 {
  background-image: url(../img/share-bg-1.png);
}

.share_container.share_bg_2 {
  background-image: url(../img/share-bg-2.png);
}

.share_container.share_bg_3 {
  background-image: url(../img/share-bg-3.png);
}

.share_container.share_bg_4 {
  background-image: url(../img/share-bg-4.png);
}

.share_container.share_bg_5 {
  background-image: url(../img/share-bg-5.png);
}

.share_container img.logo {
  max-width: 3.5rem;
}

.share_container .share_qr_box {
  display: flex;
  align-items: center;
  gap: 1rem;
  border: 1px solid #D0DCD9;
  border-radius: .5rem;
  padding: .5rem 1rem;
}

.share_container .share_qr_box p {
  width: 100%;
  max-width: 8.125rem;
}

.share_container .qr_square {
  padding: .25rem;
  background-color: var(--white);
  border: 1px solid var(--gray-200);
}

.share_container .share_footer img.logo {
  max-width: 3rem;
}

#share .modal-footer>* {
  margin: 0;
}

#share .modal-footer .btn_primary {
  width: 100%;
  max-width: 16.75rem;
  gap: .5rem;
}

#share .modal-footer .btn.square {
  background-color: var(--white);
  border-radius: .75rem;
  min-width: 48px;
  width: 48px;
  max-width: 48px;
  min-height: 48px;
  height: 48px;
  max-height: 48px;
}

/* ============================================ *
 * BTN - FORMS
 * ============================================ */

.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 {
  box-shadow: none !important;
}

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

.btn {
  padding: 0;
  position: relative;
  border-radius: 0.5rem;
  font-size: 0.875rem;
}

.btn svg path {
  transition: fill 0.15s ease-in-out;
}

.btn_xl {
  padding: 0.7rem 1rem;
}

.btn_lg {
  padding: 0.5rem 2.5rem;
}

.btn_md {
  padding: 0.625rem 1rem;
}

.btn_sm {
  padding: 0.688rem;
}

.btn_xs {
  padding: 0.25rem 1rem;
}

.btn_outline {
  border-color: var(--gray-100);
}

.btn_outline_gray_200 {
  border-color: var(--gray-200);
}

.dropdown-toggle.btn_outline {
  border-color: var(--gray-200);
  color: var(--black);
  font-weight: bold;
}

.dropdown-toggle.btn_outline::after {
  background-image: url(../img/arrow-bottom-sm-black.svg);
  padding: 4px 5px;
}

.btn_black {
  background-color: var(--black);
  border-color: var(--black);
  color: var(--white) !important;
}

.btn_white {
  background-color: var(--white);
  border-color: var(--white);
  color: var(--black);
}

.btn_white:hover,
.btn_white.active {
  background-color: var(--black);
  border-color: var(--black);
  color: var(--white);
}

.btn_light_gray {
  color: var(--secondary);
  background-color: var(--gray-100);
}

.btn_light_gray:hover,
.btn_light_gray.active {
  color: var(--black);
  background-color: var(--white);
  letter-spacing: -0.09px;
  font-weight: bold;
  border-color: var(--gray-200);
}

.btn_yellow {
  background-color: var(--yellow-200);
  border-color: var(--yellow-200);
}

.btn_yellow:hover {
  background-color: var(--primary);
  border-color: var(--primary);
}

.btn_primary {
  background-color: var(--primary);
  color: var(--white);
}

.btn_primary:hover {
  background-color: var(--yellow-200);
  color: var(--primary);
}

.btn_primary:hover svg path {
  fill: var(--primary);
}

.btn_outline_primary {
  border-color: var(--primary);
  color: var(--primary);
  background-color: var(--white);
}

.btn_outline_primary:hover {
  background-color: var(--yellow-200);
  border-color: var(--yellow-200);
  color: var(--primary);
}

.state_light_gray:hover {
  background-color: var(--light-green) !important;
}

.lang_btn {
  padding-block: 0.25rem;
  padding-inline-start: 0.25rem;
  padding-inline-end: 1.5rem;
  color: var(--secondary);
  background-color: var(--gray-100);
  gap: 1rem;
  border: none;
}

.lang_btn .circle {
  box-shadow: 0px 4px 4px 0px rgba(0, 0, 0, 0.04);
}

.lang_btn_lg {
  padding-block: 0.5rem;
  padding-inline-start: 0.5rem;
  gap: 0.5rem;
}

.lang_btn_lg,
.lang_btn_lg .circle {
  border: 1px solid var(--gray-100);
}

.lang_btn_lg:hover {
  background-color: var(--gray-200);
}

.lang_btn_sm {
  padding-inline-end: 0.75rem;
  gap: .5rem;
}

.lang_btns_container .lang_btn,
.lang_btns_container .lang_btn .circle {
  border: 1px solid var(--gray-100) !important;
}

.lang_btns_container .lang_btn,
.lang_btns_container .lang_btn:hover,
.lang_btns_container .lang_btn .circle {
  transition: all .3s ease-in-out;
}

.lang_btns_container .lang_btn:hover,
.lang_btns_container .lang_btn.active {
  border-color: #D0DCD9 !important;
  background: rgba(60, 119, 104, 0.039);
  color: var(--primary);
}

.lang_btns_container .lang_btn:hover .circle,
.lang_btns_container .lang_btn.active .circle {
  background-color: var(--primary) !important;
  color: var(--white);
}

.shadow {
  box-shadow:
    0px 0px 0px 1px rgba(0, 0, 0, 0.05),
    0px 1px 2px 0px rgba(0, 0, 0, 0.05),
    0px 2px 6px 0px rgba(0, 0, 0, 0.05) !important;
}

.shadow_md {
  box-shadow:
    -10px 18px 20px 0px rgba(0, 0, 0, 0.06),
    -3px 4px 11px 0px rgba(0, 0, 0, 0.06),
    -23px 40px 28px 0px rgba(0, 0, 0, 0.03),
    -42px 70px 33px 0px rgba(0, 0, 0, 0),
    -65px 110px 36px 0px rgba(0, 0, 0, 0);
}

.shadow_sm {
  box-shadow: 0px 1px 1.5px 0.1px rgba(22, 25, 36, 0.03) !important;
}

/* ============================================ *
 * ALIGNING
 * ============================================ */

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

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

.line {
  width: 1px;
  background-color: var(--gray-200);
  height: 38px;
}

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

.square_lg {
  min-width: 44px;
  width: 44px;
  max-width: 44px;
  min-height: 44px;
  height: 44px;
  max-height: 44px;
}

.square_xl {
  min-width: 100px;
  width: 100px;
  max-width: 100px;
  min-height: 100px;
  height: 100px;
  max-height: 100px;
}

.circle_md {
  min-width: 38px;
  width: 38px;
  max-width: 38px;
  min-height: 38px;
  height: 38px;
  max-height: 38px;
}

.circle_sm {
  min-width: 34px;
  width: 34px;
  max-width: 34px;
  min-height: 34px;
  height: 34px;
  max-height: 34px;
}

.circle_lg {
  min-width: 48px;
  width: 48px;
  max-width: 48px;
  min-height: 48px;
  height: 48px;
  max-height: 48px;
}

.square {
  border-radius: 0.5rem;
}

.border_bottom {
  border-bottom: 1px solid var(--gray-100);
}

/* ============================================ *
 * DROPDOWN - CARD
 * ============================================ */

.dropdown-menu {
  margin-top: 0.5rem !important;
  padding: 1rem;
  box-shadow: 6px 6px 32px 0px rgba(0, 0, 0, 0.06);
  border-radius: 1rem;
  min-width: 312px;
  background-color: var(--white);
  border: 1px solid var(--gray-200);
  text-align: start;
}

.dropdown-toggle::after {
  background-image: url('../img/arrow-bottom.svg');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  border-top: none;
  border-right: none;
  border-bottom: none;
  border-left: none;
  padding: 6px 8px;
  margin: 0;
}

.dropdown-item.active,
.dropdown-item:active,
.dropdown-item:focus {
  color: initial;
  background-color: initial;
}

.topic_dropdown {
  min-width: 180px;
  padding: 0.6rem;
}

.topic_dropdown .dropdown-item {
  padding: 0.5rem 0.8rem;
  border-radius: 0.5rem;
  cursor: pointer;
}

.topic_dropdown .dropdown-item:hover,
.topic_dropdown .dropdown-item:focus {
  background-color: var(--gray-25);
}

.card {
  text-decoration: none;
  color: initial;
}

/* ============================================ *
 * RADIO INPUT
 * ============================================ */

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

.radio_card_wrapper {
  flex-direction: column;
  max-height: 388px;
  gap: 0.75rem;
  padding-inline: 0 0.5rem;
  margin-block-start: 1rem;
  margin-inline-end: -0.75rem;
}

.search_input_container {
  background-color: var(--gray-25);
  padding-block: 0.312rem;
  padding-inline: 1rem 0;
  border-radius: 0.5rem;
  height: 3rem;
}

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

.radio_card label {
  padding: 0.6rem 0.75rem;
  align-items: center;
  flex: 1;
  justify-content: space-between;
  border-radius: 1rem;
  border: 1px solid var(--gray-200);
}

.radio_card label .label_text {
  color: var(--black);
  padding-inline-start: 1rem;
  font-weight: bold;
  margin-inline-end: auto;
  font-size: 0.875rem;
}

.radio_card .circle {
  background-color: var(--gray-25);
  color: var(--secondary);
  border: 1px solid var(--gray-200);
}

.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;
  appearance: none;
  width: 1.25rem;
  height: 1.25rem;
  text-align: left;
}

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

.radio_card:hover .primary_label .circle,
.radio_card:has(input:checked) .primary_label .circle {
  background-color: var(--light-green);
  color: var(--primary);
  border-color: var(--green-100) !important;
}

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

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

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

/* ============================================ *
 * 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;
}

.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_primary {
  color: var(--primary);
}

.text_secondary,
.title_secondary {
  color: var(--secondary);
}

.text_gray_500 {
  color: var(--gray-500);
}

.text_yellow {
  color: var(--yellow-200);
}

.link_primary {
  color: var(--primary) !important;
  gap: 0.3rem;
  font-weight: bold;
  padding-bottom: 0.01rem;
  border-bottom: 2px solid transparent;
  text-decoration: none;
  transition: border-bottom-color 0.1s ease;
}

.link_primary:hover {
  border-bottom-color: var(--primary);
}

.badge {
  font-size: 0.875rem;
  line-height: 150%;
  color: var(--secondary);
  align-self: center;
  background-color: var(--gray-25);
  font-weight: normal;
  border-radius: 0.5rem;
}

.badge_title {
  font-size: 0.75rem;
  font-weight: bold;
  color: var(--white);
  padding: 0.25rem 0.75rem;
  background-color: var(--yellow-200);
  border-radius: 50em;
}

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

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

.scroll>* {
  direction: rtl;
}

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

.scroll::-webkit-scrollbar-thumb {
  background-color: #9CA3AF;
  -webkit-border-radius: 0.5rem;
  border-radius: 0.5rem;
}

.scroll::-webkit-scrollbar-track {
  background-color: var(--white);
}

/* ============================================ *
 * OWL CAROUSEL
 * ============================================ */

.owl-carousel {
  direction: ltr;
}

.subject_carousel .share_container {
  direction: rtl;
}

.owl_nav_container {
  padding-bottom: 1.5rem;
}

.owl_nav_center {
  position: absolute;
  top: calc(50% - 20px);
  left: -3rem;
  right: -3rem;
  transform: translateY(-50%);
  z-index: 2;
}

.owl_nav_container .owl-nav {
  display: flex;
  justify-content: center;
  gap: .5rem;
}

.owl_nav_center .owl-nav {
  justify-content: space-between;
}

.owl_nav_container .owl-nav [class*=owl-] {
  margin: 0;
  background: none !important;
}

.owl_nav_container .owl-nav button.owl-next,
.owl_nav_container .owl-nav button.owl-prev {
  padding: 0.844rem 0.688rem !important;
  border-radius: 50%;
  border: 1px solid var(--gray-200);
  line-height: 0;
}

.owl_nav_container .owl-nav .disabled {
  opacity: initial;
  border-color: transparent !important;
}

.owl-theme .owl-dots,
.owl-theme .owl-nav {
  margin-top: 1rem;
}



/* ============================================ *
 * CONTAINER
 * ============================================ */

@media (min-width: 768px) {

  .container-md,
  .hero_container {
    max-width: 90%;
  }
}

@media (min-width: 1400px) {

  .container-md {
    max-width: 1248px;
  }

  .hero_container {
    max-width: 1344px;
  }
}


/* ============================================ *
 * HEADER - MAIN - SECTION
 * ============================================ */

header {
  background-color: var(--white);
}

main {
  overflow: hidden;
}

.main_content {
  padding-top: 100px;
}

.main_content_lg {
  padding-top: 112px;
}

.pt_main {
  padding-top: 7rem;
}

.pt_main_sm {
  padding-top: 4rem;
}

.page_inner_header {
  padding: 8.25rem 0;
  background: url(../img/main-section-bg.svg) no-repeat center center;
  background-size: cover;
  box-shadow: inset 0px -20px 40px 10px #ffffff;
}

.title_container {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  padding-bottom: 1.5rem;
}

.title_container_center,
.inner_title_container {
  text-align: center;
  justify-content: center;
  align-items: center;
  margin: auto;
}

.inner_title_container {
  gap: 1rem;
  padding-bottom: 0 !important;
}

.title_container_xl {
  max-width: 670px;
}

.title_container_lg {
  max-width: 600px;
}

.title_container_md {
  max-width: 580px;
}

.title_container_sm {
  max-width: 540px;
}

.title_container_xs {
  max-width: 500px;
}

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

.navbar {
  padding-top: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--gray-100);
}

.navbar-nav {
  padding-inline-start: 2rem;
  position: relative;
}

.navbar-brand {
  display: flex;
  gap: .5rem;
  margin-inline-end: auto;
  margin-inline-start: 0;
  padding: 0;
}

.navbar-brand img {
  max-width: 100px;
}

.nav-item,
.nav-link {
  position: static;
}

.navbar-nav .nav-link {
  color: var(--secondary) !important;
  padding: 0.5rem 0 !important;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
}

.left_menu {
  gap: 0.75rem;
  padding-inline-start: 1rem;
}

#nav_search_input_container {
  width: 40px;
  opacity: 0;
  transition: width 0.5s ease, padding-inline-start 0.5s ease, opacity 0.5s ease;
  overflow: hidden;
  border-radius: 0.5rem;
  min-height: 40px;
  margin-inline-end: -39px;
  background-color: var(--white);
  border: 1px solid var(--gray-200);
}

#nav_search_input_container.expanded {
  width: 220px;
  opacity: 1;
  padding-inline-start: 0.5rem;
  z-index: 1;
  margin-inline-end: -39px;
  transition: width 0.5s cubic-bezier(0.33, 1, 0.68, 1), padding-inline-start 0.4s ease, opacity 0.4s ease;
}

#nav_search_input_container.expanded .form-control {
  padding-inline-end: 0.5rem;
  transition: all 0.5s ease-in;
}

#nav_search_input_container .form-control {
  transition: all 0.5s ease-in;
}

#search_nav_form_btn {
  opacity: 1;
  transition: opacity 0.9s ease;
}

#search_nav_form_btn.hidden {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

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

.hero_section_banner {
  height: calc(100vh - 116px);
  max-height: 500px;
  position: relative;
}

.hero_section_banner,
.hero_slider_item {
  border-radius: 1.5rem;
  overflow: hidden;
}

.hero_text_container {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  bottom: 0;
  padding: 1.5rem;
  z-index: 11;
  background: linear-gradient(0deg, rgb(8 7 7 / 77%) 0%, rgb(255 255 255 / 68%) 100%);
}

.hero_carousel,
.owl-carousel .owl-stage-outer,
.owl-stage,
.owl-item,
.hero_slider_item {
  height: 100%;
}

.hero_slider_item {
  padding: 2rem;
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
}

.hero_slider_item.hero_slide_1 {
  background-image: url(../img/slider-1.webp);
}

.hero_slider_item.hero_slide_2 {
  background-image: url(../img/slider-2.webp);
}

.hero_slider_item.hero_slide_3 {
  background-image: url(../img/slider-3.webp);
}

.hero_slider_item.hero_slide_4 {
  background-image: url(../img/slider-4.webp);
}

.owl_dots_container .owl-dots {
  height: 26px;
  display: flex;
  gap: 0.5rem;
}

.owl_dots_container .owl-dots .owl-dot {
  border: none;
  background-color: transparent;
  padding: 0;
  vertical-align: middle;
}

.owl_dots_container .owl-dots .owl-dot span {
  display: block;
  height: 8px;
  width: 8px;
  border-radius: 5px;
  background-color: rgba(255, 255, 255, 0.38);

}

.owl_dots_container .owl-dots .owl-dot.active span {
  height: 26px;
  border-radius: 5px;
  background-color: var(--white);
  transition: all 0.5s ease;
}

.hero_qr {
  width: 140px;
  height: 140px;
  padding: 0.625rem;
  background-color: var(--white);
  border-radius: 1rem;
  border: 1px solid var(--gray-200);
}

/* ============================================ *
 * LANGUAGE
 * ============================================ */

.search_input_container.lang_search {
  padding-inline: 1rem 0.2rem;
  border-radius: 1rem;
  max-width: 400px;
  gap: 1rem;
  margin: auto;
}

.lang_card {
  padding: 0.75rem;
  color: var(--black);
  border: 1px solid var(--gray-100);
  border-radius: 1rem;
  flex-direction: row;
  align-items: center;
  gap: 1rem;
  transition: background-color 0.1s ease-in;
}

.lang_card .qr_square {
  padding: 0.375rem;
  background-color: var(--gray-25);
}

.lang_card .qr_square img {
  width: 100%;
}

.lang_card .ellipsis {
  max-width: 55%;
}

.lang_card:hover {
  background-color: var(--gray-100);
}

.lang_card:hover h3 {
  color: var(--primary);
}

.lang_card:hover .badge {
  border-color: var(--gray-200);
}

/* ============================================ *
 * SHARE QR
 * ============================================ */

.share_qr {
  background-color: var(--green-200);
  background-image: url(../img/illustration.svg), url(../img/share-qr-bg.svg);
  background-position: center, left center;
  background-repeat: no-repeat, no-repeat;
  background-size: auto;
  padding: 5rem 4rem;
  border-radius: 1rem;
}

/* ============================================ *
 * SUBJECTS
 * ============================================ */

.main_nav_tab {
  padding: 0;
  background-color: var(--gray-100);
  border-radius: 0.5rem;
}

.type_nav_tab {
  gap: 0.75rem;
}

.subject_card {
  padding: 1rem;
  border-radius: 1rem;
  border: 1px solid var(--gray-100);
  gap: 1rem;
}

.subject_card .card_header {
  min-height: 148px;
  height: 148px;
  max-height: 148px;
  background-color: var(--gray-25);
  border-radius: 0.5rem;
  position: relative;
  padding: 0.875rem;
}

.img_cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: 0.5rem;
}

.readable_img_cover {
  max-width: 85px;
  border-radius: 0;
}

.subject_link {
  position: absolute;
  bottom: -1.5rem;
  left: 1rem;
  z-index: 1;
}


/* ============================================ *
 * BOOK PAGE
 * ============================================ */

.book_right_side {
  max-width: 336px;
  flex: 0 0 336px;
}

.book_card {
  border: none;
  gap: 1.25rem;
}

.book_card_body {
  min-height: 400px;
  background-color: var(--gray-25);
  border-radius: 1.5rem;
  padding: 5.75rem 4.5rem;
}

.book_card_body img {
  width: 100%;
  box-shadow: 0px 18px 40px 0px rgba(0, 0, 0, 0.06);
}

.details_li {
  gap: 90px;
}

.details_title {
  min-width: 62px;
  justify-content: space-between;
}

.tafseer {
  padding-top: 4rem;
}

.tafseer_container {
  padding: 2rem;
  background-color: var(--gray-25);
  border-radius: 1.5rem;
}

.tafseer_text {
  color: var(--secondary);
}

.video {
  height: 100vh;
  max-height: 31.25rem;
  border: 1px solid var(--gray-200);
  border-radius: 1.5rem;
  overflow: hidden;
}

/* ============================================ *
 * FOOTER
 * ============================================ */

.footer_body {
  background-color: var(--gray-25);
  border-radius: 1.5rem;
  padding: 2rem;
  margin-bottom: 1.5rem;
}

.footer_links_list {
  list-style-type: none;
  padding: 0 0 1.5rem;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer_body .title_container {
  padding-bottom: 2.5rem;
}

.footer_link {
  font-size: 0.875rem;
  border-bottom: 2px solid transparent;
  text-decoration: none;
  color: var(--secondary);
  display: inline-block;
  transition: border-bottom-color .3s ease, color .2s ease;
}

.footer_link:hover {
  color: var(--yellow-200);
  border-bottom-color: var(--yellow-200);
}

.input_container {
  display: flex;
  align-items: center;
  background-color: var(--white);
  padding: 0.312rem 1rem 0.312rem 0;
  border-radius: 50rem;
}

.input_container .btn {
  line-height: 0;
  padding: .564rem 1rem;
}

.input_container .form-control::placeholder {
  color: var(--gray-500);
}

.copyright {
  border-top: 1px solid var(--gray-200);
  padding-top: 1.5rem;
}

.copyright * {
  color: var(--gray-500);
  font-size: 0.875rem;
}

/* ============================================ *
 * RESPONSIVE
 * ============================================ */

@media (min-width: 768px) {

  .navbar-expand-md .navbar-collapse {
    display: block !important;
  }

  .navbar-expand-md .navbar-nav {
    align-items: center;
    gap: 1.5rem;
  }

  .navbar-nav.scroll {
    direction: rtl;
    overflow: initial;
  }

  .hero_section_banner .heading_lg,
  .hero_section_banner .title_secondary {
    color: var(--white);
  }

  .hero_section_banner .title_secondary {
    font-size: 1.25rem;
  }

  .border_md_bottom {
    border-bottom: 1px solid var(--gray-100);
  }

  .three_cards_carousel.owl-theme .owl-dots {
    display: none !important;
  }

  .accordion {
    padding-top: 1.5rem;
    padding-bottom: 3rem;
  }

  .footer_link {
    max-width: 180px;
  }
}

@media (max-width: 1199px) {

  .pt_main,
  .pt_main_sm {
    padding-top: 3.75rem;
  }

  .lang_card .circle_xl {
    min-width: 48px;
    width: 48px;
    max-width: 48px;
    min-height: 48px;
    height: 48px;
    max-height: 48px;
  }

  .lang_card .qr_square {
    padding: 0.625rem;
  }
}

@media (max-width: 991px) {

  .owl_nav_center {
    position: static;
    transform: none;
  }

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

  .accordion-collapse {
    transform: translateY(-0.5rem);
  }

  .accordion-button {
    font-size: 1rem;
    padding: 1rem;
  }

  .accordion-button::after {
    margin-top: 0.16rem;
  }

  .accordion-body {
    font-size: 0.75rem;
  }


  .footer_list_title {
    font-size: 1rem;
  }

  .footer_link {
    font-size: 0.75rem;
  }
}

@media(max-width: 767px) {

  .fade {
    transition: opacity 0.0s ease-out;
  }

  .modal.fade,
  .modal.fade .modal-dialog {
    transition: transform 0s ease-out, opacity .1s ease;
    opacity: 1;
  }

  .modal-body {
    padding-block: 1.5rem;
  }

  .modal-content {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
  }

  .qr_container {
    width: 88px;
    height: 88px;
  }

  .navbar-collapse {
    display: block !important;
    width: 270px;
    height: calc(100vh - 1rem) !important;
    height: calc(100dvh - 1rem) !important;
    position: fixed;
    top: 0.5rem;
    right: 0.5rem;
    bottom: 0.5rem;
    background-color: var(--white);
    border-radius: 0.75rem;
    transition: height .0s ease-in, right .7s ease;
    z-index: 1050;
    overflow: hidden;
    padding: 1rem;
  }

  .navbar-collapse.collapse:not(.show) {
    display: block;
    right: -270px;
    transition: height .0s ease-in, right .8s ease;
  }

  .navbar-expand-md .navbar-nav {
    align-items: flex-start;
  }

  #nav_overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 1020;
    background-color: rgba(28, 28, 28, 0.32);
    display: none;
    opacity: 0;
    transition: opacity .5s ease;
  }

  .navbar-nav {
    padding-inline-start: 0;
    gap: 0.5rem;
    margin-top: 0.5rem;
  }

  .nav_mob_header {
    padding: 0.5rem 0 1.75rem 0;
  }

  .mob_fixed_bottom {
    position: fixed;
    bottom: 0;
    top: initial !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    width: 100%;
    max-width: 375px;
    min-width: auto;
    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;
  }

  .navbar-nav {
    height: calc(100% - 80px);
    padding-inline-end: 0.5rem;
    margin-inline-end: -0.5rem;
  }

  .navbar-nav .nav-link img {
    min-width: 25px;
  }

  .navbar-brand img {
    max-width: 80px;
  }

  .left_menu {
    flex-direction: row-reverse;
    position: absolute;
    left: 1rem;
  }

  #nav_search_input_container {
    transition: width 0.2s ease-in 0.2s, padding-right 0.2s ease 0.2s, opacity 0.1s ease;
  }

  #nav_search_input_container.expanded {
    z-index: 1080;
  }

  .nav_mob_btn {
    background-color: var(--white);
    border: 1px solid var(--gray-200);
    padding: 0;
    border-radius: 0.5rem !important;
  }

  .lang_btn .circle {
    box-shadow: none;
  }

  .lang_btn .circle img {
    max-width: 18px;
  }

  .radio_card_wrapper {
    max-height: 285px;
  }

  .main_content,
  .main_content_lg {
    padding-top: 73px;
  }

  .pt_main,
  .pt_main_sm {
    padding-top: 3.5rem;
  }

  .title_container {
    text-align: center;
    margin-inline-start: auto;
    margin-inline-end: auto;
    padding-bottom: 2rem;
    gap: 1rem;
  }

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

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

  .text_xl {
    font-size: 1.125rem;
  }

  .heading_xs {
    font-size: 1.125rem;
  }

  .text_lg {
    font-size: 1rem;
  }

  .title_secondary {
    font-size: 0.875rem;
  }

  .hero_text_container,
  .hero_slider_item {
    padding: 0;
    border-radius: 0;
  }

  .hero_section_banner {
    max-height: 300px;
    border-radius: 0;
  }

  .lang_card .ellipsis {
    max-width: 35%;
  }

  .hero_qr {
    width: 100px;
    height: 100px;
    padding: .2rem;
    border-radius: .5rem;
  }

  .lang_card {
    padding: .5rem;
    border-radius: .75rem;
    justify-content: center;
  }

  .lang_card .qr_square {
    display: none;
  }

  .lang_name {
    text-align: center;
  }

  .lang_name span {
    display: block;
  }

  .lang_name span:nth-child(1) {
    font-size: .625rem;
  }

  .lang_name span:nth-child(2) {
    display: none;
  }

  .share_qr {
    background-image: url(../img/illustration.svg), url(../img/share-qr-bg-mobile.svg);
    background-position: center, left bottom;
    padding: 4.5rem 2rem;
  }

  .subjects_nav {
    padding-bottom: 1.5rem;
    margin-bottom: 1.5rem;
    width: 100%;
    border-bottom: 1px solid var(--gray-100);
  }

  .subject_link {
    bottom: -1.25rem;
    min-width: 40px;
    width: 40px;
    max-width: 40px;
    min-height: 40px;
    height: 40px;
    max-height: 40px;
  }

  .three_cards_carousel .owl-item.active {
    opacity: 1;
  }

  .owl-stage {
    padding-inline-start: 0 !important;
  }

  .accordion {
    padding-top: 0;
    padding-bottom: 2rem;
  }

  .accordion-body {
    max-width: 80%;
    line-height: 160%;
  }

  /*language page*/

  .page_inner_header {
    padding: 5.625rem 0;
  }

  .tafseer_container {
    padding: 1rem;
  }

  /*book page*/

  .book_card_body {
    padding: .5rem;
    background: none;
    border-radius: 0;
    min-height: auto;
    margin-bottom: 1.5rem;
  }

  .book_card_body img {
    border: 1px solid #ededed;
    margin: auto;
    display: block;
    width: 60%;
  }

  #share .modal_inner_content .modal-hedaer {
    background: var(--white);
    padding-bottom: 0;
  }

  #share .modal_inner_content .modal-hedaer h2 {
    margin-inline-end: auto;
  }

  #share .btn_share_close {
    border: none;
    box-shadow: none;
  }

  .share_container {
    padding: 2rem 1rem 1rem;
  }

  #share .modal-body {
    padding: 1rem;
  }

  #share .logo_circle,
  #share .share_qr_box {
    display: none;
  }

  #share .modal-footer .btn_primary {
    width: auto;
    padding-inline-start: 2rem;
    padding-inline-end: 2rem;
  }

  #share .share_footer img.logo {
    max-width: 4rem;
  }

  /*footer*/

  .footer_body {
    padding: 1.5rem 1rem;
  }

  .footer_body .title_container {
    padding-bottom: 2rem;
  }

  .footer_list_title,
  .footer_links_list {
    text-align: center;
  }
}

@media(max-width: 570px) {

  .video {
    height: auto;
    max-height: inherit;
    border-radius: .5rem;
  }
}

@media(max-width: 400px) {
  .navbar-brand:not(.nav_mob_header .navbar-brand) img {
    max-width: 70px;
  }
}

@media(max-width: 340px) {
  .navbar-brand:not(.nav_mob_header .navbar-brand) img {
    max-width: 50px;
  }
}
