.container.py-4{
  direction: ltr ;
}



body{
  background-color: #F8FCF4 !important;
}

a {
  text-decoration: none;
}
/* === Hero Section === */
.hero-section {
  position: relative;
  height: 400px; /* میتونی زیاد یا کم کنی */
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  overflow: hidden;
  margin-top: 5px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.overlay-green {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(125, 205, 64, 0.63),rgba(255, 255, 255, 0.5));
  z-index: 2;
}

.overlay-dark {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.4), transparent);
  z-index: 3;
}

.hero-content {
  position: relative;
  z-index: 4;
  max-width: 900px;
  padding: 0 20px;
}

.hero-content h1 {
  font-size: 2.8rem;
  font-weight: 600;
  margin-bottom: 15px;
  text-shadow: 0 2px 6px rgba(0,0,0,0.5);
}

.hero-content .subtitle {
  font-size: 1.5rem;
  margin-bottom: 15px;
  opacity: 0.95;
  text-shadow: 0 2px 5px rgba(0,0,0,0.4);
  text-align: center;
}

.hero-content .description {
  font-size: 1.1rem;
  line-height: 1.6;
  opacity: 0.85;
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
  text-align: center;
}

/* Responsive */
@media (max-width: 768px) {
  .hero-section { height: 300px; }
  .hero-content h1 { font-size: 2rem; }
  .hero-content .subtitle { font-size: 1.2rem; }
  .hero-content .description { font-size: 1rem; }
}




/* --- Program Cards --- */
.program-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 20px;
  transition: border-color 0.2s ease;
}
.program-card:hover { border-color: #cbd5e1; }

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 10px;
}
.card-title { font-size: 18px; font-weight: 600; color: #111827;  }


.card-title , .card-details div , .card-footer span , .pagination-wrapper div ,.d-block , td , a.page-link {

  font-family: auto;
}

input#searchBox ,button#downloadBookmarks , button#showBookmarks , button#clearBookmarks , button#clearAllFilters , span#bookmarkCount , span#filterCount{
    font-family: auto;
}

button#stateFilterBtn , button#durationFilterBtn, button#priceFilterBtn{
    font-family: revert;
}

