@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Source+Code+Pro&display=swap");
@font-face {
  font-family: "Droid Arabic Naskh";
  src: url("../fonts/DroidNaskh-Regular.woff2") format("woff2"),
    url("../fonts/DroidNaskh-Regular.woff") format("woff"),
    url("../fonts/DroidNaskh-Regular.ttf") format("truetype");
    font-weight: 400;
    font-style: normal;
}
*,
*::after,
*::before {
  margin: 0;
  padding: 0;
  box-sizing: inherit;
}
:root {
  --back: #520102;  
  --back-drk: #3D0102;
  --back-lite: #690102;
  --ftr: #2E0001;
  --gold: #a9ad93;
  --light: #b1b5c0;
  --gray: #5b6887;
  --white: #fff;
}
html {
  font-size: 62.5%;    /* it is 10px */
  -webkit-text-size-adjust: 62.5%;
  box-sizing: border-box;
  -moz-box-sizing: border-box;
  -webkit-box-sizing: border-box;
}
body {
  font-family: "Montserrat", sans-serif;
  font-size: 1.5rem;
  background-color: var(--back);
  color: var(--gold);
  scroll-behavior: smooth;
}
.container {
  max-width: 95%;
  min-width: 300px;
  margin: auto;
}
.container2 {
  font-family: "Source Code Pro", monospace;  
  color: white;
  position: relative;
  margin: 0 auto;
  max-width: 600px;
  width: 100%;
  padding: 0 7px;
}
.basmalah {
  max-width: 25%;
  min-width: 200px;
  padding: 1rem 0;
  margin: auto;
}
.jamia-name-large img {
  filter: drop-shadow(-2px 2px 2px rgb(21, 21, 21));
  -webkit-filter: drop-shadow(-2px 2px 2px rgb(21, 21, 21));
  -moz-filter: drop-shadow(-2px 2px 2px rgb(21, 21, 21));
  -ms-filter: drop-shadow(-2px 2px 2px rgb(21, 21, 21));
  -o-filter: drop-shadow(-2px 2px 2px rgb(21, 21, 21));
  margin-bottom: 7rem;
  margin-top: 4rem;
}
.welcome {
  font-size: 4rem;
  font-weight: bold;
  line-height: 4rem;
  text-align: center;
  padding-top: 3rem;
  text-shadow: 2px 2px 3px #000;
}
.welcome2 {
  color: white;
}
.line {
  height: 2px;
  width: 80%;
  background-color: var(--gray);
  margin: 7rem auto;
}
.line2 {
  height: 2px;
  width: 80%;
  background-color: var(--gray);
  margin: 4rem auto;
}
.urdu-text {
  font-family: "Droid Arabic Naskh";
  font-size: 3.5rem;
  padding-top: 3rem 0;
  color: var(--light);
  text-align: center;
}
.urdu-text2 {
  font-family: "Droid Arabic Naskh";
  font-size: 1.8rem;
  line-height: 25px;
}
.news {
  font-size: 1.4rem;
  color: var(--light);
  line-height: 3rem;
  text-align: center;
}
a:link,
a:visited {
  color: white;
  text-decoration: none;
}
.news .news-dars {
  display: inline-block;
  padding: 0 3px;
  color: rgb(248, 224, 159);
}
.new-homepage {
  line-height: 2.5rem;
  color: var(--light);
  text-align: center;
  margin-top: 2rem;
}
a:hover {
  color: var(--gold);
}
.option-links:hover,
.collection1:hover,
.collection2:hover,
.item3:hover,
.item2:hover,
.item:hover {
  transition: 0.5s ease;
  -webkit-transition: 0.2s ease;
  -moz-transition: 0.2s ease;
  -ms-transition: 0.2s ease;
  -o-transition: 0.2s ease;
  box-shadow: inset 0px 0px 120px rgba(0, 0, 0, 0.9);
  -moz-box-shadow: inset 0px 0px 120px rgba(0, 0, 0, 0.9);
  -webkit-box-shadow: inset 0px 0px 120px rgba(0, 0, 0, 0.9);
}
/* ---------------- Hadith page ------------------- */
/* slider */
logo-slider {
  --image-size: 60px;  
  padding: 10px;
  overflow: hidden;
  max-width: 900px;
  width: 100%;
  margin: 0 auto;
  margin-bottom: 2rem;
  position: relative;
  background-color: rgb(255, 255, 255);
  display: flex;}
logo-slider:hover div {
  animation-play-state: paused;}
logo-slider div {
  display: flex;
  position: relative;
  animation: marquee 33s linear infinite;      /* increase the 33s value to slowdown the scrolling speed */
  justify-content: space-around;}
