

.page-shell {
  width: min(1400px, calc(100% - 14px));
  margin: 0 auto;
  background: #ffe6cf;
  background-image: url(../images/page-shell.webp);
  background-position: center;
  border-left: 5px solid #d7bda7;
  border-right: 5px solid #d7bda7;
  box-shadow:
    -40px 0 50px -38px rgba(0, 0, 0, 0.22),
    40px 0 50px -38px rgba(0, 0, 0, 0.22),
    0 10px 22px rgba(0, 0, 0, 0.06);
}

#nav-links li a {
  border-radius: 0;
}

#nav-links li a:hover {
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
  transform: none;
  box-shadow: none;
}

.search-section {
  padding: 8px 14px 2px;
}

.search-container {
  width: 100%;
  padding: 0;
}

.search-wrapper {
  width: 100%;
  max-width: 960px;
}

.search-wrapper input {
  border: 1px solid #cbcbcb;
  background: #ffffff;
  height: 34px;
}

.search-wrapper button {
  background: #c4383b;
  min-width: 92px;
}

.search-wrapper button:hover {
  background: #a72f32;
}

.books-section {
  max-width: 100%;
  text-align: right;
  padding: 3px 14px 12px;
}
@media (min-width: 1024px) {
.books-section {
    padding: 6px 14px 12px;
  }
}

.books-layout {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 16px;
  direction: rtl;
}
.books-sidebar {
  position: -webkit-sticky;
  position: sticky;
  bottom: 1px;
  top: auto;
  align-self: end;
  height: fit-content;
  direction: rtl;
}
.books-content {
  direction: rtl;
}

.sidebar-block {
  border: 2px solid #dfdfdf;
  background: #fcfcfca7;
  margin-bottom: 30px;
  padding: 10px 9px 9px;
}

.sidebar-block h3 {
  font-family: var(--font-arabic);
  font-size: clamp(17px, 1.65vw, 22px);
  color: #1f6f44;
  margin: 0 0 10px;
  border-right: 3px solid #f4c343;
  padding-right: 8px;
}

.books-links-block {
  position: relative;
  background: transparent;
  border: 0;
  padding: 0;
}

.books-links-block h3.books-categories-heading {
  font-family: Georgia, "Times New Roman", Times, serif;
  font-size: clamp(16px, 1.55vw, 20px);
  font-weight: 600;
  color: #1a2d5c;
  margin: 0 0 12px;
  padding: 0 0 8px;
  border-right: 0;
  border-bottom: 1px solid #d4d8e0;
  display: flex;
  align-items: baseline;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 0.35em;
}

.books-categories-sep {
  color: #6b7a9e;
  font-weight: 400;
  margin-inline: 0.15em;
}

.books-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.books-category-link {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  direction: ltr;
  min-height: 40px;
  border-radius: 4px;
  /* border: 1px solid gray; */
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  background: #fafafa;
  box-shadow: 0px 0px 5px 0px gray;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
}

.books-category-icon {
  flex: 0 0 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
}

.books-category-icon-svg {
  display: block;
  flex-shrink: 0;
}

.books-links .books-category-link:nth-child(1) .books-category-icon {
  background: #5b9bd5;
}

.books-links .books-category-link:nth-child(2) .books-category-icon {
  background: #94364d;
}

.books-links .books-category-link:nth-child(3) .books-category-icon {
  background: #2db5a8;
}

.books-links .books-category-link:nth-child(4) .books-category-icon {
  background: #e07828;
}

.books-links .books-category-link:nth-child(5) .books-category-icon {
  background: #1e4a7a;
}

.books-links .books-category-link:nth-child(6) .books-category-icon {
  background: #c0392b;
}

.books-links .books-category-link:nth-child(7) .books-category-icon {
  background: #6b5b95;
}

.books-links .books-category-link:nth-child(1) .books-category-text {
  --hover-bg: #3d7eb8;
}

.books-links .books-category-link:nth-child(2) .books-category-text {
  --hover-bg: #6d2840;
}

.books-links .books-category-link:nth-child(3) .books-category-text {
  --hover-bg: #208a80;
}

.books-links .books-category-link:nth-child(4) .books-category-text {
  --hover-bg: #c45f1a;
}

