.landing-section{
  margin-top: 32px;
    position: relative;
    width: 100%;
    /* height: 100vh; */
    background:transparent;
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
}
.announcement-bar {
  width: 100%;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 4em;
  direction: rtl; 
  
}
.scroll-track{
    display: flex;
    gap: 15em;
    animation: scroll 20s linear infinite;
}
/*! ----------content-section------------ */
.content-section{
  display: flex;
  background-color: #fff;
  
}

.content-section .library-sidebar{
  min-width: 235px;
  border-right:  1px solid #D9D9D9 ;
  padding: 2.5em;
}
.library-sidebar .sidebar-section{
  width: 184px;
  height: auto;
  padding-block: 2.5em;
  border-bottom-width: 1px;
  display: flex;
  flex-direction: column;
  gap: 1em;
  /* background-color: cadetblue; */
}
.library-sidebar .sidebar-section.side-imp{
  border-bottom: 1px solid #D9D9D9;
}
.side-imp .imp-item{
  height: 52px;
  display: flex;
  align-items: center;
  gap: 1em;
}
.autor-img img{
  width: 36px;
  height: 36px;
  object-fit: contain;
  border: 1px solid #5E5E5E;
  border-radius: 50rem;
}
.book-txt{
  font-family: 'cairo';
  font-weight: 600;
  font-size: 12px;
  white-space: nowrap;
}
.book-txt.book-category{
  color: #888;
}
/* .library-sidebar .side-categories{} */
.library-sidebar .side-title{
  font-family: 'cairo';
  font-weight: 600;
  font-size: 16px;
  color: #000;
}


.content-section .library-main{
  flex-grow: 1;
  width: fit-content;
  display: flex;
  padding: 3.75em 2.5em 2.5em;
  /* margin-inline: 1em; */
  flex-direction: column;
  gap: 5em;
}
.library-main .library-section {
    display: flex;
    flex-direction: column;
    gap: 1.25em;
    margin-right: 20px;
}
  .library-section .section-books:has(.series-card){
    /* display: grid;
    grid-template-columns: repeat(auto-fit, minmax(330px, 1fr));
    gap: 1em; */

  }
.library-section .section-header{
  display: flex;
  justify-content: space-between;
  align-items: center;
  /* height: 60px; */
  font-family: 'cairo';
  font-weight: 600;
}
 .section-header p{
  font-size: 24px;
}
.section-header .more-btn {
    width: fit-content;
    height: 42px;
    font-size: 16px;
    font-weight: 500;
    gap: 0.5em;
    padding: 0.25em 0.75em;
    border-radius: 0.5em;
    border: 1px solid #AAAAAA;
    margin-left: 90px;
}
.library-section .section-books{
  display: flex;
  align-items: center;
  /* justify-content: center; */
  /* justify-content: space-around; */
  flex-wrap: wrap;
  gap: 1em;
  /* width: fit-content; */

}

 .section-books .book-card{
  /* min-width: 232px;
  max-width: 235px; */
  /* height: 473.24px; */
    max-width: 154px;
    /* height: 370px; */
    height: 314px;
  padding: 0.5em;
  /* margin: 0 0.5em; */
  border-radius: 1em;
  background-color: #EBF0F3;
  box-shadow: 0px 2px 4px 0px #00000040;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5em;
  /* cursor: pointer; */
}
.series-card.book-card{
  /* width: 100%; */
  width: fit-content;
  max-width: unset;
  height: fit-content;
}
.series-card.book-card .series-imgs{
  width: 100%;
  display: flex;
  align-items: center;
  gap: 1em;
  /* justify-content: space-around; */
  max-width: 520px;
    /* flex-wrap: wrap; */
}
 .book-card .book-img{
  width: 100%;
  /* width: 225.72px; */
  /* height: 377.5px; */
  /* height: 362.5px; */
  
  overflow: hidden;
  border-radius: 1em;
  position: relative;
}
/* .series-card.book-card .book-img{
    width: 118px !important;
    height: 197px !important;
} */
 .book-card .book-img img{
  width: 100%;
  height: 200px;
}
.content-section.ad-section,
.content-section.ad-section .library-section {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

/* .series-card.book-card{} */
.overlay-box {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.2));
  pointer-events: none;
  display: none;
  transition: display 0.4s ease-in-out;

}

 .book-card .book-img img{
  transform: scale(1.05);
  transition: transform 0.4s ease-in-out, border-radius 0.5s ease-in-out;
}
   .series-card.book-card .book-img>img{
    transform: scale(1);
   }
 .book-card:hover .book-img>img{
  transform: scale(0.999);

}
 .book-card:hover .book-img{
  border-radius: 0.7rem;
  background-image: linear-gradient(rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.5));
}
 .book-card:hover .book-img>.overlay-box{
  display: flex;
}
 .book-card .book-details {
  /* width: 198px; */
  width: 92%;
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-family: 'cairo';
  font-weight: 600;
 }
   .series-card.book-card:hover .book-img>img{
    transform: scale(1);
  }
 .series-card.book-card:hover .book-img{
   border-radius: 1em;
  }
  .series-card.book-card:hover .book-img>.overlay-box{
    display: none;
  }

 .series-card.book-card .book-details{
  width: 99%;
 }
