/* =================== 🔹 Global Reset Start =================== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  text-decoration: none;
}

body {
  font-family: var(--font-urdu);
  color: var(--color-dark);
  line-height: 1.6;
  direction: rtl;

  /* رنگ + تصویر */
  background-color: #fce4cd;
  background-image: url("../../../assets/images/body.webp");
  background-position: center;
}

/* =================== 🔹 Global Reset End =================== */

/* =================== 🔹 Container Start =================== */
#container {
  width: min(1400px, calc(100% - 14px));
  margin: 3px auto;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 1px 10px;
  background: #ffeddc;
  background-image: url(../../../assets/images/page-shell.webp);
  background-position: center;
  border-right: 2px solid #ffc58e;
  border-left: 2px solid #ffc58e;
  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);
}

@media (max-width: 980px) {
  #container {
    width: 95%;
    margin: 6px auto;
    padding: 10px;
  }
}

@media (max-width: 768px) {
  #container {
    width: 98%;
    margin: 0px auto 3px;
    padding: 0px 3px 3px;
  }
}

/* =================== 🔹 Container End =================== */

/* =================== 🔹 Top & Footer Banners Start =================== */
#top,
#footer {
  display: flex;
  justify-content: center;
}

#top {
  width: min(1400px, calc(100% - 14px));
  margin: 0 auto;
}

#top img {
  width: 100%;
  background-color: #117b45;
  height: auto;
  display: block;
  border-bottom: 5px solid rgb(0, 88, 0);
}

#footer {
  width: min(1400px, calc(100% - 14px));
  margin: var(--footer-gap) auto 0;
  background-color: white;
  padding: 3px 0;
  border-top: 6px solid #00806a;
  border-bottom: 6px solid #00806a;
}

#footer img {
  width: 100%;
  height: auto;
  border-radius: inherit;
  margin-bottom: 5px;
}

@media (max-width: 980px) {
  #top,
  #footer {
    width: 100%;
  }
}

@media (max-width: 768px) {
  #top,
  #footer {
    width: 100%;
  }
}

.amtknMP p {
  width: min(1400px, calc(100% - 14px));
  margin: 0px auto;
  padding: 4px 0;
  background-color: #002212;
  text-align: center;
  font-size: var(--font-normal);
  font-family: var(--font-arabic);
  color: rgba(234, 234, 234, 0.7);
}

/* =================== 🔹 Top & Footer Banners End =================== */

/* =================== 🔹 Fonts Start =================== */

@font-face {
  font-family: "MehrNastaliqWeb";
  src: url("../../../assets/fonts/MehrNastaliqWeb.ttf") format("truetype");
  font-style: normal;
  font-display: swap;
  font-weight: normal;
}

@font-face {
  font-family: "MyBombayBlackFont";
  src: url("../../../assets/fonts/BombayBlack.ttf") format("truetype");
  font-style: normal;
  font-display: swap;
  font-weight: normal;
}

@font-face {
  font-family: "MyArabicFont";
  src: url("../../../assets/fonts/SakkalMajalla.ttf") format("truetype");
  font-style: normal;
  font-display: swap;
  font-weight: normal;
}

/* =================== 🔹 Fonts End =================== */

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

