/**
 * Hero News Grid Block - Frontend Styles
 * Using specific selectors to avoid conflicts with theme styles
 */

.wp-block-zoxpress-hero-news-grid.zox-hero-news-grid {
    padding: 40px 0;
    background: transparent;
    clear: both;
}

.wp-block-zoxpress-hero-news-grid .zox-body-width {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 30px;
}

.wp-block-zoxpress-hero-news-grid .zox-hero-grid-container {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    gap: 30px;
    -webkit-box-align: stretch;
    -ms-flex-align: stretch;
    align-items: stretch;
}

/* Main News (Left Side) */
.wp-block-zoxpress-hero-news-grid .zox-hero-main-news {
    -webkit-box-flex: 2;
    -ms-flex: 2;
    flex: 2;
    position: relative;
    min-height: 500px;
    border-radius: 12px;
    overflow: hidden;
    -webkit-box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.wp-block-zoxpress-hero-news-grid .zox-hero-main-image-link {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.wp-block-zoxpress-hero-news-grid .zox-hero-main-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    -webkit-transition: -webkit-transform 0.3s ease;
    transition: transform 0.3s ease;
}

.wp-block-zoxpress-hero-news-grid .zox-hero-main-image-link:hover .zox-hero-main-image {
    -webkit-transform: scale(1.05);
    -ms-transform: scale(1.05);
    transform: scale(1.05);
}

.wp-block-zoxpress-hero-news-grid .zox-hero-main-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: -webkit-gradient(linear, left top, left bottom, from(rgba(0,0,0,0.2)), to(rgba(0,0,0,0.7)));
    background: -o-linear-gradient(top, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0.7) 100%);
    background: linear-gradient(to bottom, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0.7) 100%);
}

.wp-block-zoxpress-hero-news-grid .zox-hero-main-content {
    position: relative;
    z-index: 2;
    padding: 40px;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    -webkit-box-pack: end;
    -ms-flex-pack: end;
    justify-content: flex-end;
    height: 100%;
    color: #ffffff;
}

.wp-block-zoxpress-hero-news-grid .zox-hero-main-category {
    display: inline-block;
    padding: 6px 16px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 20px;
    margin-bottom: 15px;
    -ms-flex-item-align: start;
    align-self: flex-start;
    color: #999999 !important;
    background: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    -webkit-transition: all 0.3s ease;
    -o-transition: all 0.3s ease;
    transition: all 0.3s ease;
}

.wp-block-zoxpress-hero-news-grid .zox-hero-main-category:hover {
    background: #ffffff;
    color: #1a1a1a !important;
}

.wp-block-zoxpress-hero-news-grid .zox-hero-main-title {
    font-size: 32px;
    font-weight: 700;
    line-height: 1.3;
    margin: 0 0 15px 0;
}

.wp-block-zoxpress-hero-news-grid .zox-hero-main-title a {
    color: #ffffff !important;
    text-decoration: none;
    -webkit-transition: opacity 0.3s ease;
    -o-transition: opacity 0.3s ease;
    transition: opacity 0.3s ease;
}

.wp-block-zoxpress-hero-news-grid .zox-hero-main-title a:hover {
    opacity: 0.85;
}

.wp-block-zoxpress-hero-news-grid .zox-hero-main-meta {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    gap: 15px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
}

.wp-block-zoxpress-hero-news-grid .zox-hero-main-date {
    display: inline-block;
}

.wp-block-zoxpress-hero-news-grid .zox-hero-main-author {
    display: inline-block;
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    -webkit-transition: color 0.3s ease;
    -o-transition: color 0.3s ease;
    transition: color 0.3s ease;
}

.wp-block-zoxpress-hero-news-grid .zox-hero-main-author:hover {
    color: #ffffff;
}

/* Trending List (Right Side) */
.wp-block-zoxpress-hero-news-grid .zox-hero-trending-list {
    -webkit-box-flex: 1;
    -ms-flex: 1;
    flex: 1;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
}

.wp-block-zoxpress-hero-news-grid .zox-hero-trending-title {
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 20px 0;
    padding-bottom: 15px;
    border-bottom: 3px solid currentColor;
}

.wp-block-zoxpress-hero-news-grid .zox-hero-trending-items {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    gap: 20px;
}

.wp-block-zoxpress-hero-news-grid .zox-hero-trending-item {
    margin: 0;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    gap: 15px;
    padding: 15px;
    border-radius: 8px;
    background: #f8f9fa;
    -webkit-transition: all 0.3s ease;
    -o-transition: all 0.3s ease;
    transition: all 0.3s ease;
}

