.eaw-featured-work,
.eaw-featured-work * {
    box-sizing: border-box;
}

.eaw-featured-work {
    --eaw-fw-primary: #15135C;
    --eaw-fw-accent: #D8BE82;
    --eaw-fw-cream: #F7F5F0;
    position: relative;
    overflow: hidden;
    padding: 104px 24px 112px;
    background: #F7F5F0;
    font-family: 'Montserrat', sans-serif;
    isolation: isolate;
}

.eaw-featured-work__ambient {
    position: absolute;
    width: 460px;
    height: 460px;
    border-radius: 999px;
    pointer-events: none;
    opacity: .18;
    filter: blur(22px);
    z-index: -1;
}

.eaw-featured-work__ambient--one {
    top: -180px;
    left: -120px;
    background: radial-gradient(circle, var(--eaw-fw-primary) 0%, rgba(21, 19, 92, 0) 70%);
}

.eaw-featured-work__ambient--two {
    right: -160px;
    bottom: -170px;
    background: radial-gradient(circle, var(--eaw-fw-accent) 0%, rgba(216, 190, 130, 0) 70%);
}

.eaw-featured-work__inner {
    position: relative;
    width: 100%;
    max-width: 1360px;
    margin: 0 auto;
}

.eaw-featured-work__header {
    max-width: 850px;
    margin: 0 auto 46px;
    text-align: center;
}

.eaw-featured-work__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
    color: var(--eaw-fw-primary);
    font-size: 12px;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: .18em;
    text-transform: uppercase;
}

.eaw-featured-work__eyebrow::before,
.eaw-featured-work__eyebrow::after {
    content: '';
    width: 24px;
    height: 1px;
    background: currentColor;
    opacity: .42;
}

.eaw-featured-work__title {
    margin: 0;
    color: var(--eaw-fw-primary);
    font-size: clamp(34px, 4.3vw, 66px);
    font-weight: 850;
    line-height: .98;
    letter-spacing: -.055em;
}

.eaw-featured-work__description {
    max-width: 700px;
    margin: 18px auto 0;
    color: rgba(21, 19, 92, .72);
    font-size: 16px;
    font-weight: 500;
    line-height: 1.8;
}

.eaw-featured-work__grid {
    --eaw-fw-columns: 2;
    display: grid;
    grid-template-columns: repeat(var(--eaw-fw-columns), minmax(0, 1fr));
    align-items: stretch;
    gap: 30px;
}

.eaw-fw-panel {
    position: relative;
    min-height: 640px;
    overflow: hidden;
    border: 1px solid rgba(21, 19, 92, .10);
    border-radius: 38px;
    background: var(--eaw-fw-primary);
    box-shadow: 0 30px 86px rgba(21, 19, 92, .16);
    transform: translateZ(0);
    isolation: isolate;
}

.eaw-fw-panel::before {
    content: '';
    position: absolute;
    inset: 12px;
    border: 1px solid rgba(255, 255, 255, .34);
    border-radius: calc(38px - 8px);
    pointer-events: none;
    z-index: 7;
    opacity: .72;
}

.eaw-fw-panel::after {
    content: '';
    position: absolute;
    inset: auto 22px 22px auto;
    width: 110px;
    height: 110px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(216, 190, 130, .28), rgba(216, 190, 130, 0) 68%);
    z-index: 2;
    pointer-events: none;
}

.eaw-fw-panel__media,
.eaw-fw-panel__image,
.eaw-fw-panel__shade {
    position: absolute;
    inset: 0;
}

.eaw-fw-panel__media {
    overflow: hidden;
    background: var(--eaw-fw-primary);
}

.eaw-fw-panel__media::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(12, 12, 44, .06) 0%, rgba(12, 12, 44, .02) 36%, rgba(12, 12, 44, .62) 100%),
        linear-gradient(90deg, rgba(21, 19, 92, .18) 0%, rgba(21, 19, 92, 0) 36%, rgba(21, 19, 92, .10) 100%);
    z-index: 3;
    pointer-events: none;
}

.eaw-fw-panel__media::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(135deg, rgba(255,255,255,.24), rgba(255,255,255,0) 32%),
        radial-gradient(circle at 82% 14%, rgba(255,255,255,.22), rgba(255,255,255,0) 28%);
    mix-blend-mode: screen;
    z-index: 4;
    pointer-events: none;
}