.books-links .books-category-link:nth-child(5) .books-category-text {
  --hover-bg: #14365a;
}

.books-links .books-category-link:nth-child(6) .books-category-text {
  --hover-bg: #942c22;
}

.books-links .books-category-link:nth-child(7) .books-category-text {
  --hover-bg: #4a3f6b;
}

.books-category-text {
  flex: 1;
  display: flex;
  align-items: center;
  direction: rtl;
  text-align: right;
  padding: 4px 4px;
  font-family: var(--font-urdu);
  font-size: var(--font-books);
  line-height: 1.35;
  color: #05017d;
  text-shadow: 0px 0px .3px #05017d;
  background: white;
  background-image: linear-gradient(var(--hover-bg, transparent), var(--hover-bg, transparent));
  background-repeat: no-repeat;
  background-position: right center;
  background-size: 0% 100%;
  transition:
    background-size 0.25s ease,
    color 0.3s ease,
    box-shadow 0.3s ease,
    text-shadow 0.3s ease;
}

/* ..... Border ..... */
.cat-1 {
  border-right: 4px solid #1f5e94;
}

.cat-2 {
  border-right: 4px solid #491326;
}

.cat-3 {
  border-right: 4px solid #12635b;
}

.cat-4 {
  border-right: 4px solid #a14203;
}

.cat-5 {
  border-right: 4px solid #07396f;
}

.cat-6 {
  border-right: 4px solid #7e1c13;
}

.cat-7 {
  border-right: 4px solid #413466;
}

/* ..... Border ..... */

.books-category-link:hover .books-category-icon,
.books-category-link:focus-visible .books-category-icon {
  filter: brightness(1.06);
}

/* Hover / focus: text panel + border use tints of each row’s folder color */
.books-links .books-category-link:nth-child(1):hover,
.books-links .books-category-link:nth-child(1):focus-visible {
  border-color: #f8f8f8;
  box-shadow: 0 3px 10px rgba(59, 126, 184, 0.2);
}

.books-links .books-category-link:nth-child(1):hover .books-category-text,
.books-links .books-category-link:nth-child(1):focus-visible .books-category-text {
  box-shadow: inset 4px 0 0 #3d7eb8;
  color: white;
  text-shadow: 0px 0px 1.5px white;
}

.books-links .books-category-link:nth-child(2):hover,
.books-links .books-category-link:nth-child(2):focus-visible {
  border-color: #6d2840;
  box-shadow: 0 3px 10px rgba(109, 40, 64, 0.2);
}

.books-links .books-category-link:nth-child(2):hover .books-category-text,
.books-links .books-category-link:nth-child(2):focus-visible .books-category-text {
  box-shadow: inset 4px 0 0 #6d2840;
  color: white;
  text-shadow: 0px 0px 1.5px white;
}

.books-links .books-category-link:nth-child(3):hover,
.books-links .books-category-link:nth-child(3):focus-visible {
  border-color: #208a80;
  box-shadow: 0 3px 10px rgba(32, 138, 128, 0.2);
}

.books-links .books-category-link:nth-child(3):hover .books-category-text,
.books-links .books-category-link:nth-child(3):focus-visible .books-category-text {
  box-shadow: inset 4px 0 0 #208a80;
  color: white;
  text-shadow: 0px 0px 1.5px white;
}

.books-links .books-category-link:nth-child(4):hover,
.books-links .books-category-link:nth-child(4):focus-visible {
  border-color: #c45f1a;
  box-shadow: 0 3px 10px rgba(196, 95, 26, 0.22);
}

.books-links .books-category-link:nth-child(4):hover .books-category-text,
.books-links .books-category-link:nth-child(4):focus-visible .books-category-text {
  box-shadow: inset 4px 0 0 #c45f1a;
  color: white;
  text-shadow: 0px 0px 1.5px white;
}

.books-links .books-category-link:nth-child(5):hover,
.books-links .books-category-link:nth-child(5):focus-visible {
  border-color: #14365a;
  box-shadow: 0 3px 10px rgba(20, 54, 90, 0.22);
}

