/*!
Theme Name: Bangla Tribune
Theme URI: https://www.banglatribune.com
Description: Exact replica of Bangla Tribune news website as a WordPress theme (with official authorization)
Version: 1.0.0
Requires at least: 5.0
Requires PHP: 7.4
Author: Development Team
Author URI: https://www.banglatribune.com
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: banglatribune
Domain Path: /languages
Tags: news, bengali, responsive, dark, magazine

AUTHORIZED REPLICATION FOR BANGLA TRIBUNE
This theme is an authorized reproduction of banglatribune.com as a WordPress theme.
*/

/* ============================================================
   MASTER STYLESHEET - INTEGRATES ALL BANGLA TRIBUNE STYLING
============================================================ */

/* Import all CSS files that are already in website-assets folder */
@import url("./website-assets/common_styles.css");
@import url("./website-assets/colors.css");
@import url("./website-assets/site-modification.css");
@import url("./website-assets/widget_style.css");
@import url("./website-assets/shonar_bangla2.css");
@import url("./website-assets/font-jade-embedded.css");
@import url("./website-assets/style.css");

/* ============================================================
   WORDPRESS INTEGRATION STYLES
============================================================ */

:root {
	--primary-red: #d61624;
	--dark-bg: #222222;
	--dark-text: #333333;
	--border-color: #dcdbdb;
}

* {
	box-sizing: border-box;
}

html, body {
	font-family: 'Shonar Bangla', 'Arial', sans-serif;
	font-size: 14px;
	background: #fff;
	color: var(--dark-text);
	line-height: 24px;
	width: 100%;
	min-height: 100%;
}

body {
	overflow-x: hidden;
}

a {
	color: #336699;
	text-decoration: none;
	outline: none;
	cursor: pointer;
	transition: color 0.2s ease;
}

a:hover {
	color: #336699;
	text-decoration: underline;
}

/* Container & Layout */
.container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 15px;
}

.site {
	display: flex;
	flex-direction: column;
	min-height: 100vh;
}

.site-content {
	flex: 1;
	width: 100%;
}

.posts-wrapper {
	display: flex;
	gap: 30px;
	margin-top: 30px;
}

.content-area {
	flex: 1;
	min-width: 0;
}

#secondary {
	width: 300px;
	flex-shrink: 0;
}

/* Posts Grid */
.posts-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 30px;
}

.post {
	border-bottom: 1px solid var(--border-color);
	padding-bottom: 30px;
	margin-bottom: 30px;
}

.post:last-child {
	border-bottom: none;
	margin-bottom: 0;
	padding-bottom: 0;
}

.post-thumbnail {
	display: block;
	width: 100%;
	height: auto;
	margin-bottom: 15px;
	border-radius: 4px;
	overflow: hidden;
}

.post-thumbnail img {
	width: 100%;
	height: auto;
	display: block;
}

.entry-header {
	margin-bottom: 15px;
}

.entry-title {
	font-size: 24px;
	font-weight: bold;
	line-height: 28px;
	color: #1d1d1d;
	margin: 0 0 10px 0;
	word-wrap: break-word;
}

.entry-title a {
	color: #1d1d1d;
}

.entry-title a:hover {
	color: var(--primary-red);
	text-decoration: none;
}

.entry-meta {
	font-size: 12px;
	color: #999;
	margin-bottom: 10px;
}

.entry-content,
.entry-summary {
	font-size: 14px;
	line-height: 24px;
	color: var(--dark-text);
	margin: 10px 0;
}

.read-more {
	display: inline-block;
	color: var(--primary-red);
	font-weight: bold;
	margin-top: 10px;
}

.read-more:hover {
	text-decoration: underline;
}

/* Pagination */
.pagination {
	text-align: center;
	margin: 40px 0;
	clear: both;
}

.pagination a,
.pagination .page-numbers {
	display: inline-block;
	padding: 8px 12px;
	margin: 0 2px;
	background: #f5f5f5;
	border: 1px solid var(--border-color);
	color: var(--dark-text);
	text-decoration: none;
}

.pagination a:hover,
.pagination .current {
	background: var(--primary-red);
	color: #fff;
	border-color: var(--primary-red);
}

/* Header */
.site-header {
	background: #fff;
	border-bottom: 1px solid var(--border-color);
}

.site-branding {
	display: flex;
	align-items: center;
	gap: 20px;
	padding: 15px 0;
}

