.posts {
    background-color: #131313;
}

.posts .container {
    padding: 72px 0;
    display: grid;
    grid-template-columns: 9fr 3fr;
    gap: 48px;
}

.posts__content {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.post__category {
    display: flex;
    align-items: center;
    gap: 12px;
    gap: 12px;
}

.post__category a {
    padding: 12px 24px;
    color: #BDBDBD;
    font-weight: 600;
    font-size: 16px;
    line-height: 150%;
    letter-spacing: 1%;
    text-align: center;
}

.post__category a:hover {
    border: 1px solid #ffffff;
}

.post__category a.active {
    background-color: #EE1C23;
    color: #FFFFFF;
    border: none;
}

.posts__list {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 24px;
}

.posts__list__card {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.posts__list__card img {
    width: 100%;
    height: 204px;
    object-fit: cover;
}

.posts__list__card h3 {
    color: #FFFFFF;
    font-weight: 600;
    font-size: 16px;
    line-height: 150%;
    letter-spacing: 1%;
}

.posts__list__card p {
    color: #E0E0E0;
    font-weight: 400;
    font-size: 14px;
    line-height: 145%;
    letter-spacing: 1%;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.posts__list__card__info {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.posts__list__card__info a,
.posts__list__card__info span {
    color: #757575;
    font-weight: 400;
    font-size: 14px;
    line-height: 145%;
    letter-spacing: 1%;
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 40px auto 0;
    gap: 8px;
}

.pagination ul.page-numbers {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.pagination ul.page-numbers li {
    margin: 0;
    padding: 0;
    list-style: none;
}

.pagination .page-numbers {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    font-weight: 600;
    font-size: 14px;
    line-height: 1.45;
    color: #FFFFFF;
    text-decoration: none;
    transition: background-color 0.2s ease;
}


.pagination .page-numbers.current,
.pagination .page-numbers.current span.number {
    background-color: #EE1C23;
    cursor: default;
}


.pagination .page-numbers:not(.current):not(.prev):not(.next) {
    background-color: transparent;
}


.pagination .prev.page-numbers,
.pagination .next.page-numbers {
    width: 36px;
    height: 36px;
    padding: 0;
    background-color: transparent;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.pagination .prev.page-numbers svg,
.pagination .next.page-numbers svg {
    width: 20px;
    height: 20px;
    fill: #FFFFFF;
}

.pagination .prev.page-numbers:hover,
.pagination .next.page-numbers:hover {
    background-color: #EE1C23;
}

.pagination .page-numbers.dots {
    width: auto;
    background: none;
    border: none;
    color: #FFFFFF;
    cursor: default;
    padding: 0 8px;
}

.page-numbers {
    border-radius: 0;
}

.search-container {
    position: relative;
    width: 100%;
    max-width: 400px;        
    margin: 0 auto;           
}

.search-form {
    width: 100%;
    display: flex;
    align-items: center;
}

.search__post {
    flex: 1;
    height: 48px;
    padding: 12px 16px;
    padding-right: 48px;     
    width: 100%;
    background-color: #141414;
    border: 1px solid #212121;
    border-radius: 4px;       

    color: #ffffff;
    font-weight: 400;
    font-size: 16px;
    line-height: 1.5;
    letter-spacing: 0.01em;

    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.search__post::placeholder {
    color: #9E9E9E;
    opacity: 1;
}

.search__post:focus {
    border-color: #4a4a4a;
    box-shadow: 0 0 0 2px rgba(74, 74, 74, 0.3); /* Focus ring nhẹ */
}

/* Icon button */
.search-icon {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9E9E9E;
    transition: color 0.2s ease;
}

.search-icon:hover,
.search-icon:focus {
    color: #ffffff;           /* Hover sáng hơn */
    outline: none;
}

.search-icon svg {
    width: 100%;
    height: 100%;
    fill: currentColor;       /* Dùng currentColor để dễ đổi màu bằng CSS */
}



.blog-sidebar {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.blog-sidebar h3 {
    font-family: "SVN-Sigokae";
    color: #FFFFFF;
    font-weight: 400;
    font-size: 24px;
    line-height: 135%;
    letter-spacing: 1%;
}

.siderbar__category {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.siderbar__category__list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.siderbar__category__list a {
    background-color: #141414;
    padding: 6px 16px;
    border: 1px solid #212121;
    color: #FFFFFF;
    font-weight: 400;
    font-size: 14px;
    leading-trim: NONE;
    line-height: 145%;
    letter-spacing: 1%;
}

.sidebar__social {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.sidebar__social__list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-self: start;
}

.sidebar__social__list a {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    color: #E0E0E0;
    font-weight: 400;
    font-size: 14px;
    leading-trim: NONE;
    line-height: 145%;
    letter-spacing: 1%;
    gap: 8px;
}
.sidebar__social__list a img {
    width: 24px;
    height: 24px;
    margin: 0;
}
.sidebar__news {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.sidebar__news__list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.sidebar__news__list a {
    display: grid;
    grid-template-columns: 4fr 8fr;
    gap: 12px;
}

.sidebar__news__list a img {
    width: 100%;
    height: 60px;
    object-fit: cover;
}

.sidebar__news__list a p {
    color: #E0E0E0;
    font-weight: 400;
    font-size: 14px;
    leading-trim: NONE;
    line-height: 145%;
    letter-spacing: 1%;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.sidebar__image {
    width: 100%;
    height: max-content;
}

.sidebar__image img {
    width: 100%;
    min-height: 423px;
    height: auto;
    object-fit: cover;
}

.sidebar__tag {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.sidebar__tag__list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.sidebar__tag__list a {
    color: #9E9E9E;
    font-weight: 400;
    font-size: 14px;
    leading-trim: NONE;
    line-height: 145%;
    letter-spacing: 1%;
    padding: 4px 8px;
    border: 1px solid #212121;

}


@media screen and (max-width:1024px) {
    .posts__list {
        grid-template-columns: 1fr 1fr;
    }

    .posts .container {
        grid-template-columns: 7fr 4fr;
        gap: 32px;
    }
    .post__category a {
        font-size: 14px;
        padding: 8px 20px;
    }
}

@media screen and (max-width: 768px) {
    .posts .container {
        padding: 48px 10px;
    }
     .pagination ul.page-numbers {
        gap: 8px;
    }

    .pagination .page-numbers {
        width: 32px;
        height: 32px;
        font-size: 13px;
    }

    .pagination .prev.page-numbers svg,
    .pagination .next.page-numbers svg {
        width: 18px;
        height: 18px;
    }
    .posts .container {
        grid-template-columns: 1fr;
        gap: 72px;
    }
    .posts__list__card img {
        height: auto;
        min-height: 160px;
    }
    .posts__list__card h3 {
        font-size: 14px;
    }
}
