.blog-cate-banner-sec .blog-title h1 {
    margin: 0
}

.blog-banner-sec {
    padding: 24px 0 135px 0;
    z-index: 1;
    position: relative;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

.blog-banner-sec .column-row {
    flex-direction: column;
}

.blog-banner-sec .blog-title {
    padding: 0;
    margin-top: 30px;
}

.breadcrumbs {
    padding-top: 0;
    padding-bottom: 50px;
}

.archive-fliter-header {
    margin-top: -77.5px;
    position: relative;
    z-index: 1;
    margin-bottom: 96px;
}

.tag-chips ul li.tag-chip:not(:last-child),
.popup-grid ul li {
    margin-right: 8px;
}

.tag-chips ul li:nth-child(n+9) {
    display: none;
}

.tag-chips ul li,
.popup-grid ul li {
    margin-right: 8px;
    margin-bottom: 8px;
}

.breadcrumbs ul {
    display: inline-flex;
    list-style-type: none;
    margin: 0;
    flex-wrap: wrap;
}

.breadcrumbs ul li,
.breadcrumbs ul li a {
    color: #FFF;
    font-size: 13px;
    font-style: normal;
    font-weight: 600;
    line-height: 145%;
    text-transform: uppercase;
    margin: 0;
}

.breadcrumbs ul li {
    padding: 3px 12px;
    position: relative;
}

.breadcrumbs ul li:not(:first-child):before {
    content: "";
    display: block;
    position: absolute;
    left: -2px;
    top: 6px;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="6" height="10" viewBox="0 0 6 10" fill="none"><g opacity="0.6"><path d="M1.00016 1.39494L3.50016 4.09852L4.3335 4.99972L1.00016 8.60449" fill="white"/><path d="M1.00016 1.39494L3.50016 4.09852L4.3335 4.99972L1.00016 8.60449" stroke="white" stroke-linecap="square"/></g></svg>');
    font-size: 14px;
    width: 6px;
    height: 10px;
}

.breadcrumbs ul li:first-child {
    padding-left: 0;
}

.breadcrumbs ul li a:hover {
    opacity: .6;
    color: #fff;
}

.breadcrumbs ul li:last-child {
    opacity: 0.6;
}

/* Tag Bar Styles */
.tag-bar span.filter-by-tag {
    width: 100%;
    color: #0C0D0E;
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: 24px;
    margin-bottom: 20px;
    opacity: .7;
}

.tag-bar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    background-color: #EBEBEB;
    margin: 0;
    padding: 34px 40px;
    justify-content: space-between;
}

.tag-chips ul,
.popup-grid ul {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    margin: 0;
    padding: 0;
}

/*.tag-chips ul {*/
/*    white-space: nowrap;*/
/*    overflow-x: auto;*/
/*    flex-wrap: nowrap;*/
/*}*/

.tag-chip,
.popup-chip {
    padding: 13px 16px;
    border: 0;
    border-radius: 0;
    cursor: pointer;
    background: #1C2F47 !important;
    color: #fff !important;
    transition: all 0.3s ease;
    user-select: none;
    margin: 0;
    font-size: 13px;
    font-weight: 500;
    line-height: normal;
    text-transform: uppercase;
    position: relative;
}

.tag-chip.active,
.popup-chip.selected {
    padding: 13px 35px 13px 16px;
}

.tag-chip.active,
.popup-chip.selected,
.popup-chip:hover,
.tag-chip:hover {
    background: #F4C04A !important;
    border-color: #F4C04A !important;
    color: #0C0D0E !important;
}

.tag-chip.active:after,
.popup-chip.selected:after {
    content: '';
    position: absolute;
    right: 15px;
    top: 50%;
    display: inline-block;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="12" height="11" viewBox="0 0 12 11" fill="none"><path d="M10.8782 10.5L1 0.621825L1.12183 0.5L11 10.3785L10.8782 10.5Z" fill="%230C0D0E" stroke="%230C0D0E" stroke-linejoin="round"/><path d="M1 10.3785L10.8782 0.5L11 0.621825L1.12183 10.5L1 10.3785Z" fill="%230C0D0E" stroke="%230C0D0E" stroke-linejoin="round"/></svg>');
    width: 12px;
    height: 11px;
    display: inline-block;
    transform: translateY(-52%);
}

.tag-actions {
    display: flex;
    width: 18%;
    align-items: center;
    justify-content: space-between;
}