.site-title {
	font-size: 28px;
	font-weight: bold;
	margin: 0;
}

.site-title a {
	color: var(--dark-text);
	text-decoration: none;
}

.site-title a:hover {
	color: var(--primary-red);
}

.site-description {
	font-size: 14px;
	color: #999;
	margin: 0;
}

/* Primary Menu */
#primary-menu {
	list-style: none;
	display: flex;
	gap: 0;
	margin: 0;
	padding: 0;
	background: var(--dark-bg);
	height: 50px;
	line-height: 50px;
}

#primary-menu li {
	display: inline-block;
	height: 100%;
	line-height: 50px;
}

#primary-menu a {
	display: block;
	color: #fff;
	padding: 0 15px;
	height: 100%;
	line-height: 50px;
	white-space: nowrap;
}

#primary-menu a:hover {
	background: var(--primary-red);
	text-decoration: none;
}

#primary-menu .current-menu-item > a {
	background: var(--primary-red);
	text-decoration: none;
}

/* Footer */
.site-footer {
	background: var(--dark-bg);
	color: #fff;
	padding: 40px 0;
	margin-top: 60px;
	border-top: 3px solid var(--primary-red);
}

.footer-content {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
	gap: 40px;
	margin-bottom: 30px;
}

.footer-widget {
	color: #ccc;
}

.footer-widget h3 {
	color: #fff;
	font-size: 16px;
	margin-bottom: 15px;
	border-bottom: 2px solid var(--primary-red);
	padding-bottom: 10px;
}

.footer-widget ul {
	list-style: none;
	padding: 0;
	margin: 0;
}

.footer-widget li {
	margin-bottom: 8px;
}

.footer-widget a {
	color: #ccc;
}

.footer-widget a:hover {
	color: var(--primary-red);
	text-decoration: none;
}

.site-info {
	text-align: center;
	border-top: 1px solid rgba(255,255,255,0.1);
	padding-top: 20px;
	color: #999;
	font-size: 12px;
}

/* Sidebar */
.widget {
	margin-bottom: 30px;
	background: #f9f9f9;
	padding: 15px;
	border: 1px solid var(--border-color);
}

.widget-title {
	font-size: 16px;
	font-weight: bold;
	margin: 0 0 15px 0;
	padding-bottom: 10px;
	border-bottom: 2px solid var(--primary-red);
	color: var(--dark-text);
}

.widget ul {
	list-style: none;
	padding: 0;
	margin: 0;
}

.widget li {
	padding: 8px 0;
	border-bottom: 1px solid var(--border-color);
}

.widget li:last-child {
	border-bottom: none;
}

.widget a {
	color: var(--dark-text);
	font-size: 13px;
}

.widget a:hover {
	color: var(--primary-red);
	text-decoration: none;
}

/* Search */
.search-form {
	display: flex;
	gap: 0;
	margin: 20px 0;
}

.search-form input[type="search"] {
	flex: 1;
	padding: 10px 15px;
	border: 1px solid var(--border-color);
	font-size: 14px;
}

.search-form button {
	background: var(--primary-red);
	color: #fff;
	border: none;
	padding: 10px 20px;
	cursor: pointer;
	font-weight: bold;
}

.search-form button:hover {
	background: #b01220;
}

/* Comments */
.comments-area {
	margin: 40px 0;
	padding: 30px;
	background: #f9f9f9;
	border: 1px solid var(--border-color);
}

.comments-title {
	font-size: 20px;
	font-weight: bold;
	margin-bottom: 20px;
	color: var(--dark-text);
}

.comment-form {
	margin-top: 20px;
}

.comment-form p {
	margin-bottom: 15px;
}

.comment-form label {
	display: block;
	margin-bottom: 5px;
	font-weight: bold;
	font-size: 13px;
}

.comment-form input,
.comment-form textarea {
	width: 100%;
	padding: 10px;
	border: 1px solid var(--border-color);
	font-size: 14px;
	font-family: 'Shonar Bangla', Arial, sans-serif;
}

.comment-form button {
	background: var(--primary-red);
	color: #fff;
	border: none;
	padding: 10px 30px;
	cursor: pointer;
	font-weight: bold;
	margin-top: 10px;
}

.comment-form button:hover {
	background: #b01220;
}

.comment-list {
	list-style: none;
	padding: 0;
	margin: 0;
}

