
/*.banner{
  width: 100%;

     position: relative;
     overflow: hidden;
   direction: rtl;
 }*/
.banner{
  width: 100%;
  height: 361px;
  position: relative;
  overflow: hidden; /* Change from hidden to visible */
  direction: rtl;
  margin-bottom: 50px; /* Add space below for pagination */
}

 .swiper-container {
   width: 100%;
  height: 100%;
  overflow: hidden;
 }
 .swiper-wrapper {
  width: 100%;
  height: 100%;
}
.swiper-slide {
  background-size: cover; /* ensure full cover */
  background-position: center center;
  background-repeat: no-repeat;
  width: 100%;
  height: 100%;
  flex-shrink: 0;
}

 .btn {
   display: inline-block;
  /* background: #ffa500;*/
   color: #fff;
   padding: 10px 20px;
   text-decoration: none;
   border-radius: 5px;
 }
 
 .btn:hover {
   background: #e69500;
 }
 
 /* Pagination Styling */
 /*.swiper-pagination {
   bottom: 20px !important;
 }*/
 /* Pagination Styling */
.swiper-pagination {
  bottom: 20px !important;
  position: absolute !important;
  z-index: 10;
  text-align: center;
}


.swiper-pagination-bullet {
  width: 12px !important;
  height: 12px !important;
  background: #D9D9D9 !important;
  opacity: 1 !important;
  margin: 0 4px !important;
}

.swiper-pagination-bullet-active {
  background: #F6C174 !important;
  border: 2px solid #F6C174 !important;
  box-shadow: 0 0 0 3px rgba(246, 193, 116, 0.3) !important;
  width: 16px !important;
  height: 16px !important;
}

 
 /*****************************************************************************************************/

