.groza-article-item.e-con {
    --gai-panel: #fff;
    --gai-title: #102643;
    --gai-gold: #785419;
    --gai-cream: #fff1d0;
    --gai-meta: #495970;
    --gai-line: #dce4ee;
    --gai-radius: 20px;
    --gai-notch: 60px;
    --gai-step: 46px;
    --gai-curve: 12px;
    --gai-ease: cubic-bezier(.22, .68, .25, 1);
    position: relative;
    isolation: isolate;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: stretch;
    gap: 0;
    direction: rtl;
    min-width: 0;
    min-height: 350px;
    padding: 0;
    overflow: hidden;
    box-sizing: border-box;
    border: 1px solid var(--gai-line);
    border-radius: var(--gai-radius);
    background: var(--gai-panel);
    box-shadow: 0 6px 20px rgb(16 38 67 / 7%);
    text-align: right;
    transition: border-color .3s ease, box-shadow .35s var(--gai-ease);
}

.groza-article-item .groza-article-item__cover {
    position: absolute;
    z-index: -1;
    inset: 0 0 auto;
    width: auto;
    height: 76%;
    overflow: hidden;
    background: linear-gradient(138deg, #213c60, #102340 55%, #675334);
}

.groza-article-item__cover > .elementor-widget-container,
.groza-article-item__cover a,
.groza-article-item__cover figure {
    display: block;
    width: 100%;
    height: 100%;
    margin: 0;
}

.groza-article-item .groza-article-item__cover img {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 0;
    object-fit: cover;
    object-position: 50% 42%;
    transition: transform .5s var(--gai-ease);
}

.groza-article-item .groza-article-item__category {
    position: absolute;
    z-index: 2;
    top: 13px;
    left: 13px;
    width: auto;
    max-width: calc(100% - 26px);
}

.groza-article-item .groza-article-item__chip {
    display: block;
    max-width: 100%;
    padding: 5px 10px;
    overflow: hidden;
    box-sizing: border-box;
    border: 1px solid rgb(255 255 255 / 75%);
    border-radius: 8px;
    background: var(--gai-cream);
    color: var(--gai-title);
    font-size: 11px;
    font-weight: 700;
    line-height: 1.5;
    text-decoration: none;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.groza-article-item .groza-article-item__panel.e-con {
    position: relative;
    isolation: isolate;
    display: flex;
    flex: 0 0 auto;
    flex-direction: column;
    width: 100%;
    min-width: 0;
    gap: 0;
    padding: 14px 19px 12px;
}

.groza-article-item .groza-article-item__panel::before,
.groza-article-item .groza-article-item__panel::after,
.groza-article-item .groza-article-item__corner {
    position: absolute;
    z-index: -1;
    pointer-events: none;
}

.groza-article-item .groza-article-item__panel::before {
    inset: var(--gai-step) 0 0;
    width: auto;
    height: auto;
    border-radius: 13px 0 0 0;
    background: var(--gai-panel);
    content: "";
}

.groza-article-item .groza-article-item__panel::after {
    inset: 0 0 auto var(--gai-notch);
    height: calc(var(--gai-step) + 2px);
    border-radius: 16px 17px 0 0;
    background: var(--gai-panel);
    content: "";
}

.groza-article-item .groza-article-item__corner {
    top: calc(var(--gai-step) - var(--gai-curve));
    left: calc(var(--gai-notch) - var(--gai-curve));
    width: calc(var(--gai-curve) + 1px);
    height: calc(var(--gai-curve) + 1px);
    min-height: 0;
    background: radial-gradient(
        circle at 0 0,
        transparent calc(var(--gai-curve) - .65px),
        var(--gai-panel) var(--gai-curve)
    );
}

.groza-article-item__corner .elementor-spacer {
    display: none;
}

.groza-article-item__meta-line {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1px 8px;
    min-height: 23px;
    margin: 0 0 8px;
    padding-left: calc(var(--gai-notch) - 10px);
    color: var(--gai-meta);
    font-size: 11px;
    line-height: 1.55;
}

.groza-article-item__meta-line :is(time, span) {
    white-space: nowrap;
}

.groza-article-item__meta-line time + span::before {
    display: inline-block;
    width: 4px;
    height: 4px;
    margin-inline-end: 8px;
    border-radius: 50%;
    background: var(--gai-gold);
    vertical-align: middle;
    content: "";
}

.groza-article-item .groza-article-item__title .elementor-heading-title {
    display: -webkit-box;
    min-height: 3.1em;
    margin: 0;
    overflow: hidden;
    color: var(--gai-title);
    font-size: clamp(16px, 1rem + .16vw, 19px);
    font-weight: 700;
    line-height: 1.55;
    overflow-wrap: anywhere;
    text-wrap: balance;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
}

.groza-article-item__title .elementor-heading-title a {
    color: inherit;
    text-decoration: none;
}

.groza-article-item .groza-article-item__reveal.e-con {
    display: grid;
    grid-template-rows: 0fr;
    grid-template-columns: minmax(0, 1fr);
    min-height: 0;
    padding: 0;
    gap: 0;
    opacity: 0;
    visibility: hidden;
    transition: grid-template-rows .4s var(--gai-ease), opacity .28s ease, visibility .4s;
}

.groza-article-item__reveal > :is(.elementor-element, .e-con-inner) {
    min-height: 0;
    overflow: hidden;
}

.groza-article-item__excerpt {
    color: var(--gai-meta);
    font-size: 12px;
    line-height: 1.8;
    overflow-wrap: anywhere;
}

.groza-article-item__excerpt > .elementor-widget-container {
    display: -webkit-box;
    max-height: calc(3.6em + 4px);
    margin: 0;
    padding-top: 4px;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
}

.groza-article-item__excerpt p {
    margin: 0;
}

.groza-article-item .groza-article-item__cta,
.groza-article-item__cta > .elementor-widget-container,
.groza-article-item__cta .elementor-button-wrapper,
.groza-article-item__cta .elementor-button {
    position: static;
}

.groza-article-item .groza-article-item__cta .elementor-button {
    display: inline-flex;
    min-height: 34px;
    align-items: center;
    margin-top: 3px;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--gai-gold);
    font-size: 12px;
    font-weight: 700;
    line-height: 1.6;
    text-decoration: underline;
    text-decoration-color: transparent;
    text-underline-offset: 4px;
    transition: text-decoration-color .22s ease;
}

.groza-article-item__cta .elementor-button::before {
    position: absolute;
    top: 2px;
    left: 8px;
    width: 44px;
    height: 42px;
    box-sizing: border-box;
    border: 1px solid rgb(255 255 255 / 65%);
    border-radius: 13px;
    background: var(--gai-cream)
        url("https://grozaco.net/wp-content/uploads/2026/11/iconsax-arrow-left-e896bc154920-1-1.svg")
        center / 18px 18px no-repeat;
    box-shadow: 0 2px 8px rgb(16 38 67 / 16%);
    transition: transform .3s var(--gai-ease), background-color .25s ease;
    content: "";
}

.groza-article-item :is(.elementor-button, .groza-article-item__chip, .elementor-heading-title a):focus-visible {
    outline: 2px solid var(--gai-gold);
    outline-offset: 2px;
}

.groza-article-item .groza-article-item__title a:focus-visible {
    outline-offset: -2px;
}

.groza-article-item:focus-within {
    border-color: #c79c48;
    box-shadow: 0 10px 25px rgb(16 38 67 / 12%);
}

.groza-article-item:focus-within .groza-article-item__reveal.e-con {
    grid-template-rows: 1fr;
    opacity: 1;
    visibility: visible;
}

@media (hover: hover) and (pointer: fine) {
    .groza-article-item:hover {
        border-color: #c79c48;
        box-shadow: 0 10px 25px rgb(16 38 67 / 12%);
    }

    .groza-article-item:hover .groza-article-item__reveal.e-con {
        grid-template-rows: 1fr;
        opacity: 1;
        visibility: visible;
    }

    .groza-article-item:hover .groza-article-item__cover img {
        transform: scale(1.035);
    }

    .groza-article-item .groza-article-item__cta .elementor-button:hover {
        text-decoration-color: currentColor;
    }

    .groza-article-item__cta .elementor-button:hover::before {
        transform: translateX(-2px);
        background-color: #ffe7ac;
    }
}

@media (hover: none), (pointer: coarse) {
    .groza-article-item.e-con {
        min-height: 365px;
    }

    .groza-article-item .groza-article-item__cover {
        height: 68%;
    }

    .groza-article-item .groza-article-item__reveal.e-con {
        grid-template-rows: 1fr;
        opacity: 1;
        visibility: visible;
    }

    .groza-article-item .groza-article-item__cta .elementor-button {
        min-height: 44px;
    }
}

@media (max-width: 480px) {
    .groza-article-item .groza-article-item__panel.e-con {
        padding-inline: 16px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .groza-article-item.e-con,
    .groza-article-item .groza-article-item__cover img,
    .groza-article-item .groza-article-item__reveal.e-con,
    .groza-article-item .groza-article-item__cta .elementor-button,
    .groza-article-item .elementor-button::before {
        transition: none;
    }

    .groza-article-item:hover .groza-article-item__cover img {
        transform: none;
    }
}
