/* General body styling (unchanged) */
body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  background: #f9f9f9;
}

/* Course container sections (unchanged) */
.private-courses,
.gov-courses,
.job-oriented-courses {
  padding: 10px;
  margin-bottom: 5px;
  max-width: 1200px;
  margin: auto;
  flex-grow: 1;
}

.private-courses h2,
.gov-courses h2,
.job-oriented-courses h2 {
  text-align: center;
  margin-top: 40px;
  margin-bottom: 40px;
  font-size: 2rem;
  color: #333;
}

/* Course container (unchanged) */
.course-container {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}

/* Course card */
.course-card {
  width: calc(25% - 20px);
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  min-height: 350px;
  margin: 0;
}

.course-card:hover {
  transform: translateY(-5px);
}

/* Image wrapper */
.course-card .image-wrapper {
  width: 100%;
  height: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #f9f9f9;
  overflow: hidden;
  margin: 0;
  padding: 0;
  margin-bottom: 10px; /* Consistent gap below image */
}

/* Image styling */
.course-card img {
  width: 100%;
  height: auto;
  max-height: 200px;
  object-fit: contain;
  object-position: center;
  display: block;
  margin: 0;
}

/* Course info */
.course-info {
  padding: 15px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-align: center;
  margin: 0;
  border-top: 1px solid #eee; /* Subtle visual separation */
}

.course-info h3 {
  margin: 10px 0;
  font-size: 1.2rem;
  color: #222;
  line-height: 1.4;
}

.course-info p {
  margin: 5px 0;
  color: #555;
  font-size: 0.9rem;
  flex-grow: 1;
}

.rating {
  color: gold;
  margin: 5px 0;
  font-size: 0.9rem;
}

.price {
  font-weight: bold;
  color: #009688;
  font-size: 1rem;
  margin-top: 10px;
}

/* Show more buttons (unchanged) */
#showMorePrivateBtn,
#showMoreGovBtn {
  display: block;
  margin: 50px auto 30px;
  padding: 10px 20px;
  font-size: 1rem;
  border: none;
  background: #2169b6;
  color: #fff;
  border-radius: 5px;
  cursor: pointer;
}

#showMorePrivateBtn:hover,
#showMoreGovBtn:hover {
  background: #0c3f75;
}

/* Responsive adjustments */
@media screen and (max-width: 1024px) {
  .course-card {
    width: calc(33.33% - 20px);
    min-height: 320px;
  }

  .course-card img {
    max-height: 180px;
  }
}

@media screen and (max-width: 768px) {
  .course-card {
    width: calc(50% - 20px);
    min-height: 300px;
  }

  .course-card img {
    max-height: 160px;
  }
}

@media screen and (max-width: 480px) {
  .course-card {
    width: calc(100% - 20px);
    min-height: 280px;
  }

  .course-card img {
    max-height: 140px;
  }

  .course-info h3 {
    font-size: 1.1rem;
  }

  .course-info p {
    font-size: 0.85rem;
  }

  #showMorePrivateBtn,
  #showMoreGovBtn {
    width: 100%;
  }
}

/* About section media queries (unchanged) */
@media (max-width: 768px) {
  .about-section2 {
    flex-direction: column;
    padding: 10px;
  }

  .about-content2 {
    max-width: 100%;
    padding: 10px;
  }

  .about-image2 img {
    margin-left: 0;
    margin-right: 0;
    max-width: 100%;
  }
}

@media (max-width: 480px) {
  .about-content2 h2 {
    font-size: 1.5rem;
  }

  .about-content2 p {
    font-size: 1rem;
  }
}