/* ==========================================================
   Daily Chalchitra ePaper - v14.0
   FIX: ফিক্সড-width প্রিন্ট কলাম + প্রিন্ট-transform রিসেট
   ========================================================== */
.dc-epaper{ max-width:1200px; margin:40px auto; padding:20px; box-sizing:border-box; }
.dc-epaper-title{ text-align:center; color:#C00000; font-size:34px; font-weight:900; margin-bottom:10px; font-family:'Noto Serif Bengali',serif !important; }
.dc-epaper-subtitle{ text-align:center; color:#666; margin-bottom:35px; font-size:16px; }
#dc-issues, #dc-archive-list{ display:block; width:100%; }
.dc-issue-grid{ display:grid !important; grid-template-columns:repeat(2,1fr); gap:14px; width:100%; }
@media screen and (min-width:600px){ .dc-issue-grid{ grid-template-columns:repeat(3,1fr); gap:20px; } }
@media screen and (min-width:1000px){ .dc-issue-grid{ grid-template-columns:repeat(4,1fr); } }
.dc-issue-card{ background:#fff; border:1px solid #e5e5e5; border-radius:12px; padding:12px; transition:.25s; box-shadow:0 4px 12px rgba(0,0,0,.06); text-decoration:none; color:inherit; display:flex; flex-direction:column; }
.dc-issue-card:hover{ transform:translateY(-4px); box-shadow:0 10px 22px rgba(0,0,0,.12); border-color:#C00000; }
.dc-issue-card h3{ font-size:16px; color:#111; margin-bottom:8px; line-height:1.35; font-family:'Noto Serif Bengali',serif; font-weight:700; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; min-height:42px; }
.dc-issue-card p{ color:#666; font-size:14px; margin-bottom:12px; flex-grow:1; }
.dc-issue-card span{ display:inline-block; background:#C00000; color:#fff; padding:8px 16px; border-radius:6px; font-size:14px; font-weight:600; text-align:center; }
.dc-cover{ width:100%; aspect-ratio:4/3; object-fit:cover; display:block; border-radius:8px; }
.dc-cover-fallback{ width:100%; aspect-ratio:4/3; background:#f3f3f3; display:flex; align-items:center; justify-content:center; color:#C00000; font-size:32px; border-radius:8px; }
.dc-body{ padding:12px 0 0 0; }
.dc-empty{ text-align:center; padding:80px 20px; color:#888; border:2px dashed #ddd; border-radius:10px; background:#fafafa; grid-column:1/-1; }
.dc-viewer{ width:100%; max-width:900px; margin:30px auto; padding:20px; background:#ffffff; box-sizing:border-box; overflow-x:hidden; }
#dc-title{ text-align:center; color:#C00000; font-size:32px; margin-bottom:8px; font-family:'Noto Serif Bengali',serif; font-weight:900; }
#dc-meta{ text-align:center; color:#333; font-size:16px; margin-bottom:18px; line-height:1.6; }

.dc-topbar{
  display:flex; justify-content:center; align-items:stretch; gap:10px;
  flex-wrap:wrap; margin:0 auto 14px auto; max-width:700px;
}
.dc-dropdown{ position:relative; flex:1 1 200px; }
.dc-dropdown-btn{
  width:100%; background:#C00000; color:#fff; border:none; border-radius:8px;
  padding:12px 14px; font-weight:700; font-size:14px; cursor:pointer;
  display:flex; align-items:center; justify-content:space-between; gap:8px;
  font-family:'Noto Sans Bengali','Hind Siliguri',sans-serif;
}
.dc-dropdown-btn:hover{ background:#8B0000; }
.dc-dropdown-btn i.fa-caret-down{ margin-left:auto; }
.dc-dropdown-menu{
  display:none; position:absolute; top:calc(100% + 6px); left:0; right:0;
  background:#fff; border:1px solid #e2e2e2; border-radius:10px;
  box-shadow:0 12px 30px rgba(0,0,0,.15); max-height:340px; overflow-y:auto;
  z-index:50; padding:6px;
}
.dc-dropdown.open .dc-dropdown-menu{ display:block; }
.dc-dd-loading{ text-align:center; padding:16px; color:#888; font-size:13px; }
.dc-dd-item{
  display:flex; justify-content:space-between; align-items:center; gap:10px;
  width:100%; text-align:left; background:none; border:none; cursor:pointer;
  padding:10px 12px; border-radius:6px; font-size:14px; color:#222;
  text-decoration:none; font-family:'Noto Sans Bengali','Hind Siliguri',sans-serif;
}
.dc-dd-item:hover{ background:#fdeaea; color:#C00000; }
.dc-dd-item.active{ background:#C00000; color:#fff; font-weight:700; }
.dc-dd-item span{ font-size:12px; color:#888; flex-shrink:0; }
.dc-dd-item.active span{ color:#fdd; }

.dc-viewer-toolbar, .dc-controls{ display:flex; justify-content:center; align-items:center; gap:10px; flex-wrap:wrap; margin:16px auto; }
.dc-viewer-toolbar button, .dc-controls button{ padding:8px 14px; border:none; border-radius:6px; background:#C00000; color:white; cursor:pointer; font-weight:600; }
.dc-viewer-toolbar button:disabled{ opacity:0.6; cursor:not-allowed; }
#dc-page-info{ font-weight:bold; }
.dc-pdf-box{ width:100%; overflow:hidden; text-align:center; position:relative; }
#dc-epaper-page{ width:100%; max-width:900px; margin:20px auto; background:white; padding:30px; box-sizing:border-box; box-shadow:0 0 20px rgba(0,0,0,.05); border:1px solid #eee; }

.dc-paper-head{ text-align:center; margin-bottom:8px; border-bottom:1.5px solid #000; padding-bottom:8px; }
.dc-paper-logo{ display:block; max-width:160px; height:auto; margin:0 auto 6px auto; }
.dc-paper-head-info{ display:flex; justify-content:center; gap:16px; flex-wrap:wrap; font-size:13px; color:#333; font-weight:600; }

#dc-post-columns{ column-count:3; column-gap:25px; text-align:justify; }
@media screen and (max-width:1100px){ #dc-post-columns{ column-count:2; } }
@media screen and (max-width:700px){ #dc-post-columns{ column-count:1; text-align:left; } }

#dc-post-columns.dc-short-page{ column-count:1 !important; }
#dc-post-columns.dc-short-page .dc-post-content{ font-size:17px; line-height:1.75; }
#dc-post-columns.dc-short-page h2{ font-size:21px; }
#dc-post-columns.dc-short-page .dc-post-card-cover{ aspect-ratio:16/8; }

.dc-post-card{ break-inside:avoid; page-break-inside:avoid; margin-bottom:10px; border-bottom:1px solid #e5e5e5; padding-bottom:8px; text-align:left; box-sizing:border-box; position:relative; background:#fff; }
.dc-post-card-header{ display:flex; gap:10px; align-items:flex-start; margin-bottom:6px; }
.dc-post-card-author-img{ width:50px; height:50px; object-fit:cover; border-radius:50%; flex-shrink:0; }
.dc-post-card-cover{ width:100%; aspect-ratio:16/10; object-fit:cover; border-radius:5px; display:block; }
.dc-post-card h2{ font-size:17px; margin:0 0 2px 0; line-height:1.25; font-family:'Noto Serif Bengali',serif; font-weight:700; color:#000; }
.dc-cat-author{ font-size:12px; color:#C00000; margin:1px 0 4px 0; border-left:3px solid #C00000; padding-left:8px; font-weight:600; display:block; font-family:'Noto Sans Bengali',sans-serif; }
.dc-post-date{ font-size:11px; color:#888; margin-bottom:4px; }
.dc-mini-pdf{ position:absolute; top:8px; right:8px; background:#fff; color:#C00000; border:1.2px solid #C00000; padding:3px 8px; border-radius:12px; font-size:11px; font-weight:600; text-decoration:none; display:flex; align-items:center; gap:4px; z-index:2; }
.dc-mini-pdf:hover{ background:#C00000; color:#fff; }

.dc-post-card .dc-post-content{ font-family:'Noto Serif Bengali',serif; font-weight:400; font-size:14px; line-height:1.4; color:#222; }
.dc-post-card .dc-post-content p{ margin:0 0 6px 0; padding:0; }
.kobita-pera{ display:block; margin:0 0 4px 0; padding:0; line-height:1.35; }
.kobita-pera.kobita-date{ display:block; width:100%; margin-top:4px; text-align:left; font-size:12px; font-style:italic; color:#555; }
#dc-epaper-page p:empty{ display:none; }
.dc-post-card small{ display:none; }

#dc-year-list{ display:flex; gap:10px; flex-wrap:wrap; justify-content:center; margin:20px 0; }
.dc-year-btn{ padding:8px 16px; border:1.5px solid #C00000; border-radius:20px; background:#ffffff; color:#C00000; cursor:pointer; font-weight:600; transition:0.25s; }
.dc-year-btn:hover, .dc-year-btn.active{ background:#C00000; color:#ffffff; }

.dc-bottom-allpages{
  display:block; width:100%; max-width:900px; margin:20px auto 0 auto;
  background:#C00000; color:#fff; border:none; padding:14px; border-radius:8px;
  font-size:16px; font-weight:700; cursor:pointer;
  font-family:'Noto Sans Bengali','Hind Siliguri',sans-serif;
}
.dc-bottom-allpages:hover{ background:#8B0000; }

/* ===== অফস্ক্রিন PDF ক্যাপচার পেজ - ফিক্সড-width ৪-কলাম গ্রিড ===== */
.dc-capture-page{ width:1000px; background:#fff; padding:25px; box-sizing:border-box; }
.dc-print-columns{ display:flex; align-items:flex-start; }
.dc-print-col{
  flex:0 0 224px; width:224px; box-sizing:border-box; padding:0 12px;
}
.dc-print-col:not(:first-child){ border-left:1px solid #ccc; }
.dc-capture-page .dc-post-content{ font-size:12px !important; line-height:1.5 !important; }
.dc-capture-page .dc-post-card h2{ font-size:14px !important; }
.dc-capture-page .dc-post-card-cover{ aspect-ratio:16/10; }

@media screen and (max-width:700px){
  .dc-epaper{ padding:10px; margin:20px auto; }
  .dc-epaper-title{ font-size:24px; }
  #dc-epaper-page{ padding:12px; }
  .dc-viewer{ padding:8px; margin-top:10px; }
  .dc-post-card h2{ font-size:16px; }
  .dc-post-card .dc-post-content{ font-size:14px; }
  .kobita-pera{ font-size:14px; }
  #dc-title{ font-size:22px; }
  .dc-dropdown{ flex:1 1 45%; }
  .dc-dropdown-btn{ font-size:13px; padding:10px; }
}
@media screen and (max-width:599px){
  .dc-cover, .dc-cover-fallback{ aspect-ratio:2/1 !important; }
  .dc-issue-card h3{ font-size:13px; -webkit-line-clamp:1; min-height:auto; }
  .dc-issue-card p{ display:none; }
  .dc-body{ padding:8px 0 0 0; }
  .dc-issue-card{ padding:8px; }
}

@media print{
  header, #my-new-header, #dc-side-menu, .dc-viewer-toolbar, .dc-controls, .dc-topbar,
  .dc-bottom-allpages, .dc-mini-pdf, .menu-bar, .ticker-container, .footer-bottom-red{ display:none !important; }
  body *{ visibility:hidden; }
  #dc-epaper-page, #dc-epaper-page *{ visibility:visible; }
  #dc-epaper-page{
    position:absolute; left:0; top:0; width:100%; margin:0; padding:12px;
    box-shadow:none; border:none;
    transform:none !important; /* zoom করা থাকলেও প্রিন্টে বাদ - "খালি পেজ" বাগ ফিক্স */
  }
  @page{ margin:0.4cm; size:A4 portrait; }
}
