/*
Theme Name: Koro Blog
Theme URI: https://example.com/koro-blog
Author: Koro
Author URI: https://example.com
Description: A clean, fast, modular classic WordPress blog theme. Every part of the design lives in its own small file (tokens, header, posts, sidebar, comments, footer, responsive) so the theme can be redesigned in minutes without touching the PHP. Includes dark mode, custom logo, post thumbnails, widget areas and a Customizer panel.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: koro-blog
Tags: blog, one-column, two-columns, right-sidebar, custom-logo, custom-menu, custom-colors, featured-images, threaded-comments, translation-ready, block-styles, wide-blocks
*/

/*
 * ---------------------------------------------------------------------------
 * IMPORTANT
 * ---------------------------------------------------------------------------
 * This file intentionally contains ONLY the theme header above.
 *
 * All real styling is split into small, single-purpose files inside
 * /assets/css/ and enqueued from /inc/enqueue.php:
 *
 *   tokens.css      -> colors, fonts, spacing, radius (START HERE)
 *   color-modes.css -> dark mode values
 *   base.css        -> reset + typography + WP core classes
 *   layout.css      -> container, grid, pagination
 *   header.css      -> site header, branding, navigation
 *   posts.css       -> post cards, single post, entry content
 *   sidebar.css     -> widgets
 *   forms.css       -> inputs, buttons, search form
 *   comments.css    -> comment list + form
 *   footer.css      -> footer + back to top
 *   responsive.css  -> breakpoints (mobile menu etc.)
 *
 * Anything you add here is loaded last, so it wins over all of the above.
 * That makes this file the perfect place for a quick hack or a child theme
 * override without editing the modular files.
 * ---------------------------------------------------------------------------
 */

/* =========================================================
   5-COLUMN BLOG GRID — COMPACT VERSION
   ========================================================= */

.container {
	max-width: 1240px;
	margin: 0 auto;
	padding: 0 16px;
}

.container--wide {
	max-width: 1600px;
	width: 100%;
}

.site-main {
	padding: 40px 0 60px;
}

/* ---------- Page header ---------- */
.page-header {
	margin-bottom: 40px;
	text-align: center;
}

.page-header--home {
	margin-bottom: 48px;
}

.page-eyebrow {
	font-size: 13px;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: #e63946;
	font-weight: 700;
	margin: 0 0 10px;
}

.page-title {
	font-size: clamp(28px, 4vw, 46px);
	font-weight: 800;
	line-height: 1.15;
	margin: 0 0 12px;
	color: #111;
}

.page-description {
	font-size: 17px;
	color: #555;
	margin: 0 auto;
	max-width: 640px;
}

/* =========================================================
   THE 5-COLUMN GRID
   ========================================================= */

.container--wide .post-grid,
.container .post-grid,
.site-main .post-grid,
.post-grid.post-grid--5col {
	display: grid !important;
	grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
	gap: 16px !important; /* Gap komiye dewa holo */
	width: 100% !important;
	max-width: 100% !important;
	margin: 0 !important;
	padding: 0 !important;
	box-sizing: border-box !important;
}

.post-grid--5col > .post-card {
	width: 100% !important;
	max-width: 100% !important;
	min-width: 0 !important;
	margin: 0 !important;
}

/* Breakpoints (same as before) */
@media (max-width: 1200px) {
	.container--wide .post-grid,
	.container .post-grid,
	.site-main .post-grid,
	.post-grid.post-grid--5col {
		grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
	}
}

@media (max-width: 900px) {
	.container--wide .post-grid,
	.container .post-grid,
	.site-main .post-grid,
	.post-grid.post-grid--5col {
		grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
	}
}

@media (max-width: 640px) {
	.container--wide .post-grid,
	.container .post-grid,
	.site-main .post-grid,
	.post-grid.post-grid--5col {
		grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
	}
}

@media (max-width: 420px) {
	.container--wide .post-grid,
	.container .post-grid,
	.site-main .post-grid,
	.post-grid.post-grid--5col {
		grid-template-columns: 1fr !important;
	}
}

/* =========================================================
   COMPACT POST CARD
   ========================================================= */

.post-card {
	background: #fff;
	border-radius: 10px;
	overflow: hidden;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
	border: 1px solid #eaeaea;
	display: flex;
	flex-direction: column;
	height: 100%;
	transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

/* Image ekhon lomba (square) hobe na, 16:9 hobe */
.post-card__thumb {
	display: block;
	position: relative;
	width: 100%;
	aspect-ratio: 16 / 9; /* Choto korar jonno 1:1 theke 16:9 kora holo */
	overflow: hidden;
	background: #f2f2f2;
}

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

.post-card:hover .post-card__thumb img {
	transform: scale(1.05);
}

.post-card__thumb--empty {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	background: linear-gradient(135deg, #ffcdb2 0%, #ffb4a2 50%, #e5989b 100%);
}

.post-card__initial {
	font-size: 32px;
	font-weight: 800;
	color: #fff;
	text-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

/* Body spacing komiye dewa holo */
.post-card__body {
	padding: 10px 12px 12px;
	display: flex;
	flex-direction: column;
	flex: 1;
}

.post-card__cat {
	align-self: flex-start;
	display: inline-block;
	font-size: 9px;
	font-weight: 700;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	color: #e63946;
	background: #ffeef0;
	padding: 2px 6px;
	border-radius: 4px;
	text-decoration: none;
	margin-bottom: 6px;
	transition: background 0.2s ease;
}

.post-card__cat:hover {
	background: #e63946;
	color: #fff;
}

/* Title choto kora holo */
.post-card__title {
	font-size: 13.5px;
	font-weight: 700;
	line-height: 1.35;
	margin: 0 0 6px;
	
	/* Title o jodi 2 line er beshi hoy, tahole ... show korbe */
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.post-card__title a {
	color: #111;
	text-decoration: none;
	transition: color 0.2s ease;
}

.post-card__title a:hover {
	color: #e63946;
}

/* Excerpt ke 2 line e limit kora holo */
.post-card__excerpt {
	font-size: 11.5px;
	line-height: 1.45;
	color: #666;
	margin-bottom: 10px;
	flex: 1;
	
	/* Eta asol jaadu. 2 line er beshi hole ... show korbe */
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.post-card__excerpt p {
	margin: 0;
}

.post-card__meta {
	font-size: 10px;
	color: #888;
	display: flex;
	align-items: center;
	gap: 4px;
	flex-wrap: wrap;
	padding-top: 8px;
	border-top: 1px solid #f0f0f0;
}

.post-card__meta .dot {
	opacity: 0.5;
}

/* ---------- Pagination ---------- */
.pagination,
.navigation.pagination {
	margin-top: 40px;
	text-align: center;
}

.pagination .page-numbers {
	display: inline-block;
	min-width: 36px;
	height: 36px;
	line-height: 36px;
	padding: 0 8px;
	margin: 0 2px;
	border-radius: 6px;
	background: #f5f5f5;
	color: #333;
	text-decoration: none;
	font-weight: 600;
	font-size: 13px;
	transition: all 0.2s ease;
}

.pagination .page-numbers:hover,
.pagination .page-numbers.current {
	background: #e63946;
	color: #fff;
}