.comment {
	margin: 20px 0;
	padding: 20px;
	background: #fff;
	border: 1px solid var(--border-color);
	border-radius: 4px;
}

.comment-author {
	font-weight: bold;
	margin-bottom: 5px;
}

.comment-meta {
	font-size: 12px;
	color: #999;
	margin-bottom: 10px;
}

.comment-text {
	font-size: 13px;
	color: var(--dark-text);
}

/* Error 404 */
.error-404 {
	text-align: center;
	padding: 60px 20px;
}

.error-404 h1 {
	font-size: 72px;
	margin: 20px 0;
	color: var(--primary-red);
}

.error-404 p {
	font-size: 18px;
	margin: 20px 0;
	color: var(--dark-text);
}

.error-404 a {
	display: inline-block;
	background: var(--primary-red);
	color: #fff;
	padding: 12px 30px;
	margin-top: 20px;
	border-radius: 4px;
	text-decoration: none;
	font-weight: bold;
}

.error-404 a:hover {
	background: #b01220;
	text-decoration: none;
}

/* Responsive */
@media only screen and (max-width: 768px) {
	.posts-wrapper {
		flex-direction: column;
		gap: 20px;
	}

	#secondary {
		width: 100%;
	}

	#primary-menu {
		flex-wrap: wrap;
		height: auto;
		line-height: normal;
	}

	#primary-menu li {
		width: 50%;
		border-right: 1px solid rgba(255,255,255,0.1);
		border-bottom: 1px solid rgba(255,255,255,0.1);
	}

	#primary-menu a {
		padding: 15px 10px;
		line-height: normal;
		height: auto;
	}

	.footer-content {
		grid-template-columns: 1fr;
		gap: 20px;
	}

	.entry-title {
		font-size: 20px;
	}

	.post-grid {
		grid-template-columns: 1fr;
	}
}

@media only screen and (max-width: 480px) {
	.container {
		padding: 0 10px;
	}

	.posts-grid {
		gap: 20px;
	}

	.entry-title {
		font-size: 18px;
		line-height: 22px;
	}

	.entry-meta {
		font-size: 11px;
	}

	#primary-menu {
		font-size: 12px;
	}

	#primary-menu a {
		padding: 12px 8px;
	}

	.site-footer {
		padding: 20px 0;
	}

	.footer-widget h3 {
		font-size: 14px;
	}
}

/* Accessibility */
.screen-reader-text {
	clip: rect(1px, 1px, 1px, 1px);
	position: absolute !important;
	height: 1px;
	width: 1px;
	overflow: hidden;
	word-wrap: normal !important;
}

.screen-reader-text:focus {
	clip: auto !important;
	display: block;
	height: auto;
	width: auto;
	overflow: visible;
	position: static !important;
}

/* Print */
@media print {
	.site-header,
	.site-footer,
	#secondary,
	.comments-area,
	.navigation {
		display: none;
	}

	body {
		color: #000;
		background: #fff;
	}

	.entry-title,
	h1, h2, h3, h4, h5, h6 {
		page-break-after: avoid;
	}

	p {
		page-break-inside: avoid;
	}
}

/* ============================================================
   STICKY HEADER - TRENDING MENU & CATEGORIES
============================================================ */

/* Make trending menu sticky */
.trending_menu_wrap {
display: none;
position: sticky;
top: 0;
z-index: 999;
background: #ffffff;
box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
border-bottom: 2px solid #dcdbdb;
}

.trending_menu {
display: flex;
overflow-x: auto;
overflow-y: hidden;
scroll-behavior: smooth;
-webkit-overflow-scrolling: touch;
}

.trending_menu ul {
display: flex;
margin: 0;
padding: 0;
list-style: none;
width: 100%;
}

.trending_menu li {
flex-shrink: 0;
padding: 12px 0;
}

.trending_menu li a {
display: block;
padding: 8px 16px;
font-size: 16px;
line-height: 24px;
font-weight: 600;
color: #000;
text-decoration: none;
border-right: 1px solid #e0e0e0;
transition: all 0.3s ease;
}

.trending_menu li a:hover {
background-color: #f5f5f5;
color: #d61624;
}

.trending_menu_wrap .prev,
.trending_menu_wrap .next {
position: absolute;
top: 50%;
transform: translateY(-50%);
width: 32px;
height: 32px;
background: rgba(0,0,0,0.1);
cursor: pointer;
z-index: 10;
display: flex;
align-items: center;
justify-content: center;
border: none;
font-size: 18px;
color: #333;
}

