.tags-carousel-container {
    display: flex;
    align-items: center;
    position: relative;
    margin: 20px 40px 50px 40px;
}

.carousel {
    overflow: hidden;
    width: 100%;
    position: relative;
}

.carousel-track {
    display: flex;
    transition: transform 0.3s ease;
    gap: 23px;
}

.carousel-item {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 1000px;
    border: 2px solid transparent;
    padding: 12px 24px;
    cursor: pointer;
    width: fit-content;
    color: #FFF;
    text-align: center;
    font-size: 20px;
    font-style: normal;
    font-weight: 400;
    line-height: 16px;
    white-space: nowrap; /* Prevent text wrapping */
    box-sizing: border-box;
    position: relative;
    text-transform: capitalize;
}

    .carousel-item.selected {
        border: 2px solid black;
    }

.carousel-btn {
    background-color: unset;
    border: none;
    padding: 10px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease;
}

.blog-search-bar-container {
    padding: 20px 40px;
    background: #1E4EBB;
}

.search-bar-row {
    display: flex;
    align-items: center;
    gap: 12px;
    border-radius: 20px;
    background: var(--surface-surface-secondary, #F7F5F5);
    border: 1px solid var(--border-border-primary, #EAEAEA);
    padding: 12px 24px;
    margin: 0 auto;
}

.search-icon-toolkit {
    width: 20px;
    height: 20px;
}

.toolkit-search-container {
    flex: 1;
}

.search-bar-input {
    width: 100%;
    color: var(--C-Grey, #555);
    font-size: 20px;
    font-style: normal;
    font-weight: 400;
    line-height: 20px;
    background: transparent;
    outline: none;
    border: none;
    padding: 0;
}

.article-list-container {
    padding: 0 24px 24px 24px;
    max-width: 1200px;
    width: 100%;
}

.category-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    padding: 0;
}

.featured-link {
    text-decoration: none;
    display: block;
    width: 100%;
}

.category-card {
    position: relative;
    width: 100%;
    height: 333px;
    background-size: cover;
    background-position: center;
    border-radius: 15px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: end;
}

.tier-container {
    padding: 12px;
    display: flex;
    justify-content: flex-end;
}

    .tier-container img {
        height: auto;
        width: 127px;
    }

.category-card-content {
    background-color: #EAEAEA;
    padding: 16px;
    margin-top: 0;
    min-height: 84px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.category-card-title {
    margin: 0 0 4px 0;
    color: #181818;
    font-size: 20px;
    font-weight: 600;
    line-height: 1.2;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    max-height: 48px;
}

.category-card-description {
    color: #181818;
    font-size: 16px;
    line-height: 1.4;
    margin: 0;
    font-weight: 500;
}

.empty-state-container {
    display: flex;
    justify-content: normal;
    align-items: center;
    height: 100vh;
    flex-direction: column;
    margin-top: 90px;
}

.empty-state-text {
    text-align: center;
    font-size: 16px;
    margin-bottom: 40px;
}

.blog-container {
    display: flex;
    flex-direction: row;
    gap: 24px;
    margin-left: 40px;
}

p {
    margin: 0;
    padding: 0 !important;
}

/*Filter*/
.filter-container {
    margin-bottom: 24px;
}

.filter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    gap: 10px;
}

    .filter-header p {
        color: #000;
        font-size: 24px;
        font-style: normal;
        font-weight: 600;
        line-height: 120%;
        margin: 0;
    }

.filter-header-main {
    display: flex;
    align-items: center;
    margin-bottom: 16px;
    gap: 10px;
}

    .filter-header-main h3 {
        color: #000;
        font-size: 24px;
        font-style: normal;
        font-weight: 600;
        line-height: 120%;
        margin: 0;
    }

.clear-filters {
    background-color: transparent;
    border: none;
    color: #1E4EBB;
    font-size: 14px;
    cursor: pointer;
}

.filter-group {
    margin-bottom: 24px;
}

    .filter-group h4 {
        color: #000;
        font-size: 24px;
        font-weight: 500;
        line-height: 120%;
        margin: 0;
    }

.filter-list {
    list-style-type: none;
    padding: 0;
    margin: 0;
    text-transform: capitalize;
}

    .filter-list li {
        margin-bottom: 8px;
        display: flex;
        align-items: center;
        gap: 8px
    }

    .filter-list label {
        display: flex;
        align-items: center;
        cursor: pointer;
        color: #000;
        font-size: 18px;
        font-style: normal;
        font-weight: 400;
        line-height: 120%;
        padding: 5px 0;
    }

    .filter-list input[type="checkbox"] {
        margin-right: 8px;
    }

.filter-item.selected {
    color: #1648B3;
    cursor: pointer;
    background: white;
}

.clear-filters-access {
    border-radius: 1000px;
    background: #181818;
    color: #FFF;
    text-align: center;
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 120%;
    cursor: pointer;
}

.clear-filters-category {
    border-radius: 1000px;
    background: #181818;
    color: #FFF;
    text-align: center;
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 120%;
    cursor: pointer;
}

.clear-filters-author {
    border-radius: 1000px;
    background: #181818;
    color: #FFF;
    text-align: center;
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 120%;
    cursor: pointer;
}

.main-blog-container {
    display: flex;
    flex-direction: column;
}

.pagination-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 28px;
    margin: 24px 30px;
}

.pagination-link {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background-color: #fff;
    color: black;
    text-decoration: none;
    border-radius: 11px;
    font-size: 16px;
    font-weight: 400;
    line-height: 120%;
    transition: background-color 0.2s ease;
    cursor: pointer;
}

    .pagination-link:hover {
        background-color: #698AD4;
        color: white;
    }

    .pagination-link.active {
        background-color: #698AD4;
        color: white;
    }

    .pagination-link.disabled {
        background-color: #EAEAEA;
        color: #555;
        cursor: not-allowed;
    }

/* Mobile Filter Button */
.mobile-filter-button {
    align-items: center;
    gap: 8px;
    background: none;
    border: none;
    font-size: 16px;
    cursor: pointer;
    display: flex;
}

.mobile-filter-text {
    color: #000;
    font-size: 24px;
    font-style: normal;
    font-weight: 600;
    line-height: 120%;
}

/* Filter Overlay for Mobile */
.filter-overlay {
    display: none;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    background: white;
    z-index: 1000;
    padding: 20px;
    overflow-y: auto;
}

.filter-overlay-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #EAEAEA;
}