/* =================== 🔹 Root Variables Start =================== */
:root {
  /* Spacing & Fonts */
  --gap-header-menu: 20px;
  --gap-page: 4px;
  --footer-gap: 2px;

  --font-urdu:
    "MehrNastaliqWeb", "MyArabicFont", "Jameel Noori Nastaleeq", Tahoma, Arial,
    sans-serif;
  --font-arabic: "MyArabicFont", "MehrNastaliqWeb", Tahoma, Arial, sans-serif;
  --font-Bombay: "MyBombayBlackFont", "MyArabicFont", Tahoma, Arial, sans-serif;

  /* Spacing & Fonts */
  --font-sm: clamp(14px, 1.2vw, 18px);
  /* چھوٹا text */
  --font-md: clamp(15px, 1.4vw, 24px);
  /* body text (اہم عام لکھائی) */
  --font-lg: clamp(18px, 1.6vw, 26px);
  /* sub-headings یا نمایاں لکھائی */

  /* 🌙 Line Height (Urdu/Arabic readability کے لئے) */
  --line-relaxed: 1.8;
  /* قرآن/اردو/عربی کے لئے زیادہ فاصلہ */
  --line-normal: 1.5;
  /* عام text */

  /* Primary Colors */
  --color-green: #008000;
  --color-red: #dc0000;
  --color-orange: #f94b00;
  --color-maroon: #800000;
  --color-blue: #0300a5;
  --color-cyan: #007ba5;
  --color-purpl: #a309e4;
  --color-bronze: #c26203;
  --color-olive: #808000;
  --color-black: #1e201f;

  /* Helper colors */
  --color-white: #ffffff;
  --color-dark: #282829;
  --color-gray: #333333;
  --color-light-gray: #f0f0f0;
  --color-border: #763a00;
  --color-border-light: #e6e6e6;
  --color-shadow: rgba(0, 0, 0, 0.1);
  --color-shadow-2: rgba(0, 0, 0, 0.08);
}

/* =================== 🔹 Root Variables End =================== */

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

/* =================== 🔹 Navigation Start =================== */
#navcontainer {
  position: relative;
  width: min(1400px, calc(100% - 14px));
  margin: 1px auto;
  background: var(--color-white);
  border-top: 2px solid var(--color-border);
  border-bottom: 2px solid var(--color-border);
  box-shadow: 0 2px 6px var(--color-shadow);
  padding: 6px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

@media (max-width: 980px) {
  #navcontainer {
    width: 100%;
    padding: 5px 10px 5px 10px;
  }
}

@media (max-width: 768px) {
  #navcontainer {
    width: 100%;
    padding: 5px 10px 5px 10px;
  }
}

#navcontainer .nav-left {
  display: flex;
  align-items: center;
  gap: 6px;
  padding-right: 10px;
}

#navcontainer .nav-left img {
  width: 36px;
  height: 36px;
}

#navcontainer .nav-left span {
  font-family: var(--font-urdu);
  font-weight: bold;
  font-size: 18px;
  color: var(--color-cyan);
}

#navlist {
  list-style: none;
  display: flex;
  gap: 12px;
  align-items: center;
  padding-right: 10px;
  transition: all 0.3s ease;
}

#navlist li {
  position: relative;
}

#navlist li a,
#navlist li button.nav-parent {
  color: var(--color-gray);
  padding: 6px 12px;
  text-decoration: none;
  border-radius: 6px;
  display: flex;
  align-items: center;
  transition: all 0.3s ease;
  font-weight: 500;
  font-family: var(--font-urdu);
  font-size: 18px;
  background: transparent;
  border: 0;
  cursor: pointer;
}

#navlist li button.nav-parent {
  gap: 6px;
  justify-content: center;
}

#navlist li button.nav-parent .nav-caret {
  display: inline-block;
  transition: transform 0.25s ease;
}

@media (min-width: 769px) {
  .has-submenu:hover > button.nav-parent .nav-caret {
    transform: rotate(180deg) translateY(-2px);
  }
}

.has-submenu.open > button.nav-parent .nav-caret,
.has-submenu > button.nav-parent[aria-expanded="true"] .nav-caret {
  transform: rotate(180deg) translateY(-2px);
}

#navlist li a:hover,
#navlist li button.nav-parent:hover {
  background: var(--color-light-gray);
  color: var(--color-black);
  box-shadow: 0 2px 6px var(--color-shadow);
}

/* Submenu */
.has-submenu > .submenu {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  background: var(--color-white);
  border: 1px solid var(--color-border-light);
  border-radius: 8px;
  min-width: 220px;
  box-shadow: 0 6px 20px var(--color-shadow-2);
  z-index: 50;
  padding: 6px 6px;
}

.has-submenu:hover > .submenu,
.has-submenu.open > .submenu {
  display: block;
}

.submenu li {
  list-style: none;
  margin: 4px 0;
}

.submenu li a {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 8px 10px;
  border-radius: 6px;
  text-decoration: none;
  color: var(--color-gray);
  font-family: var(--font-urdu);
  font-size: 16px;
  text-align: center;
}

