/* General */

img {
    display: block;
}

.width_100 {
    width: 100%;
}

.flex {
    display: flex;
}

/* ------ */

.home-columns {
    gap: 30px;
    width: 1600px;
    max-width: 100%;
    margin: 0 auto;
}

.home-columns>div>div {
    padding: 30px;
    background-color: #fff;
    border-radius: 20px;
    box-shadow: 0 0 10px 0px rgb(0 0 0 / 5%);
}

.home-columns h3 {
    font-size: 22px;
}

@media (min-width:1365.6px) {

    .home-left-column,
    .home-right-column {
        max-width: 400px;
        min-width: 350px;
    }
    .home-middle-column {
        max-width: calc(100% - 700px - 30px*2);
        flex: 1 0;
    }
}

@media (min-width:768.6px) and (max-width:1365.5px) {
    .home-columns {
        flex-wrap: wrap;
    }
    .home-left-column,
    .home-right-column {
        max-width: calc(50% - 30px/2)
    }
    .home-left-column {
        order: 1;
    }
    .home-middle-column {
        order: 3;
    }
    .home-right-column {
        order: 2;
    }
}
@media (max-width:768.5px) {
    .home-columns {
        flex-direction: column;
    }
    .home-left-column {
        order: 2;
    }
    .home-middle-column {
        order: 1;
    }
        .home-right-column {
        order: 3;
    }
}


/* Left --------------------------------------- */

.home-left-column h2 {
    font-size: 17px;
    font-weight: 400;
}

/* keys-featured */

.keys-featured .list-keys {
    list-style: none;
    padding: 0;
    margin: 0;
    flex-wrap: wrap;
    gap: 10px;
}

/* Thiết lập cho Top 3 từ khóa nằm riêng 1 dòng */
.keys-featured .list-keys a.top-key {
    width: 100%;
    align-items: center;
    gap: 5px;
    margin-top: -5px;
    color: #333;
    font-weight: 600;
}

.keys-featured .list-keys a.top-key:nth-child(3) {
    padding: 0 0 10px;
}

.keys-featured .list-keys a.top-key:hover {
    background: transparent;
    color: var(--accent);
    text-decoration: none;
}

/* Kiểu dáng cho vòng tròn số thứ tự */
.keys-featured .list-keys a.top-key .rank-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding-top: 14px;
    color: #fff;
    font-weight: 600;
}

/* Đánh màu nổi bật riêng cho Top 1, 2, 3 */
.keys-featured .list-keys a.rank-1 .rank-num {
    width: 50px;
    height: 50px;
    background-color: transparent;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='96' height='96' viewBox='0 0 48 48'%3E%3Cpath fill='%231e73be' stroke='%231e73be' stroke-linejoin='round' stroke-width='0' d='M24 44c8.235 0 15-6.526 15-14.902c0-2.056-.105-4.26-1.245-7.686s-1.369-3.868-2.574-5.984c-.515 4.317-3.27 6.117-3.97 6.655c0-.56-1.666-6.747-4.193-10.45C24.537 8 21.163 5.617 19.185 4c0 3.07-.863 7.634-2.1 9.96c-1.236 2.325-1.468 2.41-3.013 4.14s-2.253 2.265-3.545 4.365S9 27.362 9 29.418C9 37.794 15.765 44 24 44Z'/%3E%3C/svg%3E");
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    font-size: 22px;
}
.keys-featured .list-keys a.rank-1 .key-text {
    padding-top: 18px;
    font-size: 17px;
}

.keys-featured .list-keys a.rank-2 .rank-num {
    width: 45px;
    height: 45px;
    margin-left: 2px;
    background-color: transparent;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='96' height='96' viewBox='0 0 48 48'%3E%3Cpath fill='%234299e6' stroke='%234299e6' stroke-linejoin='round' stroke-width='0' d='M24 44c8.235 0 15-6.526 15-14.902c0-2.056-.105-4.26-1.245-7.686s-1.369-3.868-2.574-5.984c-.515 4.317-3.27 6.117-3.97 6.655c0-.56-1.666-6.747-4.193-10.45C24.537 8 21.163 5.617 19.185 4c0 3.07-.863 7.634-2.1 9.96c-1.236 2.325-1.468 2.41-3.013 4.14s-2.253 2.265-3.545 4.365S9 27.362 9 29.418C9 37.794 15.765 44 24 44Z'/%3E%3C/svg%3E");
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    font-size: 19px;
}
.keys-featured .list-keys a.rank-2 .key-text {
    padding-top: 15px;
    font-size: 17px;
}

