/*
Theme Name: a3erf
Theme URI: https://ar3erf.com/
Author: BB
Author URI: https://ar3erf.com
Description: A pixel-perfect theme
Version: 1.0
*/

img {
    max-width: 100%;
    height: auto;
}

.listing-item .img-holder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.listing-item .img-holder {
    overflow: hidden;
    display: block;
}

.slider-container img {
    max-width: 100%;
}

.widget img {
    max-width: 100%;
    height: auto;
}

.img-cont,
.img-holder {
    display: block;
    position: relative;
    overflow: hidden;
}

.listing-mg-item .img-cont {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.featured .img-holder {
    display: block;
    width: 100%;
    height: 180px;
    position: relative;
}

.post-bg-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    z-index: 1;
    transition: transform 0.3s ease;
}

.img-cont:hover .post-bg-img,
.img-holder:hover .post-bg-img {
    transform: scale(1.05);
}

.item-content {
    position: relative;
}

.item-content .term-badges,
.item-content .content-container {
    position: relative;
    z-index: 5;
}

.featured.clearfix {
    position: relative;
}

.featured .term-badges.floated {
    position: absolute;

    z-index: 10;
}

.listing-mg-item .item-content {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    height: 100%;
    position: relative;
    z-index: 2;
}

.listing-mg-item .content-container {
    position: relative;
    z-index: 5;
    padding: 15px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.4) 90%, transparent 100%);
    margin-top: auto;
}

.listing-mg-item .term-badges.floated {
    position: absolute;
    z-index: 10;
}

.listing-modern-grid-2 .listing-mg-item .content-container {
    left: 15px;
    right: 0;
    bottom: 0;
    max-height: 50%;
}

.listing-mg-item h2.title,
.listing-mg-item h2.title a {
    color: #fff;
}

.menu-action-buttons {
    padding-left: 10px;
}

.search-open {
    position: relative;
}

.search-box {
    display: none;
}

.search-open .main-menu {
    visibility: hidden;
    opacity: 0;
}

.search-open .menu-action-buttons {
    width: 98% !important;
    height: 100%;
    box-sizing: border-box;
    position: absolute;
    top: 0;
    left: 0;
    background: transparent;
    z-index: 100;
}

.search-open .search-container {
    width: 98%;
    height: 100%;
    display: flex;
    align-items: center;
}

.search-open .search-box {
    display: block !important;
    flex-grow: 1;
    position: relative;
    top: auto;
    right: auto;
    background: transparent;
    box-shadow: none;
    padding: 0 0 0 10px;
}

.search-open .search-form {
    display: flex;
    width: 98%;
}

.search-open .search-field {
    width: 98%;
    border: none;
    background: transparent;
    font-size: 16px;
    padding: 5px;
    box-sizing: border-box;
    height: 100%;
}

.search-submit {
    display: none !important;
}

.search-open .search-handler i::before {
    content: "\f00d";
}

.search-open .search-handler {
    flex-shrink: 0;
    width: 40px;
    text-align: center;
}

/* ============================================
   Single Post Page Styles
   ============================================ */

.post-single-item .post-title {
    font-size: 28px;
    margin-bottom: 20px;
    line-height: 1.4;
}

.single-post-meta {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #efefef;
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 13px;
    color: #888;
}

.single-post-meta .post-author-avatar img {
    border-radius: 50%;
    margin-right: 8px;
}

.single-featured {
    margin-bottom: 25px;
}

.single-featured img {
    width: 100%;
    height: auto;
    border-radius: 4px;
}

.single-post-content {
    font-size: 17px;
    line-height: 1.8;
    color: #333;
    margin-bottom: 40px;
}

/* Breadcrumbs */
.bf-breadcrumb {
    padding: 15px 0;
    font-size: 13px;
    color: #888;
}

.bf-breadcrumb-items {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.bf-breadcrumb-item::after {
    content: "/";
    margin-left: 8px;
}

.bf-breadcrumb-item:last-child::after {
    content: "";
}

.bf-breadcrumb-item a {
    color: #007bff;
    text-decoration: none;
}

/* Related Posts */
.post-related {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid #eee;
}

.related-posts-heading {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 20px;
    display: block;
}

.listing-tb-2 {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

.listing-item-thumbnail .title {
    font-size: 14px;
    margin-top: 10px;
    line-height: 1.4;
}

.listing-item-thumbnail .img-holder {
    height: 120px;
}