/* ==========================================================================
   Archive / Articles Listing Page Dedicated Styles
   ========================================================================== */

body.blog .site-content .ast-container,
body.archive .site-content .ast-container,
body.search .site-content .ast-container,
body.page:not(.home):not(.single-post):not(.single) .site-content .ast-container {
    max-width: 1340px !important;
    width: 94% !important;
    margin: 0 auto !important;
    padding-top: 36px !important;
    padding-bottom: 50px !important;
}

body.blog #primary,
body.archive #primary,
body.search #primary,
body.page:not(.home):not(.single-post):not(.single) #primary {
    width: 100% !important;
    max-width: 100% !important;
    float: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

body.blog #main,
body.archive #main,
body.search #main,
body.page:not(.home):not(.single-post):not(.single) #main {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    float: none !important;
}

/* 3-Column Responsive Grid */
body.blog .ast-row,
body.archive .ast-row,
body.search .ast-row,
body.page:not(.home):not(.single-post):not(.single) .ast-row {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 30px !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

body.blog article.ast-article-post,
body.archive article.ast-article-post,
body.search article.ast-article-post,
body.page:not(.home):not(.single-post):not(.single) article.ast-article-post,
body.blog .ast-col-md-4,
body.archive .ast-col-md-4,
body.search .ast-col-md-4,
body.page:not(.home):not(.single-post):not(.single) .ast-col-md-4 {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    float: none !important;
    display: flex !important;
    flex-direction: column !important;
    background-color: #ffffff !important;
    border-radius: 18px !important;
    overflow: hidden !important;
    border: 1px solid rgba(226, 232, 240, 0.85) !important;
    box-shadow: 0 4px 18px -2px rgba(15, 23, 42, 0.05) !important;
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
                box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1),
                border-color 0.35s ease !important;
    margin: 0 !important;
    height: auto !important;
    box-sizing: border-box !important;
}

body.blog article:hover,
body.archive article:hover,
body.page:not(.home):not(.single-post):not(.single) article:hover {
    transform: translateY(-7px) !important;
    box-shadow: 0 20px 32px -8px rgba(2, 132, 199, 0.14) !important;
    border-color: rgba(56, 189, 248, 0.6) !important;
}

body.blog .post-thumb-img-content,
body.archive .post-thumb-img-content {
    aspect-ratio: 16 / 10 !important;
    max-height: 220px !important;
    overflow: hidden !important;
}

body.blog .post-thumb-img-content img,
body.archive .post-thumb-img-content img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    transition: transform 0.4s ease !important;
}

body.blog article:hover .post-thumb-img-content img,
body.archive article:hover .post-thumb-img-content img {
    transform: scale(1.07) !important;
}

body.blog article .entry-content-wrap,
body.archive article .entry-content-wrap,
body.page article .entry-content-wrap {
    padding: 20px 22px 18px 22px !important;
    display: flex !important;
    flex-direction: column !important;
    flex-grow: 1 !important;
}

/* Animated Gradient Multi-line Underline (Right to Left: Black, Pink, Red) */
body.blog .entry-title a,
body.archive .entry-title a,
body.page .entry-title a {
    color: #0f172a !important;
    text-decoration: none !important;
    display: inline !important;
    -webkit-box-decoration-break: clone !important;
    box-decoration-break: clone !important;
    background-image: linear-gradient(to left, #dc2626 0%, #ec4899 50%, #09090b 100%) !important;
    background-repeat: no-repeat !important;
    background-size: 0% 3px !important;
    background-position: right bottom 1px !important;
    padding-bottom: 3px !important;
    transition: background-size 0.75s cubic-bezier(0.22, 1, 0.36, 1), color 0.2s ease !important;
}

body.blog article:hover .entry-title a,
body.archive article:hover .entry-title a,
body.page article:hover .entry-title a,
body.blog .entry-title a:hover,
body.archive .entry-title a:hover,
body.page .entry-title a:hover {
    background-size: 100% 3px !important;
}

.ast-pagination,
.pagination {
    grid-column: 1 / -1 !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 8px !important;
    margin-top: 36px !important;
    width: 100% !important;
}

@media screen and (max-width: 1024px) {
    body.blog .ast-row,
    body.archive .ast-row,
    body.page:not(.home):not(.single-post):not(.single) .ast-row {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 24px !important;
    }
}

@media screen and (max-width: 640px) {
    body.blog .ast-row,
    body.archive .ast-row,
    body.page:not(.home):not(.single-post):not(.single) .ast-row {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }
}

