/* TAG FILTERS */
.tags {
  padding: 1.5rem 0;
  text-align: center;
}

.custom-tag {
  display: inline-block;
  background: #6c63ff;
  color: white;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 20px;
  margin: 5px;
  font-size: 14px;
  transition: all 0.3s ease;
  text-decoration: none;
  border: none;
}

.custom-tag:hover,
.custom-tag.active {
  background-color: #574fd6;
  color: white;
  text-decoration: none;
  transform: scale(1.05);
}

/* CARD STYLING */
.card {
  background-color: #f8f9fc;
  border-radius: 16px;
  color: #1e2d3a;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  padding-bottom: 1rem;
  border: none !important;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.card-body {
  padding-bottom: 0;
}

.card-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 12px;
}

.card-text {
  font-size: 15px;
  color: #333;
}

/* READ MORE CTA */
.text-primary {
  display: inline-block;
  margin-top: 10px;
  padding-left: 1rem;
  font-weight: 600;
  color: #6c63ff !important;
  transition: color 0.3s ease;
}

.text-primary:hover {
  color: #574fd6 !important;
}

/* SPACING BETWEEN CARDS */
.col-md-4 {
  margin-bottom: 2.5rem;
}

/* MAKE ALL CARDS EQUAL HEIGHT */
.equal-height-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}

/* PAGINATION */
.pagination {
  margin: 3rem 0 1rem;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
}

.a-pagination {
  background-color: white;
  color: #6c63ff;
  font-weight: 600;
  padding: 8px 14px;
  border: 2px solid #6c63ff;
  border-radius: 25px;
  transition: all 0.3s ease;
  text-decoration: none;
}

.a-pagination:hover {
  background-color: #6c63ff;
  color: white !important;
  border-color: #6c63ff;
}

/* MOBILE */
@media (max-width: 768px) {
  .card-title {
    font-size: 18px;
  }

  .card-text {
    font-size: 14px;
  }

  .text-primary {
    font-size: 14px;
  }
}
