body {
  background-image: url(../images/body.webp);
}

.page-shell {
  width: min(1400px, calc(100% - 14px));
  margin: 0px auto;
  background: #fff5eba1;
  border: 1px solid #cdcdcd;
  box-shadow: 0 3px 14px rgba(0, 0, 0, 0.08);
}

#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 6px;
}

.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 Heading ........ */

.books-section h1 {
  font-family: var(--font-arabic);
  font-size: clamp(18px, 2.2vw, 30px);
  text-align: justify;
  margin: 10px 0;
  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: 10px 16px;

  font-family: var(--font-arabic);
  font-size: var(--font-subheading);
  text-decoration: none;

  border-radius: 999px;

  /* 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)........... */

/* click press */
.btn-box .btn:active {
  transform: translateY(1px) scale(0.98);
  box-shadow:
    inset 0 4px 8px rgba(0, 0, 0, 0.35);
}

.footer-container {
  gap: 8px;
}

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

@media (max-width: 980px) {
  .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;
  }
}

/* ............................. */
/* default (mobile first) */
.fehrist-content .grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  /* mobile: 1 column */
  gap: 14px;
}

/* 768px اور اس سے اوپر */
@media (max-width: 768px) {
  .fehrist-content .grid {
    grid-template-columns: 1fr;
    /* 2 columns */
  }
  
 .btn-box .btn {
   gap: 10px;
   padding: 5px;

 }

}

/* ............................. */

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

