/**
 * Blogs & News Listing Styles
 * 
 * Styles for featured blog/news articles with two-column layout
 * matching the design in the reference image
 * 
 * @package AISBKnowledgeNetworks
 * @since 1.0.0
 */

.blogs-news-featured {
    margin: 60px 0;
}

/* Featured Item Container */
.blog-news-featured-item {
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    margin-bottom: 40px;
    min-height: 400px;
}

/* Media Container (Left Column - 2/3) */
.featured-media-container {
    position: relative;
    overflow: hidden;
}

.news-featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

/* Content Container (Right Column - 1/3) */
.featured-content {
    flex: 0 0 33.333%;
    background: transparent;
    padding: 40px 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.we-showcase {
    font-size: 50px;
    color: #2a548c;
    font-weight: 500;
    display: block;
    margin-bottom: 30px;
    line-height: 60px;
}

.main-title {
    font-size: 30px;
    font-weight: 400;
    color: #2a548c;
    line-height: 36px;
    margin: 0 0 20px 0;
}

.read-more-btn {
    display: inline-block;
    padding: 14px 32px;
    background: #2a548c;
    color: #ffffff;
    border-radius: 5px;
    font-weight: 400;
    font-size: 24px;
    text-align: center;
    line-height: 29px;
}

/* Responsive Design */
@media (max-width: 991px) {
    .blogs-news-featured {
        margin: 40px 0;
    }
    
    .blog-news-featured-item {
        flex-direction: column;
        min-height: auto;
    }
    
    .featured-media-container,
    .featured-content {
        flex: 1 1 100%;
    }
    
    .featured-content {
        padding: 30px 25px;
    }
    
    .news-featured-image,
    .featured-video {
        min-height: 300px;
    }
}

@media (max-width: 767px) {
    .blogs-news-featured {
        margin: 30px 0;
    }
    
    .featured-content {
        padding: 25px 20px;
    }
    
    .news-featured-image,
    .featured-video {
        min-height: 250px;
    }
    
    .read-more-btn {
        padding: 12px 28px;
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    .featured-content {
        padding: 20px 15px;
    }
    
    .news-featured-image,
    .featured-video {
        min-height: 200px;
    }
    
    .read-more-btn {
        padding: 10px 24px;
        font-size: 0.9rem;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Regular Posts Section */
.blogs-news-regular {
    margin-top: 60px;
}

.regular-posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

/* Regular Post Items */
.regular-post-item {
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* Post Image */
.post-image {
    width: 100%;
    height: auto;
    overflow: hidden;
    position: relative;
    border-radius: 10px;
    min-height: 300px;
}

.post-image img {
    width: 100%;
    height: 100% !important;
    object-fit: cover;
    transition: transform 0.3s ease;
}

/* Post Content */
.news-post-content {
    padding: 20px;
    text-align: center;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.post-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2a548c;
    margin-bottom: 15px;
    line-height: 1.3;
}

/* Post Read More Button */
.post-read-more {
    margin-top: auto;
}

/* Responsive Design for Regular Posts */
@media (max-width: 991px) {
    .regular-posts-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
    
    .news-post-content {
        padding: 15px;
    }
    
    .post-title {
        font-size: 1rem;
    }
}

@media (max-width: 767px) {
    .blogs-news-regular {
        margin-top: 40px;
    }
    
    .regular-posts-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .news-post-content {
        padding: 15px;
    }
    
    .post-title {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {    
    .news-post-content {
        padding: 12px;
    }
    
    .post-title {
        font-size: 0.95rem;
        margin-bottom: 12px;
    }
}

.content-description {
    margin-bottom: 30px;
}

.content-description p {
    margin: 0;
}

.news-post-content h3.post-title {
    font-size: 22px;
    line-height: 26px;
    color: #2a548c;
    font-weight: 500;
    text-align: center;
}

.news-post-content h3.post-title a {
    color: #2a548c;
    text-decoration: none;
}

.content-description p {
    display: -webkit-box;
    -webkit-line-clamp: 4; /* number of lines */
    -webkit-box-orient: vertical;
    overflow: hidden;
}