/**
 * Pixel Promo Boxes - Frontend Styles
 */

.pixel-promoboxes {
    margin: 32px 0 16px 0;
    
   
 
}
.pixel-promoboxes .row{
    --bs-gutter-x:8.5px;
    --bs-gutter-y:8.5px;
}
.pixel-promoboxes .container{
   margin-top:calc(-16px - 8.5px);

}
/* .pixel-promobox-item {
    /* margin-bottom: 10px; */
/* }  */

.pixel-promobox {
    position: relative;
    /* aspect-ratio: 16 / 9; */
    aspect-ratio: 4 / 2.1;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pixel-promobox-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.pixel-promobox-content {
    padding: 30px;
    text-align: center;
    position: relative;
    z-index: 2;
    opacity:0;
    transition: opacity 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.pixel-promobox-title {
    color: #fff;
    margin-bottom: 20px;
    font-style: normal;
    font-weight: 700;
    font-size: 18px;
    line-height: 24px;
    display: flex;
    align-items: center;
    text-transform: uppercase;
}

.pixel-promobox-headline {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    /* gap: 0.35em; */
    margin-bottom: 16px;
    font-weight: 700;
    font-style: italic;
    /* text-transform: uppercase; */
    font-size: clamp(14px, 2.5vw, 20px);
    line-height: 1.2;
    text-align: center;
    transform: skewY(-2deg);
}

.pixel-promobox-headline--footer {
    margin-bottom: 0;
    font-size: clamp(13px, 2vw, 16px);
}

.pixel-promobox-line1 {
    display: block;
    text-transform: uppercase;
    font-size: 28px;
}

.pixel-promobox-line2-row {
    display: flex;
    justify-content: center;
    width: 100%;
}

.pixel-promobox-line2-skew {
    display: inline-block;
    padding: 0.12em 0.5em;
    transform: skewX(-10deg);
}

.pixel-promobox-line2-text {
    display: inline-block;
    transform: skewX(10deg);
}

.pixel-promobox-button-link.overlay{
    position: absolute;
    top: 0;
    left: 0;


    z-index: 3;

    width: 100%;
    height: 100%;
}
.pixel-promobox-button {
    background-color: rgba(255, 255, 255, 0.0);
    border:1px solid white;
    color: white;
    padding: 12px 30px;
    border-radius: 25px;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    position: relative;
    z-index: 3;
}


/* Overlay for better text readability */
.pixel-promobox::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(44, 44, 44, 0.55);
    z-index: 1;
    transition: background 0.3s ease;
    opacity: 0;

}


.pixel-promobox-footer{
    position: absolute;
    bottom: 0;
    left: 0;
    padding: 0 30px 30px 30px;
    color: white;
    text-align: left;
    font-size: 16px;
    font-weight: bold;
    z-index: 1;
    transition: opacity 0.3s ease, transform 0.1s ease;
    display:none;
}

.pixel-promobox-footer .pixel-promobox-title {

    margin-bottom: 0;
}

@media (hover: hover) {
    .pixel-promobox:hover:before,
    .pixel-promobox:hover .pixel-promobox-content {
        opacity:1;
    }
    .pixel-promobox-button:hover {
        background-color: rgba(255, 255, 255, 1);
    
        color: var(--pixel-black);
    }
    
    .pixel-promobox:hover::before {
        background: rgba(var(--pixel-green-dark-rgb), 0.85);
    }
    .pixel-promobox:hover .pixel-promobox-footer {
        opacity: 0;
        transform: translateY(100%);
    
    }
}

@media (max-width: 1199px) {
    .pixel-promobox-button.btn{
        padding:12px 20px!important
    }
}

@media screen and (max-width: 768px) {
    .pixel-promobox-headline {
        font-size: clamp(12px, 3.5vw, 16px);
    }
    .pixel-promobox-title {
        font-size: 15px;
        line-height: 20px;
        text-transform: inherit;
        font-weight: 500;
    }
    .pixel-promobox-content{
        padding: 0.625rem;
    }
    .pixel-promobox-footer{
        padding: 0.325rem 0.625rem 0.325rem 0.625rem;
        background-color: rgba(var(--pixel-green-dark-rgb), 0.65);
        width: 100%;
        justify-content: center;
        align-items: center;
        min-height: 50px;
    }
}