:root {
  --site-bg: #edf1f6;
  --panel: #ffffff;
  --ink: #1b1f2a;
  --muted: #667085;
  --line: #d7dee7;
  --site-header-h: 70px;
  --accent: #9f472d;
  --accent-2: #c55f3a;
  --soft-blue: #d3e1f2;
  --soft-pink: #f4d8d0;
  --hero-height: 820px;

  /* Typography scale (keeps ratios consistent across components). */
  --fz-body: 15px;
  --lh-body: 1.6;
  --fz-nav: 15px;
  --fz-brand: clamp(20px, 1.4vw, 24px);
  --fz-label: 11px;
  --fz-translit: 12px;
  --fz-page-title: clamp(30px, 2.6vw, 50px);
  --fz-subtitle: 16px;
  --fz-book-card-title: clamp(16px, 1.15vw, 18px);
  --fz-book-card-meta: 12px;
  --fz-book-card-price: 14px;
  --fz-sidebook-title: clamp(16px, 1.25vw, 19px);
  --fz-sidebook-meta: clamp(12px, 1vw, 14px);
  --fz-sidebook-price: clamp(15px, 1.1vw, 18px);
  --fz-bd-title: clamp(30px, 3.2vw, 56px);
  --fz-bd-author: clamp(16px, 1.6vw, 20px);
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  background: var(--site-bg);
  color: var(--ink);
  font-family: Manrope, "Segoe UI", Tahoma, sans-serif;
  font-size: var(--fz-body);
  line-height: var(--lh-body);
}

.app-translit {
  display: block;
  margin-top: 4px;
  color: #6b7d95;
  font-size: var(--fz-translit);
  font-style: italic;
}

html[lang="ar"] body,
html[lang="ar"] input,
html[lang="ar"] select,
html[lang="ar"] textarea,
html[lang="ar"] button,
html[lang="ar"] div,
html[lang="ar"] :is(h1, h2, h3, h4, h5, h6),
html[lang="ar"] .btn,
html[lang="ar"] a,
html[lang="ar"] span,
html[lang="ar"] .form-control,
html[dir="rtl"] body,
html[dir="rtl"] input,
html[dir="rtl"] select,
html[dir="rtl"] textarea,
html[dir="rtl"] button,
html[dir="rtl"] div,
html[dir="rtl"] :is(h1, h2, h3, h4, h5, h6),
html[dir="rtl"] .btn,
html[dir="rtl"] a,
html[dir="rtl"] span,
html[dir="rtl"] .form-control,
body:lang(ar),
input:lang(ar),
select:lang(ar),
textarea:lang(ar),
button:lang(ar) {
  font-family: "Noto Naskh Arabic", "Segoe UI", Tahoma, sans-serif;
}

.site-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}

/* Accessibility helper (used for visually-hidden labels). */
.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(247, 249, 252, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(8px);
}

.site-header-row {
  min-height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.site-logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.site-header .theHeader-logo {
  display: inline-flex;
  align-items: center;
  width: 170px;
  max-width: 42vw;
  color: #25364a;
}

.site-header .theHeader-logo svg,
.site-header .theHeader-logo img {
  width: 100%;
  height: auto;
  display: block;
}

.site-logo-mark {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  background: #091523;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.site-logo-text {
  font-family: "Playfair Display", Georgia, serif;
  color: #7f2d16;
  font-size: var(--fz-brand);
  font-weight: 700;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  position: relative;
}

.site-nav > a,
.site-nav-link,
.site-lang-link {
  color: #4c5465;
  text-decoration: none;
  font-size: var(--fz-nav);
  font-weight: 700;
  position: relative;
  padding: 0px 0;
  transition: color 0.2s ease;
}

.site-nav > a:hover,
.site-nav-link:hover,
.site-lang-link:hover {
  color: var(--accent);
}

.site-nav > a::after,
.site-nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 2px;
  background: linear-gradient(90deg, rgba(159, 71, 45, 0.2), #a3472d, rgba(159, 71, 45, 0.2));
  opacity: 0;
  transform: scaleX(0.5);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.site-nav > a:hover::after,
.site-nav-link:hover::after {
  opacity: 1;
  transform: scaleX(1);
}

.site-nav-item.has-dropdown > .site-nav-link::after {
  display: none;
}

.site-nav-item {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.site-nav-link {
  color: #4c5465;
  font-weight: 700;
  text-decoration: none;
}

.site-nav-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 320px;
  max-height: none;
  overflow: visible;
  background: #f9fbff;
  border: 1px solid #d8e2ef;
  border-radius: 14px;
  padding: 12px;
  box-shadow: 0 22px 42px rgba(12, 26, 44, 0.15);
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 220;
}

.site-nav-item.has-dropdown:hover .site-nav-dropdown,
.site-nav-dropdown:hover,
.site-nav-item.has-dropdown:focus-within .site-nav-dropdown {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
  visibility: visible;
}

.site-nav-item.has-dropdown.is-open .site-nav-dropdown {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
  visibility: visible;
}

.site-nav-dropdown::before {
  content: "";
  position: absolute;
  top: -16px;
  left: 0;
  right: 0;
  height: 16px;
}

.site-nav-group {
  padding: 0px 10px;
  border-radius: 10px;
  position: relative;
}

.site-nav-group::before {
  content: "";
  position: absolute;
  inset: 0;
}

.site-nav-group::after {
  content: "";
  position: absolute;
  top: 0;
  right: -14px;
  width: 14px;
  height: 100%;
}

.site-nav-group + .site-nav-group {
  border-top: 1px solid #e6edf5;
}

.site-nav-parent {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: #1f324a;
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 6px;
  text-decoration: none;
  padding: 4px 0;
  position: relative;
  z-index: 1;
}

.site-nav-children {
  position: absolute;
  top: 0;
  left: 100%;
  margin-left: 10px;
  min-width: 220px;
  background: #ffffff;
  border: 1px solid #d8e2ef;
  border-radius: 12px;
  padding: 10px;
  gap: 6px;
  box-shadow: 0 18px 34px rgba(12, 26, 44, 0.14);
  z-index: 240;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateX(6px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  display: grid;
}

.site-nav-group:hover .site-nav-children,
.site-nav-group:focus-within .site-nav-children,
.site-nav-children:hover {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(0);
}

.site-nav-children::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: -12px;
  width: 12px;
}

.site-nav-arrow {
  color: #9a3f28;
  font-size: 16px;
  line-height: 1;
}

.site-nav-child {
  color: #5a6f8a;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  padding: 6px 8px;
  border-radius: 8px;
  border-bottom: 1px solid #edf2f7;
}

.site-nav-child:last-child {
  border-bottom: 0;
}

.site-nav-child:hover {
  color: #a3472d;
}

html[dir="rtl"] .site-nav-dropdown {
  left: auto;
  right: 0;
}

html[dir="rtl"] .site-nav-children {
  left: auto;
  right: 100%;
  margin-left: 0;
  margin-right: 10px;
}

 

.site-header-tools {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.site-header-search {
  margin-inline-start: auto;
  position: relative;
  display: inline-flex;
  align-items: center;
  width: min(284px, 34vw);
}

.site-header-search input[type="search"] {
  width: 100%;
  min-height: 38px;
  border: 1px solid #dbe3ee;
  background: #eaf1fa;
  border-radius: 999px;
  padding: 0 42px 0 16px;
  color: #2f4057;
  font-size: 14px;
  outline: none;
}

.site-header-search input[type="search"]::placeholder {
  color: #6a7c93;
}

.site-header-search button {
  position: absolute;
  right: 12px;
  width: 22px;
  height: 22px;
  border: 0;
  padding: 0;
  background: transparent;
  color: #61758f;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.site-header-search button svg {
  width: 16px;
  height: 16px;
  display: block;
}

.site-icon-link {
  width: 35px;
  height: 35px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: #eef2f8;
  text-decoration: none;
  position: relative;
}

.site-user-menu .site-icon-link {
  width: auto;
  padding: 0 10px;
  gap: 8px;
}

html[dir="rtl"] .site-user-menu .site-icon-link {
  flex-direction: row-reverse;
}

.site-user-name {
  max-width: 150px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
  font-weight: 800;
  color: #2b3d55;
}

@media (max-width: 520px) {
  .site-user-menu .site-icon-link {
    width: 35px;
    padding: 0;
  }

  .site-user-name {
    display: none;
  }
}

.site-lang-link.site-icon-link {
  width: auto;
  padding: 0 10px;
  gap: 8px;
}

html[dir="rtl"] .site-lang-link.site-icon-link {
  flex-direction: row-reverse;
}

.site-lang-text {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: inherit;
}

html[dir="rtl"] .site-lang-text {
  letter-spacing: 0;
  text-transform: none;
  font-weight: 700;
}

.site-icon {
  font-size: 16px;
  line-height: 1;
}

.site-icon svg {
  width: 18px;
  height: 18px;
  display: block;
}

.site-lang-link {
  color: #4c5465;
}

@media (max-width: 480px) {
  .site-lang-link.site-icon-link {
    width: 35px;
    padding: 0;
  }

  .site-lang-text {
    display: none;
  }
}

.site-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 18px;
  height: 18px;
  border-radius: 999px;
  background: #b42318;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 0 5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.site-user-menu {
  position: relative;
}

.site-user-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 200px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 8px;
  box-shadow: 0 12px 24px rgba(10, 20, 34, 0.13);
}

.site-user-menu:hover .site-user-dropdown,
.site-user-dropdown:hover {
  display: block;
}

.site-user-menu.is-open .site-user-dropdown {
  display: block;
}

.site-user-dropdown::before {
  content: "";
  position: absolute;
  top: -10px;
  left: 0;
  right: 0;
  height: 10px;
}

.site-user-dropdown a {
  display: block;
  border-radius: 8px;
  padding: 8px 10px;
  color: #273041;
  text-decoration: none;
  font-size: 13px;
}

.site-user-dropdown a:hover {
  background: #eef3fa;
}

.logout-form-hidden {
  display: none;
}

.site-mobile-nav-wrap {
  display: none;
  border-bottom: 1px solid var(--line);
  background: #f7f9fc;
}

.site-mobile-nav summary {
  cursor: pointer;
  list-style: none;
  padding: 0px 16px;
  font-weight: 700;
}
.site-mobile-nav summary img{
  margin-top: 9px;
}
.site-mobile-panel {
  display: flex;
  flex-direction: column;
  padding: 4px 16px 16px;
  gap: 10px;
}

.site-mobile-panel a {
  text-decoration: none;
  color: #2d3748;
}

.site-main {
  min-height: 60vh;
}

.auth-body {
  background: #edf2f8;
  overflow-x: hidden;
}

.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 40px 0;
}

.auth-shell {
  display: flex;
  justify-content: center;
  width: 100%;
}

.auth-card {
  width: min(520px, 100%);
  max-width: 100%;
  background: #f8fbff;
  border: 1px solid #d7e1ee;
  border-radius: 20px;
  padding: 28px;
  box-shadow: 0 22px 40px rgba(18, 35, 58, 0.1);
  min-height: calc(90svh - var(--site-header-h));
    position: relative;
    
}

.auth-logo {
  display: flex;
  justify-content: center;
  margin-bottom: 16px;
}

.auth-logo .theHeader-logo {
  color: #1e2f47;
  display: flex;
  justify-content: center; /* Horizontal center */
  align-items: center;     /* Vertical center */
  height: 100px;    
}
.auth-logo .theHeader-logo img {
  width:50%;
}
 
.auth-card-head small {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: #8f3a27;
  font-size: 11px;
  font-weight: 700;
}

.auth-card-head h1 {
  margin: 6px 0 8px;
  font-family: "Playfair Display", Georgia, serif;
  color: #1a2d45;
  font-size: 38px;
}

.auth-card-head p {
  margin: 0 0 16px;
  color: #5f7089;
}

.auth-form {
  display: grid;
  gap: 12px;
}

.auth-form label {
  display: grid;
  gap: 6px;
}

.auth-form label > span {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 11px;
  color: #6a7d95;
  font-weight: 700;
}

.auth-form input[type="email"],
.auth-form input[type="password"],
.auth-form input[type="text"] {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  border: 1px solid #d7e0ec;
  background: #edf4fc;
  border-radius: 10px;
  padding: 10px 12px;
  color: #1f3148;
  font: inherit;
  outline: none;
}

.auth-form input.is-invalid {
  border-color: #d4a59a;
  background: #fff0eb;
}

.auth-error {
  color: #9b3926;
  font-size: 12px;
}

.auth-remember {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #51657d;
  font-size: 13px;
}

.auth-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.auth-link {
  text-decoration: none;
  color: #8f3a27;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.auth-link:hover {
  color: #a84a2f;
}

.home-redesign-hero {
  /* Fill the viewport height responsively (content can still grow). */
  min-height: calc(100vh - var(--site-header-h));
  min-height: calc(100svh - var(--site-header-h));
  position: relative;
  display: flex;
  align-items: center;
  z-index: auto;
}

.home-redesign-hero-bg {
  position: absolute;
  inset: 0;
  background-image: url("../img/slider2.jpg");
  background-size: cover;
  background-position: center;
  filter: brightness(0.45);
}

.home-redesign-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(9, 20, 32, 0.05) 0%, rgba(237, 241, 246, 0.95) 100%);
}

.home-redesign-hero-inner {
  position: relative;
  z-index: 12;
  text-align: center;
  margin-top: 0;
  height: 100%;
  display: grid;
  grid-template-rows: auto auto;
  align-content: center;
  gap: 22px;
  padding-top: 84px;
  padding-bottom: 44px;
}

.home-hero-top {
  position: relative;
  z-index: 40;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.home-hero-panels {
  position: relative;
  z-index: 10;
  width: min(980px, calc(100% - 24px));
  margin: 0 auto;
  display: grid;
  gap: 12px;
}

.home-hero-panels-label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  font-weight: 700;
}

.home-hero-panels-label::before,
.home-hero-panels-label::after {
  content: "";
  width: 110px;
  height: 1px;
  background: rgba(255, 255, 255, 0.3);
}

.home-redesign-hero h1 {
  color: #fff;
  font-family: "Playfair Display", Georgia, serif;
  /*font-size: clamp(42px, 4.4vw, 72px);*/
    font-size:45px;

  line-height: 1.04;
  margin: 0 0 16px;
  text-shadow: 0 4px 16px rgba(0, 0, 0, 0.45);
  letter-spacing: -0.01em;
}

