/* Small additions for the Laravel version (kept separate from the original theme CSS). */
.home-ad-row { margin-bottom: 20px; }
.home-ad-row .codedokan_widget img { max-width: 100%; height: auto; }
.codedokan-incontent-ad { margin: 20px 0; text-align: center; }
.codedokan-incontent-ad-label { display: block; font-size: 12px; color: #888; margin-bottom: 4px; }
.single-content2 img { max-width: 100%; height: auto; }
.single-content2 iframe { max-width: 100%; }
.single-video-embed { position: relative; padding-top: 56.25%; margin-bottom: 15px; }
.single-video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.singlePage2-tag a { display: inline-block; margin: 0 6px 6px 0; }
.page-content-box { background: #fff; padding: 20px; margin-bottom: 30px; }
.page-content-box h1 { font-size: 30px; margin-bottom: 20px; }
.photo-album-grid .item img, .video-page-grid img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.empty-news { padding: 40px 20px; text-align: center; background: #fff; }
@media print {
    .codedokan_header3 .header3-social, .menu_section, .top-scroll-section5, .footer-area,
    .single-social2, .related-section, .fixrd-sitber, .single-page-add2, .single-page2-topAdd { display: none !important; }
}

/* Theme options */
.social-svg { vertical-align: -2px; }
.no-sticky-menu .menu_section.sticky { position: relative !important; }
.header3-logo-left .header3-logo { text-align: left; }
.header3-logo-left .header3-date { text-align: center; }
@media (max-width: 767px) { .header3-logo-left .header3-logo { text-align: center; } }

/* Pictures inside the news text and the news gallery */
.single-content2 figure, .single-content2 .news-figure { margin: 20px 0; text-align: center; }
.single-content2 figure img { border-radius: 4px; }
.single-content2 figcaption { margin-top: 6px; font-size: 15px; color: #666; }
.news-gallery { margin: 24px 0; }
.news-gallery-title { font-size: 20px; margin-bottom: 12px; padding-left: 10px; border-left: 4px solid var(--cd-primary); }
.news-gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.news-gallery-grid figure { margin: 0; }
.news-gallery-grid img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 4px; display: block; transition: opacity .2s; }
.news-gallery-grid a:hover img { opacity: .85; }
.news-gallery-grid figcaption { font-size: 14px; color: #555; margin-top: 4px; line-height: 1.4; }
@media (max-width: 575px) { .news-gallery-grid { grid-template-columns: repeat(2, 1fr); } }

/* Photocard button (shown only to people allowed to download) */
.photocard-wrap { margin: 18px 0; text-align: center; }
.photocard-btn { padding: 10px 22px; border: 0; border-radius: 6px; background: var(--cd-primary); color: #fff; font-size: 17px; cursor: pointer; transition: background .2s; }
.photocard-btn:hover { background: var(--cd-primary-dark); }
.single-left-ad { margin-top: 15px; }
@media print { .photocard-wrap { display: none !important; } }

/* Copy-link button (after print) */
.single-social2 a.share-copy { position: relative; background: #475569; }
.single-social2 a.share-copy.is-copied { background: #16a34a; }
.single-social2 .share-copied { position: absolute; left: 50%; bottom: calc(100% + 8px); transform: translateX(-50%) translateY(4px); padding: 4px 10px; border-radius: 6px;
    background: #111; color: #fff; font-size: 13px; line-height: 1.4; white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; }
.single-social2 .share-copied::after { content: ""; position: absolute; left: 50%; top: 100%; margin-left: -5px; border: 5px solid transparent; border-top-color: #111; }
.single-social2 a.share-copy.is-copied .share-copied { opacity: 1; transform: translateX(-50%); }
@media (max-width: 420px) {
    .single-social2 { display: flex; flex-wrap: wrap; gap: 4px; }
    .single-social2 a { width: 34px; height: 34px; line-height: 34px; margin-right: 0 !important; }
    .single-social2 .share-copied { left: auto; right: 0; transform: translateY(4px); }
    .single-social2 a.share-copy.is-copied .share-copied { transform: none; }
    .single-social2 .share-copied::after { left: auto; right: 12px; }
}
@media print { .single-social2 { display: none !important; } }

/* Phones: home + first three menu items inside the menu bar (left of the calendar, search and ☰ buttons) */
.mobile-quick-menu { display: none; }
@media (max-width: 660px) {
    .menu_section_three .mobile-quick-menu { position: absolute; top: 0; left: 6px; right: 160px; height: 48px; z-index: 10003;
        display: flex; align-items: center; justify-content: space-around; gap: 2px; overflow: hidden; }
    .mobile-quick-menu a { flex: 0 1 auto; min-width: 0; padding: 6px 9px; border-radius: 6px; color: var(--cd-menu-text) !important; font-size: 16.5px; line-height: 1.5;
        white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-decoration: none; }
    .mobile-quick-menu a:active, .mobile-quick-menu a.is-current { background: rgba(0, 0, 0, .18); }
    .mobile-quick-menu a.mq-home { flex: none; font-size: 22px; padding: 4px 8px; line-height: 1; }
}
/* Narrow phones: tighter spacing so home + two items + "জেলার খবর" fit without being cut. */
@media (max-width: 480px) {
    .menu_section_three .mobile-quick-menu { right: 152px; left: 2px; gap: 0; }
    .mobile-quick-menu a { padding: 6px 5px; font-size: 16px; }
    .mobile-quick-menu a.mq-home { padding: 4px 5px; font-size: 21px; }
    .mobile-quick-menu a.mq-district { flex: none; }
}
@media (max-width: 359px) {
    .mobile-quick-menu a { padding: 6px 4px; font-size: 15px; }
}

/* Source line under imported news */
.news-source { margin: 16px 0 0; padding-top: 10px; border-top: 1px dashed #ddd; font-size: 15px; color: #666; }
.news-source a { color: var(--cd-primary); }

/* Reader poll */
.poll-box { margin-top: 16px; border: 1px solid #e5e5e5; border-radius: 8px; overflow: hidden; background: #fff; }
.poll-head { display: flex; align-items: center; gap: 8px; padding: 9px 14px; background: var(--cd-primary); color: #fff; font-size: 18px; font-weight: 700; }
.poll-head i { font-size: 22px; }
.poll-body { padding: 14px; }
.poll-question { font-size: 20px; line-height: 1.4; font-weight: 700; margin: 0 0 12px; color: #111; }
.poll-option { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; padding: 9px 12px; border: 1.5px solid #e2e2e2; border-radius: 8px; cursor: pointer; font-size: 17px; transition: border-color .15s, background .15s; }
.poll-option:hover { border-color: var(--cd-primary); }
.poll-option:has(input:checked) { border-color: var(--cd-primary); background: #fff5f5; background: color-mix(in srgb, var(--cd-primary) 7%, #fff); font-weight: 700; }
.poll-option input { width: 18px; height: 18px; accent-color: var(--cd-primary); flex: none; }
.poll-actions { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 12px; }
.poll-submit { padding: 8px 20px; border: 0; border-radius: 6px; background: var(--cd-primary); color: #fff; font-size: 17px; cursor: pointer; transition: background .2s; }
.poll-submit:hover { background: var(--cd-primary-dark); }
.poll-submit:disabled { opacity: .6; cursor: wait; }
.poll-link { padding: 0; border: 0; background: none; color: #555; font-size: 15px; text-decoration: underline; cursor: pointer; }
.poll-link:hover { color: var(--cd-primary); }
.poll-row { margin-bottom: 12px; }
.poll-row-top { display: flex; justify-content: space-between; gap: 10px; font-size: 17px; }
.poll-row-top b { color: var(--cd-primary); }
.poll-bar { height: 10px; margin: 4px 0 2px; border-radius: 999px; background: #eee; overflow: hidden; }
.poll-bar i { display: block; height: 100%; border-radius: 999px; background: var(--cd-primary); transition: width .8s ease; }
.poll-row small { color: #777; font-size: 13.5px; }
.poll-row.is-mine .poll-row-top span::after { content: " ✓"; color: #16a34a; font-weight: 700; }
.poll-total { display: flex; justify-content: space-between; align-items: center; padding-top: 8px; border-top: 1px dashed #ddd; font-size: 15px; color: #555; margin-bottom: 6px; }
.poll-closed { font-size: 13px; padding: 1px 8px; border-radius: 999px; background: #f3f4f6; }
.poll-message { margin: 8px 0 0; font-size: 15px; color: #166534; }
.poll-message:empty { display: none; }
.poll-message.is-info { color: #92400e; }
.poll-message.is-error { color: #b91c1c; }

/* ===================== জেলার খবর page ===================== */
.dn-page { padding: 6px 0 40px; }
.dn-hero { background: #fff; border-radius: 10px; padding: 18px 20px 16px; margin-bottom: 14px; box-shadow: 0 1px 4px rgba(0, 0, 0, .06); border-top: 3px solid var(--cd-primary); }
.dn-crumb { font-size: 15px; color: #777; margin-bottom: 6px; }
.dn-crumb a { color: #555; }
.dn-crumb a:hover { color: var(--cd-primary); }
.dn-title { font-size: 30px; line-height: 1.3; font-weight: 700; margin: 0 0 4px; color: #111; }
.dn-title i { color: var(--cd-primary); }
.dn-intro { color: #555; font-size: 16.5px; margin: 0 0 14px; }
.dn-filter { display: grid; grid-template-columns: repeat(3, minmax(0, 240px)) auto; gap: 12px; align-items: end; margin-bottom: 14px; }
.dn-field label { display: block; font-size: 14px; color: #666; margin-bottom: 2px; }
.dn-field .form-select { font-size: 17px; padding: 8px 36px 8px 12px; border-color: #d6d6d6; border-radius: 8px; }
.dn-field .form-select:focus { border-color: var(--cd-primary); box-shadow: 0 0 0 3px rgba(216, 0, 0, .12); box-shadow: 0 0 0 3px color-mix(in srgb, var(--cd-primary) 18%, transparent); }
.dn-reset { justify-self: start; padding: 8px 14px; border: 1px solid #d6d6d6; border-radius: 8px; background: #fff; color: #444; font-size: 15.5px; cursor: pointer; }
.dn-reset:hover { border-color: var(--cd-primary); color: var(--cd-primary); }
.dn-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.dn-chips-sub { margin-top: 10px; padding-top: 10px; border-top: 1px dashed #e2e2e2; }
.dn-chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 14px; border-radius: 999px; border: 1px solid #dcdcdc; background: #fff; color: #333 !important; font-size: 16px;
    line-height: 1.5; text-decoration: none; transition: background .15s, border-color .15s, color .15s; }
.dn-chip small { padding: 0 7px; border-radius: 999px; background: #f0f0f0; color: #666; font-size: 12.5px; }
.dn-chip:hover { border-color: var(--cd-primary); color: var(--cd-primary) !important; }
.dn-chip.is-active { background: var(--cd-primary); border-color: var(--cd-primary); color: #fff !important; }
.dn-chip.is-active small { background: rgba(255, 255, 255, .25); color: #fff; }
.dn-chips-sub .dn-chip { font-size: 15px; padding: 3px 12px; }
.dn-chips-upazila { align-items: center; }
.dn-chips-upazila .dn-chip { font-size: 14.5px; padding: 2px 11px; background: #fafafa; }
.dn-chips-upazila .dn-chip.is-active { background: var(--cd-primary); }
.dn-chips-label { font-size: 14px; color: #666; margin-right: 2px; white-space: nowrap; }
.dn-chips-label i { color: var(--cd-primary); }
.dn-field .form-select:disabled { background-color: #f3f3f3; color: #999; }
.byline-designation { color: #666; font-weight: 400; }
.author-card { display: flex; align-items: center; gap: 16px; margin: 0 0 18px; padding: 16px; border-radius: 10px; background: #fff; border: 1px solid #e8e8e8; border-left: 4px solid var(--cd-primary); }
.author-card img { flex: none; border-radius: 50%; object-fit: cover; background: #eee; }
.author-card h1 { margin: 0; font-size: 24px; line-height: 1.3; font-weight: 700; color: #111; }
.author-designation { color: var(--cd-primary); font-size: 16px; }
.author-card p { margin: 6px 0 0; color: #444; font-size: 16px; line-height: 1.6; }
.author-count { margin-top: 4px; color: #777; font-size: 14px; }
@media (max-width: 480px) { .author-card { gap: 12px; padding: 12px; } .author-card img { width: 64px; height: 64px; } .author-card h1 { font-size: 21px; } }
.single-place a { color: inherit; }
.single-place a:hover { color: var(--cd-primary); }
.dn-meta { color: #666; font-size: 15px; margin: 0 2px 10px; }
.dn-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; transition: opacity .15s; }
.dn-grid.is-loading { opacity: .45; pointer-events: none; }
.dn-card { background: #fff; border-radius: 8px; overflow: hidden; box-shadow: 0 1px 4px rgba(0, 0, 0, .07); transition: transform .2s, box-shadow .2s; }
.dn-card:hover { transform: translateY(-3px); box-shadow: 0 10px 22px -12px rgba(0, 0, 0, .35); }
.dn-card a { display: block; color: inherit; text-decoration: none; }
.dn-img { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: #e9e9e9; }
.dn-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s; }
.dn-card:hover .dn-img img { transform: scale(1.05); }
.dn-label { position: absolute; top: 8px; right: 8px; padding: 2px 10px; border-radius: 4px; background: var(--cd-primary); color: #fff; font-size: 13.5px; line-height: 1.6; }
.dn-body { padding: 10px 12px 12px; }
.dn-body h3 { font-size: 19px; line-height: 1.4; font-weight: 700; margin: 0 0 6px; color: #111; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.dn-card:hover h3 { color: var(--cd-primary); }
.dn-body time { font-size: 14px; color: #777; }
.dn-empty { background: #fff; border-radius: 10px; padding: 40px 20px; text-align: center; color: #666; }
.dn-empty i { font-size: 54px; color: #ccc; }
.dn-more { text-align: center; margin-top: 22px; }
.dn-more button { padding: 10px 28px; border: 1.5px solid var(--cd-primary); border-radius: 999px; background: #fff; color: var(--cd-primary); font-size: 17px; cursor: pointer; transition: background .2s, color .2s; }
.dn-more button:hover { background: var(--cd-primary); color: #fff; }
.dn-more button:disabled { opacity: .6; cursor: wait; }
@media (max-width: 1199px) { .dn-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 767px) {
    .dn-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
    .dn-title { font-size: 24px; }
    .dn-filter { grid-template-columns: 1fr 1fr; }
    .dn-field-upazila, .dn-reset { grid-column: 1 / -1; }
    .dn-body h3 { font-size: 17px; }
    /* Division buttons scroll sideways on phones instead of taking several rows. */
    #dnDivisionChips { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 6px; scrollbar-width: none; }
    #dnDivisionChips::-webkit-scrollbar { display: none; }
    #dnDivisionChips .dn-chip { flex: none; }
}
@media (max-width: 420px) { .dn-hero { padding: 14px 12px; } .dn-body { padding: 8px 9px 10px; } .dn-body h3 { font-size: 16px; } }

/* Home page: "find news by division and district" box (the map used to be here) */
/* The heading is a coloured bar joined to the box, so it never reads as one more news headline. */
.loc-head { margin: 0; font-size: 20px; line-height: 1.4; font-weight: 700; }
.loc-head a { display: flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 8px 8px 0 0; color: #fff !important; text-decoration: none;
    background: var(--cd-primary); background: linear-gradient(135deg, var(--cd-primary), var(--cd-primary-dark)); }
.loc-head a > i:first-child { font-size: 24px; }
.loc-head span { flex: 1; min-width: 0; }
.loc-head-arrow { font-size: 16px; opacity: .85; transition: transform .2s; }
.loc-head a:hover .loc-head-arrow { transform: translateX(3px); }
.loc-head + .loc-box { border-top: 0; border-radius: 0 0 8px 8px; }
@media (max-width: 767px) { .loc-head { margin-top: 22px; } }
.loc-box { padding: 14px; border-radius: 8px; background: #f4f6f8; border: 1px solid #e5e5e5; }
.loc-box p { margin: 0 0 10px; font-size: 15px; color: #555; line-height: 1.5; }
.loc-box .form-control, .loc-box .form-select { margin-bottom: 8px; font-size: 17px; border-radius: 6px; }
.loc-box .loc-box-btn { display: block; width: 100%; padding: 8px; border: 0; border-radius: 6px; background: var(--cd-primary); color: #fff; font-size: 17px; text-align: center; cursor: pointer; }
.loc-box .loc-box-btn:hover { background: var(--cd-primary-dark); }
.loc-box-all { display: block; margin-top: 8px; text-align: center; font-size: 15px; color: var(--cd-primary); }
