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

 .bs-box {
    margin: 0 10px 10px 10px;
}

/* Box 3 Base Styles */
.bs-box.bs-box-3 {
    position: relative;
    display: flex;
    text-decoration: none;
    transition: all 0.3s ease;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: inherit;
    align-items: end;
    min-height: 250px;
    height: 100%;
}

.bs-box.bs-box-3:hover {
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    color: inherit;
}

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

.box-content {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    background: transparent;
}

.box-image {
    position: relative;
    display: block;
    width: 100%;
    height: 66.67%;
    border-radius: 5px 5px 0 0;
    overflow: hidden;
}

.box-text {
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    background: #ffffff;
    border-radius: 0 0 5px 5px;
    margin-top: auto;
    min-height: 33.33%;
    
}

/* Text Alignment */
.box-text-left .box-text {
    text-align: left;
}

.box-text-center .box-text {
    text-align: center;
}

.box-text-right .box-text {
    text-align: right;
}

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

.box-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-title {
    font-size: 1.5rem;
}

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

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

.text-scheme-dark .box-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-image {
        height: 66.67%;
    }
    
    .box-text {
        padding: 15px;
        min-height: 33.33%;
    }
}

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