:root {
  --linkColor: #0d4246;
  --linkHoverColor: #15a67f;
}

@font-face {
  font-family: "Roboto Condensed", sans-serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
  src: url(../../assets/fonts/RobotoCondensed-VariableFont_wght.ttf) format('truetype');
}

@font-face {
  font-family: "Noto Kufi Arabic", sans-serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
  src: url(../../assets/fonts/NotoKufiArabic-VariableFont_wght.ttf) format('truetype');
}

/* 
:lang(ar) :not(.fa):not(.fas):not(.far):not(.fab):not(.fal) {
  font-family: 'Noto Kufi Arabic', sans-serif;
}

:lang(en) :not(.fa):not(.fas):not(.far):not(.fab):not(.fal) {
  font-family: 'Roboto Condensed', sans-serif;
} */

[data-bs-theme=light] body {
  font-family: 'Noto Kufi Arabic' !important;
  background-color: #e2eeef;
  /*#fcfcfc;*/
}

html {
  margin: 0;
  padding: 0;
}

ul,
ol {
  list-style: none;
  padding: 0 5px 0 0;
  margin: 0 !important;
}

a,
a:hover {
  text-decoration: none !important;
}

.no-event {
  pointer-events: none;
}

.rtl {
  direction: rtl;
}

.ltr {
  direction: ltr;
}

.cur {
  cursor: pointer;
}

.linkColor {
  color: var(--linkColor);
}

.linkHoverColor {
  color: var(--linkHoverColor);
}

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

.header {
  box-shadow: 0px 0px 6px #d2d2d2;
  padding: 5px 1rem;
  background: #fff;
}

.header .header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.header .header-inner .logo a {
  width: 118px;
  height: auto;
  max-height: 80px;
  display: flex;
  align-items: center;
}

.header .header-inner .logo a img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* Mobile Menu Toggler */
.navbar-toggler {
  border: none;
  padding: 0.5rem;
  font-size: 1.5rem;
  color: var(--linkColor);
  background: transparent;
  transition: transform 0.3s ease;
}

.navbar-toggler:focus {
  box-shadow: none;
}

/* Header Nav Container (Collapsible) */
.header-nav-container {
  width: 100%;
  flex-direction: column;
}

@media (min-width: 992px) {
  .header-nav-container {
    width: auto;
    flex-direction: row;
    flex: 1;
    display: flex !important;
    justify-content: space-between;
    align-items: center;
  }
}

.header .header-inner .navs {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1rem 0;
  width: 100%;
}

@media (min-width: 992px) {
  .header .header-inner .navs {
    flex-direction: row;
    gap: 1.5rem;
    padding: 0;
    width: auto;
    margin-left: 2rem !important;
    margin-right: auto !important;
  }
}

.header .header-inner .navs li a {
  color: var(--linkColor);
  padding: 0.5rem 0;
  display: block;
  font-weight: 500;
  transition: color 0.3s ease;
}

.header .header-inner .navs li a:hover {
  color: var(--linkHoverColor);
}

.header .header-inner .navs li a.home {
  color: darkorange;
}

/* Header Controls Area */
.header-controls {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding-bottom: 1rem;
  border-top: 1px solid #eee;
  padding-top: 1rem;
}

@media (min-width: 992px) {
  .header-controls {
    flex-direction: row;
    align-items: center;
    gap: 1.5rem;
    padding: 0;
    border-top: none;
  }
}

/* Nested Dropdowns "Neasty" Handling */
.dropdown-menu {
  border: none;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  padding: 0.5rem 0;
}

/* Desktop Hover for Nested Dropdowns */
@media (min-width: 992px) {
  .dropdown:hover>.dropdown-menu {
    display: block;
    margin-top: 0;
  }

  .dropdown-menu .dropdown:hover>.dropdown-menu {
    top: 0;
    left: 100%;
    margin-top: -5px;
  }

  :lang(ar) .dropdown-menu .dropdown:hover>.dropdown-menu {
    left: auto;
    right: 100%;
  }
}