logo-slider img {
  display: block;
  min-width: var(--image-size);
  height: var(--image-size);
  margin: 0 1vw;}
logo-slider:after {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  left: 0;
  top: 0;
  background: linear-gradient(to right, white, 
          rgba(255, 255, 255, 0) 80px, 
          rgba(255, 255, 255, 0) calc(100% - 80px), white);}
@media (max-width: 900px) {
  logo-slider {
    --image-size: 40px;
    --image-size: min(max(50px, 10vw), 100px);  } }
@keyframes marquee {
  0% { transform: translateX(-100%);  }
  100% { transform: translateX(0%);  } }
 /* ================================== */
 .main-image-box {
  display: grid;
  grid-template-columns: auto 750px auto;
  align-items: center;
  justify-content: center;
  gap: 50px;}
@media (min-width: 901px) and (max-width: 1000px) {
  .main-image-box { gap: 10px;} }
.hadith-button-box1,
.hadith-button-box2 {
  display: flex;
  justify-content: center;
  align-items: center;}
#image-container {
  width: 100%;
  max-width: 750px;
  box-shadow: -5px 5px 15px rgba(0, 0, 0, 0.3);
  margin: auto;}
.prev-btn,
.next-btn {
  background-color: var(--light); 
  border: none;
  border-radius: 30px;
  width: 6rem;
  height: 6rem;
  padding: 1.5rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
  display: flex;  
  flex-direction: row;
  justify-content: center;
  align-items: center; }
.prev-btn:hover,
.prev-btn:active,
.next-btn:active, 
.next-btn:hover {
  background-color: var(--back-lite);}
@media (max-width: 900px) {  
  .main-image-box {    
    max-width: 750px;
    margin: auto;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: auto auto;
    gap: 10px;   }
  .hadith-button-box1 {
    grid-column: span 1; 
    order: 1; }
  .hadith-button-box2 {
    grid-column: span 1; 
    order: 2; }
  #image-container {    
    grid-column: 1 / -1;
    order: 3; }  
  .prev-btn,
  .next-btn {    
    width: 6rem;
    height: 4rem;}  }
@media (min-width: 901px) {
  #image-container {      
   height: 600px;  } }
        

#image-container img {
  width: 100%;
  height: auto;}
/* ======================== Video Part on main page ============================ */



/* Video Gallery Styles */
.video-gallery-section {
  padding: 2rem 0;
  max-width: 1000px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.section-header h2 {
  font-size: 2.2rem;
  color: #2c3e50;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.section-header p {
  color: #7f8c8d;
  font-size: 1.1rem;
}

.video-gallery-container {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  padding: 2rem;
}

.main-video-player {
  margin-bottom: 2.5rem;
}

.video-wrapper {
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* 16:9 Aspect Ratio */
  background: #000;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.youtube-player {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.video-placeholder {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #1a1a1a;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.placeholder-content {
  text-align: center;
  color: #fff;
}

.play-icon {
  margin-bottom: 1rem;
  transition: transform 0.3s ease;
}

.video-placeholder:hover .play-icon {
  transform: scale(1.1);
}

.placeholder-content p {
  font-size: 1.2rem;
  margin: 0;
  opacity: 0.9;
}

.video-info {
  padding: 1.5rem 0.5rem 0.5rem;
}

.video-title {
  font-size: 2rem;
  margin: 0 0 0.8rem 0;
  color: #2c3e50;
  font-weight: 600;
  line-height: 1.3;
}

.video-description {
  margin: 0;
  color: #7f8c8d;
  line-height: 1.6;
  font-size: 1.4rem;
}

/* Thumbnail Carousel */
.thumbnail-carousel-container {
  display: flex;
  align-items: center;
  position: relative;
}

.thumbnails-wrapper {
  flex: 1;
  overflow: hidden;
}

.thumbnails-track {
  display: flex;
  transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1);
  padding: 0.5rem 0;
}

