
.w3-card {
    transition: .3s;
    border-radius: 6px;
    line-height: normal;
    overflow: hidden;
    font-size: 16px;
}

.w3-card .thumbnail-wrapper {
    position: relative;
}

.w3-card .label-wrapper {
    background-color: var(--w3-white);
    border-radius: 99px;
    padding: 7px 14px;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    position: absolute;
    top: 10px;
    left: 10px;
}

.w3-card .label-wrapper a {
    color: var(--w3-black);
}

.w3-card a {
	text-decoration: none !important;
}

.w3-card .caption-wrapper {
    position: relative;
    overflow: hidden;
    color: var(--w3-black);
    display: flex;
    flex-direction: column;
    padding: 20px;
}

.w3-card .caption-wrapper .category-wrapper {
    margin-bottom: 10px;
}

.w3-card .caption-wrapper .category-wrapper span {
    color: var(--w3-primary-color);
}

.w3-card .caption-wrapper .title-wrapper h3 {
    margin-top: 0;
}

.w3-card .caption-wrapper .title-wrapper h3 a {
    color: var(--w3-black);
}

.w3-card .caption-wrapper .title-wrapper h3 a:hover {
    color: var(--w3-primary-color);
}

.w3-card .hover-caption-wrapper {
    display: none;
}

.w3-card .thumbnail-wrapper {
    overflow: hidden;
    border-radius: 6px;
}

.w3-card .thumbnail-wrapper img {
    width: 100%;
    transition: transform 0.2s;
}

.w3-card:hover .thumbnail-wrapper img {
    transform: scale(1.05);
}

/* vertical card */
.w3-card.card-vertical {
    background-color: var(--w3-white);
    display: flex;
    flex-direction: column;
    height: 100%;
    border-bottom-right-radius: 36px;
}

.w3-card.card-vertical .thumbnail-wrapper {
    border-radius: 0;
}

.w3-card.card-vertical .caption-wrapper {
    flex-grow: 1;
}

.w3-card.card-vertical .caption-wrapper .title-wrapper {
    margin-top: auto;
}

.w3-card.card-vertical .thumbnail-wrapper + .caption-wrapper .title-wrapper {
    margin-top: 0;
}

.w3-card.card-vertical .thumbnail-wrapper + .caption-wrapper .buttons-wrapper {
    margin-top: auto;
}

/* slider mode */
@media (min-width: 992px) {
    .w3media-post-slider .slider-wrapper {
        overflow: hidden;
    }    
}

/* horizontal card */
.w3-card.card-horizontal .thumbnail-wrapper {
    overflow: hidden;
}

@media (min-width: 577px) {
    .w3-card.card-horizontal .thumbnail-wrapper img {
        position: relative;
        left: 50%;
        transform: translateX(-50%);
        aspect-ratio: 400/274;
    }
}

.w3-card.card-horizontal .caption-wrapper {
    padding: 1rem 0;
}

@media (max-width: 768px) {
    .w3-card.card-horizontal .caption-wrapper {
        padding: 20px;
    }
}

.w3-card.card-horizontal .caption-wrapper .title-wrapper a {
    color: var(--w3-black);
}

.w3-card.card-horizontal .caption-wrapper .title-wrapper a:hover {
    color: var(--w3-primary-color);
}

.w3-card.card-horizontal .caption-wrapper .excerpt-wrapper {
    max-width: 465px;
}

.w3-card.card-horizontal .buttons-wrapper .btn {
    border-radius: 99px;
}

/* overlay card */
.w3-card.card-overlay {
    position: relative;
}

.w3-card.card-overlay .thumbnail-wrapper img {
    aspect-ratio: 7 / 5;
}

.w3-card.card-overlay .caption-wrapper {
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(0, 0, 0, 0), var(--w3-black));
    text-align: center;
    justify-content: flex-end;
}

.w3-card.card-overlay .caption-wrapper.no-img {
    position: static;
    text-align: left;
    height: 100%;
    justify-content: center;
}

.site-works .w3-card.card-overlay .caption-wrapper.no-img {
    justify-content: flex-end;
}

.w3-card.card-overlay .caption-wrapper.no-img .excerpt-wrapper {
    margin: 0;
}

.w3-card.card-overlay .caption-wrapper p,
.w3-card.card-overlay .caption-wrapper .title-wrapper h3 {
    color: var(--w3-white);
}

.w3-card.card-overlay .caption-wrapper .title-wrapper h3 {
    font-size: 32px;
}

.w3-card.card-overlay .logo-wrapper img {
    max-width: 500px;
}   

.w3-card.card-overlay .excerpt-wrapper {
    max-width: 500px;
    margin-inline: auto;
    font-size: 20px;
}

@media (min-width: 768px) {
    .w3-card.card-overlay .caption-wrapper .title-wrapper h3 {
        font-size: 40px;
    }
}

.w3-card.card-overlay .caption-wrapper .card-tags {
    padding: 0;
    margin: 0;
    list-style: none;

    display: flex;
    flex-wrap: wrap;
    gap: 10px 5px;

    margin-top: 12px;

    color: var(--w3-white);
}

.w3-card.card-overlay .caption-wrapper .card-tags .tag {
    background-color: var(--w3-secondary-color);
    padding: 10px 20px;
    text-transform: uppercase;
    font-size: 16px;
    font-weight: 500;
    border-radius: 6px;
}

/* slick-slider */
.slick-slider .w3-card {
    border-bottom-right-radius: 36px;
}

/* projects-section */
#projects-section .w3-card .thumbnail-wrapper,
#projects-section .w3-card .main-img {
    aspect-ratio: 7 / 10;
}

#projects-section .w3-card .caption-wrapper {
    text-align: left;
}

#projects-section .w3-card .title-wrapper,
#projects-section .w3-card .buttons-wrapper {
    display: none;
}

.gradient-card .w3-card {
    background-image: linear-gradient(var(--w3-blue-dark), var(--w3-black-1));
    aspect-ratio: 7 / 10;
}

#projects-section .gradient-card .w3-card {
    border-top-left-radius: 6px;
}

#projects-section .gradient-card .w3-card .title-wrapper,
#projects-section .gradient-card .w3-card .buttons-wrapper {
    display: block;
}

@media (max-width: 768px) {
    #projects-section .vc_col-sm-6.vc_col-lg-3 .w3-card .thumbnail-wrapper {
        aspect-ratio: 7 / 10;
    }

    #projects-section .vc_col-sm-6.vc_col-lg-3 .w3-card .caption-wrapper {
        justify-content: flex-start;
    }


    #projects-section .gradient-card .w3-card .title-wrapper h3 {
        font-size: 24px;
    }
}

#projects-section .gradient-card .w3-card .buttons-wrapper .btn {
    background-color: unset;
    border-color: var(--w3-white);
} 

#projects-section .gradient-card .w3-card .buttons-wrapper .btn:hover {
    background-color: var(--w3-white);
    color: var(--w3-secondary-color);
}

#projects-section .gradient-card .row > div {
    margin: 0;
    width: 100%;
    z-index: 1;
}

@media (min-width: 768px) {
    #projects-section .vc_column-inner {
        padding: 0 5px;
    }
}

@media (min-width: 768px) and (max-width: 992px) {
    #projects-section .vc_col-sm-3,
    #projects-section .vc_col-sm-9 {
        width: 50%;
    }
}