.views-count{
  color: var(--Success-500, #00866B);
text-align: right;

font-size: 14px;
font-style: normal;
font-weight: 300;
line-height: normal;
}

.desc-title {
  color: var(--Neutral-800, #0D0D0D);
  text-align: right;
  font-size: 27px;
  font-style: normal;
  font-weight: 500;
  line-height: normal;
  padding-top: 26px;
  margin-bottom: 0; /* Remove default margin */
}

.see-all {
  color: var(--main, #F6C174);
text-align: right;
font-size: 19px;
font-style: normal;
font-weight: 700;
line-height: normal;
  padding-top: 26px; /* Match desc-title padding */
}

.scroll-container {
  overflow-x: auto;
  white-space: nowrap;
  display: flex;
  scroll-behavior: smooth;
}
.overflow-hidden {
  width: 100%;
}
#prevBtn, #nextBtn {
  z-index: 10; /* Ensures buttons appear above books */
}
.costum-title{
  color: #000;
text-align: right;
font-size: 15px;
font-style: normal;
font-weight: 500;
line-height: normal;
white-space: nowrap;
overflow: hidden;
 -webkit-line-clamp: 2;  /* show up to 2 lines */
  -webkit-box-orient: vertical;
  text-overflow: ellipsis;
  max-width: 100%;
  height: auto;
  white-space: normal; /* allow wrapping */
max-width: 100%;
  display: -webkit-box;
}

.costum-author{
  color: var(--Gray-800, #2B323B);
text-align: right;

font-size: 14px;
font-style: normal;
font-weight: 300;
line-height: normal;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    display: block;

}
 /* Hide scrollbar for Chrome, Safari and Opera */
.scroll-container::-webkit-scrollbar {
  display: none;
}

/* Hide scrollbar for IE, Edge and Firefox */
.scroll-container {
  -ms-overflow-style: none;  /* IE and Edge */
  scrollbar-width: none;  /* Firefox */
}

/* Ensure the container properly hides overflow */
.overflow-hidden {
  overflow: hidden;
}
/* Mobile Responsive CSS for Arabic Book Library */

/* Base mobile breakpoints */
@media (max-width: 768px) {
  
  /* Container adjustments */
  .container, .container-fluid {
    padding-left: 15px !important;
    padding-right: 15px !important;
  }

  /* Header section - Featured Book */
  .container[style*="padding-top: 111px"] {
    padding-top: 80px !important;
  }

  /* Main row layout - stack vertically */
  .row .col-3 {
   
    width: 100% !important;
    flex: 0 0 100% !important;
    max-width: 100% !important;
   /* margin-bottom: 20px;*/
  }
.col-3.p-3.d-flex.justify-content-center.align-items-center > div:first-child {
 display: flex;
}
  /* More popular section */
  .more-popular {
    display: none;
    width: 100% !important;
    height: auto !important;
    margin: 20px 0 !important;
    text-align: center;
    align-items: center !important;
  }

  .more-popular .Frame-363 {
    width: 100% !important;
    height: auto !important;
    text-align: center;
    align-items: center !important;
  }

  .more-popular .span1 {
    font-size: 32px !important;
    text-align: center;
  }

  .more-popular .span3 {
    font-size: 14px !important;
    text-align: center;
  }

  /* Featured book image section */
  .col-3.p-3:nth-child(2) {
   /* order: -1; /* Move image to top */
   padding: 0 !important;
      
        width: 100% !important;
        height: auto !important;
        text-align: center;
        align-items: center !important;
  }

  .col-3.p-3:nth-child(2) img {
    
    object-fit: contain;
            width: 155px !important;
  }

  /* Book details section */
  .col-3.p-3.d-flex {
    padding: 15px !important;
  }

  .book-title2 {
    font-size: 18px !important;
    text-align: center;
    margin-bottom: 10px;
  }

  .book-author {
    font-size: 16px !important;
    text-align: center;
    margin-bottom: 8px;
  }

  /* Section titles and navigation */
  .desc-title {
    font-size: 22px !important;
    padding-top: 20px !important;
  }

  .see-all {
    font-size: 16px !important;
    padding-top: 20px !important;
  }

  /* Horizontal scroll sections */
  .position-relative {
    margin-bottom: 30px !important;
  }

  /* Hide navigation buttons on very small screens */
  #prevBtn, #nextBtn, #prevBtn2, #nextBtn2, #prevBtn3, #nextBtn3, #prevBtn4, #nextBtn4 {
    display: none !important;
  }

  /* Book cards in scroll containers */
  .scroll-container {
    padding: 0 10px;
    gap: 15px !important;
  }

  .scroll-container > div {
    min-width: 150px !important;
    flex-shrink: 0;
  }

  .scroll-container img {
    height: 229px !important;
    object-fit: cover;
  }

  .costum-title {
    font-size: 14px !important;
    max-width: 150px !important;
  }

  .costum-author {
    font-size: 12px !important;
    max-width: 150px !important;
  }

  .views-count {
    font-size: 12px !important;
  }

  /* Banner section */
 /* .banner {
    height: 250px !important;
  }*/
.banner{
  width: 100%;
  height: 361px;
  position: relative;
  overflow: visible; /* Change from hidden to visible */
  direction: rtl;
  margin-bottom: 50px; /* Add space below for pagination */
}
  /* SVG decorative elements */
  svg[viewBox="0 0 1400 184"] {
    height: 60px !important;
  }

  /* Ad containers */
  .container:has(.adsbygoogle) {
    margin: 20px 0 !important;
  }

  /* Bookmark icon */
  .bookmark-icon2 {
           width: 22px !important;
        height: 33px;
  }

  /* Ensure proper RTL layout on mobile */
  .d-flex.justify-content-start {
    justify-content: center !important;
  }
}
/* Extra small devices (phones, less than 576px) */
@media (max-width: 575px) {
  
  .more-popular .span1 {
    font-size: 24px !important;
  }
  .desc-title {
    font-size: 20px !important;
  }

  .see-all {
    font-size: 14px !important;
  }

  /*.banner {
    height: 200px !important;
  }*/
  .banner{
  width: 100%;
  height: 361px;
  position: relative;
  overflow: visible; /* Change from hidden to visible */
  direction: rtl;
  margin-bottom: 50px; /* Add space below for pagination */
}
  .scroll-container > div {
    min-width: 130px !important;
  }
  .scroll-container img {
    height: 229px !important;
  }
  .book-author {
    font-size: 14px !important;
  }
  /* Stack the container content better */
  .container.d-flex.align-items-center.justify-content-between {
   /* flex-direction: column !important;*/
    align-items: flex-start !important;
    gap: 10px !important;
  }

  .container.d-flex.align-items-center.justify-content-between .see-all {
    align-self: flex-end;
    padding-top: 0 !important;
  }
}

/* Landscape phones */
@media (max-width: 768px) and (orientation: landscape) {
  
 /* .banner {
    height: 180px !important;
  }*/
  .banner{
  width: 100%;
  height: 361px;
  position: relative;
  overflow: visible; /* Change from hidden to visible */
  direction: rtl;
  margin-bottom: 50px; /* Add space below for pagination */
}


  .container[style*="padding-top: 111px"] {
    padding-top: 60px !important;
  }
}

/* Touch improvements for mobile */
@media (max-width: 768px) {
  
  /* Improve touch targets */
  .book-link {
    display: block;
    min-height: 44px;
  }

  /* Better spacing for touch */
  .scroll-container {
    padding: 10px 0;
  }

  /* Ensure links are easily tappable */
  .see-all {
    padding: 10px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  /* Better readability */
  .book-title2 {
    line-height: 1.3;
  }

  .book-author {
    line-height: 1.4;
  }
}
.imgHome{
  width: 185px;
    transition: transform 0.3s ease, box-shadow 0.3s ease; /* Smooth transition */
    cursor: pointer; /* Show pointer on hover */
}
.imgHome:hover {
    transform: scale(1.05); /* Slightly bigger */
    z-index: 10; /* Bring on top if needed */
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2); /* Optional shadow for depth */
}

.quote-card {
  background-color: #fff;
  width: calc(50% - 12px); /* 50% width minus gap */
  min-width: calc(50% - 12px); /* Ensure it stays at 50% */
  max-width: calc(50% - 12px); /* Ensure it stays at 50% */
  min-height: 200px;
  flex-shrink: 0; /* Prevent shrinking */
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.quote-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
}

.quote-img {
 
  height: auto;
  object-fit: cover;
  flex-shrink: 0;
}

.quote-text {
 flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.author-quote {
  font-size: 16px;
  line-height: 1.33;
  text-align: right;
  color: #666;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.title-quote {
  font-size: 16px;
  font-weight: bold;
  line-height: 1.33;
  text-align: right;
  color: #0d0d0d;
}


.share-quote {
  font-size: 14px;
  font-weight: 500;
  line-height: 1.2;
  text-align: right;
  color: #eb6824;
  text-decoration: none;
  margin-top: auto; /* Push to bottom */
 
}

/* Ensure only 2 quotes are visible at a time */
#scrollContainer-quote {
  scroll-snap-type: x mandatory;
}

.quote-card {
  scroll-snap-align: start;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
  .quote-card {
    width: calc(100% - 12px); /* 1 quote per row on mobile */
    min-width: calc(100% - 12px);
    max-width: calc(100% - 12px);
  }
  
  .text-quote {
    font-size: 16px;
    min-height: 100px;
  }
  
  .quote-img {
    width: 100px;
  }
}



.cat-card {
  background-color: #fff;
  width: calc(33.333% - 12px); /* 3 cards per row */
  min-width: calc(33.333% - 12px);
  max-width: calc(33.333% - 12px);
  min-height: 200px;
  flex-shrink: 0;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}


.cat-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
}
.cat-card {
  scroll-snap-align: start;
}