.video-thumb {
  position: relative;
  flex: 0 0 200px;
  margin: 0 10px;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s ease;
  background: #fff;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

.video-thumb:first-child {
  margin-left: 0;
}

.video-thumb:last-child {
  margin-right: 0;
}

.video-thumb:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.video-thumb.active {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(44, 62, 80, 0.2);
}

.thumb-image {
  position: relative;
  height: 120px;
  overflow: hidden;
}

.thumb-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.video-thumb:hover .thumb-image img {
  transform: scale(1.05);
}

.thumb-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.video-thumb:hover .thumb-overlay {
  opacity: 1;
}

.video-thumb.active .thumb-overlay {
  opacity: 1;
  background: rgba(44, 62, 80, 0.7);
}

.thumb-info {
  padding: 12px;
}

.thumb-info h4 {
  margin: 0;
  font-size: 0.95rem;
  color: #2c3e50;
  font-weight: 500;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* 🎥 Video carousel buttons only */
.thumbnail-carousel-container .carousel-nav-btn {
  background-color: var(--light); 
  border: none;
  border-radius: 30px;
  width: 6rem;
  height: 6rem;
  padding: 1.5rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
  display: flex;  
  flex-direction: row;
  justify-content: center;
  align-items: center;
  z-index: 2;
  margin: 0 8px;
}

.thumbnail-carousel-container .carousel-nav-btn:hover {
  background: var(--back-lite);
  color: #fff;
  transform: scale(1.05);
}

.thumbnail-carousel-container .carousel-nav-btn:active {
  transform: scale(0.95);
}

.thumbnail-carousel-container .carousel-nav-btn:disabled {
  opacity: 0.5;
}


.no-videos {
  text-align: center;
  padding: 2rem;
  color: #7f8c8d;
  font-style: italic;
}


/* Responsive adjustments */
@media (max-width: 1200px) {
  .video-gallery-container {
    margin: 0 1.5rem;
  }
}

@media (max-width: 992px) {
  .section-header h2 {
    font-size: 1.8rem;
  }
  
  .video-title {
    font-size: 1.3rem;
  }
  
  .video-thumb {
    flex: 0 0 180px;
  }
}


@media (max-width: 768px) {
  .video-gallery-section {
    padding: 0;
    max-width: 100%;
    margin: 0;
  }
  
  .video-gallery-container {
    width: 100%;
    padding: 0;
    margin: 0;   /* 🔹 remove auto-centering so it goes full width */
    
  }
  
  .video-info {
    padding: 1rem 0.5rem 0.5rem;
  }
  
  .video-title {
    font-size: 1.2rem;
  }
  
  .video-description {
    font-size: 1rem;
  }
  
  .video-thumb {
    flex: 0 0 160px;
  }
  
  .thumb-image {
    height: 100px;
  }
  
  .carousel-nav-btn {
    width: 40px;
    height: 40px;
  }
}

@media (max-width: 576px) {
  .section-header {
    margin-bottom: 1.5rem;
  }
  
  .section-header h2 {
    font-size: 1.5rem;
  }
  
  .section-header p {
    font-size: 1rem;
  }
  
  .main-video-player {
    margin-bottom: 1.5rem;
  }
  
  .video-thumb {
    flex: 0 0 140px;
    margin: 0 6px;
  }
  
  .thumb-info {
    padding: 8px;
  }
  
  .thumb-info h4 {
    font-size: 0.85rem;
  }
  
  .carousel-nav-btn {
    width: 36px;
    height: 36px;
    margin: 0 4px;
  }
}


/* ============================================== */
.go-to-container {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 20px;  }  
.go-to-input {
  width: 90px;
  padding: 5px;
  font-size: 16px;
  border: 1px solid #ccc;
  border-radius: 5px;  }
.go-to-btn {
  background-color: #007bff;
  color: #fff;
  padding: 5px 15px;
  border: none;
  margin-right: 10px;
  cursor: pointer;
  font-size: 16px;
  border-radius: 5px;
  transition: background-color 0.3s ease;  }  
.go-to-btn:hover {
  background-color: #0056b3;  }
  .modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.7);  }
  
  .modal-content {
    background-color: #e0e0e0;
    margin: 15% auto;
    padding: 20px;
    border: 2px solid var(--gray);
    border-radius: 10px;
    width: 80%;
    color: var(--back-drk);
    text-align: center;  }
  
    .modal-content p {
      font-family: "Droid Arabic Naskh";
      font-size: 1.8rem;
      line-height: 25px;
      margin-top: 5px;
    }
    
  .close {
    color: var(--back-drk);
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;  }
  
  .close:hover,
  .close:focus {
    color: #000;
    text-decoration: none;
    cursor: pointer;  }
  
/* _______________________upload history styling_______________________ */
.upload-history {
  max-width: 500px;
  margin: auto;
}
.collapsible {
  background-color: var(--back-drk);
  color: white;
  cursor: pointer;
  padding: 10px 18px;
  width: 100%;
  border: none;
  text-align: left;
  outline: none;
  font-size: 1.5rem;
  box-shadow: 2px 2px black;
  -moz-box-shadow: 2px 2px black;
  -webkit-box-shadow: 2px 2px black;
}
.active,
.collapsible:hover {
  background-color: var(--gray);
}
.collapsible:after {
  content: "\002B";
  color: white;
  font-weight: bold;
  float: right;
  margin-left: 5px;
}
.active:after {
  content: "\2212";
}
.content1 {
  max-height: 0;
  background: var(--back-drk);
  border: 1px solid #6c7385;
  overflow: hidden;
  transition: max-height 0.5s ease-out;
  -webkit-transition: max-height 0.2s ease-out;
  -moz-transition: max-height 0.2s ease-out;
  -ms-transition: max-height 0.2s ease-out;
  -o-transition: max-height 0.2s ease-out;
}
/* _____________________________ grid1 _________________________ */
.grid1 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  max-width: 96%;
  margin: 0 auto;
  direction: rtl;
}
.item2,
.item {
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  background: var(--back-drk);
  border: 2px solid var(--gold);
  text-align: center;
  color: white;
  border-radius: 10px;
  -moz-border-radius: 10px;
  -webkit-border-radius: 10px;
  -o-border-radius: 10px;
}
.item div:nth-last-child(odd) {
  padding-top: 5px;
  min-height: 82px;
  padding-left: 5px;
  padding-right: 5px;
}
.collection2 {
  max-width: 40%;
  margin: auto;
  font-size: 1.5rem;
  line-height: 2.5rem;
  background: var(--back-drk);
  color: white;
  text-align: center;
  border: 2px solid var(--gold);
  padding: 15px;
  border-radius: 15px;
  -moz-border-radius: 15px;
  -webkit-border-radius: 15px;
  -o-border-radius: 15px;
}
.fb-social {
  margin: 1rem auto;
  text-align: center;
}
.fb-social p {
  color: var(--gold);
  margin-bottom: 1rem;
  margin-top: 2rem;
}
.social-icon-fb {
  width: 56px;
  height: 56px;
  margin-bottom: 1rem;
  display: inline-block;
}
.social-icon-fb {
  background: url('../images/fb-social-icon.svg') no-repeat;
}
a:active .social-icon-fb,
a:hover .social-icon-fb {
  background: url('../images/fb-social-icon-over.svg') no-repeat;
}

