/* featured section */
.ca-featured {
    margin: 0 0 100px 0;
}

.ca-featured .ca-featured-link {
    display: flex;
    align-items: stretch;
    gap: 120px;
    color: inherit;
    text-decoration: none;
}

.ca-featured .ca-featured-link:focus-visible {
    outline: 2px solid var(--e-global-color-primary);
    outline-offset: 8px;
    border-radius: 5px;
}

.ca-featured .ca-featured-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 16px;
}

.ca-featured .ca-featured-text .ca-featured-category,
.ca-chips-title {
    color: var(--e-global-color-primary);
    font-weight: 700;
    margin: 0 0 24px 0;
}

.ca-chips-title {
    display: flex;
    justify-content: center;
}

.ca-featured .ca-featured-text .ca-featured-quote {
    color: var(--e-global-color-primary);
    margin: 0;
    text-decoration: none;
}

.ca-featured .ca-featured-link:hover .ca-featured-text .ca-featured-quote {
    text-decoration: underline;
}

.ca-featured .ca-featured-text .ca-featured-excerpt {
    color: var(--e-global-color-primary);
    margin-block-end: 0;
    font-weight: 400;
}

.ca-featured .ca-featured-text .ca-featured-owner {
    margin: 0 0 24px 0;
    color: var(--e-global-color-primary);
}

.ca-featured .ca-featured-text .ca-featured-owner .ca-featured-owner-name {
    font-weight: 700;
}

.ca-featured .ca-featured-text .ca-featured-owner .ca-featured-owner-function {
    font-weight: 400;
}

.ca-featured .ca-featured-media {
    flex: 1;
    position: relative;
    overflow: hidden;
    border-radius: 5px;
    height: auto;
}

.ca-featured .ca-featured-media .ca-featured-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.ca-featured .ca-featured-link:hover .ca-featured-media .ca-featured-thumb {
    transform: scale(1.1);
}

.elementor-widget-cases-archive .ca-featured-text .ca-featured-separator {
    all: unset;
    display: block;
    width: 100%;
    height: 1px;
    background-color: var(--e-global-color-primary);
    border: none;
    box-sizing: border-box;
    margin: 24px 0 8px 0;
}

/* card section */
.ca-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-bottom: 100px;
}

.ca-card {
    position: relative;
}

.ca-card .ca-card-link {
    display: flex;
    flex-direction: column;
    height: 100%;
    color: inherit;
    text-decoration: none;
}

.ca-card .ca-card-media {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    height: 332px;
    max-height: 332px;
    flex: 0 0 auto;
    margin: 0 0 24px 0;
}

.ca-card .ca-card-media .ca-card-thumb {
    width: 100%;
    height: 332px;
    object-fit: cover;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.ca-card .ca-card-media:has(.ca-card-thumb--placeholder) {
    border: 1px solid #CECECE;
}

.ca-card .ca-card-link:hover .ca-card-media .ca-card-thumb {
    transform: scale(1.1);
}

.ca-card .ca-card-category {
    color: var(--e-global-color-primary);
    margin: 0 0 8px 0;
}

.ca-card .ca-card-link .ca-card-title {
    color: var(--e-global-color-primary);
    text-decoration: none;
    margin: 0 0 16px 0;
}

.ca-card .ca-card-link:hover .ca-card-title {
    color: var(--e-global-color-primary);
    text-decoration: underline;
}

.ca-card .ca-card-excerpt {
    color: var(--e-global-color-primary);
    margin-block-end: 0;
    font-weight: 400;
}

.elementor-widget-cases-archive .ca-card .ca-card-separator {
    all: unset;
    display: block;
    width: 100%;
    height: 1px;
    background-color: var(--e-global-color-primary);
    border: none;
    box-sizing: border-box;
    margin: 24px 0;
}

.ca-card .ca-card-owner {
    margin: 0 0 24px 0;
    color: var(--e-global-color-primary);
}

.ca-card .ca-card-owner .ca-card-owner-name {
    font-weight: 700;
}

.ca-card .ca-card-owner .ca-card-owner-function {
    font-weight: 400;
}

.ca-card .ca-card-actions {
    margin-top: auto;
}

/* category filters */
.ca-archive .ca-chips {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin: 0 0 100px 0;
}

.ca-archive .ca-chips .ca-chip {
    position: relative;
    display: inline-flex;
    align-items: center;
    font-size: 16px;
    gap: 16px;
    cursor: pointer;
    color: var(--e-global-color-primary);
    font-weight: 500;
    border: 2px solid var(--e-global-color-primary);
    padding: 14px 32px;
    border-radius: 400px;
    background-color: white;
    transition: all 0.3s ease;
}

.ca-archive .ca-chips .ca-chip.is-active,
.ca-archive .ca-chips .ca-chip:hover {
    background-color: var(--e-global-color-primary);
    color: white;
}

/* pagination */
.ca-pagination {
    display: flex;
    justify-content: center;
}

.ca-pagination .ca-pagination-list {
    display: inline-flex;
    align-items: center;
    list-style: none;
    gap: 40px;
    padding: 0;
    margin: 0;
}

.ca-pagination .ca-pagination-list li {
    display: flex;
    align-items: center;
    justify-content: center;
}

.ca-pagination .ca-pagination-list .ca-page {
    background-color: unset;
    border: unset;
    border-radius: unset;
    line-height: unset;
    padding: unset;
    color: var(--e-global-color-primary);
    opacity: 0.5;
    cursor: pointer;
    transition: all 0.3s ease;
}

.ca-pagination .ca-pagination-list .ca-page.is-active {
    font-weight: 700;
    opacity: 1;
}

.ca-pagination .ca-pagination-list .ca-page.ca-prev,
.ca-pagination .ca-pagination-list .ca-page.ca-next {
    content: "";
    display: inline-block;
    width: 20px;
    height: 20px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    background-color: unset;
    border: unset;
    border-radius: unset;
    font-size: unset;
    line-height: unset;
    padding: unset;
    opacity: 1;
}

.ca-pagination .ca-pagination-list .ca-page.ca-prev {
    background-image: url("../../icons/chevron-left.svg");
    margin-right: 10px;
}

.ca-pagination .ca-pagination-list .ca-page.ca-next {
    background-image: url("../../icons/chevron-right.svg");
    margin-left: 10px;
}

.ca-pagination .ca-pagination-list .ca-page.ca-next.is-active,
.ca-pagination .ca-pagination-list .ca-page.ca-prev.is-active {
    opacity: 1;
}

.ca-pagination .ca-pagination-list .ca-page.ca-next.is-disabled,
.ca-pagination .ca-pagination-list .ca-page.ca-prev.is-disabled {
    cursor: not-allowed;
    opacity: 0.5;
}

@media screen and (max-width: 1024px) {
    .ca-featured .ca-featured-link {
        gap: 40px;
    }

    .ca-featured .ca-featured-media {
        height: 500px;
    }
}

@media screen and (max-width: 768px) {
    .ca-featured .ca-featured-link {
        flex-direction: column;
    }

    .ca-archive .ca-chips {
        display: grid;
        grid-template-columns: 1fr 1fr;
        margin: 0 0 40px 0;
    }

    .ca-archive .ca-chips .ca-chip {
        justify-content: center;
    }

    .ca-featured .ca-featured-text {
        order: 2;
    }

    .ca-grid {
        display: flex;
        flex-direction: column;
        margin-bottom: 40px;
    }
}