.trending_menu_wrap .prev {
left: 0;
}

.trending_menu_wrap .next {
right: 0;
}

.trending_menu_wrap .prev:hover,
.trending_menu_wrap .next:hover {
background: rgba(0,0,0,0.2);
}

/* ============================================================
   WORDPRESS LOCALE - BENGALI LANGUAGE SUPPORT
============================================================ */

/* Ensure proper text direction for Bengali */
body.rtl,
html[lang="bn"] {
direction: ltr;
text-align: left;
}

/* Bengali font stack */
body, button, input, select, textarea {
font-family: 'JW_Shonar_Bangla', 'Shonar Bangla', 'SolaimanLipi', 'Arial', sans-serif !important;
}

/* Ensure Bengali numerals display correctly */
.date_holder,
.updated,
.published {
font-family: 'JW_Shonar_Bangla', 'Shonar Bangla', 'SolaimanLipi', monospace;
}

/* ============================================================
   STICKY HEADER - ACTIVATED BY JAVASCRIPT
============================================================ */

/* When scrolled, body gets sticky_menu class */
.sticky_menu {
    overflow: visible !important;
}

.sticky_menu .header_outer {
    overflow: visible !important;
}

.sticky_menu .header_wrap {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    z-index: 999 !important;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2) !important;
}

/* Add padding to body when header is fixed to prevent content jump */
.sticky_menu {
    padding-top: 53px !important;
}

/* ============================================================
   HAMBURGER MENU (MORE MAIN MENU) - SIDEBAR
============================================================ */

.more_main_menu_wrap {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.7);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.more_main_menu_wrap.active {
    opacity: 1;
    visibility: visible;
}

.more_main_menu_inner {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 320px;
    max-width: 90%;
    background: #fff;
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform 0.3s ease;
}

.more_main_menu_wrap.active .more_main_menu_inner {
    transform: translateX(0);
}

.close_more_main {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 30px;
    height: 30px;
    cursor: pointer;
    z-index: 10;
}

.close_more_main::before,
.close_more_main::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 2px;
    background: #333;
}

.close_more_main::before {
    transform: rotate(45deg);
}

.close_more_main::after {
    transform: rotate(-45deg);
}

.more_main_inside {
    padding: 20px;
}

.all_menu_section_title {
    font-size: 18px;
    font-weight: bold;
    color: #333;
    padding: 15px 0;
    border-bottom: 2px solid #e6313a;
    margin-bottom: 15px;
}

.big_menu_all ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.big_menu_all li {
    border-bottom: 1px solid #eee;
}

.big_menu_all li a {
    display: block;
    padding: 12px 0;
    color: #333;
    text-decoration: none;
    font-size: 15px;
    transition: color 0.2s ease;
}

.big_menu_all li a:hover {
    color: #e6313a;
}

.big_menu_social {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.big_social_left {
    font-size: 14px;
    color: #666;
    margin-bottom: 15px;
}

.big_social_right ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 10px;
}

.big_social_right li a {
    display: inline-block;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    text-indent: -9999px;
    background-size: 20px;
    background-position: center;
    background-repeat: no-repeat;
}

.big_social_right .facebook {
    background-color: #3b5998;
}

.big_social_right .twitter {
    background-color: #1da1f2;
}

.big_social_right .youtube {
    background-color: #ff0000;
}

.big_social_right .linkedin {
    background-color: #0077b5;
}

.big_social_right .instagram {
    background-color: #e1306c;
}

/* ============================================================
   SEARCH FORM TOGGLE
============================================================ */

.header_seach_form {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background: #fff;
    padding: 15px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    z-index: 100;
    min-width: 300px;
}

.header_seach_form.active {
    display: block;
}

.search_close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.search_close::before,
.search_close::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 2px;
    background: #666;
}

.search_close::before {
    transform: rotate(45deg);
}

.search_close::after {
    transform: rotate(-45deg);
}

/* ============================================================
   MAIN MENU TOGGLE (MOBILE)
============================================================ */

.main_menu_toggle {
    display: none;
    width: 30px;
    height: 24px;
    cursor: pointer;
    position: relative;
}

