<style>
.input-field {
  padding: 12px 16px;
  border-radius: 999px;
  border: 1px solid #ccc;
  width: 100%;
  font-size: 14px;
  margin-top: 5px;
  font-family: 'Ping AR+LT', sans-serif;
}

.awesomplete {
  width: 100%;
  font-family: 'Ping AR+LT', sans-serif;
}

.awesomplete ul {
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 10px;
  padding: 5px;
  margin-top: 5px;
  font-size: 14px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  max-height: 200px;
  overflow-y: auto;
  direction: rtl;
  z-index: 9999;
}

.awesomplete li {
  padding: 8px 12px;
  cursor: pointer;
  border-radius: 8px;
  transition: background 0.2s;
}

.awesomplete li:hover,
.awesomplete li[aria-selected="true"] {
  background-color: #32bcad;
  color: white;
}

.program-card {
  margin-bottom: 20px;
  display: flex;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.06);
  overflow: hidden;
  flex-direction: column;
}

.program-image-top {
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #fff;
  padding: 20px;
  border-top-left-radius: 20px;
  border-top-right-radius: 20px;
  width: 100%;
  margin: 0 auto;
}

.program-image-top img {
  width: 150px;
  height: 150px;
  object-fit: contain;
}

.card-divider {
  height: 0;
  border-top: 1px solid #32bcad;
  margin: 14px 20px;
  opacity: 0.1; /* لتخفيف اللون قليلاً */
}

.program-details {
  padding: 20px;
  background: #fff;
  border-radius: 0 0 20px 20px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.06);
}

.program-details h3 {
  text-align: center;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.tag {
  display: inline-flex;
  align-items: center;
  background-color: #32bcad1a;
  color: #00678f;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  font-family: 'Ping AR+LT', sans-serif;
  gap: 6px; /* مهم: يعطي مسافة بين الأيقونة والنص */
  direction: ltr;
}

.tag .icon {
  font-style: normal;
  display: inline-block;
  line-height: 1;
}


.tags {
  justify-content: center;
  text-align: center;
}

.price-section {
  margin-top: 8px;
}

.old-price {
  text-decoration: line-through;
  color: #aaa;
  margin-left: 8px;
}

.new-price {
  color: #e74c3c;
  font-weight: bold;
  font-size: 18px;
}

.price-apply-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 24px;
  gap: 16px;
}

.price-section {
  text-align: left;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

@media (max-width: 500px) {
  .price-apply-row {
    flex-direction: column-reverse;
    align-items: center;
  }

  .price-section {
    align-items: center;
  }
}

.button-divider {
  height: 1px;
  background-color: #32bcad;
  border: none;
  margin: 24px 0 16px;
  opacity: 0.7;
}

.apply-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 16px;
}

.apply-button {
  background: #32bcad;
  color: white;
  padding: 10px 20px;
  border-radius: 30px;
  transition: 0.3s;
}

.apply-button:hover {
  background: #00678f;
}

#murshidi-app {
  display: flex !important;
  flex-direction: column !important; /* فلتر فوق + نتائج تحت */
  gap: 16px !important;
}
#murshidi-app .murshidi-sidebar,
#murshidi-app .murshidi-results {
  width: 100% !important;
  max-width: none !important;
}

.murshidi-results > .text-sm {
  margin-bottom: 2rem;
}

@media (max-width: 768px) {
  #murshidi-app {
    flex-direction: column !important;
  }
  #murshidi-app .murshidi-sidebar,
  #murshidi-app .murshidi-results {
    width: 100% !important;
    max-width: 100% !important;
  }
}

#programs-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

/* ✅ شبكة النتائج: 1 / 2 / 3 أعمدة */
#programs-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

@media (min-width: 640px) {
  #programs-container {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  #programs-container {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* ألغِ أي عرض ثابت سابق على الكروت داخل الحاوية */
#programs-container > .program-card {
  min-width: 260px;
}

/* ✅ Toolbar أفقي أعلى الصفحة */
.murshidi-toolbar {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  flex-wrap: wrap;
  padding: 10px 12px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  margin-bottom: 16px;
  overflow-x: auto;
}

.filter-chipbox {
  min-width: 220px;
}

.murshidi-toolbar label {
  font-size: 12px;
  color: #555;
  display: block;
  margin-bottom: 4px;
  font-family: 'Ping AR+LT', sans-serif;
}

/* حاوية الإدخال + تُجهّز لوسوم التعدد لاحقًا */
.chip-input {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  border: 1px solid #e5e7eb;
  padding: 6px 8px;
  border-radius: 10px;
  background: #fafafa;
}

.chip-input > input.awesomplete {
  border: none;
  outline: none;
  min-width: 160px;
  background: transparent;
  padding: 6px 4px;
  font-size: 14px;
  font-family: 'Ping AR+LT', sans-serif;
}

/* زر مسح */
.btn-clear {
  padding: 10px 12px;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
  height: fit-content;
}
.btn-clear:hover { background: #f6f6f6; }

/* ✅ حدود الكروت بألوان مرشدي */
.program-card {
  border: 1px solid #00678f;   /* افتراضي */
  border-radius: 20px;
  background: #fff;
}

/* تناوب الألوان لكل كرت */
#programs-container > .program-card:nth-child(3n + 1) { border-color: #00678f; } /* أزرق */
#programs-container > .program-card:nth-child(3n + 2) { border-color: #32bcad; } /* تركواز */
#programs-container > .program-card:nth-child(3n + 3) { border-color: #00678f; } /* أصفر */

.pager {
  display: flex; gap: 8px; align-items: center; justify-content: center;
  margin: 16px 0 4px;
  direction: ltr;                 /* مهم: يمنع تكسير 29 إلى 2 و 9 */
}
.pager .pg-btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 40px; padding: 8px 12px;
  border: 1px solid #e5e7eb; background: #fff; border-radius: 10px; cursor: pointer;
}
.pager .pg-btn.is-active { background: #32bcad; color: #fff; border-color: #32bcad; }
.pager .pg-btn:disabled { opacity: .4; cursor: not-allowed; }



</style>