#viewAllTags,
.clear-filter-btn {
    color: #F4C04A;;
    text-decoration: none;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

#viewAllTags:hover,
.clear-filter-btn:hover {
    background: #F4C04A;;
    color: #0C0D0E;
    text-decoration: none;
}

.clear-filter-btn {
    color: #6c757d;
}

#viewAllTags {
    color: #162538;
    font-size: 13px;
    font-weight: 500;
    line-height: normal;
    text-transform: uppercase;
    padding: 13px 16px;
    border: 1px solid rgba(22, 37, 56, 0.20);
    border-radius: 0;
    margin-bottom: 8px;
}

#viewAllTags:hover {
    border-color: #F4C04A;
    color: #0C0D0E !important;
}

.clear-filter-btn:hover {
    border-color: #F4C04A;
    color: #0C0D0E !important;
    background-color: transparent;
}

.clear-filter-btn {
    color: #701E46;
    font-size: 18px;
    font-style: normal;
    font-weight: 600;
    line-height: normal;
    padding: 0;
    margin-bottom: 8px;
}

.tag-bar .tag-chips {
    width: 74%;
}

.featured-content-main .legal-insights-box,
.archive-grid .legal-insights-box {
    background: transparent;
    box-shadow: none;
}

.featured-content-main .legal-insights-box a,
.archive-grid .legal-insights-box a {
    background: #EBEBEB;
}

.archive-grid,
.featured-content-main .featured-grid {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -12px;
}


.featured-content-main .featured-grid .slick-track {
    display: flex;
    margin: 0;
}

.featured-content-main .featured-grid .slick-list {
    flex-grow: 1;
}

.featured-content-main .featured-grid .legal-insights-box {
    margin-bottom: 0;
    height: auto;
}

.featured-content-main .custom-nav {
    justify-content: flex-end;
    margin-bottom: 24px;
}

#archive-content {
    padding-top: 60px;
    padding-bottom: 160px;
}


#archive-content .archive-grid .legal-insights-box {
    margin-bottom: 60px;
}

/* Popup Styles */
.archive-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;

}

.archive-popup.open {
    display: flex;
}