.submenu li a:hover {
  background: var(--color-light-gray);
}

/* Hamburger menu for mobile */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 36px;
  height: 36px;
  cursor: pointer;
  padding: 5px;
  margin-right: 10px;
}

.menu-toggle span {
  display: block;
  width: 100%;
  height: 4px;
  margin: 3px 0;
  background-color: var(--color-gray);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

@media (max-width: 768px) {
  #navcontainer {
    flex-wrap: wrap;
    align-items: center;
    gap: 0;
    flex-direction: row-reverse;
  }

  #navcontainer .nav-left {
    order: 2;
    flex: 0 0 auto;
  }

  #navlist {
    order: 3;
    flex: 0 0 100%;
    display: flex;
    flex-direction: column;
    width: 100%;
    position: static;
    background: var(--color-white);
    border-top: 1px solid var(--color-border);
    margin-top: 0;
    padding: 0 0;
    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,
      padding 0.25s ease;
  }

  #navlist.active {
    max-height: 640px;
    opacity: 1;
    pointer-events: auto;
    margin-top: 10px;
    padding: 8px 0;
  }

  .menu-toggle {
    display: flex;
    order: 1;
    flex: 0 0 auto;
    margin-right: 0;
  }

  #navlist li {
    width: 100%;
  }

  #navlist li a,
  #navlist li button.nav-parent {
    width: 100%;
    justify-content: center;
    border-radius: 0;
    padding: 8px 10px;
  }

  .has-submenu > .submenu {
    display: none;
    position: relative;
    top: 0;
    right: 0;
    min-width: auto;
    box-shadow: none;
    border: none;
    padding-left: 0;
    border-radius: 0;
    background: var(--color-white);
  }

  .has-submenu:hover > .submenu {
    display: none;
  }

  .has-submenu.open > .submenu {
    display: block;
  }

  .submenu li a {
    padding: 9px 6px;
  }
}

/* =================== 🔹 Navigation End =================== */

/* =================== 🔹 Content Start =================== */
#content {
  padding: 1px 6px 1px 6px;
}

.page {
  margin-bottom: var(--gap-page);
  padding: 0px 5px 2px 5px;
  border-right: 4px solid var(--color-border);
  border-left: 4px solid var(--color-border);
  border-radius: 2px;
  box-shadow: 0 2px 8px var(--color-shadow);
  background: var(--color-white);
  font-family: var(--font-urdu);
}

/* H1 Large heading */
h1 {
  font-family: var(--font-Bombay);
  text-align: center;
  margin: 1.5rem auto;
  font-weight: bold;
  word-spacing: 6px;
  font-size: clamp(30px, 4.5vw, 50px);

  /* Soft depth */
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);

  /* Smooth animation */
  animation: colorChange 14s infinite ease-in-out;
}
#title {
  font-family: var(--font-Bombay);
  text-align: center;
  margin: 1.5rem auto;
  font-weight: normal;
  word-spacing: 6px;
  font-size: clamp(30px, 4.5vw, 50px);

  /* Soft depth */
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);

  /* Smooth animation */
  animation: colorChange 14s infinite ease-in-out;
}

/* Color flow */
@keyframes colorChange {
  0% {
    color: #8b0000;
  }

  33% {
    color: #350385;
  }

  66% {
    color: #03890e;
  }

  100% {
    color: #8b0000;
  }
}

/* Accessibility: motion کم کرنے والوں کیلئے */
@media (prefers-reduced-motion: reduce) {
  #title {
    animation: none;
    color: #8b0000;
  }
}

h2 {
  font-size: clamp(20px, 2.5vw, 30px);
  font-weight: normal;
  text-align: center;
  font-family: var(--font-Bombay);
  margin: 0rem 1rem 0;
  color: var(--color-red);
  /* Soft depth */
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);

  /* Smooth animation */
  animation: colorChange 14s infinite ease-in-out;
}
@media (max-width: 768px) {
  h2 {
    margin: 0;
  }
}
h3 {
  font-size: var(--font-lg);
  font-family: var(--font-urdu);
  font-weight: 200;
  text-align: right;
  margin: 0.75rem 0;
  color: var(--color-bronze);
}

