h1 {
  font-size: 50px;
  color: #38005e;
  padding-top: 80px;
  padding-bottom: 30px;
  text-align: center;
}

h2 {
  font-size: 25px;
  line-height: 22px; 
  color: #e800b8;
  padding-right: 5px;
}

h3 {
  font-size: 25px;
  line-height: 22px;  
  padding-right: 5px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, 200px);
  gap: 60px;
  justify-content: center;
}

.card {
  height: 200px;
  width: 200px;
  display: flex;
  align-items: flex-end;
  justify-content: right;
  text-align: right;
  padding: 12px;
  outline: none;
  transition: transform 0.2s ease;
  cursor: pointer;
  caret-color: transparent; 
}
.card {
  position: relative;
  overflow: hidden;
}

.card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card h2,
.card h3 {
  position: relative;
  z-index: 1;
}

.card-link {
  text-decoration: none;  
}

/* Hover effect */
.card:hover {
  transform: scale(1.05);
}

/* Color themes */
.purple {
  background: #2d004b;
  color: #e800b8;
}

.pink {
  background: #e800b8;
  color: #2d004b;
}

.blue {
  background: #0088ff;
  color: #2d004b;
}

/* Emphasis for second line */
.card span {
  color: #FFFFFF;
}

@media (max-width: 991px) {
  .grid {
    grid-template-columns: repeat(2, 210px);
  }
}

@media (max-width: 575px) {
  .grid {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .title {
    font-size: 36px;
  }