/*
 * ailhj-posts-section.css
 * Posts Section Widget styles
 */

/* ── Wrapper ── */
.ailhj-posts-section {
    position: relative;
    padding: 80px 0;
    width: 100%;
    background-color: #f8fbff;
    background-size: 2880px 460px;
    background-repeat: no-repeat;
    background-position: bottom;
    /* bg-image set inline via PHP: background-image / background-repeat / background-position / background-size */
}
.posts-item .item-heading>a {
    background: none;
    background-size: 0 2px;
    transition: background-size 1300ms;
}
/* ── Inner content ── */
.ailhj-ps-inner {
    position: relative;
    z-index: 1;
    max-width: var(--mian-max-width, 1280px);
    margin-left: auto;
    margin-right: auto;
    padding-left: 15px;
    padding-right: 15px;
}
.ailhj-ps-footer .but {
    font-size: 18px;
    min-width: 180px;
    padding: 10px 20px;
    border-radius: 12px !important;
    justify-content: center;
    box-shadow: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.ailhj-ps-footer .but .ailhj-arrow-icon {
    font-style: normal;
    display: inline-flex;
    align-items: center;
    position: relative;
    animation: ailhj-slide-arrow 0.7s ease-in-out infinite;
}
/* ── Header: title + description ── */
.ailhj-ps-header {
    text-align: center;
    margin-bottom: 36px;
}

.ailhj-ps-title {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.25;
    color: var(--key-color);
    margin: 0 0 12px;
}

.ailhj-ps-desc {
    font-size: 1rem;
    line-height: 1.6;
    max-width: 560px;
    margin: 0 auto;
}

/* ── Posts list area ── */
.ailhj-ps-list {
    margin-bottom: 0;
}

/* Column count override via --ailhj-ps-cols CSS variable (set inline by PHP) */
.ailhj-ps-list .posts-item.card {
    width: calc(100% / var(--ailhj-ps-cols) - 16px);
}

@media (max-width: 992px) {
    .ailhj-ps-list .posts-item.card {
        width: calc(50% - 10px);
    }
}

@media (max-width: 576px) {
    .ailhj-ps-list .posts-item.card {
        width: 100%;
        margin: 5px 0;
    }
}

/* ── Footer: more button ── */
.ailhj-ps-footer {
    display: flex;
    justify-content: center;
    margin-top: 32px;
}

/* arrow icon slide animation on hover */
.ailhj-ps-footer .ailhj-arrow-icon {
    display: inline-flex;
    align-items: center;
    margin-left: 6px;
    transition: transform 0.25s ease;
}

.ailhj-ps-footer .but:hover .ailhj-arrow-icon {
    transform: translateX(4px);
}

/* ── Responsive ── */
@media (max-width: 768px) {
    .ailhj-posts-section {
        padding: 40px 0 32px;
    }

    .ailhj-ps-title {
        font-size: 1.5rem;
    }

    .ailhj-ps-header {
        margin-bottom: 24px;
    }
}

@media (max-width: 576px) {
    .ailhj-posts-section {
        padding: 28px 0 24px;
    }

    .ailhj-ps-title {
        font-size: 1.25rem;
    }
}