
    /* Container */
    .lms-container {
      padding: 60px 20px;
      max-width: 1400px;
      width: 100%;
      margin: auto;
    }

    /* Header with sort buttons */
    .lms-header {
      max-width: 1000px;
      width: 100%;
      margin: auto;
      margin-bottom: 40px;
      text-align: center;
    }

    .lms-header h2 {
      font-size: 2rem;
      color: var(--heading-color);
      margin-bottom: 20px;
    }

    .sort-options {
      list-style: none;
      display: flex;
      justify-content: center;
      gap: 15px;
      padding-left: 0;
      margin: 0;
      flex-wrap: wrap;
    }

    .sort-options li {
      display: inline;
    }

    .sort-options button {
      padding: 8px 16px;
      border: none;
      background-color: var(--border-color);
      color: var(--link-color);
      cursor: pointer;
      border-radius: 6px;
      font-weight: 600;
      transition: background-color 0.3s ease;
      min-width: 110px;
    }

    .sort-options button:hover,
    .sort-options button.active {
      background-color: var(--hover-color);
      outline: none;
    }

    /* Course list grid */
    .course-list {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
      gap: 30px;
    }

    /* Course box */
    .course-box {
      position: relative;
      background-color: white;
      border-radius: 12px;
      overflow: hidden;
      box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
      transition: transform 0.3s ease;
      cursor: pointer;
      display: flex;
      flex-direction: column;
      height: 480px;
    }

    .course-box:hover {
      transform: translateY(-5px);
      z-index: 20;
    }

    .course-box img {
      width: 100%;
      height: 180px;
      object-fit: cover;
      border-top-left-radius: 12px;
      border-top-right-radius: 12px;
    }

    .box-content {
      padding: 20px 20px 12px;
      flex-grow: 1;
    }

    .box-content .category {
      font-size: 0.85rem;
      color: #7f8c8d;
    }

    .box-content h3 {
      font-size: 1.2rem;
      margin: 10px 0;
      color: #2c3e50;
    }

    .meta {
      display: flex;
      justify-content: space-between;
      font-size: 0.9rem;
      color: #777;
      margin-top: 10px;
    }

    .price {
      font-weight: bold;
      color: #27ae60;
      margin-top: 12px;
    }

    .price .sale {
      text-decoration: line-through;
      color: #e74c3c;
      font-size: 0.9rem;
      margin-left: 8px;
    }

    /* Overlay */
    .box-overlay {
      position: absolute;
      top: 100%;
      left: 0;
      width: 100%;
      height: 100%;
      background-color: rgba(255, 255, 255, 0.98);
      padding: 20px 24px;
      transition: top 0.35s ease-in-out;
      z-index: 10;
      border-radius: 0 0 16px 16px;
      box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.05);
      overflow-y: auto;
      display: flex;
      flex-direction: column;
    }

    .course-box:hover .box-overlay {
      top: 0;
    }

    /* course-body inside overlay */
    .course-body {
      font-family: "Poppins", sans-serif;
      color: var(--text-color);
      display: flex;
      flex-direction: column;
      height: 100%;
    }

    .course-top {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-bottom: 12px;
    }

    .rating i {
      color: #f39c12; /* golden stars */
      margin-right: 3px;
    }

    .rating span {
      font-size: 0.85rem;
      color: #555;
      margin-left: 8px;
    }

    .bookmark i {
      font-size: 1.2rem;
      color: var(--border-color);
      cursor: pointer;
      transition: color 0.3s ease;
    }

    .bookmark:hover i {
      color: var(--hover-color);
    }

    .course-title {
      font-size: 1.25rem;
      margin: 8px 0 12px;
      font-weight: 600;
      color: var(--heading-color);
    }

    .course-title a {
      text-decoration: none;
      color: inherit;
    }

    .course-meta {
      list-style: none;
      display: flex;
      gap: 20px;
      padding-left: 0;
      margin-bottom: 12px;
      color: #777;
      font-size: 0.9rem;
    }

    .course-meta li {
      display: flex;
      align-items: center;
      gap: 6px;
    }

    .course-meta i {
      color: var(--border-color);
    }

    .course-body p {
      flex-grow: 1;
      font-size: 0.95rem;
      color: #444;
      margin-bottom: 16px;
      line-height: 1.4;
    }

    .author-meta {
      display: flex;
      align-items: center;
      gap: 10px;
      margin-bottom: 18px;
      font-size: 0.9rem;
      color: #666;
    }

    .author-meta img {
      width: 35px;
      height: 35px;
      border-radius: 50%;
      object-fit: cover;
    }

    .author-meta a {
      color: var(--border-color);
      text-decoration: none;
      font-weight: 600;
    }

    .course-bottom {
      display: flex;
      justify-content: space-between;
      align-items: center;
    }

    .price {
      font-size: 1.1rem;
      font-weight: 700;
      color: var(--border-color);
    }

    .price .old {
      margin-left: 12px;
      font-weight: 400;
      color: #999;
      text-decoration: line-through;
      font-size: 0.9rem;
    }

    .btn-add-cart {
      background-color: var(--border-color);
      color: var(--link-color);
      padding: 10px 18px;
      border-radius: 8px;
      font-weight: 500;
      font-size: 15px;
      text-decoration: none;
      display: flex;
      align-items: center;
      gap: 8px;
      transition: background-color 0.3s ease;
      box-shadow: 0 6px 14px rgba(229, 66, 73, 0.5);
    }

    .btn-add-cart i {
      font-size: 1rem;
    }

    .btn-add-cart:hover,
    .btn-add-cart:focus {
      background-color: var(--hover-color);
      box-shadow: 0 8px 18px rgba(165, 24, 29, 0.7);
      outline: none;
    }
.action-buttons {
  display: flex;
  gap: 12px;
  margin-top: 10px;
}

/* .btn-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 15px;
  border-radius: 6px;
  font-size: 0.9rem;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.3s ease;
  color: white;
} */

.add-to-cart {
  background-color: #e67e22;
}

.add-to-cart:hover {
  background-color: #d35400;
}

.preview-course {
  background-color: #2980b9;
}

.preview-course:hover {
  background-color: #1c5980;
}

    /* Responsive tweaks */
    @media (max-width: 768px) {
      .course-list {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 20px;
      }

      .course-box {
        height: 500px;
      }
    }

    @media (max-width: 480px) {
      .lms-container {
        padding: 30px 15px;
      }

      .course-list {
        grid-template-columns: 1fr;
        gap: 20px;
      }
    }