.media {
    display: block;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: inherit;
}

.media-image img {
    height: 380px;
    width: 100%;
    display: block;
    object-fit: cover;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.owl-media .media-image img {
    height: 300px;
}

.media-icon {
    padding: 18px;
    font-size: 16px;
}

.owl-media .media-title {
    color: #353333;
    font-size: 20px;
}

.media-image {
    position: relative;
}

.media-subtitle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 0 20px;
    z-index: 2;
    font-size: 25px;
    opacity: 0;
    visibility: hidden;
    color: white;
    font-weight: bold;
    text-align: center;
    width: 80%;
    transition: all 0.3s ease-out;
}

.media-subtitle>span {
    color: #d3a85b;
    text-transform: capitalize;
    font-weight: bold;
    display: block;
}

.media-category {
    font-size: 16px;
    margin-top: 30px;
    color: var(--secondary-color);
}

.media-title {
    margin-top: 25px;
    font-size: 23px;
    color: #333333;
}

.media-icon {
    position: absolute;
    bottom: 0;
    right: 0;
    color: white;
    background-color: var(--secondary-color);
    width: 55px;
    height: 55px;
    font-size: 22px;
    opacity: 1;
    transition: all 0.3s ease;
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
}

 .media:hover .media-icon {
    width: 100%;
    height: 100%;
    opacity: 0.8;
}

 .media:hover .media-subtitle {
    opacity: 1;
    visibility: visible;
    transition: all 0.3s 0.2s ease-in;
}

@media screen and (max-width:1199.98px) {
    .media-title{
        font-size: 20px;
    }
    .media-image img {
        height: 300px;
    }

    .media-icon {
        padding: 20px;
        font-size: 18px;
    }
}