/* Mobile Dropdown Stacking */
@media (max-width: 991px) {
  .dropdown-menu {
    position: static !important;
    float: none;
    width: 100%;
    box-shadow: none;
    background-color: rgba(0, 0, 0, 0.03);
    border-radius: 0;
    transform: none !important;
    margin-top: 0 !important;
  }

  .dropdown-menu .dropdown-menu {
    padding-left: 1.5rem;
    background-color: rgba(0, 0, 0, 0.02);
  }

  :lang(ar) .dropdown-menu .dropdown-menu {
    padding-left: 0;
    padding-right: 1.5rem;
  }

  .dropdown-toggle::after {
    float: right;
    margin-top: 10px;
  }

  :lang(ar) .dropdown-toggle::after {
    float: left;
  }


}

.dropdown-toggle::before {
  padding-left: 5px;
  color: darkorange;
}

.dropdown-item.active,
.dropdown-item:active {
  background-color: var(--bs-dropdown-link-hover-bg);
  color: var(--linkHoverColor);
}

.header-controls .langs .dropdown-menu .dropdown-item.active {
  background-color: var(--linkColor) !important;
  color: #fff !important;
}

.header .header-inner .langs a {
  color: var(--linkColor);
}

.header .header-inner .langs a:hover {
  color: var(--linkHoverColor);
}

.header .header-inner .langs a .icon {
  color: darkorange;
}

.header .header-inner .langs .languagesMenu {
  text-align: right;
  transform: scale(1);
}


.header .header-inner .langs .languagesMenu li a .icon {
  color: darkorange;
}

.header .header-inner .langs .languagesMenu li a {
  display: flex;
  align-items: center;
  /* justify-content: flex-end; */
  flex-direction: row-reverse;
  gap: 5px;
}

:lang(ar) .header .header-inner .langs .languagesMenu li a {
  flex-direction: row;
  justify-content: flex-start;
}

.adv_container {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-direction: column;
  margin: 1rem auto;
}

.adv_container .adv,
.adv_container a {
  align-self: center;
}

.page_header {
  padding: 120px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background: rgba(18, 18, 18, 0.71);
}

.page_header h1 {
  font-size: 2rem;
  color: #fff;
}

.page_header h1 a {
  color: darkorange;
  -webkit-transition: all 500ms ease;
  -moz-transition: all 500ms ease;
  -ms-transition: all 500ms ease;
  -o-transition: all 500ms ease;
  transition: all 500ms ease;
}

.page_header h1 a:hover {
  color: var(--linkHoverColor);
}

.page_header .cover {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  bottom: 0;
  background-repeat: no-repeat;
  background-size: cover;
  z-index: -1;
}

.btn.my-btn {
  background: var(--linkHoverColor);
  color: #fff;
  border-color: var(--linkHoverColor);
  -webkit-transition: all 500ms ease;
  -moz-transition: all 500ms ease;
  -ms-transition: all 500ms ease;
  -o-transition: all 500ms ease;
  transition: all 500ms ease;
}

.btn.my-btn:hover {
  background: var(--linkColor);
}

[data-bs-theme=dark] .btn.my-btn {
  background: var(--linkColor);
  color: var(--linkHoverColor);
}

[data-bs-theme=dark] .btn.my-btn:hover {
  background: var(--linkHoverColor);
  color: #fff;
}

.btn.wide {
  padding: 0.375rem 2rem;
}

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

.flex-start {
  justify-content: flex-start;
  align-items: flex-start;
}

.flex-end {
  justify-content: flex-end;
  align-items: flex-end;
}

.link {
  color: var(--linkHoverColor);
  -webkit-transition: all 500ms ease;
  -moz-transition: all 500ms ease;
  -ms-transition: all 500ms ease;
  -o-transition: all 500ms ease;
  transition: all 500ms ease;
}

.link:hover {
  color: darkorange;
}

