.alfa-templates{
    background: var(--alfa-bg);
}

.alfa-templates-header{
  position: relative;
}
.alfa-templates-header img{
    width: 100%;
    object-fit: cover;
}

.alfa-templates-heading {
  /* background-color: var(--alfa-lightblue);
  padding-top: 160px;
  padding-bottom: 10px; */
}

.alfa-templates-degrade {
  position: absolute;
  left: 0%;
  top: 50%;
  -webkit-transform: translateY(-50%);
  transform: translateY(-50%);
  height: 100%;
  width: 100%;
  max-width: 2560px;
  background: #000;
  background: -webkit-gradient(linear, left top, right top, color-stop(10%, rgba(0, 0, 0, 0.4906337535)), color-stop(50%, rgba(0, 0, 0, 0)));
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.4906337535) 10%, rgba(0, 0, 0, 0) 50%);
}

.alfa-templates-heading-title{
  color: var(--alfa-white);
  font-family: var(--font-figtree);
  font-size: clamp(30px, 3vw, 40px);
  font-weight: 700;
  line-height: 1.12;
  margin-top: -132px;
  position: relative;
}

.alfa-templates-heading-subtitle{
  color: var(--alfa-white);
  font-family: var(--font-figtree);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 4px;
  line-height: 1;
  margin: 14px 0 0;
  text-transform: uppercase;
  position: relative;
}

.alfa-templates-heading-subtitle::after {
  background: var(--alfa-white);
  bottom: -16px;
  content: '';
  display: block;
  height: 3px;
  left: 0;
  position: absolute;
  width: 58px;
}

.alfa-templates-grid {
  display: flex;
  flex-wrap: wrap;
  /* justify-content: center; */
  gap: 24px;
  margin-top: 60px;
  padding: 60px 0;
}

.alfa-template-card{
  padding: 0;
  background-color: #FFF;
  flex: 1 1 auto;
  border-radius: 20px;
  max-width: calc(25% - 24px);
}

.alfa-template-cover{
    width: 100%;
}

.alfa-template-card img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
    min-height: 250px;
    max-height: 250px;
    /* aspect-ratio: 1 / 1; */
    border-radius: 20px 20px 0 0;
}

.no-img-template{
    width: 100%;
    height: 100%;
    max-height: 250px;
    border-radius: 20px 20px 0 0;
}

.alfa-template-content {
    padding: 20px;
    border-radius: 0 0 20px 20px;
}

.alfa-template-title{
    text-align: center;
    font-size: 20px;
    font-weight: 700;
}

.alfa-template-meta{
    font-weight: 600;
    color: #205fa0;
}

.alfa-template-download{
    display: flex;
    width: 100%;
    margin-top: 10px;
    justify-content: center;
    align-items: center;
}

@media (max-width: 991.98px) {
    .alfa-archive-main{
        width: 100%;
    }

    .alfa-archive-sidebar{
        width: 100%;
        border-left: none;
        padding-left: 0;
    }
}

@media (max-width: 991.98px) {
    .alfa-template-card{
        flex: 1 0 calc(33% - 24px);
        max-width: 33%;
    }

}

@media (max-width: 767.98px) {
    .alfa-template-card{
        flex: 1 0 calc(50% - 24px);
        max-width: 50%;
    }

}

@media (max-width: 591.98px) {
    .alfa-template-card{
        flex: 1 0 100%;
        max-width: 100%;
    }

}