/* ============================================================
   Offer Banner Component  –  Web Banner Style
   Two-tone diagonal split (dark left / blue right) with
   decorative circles and dot-grid patterns.
   ============================================================ */

/* ── Outer shell ─────────────────────────────────────────── */
.offer-banner {
    position: relative;
    z-index: 999;
    overflow: hidden;
    background: #2878EB;
    /* blue – visible on the right */
    box-shadow: 0 4px 20px rgba(18, 15, 45, 0.35);
    min-height: 168px;
    display: flex;
    align-items: stretch;
}

/* Dark left panel (diagonal right edge via clip-path) */
.offer-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    width: 68%;
    background: #120F2D;
    clip-path: polygon(0 0, 100% 0, 88% 100%, 0 100%);
    z-index: 0;
}

/* Subtle shimmer on the dark panel */
.offer-banner::after {
    content: '';
    position: absolute;
    top: 0;
    left: -120px;
    width: 80px;
    height: 100%;
    background: linear-gradient(90deg,
            transparent,
            rgba(255, 255, 255, 0.06),
            transparent);
    animation: ob-shimmer 4s ease-in-out infinite;
    z-index: 1;
    pointer-events: none;
}

@keyframes ob-shimmer {
    0% {
        left: -120px;
    }

    100% {
        left: 110%;
    }
}

/* ── Dot-grid decorations ────────────────────────────────── */
.offer-dot-grid {
    position: absolute;
    z-index: 1;
    pointer-events: none;
    background-image: radial-gradient(circle, rgba(255, 255, 255, 0.22) 1.5px, transparent 1.5px);
    background-size: 14px 14px;
    width: 90px;
    height: 90px;
}

.offer-dot-tl {
    top: 10px;
    left: 12px;
}

.offer-dot-br {
    bottom: 10px;
    right: 14px;
    opacity: 0.8;
}

/* ── Decorative concentric circles (right side) ─────────── */
.offer-deco-circle {
    position: absolute;
    border-radius: 50%;
    z-index: 1;
    pointer-events: none;
}

.offer-deco-c1 {
    width: 220px;
    height: 220px;
    right: -40px;
    top: 50%;
    transform: translateY(-50%);
    border: 2.5px solid rgba(255, 255, 255, 0.18);
}

.offer-deco-c2 {
    width: 160px;
    height: 160px;
    right: -10px;
    top: 50%;
    transform: translateY(-50%);
    border: 2.5px solid rgba(255, 255, 255, 0.25);
}

.offer-deco-c3 {
    width: 90px;
    height: 90px;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.08);
    border: 2px solid rgba(255, 255, 255, 0.30);
}

/* ── Three-column layout ─────────────────────────────────── */
.offer-layout {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 20px 28px;
    gap: 0;
}

.offer-col {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* LEFT – circle + title */
.offer-col-left {
    flex: 0 0 58%;
    flex-direction: row;
    align-items: center;
    gap: 22px;
    padding-right: 28px;
}

/* RIGHT – prices + CTA */
.offer-col-right {
    flex: 1;
    padding: 0 0 0 24px;
    border-left: 1px solid rgba(255, 255, 255, 0.15);
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 20px;
}

/* ── LEFT column content ─────────────────────────────────── */

/* 50% OFF circle */
.offer-discount-circle {
    flex-shrink: 0;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 30%, #FFE566, #FF6B1A 55%, #E8390E);
    border: 4px solid rgba(255, 229, 102, 0.55);
    box-shadow:
        0 0 0 3px rgba(232, 57, 14, 0.25),
        0 0 30px rgba(255, 107, 26, 0.75),
        0 0 60px rgba(255, 107, 26, 0.35),
        inset 0 2px 10px rgba(255, 255, 255, 0.28);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1px;
    animation: offer-circle-pulse 2.5s ease-in-out infinite;
}

@keyframes offer-circle-pulse {

    0%,
    100% {
        box-shadow:
            0 0 0 3px rgba(232, 57, 14, 0.25),
            0 0 30px rgba(255, 107, 26, 0.75),
            0 0 60px rgba(255, 107, 26, 0.35),
            inset 0 2px 10px rgba(255, 255, 255, 0.28);
    }

    50% {
        box-shadow:
            0 0 0 5px rgba(232, 57, 14, 0.45),
            0 0 45px rgba(255, 107, 26, 1),
            0 0 90px rgba(255, 107, 26, 0.55),
            inset 0 2px 10px rgba(255, 255, 255, 0.28);
    }
}

.offer-disc-pct {
    font-family: 'Jost', sans-serif;
    font-weight: 700;
    font-size: 2.1rem;
    color: #fff;
    line-height: 1;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.45);
}