.margin {
  margin: auto 10px auto auto;
}

p {
  font-size: var(--font-md);
  text-indent: 20px;
  text-align: justify;
  font-weight: normal;
  font-family: var(--font-urdu);
}

#p {
  text-indent: 0px;
}
@media (max-width: 768px) {
  p {
    text-indent: 4px;
  }
  #p {
    text-indent: 0px;
  }
}

h4 {
  font-size: var(--font-md);
  text-indent: 40px;
  text-align: justify;
  font-weight: normal;
  color: var(--color-blue);
  font-family: var(--font-arabic);
}

#sabQuran {
  color: var(--color-blue);
  font-family: var(--font-arabic);
}

h5 {
  font-size: var(--font-md);
  text-indent: 40px;
  text-align: justify;
  font-weight: normal;
  color: var(--color-green);
  font-family: var(--font-arabic);
}

#sabHadis {
  color: var(--color-green);
  font-family: var(--font-arabic);
}

h6 {
  font-size: var(--font-md);
  text-indent: 40px;
  text-align: justify;
  font-weight: normal;
  color: var(--color-red);
  font-family: var(--font-arabic);
}

#sabArbi {
  color: var(--color-red);
  font-family: var(--font-arabic);
}
.khutba {
  font-size: var(--font-md);
  text-indent: 40px;
  text-align: center;
  font-weight: normal;
  color: var(--color-red);
  font-family: var(--font-arabic);
}
#farsi {
  font-size: var(--font-md);
  text-indent: 40px;
  text-align: justify;
  font-weight: normal;
  color: var(--color-purpl);
  font-family: var(--font-arabic);
}

#sabFarsi {
  color: var(--color-purpl);
  font-family: var(--font-arabic);
}

#tarjamah {
  font-size: var(--font-md);
  font-family: var(--font-urdu);
  color: var(--color-cyan);
  font-weight: normal;
  text-align: justify;
}

#sabTarjamah {
  font-size: var(--font-md);
  font-family: var(--font-urdu);
  color: var(--color-cyan);
}

#bismillah {
  font-size: var(--font-md);
  text-indent: 0px;
  margin: 0px;
  text-align: center;
  color: var(--color-green);
  font-weight: 600;
  font-family: var(--font-arabic);
}

#center {
  text-indent: 0px;
  text-align: center;
}

#hawalah {
  font-size: var(--font-sm);
  color: var(--color-orange);
  text-align: left;
  font-family: var(--font-urdu);
}

#sabHawalah {
  color: var(--color-orange);
  font-family: var(--font-urdu);
}

#hawalahArbi {
  font-size: var(--font-sm);
  color: var(--color-orange);
  text-align: left;
  font-family: var(--font-arabic);
}
#sabhawalahArbi {
  color: var(--color-orange);
  font-family: var(--font-arabic);
}

#swal {
  font-size: var(--font-md);
  text-indent: 40px;
  text-align: justify;
  font-weight: normal;
  color: var(--color-red);
  font-family: var(--font-urdu);
}

#jawab {
  font-size: var(--font-md);
  text-indent: 40px;
  text-align: justify;
  font-weight: normal;
  color: var(--color-blue);
  font-family: var(--font-urdu);
}

#haashiya {
  font-size: clamp(12px, 1.2vw, 14px);
  background-color: #fcfff1;
  color: var(--color-red);
  text-align: justify;
  font-weight: normal;
  border-radius: 2px 2px 2px 2px;
  text-indent: 0;
  padding: 0px 2px;
  margin: 0.1rem 0;
  font-family: var(--font-urdu);
}