.go-youtube {
  width: 48px;
  height: 48px;
  margin: 1rem auto;
  text-align: center;}

.go-youtube p {
  color: var(--gold);
  margin-bottom: 1rem;
  margin-top: 2rem;}

.youtube-icons {
  width: 48px;
  height: 48px;	
  margin-bottom: 1rem;
  display: inline-block;}

.youtube-icons {
  background: url('../images/youtube-icon.svg') no-repeat;}
  
a:active .youtube-icons,
a:hover .youtube-icons {
  background: url('../images/youtube-icon1.svg') no-repeat;
}



/* _______________________ latest dars place __________________________ */
.latest-dars {
  display: flex;
  direction: rtl;
  max-width: 95%;
  margin: auto;
  justify-content: space-between;
}
.item3 {
  border: 2px solid #a9ad93;
  padding: 10px;
  background: var(--back-drk);
  flex-basis: 45%;
  border-radius: 15px;
  -moz-border-radius: 15px;
  -webkit-border-radius: 15px;
  -o-border-radius: 15px;
  margin: auto;
}
/* _______________________ in case of any issue __________________________ */
.topic1.sadqa {
  max-width: 80%;
  background: var(--back-drk);
}
.collection1,
.topic1 {
  max-width: 60%;
  margin: auto;
  font-size: 1.5rem;
  line-height: 2.5rem;
  background: var(--back-lite);
  color: white;
  text-align: center;
  border: 2px solid var(--gold);
  padding: 15px;
  border-radius: 15px;
  -moz-border-radius: 15px;
  -webkit-border-radius: 15px;
  -o-border-radius: 15px;
}
.collection3 {
  max-width: 700px;
  margin-top: 40px;  
  margin-right: auto;
  margin-left: auto;
  text-align: center;  
  display: block;
}
/* _______________________ grid 2 ______________________________ */
.grid2 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  max-width: 90%;
  margin: 0 auto;
  direction: rtl;
}
.item2 div:nth-last-child(odd) {
  min-height: 56px;
  padding-left: 5px;
  padding-right: 5px;
}
.book-name {
  font-weight: 600;
  line-height: 2.5rem;
}
/* _____________________________ options page __________________________ */
.option-links {
  max-width: 40%;
  margin: auto;
  background: var(--back-drk);
  text-align: center;
  border: 2px solid var(--gold);
  margin-bottom: 5rem;
  border-radius: 15px;
  -moz-border-radius: 15px;
  -webkit-border-radius: 15px;
  -o-border-radius: 15px;
}
.option-text {
  padding: 1rem;
}
/* ___________________________ footer ___________________________ */
.pg-footer {
  background: var(--ftr);
  min-height: 120px;
  text-align: center;
  margin-top: 4rem;
}
.copyright {
  font-size: 1.3rem;
  line-height: 2rem;
  padding-top: 2.5rem;
}
/* ___________________________ audio page _____________________________ */
.container1 {
  font-family: "Source Code Pro", monospace;
  color: white;
  position: relative;
  margin: 0 auto;
  max-width: 800px;
  width: 100%;
  padding: 0 7px;
  
}
.column {
  width: inherit;
}
.container1 p {
  color: #fff;
  display: block;
  font-size: 1.6rem;
  font-weight: 400;
  margin: 0 0 2px;
}
.links2 a,
.links2 a:visited {
  color: #bbdef5;
  text-decoration: none;
}
.links2 p,
.links2 p {
  font-size: 1.6rem;
  line-height: inherit;  
  text-align: center;
}
.links2 .link-detail-urdu {
  font-family: "Droid Arabic Naskh";
  font-size: 1.8rem;
  padding-bottom: .5rem;
}
.pad-below-40 {
  padding-bottom: 3.5rem;
}
.pad-below-10 {
  padding-bottom: 1rem;
}
.margin-below {
  margin-bottom: 3.5rem;
}
.links a,
.links a:visited {
  color: #bbdef5;
  text-decoration: none;
}
a:hover,
a:focus {
  color: var(--gold);
}
.links p,
.links p {
  font-size: 1.8rem;
  line-height: inherit;  
  text-align: center;
  padding: 1rem;
}
.left {
  float: left;
}
.right {
  float: right;
}
.center {
  text-align: center;
}
.hidden {
  display: none;
}
.no-support {
  margin: 2rem auto;
  text-align: center;
  width: 90%;
}
/* Audio Player Styles
================================================== */
audio {
  display: none;
}
#audiowrap,
#plwrap {
  margin: 0 auto;
}
#tracks {
  font-size: 0;
  position: relative;
  text-align: center;
}
#nowPlay {
  display: block;
  font-size: 0;
}
#nowPlay span {
  font-family: "Montserrat", sans-serif;
  display: inline-block;
  font-size: 1.6rem;
  vertical-align: top;
}
#nowPlay span#npAction {
  padding: 21px;
  width: 30%;
}
#nowPlay span#npTitle {
  padding: 21px;
  text-align: center;
  width: 70%;
}
#plList li {
  cursor: pointer;
  display: block;
  margin-left: 0px;
  margin-right: -21px;
  padding: 19px 0;
}
#plList li:hover {
  background-color: rgba(0, 0, 0, 0.1);
  color: var(--gold);
}
.plItem {
  position: relative;
}
.plTitle {
  left: 50px;
  overflow: hidden;
  position: absolute;
  right: 100px;
  text-overflow: ellipsis;
  top: 0;
  white-space: nowrap;
}
.plNum {
  padding-left: 0;
  width: 50px;
}
.plLength {
  color: var(--gold);
  padding-left: 21px;
  position: absolute;
  right: 21px;
  top: 0;
}
.plSel,
.plSel:hover {
  background-color: rgba(0, 0, 0, 0.1);
  color: #fff;
  cursor: default important;
}
#tracks a {
  border-radius: 3px;
  color: #fff;
  cursor: pointer;
  display: inline-block;
  font-size: 3.2rem;
  height: 35px;
  line-height: 0.175;
  margin: 0 5px 30px;
  padding: 10px;
  text-decoration: none;
  transition: background 0.3s ease;
}
#tracks a:last-child {
  margin-left: 0;
}
#tracks a:hover,
#tracks a:active {
  background-color: rgba(0, 0, 0, 0.1);
  color: #fff;
}
#tracks a::-moz-focus-inner {
  border: 0;
  padding: 0;
}
/* Plyr Overrides
================================================== */
.plyr--audio .plyr__controls {
  background-color: transparent;
  border: none;
  color: #fff;
  padding: 20px 20px 20px 13px;
  width: 100%;
}
.plyr--audio .plyr__controls button.tab-focus:focus,
.plyr--audio .plyr__controls button:hover,
.plyr__play-large {
  background: rgba(0, 0, 0, 0.1);
}
.plyr__progress--played,
.plyr__volume--display {
  color: rgba(0, 0, 0, 0.1);
}
.plyr--audio .plyr__progress--buffer,
.plyr--audio .plyr__volume--display {
  background: rgba(0, 0, 0, 0.1);
}
.plyr--audio .plyr__progress--buffer {
  color: rgba(0, 0, 0, 0.1);
}
/* _____________________ for player with Arabic list ________________ */
#nowPlay4 span {
  font-family: "Droid Arabic Naskh";
  direction: rtl;
  display: inline-block;
  font-size: 1.6rem;
  vertical-align: top;
}
#nowPlay4 span#npAction {
  font-size: 1.2rem;
  padding: 21px;
  width: 30%;
}
#nowPlay4 span#npTitle4 {
  padding: 21px;
  text-align: center;
  width: 70%;
}
#plList4 li {  
  cursor: pointer;
  display: block;
  margin-left: -21px;
  margin-right: 0px;
  padding: 15px 0;
}
#plList4 li:hover {
  background-color: rgba(0, 0, 0, 0.1);
  color: var(--gold);
}
.plItem4 {
  position:relative;
}
.plTitle4 {
  left: 90px;
  direction: rtl;
  overflow: hidden;
  position: absolute;
  right: 45px;
  text-overflow: ellipsis;
  top: 0;
  white-space: nowrap;
  
}
.plNum4 {
  padding-right: 0;
  width: 50px;
}
.plLength4 {
  color: var(--gold);
  padding-right: 21px;
  position: absolute;
  left: 21px;
  top: 0;
}
/* ____________________________ download page _______________________________ */
table {
  border-collapse: collapse; /* IE7 and lower */
  border-spacing: 0;
  width: 100%;
  color: var(--gold);
}
table tr {
  line-height: 50px;
}
table tr td a {
  display:block;
  height:100%;
  width:100%;
}
tr:hover {
background-color:rgba(0,0,0,.5);
cursor:pointer;
}
.plTitle2 {
left: 45px;
overflow:hidden;
position:absolute;
right:80px;
text-overflow:ellipsis;
white-space:nowrap;
}
.plLength2 {
  color: var(--gold);
  width:80px;
  text-align: right;
}
.container3 {
  font-family: "Droid Arabic Naskh";
  font-size: 1.8rem;
  direction: rtl;
  max-width: 800px;
  color: white;
  position: relative;
  margin: 0 auto;
  width: 100%;
  padding: 0 7px;
}
.plTitle3 {
  right:35px;
  overflow:hidden;
  position:absolute;
  left:80px;
  text-overflow:ellipsis;
  white-space:nowrap;
  }