.popup-card-filter {
    max-width: 635px;
    background: white;
    height: 640px;
    overflow-y: auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    animation: popupSlideIn 0.3s ease-out;
    padding: 60px 40px;
    position: fixed;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.popup-card-filter .close-popup-btn {
    left: auto;
    right: 18px;
    top: 10px;
}

.popup-card-filter .close-popup-btn svg {
    width: 20px;
}

.popup-actions button {
    margin-left: 16px;
    cursor: pointer;
}

.close-popup-btn {
    position: absolute;
    left: calc((100% - 1640px) / 2);
    top: 86px;
    padding: 0;
}

@keyframes popupSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.popup-grid ul {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    margin: 0;
    padding: 0;
}

.popup-actions {
    margin-top: 24px;
    display: flex;
    justify-content: flex-end;
    padding-top: 0;
    border-top: 0;
    align-items: center;
}

.close-popup-btn {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    padding: 4px;
    color: #6c757d;
    transition: color 0.3s ease;
}

.close-popup-btn:hover {
    color: #dc3545;
}

.popup-header {
    margin-bottom: 40px;
}

/* Post Item Styles */
/* .legal-insights-box {
    position: relative;
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
} */

.featured-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: linear-gradient(135deg, #ff6b35, #f7931e);
    color: white;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(255, 107, 53, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.featured-img {
    position: relative;
    overflow: hidden;
    height: 200px;
}

.featured-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.legal-insights-box:hover .featured-img img {
    transform: scale(1.05);
}

.featured-content-main .legal-insights-box span.featured-tag {
    padding: 8px 16px;
    background-color: var(--dark);
    color: #fff;
    line-height: normal;
}

.featured-content-main .legal-insights-box span.featured-tag:before {
    content: none;
}

/* Pagination Styles */

/* Loading States */
.archive-content.loading {
    opacity: 0.6;
    pointer-events: none;
}

#loading-spinner {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 20px 30px;
    border-radius: 8px;
    z-index: 10000;
    font-weight: 500;
}

/* No Posts Found */
.no-posts-found {
    text-align: center;
    padding: 60px 20px;
    background: #f8f9fa;
    border-radius: 12px;
    margin: 40px 0;
}

.no-posts-found h3 {
    color: #6c757d;
    font-size: 24px;
    margin-bottom: 16px;
}

.no-posts-found p {
    color: #6c757d;
    font-size: 16px;
    margin-bottom: 20px;
}

.no-posts-found a {
    color: #007cba;
    text-decoration: none;
    font-weight: 500;
}

.no-posts-found a:hover {
    text-decoration: underline;
}

.popup-actions .clear-filter-btn {
    width: 100%;
    margin: 0;
}

.archive-main.my_custom_archive {
    padding: 160px 0;
}

.archive-main.my_custom_archive .pagination {
    margin-top: 20px;
}

.archive-main.my_custom_archive .pagination .nav-links {
    display: flex;
    flex-wrap: wrap;
}

@media (max-width: 1699px) {
    .close-popup-btn {
        position: absolute;
        left: calc((100% - 1320px) / 2);
    }
}

@media (max-width: 1399px) {
    .close-popup-btn {
        position: absolute;
        left: calc((100% - 1160px) / 2);
    }
}


@media (max-width: 1199px) {
    #archive-content {
        padding-bottom: 80px;
    }

    .archive-fliter-header {
        margin-bottom: 80px;
    }

    .tag-bar .tag-chips {
        width: 73%;
    }

    .tag-chips ul li:nth-child(n+7) {
        display: none;
    }

    .tag-actions {
        width: 25%;
    }

    .archive-fliter-header {
        margin-bottom: 80px;
    }

    .close-popup-btn {
        position: absolute;
        left: calc((100% - 900px) / 2);
    }

    .archive-main.my_custom_archive {
        padding: 80px 0;
    }
}

/* Responsive Design */
@media (max-width: 991px) {
    #archive-content {
        padding-top: 30px;
        padding-bottom: 60px;
    }

    .archive-header h1 {
        font-size: 2rem;
    }

    .tag-bar .tag-chips {
        width: 100%;
        margin-bottom: 20px;
    }

    .tag-bar .clear-filter-btn {
        margin-left: 10px;
    }

    .tag-bar {
        flex-direction: column;
        align-items: flex-start;
        padding: 30px 20px;
    }

    .tag-chips ul {
        width: 100%;
        white-space: unset;
        flex-wrap: wrap;
    }

    .tag-actions {
        width: 100%;
        justify-content: flex-end;
    }

    .popup-card {
        margin: 20px;
        padding: 24px;
        max-width: calc(100% - 40px);
    }

    .pagination {
        flex-wrap: wrap;
        gap: 4px;
    }

    .pagination a,
    .pagination span {
        padding: 8px 12px;
        font-size: 14px;
    }

    #archive-content .archive-grid .legal-insights-box {
        width: 50%;
        margin-bottom: 30px;
    }

    .popup-card-filter {
        padding: 40px;
    }

    .popup-header {
        margin-bottom: 30px;
    }

    .close-popup-btn {
        position: absolute;
        left: calc((100% - 660px) / 2);
        top: 100px;
    }

    .close-popup-btn svg {
        width: 30px;
        height: auto;
    }

    .archive-fliter-header {
        margin-bottom: 60px;
    }

    .archive-main.my_custom_archive {
        padding: 60px 0;
    }

    .archive-main.my_custom_archive .legal-insights-box {
        width: 50%;
    }

}

@media (max-width: 767px) {
    #archive-content .archive-grid .legal-insights-box {
        width: 100%;
    }

    .popup-card-filter {
        padding: 20px;
        height: 530px;
    }

    .popup-actions .clear-filter-btn {
        width: 100%;
    }

    .popup-header h2 {
        margin-bottom: 10px;
        font-size: 24px;
        line-height: normal;
    }

    .popup-grid ul li {
        padding: 10px;
    }

    .close-popup-btn {
        left: 30px;
        top: 30px;
        padding: 0;
    }

    .popup-header p {
        font-size: 15px;
        line-height: 24px;
    }

    .archive-main.my_custom_archive {
        padding: 40px 0;
    }

    .archive-main.my_custom_archive .legal-insights-box {
        width: 100%;
    }

    .archive-main.my_custom_archive .pagination {
        margin-top: 20px;
        padding: 0;
    }
}

@media (max-width: 480px) {
    .archive-header {
        padding: 20px 0;
    }

    .archive-header h1 {
        font-size: 1.75rem;
    }

    .featured-content {
        padding: 20px;
    }

    .featured-content h3 {
        font-size: 16px;
    }
}