/*
Theme Name: Method Template
Author: Elevate
Text Domain: Method
Description:
Version: 1.1
*/
.search-cards__card-text.isActive {
  display: block;
  pointer-events: all;
  opacity: 1;
  visibility: visible;
}

.search-cards .swiper {
  overflow: unset;
}

.single-slider__slider-wrap .default-slider {
  position: relative;
}

.single-slider__slider-wrap .default-slider button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
}

.single-slider__slider-wrap .default-slider .default-prev {
  right: -3rem;
}

.single-slider__slider-wrap .default-slider .default-next {
  left: -3rem;
}

.card-cats:has(.card-cats__label) {
  opacity: 0.65;
}

.site-news__side-nav .menu-item-has-children:not(:has(.sub-menu))>a {
  justify-content: flex-end;
}

.site-news__side-nav .menu-item-has-children>a .emptyhe {
  display: none;
}

.course__tab-btn.active {
  color: #850f25;
  font-weight: bold;
}

/* Style for the right sidebar tabs */
.course-tab__side-nav .site-nav__list a {
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
}

.course-tab__side-nav .site-nav__list a:hover {
  color: #850f25;
}

.course-tab__side-nav .site-nav__list a.active {
  font-weight: bold;
  color: #850f25;
}

.course-tab__side-nav .site-nav__list a.active:before {
  content: '';
  position: absolute;
  right: -15px;
  top: 50%;
  transform: translateY(-50%);
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background-color: #850f25;
}

/* PDF Modal Styling */
.pdf-modal {
  display: none;
  position: fixed;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background-color: rgba(0, 0, 0, 0.85);
}

.pdf-modal-content {
  position: relative;
  margin: 2% auto;
  padding: 0;
  width: 90%;
  height: 90%;
  max-width: 1200px;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  background: white;
  overflow: hidden;
}

@media (max-width: 1024px) {
  .pdf-modal-content {
    width: 95%;
    height: 80%;
  }
}

.pdf-close {
  position: absolute;
  top: 10px;
  left: 15px;
  color: #f1f1f1;
  font-size: 40px;
  font-weight: bold;
  transition: 0.3s;
  z-index: 10;
}

.pdf-close:hover,
.pdf-close:focus {
  color: #850f25;
  text-decoration: none;
  cursor: pointer;
}

.pdf-iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.pdf-controls {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 15px;
  background: rgba(255, 255, 255, 0.7);
  padding: 8px 15px;
  border-radius: 20px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.pdf-zoom-in,
.pdf-zoom-out,
.pdf-fullscreen {
  background: #850f25;
  color: white;
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.pdf-zoom-in:hover,
.pdf-zoom-out:hover,
.pdf-fullscreen:hover {
  background: #a51630;
  transform: scale(1.1);
}

#loginModal {
  max-width: 600px;
}

.user-form .site-form__item {
  position: relative;
}

.user-form .site-form__item div.error {
  position: absolute;
  bottom: 0;
  right: 0;
  transform: translateY(100%);
}

.tools {
  display: flex;
  align-items: center;
  gap: .75rem;
}

.favorite,
.add-to-favorites {
  width: 1.5rem;
  line-height: .6;
  position: relative;
}

#favorites-posts .card-cats {
  position: relative;
}

.card-cats .add-to-favorites {
  position: absolute;
  top: 1.5rem;
  left: 1.5rem;
  z-index: 2;
  width: 30px;
}

.favorites svg,
.add-to-favorites svg {
  width: 100%;
  height: auto;
}

.search-cards__card-text {
  min-height: auto;
  overflow: unset;
}

.search-cards__card-text.isActive+.search-cards__card-decor {
  opacity: 0;
}

.add-to-favorites .selected {
  display: none;
}

.add-to-favorites.active .selected {
  display: block;
}

.add-to-favorites.active .none-selected {
  display: none;
}

.content-side__slide-main {
  min-height: auto;
}

@media (max-width: 64em) {
  .site-header__search label {
    width: 1.75rem;
    height: 1.75rem;
  }

  .site-header__search label img {
    flex: unset;
    width: 100%;
    height: 100%;
  }

  .search-table__table-wrap {
    width: calc(100% - 1.25rem);
  }
}

.search-table__table-wrap a {
  text-decoration: underline;
}

.search-table__table-wrap a:hover {
  color: #850f25;
}

.site-header__actions .favotires {
  line-height: 0.6;
}

#white-player-controls {
  display: flex;
  align-items: center;
  justify-content: center;
}

.read-more-btn {
  color: #850F25;
}

.song-name {
  direction: rtl;
}

.time-container span {
  color: #fff;
}

#song-played-progress::-webkit-progress-value {
  background-color: #fff;
}

.content_ne ul,
.content_ne ol {
  padding-inline-start: 1.25em;
}

.content_ne ul {
  list-style: disc;
}

.content_ne ol {
  list-style: decimal;
}