.offer-disc-off {
    font-family: 'Jost', sans-serif;
    font-weight: 700;
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.92);
    letter-spacing: 3px;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
    line-height: 1;
}

/* Title wrap */
.offer-title-wrap {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.offer-title {
    font-family: 'Jost', sans-serif;
    font-weight: 700;
    font-size: 1.25rem;
    color: #fff;
    line-height: 1.2;
}

.offer-subtext {
    font-family: 'Open Sans', sans-serif;
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.4;
}

.offer-subtext strong {
    color: #fff;
}

/* ── CENTER column content ───────────────────────────────── */
.offer-prices {
    display: flex;
    flex-direction: column;
    gap: 5px;
    width: 100%;
}

.offer-price-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 4px 8px;
    background: rgba(255, 255, 255, 0.07);
    border-radius: 6px;
    border-left: 3px solid rgba(40, 120, 235, 0.7);
}

.offer-price-label {
    font-family: 'Jost', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    white-space: nowrap;
}

.offer-price-nums {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.offer-price-value {
    font-family: 'Jost', sans-serif;
    font-weight: 700;
    font-size: 1.2rem;
    color: #fff;
    white-space: nowrap;
}

.offer-price-original {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.5);
    text-decoration: line-through;
    white-space: nowrap;
}

/* CTA button */
.offer-cta-btn {
    display: inline-block;
    font-family: 'Jost', sans-serif;
    font-weight: 700;
    font-size: 0.85rem;
    color: #120F2D;
    background: #fff;
    border: 2.5px solid #fff;
    padding: 7px 24px;
    border-radius: 30px;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.2s ease, color 0.2s ease;
    letter-spacing: 0.3px;
    align-self: flex-start;
}

.offer-cta-btn:hover {
    background: transparent;
    color: #fff;
    text-decoration: none;
}

/* ── Close button ────────────────────────────────────────── */
.offer-banner-close {
    position: absolute;
    top: 10px;
    right: 14px;
    z-index: 10;
    background: rgba(255, 255, 255, 0.12);
    border: 1.5px solid rgba(255, 255, 255, 0.25);
    color: rgba(255, 255, 255, 0.8);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    line-height: 1;
    transition: background 0.2s ease, color 0.2s ease;
}

.offer-banner-close:hover {
    background: rgba(241, 77, 93, 0.8);
    border-color: transparent;
    color: #fff;
}

/* ========================================
   RESPONSIVE DESIGN - MEDIA QUERIES
   ======================================== */

/* Tablet (992px and below) */
@media (max-width: 992px) {

    .offer-deco-c1,
    .offer-deco-c2,
    .offer-deco-c3 {
        display: none;
    }

    .offer-col-left {
        flex: 0 0 56%;
        gap: 16px;
    }

    .offer-col-right {
        flex: 1;
        flex-direction: column;
        align-items: flex-start;
        padding-left: 20px;
        gap: 10px;
    }

    .offer-banner::before {
        width: 62%;
        clip-path: polygon(0 0, 100% 0, 86% 100%, 0 100%);
    }

    .offer-discount-circle {
        width: 94px;
        height: 94px;
    }

    .offer-disc-pct {
        font-size: 1.75rem;
    }

    .offer-title {
        font-size: 1.05rem;
    }

    .offer-layout {
        padding: 16px 20px;
    }
}

/* Mobile (767.98px and below) */
@media (max-width: 767.98px) {
    .offer-banner {
        min-height: unset;
    }

    .offer-banner::before {
        width: 100%;
        clip-path: none;
    }

    .offer-layout {
        flex-direction: column;
        align-items: flex-start;
        padding: 16px 16px 20px;
        gap: 14px;
    }

    .offer-col-left {
        flex: unset;
        width: 100%;
        padding: 0;
        flex-direction: row;
        align-items: center;
        gap: 14px;
    }

    .offer-col-right {
        flex: unset;
        width: 100%;
        padding: 0;
        border: none;
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
    }

    .offer-dot-tl,
    .offer-dot-br {
        display: none;
    }

    .offer-discount-circle {
        width: 80px;
        height: 80px;
        flex-shrink: 0;
    }

    .offer-disc-pct {
        font-size: 1.5rem;
    }

    .offer-disc-off {
        font-size: 0.68rem;
        letter-spacing: 2px;
    }

    .offer-title {
        font-size: 1rem;
    }

    .offer-banner-close {
        top: 8px;
        right: 10px;
    }

    .offer-cta-btn {
        width: 100%;
        text-align: center;
    }
}