/* 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%;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    align-items: flex-start;
    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;
}

.casestudies-card-img {
    align-self: stretch;
    width: 416px;
    height: auto !important;
    min-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;
}

.casestudies-card-tags {
    /*display: flex;*/
    display: none;
    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;
}

.casestudies-card-title h2 {
    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;
}

.stretch-start-inline {
    align-self: stretch;
    justify-content: flex-start;
    align-items: center;
    gap: 8px;
    display: inline-flex;
}

.start-center-gap8-flex {
    justify-content: flex-start;
    align-items: center;
    gap: 8px;
    display: flex;
}

.author-action .share-button {
    padding: 10px;
    border-radius: 999px;
    outline: 1px solid #564C68;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    cursor: pointer;
}

.mobile-tablette {
    display: flex;
    gap: 8px;
}

.share-button:hover {
    background-color: #C0BACC;
}

.arrow-icon {
    width: 16px;
    height: 17px;
}

.search-input {
    justify-content: center;
    display: flex;
    flex-direction: column;
    color: #49454F;
    font-size: 16px;
    font-family: Roboto;
    font-weight: 400;
    line-height: 24px;
    letter-spacing: 0.50px;
    border: none !important;
    background: none;
}

.casestudies-card {
    overflow: hidden;
    border-radius: 8px;
    background-color: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.casestudies-card-img-wrapper {
    position: relative;
    width: 100%;
    height: auto;
}

.casestudies-card-img {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
    border-radius: 8px;
}

.casestudies-author-overlay {
    position: absolute;
    bottom: 16px;
    left: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 12px;
    border-radius: 6px;
}

.casestudies-author-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50% !important;
    object-fit: cover;
}

.casestudies-author-info {
    display: flex;
    flex-direction: column;
}

.casestudies-author-name {
    font-size: 14px;
    font-family: 'Rethink Sans', sans-serif;
    font-weight: 600;
    color: #1B1822;
}

/* Recheche */
.search-bar-wrapper {
    margin-bottom: 64px;
    max-width: 360px;
    max-height: 56px;
    background: #ECE6F0;
    overflow: hidden;
    border-radius: 28px;
    align-items: center;
    gap: 4px;
    margin-left: auto;
    margin-right: auto;
    display: flex;
    justify-content: flex-start
}

.search-bar-content {
    flex: 1 1 0;
    height: 100%;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.icon-button {
    width: 48px;
    height: 48px;
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.icon-wrapper {
    overflow: hidden;
    border-radius: 100px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.icon-inner {
    padding: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.icon-size {
    width: 24px;
    height: 24px;
    position: relative;
}

.search-input-wrapper {
    flex: 1 1 0;
    align-self: stretch;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 10px;
}

.search-input {
    width: 100%;
    height: 100%;
    border: none;
    background: transparent;
    font-size: 16px;
    outline: none;
    padding: 8px 0;
}

/* 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) {
    /*.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) {

    /* 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;
    }
}