#custom-filter-form {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    padding: 20px;
    background: linear-gradient(180deg, #4B0082, #BA55D3);
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
    justify-content: space-between;
  }
  
  #custom-filter-form input[type="text"],
  #custom-filter-form select {
    min-height: 42px; /* توحيد الارتفاع */
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #d8b5ff;
    border-radius: 8px;
    font-size: 15px;
    background-color: #fff;
    box-sizing: border-box;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
  }
  @media (min-width: 769px) {
    #custom-filter-form input[type="text"],
    #custom-filter-form select {
      flex: 1 1 200px;
      width: auto;
    }
  }
  #custom-filter-form input[type="text"]:focus,
  #custom-filter-form select:focus {
    border-color: #BA55D3;
    box-shadow: 0 0 0 2px rgba(186, 85, 211, 0.3);
    outline: none;
  }
  
  #custom-filter-form button[type="submit"] {
    padding: 10px 20px;
    background-color: #BA55D3;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    cursor: pointer;
    transition: background-color 0.3s ease;
  }
  
  #custom-filter-form button[type="submit"]:hover {
    background-color: #9b45b0;
  }
  
  #custom-filter-results {
    margin-bottom: 30px;
  }
  
  #loading-spinner,
  #no-results-message {
    text-align: center;
    font-size: 16px;
    color: #6e6e6e;
    margin: 20px 0;
  }
  
  #load-more-posts {
    display: block;
    margin: 0 auto 40px;
    padding: 10px 25px;
    font-size: 15px;
    background-color: #f3e6ff;
    border: 1px solid #d4b0f0;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    color: #4B0082;
  }
  
  #load-more-posts:hover {
    background-color: #e6d3ff;
  }
  
  @media (max-width: 768px) {
    #custom-filter-form {
      flex-direction: column;
    }
  
    #custom-filter-form input[type="text"],
    #custom-filter-form select,
    #custom-filter-form button[type="submit"] {
      width: 100%;
    }
  }
  
  .filter-post-item {
    background: #ffffffdb;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    margin-bottom: 25px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: box-shadow 0.3s ease;
  }
  
  .filter-post-item:hover {
    box-shadow: 0 6px 18px rgba(75, 0, 130, 0.15);
  }
  
  .course-header {
    margin-bottom: 15px;
  }
  
  .course-title , .course-header a{
    font-size: 20px;
    margin: 0 0 5px;
    color: #4B0082;
  }
  
  .course-code {
    color: #9e7bb5;
    font-size: 14px;
  }
  
  .main-details-list {
    display: flex;
    gap: 8px;
    margin-bottom: 5px;
  }
  @media (max-width: 768px) {
    .main-details-list {
      flex-direction: column;
    }
  }
  .course-meta {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 15px;
  }
  
  .course-meta-item {
    color: #555;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
  }
  
  .course-meta-item i {
    color: #BA55D3;
    min-width: 16px;
  }
  
  .course-meta-item span {
    background: #f6edff;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 13px;
    color: #4B0082;
  }
  
  .course-footer {
    margin-top: auto;
    display: flex;
    justify-content: flex-end;
  }
  
  .visit-course-button {
    background: #BA55D3;
    color: #fff;
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 14px;
    text-decoration: none;
    transition: background 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
  }
  
  .visit-course-button:hover {
    background: #a349ba;
  }
  #redirect-filter-form {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    padding: 20px;
    background: linear-gradient(180deg, #4B0082, #BA55D3);
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    justify-content: space-between;
  }
  
  #redirect-filter-form input[type="text"],
  #redirect-filter-form select {
    min-height: 42px; /* توحيد الارتفاع */
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #d8b5ff;
    border-radius: 8px;
    font-size: 15px;
    background-color: #fff;
    box-sizing: border-box;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
  }
  @media (min-width: 769px) {
    #redirect-filter-form input[type="text"],
    #redirect-filter-form select {
      flex: 1 1 200px;
      width: auto;
    }
  }
  #redirect-filter-form input[type="text"]:focus,
  #redirect-filter-form select:focus {
    border-color: #BA55D3;
    box-shadow: 0 0 0 2px rgba(186, 85, 211, 0.3);
    outline: none;
  }
  
  #redirect-filter-form button[type="submit"] {
    padding: 10px 20px;
    background-color: #BA55D3;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    cursor: pointer;
    transition: background-color 0.3s ease;
  }
  
  #redirect-filter-form button[type="submit"]:hover {
    background-color: #9b45b0;
  }
  
  
  @media (max-width: 768px) {
    #redirect-filter-form {
      flex-direction: column;
    }
  
    #redirect-filter-form input[type="text"],
    #redirect-filter-form select,
    #redirect-filter-form button[type="submit"] {
      width: 100%;
    }
  }
  