.plLength3 {
  color: var(--gold);
  width:80px;
  text-align: left;
}
  
.container2.urdu-text2 {
  font-family: "Droid Arabic Naskh";
  font-size: 1.8rem;
  color: var(--light);
  direction: rtl;
  max-width: 440px;
}
.plTitle5 {
  right:35px;
  overflow:hidden;
  position:absolute;
  left:10px;
  text-overflow:ellipsis;
  white-space:nowrap;
  }
/* ---------------------- Siraji Sawalat images --------------------- */
.gallery {
	display: flex;
  direction: rtl;
	flex-wrap: wrap;
  width: 90%;	
  margin: auto;
  justify-content: space-between;  
}
.images {
  width: 30%;
  margin-bottom: 5.5rem;  
  box-shadow: -3px 3px 10px rgba(0,0,0,.3);
}
.images img {
  display: block;
  width: 100%;  
}
 
/* ____________________ media queries ______________________________ */
@media (max-width: 650px) {
  .welcome {
    font-size: 2rem;
    padding-top: 0px;
    line-height: 3rem;
  }
  .jamia-name-large img {
    filter: drop-shadow(-1px 1px 2px rgb(21, 21, 21));
    -webkit-filter: drop-shadow(-1px 1px 2px rgb(21, 21, 21));
    -moz-filter: drop-shadow(-1px 1px 2px rgb(21, 21, 21));
    -ms-filter: drop-shadow(-1px 1px 2px rgb(21, 21, 21));
    -o-filter: drop-shadow(-1px 1px 2px rgb(21, 21, 21));
    margin-bottom: 4rem;
    margin-top: 2rem;
  }
  .line {
    margin: 5rem;
  }
  .urdu-text {
    font-size: 2.5rem;
  }
  .news {
    font-size: 1.2rem;
  }
  .upload-history {
    max-width: 95%;
    margin: auto;
  }
  .grid2,
  .grid1 {
    grid-template-columns: repeat(1, 1fr);
    gap: 30px;
    max-width: 70%;
  }
  .topic1.sadqa {
    max-width: 98%;
    padding: 5px;
  }
  .option-links,
  .collection1,
  .collection2,
  .topic1 {
    max-width: 90%;
  }
  .latest-dars {
    flex-wrap: wrap;
    max-width: 95%;
    gap: 50px;
  }
  .item3 {
    flex-basis: 90%;
  }
  .container2 {
    max-width: 90%;
  }
  .images {
    width: 90%;
    margin: 3rem auto;
  }
  
}
@media (max-width: 800px) and (min-width: 651px) {
  .welcome {
    font-size: 2.5rem;
  }
  .grid2,
  .grid1 {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    max-width: 80%;
  }
  .option-links,
  .collection1,
  .collection2,
  .topic1 {
    max-width: 70%;
  }
  .latest-dars {
    flex-wrap: wrap;
    max-width: 95%;
    gap: 50px;
  }
  .item3 {
    flex-basis: 90%;
  }
  .container2 {
    max-width: 80%;
  }
  .images {
    width: 90%;
    margin: 3rem auto;
  }
  
}
@media (max-width: 1000px) and (min-width: 801px) {
  .welcome {
    font-size: 3rem;
  }
  .grid1 {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    max-width: 70%;
  }
  .grid2,
  .grid1 {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    max-width: 80%;
  }
  .option-links,
  .collection1,
  .collection2,
  .topic1 {
    max-width: 60%;
  }
  .latest-dars {
    flex-wrap: wrap;
    max-width: 85%;
    gap: 80px;
  }
  .item3 {
    flex-basis: 80%;
  }
  .container2 {
    max-width: 70%;
  }
  
  .images {
    width: 47%;
    margin-bottom: 4rem;  
  }
  
}
@media (min-width: 1501px) {
  .welcome {
    font-size: 7rem;
    line-height: 12rem;
    padding-top: 15rem;
  }
  .jamia-name-large img {
    filter: drop-shadow(-3px 3px 5px rgb(21, 21, 21));
    -webkit-filter: drop-shadow(-3px 3px 5px rgb(21, 21, 21));
    -moz-filter: drop-shadow(-3px 3px 5px rgb(21, 21, 21));
    -ms-filter: drop-shadow(-3px 3px 5px rgb(21, 21, 21));
    -o-filter: drop-shadow(-3px 3px 5px rgb(21, 21, 21));
    margin-bottom: 15rem;
    margin-top: 9rem;
  }
  .grid1 {
    gap: 30px;
    max-width: 90%;
  }
}
/* ======================= audio player ===========================  */
@media only screen and (max-width: 600px) {
  #nowPlay span#npAction {
    display: none;
  }
  #nowPlay span#npTitle {
    display: block;
    text-align: center;
    width: 100%;
  } 
  .container2 {
    max-width: 98%;
  }
  .container3 {    
    font-size: 1.6rem;
    line-height: 2rem;
  }
  .gallery {
  	display: block;
    width: 90%;	
  }
  .images{
    box-shadow: none;
    width: 100%; 
    margin: 0px auto;
  }
  .images img {
    box-shadow: -3px 3px 10px rgba(0,0,0,.3);
    margin-bottom: 2.5rem;
  }
}


