/* ============================================
   Promo Box Widget - Base Styles
   ============================================ */

.unlockafe-promo-box-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
    min-height: 300px;
    background: transparent !important;
}

/* Badge */
.unlockafe-promo-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: #ef4444;
    color: #ffffff;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* Image Wrapper */
.unlockafe-promo-image-wrapper {
    flex-shrink: 0;
    overflow: hidden;
    position: relative;
}

.unlockafe-promo-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.unlockafe-promo-box-wrapper:hover .unlockafe-promo-image {
    transform: scale(1.1);
}

/* Background Image */
.unlockafe-promo-background-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 1;
    transition: transform 0.5s ease;
}

.unlockafe-promo-box-wrapper:hover .unlockafe-promo-background-image {
    transform: scale(1.1);
}

/* Content */
.unlockafe-promo-content {
    position: relative;
    z-index: 2;
    flex: 1;
    padding: 30px;
}

.unlockafe-promo-subtitle {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #667eea;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.unlockafe-promo-title {
    margin: 0 0 15px 0;
    font-size: 32px;
    font-weight: 700;
    color: #1f2937;
    line-height: 1.2;
}

.unlockafe-promo-description {
    margin: 0 0 20px 0;
    font-size: 16px;
    color: #6b7280;
    line-height: 1.6;
}

.unlockafe-promo-discount {
    display: inline-block;
    color: #ffffff;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.unlockafe-promo-button {
    display: inline-block;
    background: #667eea;
    color: #ffffff;
    padding: 14px 32px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.unlockafe-promo-button:hover {
    background: #5568d3;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

/* ============================================
   Layout 1 - Image Left
   ============================================ */

.unlockafe-promo-layout-1 {
    flex-direction: row;
}

.unlockafe-promo-layout-1 .unlockafe-promo-image-wrapper {
    width: 50%;
    max-width: 500px;
}

.unlockafe-promo-layout-1 .unlockafe-promo-content {
    padding-left: 40px;
}

/* Badge position for Layout 1 - on top of image (left side) */
.unlockafe-promo-layout-1 .unlockafe-promo-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    right: auto;
}

/* ============================================
   Layout 2 - Image Right
   ============================================ */

.unlockafe-promo-layout-2 {
    flex-direction: row-reverse;
}

.unlockafe-promo-layout-2 .unlockafe-promo-image-wrapper {
    width: 50%;
    max-width: 500px;
}

.unlockafe-promo-layout-2 .unlockafe-promo-content {
    padding-right: 40px;
}

/* Badge position for Layout 2 - on top of image (left side) */
.unlockafe-promo-layout-2 .unlockafe-promo-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    right: auto;
}

/* ============================================
   Layout 3 - Image Top
   ============================================ */

.unlockafe-promo-layout-3 {
    flex-direction: column;
}

.unlockafe-promo-layout-3 .unlockafe-promo-image-wrapper {
    width: 100%;
    height: 300px;
}

.unlockafe-promo-layout-3 .unlockafe-promo-content {
    width: 100%;
    padding: 30px;
}

/* Badge position for Layout 3 - on top of image */
.unlockafe-promo-layout-3 .unlockafe-promo-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    left: auto;
}

/* ============================================
   Layout 4 - Image Background
   ============================================ */

.unlockafe-promo-layout-4 {
    min-height: 400px;
    position: relative;
}

.unlockafe-promo-layout-4::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.unlockafe-promo-layout-4 .unlockafe-promo-content {
    color: #ffffff;
}

.unlockafe-promo-layout-4 .unlockafe-promo-title,
.unlockafe-promo-layout-4 .unlockafe-promo-description {
    color: #ffffff;
}

.unlockafe-promo-layout-4 .unlockafe-promo-subtitle {
    color: #ffffff;
    opacity: 0.9;
}

/* ============================================
   Layout 5 - Overlay Content
   ============================================ */

.unlockafe-promo-layout-5 {
    min-height: 500px;
    position: relative;
    align-items: flex-end;
}

.unlockafe-promo-layout-5::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0) 100%);
    z-index: 1;
}

.unlockafe-promo-layout-5 .unlockafe-promo-content {
    color: #ffffff;
    padding: 40px;
}

.unlockafe-promo-layout-5 .unlockafe-promo-title,
.unlockafe-promo-layout-5 .unlockafe-promo-description {
    color: #ffffff;
}

