.book-section .row {
  align-items: stretch;
}

.book-main-cover {
  width: 100%;
  height: 100%;
  object-fit: cover; 
  border-radius: 16px;
}

.book-section .col-lg-8 {
  display: flex;
  flex-direction: column;
  justify-content: space-between; 
  padding: 20px;
}

.book-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.book-desc {
  text-align: justify;

  font-family: "Cairo";
font-weight: 600;
font-style: SemiBold;
font-size: 16px;

letter-spacing: 0%;
text-align: right;

}

.action-row {
  margin-top: auto;
}
.book-section .badge {
  display: flex; 
  justify-content: center; 
  align-items: center; 

  font-family: "Cairo", sans-serif;
  font-weight: 500;
  font-size: 14px;
  color: #000;

  width: 59px;
  height: 34px;

  border: 1px solid #ddd;
  border-radius: 99px;
  padding: 4px 16px;

  background-color: #f8f9fa; 
}

.badge-container {
  display: flex;
  flex-wrap: wrap;
  gap: 12px; 
}

.btn-primary {
  background-color: #0069d9;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  width: 382px;
height: 61px;
gap: 8px;
border-radius: 16px;

}

.btn-primary:hover {
  background-color: #005dc5;
}

.fa-heart:hover {
  color: #ff4757;
  cursor: pointer;
}

.author-name {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
}

.author-name img {
  width: 45px !important;
  height: 45px !important;
  border-radius: 50% !important; 
  object-fit: cover !important;  
  border: 2px solid #ddd !important; 
  box-shadow: 0 2px 5px rgba(0,0,0,0.1) !important;
}

.author-name span {
  font-weight: 600 !important;
  font-size: 1rem !important;
  color: #333 !important;
}

.action-row {
  display: flex !important;
  align-items: center !important;
  gap: 20px !important; 
}

.action-row .btn {
  padding: 10px 25px !important;
  font-weight: 600 !important;
  border-radius: 8px !important;
}

.fav-btn {

  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: all 0.3s ease !important;

}

.fav-btn img {
  width: 48px !important;
  height: 48px !important;
  object-fit: contain !important;
}

.fav-btn:hover {
  transform: scale(1.1) !important;
}
.read-btn {
  display: flex;
  align-items: center;
  justify-content: center; 
  gap: 8px; 
}
.book-section .row.align-items-start {
  display: flex !important;
  align-items: stretch !important;
  gap: 2rem !important; 
}
.book-info h2.fw-bold {
  font-family: "Cairo", sans-serif !important;
  font-weight: 700 !important;
  font-style: normal !important;
  font-size: 24px !important;
  line-height: 100% !important;
  letter-spacing: 0% !important;
  margin-bottom: 12px !important; 
}
.author-name span {
  font-family: "Cairo", sans-serif !important;
  font-weight: 600 !important;
  font-style: normal !important;
  font-size: 16px !important;
  line-height: 100% !important;
  letter-spacing: 0% !important;
}
.author-name {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important; 
  margin-bottom: 12px !important;
}
.d-flex.align-items-center.mb-3 span {
  font-family: "Cairo", sans-serif !important;
  font-weight: 600 !important;
  font-style: normal !important;
  font-size: 16px !important;
  line-height: 100% !important;
  letter-spacing: 0% !important;
color: #000000;
}

.rating-row {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important; 
  color: #000000!important;
}

.rating-count,
.rating-score {
  margin: 0 !important; 
  font-family: "Cairo", sans-serif !important;
  font-weight: 600 !important;
  font-size: 14px !important;
  color: #000000!important;
}

.rating-count + .rating-score {
  margin-left: 4px !important;
  color: #000000!important;
}
.book-info {
  display: flex !important; 
  flex-direction: column !important; 
  gap: 20px !important;  
}
.book-meta {
  display: flex !important; 
  flex-direction: column !important; 
  gap: 20px !important;  
  padding: 0 !important; 

}

.book-meta li {
  font-family: "Cairo", sans-serif !important; 
  font-size: 16px !important; 
  line-height: 100% !important; 
  display: flex !important; 
  justify-content: flex-start !important; 
  gap: 15px !important; 
  text-align: right !important; 
}