.eaw-fw-panel__image {
    width: 100%;
    height: 100%;
    transition: transform .95s cubic-bezier(.2, .75, .2, 1), filter .95s cubic-bezier(.2, .75, .2, 1), opacity .95s cubic-bezier(.2, .75, .2, 1);
}

.eaw-fw-panel__image--backdrop {
    display: none;
}

.eaw-fw-panel__image--main {
    z-index: 1;
    object-fit: cover;
    object-position: center center;
    transform: scale(1.005);
    filter: saturate(1.02) contrast(1.01);
}

.eaw-fw-panel__shade {
    z-index: 5;
    background: linear-gradient(180deg, rgba(8,8,32,0) 0%, rgba(8,8,32,.08) 52%, rgba(8,8,32,.58) 100%);
}

.eaw-fw-panel__thumbs {
    position: absolute;
    top: 28px;
    right: 28px;
    display: grid;
    grid-template-columns: repeat(2, 86px);
    gap: 10px;
    z-index: 8;
    pointer-events: none;
}

.eaw-fw-panel__thumb {
    width: 86px;
    height: 70px;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, .82);
    border-radius: 18px;
    background: rgba(255, 255, 255, .18);
    box-shadow: 0 18px 36px rgba(0, 0, 0, .20);
    transform: translateY(0);
    backdrop-filter: blur(14px);
    transition: transform .65s cubic-bezier(.2, .75, .2, 1), opacity .65s cubic-bezier(.2, .75, .2, 1);
}

.eaw-fw-panel__thumb--two {
    transform: translateY(18px);
}

.eaw-fw-panel__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.04);
}

.eaw-fw-panel__badge {
    position: absolute;
    top: 28px;
    left: 28px;
    z-index: 8;
    display: inline-flex;
    align-items: center;
    gap: 11px;
    max-width: calc(100% - 240px);
    padding: 10px 13px 10px 10px;
    border: 1px solid rgba(255, 255, 255, .42);
    border-radius: 999px;
    background: rgba(255, 255, 255, .92);
    box-shadow: 0 16px 38px rgba(21, 19, 92, .18);
    backdrop-filter: blur(18px);
}

.eaw-fw-panel__badge-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 34px;
    width: 34px;
    height: 34px;
    border-radius: 999px;
    color: #fff;
    background: var(--eaw-fw-primary);
}

.eaw-fw-panel__badge-icon svg,
.eaw-fw-panel__badge-icon i {
    width: 14px;
    height: 14px;
    font-size: 14px;
    color: currentColor;
}

.eaw-fw-panel__badge-icon svg *,
.eaw-fw-panel__badge-icon svg path {
    fill: currentColor;
}

.eaw-fw-panel__badge-text {
    display: grid;
    gap: 1px;
    min-width: 0;
}

.eaw-fw-panel__badge-main {
    color: var(--eaw-fw-primary);
    font-size: 12px;
    font-weight: 850;
    line-height: 1.1;
    letter-spacing: -.01em;
    white-space: nowrap;
}

.eaw-fw-panel__badge-sub {
    color: rgba(21, 19, 92, .64);
    font-size: 9px;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: .1em;
    text-transform: uppercase;
    white-space: nowrap;
}

.eaw-fw-panel__content {
    position: absolute;
    left: 26px;
    right: 26px;
    bottom: 26px;
    z-index: 9;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: 18px 22px;
    padding: 22px 24px;
    border: 1px solid rgba(255,255,255,.78);
    border-radius: 26px;
    background: rgba(255,255,255,.94);
    box-shadow: 0 24px 58px rgba(21, 19, 92, .22);
    backdrop-filter: blur(18px);
    transform: translateY(0);
    transition: transform .65s cubic-bezier(.2, .75, .2, 1), background-color .65s cubic-bezier(.2, .75, .2, 1), box-shadow .65s cubic-bezier(.2, .75, .2, 1);
}

.eaw-fw-panel__label {
    grid-column: 1 / -1;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-bottom: -6px;
    color: var(--eaw-fw-accent);
    font-size: 11px;
    font-weight: 850;
    line-height: 1.2;
    letter-spacing: .13em;
    text-transform: uppercase;
}

.eaw-fw-panel__label::before {
    content: '';
    width: 22px;
    height: 2px;
    border-radius: 99px;
    background: currentColor;
}

.eaw-fw-panel__title {
    max-width: 470px;
    margin: 0;
    color: var(--eaw-fw-primary);
    font-size: clamp(26px, 2.8vw, 42px);
    font-weight: 850;
    line-height: 1.02;
    letter-spacing: -.045em;
}