/* ====================== audio video player for the page: <<<<<<<< Kutub-e-Dars-e-Nizami_download_page.html >>>>>  =================================  */

/* ======================= Video Browser Modal ============================ */

.video-browser-btn-container {
  display: flex;
  justify-content: center;
  margin: 2rem 0;
}

.browse-all-videos-btn {
  background: linear-gradient(135deg, var(--back-lite) 0%, var(--back) 100%);
  color: var(--white);
  border: none;
  border-radius: 8px;
  padding: 12px 24px;
  font-size: 1.6rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.browse-all-videos-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
  background: linear-gradient(135deg, var(--back) 0%, var(--back-lite) 100%);
}

.browse-all-videos-btn:active {
  transform: translateY(0);
}

.video-browser-modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.85);
  overflow-y: auto;
}

.video-browser-modal-content {
  background-color: #fff;
  margin: 2% auto;
  border-radius: 12px;
  width: 95%;
  max-width: 1400px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  animation: videoBrowserFadeIn 0.3s ease;
  overflow: hidden;
}

@keyframes videoBrowserFadeIn {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}

.video-browser-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2rem;
  border-bottom: 1px solid #eaeaea;
  background: var(--back-drk);
  color: var(--white);
}

.video-browser-header h2 {
  margin: 0;
  font-size: 2.4rem;
  font-weight: 600;
}