.home-hero-title {
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.home-redesign-hero h1 span {
  font-style: italic;
  color: #ffd9cf;
  font-weight: 500;
  font-family: auto;
  font-size: 45px;
}
/* English / LTR layout */
html[lang="en"] .home-search-box,
html[dir="ltr"] .home-search-box,
body.lang-en .home-search-box {
    direction: ltr;
    display: flex;
    align-items: center;
}

/* 1. Filter on the left */
html[lang="en"] .home-search-filter,
html[dir="ltr"] .home-search-filter,
body.lang-en .home-search-filter {
    order: 1;
}

/* 2. Divider after filter */
html[lang="en"] .home-search-divider,
html[dir="ltr"] .home-search-divider,
body.lang-en .home-search-divider {
    order: 2;
}

/* 3. Input in the middle */
html[lang="en"] .home-search-box input[type="search"],
html[dir="ltr"] .home-search-box input[type="search"],
body.lang-en .home-search-box input[type="search"] {
    order: 3;
    direction: ltr;
    text-align: left;
}

/* 4. Button on the right */
html[lang="en"] .home-btn-primary,
html[dir="ltr"] .home-btn-primary,
body.lang-en .home-btn-primary {
    order: 4;
}
.home-search-box {
  width: min(760px, calc(100% - 24px));
  max-width: 760px;
  margin: 0 auto;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  direction: ltr;
  gap: 0;
  padding: 5px;
  border-radius: 14px;
  background: rgba(96, 94, 92, 0.66);
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  position: relative;
  z-index: 140;
}

.home-search-icon {
  color: rgba(255, 255, 255, 0.9);
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.home-search-icon svg {
  width: 16px;
  height: 16px;
}

.home-search-box input {
  flex: 1;
  border: 0;
  background: transparent;
  color: #f8fbff;
  font-size: 13px;
  font-weight: 400;
  outline: none;
  padding: 0 12px 0 4px;
  text-align: left;
}
html[dir="rtl"] .home-search-box input {
  flex: 1;
  border: 0;
  background: transparent;
  color: #f8fbff;
  font-size: 13px;
  font-weight: 400;
  outline: none;
  padding: 0 12px 0 4px;
  text-align: right;
}

.home-search-box input::placeholder {
  color: rgba(241, 246, 255, 0.7);
}

.home-search-divider {
  width: 1px;
  height: 30px;
  background: rgba(255, 255, 255, 0.26);
  margin: 0 10px;
}

.home-advanced-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  font-size: 12px;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  white-space: nowrap;
}

.home-advanced-link:hover {
  color: rgba(255, 255, 255, 0.98);
}

.home-advanced-link-inline {
  height: 34px;
  padding: 0 10px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

html[dir="ltr"] .home-advanced-link-inline {
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

html[dir="rtl"] .home-advanced-link-inline {
  letter-spacing: 0;
  text-transform: none;
}

/* Advanced search link under the form (desktop + mobile). */
.home-search-stack {
  width: min(760px, calc(100% - 24px));
  margin: 0 auto;
  display: grid;
  gap: 6px;
  align-items: start;
}

.home-search-stack .home-search-box {
  width: 100%;
  max-width: none;
  margin: 0;
}

.home-advanced-link-under {
  justify-self: end;
  justify-content: flex-end;
  font-weight: 900;
}

.home-search-stack .home-advanced-link-inline {
  height: auto;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  font-size: 12px;
  opacity: 0.9;
  letter-spacing: 0 !important;
  text-transform: none;
}

.home-search-stack .home-advanced-link-inline:hover {
  opacity: 1;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.home-btn-primary,
.home-btn-secondary,
.home-link-btn {
  border: 0;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  min-height: 42px;
  padding: 6px 16px;
  cursor: pointer;
}

.home-btn-primary {
  background: linear-gradient(145deg, #c45f3e, #a94b2f);
  color: #fff;
  box-shadow: 0 10px 24px rgba(122, 42, 19, 0.3);
  min-width: 136px;
  font-size: 13px;
  font-weight: 700;
  padding: 8px 24px;
  transition: all 0.2s ease;
  min-height: 42px;
  gap: 10px;
}

.home-btn-primary .home-search-icon {
  width: 18px;
  height: 18px;
}

.home-btn-primary .home-search-icon svg {
  width: 18px;
  height: 18px;
}

.home-btn-primary:hover {
  background: #b65536;
}

.home-btn-secondary {
  background: transparent;
  color: #fff;
  gap: 10px;
  border-radius: 12px;
  padding: 10px 14px;
}

.home-filter-icon {
  width: 30px;
  height: 25px;
  display: inline-flex;
  color: rgba(255, 255, 255, 0.9);
}

.home-filter-icon svg {
  width: 30px;
  height: 30px;
}

.home-search-filter {
  position: relative;
  display: inline-flex;
  align-items: center;
  margin-inline: 8px 10px;
  z-index: 120;
}

.home-search-filter[open] {
  z-index: 10000;
}

.home-filter-trigger {
  min-height: 42px;
  border: 0;
  background: transparent;
  color: #fff;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0px 20px;
  cursor: pointer;
  list-style: none;
  transition: background-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
  white-space: nowrap;
}

.home-filter-trigger::-webkit-details-marker {
  display: none;
}

.home-search-filter[open] .home-filter-trigger {
  background: rgba(255, 255, 255, 0.12);
}

.home-filter-trigger:hover {
  background: rgba(255, 255, 255, 0.14);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.16);
}

.home-filter-trigger:active {
  transform: scale(0.98);
}

.home-filter-menu {
  position: absolute;
  top: calc(100% + 10px);
  /* Default (LTR): open towards the page (to the right of the trigger). */
  left: 0;
  right: auto;
  min-width: 230px;
  background: linear-gradient(180deg, rgba(28, 37, 54, 0.97) 0%, rgba(35, 44, 62, 0.97) 100%);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 16px;
  padding: 10px;
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(8px);
  z-index: 9999;
  display: none;
}

.home-search-filter[open] .home-filter-menu {
  display: block;
}

.home-filter-option {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  cursor: pointer;
  color: #f4f7ff;
  font-size: 14px;
  line-height: 1.4;
  text-align: left;
  width: 100%;
}

.home-filter-option:hover {
  background: rgba(255, 255, 255, 0.14);
}

.home-filter-option input {
  accent-color: #c45f3e;
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  order: 0;
  margin-right: 10px;
}

.home-filter-option span {
  order: 1;
  flex: 1;
  min-width: 0;
  white-space: normal;
  overflow-wrap: anywhere;
}

html[dir="rtl"] .home-filter-option {
  flex-direction: row-reverse;
  justify-content: flex-start;
  text-align: right;
}

html[dir="rtl"] .home-filter-option input {
  order: 0;
  margin-left: 0;
  margin-right: 0;
}

html[dir="rtl"] .home-filter-option span {
  order: 1;
  text-align: right;
}

/* Some Arabic pages may keep LTR direction; ensure the filter dropdown still flips correctly. */
html[lang="ar"] .home-filter-menu {
  direction: rtl;
}

html[lang="ar"] .home-filter-option {
  flex-direction: row-reverse;
  text-align: right;
}

.home-filter-label {
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
}

.home-growth {
  padding: 10px 0 18px;
}

.home-growth-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.home-growth-head small {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: #8f3329;
  font-size: 11px;
  font-weight: 700;
}

.home-growth-head h2 {
  margin: 6px 0 0;
  font-family: "Playfair Display", Georgia, serif;
  color: #14263c;
  font-size: clamp(30px, 2.7vw, 42px);
}

.home-growth-head p {
  margin: 0;
  color: #6a7d95;
  font-style: italic;
  max-width: 360px;
}

.home-growth-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.home-growth-hero {
  width: 100%;
}

.home-growth-hero .home-growth-card {
  background: rgba(24, 28, 36, 0.36);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(12px);
  opacity: 0.9;
}

.home-growth-hero .home-growth-card:hover {
  border-color: rgba(255, 255, 255, 0.26);
  transform: translateY(-2px);
}

.home-growth-hero .home-growth-card strong {
  color: rgba(255, 255, 255, 0.96);
}

.home-growth-hero .home-growth-card span {
  color: rgba(255, 255, 255, 0.72);
}

.home-growth-hero .home-growth-icon {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: rgba(255, 217, 207, 0.92);
}

.home-growth-hero .home-growth-card-accent {
  background: rgba(196, 95, 62, 0.32);
  border-color: rgba(255, 217, 207, 0.28);
}

.home-growth-hero .home-growth-card-accent strong {
  color: rgba(255, 255, 255, 0.98);
}

.home-growth-card {
  border: 1px solid #e1e8f2;
  border-radius: 14px;
  background: #ffffff;
  padding: 16px;
  text-align: center;
  display: grid;
  gap: 8px;
  align-content: start;
  box-shadow: 0 12px 28px rgba(18, 35, 58, 0.06);
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.home-growth-card:hover {
  transform: translateY(-2px);
  border-color: #cbd8e8;
  box-shadow: 0 16px 32px rgba(18, 35, 58, 0.1);
}

.home-growth-card strong {
  font-size: 26px;
  color: #182a40;
  font-family: "Playfair Display", Georgia, serif;
}

.home-growth-card span {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 10px;
  color: #6c7f97;
  font-weight: 700;
}

.home-growth-card-accent {
  border-color: #e2b9aa;
}

.home-growth-card-accent strong {
  color: #a1492f;
}

.home-growth-icon {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: #fff7f4;
  border: 1px solid #f1d9cf;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  color: #c2684d;
}

.home-growth-icon svg {
  width: 20px;
  height: 20px;
  display: block;
}

.home-redesign-stats {
   position: relative;
  z-index: 8;
  padding-bottom: 8px;
}

.home-redesign-stats-hero {
  padding-bottom: 0;
}

.home-redesign-stats-hero .home-stats-grid {
  background: rgba(255, 255, 255, 0.62);
  border: 2px solid rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(14px);
  box-shadow: 0 26px 60px rgba(0, 0, 0, 0.18);
  border-radius: 18px;
  height: 132px;
  opacity: 0.9;
}

.home-redesign-stats-hero .home-stats-grid article {
  border-inline-end: 2px solid rgba(255, 255, 255, 0.35);
}

.home-redesign-stats-hero .home-stats-grid p {
  color: rgba(20, 44, 72, 0.62);
}

.home-stats-grid {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 20px 36px rgba(15, 23, 42, 0.09);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid #e6ebf3;
      height: 142px;
}

.home-stats-grid article {
  padding: 16px 18px 16px;
  text-align: center;
  border-inline-end: 1px solid #e7edf6;
  
}

.home-stats-grid article:last-child {
  border-inline-end: 0;
}

 

.home-stats-grid h3 {
  margin: 0;
  color: #9f3027;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 30px;/*clamp(34px, 2.8vw, 56px);*/
}

.home-stats-grid p {
  margin: 10px 0 0;
  color: #798398;
  font-size: 12px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-weight: 700;
}

.home-services,
.home-books,
.home-masterpieces,
.home-recommendations {
  padding: 72px 0;
}

.home-section-head h2 {
  margin: 0;
  font-family: "Playfair Display", Georgia, serif;
  /*font-size: clamp(30px, 3vw, 48px);*/
  font-size: 30px;
  font-weight: 600;
}

.home-section-head p {
  color: #5f6b82;
  max-width: 720px;
  margin: 14px 0 0;
}

.home-section-head-inline {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
}

.home-section-head small {
  display: inline-block;
  margin-bottom: 8px;
  text-transform: uppercase;
  font-size: 10px;
  letter-spacing: 0.25em;
  color: #8f3329;
  font-weight: 700;
}

.home-services-grid {
  margin-top: 30px;
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-template-areas:
    "support support feature feature"
    "author publisher feature feature";
}

.service-card {
  border-radius: 8px;
  overflow: hidden;
  min-height: 240px;
  text-decoration: none;
  border: 1px solid #dbe2ec;
  position: relative;
  display: block;
}

.service-card-content {
  padding: 22px;
  position: relative;
  z-index: 2;
}

.service-card h3 {
  color: #1f2633;
  margin: 0 0 8px;
  font-family: "Playfair Display", Georgia, serif;
}

.service-card p {
  margin: 0;
  color: #516076;
  font-size: 13px;
  line-height: 1.7;
}

.service-card span,
.service-card small {
  display: inline-block;
  color: #fff;
  margin-top: 16px;
  font-size: 12px;
  font-weight: 700;
}

.service-card-feature {
  grid-area: feature;
  min-height: 498px;
}

.service-card-feature img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.service-card-feature::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(6, 17, 30, 0.28), rgba(12, 28, 42, 0.9));
  z-index: 1;
}

.service-card-feature h3,
.service-card-feature p {
  color: #f6f7fb;
}

.service-card-feature p {
  max-width: 450px;
  margin-left: auto;
}

.service-card-feature small {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  padding: 6px 10px;
}

.service-card-feature .service-card-content {
  text-align: right;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: flex-end;
  min-height: 100%;
}

.service-card-soft {
  grid-area: support;
  background: var(--soft-blue);
}

.service-card-soft .service-card-content,
.service-card-light .service-card-content,
.service-card-blush .service-card-content {
  text-align: right;
}

.service-card-light {
  grid-area: publisher;
  background: #f8fafc;
}

.service-card-light span {
  color: var(--accent);
}

.service-card-blush {
  grid-area: author;
  background: var(--soft-pink);
}

.service-card-blush span {
  color: #8d291f;
}

.service-card-icon {
  position: absolute;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: 1;
  opacity: 0.34;
}

.service-card-icon svg {
  width: 30px;
  height: 30px;
  display: block;
}

.service-card-icon-support {
  right: 18px;
  bottom: 16px;
  color: #9f5a4a;
}

.service-card-icon-publisher {
  left: 18px;
  top: 16px;
  color: #9f6e4f;
}

.service-card-icon-author {
  left: 18px;
  top: 16px;
  color: #9f533f;
}

.home-books-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 18px;
}

/* Swiper core styles (needed after disabling legacy CSS) */
.swiper-container {
  position: relative;
  overflow: hidden;
  width: 100%;
}

.swiper-wrapper {
  display: flex;
  width: 100%;
  box-sizing: content-box;
}

.swiper-slide {
  flex-shrink: 0;
  width: 100%;
  position: relative;
}

.home-books-slider .swiper-container {
  padding: 4px 2px 16px;
}

.home-books-slider {
  position: relative;
}

.home-books-slider .swiper-slide {
  height: auto;
}

.home-books-slider .home-book-card {
  display: block;
}

.home-books-slider .sliderButtons-prev,
.home-books-slider .sliderButtons-next {
  position: absolute;
  top: -66px;
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: #f4f7fb;
  border: 1px solid #e3c6ba;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: none;
  cursor: pointer;
  z-index: 4;
  transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.home-books-slider .sliderButtons-prev {
  inset-inline-end: 66px;
}

.home-books-slider .sliderButtons-next {
  inset-inline-end: 0;
}

.home-books-slider .sliderButtons-prev:hover,
.home-books-slider .sliderButtons-next:hover {
  background: #ffffff;
  border-color: #d7a898;
  transform: translateY(-1px);
}

.home-slider-arrow {
  width: 18px;
  height: 18px;
  color: #1d2c3f;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.home-slider-arrow svg {
  width: 18px;
  height: 18px;
  display: block;
}

.home-book-card {
  text-decoration: none;
}

.home-book-cover {
  border-radius: 6px;
  overflow: hidden;
  background: #d8dee6;
  aspect-ratio: 2 / 3;
  border: 1px solid #d9e0ea;
}

.home-book-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1);
  transition: transform 0.45s ease, filter 0.45s ease;
}

.home-book-card:hover .home-book-cover img {
  transform: scale(1.045);
  filter: brightness(1.04);
}

.home-book-card h4 {
  margin: 12px 0 4px;
  color: #20283a;
  font-family: "Playfair Display", Georgia, serif;
  font-size: var(--fz-book-card-title);
}

.home-book-card p {
  color: #5d6a80;
  margin: 0;
  font-size: var(--fz-book-card-meta);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.home-book-card strong {
  color: #8f2f25;
  display: inline-block;
  margin-top: 6px;
  font-size: var(--fz-book-card-price);
}

.home-books-awards .home-book-card {
  position: relative;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(245, 238, 230, 0.9));
  border: 1px solid rgba(196, 95, 62, 0.18);
  border-radius: 12px;
  padding: 12px 12px 16px;
  box-shadow: 0 16px 34px rgba(14, 31, 51, 0.1);
}

.home-books-awards .home-book-cover {
  position: relative;
  border-radius: 10px;
}

.home-book-award {
  position: absolute;
  top: 12px;
  inset-inline-start: 12px;
  background: rgba(196, 95, 62, 0.92);
  color: #fff;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  z-index: 2;
}

.home-book-prize {
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: #b44f36;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
}

.home-book-prize svg {
  width: 18px;
  height: 18px;
}

.home-masterpieces-latest .home-featured-book::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top, rgba(255, 255, 255, 0.2), transparent 55%);
  opacity: 0.7;
  pointer-events: none;
}

.home-empty-message {
  color: #617089;
}

.home-masterpieces {
  background: #d4e2f3;
}
.mapbktitle ,.home-book-card-award h4, .home-book-card-award .app-translit
{white-space: nowrap;   overflow: hidden;  text-overflow: ellipsis;direction: ltr;}

html[dir="rtl"] .mapbktitle,html[dir="rtl"] .home-book-card-award h4 ,html[dir="rtl"]  .home-book-card-award .app-translit
{white-space: nowrap;   overflow: hidden;  text-overflow: ellipsis;direction: rtl;}

.home-books-general {
  padding-top: 12px;
}

.home-books-general .site-container {
  background: linear-gradient(180deg, #f7f9fc 0%, #eef3f9 100%);
  border: 1px solid #dbe4ef;
  border-radius: 12px;
  padding-top: 28px;
  padding-bottom: 26px;
}

.home-books-general .home-section-head h2 {
  /*font-size: clamp(26px, 2.6vw, 40px);*/
  font-size: 30px;
}

.home-link-btn {
  border: 1px solid #cfd8e3;
  background: #f8fbff;
  color: #2c3748;
}

.home-link-btn-category,.home-link-btn-latest {
  position: relative;
  top: -40px;
}

.home-link-btn-dark {
  background: #0f2740;
  color: #fff;
  border-color: #0f2740;
}

.home-masterpieces-grid {
  display: grid;
  grid-template-columns: minmax(0, 340px) minmax(0, 1fr);
  gap: 32px;
  align-items: start;
}

.home-side-tabs-wrap {
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 12px;
}

.home-masterpieces-controls-top {
  display: inline-flex;
  flex-direction: row;
  gap: 8px;
  justify-self: end;
}

.home-featured-book {
  display: block;
  width: 100%;
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  min-height: 430px;
  text-decoration: none;
  color: #fff;
  background-image:
    url("data:image/svg+xml,%3Csvg width='180' height='240' viewBox='0 0 180 240' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23a9b7cb' fill-opacity='0.28'%3E%3Cpath d='M90 0l30 60h-60zM90 120l30 60h-60zM90 240l30-60h-60z'/%3E%3Cpath d='M150 60l30 60h-60zM150 180l30 60h-60z'/%3E%3C/g%3E%3C/svg%3E");
  background-size: contain;
  background-position: center;
background-repeat: repeat-x;
  background-blend-mode: multiply;
}

.home-featured-book img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  image-rendering: auto;
  filter: brightness(0.92) contrast(1.03);
  transform: scale(1);
  transition: transform 0.5s ease;
  z-index: 1;
}

.home-featured-book:hover img {
  transform: scale(1.03);
}

.home-featured-book::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to left, rgba(6, 23, 44, 0.5), rgba(6, 23, 44, 0) 44%);
  opacity: 1;
  z-index: 2;
  pointer-events: none;
}

.home-featured-book::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(6, 15, 25, 0.85), rgba(8, 20, 30, 0.12));
  z-index: 3;
}

.home-featured-copy {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 20px;
  z-index: 4;
}

.home-featured-copy h3 {
  margin: 6px 0 0;
  font-family: "Playfair Display", Georgia, serif;
  /*font-size: clamp(36px, 2.8vw, 52px);*/
    font-size: 30px;

  line-height: 1.05;
  color: #fff;
}

.home-featured-copy p,
.home-featured-copy small {
  margin: 0;
  color: #d9e4f1;
}

.home-featured-copy small {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 11px;
}