.books-links .books-category-link:nth-child(5):hover .books-category-text,
.books-links .books-category-link:nth-child(5):focus-visible .books-category-text {
  box-shadow: inset 4px 0 0 #14365a;
  color: white;
  text-shadow: 0px 0px 1.5px white;
}

.books-links .books-category-link:nth-child(6):hover,
.books-links .books-category-link:nth-child(6):focus-visible {
  border-color: #942c22;
  box-shadow: 0 3px 10px rgba(148, 44, 34, 0.2);
}

.books-links .books-category-link:nth-child(6):hover .books-category-text,
.books-links .books-category-link:nth-child(6):focus-visible .books-category-text {
  box-shadow: inset 4px 0 0 #942c22;
  color: white;
  text-shadow: 0px 0px 1.5px white;
}

.books-links .books-category-link:nth-child(7):hover,
.books-links .books-category-link:nth-child(7):focus-visible {
  border-color: #4a3f6b;
  box-shadow: 0 3px 10px rgba(74, 63, 107, 0.2);
}

.books-links .books-category-link:nth-child(7):hover .books-category-text,
.books-links .books-category-link:nth-child(7):focus-visible .books-category-text {
  box-shadow: inset 4px 0 0 #4a3f6b;
  color: white;
  text-shadow: 0px 0px 1.5px white;
}

.books-links .books-category-link:hover .books-category-text,
.books-links .books-category-link:focus-visible .books-category-text {
  background-size: 100% 100%;
}

.books-category-link.is-active .books-category-text,
.books-category-link.is-active:hover .books-category-text,
.books-category-link.is-active:focus-visible .books-category-text {
  background: #1e3a6e;
  color: #ffffff;
  box-shadow: none;
}

.books-category-link.is-active,
.books-category-link.is-active:hover,
.books-category-link.is-active:focus-visible {
  border-color: #1e3a6e;
  box-shadow: 0 2px 8px rgba(30, 58, 110, 0.2);
}

.books-category-link.is-active .books-category-icon,
.books-category-link.is-active:hover .books-category-icon,
.books-category-link.is-active:focus-visible .books-category-icon {
  filter: brightness(0.92);
}

.sidebar-block.sidebar-block--latest-carousel {
  padding: 0;
}

.latest-books-carousel {
  position: relative;
  min-height: 0;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  perspective: 980px;
  transform-style: preserve-3d;
}

.latest-books-carousel.has-dots {
  padding-bottom: 0;
}

.latest-book-slide {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: stretch;
  padding: 0;
  color: #2e2e2e;
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  pointer-events: none;
  transition: opacity 0.3s ease;
  border: 0;
  outline: 0;
  text-decoration: none;
  box-shadow: none;
  transform: translateY(16px) scale(0.985);
  will-change: transform, opacity, filter;
  transform-origin: right center;
  backface-visibility: hidden;
}

.latest-book-slide.is-active {
  opacity: 1;
  max-height: 999px;
  padding: 0;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.latest-book-slide.is-entering.is-forward {
  transform-origin: right center;
  animation: carousel-page-turn-forward 1.35s cubic-bezier(0.22, 0.7, 0.2, 1)
    both;
}

.latest-book-slide.is-entering.is-backward {
  transform-origin: left center;
  animation: carousel-page-turn-backward 1.35s cubic-bezier(0.22, 0.7, 0.2, 1)
    both;
}

.latest-book-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
}

.latest-book-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  background: linear-gradient(
    115deg,
    rgba(255, 255, 255, 0) 16%,
    rgba(255, 255, 255, 0.5) 34%,
    rgba(255, 255, 255, 0.18) 42%,
    rgba(255, 255, 255, 0) 62%
  );
  transform: translateX(130%) skewX(-11deg);
}

.latest-book-slide.is-entering.is-forward::before {
  background: linear-gradient(
    90deg,
    rgba(0, 0, 0, 0.28) 0%,
    rgba(0, 0, 0, 0.12) 28%,
    rgba(0, 0, 0, 0) 62%
  );
  animation: carousel-page-shadow-forward 1.35s ease-out both;
}

.latest-book-slide.is-entering.is-backward::before {
  background: linear-gradient(
    270deg,
    rgba(0, 0, 0, 0.28) 0%,
    rgba(0, 0, 0, 0.12) 28%,
    rgba(0, 0, 0, 0) 62%
  );
  animation: carousel-page-shadow-backward 1.35s ease-out both;
}

