* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: Quantico;
  color: #fff;
  text-decoration: none;
}

body {
  background: #25262F;
  padding: 20px;
}

header {
  text-align: center;
  margin-bottom: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.back-btn {
  color: #fff;
}

.back-btn i {
  color: #ff4d4d;
}

.back-btn span {
  color: #ff4d4d;
}

header h1 span {
  display: inline-block;
  color: #ff4d4d;
}

.course-section {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.course-card {
  border-radius: 8px;
  padding: 40px 20px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
  text-align: center;
}

.card1 {
  background: #90B944;
}

.card2 {
  background: #5D5CB0;
}

.card3 {
  background: #FFB300;
}

.card4 {
  background: #25C6FE;
}

.card5 {
  background: #00EEA4;
}

.card6 {
  background: #8C5CB0;
}
.card7 {
  background: #de7722;
}
.card8 {
  background: #e050a4;
}
.card9 {
  background: #9f14df;
}


.course-card i {
  font-size: 4rem;
}

.course-card:hover {
  transform: translateY(-5px);
}

.course-card h3 {
  margin-bottom: 10px;
  padding-top: 1.5rem;
  font-size: 1.5rem;

}

.course-card p {
  margin: 5px 0;

}

.course-card button {
  margin-top: 10px;
  padding: 8px 12px;
  border: none;
  border-radius: 4px;
  background: transparent;
  border: 1px solid #ddd;
  color: #fff;
  cursor: pointer;
  transition: background 0.3s ease;
  box-shadow: 5px 7px 5px #171717ad;
}


.course-card button:hover {
  animation: pulse 0.5s infinite alternate ease-in-out;
}

@keyframes pulse {
  from {
    transform: scale(1);
  }

  to {
    transform: scale(1.05);
  }
}

/* Responsive Breakpoints */
@media screen and (max-width: 440px) {
  .course-section {
    grid-template-columns: 1fr;
  }

  .course-card {
    text-align: center;
  }
}

@media screen and (min-width: 441px) and (max-width: 768px) {
  .course-section {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media screen and (min-width: 769px) and (max-width: 1024px) {
  .course-section {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media screen and (min-width: 1025px) and (max-width: 1370px) {
  .course-section {
    grid-template-columns: repeat(3, 1fr);
    margin: 0 200px;
  }
}

@media screen and (min-width: 1371px) {
  .course-section {
    grid-template-columns: repeat(3, 1fr);
    margin: 0 280px;
  }
}