* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Container */
.container {
    margin: auto;
    display: grid;
    width: 80vw;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

/* Cards and header */
.item {
    border-radius: 10px 10px 0px 0px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    box-shadow: 1px 1px 5px grey;
}

/* Header */
.header {
    display: flex;
    flex-direction: column;
    width: 80vw;
    margin: auto;
    padding: 30px;
    justify-content: center;
    align-items: center;
}

.header p {
    width: 60%;
    font-size: 1.05em;
    text-align: center;
    color: rgb(68, 60, 60);
}


/* Card image */

.image {
    overflow: hidden;
}

.image img {
    height: 185px;
    width: 100%;
    border-radius: 10px 10px 0px 0px;
    transition: all 0.3s ease;
}

.image img:hover {
    transform: scale(1.1);
}

/* Card content */

a {
    text-decoration: none;
    color: black;
}

.content {
    padding: 10px;
}

.content h3 {
    font-size: 0.9em;
    margin-bottom: 5px;
}

.content p {
    font-size: 0.8em;
    color: rgb(68, 60, 60);
}

/* Card Designation */
.content2 {
    padding: 10px;
    display: flex;
    font-size: 0.8em;
    align-items: center;
    justify-content: space-around;
}

.face img {
    border-radius: 50px;
    height: 30px;
    width: 30pxpx;
}

.first {
    color: blueviolet;
    font-weight: bold;
}

.date {
    font-size: 0.8em;
    color: rgb(68, 60, 60);
}

/* Card type box */
.type {
    border: 1px solid rgb(68, 60, 60);
    color: rgb(68, 60, 60);
    padding: 3px 5px;
    font-size: 0.8em;
    border-radius: 5px;
    font-weight: bold;
}

/* Mobile */
@media (max-width: 600px) {
    .container {
        grid-template-columns: repeat(1, 1fr);
    }
}

/* small tablet */
@media(min-width:601px) and (max-width:899px) {
    .container {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Tablet */
@media (min-width: 900px) and (max-width: 1079px) {
    .container {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Desktop */
@media (min-width: 1080px) {
    .container {
        grid-template-columns: repeat(4, 1fr);
    }
}