
/* ==== Daily Abhimat — layout v2 ==== */
:root{--ab-red:#e93314;--ab-radius:8px;--ab-band:#f2f3f5;}

/* ---- 1. মূল খবর: wide rectangle instead of a near-square ---- */
#site #blogsy-hero .pt-hero-type-three .pt-hero-slider .post-wrapper{
	height:auto !important;aspect-ratio:16/9;min-height:236px;}
#site #blogsy-hero .pt-hero-type-three .pt-hero-slider .swiper-slide{height:auto;}

/* ---- 2. Image holders: soft corners + thin red stroke ---- */
#site .post-wrapper .image-wrapper,
#site .post-wrapper .image-container,
#site .abhimat-hero-pair .ab-thumb,
#site .ab-cat-thumb{
	border:1px solid var(--ab-red) !important;
	border-radius:var(--ab-radius) !important;
	overflow:hidden !important;
	box-sizing:border-box;}
/* Article pages: lead picture, pictures inside the report, previous/next */
#site .single-content .image-container,
#site .next-prev-col .post-wrapper .image{
	border:1px solid var(--ab-red) !important;
	border-radius:var(--ab-radius) !important;
	overflow:hidden !important;
	box-sizing:border-box;}
#site .single-content .single-content-inner figure img,
#site .single-content .single-content-inner p > img{
	border:1px solid var(--ab-red);border-radius:var(--ab-radius);box-sizing:border-box;}
/* Cards whose picture fills the whole card (slider, stories, অপঠিত সংবাদ):
   the card itself is the image holder. */
#site .pt-hero-slider .swiper-slide > .post-wrapper,
#site .blogsy-stories .post-wrapper,
#site .blogsy-pyml .post-wrapper{
	border:1px solid var(--ab-red) !important;
	border-radius:var(--ab-radius) !important;
	overflow:hidden !important;
	box-sizing:border-box;}
#site .pt-hero-slider .swiper-slide > .post-wrapper > .image-wrapper,
#site .blogsy-stories .post-wrapper > .image-wrapper,
#site .blogsy-pyml .post-wrapper > .image-wrapper{
	border:0 !important;border-radius:0 !important;}
/* মূল খবর small blocks: the picture carries the frame, not the card */
#site .abhimat-hero-pair .ab-card{border:0;border-radius:0;background:transparent;overflow:visible;}
#site .abhimat-hero-pair .ab-body{padding:9px 2px 4px;}

/* ---- 3. Advertisement slots: fixed sizes, centred ---- */
#site .abhimat-ad-row,
#site .abhimat-ad-sidebar-wrap{display:flex !important;justify-content:center !important;align-items:center;}
#site .abhimat-ad-slot{display:flex !important;align-items:center;justify-content:center;
	flex:0 0 auto;margin-left:0 !important;margin-right:0 !important;overflow:hidden;}
#site .abhimat-ad-slot > a{display:block;width:100%;height:100%;}
#site .abhimat-ad-slot img{display:block;width:100% !important;height:100% !important;object-fit:contain;}
/* square: 300 x 250 */
#site .abhimat-ad-slot.abhimat-ad-hero,
#site .abhimat-ad-slot.abhimat-ad-sidebar{
	width:300px !important;height:250px !important;max-width:none !important;aspect-ratio:auto !important;}
/* tall half-page slot keeps its own format, centred: 300 x 600 */
#site .hero-trending .abhimat-ad-slot.abhimat-ad-hero2{
	width:300px !important;height:600px !important;max-width:none !important;aspect-ratio:auto !important;}
/* horizontal: 1080 x 150 */
#site .blogsy-banner-widget{max-width:100%;min-width:0;}
#site .blogsy-banner-widget .blogsy-banner{display:flex !important;justify-content:center !important;align-items:center;
	text-align:center;width:100%;min-width:0;}
#site .blogsy-banner-widget .blogsy-banner > a{display:block;flex:0 1 auto;width:100%;max-width:1080px;min-width:0;
	height:auto;line-height:0;margin-left:auto;margin-right:auto;}
#site .blogsy-banner-widget .blogsy-banner img{display:block;width:100%;max-width:1080px;height:auto;
	aspect-ratio:1080/150;object-fit:cover;margin:0 auto;}
#site .ab-cats > .blogsy-banner-item{min-width:0;max-width:100%;margin:18px 0;}

/* ---- 4. Post archive: fixed category blocks, 1 lead + 3 side stories ---- */
#site .ab-cats{display:flex;flex-direction:column;min-width:0;width:100%;max-width:100%;grid-column:1 / -1;}
#site .ab-cat-block{padding:24px 20px 26px;border-radius:10px;}
#site .ab-cat-block.is-alt{background:var(--ab-band);}
#site .ab-cat-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 18px;}
#site .ab-cat-name{margin:0;padding:1px 0 1px 12px;border-left:5px solid var(--ab-red);
	font-family:"Tiro Bangla",Georgia,serif;font-size:24px;line-height:1.3;font-weight:400;}
