/* =====================================================================
   দেশের আয়না: খবরের পাতা
   সংবাদপত্রের ধাঁচ: সাদা পাতা, পাতলা রেখা, সোজা কোণ, পরিষ্কার টাইপোগ্রাফি
   ===================================================================== */

.dr-single { background: #fff; padding: 18px 0 8px; }
.dr-swrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.dr-single a { text-decoration: none; }

/* অবস্থান */
.dr-crumb { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 14px; color: #777; padding-bottom: 14px; margin-bottom: 22px; border-bottom: 1px solid #E6E6E6; }
.dr-crumb a { color: #555; }
.dr-crumb a:hover { color: var(--dr-red); }

/* বিন্যাস */
.dr-sgrid { display: grid; grid-template-columns: minmax(0, 1fr) 336px; gap: 0 44px; align-items: start; }
.dr-article { min-width: 0; }
.dr-saside { border-left: 1px solid #E6E6E6; padding-left: 30px; min-height: 100%; }
.dr-saside-in { position: sticky; top: 76px; }
.admin-bar .dr-saside-in { top: 108px; }

/* শিরোনাম অংশ */
.dr-kat { display: inline-block; color: var(--c) !important; font-size: 15px; font-weight: 700; padding-bottom: 3px; border-bottom: 2px solid var(--c); margin-bottom: 14px; }
.dr-kat:hover { opacity: .85; }
.dr-headline { font-size: 40px !important; line-height: 1.32 !important; font-weight: 700; color: #111; margin: 0 0 14px !important; }
.dr-standfirst { font-size: 20px; line-height: 1.7; color: #444; font-weight: 500; margin: 0 0 18px; }

.dr-byline { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 24px; padding: 12px 0; border-top: 1px solid #E3E3E3; border-bottom: 1px solid #E3E3E3; margin-top: 6px; }
.dr-byline-main { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 22px; min-width: 0; }
.dr-author { display: inline-flex; align-items: center; gap: 7px; font-size: 15px; font-weight: 700; color: #222; }
.dr-author svg { color: #777; }
.dr-dates { display: flex; flex-wrap: wrap; gap: 4px 18px; font-size: 14px; color: #555; font-weight: 500; }
.dr-dates > span + span { padding-left: 18px; border-left: 1px solid #DDD; }
.dr-views { display: inline-flex; align-items: center; gap: 7px; font-size: 14px; color: #666; font-weight: 500; white-space: nowrap; }
.dr-views svg { color: #888; }
.dr-views strong { color: #111; font-size: 16px; font-weight: 700; }

/* শেয়ার ও সরঞ্জাম */
.dr-tools { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin: 14px 0 20px; }
.dr-share { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.dr-share-label { font-size: 15px; font-weight: 700; color: #222; margin-right: 6px; }
.dr-sbtn {
	width: 38px; height: 38px; display: inline-flex; align-items: center; justify-content: center;
	border: 1px solid #DADADA; border-radius: 3px; background: #fff; color: #333 !important; cursor: pointer; padding: 0;
	transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.dr-sbtn[hidden] { display: none; }
.dr-sbtn:hover { color: #fff !important; }
.dr-sbtn-fb:hover { background: #1877F2; border-color: #1877F2; }
.dr-sbtn-wa:hover { background: #1FA855; border-color: #1FA855; }
.dr-sbtn-x:hover { background: #111; border-color: #111; }
button.dr-sbtn:hover { background: #333; border-color: #333; }
.dr-share-sep { width: 1px; height: 24px; background: #DDD; margin: 0 4px; }
.dr-tbtn {
	height: 38px; display: inline-flex; align-items: center; gap: 7px; padding: 0 13px;
	border: 1px solid #DADADA; border-radius: 3px; background: #fff; color: #222 !important;
	font-size: 14px; font-weight: 600; cursor: pointer; white-space: nowrap;
}
.dr-tbtn:hover { border-color: #111; }
.dr-fs { display: inline-flex; border: 1px solid #DADADA; border-radius: 3px; overflow: hidden; }
.dr-fs button { width: 42px; height: 36px; border: 0; background: #fff; color: #222; font-size: 15px; font-weight: 700; cursor: pointer; }
.dr-fs button + button { border-left: 1px solid #DADADA; }
.dr-fs button:hover { background: #F3F3F3; }

/* ছবি */
.dr-figure { margin: 0 0 24px; }
.dr-figure-img { width: 100%; height: auto; display: block; }
.dr-figure figcaption { font-size: 14px; line-height: 1.6; color: #666; padding: 9px 0; border-bottom: 1px solid #EEE; font-weight: 500; }

/* প্রিন্ট নিউজ + ফটোকার্ড: ছবির নিচে এক সারিতে ছোট বোতাম */
.dr-quick { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0 0 22px; }
.dr-qbtn {
	display: inline-flex; align-items: center; gap: 7px; height: 36px; padding: 0 14px;
	border-radius: 3px; font-size: 14px; font-weight: 600; line-height: 1; cursor: pointer; white-space: nowrap;
	transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.dr-qbtn svg { flex: 0 0 auto; }
.dr-qbtn-print { background: #fff; color: #0F6236 !important; border: 1px solid #0F6236; }
.dr-qbtn-print:hover { background: #0F6236; color: #fff !important; }
.dr-qbtn-card { background: #D7191F; color: #fff; border: 1px solid #D7191F; }
.dr-qbtn-card:hover { background: #B5121A; border-color: #B5121A; }
.dr-qbtn:focus-visible { outline: 2px solid #1D4ED8; outline-offset: 2px; }

/* পুরনো প্লাগইনের বোতাম লেখার ভেতরে দেখা গেলে লুকানো (স্ক্রিপ্ট সেগুলো পুরোপুরি সরিয়ে দেয়) */
.dr-body > :has(img[src*="print-bangla-news"]),
.dr-body > :has(img[src*="news-card-generator"]),
.dr-body a:has(> img[src*="print-bangla-news"]) { display: none !important; }

/* লেখা */
.dr-body { --dr-fs: 19px; font-size: var(--dr-fs); line-height: 1.9; color: #1A1A1A; overflow-wrap: break-word; }
.dr-body p, .dr-body li { font-size: var(--dr-fs) !important; font-weight: 400 !important; line-height: 1.9; }
.dr-body p { margin: 0 0 1.05em; }
.dr-body a { color: var(--c); text-decoration: underline; text-underline-offset: 3px; }
.dr-body h2, .dr-body h3, .dr-body h4 { font-size: 1.2em !important; line-height: 1.5; margin: 1.4em 0 .6em; color: #111; }
.dr-body ul, .dr-body ol { padding-left: 1.4em; margin: 0 0 1.05em; }
.dr-body blockquote { margin: 1.4em 0; padding: 4px 0 4px 20px; border-left: 3px solid var(--c); color: #333; }
.dr-body img { max-width: 100%; height: auto; }
.dr-body figure, .dr-body .wp-caption { max-width: 100%; margin: 1.4em 0; }
.dr-body figcaption, .dr-body .wp-caption-text { font-size: 14px !important; color: #666; padding-top: 6px; }
.dr-body iframe { max-width: 100%; }
.dr-body table { width: 100%; border-collapse: collapse; font-size: .9em; }
.dr-body th, .dr-body td { border: 1px solid #DDD; padding: 8px 10px; }
.dr-pages { margin: 20px 0; font-size: 15px; display: flex; gap: 8px; }

/* ট্যাগ ও নিচের শেয়ার */
.dr-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 26px; }
.dr-tags-label { font-size: 15px; font-weight: 700; color: #222; margin-right: 2px; }
.dr-tags a { font-size: 14px; color: #333; border: 1px solid #DADADA; border-radius: 2px; padding: 4px 12px; font-weight: 500; }
.dr-tags a:hover { border-color: var(--c); color: var(--c); }
.dr-abottom { margin-top: 22px; padding-top: 16px; border-top: 1px solid #E3E3E3; }
.dr-ad-inline { margin: 26px 0 0; }
.dr-body .dr-ad-inline { margin: 28px 0; clear: both; }
.dr-ad-box { margin-bottom: 26px; }
.dr-ad-stop { margin: 0 auto 22px; max-width: 970px; }

/* পাশের অংশ */
.dr-box { margin-bottom: 30px; }
.dr-box-title { font-size: 20px !important; color: #111; margin: 0 0 4px !important; padding-top: 10px; border-top: 3px solid var(--dr-red); }
.dr-box-list, .dr-box-rank { list-style: none; margin: 0; padding: 0; }
.dr-box-list li, .dr-box-rank li { display: flex; gap: 12px; align-items: flex-start; padding: 12px 0; border-bottom: 1px solid #EEE; }
.dr-box-list li:last-child, .dr-box-rank li:last-child { border-bottom: 0; }
.dr-box-thumb { flex: 0 0 92px; height: 62px; overflow: hidden; background: #F1F1F1; display: block; }
.dr-box-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.dr-box-thumb .dr-img-default { object-fit: contain; padding: 10px; opacity: .4; }
.dr-box-link { display: block; font-size: 15.5px; line-height: 1.5; font-weight: 600; color: #111; }
.dr-box-link:hover { color: var(--dr-red); }
.dr-box-meta { display: inline-flex; align-items: center; gap: 5px; margin-top: 4px; font-size: 13px; color: #777; font-weight: 500; }
.dr-rank { flex: 0 0 30px; font-size: 30px; line-height: 1.1; font-weight: 700; color: #C4C4C4; }

/* এই বিষয়ে আরও পড়ুন */
.dr-related { margin-top: 44px; padding-top: 12px; border-top: 3px solid #111; }
.dr-related-title { font-size: 24px !important; color: #111; margin: 0 0 20px !important; }
.dr-related-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px 24px; }
.dr-rel-media { display: block; position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--t, #F1F1F1); }
.dr-rel-media .dr-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.dr-rel-media .dr-img-default { object-fit: contain; padding: 14% 18%; opacity: .4; }
.dr-rel-title { font-size: 17px !important; line-height: 1.5 !important; font-weight: 600; margin: 10px 0 4px !important; }
.dr-rel-title a { color: #111; }
.dr-rel-title a:hover { color: var(--dr-red); }
.dr-rel-meta { font-size: 13px; color: #777; font-weight: 500; }

/* নিউজ কার্ড ডায়ালগ */
.dr-cardbox { border: 0; padding: 0; width: min(540px, 94vw); max-height: 94vh; border-radius: 4px; box-shadow: 0 12px 40px rgba(0,0,0,.3); color: #111; }
.dr-cardbox::backdrop { background: rgba(0, 0, 0, .6); }
.dr-cardbox-head { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; border-bottom: 1px solid #E6E6E6; }
.dr-cardbox-head h2 { font-size: 18px !important; margin: 0 !important; }
.dr-cardbox-x { width: 38px; height: 38px; border: 0; background: transparent; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; color: #333; }
.dr-cardbox-x:hover { background: #F2F2F2; }
.dr-cardbox-body { padding: 16px; background: #F3F3F3; }
.dr-cardbox-body img { display: block; width: 100%; height: auto; border: 1px solid #DDD; background: #fff; }
.dr-cardbox-status { margin: 0; padding: 60px 0; text-align: center; font-size: 15px; color: #555; }
.dr-cardbox-status[hidden] { display: none; }
.dr-cardbox-foot { display: flex; flex-wrap: wrap; gap: 10px; padding: 14px 16px; border-top: 1px solid #E6E6E6; }
.dr-btn-primary, .dr-btn-ghost { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 18px; border-radius: 3px; font-size: 15px; font-weight: 700; cursor: pointer; }
.dr-btn-primary { background: var(--dr-red); color: #fff !important; border: 1px solid var(--dr-red); }
.dr-btn-primary:hover { background: var(--dr-red-dark); }
.dr-btn-primary[aria-disabled="true"] { opacity: .5; pointer-events: none; }
.dr-btn-ghost { background: #fff; color: #222; border: 1px solid #CCC; }
.dr-btn-ghost[hidden] { display: none; }
.dr-btn-ghost:hover { border-color: #111; }

/* ছোট বার্তা */
.dr-toast { position: fixed; left: 50%; bottom: 32px; transform: translate(-50%, 10px); z-index: 4000; background: #111; color: #fff; padding: 10px 18px; border-radius: 3px; font-size: 14px; opacity: 0; transition: opacity .2s ease, transform .2s ease; }
.dr-toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* ---------- রেস্পন্সিভ ---------- */
@media (max-width: 991px) {
	.dr-sgrid { grid-template-columns: minmax(0, 1fr); }
	.dr-saside { border-left: 0; padding-left: 0; margin-top: 36px; padding-top: 4px; }
	.dr-saside-in { position: static; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 30px; }
	.dr-saside-in .dr-ad-box { grid-column: 1 / -1; }
	.dr-related-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.dr-headline { font-size: 34px !important; }
}

@media (max-width: 767px) {
	.dr-single { padding-top: 10px; }
	.dr-swrap { padding: 0 16px; }
	.dr-crumb { font-size: 13px; padding-bottom: 10px; margin-bottom: 16px; }
	.dr-headline { font-size: 27px !important; line-height: 1.38 !important; }
	.dr-standfirst { font-size: 17px; }
	.dr-byline { flex-direction: column; align-items: flex-start; gap: 8px; }
	.dr-byline-main { flex-direction: column; align-items: flex-start; gap: 4px; }
	.dr-dates { flex-direction: column; gap: 2px; font-size: 13.5px; }
	.dr-dates > span + span { padding-left: 0; border-left: 0; }
	.dr-tools { gap: 10px; }
	.dr-sbtn { width: 40px; height: 40px; }
	.dr-tbtn { height: 40px; padding: 0 11px; }
	/* মোবাইলে: প্রথম সারিতে শেয়ার আইকন, দ্বিতীয় সারিতে প্রিন্ট, নিউজ কার্ড ও লেখার আকার */
	.dr-tools { justify-content: flex-start; gap: 8px; }
	.dr-share-top { display: contents; }
	.dr-share-top .dr-share-sep { flex-basis: 100%; width: auto; height: 0; margin: 0; background: none; }
	.dr-tools .dr-fs { margin-left: auto; }
	.dr-figure { margin: 0 -16px 20px; }
	.dr-figure figcaption { padding: 8px 16px; }
	.dr-saside-in { display: block; }
	.dr-related-grid { grid-template-columns: minmax(0, 1fr); gap: 0; }
	.dr-rel { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid #EEE; }
	.dr-rel-media { flex: 0 0 116px; height: 76px; aspect-ratio: auto; }
	.dr-rel-title { font-size: 16px !important; margin: 0 0 4px !important; }
	.dr-toast { bottom: 84px; }
}

@media print {
	.dr-tools, .dr-abottom, .dr-saside, .dr-related, .dr-crumb { display: none !important; }
	.dr-sgrid { display: block; }
}
