/*
 Theme Name: Astra Child
 Theme URI: https://beingoptimist.com/
 Description: Child Theme for Astra
 Author: Sadique Mannan
 Author URI: https://beingoptimist.com
 Template: astra
 Version: 1.4.3
 License: GNU General Public License v2 or later
 License URI: http://www.gnu.org/licenses/gpl-2.0.html
 Text Domain: astra-child
*/
/* === VISIT PROVIDER BUTTON === */
/* VISIT BUTTON - FULLY TESTED */

body {
    background-color: #f9f9f9;
}

/* Soft background for blog/archive pages */
.blog .site-content,
.archive .site-content {
    background: #f6f8fb;
    padding-top: 32px;
    padding-bottom: 48px;
}

/* Center the main container */
.blog .ast-container,
.archive .ast-container {
    max-width: 1100px;
    margin: 0 auto;
}

/* Main blog items wrapper */
.blog .ast-row,
.archive .ast-row {
    row-gap: 24px; /* keep Astra's layout, just add vertical space */
}

/* Each post card */
.blog .ast-row article,
.archive .ast-row article {
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid #e3e8f2;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.05);
    overflow: hidden;
    padding: 0; /* remove inner padding Astra may add */
    transition: transform 0.16s ease, box-shadow 0.16s ease;
}

/* Hover effect */
.blog .ast-row article:hover,
.archive .ast-row article:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.08);
}

/* Featured image (if present) */
.blog .ast-row article .post-thumb,
.archive .ast-row article .post-thumb {
    margin: 0;
}

.blog .ast-row article .post-thumb img,
.archive .ast-row article .post-thumb img {
    width: 100%;
    height: auto;
    display: block;
}

/* Inner content wrapper (title, meta, excerpt) */
.blog .ast-row article .entry-header,
.blog .ast-row article .entry-content,
.blog .ast-row article .entry-summary,
.archive .ast-row article .entry-header,
.archive .ast-row article .entry-content,
.archive .ast-row article .entry-summary {
    padding: 16px 20px;
}

/* Title */
.blog .ast-row article .entry-title,
.archive .ast-row article .entry-title {
    margin: 0 0 6px;
}

.blog .ast-row article .entry-title a,
.archive .ast-row article .entry-title a {
    font-size: 20px;
    font-weight: 700;
    color: #111827;
    text-decoration: none;
}

/* Meta (date, author) */
.blog .ast-row article .entry-meta,
.archive .ast-row article .entry-meta {
    margin-top: 4px;
    font-size: 13px;
    color: #6b7280;
}

/* Excerpt */
.blog .ast-row article .entry-summary,
.archive .ast-row article .entry-summary {
    margin-top: 10px;
    font-size: 15px;
    line-height: 1.7;
    color: #374151;
}

/* Read more link/button – target Astra's default link */
.blog .ast-row article a.more-link,
.archive .ast-row article a.more-link {
    display: inline-block;
    margin-top: 14px;
    padding: 8px 14px;
    border-radius: 999px;
    background: linear-gradient(135deg, #0a84ff, #0076f2);
    color: #ffffff;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 6px 16px rgba(10, 132, 255, 0.35);
}

.blog .ast-row article a.more-link:hover,
.archive .ast-row article a.more-link:hover {
    box-shadow: 0 8px 18px rgba(10, 132, 255, 0.45);
}

/* Pagination */
.blog .ast-pagination,
.archive .ast-pagination {
    margin-top: 28px;
    text-align: center;
}

.blog .ast-pagination a,
.archive .ast-pagination a,
.blog .ast-pagination span,
.archive .ast-pagination span {
    display: inline-block;
    margin: 0 4px;
    padding: 7px 11px;
    border-radius: 999px;
    border: 1px solid #d1d5db;
    font-size: 13px;
    color: #374151;
}

.blog .ast-pagination .current,
.archive .ast-pagination .current {
    background: #0a84ff;
    border-color: #0a84ff;
    color: #ffffff;
}

/* Mobile tweaks only */
@media (max-width: 640px) {
    .blog .site-content,
    .archive .site-content {
        padding-top: 24px;
        padding-bottom: 36px;
    }

    .blog .ast-row article .entry-title a,
    .archive .ast-row article .entry-title a {
        font-size: 18px;
    }
}