#site .ab-cat-name,
#site .ab-cat-lead h4,
#site .ab-cat-item h5{color:#15151c;}
#site .ab-cat-name a,
#site .ab-cat-lead h4 a,
#site .ab-cat-item h5 a{color:inherit !important;text-decoration:none;}
html[scheme=dark] #site .ab-cat-name,
html[scheme=dark] #site .ab-cat-lead h4,
html[scheme=dark] #site .ab-cat-item h5{color:#f2f2f5;}
#site .ab-cat-name a:hover,
#site .ab-cat-lead h4 a:hover,
#site .ab-cat-item h5 a:hover{color:var(--ab-red) !important;}
#site .ab-cat-more{flex:0 0 auto;font-family:"Tiro Bangla",serif;font-size:14px;color:var(--ab-red);text-decoration:none;white-space:nowrap;}
#site .ab-cat-more:hover{text-decoration:underline;}
#site .ab-cat-grid{display:grid;grid-template-columns:minmax(0,1.22fr) minmax(0,1fr);gap:26px;align-items:start;}
#site .ab-cat-thumb{display:block;background:#eceef1;}
#site .ab-cat-thumb img{width:100%;height:100%;object-fit:cover;display:block;transition:transform .35s ease;}
#site .ab-cat-lead:hover .ab-cat-thumb img,
#site .ab-cat-item:hover .ab-cat-thumb img{transform:scale(1.04);}
#site .ab-cat-lead{min-width:0;}
#site .ab-cat-lead .ab-cat-thumb{aspect-ratio:16/9;}
#site .ab-cat-lead h4{margin:13px 0 7px;font-family:"Tiro Bangla",Georgia,serif;font-size:21px;line-height:1.42;font-weight:600;}
#site .ab-cat-excerpt{margin:0;font-size:15px;line-height:1.7;color:#43434d;text-align:justify;text-align-last:start;
	display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;overflow:hidden;}
#site .ab-cat-readmore{display:inline-block;margin-top:6px;font-family:"Tiro Bangla",serif;font-size:14.5px;color:#1a5fd0;text-decoration:none;}
#site .ab-cat-readmore:hover{text-decoration:underline;}
#site .ab-cat-side{display:flex;flex-direction:column;min-width:0;}
#site .ab-cat-item{display:grid;grid-template-columns:156px minmax(0,1fr);gap:14px;align-items:start;
	padding:15px 0;border-top:1px solid rgba(17,17,26,.13);}
#site .ab-cat-item:first-child{padding-top:0;border-top:0;}
#site .ab-cat-item:last-child{padding-bottom:0;}
#site .ab-cat-item .ab-cat-thumb{aspect-ratio:3/2;}
#site .ab-cat-kicker{display:block;font-family:"Tiro Bangla",serif;font-size:13.5px;line-height:1.3;color:var(--ab-red);}
#site .ab-cat-item h5{margin:3px 0 5px;font-family:"Tiro Bangla",Georgia,serif;font-size:16.5px;line-height:1.45;font-weight:600;
	display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;overflow:hidden;}
#site .ab-cat-date{display:block;font-family:"Tiro Bangla",serif;font-size:12.5px;color:#6b6b78;}
html[scheme=dark] #site .ab-cat-block.is-alt{background:rgba(255,255,255,.06);}
html[scheme=dark] #site .ab-cat-excerpt{color:#b9b9c4;}
html[scheme=dark] #site .ab-cat-date{color:#9a9aa6;}
html[scheme=dark] #site .ab-cat-item{border-top-color:rgba(255,255,255,.16);}
@media only screen and (max-width:1024px){
	#site .ab-cat-grid{gap:20px;}
	#site .ab-cat-item{grid-template-columns:132px minmax(0,1fr);}
}
@media only screen and (max-width:767px){
	#site .ab-cat-block{padding:20px 12px 22px;margin-left:-4px;margin-right:-4px;}
	#site .ab-cat-grid{grid-template-columns:1fr;gap:16px;}
	#site .ab-cat-name{font-size:21px;}
	#site .ab-cat-lead h4{font-size:19px;}
	#site .ab-cat-item{grid-template-columns:118px minmax(0,1fr);gap:12px;}
	#site .ab-cat-item h5{font-size:15.5px;}
}

/* Homepage archive: the old running list stays hidden while the blocks move in */
html.ab-cats-on #site .default-archive-wrap > .default-post-list-item,
html.ab-cats-on #site .default-archive-wrap > .abhimat-cat-divider,
html.ab-cats-on #site .default-post-list-pagination{display:none !important;}
#site .ab-cat-thumb:empty{min-height:60px;}