.bookmark {
  background: #f3f4f6;
  border: none;
  border-radius: 6px;
  padding: 6px;
  cursor: pointer;
  color: #6b7280;
  transition: 0.2s;
}
.bookmark:hover { background: #e5e7eb; color: #374151; }
.bookmark .icon { transition: fill 0.2s; fill: none; }
.bookmark.active .icon { fill: #2563eb; color: #2563eb; }

.card-subtitle { font-size: 14px; color: #4b5563; margin-bottom: 12px; }

.card-details {
  display: grid;
  grid-template-columns: 60% 20% 20%;
  gap: 10px;
  font-size: 14px;
  color: #374151;
  margin-bottom: 15px;
}

.card-tags {
  border-top: 1px solid #f3f4f6;
  padding-top: 10px;
  margin-top: 10px;
}

.tag {
  display: inline-block;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 500;
  border-radius: 20px;
  margin-right: 6px;
}
.tag.blue  { background: #dbeafe; color: #1d4ed8; margin: 5px;}
.tag.gray  { background: #f3f4f6; color: #374151; margin: 5px;}
.tag.pink  { background: #fce7f3; color: #db2777; }
.tag.green { background: #dcfce7; color: #16a34a; }

.card-footer {
  border-top: 1px solid #f3f4f6;
  padding-top: 10px;
  margin-top: 10px;
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: #6b7280;
}

/* --- Pagination --- */
.pagination-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 15px;
}
.pagination {
  list-style: none;
  display: flex;
  gap: 5px;
  padding: 0;
}
.pagination .page-link {
  display: block;
  padding: 6px 12px;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  text-decoration: none;
  color: #374151;
  font-size: 14px;
  transition: 0.2s;
}
.pagination .page-link:hover { background: #f3f4f6; }
.pagination .active {
  background: #2563eb;
  color: #fff;
  border-color: #2563eb;
}

.bg-white { border-radius: 8px; }

/* --- Filter Pills --- */
.filter-btn {
  display: inline-flex;
  align-items: center;
  padding: 0.375rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 500;
  border: 1px solid #d1d5db;
  background-color: #f9fafb;
  color: #374151;
  cursor: pointer;
  transition: 0.2s;
}
.filter-btn:hover { background-color: #f3f4f6; border-color: #9ca3af; }
.filter-btn.active {
  background-color: #dbeafe;
  border-color: #93c5fd;
  color: #1d4ed8;
}

#clearAllFilters {
  border: 1px solid #fecaca;
  background-color: #fef2f2;
  color: #b91c1c;
}
#clearAllFilters:hover { background-color: #fee2e2; }

/* --- Search Bar --- */
.search-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 6px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
  margin-bottom: 20px;
}
.search-input-wrapper {
  display: flex;
  align-items: center;
  flex: 1;
  padding: 4px 8px;
}
.search-icon { color: #6b7280; margin-right: 6px; }
.search-input {
  border: none;
  outline: none;
  flex: 1;
  font-size: 14px;
  color: #374151;
}
.search-input::placeholder { color: #9ca3af; }

.search-btn {
  background: #2563eb;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 6px 16px;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.2s;
}
.search-btn:hover { background: #1d4ed8; }

.saved-btn {
  display: flex;
  align-items: center;
  gap: 4px;
  background: #f9fafb;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  padding: 6px 12px;
  font-size: 14px;
  color: #374151;
  cursor: pointer;
  transition: background 0.2s;
}
.saved-btn:hover { background: #f3f4f6; }

.saved-count {
  background: #2563eb;
  color: white;
  font-size: 12px;
  font-weight: bold;
  border-radius: 50%;
  padding: 2px 6px;
  line-height: 1;
}

.modal{
  direction: ltr;
  font-family:monospace;

}

.cta-eval {
  min-height: 200px;
}

.cta-image img {
  border-top-left-radius: 18px;
  border-bottom-left-radius: 18px;
}

@media (max-width: 768px) {
  .cta-eval {
    flex-direction: column !important;
    text-align: center !important;
  }

  .cta-image img {
    border-radius: 0;
    width: 100% !important;
    max-height: 180px !important;
    object-fit: cover;
  }
}

/* --- Filter Modals --- */
#priceFilters, #durationFilters, #stateFilters  {
  display: grid;
  gap: 10px;
}

#course_levelFilters {
  display: flex;
  flex-wrap: wrap;
  overflow-y: auto;
}
#course_levelFilters label {
  flex: 1 1 45%;
}


#priceFilters { grid-template-columns: 1fr 1fr; }
#durationFilters { grid-template-columns: 1fr 1fr; }
#stateFilters   { grid-template-columns: repeat(4, 1fr); }

.price-option, .duration-option, .state-option { position: relative; }

.price-option input[type="checkbox"],
.duration-option input[type="checkbox"],
.state-option input[type="checkbox"] {
  display: none;
}

.price-option label,
.duration-option label,
.state-option label {
  display: block;
  padding: 10px 15px;
  border: 1px solid #ddd;
  border-radius: 10px;
  background: #f8f9fa;
  text-align: center;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.price-option input[type="checkbox"]:checked + label {
  background: #4f46e5; color: #fff; border-color: #4f46e5; font-weight: 600;
}
.duration-option input[type="checkbox"]:checked + label {
  background: #0d6efd; color: #fff; border-color: #0d6efd; font-weight: 600;
}
.state-option input[type="checkbox"]:checked + label {
  background: #198754; color: #fff; border-color: #198754; font-weight: 600;
}

/* --- Responsive --- */
@media (max-width: 768px) {
  /* کارت‌ها */
  .card-details { grid-template-columns: 1fr; }
  .program-card { padding: 15px; }
  .card-title { font-size: 16px; }

  /* دکمه‌ها */
  .search-bar { flex-direction: column; align-items: stretch; gap: 10px; }
  .saved-btn { width: 100%; justify-content: center; }

  /* فیلترها */
  #priceFilters, #durationFilters { grid-template-columns: 1fr; }
  #stateFilters { grid-template-columns: repeat(2, 1fr); }

  /* جدول مودال */
  .modal-lg, .modal-xl { --bs-modal-width: 100%; }
  .table { font-size: 12px; }
}

@media (max-width: 480px) {
  .card-header { flex-direction: row; gap: 8px; }
  .search-input { font-size: 13px; }
  .filter-btn { font-size: 12px; padding: 6px 10px; }
  #stateFilters { grid-template-columns: 1fr; }
}






strong a , a strong{
  color: #4A8A2F;
}

.menu-main-menu-container ,.top-menu ul {
  font-weight: 700 !important;
}



@media (max-width: 1000px) {
  
  .widgettitle:after {
      
      width: 160px !important;
      
  }
  footer.footer-box .footer-widgets .container > .row {
    display: flex;
    flex-direction: column;
    gap: 15px;
  }

}