#cf-catalog-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

#cf-catalog-title {
  display: flex;
  justify-content: flex-start;
  align-items: center;
}

#cf-catalog-title h2 {
  border: 3px solid #ef2b89;
  padding: 0.5% 1.5%;
}

#cf-loader {
  height: 2em;
  animation: spin 1s linear infinite;
  display: block;
  margin: 0em 2em;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(-360deg);
  }
}

#catalog {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 30px;
}

@media (max-width: 1024px) {
  #catalog {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
  }
}

/* Form */
#cf-catalog-form {
  padding: 2%;
  width: 25%;
  border: 1px solid #343a45;
  border-radius: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  align-items: center;
}

#cf-catalog-form input[type="text"],
#cf-catalog-form select,
#cf-catalog-form button {
  padding: 10px;
  font-size: 1rem;
  border-radius: 6px;
  border: 1px solid #ccc;
  min-width: 180px;
}

#cf-catalog-form button {
  background-color: #ef2b89;
  color: white;
  border: none;
  cursor: pointer;
  transition: background-color 0.2s ease;
  width: 100%;
}

.form-group {
  width: 100%;
}

#cf-catalog-form button:hover {
  background-color: #a42362;
}

#cf-catalog-form label {
  color: white;
}

/* Results */
#cf-catalog-results {
  width: 75%;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: flex-start;
}

.cf-catalog-result-no-filter{
  width: 100% !important;
}

/* Video */
.cf-video-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border: 1px solid #343a45;
  border-radius: 20px;
  cursor: pointer;
  width: calc(33.333% - 20px);
  transition: background-color 0.2s ease;
}

.cf-video-item:hover {
  background-color: #240925;
}

.cf-video-thumb {
  width: 45%;
  max-width: 150px;
  aspect-ratio: 16/9;
  overflow: hidden;
  border-radius: 10px;
  flex-shrink: 0;
}

.cf-video-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 20px;
}

.cf-video-content h6 {
  margin: 0;
  font-size: 1.2rem;
}

.cf-video-content p {
  margin: 0;
  font-size: 1rem;
}

/* Webinar */
.cf-webinar-item {
  display: flex;
  flex-direction: column;
  align-items: baseline;
  gap: 2px;
  padding: 0;
  border: 1px solid #343a45;
  border-radius: 20px;
  width: 100%;
  transition: background-color 0.2s ease;
}

.cf-webinar-description {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 0 20px 20px 20px;
  width: 100%;
}

.cf-webinar-item:hover {
  background-color: #240925;
}

.cf-webinar-tag {
  padding: 10px;
  width: fit-content;
  background-color: #591859;
  border-bottom-right-radius: 15px;
  border-top-left-radius: 20px;
  h6 {
    margin-bottom: 0;
  }
}

.cf-webinar-thumb {
  width: 25% !important;
  /* aspect-ratio: 6/6; */
  overflow: hidden;
  border-radius: 10px;
  flex-shrink: 0;
  img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
  }
}

.cf-webinar-content {
  width: 55%;
  text-align: justify;
  text-justify: inter-word;
  gap: 15px;

  h6 {
    margin: 0;
    font-size: 1.2rem;
    transition: color 0.2s ease;
  };
  h6:hover {
    color: #ef2b89 !important;
    cursor: pointer;
  };
  p {
    margin: 0;
    font-size: 0.9rem;
    font-weight: 400;
  }
}

.cf-webinar-meta {
  display: flex;
  justify-content: space-between;
  flex-direction: column;
  padding: 0;
  gap: 20px;

  .cf-webinar-service-info {
    display: flex;
    flex-direction: column;
    gap: 2px;

    p, a {
      margin: 0;
      font-size: 0.9rem;
      font-weight: 400;
    }
  }
}

/* Resource */
.cf-resource-item {
  position: relative;
  display: flex;
  flex-direction: column;
  width: calc(33.333% - 20px);
  border: 1px solid #343a45;
  border-radius: 20px;
  transition: background-color 0.2s ease;
  align-items: stretch;
  .cf-resource-description {
    padding: 1% 5% 0 5%;
  }
}

.cf-resource-item:hover {
  background-color: #240925;
}

.cf-resource-meta {
  margin-top: auto !important;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
  padding-bottom: 2%;
  bottom: 0;
  p {
    margin-bottom: 0;
  }
}

.cf-resource-btn {
  display: flex;
  vertical-align: middle;
  background-color: #ef2b89;
  color: white !important;
  text-decoration: none !important;
  border-radius: 5px;
  height: 20px;
  padding: 0.5%;
  font-size: 0.6em;
  transition: background-color 0.2s ease;
}

.cf-resource-btn:hover {
  background-color: #a42362;
}

.cf-resource-btn img {
  height: 1em;
}

.cf-resource-tag {
  padding: 10px;
  width: fit-content;
  background-color: #591859;
  border-bottom-right-radius: 15px;
  border-top-left-radius: 12px;
  h6 {
    margin-bottom: 0;
  }
}

/* Responsive */
@media (max-width: 1024px) {
  #cf-catalog-form,
  #cf-catalog-results,
  .cf-video-item,
  .cf-resource-item,
  .cf-spn-item {
    width: 90%;
  }

  #cf-catalog-results {
    flex-direction: column;
  }
}