.latest-book-slide.is-entering.is-forward::after {
  animation: carousel-page-gloss-forward 1.35s ease-out both;
}

.latest-book-slide.is-entering.is-backward::after {
  animation: carousel-page-gloss-backward 1.35s ease-out both;
}

.latest-book-slide img {
  width: 100%;
  height: auto;
  object-fit: contain;
  object-position: center;
  background: #ffffff;
  border: 0;
  display: block;
  transform-origin: center center;
}

.latest-book-slide.is-entering img {
  animation: carousel-image-zoom 1.35s cubic-bezier(0.22, 0.7, 0.2, 1) both;
}

.latest-book-caption {
  display: block;
  margin: 0 0 10px;
  padding: 6px 8px 0;
  text-align: center;
  font-family: var(--font-Bombay);
  font-size: clamp(15px, 2vw, 18px);
  line-height: 1.35;
  color: #1f3b1f;
  direction: rtl;
  border: 0;
  outline: 0;
  text-decoration: none;
}

.latest-book-slide.is-entering .latest-book-caption {
  animation: carousel-title-rise 0.55s ease both;
}

.carousel-dots {
  position: static;
  box-sizing: border-box;
  width: 100%;
  margin: 0;
  padding: 8px 6px 8px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  z-index: 2;
  background: #f2ffe4;
  border-top: 3px solid #ffdebf;
}

.carousel-dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(17, 123, 69, 0.3);
  cursor: pointer;
  transition:
    transform 0.2s ease,
    background 0.2s ease,
    width 0.2s ease;
}

.carousel-dot:hover {
  transform: scale(1.1);
}

.carousel-dot.is-active {
  width: 22px;
  background: #117b45;
  animation: carousel-dot-pop 0.35s ease;
}

@keyframes carousel-page-turn-forward {
  0% {
    opacity: 0.08;
    transform: rotateY(-84deg) translate3d(20px, 14px, 0) scale(0.965);
    filter: brightness(0.72) saturate(0.96);
    box-shadow: 0 16px 26px rgba(0, 0, 0, 0.24);
  }

  64% {
    opacity: 1;
    transform: rotateY(10deg) translate3d(-4px, 0, 0) scale(1.004);
    filter: brightness(1.03) saturate(1.02);
    box-shadow: 0 8px 14px rgba(0, 0, 0, 0.14);
  }

  100% {
    opacity: 1;
    transform: rotateY(0deg) translate3d(0, 0, 0) scale(1);
    filter: brightness(1) saturate(1);
    box-shadow: 0 0 0 rgba(0, 0, 0, 0);
  }
}

@keyframes carousel-page-turn-backward {
  0% {
    opacity: 0.08;
    transform: rotateY(84deg) translate3d(-20px, 14px, 0) scale(0.965);
    filter: brightness(0.72) saturate(0.96);
    box-shadow: 0 16px 26px rgba(0, 0, 0, 0.24);
  }

  64% {
    opacity: 1;
    transform: rotateY(-10deg) translate3d(4px, 0, 0) scale(1.004);
    filter: brightness(1.03) saturate(1.02);
    box-shadow: 0 8px 14px rgba(0, 0, 0, 0.14);
  }

  100% {
    opacity: 1;
    transform: rotateY(0deg) translate3d(0, 0, 0) scale(1);
    filter: brightness(1) saturate(1);
    box-shadow: 0 0 0 rgba(0, 0, 0, 0);
  }
}

@keyframes carousel-page-shadow-forward {
  0% {
    opacity: 0.45;
    transform: translateX(0);
  }

  100% {
    opacity: 0;
    transform: translateX(-24%);
  }
}

@keyframes carousel-page-shadow-backward {
  0% {
    opacity: 0.45;
    transform: translateX(0);
  }

  100% {
    opacity: 0;
    transform: translateX(24%);
  }
}

@keyframes carousel-page-gloss-forward {
  0% {
    opacity: 0;
    transform: translateX(135%) skewX(-11deg);
  }

  36% {
    opacity: 0.55;
  }

  100% {
    opacity: 0;
    transform: translateX(-128%) skewX(-11deg);
  }
}

