@media(min-width:1024px) {


    .flex_posts .elementor-loop-container {
        display: flex !important;
        flex-wrap: wrap;
        gap: 0px;
    }

    .flex_posts .e-loop-item {
        width: 30% !important;
        position: relative;
    }

    .flex_posts .e-loop-item:after {
        width: 200vw;
        height: 1px;
        background-color: #D9D9D9;
        position: absolute;
        bottom: 0;
        content: "";
        left: 50%;
        transform: translateX(-50%);
    }


   
    .flex_posts .elementor-loop-container>div:nth-of-type(6n+1),
    .flex_posts .elementor-loop-container>div:nth-of-type(6n) {
        width: 40% !important;
    }
 

}

#pvp .category-podcast h3 {
    font-size: 36px !important;

}

#pvp .category-podcast .elementor-widget-image {
    display: none !important;

}

.flex_posts .elementor-loop-container>div:nth-of-type(3n)>div {
    border-right-width: 0px;
}

ul.elementor-post-info {
    justify-content: space-between;
}

.e-loop-item .elementor-post-info__terms-list {
    font-weight: bold !important;
}

.elementor-post-info__terms-list a:hover {
    cursor: default;
}

.e-loop-item.category-press,
.press-color {
    --cat-color: #2B355F;
}

.e-loop-item.category-business-strategy {
    --cat-color: #4C9A2A;
}

.e-loop-item.category-culture-commentary {
    --cat-color: #6E3FA8;
}

.e-loop-item.category-education-resources {
    --cat-color: #E06A3F;
}

.e-loop-item.category-industry-insights {
    --cat-color: #1E7EA6;
}

.e-loop-item.category-news-updates {
    --cat-color: #C93838;
}

.e-loop-item.category-technology-solutions {
    --cat-color: #C8923F;
}

.e-loop-item.category-podcast,
.podcast-color {
    --cat-color: #B3479C;
}

.e-loop-item.category-video,
.video-color {
    --cat-color: #00C2B1;
}

.e-loop-item.category-articles {
    --cat-color: #FFB546;
}

.colored-post .elementor-post-info__terms-list-item,
.press-color h3,
.podcast-color h3,
.video-color h3 {
    color: var(--cat-color) !important;
}

 

.colored-post:not(#latest) .elementor-widget-theme-post-featured-image {
    border-radius: 4px;
}
.e-loop-item .elementor-heading-title a {
    transition: color 0.3s ease-in-out;
}

.e-loop-item:hover .elementor-heading-title a {
    color: var(--cat-color);
}

.underline {
    border-bottom-color: #575757 !important;
}

/* off canvas menu */

/* When off-canvas is open, push the main content to the left */
/* Override Elementor's overflow:hidden to prevent scrollbar layout shift */
body.e-off-canvas__no-scroll,
body.e-off-canvas__no-scroll-animation {
    overflow: visible !important;
    overflow-x: hidden;
}

/* Push only the blog content when menu is open */
body.e-off-canvas__no-scroll #blog-content {
    transform: translateX(-424px) !important;
    transition: transform 1.5s ease 0.5s !important;
}

.e-off-canvas__content {
    visibility: visible !important;
    position: relative;
    right: -424px;
    transform: translateX(0) !important;
    transition: transform 1.5s ease 0.5s, opacity 1.5s ease 0.5s !important;
    opacity: 1;
}

body.e-off-canvas__no-scroll .e-off-canvas__content {
    transform: translateX(-424px) !important;
    opacity: 1 !important;
}

/* Override Elementor's parent container hiding to delay it */
.elementor-widget-off-canvas .e-off-canvas[aria-hidden=true] {
    transition: opacity 1.5s ease 0.5s, visibility 0s linear 2s !important;
}

/* Ensure smooth transition back when menu closes */
#blog-content {

    transition: transform 1.5s ease 0.5s;
}



/* Active Filters Display Styles */
.active-filters-display {
    padding: 20px 0;
    margin-bottom: 30px;
}

.active-filters-container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 15px;
}

.active-filters-label {
    font-weight: 600;
    color: #333;
    margin-right: 10px;
}

.active-filter-buttons,
.post-type-toggles {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

/* Filter toggle buttons - matching tag button styles */
.active-filter-btn.filter-toggle-btn,
.post-type-toggle-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: #f0f0f0;
    border: 1px solid #ddd;
    border-radius: 20px;
    font-size: 14px;
    color: #333;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
}

.active-filter-btn.filter-toggle-btn:hover,
.post-type-toggle-btn:hover {
    background: #e8e8e8;
    border-color: #ccc;
}

/* Active state for buttons */
.active-filter-btn.filter-toggle-btn.active,
.post-type-toggle-btn.active {
    background: #333;
    color: #fff;
    border-color: #333;
}

/* Inactive/disabled state */
.active-filter-btn.filter-toggle-btn.inactive,
.post-type-toggle-btn.inactive {
    opacity: 0.5;
    background: #fafafa;
    color: #999;
    text-decoration: line-through;
}

