/**
Theme Name: PNG ASTRA THEME
Author: Brainstorm Force
Author URI: http://wpastra.com/about/
Description: Astra is the fastest, fully customizable & beautiful theme suitable for blogs, personal portfolios and business websites. It is very lightweight (less than 50KB on frontend) and offers unparalleled speed. Built with SEO in mind, Astra comes with schema.org code integrated so search engines will love your site. Astra offers plenty of sidebar options and widget areas giving you a full control for customizations. Furthermore, we have included special features and templates so feel free to choose any of your favorite page builder plugin to create pages flexibly. Some of the other features: # WooCommerce Ready # Responsive # Compatible with major plugins # Translation Ready # Extendible with premium addons # Regularly updated # Designed, Developed, Maintained & Supported by Brainstorm Force. Looking for a perfect base theme? Look no further. Astra is fast, fully customizable and beautiful theme!
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: png-astra-theme
Template: astra
*/

.search .ast-article-post,
.search-card-column .ast-article-post {
    padding: 0 !important;
}

.ast-separate-container .ast-blog-layout-4-grid .ast-article-post {
    padding: 0 1em 0 !important;
}

/* ==========================================
   Faceted Search Form CSS Grid (Astra Theme)
   ========================================== */

.faceted-search-wrapper {
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 1.25rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
}

.faceted-search-form {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 12px;
    align-items: center;
}

/* Field Spanning Rules */
.faceted-search-form .search-keyword {
    grid-column: span 12; /* Full width keyword search */
}

.faceted-search-form .search-field-group:not(.search-keyword) {
    grid-column: span 3; /* Dropdowns share the row (3 cols each) */
}

/* Selected Tag Chips Container - Full Row Above Buttons */
.faceted-search-form .faceted-chips-container {
    grid-column: span 12; /* Spans full width across the grid */
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 10px;
    margin: 4px 0 6px 0;
    font-size: 13.5px;
    line-height: 1.4;
    color: #444;
}

.faceted-search-form .search-actions-group {
    grid-column: span 12; /* Full row for buttons directly under chips */
    display: flex;
    gap: 8px;
    align-items: center;
}

/* Form Controls Styling */
.faceted-search-form input[type="text"],
.faceted-search-form select.faceted-select {
    width: 100%;
    height: 42px;
    padding: 0 12px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    background-color: #f8fafc;
    font-size: 0.9rem;
    color: #1e293b;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.faceted-search-form input[type="text"]:focus,
.faceted-search-form select.faceted-select:focus {
    outline: none;
    border-color: #0284c7;
    box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15);
    background-color: #ffffff;
}

/* Buttons Styling */
.faceted-search-form .search-submit-btn {
    height: 42px;
    padding: 0 16px;
    background-color: #0f172a;
    color: #ffffff;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    white-space: nowrap;
    transition: background-color 0.15s ease;
}

.faceted-search-form .search-submit-btn:hover {
    background-color: #1e293b;
    color: #ffffff;
}

.faceted-search-form .search-clear-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 42px;
    padding: 0 14px;
    background-color: #f1f5f9;
    color: #64748b;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-weight: 500;
    font-size: 0.875rem;
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.15s ease;
}

.faceted-search-form .search-clear-btn:hover {
    background-color: #e2e8f0;
    color: #0f172a;
    border-color: #94a3b8;
}

/* ==========================================
   Responsive Breakpoints
   ========================================== */

/* Tablet (2x2 grid for dropdowns) */
@media (max-width: 921px) {
    .faceted-search-form .search-field-group:not(.search-keyword) {
        grid-column: span 6;
    }
    .faceted-search-form .search-actions-group {
        grid-column: span 12;
        justify-content: flex-start;
    }
}

/* Mobile (Single Column Stack) */
@media (max-width: 544px) {
    .faceted-search-form .search-field-group:not(.search-keyword) {
        grid-column: span 12;
    }
    .faceted-search-form .search-actions-group {
        grid-column: span 12;
        flex-direction: column;
        align-items: stretch;
    }
    .faceted-search-form .search-submit-btn,
    .faceted-search-form .search-clear-btn {
        width: 100%;
    }
}

/* Suppress Astra's native hashtag containers on this page */
.search-card-column .ast-taxonomy-container,
.search-card-column .entry-tags {
    display: none !important;
}

/* Suppress taxonomy terms on all archive, search, and date listing cards */
.archive .ast-terms-link,
.search .ast-terms-link,
.blog .archive-entry-meta .ast-terms-link,
.home .ast-terms-link,
.custom-meta-sep {
    display: none !important;
}
.custom-faceted-terms-single {
    margin-top: 2em; 
    padding-top: 1em; 
    font-size: 14px;
}
.terms-label {
    font-weight: 300; 
    margin-right: 0.5em;
    display: block;
}

/* ==========================================
   Mobile Horizontal Overflow Safety Net
   ========================================== */

/* Binds global viewport boundaries */
html, body {
    overflow-x: hidden;
    max-width: 100vw;
}

/* Bounds search form inputs & containers within screen edges */
.faceted-search-wrapper,
.faceted-search-form,
.search-field-group,
.faceted-typeahead-input,
#faceted-search-input {
    max-width: 100% !important;
    box-sizing: border-box !important;
}

/* Stacks form buttons vertically on narrow viewports */
@media only screen and (max-width: 480px) {
    .search-actions-group {
        display: flex;
        flex-direction: column;
        width: 100%;
        gap: 10px;
    }
    
    .search-actions-group .button {
        width: 100%;
        text-align: center;
    }
}

/* ==========================================
   Responsive Image Overrides (Fix Inline Widths)
   ========================================== */

/* Forces inline HTML width attributes (e.g. width="800") to shrink on smaller screens */
img,
.entry-content img,
.ast-article-single img,
.wp-block-image img {
    max-width: 100% !important;
    height: auto !important;
    box-sizing: border-box !important;
}

/* Prevents image wrappers and figures from maintaining forced fixed widths */
figure,
.wp-block-image,
.wp-caption {
    max-width: 100% !important;
}

/* ==========================================
   Minimalist Horizontal Tag Chips
   ========================================== */

/* Minimalist inline item */
.faceted-chip {
    display: inline-flex;
    align-items: center;
    background: transparent;
    border: none;
    padding: 0;
    font-weight: 500;
    color: #1e293b;
    white-space: nowrap;
}

/* Inter-item separator dot */
.faceted-chip:not(:last-child)::after {
    content: " + ";
    margin-left: 10px;
    color: #94a3b8;
    font-weight: normal;
}

/* Subtle, minimal 'x' remove button */
.faceted-chip .chip-remove {
    background: transparent;
    border: 1px #94a3b8 solid;
    color: #94a3b8;
    cursor: pointer;
    font-size: 13px;
    line-height: 1;
    margin-left: 4px;
    padding: 0px 3px;
    border-radius: 50%;
    font-weight: normal;
    margin-top: -10px;
    transition: color 0.15s ease;
}

.faceted-chip .chip-remove:hover {
    color: #dc2626;
    border-color: #dc2626;
}