.book-meta li strong {
  font-weight: 700 !important; 
  font-style: normal !important; 
  font-size:16px !important; 
  color: #000 !important; 
}

.book-meta li span {
  font-family: "Cairo"!important;
font-weight: 600!important;
color:  #000000;
font-size: 16px!important;
letter-spacing: 0%;


}
.container, .container-fluid, .container-lg, .container-md, .container-sm, .container-xl {
    margin-left: 0!important;
    margin-right: 0!important;
}
@media (min-width: 1400px) {
    .content-section .library-sidebar {
        min-width: 329px!important;
    }
}
.book-image-wrapper {
  position: relative !important;
  border-radius: 16px !important;
  overflow: hidden !important;
}

.book-image {
  display: block !important;
 
  border-radius: inherit !important;
  transition: transform 0.4s ease-in-out !important;
}

.image-layer {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  background: linear-gradient(
    rgba(255, 255, 255, 0.3),
    rgba(255, 255, 255, 0.2)
  ) !important;
  opacity: 0 !important;
  border-radius: inherit !important;
  transition: opacity 0.4s ease-in-out !important;
  z-index: 2 !important;
}


.book-image-wrapper:hover .image-layer {
  opacity: 1 !important;
}

.book-image-wrapper:hover .book-image {
  transform: scale(1.05) !important;
  width: 100%!important;
    height: 100%!important;
    object-fit: cover !important;
}

.book-section .row {
  align-items: stretch !important;
}

.book-image-wrapper {
  position: relative;
  width: 100%;
  height: 100%; 
  border-radius: 16px;
  overflow: hidden;
}

.book-image {
  width: 100%;
  height: 100%; 
  object-fit: cover; 
  transition: transform 0.4s ease-in-out;
  border-radius: inherit;
}



.reviews {
  max-width: 1000px;
  margin: auto;
}

.reviews h5 {
  font-family: "Cairo", sans-serif;
  font-weight: 700;
  color: #222;
}

.review-card {
  border: 1px solid #e6ebf2;
  border-radius: 12px;
  background-color: #fff;
}

.review-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  background-color: #ddd;
}

.review-card h6 {

font-weight: 600;
font-style: SemiBold;
font-size: 16px;
leading-trim: NONE;
line-height: 100%;
letter-spacing: 0%;

}
.review-card .d-flex.align-items-center.gap-2 {
  gap: 8px;
}

.review-card p {
font-family: "Cairo";
font-weight: 600;
font-style: SemiBold;
font-size: 14px;

letter-spacing: 0%;
text-align: right;
color: #000 !important;

}

.rating {
  font-size: 14px;
  font-family: "Cairo", sans-serif;
}

.rating span:first-child {
  font-family: "Cairo";
font-weight: 600;
font-size: 14px;
line-height: 100%;
letter-spacing: 0%;

}

.adv-wrap {
  margin-top: 50px;
}
.reviews, 
.reviews * {
  all: unset;
  display: revert;
  direction: rtl;
  box-sizing: border-box;
}

.reviewss h5 {
  display: flex;
 all: unset;
  gap: 8px!important; 
  font-family: "Cairo"!important;
font-weight: 700!important;
font-style: Bold!important;
font-size: 20px!important;
line-height: 100%;
letter-spacing: 0%;
text-align: right;
color: #000!important;

}

.reviewss h5 span:last-child {
  color: #000!important; 
  font-weight: 500;
   font-family: "Cairo"!important;
font-weight: 700!important;
font-style: Bold;
font-size: 20px!important;

line-height: 100%;
letter-spacing: 0%;
text-align: right;
}
.rating {
  display: flex;
  align-items: center;
  gap: 8px; 
}
.auth-name img {
    width: 45px !important;
    height: 45px !important;
    border-radius: 50% !important;
    object-fit: cover !important;
    border: 2px solid #ddd !important;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1) !important;
}
/** {
  font-weight: unset !important;
}
*/
@media (max-width: 1192px) {
    .section-books .book-card {
/*        flex-direction: row !important;*/
        width: auto;
        height: unset;
        min-width: 220px !important;
        max-width: 250px;
    }
}

