/* Main Widget Container */
.elementor-blog-widget {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    color: #333;
    margin-bottom: 40px;
}

/* Section Styles */
.blog-section {
    margin-bottom: 120px;
}

.blog-section-title {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #262626;
    display: block;
    font-family: "Inter";
    line-height: 56px;
}

.blog-section-description {
    font-size: 16px;
    line-height: 1.6;
    color: #666;
    max-width: 800px;
    font-weight: 400;
    margin-bottom: 50px;
}

/* News & Updates Section - Special Styling */
.news-updates-section .blog-section-title {
    display: inline-block;
}

/* Popular News Section */
.popular-news-section .blog-section-title {
    display: inline-block;
}

/* Featured News Section */
.featured-news-section .blog-section-title {
    display: inline-block;
}

/* Upcoming Events Section */
.upcoming-events-section .blog-section-title {
    display: inline-block;
}

/* News & Updates Section */
.news-updates-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    grid-template-rows: auto;
    grid-gap: 20px;
}

.news-updates-main-post {
    grid-column: 1 / 3;
    grid-row: 1 / 3;
    background-color: #f9f9f9;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.news-updates-small-post {
    background-color: #f9f9f9;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* Popular News Section */
.popular-news-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-gap: 20px;
}

.popular-news-post {
    background-color: #f9f9f9;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* Featured News Section */
.featured-news-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-gap: 20px;
}

.featured-news-post {
    background-color: #f9f9f9;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* Upcoming Events Section */
.featured-event {
    margin-bottom: 30px;
    background-color: #f0f8ff;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.15);
}

.events-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-gap: 20px;
}

.event-item {
    background-color: #f5f5f5;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.event-item:hover {
    transform: translateY(-5px);
}

/* Post/Event Common Styles */
.post-link, .event-link {
    display: block;
    color: inherit;
    text-decoration: none;
}

.post-thumbnail, .event-thumbnail {
    position: relative;
    overflow: hidden;
    height: 0;
    padding-top: 56.25%; /* 16:9 Aspect Ratio */
}

.post-thumbnail img, .event-thumbnail img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.post-link:hover img, .event-link:hover img {
    transform: scale(1.05);
}

.post-content, .event-content {
    padding: 15px;
}

.post-title, .event-title {
    margin-top: 0;
    margin-bottom: 10px;
    font-weight: 600;
    line-height: 1.3;
}

.news-updates-main-post .post-title {
    font-size: 24px;
}

.news-updates-small-post .post-title,
.popular-news-post .post-title,
.featured-news-post .post-title,
.event-item .event-title {
    font-size: 18px;
}

.post-excerpt, .event-excerpt {
    margin-bottom: 10px;
    color: #666;
    font-size: 14px;
    line-height: 1.5;
}

.post-meta, .event-meta {
    font-size: 12px;
    color: #888;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .news-updates-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .news-updates-main-post {
        grid-column: 1 / 3;
        grid-row: 1 / 2;
    }
    
    .popular-news-grid,
    .featured-news-grid,
    .events-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 767px) {
    .news-updates-grid {
        grid-template-columns: 1fr;
    }
    
    .news-updates-main-post {
        grid-column: 1;
        grid-row: 1;
    }
    
    .popular-news-grid,
    .featured-news-grid,
    .events-grid {
        grid-template-columns: 1fr;
    }
}