.topic-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(330px, 1fr));
    column-gap: 10px;
    row-gap: 10px;
}

.topic {
    background-color: #f1f3f5;
    margin: 0;
    z-index: 2;
    display: flex;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    color: rgb(51, 51, 51);
}

.topic:hover {
    color: rgb(51, 51, 51);
}

.topic::before {
    position: absolute;
    content: "";
    background-image: url("../images/white_circle.svg");
    display: inline-block;
    width: 100%;
    height: 300%;
    z-index: 3;
    opacity: 75%;
    top: -85%;
    right: -85%;
    background-repeat: no-repeat;
}

.topic::after {
    position: absolute;
    content: "";
    background-image: url("../images/blue_circle.svg");
    display: inline-block;
    width: 100%;
    height: 100%;
    z-index: 3;
    opacity: 50%;
    bottom: -60%;
    right: -30%;
    background-repeat: no-repeat;
}

.topic:hover {
    box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, 0.5);
}

.topic:hover::before {
    opacity: 95%;
    right: -75%;
    transition: all 0.25s ease-in-out;
}

.topic:hover::after {
    opacity: 75%;
    transition: all 0.25s ease-in-out;
}

.topic .thumbnail {
    flex: 50%;
    background-position: center center;
    background-size: cover;
}

.topic .topic-content {
    flex: 50%;
    padding: 20px;
}

.topic .topic-content .title {
    font-weight: 600;
    margin-bottom: 1rem;
    min-height: 4rem;
}
