
[class*="col-"] {
    float: left;
    padding: 15px;
  }
  
  
  
  /* For desktop: */
  .col-1 {width: 8.33%;}
  .col-2 {width: 16.66%;}
  .col-3 {width: 25%;}
  .col-4 {width: 33.33%;}
  .col-5 {width: 40%;}
  .col-6 {width: 50%;}
  .col-7 {width: 58.33%;}
  .col-8 {width: 66.66%;}
  .col-9 {width: 75%;}
  .col-10 {width: 83.33%;}
  .col-11 {width: 91.66%;}
  .col-12 {width: 100%;}
  .col-13 {width: 70%;}
  .col-14 {width: 74.5%;}
  .col-15 {width: 10%;}
  .col-16 {width: 80%;}
  .col-17 {width: 5%;}
  .col-18 {width: 95%;}
  .col-19 {width: 15%;}
  .col-20 {width: 20%;}

  @media only screen and (max-width: 768px) {
    /* For mobile phones: */
    [class*="col-"] {
      width: 100%;
    }
  }


body {
  font-family: 'Arial', sans-serif;
  background-color: #f0f0f0;
  margin: 0;
  padding: 0;
}

.container {
  max-width: 1000px;
  margin: 50px auto;
  background-color: #fff;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

h1 {
  text-align: center;
  color: #333;
  margin-bottom: 30px;
}

.course-list {
  list-style-type: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.course {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.course:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.course-bg {
  height: 200px;
  background-size: cover;
  background-position: center;
}

.course-content {
  padding: 20px;
  background-color: rgba(255, 255, 255, 0.9);
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  border-bottom-left-radius: 8px;
  border-bottom-right-radius: 8px;
  backdrop-filter: blur(5px); /* Adds a subtle blur effect to the background */
}

.course-content h2 {
  font-size: 24px;
  margin: 0;
  color: #333;
}

.course-content p {
  color: #666;
  font-size: 16px;
  margin-top: 8px;
}

.course-content a {
  text-decoration: none;
  color: #007bff;
  font-weight: bold;
  display: block;
  margin-top: 10px;
}

.course-content a:hover {
  text-decoration: underline;
}
