.am-articles-filter-wrap{margin-bottom:20px;padding:15px;border:1px solid #eee;background:#fafafa}
.am-article-item{margin-bottom:18px;border-bottom:1px dashed #ddd;padding-bottom:12px}
.am-article-item img{max-width:100%;height:auto;margin-bottom:8px}
.am-no-results{font-style:italic}
#am-load-more{margin-top:10px;padding:8px 12px;border:1px solid #ddd;background:#fff}
.am-article-thumb img {
    width: 100%;
    height: 180px;          /* Set your desired height */
    object-fit: cover;      /* Crops edges to keep consistent size */
    border-radius: 6px;
}
.article-pix{height:260px; overflow:hidden; border-radius:8px;}
.article_rd{padding-top:10px;}
.article_rd a{color:#0073e6; font-weight:600;}
/* Articles Grid Wrapper */
#am-articles-results {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

/* Article Card */
.am-article-item {
    background: #fff;
    border: 1px solid #eee;
    padding: 15px;
    border-radius: 6px;
    transition: box-shadow .2s ease;
}

.am-article-item:hover {
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.am-article-item img {
    width: 100%;
    height: auto;
    margin-bottom: 10px;
    border-radius: 4px;
}

.am-article-item h3 {
    font-size: 18px;
    margin-bottom: 10px;
}

.am-excerpt {
    color: #333;
    font-size: 17px;
}

/* Load More Button */
#am-load-more {
    margin: 25px auto;
    display: table;
    padding: 10px 18px;
    border: 1px solid #ccc;
    background: #fafafa;
    cursor: pointer;
    border-radius: 4px;
}

#am-load-more:hover {
    background: #f0f0f0;
}

/* Filters Box */
.am-articles-filter-wrap {
    margin-bottom: 20px;
    padding: 15px;
    border: 1px solid #eee;
    background: #fafafa;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* Responsive */
@media(max-width: 767px) {
    #am-articles-results {
        grid-template-columns: 1fr;
    }
}
/* Fade-in animation */
.am-fade-in {
    opacity: 0;
    transform: translateY(10px);
    animation: amFadeIn .4s ease forwards;
}

@keyframes amFadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
/* --- Filter Box Wrapper --- */
.am-articles-filter-wrap {
    background: #ffffff;
    padding: 20px 25px;
    border-radius: 10px;
    border: 1px solid #e6e6e6;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    margin-bottom: 25px;

    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

/* --- Search input --- */
.am-articles-filter-wrap input[type="text"] {
    width: 260px;
    padding: 10px 14px;
    border-radius: 6px;
    border: 1px solid #ccc;
    background: #fafafa;
    font-size: 15px;
    transition: all .2s ease;
}

.am-articles-filter-wrap input[type="text"]:focus {
    background: #fff;
    border-color: #0073e6;
    box-shadow: 0 0 0 2px rgba(0,115,230,0.15);
    outline: none;
}

/* --- Select Dropdowns (Select2) --- */
.select2-container .select2-selection--single {
    height: 42px !important;
    padding: 6px 10px !important;
    border-radius: 6px !important;
    border: 1px solid #ccc !important;
    background: #fafafa !important;
    transition: all .2s ease;
}

.select2-container .select2-selection--single .select2-selection__rendered {
    padding-left: 4px !important;
    font-size: 15px !important;
    line-height: 28px !important;
}

.select2-container .select2-selection--single .select2-selection__arrow {
    height: 40px !important;
}

.select2-container--default .select2-selection--single:focus,
.select2-container--default .select2-selection--single:hover {
    border-color: #0073e6 !important;
}

/* --- Apply Button --- */
.am-articles-filter-wrap button[type="submit"] {
    padding: 10px 18px;
    background: #0073e6;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 15px;
    cursor: pointer;
    transition: background .2s ease, box-shadow .2s ease;
    height: 42px;
}

.am-articles-filter-wrap button[type="submit"]:hover {
    background: #005bb8;
    box-shadow: 0 3px 6px rgba(0,0,0,0.1);
}

/* --- Mobile Responsive --- */
@media (max-width: 767px) {
    .am-articles-filter-wrap {
        flex-direction: column;
        align-items: stretch;
    }

    .am-articles-filter-wrap input[type="text"],
    .am-articles-filter-wrap select,
    .select2-container {
        width: 100% !important;
    }
    
    .am-articles-filter-wrap button[type="submit"] {
        width: 100%;
    }
}