@keyframes carousel-page-gloss-backward {
  0% {
    opacity: 0;
    transform: translateX(-135%) skewX(11deg);
  }

  36% {
    opacity: 0.55;
  }

  100% {
    opacity: 0;
    transform: translateX(128%) skewX(11deg);
  }
}

@keyframes carousel-image-zoom {
  0% {
    opacity: 0;
    transform: scale(1.05);
  }

  100% {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes carousel-title-rise {
  0% {
    opacity: 0;
    transform: translateY(6px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes carousel-dot-pop {
  0% {
    transform: scale(0.9);
  }

  100% {
    transform: scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .latest-book-slide,
  .latest-book-slide.is-entering,
  .latest-book-slide.is-entering::before,
  .latest-book-slide.is-entering::after,
  .latest-book-slide.is-entering img,
  .latest-book-slide.is-entering .latest-book-caption,
  .carousel-dot,
  .carousel-dot.is-active {
    animation: none !important;
    transition: none !important;
    transform: none !important;
    filter: none !important;
  }
}

.topic-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.topic-list li + li {
  margin-top: 6px;
}

.topic-list a {
  display: block;
  border: 1px solid #dfdfdf;
  background: #ffffff;
  padding: 7px 10px;
  color: #444;
  font-family: var(--font-arabic);
  font-size: clamp(15px, 2vw, 18px);
}

.books-content .grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  justify-content: stretch;
}

.book-card {
  max-width: none;
  width: 100%;
  min-height: 100%;
  border: 1px solid #dcdcdc;
  border-radius: 3px;
  animation: none;
  transition: box-shadow 0.2s ease;
  align-items: stretch;
  justify-content: flex-start;
  background: #fff8f0;
}

.book-card:hover {
  animation: none;
  transform: none;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.13);
}

.book-card a {
  width: 100%;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  height: 100%;
}

.book-card img {
  width: 100%;
  aspect-ratio: 16 / 8;
  object-fit: cover;
}

/* ........ Books Section Heading ........ */

.books-section h1 {
  font-family: var(--font-arabic);
  font-size: clamp(18px, 2.2vw, 30px);
  text-align: justify;
  margin: 0px 0px 10px;
  padding: 2px 5px;
  background: #0c5f38;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border-bottom: 1px solid #e6e6e6;
}



/* Icon image */
.books-heading-icon img {
  width: clamp(38px, 3vw, 45px);
  height: clamp(38px, 3vw, 45px);

  object-fit: contain;
  display: block;
}

/* ........ End Books Section ........ */

/* .......Button (Green Embossed + Shine Wave)........... */
.btn-box {
  display: flex;
  gap: 12px;
  background-color: #f2ffe4;
  padding: 10px;
}

.btn-box .btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 5px 16px;
  font-family: var(--font-arabic);
  font-size: clamp(16px, 2vw, 22px);
  text-decoration: none;

  border-radius: 10px;

  /* GREEN embossed base */
  background: linear-gradient(180deg, #16a667 0%, #0f7a47 55%, #0c5f38 100%);


  color: #fff;

  position: relative;
  overflow: hidden;

  /* depth like 3D button */
  box-shadow:
    inset 0 2px 3px rgba(255, 255, 255, 0.25),
    inset 0 -5px 8px rgba(0, 0, 0, 0.25),
    0 6px 14px rgba(0, 0, 0, 0.18);

  transition: all 0.25s ease;
}

/* moving shine wave (like sample image gloss) */
.btn-box .btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -60%;
  width: 40%;
  height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.35), transparent);
  transform: skewX(-20deg);
  animation: shineWave 2.8s infinite;
}

@keyframes shineWave {
  0% {
    left: -60%;
  }

  50% {
    left: 120%;
  }

  100% {
    left: 120%;
  }
}

/* icon */
.btn-box .btn img {
  width: clamp(28px, 3vw, 42px);
  height: clamp(28px, 3vw, 42px);
  object-fit: contain;
  flex-shrink: 0;
  filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.25));
}