#haashiyaNambr {
  font-size: clamp(12px, 1.2vw, 16px);

  border-radius: 20px 20px 0px 0px;
  line-height: 1;
  font-family: var(--font-urdu);
  color: red;
  background-color: yellow;
  vertical-align: -4px; /* 👈 تھوڑا نیچے کریں */
}
/* ================================== */
#ashar {
  font-size: var(--font-md);
  color: var(--color-olive);
  text-indent: 0px;
  text-align: center;
  font-weight: normal;
  margin: 0;
  font-family: var(--font-urdu);
}
#asharFarsi {
  font-size: var(--font-md);
  color: var(--color-purpl);
  font-family: var(--font-arabic);
  text-indent: 0px;
  text-align: center;
  font-weight: normal;
  margin: 0;
}
#asharArbi {
  font-size: var(--font-md);
  color: var(--color-red);
  font-family: var(--font-arabic);
  text-indent: 0px;
  text-align: center;
  font-weight: normal;
  margin: 0;
}

#musnnaf {
  font-size: var(--font-md);
  text-indent: 0px;
  text-align: center;
  font-weight: normal;
  font-family: var(--font-urdu);
}

#bookIntro {
  font-family: var(--font-urdu);
  text-indent: 0px;
  color: var(--color-blue);
  font-size: var(--font-md);
  line-height: 1.8;
  margin: 1rem 0;
  width: 100%;
  display: block;
  text-align: justify;
  /* default: multiple lines */
}

/* =================== 🔹 Content End =================== */

/* =================== 🔹 Number Box Start =================== */
.nomber {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0px 0px 10px 0px;
  text-align: center;
  background: ghostwhite;
  box-shadow: 0px 0px 12px var(--color-shadow);
  border-radius: 50px;
  border: 2px solid var(--color-border-light);
  font-family: var(--font-urdu);
  text-shadow: 0px 0px 1px var(--color-black);
  transition: all 0.3s ease;
}

.font {
  font-size: clamp(18px, 2vw, 24px);
  margin: 0px 0px 3px 0px;
  font-weight: bold;
  color: var(--color-cyan);
}

/* =================== 🔹 Number Box End =================== */

/* =================== 🔹 Tables Start =================== */
table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--font-md);
  margin: 20px 0;
}

table td {
  padding: 1px;
  border-bottom: 1px solid var(--color-border);
  text-align: justify;
  font-family: var(--font-urdu);
  vertical-align: middle;
}

/* =================== 🔹 Tables End =================== */

/* =================== 🔹 faharist List Start =================== */
.toc-list {
  list-style: none;
  padding: 0;
}

.toc-list li {
  padding: 2px 0;
  font-size: var(--font-md);
  display: flex;
  justify-content: space-between;
  border-bottom: 1px dashed #ccc;
}

.toc-list li p {
  text-indent: 0px;
}

.toc-list li a {
  text-decoration: none;
  color: var(--color-black);
  display: flex;
  justify-content: space-between;
  width: 100%;
  gap: 10px;
}

.toc-list li a:hover {
  color: var(--color-red);
}

/* =================== 🔹 faharist List End =================== */

/* =================== 🔹 Go Top Button Start =================== */
.go-top-btn {
  position: fixed;
  right: 10px;
  bottom: 40px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: none;
  align-items: center;
  justify-content: center;
  background: var(--color-gray);
  color: var(--color-white);
  border: 0;
  cursor: pointer;
  box-shadow: 0 4px 10px var(--color-shadow);
  font-size: 20px;
  opacity: 0.8;
}

.go-top-btn:hover {
  background: var(--color-black);
}

/* =================== 🔹 Go Top Button End =================== */

/* =================== 🔹 Search Bar CSS Start =================== */
.search-container {
  display: flex;
  width: 100%;
  margin: 0 auto;
  justify-content: center;
  align-items: center;
  padding: 5px 0px;
}

.search-wrapper {
  position: relative;
  width: 90%;
  display: flex;
  flex-direction: row;
}

.search-wrapper input {
  font-family: var(--font-arabic);
  flex: 1;
  padding: 10px;
  border: 1px solid var(--color-border);
  border-radius: 0px 6px 6px 0px;
  font-size: 20px;
}

.search-wrapper button {
  font-family: var(--font-arabic);
  border: none;
  background: var(--color-red);
  color: var(--color-white);
  border-radius: 6px 0px 0px 6px;
  font-size: 20px;
  padding: 0 20px;
  min-width: 100px;
}

