.sec-design-work {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    gap: 20px;
    position: relative;
}

@media screen and (min-width: 768px) and (max-width: 1024px) {
    .sec-design-work {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }
}

@media only screen and (max-width: 767px) {
    .sec-design-work {
        display: grid;
        grid-template-columns: 1fr;
        gap: 20px;
        justify-items: center;
    }
}

.sec-design-work .card {
    position: relative;
    width: 305px;
    padding: 20px;
    border-radius: 24px;
    color: #fff;
    cursor: pointer;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    background: linear-gradient(2deg, #0E2465 0%, #091a44 0%, #0B1222 40%);
    border: 1px solid #1D293D80;
    transition: all 0.4s ease;
    z-index: 1;
}

@media screen and (min-width: 768px) and (max-width: 1024px) {
    .sec-design-work .card {
        width: 100%;
        justify-content: space-between;
    }
}


@media only screen and (max-width: 767px) {
    .sec-design-work .card {
        width: 100%;
        justify-content: space-between;
    }
}

.sec-design-work .card:hover {
    width: 400px;
    border-radius: 20px;
    background: linear-gradient(180deg, rgba(13, 32, 85, 1) 0%, rgba(12, 19, 37, 1) 35%, rgba(12, 19, 37, 1) 50%, rgba(12, 19, 37, 1) 63%, rgba(13, 33, 89, 1) 100%);
}

@media screen and (min-width: 768px) and (max-width: 1024px) {
    .sec-design-work .card:hover {
        width: 100%;
        justify-content: space-between;
    }
}

@media only screen and (max-width: 767px) {
    .sec-design-work .card:hover {
        width: 100%;
    }
}

.sec-design-work .card p {
    transform: translateY(-100%);
}

.sec-design-work .card img,
.sec-design-work .card p {
    /* width: 100%;
    height: calc(50% - 10px); */
    object-fit: cover;
    border-radius: 12px;
    opacity: 0;
    transform: translateY(-20px);
    transition: all 0.4s ease;
}

.sec-design-work .card p {
    opacity: 0;
    transform: translateY(20px);
    max-height: 0;
    overflow: hidden;
}

.sec-design-work .card:hover p {
    opacity: 1;
    transform: translateY(0);
    max-height: 200px;
    /* adjust based on content */
}

@media only screen and (max-width: 1024px) {

    .sec-design-work .card img,
    .sec-design-work .card p {
        opacity: 1;
        transform: translateY(0);
    }
}

.sec-design-work .card:hover img,
.sec-design-work .card:hover p {
    opacity: 1;
    transform: translateY(0);
}

.sec-design-work .one-four:hover .card-content p {
    margin-bottom: 15px;
}

@media only screen and (max-width: 1024px) {

    .sec-design-work .card:hover img,
    .sec-design-work .card:hover p {
        opacity: 1;
        transform: translateY(0);
    }
}

.sec-design-work .card-content {
    position: relative;
    z-index: 2;
    transition: all 0.4s ease;
}

.sec-design-work .tag {
    font-size: 14px;
    line-height: 20px;
    letter-spacing: 0;
    color: #FAFAFA;
    font-weight: 400;
    display: inline-block;
    padding: 6px 10px;
    border-radius: 20px;
    margin-top: 4px;
    background: linear-gradient(0.22deg, rgba(3, 0, 21, 0.7) 0%, rgba(3, 0, 21, 0.5) 100%);
    border: 1px solid #FAFAFA26;
    transition: all 0.4s ease;
}

.sec-design-work .tagextra {
    font-size: 14px;
    line-height: 20px;
    letter-spacing: 0;
    color: #90A1B9;
    font-weight: 400;
    padding: 6px 10px;
}

.sec-design-work h3 {
    font-size: 30px;
    line-height: 40px;
    letter-spacing: 0;
    font-weight: 400;
    margin: 20px 0;
}

@media screen and (min-width: 768px) and (max-width: 1365px) {
    .sec-design-work h3 {
        font-size: 26px;
        line-height: 35px;
    }
}

@media only screen and (max-width: 767px) {
    .sec-design-work h3 {
        font-size: 22px;
        line-height: 28px;
        margin: 10px 0;
    }
}

.sec-design-work p {
    font-size: 16px;
    line-height: 23px;
    letter-spacing: 0;
    color: #90A1B9;
    font-weight: 400;
}

.sec-design-work .card.one-four {
    flex-direction: column-reverse;
}

@media only screen and (max-width: 1024px) {
    .sec-design-work .card.one-four {
        flex-direction: column;
    }
}

.sec-design-work .card:hover .card-content {
    margin-bottom: auto;
}

@media only screen and (max-width: 1024px) {
    .sec-design-work .card:hover .card-content {
        margin-bottom: auto;
    }
}

.sec-design-work .card.one-four:hover .card-content {
    margin-top: 0;
    margin-bottom: auto;
}

@media only screen and (max-width: 1024px) {
    .sec-design-work .card.one-four:hover .card-content {
        margin-bottom: 0;
        margin-top: auto;
    }
}