.unlockafe-promo-layout-5 .unlockafe-promo-subtitle {
    color: #ffffff;
    opacity: 0.9;
}

/* ============================================
   Layout 6 - Split Design
   ============================================ */

.unlockafe-promo-layout-6 {
    flex-direction: row;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
}

.unlockafe-promo-layout-6 .unlockafe-promo-image-wrapper {
    width: 50%;
    clip-path: polygon(0 0, 100% 0, 85% 100%, 0% 100%);
}

.unlockafe-promo-layout-6 .unlockafe-promo-content {
    color: #ffffff;
    padding: 50px;
}

.unlockafe-promo-layout-6 .unlockafe-promo-title,
.unlockafe-promo-layout-6 .unlockafe-promo-description {
    color: #ffffff;
}

.unlockafe-promo-layout-6 .unlockafe-promo-subtitle {
    color: rgba(255, 255, 255, 0.9);
}

.unlockafe-promo-layout-6 .unlockafe-promo-button {
    background: #ffffff;
    color: #667eea;
}

.unlockafe-promo-layout-6 .unlockafe-promo-button:hover {
    background: #f3f4f6;
}

/* Content Alignment */
.unlockafe-promo-align-left .unlockafe-promo-content {
    text-align: left;
}

.unlockafe-promo-align-center .unlockafe-promo-content {
    text-align: center;
}

.unlockafe-promo-align-right .unlockafe-promo-content {
    text-align: right;
}

/* ============================================
   Responsive Styles
   ============================================ */

@media (max-width: 1024px) {
    .unlockafe-promo-layout-1,
    .unlockafe-promo-layout-2,
    .unlockafe-promo-layout-6 {
        flex-direction: column;
    }

    .unlockafe-promo-layout-1 .unlockafe-promo-image-wrapper,
    .unlockafe-promo-layout-2 .unlockafe-promo-image-wrapper,
    .unlockafe-promo-layout-6 .unlockafe-promo-image-wrapper {
        width: 100%;
        max-width: 100%;
        height: 300px;
    }

    .unlockafe-promo-layout-1 .unlockafe-promo-content,
    .unlockafe-promo-layout-2 .unlockafe-promo-content {
        padding: 30px;
    }

    .unlockafe-promo-layout-6 .unlockafe-promo-image-wrapper {
        clip-path: none;
    }
}

@media (max-width: 768px) {
    .unlockafe-promo-box-wrapper {
        min-height: 250px;
    }

    .unlockafe-promo-content {
        padding: 25px;
    }

    .unlockafe-promo-title {
        font-size: 24px;
    }

    .unlockafe-promo-description {
        font-size: 14px;
    }

    .unlockafe-promo-discount {
        font-size: 20px;
        padding: 10px 20px;
    }

    .unlockafe-promo-button {
        padding: 12px 24px;
        font-size: 14px;
    }

    .unlockafe-promo-badge {
        top: 15px;
        right: 15px;
        padding: 6px 12px;
        font-size: 11px;
    }
}

@media (max-width: 480px) {
    .unlockafe-promo-content {
        padding: 20px;
    }

    .unlockafe-promo-title {
        font-size: 20px;
        margin-bottom: 10px;
    }

    .unlockafe-promo-description {
        font-size: 13px;
        margin-bottom: 15px;
    }

    .unlockafe-promo-discount {
        font-size: 18px;
        padding: 8px 16px;
        margin-bottom: 15px;
    }

    .unlockafe-promo-button {
        padding: 10px 20px;
        font-size: 13px;
    }

    .unlockafe-promo-layout-4,
    .unlockafe-promo-layout-5 {
        min-height: 350px;
    }
}

/* Remove gray background from Promo Box widget and its containers */
.elementor-widget-unlockafe-promo-box,
.elementor-widget-unlockafe-promo-box .elementor-widget-container,
.elementor-element.elementor-widget-unlockafe-promo-box {
    background: transparent !important;
    background-color: transparent !important;
}

/* Remove gray background from parent section containing promo box */
.elementor-section.unlockafe-promo-no-gray-bg,
.elementor-section:has(.elementor-widget-unlockafe-promo-box) {
    background: transparent !important;
    background-color: transparent !important;
}


