.epc-carousel {
    --epc-columns: 4;
    --epc-gap: 36px;
    --epc-image-hover-scale: 1.08;
    position: relative;
    width: 100%;
    overflow: visible;
}

.epc-carousel,
.epc-carousel * {
    box-sizing: border-box;
}

.epc-carousel-viewport {
    width: 100%;
    overflow: hidden;
}

.epc-carousel-track {
    display: flex;
    gap: var(--epc-gap);
    transition: transform 0.45s ease;
    will-change: transform;
}

.epc-grid-track {
    display: grid;
    grid-template-columns: repeat(var(--epc-columns), minmax(0, 1fr));
    gap: var(--epc-gap);
    width: 100%;
}

.epc-card {
    flex: 0 0 calc((100% - (var(--epc-gap) * (var(--epc-columns) - 1))) / var(--epc-columns));
    overflow: hidden;
    background: #ffffff;
    border: 1px solid #ffffff;
    border-radius: 4px;
    transition: border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.epc-mode-grid .epc-card {
    flex: initial;
    min-width: 0;
}

.epc-card-hidden {
    display: none !important;
}

.epc-image-link,
.epc-card-title a,
.epc-card-button {
    text-decoration: none;
}

.epc-image-link {
    display: block;
    color: inherit;
}

.epc-image-wrapper {
    position: relative;
    width: 100%;
    height: 395px;
    overflow: hidden;
    background: #f2f2f2;
}

.epc-image-wrapper img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    border: 0;
    transform: scale(1);
    transition: transform 0.55s ease;
}

.epc-card:hover .epc-image-wrapper img {
    transform: scale(var(--epc-image-hover-scale));
}

.epc-image-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    padding: 24px;
    color: #111111;
    text-align: center;
    font-size: 18px;
    line-height: 1.4;
}

.epc-card-content {
    padding: 30px;
}

.epc-card-category {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 9px;
    margin: 0 0 16px;
    color: #c71f37;
    font-size: 15px;
    line-height: 1.3;
}

.epc-card-category-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1em;
    min-width: 1em;
    line-height: 1;
}

.epc-card-category-icon i,
.epc-card-category-icon svg {
    display: block;
    width: 1em;
    height: 1em;
}


.epc-card-category-separator,
.epc-card-category-extra,
.epc-card-category-excerpt {
    display: inline-flex;
    align-items: center;
    line-height: 1.3;
}

.epc-card-category-separator {
    opacity: 0.75;
}

.epc-card-category-excerpt {
    min-width: 0;
}

.epc-card-title {
    margin: 0 0 28px;
    color: #111111;
    font-size: 32px;
    font-weight: 500;
    line-height: 1.15;
}

.epc-card-title a {
    color: inherit;
    transition: color 0.3s ease;
}

.epc-card-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #b18645;
    font-size: 18px;
    line-height: 1.3;
    transition: color 0.3s ease;
}

.epc-card-button-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    line-height: 1;
    transform: translateY(-1px);
}

.epc-carousel-arrow {
    position: absolute;
    top: 50%;
    z-index: 5;
    width: 48px;
    height: 48px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: #ffffff;
    color: #c71f37;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.12);
    cursor: pointer;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease, color 0.3s ease, opacity 0.3s ease;
}

.epc-carousel-arrow span {
    display: block;
    font-size: 42px;
    line-height: 0.8;
}

.epc-carousel-arrow:hover,
.epc-carousel-arrow:focus {
    background: #c71f37;
    color: #ffffff;
    outline: none;
}

.epc-carousel-prev {
    left: -24px;
}

.epc-carousel-next {
    right: -24px;
}

.epc-carousel-arrow:disabled {
    opacity: 0.35;
    cursor: not-allowed;
    pointer-events: none;
}

.epc-load-more-wrapper {
    display: flex;
    justify-content: center;
    width: 100%;
    margin-top: 34px;
}

.epc-load-more-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 12px 28px;
    border: 1px solid currentColor;
    border-radius: 999px;
    background: transparent;
    color: #b18645;
    font-size: 18px;
    line-height: 1.3;
    cursor: pointer;
    transition: color 0.3s ease, background-color 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}

.epc-load-more-button:hover,
.epc-load-more-button:focus {
    color: #111111;
    outline: none;
    transform: translateY(-2px);
}

.epc-editor-notice {
    padding: 16px 18px;
    border-left: 4px solid #c71f37;
    background: #fff8f8;
    color: #111111;
    font-size: 14px;
    line-height: 1.5;
}

@media (max-width: 1024px) {
    .epc-carousel {
        --epc-columns: 2;
    }
}

@media (max-width: 767px) {
    .epc-carousel {
        --epc-columns: 1;
    }

    .epc-carousel-prev {
        left: 8px;
    }

    .epc-carousel-next {
        right: 8px;
    }

    .epc-carousel-arrow span {
        font-size: 34px;
    }
}
