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

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



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

/* =================== 🔹 Container Start =================== */
#container {
  width: 81%;
  margin: 3px auto;
  background: var(--color-white);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  border-radius: 12px;
  padding: 1px 5px 1px 5px;
}

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

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


}

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

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

#top {
  width: 80%;
  margin: 0 auto;
}

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

#footer {
  width: 80%;
  margin: var(--footer-gap) auto 0;
  background: none;
  border: none;
  box-shadow: none;
  padding: 0;
}

#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%;
  }
}

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


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

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

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

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

@font-face {
  font-family: 'MyArabicFont';
  src: url('../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: 10px;
  --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: #FF0000;
  --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: #c2c2c2;
  --color-border-light: #e6e6e6;
  --color-shadow: rgba(0, 0, 0, 0.10);
  --color-shadow-2: rgba(0, 0, 0, 0.08);

}

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


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


/* =================== 🔹 Navigation Start =================== */
#navcontainer {
  position: relative;
  width: 80%;
  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 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: calc(100% + 6px);
  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) {
  #navlist {
    display: none;
    flex-direction: column;
    width: 100%;
    position: absolute;
    top: 50px;
    right: 0;
    background: var(--color-white);
    border-top: 1px solid var(--color-border);
    padding: 10px 0;
    box-shadow: 0 4px 12px var(--color-shadow);
    z-index: 999;
  }

  #navlist.active {
    display: flex;
  }

  .menu-toggle {
    display: flex;
  }

  .has-submenu>.submenu {
    position: relative;
    top: 0;
    right: 0;
    min-width: auto;
    box-shadow: none;
    border: none;
    padding-left: 12px;
  }

  .submenu li a {
    padding: 10px 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-cyan);
  text-align: left;
  font-family: var(--font-urdu);
}

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

#hawalahArbi {
  font-size: var(--font-sm);
  color: var(--color-cyan);
  text-align: left;
  font-family: var(--font-arabic);
}
#sabhawalahArbi {
  color: var(--color-cyan);
  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: 80%;
  margin: 0 auto;
  justify-content: center;
  align-items: center;
  padding: 12px;
}

.search-wrapper {
  position: relative;
  width: 75%;
  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);
}

/* 🔹 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;
}

.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;
}

/* =================== 🔹 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 */
  }
}

.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;
  }
}



/* =================== 🔹 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 میں رہیں */
}

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