/* Container */
.shayr-container {
  max-width: 1100px;
  margin: 30px auto;
  direction: rtl;
  font-family: "Noto Nastaliq Urdu", serif;
}

/* Shayr Grid */
.shayr-section {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 25px;
  padding: 30px;
  direction: rtl;
}

/* List Wrapper */
.shayr-list {
  max-height: 500px;
  overflow-y: auto;
  padding: 10px;
}

/* Shayr Card */
.shayr-card {
  background: linear-gradient(145deg, #0b0f1a, #141a33);
  border-radius: 18px;
  line-height: 3.8px;
  padding: 22px;
  text-align: center;
  color: #f5f5f5;
  font-family: "Noto Nastaliq Urdu", serif;
  position: relative;
  border: 1px solid rgba(212, 175, 55, 0.4);
  transition: all 0.3s ease;
  box-shadow: 0 6px 16px rgba(0,0,0,0.3);
  margin-bottom: 14px;
}

.shayr-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(212,175,55,0.15), transparent);
  opacity: 0;
  transition: 0.3s;
}

.shayr-card:hover::before {
  opacity: 1;
}

.shayr-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 15px 35px rgba(0,0,0,0.6);
}

/* Shayr Text */
.shayr-line,
.shayr-text p {
  padding: 5px 30px;
  line-height:2.9rem;
  font-size: 22px;
  line-height: 2;
  color: #f5f5f5;
  margin: 0;
  text-align: justify;
  text-align-last: justify;
}

/* Poet Name */
.shayr-poet {
  margin-top:20px;
  display: block;
  margin-top: 12px;
  font-size: 14px;
  color: #aaa;
}

/* Actions */
.shayr-actions {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-top: 18px;
}

.shayr-actions a {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255,255,255,0.05);
  color: #d4af37;
  font-size: 16px;
  transition: 0.3s;
  text-decoration: none;
}

.shayr-actions a:hover {
  background: #d4af37;
  color: #000;
  transform: scale(1.15);
}
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin: 40px 0;
  flex-wrap: wrap;
}

.page-numbers {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.page-btn {
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border-radius: 10px;
  border: 1px solid #d4af37;
  background: #0f1325;
  color: #f5f5f5;
  font-size: 14px;
  cursor: pointer;
  transition: 0.3s ease;
}

.page-btn:hover {
  background: #d4af37;
  color: #000;
  transform: translateY(-2px);
}

.page-btn.active {
  background: #d4af37;
  color: #000;
  font-weight: bold;
}

.page-btn.prev,
.page-btn.next {
  font-size: 16px;
  padding: 0 16px;
}


/* 📱 Mobile */
@media (max-width: 480px) {
  .shayr-card {
    padding: 16px;
    border-radius: 14px;
  }

  .shayr-line,
  .shayr-text p {
    font-size: 17px;
  }
}

/* 📲 Tablet */
@media (max-width: 768px) {
  .shayr-line,
  .shayr-text p {
    font-size: 18px;
  }
}
