/* assets/courses.css */

/* body {
    font-family: 'Inter', sans-serif;
    background-color: #f8f9fa;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
  } */
  .courses_main-container {
    flex-grow: 1;
    display: flex;
    gap: 1rem;
    padding: 2rem;
  }
  /* Sidebar */
  .courses_sidebar {
    min-width: 220px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgb(0 0 0 / 0.1);
    padding: 1rem 1.5rem;
    height: fit-content;
    position: sticky;
    top: 20px;
    align-self: flex-start;
  }
  .courses_sidebar h2 {
    font-size: 1rem;
    margin-bottom: 1rem;
    font-weight: 600;
    color: #212529;
  }
  .category-list {
    list-style: none;
    padding: 0;
    margin: 0;
  }
  .category-list li {
    margin-bottom: 0.75rem;
  }
  .category-list a {
    color: #495057;
    text-decoration: none;
    font-weight: 500;
    display: block;
    padding: 0.4rem 0.6rem;
    border-radius: 8px;
    transition: background-color 0.2s ease, color 0.2s ease;
  }
  .category-list a.active,
  .category-list a:hover {
    background-color: #0d6efd;
    color: white;
  }
  
  /* Course cards grid */
  .courses-grid {
    flex-grow: 1;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
  }
  
  .course-card {
    border-radius: 12px;
    box-shadow: 0 4px 15px rgb(0 0 0 / 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
    background: #fff;
    display: flex;
    flex-direction: column;
    height: 100%;
  }
  .course-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 30px rgb(0 0 0 / 0.15);
  }
  .course-img {
    height: 180px;
    object-fit: cover;
    border-bottom: 1px solid #eee;
    width: 100%;
  }
  .course-body {
    padding: 1rem 1.25rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
  }
  .course-title {
    /* font-weight: 600;
    font-size: 1.25rem; */
    margin-bottom: 0.5rem;
    color: #212529;
  }
  .course-summary {
    flex-grow: 1;
    font-size: 0.95rem;
    color: #495057;
    margin-bottom: 1rem;
  }
  .course-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    color: #6c757d;
  }
  .duration {
    display: flex;
    align-items: center;
    gap: 6px;
  }
  .duration svg {
    width: 16px;
    height: 16px;
    fill: #6c757d;
  }
  .btn-details {
    font-weight: 600;
    font-size: 0.9rem;
    padding: 0.4rem 1rem;
    border-radius: 8px;
  }
  .badge-category {
    font-size: 0.75rem;
    font-weight: 600;
    background-color: #0d6efd;
    color: white;
    padding: 0.3em 0.7em;
    border-radius: 0.75rem;
    position: absolute;
    top: 10px;
    right: 10px;
    user-select: none;
  }
  .card-wrapper {
    position: relative;
  }
  