/* 
Theme Name: Hello Elementor Child
Theme URI: https://github.com/elementor/hello-theme-child/
Description: Hello Elementor Child is a child theme of Hello Elementor, created by Elementor team
Author: Elementor Team
Author URI: https://elementor.com/
Template: hello-elementor
Version: 2.0.0
Text Domain: hello-elementor-child
License: GNU General Public License v3 or later.
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Tags: flexible-header, custom-colors, custom-menu, custom-logo, editor-style, featured-images, rtl-language-support, threaded-comments, translation-ready
*/

/* Add your custom styles here */


/**Work listing**/
.works-listing-wrapper {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}
.works-listing-wrapper .work-item {
    flex: 0 0 50%;
    max-width: 50%;
    padding: 0 15px;
    margin-bottom: 30px;
}
.works-listing-wrapper .work-item .work-image-wrapper {
    position: relative;
    padding-bottom: 66%;
    overflow: hidden;
    margin-bottom: 20px;
}
.works-listing-wrapper .work-item .work-image-wrapper img{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.5s;
}
.works-listing-wrapper .work-item .work-image-wrapper img:hover {
    transform: scale(1.1);
}
.works-listing-wrapper .work-item h2 {
    font-size: 24px;
    font-weight: 500;
    font-family:  "Madellin", Sans-serif;
    margin: 0 0 10px;
}
.works-listing-wrapper .work-item p {
    font-size: 18px;
    color: #212121;
    line-height: 1.44;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.pagination {
    margin: 0;
}
.pagination ul {
    padding: 0;
    display: flex;
    list-style: none;
    gap: 15px;
    margin: 0 auto;
}

.pagination ul li .current, .pagination ul li .active
 {
    background: #991411;
    border-color: #991411;
    color: #fff;
 }
.pagination ul li a, .pagination ul li span {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 40px;
    width: 40px;
    border: 1px solid #EFEFEF;
    color: #989898;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.5s;
}
.pagination .page-numbers li a:hover {
    background: #991411;
    border-color: #991411;
    color: #fff;
} 
.pagination .page-numbers li a.next:hover img, .pagination .page-numbers li a.prev:hover img {
    filter: brightness(0) invert(1);
}
.view-more-btn {
  display: inline-block;
  height: 48px;
  line-height: 48px;
  border: 1px solid #212121;
  color: #212121;
  padding: 0 30px;
  margin-top: 10px;
  transition: all 0.5s;
}
.view-more-btn img {
    margin-left: 16px;
}
.works-listing-wrapper .work-item:hover .view-more-btn {
    background-color: #212121;
    color: #fff;
}
.works-listing-wrapper .work-item:hover .view-more-btn img {
    filter: invert(1);
}
/**Work listing**/
/**Blog Listing**/
.blog-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}
.blog-grid .blog-item {
    flex: 0 0 calc(33.33% - 20px);
    max-width: calc(33.33% - 20px);
}
.blog-grid .blog-item .blog-thumb {
    position: relative;
    padding-bottom: 84.68%;
    margin-bottom: 20px;
}
.blog-grid .blog-item .blog-thumb  .blog-category {
    position: absolute;
    top: 15px;
    font-size: 14px;
    right: 15px;
    padding: 8px 14px 7px;
    background: #BF0A04;
    color: #fff;
    line-height: 1.2;
}
.blog-grid .blog-item .blog-thumb img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.blog-grid .blog-item h3 {
    font-size: 24px;
    font-weight: 500;
    color: #212121;
}
.blog-grid .blog-item p {
    font-size: 20px;
    color: #212121;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2; 
    overflow: hidden;
}
.blog-categories {
    padding: 0;
    list-style: none;
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-bottom: 50px;
}
.blog-categories li{
    cursor: pointer;
    color: #727272;
    font-size: 14px;
    font-weight: 500;
    padding: 13.9px 16px 13.5px;
    border: 1px solid #CDCDCD;
}
.blog-categories li.active {
    border-color: #BE0805;
    color: #BE0805;
}
.ajax-blog-wrapper .pagination {
    margin-top: 30px;
}
/**Blog Listing**/
@media (max-width:767px) {
    .works-listing-wrapper .work-item {
        flex: 0 0 100%;
        max-width: 100%;
    }
}
