/* Refine the original homepage, retaining its sections, imagery and components. */
body:has(.home-refined) {
  --theme-color: #b86250;
  --ds-primary: #b86250;
  --ds-primary-dark: #a45141;
  --ds-primary-action: #b86250;
  --ds-primary-action-hover: #a45141;
  --ds-primary-light: #f8ece7;
}
.home-refined { width: 100%; max-width: 100%; overflow-x: clip; }
.home-refined :is(.space, .space-top) { padding-top: clamp(64px, 7vw, 104px); }
.home-refined :is(.space, .space-bottom, .custom-space-bottom) { padding-bottom: clamp(64px, 7vw, 104px); }
.home-refined .container { max-width: 1320px; }
.home-refined .hero-item { padding-block: clamp(56px, 6vw, 88px); }
.home-refined .hero-content { max-width: 600px; }
.home-refined .hero-title { font-size: clamp(2.1rem, 3.6vw, 3.5rem); line-height: 1.22; letter-spacing: -.025em; text-wrap: balance; margin-bottom: 24px; }
.home-refined .hero-title .title-highlight { color: #b86250; }
.home-refined .hero-title .title-highlight::after { background: #b86250; opacity: .4; bottom: 0; }
.home-refined .hero-text { max-width: 540px; font-size: 17px; line-height: 1.85; margin-bottom: 30px; }
.home-refined .hero-content .d-flex { gap: 14px !important; }
.home-refined .hero-img { overflow: hidden; border-radius: 24px; box-shadow: 0 18px 48px rgba(46,74,91,.14); }
.home-refined .hero-img img { display: block; width: 100%; height: auto; }
.home-refined .hero-layout1 > .shape-mockup { opacity: .45; pointer-events: none; }
.home-refined :is(.title-area, .title-area2) { margin-bottom: 38px; }
.home-refined .title-area2 { gap: 24px; align-items: center; }
.home-refined .sec-title { font-size: clamp(1.7rem, 2.5vw, 2.55rem); line-height: 1.35; text-wrap: balance; letter-spacing: -.02em; }
.home-refined .title-area2 .sec-title { flex: 1; margin: 0; }
.home-refined .title-area2 .border-line { display: none !important; }
.home-refined .title-area2 > .vs-btn { flex-shrink: 0; }
.home-refined .vs-btn { border-radius: 9px; min-height: 46px; font-size: 14px; font-weight: 600; padding: 14px 24px; line-height: 1.5; background-color: #b86250; color: #fff; transition: background-color .25s, box-shadow .25s, transform .25s; }
.home-refined .vs-btn::before, .home-refined .vs-btn::after { background-color: #a45141; }
.home-refined .vs-btn:hover { color: #fff; background-color: #a45141; transform: translateY(-2px); box-shadow: 0 6px 18px rgba(184,98,80,.2); }
.home-refined .vs-btn--ghost { background: transparent; border: 1px solid #b86250; color: #b86250; }
.home-refined .vs-btn--ghost:hover { background: #b86250; color: #fff; }
.home-refined .vs-btn--ghost::before, .home-refined .vs-btn--ghost::after { background: #b86250; }
.home-refined .product-style1 { height: 100%; border-radius: 14px; overflow: hidden; box-shadow: 0 3px 16px rgba(46,74,91,.055); border: 1px solid var(--ds-border-light); transition: transform .3s, box-shadow .3s, border-color .3s; }
.home-refined .product-style1:hover, .home-refined .product-style1:focus-within { transform: translateY(-5px); box-shadow: 0 12px 30px rgba(46,74,91,.11); border-color: rgba(184,98,80,.35); }
.home-refined .product-img { overflow: hidden; }
.home-refined .trending-layout1 .product-img { aspect-ratio: 3 / 4; }
.home-refined .trending-layout1 .product-img > img { width: 100%; height: 100%; object-fit: contain; padding: 12px; background: var(--ds-bg-muted); }
.home-refined .product-img > img { transition: transform .7s ease; }
.home-refined .product-style1:hover .product-img > img, .home-refined .product-style1:focus-within .product-img > img { transform: scale(1.035); }
.home-refined .product-content { padding: 20px 18px !important; }
.home-refined .product-style1 { background: var(--ds-surface); }
.home-refined .product-title a { color: var(--ds-text); }
.home-refined .product-title a:hover { color: #b86250; }
.home-refined .product-author { display: block; font-size: 12px; line-height: 1.7; margin-bottom: 8px; color: var(--ds-text-muted); }
.home-refined .product-title { font-size: 18px; line-height: 1.5; margin-bottom: 10px; overflow-wrap: anywhere; }
.home-refined .product-rating { margin-bottom: 10px; }
.home-refined .product-style1 .post-box li { background-color: #b86250; color: white; font-size: 11px; border-radius: 5px; }
.home-refined .product-style1 .product-btns .icon-btn { background: #b86250; color: white; }
.home-refined .product-style1:focus-within .product-btns { opacity: 1; visibility: visible; }
.home-refined .product-style1.style2 { align-items: stretch; }
.home-refined .product-style1.style2 .product-img { flex-shrink: 0; }
.home-refined .product-style1.style2 .product-content { display: flex; flex-direction: column; justify-content: center; min-width: 0; }
.home-refined .product-style1.style2 .product-btn { margin-top: auto; padding-top: 12px; }
.home-refined .offer-style1 { height: 100%; border-radius: 18px; padding: 36px; overflow: hidden; }
.home-refined .offer-title { font-size: clamp(1.5rem, 2.3vw, 2.1rem); line-height: 1.45; }
.home-refined .offer-price { font-size: 15px; line-height: 1.8; }
.home-refined .audiobook-card { border-radius: 16px; display: flex; flex-direction: column; }
.home-refined .audiobook-card .audiobook-img { aspect-ratio: 4 / 3; background: rgba(255,255,255,.04); }
.home-refined .audiobook-card .audiobook-img img { object-fit: contain; padding: 20px; }
.home-refined .audiobook-card .ab-content { display: flex; flex-direction: column; align-items: start; flex: 1; padding: 24px; }
.home-refined .ab-title { font-size: 20px; line-height: 1.5; margin-bottom: 14px; }
.home-refined .ab-meta, .home-refined .ab-author { color: #d7e0e5; line-height: 1.7; }
.home-refined .ab-rating small { color: #d7e0e5; }
.home-refined .ab-btn { margin-top: auto; }
.home-refined .ab-play-btn { background: #b86250; }
.home-refined .ab-play-btn:hover { background: #a45141; }
.home-refined .ab-title a:hover { color: #f0b6a8; }
.home-refined .ds-filter-bar { gap: 10px; margin-bottom: 32px; justify-content: center; flex-wrap: wrap; }
.home-refined .ds-filter-chip { min-height: 44px; padding: 10px 22px; border-radius: 8px; }
.home-refined .ds-filter-bar .active .ds-filter-chip { background: #b86250; border-color: #b86250; color: #fff; }
.home-refined .selling-title { font-size: clamp(1.8rem, 3vw, 2.8rem); line-height: 1.4; }
.home-refined .author-name { font-size: 25px; line-height: 1.5; }
.home-refined .selling-text { font-size: 16px; line-height: 1.85; }
.home-refined .selling-img-tag { border-radius: 20px; }
.home-refined .selling-books .book-item { overflow: hidden; border-radius: 8px; }
.home-refined .selling-books .book-item img { transition: transform .7s; }
.home-refined .selling-books .book-item:hover img { transform: scale(1.05); }
.home-refined .rental-stats-bar { margin-bottom: 36px; box-shadow: 0 3px 20px rgba(184,98,80,.06); border: 1px solid var(--ds-border-light); }
.home-refined .rental-stat { padding: 24px; }
.home-refined .rental-stat__icon, .home-refined .rental-stat__number { color: #b86250; }
.home-refined .rental-stat__label { line-height: 1.6; max-width: 150px; }
.home-refined .blog-style1 { border-radius: 16px; overflow: hidden; height: 100%; }
.home-refined .blog-style1 .blog-content { padding: 24px; }
.home-refined .blog-title { font-size: 22px; line-height: 1.5; }
.home-refined .blog-img { overflow: hidden; }
.home-refined .blog-img__img { aspect-ratio: 1.5; object-fit: cover; transition: transform .7s; }
.home-refined .vs-blog:hover .blog-img__img, .home-refined .vs-blog:focus-within .blog-img__img { transform: scale(1.04); }
.home-refined .blog-date { background: #b86250; }
.home-refined .slick-arrow { background-color: #b86250; color: white; width: 44px; height: 44px; }
.home-refined .slick-arrow:hover { background-color: #a45141; }
html[lang="ar"] .home-refined :is(.hero-title, .sec-title) { letter-spacing: 0; line-height: 1.55; }
html[lang="ar"] .home-refined :is(.product-title, .ab-title, .blog-title) { line-height: 1.65; }
@media (hover: none) { .home-refined .ab-overlay { opacity: 1; background: rgba(45,74,91,.18); } }
@media (max-width: 1199px) {
  .home-refined .container { padding-inline: 24px; }
  .home-refined .offer-style1 { padding: 28px; }
}
@media (max-width: 991px) {
  .home-refined .hero-content { max-width: 720px; margin-inline: auto; text-align: center; }
  .home-refined .hero-title { font-size: clamp(2rem, 5vw, 3rem); }
  .home-refined .hero-text { margin-inline: auto; }
  .home-refined .hero-content .d-flex { justify-content: center; }
  .home-refined .hero-img { max-width: 640px; margin-inline: auto; }
  .home-refined .hero-img img { max-height: 460px; object-fit: cover; }
  .home-refined .title-area2 { flex-wrap: wrap; justify-content: space-between; }
  .home-refined .title-area2 .sec-title { flex-basis: 60%; }
}
@media (max-width: 575px) {
  .home-refined .container { padding-inline: 20px; }
  .home-refined .hero-item { padding-block: 44px; }
  .home-refined .hero-title { font-size: clamp(1.8rem, 7.5vw, 2.3rem); }
  .home-refined .hero-text { font-size: 15px; }
  .home-refined .hero-img { border-radius: 16px; }
  .home-refined .sec-title { font-size: 1.65rem; }
  .home-refined :is(.title-area, .title-area2) { margin-bottom: 28px; }
  .home-refined .title-area2 { gap: 16px; }
  .home-refined .title-area2 .sec-title { flex-basis: 100%; }
  .home-refined .vs-btn { padding: 12px 18px; font-size: 13px; }
  .home-refined .trending-layout1 .row > .col-xl-2 { width: 50%; }
  .home-refined .trending-layout1 .row { --bs-gutter-x: 14px; --bs-gutter-y: 20px; }
  .home-refined .trending-layout1 .product-content { padding: 16px 12px !important; }
  .home-refined .trending-layout1 .product-title { font-size: 16px; }
  .home-refined .product-style1.style2 { display: flex; }
  .home-refined .product-style1.style2 .product-img { width: 36%; }
  .home-refined .product-style1.style2 .product-img > img { width: 100%; height: 100%; min-height: 200px; object-fit: contain; padding: 8px; }
  .home-refined .product-style1.style2 .product-content { width: 64%; padding: 18px 14px !important; }
  .home-refined .product-style1.style2 .product-title { font-size: 17px; }
  .home-refined .offer-style1 { padding: 26px 22px; }
  .home-refined .rental-stat { padding: 20px 16px; gap: 12px; }
  .home-refined .rental-stat__label { font-size: 12px; }
  .home-refined .ab-content { padding: 20px; }
}
/* Closing invitation, matching the supplied reference. */
.home-refined .home-chapter-cta {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: clamp(400px, 33.14vw, 760px);
  display: flex;
  align-items: center;
  padding-block: clamp(72px, 8vw, 150px);
  background: radial-gradient(ellipse at 50% 120%, rgba(110,133,112,.35), transparent 75%), #293e3f;
  color: #fff9e9;
  text-align: center;
}
.home-chapter-cta::before, .home-chapter-cta::after {
  content: '';
  position: absolute;
  z-index: -1;
  top: 28%;
  width: clamp(280px, 28vw, 540px);
  height: clamp(380px, 37vw, 720px);
  border: 1px solid rgba(227,223,197,.1);
  border-radius: 50%;
  pointer-events: none;
}
.home-chapter-cta::before { right: 83%; transform: rotate(-35deg); }
.home-chapter-cta::after { left: 83%; transform: rotate(35deg); }
.home-refined .home-chapter-cta__eyebrow {
  margin: 0 0 14px;
  color: #c4cec2;
  font-size: 15px;
  font-weight: 600;
}
.home-refined .home-chapter-cta h2 {
  max-width: 1500px;
  margin: 0 auto 40px;
  color: #fff9e9;
  font-size: clamp(2.25rem, 5.2vw, 7.5rem);
  font-weight: 800;
  line-height: 1.25;
  text-wrap: balance;
}
html[lang="ar"] .home-refined .home-chapter-cta h2 { line-height: 1.25; }
.home-refined .home-chapter-cta > .container { width: min(100% - 48px, 1680px); max-width: none; padding-inline: 0; }
.home-refined .home-chapter-cta__button i { transform: none !important; rotate: none; }
.home-refined .home-chapter-cta__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: clamp(18px, 1.5vw, 30px);
  min-height: clamp(48px, 3.27vw, 68px);
  padding: clamp(12px, .9vw, 18px) clamp(20px, 1.55vw, 32px);
  border: 1px solid #ad6654;
  border-radius: 4px;
  background: #ad6654;
  color: #f1f3f4;
  font-size: clamp(14px, 1vw, 20px);
  font-weight: 700;
  line-height: 1.5;
  text-decoration: none;
  transition: background-color .25s, transform .25s, box-shadow .25s;
}
.home-refined .home-chapter-cta__button:hover {
  background: #fff9e9;
  color: #293e3f;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,.12);
}
.home-refined .home-chapter-cta__button:focus-visible { outline-color: #fff9e9 !important; outline-offset: 5px !important; }
@media (max-width: 575px) {
  .home-refined .home-chapter-cta h2 { margin-bottom: 32px; }
  .home-refined .home-chapter-cta__eyebrow { font-size: 13px; }
  .home-refined .home-chapter-cta__button { font-size: 14px; gap: 20px; padding-inline: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  .home-refined *, .home-refined *::before, .home-refined *::after { animation: none !important; transition: none !important; }
  .home-refined .wow { visibility: visible !important; }
}