.filter-overlay-title {
    font-size: 24px;
    font-weight: 600;
    margin: 0;
}

.close-filter-button {
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
}

@media (min-width: 769px) {
    .mobile-only {
        display: none;
    }
}


/* Update existing filter container for mobile */
@media (max-width: 768px) {
    .blog-search-bar-container {
        padding: 20px 16px;
    }

    .search-bar-row {
        padding: 10px 16px;
    }

    .desktop-only {
        display: none;
    }

    .filter-options {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 91vh;
        background: white;
        z-index: 1000;
        padding: 40px;
        overflow-y: auto;
    }

        .filter-options.show {
            display: block;
        }

    .filter-header {
        justify-content: unset;
    }

    .mobile-filter {
        display: flex;
        justify-content: space-between;
    }

        .mobile-filter img {
            margin-right: 70px;
            cursor: pointer;
        }

    .filter-title {
        color: #000;
        font-size: 24px;
        font-style: normal;
        font-weight: 500;
        line-height: 120%;
    }

    .close-filter {
        background: none;
        border: none;
        padding: 8px;
        cursor: pointer;
    }

    .filter-group {
        margin-bottom: 32px;
    }

        .filter-group h4 {
            font-size: 20px;
            font-weight: 600;
            margin-bottom: 16px;
        }

    .filter-list {
        display: flex;
        flex-direction: column;
        gap: 16px;
    }

        .filter-list li {
            margin: 0;
        }

    .filter-item {
        font-size: 16px;
        color: #181818;
    }

        .filter-item.selected {
            color: #1648B3;
        }

    /* Header styles for each filter section */
    .filter-section-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 16px;
    }

    .clear-filters-author,
    .clear-filters-category,
    .clear-filters-access {
        font-size: 14px;
        padding: 4px 12px;
        border-radius: 16px;
    }

    .filter-options.show ~ .navigation-banner {
        display: none;
    }
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .category-cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .tags-carousel-container {
        margin: 20px 10px;
    }

    .right-btn {
        padding-right: 0px;
    }

    .left-btn {
        padding-left: 0px;
    }

    .blog-container {
        flex-direction: column;
        gap: 0;
        margin-left: 0;
        padding: 0 20px 20px 20px;
    }

    .article-list-container {
        padding: 0;
    }
}

@media (max-width: 640px) {
    .category-cards {
        grid-template-columns: 1fr;
    }

    .category-card {
        min-height: 240px;
    }
}
