/* ============================================
   Monarch Firearms Solutions
   Blog Listing / News Page Styles
   ============================================ */

/* --- Page Header --- */

.page-id-757 .et_pb_text_inner h1 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 0.25rem;
}

/* --- Override Salvattore Masonry with CSS Grid for Equal Heights --- */

.et_pb_blog_grid .et_pb_salvattore_content {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.et_pb_blog_grid .et_pb_salvattore_content .column {
    float: none !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

.et_pb_blog_grid .et_pb_salvattore_content .column .et_pb_post {
    height: 100%;
    display: flex;
    flex-direction: column;
}

/* --- Remove Default Grid Border/Card Style --- */

.et_pb_blog_grid .et_pb_post {
    border: none;
    padding: 0;
    background: transparent;
    margin-bottom: 0;
}

/* --- Card Redesign --- */

.et_pb_blog_grid .column .et_pb_post {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.et_pb_blog_grid .column .et_pb_post:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.1), 0 4px 8px rgba(0, 0, 0, 0.06);
}

/* --- Featured Image --- */

.et_pb_blog_grid .et_pb_image_container {
    overflow: hidden;
    border-radius: 8px 8px 0 0;
}

.et_pb_blog_grid .et_pb_image_container img {
    transition: transform 0.3s ease;
}

.et_pb_blog_grid .column .et_pb_post:hover .et_pb_image_container img {
    transform: scale(1.03);
}

.et_pb_blog_grid .et_audio_content,
.et_pb_blog_grid .et_main_video_container,
.et_pb_blog_grid .et_pb_post .et_pb_slider {
    margin: 0;
    border-radius: 8px 8px 0 0;
}

/* --- Content Area Inside Card --- */

.et_pb_blog_grid .column .et_pb_post h2.entry-title {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

.et_pb_blog_grid .column .et_pb_post .post-meta {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

.et_pb_blog_grid .column .et_pb_post .post-content {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* --- Post Title --- */

.et_pb_blog_grid h2.entry-title {
    font-size: 1.2rem !important;
    font-weight: 700;
    line-height: 1.35;
    margin-top: 1.25rem;
    margin-bottom: 0.5rem;
}

.et_pb_blog_grid h2 a {
    color: #1a1a1a;
    text-decoration: none;
    transition: color 0.2s ease;
}

.et_pb_blog_grid h2 a:hover {
    color: #555;
}

/* --- Post Meta: Author & Date on Separate Lines --- */

.et_pb_blog_grid .post-meta {
    font-size: 0.8rem !important;
    color: #888 !important;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 0.75rem;
    line-height: 1.8;
}

.et_pb_blog_grid .post-meta a {
    color: #888 !important;
    text-decoration: none;
}

.et_pb_blog_grid .post-meta a:hover {
    color: #333 !important;
}

/* Hide the pipe separators and break author/date onto new lines */
.et_pb_blog_grid .post-meta {
    font-size: 0 !important;
}

.et_pb_blog_grid .post-meta .author,
.et_pb_blog_grid .post-meta .author.vcard,
.et_pb_blog_grid .post-meta .published,
.et_pb_blog_grid .post-meta a {
    font-size: 0.8rem !important;
}

.et_pb_blog_grid .post-meta .author.vcard,
.et_pb_blog_grid .post-meta .published {
    display: block;
}

/* --- Excerpt Text --- */

.et_pb_blog_grid .post-content {
    font-size: 0.95rem;
    line-height: 1.65;
    color: #555;
}

.et_pb_blog_grid .post-content .post-content-inner {
    flex: 1;
}

/* --- Read More Link --- */

.et_pb_blog_grid .post-content a.more-link {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-decoration: none;
    color: #333;
    padding-top: 1rem;
    padding-bottom: 1.5rem;
    margin-top: auto;
    transition: color 0.2s ease;
}

.et_pb_blog_grid .post-content a.more-link:hover {
    color: #000;
}

.et_pb_blog_grid .post-content a.more-link:after {
    content: " \2192";
    transition: margin-left 0.2s ease;
    margin-left: 0;
}

.et_pb_blog_grid .post-content a.more-link:hover:after {
    margin-left: 4px;
}

/* --- Pagination --- */

.et_pb_blog_grid .wp-pagenavi,
.et_pb_blog_grid .pagination {
    margin-top: 2rem;
    text-align: center;
}

/* --- Fullwidth Blog Layout (if toggled) --- */

.et_pb_posts .et_pb_post {
    padding-bottom: 2.5rem;
    margin-bottom: 2.5rem;
    border-bottom: 1px solid #eee;
}

.et_pb_posts .et_pb_post:last-child {
    border-bottom: none;
}

.et_pb_posts .et_pb_post h2 {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.35;
    margin-bottom: 0.5rem;
}

.et_pb_posts .et_pb_post .post-meta {
    font-size: 0.85rem;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 0.75rem;
}

.et_pb_posts .et_pb_post .entry-featured-image-url {
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 1.25rem;
}

.et_pb_posts .et_pb_post .entry-featured-image-url img {
    transition: transform 0.3s ease;
}

.et_pb_posts .et_pb_post:hover .entry-featured-image-url img {
    transform: scale(1.02);
}

/* --- Default Index/Archive Styles --- */

.blog #left-area,
.archive #left-area,
.category #left-area,
.tag #left-area {
    width: 100% !important;
    float: none !important;
    padding-right: 0 !important;
}

.blog #sidebar,
.archive #sidebar,
.category #sidebar,
.tag #sidebar {
    display: none;
}

.blog #main-content .container:before,
.archive #main-content .container:before,
.category #main-content .container:before,
.tag #main-content .container:before {
    display: none !important;
}

/* --- Responsive --- */

@media (max-width: 980px) {
    .et_pb_blog_grid .et_pb_salvattore_content {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .et_pb_blog_grid h2.entry-title {
        font-size: 1.1rem !important;
    }

    .et_pb_blog_grid .column .et_pb_post h2.entry-title,
    .et_pb_blog_grid .column .et_pb_post .post-meta,
    .et_pb_blog_grid .column .et_pb_post .post-content {
        padding-left: 1.25rem;
        padding-right: 1.25rem;
    }
}

@media (max-width: 767px) {
    .et_pb_blog_grid .et_pb_salvattore_content {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .et_pb_blog_grid h2.entry-title {
        font-size: 1.05rem !important;
    }
}