/* X close icon styling */
.filter-close {
    display: inline-flex;
    align-items: center;
    margin-left: 4px;
}

.filter-close svg {
    width: 16px;
    height: 16px;
}

.active-filter-btn.filter-toggle-btn.active .filter-close svg circle,
.post-type-toggle-btn.active .filter-close svg circle {
    fill: #fff;
    opacity: 0.3;
}

.active-filter-btn.filter-toggle-btn.active .filter-close svg path,
.post-type-toggle-btn.active .filter-close svg path {
    stroke: #fff;
}

/* Hide posts based on filter classes */
#filtered_posts_container.hide-category-video article[data-categories*="video"],
#filtered_posts_container.hide-category-podcast article[data-categories*="podcast"],
#filtered_posts_container.hide-category-press article[data-categories*="press"],
#filtered_posts_container.hide-category-articles article[data-categories*="articles"],
#filtered_posts_container.hide-category-industry-insights article.category-industry-insights,
#filtered_posts_container.hide-category-technology-solutions article.category-technology-solutions,
#filtered_posts_container.hide-category-business-strategy article.category-business-strategy,
#filtered_posts_container.hide-category-culture-commentary article.category-culture-commentary,
#filtered_posts_container.hide-category-news-updates article.category-news-updates,
#filtered_posts_container.hide-category-education-resources article.category-education-resources {
    display: none !important;
}

/* Hide posts based on tag */
#filtered_posts_container.hide-tag-cybersecurity article.tag-cybersecurity,
#filtered_posts_container.hide-tag-technology article.tag-technology,
#filtered_posts_container.hide-tag-ai article.tag-ai,
#filtered_posts_container.hide-tag-cloud article.tag-cloud {
    display: none !important;
}

/* Hide posts based on post type */
#filtered_posts_container.hide-posts article.type-post,
#filtered_posts_container.hide-media-posts article.type-media_posts {
    display: none !important;
}

/* Hide posts based on date (example patterns) */
#filtered_posts_container.hide-date-2024_01 article.date-2024-01,
#filtered_posts_container.hide-date-2024_02 article.date-2024-02,
#filtered_posts_container.hide-date-2024_03 article.date-2024-03 {
    display: none !important;
}

body.has-active-filters .e-loop__load-more,
body.has-active-filters #media_posts_container2,
body.has-active-filters #blog_posts {
    display: none !important;

}
.filtered_posts_container,
#filtered_posts_filters{
    display: none
}
body.has-active-filters .filtered_posts_container,
body.has-active-filters #filtered_posts_filters{ 
display:flex;
}
body.has-active-filters #regular_posts {
    border-top: 1px solid #D9D9D9;

}

/* LOAD MORE BM LINKS */

#media_posts>.elementor-widget-container {
    display: flex;
    flex-direction: column-reverse;
}

#media_posts,
#blog_posts {
    --load-more—spacing: 0;
}

#blog_posts .elementor-widget-container {
    display: flex;
    flex-direction: column-reverse;
}

.e-loop__load-more {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    max-width: 1493px;
    width: 100%;
    margin: AUTO;

    padding: 90px 70px 0px 70px;
}


.e-loop__load-more .elementor-button-text {
    text-transform: uppercase;
}

#blog_posts .e-loop__load-more.elementor-button-wrapper:before,
.e-loop__load-more.elementor-button-wrapper:after {

    width: 100vw;
    height: 1px;
    background-color: #D9D9D9;
    position: absolute;

    content: "";
    left: 50%;
    transform: translateX(-50%);
}

.e-loop__load-more.elementor-button-wrapper:before {
    top: 0;
}

.e-loop__load-more.elementor-button-wrapper:after {
    bottom: 0;
}

.e-loop__load-more.elementor-button-wrapper {
    position: relative;
}
.view_all{
    font-family: "Saira", Sans-serif;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.1em;
    color: #234BBB;
}
.bm a {
    display: inline-block;
    font-family: "Saira", sans-serif;
    font-size: 18px;
    font-weight: 700;
    padding-bottom: 36px;
    margin-right: 30px;
    border-bottom: 3px solid transparent;
    color: #575757 ;
 opacity:.75;
}

 .bm.af{
    display: flex;
    flex-grow: 1;
    margin-bottom: -1.5px;
}

.bm.active-blog a.b,
.bm.active-media a.m ,
.bm.active-all a.a{
    border-bottom-color: #575757;
    opacity: 1;
}


/* dont hide the load more bar, just hide the link */
.elementor-widget-loop-grid.e-load-more-pagination-end:not(:has(>.elementor-widget-container))>.elementor-button-wrapper,
.elementor-widget-loop-grid.e-load-more-pagination-end>.elementor-widget-container>.elementor-button-wrapper {
    display: flex !important;
}