.eaw-fw-panel__description {
    grid-column: 1 / 2;
    max-width: 520px;
    margin: -10px 0 0;
    color: rgba(21, 19, 92, .72);
    font-size: 13px;
    font-weight: 500;
    line-height: 1.65;
}

.eaw-fw-panel__button {
    grid-column: 2 / 3;
    grid-row: 2 / 4;
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    align-self: end;
    gap: 10px;
    min-height: 46px;
    margin-top: 0;
    padding: 0 15px 0 19px;
    overflow: hidden;
    isolation: isolate;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 999px;
    color: #fff;
    background: var(--eaw-fw-primary);
    box-shadow: 0 14px 30px rgba(21, 19, 92, .22);
    font-size: 12px;
    font-weight: 850;
    line-height: 1;
    letter-spacing: -.01em;
    text-decoration: none;
    white-space: nowrap;
    transform: translateZ(0);
    transition: transform .42s cubic-bezier(.2, .75, .2, 1), background-color .42s cubic-bezier(.2, .75, .2, 1), box-shadow .42s cubic-bezier(.2, .75, .2, 1), border-color .42s cubic-bezier(.2, .75, .2, 1);
}

.eaw-fw-panel__button::before {
    content: '';
    position: absolute;
    top: -48%;
    bottom: -48%;
    left: -70%;
    width: 56%;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(110deg, rgba(255,255,255,0) 0%, rgba(255,255,255,.12) 38%, rgba(255,255,255,.42) 50%, rgba(255,255,255,.12) 62%, rgba(255,255,255,0) 100%);
    transform: translateX(-125%) skewX(-18deg);
    transition: transform .78s cubic-bezier(.2, .75, .2, 1);
}

.eaw-fw-panel__button::after {
    content: '';
    position: absolute;
    inset: 3px;
    z-index: 1;
    pointer-events: none;
    border-radius: inherit;
    border: 1px solid rgba(255,255,255,.14);
    background: radial-gradient(circle at 18% 20%, rgba(255,255,255,.18), rgba(255,255,255,0) 38%);
    opacity: .72;
    transition: opacity .42s cubic-bezier(.2, .75, .2, 1), transform .42s cubic-bezier(.2, .75, .2, 1);
}

.eaw-fw-panel__button > span {
    position: relative;
    z-index: 2;
}

.eaw-fw-panel__button-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    min-width: 34px;
    overflow: hidden;
    border-radius: 999px;
    color: var(--eaw-fw-primary);
    background: #fff;
    box-shadow: inset 0 0 0 1px rgba(21, 19, 92, .10), 0 8px 18px rgba(21, 19, 92, .10);
    transition: transform .42s cubic-bezier(.2, .75, .2, 1), background-color .42s cubic-bezier(.2, .75, .2, 1), color .42s cubic-bezier(.2, .75, .2, 1), box-shadow .42s cubic-bezier(.2, .75, .2, 1);
}

.eaw-fw-panel__button-icon svg {
    display: block;
    width: 17px;
    height: 17px;
    stroke: currentColor;
    stroke-width: 2.65;
    stroke-linecap: round;
    stroke-linejoin: round;
    fill: none;
}

.eaw-fw-panel:hover .eaw-fw-panel__image--main {
    transform: scale(1.07);
    filter: saturate(1.08) contrast(1.04);
}

.eaw-fw-panel:hover .eaw-fw-panel__content {
    transform: translateY(-8px);
    background-color: rgba(255, 255, 255, .97);
    box-shadow: 0 30px 68px rgba(21, 19, 92, .28);
}

.eaw-fw-panel:hover .eaw-fw-panel__thumb--one {
    transform: translateY(-5px);
}

.eaw-fw-panel:hover .eaw-fw-panel__thumb--two {
    transform: translateY(10px);
}

.eaw-fw-panel__button:hover {
    transform: translateY(-3px);
    background: var(--eaw-fw-primary) !important;
    border-color: rgba(255, 255, 255, .28);
    box-shadow: 0 20px 44px rgba(21, 19, 92, .34), 0 0 0 6px rgba(21, 19, 92, .08);
}

.eaw-fw-panel__button:hover::before {
    transform: translateX(420%) skewX(-18deg);
}

.eaw-fw-panel__button:hover::after {
    opacity: 1;
    transform: scale(.96);
}

