.hero-container {
    position: relative;
    width: 100%;
    height: 300px;
    background-color: #2E3E77;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 20px;
    box-sizing: border-box;
    overflow: hidden;
}

.hero-container-image-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%);
    z-index: 0;
}

.hero-container::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(102, 51, 153, 0.7), rgba(50, 18, 122, 0.5));
    z-index: 1;
}

.topic-posts-list-header {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
}

.topic-posts-list-header {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
}

h1.topic-posts-list-title {
    color: #FFF;
    padding: 0px;
    margin: 0px;
}

.topic-posts-list-meta {
    color: #FFF;
    font-size: 12px;
    padding: 0px;
    margin: 0px;
}

.topic-posts-list-category {
    color: #FFF;
    padding: 8px 15px;
    font-size: 14px;
    background-color: #CC3333;
    border-radius: 0px;
}

.topic-posts-list-category-link {
    text-decoration: none;
    color: #FFF;
}

.topic-container-main {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

.topic-container-grid {
    display: flex;
    flex-direction: column;
    gap: 25px;
    margin: 50px 0px;
}

.topic-container-header {
    text-align: right;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.topic-container-title {
    font-size: 24px;
    font-weight: 800;
    color: #4D4D4D;
    line-height: 30px;
    margin: 0;
    text-align: right;
}

.topic-container-subtitle {
    font-size: 14px;
    font-weight: 500;
    color: #636C68;
    line-height: 20px;
    margin: 0;
    text-align: right;
}

.post-container-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.post-card-box {
    background-color: #FFF;
    padding: 25px;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.post-card-image {
    width: 100%;
    aspect-ratio: 3 / 2;
    object-fit: cover;
    margin: 0px;
    padding: 0px;
    height: auto;
}

.post-type-box {
    position: absolute;
    top: 35px;
    right: 35px;
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    padding: 5px 10px;
    font-size: 12px;
}

.post-card-box {
    position: relative;
}

.post-card-title a {
    text-decoration: none;
    font-size: 16px;
    font-weight: 700;
    color: #454545;
    text-align: center;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    margin: 0px;
    padding: 0px;
    height: 50px;
}

.post-card-author {
    font-size: 12px;
    color: #343A40;
    margin: 0;
    padding: 0;
    text-align: center;
}

.post-card-summary {
    font-size: 14px;
    color: #525252;
    text-align: center;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    margin: 0px;
    padding: 0px;
}

.post-card-date {
    border-top: solid;
    border-color: #efefef;
    font-size: 12px;
    color: #636C68;
    margin: 0px;
    padding: 10px;
    text-align: center;
}

.post-container-empty {
    font-size: 16px;
    color: #777;
}

.pagination-container {
}

.pagination-button {
    display: inline-block;
    background-color: #7851A9;
    color: white;
    padding: 8px 12px;
    text-decoration: none;
    font-size: 14px;
}

.pagination-info {
    font-size: 14px;
    margin: 0 10px;
    color: #555;
}


@media screen and (max-width: 1024px) {
    .post-container-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .topic-container-title {
        font-size: 20px;
        font-weight: 900;
    }

    .topic-container-subtitle {
        font-size: 14px;
        font-weight: 500;
    }
}

@media screen and (max-width: 600px) {
    .post-container-grid {
        grid-template-columns: repeat(1, 1fr);
    }
    .topic-container-title {
        font-size: 20px;
        font-weight: 900;
    }

    .topic-container-subtitle {
        font-size: 14px;
        font-weight: 500;
    }
}
