/* ===== DhakaPost front page: top area + image sizes ===== */

/* Fixed image boxes: every thumbnail has a ratio, image is cropped to fit */
.dp-thumb{display:block;position:relative;overflow:hidden;background:#e9ecef;width:100%}
.dp-thumb img{display:block;width:100%;height:100%;object-fit:cover;max-width:none}
.dp-thumb--lead{aspect-ratio:730/400}
.dp-thumb--medium{aspect-ratio:358/215}
.dp-thumb--side{aspect-ratio:4/3}
@supports not (aspect-ratio:1/1){
    .dp-thumb::before{content:"";display:block;padding-top:60%}
    .dp-thumb--lead::before{padding-top:54.79%}
    .dp-thumb--medium::before{padding-top:60.05%}
    .dp-thumb--side::before{padding-top:75%}
    .dp-thumb img{position:absolute;top:0;left:0}
}

/* Layout */
.dp-top{margin-top:0}
.dp-top-wrap{padding:16px 0}
.dp-top-grid{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:16px;align-items:start}
.dp-main{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
.dp-lead{grid-column:span 2;border-bottom:1px solid #ddd;padding-bottom:12px}
.dp-mid{display:flex;flex-direction:column;gap:16px}
.dp-card .dp-card-title,.dp-mid-item .dp-card-title{font-size:15px;line-height:1.4;font-weight:500;margin:8px 0 0}
.dp-card a,.dp-mid-item a,.dp-lead a{color:#111}
.dp-card a:hover .dp-card-title,.dp-mid-item a:hover .dp-card-title,.dp-lead a:hover .dp-lead-title{color:#124B65}

.dp-lead-title{font-size:23px;line-height:1.3;font-weight:700;margin:10px 0 6px}
.dp-lead-excerpt{font-size:13px;line-height:1.6;color:#444;margin:0}
.dp-card-excerpt{font-size:14px;line-height:1.6;color:#555;margin:6px 0 0}

/* Sidebar tabs */
.dp-side{border:1px solid #124B65;background:#f4f6f7;display:flex;flex-direction:column;height:var(--dp-side-h,495px)}
.dp-tabs{display:flex;flex:0 0 auto}
.dp-tab-btn{flex:1;border:0;border-radius:0;padding:15px 6px;font-size:19px;cursor:pointer;background:#e5ebed;color:#111;font-weight:600}
.dp-tab-btn.active{background:#124B65;color:#fff}
.dp-pane-wrap{position:relative;flex:1 1 auto;min-height:0}
.dp-pane{display:none;position:absolute;top:0;right:0;bottom:0;left:0;overflow-y:auto;padding:0 8px;background:#f8f8f8}
.dp-pane.active{display:block}
.dp-side-item{display:flex;gap:8px;padding:8px 0;border-bottom:1px solid #ddd;align-items:flex-start}
.dp-side-item .dp-thumb{flex:0 0 80px;width:80px}
.dp-side-item .dp-side-title{font-size:14.5px;line-height:1.4;font-weight:500;color:#111}
.dp-side-item:hover .dp-side-title{color:#124B65}
.dp-side-btn{flex:0 0 auto;display:block;text-align:center;background:#124B65;color:#fff!important;padding:11px 8px;font-size:16px;font-weight:600}
.dp-side-btn:hover{background:#0d374c}

/* ===== Tablet ===== */
@media (max-width:991.98px){
    .dp-top-grid{grid-template-columns:1fr}
    .dp-side{height:auto}
    .dp-pane-wrap{min-height:380px}
    .dp-lead-title{font-size:22px}
}
/* ===== Mobile ===== */
@media (max-width:767.98px){
    .dp-main{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px 12px}
    .dp-lead{grid-column:span 2}
    .dp-mid{grid-column:span 2;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
    .dp-lead-title{font-size:20px}
    .dp-card .dp-card-title,.dp-mid-item .dp-card-title{font-size:15px}
}

/* ===== Section 1 design (blue box) ===== */
.dp-s1{background:var(--dp-s1-bg,#2573bf);padding:12px 12px 14px}
.dp-s1-head{border-bottom:1px solid #fff;margin-bottom:8px;padding-bottom:3px}
.dp-s1-title{color:#fff!important;font-size:16px;font-weight:700;line-height:1.4;display:inline-block}
.dp-s1-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,2.07fr) minmax(0,1fr);gap:16px;align-items:stretch}
.dp-s1-col{display:flex;flex-direction:column;gap:12px;min-width:0}
.dp-s1-card{display:flex;flex-direction:column;flex:1 1 0;background:#fff;box-shadow:0 1px 4px rgba(0,0,0,.28);color:#111}
.dp-s1-card .dp-s1-thumb{aspect-ratio:16/10}
.dp-s1-card-title{font-size:15px;line-height:1.4;font-weight:700;color:#111;margin:0;padding:8px 10px 10px}
.dp-s1-card:hover .dp-s1-card-title,.dp-s1-lead:hover .dp-s1-lead-title{color:#124B65}
.dp-s1-center{gap:0}
.dp-s1-lead{display:flex;flex-direction:column;height:100%;background:#f5f6f8;box-shadow:0 1px 4px rgba(0,0,0,.28);color:#111}
.dp-s1-lead .dp-s1-lead-thumb{aspect-ratio:17/10}
.dp-s1-lead-cap{display:block;padding:12px 14px 14px}
.dp-s1-lead-title{font-size:20px;line-height:1.35;font-weight:700;margin:0 0 8px;color:#111}
.dp-s1-lead-desc{font-size:14px;line-height:1.65;color:#555;margin:0}
.dp-s1-foot{text-align:right;margin-top:10px}
.dp-s1-more{color:#fff!important;font-size:14px;font-weight:700;display:inline-flex;align-items:center;gap:6px}
.dp-s1-more-ico{display:inline-flex;align-items:center;justify-content:center;width:20px;height:20px;border:1.5px solid #fff;border-radius:50%;font-size:14px;line-height:1}
.dp-s1-more:hover{opacity:.85}
@media (max-width:991.98px){
    .dp-s1-grid{grid-template-columns:1fr 1fr}
    .dp-s1-center{grid-column:1 / -1;order:-1}
    .dp-s1-col:not(.dp-s1-center){display:grid;grid-template-columns:1fr;gap:12px}
}
@media (max-width:575.98px){
    .dp-s1-grid{grid-template-columns:1fr}
    .dp-s1-col:not(.dp-s1-center){grid-template-columns:1fr 1fr}
    .dp-s1-lead-title{font-size:18px}
}

/* ===== Section 2+3 dual layout (Bangladesh grid+text | Adalot list) – fixed design ===== */
.dp-s23-wrap{margin-top:1.25rem}
.dp-s23{
	display:grid;
	grid-template-columns:minmax(0,2.15fr) minmax(0,1fr);
	gap:20px;
	align-items:start;
}
.dp-s23-left,
.dp-s23-right{
	min-width:0;
	background:#fff;
}

/* Shared red header */
.dp-s23-head{
	display:flex;
	align-items:center;
	justify-content:space-between;
	margin-bottom:10px;
	padding-bottom:6px;
	border-bottom:2px solid #c00;
}
.dp-s23-title{
	display:inline-block;
	background:#c00;
	color:#fff!important;
	font-size:15px;
	font-weight:700;
	line-height:1.3;
	padding:5px 12px 6px;
	text-decoration:none!important;
}
.dp-s23-title:hover{opacity:.92;color:#fff!important}
.dp-s23-more{
	font-size:13px;
	font-weight:600;
	color:#333!important;
	text-decoration:none!important;
	white-space:nowrap;
}
.dp-s23-more:hover{color:#c00!important}
.dp-s23-more .fa{margin-left:2px}

/* Bangladesh inner: grid | text side-by-side */
.dp-s23-left-inner{
	display:grid;
	grid-template-columns:minmax(0,1.35fr) minmax(0,1fr);
	gap:16px;
	align-items:start;
}

/* 2×2 image cards */
.dp-s23-grid{
	display:grid;
	grid-template-columns:1fr 1fr;
	gap:12px 14px;
}
.dp-s23-card{
	display:flex;
	flex-direction:column;
	color:#111;
	text-decoration:none!important;
}
.dp-s23-card .dp-s23-thumb{
	aspect-ratio:16/10;
	margin-bottom:7px;
}
.dp-s23-card-title{
	font-size:14.5px;
	line-height:1.4;
	font-weight:600;
	margin:0;
	color:#111;
}
.dp-s23-card:hover .dp-s23-card-title{color:#c00}

/* Text-only list (middle column under Bangladesh) */
.dp-s23-textlist{
	display:flex;
	flex-direction:column;
}
.dp-s23-text-item{
	display:block;
	padding:9px 0;
	border-bottom:1px solid #e8e8e8;
	color:#111;
	text-decoration:none!important;
}
.dp-s23-text-item:first-child{padding-top:0}
.dp-s23-text-item:last-child{border-bottom:0;padding-bottom:0}
.dp-s23-text-title{
	font-size:14.5px;
	line-height:1.45;
	font-weight:500;
	color:#111;
	display:-webkit-box;
	-webkit-line-clamp:3;
	-webkit-box-orient:vertical;
	overflow:hidden;
}
.dp-s23-text-item:hover .dp-s23-text-title{color:#c00}

/* Adalot right list with thumbs */
.dp-s23-list{
	display:flex;
	flex-direction:column;
}
.dp-s23-list-item{
	display:flex;
	gap:10px;
	align-items:flex-start;
	padding:10px 0;
	border-bottom:1px solid #e5e5e5;
	color:#111;
	text-decoration:none!important;
}
.dp-s23-list-item:first-child{padding-top:2px}
.dp-s23-list-item:last-child{border-bottom:0;padding-bottom:0}
.dp-s23-list-thumb{
	flex:0 0 70px;
	width:70px;
	aspect-ratio:1/1;
}
.dp-s23-list-title{
	font-size:14.5px;
	line-height:1.45;
	font-weight:500;
	color:#111;
	display:-webkit-box;
	-webkit-line-clamp:3;
	-webkit-box-orient:vertical;
	overflow:hidden;
}
.dp-s23-list-item:hover .dp-s23-list-title{color:#c00}

/* Responsive */
@media (max-width:991.98px){
	.dp-s23{grid-template-columns:1fr;gap:24px}
	.dp-s23-left-inner{grid-template-columns:1fr 1fr;gap:14px}
}
@media (max-width:767.98px){
	.dp-s23-left-inner{grid-template-columns:1fr;gap:16px}
}
@media (max-width:575.98px){
	.dp-s23-grid{gap:10px}
	.dp-s23-card-title{font-size:13.5px}
	.dp-s23-text-title{font-size:14px}
	.dp-s23-list-thumb{flex-basis:60px;width:60px}
	.dp-s23-list-title{font-size:14px}
}

/* ===== Sections 4+ : paired design ===== */
.dp-pair{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.dp-pair--single{grid-template-columns:minmax(0,1fr)}
.dp-pair a{color:#111;text-decoration:none}
.dp-pair-head{display:flex;justify-content:space-between;align-items:flex-end}
.dp-pair-label{display:inline-block;background:#be2026;color:#fff!important;font-size:15px;font-weight:700;line-height:1.3;padding:5px 12px;margin:0}
.dp-pair-empty{padding:14px;color:#777;font-size:13px}

/* Type A : grey box, white cards */
.dp-pair--a{background:#eeeeea;padding:12px}
.dp-pair--a .dp-pair-sec{background:#fff;padding:6px 6px 10px;border-bottom:1px solid #1f9d3a}
.dp-pair--a .dp-pair-head{border-bottom:1px solid #444;padding-bottom:0;margin-bottom:8px}
.dp-pair-tools{display:flex;align-items:center;gap:14px;padding-bottom:4px}
.dp-pair-share{display:inline-flex;gap:9px;font-size:14px}
.dp-pair-share .gp{color:#dd4b39!important}.dp-pair-share .fb{color:#3b5998!important}
.dp-pair-share .tw{color:#1da1f2!important}.dp-pair-share .in{color:#0077b5!important}
.dp-pair-all{color:#1a73c8!important;font-size:16px;font-weight:500}
.dp-pa-body{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.05fr);gap:8px}
.dp-pa-big{display:block;min-width:0}
.dp-pa-big-thumb{aspect-ratio:358/215}
.dp-pa-big-title{font-size:17px;line-height:1.3;font-weight:700;margin:8px 0 4px;color:#111}
.dp-pa-big-desc{font-size:12.5px;line-height:1.5;color:#444;margin:0}
.dp-pa-list{min-width:0}
.dp-pa-item{display:flex;gap:8px;align-items:flex-start;padding:6px 0;border-bottom:1px solid #cfcfcf}
.dp-pa-item:first-child{padding-top:0}
.dp-pa-item:last-child{border-bottom:0}
.dp-pa-item-thumb{flex:0 0 80px;width:80px;aspect-ratio:16/10}
.dp-pa-item-title{font-size:13.5px;line-height:1.35;font-weight:700;color:#111}
.dp-pa-big:hover .dp-pa-big-title,.dp-pa-item:hover .dp-pa-item-title{color:#be2026}

/* Type B : blue line, card with shadow */
.dp-pair--b{gap:24px}
.dp-pair--b .dp-pair-head{border-bottom:1px solid #1a8cf0;margin-bottom:8px}
.dp-pair--b .dp-pair-sec{background:transparent}
.dp-pb-body{background:#fff;box-shadow:0 1px 5px rgba(0,0,0,.22);padding-bottom:8px}
.dp-pb-big{display:block}
.dp-pb-big-thumb{aspect-ratio:730/400}
.dp-pb-big-title{font-size:18px;line-height:1.35;font-weight:700;margin:0;padding:10px 8px 8px;color:#111}
.dp-pb-big-desc{font-size:13px;line-height:1.55;color:#555;margin:0;padding:0 8px 6px}
.dp-pb-row{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;padding:0 8px}
.dp-pb-card{display:block;min-width:0}
.dp-pb-card-thumb{aspect-ratio:358/215}
.dp-pb-card-title{display:block;font-size:14px;line-height:1.35;font-weight:700;color:#111;padding-top:6px}
.dp-pb-big:hover .dp-pb-big-title,.dp-pb-card:hover .dp-pb-card-title{color:#be2026}

@media (max-width:767.98px){
    .dp-pair,.dp-pair--b{grid-template-columns:minmax(0,1fr)}
    .dp-pa-body{grid-template-columns:minmax(0,1fr)}
    .dp-pb-row{grid-template-columns:repeat(2,minmax(0,1fr))}
}

/* ===== Sections 8+ : rows (3 columns / 4 columns) ===== */
.dp-row{display:grid;gap:24px}
.dp-row--d{gap:20px}
.dp-row--n1{grid-template-columns:minmax(0,1fr)}
.dp-row--n2{grid-template-columns:repeat(2,minmax(0,1fr))}
.dp-row--n3{grid-template-columns:repeat(3,minmax(0,1fr))}
.dp-row--n4{grid-template-columns:repeat(4,minmax(0,1fr))}
.dp-row a{color:#111;text-decoration:none}

/* type C : red label, blue line, thumb + bold title */
.dp-row-sec--c .dp-row-head{border-bottom:1px solid #1a8cf0;margin-bottom:6px}
.dp-row-sec--c .dp-row-label{display:inline-block;background:#be2026;color:#fff!important;font-size:15px;font-weight:700;line-height:1.3;padding:5px 12px}
.dp-rc-item{display:flex;gap:10px;align-items:center;padding:8px 0;border-bottom:1px solid #d9d9d9}
.dp-rc-item:last-child{border-bottom:0}
.dp-rc-thumb{flex:0 0 84px;width:84px;aspect-ratio:3/2}
.dp-rc-title{font-size:13.5px;line-height:1.4;font-weight:700;color:#111}
.dp-rc-item:hover .dp-rc-title{color:#be2026}

/* type D : plain heading, big image, text list */
.dp-row-sec--d .dp-row-head{border-bottom:3px double #bbb;margin-bottom:8px;padding-bottom:2px}
.dp-row-sec--d .dp-row-label{display:inline-block;font-size:20px;font-weight:400;line-height:1.4;color:#222!important}
.dp-rd-big{display:block}
.dp-rd-thumb{aspect-ratio:5/3}
.dp-rd-big-title{display:block;font-size:14.5px;line-height:1.4;font-weight:700;color:#111;padding:7px 0 8px;border-bottom:1px solid #d9d9d9}
.dp-rd-big-desc{display:block;font-size:12.5px;line-height:1.5;color:#555;padding-top:6px}
.dp-rd-item{display:block;font-size:13.5px;line-height:1.4;font-weight:500;color:#111;padding:8px 0;border-bottom:1px dotted #9a9a9a}
.dp-rd-item:last-child{border-bottom:0}
.dp-rd-big:hover .dp-rd-big-title,.dp-rd-item:hover{color:#be2026}

@media (max-width:991.98px){
    .dp-row--n2,.dp-row--n3,.dp-row--n4{grid-template-columns:repeat(2,minmax(0,1fr))}
    .dp-row--n1{grid-template-columns:minmax(0,1fr)}
}
@media (max-width:767.98px){
    .dp-row--n2,.dp-row--n3,.dp-row--n4{grid-template-columns:minmax(0,1fr)}
}
.dp-pair-share .wa{color:#25d366!important}

.dp-s23--single{grid-template-columns:minmax(0,1fr)}
