/* 
Theme Name:		 Postbrands Child
Theme URI:		 http://childtheme-generator.com/
Description:	 Postbrands Child is a child theme of postbrands, created by ChildTheme-Generator.com
Author:			 Karim Tarek
Author URI:		 http://childtheme-generator.com/
Template:		 postbrands
Version:		 1.0.1
Text Domain:	 postbrands-child
*/


/*
    Add your custom styles here
*/

/* Creatives archive — tighten the gap between the page title and the filter bar */
.blog-listing-creative:has(.creative-filter) .blog-listing-creative__title {
    margin-bottom: 32px;
}

/* Creatives archive — spacing around the category filter */
.creative-filter-wrap {
    margin-top: 16px;
    padding-bottom: 56px;
}

/* Creatives archive — segmented category filter (matches site's solid pb-btn language) */
.creative-filter {
    display: inline-flex;
    flex-wrap: wrap;
    max-width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 12px;
    overflow: hidden;
}

.creative-filter__item {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 18px 30px;
    color: #fff;
    font-size: 0.9375rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    text-decoration: none;
    white-space: nowrap;
    border-right: 1px solid rgba(255, 255, 255, 0.25);
    border-bottom: 1px solid rgba(255, 255, 255, 0.25);
    overflow: hidden;
    isolation: isolate;
    transition: color 0.3s ease;
}

.creative-filter__item:last-child {
    border-right: none;
}

.creative-filter__item::before {
    content: "";
    position: absolute;
    inset: 0;
    background-color: #e20613;
    transform: scaleX(0);
    transform-origin: left;
    z-index: -1;
    transition: transform 0.4s cubic-bezier(0.65, 0, 0.35, 1);
}

.creative-filter__item:hover,
.creative-filter__item:focus-visible,
.creative-filter__item.is-active {
    color: #fff;
}

.creative-filter__item:hover::before,
.creative-filter__item:focus-visible::before,
.creative-filter__item.is-active::before {
    transform: scaleX(1);
}

.creative-filter__item:focus-visible {
    outline: 2px solid #fff;
    outline-offset: -4px;
}

@media screen and (max-width: 575.98px) {
    .creative-filter {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        border-radius: 10px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .creative-filter::-webkit-scrollbar {
        display: none;
    }

    .creative-filter__item {
        flex-shrink: 0;
        padding: 15px 22px;
        font-size: 0.875rem;
        border-bottom: none;
    }
}

/* Blog / creative cards — keep title on a single line regardless of length */
.blogs-list .blog-card__title,
.detailed-blog__related .blogs-list-slider .blog-card__title {
    display: block;
    -webkit-line-clamp: unset;
    -webkit-box-orient: unset;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
