body {
    font-family: 'Segoe UI', sans-serif;
    font-size: 18px;
  }

.btn {
        padding: 3px 8px;
        font-size: 12px;
        line-height: 1.2;
      }
 
  .category-icon {
    font-size: 20px;
    color: #6f42c1;
  }
  .footer {
    background-color: #817BD2;
    color: white;
    padding: 40px 0;
    text-align: center;
    margin-top: 40px;
    border-radius: 12px;
    margin-left: 10px;
    margin-right: 10px;
  }
  .copyright {
    background-color: #eaeaea;
    padding: 8px;
    font-size: 12px;
  }
  .btn-purple {
    background-color: #7e43ec;
    color: white;
    font-size: 13px;
    padding: 6px 12px;
  }
  .gap-under-search {
    height: 5px;
    background-color: #e9e9e9;
    margin-top: 10px;
    margin-bottom: 20px;
  }
  .small-stats {
    font-size: 13px;
  }
  h2, h4 {
    font-size: 1.4rem;
  }
  .card-title {
    font-size: 1rem;
    margin-bottom: 0.4rem;
  }
  .card-text, small {
    font-size: 0.85rem;
  }

@media (max-width: 767px) {
  .category-icon {
    font-size: 20px;
  }

  .category-title {
    font-size: 14px;
  }

  .category-description {
    font-size: 11px;
  }
}
.course-card {
    border: none;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.08);
    transition: transform 0.2s;
    font-size: 13px;
    width: 355px; /* Fixed width for uniformity */
    flex: 0 0 auto; /* Prevents shrinking */
    transition: transform 0.2s ease-in-out;
  }

      .course-card:hover {
          transform: scale(1.05);
      }
  
      /* ✅ Ensure the Card Image Fits Properly */
      .card-img-top {
          max-height: 140px;
          object-fit: cover;
          width: 100%;
      }
      .scroll-to-top {
        position: fixed;
        bottom: 20px;
        right: 20px;
        width: 60px;
        height: 60px;
        background-color: black; /* Change to a different color if needed */
        color: white; /* White arrow */
        border: none;
        border-radius: 50%;
        font-size: 28px;
        cursor: pointer;
        box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
        transition: opacity 0.3s, transform 0.3s;
        opacity: 0;
        visibility: hidden;
        display: flex;
        align-items: center;
        justify-content: center;
    }
  
    .scroll-to-top:hover {
        background-color: #333; /* Darker shade on hover */
        transform: scale(1.1);
    }

    .scroll-to-top.show {
        opacity: 1;
        visibility: visible;
    }
  
      .arrow-symbol {
          color: white; /* Ensuring arrow stays white */
      }
  
      /* ✅ Scroll Button */
      #scrollBtn {
          display: none;
          position: fixed;
          bottom: 20px;
          right: 20px;
          z-index: 99;
          background-color: #d1d4d7;
          color: white;
          cursor: pointer;
          padding: 10px 15px;
          border-radius: 50%;
          font-size: 16px;
          border: none;
      }
  
      #scrollBtn:hover {
          background-color: #878e96;
      }
  
      /* ✅ Search Suggestions */

      .list-group-item {
          cursor: pointer;
      }
  
      .list-group-item:hover {
          background-color: #f8f9fa;
      }
  
      /* ✅ Fix Course Card Size */
      .course-fixed-height {
          height: 100%; /* Ensures all cards have the same height */
          display: flex;
          flex-direction: column;
      }
  
      .course-fixed-height .card-body {
          flex-grow: 1; /* Ensures content is aligned properly */
          display: flex;
          flex-direction: column;
          justify-content: space-between;
          overflow: hidden; /* ✅ Prevents content from overflowing */
      }
  
      /* ✅ Ensure Course Description Does Not Overflow */
      .course-description {
          display: -webkit-box;
          -webkit-line-clamp: 2; /* Ensures exactly 2 lines */
          -webkit-box-orient: vertical;
          overflow: hidden;
          text-overflow: ellipsis;
          white-space: normal; /* Allows text wrapping */
          word-wrap: break-word;
          line-height: 1.5em; /* Adjust based on font size */
          max-height: 3em; /* Ensures two full lines */
      }
  
      .course-card .card-body {
          flex-grow: 1;
          display: flex;
          flex-direction: column;
          justify-content: space-between;
      }
  
  
      /* ✅ Scrollable Course Section */
      .course-scroll-container {
          overflow-x: auto;
          white-space: nowrap;
          padding: 10px;
          scroll-behavior: smooth;
      }
  
      .course-list {
          display: flex;
          gap: 15px;
          min-width: 100%;
      }

      .course-list {
          display: flex;
          gap: 15px;
          min-width: 100%;
      }

