h3.wp-block-heading, h2.wp-block-heading{
    margin-bottom: 2rem;
}

.why-choose{
    row-gap: 10px;
}

.location-header{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.slider-card, .product-slider-card, .product-filter-card, .size-guide-card{
    border-top: 1px solid #cbcbcb;
    border-left: 1px solid #cbcbcb;
    border-right: 1px solid #cbcbcb;
    border-bottom: 1px solid #cbcbcb;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 30px;

    .left-side{
        padding: 0;
        border-right: 1px solid #cbcbcb;
        border-bottom: 1px solid #cbcbcb;
    }

    .right-side{
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 20px;
        background-color: #fff;
        border-bottom: 1px solid #cbcbcb;

        .price{
            font-weight: bold;
            font-size: 24px;
        }

        .btn-fix{
            min-width: unset;
        }
    }

    .card-gallery {
        margin-bottom: 0;
    }

    .splide{
        height: 100%;
    }

    .splide__track{
        height: 100%;
    }

    .splide__list {
        background-position: center;
        background-size: cover;
        background-repeat: no-repeat;
    }

    .slider-cards-container {
        position: relative;
    }

    .slider-cards-wrapper {
        display: flex;
        flex-direction: column;
        gap: 20px;
    }

    .slider-cards-container {
        position: relative;
    }

    .slider-cards-wrapper {
        display: flex;
        flex-direction: column;
        gap: 20px;
    }

    .slider-card {
        width: 100%;
        margin-bottom: 30px;
    }

    .splide__slide-image {
        width: 100%;
        min-height: 300px;
        height: 100%;
        border-radius: 8px;
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
    }

    /* Pagination dots styling */
    .splide__pagination {
        position: absolute;
        bottom: 10px;
        left: 50%;
        transform: translateX(-50%);
        display: flex;
        gap: 8px;
        z-index: 10;
    }

    .splide__pagination__page {
        width: 10px;
        height: 10px;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.5);
        border: none;
        cursor: pointer;
        transition: background-color 0.3s ease;
    }

    .splide__pagination__page.is-active {
        background: #fff;
    }

    .splide__pagination__page:hover {
        background: rgba(255, 255, 255, 0.8);
    }

    .slider-card {
        width: 100%;
        margin-bottom: 30px;
    }


    .text-items-section {
        margin-top: 15px;
    }

    .text-item {
        margin-bottom: 10px;
        padding: 15px;
        background: #f8f9fa;
        border-radius: 8px;
    }

    .text-item p {
        margin: 0;
        line-height: 1.6;
    }

    .card-content {
        margin-bottom: 15px;
    }

    .splide__slide-image {
        width: 100%;
        height: 100%;
        min-height: 300px;
        border-radius: 0;
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
    }

    .card-dropdown-toggle{
        color: var(--primary, #dd3433);
        font-size: 18px;
        text-align: center;
        position: relative;
        cursor: pointer;
        transition: all 0.3s ease;

        &::after{
            content: '';
            width: 2px;
            height: 10px;
            position: absolute;
            background-color:  var(--primary, #dd3433);
            transform: rotate(-45deg);
            right: -12px;
            top: 8px;
            transition: all 0.3s ease;
        }
        &::before{
            content: '';
            width: 2px;
            height: 10px;
            position: absolute;
            background-color:  var(--primary, #dd3433);
            transform: rotate(45deg);
            right: -18px;
            top: 8px;
            transition: all 0.3s ease;
        }

        &.active{
            &::before{
                transform: rotate(140deg);
            }
            &::after{
                transform: rotate(-140deg);
            }
        }
    }

    .size-guide-dropdown-toggle{
        margin-bottom: 1rem;
    }

    .slider-dropdown{
        width: 100%;
        background-color: #F4F4F4;
        overflow: hidden;
        height: 0;
        transition: height 0.3s ease-in-out;

        .slider-dropdown-content div{
            gap: 1rem;
            max-width: 90%;
            margin: auto;
            padding: 30px;
            text-align: start;

            span{
                display: inline-block;
                background-color: #fff;
                color: black;
                padding: 2px 10px;
                border-radius: 5px;
                margin: 5px;
            }
        }

        .pdf-link-container{
            padding-top: 0 !important;

            .pdf-link{
                color: var(--primary, #dd3433);
                padding-top: 0;
                text-align: center;
                display: inline;

                a:hover{
                    color: black;
                }

                i{
                    margin-left: 1rem;
                }
            }
        }

        .slider-dropdown-content-size-guide{
            margin: 30px auto;
            width: 90%;
            text-align: left;

            .disclaimer{
                margin-bottom: 2rem;
                text-align: center;
            }

            .feature-tags{
                gap: 1rem;
                padding-bottom: 30px;
                text-align: start;
    
                span{
                    display: inline-block;
                    background-color: #fff;
                    color: black;
                    padding: 2px 10px;
                    border-radius: 5px;
                }
            }
        }
        
        .three-d-model-iframe{
            height: 500px;
            border-radius: 10px;
            overflow: hidden;
            margin: 30px 0 10px;
            width: 100%;

            @media(max-width: 765px){
                width: 90%;
            }
        }
    }
}


.product-filter-card{
    .slide-image{
        height: 300px;
        background-position: center;
        background-repeat: no-repeat;
        background-size: cover;
    }
}



.product-filter-container {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    position: relative;
    display: block;
    max-width: 800px;
    
    @media (max-width: 1200px) {
        max-width: 100%;
    }
    
    @media (min-width: 1500px) {
        max-width: 100%;
    }

    .splide {
        width: 100%;
        max-width: 100%;
        position: relative;
        display: block;
        overflow: hidden;

        @media (max-width: 1025px) {
            max-width: 800px;
            margin: auto;
        }
        @media (max-width: 850px) {
            max-width: 600px;
            margin: auto;
        }
        @media (max-width: 645px) {
            max-width: 500px;
            margin: auto;
        }
        @media (max-width: 545px) {
            max-width: 400px;
            margin: auto;
        }
        @media (max-width: 445px) {
            max-width: 350px;
            margin: auto;
        }
        @media (max-width: 400px) {
            max-width: 250px;
            margin: auto;
        }
    }
    
    .splide__track {
        width: 100%;
        max-width: 100%;
        overflow: hidden;
        position: relative;
    }
    
    .splide__list {
        width: 100%;
        max-width: 100%;
        height: unset;
        display: flex;
        margin: 0;
        padding: 0;
        list-style: none;
    }
    
    .splide__slide {
        flex-shrink: 0;
        position: relative;
        height: initial;
        width: 400px;
    }
    
    @media (max-width: 800px) {
        .splide__slide {
            width: 100%;
        }
    }
    
    .splide__pagination {
        position: relative;
        bottom: 10px;
        left: 50%;
        transform: translateX(-50%);
        z-index: 10;
    }


}

.posts-count{
    background-color: #c1102d;
    color: #fff;
}

.listings-filter .product-filter-container {
    max-width: 800px;
    margin: auto;
}

.listings-filter .product-filter-container .splide{

    @media(max-width: 1200px){
        width: 800px;
        margin: auto;
    }
    @media (max-width: 850px) {
        max-width: 600px;
        margin: auto;
    }
    @media (max-width: 645px) {
        max-width: 500px;
        margin: auto;
    }
    @media (max-width: 545px) {
        max-width: 400px;
        margin: auto;
    }
    @media (max-width: 445px) {
        max-width: 350px;
        margin: auto;
    }
    @media (max-width: 400px) {
        max-width: 250px;
        margin: auto;
    }
}





.product-filter-arrows {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 20px;
        margin-top: 10px;
    }

    .product-filter-arrow {
        background: #333;
        border: none;
        border-radius: 50%;
        width: 55px;
        height: 55px;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        transition: all 0.3s ease;
        color: #fff;
    }

    .product-filter-arrow:hover:not(.disabled) {
        background: #336FC5 !important;
        color: #fff;
    }

    .product-filter-arrow.disabled,
    .product-filter-arrow:disabled {
        cursor: not-allowed;
        transform: none;
        color: #6c757d !important;
        background-color: #fff !important;
        border: 1px solid #777;
    }

    /* Responsive adjustments */
    @media (max-width: 768px) {
        .product-filter-arrows {
            gap: 15px;
            margin-top: 20px;
        }

        .product-filter-arrow {
            width: 45px;
            height: 45px;
        }
    }

.filter{
    margin-bottom: 2rem;

    .filter-count{
        margin-top: 2rem;

        @media(min-width:758px){
            margin-top: 0;
        }
    }
}

/* Filter tags container - prevent layout shifts */
.filter-tags-container {
    min-height: 40px;
    margin-top: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    align-items: flex-start;
}

.filter-tag {
    display: inline-flex;
    align-items: center;
    color: white;
    padding: 5px 10px;
    border-radius: 10px;
    margin: 2px 5px 2px 0;
    font-size: 14px;
    font-weight: 500;
    background-color: var(--primary, #DD3333);
    white-space: nowrap;
}

.filter-tag span {
    margin-right: 5px;
}

.filter-tag-remove {
    background: none;
    border: none;
    color: white;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    padding: 0;
    margin-left: 5px;
    line-height: 1;
}

.filter-tag-remove:hover {
    opacity: 0.8;
}

.is-type-video iframe{
    width: 100%;
    height: 300px;

    @media (min-width: 998px) {
        height: 700px;
    }
}

.filter-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.filter-modal-content {
    background-color: #fff;
    margin: 5% auto;
    padding: 0;
    border-radius: 8px;
    width: 90%;
    max-width: 800px;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.filter-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
}

.filter-modal-header h3 {
    margin: 0;
    font-size: 2.5rem;
    font-weight: bold;
}

.filter-modal-close {
    background: none;
    border: none;
    font-size: 35px;
    cursor: pointer;
    color: #000;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.filter-modal-close:hover {
    color: #000;
}

.filter-modal-body {
    padding: 20px 20px 0 20px;
}

.filter-section {
    margin-bottom: 30px;
}

.filter-section-title {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 15px;
    color: #333;
    text-align: left;
}

.filter-options {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 1rem;
    max-height: 200px;
    overflow-y: auto;
}

.filter-option-btn {
    border: 2px solid transparent;
    border-radius: 6px;
    padding: 8px 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 18px;
    white-space: nowrap;
    width: auto;
    min-width: fit-content;
    background-color: var(--primary, #dd3433);
    color: #fff;
}


.filter-option-btn.active {
    border: 2px solid #000;
    filter: brightness(50%);
}

.filter-modal-footer {
    display: flex;
    flex-direction: row-reverse;
    justify-content: space-between;
    padding: 20px;
    gap: 10px;

    button{
        font-size: 18px;
    }
}

.clear-filter {
    margin-top: 2rem;
    display: block;
    text-align: left;
}

/* Force filtered slides to stay hidden */
.splide__slide[style*="display: none"] {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

.size-guide-category-title{
    font-size: 2rem;
    font-weight: bold;
    background-color: #F4F4F4;
    margin-bottom: 1rem;
    padding-left: 2rem;
    border-radius: 10px;
    overflow: hidden;
    padding: 15px 0 15px 10px;
}

.size-guide-category-count{
    font-size: 2rem;
}

/* Responsive */
@media (max-width: 768px) {
    .filter-modal-content {
        width: 95%;
        margin: 10% auto;
    }

    .filter-modal-footer {
        flex-direction: column;
    }
}


.size-guide-section{
    .filter-tag {
        display: inline-flex;
        align-items: center;
        color: white;
        padding: 5px 10px;
        border-radius: 10px;
        margin: 2px 5px 2px 0;
        font-size: 14px;
        font-weight: 500;
        background-color: var(--primary, #DD3333);
    }

    .filter-tag span {
        margin-right: 5px;
    }

    .filter-tag-remove {
        background: none;
        border: none;
        color: white;
        font-size: 16px;
        font-weight: bold;
        cursor: pointer;
        padding: 0;
        margin-left: 5px;
        line-height: 1;
    }

    .filter-tag-remove:hover {
        opacity: 0.8;
    }
}



.products-archive, .products-steps, .locations-archive, .case-studies-list{
    .products-item-content{
        h3, a{
            color: var(--primary);
        }
    }

    .products-item_img, .case-studies-item_img {
        width: 300px;
        height: 300px;
        border-radius: 50%;
        
        img {
            height: 100%;
            border-radius: 50%;
        }
    }
}

.team-grid{
    .team-grid-header {
        margin-bottom: 50px;
    }

    .team-grid-title {
        font-size: 2.5rem;
        font-weight: bold;
        margin-bottom: 20px;
    }

    .team-grid-description {
        font-size: 1.1rem;
        color: #666;
        max-width: 800px;
        margin: 0 auto;
    }

    .team-grid-container {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 30px;
        margin-top: 40px;
        max-width: 1200px;
    }

    .team-member-card {
        background: #fff;
        overflow: hidden;
        position: relative;
    }

    .team-member-image {
        position: relative;
        width: 100%;
        height: 375px;
        overflow: hidden;
    }

    .team-member-photo {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.3s ease;
    }


    .team-member-placeholder {
        width: 100%;
        height: 100%;
        background: grey;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .placeholder-text {
        font-size: 4rem;
        font-weight: bold;
        color: white;
        text-transform: uppercase;
    }

    .team-member-content {
        padding: 10px 7px;
        position: absolute;
        bottom: 20px;
        background-color: white;
        left: 50%;
        transform: translateX(-50%);
        width: 80%;
    }

    .team-member-name {
        font-size: 1.7rem;
        font-weight: bold;
        margin-bottom: 5px;
    }

    .team-member-position {
        font-size: 1.3rem;
        color: #9A9A9A;
        font-weight: 500;
        text-transform: uppercase;
    }

    .team-grid-empty {
        padding: 60px 20px;
        color: #666;
        font-style: italic;
    }

    @media (max-width: 768px) {
        .team-grid-container {
            grid-template-columns: repeat(1, 1fr);
            gap: 20px;
        }

        .team-grid-title {
            font-size: 2rem;
        }
    }

    @media (min-width: 769px) and (max-width: 1024px) {
        .team-grid-container {
            grid-template-columns: repeat(2, 1fr);
            gap: 25px;
        }
    }
}
.uses-for-grid{
    @media(min-width: 798px){
        max-width: 80%;
        margin-left: auto !important;
        margin-right: auto !important;
    }
}
.service-card_icon{
    color: var(--primary) !important;
}

.listings-grid{
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    justify-content: start;
}

/* Responsive adjustments for listings grid */
@media (max-width: 1024px) {
    .listings-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .listings-grid {
        grid-template-columns: 1fr;
    }
}

/* Make cards uniform height */
.listings-grid .product-filter-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.listings-grid .card-content-wrapper {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.listings-grid .right-side {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex-grow: 1;
    height: 100%;
}

/* Ensure the content area fills available space */
.listings-grid .right-side .listing-details {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Pagination Styles */
.pagination-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 30px;
    padding: 20px 0;
}

.pagination-btn {
    background-color: #fff;
    border: 2px solid #ddd;
    border-radius: 6px;
    padding: 8px 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 16px;
    font-weight: 500;
    color: #333;
    min-width: 40px;
    text-align: center;
}

.pagination-btn:hover:not(.disabled) {
    background-color: var(--primary, #dd3433);
    color: #fff;
    border-color: var(--primary, #dd3433);
}

.pagination-btn.active {
    background-color: var(--primary, #dd3433);
    color: #fff;
    border-color: var(--primary, #dd3433);
}

.pagination-btn.disabled {
    background-color: #f5f5f5;
    color: #999;
    border-color: #e0e0e0;
    cursor: not-allowed;
    opacity: 0.6;
}

.pagination-ellipsis {
    padding: 8px 4px;
    color: #666;
    font-weight: bold;
}

/* Responsive pagination */
@media (max-width: 768px) {
    .pagination-container {
        gap: 5px;
        margin-top: 20px;
        padding: 15px 0;
    }
    
    .pagination-btn {
        padding: 6px 10px;
        font-size: 14px;
        min-width: 35px;
    }
}

.modal-content{
    overflow: visible !important;
}
.modal-dialog .close{
    background-color: #C1102D !important;

    svg{
        fill: #fff;
    }
}

#service-areas-list-dropdown a:hover{
    color: #C1102D;
}

