/* ============================================================
   Elementor Promo Banner — promo-banner.css  v1.2
   Diagonal teal panel + accent edge + wavy pattern
   ============================================================ */

/* ── Card wrapper ── */
.epb-card {
    --epb-top: 14%;   /* diagonal start at top    */
    --epb-bot: 4%;    /* diagonal end at bottom   */

    position: relative;
    display: flex;
    align-items: stretch;
    background-color: #e8eef1;
    border-radius: 14px;
    overflow: hidden;
    min-height: 230px;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.10);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.epb-card:hover {
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.14);
    transform: translateY(-2px);
}

/* ============================================================
   Background layers — TWO stacked diagonals
   .epb-bg-edge  → darker teal (sits behind, offset left)
   .epb-bg-main  → main teal with wavy pattern
============================================================ */
.epb-bg-edge,
.epb-bg-main {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 70%;
    pointer-events: none;
    /* Linear diagonal cut. Top-left starts at var(--epb-top),
       bottom-left ends at var(--epb-bot). */
    clip-path: polygon(
        var(--epb-top) 0,
        100% 0,
        100% 100%,
        var(--epb-bot) 100%
    );
}

/* Darker accent edge — offset to the LEFT to peek out beyond
   the main panel along the diagonal */
.epb-bg-edge {
    background-color: #1d8ea0;
    transform: translateX(-6px);
    z-index: 1;
}

/* Main teal panel */
.epb-bg-main {
    background-color: #2bbcd4;
    z-index: 2;
}

/* Subtle wavy line pattern — only on .epb-has-pattern */
.epb-has-pattern .epb-bg-main {
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 600 400' preserveAspectRatio='none'><g fill='none' stroke='%23ffffff' stroke-opacity='0.18' stroke-width='1.5'><path d='M -50,420 Q 200,300 650,360'/><path d='M -50,360 Q 200,240 650,300'/><path d='M -50,300 Q 200,180 650,240'/><path d='M -50,240 Q 200,120 650,180'/><path d='M -50,180 Q 200,60 650,120'/><path d='M -50,120 Q 200,0 650,60'/><path d='M -50,60 Q 200,-60 650,0'/><path d='M -50,0 Q 200,-120 650,-60'/></g></svg>");
    background-size: cover;
    background-position: center right;
    background-repeat: no-repeat;
}

/* ── Badge ── */
.epb-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 20;
    background-color: #e8284a;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
    padding: 6px 10px;
    border-radius: 7px;
    letter-spacing: 0.3px;
    box-shadow: 0 2px 8px rgba(232, 40, 74, 0.40);
}

/* ── Image column — perfectly centered ── */
.epb-image-wrap {
    flex: 0 0 38%;
    max-width: 38%;
    position: relative;
    z-index: 3;
    display: flex;
    align-items: center;        /* vertical center  */
    justify-content: center;    /* horizontal center */
    padding: 18px;
}

.epb-product-img {
    display: block;
    width: 170px;
    max-width: 170px;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.20));
    transition: transform 0.4s ease;
}

.epb-card:hover .epb-product-img {
    transform: scale(1.04);
}

/* ── Content column ── */
.epb-content {
    flex: 1 1 auto;
    position: relative;
    z-index: 3;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
    padding: 24px 20px 24px 25px;
}

/* ── Title ── */
.epb-title {
    color: #ffffff;
    font-size: 24px;
    font-weight: 800;
    line-height: 1.22;
    margin: 0 0 6px !important;
    padding: 0 !important;
}

/* ── Description ── */
.epb-desc {
    color: #e4f5f8;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.55;
    margin: 0 0 10px !important;
    padding: 0 !important;
}

/* ── CTA button ── */
.epb-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #ffffff;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none !important;
    letter-spacing: 0.2px;
    align-self: flex-end;
    transition: color 0.25s ease, gap 0.25s ease;
}

.epb-btn:hover {
    color: #ffe082;
    gap: 12px;
    text-decoration: none !important;
}

.epb-arrow {
    display: inline-block;
    font-size: 18px;
    line-height: 1;
    transition: transform 0.25s ease;
}

.epb-btn:hover .epb-arrow {
    transform: translateX(5px);
}

/* ============================================================
   RESPONSIVE
============================================================ */

/* Tablet ≤ 768px */
@media (max-width: 768px) {
    .epb-card {
        min-height: 200px;
        --epb-top: 12%;
        --epb-bot: 4%;
    }

    .epb-product-img {
        width: 140px;
        max-width: 140px;
    }

    .epb-title { font-size: 20px !important; }
    .epb-desc  { font-size: 13px !important; }

    .epb-content { padding: 18px 18px 18px 8px; }
}

/* Mobile ≤ 560px — stack vertically */
@media (max-width: 560px) {
    .epb-card {
        flex-direction: column;
        min-height: unset;
    }

    /* Switch the diagonal to a horizontal split */
    .epb-bg-edge,
    .epb-bg-main {
        width: 100%;
        top: auto;
        bottom: 0;
        height: 60%;
        clip-path: polygon(0 14%, 100% 4%, 100% 100%, 0 100%);
    }

    .epb-bg-edge {
        transform: translateY(-5px);
    }

    .epb-badge {
        top: 10px;
        left: 10px;
        font-size: 12px;
        padding: 5px 9px;
    }

    .epb-image-wrap {
        flex: 0 0 auto;
        max-width: 100%;
        width: 100%;
        padding: 36px 20px 0;
    }

    .epb-product-img {
        width: 130px;
        max-width: 130px;
    }

    .epb-content {
        flex: 0 0 auto;
        width: 100%;
        align-items: center;
        text-align: center;
        padding: 20px 22px 24px;
    }

    .epb-btn { align-self: center; }
    .epb-title { font-size: 19px !important; }
    .epb-desc  { font-size: 13px !important; }
}

/* Extra-small ≤ 360px */
@media (max-width: 360px) {
    .epb-title { font-size: 17px !important; }
    .epb-desc  { font-size: 12px !important; }
    .epb-product-img { width: 110px; max-width: 110px; }
}