.search-wrapper button:hover {
  background: var(--color-cyan);
}

.search-wrapper button:disabled {
  cursor: wait;
  opacity: 0.75;
}

/* 🔹 Responsive Layout */
@media (max-width: 992px) {
  .search-bar {
    flex-direction: column;
    gap: 6px;
  }

  .search-wrapper {
    width: 90%;
    flex-direction: column;
  }

  .search-wrapper input {
    border-radius: 6px 6px 0 0;
  }

  .search-wrapper button {
    width: 100%;
    border-radius: 0 0 6px 6px;
    padding: 4px;
  }
}

input[type="text"] {
  padding: 8px 8px 8px 8px;
  width: 100%;
  border: 1px solid #ccc;
}

input[type="search"]:focus,
input[type="text"]:focus {
  border: 1px solid #ccc;
  outline: none;
}

button {
  padding: 8px 12px;
  cursor: pointer;
}

.highlight {
  background-color: yellow;
}

.current-highlight {
  background-color: orange;
}

.count-box {
  font-weight: bold;
  /* background-color: orange; */
  min-height: 24px;
  padding: 6px 10px;
  border-radius: 4px;
  font-size: 13px;
  font-family: var(--font-urdu);
  display: flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  animation: fadeIn 0.3s ease;
}

.count-box.is-loading {
  min-width: 32px;
  background: transparent;
  padding: 0 8px;
  gap: 8px;
}

.count-box.is-loading::before {
  content: "";
  width: 14px;
  height: 14px;
  border: 2px solid rgba(0, 0, 0, 0.18);
  border-top-color: var(--color-dark);
  border-radius: 50%;
  animation: searchSpin 0.8s linear infinite;
}

@keyframes searchSpin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.floating-nav {
  position: fixed;
  top: 90%;
  left: 10px;
  transform: translateY(-50%);
  display: none;
  flex-direction: column;
  gap: 10px;
  z-index: 1000;
  cursor: pointer;
}

.floating-nav button {
  width: 40px;
  height: 40px;
  background-color: var(--color-black);
  color: white;
  border: none;
  border-radius: 50%;
  border: 1px solid var(--color-black);
  padding: 10px;
  font-size: 16px;
  opacity: 0.8;
}

.floating-nav button:hover {
  opacity: 1;
}
@media (max-width: 768px) {
  .search-container {
    padding: 3px 0px 5px;
  }
}

/* =================== 🔹 Search Bar CSS End =================== */

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

/* =================== 🔹 اشعار List Start =================== */

.ashar-list li {
  padding: 0;
  font-size: var(--font-md);
  color: var(--color-olive);
  text-indent: 0px;
  display: grid;
  gap: 0px;
  grid-template-columns: 1fr;
  /* default for small & medium screens */
  justify-items: center;
  /* horizontally center */
  align-items: center;
  /* vertically center */
  text-align: center;
}

/* Medium screens (tablet) and above: 2 columns */
@media (min-width: 768px) {
  /* adjust breakpoint as needed */
  .ashar-list li {
    grid-template-columns: 1fr 1fr;
    /* two columns */
  }
}

/* Large screens (desktop) maintain 2 columns */
@media (min-width: 1024px) {
  .ashar-list li {
    grid-template-columns: 1fr 1fr;
    /* two columns */
  }
  .search-container {
    padding: 0px 0px 5px;
  }
}

.ashar-list li p {
  text-indent: 0px;
  margin: 0;
  text-align: center;
}

/* ==================== Ashar Farsi ========================= */
.ashar-list-farsi li {
  padding: 0;
  font-size: var(--font-md);
  color: var(--color-purpl);
  text-indent: 0px;
  display: grid;
  gap: 0px;
  grid-template-columns: 1fr;
  /* default for small & medium screens */
  justify-items: center;
  /* horizontally center */
  align-items: center;
  /* vertically center */
  text-align: center;
}
.ashar-list-farsi li p {
  font-family: var(--font-arabic);
}
/* Medium screens (tablet) and above: 2 columns */
@media (min-width: 768px) {
  /* adjust breakpoint as needed */
  .ashar-list-farsi li {
    grid-template-columns: 1fr 1fr;
    /* two columns */
  }
}