@media (min-width: 576px) {
  .dropdown:not(.not-hover):hover>.dropdown-menu {
    display: block;
    margin-top: 0;
  }

  .dropdown.langs:not(.not-hover):hover>.dropdown-menu {
    position: absolute;
    inset: 0px 0px auto auto;
    margin: 0px;
    transform: translate(0px, 24px);
  }

  :lang(ar) .dropdown.langs:not(.not-hover):hover>.dropdown-menu {
    inset: 0px auto auto 0px;
  }

  .dropdown-menu .dropdown:not(.not-hover):hover>.dropdown-menu {
    margin-top: 0;
    display: block;
    position: absolute;
    inset: 0px 0px auto auto;
    margin: 0px;
    transform: translate(-150px, 4px);
  }
}

.dropdown-menu {

  text-align: left;
}

:lang(ar) .dropdown-menu {
  text-align: right;
}

.userinfo {
  margin-left: auto !important;
}

:lang(ar) .userinfo {
  margin-right: auto !important;
  margin-left: 0 !important;
}

.userinfo a {
  color: var(--linkHoverColor);
  -webkit-transition: all 500ms ease;
  -moz-transition: all 500ms ease;
  -ms-transition: all 500ms ease;
  -o-transition: all 500ms ease;
  transition: all 500ms ease;
}

.userinfo .alone {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  margin: auto 0.5rem;
}

.userinfo .alone a {
  color: var(--linkHoverColor);
  font-size: 1rem;
  -webkit-transition: all 500ms ease;
  -moz-transition: all 500ms ease;
  -ms-transition: all 500ms ease;
  -o-transition: all 500ms ease;
  transition: all 500ms ease;
}

.userinfo a.dropdown-toggle {
  margin: auto 0.5rem;
}

.userinfo a.dropdown-toggle:hover {
  color: darkorange;
}

.section .title {
  font-size: 2rem;
  text-align: center;
  color: var(--linkHoverColor);
  position: relative;
  width: max-content;
  margin: auto auto 2rem;
}

.section .title::after {
  content: "";
  position: absolute;
  bottom: -0.9rem;
  left: 30%;
  width: 5rem;
  height: 4px;
  background: darkorange;
}

.section .card:not(.profile) {
  height: 100%;
  position: relative;
}

.section .card .card-img {
  height: 250px;
  overflow: hidden;
  position: relative;
}

.section .card .favoritos {
  position: absolute;
  bottom: 10px;
  left: 10px;
  z-index: 1;
}

.section .card .favoritos.hadith {
  position: relative;
  bottom: auto;
  left: auto;
}

.section .card .favoritos a {
  color: gray;
  -webkit-transition: all 500ms ease;
  -moz-transition: all 500ms ease;
  -ms-transition: all 500ms ease;
  -o-transition: all 500ms ease;
  transition: all 500ms ease;
}

.section .card .favoritos a:hover {
  color: #e35c94;
}

.section .card .favoritos a.active {
  color: #e35c94;
}

.section .card .ratting {
  position: absolute;
  bottom: 10px;
  right: 10px;
  color: rgba(255, 255, 255, 0.4);
  z-index: 1;
  font-size: .8rem;
}

.section .card .ratting .full-star {
  color: darkorange;
}

.section .card .ratting .half-star {
  position: relative;
  display: inline-block;
  color: darkorange;
  transform: scaleX(-1);
}


.section .card .ratting .empty-star {
  color: #D3D3D3
}

.section .card .card-img:after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, #374151, rgba(17, 24, 39, 0.451), rgba(0, 0, 0, 0));
}

.section .card .card-img:hover img {
  transform: scale(1.2);
}