.video-browser-close {
  color: var(--white);
  font-size: 3rem;
  font-weight: bold;
  cursor: pointer;
  line-height: 1;
  transition: color 0.2s ease;
}

.video-browser-close:hover {
  color: var(--gold);
}

.video-browser-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 2rem;
  background: #f8f9fa;
  border-bottom: 1px solid #eaeaea;
  flex-wrap: wrap;
  gap: 1rem;
}

.video-browser-search {
  display: flex;
  flex: 1;
  max-width: 400px;
}

.video-search-input {
  flex: 1;
  padding: 10px 16px;
  border: 1px solid #ddd;
  border-radius: 8px 0 0 8px;
  font-size: 1.4rem;
  outline: none;
  transition: border-color 0.2s ease;
}

.video-search-input:focus {
  border-color: var(--back-lite);
}

.video-search-btn {
  background: var(--back-lite);
  color: white;
  border: none;
  border-radius: 0 8px 8px 0;
  padding: 10px 16px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.video-search-btn:hover {
  background: var(--back);
}

.video-browser-sort {
  display: flex;
  align-items: center;
}

.video-sort-select {
  padding: 10px 16px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 1.4rem;
  background: white;
  cursor: pointer;
  outline: none;
  transition: border-color 0.2s ease;
}

.video-sort-select:focus {
  border-color: var(--back-lite);
}

.video-browser-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
  padding: 2rem;
  max-height: 60vh;
  overflow-y: auto;
}

