/* Offer Cards Image Base Layout */
.brxe-offer-cards-image {
    display: flex;
    justify-content: center;
    width: 100%;
    margin-top: 30px;
    margin-bottom: 60px;
}

.brxe-offer-cards-image .oci-container {
    max-width: var(--site-container-width, 1200px);
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0 auto;
    padding: 0 15px;
    box-sizing: border-box;
}

/* Section Heading (H2) */
.brxe-offer-cards-image .oci-section-heading {
    text-align: center;
    margin: 0 0 50px 0;
    color: var(--color-primary, #b8860b);
    font-family: var(--font-secondary, Georgia, serif);
    font-size: 2em;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.brxe-offer-cards-image .oci-grid {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    justify-content: center;
}

/* Card Outer Shell (Accessible Container) */
.brxe-offer-cards-image .oci-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 540px;
    border-radius: 35px;
    overflow: hidden;
    background-color: #1a1a1a;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    isolation: isolate;
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.brxe-offer-cards-image .oci-card:hover {
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.35);
}

/* Zoomable Background Layer */
.brxe-offer-cards-image .oci-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: var(--bg-image);
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    transform: scale(1);
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: -2;
    backface-visibility: hidden;
}

.brxe-offer-cards-image .oci-card:hover::before,
.brxe-offer-cards-image .oci-card:focus-within::before {
    transform: scale(1.08);
}

/* Darkening Gradient Overlay for High Legibility */
.brxe-offer-cards-image .oci-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg, 
        rgba(0, 0, 0, 0.65) 0%, 
        rgba(0, 0, 0, 0.45) 50%, 
        rgba(0, 0, 0, 0.75) 100%
    );
    z-index: -1;
    pointer-events: none;
}

/* Extra Large Diagonal Corner Ribbon */
.brxe-offer-cards-image .oci-ribbon {
    position: absolute;
    top: 48px;
    right: -70px;
    width: 290px;
    background: linear-gradient(135deg, #dfa938 0%, #b8860b 100%);
    color: #ffffff;
    text-align: center;
    transform: rotate(45deg);
    padding: 11px 0;
    font-weight: 800;
    text-transform: uppercase;
    font-size: 1.4rem;
    line-height: 1.25;
    letter-spacing: 0.05em;
    box-shadow: 0 5px 12px rgba(0, 0, 0, 0.4);
    z-index: 3;
    pointer-events: none;
}

/* Inner Card Structure */
.brxe-offer-cards-image .oci-card-body {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    padding: 40px 30px 35px 30px;
    box-sizing: border-box;
}

/* Card Sub Heading (H3) */
.brxe-offer-cards-image .oci-card-title {
    margin: 0 0 24px 0;
    color: #ffffff;
    font-family: var(--font-secondary, Georgia, serif);
    font-size: 1.6em;
    font-weight: 700;
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    max-width: 62%; /* Extra clearance for the wide ribbon */
}

/* Features WYSIWYG Container Styling */
.brxe-offer-cards-image .oci-features {
    position: relative;
    z-index: 5;
    color: #ffffff;
    line-height: 1.5;
    font-weight: 600;
    margin-bottom: 25px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
}

.brxe-offer-cards-image .oci-features ul,
.brxe-offer-cards-image .oci-features ol,
.brxe-offer-cards-image .oci-features p,
.brxe-offer-cards-image .oci-features li {
    font-size: 1em !important;
}

.brxe-offer-cards-image .oci-features ul {
    list-style: disc;
    margin: 0;
    padding-left: 20px;
}

.brxe-offer-cards-image .oci-features ol {
    list-style: decimal;
    margin: 0;
    padding-left: 20px;
}

.brxe-offer-cards-image .oci-features li {
    margin-bottom: 14px;
}

.brxe-offer-cards-image .oci-features li:last-child {
    margin-bottom: 0;
}

.brxe-offer-cards-image .oci-features p {
    margin: 0 0 14px 0;
    color: #ffffff;
}

/* Gold CTA Button Element */
.brxe-offer-cards-image .oci-card-footer {
    display: flex;
    justify-content: center;
    margin-top: 15px;
}

.brxe-offer-cards-image .oci-btn {
    display: inline-block;
    position: relative;
    background: #d89f36;
    color: #ffffff;
    padding: 13px 32px;
    border-radius: 50px;
    text-decoration: none;
    font-size: 0.85em;
    text-transform: uppercase;
    transition: opacity 0.3s ease, transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    cursor: pointer;
}

/* Stretched Link: Makes entire card clickable via button anchor */
.brxe-offer-cards-image a.oci-btn::after {
    content: "";
    position: absolute;
    inset: 0;
    margin: -1000px;
    clip-path: inset(1000px 1000px 1000px 1000px round 35px);
    z-index: 4;
}

/* Trigger button hover styling when hovering anywhere on the card */
.brxe-offer-cards-image .oci-card:hover .oci-btn,
.brxe-offer-cards-image .oci-card:focus-within .oci-btn {
    opacity: 0.9;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35);
}

/* Mobile & Tablet Responsiveness */
@media (max-width: 768px) {
    .brxe-offer-cards-image {
        margin-bottom: 40px;
    }

    .brxe-offer-cards-image .oci-section-heading {
        font-size: 1.6em;
        margin-bottom: 30px;
    }

    .brxe-offer-cards-image .oci-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .brxe-offer-cards-image .oci-card {
        min-height: auto;
        border-radius: 20px;
    }

    .brxe-offer-cards-image a.oci-btn::after {
        clip-path: inset(1000px 1000px 1000px 1000px round 20px);
    }

    .brxe-offer-cards-image .oci-card-body {
        padding: 30px 20px 25px 20px;
    }

    .brxe-offer-cards-image .oci-card-title {
        font-size: 1.4em;
        max-width: 60%;
    }

    .brxe-offer-cards-image .oci-ribbon {
        font-size: 1.05rem;
        top: 40px;
        right: -60px;
        width: 250px;
        padding: 8px 0;
    }
}