.book-details .book-name{
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 4px;
  /* margin-bottom: 0.5em; */
 }
.book-details .book-name p{
  font-size: 14px;
}
.book-details .book-author{
  font-size: 12px;
  color: #798087;
  margin-bottom: 0.3em;
}
 .book-details .book-name .like-book{
  background-image: url(../assets/images/icons/gray-like.svg);
      width: 20px;
    height: 20px;
      background-size: 20px 20px;
    background-position: center center;
    background-repeat: no-repeat;
}

.book-details .book-name .like-book.liked{
  background-image: url(../assets/images/icons/blue-like.svg);
}
/*------advertisement-section------ */
.advertisement-section{
  width: 100%;
  height: 50%;
}
.advertisement-section .adv-wrap{
    /* aspect-ratio: 2.5/1; */
    width: 100%;
    height: 100%;
}

/*! ----------/.content-section------------   */

.menu-toggle {
    display: none;
}

/* key frames */
@keyframes scroll {
    from {
        transform: translateX(100%);
    }

    to {
        transform: translateX(-100%);
    }
}


/* media query*/
@media (min-width:1400px) {
    .content-section .library-sidebar{
    min-width: 264px;
  }
.library-section .section-books:has(.series-card){
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(250px, 1fr));
  }
}
@media (max-width:1399px) {
   .library-section .section-books:has(.series-card){
      display: grid;
      grid-template-columns: repeat(3, 1fr);
    }
}
@media (max-width:1234px) {
    .custom-ddl {
        top: 110px !important;
    }
    /* TOGGLE */
    .menu-toggle {
        display: block;
        background: none;
        border: none;
        cursor: pointer;
        margin-top: 8px;
    }

        .menu-toggle img {
            width: 28px;
        }
    /* DROPDOWN PANEL */
    .navbar-nav.dropdown-panel {
        position: absolute;
        top: calc(100% + 8px);
        right: 20px;
        width: 94%;
        background: rgb(37, 37, 37) !important;
        border-radius: 12px;
        box-shadow: 0 20px 40px rgba(0,0,0,0.12);
        opacity: 0;
        padding: 0.5em;
        display: flex;
        flex-direction: column !important;
        gap: 0 !important;
        visibility: hidden;
        transform: translateY(-10px);
        transition: 0.25s ease;
        color: black;
    }

        .navbar-nav.dropdown-panel.open .nav-link {
            padding-inline: 1em !important;
        }
    /* OPEN STATE */
    .dropdown-panel.open {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    /* MENU ITEMS */
    .dropdown-panel a {
        display: block;
        padding: 14px 16px;
        text-decoration: none;
        color: #fff !important;
        border-radius: 0.25em !important;
    }

    .dropdown-panel .nav-link.active {
        border-bottom-left-radius: 0 !important;
        border-bottom-right-radius: 0 !important;
    }
    .dropdown-panel a:hover {
        background: #e2dddd21;
    }
}
@media (max-width: 1192px) {
  .library-section .section-books:not(:has(.series-card)){
      /* column-gap: 4%; */
       display: grid;
      grid-template-columns: repeat(auto-fit,minmax(220px, 1fr));
      row-gap: 1em;
    }
     .library-section .section-books.section-books:has(.series-card){
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      justify-items: center;
      
    }
    .section-books .book-card{
/*       flex-direction: row !important;*/
      width: auto;
      height: unset;
      min-width: 220px !important;
      max-width: 250px;
     }
     .book-card .book-img{
        width: auto;
        height: auto;
     }
     .series-card.book-card {
      flex-direction: column !important;
      max-width: fit-content;
    }

    
}
  
  @media (max-width: 992px) { 
    /*  .library-section .section-books{
      /* column-gap: 2.5%; //
      row-gap: 2em;
    } */
     .content-section div:is(.library-main , .library-sidebar){
      padding: 1.5em;
     }
     .library-section .section-books:has(.series-card){
      display: grid;
      grid-template-columns: repeat(2, 1fr);
    }
    .book-card .book-img img{
      height: 100%;
    }
  }
 
 @media (max-width: 768px) {
   .content-section {
        flex-direction: column-reverse;
  }
      .content-section .library-sidebar{
        display: flex;
        justify-content: space-between;
      }
      .library-sidebar .sidebar-section.side-imp{
        border-bottom: unset;
      }
     .section-books .book-card{
           /* flex-direction: column !important; */
           min-width: unset;
      }
      .content-section .library-sidebar{
        min-width: fit-content;
      }
      .section-header p {
        font-size: 100%;
      }
      .section-books .book-card {
        min-width: unset !important;
      }
      .library-section .section-books:not(:has(.series-card)){
        display: grid;
          grid-template-columns: repeat(2, 1fr);
      }
      .custom-ddl {
          top: 45px !important;
      }
}

@media (max-width: 575.98px) { 
  .content-section .library-main{
    width: unset;
  }
  .section-books .book-card{
    min-width: fit-content;
  }
  .section-books .book-card {
        min-width: unset ;
        max-width: unset;
      }
  .library-section .section-books{
      display: grid !important;
      grid-template-columns: repeat(1, 1fr) !important;
  }

}
.library-layout {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

.library-main {
    flex: 1;
}

.library-sidebar {
    width: 320px;
    flex-shrink: 0;
}


.library-sidebar .xl-dropdown-menu {
    display: block !important;
    position: static !important;
    max-height: none !important;
    overflow: visible !important;
}
.library-sidebar .custom-ddl .custom-sec {
    display: block; /* ��� ������� ������ ��� flex */
    flex-wrap: unset; /* ����� flex-wrap */
    max-height: none; /* ���� ���� scroll */
    overflow-y: visible;
    column-gap: 0;
    row-gap: 0.5em;
    padding: 0;
 
}

    .library-sidebar .custom-ddl .custom-sec a {
        color: #333; /* ��� ���� */
        padding: 0.25rem 0;
        display: block;
        text-decoration: none;
    }

        .library-sidebar .custom-ddl .custom-sec a:hover {
            text-decoration: underline;
        }
.library-sidebar .custom-ddl .ddl-header {
    display: block; /* ����� ���� ��� ������ */
    padding: 0 0 0.5em 0;
    margin: 0;
    font-weight: bold;
}
.library-sidebar .custom-ddl {
    display: block; /* ��� ����� */
    max-height: none; /* ����� �� Scroll */
    overflow: visible;
    background: transparent; /* ����� �� ����� ���� */
    padding: 0;
    border-radius: 0;
    border:none;
}

    .library-sidebar .custom-ddl .custom-sec {
        display: block;
        flex-wrap: unset;
        row-gap: 0.25rem;
        column-gap: 0;
        padding: 0;
    }

        .library-sidebar .custom-ddl .custom-sec a {
            display: block;
            color: #333;
            padding: 0.25rem 0;
            text-decoration: none;
        }

            .library-sidebar .custom-ddl .custom-sec a:hover {
                text-decoration: underline;
                color: #007bff;
            }
.daily-wisdom .wisdom-container {
    /*background-color: black;*/
    background-color: whitesmoke;
    /*    padding: 140px;*/
    border-radius: 40px;
    /*margin-bottom: 2rem;*/
    color: #fff;
    padding: 2em;
    width: 100%;
    height: fit-content;
    min-height: 300px;
    max-height: 400px;
}

.daily-wisdom .wisdom-card {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    direction: ltr;
}

.daily-wisdom .author-image img,
.daily-wisdom .book-image img {
 /*   width: 80px;*/
    min-height: 120px;
    max-height: 15rem;
    object-fit: cover;
    border-radius: 20px;
}
.daily-wisdom .author-image img {
    max-width: 200px;
    border-radius: 50rem;
}
.daily-wisdom .wisdom-text {
    flex: 1;
    text-align: center;
    min-width: 130px;
    color: black;
}

.daily-wisdom .wisdom-title {
    font-size: 1.25rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.daily-wisdom .wisdom-description {
    font-size: 1.18rem;
    margin-bottom: 0.5rem;
}

.daily-wisdom .wisdom-author {
    font-size: 0.78rem;
/*    font-style: italic;*/
    text-align: left;
}

@media (max-width: 992px) {
    .library-layout {
        flex-direction: column;
    }

    .library-sidebar {
        width: 100%;
    }

    .daily-wisdom .wisdom-card {
        flex-wrap: wrap;
        justify-content: center !important;
        align-items: center;
    }
    .daily-wisdom .wisdom-container {
        max-height: fit-content !important;
    }

}