.eaw-fw-panel__button:hover .eaw-fw-panel__button-icon {
    transform: translateX(5px) rotate(-8deg) scale(1.04);
    background: rgba(255,255,255,.98);
    box-shadow: inset 0 0 0 1px rgba(21, 19, 92, .16), 0 12px 24px rgba(0, 0, 0, .14);
}

.eaw-fw-panel__button:focus-visible {
    outline: 3px solid rgba(21, 19, 92, .25);
    outline-offset: 4px;
}

@media (max-width: 1180px) {
    .eaw-fw-panel__content {
        grid-template-columns: 1fr;
    }

    .eaw-fw-panel__button {
        grid-column: 1 / 2;
        grid-row: auto;
        justify-self: start;
    }
}

@media (max-width: 1024px) {
    .eaw-featured-work {
        padding: 82px 20px 88px;
    }

    .eaw-featured-work__grid {
        --eaw-fw-columns: 1;
        grid-template-columns: repeat(var(--eaw-fw-columns, 1), minmax(0, 1fr));
    }

    .eaw-fw-panel {
        min-height: 620px;
    }
}

@media (max-width: 767px) {
    .eaw-featured-work__grid {
        --eaw-fw-columns: 1;
    }

    .eaw-featured-work {
        padding: 64px 16px 70px;
    }

    .eaw-featured-work__header {
        margin-bottom: 30px;
    }

    .eaw-featured-work__eyebrow::before,
    .eaw-featured-work__eyebrow::after {
        width: 16px;
    }

    .eaw-featured-work__description {
        font-size: 14px;
        line-height: 1.7;
    }

    .eaw-fw-panel {
        min-height: 610px;
        border-radius: 30px;
    }

    .eaw-fw-panel::before {
        inset: 9px;
        border-radius: 22px;
    }

    .eaw-fw-panel__thumbs {
        top: 76px;
        right: 18px;
        grid-template-columns: repeat(2, 74px);
        gap: 8px;
    }

    .eaw-fw-panel__thumb {
        width: 74px;
        height: 58px;
        border-radius: 14px;
    }

    .eaw-fw-panel__badge {
        top: 18px;
        left: 18px;
        right: 18px;
        max-width: none;
    }

    .eaw-fw-panel__content {
        left: 16px;
        right: 16px;
        bottom: 16px;
        gap: 13px;
        padding: 20px;
        border-radius: 22px;
    }

    .eaw-fw-panel__label {
        margin-bottom: -2px;
        font-size: 10px;
    }

    .eaw-fw-panel__title {
        font-size: 29px;
    }

    .eaw-fw-panel__description {
        margin-top: -5px;
        font-size: 13px;
    }
}

/* Editor-safe empty/no-image states for repeatable Featured Work cards */
.eaw-fw-panel--no-image .eaw-fw-panel__media {
    background:
        radial-gradient(circle at 22% 20%, rgba(255,255,255,.16), rgba(255,255,255,0) 30%),
        linear-gradient(135deg, rgba(21,19,92,.96), rgba(21,19,92,.76));
}

.eaw-fw-panel__image-placeholder {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
    color: rgba(255,255,255,.78);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
    text-align: center;
}

.eaw-featured-work__empty {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 220px;
    padding: 30px;
    border: 1px dashed rgba(21, 19, 92, .24);
    border-radius: 24px;
    color: rgba(21, 19, 92, .68);
    background: rgba(255,255,255,.58);
    font-size: 15px;
    font-weight: 700;
    text-align: center;
}


/* v3.8 editor-safe repeatable card fixes */
.eaw-fw-panel__badge-icon svg {
    display: block;
    width: 16px;
    height: 16px;
    stroke: currentColor;
    stroke-width: 2.15;
    stroke-linecap: round;
    stroke-linejoin: round;
    fill: none;
}

.eaw-fw-panel__badge-icon svg path {
    fill: none;
    stroke: currentColor;
}

.eaw-fw-panel__badge-icon svg path[fill] {
    fill: none !important;
}

.elementor-editor-active .eaw-featured-work,
.elementor-editor-preview .eaw-featured-work {
    min-height: 420px;
}

.elementor-editor-active .eaw-featured-work__grid,
.elementor-editor-preview .eaw-featured-work__grid {
    min-height: 300px;
}

.elementor-editor-active .eaw-fw-panel,
.elementor-editor-preview .eaw-fw-panel {
    opacity: 1 !important;
    visibility: visible !important;
}
