/**
 * Featured News Post Block Styles
 * Modern single post display for featured news
 */

/* Reset margins from parent Group blocks */
.wp-block-group.alignwide.has-global-padding .featured-news-post,
.wp-block-group.has-global-padding .featured-news-post,
.wp-block-group.alignwide .featured-news-post {
    margin: 0 !important;
    padding: 0 !important;
}

.featured-posts-block {
    position: relative;
    width: 100%;
    margin: 20px 0;
    padding: 0;
}

.featured-posts-container {
    position: relative;
    width: 100%;
}

/* Featured News Post Styling - Using WP Native Blocks */
.featured-news-post.wp-block-group {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin: 0;
    padding: 0;
    width: 100%;
    max-width: none;
    box-sizing: border-box;
}

/* When no image is present */
.featured-news-post.no-image .news-card {
    background: #ffffff1a;
    border-radius: 10px;
    overflow: hidden;
}

.featured-news-post .read-next-label.wp-block-heading h2 {
    flex-shrink: 0;
    background: none;
    padding: 0;
    margin: 0;
}

.featured-news-post .news-card.wp-block-group {
    flex: 1;
    background: #ffffff1a;
    border-radius: 10px;
    overflow: hidden;
    margin: 0;
    padding: 0;
    gap: 0;
    width: 100%;
    max-width: none;
    box-sizing: border-box;
}

.featured-news-post .wp-block-post-featured-image.news-image-wrapper {
    margin: 0;
    padding: 0;
    width: 40%;
    min-height: 120px;
    overflow: hidden;
    flex-shrink: 0;
    align-self: stretch;
}

.featured-news-post .wp-block-post-featured-image .wp-post-image {
    width: 100%;
    height: 100%;
    min-height: 120px;
    object-fit: cover;
    border-radius: 10px 0 0 10px;
    margin: 0;
}

.featured-news-post .news-content {
    padding: 25px 30px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 120px;
    margin: 0;
    flex: 1;
}

/* Full width content when no image */
.featured-news-post .news-content.full-width {
    width: 100%;
    max-width: none;
}

.featured-news-post .news-title.wp-block-post-title {
    margin: 0 0 8px 0;
}

.featured-news-post .news-title.wp-block-post-title a {
    text-decoration: none;
    color: var(--wp--preset--color--primary, #0066cc);
}

.featured-news-post .news-title.wp-block-post-title a:hover {
    color: var(--wp--preset--color--primary, #0066cc);
}

.featured-news-post .news-excerpt.wp-block-post-excerpt {
    margin: 0 0 20px 0;
    flex-grow: 1;
}

.featured-news-post .news-excerpt .wp-block-post-excerpt__excerpt {
    margin: 0;
}

.featured-news-post .news-meta.wp-block-group {
    margin: 0;
    padding: 0;
    gap: 15px;
}

.featured-news-post .news-date.wp-block-paragraph {
    margin: 0;
}

/* WordPress Default Read More Button Styles */
.featured-news-post .wp-block-read-more {
    border-radius: 40px;
    border: 1px solid var(--wp--preset--color--contrast, #000);
    font-style: normal;
    font-weight: 700;
    padding: 16px 24px;
    text-transform: uppercase;
    text-decoration: none;
    display: inline-block;
    background: transparent;
    color: var(--wp--preset--color--contrast, #000);
    transition: all 0.2s ease;
}

.featured-news-post .wp-block-read-more:hover {
    background: var(--wp--preset--color--contrast, #000);
    color: var(--wp--preset--color--base, #fff);
}

.read-more-row {
    justify-content: space-between;
}

/* Responsive Design */
@media (max-width: 768px) {
    .featured-news-post.wp-block-group {
        flex-direction: column;
        gap: 15px;
    }
    
    .featured-news-post .news-card.wp-block-group {
        border-radius: 10px;
        flex-direction: column;
    }
    
    .featured-news-post .wp-block-post-featured-image .wp-post-image {
        width: 100%;
        height: 150px;
        border-radius: 10px 10px 0 0;
    }
    
    .featured-news-post .wp-block-post-featured-image.news-image-wrapper {
        width: 100%;
        height: 150px;
    }
    
    .featured-news-post .news-content {
        padding: 20px;
        height: auto;
    }
    
    /* No image case on mobile */
    .featured-news-post.no-image .news-card {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .featured-news-post.wp-block-group {
        gap: 10px;
    }
    
    .featured-news-post .wp-block-post-featured-image .wp-post-image {
        height: 120px;
    }
    
    .featured-news-post .wp-block-post-featured-image.news-image-wrapper {
        height: 120px;
    }
    
    .featured-news-post .news-content {
        padding: 15px;
    }
    
    .featured-news-post .news-meta.wp-block-group {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
}
