/* ========================================
   BASE STYLES
   ======================================== */

.banner {
  width: 100%;
  height: 361px;
  position: relative;
  overflow: hidden;
  direction: rtl;
  margin-bottom: 50px;
}

.swiper-container {
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.swiper-wrapper {
  width: 100%;
  height: 100%;
}

.swiper-slide {
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  width: 100%;
  height: 100%;
  flex-shrink: 0;
}

/* 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;
}

/* ========================================
   CONTENT SECTIONS
   ======================================== */

.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;
}

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

.see-all:hover {
  text-decoration: underline;
}

/* ========================================
   SCROLL CONTAINERS
   ======================================== */

.scroll-container {
  overflow-x: auto;
  white-space: nowrap;
  display: flex;
  scroll-behavior: smooth;
  gap: 12px;
  padding: 10px 0;
  -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
}

.scroll-container::-webkit-scrollbar {
  display: none;
}

.scroll-container {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.overflow-hidden {
  width: 100%;
  overflow: hidden;
}

/* ========================================
   BOOK CARDS
   ======================================== */

.imgHome {
 /* width: 185px;
  height: 280px;*/
  width: 159px;
    height: 226px;
  object-fit: cover;
  border-radius: 8px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.imgHome:hover {
  transform: scale(1.05);
  z-index: 10;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.costum-title {
  color: #000;
  text-align: right;
  font-size: 15px;
  font-style: normal;
  font-weight: 500;
  line-height: 1.4;
  white-space: normal;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  max-width: 100%;
  margin-bottom: 8px;
}

.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;
  margin-bottom: 8px;
}

/* ========================================
   QUOTE CARDS
   ======================================== */

.quote-card {
  scroll-snap-align: start;
  background-color: #fff;
  min-width: 300px;
  max-width: 500px;
  width: auto;
  flex: 0 0 auto;
  min-height: auto;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  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.15);
}

.author-quote {
  font-size: 16px;
  line-height: 1.33;
  text-align: right;
  color: #666;
  margin-bottom: 8px;
  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;
  margin-bottom: 12px;
}

.text-quote {
  font-size: 15px;
  line-height: 1.6;
  text-align: right;
  color: #333;
  margin-bottom: 16px;
}

.share-quote {
  font-size: 14px;
  font-weight: 500;
  line-height: 1.2;
  text-align: right;
  color: #eb6824;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.share-quote:hover {
  text-decoration: underline;
}

#scrollContainer-quote {
  scroll-snap-type: x mandatory;
}

/* ========================================
   CATEGORY CARDS
   ======================================== */

.cat-item {
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  width: calc(33.333% - 12px);
  min-width: 250px;
}

.cat-card {
  background-color: #fff;
  width: 100%;
  min-height: 200px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  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.15);
}

.quote-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ========================================
   NAVIGATION BUTTONS
   ======================================== */

