/**
 * Pixel Home Boxes - Frontend Styles
 */

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

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

.pixel-homebox {
    position: relative;
    aspect-ratio: 1 / 1;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.pixel-homebox-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-homebox-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-homebox-button {
    background-color: rgba(255, 255, 255, 0.0);
    border:1px solid white;
    color: white;
    font-size: 14px;
    padding:8px 24px;
    border-radius: 25px;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    border:1px solid white;
        background: var(--pixel-green);
       
   
}


/* Overlay for better text readability */
.pixel-homebox::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;

}


.pixel-homebox-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;
}

.pixel-homebox-footer .pixel-homebox-title {

    margin-bottom: 0;
}

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

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

@media screen and (max-width: 768px) {
    .pixel-homebox-title {
        font-size: 15px;
        line-height: 20px;
        text-transform: inherit;
        text-align: center;
        font-weight: 500;
    }
    .pixel-homebox-content{
        padding: 0.625rem;
    }
    .pixel-homebox-footer{
        padding: 0.325rem 0.625rem 0.325rem 0.625rem;
        background-color: rgba(20, 75, 43, 0.65);
        width: 100%;
        justify-content: center;
        align-items: center;
        display: flex;
        min-height: 50px;
    }
}