.section-books .book-card {
  transform: scale(1.3)!important;
}
.section-books {
    row-gap: 7.5em !important;     
  column-gap: 4.9em !important; 

}

.library-section.new-works {

  margin-bottom: 70px !important;
}

.library-section.new-works .section-header p {
  font-family: "Cairo", sans-serif !important;
  font-weight: 600 !important;
  font-style: normal !important;
  font-size: 32px !important;
  line-height: 100% !important;
  letter-spacing: 0 !important;
  text-align: right !important;
  color: #000 !important;
  margin-bottom: 40px !important; 

}

.section-books.row {

  margin-left: 5px !important;
  margin-right:20px !important;

}
.side-categories .section-books.row {

margin-left: 0px !important;
  margin-right:0px !important;

}

.side-imp .section-books.row {

margin-left: 0px !important;
  margin-right:0px !important;
}

.section-header .more-btn {

     height: auto!important;
    
    gap: 0.5em!important;
 
}

.library-sidebar.new-works .section-books {
    display: flex;
    flex-direction: column;
    gap: 1em;
}

.library-sidebar.new-works .book-card-row {
    display: flex !important;
    flex-direction: row !important;
    align-items: center;
    background-color: #F2F4F5;

    border-radius: 1em;
    box-shadow: 0px 2px 6px rgba(0,0,0,0.15);
    overflow: hidden;
    width: 100%;
    max-width: 540px;
    min-height: 170px;
 
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.library-sidebar.new-works .book-card-row:hover {
    transform: translateY(-4px);
    box-shadow: 0px 4px 10px rgba(0,0,0,0.2);
}

.library-sidebar.new-works .book-card-row .book-img {
    flex: 0 0 40%;
    height: 100%;
    overflow: hidden;
    position: relative;
}

.library-sidebar.new-works .book-card-row .book-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.library-sidebar.new-works .book-card-row .book-details {
    flex: 1;
  
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.5em;
}


.library-sidebar .sidebar-section {
    width: auto !important;
}
.book-card-row .book-img img {
  width: 100%;
  border-radius: 1em;
  height: 100%;
  transform: scale(1.05);
  transition: transform 0.4s ease-in-out, border-radius 0.5s ease-in-out;
  object-fit: cover; 
}
.book-card-row {
  display: flex;              
  align-items: center;         
  gap: 1em;                    
  background-color:  #F2F4F5;
;
  border-radius: 1em !important;
  box-shadow: 0px 2px 4px 0px #00000040;
  padding: 0.8em 1em;
  width: 100%;
  max-width: 450px;            
}



.book-card-row .book-img {
  flex: 0 0 120px;
  height: 160px;
  border-radius: 0.8em;
  overflow: hidden;background: #F2F4F5;

}
.book-card-row .book-img img {
  width: 100%;
  height: 100%;
  object-fit: cover!important;
  transition: transform 0.4s ease-in-out;
}



.book-card-row .book-img:hover img {
  transform: scale(1.07);
}

.book-card-row .book-details {
  flex: 1;                      
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.side-imp .section-books {
  display: flex;
  flex-direction: column; 
  gap: 1em!important;
}
.side-imptitle {
  font-family: "Cairo", sans-serif;
  font-weight: 700!important;
  font-style: normal; 
  font-size: 16px!important;
  line-height: 100%;
  letter-spacing: 0;
  color: #000; 
}

.library-sidebar .sidebar-section.side-imp {
    border-bottom: none !important;
}
.library-sidebar .sidebar-section.side-imp:first-of-type {
  border-bottom: 1px solid #D9D9D9 !important;
  padding-bottom: 1.5em !important;
  margin-bottom: 1.5em !important;
}

.side-categories .section-books {
  display: flex;
  flex-direction: column; 
  gap: 1em !important;   
}
.content-section .library-main {
   gap: 0 !important;
}

@media (max-width: 1920px) {
    .library-sidebar.new-works .book-card-row {
        flex-direction: row !important;
        /* width: auto; */
        height: unset;
        min-width: 220px !important;
        max-width: 250px;
    }
}
.section-books.row .book-card-row .book-details .star-rating:not(#ignore) {
  display: block !important;
  align-items: center !important;
  gap: 4px !important;
  margin-bottom: 4px !important;
}


.book-details .book-name .like-book {
 
    width: 25px !important;
    height: 25px !important;
   
}


@media (max-width: 1375px) {
      .content-section {
        flex-direction: column-reverse!important;
    }
    .content-section .library-sidebar {
        min-width: fit-content!important;
    }
    .content-section {
    display:block!important;
    background-color: #fff;
}
.library-sidebar .side-title {
   font-family: "Cairo", sans-serif !important;
    font-weight: 600 !important;
    font-style: normal !important;
    font-size: 32px !important;
    line-height: 100% !important;
}

.side-categories .section-books {
  display: flex !important;
  flex-wrap: wrap !important;
  justify-content: flex-start !important;
  gap: 20px !important;
}

.side-categories .section-books {
     display: flex!important;
     flex-direction: row!important; 
    gap: 1em !important;
}
.library-sidebar.new-works .section-books {
 
     flex-direction: row!important; 
}
.side-imp .section-books {
    display: flex;
     flex-direction: row!important; 
    gap: 1em !important;
}

}
@media (max-width: 879px) {
      .content-section {
        flex-direction: column-reverse!important;
    }
   
}

@media (max-width: 768px) {
  .library-sidebar {
    justify-content: initial !important;
    
  }
}
@media (max-width: 629px) {
  .library-sidebar {
    justify-content: initial !important;
    display: block!important;
    
  }
         
.library-sidebar.new-works .section-books {
    row-gap: 4.5em !important;
     margin-top: 2em !important;
   
}
.library-sidebar .sidebar-section.side-imp:first-of-type {
    border-bottom: none !important;
}}
@media (max-width: 536px) {
  .library-sidebar {
    justify-content: initial !important;
    display: block!important;
    
  }
          .library-sidebar.new-works .book-card-row {
    transform: scale(1.3) !important;
}
.library-sidebar.new-works .section-books {
    row-gap: 4.5em !important;
     margin-top: 2em !important;
   
}
.library-sidebar .sidebar-section.side-imp:first-of-type {
    border-bottom: none !important;
}}
.library-sidebar.new-works .book-card-row .book-img img {
     transform: scale(1.05)  !important;
  
     transition: transform 0.4s 
ease-in-out, border-radius 0.5s 
ease-in-out !important;
  
}

.library-sidebar.new-works .book-card-row .book-img img  {
    width: 100% !important;
  
    height: 100% !important;
  
}

.section-header .more-btn {

   margin-bottom: 40px!important;
}
.content-section {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.content-section.loaded {
  opacity: 1;
  transform: translateY(0);
}
.section-books .book-card,
.section-books .book-card-row {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.section-books .book-card.show,
.section-books .book-card-row.show {
  opacity: 1;
  transform: translateY(0);
}
.book-card:hover,
.book-card-row:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
}
.reviewss {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reviewss.visible {
  opacity: 1;
  transform: translateY(0);
}
.review-card {
  transform: translateY(30px);
  opacity: 0;
  transition: all 0.6s ease;
}

.reviewss.visible .review-card {
  opacity: 1;
  transform: translateY(0);
}
.review-card:nth-child(1) { transition-delay: 0.1s; }
.review-card:nth-child(2) { transition-delay: 0.25s; }
.review-card:nth-child(3) { transition-delay: 0.4s; }
.review-card:hover {
  transform: scale(1.03)!important;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1)!important;
  transition: all 0.3s ease!important;
}
.review-card {
  transition: transform 0.2s ease, box-shadow 0.2s ease !important;
  cursor: pointer !important;
}


.modal-footer .btn {
    padding: 4px 14px;
    font-size: 13px;
    width: 90px;
    height: 40px;
}

.small-box {
    max-width: 320px; /* ��� ���� */
}

    .small-box .modal-content {
        border-radius: 12px; /* ����� ����� */
        text-align: center;
    }
    .small-box .modal-body {
        font-size: 14px;
        padding: 20px;
    }
.modal-footer {
  
     border-top: 0px ; 
  
}
.modal-header {
 
   border-bottom: 0px; 
   
}