.home-featured-meta {
  margin-top: 14px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.home-featured-meta p {
  margin: 0;
  color: #5b6f88;
  font-size: 15px;
  line-height: 1.45;
  max-width: 580px;
}

.home-featured-meta strong {
  color: #9f3725;
  font-size: clamp(24px, 2vw, 36px);
  font-weight: 700;
  white-space: nowrap;
}

.home-side-list {
  display: grid;
  gap: 18px;
  overflow: auto;
  scroll-behavior: smooth;
  padding-right: 6px;
  scrollbar-width: none;
}

.home-side-list::-webkit-scrollbar {
  width: 0;
  height: 0;
}

.home-side-book {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  text-decoration: none;
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 0;
  min-height: 110px;
}

.home-side-book > div {
  flex: 1;
  min-width: 0;
  display: grid;
  gap: 4px;
}

.home-side-book-tab {
  text-align: left;
  border-radius: 10px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.home-side-book-tab.is-active {
  background: rgba(255, 255, 255, 0.42);
  border-color: #c6d6e7;
  transform: translateX(3px);
}

.home-featured-book img {
  transition: transform 0.5s ease, opacity 0.24s ease;
}

.home-featured-book img.is-image-switching {
  opacity: 0;
}

.home-side-book img {
  display: block;
  flex: 0 0 auto;
  width: 72px;
  height: 96px;
  object-fit: cover;
  object-position: center;
  border-radius: 5px;
  border: 1px solid #d0dceb;
  background: #fff;
  transform: scale(1);
  transition: transform 0.4s ease, filter 0.4s ease;
}

.home-side-book:hover img {
  transform: scale(1.05);
  filter: brightness(1.03);
}

.home-side-book h4 {
  margin: 0;
  color: #243348;
  font-size: var(--fz-sidebook-title);
  line-height: 1.3;
  font-family: "Playfair Display", Georgia, serif;
  word-break: break-word;
}

.home-side-book p {
  margin: 0;
  color: #6f7d90;
  font-size: var(--fz-sidebook-meta);
  line-height: 1.5;
  word-break: break-word;
}

.home-side-book strong {
  color: #a23c2a;
  font-size: var(--fz-sidebook-price);
  font-weight: 700;
  display: block;
}

.home-masterpieces-btn {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  border: 1px solid #96aac2;
  background: #f2f7ff;
  color: #17304d;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.home-masterpieces-btn:hover {
  background: #ffffff;
  border-color: #6f89a7;
  transform: translateY(-1px);
}

.home-recommendation-card {
  position: relative;
  overflow: hidden;
  background: #e6edf7;
  border: 1px solid #d6dfec;
  border-radius: 26px;
  padding: 56px 60px;
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 26px;
  align-items: center;
}

.home-recommendation-card::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  right: 0;
  width: 42%;
  background: rgba(214, 221, 235, 0.55);
}

.home-recommendation-card::after {
  content: "";
  position: absolute;
  top: -32px;
  right: -48px;
  bottom: -32px;
  width: 36%;
  background-image: url("data:image/svg+xml,%3Csvg width='180' height='240' viewBox='0 0 180 240' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23a9b7cb' fill-opacity='0.28'%3E%3Cpath d='M90 0l30 60h-60zM90 120l30 60h-60zM90 240l30-60h-60z'/%3E%3Cpath d='M150 60l30 60h-60zM150 180l30 60h-60z'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 180px 240px;
  background-repeat: repeat-y;
  pointer-events: none;
}

.home-recommendation-copy,
.home-recommendation-visual {
  position: relative;
  z-index: 2;
}

.home-recommendation-copy small {
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: #983922;
  font-size: 12px;
  font-weight: 700;
}

.home-recommendation-card h2 {
  margin: 14px 0 18px;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 33px; /*clamp(44px, 4vw, 68px);*/
  line-height: 1.04;
  color: #14263d;
}

.home-recommendation-card p {
  max-width: 610px;
  color: #5b6b84;
  margin: 0 0 28px;
  font-size: 17px;
  line-height: 1.65;
}

.home-recommendation-visual {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 18px;
  min-height: 470px;
  padding: 8px 8px 8px 0;
}

.home-reco-book {
  width: 250px;
  background: #f8fbff;
  border-radius: 12px;
  padding: 12px 12px 14px;
  box-shadow: 0 24px 42px rgba(16, 28, 44, 0.2);
}

.home-reco-book img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 6px;
  display: block;
  margin-bottom: 12px;
  transform: scale(1);
  transition: transform 0.45s ease, filter 0.45s ease;
}

.home-reco-book:hover img {
  transform: scale(1.04);
  filter: brightness(1.03);
}

.home-reco-book h5 {
  margin: 0 0 3px;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 32px;
  color: #1a2d43;
}

.home-reco-book p {
  margin: 0;
  color: #5f7086;
  font-size: 24px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.home-reco-book-left {
  transform: rotate(-6deg) translateY(24px);
}

.home-reco-book-right {
  transform: rotate(3deg);
}

.site-footer {
  background: #ecf1f7;
  border-top: 1px solid #d7e0eb;
  padding: 44px 0;
}

.site-footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 28px;
}

.site-footer-title {
  margin: 0 0 14px;
  color: #263146;
  font-size: 16px;
  font-weight: 700;
}

.site-footer-title--logo {
  margin-bottom: 10px;
}

.site-footer-logo {
  display: block;
  height: 34px;
  width: auto;
}

.site-footer-copy {
  margin: 0;
  color: #57657d;
  line-height: 1.7;
}

.site-footer-links {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}

.site-footer-links a {
  text-decoration: none;
  color: #5e6b81;
}

.site-footer-links a:hover {
  color: var(--accent);
}

@media (max-width: 1160px) {
  .home-books-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 992px) {
  .site-nav {
    display: none;
  }
.home-link-btn-category, .home-link-btn-latest
{
      top: 0 !important;
}
  .site-header-search {
    display: none;
  }

  .site-mobile-nav-wrap {
    display: block;
  }

  .home-services-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-areas:
      "support support"
      "feature feature"
      "author publisher";
  }

  .home-growth-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .home-growth-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-books-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .home-masterpieces-grid {
    grid-template-columns: 1fr;
  }

  .home-side-tabs-wrap {
    grid-template-rows: auto;
  }

  .home-featured-book {
    min-height: 320px;
  }

  .home-featured-copy h3 {
    font-size: clamp(30px, 6vw, 42px);
  }

  .home-featured-meta p {
    font-size: 14px;
  }

  .home-featured-meta strong {
    font-size: 24px;
  }

  .home-side-book h4 {
    font-size: 20px;
  }

  .home-side-book p {
    font-size: 13px;
  }

  .home-side-book strong {
    font-size: 18px;
  }

  .home-side-list {
    max-height: none;
    order: 1;
  }

  .home-masterpieces-up,
  .home-masterpieces-down {
    width: 44px;
    height: 44px;
  }

  .home-recommendation-card {
    grid-template-columns: 1fr;
    padding: 28px;
  }

  .home-recommendation-card::before,
  .home-recommendation-card::after {
    display: none;
  }

  .home-recommendation-visual {
    min-height: auto;
    justify-content: start;
    overflow-x: auto;
    padding: 8px 2px 6px;
  }

  .home-reco-book {
    width: 210px;
    flex: 0 0 auto;
  }

  .home-reco-book h5 {
    font-size: 20px;
  }

  .home-reco-book p {
    font-size: 12px;
  }

  .site-footer-grid {
    grid-template-columns: 1fr;
  }

  .sr-shell {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .sr-sidebar {
    position: relative;
    top: 0;
    max-height: none;
    padding-right: 0;
  }

  .sr-content-head {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 680px) {
  :root {
    --hero-height: 680px;
  }

  .home-search-box {
    width: 100%;
    max-width: 100%;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    border-radius: 14px;
    gap: 6px;
    padding: 8px;
    align-items: stretch;
  }

  .home-search-box input {
    grid-column: 1 / -1;
    min-width: 100%;
    margin: 0;
    padding: 8px 4px;
    font-size: 16px;
    order: 1;
  }

  .home-search-icon {
    display: none;
  }

  .home-search-divider {
    display: none;
  }

  .home-btn-primary,
  .home-btn-secondary {
    flex: 1;
    min-height: 46px;
    font-size: 16px;
    border-radius: 10px;
    min-width: 0;
  }

  .home-search-filter {
    margin: 0;
    min-width: 0;
    width: 100%;
    order: 2;
  }

  .home-search-stack {
    width: min(760px, calc(100% - 24px));
    gap: 8px;
  }

  .home-search-stack .home-advanced-link-inline {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.88);
  }

  .home-search-stack .home-advanced-link-inline:hover {
    color: rgba(255, 255, 255, 0.98);
  }

  .home-filter-trigger {
    min-height: 48px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 10px;
    padding: 8px 10px;
    gap: 6px;
    width: 100%;
  }

  .home-filter-label {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .home-filter-menu {
    min-width: 210px;
    inset-inline-end: 0;
    inset-inline-start: auto;
    max-width: min(340px, calc(100vw - 28px));
  }

  .home-btn-primary {
    font-size: 16px;
    min-width: 0;
    width: 100%;
    order: 3;
    min-height: 48px;
   }

  .home-stats-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    height: auto;
    gap: 8px;
    background: transparent;
    border: 0;
    box-shadow: none;
  }

  .home-redesign-stats {
    margin-top: 16px;
  }

  .home-stats-grid article {
    border: 1px solid #e6ebf2;
    border-radius: 10px;
    background: #fff;
    padding: 12px 10px;
  }

  .home-stats-grid h3 {
    font-size: 20px;
  }

  .home-stats-grid p {
    font-size: 9px;
    letter-spacing: 0.12em;
  }

  .home-growth-grid {
    gap: 10px;
  }

  .home-growth-card {
    padding: 12px 10px;
    border-radius: 14px;
  }

  .home-growth-icon {
    width: 34px;
    height: 34px;
    border-radius: 11px;
  }

  .home-growth-icon svg {
    width: 18px;
    height: 18px;
  }

  .home-growth-card strong {
    font-size: 22px;
  }

  .home-growth-card span {
    font-size: 9px;
    letter-spacing: 0.1em;
  }

  .home-services-grid {
    grid-template-columns: 1fr;
    grid-template-areas:
      "feature"
      "support"
      "publisher"
      "author";
  }

  .service-card-feature {
    min-height: 360px;
  }

  .home-books-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-section-head-inline {
    align-items: start;
    flex-direction: column;
  }

  .home-link-btn-category {
    top: 0;
  }

  .home-redesign-hero-inner {
    margin-top: 0;
  }

  .site-header-row {
    gap: 10px;
  }

  .site-logo-text {
    font-size: 20px;
  }

  .site-lang-link {
    font-size: 12px;
  }

  .sr-sidebar-head h2 {
    font-size: 30px;
  }

  .sr-sidebar-head p {
    font-size: 16px;
  }

  .sr-content-head h1 {
    font-size: 30px;
  }

  .sr-content-head p {
    font-size: 16px;
  }

  .sr-head-actions {
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
  }

  .sr-sort-form {
    width: 100%;
    flex-wrap: wrap;
    gap: 6px;
  }

  .sr-sort-form select {
    font-size: 14px;
  }

  .sr-book-row {
    grid-template-columns: 1fr;
  }

  .sr-book-cover {
    max-width: 200px;
  }

  .sr-book-actions {
    width: 100%;
  }

  .sr-book-buttons {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }

  .sr-btn {
    width: 100%;
    justify-content: center;
  }

  .sr-results-list,
  .sr-book-row {
    max-width: 100%;
    overflow: hidden;
  }

  body,
  .site-shell,
  .site-main {
    overflow-x: hidden;
  }
}

html[dir="rtl"] .home-filter-menu {
  direction: rtl;
  /* RTL: open towards the page (to the left of the trigger). */
  right: 0;
  left: auto;
}

html[lang="ar"] .home-filter-menu {
  direction: rtl;
  right: 0;
  left: auto;
}

html[dir="rtl"] .home-filter-option {
  text-align: right;
  float: none;
  width: 100%;
}

html[dir="rtl"] .site-user-dropdown {
  right: auto;
  left: 0;
}

html[dir="rtl"] .service-card-icon-support {
  right: auto;
  left: 18px;
}

html[dir="rtl"] .service-card-icon-publisher,
html[dir="rtl"] .service-card-icon-author {
  right: auto;
  left: 18px;
}

html[dir="rtl"] .home-side-book {
  direction: ltr;
  flex-direction: row;
}

html[dir="rtl"] .home-side-book img {
  margin-inline-end: 0;
}

html[dir="rtl"] .home-side-book > div,
html[dir="rtl"] .home-side-book h4,
html[dir="rtl"] .home-side-book p,
html[dir="rtl"] .home-side-book strong {
  text-align: right;
}

html[dir="rtl"] .home-side-book-tab {
  text-align: right;
  padding:8px;
}

.authors-header-bg-default,
.publishers-header-bg-default {
  background-image: url("../assets/img/6.c86e53a7.jpg");
}

.authors-header-bg-alt {
  background-image: url("https://i.picsum.photos/id/20/3670/2462.jpg");
}

.homeIntro-card-outline {
  background: none !important;
  border: 1px solid #fff;
}

.badge-book-purchased {
  font-size: 1rem;
  color: #fff;
}

.map-frame {
  border: 0;
}

.star-width-90 {
  width: 90%;
}

.star-width-98 {
  width: 98%;
}

/* Search Results Redesign */
.sr-page {
  padding: 26px 0 80px;
}

.sr-shell {
  display: grid;
  grid-template-columns: 286px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

.sr-sidebar {
  position: sticky;
  top: 92px;
  background: transparent;
  max-height: calc(100vh - 104px);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-right: 6px;
  scrollbar-width: thin;
  scrollbar-color: #bcc9da transparent;
}

.sr-sidebar::-webkit-scrollbar {
  width: 6px;
}

.sr-sidebar::-webkit-scrollbar-thumb {
  background: #bcc9da;
  border-radius: 999px;
}

.sr-sidebar::-webkit-scrollbar-track {
  background: transparent;
}

.sr-sidebar-head h2 {
  margin: 0;
  color: #9b3f26;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 30px;
}

.sr-sidebar-head p {
  margin: 4px 0 0;
  color: #5f7088;
  font-size: 23px;
}

.sr-sidebar-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
}

.sr-collapse-all {
  border: 0;
  background: #dde7f3;
  color: #9b3f26;
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  cursor: pointer;
}

.sr-genre-list {
  margin-top: 20px;
  display: grid;
  gap: 8px;
}

.sr-genre-item {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #34465e;
  background: transparent;
  border-radius: 10px;
  padding: 12px 14px;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.sr-genre-item:hover {
  background: #dde7f3;
}

.sr-genre-item.is-active {
  background: #e8dde0;
  color: #9b3f26;
  font-weight: 700;
}

.sr-genre-icon {
  width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.sr-genre-icon svg {
  width: 18px;
  height: 18px;
}

.sr-filter-panel {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid #dbe3ef;
  display: grid;
  gap: 18px;
}

.sr-filter-accordion {
  border-bottom: 1px solid #dfe6f1;
  padding-bottom: 10px;
}

.sr-filter-accordion summary {
  list-style: none;
  cursor: pointer;
  color: #60718a;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 4px 0 10px;
}

.sr-filter-accordion summary::-webkit-details-marker {
  display: none;
}

.sr-accordion-arrow {
  width: 8px;
  height: 8px;
  border-right: 1.8px solid #5d7189;
  border-bottom: 1.8px solid #5d7189;
  transform: rotate(45deg);
  transition: transform 0.2s ease;
  margin-inline-end: 4px;
}

.sr-filter-accordion[open] .sr-accordion-arrow {
  transform: rotate(225deg);
}

.sr-limit-wrap {
  display: grid;
  gap: 8px;
}

.sr-limit-wrap:not(.is-expanded) .sr-limit-item.is-extra {
  display: none !important;
}

.sr-more-btn {
  justify-self: start;
  border: 0;
  background: transparent;
  color: #9b3f26;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  padding: 2px 0;
}

.sr-more-btn.is-hidden {
  display: none;
}

.sr-filter-label {
  color: #60718a;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 11px;
  font-weight: 700;
}

.sr-filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.sr-pill {
  text-decoration: none;
  color: #445972;
  background: #e2ebf8;
  border-radius: 8px;
  padding: 7px 10px;
  font-size: 12px;
  line-height: 1.2;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.sr-pill-text {
  min-width: 0;
}

.sr-pill-count {
  font-size: 11px;
  font-weight: 700;
  opacity: 0.75;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(70, 95, 125, 0.2);
  padding: 2px 6px;
  border-radius: 999px;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.sr-pill.is-active {
  background: #9f432a;
  color: #fff;
}

.sr-pill.is-active .sr-pill-count {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.25);
  opacity: 0.95;
}

.sr-filter-empty {
  background: #e2ebf8;
  border-radius: 8px;
  padding: 9px 12px;
  font-size: 13px;
  color: #455772;
}

.sr-country-list {
  display: grid;
  gap: 8px;
}

.sr-country-item {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #42566f;
  font-size: 14px;
}

.sr-country-item .sr-count {
  margin-inline-start: auto;
  color: #6a7b92;
  font-size: 12px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.sr-checkbox {
  width: 14px;
  height: 14px;
  border-radius: 3px;
  border: 1px solid #d0dae8;
  background: #e9eff9;
}

.sr-country-item.is-active .sr-checkbox {
  background: #9f432a;
  border-color: #9f432a;
}

.sr-country-item.is-active {
  color: #9f432a;
  font-weight: 600;
}

.sr-clear-btn {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #d9e5f4;
  color: #9f432a;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 12px;
  font-weight: 700;
  padding: 12px;
  border-radius: 10px;
}

.sr-content {
  min-width: 0;
}

.sr-content-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.sr-content-head h1 {
  margin: 0;
  font-family: "Playfair Display", Georgia, serif;
  color: #1d2a3d;
  font-size: 30px; /*var(--fz-page-title);*/
}

.sr-content-head p {
  margin: 6px 0 0;
  color: #5f7088;
  font-size: var(--fz-subtitle);
}

.sr-head-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.sr-view-toggle {
  background: #dfe8f4;
  border-radius: 12px;
  padding: 4px;
  display: inline-flex;
  gap: 4px;
}

.sr-view-toggle button {
  width: 38px;
  height: 38px;
  border: 0;
  background: transparent;
  color: #566982;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.sr-view-toggle button svg {
  width: 20px;
  height: 20px;
}

.sr-view-toggle button.is-active {
  background: #fff;
  color: #9f432a;
  box-shadow: 0 5px 16px rgba(20, 35, 55, 0.08);
}

.sr-sort-form {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #4d6078;
  font-size: 14px;
}

.sr-sort-form select {
  border: 0;
  background: transparent;
  color: #9f432a;
  font-weight: 700;
  font-size: 14px;
  outline: none;
  padding: 2px 18px 2px 2px;
}

.sr-active-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.sr-active-filters a {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #fff;
  border: 1px solid #d3deeb;
  border-radius: 999px;
  padding: 6px 10px;
  color: #3f526a;
  font-size: 13px;
}

.sr-results-list {
  display: grid;
  gap: 14px;
}

.sr-results-list.is-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.sr-results-list.is-grid .sr-book-row {
  grid-template-columns: 1fr;
  gap: 12px;
  padding: 12px;
}

.sr-results-list.is-grid .sr-book-main {
  gap: 8px;
}

.sr-results-list.is-grid .sr-book-top {
  flex-direction: column;
  align-items: flex-start;
}

.sr-results-list.is-grid .sr-book-actions {
  flex-direction: column;
  align-items: flex-start;
}

.sr-results-list.is-grid .sr-book-buttons {
  width: 100%;
}

.sr-results-list.is-grid .sr-btn {
  width: 100%;
}

.sr-results-list.is-grid .sr-book-meta {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (max-width: 1100px) {
  .sr-results-list.is-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .sr-results-list.is-grid {
    grid-template-columns: 1fr;
  }
}

.sr-book-row {
  background: rgba(237, 243, 251, 0.78);
  border-radius: 18px;
  padding: 14px;
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

.sr-book-row:hover {
  background: #f8fbff;
  box-shadow: 0 10px 26px rgba(13, 27, 45, 0.08);
}

.sr-book-cover {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 4;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(12, 26, 44, 0.22);
}

.sr-book-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.sr-book-row:hover .sr-book-cover img {
  transform: scale(1.04);
}

.sr-book-main {
  min-width: 0;
  display: grid;
  gap: 10px;
}

.sr-book-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.sr-book-category {
  color: #9f432a;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 11px;
  font-weight: 700;
}
html[lang="ar"] .sr-book-category {
  letter-spacing: 0px !important;

}

.sr-book-title-link {
  text-decoration: none;
}

.sr-book-title {
  margin: 4px 0 0;
  font-family: "Playfair Display", Georgia, serif;
  color: #1e2b3f;
  font-size: 20px /*clamp(20px, 2.2vw, 25px);*/
  line-height: 1.16;
}

.sr-book-author {
  margin: 6px 0 0;
  color: #4f6380;
  font-style: italic;
  font-size: 16px;
  text-decoration: none;
  display: inline-block;
}

.sr-book-author:hover {
  color: #a3472d;
}

.sr-bookmark-btn {
  border: 0;
  background: transparent;
  color: #5a6d87;
  width: 28px;
  height: 28px;
  padding: 0;
  cursor: pointer;
}

.sr-bookmark-btn svg {
  width: 20px;
  height: 20px;
}

.sr-book-meta {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  border-top: 1px solid #d8e1ed;
  padding-top: 10px;
}

.sr-book-meta span {
  color: #657990;
  font-size: 12px;
  display: block;
}

.sr-book-meta strong {
  color: #2a3e56;
  font-size: 13px;
  font-weight: 600;
}

.sr-book-meta-link {
  color: #2a3e56;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.sr-book-meta-link:hover {
  color: #a3472d;
}

.sr-book-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.sr-book-price {
  color: #9f432a;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 20px /*clamp(30px, 1.9vw, 44px);*/
}

.sr-book-buttons {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.sr-btn {
  text-decoration: none;
  border-radius: 10px;
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 12px;
  font-weight: 700;
  padding: 0 18px;
}

.sr-btn-outline {
  color: #9f432a;
  border: 1px solid #d9c2b8;
  background: rgba(255, 255, 255, 0.7);
}

.sr-btn-primary {
  border: 0;
  color: #fff;
  background: #a3472d;
  cursor: pointer;
}

.sr-btn-primary:hover {
  background: #8f3d26;
}

.sr-btn-icon {
  width: 15px;
  height: 15px;
  display: inline-flex;
}

.sr-btn-icon svg {
  width: 15px;
  height: 15px;
}

.sr-book-note {
  margin-top: 6px;
  color: #7e2d1e;
  font-size: 13px;
  font-weight: 700;
  border: 1px solid #e7c3b7;
  background: #fff4ef;
  border-radius: 10px;
  padding: 8px 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.sr-pagination-wrap {
  margin-top: 28px;
  display: flex;
  justify-content: center;
}

.sr-pagination-nav {
  display: block;
}

.sr-pagination-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.sr-pagination-list li {
  list-style: none;
}

.sr-pagination-list a,
.sr-pagination-list span {
  min-width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 0;
  background: transparent;
  color: #435870;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  padding: 0 10px;
  font-weight: 700;
}

.sr-pagination-list li.is-active span {
  background: #9f432a;
  color: #fff;
}

.sr-pagination-list a:hover {
  background: #dbe7f5;
}

.sr-pagination-list li.is-disabled span {
  opacity: 0.45;
}

/* Keep the sidebar on the side for tablet/Hub landscape sizes (e.g. 1024px wide). */
@media (max-width: 900px) {
  .sr-shell {
    grid-template-columns: 1fr;
  }

  .sr-sidebar {
    position: static;
    max-height: none;
    overflow: visible;
    padding-right: 0;
  }
}

@media (max-width: 960px) {
  .sr-content-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .sr-book-row {
    grid-template-columns: 1fr;
  }

  .sr-book-cover {
    width: min(260px, 100%);
  }

  .sr-book-meta {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sr-book-actions {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 620px) {
  .auth-page {
    align-items: flex-start;
    padding: 18px 0;
  }

  .sr-head-actions {
    width: 100%;
    justify-content: space-between;
  }

  .sr-sort-form {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .sr-sort-form select {
    width: 100%;
    background: #e3ecf8;
    border-radius: 8px;
    padding: 8px 10px;
  }

  .sr-book-buttons {
    width: 100%;
    display: grid;
  }

  .sr-btn {
    width: 100%;
  }

  .ip-advanced-inline {
    grid-template-columns: 1fr;
  }
  .auth-shell {
    width: 100%;
    padding: 0 10px;
    box-sizing: border-box;
  }

  .auth-card {
    width: 100%;
    padding: 18px 14px;
    border-radius: 16px;
    min-height: auto;
  }

  .auth-card-head h1 {
    font-size: 28px;
  }

  .auth-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .auth-link {
    text-align: center;
  }
}

html[dir="rtl"] .sr-shell {
  direction: rtl;
}

html[dir="rtl"] .sr-sort-form {
  flex-direction: row;
}

html[dir="rtl"] .sr-book-actions,
html[dir="rtl"] .sr-book-top {
  direction: rtl;
}

/* Book Details Redesign */
.bd-page {
  padding: 24px 0 70px;
}

.bd-breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: #6a7b93;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.bd-breadcrumbs a {
  color: #6a7b93;
  text-decoration: none;
}

.bd-hero {
  display: grid;
  grid-template-columns: minmax(0, 360px) minmax(0, 1fr);
  gap: 34px;
  align-items: start;
}

.bd-cover-wrap {
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 16px 42px rgba(12, 26, 44, 0.16);
}

.bd-cover {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  display: block;
  transform: scale(1);
  transition: transform 0.5s ease, filter 0.5s ease;
}

.bd-cover-wrap:hover .bd-cover {
  transform: scale(1.045);
  filter: brightness(1.03);
}

.bd-main h1 {
  margin: 0;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 30px; /*var(--fz-bd-title);*/
  color: #15253a;
  line-height: 1.05;
}

.bd-subline {
  margin-top: 8px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.bd-translit {
  display: block;
  margin-top: 6px;
  color: #6b7d95;
  font-size: var(--fz-translit);
  font-style: italic;
}

.bd-subline p {
  margin: 0;
  color: #a0442b;
  font-style: italic;
  font-size: var(--fz-bd-author);
}

.bd-author-link {
  margin: 0;
  color: #a0442b;
  font-style: italic;
  font-size: var(--fz-bd-author);
  text-decoration: none;
}

.bd-author-link:hover {
  color: #8f3f27;
}

.bd-subline span {
  color: #40556f;
  font-size: 14px;
  font-weight: 700;
}

.bd-rating {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.bd-rating svg {
  width: 14px;
  height: 14px;
  color: #334c69;
}

.bd-meta-cards {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.bd-meta-cards article {
  background: #e0e9f6;
  border-radius: 10px;
  padding: 12px 14px;
}

.bd-meta-cards small {
  display: block;
  color: #70829c;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.bd-meta-cards strong {
  display: block;
  margin-top: 3px;
  color: #16283e;
  font-size: 16px;
}

.bd-meta-link {
  display: inline-block;
  margin-top: 3px;
  color: #16283e;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
}

.bd-meta-link:hover {
  color: #a3472d;
}

.bd-main blockquote {
  margin: 16px 0 0;
  padding-inline-start: 14px;
  border-inline-start: 3px solid #d9beb3;
  color: #445b78;
  font-style: italic;
  font-size: 16px;
  line-height: 1.65;
}

.bd-tags {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.bd-tags span {
  background: #d8e5f6;
  color: #4b617d;
  border-radius: 999px;
  font-size: 11px;
  padding: 6px 10px;
}

.bd-tags a {
  background: #d8e5f6;
  color: #4b617d;
  border-radius: 999px;
  font-size: 11px;
  padding: 6px 10px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

.bd-tags a:hover {
  color: #a3472d;
}

.bd-actions {
  margin-top: 18px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.bd-btn {
  border: 0;
  text-decoration: none;
  border-radius: 10px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 18px;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.bd-btn-primary {
  background: #a3472d;
  color: #fff;
  box-shadow: 0 10px 26px rgba(143, 62, 36, 0.28);
}

.bd-btn-primary:hover {
  background: #8f3f27;
  transform: translateY(-1px);
}

.bd-btn-ghost {
  background: #dce7f5;
  color: #21364f;
}

.bd-btn-ghost:hover {
  background: #d1deef;
}

.bd-btn-icon {
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.bd-btn-icon svg {
  width: 18px;
  height: 18px;
  display: block;
}

.bd-purchased-note {
  margin-top: 12px;
  color: #7e2d1e;
  font-size: 13px;
  font-weight: 700;
  border: 1px solid #e7c3b7;
  background: #fff4ef;
  border-radius: 10px;
  padding: 8px 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.bd-cart-form {
  margin-top: 14px;
  display: grid;
  gap: 10px;
}

.bd-price-options {
  display: grid;
  gap: 8px;
}

.bd-price-option {
  position: relative;
  display: block;
  border: 1px solid #d3dfef;
  border-radius: 10px;
  background: #f8fbff;
  padding: 10px 12px;
  cursor: pointer;
}

.bd-price-option input {
  position: absolute;
  inset: 0;
  opacity: 0;
}

.bd-price-option strong {
  color: #9f432a;
  font-size: 16px;
}

.bd-price-option span {
  display: block;
  margin-top: 3px;
  color: #596f8a;
  font-size: 13px;
}

.bd-price-option input:checked + div {
  outline: 2px solid #a3472d;
  outline-offset: 8px;
  border-radius: 6px;
}

.bd-cart-row {
  display: grid;
  grid-template-columns: 100px 1fr auto;
  gap: 8px;
  align-items: end;
}

.bd-cart-row label span {
  display: block;
  color: #60748f;
  font-size: 11px;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.bd-cart-row input {
  width: 100%;
  border: 1px solid #d3ddea;
  background: #f8fbff;
  min-height: 40px;
  border-radius: 9px;
  padding: 0 10px;
  outline: none;
}

.bd-section {
  margin-top: 44px;
}

.bd-section h2 {
  margin: 0 0 14px;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 30px;/*clamp(34px, 2.7vw, 50px);*/
  color: #17263b;
  display: flex;
  align-items: center;
  gap: 12px;
}

.bd-section h2::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #d7e0ec;
}

.bd-anatomy-cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.bd-anatomy-cards article {
  background: #f8fbff;
  border-radius: 10px;
  padding: 14px;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.bd-anatomy-cards article:hover {
  border-bottom-color: rgba(163, 71, 45, 0.4);
  transform: translateY(-1px);
}

.bd-anatomy-icon {
  width: 18px;
  height: 18px;
  color: #a3472d;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
}

.bd-anatomy-icon svg {
  width: 18px;
  height: 18px;
  display: block;
}

.bd-anatomy-cards small {
  color: #7285a0;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.bd-anatomy-cards strong {
  display: block;
  margin-top: 4px;
  color: #1f324b;
  font-size: 16px;
}

.bd-details-grid {
  margin-top: 8px;
  border: 1px solid #d6dfec;
  border-radius: 10px;
  overflow: hidden;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.bd-details-grid > div {
  background: #f8fbff;
  border-bottom: 1px solid #dce4ef;
  border-inline-end: 1px solid #dce4ef;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.bd-details-grid > div:nth-child(2n) {
  border-inline-end: 0;
}

.bd-details-grid > div:nth-last-child(-n + 2) {
  border-bottom: 0;
}

.bd-details-grid span {
  color: #667b95;
  font-size: 13px;
}

.bd-details-grid strong {
  color: #20344d;
  font-size: 16px;
}

.bd-enrichment-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.bd-enrichment-grid--smart {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  align-items: start;
}

.bd-enrich-card {
  background: #e1ebf8;
  border: 1px solid #d1dced;
  border-radius: 12px;
  padding: 16px;
}

.bd-enrich-card--summary {
  grid-column: 1 / span 2;
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(10px);
  border-color: rgba(16, 36, 57, 0.08);
  box-shadow: 0 18px 40px rgba(9, 29, 46, 0.06);
  position: relative;
  overflow: hidden;
}

.bd-enrich-side {
  grid-column: 3;
  display: grid;
  gap: 12px;
}

.bd-enrich-card--indicators,
.bd-enrich-card--deep {
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(10px);
  border-color: rgba(16, 36, 57, 0.08);
  box-shadow: 0 18px 40px rgba(9, 29, 46, 0.06);
}

.bd-enrich-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(196, 95, 62, 0.1);
  color: #96432a;
  border: 1px solid rgba(196, 95, 62, 0.16);
  border-radius: 999px;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 6px 10px;
  font-weight: 800;
}

html[dir="rtl"] .bd-enrich-badge {
  letter-spacing: 0;
  text-transform: none;
}

.bd-enrich-title {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 22px;
  color: #102439;
}

.bd-enrich-prose {
  margin-top: 10px;
  color: rgba(16, 36, 57, 0.82);
  font-size: 16px;
  line-height: 1.8;
}

.bd-enrich-prose p {
  margin: 0 0 12px;
}

.bd-structural {
  margin-top: 14px;
  border-top: 1px solid rgba(16, 36, 57, 0.08);
  padding-top: 12px;
  display: grid;
  gap: 12px;
}

.bd-structural h4 {
  margin: 0;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(16, 36, 57, 0.72);
}

html[dir="rtl"] .bd-structural h4 {
  letter-spacing: 0;
  text-transform: none;
}

.bd-structural-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.bd-structural-block small {
  display: block;
  color: rgba(78, 96, 115, 0.8);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 900;
  margin-bottom: 6px;
}

html[dir="rtl"] .bd-structural-block small {
  letter-spacing: 0;
  text-transform: none;
}

.bd-structural-block p {
  margin: 0;
  color: rgba(16, 36, 57, 0.8);
  font-size: 13px;
  line-height: 1.7;
}

.bd-structural-block--theme {
  grid-column: 1 / -1;
}

.bd-reasons {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}

.bd-reasons li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: rgba(16, 36, 57, 0.72);
  font-size: 13px;
  font-style: italic;
  line-height: 1.6;
}

.bd-check {
  width: 16px;
  height: 16px;
  color: #96432a;
  flex: 0 0 auto;
  margin-top: 1px;
}

.bd-check svg {
  width: 16px;
  height: 16px;
  display: block;
}

.bd-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.bd-chip {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 12px;
  background: rgba(196, 95, 62, 0.06);
  border: 1px solid rgba(196, 95, 62, 0.12);
  color: #96432a;
  font-weight: 800;
  font-size: 12px;
}

.bd-decision {
  background: rgba(196, 95, 62, 0.06);
  border: 1px solid rgba(196, 95, 62, 0.12);
  border-left: 4px solid rgba(196, 95, 62, 0.9);
  border-radius: 14px;
  padding: 10px 12px;
}

html[dir="rtl"] .bd-decision {
  border-left: 1px solid rgba(196, 95, 62, 0.12);
  border-right: 4px solid rgba(196, 95, 62, 0.9);
}

.bd-decision small {
  display: block;
  color: #96432a;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 900;
  margin-bottom: 4px;
}

html[dir="rtl"] .bd-decision small {
  letter-spacing: 0;
  text-transform: none;
}

.bd-decision p {
  margin: 0;
  font-size: 13px;
  font-weight: 900;
  color: rgba(16, 36, 57, 0.9);
  line-height: 1.6;
}

.bd-indicators {
  margin-top: 10px;
  display: grid;
  gap: 14px;
}

.bd-score-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 900;
  color: rgba(16, 36, 57, 0.68);
}

html[dir="rtl"] .bd-score-row {
  letter-spacing: 0;
  text-transform: none;
}

.bd-score-row strong {
  font-size: 13px;
  color: #96432a;
  letter-spacing: 0;
}

.bd-score-bar {
  margin-top: 8px;
  height: 10px;
  border-radius: 999px;
  background: rgba(16, 36, 57, 0.08);
  overflow: hidden;
}

.bd-score-fill {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(196, 95, 62, 0.9), rgba(196, 95, 62, 0.55));
}

.bd-score-fill.pct-0 { width: 0%; }
.bd-score-fill.pct-5 { width: 5%; }
.bd-score-fill.pct-10 { width: 10%; }
.bd-score-fill.pct-15 { width: 15%; }
.bd-score-fill.pct-20 { width: 20%; }
.bd-score-fill.pct-25 { width: 25%; }
.bd-score-fill.pct-30 { width: 30%; }
.bd-score-fill.pct-35 { width: 35%; }
.bd-score-fill.pct-40 { width: 40%; }
.bd-score-fill.pct-45 { width: 45%; }
.bd-score-fill.pct-50 { width: 50%; }
.bd-score-fill.pct-55 { width: 55%; }
.bd-score-fill.pct-60 { width: 60%; }
.bd-score-fill.pct-65 { width: 65%; }
.bd-score-fill.pct-70 { width: 70%; }
.bd-score-fill.pct-75 { width: 75%; }
.bd-score-fill.pct-80 { width: 80%; }
.bd-score-fill.pct-85 { width: 85%; }
.bd-score-fill.pct-90 { width: 90%; }
.bd-score-fill.pct-95 { width: 95%; }
.bd-score-fill.pct-100 { width: 100%; }

.bd-indicator-block h4 {
  margin: 0 0 8px;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #96432a;
}

html[dir="rtl"] .bd-indicator-block h4 {
  letter-spacing: 0;
  text-transform: none;
}

.bd-status {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 800;
  color: rgba(16, 36, 57, 0.84);
}

.bd-status-icon {
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.bd-status.is-ok .bd-status-icon {
  color: #2a8a55;
}

.bd-status.is-warn .bd-status-icon {
  color: #c45f3e;
}

.bd-status-icon svg {
  width: 18px;
  height: 18px;
  display: block;
}

.bd-beneficiaries {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.bd-benefit-chip {
  background: rgba(238, 244, 255, 0.75);
  border: 1px solid rgba(16, 36, 57, 0.08);
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 800;
  color: rgba(16, 36, 57, 0.86);
}

.bd-enrich-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.bd-enrich-head span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #f0d7cf;
  color: #943c25;
  border-radius: 999px;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 8px;
  font-weight: 700;
}

.bd-enrich-card h3 {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 28px;
  color: #1f3148;
  margin-top: 25px;
}

.bd-title-icon {
  width: 14px;
  height: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #a3472d;
  flex: 0 0 auto;
}

.bd-title-icon svg {
  width: 14px;
  height: 14px;
  display: block;
}

.bd-enrich-card p {
  margin: 10px 0 0;
  color: #415977;
  font-size: 15px;
  line-height: 1.75;
}

.bd-enrich-points {
  margin-top: 8px;
  display: grid;
  gap: 10px;
}

.bd-enrich-points > div {
  border-top: 1px solid #d3ddeb;
  padding-top: 8px;
}

.bd-enrich-points > div:first-child {
  border-top: 0;
  padding-top: 0;
}

.bd-enrich-points small {
  color: #96432a;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
}

.bd-recognition-line {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.bd-similar-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
}

.bd-similar-controls {
  display: inline-flex;
  gap: 6px;
}

html[dir="rtl"] .bd-similar-controls {
  flex-direction: row-reverse;
}

.bd-similar-controls button {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid #cfdae9;
  background: #f8fbff;
  color: #2a3f59;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.bd-similar-controls button svg {
  width: 14px;
  height: 14px;
  display: block;
}

.bd-similar-controls button:hover {
  background: #fff;
  border-color: #b9c9dc;
}

.bd-similar-track {
  --bd-similar-gap: 14px;
  --bd-similar-visible: 5;
  margin-top: 14px;
  display: flex;
  gap: var(--bd-similar-gap);
  overflow-x: auto;
  scroll-behavior: smooth;
  padding-bottom: 8px;
  scrollbar-width: none;
  direction: ltr;
}

.bd-similar-track::-webkit-scrollbar {
  width: 0;
  height: 0;
}

.bd-similar-card {
  flex: 0 0 calc((100% - ((var(--bd-similar-visible) - 1) * var(--bd-similar-gap))) / var(--bd-similar-visible));
  min-width: calc((100% - ((var(--bd-similar-visible) - 1) * var(--bd-similar-gap))) / var(--bd-similar-visible));
  text-decoration: none;
  color: inherit;
}

.bd-similar-cover {
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  background: #d6e0ed;
}

.bd-similar-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.bd-similar-card:hover .bd-similar-cover img {
  transform: scale(1.05);
}

.bd-similar-card h4 {
  margin: 8px 0 2px;
  color: #1d3048;
  font-size: 18px;
  font-family: "Playfair Display", Georgia, serif;
}

.bd-similar-card p {
  margin: 0;
  color: #61758f;
  font-size: 13px;
}

@media (max-width: 1100px) {
  .bd-hero {
    grid-template-columns: 1fr;
  }

  .bd-cover-wrap {
    max-width: 380px;
  }

  .bd-anatomy-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .bd-enrichment-grid {
    grid-template-columns: 1fr;
  }

  .bd-enrichment-grid--smart {
    grid-template-columns: 1fr;
  }

  .bd-enrich-card--summary {
    grid-column: auto;
  }

  .bd-enrich-side {
    grid-column: auto;
  }

  .bd-structural-grid {
    grid-template-columns: 1fr;
  }

  .bd-similar-track {
    --bd-similar-visible: 3;
  }
}

@media (max-width: 760px) {
  .bd-meta-cards {
    grid-template-columns: 1fr;
  }

  .bd-cart-row {
    grid-template-columns: 1fr;
  }

  .bd-details-grid {
    grid-template-columns: 1fr;
  }

  .bd-details-grid > div {
    border-inline-end: 0;
  }

  .bd-details-grid > div:nth-last-child(-n + 2) {
    border-bottom: 1px solid #dce4ef;
  }

  .bd-details-grid > div:last-child {
    border-bottom: 0;
  }

  .bd-similar-track {
    --bd-similar-visible: 1;
  }
}

html[dir="rtl"] .bd-breadcrumbs,
html[dir="rtl"] .bd-subline,
html[dir="rtl"] .bd-actions,
html[dir="rtl"] .bd-tags,
html[dir="rtl"] .bd-similar-head {
  direction: rtl;
}

html[dir="rtl"] .bd-similar-card {
  direction: rtl;
  text-align: right;
}

html[dir="rtl"] .bd-main blockquote {
  border-inline-start: 0;
  border-inline-end: 3px solid #d9beb3;
  padding-inline-start: 0;
  padding-inline-end: 14px;
}
  .home-books-slider .sliderButtons-prev,
  .home-books-slider .sliderButtons-next {
    top: -56px;
    width: 46px;
    height: 46px;
    border-radius: 12px;
  }

  .home-books-slider .sliderButtons-prev {
    inset-inline-end: 52px;
  }

  .home-slider-arrow,
  .home-slider-arrow svg {
    width: 16px;
    height: 16px;
  }

/* Inner Pages Redesign */
.ip-page {
  padding: 26px 0 80px;
}

.ip-hero {
  position: relative;
  margin-bottom: 26px;
  border: 1px solid #d9e2ee;
  background:
    radial-gradient(1000px 220px at 85% -45%, rgba(159, 71, 45, 0.16), transparent 62%),
    linear-gradient(180deg, #f4f8fd 0%, #ecf2f9 100%);
  border-radius: 18px;
  padding: 30px 30px 26px;
  overflow: hidden;
}

.ip-hero::after {
  content: "";
  position: absolute;
  right: -30px;
  top: -22px;
  width: 220px;
  height: 220px;
  background-image: url("data:image/svg+xml,%3Csvg width='180' height='240' viewBox='0 0 180 240' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%239caac1' fill-opacity='0.2'%3E%3Cpath d='M90 0l30 60h-60zM90 120l30 60h-60zM90 240l30-60h-60z'/%3E%3Cpath d='M150 60l30 60h-60zM150 180l30 60h-60z'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 150px 200px;
  background-repeat: no-repeat;
  pointer-events: none;
}

.ip-hero small {
  display: inline-block;
  text-transform: uppercase;
  color: #8f3a27;
  font-size: 11px;
  font-weight: 700;
}

.ip-hero h1 {
  margin: 10px 0 8px;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(40px, 4vw, 66px);
  line-height: 1.05;
  color: #13253c;
}

.ip-hero p {
  margin: 0;
  max-width: 760px;
  color: #52647f;
  font-size: 16px;
  line-height: 1.65;
}

.ip-hero-compact h1 {
  font-size: clamp(34px, 3.2vw, 54px);
}

.ip-cta {
  margin-top: 30px;
  border-radius: 18px;
  padding: 28px;
  background: linear-gradient(140deg, #12304e, #1e4a72);
  color: #eef6ff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.ip-cta h2 {
  margin: 0;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(30px, 2.8vw, 46px);
}

.ip-cta-soft {
  background: linear-gradient(160deg, #dae7f7, #ccddf2);
  color: #1a2b42;
}

.ip-cta .home-btn-primary {
  flex: 0 0 auto;
}

.ip-about-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  align-items: stretch;
}

.ip-about-card {
  border: 1px solid #d8e1ed;
  background: #f8fbff;
  border-radius: 14px;
  padding: 18px;
  display: flex;
  gap: 14px;
  min-height: 240px;
  height: 90%;
  align-items: flex-start;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.ip-about-copy {
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.ip-about-copy p {
  margin: 8px 0 0;
  color: #526684;
  line-height: 1.65;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ip-about-card:hover {
  transform: translateY(-2px);
  border-color: #b7cadf;
  box-shadow: 0 12px 26px rgba(18, 35, 58, 0.08);
}

.ip-about-icon {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  background: #e4edf9;
  border: 1px solid #d3dfef;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.ip-about-icon img {
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.ip-about-copy h3 {
  margin: 0;
  font-family: "Playfair Display", Georgia, serif;
  color: #1b2f48;
  font-size: 28px;
  line-height: 1.18;
}

.ip-authors-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.ip-authors-card {
  border: 1px solid #d8e1ed;
  background: linear-gradient(180deg, #f7fbff 0%, #f1f6fd 100%);
  border-radius: 14px;
  padding: 18px;
}

.ip-authors-card-head {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ip-authors-card-icon {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  background: #deebfb;
  border: 1px solid #cdddf1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.ip-authors-card-icon img {
  width: 30px;
  height: 30px;
  object-fit: contain;
}

.ip-authors-card h3 {
  margin: 0;
  color: #1a2d45;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 26px;
  line-height: 1.2;
}

.ip-authors-card p {
  margin: 12px 0 0;
  color: #556a87;
  line-height: 1.7;
}

.ip-services-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 12px;
}

.ip-services-hub .ip-hero {
  margin-bottom: 16px;
}

.ip-services-hub {
  scroll-behavior: smooth;
}

html {
  scroll-behavior: smooth;
}

.ip-services-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 12px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid #d8e2ef;
  backdrop-filter: blur(12px);
  position: sticky;
  top: 90px;
  z-index: 20;
  margin-bottom: 18px;
}

.ip-services-nav a {
  text-decoration: none;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #1f324a;
  padding: 10px 12px;
  border-radius: 999px;
  background: #eef4ff;
  border: 1px solid #d3deeb;
  transition: transform 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.ip-services-nav a:hover {
  transform: translateY(-1px);
  background: #ffffff;
  border-color: #c7d6ea;
}

html[dir="rtl"] .ip-services-nav a {
  letter-spacing: 0;
  text-transform: none;
}

.ip-services-block {
  margin-top: 18px;
  padding: 24px;
  border-radius: 18px;
  background: #f8fbff;
  border: 1px solid #d8e2ef;
  scroll-margin-top: 140px;
}

.ip-services-block.is-alt {
  background: linear-gradient(160deg, #edf4ff, #f7f9ff);
}

.ip-services-block-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 16px;
  align-items: end;
  padding-bottom: 14px;
  margin-bottom: 14px;
  border-bottom: 1px solid rgba(219, 193, 186, 0.35);
}

.ip-services-block-head small {
  display: block;
  color: #a1492f;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 800;
}

.ip-services-block-head h2 {
  margin: 10px 0 0;
  font-family: "Playfair Display", Georgia, serif;
  color: #102439;
  font-size: clamp(28px, 3vw, 44px);
}

.ip-services-block-head p {
  margin: 0;
  color: #5b708a;
  line-height: 1.75;
}

.ip-services-cta {
  margin-top: 18px;
}

.ip-services-cta h3 {
  margin: 0;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 26px;
}

@media (max-width: 900px) {
  .ip-services-block-head {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .ip-services-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .ip-services-grid {
    grid-template-columns: 1fr;
  }

  .ip-services-nav {
    top: 74px;
  }

  .ip-services-block {
    scroll-margin-top: 120px;
  }
}

.ip-service-card {
  border: 1px solid #d8e2ef;
  border-radius: 14px;
  background: #f8fbff;
  padding: 16px;
  display: grid;
  gap: 10px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.ip-service-card:hover {
  transform: translateY(-2px);
  border-color: #c4d5e9;
  box-shadow: 0 16px 30px rgba(18, 35, 58, 0.08);
}

.ip-service-card-head {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ip-service-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: #eef4fb;
  border: 1px solid #d8e2ef;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.ip-service-icon img {
  width: 26px;
  height: 26px;
  object-fit: contain;
}

.ip-service-card h3 {
  margin: 0;
  font-family: "Playfair Display", Georgia, serif;
  color: #1e324a;
  font-size: 22px;
}

.ip-service-card p {
  margin: 0;
  color: #5b708a;
  line-height: 1.7;
}

.ip-filter-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 12px;
  margin-bottom: 18px;
  border: 1px solid #d9e2ee;
  border-radius: 14px;
  background: #f8fbff;
  padding: 12px;
}

.ip-filter-field {
  display: grid;
  gap: 6px;
}

.ip-filter-field label {
  color: #61738d;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
}

.ip-input-wrap {
  position: relative;
}

.ip-input-wrap input,
.ip-filter-field select {
  width: 100%;
  min-height: 46px;
  border-radius: 11px;
  border: 1px solid #d4dfec;
  background: #edf4fc;
  padding: 0 14px;
  outline: none;
  color: #283a53;
}

.ip-input-wrap input {
  padding-inline-end: 42px;
}

.ip-input-wrap button {
  position: absolute;
  top: 50%;
  inset-inline-end: 12px;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
  border: 0;
  background: transparent;
  color: #60748f;
  padding: 0;
  cursor: pointer;
}

.ip-input-wrap button svg {
  width: 16px;
  height: 16px;
  display: block;
}

.ip-publishers-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.ip-publisher-card {
  position: relative;
  border: 1px solid #d8e2ef;
  background: #f9fbff;
  border-radius: 14px;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.ip-publisher-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(18, 35, 58, 0.08);
  border-color: #c2d3e8;
}

.ip-publisher-link {
  position: absolute;
  inset: 0;
  z-index: 4;
}

.ip-publisher-logo {
  min-height: 148px;
  border-bottom: 1px solid #e1e8f2;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, #ffffff 0%, #f2f6fc 100%);
  padding: 16px;
}

.ip-publisher-logo img {
  max-width: 100%;
  max-height: 86px;
  object-fit: contain;
}

.ip-publisher-meta {
  padding: 14px;
}

.ip-publisher-meta h3 {
  margin: 0;
  font-family: "Playfair Display", Georgia, serif;
  color: #1f324a;
  font-size: 24px;
  line-height: 1.2;
}

.ip-publisher-meta p {
  margin: 6px 0 0;
  color: #5f738f;
}

.ip-pagination {
  margin-top: 22px;
}

.ip-contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 14px;
}

.ip-contact-form-card,
.ip-contact-info {
  border: 1px solid #d8e2ef;
  background: #f8fbff;
  border-radius: 14px;
  padding: 18px;
}

.ip-contact-form-card h2 {
  margin: 0 0 14px;
  color: #172a42;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 30px;
}

.ip-form-grid {
  display: grid;
  gap: 10px;
}

.ip-form-grid label {
  display: grid;
  gap: 6px;
}

.ip-form-grid label > span {
  color: #5f728d;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
}

.ip-form-grid input,
.ip-form-grid textarea {
  border: 1px solid #d4dfec;
  border-radius: 10px;
  background: #edf4fc;
  color: #1f324b;
  padding: 11px 12px;
  font: inherit;
  outline: none;
}

.ip-advanced-inline {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  gap: 10px;
}

.ip-advanced-inline select {
  border: 1px solid #d4dfec;
  border-radius: 10px;
  background: #edf4fc;
  color: #1f324b;
  padding: 11px 12px;
  font: inherit;
  outline: none;
}

.ip-contact-side {
  display: grid;
  gap: 10px;
  align-content: start;
}

.ip-contact-info h3 {
  margin: 0;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 26px;
  color: #1f324b;
}

.ip-contact-info p {
  margin: 8px 0 0;
  color: #566b87;
  line-height: 1.7;
}

.ip-apply-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 14px;
  align-items: start;
}

.ip-apply-card,
.ip-apply-info {
  border: 1px solid #d8e2ef;
  background: #f8fbff;
  border-radius: 14px;
  padding: 18px;
}

.ip-apply-card h2 {
  margin: 0 0 14px;
  font-family: "Playfair Display", Georgia, serif;
  color: #182b43;
  font-size: 30px;
}

.ip-apply-side {
  display: grid;
  gap: 10px;
}

.ip-apply-info h3 {
  margin: 0;
  font-family: "Playfair Display", Georgia, serif;
  color: #1d3048;
  font-size: 24px;
}

.ip-apply-info p {
  margin: 8px 0 0;
  color: #576c88;
  line-height: 1.6;
}

.ip-branches-section {
  margin-top: 20px;
}

.ip-section-head-inline h2 {
  margin: 0 0 10px;
  font-family: "Playfair Display", Georgia, serif;
  color: #1a2d45;
  font-size: clamp(30px, 2.8vw, 42px);
}

.ip-branches-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.ip-branch-card {
  border: 1px solid #d8e2ef;
  background: #f8fbff;
  border-radius: 14px;
  overflow: hidden;
}

.ip-branch-map .map-frame {
  display: block;
  width: 100%;
  border: 0;
}

.ip-branch-body {
  padding: 14px;
  display: grid;
  gap: 6px;
}

.ip-branch-body h3 {
  margin: 0;
  font-family: "Playfair Display", Georgia, serif;
  color: #1d3048;
  font-size: 28px;
}

.ip-branch-body p,
.ip-branch-body span {
  margin: 0;
  color: #546884;
  line-height: 1.6;
}

.ip-branch-body a {
  color: #8e3d2a;
  text-decoration: none;
  font-weight: 600;
}

.ip-branch-body a:hover {
  text-decoration: underline;
}

html[dir="rtl"] .ip-about-card,
html[dir="rtl"] .ip-authors-card,
html[dir="rtl"] .ip-service-card,
html[dir="rtl"] .ip-filter-panel,
html[dir="rtl"] .ip-contact-grid,
html[dir="rtl"] .ip-apply-grid,
html[dir="rtl"] .ip-branch-body {
  direction: rtl;
}

html[dir="rtl"] .ip-about-copy,
html[dir="rtl"] .ip-authors-card,
html[dir="rtl"] .ip-service-card,
html[dir="rtl"] .ip-publisher-meta,
html[dir="rtl"] .ip-contact-info,
html[dir="rtl"] .ip-apply-card,
html[dir="rtl"] .ip-apply-info,
html[dir="rtl"] .ip-advanced-inline,
html[dir="rtl"] .ip-branch-body {
  text-align: right;
}

@media (max-width: 1100px) {
  .ip-publishers-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .ip-contact-grid,
  .ip-branches-grid,
  .ip-authors-grid,
  .ip-about-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 860px) {
  .ip-filter-panel {
    grid-template-columns: 1fr;
  }

  .ip-publishers-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ip-services-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ip-apply-grid {
    grid-template-columns: 1fr;
  }

  .ip-cta {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 580px) {
  .ip-publishers-grid {
    grid-template-columns: 1fr;
  }

  .ip-services-grid {
    grid-template-columns: 1fr;
  }

  .ip-hero {
    padding: 24px 18px 20px;
  }

  .ip-hero h1 {
    font-size: clamp(32px, 9vw, 46px);
  }
}

/* Cart Redesign */
.cc-page {
  padding: 26px 0 82px;
}

.cc-hero {
  margin-bottom: 18px;
  border: 1px solid #d9e2ee;
  background:
    radial-gradient(800px 170px at 90% -40%, rgba(159, 71, 45, 0.16), transparent 64%),
    linear-gradient(180deg, #f4f8fd 0%, #ecf2f9 100%);
  border-radius: 18px;
  padding: 26px 28px 22px;
}

.cc-hero small {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: #8f3a27;
  font-size: 11px;
  font-weight: 700;
}

.cc-hero h1 {
  margin: 8px 0 6px;
  font-family: "Playfair Display", Georgia, serif;
  color: #15253a;
  font-size: 30px ; /* clamp(36px, 3.7vw, 58px);*/
  line-height: 1.06;
}

.cc-hero p {
  margin: 0;
  color: #5d7089;
  font-size: 15px;
}

.cc-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 14px;
  align-items: start;
}

.cc-items {
  display: grid;
  gap: 12px;
}

.cc-item {
  border: 1px solid #d9e2ee;
  border-radius: 14px;
  background: #f8fbff;
  padding: 14px;
  display: grid;
  grid-template-columns: 128px minmax(0, 1fr) auto;
  gap: 14px;
}

.cc-item-cover {
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid #d0dceb;
  background: #dce6f3;
  display: block;
  aspect-ratio: 2 / 3;
}

.cc-item-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1);
  transition: transform 0.4s ease, filter 0.4s ease;
}

.cc-item:hover .cc-item-cover img {
  transform: scale(1.04);
  filter: brightness(1.04);
}

.cc-item-title {
  margin: 0;
  text-decoration: none;
  color: #1a2e47;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 24px;
  line-height: 1.1;
  display: inline-block;
}

.cc-item-meta {
  margin: 6px 0 0;
  color: #5f738e;
  font-size: 14px;
}

.cc-item-price-row {
  margin-top: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.cc-item-price {
  color: #993f28;
  font-size: 24px;
}

.cc-item-line-total {
  color: #4d617d;
  font-size: 14px;
  font-weight: 700;
}

.cc-item-form {
  margin-top: 10px;
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr) auto;
  gap: 8px;
  align-items: stretch;
}

.cc-qty-wrap {
  border: 1px solid #d0dceb;
  background: #edf4fc;
  border-radius: 11px;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 44px;
  min-height: 42px;
  overflow: hidden;
}

.cc-qty-wrap button {
  border: 0;
  background: #e4edf9;
  color: #25364b;
  font-size: 21px;
  cursor: pointer;
}

.cc-qty-wrap input {
  border: 0;
  background: transparent;
  text-align: center;
  font-weight: 700;
  color: #1f3148;
  outline: none;
}

.cc-note {
  border: 1px solid #d0dceb;
  border-radius: 11px;
  background: #edf4fc;
  color: #1f3148;
  padding: 10px 12px;
  font: inherit;
  outline: none;
  resize: vertical;
  min-height: 42px;
}

.cc-save-btn {
  border: 0;
  border-radius: 11px;
  min-width: 104px;
  background: #c75e3d;
  color: #fff;
  font-weight: 700;
  cursor: pointer;
  padding: 0 16px;
}

.cc-save-btn:hover {
  background: #b45234;
}

.cc-remove-btn {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid #e3bdaf;
  background: #fff2ee;
  color: #9b3926;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.cc-remove-btn svg {
  width: 16px;
  height: 16px;
  display: block;
}

.cc-summary {
  border: 1px solid #d9e2ee;
  border-radius: 14px;
  background: #f8fbff;
  overflow: hidden;
}

.cc-summary-main {
  padding: 16px;
  border-bottom: 1px solid #deE7f1;
}

.cc-summary-main h3 {
  margin: 0;
  color: #1d3048;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 22px;
}

.cc-summary-main p {
  margin: 8px 0 0;
  color: #60748f;
}

.cc-total {
  margin: 12px 0 14px;
  color: #993f28;
  font-size: 24px;
  font-weight: 700;
  font-family: "Playfair Display", Georgia, serif;
}

.cc-submit-btn,
.cc-refresh-btn,
.cc-clear-btn,
.cc-continue-btn {
  width: 100%;
  min-height: 42px;
  border-radius: 11px;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
}

.cc-submit-btn {
  border: 0;
  cursor: pointer;
  background: linear-gradient(145deg, #c45f3e, #a94b2f);
  color: #fff;
  box-shadow: 0 10px 22px rgba(122, 42, 19, 0.26);
}

.cc-refresh-btn {
  margin-top: 8px;
  border-color: #cfdbea;
  color: #2a3d55;
  background: #edf4fc;
}

.cc-summary-foot {
  padding: 14px 16px;
  display: grid;
  gap: 10px;
}

.cc-export-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.cc-export-row span {
  color: #5f738e;
  font-size: 13px;
  font-weight: 700;
}

.cc-export-row a {
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid #cfdbea;
  background: #f3f8ff;
  color: #29405a;
  text-decoration: none;
  font-size: 12px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
}

.cc-clear-btn {
  background: #fff5f1;
  border-color: #e9c3b6;
  color: #9c3c28;
  cursor: pointer;
}

.cc-continue-btn {
  margin: 0 16px 16px;
  width: calc(100% - 32px);
  border-color: #cad6e6;
  color: #2c405a;
  background: #f2f7fd;
}

.cc-empty {
  border: 1px solid #d9e2ee;
  border-radius: 16px;
  background: #f8fbff;
  padding: 34px;
  text-align: center;
}

.cc-empty h2 {
  margin: 0;
  font-family: "Playfair Display", Georgia, serif;
  color: #1d3048;
  font-size: clamp(34px, 3vw, 46px);
}

.cc-empty p {
  margin: 10px auto 18px;
  max-width: 580px;
  color: #60748f;
}

html[dir="rtl"] .cc-page,
html[dir="rtl"] .cc-item,
html[dir="rtl"] .cc-item-main,
html[dir="rtl"] .cc-summary {
  direction: rtl;
}

html[dir="rtl"] .cc-item-main,
html[dir="rtl"] .cc-item-meta,
html[dir="rtl"] .cc-summary-main,
html[dir="rtl"] .cc-summary-foot {
  text-align: right;
}

@media (max-width: 1080px) {
  .cc-layout {
    grid-template-columns: 1fr;
  }

  .cc-item-title {
    font-size: 30px;
  }
}

@media (max-width: 780px) {
  .cc-item {
    grid-template-columns: 1fr;
  }

  .cc-item-cover {
    max-width: 180px;
  }

  .cc-item-form {
    grid-template-columns: 1fr;
  }
}

/* Clients Redesign */
.ip-clients-highlight {
  margin-bottom: 14px;
  border: 1px solid #d9e2ee;
  background: linear-gradient(130deg, #f8fbff 0%, #edf4fc 100%);
  border-radius: 14px;
  padding: 18px;
}

.ip-clients-highlight h2 {
  margin: 0;
  color: #1a2d45;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(30px, 2.5vw, 40px);
}

.ip-clients-highlight p {
  margin: 8px 0 0;
  color: #566b87;
  line-height: 1.7;
  max-width: 920px;
}

.ip-clients-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.ip-client-card {
  border: 1px solid #d8e2ef;
  background: #f9fbff;
  border-radius: 14px;
  padding: 14px;
  min-height: 210px;
  display: grid;
  align-content: start;
  gap: 12px;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.ip-client-card:hover {
  transform: translateY(-2px);
  border-color: #c3d4e8;
  box-shadow: 0 14px 30px rgba(18, 35, 58, 0.08);
}

.ip-client-logo {
  min-height: 118px;
  border-radius: 10px;
  border: 1px solid #e2e9f2;
  background: linear-gradient(180deg, #ffffff 0%, #f2f7fd 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
}

.ip-client-logo img {
  max-width: 100%;
  max-height: 86px;
  object-fit: contain;
}

.ip-client-card h3 {
  margin: 0;
  color: #1f324a;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 24px;
  line-height: 1.25;
}

html[dir="rtl"] .ip-clients-page,
html[dir="rtl"] .ip-client-card,
html[dir="rtl"] .ip-clients-highlight {
  direction: rtl;
  text-align: right;
}

@media (max-width: 1100px) {
  .ip-clients-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .ip-clients-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 580px) {
  .ip-clients-grid {
    grid-template-columns: 1fr;
  }
}

/* Cart Confirm + Success */
.cc-confirm-card,
.cc-success-card {
  border: 1px solid #d9e2ee;
  border-radius: 16px;
  background: #f8fbff;
  padding: 18px;
}

.cc-confirm-main {
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

.cc-confirm-cover {
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid #d0dceb;
  background: #dce6f3;
  aspect-ratio: 2 / 3;
}

.cc-confirm-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.cc-confirm-copy h2 {
  margin: 0;
  color: #1a2e47;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(30px, 3vw, 44px);
  line-height: 1.08;
}

.cc-confirm-copy p {
  margin: 7px 0 0;
  color: #60748f;
}

.cc-confirm-copy strong {
  display: inline-block;
  margin-top: 10px;
  color: #993f28;
  font-size: 25px;
  font-family: "Playfair Display", Georgia, serif;
}

.cc-confirm-actions {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.cc-confirm-btn {
  border: 0;
  min-height: 44px;
  border-radius: 11px;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 700;
  cursor: pointer;
}

.cc-confirm-btn svg {
  width: 16px;
  height: 16px;
  display: block;
}

.cc-confirm-btn-yes {
  background: linear-gradient(145deg, #c45f3e, #a94b2f);
  color: #fff;
  box-shadow: 0 10px 22px rgba(122, 42, 19, 0.26);
}

.cc-confirm-btn-no {
  background: #fff1ec;
  border: 1px solid #e8bfb2;
  color: #9b3a27;
}

.cc-success-card {
  text-align: center;
  max-width: 780px;
  margin: 0 auto;
  padding: 30px 20px;
  background:
    radial-gradient(700px 190px at 50% -70%, rgba(159, 71, 45, 0.16), transparent 66%),
    #f8fbff;
}

.cc-success-mark {
  width: 62px;
  height: 62px;
  margin: 0 auto 12px;
  border-radius: 999px;
  border: 1px solid #cfe0d6;
  background: #ecf8f1;
  color: #2f7b55;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.cc-success-mark svg {
  width: 34px;
  height: 34px;
  display: block;
}

.cc-success-card h1 {
  margin: 0;
  color: #1a2e47;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(34px, 3.2vw, 52px);
  line-height: 1.1;
}

.cc-success-card p {
  margin: 10px auto 0;
  max-width: 640px;
  color: #60748f;
  line-height: 1.7;
}

.cc-success-actions {
  margin-top: 16px;
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px;
}

.cc-success-actions .cc-submit-btn,
.cc-success-actions .cc-refresh-btn {
  min-width: 220px;
}

@media (max-width: 780px) {
  .cc-confirm-main {
    grid-template-columns: 1fr;
  }

  .cc-confirm-cover {
    max-width: 180px;
  }

  .cc-success-actions {
    display: grid;
    width: 100%;
  }

  .cc-success-actions .cc-submit-btn,
  .cc-success-actions .cc-refresh-btn {
    width: 100%;
    min-width: 0;
  }
}

/* User Profile / Dashboard */
.up-page {
  padding: 28px 0 80px;
}

.up-shell {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  grid-template-areas: "sidebar main";
  gap: 18px;
  align-items: start;
}

.up-shell > .up-sidebar,
.up-shell > .up-main {
  align-self: start;
}

.up-sidebar {
  grid-area: sidebar;
  border: 1px solid #d8e2ef;
  border-radius: 16px;
  background: #f8fbff;
  padding: 18px;
  position: sticky;
  top: 78px;
}

.up-profile {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.up-avatar {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  overflow: hidden;
  background: #dfe7f2;
  border: 1px solid #d1dceb;
}

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

.up-profile h3 {
  margin: 0;
  font-size: 18px;
  color: #1f324a;
  font-family: "Playfair Display", Georgia, serif;
}

.up-profile p {
  margin: 4px 0 0;
  color: #61748d;
  font-size: 13px;
}

.up-nav .userSidebar-nav {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 6px;
}

.up-nav .userSidebar-nav > li > a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  text-decoration: none;
  color: #4e6073;
  font-weight: 700;
  font-size: 14px;
  background: transparent;
}

.up-nav-icon {
  width: 18px;
  height: 18px;
  display: inline-block;
  color: currentColor;
  flex: 0 0 auto;
}

.up-nav-icon svg {
  width: 18px;
  height: 18px;
  display: block;
}

.up-nav .userSidebar-nav > li.is-active > a,
.up-nav .userSidebar-nav > li > a:hover {
  background: rgba(159, 71, 45, 0.12);
  color: #96432a;
}

.up-nav .userSidebar-nav > li ul {
  margin: 6px 0 0 10px;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 4px;
}

.up-nav .userSidebar-nav > li ul a {
  text-decoration: none;
  color: #5d7088;
  font-size: 13px;
  padding: 4px 6px;
  border-radius: 8px;
  display: inline-block;
}

.up-nav .userSidebar-nav > li ul a:hover,
.up-nav .userSidebar-nav > li ul .active-li a {
  color: #96432a;
  background: #f3e4df;
}

.up-main {
  grid-area: main;
  display: grid;
  gap: 16px;
}

.up-hero {
  border: 1px solid #d9e2ee;
  border-radius: 16px;
  padding: 22px;
  background: linear-gradient(180deg, #f4f8fd 0%, #edf4fc 100%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.up-hero small {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-weight: 700;
  color: #8f3a27;
  font-size: 11px;
}

.up-hero h1 {
  margin: 6px 0 6px;
  font-family: "Playfair Display", Georgia, serif;
  color: #15253a;
  font-size: clamp(34px, 3vw, 52px);
}

.up-hero p {
  margin: 0;
  color: #5d7089;
  max-width: 560px;
}

.up-growth {
  margin-top: 18px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
}

.up-growth small {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: #8f3a27;
  font-size: 11px;
  font-weight: 700;
}

.up-growth h2 {
  margin: 6px 0 0;
  font-family: "Playfair Display", Georgia, serif;
  color: #15253a;
  font-size: clamp(30px, 2.6vw, 42px);
}

.up-growth-quote {
  margin: 0;
  color: #6a7d95;
  font-style: italic;
  max-width: 360px;
}

.up-growth-grid {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.up-growth-card {
  border: 1px solid #d9e2ee;
  border-radius: 14px;
  background: #f8fbff;
  padding: 16px;
  text-align: center;
  display: grid;
  gap: 8px;
  align-content: start;
}

.up-growth-card strong {
  font-size: 26px;
  color: #16283e;
  font-family: "Playfair Display", Georgia, serif;
}

.up-growth-card span {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 10px;
  color: #6c7f97;
  font-weight: 700;
}

.up-growth-card-accent {
  border-color: #e2b9aa;
  color: #a1492f;
}

.up-growth-card-accent strong {
  color: #a1492f;
}

.up-growth-icon {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: #fff7f4;
  border: 1px solid #f1d9cf;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  color: #c2684d;
}

.up-growth-icon svg {
  width: 20px;
  height: 20px;
  display: block;
}

.up-search {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #eaf1fa;
  border: 1px solid #d7e0ec;
  border-radius: 999px;
  padding: 8px 14px;
  min-width: 260px;
}

.up-search svg {
  width: 16px;
  height: 16px;
  color: #6a7d95;
}

.up-search input {
  border: 0;
  background: transparent;
  outline: none;
  color: #2b3d55;
  font-size: 14px;
}

.up-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.up-stats article {
  border: 1px solid #d9e2ee;
  border-radius: 14px;
  background: #f8fbff;
  padding: 16px;
}

.up-stats small {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 10px;
  color: #6b7d95;
  font-weight: 700;
}

.up-stats strong {
  display: block;
  margin-top: 8px;
  font-size: 26px;
  color: #15253a;
  font-family: "Playfair Display", Georgia, serif;
}

.up-charts {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.up-chart-card {
  border: 1px solid #d9e2ee;
  border-radius: 16px;
  background: #f8fbff;
  padding: 16px;
}

.up-chart-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.up-chart-head h2 {
  margin: 0;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 26px;
  color: #1a2d45;
}

.up-chart-head span {
  color: #6a7d95;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
}

.up-bar-chart {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  align-items: end;
  min-height: 180px;
}

.up-bar {
  display: grid;
  gap: 8px;
  align-items: end;
  justify-items: center;
  height: 100%;
}

.up-bar-fill {
  width: 100%;
  border-radius: 10px;
  background: linear-gradient(180deg, #c56a46 0%, #a2472f 100%);
  box-shadow: 0 12px 22px rgba(162, 71, 47, 0.22);
  min-height: 8px;
}

.up-bar span {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #6b7d95;
  font-weight: 700;
}

.up-bar-chart-compact {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  min-height: auto;
}

.up-bar-row {
  display: grid;
  grid-template-columns: 120px 1fr 40px;
  gap: 10px;
  align-items: center;
}

.up-bar-row span {
  font-size: 12px;
  color: #556a87;
}

.up-bar-row strong {
  font-size: 12px;
  color: #1f3148;
  text-align: right;
}

.up-bar-track {
  height: 10px;
  border-radius: 999px;
  background: #e3ecf6;
  overflow: hidden;
}

.up-bar-track .up-bar-fill {
  height: 100%;
  border-radius: 999px;
  min-height: 100%;
}

.up-panel {
  border: 1px solid #d9e2ee;
  border-radius: 16px;
  background: #f8fbff;
  padding: 16px;
}

.up-panel .up-table-row {
  grid-template-columns: 80px 1.2fr 1fr 1fr 1fr 60px;
}

@media (max-width: 900px) {
  .up-panel .up-table-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.up-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.up-panel-head h2 {
  margin: 0;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 30px;
  color: #1a2d45;
}

.up-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: end;
}

.up-filter label {
  display: grid;
  gap: 6px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #6a7d95;
  font-weight: 700;
}

.up-filter input,
.up-filter select {
  border: 1px solid #d7e0ec;
  background: #edf4fc;
  border-radius: 10px;
  padding: 6px 10px;
}

.up-filter button {
  border: 0;
  background: #c45f3e;
  color: #fff;
  border-radius: 10px;
  padding: 8px 12px;
  font-weight: 700;
  cursor: pointer;
}

.up-filter .up-export {
  background: #e8eff8;
  color: #32485f;
  border: 1px solid #d1dbe8;
}

.up-table {
  margin-top: 12px;
  display: grid;
  gap: 8px;
}

.up-table-row {
  display: grid;
  grid-template-columns: 80px 1.3fr 1fr 1fr 1fr 60px;
  gap: 8px;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid #e1e8f2;
  border-radius: 12px;
  background: #ffffff;
  font-size: 13px;
}

.up-table-head-row {
  background: #eef3fa;
  font-weight: 700;
  color: #42566f;
}

.up-badge {
  padding: 4px 10px;
  border-radius: 999px;
  background: #e7edf6;
  color: #2f425a;
  font-size: 12px;
  font-weight: 700;
  display: inline-flex;
}

.up-badge-info {
  background: #e0efff;
  color: #245d8f;
}

.up-badge-warn {
  background: #fff1dd;
  color: #8c5a1c;
}

.up-action {
  /*width: 34px;*/
  height: 34px;
  border-radius: 10px;
  border: 1px solid #d7e0ec;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #925038;
}

.up-action svg {
  width: 16px;
  height: 16px;
  display: block;
}

.up-empty {
  margin-top: 12px;
  border: 1px dashed #d8e2ef;
  border-radius: 12px;
  padding: 18px;
  text-align: center;
  color: #6c7f97;
}

.up-pagination {
  margin-top: 16px;
  display: flex;
  justify-content: center;
}

.up-books-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.up-book-card {
  border: 1px solid #d8e2ef;
  border-radius: 16px;
  background: #f8fbff;
  overflow: hidden;
  display: grid;
  gap: 10px;
}

.up-book-cover {
  aspect-ratio: 2 / 3;
  display: block;
  overflow: hidden;
}

.up-book-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.up-book-card:hover .up-book-cover img {
  transform: scale(1.04);
}

.up-book-body {
  padding: 12px;
}

.up-book-tag {
  display: inline-flex;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #a3472d;
  font-weight: 700;
}

.up-book-body h3 {
  margin: 6px 0 0;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 24px;
  color: #1f324a;
}

.up-book-body p {
  margin: 6px 0 0;
  color: #5f738e;
}

.up-book-meta {
  margin-top: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #6a7d95;
  font-size: 12px;
}

.up-book-meta strong {
  color: #1f324a;
}

.up-book-footer {
  margin-top: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.up-book-footer strong {
  color: #9f432a;
  font-size: 18px;
}

.up-book-action {
  text-decoration: none;
  font-size: 12px;
  font-weight: 700;
  color: #1e2f47;
  border: 1px solid #d8e2ef;
  border-radius: 10px;
  padding: 6px 10px;
}

@media (max-width: 1100px) {
  .up-shell {
    grid-template-columns: 1fr;
    grid-template-areas:
      "sidebar"
      "main";
  }

  .up-sidebar {
    position: relative;
    top: 0;
  }

  .up-books-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .up-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .up-growth {
    flex-direction: column;
    align-items: flex-start;
  }

  .up-growth-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .up-charts {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .up-page {
    padding-top: 16px;
  }

  .up-books-grid {
    grid-template-columns: 1fr;
  }

  .up-stats {
    grid-template-columns: 1fr;
  }

  .up-growth-grid {
    grid-template-columns: 1fr;
  }

  .up-table-row {
    grid-template-columns: 1fr;
  }

  .up-panel-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .up-bar-chart {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    min-height: 150px;
  }

  .up-bar-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }
}

html[dir="rtl"] .up-page,
html[dir="rtl"] .up-sidebar,
html[dir="rtl"] .up-main {
  direction: rtl;
}

@media (min-width: 1101px) {
  html[dir="rtl"] .up-shell {
    grid-template-columns: minmax(0, 1fr) 260px;
    grid-template-areas: "main sidebar";
  }
}

html[dir="rtl"] .up-nav .userSidebar-nav > li > a,
html[dir="rtl"] .up-profile,
html[dir="rtl"] .up-hero,
html[dir="rtl"] .up-panel,
html[dir="rtl"] .up-book-body {
  text-align: right;
}

.up-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.up-action {
  text-decoration: none;
  font-size: 12px;
  font-weight: 700;
  color: #1e2f47;
  border: 1px solid #d8e2ef;
  border-radius: 10px;
  padding: 6px 10px;
  background: #f8fbff;
}

.up-action-danger {
  border-color: #e8c1b4;
  color: #9b3a27;
  background: #fff1ec;
}

.up-action-alt {
  border-color: #c9d9ee;
  color: #2c4c73;
  background: #eaf2fb;
}

.up-hero-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.up-form {
  display: grid;
  gap: 12px;
}

.up-form label {
  display: grid;
  gap: 6px;
}

.up-form label > span {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 11px;
  color: #6a7d95;
  font-weight: 700;
}

.up-form input[type="text"],
.up-form input[type="file"] {
  border: 1px solid #d7e0ec;
  background: #edf4fc;
  border-radius: 10px;
  padding: 10px 12px;
}

.up-avatar-preview {
  width: 120px;
  height: 120px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid #d7e0ec;
  background: #e4edf9;
}

.up-avatar-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.up-inline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.up-inline input[type="checkbox"] {
  width: 18px;
  height: 18px;
}

.up-details-grid {
  margin-bottom: 14px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.up-details-grid > div {
  border: 1px solid #e1e8f2;
  border-radius: 12px;
  background: #ffffff;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.up-details-grid span {
  color: #6a7d95;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
}

.up-details-grid strong {
  color: #1f324a;
}

.up-order-review table {
  width: 100%;
  border-collapse: collapse;
}

.up-order-review table th,
.up-order-review table td {
  border-bottom: 1px solid #e1e8f2;
  padding: 10px 8px;
  font-size: 13px;
}

.up-order-review table th {
  text-align: left;
  color: #4b5f78;
}

.up-order-review .btn,
.up-order-review .form-control,
.up-order-review textarea,
.up-order-review select {
  border-radius: 10px;
}

.up-order-review .form-control,
.up-order-review select,
.up-order-review textarea {
  border: 1px solid #d7e0ec;
  background: #edf4fc;
  color: #1f324a;
  padding: 8px 10px;
  outline: none;
}

.up-order-review .btn {
  border: 0;
  background: #c45f3e;
  color: #fff;
  font-weight: 700;
  padding: 8px 12px;
  cursor: pointer;
}

.up-order-review .btn.btn-success {
  background: #2f7b55;
}

.up-order-review .btn.btn-danger {
  background: #b42318;
}

.up-order-review .btn.btn-primary {
  background: #1f5f9c;
}

.up-order-review .quantityInput {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) 30px;
  border: 1px solid #d0dceb;
  border-radius: 10px;
  overflow: hidden;
  background: #edf4fc;
}

.up-order-review .quantityInput button {
  border: 0;
  background: #e4edf9;
  font-weight: 700;
  cursor: pointer;
  color:black;
}

.up-order-review .cart-note {
  min-height: 70px;
}
.pagination {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.pagination .page-item {
  display: inline-flex;
}

.pagination .page-link {
  min-width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid #d7e0ec;
  background: #f8fbff;
  color: #2b3d55;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  text-decoration: none;
}

.pagination .page-item.active .page-link {
  background: #c45f3e;
  border-color: #c45f3e;
  color: #fff;
}

.pagination .page-link svg {
  width: 14px;
  height: 14px;
  display: block;
}

.pagination .page-item.disabled .page-link {
  opacity: 0.5;
}

/* Keep pagination readable and ordered even on RTL pages. */
html[dir="rtl"] .pagination {
  direction: ltr;
}

.material-symbols-outlined {
  font-variation-settings: "FILL" 0, "wght" 400, "GRAD" 0, "opsz" 24;
  display: inline-block;
  line-height: 1;
}

.tz-icon {
  width: 18px;
  height: 18px;
  display: inline-block;
  background-color: currentColor;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
  -webkit-mask-size: contain;
  mask-repeat: no-repeat;
  mask-position: center;
  mask-size: contain;
}

.tz-icon-book {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M5 4.5c0-1 .8-1.5 1.8-1.5H19a1 1 0 0 1 1 1v15.5a1 1 0 0 1-1 1H7c-1.7 0-3-.8-3-2V4.5Zm2 .5c-.4 0-.8.2-.8.6v12.8c0 .4.4.6.8.6h11V5H7Z'/%3E%3Cpath d='M8 7h8v2H8V7Zm0 4h8v2H8v-2Z'/%3E%3C/svg%3E");
          mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M5 4.5c0-1 .8-1.5 1.8-1.5H19a1 1 0 0 1 1 1v15.5a1 1 0 0 1-1 1H7c-1.7 0-3-.8-3-2V4.5Zm2 .5c-.4 0-.8.2-.8.6v12.8c0 .4.4.6.8.6h11V5H7Z'/%3E%3Cpath d='M8 7h8v2H8V7Zm0 4h8v2H8v-2Z'/%3E%3C/svg%3E");
}

.tz-icon-arrow {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M5 12h12.2l-3.4-3.4 1.4-1.4 5.8 5.8-5.8 5.8-1.4-1.4 3.4-3.4H5v-2Z'/%3E%3C/svg%3E");
          mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M5 12h12.2l-3.4-3.4 1.4-1.4 5.8 5.8-5.8 5.8-1.4-1.4 3.4-3.4H5v-2Z'/%3E%3C/svg%3E");
}

.tz-icon-diagonal {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M6 18 18 6h-7V4h10v10h-2V7.4L7.4 18H6Z'/%3E%3C/svg%3E");
          mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M6 18 18 6h-7V4h10v10h-2V7.4L7.4 18H6Z'/%3E%3C/svg%3E");
}

.category-page {
  padding: 72px 0 90px;
  position: relative;
  background: #f7f9ff;
}

.category-page::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.02;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
  pointer-events: none;
}

.category-page > .site-container {
  position: relative;
  z-index: 1;
}

.category-breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 12px;
  color: #6b7f97;
  margin-bottom: 24px;
}

.category-breadcrumbs a {
  color: inherit;
  text-decoration: none;
}

.category-breadcrumbs a:hover {
  color: #c45f3e;
}

.category-hero {
  max-width: 720px;
  margin-bottom: 42px;
}

.category-hero small {
  display: block;
  font-size: 16px;
  text-transform: uppercase;
  /*letter-spacing: 0.18em;*/
  color: #c45f3e;
  font-weight: 700;
  margin-bottom: 12px;
}

.category-hero h1 {
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(32px, 4vw, 56px);
  margin: 0 0 14px;
  color: #102439;
}

.category-hero p {
  margin: 0;
  color: #5d708a;
  font-size: 16px;
  line-height: 1.8;
}

.category-section {
  margin-top: 44px;
}

.category-section-header {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: flex-end;
  padding-bottom: 12px;
  margin-bottom: 24px;
  border-bottom: 1px solid rgba(219, 193, 186, 0.35);
}

.category-section-header h2 {
  margin: 6px 0 0;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(24px, 3vw, 36px);
  color: #102439;
}

.category-section-header p {
  margin: 0;
  color: #6a7d95;
  font-size: 14px;
  max-width: 340px;
}

.category-volume {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #c45f3e;
  font-weight: 700;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}

.category-card {
  background: #ffffff;
  border-radius: 18px;
  padding: 22px;
  box-shadow: 0 18px 40px rgba(9, 29, 46, 0.06);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.category-card-icon {
  font-size: 28px;
  color: #c45f3e;
}

.category-card h3 {
  margin: 0;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 22px;
  color: #102439;
}

.category-card p {
  margin: 0;
  color: #667c95;
  font-size: 13px;
  line-height: 1.6;
}

.category-card-action {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  color: #c45f3e;
  text-decoration: none;
}

.category-card-action span {
  font-size: 16px;
}

.category-bento {
  display: block;
}

.category-bento::after {
  content: "";
  display: block;
  clear: both;
}

.category-bento-feature {
  position: relative;
  border-radius: 22px;
  padding: 30px;
  background: #b55a40;
  color: #fff;
  text-decoration: none;
  overflow: hidden;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.category-bento-feature-content h3 {
  margin: 0 0 12px;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 30px;
}

.category-bento-feature-content p {
  margin: 0;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.7;
}

.category-bento-feature--stats .category-bento-feature-content {
  display: grid;
  gap: 12px;
}

.category-bento-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 6px;
}

.category-bento-metrics div {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 16px;
  padding: 12px 12px;
  display: grid;
  gap: 6px;
}

.category-bento-metrics span {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.78);
}

.category-bento-metrics strong {
  font-size: 22px;
  color: rgba(255, 255, 255, 0.98);
}

.category-bento-chart {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  padding: 12px 12px 8px;
}

.category-bento-chart svg {
  width: 100%;
  height: auto;
  display: block;
}

.category-inline-stats {
  display: grid;
  grid-template-columns: 170px 170px minmax(0, 1fr);
  gap: 14px;
  align-items: stretch;
  margin: 14px 0 18px;
}

.category-inline-stats--rich {
  display: block;
  margin: 14px 0 18px;
}

.category-inline-stats--rich .category-insights {
  border: 1px solid rgba(16, 36, 57, 0.08);
  border-radius: 18px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(10px);
  box-shadow: 0 18px 40px rgba(9, 29, 46, 0.06);
}

.category-inline-rich-top {
  margin-top: 6px;
}

.category-inline-rich-mid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 18px;
  align-items: start;
  margin-top: 14px;
}

.category-inline-rich-left {
  display: grid;
  gap: 18px;
}

.category-inline-rich-mid .category-year-donuts--donut {
  margin-top: 0;
  justify-self: end;
}

.category-inline-stat {
  border: 1px solid rgba(16, 36, 57, 0.1);
  border-radius: 16px;
  padding: 12px 14px;
  display: grid;
  gap: 6px;
  background: transparent;
}

.category-inline-stat span {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-weight: 800;
  color: rgba(16, 36, 57, 0.62);
}

.category-inline-stat strong {
  font-size: 22px;
  color: #102439;
}

.category-inline-chart {
  border: 1px solid rgba(16, 36, 57, 0.1);
  border-radius: 18px;
  padding: 12px 12px 8px;
  background: transparent;
  overflow: hidden;
}

.category-inline-chart svg {
  width: 100%;
  height: auto;
  display: block;
}

.category-bento-cta {
  display: inline-flex;
  margin-top: 24px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 11px;
}

.category-bento-feature-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, rgba(255, 255, 255, 0.35), transparent 55%);
  opacity: 0.7;
}

.category-bento-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  grid-auto-flow: dense;
}

.category-bento-side {
  grid-column: 1 / span 2;
  grid-row: auto;
  width: auto;
}

html[dir="rtl"] .category-bento-side {
  grid-column: 1 / span 2;
}

.category-bento-card {
  background: #eef4ff;
  border-radius: 18px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: #102439;
  text-decoration: none;
  min-width: 160px;
  min-height: 110px;
  box-shadow: 0 10px 30px rgba(9, 29, 46, 0.06);
}
.category-bento-cardlist {
    background: #e6e9ed;
    border-radius: 18px;
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    color: #102439;
    text-decoration: none;
    min-width: 160px;
    min-height: 110px;
    box-shadow: 0 10px 30px rgba(9, 29, 46, 0.06);
}

.category-bento-cardlist--wide {
  min-width: 0;
  min-height: 76px;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.category-bento-cardlist--wide .category-card-title {
  flex: 1 1 auto;
}

html[dir="rtl"] .category-bento-cardlist--wide {
  flex-direction: row-reverse;
}

.category-bento-list {
  grid-column: 3 / -1;
  grid-row: auto;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  align-content: start;
}

html[dir="rtl"] .category-bento-list {
  grid-column: 3 / -1;
}

.category-bento-extra {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.category-bento-card--feature {
  background: #ffffff;
  border: 1px solid rgba(16, 36, 57, 0.1);
  box-shadow: 0 14px 34px rgba(9, 29, 46, 0.08);
  min-height: 160px;
  gap: 10px;
  min-width: 0;
}

.category-bento-card--feature .category-card-title {
  font-size: 22px;
}

.category-insights {
  margin-top: 10px;
  display: grid;
  gap: 12px;
}

.category-insights-block {
  display: grid;
  gap: 8px;
}

.category-insights-block:first-child {
}
.category-insights-block h4 {
  margin: 0;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(16, 36, 57, 0.78);
}

html[dir="rtl"] .category-insights-block h4 {
  letter-spacing: 0;
  text-transform: none;
}

.category-insights-block p {
  margin: 0;
  color: #5d708a;
  font-size: 12px;
  line-height: 1.7;
}

.category-insights-kpis {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.category-insights-kpis > div {
  border: 1px solid rgba(16, 36, 57, 0.08);
  background: rgba(238, 244, 255, 0.65);
  border-radius: 14px;
  padding: 10px 10px;
  display: grid;
  gap: 6px;
}

.category-insights-kpis span {
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(16, 36, 57, 0.62);
}

html[dir="rtl"] .category-insights-kpis span {
  letter-spacing: 0;
  text-transform: none;
}

.category-insights-kpis strong {
  font-size: 16px;
  color: #102439;
}

.category-insights-sep {
  opacity: 0.5;
  padding: 0 6px;
}

.category-inline-chart--mini {
  margin: 0;
  width: 45%;
    float: left;
}

.category-inline-chart--mini text {
  font-size: 10px;
}

.category-insights-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}

.category-insights-list li {
  font-size: 12px;
  color: #5d708a;
  line-height: 1.7;
  padding-left: 12px;
  position: relative;
}

html[dir="rtl"] .category-insights-list li {
  padding-left: 0;
  padding-right: 12px;
}

.category-insights-list li::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: rgba(196, 95, 62, 0.75);
  position: absolute;
  left: 0;
  top: 8px;
}

html[dir="rtl"] .category-insights-list li::before {
  left: auto;
  right: 0;
}

.category-insights-list strong {
  color: #102439;
  font-weight: 900;
}

.category-mapping {
  display: grid;
  gap: 8px;
  width: 80%;
}

.category-map-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 120px 44px;
  gap: 10px;
  align-items: center;
}

.category-map-label {
  font-size: 12px;
  color: #102439;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.category-map-pct {
  text-align: right;
  font-size: 12px;
  color: rgba(16, 36, 57, 0.78);
  font-weight: 800;
}

html[dir="rtl"] .category-map-pct {
  text-align: left;
}

.category-mapping--donut {
  grid-template-columns: 160px minmax(0, 1fr) 148px;
  gap: 14px;
  align-items: center;
}

.category-mapping--donut .category-legend-pct {
  display: none;
}

.category-mini-bars {
  display: grid;
  gap: 10px;
}

.category-mini-bar {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
}

.category-mini-bar-num {
  font-size: 12px;
  font-weight: 900;
  color: rgba(16, 36, 57, 0.72);
  text-align: left;
}

html[dir="rtl"] .category-mini-bar-num {
  text-align: right;
}

.category-mini-bar-track {
  height: 8px;
  border-radius: 999px;
  background: rgba(16, 36, 57, 0.08);
  overflow: hidden;
  position: relative;
}

.category-mini-bar-fill {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(196, 95, 62, 0.88), rgba(196, 95, 62, 0.5));
}

.category-mapping-chart {
  width: 148px;
  height: 148px;
  display: grid;
  place-items: center;
}

.category-mapping-svg {
  width: 148px;
  height: 148px;
  display: block;
}

.category-mapping-svg circle {
  fill: none;
}

.category-mapping-pct-label {
  font-size: 10px;
  font-weight: 900;
  fill: rgba(16, 36, 57, 0.72);
}

.category-mapping--donut .category-mapping-segments {
  user-select: none;
}

.category-mapping-seg {
  stroke-width: 18;
  stroke-linecap: butt;
}

.category-mapping-hole {
  fill: rgba(255, 255, 255, 0.9);
  stroke: rgba(16, 36, 57, 0.06);
  stroke-width: 1;
}

.category-mapping-legend {
  display: grid;
  gap: 8px;
}

.category-legend-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 12px;
  color: rgba(16, 36, 57, 0.9);
}

.category-legend-left {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.category-legend-label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.category-legend-pct {
  font-weight: 900;
  color: rgba(16, 36, 57, 0.72);
}

.category-legend-swatch {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  flex: 0 0 auto;
  box-shadow: 0 0 0 3px rgba(16, 36, 57, 0.06);
}

/* Segment palette (loops every 8 items). Use explicit colors (more reliable in SVG). */
.category-mapping-seg.seg-0, .category-donut-seg.seg-0 { stroke: #66a8ff; }
.category-mapping-seg.seg-1, .category-donut-seg.seg-1 { stroke: #7bdf7a; }
.category-mapping-seg.seg-2, .category-donut-seg.seg-2 { stroke: #ffd08a; }
.category-mapping-seg.seg-3, .category-donut-seg.seg-3 { stroke: #b7b2ff; }
.category-mapping-seg.seg-4, .category-donut-seg.seg-4 { stroke: #ff8f8f; }
.category-mapping-seg.seg-5, .category-donut-seg.seg-5 { stroke: #6dd6e6; }
.category-mapping-seg.seg-6, .category-donut-seg.seg-6 { stroke: #ffb36b; }
.category-mapping-seg.seg-7, .category-donut-seg.seg-7 { stroke: #9bd1ff; }

.category-legend-swatch.seg-0 { background: #66a8ff; }
.category-legend-swatch.seg-1 { background: #7bdf7a; }
.category-legend-swatch.seg-2 { background: #ffd08a; }
.category-legend-swatch.seg-3 { background: #b7b2ff; }
.category-legend-swatch.seg-4 { background: #ff8f8f; }
.category-legend-swatch.seg-5 { background: #6dd6e6; }
.category-legend-swatch.seg-6 { background: #ffb36b; }
.category-legend-swatch.seg-7 { background: #9bd1ff; }

.category-year-donuts--donut {
  display: flex;
  /* Keep donut on the right and the legend on the left even in RTL pages. */
  direction: ltr;
  grid-template-columns: minmax(0, 1fr) 148px;
  gap: 14px;
  align-items: start;
  margin-top: 10px;
}

.category-year-donuts--donut .category-donut-legend {
  grid-column: 1;
}

.category-year-donuts--donut .category-donut-chart {
  grid-column: 2;
}

.category-year-counts {
  display: grid;
  gap: 14px;
  padding-top: 10px;
}

.category-year-count {
  font-size: 13px;
  font-weight: 800;
  color: rgba(16, 36, 57, 0.7);
  text-align: left;
}

.category-year-legend {
  display: grid;
  gap: 14px;
  justify-items: end;
  align-content: start;
  padding-top: 10px;
}

html[dir="rtl"] .category-year-legend {
  direction: rtl;
}

.category-year-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: rgba(16, 36, 57, 0.85);
}

.category-year-legend-label {
  font-weight: 800;
}

.category-donut-legend {
  display: grid;
  gap: 8px;
  justify-items: end;
  align-content: start;
  padding-top: 10px;
}

html[dir="rtl"] .category-donut-legend {
  direction: rtl;
}

.category-donut-chart {
  width: 148px;
  height: 148px;
  display: grid;
  place-items: center;
}

.category-donut-svg {
  width: 160px;
  height: 148px;
  display: block;
}

.category-donut-svg circle {
  fill: none;
}

.category-donut-hole {
  fill: rgba(255, 255, 255, 0.9);
  stroke: rgba(16, 36, 57, 0.06);
  stroke-width: 1;
}

.category-donut-seg {
  stroke-width: 18;
  stroke-linecap: butt;
}

.category-donut-pct-label {
  font-size: 10px;
  font-weight: 900;
  fill: rgba(16, 36, 57, 0.72);
}

.category-map-bar {
  height: 10px;
  border-radius: 999px;
  background: rgba(16, 36, 57, 0.08);
  position: relative;
  overflow: hidden;
}

.category-map-fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(196, 95, 62, 0.88), rgba(196, 95, 62, 0.5));
}

html[dir="rtl"] .category-map-fill {
  inset: 0 0 0 auto;
}

.category-insights-reco {
  border: 1px solid rgba(196, 95, 62, 0.18);
  background: rgba(196, 95, 62, 0.06);
  border-radius: 16px;
  padding: 12px 12px;
}

.category-insights-reco-text {
  color: rgba(16, 36, 57, 0.82);
  font-size: 12px;
  line-height: 1.75;
}

.category-map-fill.pct-0 { width: 0%; }
.category-map-fill.pct-5 { width: 5%; }
.category-map-fill.pct-10 { width: 10%; }
.category-map-fill.pct-15 { width: 15%; }
.category-map-fill.pct-20 { width: 20%; }
.category-map-fill.pct-25 { width: 25%; }
.category-map-fill.pct-30 { width: 30%; }
.category-map-fill.pct-35 { width: 35%; }
.category-map-fill.pct-40 { width: 40%; }
.category-map-fill.pct-45 { width: 45%; }
.category-map-fill.pct-50 { width: 50%; }
.category-map-fill.pct-55 { width: 55%; }
.category-map-fill.pct-60 { width: 60%; }
.category-map-fill.pct-65 { width: 65%; }
.category-map-fill.pct-70 { width: 70%; }
.category-map-fill.pct-75 { width: 75%; }
.category-map-fill.pct-80 { width: 80%; }
.category-map-fill.pct-85 { width: 85%; }
.category-map-fill.pct-90 { width: 90%; }
.category-map-fill.pct-95 { width: 95%; }
.category-map-fill.pct-100 { width: 100%; }

.category-mini-bar-fill.pct-0 { width: 0%; }
.category-mini-bar-fill.pct-5 { width: 5%; }
.category-mini-bar-fill.pct-10 { width: 10%; }
.category-mini-bar-fill.pct-15 { width: 15%; }
.category-mini-bar-fill.pct-20 { width: 20%; }
.category-mini-bar-fill.pct-25 { width: 25%; }
.category-mini-bar-fill.pct-30 { width: 30%; }
.category-mini-bar-fill.pct-35 { width: 35%; }
.category-mini-bar-fill.pct-40 { width: 40%; }
.category-mini-bar-fill.pct-45 { width: 45%; }
.category-mini-bar-fill.pct-50 { width: 50%; }
.category-mini-bar-fill.pct-55 { width: 55%; }
.category-mini-bar-fill.pct-60 { width: 60%; }
.category-mini-bar-fill.pct-65 { width: 65%; }
.category-mini-bar-fill.pct-70 { width: 70%; }
.category-mini-bar-fill.pct-75 { width: 75%; }
.category-mini-bar-fill.pct-80 { width: 80%; }
.category-mini-bar-fill.pct-85 { width: 85%; }
.category-mini-bar-fill.pct-90 { width: 90%; }
.category-mini-bar-fill.pct-95 { width: 95%; }
.category-mini-bar-fill.pct-100 { width: 100%; }

.category-bento-feature-caption {
  font-size: 12px;
  color: #667c95;
  line-height: 1.6;
}

.category-bento-card--feature .category-bento-cta {
  margin-top: auto;
  color: #c45f3e;
}

.category-inline-stats--compact {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 8px 0 0;
}

.category-inline-stats--compact .category-inline-stat {
  padding: 10px 12px;
  border-color: rgba(16, 36, 57, 0.08);
  border-radius: 14px;
}

.category-inline-stats--compact .category-inline-stat strong {
  font-size: 18px;
}

.category-inline-stats--compact .category-inline-chart {
  grid-column: 1 / -1;
  padding: 10px 10px 6px;
  border-color: rgba(16, 36, 57, 0.08);
}

.category-bento-card .category-card-title  , .category-bento-cardlist .category-card-title{
  font-family: "Playfair Display", Georgia, serif;
  font-size: 18px;
}

.category-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}

.category-list-group {
  display: grid;
  gap: 10px;
}

.category-list-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  border-radius: 14px;
  background: #eef3fb;
  color: #2b3d55;
  text-decoration: none;
  font-size: 14px;
  transition: transform 0.2s ease, background 0.2s ease;
}

.category-list-item:hover {
  background: #e1ecfb;
  transform: translateY(-1px);
}

.category-list-item span.material-symbols-outlined {
  font-size: 16px;
  color: #c45f3e;
}

.category-stats {
  margin: 26px 0 36px;
}

.category-stats-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 520px);
  gap: 18px;
  align-items: start;
}

.category-stats-copy small {
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 11px;
  font-weight: 800;
  color: #c45f3e;
  margin-bottom: 10px;
}

.category-stats-copy h2 {
  margin: 0 0 10px;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(22px, 2.2vw, 34px);
  color: #102439;
}

.category-stats-copy p {
  margin: 0 0 14px;
  color: #5d708a;
  line-height: 1.75;
  max-width: 520px;
}

.category-stats-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  max-height: 144px;
  overflow: auto;
  padding-right: 6px;
  scrollbar-width: thin;
  scrollbar-color: rgba(196, 95, 62, 0.35) transparent;
}

html[dir="rtl"] .category-stats-chips {
  padding-right: 0;
  padding-left: 6px;
}

.category-stats-chips::-webkit-scrollbar {
  width: 6px;
}

.category-stats-chips::-webkit-scrollbar-thumb {
  background: rgba(196, 95, 62, 0.28);
  border-radius: 12px;
}

.category-stats-chips::-webkit-scrollbar-track {
  background: transparent;
}

.category-stats-chip {
  padding: 8px 14px;
  border-radius: 999px;
  background: #eef3fb;
  border: 1px solid rgba(196, 95, 62, 0.12);
  color: #2b3d55;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 800;
  text-decoration: none;
  transition: transform 0.2s ease, background 0.2s ease;
}

.category-stats-chip:hover {
  background: #e1ecfb;
  transform: translateY(-1px);
}

.category-stats-chip.is-active {
  background: #c45f3e;
  color: #fff;
  border-color: #c45f3e;
}

.publisher-page {
  padding: 70px 0 90px;
  background: #f7f9ff;
}

.publisher-hero {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 32px;
}

.publisher-hero-copy {
  max-width: 640px;
}

.publisher-hero-copy span {
  display: block;
  text-transform: uppercase;
  /*letter-spacing: 0.2em;*/
  font-size: 16px;
  font-weight: 700;
  color: #c45f3e;
  margin-bottom: 12px;
}

.publisher-hero-copy h1 {
  margin: 0 0 12px;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(30px, 4vw, 54px);
  color: #102439;
}

.publisher-hero-copy p {
  margin: 0;
  font-size: 16px;
  color: #5d708a;
  line-height: 1.8;
}

.publisher-hero-actions {
  display: grid;
  gap: 16px;
  align-items: flex-start;
}

.publisher-search {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  background: #eef3fb;
  border-radius: 999px;
  padding: 8px 16px;
  min-width: 240px;
  border: 1px solid rgba(196, 95, 62, 0.12);
}

.publisher-search input {
  border: 0;
  background: transparent;
  outline: none;
  flex: 1;
  color: #2b3d55;
  font-size: 14px;
}

.publisher-search button {
  border: 0;
  background: transparent;
  color: #6c7f95;
  cursor: pointer;
  padding: 0;
  width: 24px;
  height: 24px;
}

.publisher-search button svg {
  width: 18px;
  height: 18px;
}

.publisher-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  max-height: 112px;
  overflow: auto;
  padding-right: 6px;
  scrollbar-width: thin;
  scrollbar-color: rgba(196, 95, 62, 0.35) transparent;
}

html[dir="rtl"] .publisher-chips {
  padding-right: 0;
  padding-left: 6px;
}

.publisher-chips::-webkit-scrollbar {
  width: 6px;
}

.publisher-chips::-webkit-scrollbar-thumb {
  background: rgba(196, 95, 62, 0.28);
  border-radius: 12px;
}

.publisher-chips::-webkit-scrollbar-track {
  background: transparent;
}

.publisher-chip {
  padding: 8px 14px;
  border-radius: 999px;
  background: #eef3fb;
  border: 1px solid rgba(196, 95, 62, 0.12);
  color: #2b3d55;
  font-size: 12px;
  text-transform: uppercase;
  /*letter-spacing: 0.12em;*/
  font-weight: 700;
  text-decoration: none;
}

.publisher-chip.is-active {
  background: #c45f3e;
  color: #fff;
  border-color: #c45f3e;
}

.publisher-country-card {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 22px 45px rgba(9, 29, 46, 0.08);
  border: 1px solid rgba(196, 95, 62, 0.12);
  padding: 22px;
  display: grid;
  gap: 16px;
}

.publisher-country-card::before {
  content: "";
  position: absolute;
  inset: 0;
 /* background-image: url("../img/tzpattern.jpg");*/
  background-size: 520px auto;
  background-position: center;
  opacity: 0.08;
  pointer-events: none;
}

.publisher-country-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 18%, rgba(196, 95, 62, 0.08), transparent 55%),
    radial-gradient(circle at 80% 74%, rgba(16, 36, 57, 0.08), transparent 58%);
  pointer-events: none;
}

.publisher-country-card > * {
  position: relative;
  z-index: 1;
}

.publisher-country-card-head {
  position: relative;
  display: block;
  padding-inline-end: 74px;
}

.publisher-country-flag {
  width: 54px;
  height: 54px;
  border-radius: 18px;
  background: #eef3fb;
  border: 1px solid rgba(16, 36, 57, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  box-shadow: 0 10px 20px rgba(16, 36, 57, 0.06);
  position: absolute;
  top: 0;
  inset-inline-end: 0;
}

.publisher-country-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-weight: 800;
  color: #c45f3e;
}

.publisher-country-title h2 {
  margin: 6px 0 8px;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 24px;
  color: #102439;
  line-height: 1.15;
}

.publisher-country-title p {
  margin: 0;
  color: #5d708a;
  line-height: 1.6;
  font-size: 13px;
}

.publisher-country-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.publisher-country-metric {
  background: rgba(238, 243, 251, 0.76);
  border: 1px solid rgba(16, 36, 57, 0.08);
  border-radius: 16px;
  padding: 14px 14px;
  display: grid;
  gap: 6px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.55);
}

.publisher-country-metric span {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: rgba(16, 36, 57, 0.68);
  font-weight: 800;
}

.publisher-country-metric strong {
  font-size: 22px;
  color: #102439;
}

.publisher-country-chart {
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(16, 36, 57, 0.08);
  border-radius: 18px;
  padding: 14px 14px 10px;
}

.publisher-country-chart-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.publisher-country-chart-head span:first-child {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: rgba(16, 36, 57, 0.72);
  font-weight: 900;
}

.publisher-country-chart-range {
  font-size: 11px;
  color: rgba(93, 112, 138, 0.9);
  font-weight: 700;
}

.publisher-country-chart-body {
  width: 100%;
  overflow: hidden;
}

.publisher-country-chart-body svg {
  width: 100%;
  height: auto;
  display: block;
}

.publisher-country-chart-body svg a {
  cursor: pointer;
}

.publisher-country-chart-body svg a:hover rect {
  fill: rgba(196, 95, 62, 0.7);
}

.publisher-country-chart-body svg a:hover text {
  fill: rgba(16, 36, 57, 0.9);
  font-weight: 800;
}

.publisher-country-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #102439;
  font-weight: 900;
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-decoration: none;
  justify-content: flex-start;
}

html[dir="rtl"] .publisher-country-link {
  justify-content: flex-end;
}

.publisher-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.publisher-featured {
  grid-column: span 2;
  grid-row: span 2;
  background: #fff;
  border-radius: 22px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 22px 45px rgba(9, 29, 46, 0.08);
  display: flex;
  flex-direction: column;
}

.publisher-featured-link {
  position: absolute;
  inset: 0;
  z-index: 3;
}

.publisher-featured-media {
  background: #f2f6fc;
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 180px;
}

.publisher-featured-media img {
  max-width: 70%;
  max-height: 120px;
  object-fit: contain;
}

.publisher-featured-content {
  padding: 26px;
  display: grid;
  gap: 14px;
}

.publisher-featured-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 360px);
  gap: 18px;
  align-items: start;
}

.publisher-featured-main {
  display: grid;
  gap: 14px;
  min-width: 0;
}

.publisher-country-card--embedded {
  padding: 18px;
  box-shadow: none;
  background: rgba(255, 255, 255, 0.92);
}

.publisher-country-card--embedded::before {
  opacity: 0.06;
}

.publisher-country-card--embedded .publisher-country-title h2 {
  font-size: 20px;
}

.publisher-country-card--embedded .publisher-country-metric strong {
  font-size: 20px;
}

.publisher-country-card--embedded .publisher-country-chart {
  background: rgba(238, 243, 251, 0.55);
}

.publisher-featured--stats {
  background: transparent;
  box-shadow: none;
  overflow: visible;
}

.publisher-featured--stats .publisher-country-card--featured {
  box-shadow: 0 22px 45px rgba(9, 29, 46, 0.08);
}

.publisher-country-card--featured {
  padding: 26px;
}

.publisher-country-card--featured .publisher-country-title h2 {
  font-size: 28px;
}

.publisher-country-card--featured .publisher-country-metric strong {
  font-size: 26px;
}

.publisher-country-card--featured .publisher-country-chart {
  padding: 16px 16px 10px;
}

.publisher-featured-label {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 11px;
  font-weight: 700;
  color: #c45f3e;
}

.publisher-featured-content h2 {
  margin: 0;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 30px;
  color: #102439;
}

.publisher-featured-content p {
  margin: 0;
  color: #5d708a;
  line-height: 1.7;
}

.publisher-featured-meta {
  display: flex;
  gap: 16px;
  align-items: center;
}

.publisher-featured-meta div {
  display: grid;
  gap: 4px;
}

.publisher-featured-meta span {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #6b7f97;
}

.publisher-featured-meta strong {
  font-size: 18px;
  color: #102439;
}

.publisher-featured-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #c45f3e;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0.08em;
}

.publisher-card {
  position: relative;
  /*background: #eef3fb;*/
   background: #e4e7ec ;
  border-radius: 18px;
  padding: 20px;
  display: grid;
  gap: 10px;
  min-height: 220px;
  box-shadow: 0 14px 30px rgba(9, 29, 46, 0.05);
}
.publisher-card:hover {
    transform: translateY(-2px);
    border-color: #c3d4e8;
    box-shadow: 0 14px 30px rgba(18, 35, 58, 0.08);
}

.publisher-card-link {
  position: absolute;
  inset: 0;
  z-index: 3;
}

.publisher-card-icon {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
}

.publisher-card-icon img {
  max-width: 100%;
  max-height: 40px;
  object-fit: contain;
}

.publisher-card-region {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: #6b7f97;
  font-weight: 700;
}

.publisher-card h3 {
  margin: 0;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 20px;
  color: #102439;
}

.publisher-card p {
  margin: 0;
  color: #5d708a;
  font-size: 13px;
  line-height: 1.6;
}

.publisher-card-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  color: #c45f3e;
}

.publisher-cta-card {
  grid-column: span 2;
  background: #f3e7dc;
  border-radius: 22px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  justify-content: space-between;
}

.publisher-cta-card h3 {
  margin: 0;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 24px;
  color: #102439;
}

.publisher-cta-card p {
  margin: 0;
  color: #5d708a;
  line-height: 1.7;
}

.publisher-cta-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #102439;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-decoration: none;
}

@media (max-width: 1024px) {
  .publisher-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .category-bento-list{
   grid-column: 1 / span 4 !important;
  }
  .publisher-featured,
  .publisher-cta-card {
    grid-column: span 2;
  }

  .publisher-featured-split {
    grid-template-columns: 1fr;
  }

  .category-bento {
    display: block;
  }

  .category-bento-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .category-stats-shell {
    grid-template-columns: 1fr;
  }

  .category-inline-stats {
    grid-template-columns: 1fr;
  }

  .category-inline-rich-mid {
    grid-template-columns: 1fr;
  }

  .category-inline-rich-mid .category-year-donuts--donut {
    justify-self: start;
    order: -1;
  }

  .category-bento-card--feature {
    min-width: 0;
  }

  .category-bento-side {
    grid-column: 1 / -1;
    grid-row: auto;
    order: -1;
  }

  .category-bento-list {
    grid-column: 1 / -1;
    grid-row: auto;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .category-bento-extra {
    grid-column: 1 / -1;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .category-insights-kpis {
    grid-template-columns: 1fr;
  }

  .category-map-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .category-map-pct {
    text-align: left;
  }

}

@media (max-width: 768px) {
  /* Keep the advanced search link visible on mobile now that it's a second line. */

  .home-redesign-hero-inner {
    padding-top: 74px;
    padding-bottom: 28px;
    gap: 18px;
  }

  .home-hero-panels-label::before,
  .home-hero-panels-label::after {
    width: 44px;
  }

  .home-growth-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-redesign-stats-hero .home-stats-grid {
    height: auto;
  }
  .home-hero-panels {
    z-index: 4;
  }
  .home-search-box {
    z-index: 200;
  }
  .category-section-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .publisher-hero {
    align-items: flex-start;
  }

  .publisher-grid {
    grid-template-columns: 1fr;
  }

  .publisher-featured,
  .publisher-cta-card {
    grid-column: auto;
  }

  /* Categories: keep the feature stats card self-contained on small screens */
  .category-bento-card--feature .category-year-donuts--donut {
    grid-template-columns: 1fr;
  }

  .category-bento-card--feature .category-year-donuts--donut .category-donut-chart {
    justify-self: center;
  }

  .category-bento-card--feature .category-year-donuts--donut .category-donut-legend {
    justify-items: start;
  }
}

/* Nest Hub / short landscape screens: compress the hero so it fits within the viewport. */
@media (max-width: 1100px) and (max-height: 700px) {
  .home-redesign-hero-inner {
    padding-top: 60px;
    padding-bottom: 18px;
    gap: 14px;
  }

  .home-redesign-hero h1 {
    font-size: 38px;
    margin: 0 0 10px;
  }

  .home-redesign-hero h1 span {
    font-size: 38px;
  }

  .home-search-box {
    padding: 6px;
    border-radius: 12px;
  }

  .home-search-icon {
    width: 30px;
    height: 30px;
  }

  .home-search-box input {
    font-size: 12px;
  }

  .home-hero-panels {
    gap: 10px;
  }

  .home-growth {
    padding: 6px 0 10px;
  }

  .home-growth-grid {
    gap: 10px;
  }

  .home-growth-card {
    padding: 12px;
    border-radius: 12px;
  }

  .home-growth-icon {
    width: 34px;
    height: 34px;
    border-radius: 10px;
  }

  .home-growth-icon svg {
    width: 18px;
    height: 18px;
  }

  .home-growth-card strong {
    font-size: 22px;
  }

  .home-growth-card span {
    font-size: 9px;
  }

  .home-redesign-stats-hero .home-stats-grid {
    height: 112px;
    border-radius: 16px;
  }

  .home-stats-grid {
    height: 120px;
  }

  .home-stats-grid h3 {
    font-size: 26px;
  }

  .home-stats-grid p {
    margin-top: 8px;
    font-size: 11px;
  }
}

/* Medium laptop widths with limited height (e.g. ~1137px wide): keep stats visible in first view. */
@media (max-width: 1300px) and (max-height: 820px) {
  .home-redesign-hero {
    align-items: flex-start;
  }

  .home-redesign-hero-inner {
    align-content: start;
    padding-top: 32px;
    padding-bottom: 12px;
    gap: 10px;
  }

  .home-redesign-hero h1 {
    font-size: 38px;
    margin: 0 0 8px;
  }

  .home-redesign-hero h1 span {
    font-size: 38px;
  }

  .home-hero-panels {
    gap: 10px;
  }

  .home-growth {
    padding: 6px 0 10px;
  }

  .home-hero-panels-label {
    gap: 12px;
    font-size: 10px;
  }

  .home-hero-panels-label::before,
  .home-hero-panels-label::after {
    width: 72px;
  }

  .home-growth-grid {
    gap: 10px;
  }

  .home-growth-card {
    padding: 10px;
    gap: 6px;
    border-radius: 12px;
  }

  .home-growth-icon {
    width: 32px;
    height: 32px;
    border-radius: 10px;
  }

  .home-growth-icon svg {
    width: 18px;
    height: 18px;
  }

  .home-growth-card strong {
    font-size: 20px;
  }

  .home-growth-card span {
    font-size: 9px;
  }

  .home-redesign-stats-hero .home-stats-grid {
    height: 112px;
    border-radius: 16px;
  }

  .home-stats-grid {
    height: 118px;
  }

  .home-stats-grid article {
    padding: 14px 16px 14px;
  }

  .home-stats-grid h3 {
    font-size: 26px;
  }

  .home-stats-grid p {
    margin-top: 8px;
    font-size: 11px;
    letter-spacing: 0.12em;
  }
}

/* Library Dashboard (Customer) */
.ld-dashboard-page .ld-tabs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 0;
}

.ld-dashboard-page .ld-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid #d8e2ef;
  background: #f8fbff;
  color: #2b3f57;
  text-decoration: none;
  font-weight: 800;
  font-size: 13px;
}

.ld-dashboard-page .ld-tab.is-active {
  border-color: rgba(159, 71, 45, 0.35);
  background: rgba(159, 71, 45, 0.12);
  color: #96432a;
}

.ld-library-hero {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr) 360px;
  gap: 16px;
}

.ld-library-hero-left {
  display: grid;
  gap: 12px;
  align-content: start;
}

.ld-completion {
  --p: 0;
  width: 168px;
  height: 168px;
  border-radius: 999px;
  position: relative;
  display: grid;
  place-items: center;
}

.ld-completion-ring {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: conic-gradient(#c2684d calc(var(--p) * 1%), #e7eef8 0);
  box-shadow: 0 14px 30px rgba(20, 40, 70, 0.12);
}

.ld-completion-center {
  width: 132px;
  height: 132px;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid #d9e2ee;
  display: grid;
  place-items: center;
  gap: 2px;
  text-align: center;
  position: relative;
  z-index: 1;
}

.ld-completion-center strong {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 34px;
  line-height: 1;
  color: #15253a;
}

.ld-completion-center span {
  font-size: 12px;
  color: #6a7d95;
  font-weight: 800;
}

.ld-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.ld-actions .up-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border-radius: 999px;
  min-height: 30px;
  white-space: nowrap;
}

.ld-btn-primary {
  background: #9f432a;
  border-color: #9f432a;
  color: #ffffff;
}

.ld-btn-primary:hover {
  background: #863621;
  border-color: #863621;
  color: #ffffff;
}

.ld-btn-secondary {
  background: #f8fbff;
  border-color: #d8e2ef;
  color: #23374f;
}

.ld-btn-secondary:hover {
  background: #ffffff;
  border-color: rgba(159, 71, 45, 0.35);
  color: #8f3a27;
}

.ld-library-hero-main h1 {
  margin: 6px 0 10px;
  font-family: "Playfair Display", Georgia, serif;
  color: #15253a;
  font-size: clamp(28px, 2.4vw, 48px);
}

.ld-library-meta {
  display: grid;
  gap: 8px;
  color: #5d7089;
  font-weight: 700;
}

.ld-library-meta-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ld-meta-label {
  color: #5d7089;
  font-weight: 800;
}

/* Emails/IDs should remain readable in RTL pages. */
.ld-email {
  direction: ltr;
  unicode-bidi: plaintext;
  display: inline-block;
  word-break: break-word;
  overflow-wrap: anywhere;
  color: #3f5673;
}

.ld-ico {
  width: 28px;
  height: 28px;
  border-radius: 10px;
  background: #eef5ff;
  border: 1px solid #d7e0ec;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #8f3a27;
  flex: 0 0 auto;
}

.ld-ico svg {
  width: 16px;
  height: 16px;
  display: block;
}

.ld-analysis {
  margin-top: 14px;
  border: 1px solid #d9e2ee;
  border-radius: 14px;
  background: #f8fbff;
  padding: 14px;
}

.ld-analysis h2 {
  margin: 0 0 10px;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 18px;
  color: #15253a;
}

.ld-analysis ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
  color: #556a86;
  font-weight: 700;
}

.ld-analysis li {
  position: relative;
  padding-inline-start: 18px;
}

.ld-analysis li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 8px;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #c2684d;
}

.ld-library-hero-right {
  display: grid;
  gap: 12px;
  align-content: start;
}

.ld-search {
  display: grid;
  grid-template-columns: 1fr 46px;
  gap: 10px;
  align-items: center;
  border: 1px solid #d7e0ec;
  background: #eaf1fa;
  border-radius: 999px;
  padding: 8px 10px;
}

.ld-search input {
  border: 0;
  background: transparent;
  outline: none;
  width: 100%;
  font-weight: 700;
  color: #23374f;
  padding: 8px 12px;
  min-height: 42px;
  text-align: start;
}

.ld-search button {
  border: 0;
  background: #ffffff;
  border: 1px solid #d7e0ec;
  color: #23374f;
  width: 46px;
  height: 42px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.ld-search button:hover {
  border-color: rgba(159, 71, 45, 0.35);
  color: #8f3a27;
}

.ld-search button svg {
  width: 18px;
  height: 18px;
  display: block;
}

.ld-quick {
  border: 1px solid #d9e2ee;
  border-radius: 16px;
  background: #ffffff;
  padding: 14px;
}

.ld-quick-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.ld-quick-head h2 {
  margin: 0;
  font-family: "Playfair Display", Georgia, serif;
  color: #15253a;
  font-size: 18px;
}

.ld-quick-link {
  text-decoration: none;
  font-weight: 800;
  color: #8f3a27;
  font-size: 13px;
}

.ld-quick-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.ld-quick-card {
  border: 1px solid #d9e2ee;
  border-radius: 14px;
  background: #f8fbff;
  padding: 12px;
  display: grid;
  gap: 8px;
}

.ld-quick-icon {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: #fff7f4;
  border: 1px solid #f1d9cf;
  color: #c2684d;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.ld-quick-icon svg {
  width: 18px;
  height: 18px;
  display: block;
}

.ld-quick-card strong {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 26px;
  color: #15253a;
}

.ld-quick-card small {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #6c7f97;
  font-weight: 800;
  font-size: 10px;
}

.ld-panels {
  display: grid;
  gap: 14px;
}

.ld-panel {
  border: 1px solid #d9e2ee;
  border-radius: 16px;
  background: #ffffff;
  padding: 16px;
}

.ld-panel-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.ld-panel-head h2 {
  margin: 0;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 22px;
  color: #15253a;
}

.ld-dna-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.ld-dna-block {
  border: 1px solid #d9e2ee;
  border-radius: 14px;
  background: #f8fbff;
  padding: 14px;
}

.ld-dna-block h3 {
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 900;
  color: #1f324a;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.ld-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ld-chips span {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(159, 71, 45, 0.10);
  border: 1px solid rgba(159, 71, 45, 0.18);
  color: #96432a;
  font-weight: 800;
  font-size: 12px;
}

.ld-muted {
  margin: 0 0 10px;
  color: #5d7089;
  font-weight: 700;
}

.ld-micro {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.ld-micro-item {
  border: 1px solid #d9e2ee;
  border-radius: 12px;
  background: #ffffff;
  padding: 10px;
  display: grid;
  gap: 4px;
}

.ld-micro-item strong {
  font-family: "Playfair Display", Georgia, serif;
  color: #15253a;
  font-size: 20px;
}

.ld-micro-item span {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #6c7f97;
  font-weight: 800;
  font-size: 10px;
}

.ld-panel-accent {
  background: linear-gradient(180deg, #f4f8fd 0%, #edf4fc 100%);
}

.ld-insights {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
  color: #556a86;
  font-weight: 700;
}

.ld-insights li {
  padding-inline-start: 18px;
  position: relative;
}

.ld-insights li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 8px;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #c2684d;
}

.ld-reco {
  margin-top: 12px;
  border: 1px solid rgba(159, 71, 45, 0.35);
  border-radius: 14px;
  background: rgba(159, 71, 45, 0.08);
  padding: 12px;
}

.ld-reco small {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-weight: 900;
  color: #8f3a27;
  font-size: 11px;
}

.ld-reco p {
  margin: 8px 0 0;
  color: #4c5f79;
  font-weight: 700;
}

.ld-panel-link {
  display: inline-flex;
  margin-top: 10px;
  text-decoration: none;
  font-weight: 900;
  color: #8f3a27;
}

.ld-budget-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.ld-budget-card {
  border: 1px solid #d9e2ee;
  border-radius: 14px;
  background: #f8fbff;
  padding: 14px;
  display: grid;
  gap: 8px;
}

.ld-budget-card small {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-weight: 900;
  color: #6c7f97;
  font-size: 10px;
}

.ld-budget-card strong {
  font-family: "Playfair Display", Georgia, serif;
  color: #15253a;
  font-size: 24px;
}

.ld-budget-card-wide {
  grid-column: 1 / -1;
}

.ld-budget-card ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
  color: #556a86;
  font-weight: 700;
}

.ld-budget-card li {
  padding-inline-start: 18px;
  position: relative;
}

.ld-budget-card li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 8px;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #8f3a27;
}

.ld-prefs-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.ld-pref-card {
  border: 1px solid #d9e2ee;
  border-radius: 14px;
  background: #f8fbff;
  padding: 14px;
}

.ld-pref-card h3 {
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 900;
  color: #1f324a;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.ld-pref-card ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
  color: #556a86;
  font-weight: 700;
}

.ld-pref-card li {
  padding-inline-start: 18px;
  position: relative;
}

.ld-pref-card li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 8px;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #b7c6db;
}

.ld-check li::before {
  background: #3aa56d;
}

.ld-summary {
  display: grid;
  gap: 10px;
}

.ld-summary-row {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid #d9e2ee;
  background: #f8fbff;
  color: #556a86;
  font-weight: 800;
}

.ld-summary-row strong {
  color: #15253a;
  font-family: "Playfair Display", Georgia, serif;
}

@media (max-width: 1100px) {
  .ld-library-hero {
    grid-template-columns: 1fr;
  }
  .ld-quick-grid {
    grid-template-columns: 1fr;
  }
  .ld-dna-grid {
    grid-template-columns: 1fr;
  }
  .ld-budget-grid,
  .ld-prefs-grid {
    grid-template-columns: 1fr;
  }
}

/* Library dashboard should start closer to the header (avoid a "blank" top feel). */
.ld-dashboard-page.up-page {
  padding-top: 0;
}

html[dir="rtl"] .ld-search {
  direction: rtl;
}

/* Reports */
.up-reports-page .up-hero h1 {
  font-size: clamp(30px, 2.6vw, 46px);
}

.rp-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.rp-card {
  padding: 16px;
}

.rp-card-wide {
  grid-column: 1 / -1;
}

.rp-canvas-wrap {
  height: 300px;
  width: 100%;
  position: relative;
}

.rp-canvas-wrap-wide {
  height: 360px;
}

@media (max-width: 900px) {
  .rp-grid {
    grid-template-columns: 1fr;
  }
}