.main_menu_toggle::before,
.main_menu_toggle::after,
.main_menu_toggle span {
    content: '';
    position: absolute;
    left: 0;
    width: 100%;
    height: 3px;
    background: #fff;
    transition: transform 0.3s ease;
}

.main_menu_toggle::before {
    top: 0;
}

.main_menu_toggle span {
    top: 50%;
    transform: translateY(-50%);
}

.main_menu_toggle::after {
    bottom: 0;
}

.main_menu_toggle.active::before {
    transform: translateY(10px) rotate(45deg);
}

.main_menu_toggle.active::after {
    transform: translateY(-10px) rotate(-45deg);
}

.main_menu_toggle.active span {
    opacity: 0;
}

/* Show toggle on mobile */
@media (max-width: 768px) {
    .main_menu_toggle {
        display: block;
    }
    
    .main_menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #222;
    }
    
    .main_menu.active {
        display: block;
    }
    
    .main_menu ul {
        flex-direction: column;
    }
    
    .main_menu li {
        border-bottom: 1px solid #333;
    }
}

/* Prevent body scroll when menu is open */
body.menu-open {
    overflow: hidden;
}

/* ============================================================
   HEADER CONTENT ALIGNMENT
============================================================ */

.header {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    height: 50px;
    background: #222222;
    color: #fff;
}

.header_menu_wrap {
    flex: 1;
    display: flex;
    align-items: center;
    height: 100%;
}

.main_menu {
    display: flex;
    align-items: center;
    height: 100%;
    flex: 1;
}

.main_menu ul {
    display: flex;
    align-items: center;
    height: 100%;
    margin: 0;
    padding: 0;
    list-style: none;
}

.main_menu li {
    display: flex;
    align-items: center;
    height: 100%;
    margin: 0;
    padding: 0 15px;
}

.main_menu li a {
    display: flex;
    align-items: center;
    height: 100%;
    white-space: nowrap;
}

/* ============================================================
   SINGLE POST PAGE STYLES
============================================================ */

.single-post-wrapper {
	max-width: 1000px;
	margin: 40px auto;
	padding: 0 20px;
	background: #fff;
}

.site-main {
	width: 100%;
}

/* Breadcrumb Navigation */
.banglatribune-breadcrumb {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 20px;
	font-size: 13px;
	color: #666;
	padding-bottom: 12px;
	border-bottom: 1px solid #e5e5e5;
}

.banglatribune-breadcrumb a {
	color: #336699;
	transition: color 0.2s ease;
}

.banglatribune-breadcrumb a:hover {
	color: #d61624;
	text-decoration: none;
}

.breadcrumb-home {
	font-weight: 500;
}

.breadcrumb-separator {
	color: #999;
	margin: 0 4px;
}

.breadcrumb-current {
	color: #333;
	font-weight: 500;
}

/* Article Container */
.jw_detail_content_holder {
	width: 100%;
	margin: 0;
	padding: 0;
}

.jw_detail_content_holder.content {
	background: #fff;
}

.jw_detail_content_holder.mb16 {
	margin-bottom: 16px;
}

/* Post Meta Section */
.post-meta-section {
	margin-bottom: 25px;
	padding-bottom: 20px;
	border-bottom: 2px solid #e5e5e5;
}

.post-title {
	font-size: 32px;
	font-weight: 700;
	line-height: 1.3;
	color: #222;
	margin: 0 0 16px 0;
	padding: 0;
	font-family: 'Shonar Bangla', 'Arial', sans-serif;
}

.post-meta-info {
	display: flex;
	flex-wrap: wrap;
	gap: 20px;
	font-size: 13px;
	color: #666;
}

.post-author,
.post-date,
.post-category {
	display: flex;
	align-items: center;
	gap: 6px;
}

.author-label,
.date-label,
.category-label {
	font-weight: 600;
	color: #333;
}

.author-name,
.publish-date,
.category-link {
	color: #555;
}

.category-link {
	color: #336699;
	text-decoration: none;
	padding: 2px 6px;
	border-radius: 3px;
	transition: all 0.2s ease;
}

.category-link:hover {
	color: #fff;
	background-color: #d61624;
}

/* Featured Image */
.featured-image-wrapper {
	margin: 25px 0;
	text-align: center;
	overflow: hidden;
	border-radius: 4px;
	background: #f5f5f5;
}

.featured-image-wrapper img {
	max-width: 100%;
	height: auto;
	display: block;
	margin: 0 auto;
}