.wp-block-zoxpress-hero-news-grid .zox-hero-trending-item:hover {
    background: #ffffff;
    -webkit-box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.wp-block-zoxpress-hero-news-grid .zox-hero-trending-image {
    -ms-flex-negative: 0;
    flex-shrink: 0;
    position: relative;
    width: 125px;
    height: 125px;
    border-radius: 8px;
    overflow: hidden;
}

.wp-block-zoxpress-hero-news-grid .zox-hero-trending-image-link {
    display: block;
    width: 100%;
    height: 100%;
}

.wp-block-zoxpress-hero-news-grid .zox-hero-trending-image img {
    width: 100%;
    height: 100%;
    -o-object-fit: cover;
    object-fit: cover;
    -webkit-transition: -webkit-transform 0.3s ease;
    transition: transform 0.3s ease;
}

.wp-block-zoxpress-hero-news-grid .zox-hero-trending-image-link:hover img {
    -webkit-transform: scale(1.1);
    -ms-transform: scale(1.1);
    transform: scale(1.1);
}

.wp-block-zoxpress-hero-news-grid .zox-hero-trending-content {
    -webkit-box-flex: 1;
    -ms-flex: 1;
    flex: 1;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    gap: 5px;
    position: relative;
}

.wp-block-zoxpress-hero-news-grid .zox-hero-trending-number {
    position: absolute;
    top: -5px;
    right: 0;
    font-size: 48px;
    font-weight: 700;
    color: rgba(102, 126, 234, 0.1);
    line-height: 1;
}

.wp-block-zoxpress-hero-news-grid .zox-hero-trending-category {
    position: absolute;
    top: 8px;
    left: 8px;
    display: inline-block;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #999999 !important;
    background: rgba(255, 255, 255, 0.95);
    padding: 4px 8px;
    border-radius: 3px;
    text-decoration: none;
    z-index: 2;
    -webkit-transition: all 0.3s ease;
    -o-transition: all 0.3s ease;
    transition: all 0.3s ease;
}

.wp-block-zoxpress-hero-news-grid .zox-hero-trending-category:hover {
    background: #ffffff;
    color: #1a1a1a !important;
}

.wp-block-zoxpress-hero-news-grid .zox-hero-trending-post-title {
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
    margin: 0 0 5px 0;
}

.wp-block-zoxpress-hero-news-grid .zox-hero-trending-post-title a {
    color: #1a1a1a !important;
    text-decoration: none;
    -webkit-transition: color 0.3s ease;
    -o-transition: color 0.3s ease;
    transition: color 0.3s ease;
}

.wp-block-zoxpress-hero-news-grid .zox-hero-trending-post-title a:hover {
    color: #666666 !important;
}

.wp-block-zoxpress-hero-news-grid .zox-hero-trending-date {
    font-size: 12px;
    color: #999999;
}

/* Responsive Design */
@media screen and (max-width: 1200px) {
    .wp-block-zoxpress-hero-news-grid .zox-body-width {
        padding: 0 20px;
    }
    
    .wp-block-zoxpress-hero-news-grid .zox-hero-grid-container {
        gap: 25px;
    }
    
    .wp-block-zoxpress-hero-news-grid .zox-hero-main-news {
        min-height: 450px;
    }
}

@media screen and (max-width: 1024px) {
    .wp-block-zoxpress-hero-news-grid .zox-hero-grid-container {
        gap: 20px;
    }
    
    .wp-block-zoxpress-hero-news-grid .zox-hero-main-news {
        min-height: 400px;
    }
    
    .wp-block-zoxpress-hero-news-grid .zox-hero-main-title {
        font-size: 26px;
    }
    
    .wp-block-zoxpress-hero-news-grid .zox-hero-main-content {
        padding: 30px;
    }
    
    .wp-block-zoxpress-hero-news-grid .zox-hero-trending-image {
        width: 110px;
        height: 110px;
    }
    
    .wp-block-zoxpress-hero-news-grid .zox-hero-trending-post-title {
        font-size: 15px;
    }
}

@media screen and (max-width: 768px) {
    .wp-block-zoxpress-hero-news-grid .zox-body-width {
        padding: 0 15px;
    }
    
    .wp-block-zoxpress-hero-news-grid .zox-hero-grid-container {
        -webkit-box-orient: vertical;
        -webkit-box-direction: normal;
        -ms-flex-direction: column;
        flex-direction: column;
        gap: 25px;
    }
    
    .wp-block-zoxpress-hero-news-grid .zox-hero-main-news {
        min-height: 350px;
    }
    
    .wp-block-zoxpress-hero-news-grid .zox-hero-main-title {
        font-size: 24px;
    }
    
    .wp-block-zoxpress-hero-news-grid .zox-hero-main-content {
        padding: 25px;
    }
    
    .wp-block-zoxpress-hero-news-grid .zox-hero-trending-title {
        font-size: 20px;
    }
    
    .wp-block-zoxpress-hero-news-grid .zox-hero-trending-image {
        width: 115px;
        height: 115px;
    }
}

@media screen and (max-width: 480px) {
    .wp-block-zoxpress-hero-news-grid.zox-hero-news-grid {
        padding: 25px 0;
    }
    
    .wp-block-zoxpress-hero-news-grid .zox-body-width {
        padding: 0 15px;
    }
    
    .wp-block-zoxpress-hero-news-grid .zox-hero-main-news {
        min-height: 300px;
    }
    
    .wp-block-zoxpress-hero-news-grid .zox-hero-main-title {
        font-size: 20px;
    }
    
    .wp-block-zoxpress-hero-news-grid .zox-hero-main-content {
        padding: 20px;
    }
    
    .wp-block-zoxpress-hero-news-grid .zox-hero-trending-title {
        font-size: 18px;
    }
    
    .wp-block-zoxpress-hero-news-grid .zox-hero-trending-item {
        padding: 12px;
        gap: 12px;
    }
    
    .wp-block-zoxpress-hero-news-grid .zox-hero-trending-image {
        width: 100px;
        height: 100px;
    }
    
    .wp-block-zoxpress-hero-news-grid .zox-hero-trending-post-title {
        font-size: 14px;
    }
    
    .wp-block-zoxpress-hero-news-grid .zox-hero-trending-category {
        font-size: 9px;
        padding: 3px 6px;
    }
}

