/* Google Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Hind+Siliguri:wght@300;700&display=swap');

:root {
    --primary-black: #000000;
    --primary-white: #ffffff;
    --deep-green: #0d5d2e;
    --deep-red: #8b0000;
    --light-gray: #f8f9fa;
    --border-gray: #e9ecef;
    --text-gray: #6b6b6b;
    --font-bn: 'Hind Siliguri', sans-serif;
    --font-en: 'Roboto', sans-serif;
}

/* Main Page Card Styling */
.post-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.post-card .post-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.post-card .post-category {
    font-size: 0.85rem;
    color: #007bff;
    font-weight: 600;
    margin-bottom: 8px;
}

.post-card .post-title a {
    text-decoration: none;
    color: #333;
    transition: color 0.3s;
}

.post-card .post-title a:hover {
    color: #0056b3;
}

.post-card .post-date {
    font-size: 0.9rem;
    color: #6c757d;
}

/* Individual Post Page Layout */
.post-grid {
    display: flex;
    flex-wrap: wrap; 
    gap: 30px;
}

.post-main {
    flex: 3;
    min-width: 300px;
}

.post-sidebar {
    flex: 1;
    min-width: 280px;
}

.sidebar-widget {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #e7e7e7;
    margin-bottom: 2rem; /* Added margin to separate widgets */
}

.widget-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin-top: 0;
    margin-bottom: 20px;
    border-bottom: 2px solid #0056b3;
    padding-bottom: 10px;
}

/* --- NEW AUTHOR WIDGET STYLES --- */
.author-widget {
    text-align: center;
}

.author-image {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 15px;
    border: 3px solid #e9ecef;
}

.author-name {
    font-size: 1.2rem;
    font-weight: 700;
    margin: 0;
}

.author-title {
    font-size: 0.9rem;
    color: #6c757d;
    margin-bottom: 10px;
}

.author-bio {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #333;
    text-align: justify;
}
/* --- END OF AUTHOR WIDGET STYLES --- */

#related-posts-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

#related-posts-list li {
    margin-bottom: 15px;
}

#related-posts-list li:last-child {
    margin-bottom: 0;
}

#related-posts-list li a {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: #333;
    transition: color 0.3s;
}

#related-posts-list li a:hover, #related-posts-list li a:hover span {
    color: #007bff;
}

#related-posts-list li a img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 5px;
    flex-shrink: 0;
}

#related-posts-list li a span {
    font-size: 0.95rem;
    line-height: 1.4;
    font-weight: 500;
}

.post-main .static-page h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.post-header-image {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 30px;
    object-fit: cover;
}

/* .post-content is also used sitewide as a flex layout for homepage job-card grids
   (see css/style.css); inside an article body that flex context stops wide elements
   like tables from shrinking on narrow screens, so it's reset back to block here. */
.post-main .post-content {
    display: block;
}

.post-main .marks-table {
    display: block;
    overflow-x: auto;
    max-width: 100%;
    -webkit-overflow-scrolling: touch;
}
.post-main .marks-table tbody {
    display: table;
    width: 100%;
}