/* Offer Image Text Element */
.offer-image-text.oit-wrapper {
    max-width: var(--site-container-width, 1200px);
    margin: 60px auto;
    padding: 0 0px;
    box-sizing: border-box;
}

/* Section Pre-heading Header */
.offer-image-text .oit-header {
    margin-bottom: 25px;
    width: 100%;
}

/* Top Section Title Alignment Controls */
.offer-image-text .oit-header.oit-align-center .oit-section-title {
    text-align: center;
}
.offer-image-text .oit-header.oit-align-left .oit-section-title {
    text-align: left;
}
.offer-image-text .oit-header.oit-align-right .oit-section-title {
    text-align: right;
}

/* Top Section Title Base Styling */
.offer-image-text .oit-section-title {
    margin-bottom: 40px;
    color: var(--color-primary);
    font-family: var(--font-secondary);
    text-transform: uppercase;
    font-size: 2em;
}

/* Card Shell */
.offer-image-text .oit-card {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    width: 100%;
    min-height: 480px;
    border-radius: 40px;
    overflow: hidden;
    background-color: var(--color-quaternary, #eeddbb); /* Warm sand/cream background */
}

/* Column Base */
.offer-image-text .oit-col {
    flex: 1 1 50%;
    width: 50%;
    box-sizing: border-box;
}

/* =========================================================
   DESKTOP COLUMN POSITIONING (Pure CSS Order)
   ========================================================= */

/* Content Left | Image Right */
.offer-image-text.layout-content-left .oit-text-col {
    order: 1;
}
.offer-image-text.layout-content-left .oit-image-col {
    order: 2;
}

/* Image Left | Content Right */
.offer-image-text.layout-image-left .oit-image-col {
    order: 1;
}
.offer-image-text.layout-image-left .oit-text-col {
    order: 2;
}

/* Content Column */
.offer-image-text .oit-text-col {
    display: flex;
    flex-direction: column;
    padding: 50px 45px 40px;
}

.offer-image-text .oit-text-inner {
    display: flex;
    flex-direction: column;
    height: 100%;
    justify-content: space-between;
}

/* Standard Mode: Group Heading & Body at Top */
.offer-image-text .oit-content-top {
    display: flex;
    flex-direction: column;
}

.offer-image-text .oit-heading {
    font-family: var(--font-secondary, 'Georgia', serif);
    font-size: 1.6em;
    color: #000;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    line-height: 1.35;
    margin: 0 0 18px 0;
}

/* WYSIWYG Body Text */
.offer-image-text .oit-description {
    font-family: var(--font-secondary);
    font-size: 1em !important;
    color: var(--color-secondary, #333333);
    line-height: 1.65;
    letter-spacing: normal;
    text-transform: none; /* Preserves natural sentence casing */
    margin: 0;
}

.offer-image-text .oit-description p {
    margin: 0 0 12px 0;
}

.offer-image-text .oit-description p:last-child {
    margin-bottom: 0;
}

/* Standard Mode: Bottom Centered Buttons */
.offer-image-text .oit-buttons-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: center;
    justify-content: center; /* Centrally aligned buttons */
    margin-top: 35px;
    width: 100%;
}

/* --- REPEATER MODE (Headlines + Buttons Stack) --- */
.offer-image-text .oit-repeater-stack {
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    height: 100%;
    gap: 25px;
}

.offer-image-text .oit-repeater-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

/* Matches .oit-heading style rules */
.offer-image-text .oit-item-heading {
    font-family: var(--font-secondary, 'Georgia', serif);
    font-size: 1.6em;
    color: #000;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    line-height: 1.35;
    margin: 0 0 14px 0;
}

.offer-image-text .oit-item-button-wrapper {
    margin-top: 0;
}

/* Buttons (Shared across Standard and Repeater modes) */
.offer-image-text .oit-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: var(--color-gold, #c89635);
    color: #ffffff !important;
    font-family: var(--font-secondary, 'Georgia', serif);
    font-size: 0.85em;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-decoration: none !important;
    border: none !important;
    border-bottom: none !important;
    box-shadow: none !important;
    border-radius: 30px;
    padding: 12px 32px;
    cursor: pointer;
    transition: background-color 0.25s ease, transform 0.2s ease;
}

.offer-image-text .oit-button:hover {
        opacity: 0.9 !important;
    color: #ffffff !important;
    text-decoration: none !important;
}

/* Image Side */
.offer-image-text .oit-image-col {
    position: relative;
    overflow: hidden;
}

.offer-image-text .oit-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.offer-image-text .oit-placeholder {
    width: 100%;
    height: 100%;
    min-height: 350px;
    background: #e5e5e5;
    color: #888;
    display: flex;
    align-items: center;
    justify-content: center;
    font-style: italic;
}

/* =========================================================
   SALE BANNER STRIPE (Larger Text & Thicker Tape)
   ========================================================= */
.offer-image-text .oit-ribbon-badge {
    position: absolute;
    width: 520px;
    height: 42px;
    background-color: var(--color-gold, #c89635);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
    z-index: 10;
    pointer-events: none;
    display: flex;
    align-items: center;
    /* --- Replace space-around with center + gap --- */
    justify-content: center;
    gap: 20px; /* Adjust this value to bring them closer or further apart */
    padding: 0 15px;
    box-sizing: border-box;
}

.offer-image-text .oit-ribbon-text {
    font-family: Arial, Helvetica, sans-serif !important;
    font-size: 1.15rem;
    font-weight: 900;
    color: #111111;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    line-height: 1;
    white-space: nowrap;
}

/* Top-Left orientation when image is on the left */
.offer-image-text.layout-image-left .oit-ribbon-badge {
    top: 55px;
    left: -140px;
    transform: rotate(-45deg);
}

/* Top-Right orientation when image is on the right */
.offer-image-text.layout-content-left .oit-ribbon-badge {
    top: 55px;
    right: -140px;
    transform: rotate(45deg);
}

/* Responsive / Mobile */
@media screen and (max-width: 900px) {
    .offer-image-text .oit-card {
        flex-direction: column !important;
        border-radius: 20px;
    }

    .offer-image-text .oit-col {
        width: 100%;
        flex: 1 1 100%;
    }

    .offer-image-text .oit-image-col {
        order: 1 !important;
        min-height: 280px;
        max-height: 400px;
    }

    .offer-image-text .oit-section-title {
        font-size: 2.5rem;
    }

    .oit-item-heading {
        font-size: 2rem !important;   
    }

    .oit-heading {
        font-size: 2rem !important;  
    }

    /* On mobile, standard top-left angled banner */
    .offer-image-text .oit-ribbon-badge {
        top: 42px !important;
        left: -150px !important;
        right: auto !important;
        transform: rotate(-45deg) !important;
        height: 36px;
        width: 460px;
    }

    .offer-image-text .oit-ribbon-text {
        font-size: 0.95rem;
    }

    .offer-image-text .oit-text-col {
        order: 2 !important;
        padding-left: 25px;
        padding-right: 25px;
        padding-top: 0px;
        padding-bottom: 35px;
    }

    .offer-image-text .oit-buttons-wrapper {
        justify-content: center;
        margin-top: 25px;
    }

    .offer-image-text .oit-repeater-stack {
        gap: 20px;
    }
}

@media screen and (max-width: 480px) {
    .offer-image-text.oit-wrapper {
        padding: 0 15px;
        margin: 35px auto;
    }

    .offer-image-text .oit-buttons-wrapper {
        flex-direction: column;
        width: 100%;
    }

    .offer-image-text .oit-button {
        width: 100%;
        text-align: center;
    }
}