/**
 * Box 2 Component Styles
 * 
 * @package JNews-PE
 * @since 1.0.0
 */

/* Box 2 Base Styles */
.bs-shortcode.bs-box.bs-box-2 {
    position: relative;
    display: block;
    transition: all 0.3s ease;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    min-height: 250px;
    height: 300px;
}

.bs-shortcode.bs-box.bs-box-2:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.bs-box-2-inner {
    position: relative;
    overflow: hidden;
    width: 100%;
    height: 100%;
}

.box-2-content {
    position: relative;
    display: block;
    height: 100%;
    background: transparent;
}

.bs-box .box-2-image {
    background-repeat: no-repeat !important;
    background-position: center center !important;
    -webkit-background-size: cover !important;
    -moz-background-size: cover!important;
    -o-background-size: cover!important;
    background-size: cover !important;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    display: block;
    text-decoration: none;
    -webkit-transition: all .5s;
    -moz-transition: all .5s;
    -o-transition: all .5s;
    transition: all .5s;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

.bs-box-2 .box-2-image:after {
    border: 1px solid #fff;
    content: "";
    position: absolute;
    -webkit-transition: all .3s ease-in-out 0s;
    -moz-transition: all .3s ease-in-out 0s;
    transition: all .3s ease-in-out 0s;
    bottom: 15px;
    left: 15px;
    opacity: 1;
    right: 15px;
    top: 15px;
}

.box-2-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #ffffff;
    padding: 20px 0px;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
    min-width: 200px;
    z-index: 2;
    width: 90%;
}

.bs-box-2 .box-text {
    position: absolute;
    top: 50%;
    pointer-events: none;
    transform: translateY(-50%);
    left: 0;
    right: 0;
    -webkit-backface-visibility: hidden;
    text-align: center;
}

/* Title Styles */
.box-2-title {
    margin: 0 0 10px 0;
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1.3;
}

.box-2-sub-title {
    font-size: 0.9rem;
    line-height: 1.4;
    opacity: 0.8;
    margin: 0 0 0.25em !important;
}

/* Heading Style Variants */
.heading-style-large .box-2-title {
    font-size: 1.5rem;
}

.heading-style-small .box-2-title {
    font-size: 1rem;
}

/* Text Color Schemes */
.text-scheme-light .box-2-text {
    color: #ffffff;
}

.text-scheme-dark .box-2-text {
    color: #333333;
}

/* Responsive Visibility Classes */
@media (max-width: 1024px) {
    .hide-desktop {
        display: none !important;
    }
}

@media (max-width: 768px) {
    .hide-tablet {
        display: none !important;
    }
    
    .box-2-image {
        height: 150px;
    }
    
    .box-2-text {
        padding: 15px 20px;
        max-width: 90%;
        min-width: 150px;
    }
}

@media (max-width: 480px) {
    .hide-phone {
        display: none !important;
    }
    
    .box-2-image {
        height: 120px;
    }
    
    .box-2-text {
        padding: 12px;
    }
    
    .box-2-title {
        font-size: 1.1rem;
    }
    
    .box-2-sub-title {
        font-size: 0.85rem;
    }
}