/* Main Content */
.viewport.jw_article_body {
	font-size: 16px;
	line-height: 1.8;
	color: #333;
	margin: 25px 0;
}

.viewport.jw_article_body p {
	margin: 0 0 16px 0;
	padding: 0;
	font-size: 16px;
	line-height: 1.8;
	color: #333;
}

.viewport.jw_article_body p.alignfull {
	width: 100%;
	margin: 0 0 16px 0;
}

.viewport.jw_article_body h1,
.viewport.jw_article_body h2,
.viewport.jw_article_body h3,
.viewport.jw_article_body h4,
.viewport.jw_article_body h5,
.viewport.jw_article_body h6 {
	font-family: 'Shonar Bangla', 'Arial', sans-serif;
	line-height: 1.4;
	color: #222;
	margin: 25px 0 16px 0;
	padding: 0;
	font-weight: 700;
}

.viewport.jw_article_body h2 {
	font-size: 24px;
}

.viewport.jw_article_body h3 {
	font-size: 20px;
}

.viewport.jw_article_body h4 {
	font-size: 18px;
}

.viewport.jw_article_body img {
	max-width: 100%;
	height: auto;
	display: block;
	margin: 20px 0;
	border-radius: 4px;
}

.viewport.jw_article_body ul,
.viewport.jw_article_body ol {
	margin: 16px 0;
	padding-left: 30px;
	color: #333;
}

.viewport.jw_article_body li {
	margin-bottom: 8px;
	line-height: 1.8;
}

.viewport.jw_article_body blockquote {
	border-left: 4px solid #d61624;
	padding: 12px 16px;
	margin: 20px 0;
	background-color: #f9f9f9;
	font-style: italic;
	color: #666;
}

.viewport.jw_article_body a {
	color: #336699;
	text-decoration: underline;
	transition: color 0.2s ease;
}

.viewport.jw_article_body a:hover {
	color: #d61624;
}

/* Tags Section */
.post-tags-section {
	margin: 30px 0;
	padding: 20px 0;
	border-top: 1px solid #e5e5e5;
	border-bottom: 1px solid #e5e5e5;
}

.tags-label {
	font-weight: 600;
	color: #333;
	margin-right: 12px;
}

.post-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.tag-link {
	display: inline-block;
	padding: 6px 12px;
	background-color: #f0f0f0;
	color: #336699;
	border-radius: 3px;
	font-size: 13px;
	text-decoration: none;
	transition: all 0.2s ease;
	border: 1px solid #e0e0e0;
}

.tag-link:hover {
	background-color: #d61624;
	color: #fff;
	border-color: #d61624;
}

/* Post Navigation */
.post-navigation {
	display: flex;
	justify-content: space-between;
	margin: 40px 0;
	padding: 20px 0;
	border-top: 2px solid #e5e5e5;
	border-bottom: 2px solid #e5e5e5;
}

.nav-previous,
.nav-next {
	flex: 1;
}

.nav-previous a,
.nav-next a {
	display: block;
	padding: 12px;
	color: #336699;
	text-decoration: none;
	font-weight: 500;
	transition: all 0.2s ease;
	border-radius: 3px;
}

.nav-previous a:hover,
.nav-next a:hover {
	background-color: #f5f5f5;
	color: #d61624;
}

.nav-next a {
	text-align: right;
}

/* Page Links */
.page-links {
	display: flex;
	gap: 8px;
	margin: 20px 0;
	flex-wrap: wrap;
}

.page-links a,
.page-links span {
	display: inline-block;
	padding: 6px 12px;
	border: 1px solid #e0e0e0;
	border-radius: 3px;
	text-decoration: none;
	color: #336699;
	font-size: 13px;
	transition: all 0.2s ease;
}

.page-links a:hover {
	background-color: #d61624;
	color: #fff;
	border-color: #d61624;
}

.page-links span {
	background-color: #d61624;
	color: #fff;
	border-color: #d61624;
}

/* Responsive Design */
@media (max-width: 768px) {
	.single-post-wrapper {
		max-width: 100%;
		margin: 20px auto;
		padding: 0 15px;
	}

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

	.post-meta-info {
		flex-direction: column;
		gap: 10px;
	}

	.post-navigation {
		flex-direction: column;
		gap: 15px;
	}

	.nav-previous,
	.nav-next {
		flex: none;
	}

	.nav-next a {
		text-align: left;
	}

	.banglatribune-breadcrumb {
		font-size: 12px;
	}

	.viewport.jw_article_body {
		font-size: 15px;
	}

	.viewport.jw_article_body h2 {
		font-size: 20px;
	}

	.viewport.jw_article_body h3 {
		font-size: 18px;
	}
}