/* Large screens (desktop) maintain 2 columns */
@media (min-width: 1024px) {
  .ashar-list-farsi li {
    grid-template-columns: 1fr 1fr;
    /* two columns */
  }
}

.ashar-list-farsi li p {
  text-indent: 0px;
  margin: 0;
  text-align: center;
}
/* ======================= Ashar Arbi ========================== */
.ashar-list-arbi li {
  padding: 0;
  font-size: var(--font-md);
  color: var(--color-red);
  text-indent: 0px;
  display: grid;
  gap: 0px;
  grid-template-columns: 1fr;
  /* default for small & medium screens */
  justify-items: center;
  /* horizontally center */
  align-items: center;
  /* vertically center */
  text-align: center;
}
.ashar-list-arbi li p {
  font-family: var(--font-arabic);
}
/* Medium screens (tablet) and above: 2 columns */
@media (min-width: 768px) {
  /* adjust breakpoint as needed */
  .ashar-list-arbi li {
    grid-template-columns: 1fr 1fr;
    /* two columns */
  }
}

/* Large screens (desktop) maintain 2 columns */
@media (min-width: 1024px) {
  .ashar-list li {
    grid-template-columns: 1fr 1fr;
    /* two columns */
  }
}

.ashar-list-arbi li p {
  text-indent: 0px;
  margin: 0;
  text-align: center;
}
/* =================== 🔹 اشعار List End =================== */

/* =================== 🔹 Table List Start =================== */
#table-list li {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 10px;
  align-items: start;
  padding: 6px 0;
  font-size: var(--font-md);
  color: var(--color-maroon);
}

#table-list li p {
  text-indent: 0px;
  margin: 0px;
}

#table-list li p:first-child {
  color: var(--color-maroon);
  /* پہلا نمبر */
}

#table-list li p:nth-child(2) {
  color: #1b5e20;
  /* عنوان */
}

#table-list li p:nth-child(3) {
  color: var(--color-cyan);
  /* مؤلفہ */
}

/* =================== 🔹 Table List End =================== */

/* =================== 🔹 Table center3 List Start =================== */
#table-list-center li {
  padding: 2px 0;
  font-size: var(--font-md);
  text-indent: 0px;
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr 1fr 1fr;
  /* default for small & medium screens */
  justify-items: right;
  /* horizontally center */
  align-items: center;
  /* vertically center */
  text-align: center;
}

#table-list-center li p {
  margin: 0;
  text-indent: 0px;
  text-align: center; /* یہ left پر align کرے گا */
}
@media (max-width: 768px) {
  #table-list-center li {
    gap: 5px;
  }
}

/* =================== 🔹 Table center2 List Start =================== */
#table {
  display: flex;
  justify-content: center;
  /* 🔥 پورا table center */
  padding: 0;
}
#table-list-center2 li {
  padding: 2px 0;
  font-size: var(--font-md);
  text-indent: 0px;
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr 1fr;
  /* default for small & medium screens */
  justify-items: right;
  /* horizontally center */
  align-items: center;
  /* vertically center */
  text-align: center;
}

#table-list-center2 li p {
  margin: 0;
  text-indent: 0px;
  text-align: center; /* یہ left پر align کرے گا */
}
@media (max-width: 768px) {
  #table-list-center2 li {
    gap: 5px;
  }
}
/* =================== 🔹 Table right List Start =================== */
#table-list-right li {
  padding: 2px 0;
  font-size: var(--font-md);
  text-indent: 0px;
  display: grid;
  gap: 15px;
  grid-template-columns: minmax(50px, 200px) 1fr; /* پہلا کالم کم از کم 120px، زیادہ سے زیادہ 200px */
  justify-items: right;
  align-items: start; /* اوپر سے شروع ہو تاکہ نیچے wrap ہو سکے */
  text-align: justify;
}

#table-list-right li p {
  margin: 0;
  text-indent: 0px;

  text-align: justify;
  word-wrap: break-word; /* لکھائی زیادہ ہو تو نیچے آجائے */
  white-space: normal; /* لائن بریک کی اجازت */
}
#table-list-right li p:first-child {
  color: #1b5e20;
  /* پہلا نمبر */
}