.section .card .card-img img {
  background-position: center;
  top: -180px;
  -webkit-transition: all 500ms ease;
  -moz-transition: all 500ms ease;
  -ms-transition: all 500ms ease;
  -o-transition: all 500ms ease;
  transition: all 500ms ease;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.section .card .card-title {
  margin: 0;
  line-height: 1.8;
}

.section .card .card-title a {
  color: var(--linkColor);
  font-size: 1rem;
}

.section .cats li h4 {
  margin: 0;
}

.section .cats li h4 a {
  color: var(--linkColor);
}

.section .cats li h4 a:hover span {
  padding-right: 0.2rem;
}

.section .cats li h4 a span {
  font-size: 0.9rem;
  -webkit-transition: all 500ms ease;
  -moz-transition: all 500ms ease;
  -ms-transition: all 500ms ease;
  -o-transition: all 500ms ease;
  transition: all 500ms ease;
}

.section .cats li h4 a .icon {
  font-size: 0.8rem;
  color: darkorange;
}

.section.auther .profile .head {
  position: relative;
  height: 150px;
}

.section.auther .profile .head .head_img {
  height: 100px;
}

.section.auther .profile .head .head_img .book_title {
  position: absolute;
  top: 30%;
  right: 30%;
  font-weight: bold;
  color: #fff;
}

.section.auther .profile .head .head_img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.section.auther .profile .head .author_avatar {
  border-radius: 50%;
  overflow: hidden;
  width: 100px;
  height: 100px;
  margin: auto;
  position: absolute;
  top: 46px;
  left: 30%;
  padding: 5px;
  background: #fff;
  box-shadow: 0 0 10px #121212;
}

@media (max-width: 450px) {
  .section.auther .profile .head .author_avatar {
    left: 36%;
  }
}

.section.auther .profile .head .author_avatar img {
  border-radius: 50%;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.section.auther .profile .card-title {
  font-size: 0.8rem;
  font-weight: bold;
  color: var(--linkColor);
  margin-bottom: 0.5rem;
}

.section.auther .profile .card-text {
  text-align: justify;
  direction: rtl;
}

.section.auther .profile .social {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 1.5rem;
}

.section.auther .profile .social li a {
  -webkit-transition: all 500ms ease;
  -moz-transition: all 500ms ease;
  -ms-transition: all 500ms ease;
  -o-transition: all 500ms ease;
  transition: all 500ms ease;
}

.section.auther .profile .social li a .icon {
  color: var(--linkHoverColor);
}

.section.auther .profile .social li a .icon.facebook {
  color: #1877f2;
}

.section.auther .profile .social li a .icon.whatsapp {
  color: #25d366;
}

.section.auther .profile .social li a .icon.youtube {
  color: #ff0000;
}

.section.auther .profile .social li a .icon.telegram {
  color: #0088cc;
}

.section.auther .profile .social li a .icon.twitter {
  color: #1da1f2;
}

.section.auther .profile .social li a .icon.instagram {
  color: #c32aa3;
}



.section.auther .profile .author_info {
  position: relative;
}

.section.auther .profile .author_info .add_fav a.btnFav {
  position: absolute;
  top: 0;
  right: 0;
  color: gray;
}

.section.auther .profile .author_info .add_fav a.btnFav.active {
  color: #e35c94;
}


.sura {
  direction: rtl;
  text-align: justify;
  font-size: 22px;
  line-height: 2.3;

}

.sura-content {
  position: relative;
}

.sura-content .aya_container {
  margin: 10px 0;
}

.sura-content .aya {
  display: inline;
  white-space: normal;
  border-radius: 5px;
  margin: 0 5px;
  color: #555 !important;
  cursor: pointer;
}

.sura-content .aya.active {
  background: #fed6a6;
}


.sura-content .aya .aya-number {
  font-size: 22px;
  margin: 0 4px;
  color: #555;
  background: #e8fff9;
  font-family: "Amiri", "Scheherazade", serif !important;
  border-radius: 1rem;
}

.audio-content {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  gap: 1rem;
  margin: auto;
}

@media (max-width: 450px) {
  .audio-content {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .audio-content {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 900px) {
  .audio-content {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

.audio-content .audio-option {
  position: relative;
}

.audio-content .audio-option .play {
  position: absolute;
  top: 1px;
}

.audio-content .audio-option .play.ar {
  left: 7px;
}

.audio-content .audio-option .play.en {
  right: 7px;
  transform: rotate(180deg);
}

:lang(ar) .tabs .list-group-item.active {
  margin-right: 0.5rem;
  border-radius: 0.375rem 0.375rem 0 0;
}

.pagination .page-link {
  color: var(--linkHoverColor);
}

.pagination .page-link:focus {
  box-shadow: 0 0 0 0.25rem rgba(21, 166, 127, 0.25);
}

.pagination .page-link.active {
  background: var(--linkHoverColor);
  border-color: var(--linkHoverColor);
  color: #fff;
}

.searchContainer {
  position: relative;
}

.searchContainer .my-btn {
  padding: 6px 20px;
  position: absolute;
  top: 0;
  left: auto;
  right: 0;
  border-radius: 0 0.375rem 0.375rem 0;
}

:lang(ar) .searchContainer .my-btn {
  padding: 9px 20px;
  top: 0;
  left: 0;
  right: auto;
  border-radius: 0.375rem 0 0 0.375rem;
}

.sidebar .profile {
  position: -webkit-sticky !important;
  position: sticky;
  top: 0;
}

.social-share-buttons {
  display: flex;
  align-items: center;
  justify-content: center;
}

.social-share-buttons a {
  margin: 0 5px;
  font-size: 2rem;
  -webkit-transition: all 500ms ease;
  -moz-transition: all 500ms ease;
  -ms-transition: all 500ms ease;
  -o-transition: all 500ms ease;
  transition: all 500ms ease;
}

.social-share-buttons a:hover {
  transform: translateY(-10px);
}

.social-share-buttons a.social-share-btn-facebook {
  color: #1877f2;
}

.social-share-buttons a.social-share-btn-linkedin {
  color: #0088cc;
}

.social-share-buttons a.social-share-btn-twitter {
  color: #1da1f2;
}

.social-share-buttons a.social-share-btn-instagram {
  color: #c32aa3;
}

.social-share-buttons a.social-share-btn-whatsapp {
  color: #25d366;
}

/*footer*/
.footer-07 {
  background: #1c1b22;
  overflow: hidden;
  color: rgba(222, 226, 230, 0.75);
  box-shadow: inset 0 .5em 1.5em #0000001a, inset 0 .125em .5em #00000026;
}

.footer-07 a {
  color: rgba(222, 226, 230, 0.75);
  transition: all 500ms ease;
  -webkit-transition: all 500ms ease;
  -moz-transition: all 500ms ease;
  -ms-transition: all 500ms ease;
  -o-transition: all 500ms ease;
}

.footer-07 .cr {
  background: #1a191f;
  font-size: 10px;
  padding: 1rem;
}

.footer-07 .cr a {
  color: var(--linkHoverColor);
  /*rgba(222, 226, 230, 0.75);*/
  font-size: 10px;
}

.footer-07 a:hover {
  color: darkorange;
}

.footer-07 .social {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.footer-07 .social li a {
  font-size: 1.5rem;
  transition: all 500ms ease;
  -webkit-transition: all 500ms ease;
  -moz-transition: all 500ms ease;
  -ms-transition: all 500ms ease;
  -o-transition: all 500ms ease;
}

.footer-07 .social li a i {
  transition: all 500ms ease;
  -webkit-transition: all 500ms ease;
  -moz-transition: all 500ms ease;
  -ms-transition: all 500ms ease;
  -o-transition: all 500ms ease;
}

.footer-07 .social li a:hover i {
  transform: rotate(360deg);
}

.footer-07 .social li a.twitter:hover {
  color: #1da1f2;

}

.footer-07 .social li a.facebook:hover {
  color: #1877f2;
}

.footer-07 .social li a.instagram:hover {
  color: #c32aa3;
}

.footer-07 .social li a.whatsapp:hover {
  color: #25d366;
}

.footer-07 .social li a.telegram:hover {
  color: #0088cc;
}

.footer-07 .social li a.youtube:hover {
  color: #ff0000;
}

.footer-07 .social li a.snapchat:hover {
  color: #e5ff00;
}

.footer-07 .social li a.tiktok:hover {
  color: #69c9d0;
}

.footer-07 .logo {
  padding: 1rem;
}

.footer-07 .logo img {
  width: 100px;
}

/* Rating System */
.rating-container {
  display: flex;
  gap: 5px;
  direction: ltr;
  /* Force LTR for stars to simplify fill logic unless specifically requested otherwise */
  font-size: 2rem;
  cursor: pointer;
}

.star-wrapper {
  position: relative;
  display: inline-block;
  color: #d3d3d3;
  /* Empty color */
}

.star-wrapper .foreground,
.star-wrapper .foregroundSelected {
  position: absolute;
  top: 0;
  left: 0;
  width: 0%;
  overflow: hidden;
  color: darkorange;
  /* Filled color */
  transition: width 0.2s ease;
  pointer-events: none;
  /* Let clicks pass to wrapper */
}

.star-wrapper:hover .foreground {
  /* Remove transition on hover for instant feedback if desired, or keep it */
  transition: none;
}

.star-wrapper i {
  pointer-events: none;
}


@media (max-width: 450px) {

  .audio-content {
    grid-template-columns: 1fr;
  }

  .sura_info {
    flex-direction: column;
  }
}



.fav-websites-carousel-container .carousel-item {
  transition: transform 0.6s ease-in-out;
}

.fav-websites-carousel-container .carousel-item .row {
  display: flex;
  justify-content: space-around;
  align-items: center;
}

.fav-websites-carousel-container .carousel-item .col-md {
  flex: 0 0 20%;
  height: 400px;
  max-width: 20%;
}

.fav-websites-carousel-container .carousel-item .col-md a,
.fav-websites-carousel-container .carousel-item .col-md a .card {
  display: block;
  height: 100%;
}

.fav-websites-carousel-container .carousel-item .col-md a .card .card-text {
  text-align: justify;
  font-size: 12px;
}

.fav-websites-carousel-container .website-link {
  color: inherit;
  text-decoration: none;
  transition: transform 0.3s ease;
}

.fav-websites-carousel-container .website-link:hover {
  transform: translateY(-5px);
}

/* Responsive adjustments */
@media (max-width: 810px) {
  .fav-websites-carousel-container .carousel-item .row {
    flex-wrap: nowrap;
  }

  .fav-websites-carousel-container .carousel-item .col-md {
    flex: 0 0 33.33%;
    /* 3 items on tablet */
    max-width: 33.33%;
  }
}

@media (max-width: 450px) {
  .fav-websites-carousel-container .carousel-item .row {
    flex-wrap: nowrap;
  }

  .fav-websites-carousel-container .carousel-item .col-md {
    flex: 0 0 100%;
    /* 2 items on mobile */
    max-width: 100%;
  }
}

/* Extra dark css tags */
[data-bs-theme="dark"] .header {
  background: #212529;
}

[data-bs-theme="dark"] .header .header-inner .navs li a,
[data-bs-theme="dark"] .header .header-inner .langs a,
[data-bs-theme="dark"] .section .card .card-title a:not(.addContentToFav),
[data-bs-theme="dark"] .section.auther .profile .card-title,
[data-bs-theme="dark"] .section .cats li h4 a {
  color: var(--linkHoverColor);
}

[data-bs-theme="dark"] .section .card .card-title,
[data-bs-theme="dark"] .section .card .card-text {
  color: #6d7175;
}

[data-bs-theme="dark"] .bg-white,
[data-bs-theme="dark"] .section.auther .profile .head .author_avatar {
  background: #272b2f !important;
}

/* #272b2f
[data-bs-theme="dark"] {}
[data-bs-theme="dark"] {} */