@import url(./variables.css);
@import url(./header.css);
@import url(./footer.css);
@import url(./main.css);
@import url(./detail.css);
@import url(./category.css);
@import url(./pagination.css);
@import url(./dropdawn.css);
@import url(./login.css);
@import url(./create.css);

.herro {
    display: flex;
    justify-content: space-between;
    margin-bottom: 2rem;

    max-width: 100%;
    position: relative;
    overflow: hidden;
}

.herro_publicity {
    width: 70%;
    overflow: hidden;
}


.herro_links {
    width: 30%;
    padding-left: 1.5rem;
}

.herro_links h4 {
    margin: .1rem 0 1.5rem;
    background-color: var(--black-a42);
    padding: .6rem;
    text-transform: uppercase;
}

.herro_links li {
    margin-bottom: .9rem;
    padding: 0 0 1.2rem;
    border-bottom: 1px solid var(--white-80);
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.herro_links li a {
    font-size: 1.3rem;
    text-transform: capitalize;
}


.latest-items {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.latest-title {
    margin: 0 0 1.5rem;
    padding: .6rem;
    background-color: var(--black-a42);
    display: flex;
    align-items: center;
    justify-content: center;
}

/*Card block*/
.card {
    margin-bottom: 1.4rem;
    overflow: hidden;
    width: 100%;
}

.card-small {
    width: 28rem;
    height: 500px;
}


.card-img {
    position: relative;
    overflow: hidden;
    width: 100%;
    height: 700px;
}

.card-small .card-img {
    height: 60%;
}


.card-img a img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.card-content {
    position: relative;
    width: 100%;
    /*margin: var(--margin) * 2;*/
    padding: 1.25rem .95rem;
    border: 1px solid var(--white-80);
    border-top: none;
}

.card-small .card-content {
    height: 40%;
}

.card-category {
    height: 3rem;
    background-color: var(--brilliant-green-5e);
    position: absolute;
    top: -3rem;
    left: -1px;

    padding: 0 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-category:hover {
    background-color: var(--black-30);
}

.card-content-title {
    font-family: 'Roboto', sans-serif;
    margin-bottom: 6px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2; /* number of lines to show */
    line-clamp: 2;
    -webkit-box-orient: vertical;
}


.card-content-title:hover {
    color: var(--brilliant-green-5e);
    transition: background-color 0.3s ease;
}

.card-content-desc {
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    line-height: 1.5em;
    height: 4.5em;
    color: var(--white-60);
    font-weight: bold;
}

.card-content-desc p {
    margin: 0;
    color: var(--gray);

    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2; /* number of lines to show */
    line-clamp: 2;
    -webkit-box-orient: vertical;
}

.card-content-date {
    font-size: 1rem;
    margin: 1.4rem 0 2.4rem;
    line-height: 1.8;
    color: var(--gray-76);
}


/*!*------------------------------------------------------index media 1440px-----------------------------------------*!*/
@media (max-width: 1440px) {

    .herro {
        flex-direction: column;
        height: 80%;
    }

    .herro_publicity {
        overflow: visible;
        width: 100%;
        margin-bottom: 3rem;
    }

    .herro_links {
        width: 100%;
        padding: 0;
        min-height: 0;
    }

    .card-small {
        width: 34rem;
    }

}

@media (max-width: 1200px) {
    .card-small {
        width: 48%;
    }
}

/*!*------------------------------------------------------index media 992px-----------------------------------------*!*/
@media (max-width: 992px) {


    .latest_publicity {
        width: 100%;
        height: 29.2rem;
        margin-bottom: 1.4rem;
        overflow: hidden;
    }

    .herro_publicity-links a.main-link {
        font-size: 2.4rem;
    }

    .latest-title {
        width: 100%;
        margin: 3rem auto;
    }

    .latest-items {
        justify-content: center;
    }

    .card-small {
        width: 100%;
    }


    .card-small .card-img {
        height: 70%;
    }

    .card-small .card-content {
        height: 30%;
    }
}

@media (max-width: 600px) {

    .card-content-desc,
    .card-content-date {
        display: none;
    }

    .card-content {
        display: flex;
        align-items: center;
    }

    .herro_publicity {
        margin-bottom: 1rem;
    }

    .herro_links h4 {
        text-align: center;
    }

    .card-img {
        height: auto;
    }
}

@media (max-width: 400px) {
    h1,
    h4 {
        font-size: 1.1rem;
    }
}