@import url("../../assets/css/root.css");
@import url("../../css/navbar.css");
@import url("../../css/footer.css");

.ct {
    display: flex;
    flex-wrap: wrap;
    gap: 20px; 
    padding: 20px;
    justify-content: center; 
}

.ct .card {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 350px;
    height: 300px;
    background-image: linear-gradient(40deg,
            #cd6e38 50%,
            #c55b31 55%,
            #cd6e38 55%);
    background-size: 2em 2em;
    background-repeat: round;
    background-color: var(--secondary);
    border-radius: 20px;
    box-shadow: rgba(0, 0, 0, 0.25) 0px 54px 55px,
        rgba(0, 0, 0, 0.12) 0px -12px 30px, rgba(0, 0, 0, 0.12) 0px 4px 6px,
        rgba(0, 0, 0, 0.17) 0px 12px 13px, rgba(0, 0, 0, 0.09) 0px -3px 5px;
    transition: 0.5s;
}

.ct .card:hover {
    height: 230px;
}

.ct .card .imgBx {
    position: absolute;
    top: 20px;
    width: 300px;
    height: 220px;
    background: var(--quaternary);
    border-radius: 12px;
    overflow: hidden;
    transition: 0.5s;
}

.ct .card:hover .imgBx {
    top: -100px;
    scale: 0.75;
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.2);
    filter: brightness(1.2);
}

.ct .card .imgBx img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ct .card .content {
    position: absolute;
    top: 245px;
    width: 100%;
    padding: 0 30px;
    height: 39px;
    overflow: hidden;
    transition: 0.5s;
    text-align: center;
}

.content h2 a {
    color: var(--white);
    text-decoration: none;
    font-size: 1.4rem;
    font-weight: bold;
}

.content h2 a:hover {
    color: var(--contra);
}

.content h2 a i {
    margin-right: 0.25rem;
}

.ct .card:hover .content {
    top: 120px;
    height: 100px;
}

.ct .card .content a:hover {
    color: var(--contra);
}



/* BREAKPOINTS */
@media (max-width: 768px) {
    main {
        padding-top: 120px;
    }
}

@media (max-width: 425px) {
    .ct .card:hover{
        height: 180px;
    }
    .ct .card .imgBx {
        width: 95%;
    }
    .content h2 a {
        font-size: 1.2rem;
    }
}