/*
 Theme Name:   Newshub Child
 Theme URI:    https://example.com/newshub-child/
 Description:  A child theme for the Newshub WordPress Theme.
 Author:       Your Name
 Author URI:   https://example.com
 Template:     newshub
 Version:      1.0.0
 License:      GNU General Public License v2 or later
 License URI:  http://www.gnu.org/licenses/gpl-2.0.html
 Tags:         news, magazine, blog, responsive-layout
 Text Domain:  newshub-child
*/

/* ==========================================================================
   Add your own custom CSS styles below this line.
   ========================================================================== */
   
   /* ==========================================================================
   Custom Latest Posts Grid Styles
   ========================================================================== */

/* Main container for a category section */
.category-posts-section {
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

/* Section Header (e.g., "बिजनेस", "विश्व") */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #e0e0e0;
    margin-bottom: 20px;
    padding-bottom: 5px;
}

.section-title {
    font-size: 22px;
    font-weight: 700;
    margin: 0;
    display: flex;
    align-items: center;
}

/* Red triangle icon before the title */
.section-title::before {
    content: '';
    display: inline-block;
    width: 0;
    height: 0;
    border-top: 7px solid transparent;
    border-bottom: 7px solid transparent;
    border-left: 9px solid #d90000; /* Main Red Color */
    margin-right: 10px;
}

.section-more-link {
    font-size: 14px;
    font-weight: 600;
    color: #d90000;
    text-decoration: none;
    display: flex;
    align-items: center;
}

/* Red arrow after the "More" link */
.section-more-link::after {
    content: '▶';
    font-size: 10px;
    margin-left: 5px;
}

/* Grid container for the posts */
.posts-grid-container {
    display: grid;
    grid-template-columns: 1.5fr 1fr; /* 60% for featured, 40% for list */
    gap: 25px;
}

/* -- 1. Featured Post (Left Side) -- */
.featured-post-article .post-thumbnail img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.featured-post-article .entry-title {
    font-size: 28px;
    line-height: 1.2;
    margin-top: 15px;
    margin-bottom: 0;
    font-weight: 700;
}

.featured-post-article .entry-title a {
    color: #111;
    text-decoration: none;
}

.featured-post-article .entry-title a:hover {
    color: #d90000;
}


/* -- 2. Side Posts List (Right Side) -- */
.secondary-posts-list {
    display: flex;
    flex-direction: column;
}

.list-post-article {
    display: flex;
    align-items: center;
    gap: 15px;
    padding-bottom: 15px;
    margin-bottom: 15px;
    border-bottom: 1px solid #f0f0f0;
}

.secondary-posts-list .list-post-article:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.list-post-article .post-thumbnail {
    flex-shrink: 0;
    width: 120px;
    height: 80px;
}

.list-post-article .post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.list-post-article .entry-title {
    font-size: 16px;
    line-height: 1.4;
    font-weight: 500;
    margin: 0;
}

.list-post-article .entry-title a {
    color: #333;
    text-decoration: none;
}

.list-post-article .entry-title a:hover {
    color: #d90000;
}


/* ==========================================================================
   Responsive Styles for Mobile
   ========================================================================== */
@media (max-width: 768px) {
    .posts-grid-container {
        grid-template-columns: 1fr; /* Stack columns on smaller screens */
    }

    .featured-post-article .entry-title {
        font-size: 22px; /* Adjust font size for mobile */
    }

    .list-post-article {
        gap: 12px;
    }
    
    .list-post-article .post-thumbnail {
        width: 100px;
        height: 70px;
    }

    .list-post-article .entry-title {
        font-size: 15px;
    }
}