.mod-projects .projects-container {
    padding: 0 60px 80px;
}

.mod-projects .projects-filters {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    flex-wrap: wrap;
    margin-bottom: 80px;
    padding: 0 calc(172px - 60px);
}

.mod-projects .projects-filters .filter-group {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.mod-projects .projects-filters .filter-label {
    margin: 0;
}

.mod-projects .country-btns .country-btn,
.mod-projects .country-btns .country-btn-head,
.mod-projects .select .select-trigger {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 24px;
    border: 2px solid var(--color-primary);
    border-radius: 16px;
    background: transparent;
    color: var(--color-primary);
    cursor: pointer;
}

.mod-projects .select .select-trigger {
    width: 100%;
    justify-content: space-between;
}

.mod-projects .filter-category .filter-label {
    text-align: end;
}

.mod-projects .country-btns .country-btn.active,
.mod-projects .country-btns .country-btn-group[open] .country-btn-head,
.mod-projects .country-btns .country-btn-group.active .country-btn-head,
.mod-projects .select.has-value .select-trigger {
    background: var(--color-primary);
    color: var( --color-background-white);
}

.mod-projects .country-btns .country-btn-group[open] .country-btn-head svg path,
.mod-projects .country-btns .country-btn-group.active .country-btn-head svg path,
.mod-projects .select.has-value .select-trigger svg path ,
.mod-projects .country-btns .country-btn-group:not([open]):not(.active) .country-btn-head:hover svg path{
    stroke: var( --color-background-white);
}

.mod-projects .country-btns .country-btn:hover,
.mod-projects .country-btns .country-btn-group:not([open]):not(.active) .country-btn-head:hover {
    background: var(--color-primary);
    color: var(--color-background-white);
}

.mod-projects .country-btns .country-btn-menu,
.mod-projects .select .select-menu {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    min-width: 100%;
    background: var( --color-background-white);
    border: 2px solid var(--color-primary);
    border-radius: 16px;
    padding: 6px 0;
    z-index: 200;
    cursor: pointer;
}

.mod-projects .country-btns .country-btn-option,
.mod-projects .select .select-option {
    display: flex;
    align-items: center;
    padding: 10px 18px;
    cursor: pointer;
    gap: 12px;
}

.mod-projects .country-btns .country-btn-option input,
.mod-projects .select .select-option input {
    display: none;
}

.mod-projects .country-btns .country-btn-option::before,
.mod-projects .select .select-option::before {
    content: '';
    display: inline-block;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 2px solid var(--color-neutral-beige-dark);
    background-color: transparent;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.mod-projects .country-btns .country-btn-option:has(input:checked)::before,
.mod-projects .select .select-option:has(input:checked)::before {
    border-color: var(--color-primary);
    background: radial-gradient(circle, var(--color-primary) 40%, transparent 45%);
}

.mod-projects .country-btns .country-btn-arrow,
.mod-projects .select .select-icon {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.mod-projects .country-btns .country-btn-group[open] .country-btn-arrow,
.mod-projects .select[open] .select-icon {
    transform: rotate(180deg);
}

.mod-projects .country-btns .country-btn-arrow svg {
    width: 12px;
    height: 12px;
    display: block;
}

.mod-projects .select .select-icon svg {
    width: 16px;
    height: 16px;
    display: block;
}

.mod-projects .country-btns .country-btn-head::-webkit-details-marker,
.mod-projects .select .select-trigger::-webkit-details-marker {
    display: none;
}

.mod-projects .country-btns {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.mod-projects .country-btns .country-btn-group {
    position: relative;
    display: inline-flex;
    flex-direction: column;
    border: none;
    background: none;
    padding: 0;
    margin: 0;
    outline: none;
}

.mod-projects .select {
    position: relative;
    min-width: 300px;
    display: flex;
}

.mod-projects .projects-grid-outer {
    width: 100%;
}

.mod-projects .projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 82px 20px
}

.mod-projects .project-card {
    display: flex;
    flex-direction: column;
}

.mod-projects .project-card .card-image {
   height: auto;
   min-height: 220px;
   overflow: hidden;
}

.mod-projects .project-card .card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}


.mod-projects .project-card .card-body {
    display: flex;
    flex-direction: column;
    gap: 13px;
    padding: 15px 27px 34px;
    flex: 1;
    position: relative;
}

.mod-projects .project-card .card-location {
    display: inline-flex;
    align-items: center;
    gap: 9px;
}

.mod-projects .project-card .card-title {
    margin: 0;
}

.mod-projects .project-card .card-cta {
    position: absolute;
    bottom: -27px;
    right: 25px;
    width: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 1.2rem;
    transition: background 0.3s;
    padding: 15px;
}

.mod-projects .project-card .card-cta span {
    display: inline-block;
    opacity: 0;
    transform: translateX(-20px);
    max-width: 0;
    overflow: hidden;
    margin-right: 0;
    transition: all 0.3s ease;
}

.mod-projects .project-card .card-cta:hover span {
    opacity: 1;
    transform: translateX(0);
    max-width: 300px;
    margin-right: 10px;
}

.mod-projects .projects-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 122px;
}

.mod-projects .projects-nav {
    display: flex;
    align-items: center;
    gap: 76px;
}

.mod-projects .projects-nav .nav-prev,
.mod-projects .projects-nav .nav-next {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    color: var(--color-primary);
    transition: opacity 0.2s;
}

.mod-projects .projects-nav .nav-prev {
    transform: rotate(180deg);
}

.mod-projects .projects-nav .nav-prev.is-disabled,
.mod-projects .projects-nav .nav-next.is-disabled {
    opacity: 0.3;
    cursor: default;
    pointer-events: none;
}

.mod-projects .projects-pagination {
    display: flex;
    align-items: center;
    gap: 2px;
}

.mod-projects .projects-pagination .page-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: transparent;
    font-family: var(--typo-title-2-regular-font);
    font-size: var(--typo-title-2-size-regular);
    font-weight: var(--typo-title-2-regular-fw);
    line-height: var(--typo-title-2-regular-lh);
    letter-spacing: var(--typo-title-2-regular-ls);
    color: var(--color-primary);
    cursor: pointer;
    flex-shrink: 0;
    line-height: 1;
    transition: background 0.2s, color 0.2s;
}

.mod-projects .projects-pagination .page-btn.is-active {
    background: var(--color-primary);
    color: var(--color-background-white);
}

.mod-projects .projects-pagination .page-dots {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    color: var(--color-primary);
    font-size: 14px;
    pointer-events: none;
    flex-shrink: 0;
}

@media (max-width: 1024px) {
    .mod-projects .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .mod-projects .projects-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 992px) {

    .mod-projects.hero-spacing-ready .projects-container {
        padding: 0px 20px 40px;
    }

    .mod-projects .projects-container {
        padding: 40px 20px;
    }

    .mod-projects .projects-filters {
        flex-direction: column;
        gap: 20px;
        padding: 0;
    }

    .mod-projects .filter-category .filter-label {
    text-align: start;
    }

    .mod-projects .select {
        min-width: 100%;
    }

    .mod-projects .country-btns .country-btn-menu {
        min-width: 100%;
    }

    .mod-projects .projects-controls {
        justify-content: center;
    }

    .mod-projects .country-btns{
        flex-wrap: unset;
        overflow: auto;
        -ms-overflow-style: none;
        scrollbar-width: none;
    }

    .mod-projects .country-btns::-webkit-scrollbar {
      display: none;
    }
}