
.mainards {
    width: calc(100% - 2em);
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: 1fr ;
    grid-gap: 1em;
   
    width: 100%;
}

.card1{
    width: 100%;
    position: relative;
    transition: all 0.25s ease;
    cursor: pointer;
    font-family:"helvetica condensed";
    
}

.card1:last-child {
    margin-bottom: 0;
}

.card1:before {
    height: 0;
    content: "";
    display: block;
    padding-bottom: 50%;
}

.card1.content:after {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50%;
    content: "";
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0), black);
}

.card1:nth-child(1) {
    grid-area: a;
    
    
}

.card1:nth-child(2) {
    grid-area: b;
   
}

.card1:nth-child(3) {
    grid-area: c;

}

.card1:nth-child(4) {
    grid-area: d;
}

.card1-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.card1-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.card1-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
   
}

.card1-label {
    position: absolute;
    top: 0.45rem;
    left: 0.45rem;
    background: #e00505;
    text-transform: uppercase;
    font-weight: 500;
    font-size: 0.7em;
    color: white;
    padding: 0.5em;
}

.card1-title {
     position: absolute;
    left: 1em;
    bottom: 6.1em;
    z-index: 5;
    font-size: 4em;
    color: #fff;
    font-weight: bold;
    line-height: 1.3em;
    text-align: center;
    color: #fff; !important

}
.card1-title a {color: #fff; }
.card1-title a:hover {color: #bb0000; }
.card1.form {
    position: relative;
}

.card1.form:before {
    background: linear-gradient(60deg, #f79533, #f37055, #ef4e7b, #a166ab, #5073b8, #1098ad, #07b39b, #6fba82);
}

.card1.form:after {
    position: absolute;
    top: 0.5em;
    left: 0.5em;
    width: calc(100% - 1em);
    height: calc(100% - 1em);
    content: "";
    background: #252833;
}

.card1.form .form-title {
    position: absolute;
    top: 1rem;
    left: 1rem;
    font-size: 7vw;
    font-weight: 900;
    z-index: 5;
    text-transform: uppercase;
    background: linear-gradient(60deg, #f79533, #f37055, #ef4e7b, #a166ab, #5073b8, #1098ad, #07b39b, #6fba82);
    -webkit-text-fill-color: transparent;
    -webkit-background-clip: text;
}

.card1.form .form-title:before {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    content: "Sign Up";
    opacity: 0.5;
    filter: blur(10px);
    transition: all 0.25s ease;
    z-index: 2;
    background: linear-gradient(60deg, #f79533, #f37055, #ef4e7b, #a166ab, #5073b8, #1098ad, #07b39b, #6fba82);
    -webkit-text-fill-color: transparent;
    -webkit-background-clip: text;
    transform: translateX(-50%) translateY(-50%);
}

.card1:nth-child(2) .card1-label {
    background: #BB0000;
}

.card1:nth-child(3) .card1-label {
    background: #BB0000;
}

.card1:hover {
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.35);
}
@media only screen and (max-width: 768px) {
.maincard{
   display: grid;
grid-template-columns: 1fr;
grid-template-rows: 1fr;
grid-gap: 1em;
width: 100%;
}
.card1::before {
    height: 0;
    content: "";
    display: block;
    padding-bottom: 60%;
}
.card1{
    width: 100%;
    position: relative;
    transition: all 0.25s ease;
    cursor: pointer;
    font-family: "helvetica condensed";
    font-weight: 600;
}
.card1-title {
    position: absolute;
        left: 0.45em;
    right: 0.45em;
    bottom: 1em;
    z-index: 5;
    font-size: 1.6em;
    font-weight: bold;
    line-height: 1em;
    font-family: helvetica;

    }

.card1:hover .form-title:before {
    filter: blur(3px);
    opacity: 0.7;
}