.elementor-widget-loop-grid.e-load-more-pagination-end .e-loop__load-more.elementor-button-wrapper .elementor-button-content-wrapper {
    visibility: hidden !important;
}
@media (min-width:768px) {
    #blog_posts .e-loop__load-more {
    padding-top: 190px;
}
	.bm a.a {
   
   display:none;
}

    
}
@media (max-width:767px) {
    .e-loop__load-more {
         padding: 36px 20px 0px 20px;
    }
	.view_all{
    display:none;
}
	#blog_posts{
		background-color:#F4F4F4 !important;
	}
	
 

}

.category-podcast .normal-image.elementor-widget-theme-post-featured-image,
.category-video .normal-image.elementor-widget-theme-post-featured-image {
  position: relative;
}

.category-podcast .normal-image.elementor-widget-theme-post-featured-image::after,
.category-video .normal-image.elementor-widget-theme-post-featured-image::after {
  content: '';
  position: absolute;
  bottom: 5px;
  right: 5px;
  width: 50px;
  height: 50px;
  background-image: url('https://blackwiredclone.mystagingwebsite.com/wp-content/themes/hello-theme-child-master/images/Play.svg');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  pointer-events: none;
}

/* Loop Grid Filters Styles */
.loop-grid-filters {
    padding: 30px 70px;
    max-width: 1493px;
    margin-left:auto;
margin-right:auto;
    }

.loop-grid-filters-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

/* Post Type Filters (Text links on right - using .bm a styling) */
.post-type-filters {
    display: flex;
    gap: 30px;
    align-items: center;
}

.post-type-filter {
    display: inline-block;
    font-family: "Saira", sans-serif;
    font-size: 18px;
    font-weight: 700;
    padding-bottom: 4px;
    border-bottom: 3px solid transparent;
    color: #575757;
    opacity: 0.65;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.post-type-filter:hover {
    opacity: 0.85;
}

.post-type-filter.active {
    border-bottom-color: #575757;
    opacity: 1;
}

/* Filter Buttons Wrapper */
.filter-buttons-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    flex: 1;
}

/* Filter Tags - matching post-filter.css styling exactly */
.loop-grid-filters .filter-tag {
    display: inline-block;
    cursor: pointer;
    margin-bottom: 0;
    position: relative;
}

.loop-grid-filters .filter-tag input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.loop-grid-filters .tag-button {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background-color: rgba(54, 54, 54, 0.5);
    color: #C1C7CD;
    font-family: Helvetica, Arial, sans-serif;
    font-weight: 400;
    font-size: 14px;
    border-radius: 4px;
    transition: all 0.2s ease;
    white-space: nowrap;
    border: none;
    flex-direction: row-reverse; /* Put close icon before text */
}

/* Category buttons - transparent background */
.loop-grid-filters .category-tag .tag-button {
    background-color: transparent;
    color: #575757;
}

/* Tag buttons - light gray background */
.loop-grid-filters .tag-filter .tag-button {
    background-color: #e5e5e5;
    color: #575757;
}

.loop-grid-filters .tag-close {
    display: none;
    width: 16px;
    height: 16px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    line-height: 1;
    color: #fff;
    transition: background-color 0.2s ease;
}

.loop-grid-filters .tag-close:hover {
    background-color: rgba(255, 255, 255, 0.3);
}

.loop-grid-filters .filter-tag input[type="checkbox"]:checked + .tag-button {
    background-color: #363636;
    color: #fff;
    padding-left: 12px; /* Adjust left padding since icon is now on left */
}

.loop-grid-filters .filter-tag input[type="checkbox"]:checked + .tag-button .tag-close {
    display: flex;
}

/* Hover states for category buttons */
.loop-grid-filters .category-tag:hover .tag-button {
    background-color: rgba(54, 54, 54, 0.1);
}

/* Hover states for tag buttons */
.loop-grid-filters .tag-filter:hover .tag-button {
    background-color: #d5d5d5;
}

.loop-grid-filters .filter-tag input[type="checkbox"]:checked + .tag-button:hover {
    background-color: #464646;
}

/* Loading state */
.loop-grid-loading {
    position: relative;
    opacity: 0.5;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.loop-grid-loading::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #575757;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Error state */
.filter-error {
    padding: 40px;
    text-align: center;
    background: #fef5f5;
    border: 1px solid #fcc;
    border-radius: 4px;
    color: #c33;
}

/* No posts found */
.no-posts-found {
    padding: 60px 20px;
    text-align: center;
    color: #999;
}

.no-posts-found p {
    font-size: 18px;
    margin: 0;
}

/* Responsive adjustments */
@media (max-width: 767px) {
    .loop-grid-filters {
        padding: 20px 20px;
         
    }

    .loop-grid-filters-container {
        flex-direction: column;
        align-items: flex-start;
    }

    .post-type-filters {
        order: -1;
        width: 100%;
        justify-content: center;
        gap: 20px;
    }

    .post-type-filter {
        font-size: 16px;
    }

    .filter-buttons-wrapper {
        width: 100%;
    }

    .loop-grid-filters .tag-button {
        padding: 6px 12px;
        font-size: 12px;
    }

  
}