#prevBtn, #nextBtn,
#prevBtn2, #nextBtn2,
#prevBtn3, #nextBtn3,
#prevBtn4, #nextBtn4,
#prevBtn5, #nextBtn5,
#prevBtn6, #nextBtn6,
#prevBtn7, #nextBtn7,
#prevBtn8, #nextBtn8,
#prevBtn9, #nextBtn9,
#prevBtn10, #nextBtn10,
#prevBtn11, #nextBtn11,
#prevBtn12, #nextBtn12,
#prevBtn13, #nextBtn13,
#prevBtn14, #nextBtn14,
#prevBtn15, #nextBtn15,
#prevBtn16, #nextBtn16,
#prevBtn17, #nextBtn17,
#prevBtn-quote, #nextBtn-quote,
#prevBtn-cat, #nextBtn-cat {
  z-index: 10;
  border: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* ========================================
   MOBILE RESPONSIVE STYLES
   ======================================== */

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

  /* Banner */
  .banner {
    height: 220px;
    margin-bottom: 30px;
  }

  .swiper-pagination {
    bottom: 10px !important;
  }

  /* Section headers */
  .desc-title {
    font-size: 20px !important;
    padding-top: 16px !important;
  }

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

  .container.d-flex.align-items-center.justify-content-between {
    gap: 10px !important;
    margin-bottom: 12px;
  }

  /* Hide navigation buttons */
  #prevBtn, #nextBtn,
  #prevBtn2, #nextBtn2,
  #prevBtn3, #nextBtn3,
  #prevBtn4, #nextBtn4,
  #prevBtn5, #nextBtn5,
  #prevBtn6, #nextBtn6,
  #prevBtn7, #nextBtn7,
  #prevBtn8, #nextBtn8,
  #prevBtn9, #nextBtn9,
  #prevBtn10, #nextBtn10,
  #prevBtn11, #nextBtn11,
  #prevBtn12, #nextBtn12,
  #prevBtn13, #nextBtn13,
  #prevBtn14, #nextBtn14,
  #prevBtn15, #nextBtn15,
  #prevBtn16, #nextBtn16,
  #prevBtn17, #nextBtn17,
  #prevBtn-quote, #nextBtn-quote,
  #prevBtn-cat, #nextBtn-cat {
    display: none !important;
  }

  /* Book cards */
  .scroll-container {
    gap: 12px !important;
    padding: 8px 0;
  }

  .scroll-container > div {
    min-width: 140px !important;
  }

  .imgHome {
    width: 140px !important;
    height: 210px !important;
  }

  .costum-title {
    font-size: 13px !important;
    max-width: 140px !important;
    margin-bottom: 4px;
  }

  .costum-author {
    font-size: 12px !important;
    max-width: 140px !important;
    margin-bottom: 4px;
  }

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

  .card-body {
    padding-top: 12px !important;
  }

  /* Quote cards */
  .quote-card {
    min-width: calc(100% - 24px) !important;
    max-width: calc(100% - 24px) !important;
    padding: 16px !important;
  }

  .author-quote {
    font-size: 14px;
  }

  .title-quote {
    font-size: 15px;
    margin-bottom: 10px;
  }

  .text-quote {
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 12px;
  }

  .share-quote {
    font-size: 13px;
  }

  /* Category cards */
  .cat-item {
    width: calc(50% - 8px) !important;
    min-width: calc(50% - 8px) !important;
  }

  .cat-card {
    min-height: 160px;
  }

  .cat-item .text-end {
    padding: 0 4px;
  }

  .cat-item .text-end p:first-child {
    font-size: 14px !important;
  }

  .cat-item .text-end p:last-child {
    font-size: 12px !important;
  }

  /* Spacing adjustments */
  .position-relative {
    margin-bottom: 24px !important;
  }

  .container.mt-4 {
    margin-top: 20px !important;
  }

  .container.mb-4 {
    margin-bottom: 20px !important;
  }

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

  /* SVG icons */
  svg[width="16"][height="16"] {
    width: 14px !important;
    height: 14px !important;
  }

  /* Improve touch targets */
  .book-link {
    display: block;
    min-height: 44px;
  }

  .see-all {
    padding: 8px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
}

/* Extra small devices */
@media (max-width: 480px) {
  
  .banner {
    height: 180px;
  }

  .desc-title {
    font-size: 18px !important;
  }

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

  .scroll-container > div {
    min-width: 130px !important;
  }

  .imgHome {
    width: 130px !important;
    height: 195px !important;
  }

  .costum-title {
    font-size: 12px !important;
    max-width: 130px !important;
  }

  .costum-author {
    font-size: 11px !important;
    max-width: 130px !important;
  }

  .quote-card {
    padding: 12px !important;
  }

  .cat-item {
    width: calc(100% - 12px) !important;
    min-width: calc(100% - 12px) !important;
  }
}

/* Landscape orientation */
@media (max-width: 768px) and (orientation: landscape) {
  
  .banner {
    height: 200px;
  }

  .imgHome {
    height: 180px !important;
  }
}

/* ========================================
   ACCESSIBILITY & TOUCH IMPROVEMENTS
   ======================================== */

@media (hover: none) and (pointer: coarse) {
  /* Touch device optimizations */
  
  .imgHome:active {
    transform: scale(0.98);
  }

  .quote-card:active,
  .cat-card:active {
    transform: translateY(-2px);
  }

  .see-all:active,
  .book-link:active,
  .share-quote:active {
    opacity: 0.7;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .quote-card,
  .cat-card {
    border: 2px solid #000;
  }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  
  .scroll-container {
    scroll-behavior: auto;
  }
}

/* ========================================
   PRINT STYLES
   ======================================== */

@media print {
  .banner,
  #prevBtn, #nextBtn,
  .swiper-pagination,
  .adsbygoogle {
    display: none !important;
  }
  
  .imgHome {
    max-width: 100px !important;
    height: auto !important;
  }
}