@media (max-width: 480px) {
	.post-title {
		font-size: 20px;
		line-height: 1.25;
	}

	.post-meta-info {
		font-size: 12px;
		gap: 8px;
	}

	.viewport.jw_article_body {
		font-size: 14px;
		line-height: 1.6;
	}

	.post-tags {
		gap: 6px;
	}

	.tag-link {
		padding: 4px 8px;
		font-size: 12px;
	}
}

/* Hide Comments Section - Not present on original site */
.comments-area,
.comment-form,
.comments-title,
.comment-respond,
.commentlist {
	display: none !important;
}

/* ============================================================
   HOMEPAGE GRID LAYOUT & FEATURED SECTION
============================================================ */

/* Featured Section - Top featured post */
.featured-section {
	width: 100%;
	margin: 30px 0 40px 0;
	padding: 0;
}

.featured-section .featured-post {
	position: relative;
	display: block;
	overflow: hidden;
	border-radius: 4px;
	background: #f5f5f5;
}

.featured-section .featured-image {
	display: block;
	width: 100%;
	height: auto;
	margin: 0;
	padding: 0;
	border: none;
}

.featured-section .featured-content {
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
	color: #fff;
	padding: 40px 20px 20px 20px;
	z-index: 10;
}

.featured-section .featured-title {
	font-size: 28px;
	font-weight: 700;
	line-height: 1.35;
	color: #fff;
	margin: 0 0 12px 0;
	padding: 0;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.featured-section .featured-title a {
	color: #fff;
	text-decoration: none;
	transition: opacity 0.2s ease;
}

.featured-section .featured-title a:hover {
	opacity: 0.8;
}

.featured-section .featured-meta {
	font-size: 12px;
	color: #ddd;
	display: flex;
	gap: 16px;
	flex-wrap: wrap;
}

.featured-section .featured-meta span {
	display: flex;
	align-items: center;
	gap: 4px;
}

.featured-section .featured-category {
	display: inline-block;
	background: #d61624;
	color: #fff;
	padding: 4px 10px;
	border-radius: 2px;
	font-size: 11px;
	font-weight: 600;
	text-decoration: none;
	margin-bottom: 8px;
}

/* Category Sections */
.category-section {
	margin-bottom: 50px;
	width: 100%;
}

.category-section-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 25px;
	padding-bottom: 15px;
	border-bottom: 3px solid #d61624;
}

.category-section-title {
	font-size: 22px;
	font-weight: 700;
	color: #222;
	margin: 0;
	padding: 0;
	font-family: 'Shonar Bangla', 'Arial', sans-serif;
}

.category-section-title a {
	color: #222;
	text-decoration: none;
	transition: color 0.2s ease;
}

.category-section-title a:hover {
	color: #d61624;
}

.view-all-link {
	font-size: 13px;
	color: #d61624;
	text-decoration: none;
	font-weight: 600;
	transition: all 0.2s ease;
	display: flex;
	align-items: center;
	gap: 6px;
}

.view-all-link:hover {
	gap: 10px;
}

/* Grid Container */
.row {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: 20px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.row.posts-grid {
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 25px;
}

/* Featured Item (First post in category - larger) */
.post-item-wrapper.featured-item {
	grid-column: span 1;
}

@media (min-width: 992px) {
	.row.posts-grid > .post-item-wrapper:first-child {
		grid-column: span 2;
		grid-row: span 2;
	}

	.row.posts-grid > .post-item-wrapper:first-child .post-item-image {
		height: 350px;
	}
}

/* Post Item Card */
.post-item-wrapper {
	display: flex;
	flex-direction: column;
	background: #fff;
	border: 1px solid #e5e5e5;
	border-radius: 4px;
	overflow: hidden;
	transition: all 0.3s ease;
	height: 100%;
}

.post-item-wrapper:hover {
	box-shadow: 0 4px 12px rgba(0,0,0,0.15);
	border-color: #d61624;
	transform: translateY(-2px);
}

.post-item-wrapper a {
	text-decoration: none;
	color: inherit;
}

/* Post Item Image */
.post-item-image {
	display: block;
	width: 100%;
	height: 160px;
	overflow: hidden;
	background: #f0f0f0;
	position: relative;
	flex-shrink: 0;
}

.post-item-wrapper:first-child .post-item-image {
	height: 200px;
}

.post-item-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.3s ease;
}

