/* Start Filter */
.filters-wrapper {
    display: flex;
    justify-content: center;
    gap: 8px;
    padding-bottom: 64px;
    flex-wrap: wrap;
    cursor: pointer;
}
.filter-button {
    padding: 8px 16px;
    border-radius: 4px;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

}
.filter-button.active {
    background: #7A5AF8;
}
.filter-label {
    text-align: center;
    color: #1B1822;
    font-size: 14px;
    font-family: 'Rethink Sans', sans-serif;
    font-weight: 400;
    line-height: 16.8px;
    word-wrap: break-word;
}
.filter-button.active .filter-label {
    color: #F2F2F5;
}
.filter-button.active .filter-count {
    color: #F2F2F5;
}
.filter-count {
    font-family: "Red Rose";
    opacity: 0.7;
    text-align: center;
    color: #1B1822;
    font-size: 14px;
    font-weight: 400;
    line-height: 16.8px;
    word-wrap: break-word;
}
/* End Filter */
/* Start Listing */
.casestudies-container {
    align-self: stretch;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    gap: 64px;
}
.casestudies-card-wrapper {
    width: 100%;
    width: 33.33%;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    align-items: stretch;
    gap: 32px;
}
.casestudies-card {
    flex: 1 1 calc(33.333% - 21.34px);
    background: white;
    overflow: hidden;
    border-radius: 8px;
    outline: 1px solid #E8E8EC;
    outline-offset: -1px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    height: auto;
}
.casestudies-card-img {
    align-self: stretch;
    height: 300px !important;
    background: #F2F2F5;
    display: flex;
    justify-content: flex-end;
    align-items: flex-start;
    flex-direction: column;
    object-fit: cover;
}
.casestudies-card-content {
    align-self: stretch;
    padding: 32px 24px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    flex-grow: 1;
}
.casestudies-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.casestudies-tag {
    padding: 4px 16px;
    border-radius: 100px;
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 10px;
}
.casestudies-tag-blue {
    background: #2E90FA;
}
.casestudies-tag div {
    text-align: center;
    justify-content: center;
    display: flex;
    flex-direction: column;
    color: #F2F2F5;
    font-size: 12px;
    font-family: 'Rethink Sans', sans-serif;
    font-weight: 400;
    line-height: 14.4px;
}
.casestudies-card-text {
    display: flex;
    flex-direction: column;
    gap: 16px;
    flex-grow: 1;
}
h2.casestudies-card-title, .link-b  {
    color: #1B1822;
    font-size: 20px;
    font-family: 'Rethink Sans', sans-serif;
    font-weight: 400;
    line-height: 28px;
    margin: 0px;
}
.casestudies-card-description {
    color: #564C68;
    font-size: 14px;
    font-family: 'Rethink Sans', sans-serif;
    font-weight: 400;
    line-height: 16.8px;
    flex-grow: 1;
}
/* End Listing */
/* Start 6Elements */
.project-container-6elemts {
    padding:48px 0px;
    align-self: stretch;
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 64px;
    flex-wrap: wrap;
}
.project-text-wrapper-6elemts{
    width: 420px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 32px;
    flex: 1 1 0;
}
.project-text-block-6elemts{
    align-self: stretch;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 24px;
}
.project-tag-row-6elemts {
    display: flex;
    gap: 8px;
    justify-content: flex-start;
    align-items: flex-start;
}
.project-tag {
    padding: 4px 16px;
    border-radius: 100px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 10px;
    font-family: 'Rethink Sans', sans-serif;
    font-size: 12px;
    color: #F2F2F5;
    line-height: 14.4px;
    text-align: center;
    width: 90px;
    height: 22px;
}
.project-title-6elemts h2 {
    align-self: stretch;
    color: #1B1822;
    font-size: 48px;
    font-family: 'Red Rose', serif;
    font-weight: 400;
    line-height: 57.6px;
    margin: 0px;
}
.project-image-6elemts {
    flex: 1 1 0;
    height: 460px !important;
    border-radius: 16px !important;
    width: 828px !important;
}
/* End 6Elements */
/*Pagination Start*/
.pagination-container {
    padding-top: 48px;
    padding-bottom: 48px;
    display: flex;
    justify-content: center;
    gap: 12px;
}
.pagination-button {
    padding: 10px 18px;
    background: #F2EFFE;
    border-radius: 6px;
    outline: 1px solid #E4DEFE;
    outline-offset: -1px;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}
.pagination-button:hover{
    background: #c4b8f8;
}
.pagination-button .icon-wrapper {
    width: 16px;
    height: 16px;
    position: relative;
}
.pagination-button svg {
    position: absolute;
    top: 0;
    left: 2px;
}
.pagination-button.prev svg {
    top: -2px;
}
.button-label {
    font-family: 'Red Rose', sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 16px;
    color: #7A5AF8;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.pagination-pages {
    display: inline-flex;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 8px;
}
.page-button {
    min-height: 40px;
    padding: 8px 0;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    cursor: pointer;
}
.page-button > div {
    width: 40px;
    text-align: center;
    font-size: 16px;
    line-height: 16px;
    word-wrap: break-word;
}
.page-button.normal > div {
    color: #564C68;
    font-family: 'Poppins', sans-serif;
    font-weight: 300;
}
.page-button:hover{
    background: #F2EFFE;
    color: #7A5AF8;
}
.page-button.active {
    background: #7A5AF8;
}
.page-button.active > div {
    color: #F2F2F5;
    font-family: 'Rethink Sans', sans-serif;
    font-weight: 400;
    line-height: 22.4px;
}
.page-button.hover {
    background: #F2EFFE;
}
.page-button.hover > div {
    color: #7A5AF8;
    font-family: 'Rethink Sans', sans-serif;
    font-weight: 400;
    line-height: 22.4px;
}
/* Responsive Mobile Optimizations */
@media screen and (max-width:440px) and (min-width:280px) {
    .casestudies-card-img{
        height: auto !important;
    }
    .project-tag{
        width: 60px;
    }
    .project-text-wrapper-6elemts{
        width: 220px;
    }
    .search-bar-wrapper {
        width: 250px;
        min-width: 250px;
    }
}
@media screen and (max-width:767px) and (min-width:280px) {
    .pagination-container {
        gap: 10px;
    }
    .page-button {
        width: 30px;
    }
    .button-label{
        display: none;
    }
    .pagination-button{
        padding: 10px;
    }
}
/*Pagination End*/
/* Responsive grid : Tablette */
@media (max-width: 1024px) {
    /* listing */
    .casestudies-card {
        flex: 1 1 calc(50% - 16px);
    }
    /*6Elements*/
    .project-container-6elemts {
        padding:36px 0px;
        flex-direction: column;
        gap: 48px;
    }
    .project-title-6elemts h2{
        font-size: 36px;
        line-height: 44px;
        margin: 0px;
    }
    .project-image-6elemts {
        height: auto;
        width: 100%;
    }
}
/* Mobile */
@media (max-width: 768px) {
    /*Filter */
    .filters-wrapper {
        justify-content: center;
    }
    /* listing */
    .casestudies-card {
        flex: 1 1 100%;
    }
    /*6Elements*/
    .project-container-6elemts {
        padding:28px 0px;
        gap: 32px;
    }
    .project-title-6elemts h2{
        font-size: 28px;
        line-height: 36px;
        margin: 0px;
    }
}

.loader {
    width: 40px;
    height: 40px;
    border: 4px solid #ccc;
    border-top-color: #2e90fa;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 40px auto;
}
@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}