/* Main container */
.cnp-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    display: flex;
    flex-wrap: wrap;
}

/* Preeti Font */
@font-face {
    font-family: 'Preeti';
    src: url('fonts/preeti.ttf') format('truetype');
}

/* Ganesh Font */
@font-face {
    font-family: 'Ganesh';
    src: url('fonts/ganesh.ttf') format('truetype');
}

/* Apply to Nepali content */
.nepali-text {
    font-family: 'Preeti', Arial, sans-serif; /* or 'Ganesh' */
}

/* Main content */
.cnp-main {
    flex: 1 1 70%;
    padding-right: 30px;
}

/* Sidebar */
.cnp-sidebar {
    flex: 1 1 25%;
    padding-left: 30px;
}

/* News grid layout */
.cnp-news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.cnp-news-grid-item {
    border: 1px solid #eaeaea;
    border-radius: 5px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.cnp-news-grid-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.cnp-grid-link {
    display: block;
    color: inherit;
    text-decoration: none;
}

.cnp-grid-thumbnail {
    height: 200px;
    overflow: hidden;
}

.cnp-grid-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.cnp-news-grid-item:hover .cnp-grid-thumbnail img {
    transform: scale(1.05);
}

.cnp-grid-content {
    padding: 20px;
}

.cnp-grid-title {
    margin: 0 0 10px;
    font-size: 1.2rem;
    line-height: 1.4;
}

.cnp-grid-meta {
    font-size: 0.9rem;
    color: #666;
}

/* News list layout */
.cnp-news-list {
    display: grid;
    gap: 20px;
}

.cnp-news-list .cnp-thumbnail {
    float: left;
    width: 200px;
    margin-right: 20px;
}

.cnp-news-list .cnp-content {
    overflow: hidden;
}

/* Single news post */
.cnp-news-article {
    margin-bottom: 50px;
}

.cnp-featured-image {
    margin-bottom: 30px;
}

.cnp-featured-image img {
    width: 100%;
    height: auto;
}

.cnp-entry-header {
    margin-bottom: 20px;
}

.cnp-entry-title {
    margin: 0 0 15px;
    font-size: 2rem;
    line-height: 1.3;
}

.cnp-entry-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 20px;
}

.cnp-entry-content {
    margin-bottom: 30px;
    line-height: 1.6;
}

.cnp-entry-footer {
    border-top: 1px solid #eaeaea;
    padding-top: 20px;
    margin-top: 30px;
}

.cnp-categories, .cnp-tags {
    margin-bottom: 15px;
}

.cnp-categories span, .cnp-tags span {
    font-weight: bold;
    margin-right: 5px;
}

/* Share buttons */
.cnp-share-buttons {
    margin-top: 30px;
}

.cnp-share-label {
    display: inline-block;
    margin-right: 10px;
    font-weight: bold;
}

.cnp-share-button {
    display: inline-block;
    padding: 5px 10px;
    margin-right: 5px;
    border-radius: 3px;
    color: white;
    text-decoration: none;
    font-size: 0.9rem;
}

.cnp-share-facebook {
    background-color: #3b5998;
}

.cnp-share-twitter {
    background-color: #1da1f2;
}

.cnp-share-whatsapp {
    background-color: #25d366;
}

/* Trending news widget */
.cnp-trending-widget {
    margin-bottom: 40px;
}

.cnp-trending-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.cnp-trending-item {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.cnp-trending-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.cnp-trending-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: inherit;
}

.cnp-trending-thumbnail {
    flex: 0 0 80px;
    margin-right: 15px;
}

.cnp-trending-thumbnail img {
    width: 100%;
    height: auto;
    border-radius: 3px;
}

.cnp-trending-content {
    flex: 1;
}

.cnp-trending-title {
    margin: 0 0 5px;
    font-size: 0.9rem;
    line-height: 1.4;
}

.cnp-trending-date {
    font-size: 0.8rem;
    color: #666;
}

/* Featured categories widget */
.cnp-featured-categories-widget {
    margin-bottom: 40px;
}

.cnp-featured-category {
    margin-bottom: 20px;
}

.cnp-category-title {
    margin: 0 0 10px;
    font-size: 1rem;
}

.cnp-category-title a {
    text-decoration: none;
    color: inherit;
}

.cnp-category-posts {
    list-style: none;
    padding: 0;
    margin: 0;
}

.cnp-category-post {
    margin-bottom: 8px;
    padding-bottom: 8px;
    border-bottom: 1px dashed #eee;
}

.cnp-category-post:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.cnp-category-post a {
    text-decoration: none;
    color: #333;
    font-size: 0.9rem;
}

.cnp-category-post a:hover {
    color: #0066cc;
}

/* Badges */
.cnp-trending-badge, .cnp-press-badge {
    display: inline-block;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 0.7rem;
    font-weight: bold;
    text-transform: uppercase;
    margin-left: 5px;
}

.cnp-trending-badge {
    background-color: #ff5722;
    color: white;
}

.cnp-press-badge {
    background-color: #4caf50;
    color: white;
}

/* Responsive styles */
@media (max-width: 768px) {
    .cnp-main, .cnp-sidebar {
        flex: 1 1 100%;
        padding: 0;
    }
    
    .cnp-sidebar {
        margin-top: 40px;
    }
    
    .cnp-news-list .cnp-thumbnail {
        float: none;
        width: 100%;
        margin-right: 0;
        margin-bottom: 15px;
    }
}