.post-item-wrapper:hover .post-item-image img {
	transform: scale(1.05);
}

/* Post Item Content */
.post-item-content {
	display: flex;
	flex-direction: column;
	flex: 1;
	padding: 16px 14px;
	background: #fff;
}

.post-item-wrapper:first-child .post-item-content {
	padding: 18px 16px;
}

.post-item-category {
	display: inline-block;
	background: #d61624;
	color: #fff;
	padding: 4px 8px;
	border-radius: 2px;
	font-size: 10px;
	font-weight: 700;
	text-transform: uppercase;
	margin-bottom: 8px;
	width: fit-content;
	text-decoration: none;
	transition: background 0.2s ease;
}

.post-item-wrapper:hover .post-item-category {
	background: #a01019;
}

.post-item-title {
	font-size: 15px;
	font-weight: 700;
	line-height: 1.35;
	color: #222;
	margin: 0 0 10px 0;
	padding: 0;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	transition: color 0.2s ease;
	font-family: 'Shonar Bangla', 'Arial', sans-serif;
}

.post-item-wrapper:first-child .post-item-title {
	font-size: 18px;
	-webkit-line-clamp: 3;
}

.post-item-wrapper:hover .post-item-title {
	color: #d61624;
}

.post-item-meta {
	font-size: 11px;
	color: #999;
	display: flex;
	gap: 12px;
	flex-wrap: wrap;
	margin-top: auto;
	padding-top: 10px;
	border-top: 1px solid #e5e5e5;
}

.post-item-wrapper:first-child .post-item-meta {
	font-size: 12px;
}

.post-item-author,
.post-item-date {
	display: flex;
	align-items: center;
	gap: 3px;
}

.post-item-author::before {
	content: '✍️';
	font-size: 11px;
}

.post-item-date::before {
	content: '📅';
	font-size: 11px;
}

/* Responsive Grid */
@media (max-width: 1200px) {
	.row.posts-grid {
		grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
		gap: 20px;
	}

	@media (min-width: 768px) {
		.row.posts-grid > .post-item-wrapper:first-child {
			grid-column: span 1;
			grid-row: span 1;
		}

		.row.posts-grid > .post-item-wrapper:first-child .post-item-image {
			height: 160px;
		}

		.post-item-wrapper:first-child .post-item-title {
			font-size: 15px;
			-webkit-line-clamp: 2;
		}
	}
}

@media (max-width: 768px) {
	.row {
		grid-template-columns: repeat(2, 1fr);
		gap: 15px;
	}

	.row.posts-grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.post-item-wrapper:first-child .post-item-title {
		font-size: 14px;
		-webkit-line-clamp: 2;
	}

	.post-item-wrapper:first-child .post-item-image {
		height: 140px;
	}

	.post-item-image {
		height: 120px;
	}

	.featured-section .featured-content {
		padding: 30px 15px 15px 15px;
	}

	.featured-section .featured-title {
		font-size: 22px;
		-webkit-line-clamp: 2;
	}

	.category-section-header {
		margin-bottom: 18px;
	}

	.category-section-title {
		font-size: 18px;
	}
}

@media (max-width: 480px) {
	.row {
		grid-template-columns: 1fr;
		gap: 12px;
	}

	.row.posts-grid {
		grid-template-columns: 1fr;
		gap: 15px;
	}

	.post-item-image {
		height: 140px;
	}

	.post-item-content {
		padding: 12px 10px;
	}

	.post-item-title {
		font-size: 13px;
		-webkit-line-clamp: 2;
	}

	.post-item-meta {
		font-size: 10px;
		gap: 8px;
	}

	.featured-section {
		margin: 20px 0 30px 0;
	}

	.featured-section .featured-content {
		padding: 25px 12px 12px 12px;
	}

	.featured-section .featured-title {
		font-size: 18px;
		line-height: 1.3;
		-webkit-line-clamp: 2;
	}

	.category-section {
		margin-bottom: 35px;
	}

	.category-section-title {
		font-size: 16px;
	}

	.view-all-link {
		font-size: 12px;
	}
}
