/* PROTTYASHI e-news public styles. --primary and --dark come from Admin > Settings (set inline in the layout).
   Sizes are in rem so the print styles can scale the whole edition onto A4. */
:root { --ink: #111; --text: #333; --muted: #666; --grey: #f1f2f2; --rule: #222; }
* { box-sizing: border-box; }
html { font-size: 16px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: #fff; color: var(--ink); font: 400 1rem/1.5 "Inter", "Hind Siliguri", Arial, Helvetica, sans-serif; top: 0 !important; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font: inherit; cursor: pointer; }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.wrap { max-width: 1320px; margin: 0 auto; padding: 0 1.5rem; }
.icon { width: 1.15em; height: 1.15em; flex-shrink: 0; }

/* Header */
.top { background: #fff; position: relative; z-index: 30; box-shadow: 0 .45rem .5rem -.3rem rgba(0, 0, 0, .28); }
.top-row { display: flex; justify-content: space-between; align-items: flex-start; }
.logo img { height: 3.1rem; margin: .7rem 0 .9rem; }
.top-links { display: flex; }
.sites { position: relative; }
.sites-btn { display: flex; align-items: center; gap: .55rem; height: 3.3rem; padding: 0 1.2rem; border: 0; background: var(--dark); color: #fff; font-size: .9rem; }
.sites-menu { position: absolute; right: 0; top: 100%; min-width: 100%; background: var(--dark); border-top: 1px solid rgba(255, 255, 255, .25); }
.sites-menu a { display: block; padding: .7rem 1.2rem; color: #fff; font-size: .9rem; white-space: nowrap; }
.sites-menu a:hover { background: rgba(255, 255, 255, .12); }
.donate { display: flex; align-items: center; gap: .5rem; height: 3.3rem; padding: 0 1.6rem; background: var(--primary); color: #fff; font-weight: 800; font-size: 1.15rem; }
.nav { display: flex; justify-content: space-between; align-items: stretch; border-top: 1px solid #8c8c8c; min-height: 4rem; }
.nav-links { display: flex; align-items: center; gap: 2.8rem; padding-left: 2rem; overflow-x: auto; scrollbar-width: none; }
.nav-links a { font-size: .95rem; white-space: nowrap; padding: .4rem 0; }
.nav-links a:hover, .nav-links a.on { color: var(--primary); }
.nav-links a.on { font-weight: 600; }
.nav-tools { display: flex; margin-right: 3rem; border-right: 1px solid #9a9a9a; }
.nav-tools > * { display: flex; align-items: center; gap: .5rem; padding: 0 1.1rem; border: 0; border-left: 1px solid #9a9a9a; background: none; font-size: .95rem; color: var(--ink); }
.nav-tools > *:hover { color: var(--primary); }
.nav-tools .icon-green { color: var(--primary); }
.drawer { position: absolute; right: 0; left: 0; top: 100%; background: #fff; border-top: 1px solid #ddd; box-shadow: 0 .6rem 1rem rgba(0, 0, 0, .15); }
.drawer .wrap { display: grid; grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); gap: .2rem 2rem; padding-top: 1rem; padding-bottom: 1.2rem; }
.drawer a { padding: .45rem 0; border-bottom: 1px solid #eee; font-size: .95rem; }
.drawer a:hover { color: var(--primary); }
.banner img { width: 100%; }

/* Edition label, search, PDF button */
.edition-row { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 1rem; margin: .4rem 0 2rem; }
/* Edition badge: number in green, quarter highlighted in yellow so it stands out */
.edition-badge { justify-self: start; display: flex; flex-direction: column; align-items: flex-start; gap: 0; font-size: .78rem; line-height: 1.3; }
.edition-badge b { display: block; width: fit-content; background: var(--primary); color: #fff; border: 2px solid var(--primary);  padding: .3rem .8rem; }
.edition-badge span { display: block; width: fit-content; background: #32cd32; color: #fff; border: 2px solid var(--primary);  font-weight: 700; font-size: 1.05rem; line-height: 1.5; padding: .35rem 1rem; }
.search { display: flex; width: min(32rem, 100%); }
.search label { flex: 1; display: flex; align-items: center; gap: .6rem; padding: 0 1rem; background: #efefef; border: 1px solid #b9d8bb; border-right: 0; border-radius: .6rem 0 0 .6rem; color: var(--muted); }
.search input { flex: 1; min-width: 0; border: 0; background: none; padding: .8rem 0; font: inherit; font-size: .9rem; outline: none; }
.search button { border: 0; background: var(--primary); color: #fff; font-weight: 700; font-size: .8rem; text-transform: uppercase; padding: 0 2.2rem; border-radius: 0 .6rem .6rem 0; }
.pdf-btn { justify-self: end; display: flex; align-items: center; gap: .4rem; border: 1px solid var(--primary); background: #fff; color: var(--primary); font-weight: 600; font-size: .8rem; padding: .5rem .9rem; border-radius: .4rem; }
.pdf-btn:hover { background: var(--primary); color: #fff; }

/* The three-column edition template */
.columns { display: grid; grid-template-columns: 27.5% minmax(0, 1fr) 27.5%; }
.col { padding: 0 1.3rem; }
.col-left { padding-left: 0; }
.col-right { padding-right: 0; }
.col-center { border-left: 2px solid var(--rule); border-right: 2px solid var(--rule); }
.slot { position: relative; }
.slot + .slot { border-top: 2px dotted #333; margin-top: 1.1rem; padding-top: 1.1rem; }
.story { cursor: pointer; }
.story h2, .story h3 { margin: 0; font-weight: 700; line-height: 1.18; letter-spacing: -.005em; }
.story h3 { font-size: 1.15rem; }
.story h2 { font-size: 1.42rem; }
.story h2 a:hover, .story h3 a:hover { color: var(--primary); }
.hl { color: var(--primary); }
.text { margin: .7rem 0 0; font-size: .78rem; line-height: 1.5; color: var(--text); }
.meta { margin: .45rem 0 0; font-size: .7rem; color: #444; }
figure { margin: 0; }
figcaption { font-size: .7rem; color: #444; margin-top: .35rem; }
.photo { width: 100%; object-fit: cover; background: var(--grey); }

.side-head { display: grid; grid-template-columns: minmax(0, 1fr) 46%; gap: .8rem; align-items: start; }
.side-head .photo { aspect-ratio: 16 / 10.5; }
.slot-side-right .side-head { grid-template-columns: 46% minmax(0, 1fr); }
.slot-side-right .side-head h3 { text-align: right; order: 2; }
.slot-side-wide .photo { aspect-ratio: 16 / 9.6; margin-bottom: .8rem; }
.feature { display: grid; grid-template-columns: 46% minmax(0, 1fr); gap: 1rem; align-items: start; }
.feature .photo { aspect-ratio: 16 / 10; }
.slot-feature.tall .photo { aspect-ratio: 1 / 1; }
.feature .text { margin-top: .5rem; }
.main .photo { aspect-ratio: 16 / 9; margin-top: .7rem; }
.read-more { display: inline-block; margin-top: .8rem; background: var(--primary); color: #fff; font-size: .72rem; font-weight: 600; padding: .35rem .8rem; border-radius: .2rem; }
.video-box { position: relative; margin-top: .8rem; aspect-ratio: 16 / 9; border: 2px solid var(--primary); border-radius: 1rem; overflow: hidden; background: #000; }
.video-box img, .video-box iframe, .video-box video { width: 100%; height: 100%; object-fit: cover; border: 0; display: block; }
.play { position: absolute; left: 50%; top: 50%; translate: -50% -50%; width: 4.2rem; height: 4.2rem; border-radius: 50%; border: .3rem solid rgba(255, 255, 255, .85); background: var(--primary); display: grid; place-items: center; padding: 0; }
.play::before { content: ""; border-left: 1.1rem solid #fff; border-top: .7rem solid transparent; border-bottom: .7rem solid transparent; margin-left: .3rem; }
.video-title { position: absolute; left: 1.2rem; bottom: 1rem; right: 1.2rem; color: #fff; font-weight: 600; font-size: 1.25rem; line-height: 1.2; text-shadow: 0 1px 6px rgba(0, 0, 0, .7); pointer-events: none; }
.quote { display: grid; grid-template-columns: 30% minmax(0, 1fr); gap: 1.4rem; align-items: center; }
.quote-photo { position: relative; }
.quote-photo .photo { aspect-ratio: 1 / 1; }
.quote-photo::after { content: ""; position: absolute; top: 0; right: 0; border-top: 1.4rem solid var(--primary); border-left: 1.4rem solid transparent; }
.quote blockquote { margin: 0; font-weight: 700; font-size: 1.12rem; line-height: 1.3; }
.quote blockquote::before { content: "“"; display: block; font: 700 5rem/.7 Georgia, serif; height: 2.2rem; }
.quote cite { display: block; margin-top: .7rem; font-weight: 400; font-size: .7rem; line-height: 1.4; font-style: normal; color: #333; }

/* Latest news */
.latest { margin: 3rem 0 2.5rem; }
.dotted-title { display: flex; align-items: center; gap: 1rem; margin: 0 0 1.6rem; font-size: 1.25rem; font-weight: 600; }
.dotted-title::before, .dotted-title::after { content: ""; flex: 1; border-top: 2px dotted #333; }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.4rem; }
.card { cursor: pointer; }
.card .photo { aspect-ratio: 16 / 9; }
.card h3 { margin: 1.1rem 1rem .9rem; font-size: 1.1rem; font-weight: 500; line-height: 1.35; }
.card h3 a:hover { color: var(--primary); }
.card .meta { margin: 0 1rem; display: flex; align-items: center; gap: .4rem; color: var(--muted); }
.see-more { display: flex; width: fit-content; margin: 2rem auto 0; align-items: center; gap: .6rem; background: var(--primary); color: #fff; font-weight: 700; padding: .6rem 1.4rem; }
.page-title { font-size: 1.6rem; margin: 0 0 1.5rem; }
.empty { color: var(--muted); padding: 3rem 0; text-align: center; }
.pager { display: flex; justify-content: space-between; margin: 2rem 0; font-weight: 600; }
.pager a { border: 1px solid var(--primary); color: var(--primary); padding: .45rem 1rem; border-radius: .3rem; }
.edition-card { display: block; border: 1px solid #ddd; }
.edition-card .photo { aspect-ratio: 16 / 10; }
.edition-card div { background: var(--primary); color: #fff; padding: .7rem 1rem; font-size: .9rem; }
.edition-card b { display: block; font-size: 1.05rem; }

/* Footer */
.foot-bar { display: flex; justify-content: space-between; align-items: center; background: var(--grey); padding: .9rem 1.2rem; margin-top: 2rem; }
.foot-bar nav { display: flex; }
.foot-bar nav a { font-size: .75rem; font-weight: 700; text-transform: uppercase; padding: .3rem 1.4rem; border-left: 1px solid #999; }
.foot-bar nav a:first-child { padding-left: 0; border-left: 0; }
.foot-bar nav a:hover { color: var(--primary); }
.socials { display: flex; gap: .7rem; }
.socials a { width: 1.7rem; height: 1.7rem; border: 1.5px solid var(--ink); border-radius: .25rem; display: grid; place-items: center; font-weight: 800; font-size: .8rem; }
.socials a:hover { background: var(--primary); border-color: var(--primary); color: #fff; }
.foot-main { display: grid; grid-template-columns: 2.1fr 1fr 1fr 1.5fr; gap: 2.5rem; padding: 2.2rem 1.2rem 2.6rem; font-size: .8rem; }
.foot-main img { height: 3rem; margin-bottom: 1rem; }
.foot-main p { margin: 0; line-height: 1.6; white-space: pre-line; }
.foot-main h4 { margin: 0 0 .9rem; color: var(--primary); font-size: .8rem; font-weight: 700; }
.foot-main h4 + * + h4 { margin-top: 1rem; }
.foot-main ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .25rem; }
.foot-main a:hover { color: var(--primary); }
.foot-end { background: var(--primary); color: #fff; font-size: .75rem; padding: 1.3rem 0; }
.foot-end .wrap { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.foot-end nav a + a::before { content: "|"; margin: 0 .5rem; }

/* News popup */
.modal { position: fixed; inset: 0; z-index: 100; background: rgba(0, 0, 0, .62); display: grid; place-items: center; padding: 1rem; }
.modal[hidden] { display: none; }
.modal-box { position: relative; background: #fff; width: min(54rem, 100%); max-height: 94vh; overflow: auto; border-radius: .5rem; border-top: .35rem solid var(--primary); padding: 2rem 2.4rem 1.6rem; }
.modal-close { position: sticky; top: 0; float: right; margin: -1rem -1.4rem 0 1rem; width: 2.3rem; height: 2.3rem; border-radius: 50%; border: 0; background: var(--dark); color: #fff; font-size: 1.3rem; line-height: 1; z-index: 2; }
.full-cat { margin: 0 0 .5rem; color: var(--primary); font-weight: 700; font-size: .85rem; }
.full h1 { margin: 0 0 .6rem; font-size: 1.8rem; line-height: 1.2; }
.full .meta { font-size: .85rem; margin: 0 0 1.1rem; }
.full figure, .full .video-box { margin: 0 0 1.2rem; }
.full figcaption { font-size: .8rem; }
.prose { font-size: 1rem; line-height: 1.75; color: #222; }
.prose p { margin: 0 0 1em; }
.prose a { color: var(--primary); text-decoration: underline; }
.prose blockquote { margin: 1em 0; padding-left: 1rem; border-left: .25rem solid var(--primary); }
.share { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; border-top: 1px solid #ddd; margin-top: 1.4rem; padding-top: 1rem; font-size: .85rem; }
.share span { font-weight: 700; margin-right: .3rem; }
.share a, .share button { border: 1px solid #bbb; background: #fff; color: var(--ink); border-radius: .3rem; padding: .4rem .8rem; font-size: .82rem; }
.share a:hover, .share button:hover { border-color: var(--primary); color: var(--primary); }
.share .print { margin-left: auto; background: var(--primary); border-color: var(--primary); color: #fff; font-weight: 600; }
.share .print:hover { color: #fff; filter: brightness(1.1); }

/* Editor view of the template (Panel > Editions > Open template) */
.builder-bar { position: sticky; top: 0; z-index: 60; background: var(--dark); color: #fff; font-size: .9rem; }
.builder-bar .wrap { display: flex; align-items: center; gap: .8rem; flex-wrap: wrap; padding-top: .6rem; padding-bottom: .6rem; }
.builder-bar strong { margin-right: auto; }
.builder-bar a, .builder-bar button { border: 1px solid rgba(255, 255, 255, .5); background: none; color: #fff; padding: .35rem .9rem; border-radius: .3rem; font-size: .85rem; }
.builder-bar .go { background: var(--primary); border-color: var(--primary); font-weight: 600; }
.builder-note { background: #e9f6ea; border: 1px solid #b9d8bb; padding: .6rem 1rem; margin: 0 0 1rem; font-size: .9rem; }
.is-builder .slot { outline: 1px dashed #7fb685; outline-offset: .35rem; scroll-margin-top: 5rem; }
.is-builder .col > .slot:first-child { margin-top: 1rem; }
.is-builder .slot + .slot { margin-top: 1.6rem; }
.slot-edit { position: absolute; top: -1.05rem; right: .3rem; z-index: 5; background: var(--dark); color: #fff; font-size: .72rem; font-weight: 600; padding: .25rem .7rem; border-radius: 99px; box-shadow: 0 1px 4px rgba(0, 0, 0, .3); }
.slot-edit:hover { background: var(--primary); }
.slot-empty { min-height: 8rem; display: grid; place-items: center; text-align: center; background: var(--grey); color: var(--muted); font-size: .85rem; padding: 1rem; }

/* Google Translate chrome stays out of the design */
.skiptranslate iframe, .goog-te-banner-frame, #goog-gt-tt, .goog-te-balloon-frame { display: none !important; }
#google_translate_element { display: none; }

@media screen and (max-width: 1000px) {
    .columns { grid-template-columns: 1fr; }
    .col { padding: 0; border: 0 !important; }
    .col + .col { border-top: 2px solid var(--rule) !important; margin-top: 1.4rem; padding-top: 1.4rem; }
    .col-center { order: -1; }
    .cards { grid-template-columns: 1fr 1fr; }
    .foot-main { grid-template-columns: 1fr 1fr; }
    .nav-links { gap: 1.4rem; padding-left: 0; }
    .nav-tools { margin-right: 0; }
    .nav-tools .tool-text { display: none; }
}
@media screen and (max-width: 640px) {
    html { font-size: 15px; }
    .logo img { height: 2.3rem; margin: .5rem 0; }
    .sites-btn span { display: none; }
    .sites-btn, .donate { height: 2.8rem; padding: 0 .8rem; font-size: .95rem; }
    .nav { flex-direction: column-reverse; }
    .nav-tools { justify-content: flex-end; border-bottom: 1px solid #ddd; min-height: 2.8rem; }
    .nav-links { min-height: 2.8rem; }
    .edition-row { grid-template-columns: 1fr auto; }
    .search { grid-column: 1 / -1; grid-row: 2; width: 100%; }
    .search button { padding: 0 1rem; }
    .cards, .foot-main { grid-template-columns: 1fr; }
    .foot-bar { flex-direction: column; gap: .8rem; }
    .modal-box { padding: 1.4rem 1.1rem 1rem; }
    .modal-close { margin-right: -.4rem; }
    .full h1 { font-size: 1.4rem; }
}

/* "Download PDF": the browser prints the edition on A4 and the reader saves it as a PDF */
@page { size: A4 portrait; margin: 9mm; }
@media print {
    html { font-size: 8.4px; }
    body { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
    .top { box-shadow: none; }
    /* Only the masthead, banner, edition badge and the three news columns are printed. */
    .top-links, .nav, .drawer, .search, .pdf-btn, .modal, .builder-bar, .builder-note, .slot-edit, .see-more, .read-more, .play,
    .latest, footer, .pager, #google_translate_element { display: none !important; }
    .wrap { max-width: none; padding: 0; }
    .edition-row { display: block; margin: .6rem 0 1.4rem; }
    .edition-badge { display: inline-flex; }
    .columns { grid-template-columns: 27.5% minmax(0, 1fr) 27.5%; }
    .slot { break-inside: avoid; }
    a { color: inherit !important; }
}
/* Location and date under the photo caption */
.story figure .meta, .full figure .meta { margin-top: .2rem; }
.slot-side-wide .photo { margin-bottom: 0; }
.slot-side-wide figure { margin-bottom: .8rem; }

/* Photo Gallery in the news popup */
.gallery { margin-top: 1.6rem; padding-top: 1.2rem; border-top: 2px dotted #333; }
.gallery h2 { margin: 0 0 1rem; font-size: 1.15rem; }
.gallery-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.full .gallery figure { margin: 0; }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
@media screen and (max-width: 640px) { .gallery-grid { grid-template-columns: 1fr 1fr; } }

/* Share buttons as logos */
.share .ico { width: 2.4rem; height: 2.4rem; padding: 0; border-radius: 50%; display: grid; place-items: center; }
.share .ico svg, .share .copy svg { width: 1.15rem; height: 1.15rem; display: block; }
.share .copy { display: flex; align-items: center; min-height: 2.4rem; border-radius: 99px; }
.share .ico:hover { background: #f1f2f2; border-color: currentColor; }
/* Two site buttons (Bangladesh, International) and the BN / EN language toggle */
.site-btn { display: flex; align-items: center; gap: .55rem; height: 3.3rem; padding: 0 1.2rem; background: var(--dark); color: #fff; font-size: .9rem; white-space: nowrap; }
.site-btn + .site-btn { border-left: 1px solid rgba(255, 255, 255, .35); }
.site-btn:hover { background: var(--primary); }
.nav-tools .lang-switch { gap: 0; }
.lang-switch button { border: 1px solid var(--primary); background: #fff; color: var(--primary); font-size: .78rem; font-weight: 700; padding: .3rem .7rem; line-height: 1.2; }
.lang-switch button:first-child { border-radius: 99px 0 0 99px; }
.lang-switch button:last-child { border-radius: 0 99px 99px 0; border-left: 0; }
.lang-switch button.on { background: var(--primary); color: #fff; }
@media screen and (max-width: 760px) {
    .top-row { flex-wrap: wrap; }
    .top-links { width: 100%; }
    .site-btn { flex: 1; justify-content: center; height: 2.6rem; padding: 0 .5rem; font-size: .72rem; }
    .site-btn .icon { display: none; }
    .donate { height: 2.6rem; }
}
