@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&family=Merriweather:wght@400;700&display=swap');

:root {
    --primary-color: #5a67d8;
    --dark-color: #1a202c;
    --light-color: #f7fafc;
    --body-font: 'Poppins', sans-serif;
    --heading-font: 'Merriweather', serif;
}

body {
    font-family: var(--body-font);
    margin: 0;
    background-color: var(--light-color);
    color: #4a4a4a;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* --- Header --- */
.site-header {
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.navbar .logo img {
    max-height: 50px;
}
.navbar .logo-text {
    font-size: 1.8em;
    font-weight: 700;
    color: var(--dark-color);
    text-decoration: none;
}
.nav-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}
.nav-links li a {
    text-decoration: none;
    color: var(--dark-color);
    padding: 10px 15px;
    font-weight: 500;
    transition: color 0.3s;
}
.nav-links li a:hover {
    color: var(--primary-color);
}

/* --- Post Grid --- */
.post-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 30px;
}
.post-card {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}
.post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}
.post-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}
.post-content {
    padding: 20px;
}
.post-category {
    background-color: var(--primary-color);
    color: #fff;
    font-size: 0.8em;
    padding: 5px 10px;
    border-radius: 20px;
    text-decoration: none;
    display: inline-block;
    margin-bottom: 10px;
}
.post-title {
    font-family: var(--heading-font);
    font-size: 1.4em;
    margin: 10px 0;
}
.post-title a {
    text-decoration: none;
    color: var(--dark-color);
}
.post-excerpt {
    font-size: 0.95em;
    line-height: 1.6;
    margin-bottom: 15px;
}
.read-more {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

/* --- Single Post Page --- */
.single-post-container {
    background: #fff;
    padding: 40px;
    margin-top: 30px;
    border-radius: 10px;
}
.single-post-title {
    font-family: var(--heading-font);
    font-size: 2.5em;
    margin-top: 0;
}
.single-post-meta {
    margin-bottom: 20px;
    color: #777;
}
.single-post-image {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 30px;
}
.single-post-content {
    font-size: 1.1em;
    line-height: 1.8;
}

/* --- Footer --- */
.site-footer {
    background-color: var(--dark-color);
    color: #a0aec0;
    text-align: center;
    padding: 30px 0;
    margin-top: 40px;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links { display: none; } /* Simple hiding for demo */
    .single-post-title { font-size: 1.8em; }
}
/* Ad Container Styling */
.ad-container {
    margin: 20px 0;
    text-align: center;
}
.ad-container img {
    max-width: 100%;
    height: auto;
}
/* --- KHABAR BHOJPURI STYLE LAYOUT --- */

/* Main 3-Column Layout */
.main-content-area {
    display: grid;
    grid-template-columns: 1fr 1fr 320px; /* Two main columns and one fixed sidebar */
    gap: 25px;
    margin-top: 20px;
}

.content-column {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* Section Title Style (e.g., "स्पेशल स्टोरी") */
.section-title-bell {
    font-family: var(--heading-font);
    font-size: 1.5em;
    font-weight: 700;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f0f0;
    color: #d90429; /* Red color */
    display: flex;
    align-items: center;
}
.section-title-bell .fa-bell {
    margin-right: 10px;
    animation: ring 2s ease-in-out infinite;
}
@keyframes ring {
    0%, 100% { transform: rotate(0); }
    10%, 30%, 50%, 70%, 90% { transform: rotate(-10deg); }
    20%, 40%, 60%, 80% { transform: rotate(10deg); }
}


/* Post List Item Style */
.post-list-item {
    display: flex;
    gap: 15px;
    align-items: flex-start;
}
.post-list-item .post-image {
    width: 120px;
    height: 80px;
    object-fit: cover;
    border-radius: 5px;
    flex-shrink: 0;
}
.post-list-item .post-content {
    flex-grow: 1;
}
.post-list-item .post-title {
    font-size: 1.1em;
    font-weight: 600;
    margin: 0 0 5px 0;
    line-height: 1.4;
}
.post-list-item .post-title a {
    text-decoration: none;
    color: var(--dark-color);
}
.post-list-item .post-title a:hover {
    color: var(--primary-color);
}
.post-list-item .post-date {
    font-size: 0.8em;
    color: #e63946; /* Red date color */
}

/* Sidebar Widgets */
.sidebar-widget {
    background-color: #fff;
    padding: 15px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.08);
    margin-bottom: 20px;
}

/* Score Widget */
.score-widget iframe {
    width: 100%;
    border: none;
}

/* Calendar Widget */
.calendar-widget {
    font-size: 0.9em;
}
.calendar-header {
    text-align: center;
    font-weight: 700;
    margin-bottom: 10px;
    font-size: 1.1em;
}
.calendar-table {
    width: 100%;
    text-align: center;
    border-collapse: collapse;
}
.calendar-table th, .calendar-table td {
    padding: 8px 5px;
}
.calendar-table th {
    background-color: #d90429;
    color: white;
}
.calendar-table td {
    background-color: #f1faee;
    border: 1px solid #fff;
}
.calendar-table .today {
    background-color: #fca311; /* Yellow for today */
    font-weight: 700;
    color: white;
    border-radius: 50%;
}
.calendar-table .empty-day {
    background-color: #fff;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .main-content-area {
        grid-template-columns: 2fr 1fr; /* Two columns for tablet */
    }
    .main-content-area .content-column:nth-child(2) {
        display: none; /* Hide the middle column on tablets */
    }
}
@media (max-width: 768px) {
    .main-content-area {
        grid-template-columns: 1fr; /* Stack everything on mobile */
    }
    .main-content-area .content-column:nth-child(2) {
        display: flex; /* Show middle column again on mobile */
    }
}