/* =========================================================
   ASH KT — BLOG SYSTEM
   Blog Listing / Post Cards / Pagination
   ========================================================= */


/* =========================================================
   1. BLOG CONTAINER
   ========================================================= */

.ashkt-blog-container {
    max-width: var(--ashkt-container-width) !important;
    width: 100% !important;

    margin: 0 auto !important;

    padding-left: var(--ashkt-side-spacing) !important;
    padding-right: var(--ashkt-side-spacing) !important;

    padding-top: 60px;
    padding-bottom: 60px;

    box-sizing: border-box !important;
}


/* =========================================================
   2. BLOG POST GRID
   ========================================================= */

.ashkt-post-grid {
    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 30px;

    align-items: stretch;
}


/* =========================================================
   3. PREMIUM BLOG CARD
   ========================================================= */

.ashkt-post-card {
    display: flex;
    flex-direction: column;

    height: 100%;
    overflow: hidden;

    background: var(--ashkt-white);

    border: 1px solid var(--ashkt-border);
    border-radius: 18px;

    box-shadow: var(--ashkt-shadow);

    padding: 0 !important;

    box-sizing: border-box !important;

    transition:
        transform 0.35s ease,
        box-shadow 0.35s ease,
        border-color 0.35s ease;
}

.ashkt-post-card:hover {
    transform: translateY(-7px);

    border-color:
        rgba(184, 115, 51, 0.35);

    box-shadow:
        0 20px 45px rgba(31, 41, 55, 0.15);
}


/* =========================================================
   4. FEATURED IMAGE
   ========================================================= */

.ashkt-post-image {
    display: block;

    width: 100%;

    overflow: hidden;

    background: var(--ashkt-header);

    position: relative;

    border-radius: 18px 18px 0 0 !important;
}

.ashkt-post-image img {
    width: 100%;

    aspect-ratio: 1 / 1;

    object-fit: cover;

    display: block;

    backface-visibility: hidden;

    transition:
        transform 0.5s ease;
}

.ashkt-post-card:hover
.ashkt-post-image img {
    transform: scale(1.04);
}


/* =========================================================
   5. CARD CONTENT AREA
   ========================================================= */

.ashkt-post-content {
    display: flex;

    flex-direction: column;

    flex: 1;

    padding: 24px !important;

    box-sizing: border-box !important;
}


/* =========================================================
   6. POST TITLE
   ========================================================= */

.ashkt-post-title {
    margin: 0 0 12px !important;

    color: var(--ashkt-heading);

    font-size: 1.3rem;

    line-height: 1.3;

    font-weight: 700;

    display: -webkit-box;

    -webkit-line-clamp: 1;
    line-clamp: 1;

    -webkit-box-orient: vertical;

    overflow: hidden;

    text-overflow: ellipsis;

    list-style: none !important;
}

.ashkt-post-title::before,
.ashkt-post-title::after {
    content: none !important;
}

.ashkt-post-title a {
    color: var(--ashkt-heading);

    text-decoration: none;
}

.ashkt-post-title a:hover {
    color: var(--ashkt-primary);
}


/* =========================================================
   7. POST EXCERPT
   ========================================================= */

.ashkt-post-excerpt {
    margin-bottom: 16px !important;
}

.ashkt-post-excerpt p {
    margin: 0;

    color: var(--ashkt-text);

    font-size: 0.95rem;

    line-height: 1.5;

    display: -webkit-box;

    -webkit-line-clamp: 1;
    line-clamp: 1;

    -webkit-box-orient: vertical;

    overflow: hidden;
}


/* =========================================================
   8. POST TICKER ANIMATION
   ========================================================= */

.ashkt-post-card.is-playing
.ashkt-post-excerpt {
    overflow: hidden !important;

    position: relative;

    width: 100%;
}

.ashkt-post-card.is-playing
.ashkt-post-excerpt p {
    display: inline-block !important;

    white-space: nowrap !important;

    -webkit-line-clamp: unset !important;

    line-clamp: 1;

    animation:
        ashktTickerScroll 35s linear infinite;
}

@keyframes ashktTickerScroll {

    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-100%);
    }
}


/* =========================================================
   9. POST META
   ========================================================= */

.ashkt-post-meta-simple {
    display: flex;

    align-items: center;

    gap: 8px;

    font-size: 0.88rem;

    color: var(--ashkt-text);

    font-weight: 600;

    margin-bottom: 20px !important;
}

.ashkt-post-meta-simple a,
.ashkt-meta-author,
.ashkt-meta-date {
    color: var(--ashkt-links);
    text-decoration: none;
}

.ashkt-post-meta-simple a:hover {
    text-decoration: underline;
}

.ashkt-meta-separator {
    color: var(--ashkt-text);

    opacity: 0.5;
}


/* =========================================================
   10. CARD ACTIONS
   ========================================================= */

.ashkt-card-actions {
    display: flex;

    align-items: center;

    justify-content: center;

    width: 100%;

    margin-top: auto;
}


/* =========================================================
   11. PAGINATION
   ========================================================= */

.ashkt-pagination {
    margin-top: 50px;

    text-align: center;
}

.ashkt-pagination .nav-links {
    display: flex;

    justify-content: center;

    align-items: center;

    flex-wrap: wrap;

    gap: 8px;
}

.ashkt-pagination a,
.ashkt-pagination span {
    display: inline-flex;

    align-items: center;

    justify-content: center;

    min-width: 42px;
    min-height: 42px;

    padding: 8px 14px;

    border: 1px solid var(--ashkt-border);

    border-radius: 8px;

    background: var(--ashkt-white);

    color: var(--ashkt-heading);
}

.ashkt-pagination .current,
.ashkt-pagination a:hover {
    background: var(--ashkt-primary);

    border-color: var(--ashkt-primary);

    color: var(--ashkt-white);
}


/* =========================================================
   12. NO POSTS
   ========================================================= */

.ashkt-no-posts {
    padding: 60px 30px;

    background: var(--ashkt-white);

    border: 1px solid var(--ashkt-border);

    border-radius: 18px;

    text-align: center;

    box-shadow: var(--ashkt-shadow);
}

.ashkt-no-posts h2 {
    margin-top: 0;

    color: var(--ashkt-heading);
}


/* =========================================================
   13. TABLET
   ========================================================= */

@media (max-width: 991px) {

    .ashkt-post-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

    .ashkt-blog-container {
        padding: 45px 0;
    }
}


/* =========================================================
   14. MOBILE
   ========================================================= */

@media (max-width: 650px) {

    .ashkt-blog-container {
        width: min(100% - 24px, 600px);

        padding: 30px 0;
    }

    .ashkt-post-grid {
        grid-template-columns: 1fr;

        gap: 22px;
    }

    .ashkt-post-content {
        padding: 22px;
    }

    .ashkt-post-title {
        font-size: 1.3rem;
    }

    .ashkt-post-excerpt p {
        font-size: 0.95rem;
    }
}