/* hover lift */
.btn-box .btn:hover {
  transform: translateY(-2px);
  box-shadow:
    inset 0 2px 3px rgba(255, 255, 255, 0.25),
    inset 0 -5px 8px rgba(0, 0, 0, 0.25),
    0 10px 18px rgba(0, 0, 0, 0.22);
}

/* .......Button (Green Embossed + Shine Wave)........... */


.footer-container {
  gap: 8px;
}

.footer-box h3 {
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

@media (max-width: 980px) {
  .books-layout {
    grid-template-columns: 1fr;
    direction: rtl;
  }

  .books-content .grid {
    grid-template-columns: 1fr;
  }

  .search-wrapper {
    width: 100%;
  }
}

@media (max-width: 768px) {
  .page-shell {
    width: 100%;
    margin: 0;
    border: 0;
    box-shadow: none;
  }

  .search-section,
  .books-section {
    padding-inline: 10px;
  }

  .navbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    position: relative;
    z-index: 40;
    box-sizing: border-box;
  }

  .logo {
    order: 1;
    flex: 0 0 auto;
    gap: 6px;
  }

  .logo img {
    height: 34px;
    border-radius: 6px;
  }

  .logo .research {
    min-width: 52px;
    font-size: 10px;
  }

  .menu-toggle {
    order: 2;
    flex: 0 0 auto;
    margin-inline-start: auto;
    width: 36px;
    height: 36px;
    justify-content: center;
    align-items: center;
    gap: 4px;
  }

  .menu-toggle span {
    width: 20px;
    height: 2.5px;
    margin: 0;
  }

  #nav-links {
    order: 3;
    flex: 0 0 100%;
    position: static;
    width: 100%;
    margin-top: 0;
    padding: 0 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    pointer-events: none;
    transition:
      max-height 0.34s ease,
      opacity 0.25s ease,
      margin-top 0.25s ease;
    background: transparent;
    box-sizing: border-box;
    overflow-x: clip;
  }

  #nav-links.active {
    max-height: 540px;
    opacity: 1;
    pointer-events: auto;
    margin-top: 10px;
    padding-bottom: 8px;
  }

  #nav-links li {
    width: 100%;
    box-sizing: border-box;
  }

  #nav-links li a {
    width: 100%;
    border-radius: 10px;
    text-align: center;
    padding: 9px 12px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-sizing: border-box;
  }

  #nav-links li a:hover {
    background: rgba(255, 255, 255, 0.14);
    color: #ffffff;
  }

  .navbar .dropdown-menu {
    position: static;
    transform: none;
    min-width: 0;
    width: 100%;
    margin-top: 6px;
    border-radius: 8px;
    box-shadow: none;
    padding: 6px;
    background: rgba(0, 0, 0, 0.15);
    box-sizing: border-box;
    margin-inline: 0;
    overflow: hidden;
  }

  .navbar .dropdown-menu li {
    width: 100%;
    box-sizing: border-box;
  }

  .navbar .dropdown.open .dropdown-menu {
    display: flex;
  }

  .navbar .dropdown-menu li a {
    min-width: 0;
    width: 100%;
    border-radius: 8px;
    padding: 8px 10px;
    background: rgba(255, 255, 255, 0.08);
    box-sizing: border-box;
  }

  .search-section {
    position: relative;
    z-index: 1;
    padding-top: 10px;
  }

  .search-wrapper {
    max-width: 100%;
    width: 100%;
  }

  .search-wrapper input {
    height: 42px;
    border-radius: 8px 8px 0 0;
    font-size: 15px;
    padding-inline: 10px;
  }

  .search-wrapper button {
    min-height: 40px;
    border-radius: 0 0 8px 8px;
    font-size: 16px;
    font-weight: 600;
  }


  .latest-books {
    grid-template-columns: 1fr;
  }

  .latest-books-carousel {
    padding-bottom: 0;
  }

  .latest-book-slide img {
    height: auto;
  }

  .books-category-text {
    font-size: 15px;
  }

  .books-category-link {
    min-height: 44px;
  }

  .books-category-icon {
    flex-basis: 44px;
  }

        .btn-box .btn {
          gap: 10px;
          padding: 5px;
          border-radius: 5px;
        }
}



@media (min-width: 1200px) {
  .footer-container {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