.keys-featured .list-keys a.rank-3 .rank-num {
    width: 40px;
    height: 40px;
    margin-left: 5px;
    background-color: transparent;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='96' height='96' viewBox='0 0 48 48'%3E%3Cpath fill='%237dc2ff' stroke='%237dc2ff' stroke-linejoin='round' stroke-width='0' d='M24 44c8.235 0 15-6.526 15-14.902c0-2.056-.105-4.26-1.245-7.686s-1.369-3.868-2.574-5.984c-.515 4.317-3.27 6.117-3.97 6.655c0-.56-1.666-6.747-4.193-10.45C24.537 8 21.163 5.617 19.185 4c0 3.07-.863 7.634-2.1 9.96c-1.236 2.325-1.468 2.41-3.013 4.14s-2.253 2.265-3.545 4.365S9 27.362 9 29.418C9 37.794 15.765 44 24 44Z'/%3E%3C/svg%3E");
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    font-size: 16px;
}
.keys-featured .list-keys a.rank-3 .key-text {
    padding-top: 15px;
    font-size: 15px;
}

/* Giữ nguyên kiểu dáng cũ cho các từ khóa còn lại */
.keys-featured .list-keys a.normal-key {
    padding: 5px 15px;
    background: #f6f6f6;
    border-radius: 45px;
    color: #333;
    font-size: 14px;
    text-decoration: none;
    transition: all .3s ease;
}

.keys-featured .list-keys a.normal-key:hover {
    background: #cae3ff;
    color: #333;
}

/* Mid --------------------------------------- */

/* banner */

.home-middle-column .banner {
    width: max-content;
    max-width: 100%;
    margin: 0 auto 30px;
    padding: 0;
}

.home-middle-column .banner img {
    width: 100%;
    max-width: 810px;
    margin: 0 auto;
    object-fit: contain;
    border-radius: 20px;
}

/* random-posts-slider */

.random-posts-slider {
    min-height: 360px;
    padding: 30px 20px;
    padding-bottom: 80px;
}

.random-posts-slider .slide {
    padding: 1px;
}

.random-posts-slider .slide-footer {
    text-align: right;
}

.random-posts-slider .readmore {
    display: inline-block;
}

.random-posts-slider .slick-arrow::before {
    display: none !important;
}

/* Định dạng chung cho 2 nút mũi tên */
.random-posts-slider .slick-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    z-index: 10;
    top: unset;
    bottom: 30px;
    width: 45px;
    height: 38px;
    padding: 0;
    background-color: #f2f3f5;
    border: none;
    color: #333;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.random-posts-slider .slick-arrow:hover {
    background-color: #e5e7eb;
}

/* Nút Prev */
.random-posts-slider .slick-prev.custom-prev {
    left: 20px;
    border-radius: 20px 0 0 20px;
}

/* Đường gạch dọc phân chia ở giữa */
.random-posts-slider .slick-prev.custom-prev::after {
    content: "";
    position: absolute;
    top: 25%;
    right: 0;
    width: 1px;
    height: 50%;
    background-color: #d1d5db;
}

/* Nút Next */
.random-posts-slider .slick-next.custom-next {
    left: 65px;
    border-radius: 0 20px 20px 0;
}

/* Icon SVG mũi tên */
.random-posts-slider .slick-arrow svg {
    width: 18px;
    height: 18px;
}

/* Right --------------------------------------- */

.home-right-column {
    flex-direction: column;
    gap: 30px;
}

/* feedback */

.feedback h2 {
    font-size: 18px;
}