#legislation {
  width: 100%;
}

.legislation-search {

  display: flex;
  margin-bottom: 2.5rem;
}
.legislation-search input[type='text'] {
  padding-top: 0;
  margin-bottom: 0;
}
.legislation-search .btn-search {
  border: 2px solid #ddd;
  outline: none;
  border-radius: 5px;
  background-color: #7f1f3b;
  cursor: pointer;
}
.legislation-search form {
  display: flex;
  gap: 10px;
}
#legislation .legislation-grid {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap:1.5rem;
}

#legislation #legislation-categories {
  display: flex;
  padding: 2rem;
  flex-direction: column;
  row-gap: 1rem;
  border: 2px solid #ddd;
  border-radius: 15px;

  height: max-content;
}
#legislation #legislation-categories h4{
  color: #7f1f3b;
  font-size: 30px;
  padding-bottom: .5rem;
  border-bottom: 3px solid #7f1f3b;
  margin: 0;
}
#legislation #legislation-categories label {
  font-size: 20px;
  color: #7f1f3b;
  cursor: pointer;
  font-weight: 400;
}
#legislation #legislation-categories input[type='checkbox'] {
  accent-color: #0d4261;
}
.legislation-item {
  border: 2px solid #ddd;
  padding: 10px;
  margin-bottom: 10px;
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  background-color: #fff;
}
.legislation-item:hover{
  border: 2px solid #7f1f3b;
  background-color:#7f1f3b14;
}
.legislation-head-title {
  display: flex;
  align-items: center;
  column-gap: 0.5rem;
}

.legislation-item .legislation-head-title h5 {
  margin: 0;
  color: #414141;
  font-size: 16px;
}

.legislation-item .legislation-content {
  margin-bottom: 10px;
}

/* Magnific Popup styles */

#pdf-popup {
  max-width: 80%;
  max-height: 80%; /* تحديد الحد الأقصى للارتفاع */
  margin: 0 auto;
  overflow-y: auto; /* تمكين التمرير العمودي */
  direction: rtl; /* ضبط الاتجاه من اليمين إلى اليسار */
}

#pdf-canvas {
  width: 100%;
  height: auto;
  border: 1px solid #ccc;
}


#lp-pdf-popup {
  display: flex;
  justify-content: center;
}
.mfp-content {
  width: 1000px;
  max-width: 100%;
}

.mfp-hide {
  display: none;
}
.mfp-close-btn-in .mfp-close{
  background-color: #7f1f3b;
  color: #fff !important;
  padding: 1rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
/* Loader */
#legislation .loader {
  display: none;
  border: 16px solid #f3f3f3;

  border-top: 16px solid #7f1f3b;

  border-radius: 50%;
  width: 120px;
  height: 120px;
  animation: spin 2s linear infinite;
  margin: auto;
  margin-top: .5rem;
}

#legislation #pagination {
  margin-top: 1rem;
display: flex;
column-gap: .5rem;
width: 100%;
align-items: center;
justify-content: center;
}
#legislation #pagination button{
  background-color: #0d4261;
  border: 1px solid #0d4261;
  color:#f3f3f3;
  padding: .2rem .5rem;
  border-radius: 5px;
}
#legislation #pagination button.active{
  background-color: #7f1f3b;
  border: 1px solid #7f1f3b;
  color:#f3f3f3
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}
@media  (min-width: 991px) {

  #legislation #lp-pdf-link-mobile{
    display: none !important;
  }
  #legislation #lp-pdf-link{
    display: block !important;
  }
}
@media  (max-width: 991px) {

  #legislation #lp-pdf-link-mobile{
    display: block !important;
  }
  #legislation #lp-pdf-link{
    display: none !important;
  }
}