.video-browser-card {
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  cursor: pointer;
}

.video-browser-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.video-browser-thumb {
  position: relative;
  height: 160px;
  overflow: hidden;
}

.video-browser-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.video-browser-card:hover .video-browser-thumb img {
  transform: scale(1.05);
}

.video-browser-thumb-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.video-browser-card:hover .video-browser-thumb-overlay {
  opacity: 1;
}

.video-browser-priority-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  background: var(--back-lite);
  color: white;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 1rem;
  font-weight: 600;
}

.video-browser-info {
  padding: 1.5rem;
}

.video-browser-title {
  margin: 0 0 0.8rem 0;
  font-size: 1.6rem;
  font-weight: 600;
  color: #2c3e50;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.video-browser-description {
  margin: 0;
  color: #7f8c8d;
  font-size: 1.3rem;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.video-browser-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 4rem 2rem;
  color: #7f8c8d;
}

.video-browser-empty svg {
  margin-bottom: 1.5rem;
  opacity: 0.5;
}

.video-browser-empty p {
  font-size: 1.6rem;
  margin: 0;
}

.video-browser-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 2rem;
  border-top: 1px solid #eaeaea;
  gap: 0.5rem;
}

.video-browser-page-btn {
  background: white;
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 8px 16px;
  font-size: 1.4rem;
  cursor: pointer;
  transition: all 0.2s ease;
  min-width: 44px;
}

.video-browser-page-btn:hover:not(.video-browser-active-page) {
  background: #f8f9fa;
  border-color: #adb5bd;
}

.video-browser-active-page {
  background: var(--back-lite);
  color: white;
  border-color: var(--back-lite);
}

.video-browser-prev-btn,
.video-browser-next-btn {
  font-weight: 600;
}

/* Responsive Design */
@media (max-width: 1200px) {
  .video-browser-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  }
}

@media (max-width: 992px) {
  .video-browser-modal-content {
    width: 98%;
    margin: 1% auto;
  }
  
  .video-browser-controls {
    flex-direction: column;
    align-items: stretch;
  }
  
  .video-browser-search {
    max-width: 100%;
  }
  
  .video-browser-sort {
    align-self: flex-start;
  }
}

@media (max-width: 768px) {
  .video-browser-header {
    padding: 1.5rem;
  }
  
  .video-browser-header h2 {
    font-size: 2rem;
  }
  
  .video-browser-grid {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1.5rem;
    padding: 1.5rem;
  }
  
  .video-browser-thumb {
    height: 140px;
  }
  
  .video-browser-info {
    padding: 1.2rem;
  }
  
  .video-browser-title {
    font-size: 1.4rem;
  }
  
  .browse-all-videos-btn {
    font-size: 1.4rem;
    padding: 10px 20px;
  }
}

@media (max-width: 576px) {
  .video-browser-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
    padding: 1rem;
  }
  
  .video-browser-header {
    padding: 1rem;
  }
  
  .video-browser-header h2 {
    font-size: 1.8rem;
  }
  
  .video-browser-controls {
    padding: 1rem;
  }
  
  .video-browser-pagination {
    padding: 1.5rem;
    flex-wrap: wrap;
  }
  
  .video-browser-page-btn {
    padding: 6px 12px;
    font-size: 1.3rem;
    min-width: 40px;
  }
}