@media (max-width: 768px) {
  #table-list-right li {
    grid-template-columns: minmax(40px, 50px) 1fr; /* تھوڑا چھوٹا */
    gap: 10px;
    gap: 10px;
  }
}

/* =================== 🔹 Table List End =================== */

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

/* ===================== 🔹 Page Navigator Container ===================== */
#pageNavigator {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 6px;
  z-index: 1000;
}

/* ===================== 🔹 Toggle Button ===================== */
#navToggle {
  background: linear-gradient(135deg, #0077ff, #00cfff);
  border: none;
  padding: 6px 10px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 24px;
  width: 24px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease,
    background 0.3s ease;
}

#navToggle:hover,
#navToggle:focus {
  transform: scale(1.3);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
  background: linear-gradient(135deg, #00cfff, #0077ff);
}

#navToggle:active {
  transform: scale(0.95);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

/* ===================== 🔹 Dots ===================== */
#navToggle .dot {
  height: 4px;
  width: 4px;
  background: white;
  border-radius: 50%;
  display: block;
  margin: 2px auto;
  transition: all 0.3s ease;
}

#navToggle:hover .dot {
  animation: bounce 0.6s infinite alternate;
}

@keyframes bounce {
  0% {
    transform: translateY(0);
  }

  100% {
    transform: translateY(-4px);
  }
}

/* ===================== 🔹 Hidden Content ===================== */
.navContent {
  display: none;
  gap: 4px;
  align-items: center;
}

.navContent.show {
  display: flex;
  animation: slideUp 0.3s ease forwards;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===================== 🔹 Buttons Inside navContent ===================== */
.navContent .navBtn {
  background: #0077ff;
  color: #fff;
  border: none;
  padding: 6px 10px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: bold;
  font-size: 16px;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.navContent .navBtn:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

/* ===================== 🔹 Input Inside navContent ===================== */
.navContent input[type="number"] {
  width: 60px;
  padding: 6px;
  text-align: center;
  border-radius: 6px;
  border: 1px solid #ccc;
  outline: none;
  direction: ltr;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.navContent input[type="number"]:focus {
  box-shadow: 0 0 6px rgba(0, 119, 255, 0.5);
  transform: scale(1.05);
}

.refresh-btn {
  position: relative;
  width: 30px;
  /* بٹن کا سائز چھوٹا کیا */
  height: 30px;
  margin: 0 auto;
  border-radius: 50%;
  /* گول شکل */
  background: #0077ff;
  /* بٹن کا رنگ */
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  /* نیچے خوبصورت shadow */
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.refresh-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

.refresh-btn .arrow {
  position: absolute;
  width: 6px;
  /* arrow کی width چھوٹی */
  height: 6px;
  /* arrow کی height چھوٹی */
  background-color: white;
}

.refresh-btn .arrow.top {
  top: 4px;
  left: 50%;
  transform: translateX(-50%) rotate(45deg);
}

.refresh-btn .arrow.right {
  top: 50%;
  right: 4px;
  transform: translateY(-50%) rotate(45deg);
}

.refresh-btn .arrow.bottom {
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%) rotate(45deg);
}

.refresh-btn .arrow.left {
  top: 50%;
  left: 4px;
  transform: translateY(-50%) rotate(45deg);
}

/* Chrome, Safari, Edge, Opera */
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  /* arrows ہٹا دیں */
  margin: 0;
}

/* Firefox */
input[type="number"] {
  -moz-appearance: textfield;
  /* Firefox میں arrows ہٹا دیں */
}

.gotoNumber {
  font-family: var(--font-urdu);
  text-align: center;
  text-shadow: 0px 0px 1px #000;
  /* ہر حرف کے گرد چھوٹا سا shadow */
  letter-spacing: 2px;
  font-weight: bolder;
  /* نمبر کو درمیان میں دکھانے کے لیے */
  direction: ltr;
  /* نمبر Left-to-Right میں رہیں */
}

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