/* ==========================================================================
   SFR Group - Content module: news, gallery, FAQ, pages, downloads.
   Loaded on the public pages (after site.css) AND on the Content staff screens (after admin.css) and by the LatestNews /
   FeaturedGallery view components. Every class is prefixed cnt-. Colours, radii, shadows, spacing and fonts come from tokens.css
   (--srf-*) - nothing brand-related is hard-coded. Mobile first; motion is neutralised by prefers-reduced-motion (tokens.css).
   Sections: 1 shared · 2 news · 3 gallery · 4 FAQ · 5 pages · 6 downloads · 7 media viewer (public) · 8 staff screens
   ========================================================================== */

/* ---------- 1. Shared ------------------------------------------------------------------------------ */
.cnt-stack { display: grid; gap: var(--srf-space-4); align-content: start; min-width: 0; }

.cnt-toolbar { display: grid; gap: 1rem; margin-bottom: 1.5rem; }
.cnt-toolbar > * { min-width: 0; }
@media (min-width: 992px) {
  .cnt-toolbar { grid-template-columns: minmax(260px, 380px) minmax(0, 1fr); align-items: center; gap: 1.5rem; }
}

.cnt-search { position: relative; display: flex; align-items: center; gap: .5rem; min-width: 0; }
.cnt-search__icon { position: absolute; left: 1rem; top: 50%; translate: 0 -50%; color: var(--srf-muted); pointer-events: none; }
.cnt-search__input { flex: 1 1 auto; min-width: 0; padding-left: 2.6rem; }
.cnt-search__btn { flex: 0 0 auto; }
@media (max-width: 399.98px) { .cnt-search__btn { padding-inline: 1rem; } }

.cnt-chips { display: flex; flex-wrap: nowrap; gap: .5rem; padding: .15rem 0 .4rem; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.cnt-chips::-webkit-scrollbar { display: none; }
@media (min-width: 992px) { .cnt-chips { flex-wrap: wrap; justify-content: flex-end; overflow: visible; padding-bottom: .15rem; } }
.cnt-chip {
  flex: 0 0 auto; display: inline-flex; align-items: center; min-height: var(--srf-tap); padding: 0 1.05rem;
  border: 1px solid var(--srf-line-strong); border-radius: var(--srf-radius-pill); background: var(--srf-paper);
  color: var(--srf-navy-900); font: 600 .9rem/1 var(--srf-font-ui); text-decoration: none; white-space: nowrap;
  transition: background-color var(--srf-dur-2) var(--srf-ease), border-color var(--srf-dur-2) var(--srf-ease), color var(--srf-dur-2) var(--srf-ease);
}
.cnt-chip:hover { border-color: var(--srf-gold-500); background: var(--srf-gold-100); color: var(--srf-navy-900); }
.cnt-chip.is-active { background: var(--srf-navy-900); border-color: var(--srf-navy-900); color: #fff; }
html[lang="bn"] .cnt-chip { font-size: 1rem; }

.cnt-results { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem .9rem; margin: 0 0 1.25rem; color: var(--srf-ink-2); }
.cnt-results__cat { padding: .25rem .7rem; border-radius: var(--srf-radius-pill); background: var(--srf-gold-100); color: var(--srf-gold-800); font-weight: 600; font-size: .88rem; }
.cnt-results__clear { display: inline-flex; align-items: center; gap: .4rem; min-height: var(--srf-tap); color: var(--srf-navy-800); font-weight: 600; text-decoration: none; }
.cnt-results__clear:hover { text-decoration: underline; text-decoration-color: var(--srf-gold-500); }

.cnt-cover-ph {
  position: absolute; inset: 0; display: grid; place-items: center; font-size: 2.4rem; color: var(--srf-navy-700);
  background: radial-gradient(120% 90% at 15% 0%, var(--srf-gold-100) 0%, var(--srf-navy-50) 70%);
}
.cnt-cover-ph--fill { z-index: -1; }
.cnt-backlink { margin: 2rem 0 0; }

.cnt-pager .srf-pager { margin-top: 2.25rem; }
.cnt-pager .srf-pager .cnt-pager__gap { min-width: 28px; padding: 0; border-color: transparent; background: transparent; }

/* ---------- 2. News -------------------------------------------------------------------------------- */
/* Featured block / LatestNews: a large lead card with compact cards beside it. */
.cnt-feature { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(1rem, 2vw, 1.5rem); margin-bottom: clamp(1.75rem, 4vw, 3rem); }
.cnt-feature > * { min-width: 0; }
.cnt-feature__side { display: grid; grid-auto-rows: 1fr; gap: clamp(1rem, 2vw, 1.5rem); }
/* A lone side card keeps its own compact height: stretched to the lead's 500 px (1fr row) it became a 200 px wide photo strip above empty white. */
.cnt-feature__side:has(> :only-child) { grid-auto-rows: auto; align-self: start; }
@media (min-width: 992px) { .cnt-feature:not(.cnt-feature--single) { grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); } }
/* Exactly two posts (.cnt-feature--pair, set by the view): the compact row card beside a 500 px lead left ~355 px of empty space below it.
   From lg up the two share the row in equal columns and the second post becomes a vertical card - a tall photo (it takes the height the text
   leaves) above the text - so it is as tall as the lead. Below lg the lead stays on top and the row card below it, as before. */
@media (min-width: 992px) {
  .cnt-feature.cnt-feature--pair { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cnt-feature--pair .cnt-feature__side { grid-auto-rows: 1fr; align-self: stretch; }
  .cnt-feature--pair .cnt-news--row { flex-direction: column; }
  .cnt-feature--pair .cnt-news--row .cnt-news__media { flex: 1 1 auto; min-height: 220px; }
  .cnt-feature--pair .cnt-news--row .cnt-news__body { flex: 0 0 auto; justify-content: flex-start; gap: .6rem; padding: clamp(1.25rem, 2.4vw, 1.75rem); }
  .cnt-feature--pair .cnt-news--row .cnt-news__title, .cnt-feature--pair .cnt-news--row .srf-card__title { font-size: clamp(1.3rem, 1.9vw, 1.65rem); }
  .cnt-feature--pair .cnt-news--row .cnt-news__text { -webkit-line-clamp: 3; line-clamp: 3; font-size: 1rem; }
}

.cnt-news__media { position: relative; }
.cnt-news__text { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; line-clamp: 3; overflow: hidden; }
.cnt-news__more { display: inline-flex; align-items: center; gap: .45rem; margin-top: auto; padding-top: .35rem; color: var(--srf-navy-900); font-weight: 600; font-size: .92rem; }
.cnt-news__more i { color: var(--srf-gold-700); transition: translate var(--srf-dur-2) var(--srf-ease); }
.cnt-news .srf-card__link:focus-visible { outline: none; }
.cnt-news:focus-within { outline: 3px solid rgba(221, 158, 56, .65); outline-offset: 3px; }
@media (hover: hover) { .cnt-news:hover .cnt-news__more i { translate: 5px 0; } }

/* lead: photo behind the text on a dark gradient (the photo sits at z-index -1 inside the card's own stacking context,
   so the body stays un-positioned and the stretched title link still covers the whole card) */
.cnt-news--lead { isolation: isolate; justify-content: flex-end; min-height: clamp(340px, 46vw, 500px); border-color: transparent; background: var(--srf-navy-900); color: #fff; }
.cnt-news--lead .cnt-news__media { position: absolute; inset: 0; z-index: -1; aspect-ratio: auto; }
.cnt-news--lead .cnt-news__media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(7, 19, 39, .06) 22%, rgba(7, 19, 39, .62) 60%, rgba(7, 19, 39, .94) 100%);
}
.cnt-news--lead .cnt-cover-ph { color: var(--srf-gold-300); background: radial-gradient(120% 90% at 15% 0%, var(--srf-navy-700) 0%, var(--srf-navy-900) 75%); }
.cnt-news--lead .cnt-news__body { flex: 0 0 auto; gap: .7rem; padding: clamp(1.25rem, 3vw, 2rem); }
.cnt-news--lead .srf-card__title, .cnt-news--lead .cnt-news__title { color: #fff; font-size: clamp(1.5rem, 2.7vw, 2.2rem); }
.cnt-news--lead .srf-card__meta { color: rgba(255, 255, 255, .84); }
.cnt-news--lead .srf-chip--navy { background: rgba(255, 255, 255, .16); color: #fff; backdrop-filter: blur(6px); }
.cnt-news--lead .cnt-news__text { max-width: 38rem; color: rgba(255, 255, 255, .9); }
.cnt-news--lead .cnt-news__more { color: #fff; }
.cnt-news--lead .cnt-news__more i { color: var(--srf-gold-300); }

/* row: compact, photo beside the text */
.cnt-news--row { flex-direction: row; align-items: stretch; }
.cnt-news--row .cnt-news__media { flex: 0 0 clamp(104px, 34%, 200px); aspect-ratio: auto; min-height: 118px; }
.cnt-news--row .cnt-news__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cnt-news--row .cnt-news__body { justify-content: center; gap: .35rem; padding: .9rem 1.1rem; }
.cnt-news--row .cnt-news__title, .cnt-news--row .srf-card__title { font-size: 1.08rem; }
.cnt-news--row .cnt-news__text { -webkit-line-clamp: 2; line-clamp: 2; font-size: .92rem; }
@media (max-width: 575.98px) { .cnt-news--row .cnt-news__text, .cnt-news--row .cnt-news__more { display: none; } }

/* article page */
.cnt-article { padding-top: clamp(1.5rem, 4vw, 3rem); }
.cnt-article__wrap { max-width: 52rem; margin-inline: auto; }
.cnt-article__cover { aspect-ratio: 16 / 9; margin: 0 0 1.5rem; overflow: hidden; border-radius: var(--srf-radius-lg); background: var(--srf-navy-50); box-shadow: var(--srf-shadow-2); }
.cnt-article__cover img { display: block; width: 100%; height: 100%; object-fit: cover; }
.cnt-article__meta { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem 1.4rem; margin-bottom: 1.75rem; padding-bottom: 1.1rem; border-bottom: 1px solid var(--srf-line); color: var(--srf-muted); font-size: .95rem; }
.cnt-article__meta i { margin-right: .4rem; color: var(--srf-gold-700); }
.cnt-article__concern { display: inline-flex; align-items: center; min-height: var(--srf-tap); color: var(--srf-navy-800); font-weight: 600; text-decoration: none; }
.cnt-article__concern:hover { text-decoration: underline; text-decoration-color: var(--srf-gold-500); }
.cnt-article__body { max-width: none; }
.cnt-article__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 2.25rem; padding-top: 1.25rem; border-top: 1px solid var(--srf-line); }

.cnt-postnav { display: grid; gap: 1rem; margin-top: 2rem; }
@media (min-width: 640px) {
  .cnt-postnav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cnt-postnav__link--next:only-child { grid-column: 2; }
}
.cnt-postnav__link {
  display: flex; flex-direction: column; gap: .3rem; min-height: var(--srf-tap); padding: 1rem 1.15rem;
  background: var(--srf-paper); border: 1px solid var(--srf-line); border-radius: var(--srf-radius-md);
  color: var(--srf-navy-900); text-decoration: none;
  transition: border-color var(--srf-dur-2) var(--srf-ease), box-shadow var(--srf-dur-2) var(--srf-ease);
}
.cnt-postnav__link:hover { border-color: var(--srf-gold-500); box-shadow: var(--srf-shadow-2); color: var(--srf-navy-900); }
.cnt-postnav__link--next { align-items: flex-end; text-align: right; }
.cnt-postnav__dir { display: inline-flex; align-items: center; gap: .45rem; color: var(--srf-gold-800); font: 700 .78rem/1.2 var(--srf-font-ui); }
html[lang="en"] .cnt-postnav__dir { text-transform: uppercase; letter-spacing: .12em; }
html[lang="bn"] .cnt-postnav__dir { font-size: .92rem; }
.cnt-postnav__title { font-family: var(--srf-font-heading); font-weight: 600; line-height: 1.3; overflow-wrap: anywhere; }

/* ---------- 3. Gallery ------------------------------------------------------------------------------ */
/* album cards (inside .srf-bento on /gallery, inside .srf-grid in "More albums") */
.cnt-album {
  position: relative; isolation: isolate; display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden;
  min-height: clamp(230px, 30vw, 330px); border-radius: var(--srf-radius-lg); background: var(--srf-navy-900); color: #fff; box-shadow: var(--srf-shadow-1);
  transition: translate var(--srf-dur-2) var(--srf-ease), box-shadow var(--srf-dur-2) var(--srf-ease);
}
.cnt-album--small { min-height: 210px; }
.cnt-album__img { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--srf-ease); }
.cnt-album::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(7, 19, 39, .04) 30%, rgba(7, 19, 39, .55) 62%, rgba(7, 19, 39, .9) 100%);
}
.cnt-album__body { display: flex; flex-direction: column; align-items: flex-start; gap: .55rem; min-width: 0; padding: clamp(1.1rem, 2.4vw, 1.6rem); }
.cnt-album__title { margin: 0; max-width: 100%; color: #fff; font-size: clamp(1.25rem, 2vw, 1.7rem); line-height: 1.2; overflow-wrap: anywhere; }
.cnt-album__link { color: inherit; text-decoration: none; }
.cnt-album__link::after { content: ""; position: absolute; inset: 0; z-index: 2; }
.cnt-album__more { display: inline-flex; align-items: center; gap: .45rem; color: #fff; font-weight: 600; font-size: .9rem; }
.cnt-album__more i { color: var(--srf-gold-300); transition: translate var(--srf-dur-2) var(--srf-ease); }
.cnt-album .srf-chip { background: rgba(255, 255, 255, .16); color: #fff; backdrop-filter: blur(6px); }
.cnt-album:focus-within { outline: 3px solid rgba(221, 158, 56, .65); outline-offset: 3px; }
.cnt-album__link:focus-visible { outline: none; }
@media (hover: hover) {
  .cnt-album:hover { translate: 0 -5px; box-shadow: var(--srf-shadow-3); }
  .cnt-album:hover .cnt-album__img { transform: scale(1.06); }
  .cnt-album:hover .cnt-album__more i { translate: 5px 0; }
}

/* photo grid of an album */
.cnt-photos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(.6rem, 1.5vw, 1rem); }
@media (min-width: 640px) { .cnt-photos { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .cnt-photos { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.cnt-photo { min-width: 0; margin: 0; }
.cnt-photo__link { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--srf-radius-md); background: var(--srf-navy-50); box-shadow: var(--srf-shadow-1); }
.cnt-photo__link img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--srf-ease); }
.cnt-photo__link iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.cnt-photo__link:focus-visible { outline: 3px solid rgba(221, 158, 56, .65); outline-offset: 3px; }
.cnt-photo__zoom {
  position: absolute; right: .6rem; bottom: .6rem; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%;
  background: rgba(7, 19, 39, .62); color: #fff; font-size: .9rem; opacity: 0; transition: opacity var(--srf-dur-2) var(--srf-ease);
}
.cnt-photo__link:hover .cnt-photo__zoom, .cnt-photo__link:focus-visible .cnt-photo__zoom { opacity: 1; }
@media (hover: none) { .cnt-photo__zoom { opacity: .85; } }
@media (hover: hover) { .cnt-photo__link:hover img { transform: scale(1.06); } }
.cnt-photo__play {
  position: absolute; inset: 0; margin: auto; display: grid; place-items: center; width: 58px; height: 58px; border: 2px solid var(--srf-gold-500); border-radius: 50%;
  background: rgba(11, 32, 66, .8); color: #fff; font-size: 1.9rem; box-shadow: 0 8px 24px rgba(7, 19, 39, .4); pointer-events: none;
  transition: transform var(--srf-dur-2) var(--srf-ease);
}
.cnt-photo__play--sm { width: 40px; height: 40px; font-size: 1.3rem; }
.cnt-photo__link:hover .cnt-photo__play { transform: scale(1.08); }
.cnt-photo__cap { margin-top: .5rem; color: var(--srf-ink-2); font-size: .9rem; line-height: 1.45; overflow-wrap: anywhere; }

/* FeaturedGallery mosaic (home page) */
.cnt-mosaic { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: clamp(120px, 28vw, 170px); gap: clamp(.5rem, 1.4vw, .9rem); }
.cnt-mosaic__tile { position: relative; isolation: isolate; display: block; min-width: 0; overflow: hidden; border-radius: var(--srf-radius-md); background: var(--srf-navy-50); box-shadow: var(--srf-shadow-1); }
.cnt-mosaic__tile:first-child { grid-column: span 2; grid-row: span 2; }
.cnt-mosaic__tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--srf-ease); }
.cnt-mosaic__cap {
  position: absolute; inset: auto 0 0 0; padding: 1.8rem .85rem .7rem; color: #fff; font: 600 .85rem/1.3 var(--srf-font-ui);
  background: linear-gradient(180deg, transparent, rgba(7, 19, 39, .8)); opacity: 0; transform: translateY(6px);
  transition: opacity var(--srf-dur-2) var(--srf-ease), transform var(--srf-dur-2) var(--srf-ease);
}
html[lang="bn"] .cnt-mosaic__cap { font-size: .95rem; }
.cnt-mosaic__tile:hover .cnt-mosaic__cap, .cnt-mosaic__tile:focus-visible .cnt-mosaic__cap { opacity: 1; transform: none; }
.cnt-mosaic__tile:focus-visible { outline: 3px solid rgba(221, 158, 56, .65); outline-offset: 3px; }
@media (hover: none) { .cnt-mosaic__cap { opacity: 1; transform: none; } }
@media (hover: hover) { .cnt-mosaic__tile:hover img { transform: scale(1.06); } }
@media (max-width: 767.98px) { .cnt-mosaic__tile:last-child:nth-child(2n) { grid-column: span 2; } }
@media (min-width: 768px) {
  .cnt-mosaic { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: clamp(150px, 17vw, 210px); }
  .cnt-mosaic__tile:last-child:nth-child(3n + 4) { grid-column: span 3; }
  .cnt-mosaic__tile:last-child:nth-child(3n + 5) { grid-column: span 2; }
}

/* ---------- 4. FAQ ---------------------------------------------------------------------------------- */
.cnt-faq { max-width: 56rem; }
.cnt-faq__tools { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem 1rem; margin-bottom: 1.25rem; }
.cnt-faq__tools .cnt-search { flex: 1 1 260px; max-width: 28rem; }
.cnt-faq__bulk { display: flex; flex-wrap: wrap; gap: .25rem; }
.cnt-faq__group { margin-top: clamp(1.75rem, 4vw, 2.75rem); scroll-margin-top: calc(var(--srf-header-h) + 1rem); }
.cnt-faq__grouptitle { display: flex; align-items: center; gap: .7rem; margin: 0 0 1rem; font-size: clamp(1.25rem, 2.2vw, 1.6rem); }
.cnt-faq__grouptitle::before { content: ""; flex: 0 0 26px; height: 2px; border-radius: 2px; background: var(--srf-gold-500); }
.cnt-faq__list { display: grid; gap: .7rem; }
.cnt-faq__item {
  scroll-margin-top: calc(var(--srf-header-h) + 1rem); background: var(--srf-paper); border: 1px solid var(--srf-line); border-radius: var(--srf-radius-md); box-shadow: var(--srf-shadow-1);
  transition: border-color var(--srf-dur-2) var(--srf-ease), box-shadow var(--srf-dur-2) var(--srf-ease);
}
.cnt-faq__item[open] { border-color: var(--srf-gold-300); box-shadow: var(--srf-shadow-2); }
.cnt-faq__q {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 56px; padding: .85rem 1.15rem;
  border-radius: inherit; color: var(--srf-navy-900); font: 600 1.02rem/1.4 var(--srf-font-ui); list-style: none; cursor: pointer;
}
.cnt-faq__q::-webkit-details-marker { display: none; }
.cnt-faq__q::marker { content: ""; }
.cnt-faq__q:focus-visible { outline: 3px solid rgba(221, 158, 56, .65); outline-offset: 2px; }
html[lang="bn"] .cnt-faq__q { font-size: 1.08rem; }
.cnt-faq__qtext { min-width: 0; overflow-wrap: anywhere; }
.cnt-faq__icon {
  flex: 0 0 auto; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%;
  background: var(--srf-gold-100); color: var(--srf-gold-800);
  transition: rotate var(--srf-dur-2) var(--srf-ease), background-color var(--srf-dur-2) var(--srf-ease), color var(--srf-dur-2) var(--srf-ease);
}
.cnt-faq__item[open] .cnt-faq__icon { rotate: 45deg; background: var(--srf-navy-900); color: #fff; }
.cnt-faq__a { max-width: none; padding: 0 1.15rem 1.15rem; font-size: 1rem; }
.cnt-faq__a > :last-child { margin-bottom: 0; }
.cnt-faq__none { margin-top: 2rem; color: var(--srf-muted); text-align: center; }

/* ---------- 5. Pages -------------------------------------------------------------------------------- */
.cnt-page { max-width: 52rem; }
.cnt-page__updated { display: flex; align-items: center; gap: .5rem; margin: 2.25rem 0 0; padding-top: 1rem; border-top: 1px solid var(--srf-line); color: var(--srf-muted); font-size: .9rem; }
.cnt-page__updated i { color: var(--srf-gold-700); }

/* ---------- 6. Downloads ---------------------------------------------------------------------------- */
.cnt-docs { display: grid; gap: clamp(1.75rem, 4vw, 2.75rem); }
.cnt-docs__title { display: flex; align-items: center; gap: .7rem; margin: 0 0 1rem; font-size: clamp(1.25rem, 2.2vw, 1.6rem); }
.cnt-docs__title::before { content: ""; flex: 0 0 26px; height: 2px; border-radius: 2px; background: var(--srf-gold-500); }
.cnt-docs__list { display: grid; gap: .75rem; margin: 0; padding: 0; list-style: none; }
@media (min-width: 992px) { .cnt-docs__list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.cnt-doc {
  display: flex; align-items: center; gap: 1rem; min-width: 0; padding: 1rem 1.1rem;
  background: var(--srf-paper); border: 1px solid var(--srf-line); border-radius: var(--srf-radius-md); box-shadow: var(--srf-shadow-1);
  transition: border-color var(--srf-dur-2) var(--srf-ease), box-shadow var(--srf-dur-2) var(--srf-ease);
}
.cnt-doc:hover { border-color: var(--srf-gold-300); box-shadow: var(--srf-shadow-2); }
.cnt-doc__icon {
  flex: 0 0 auto; display: grid; place-items: center; width: 52px; height: 52px; border-radius: var(--srf-radius-md);
  background: var(--srf-navy-50); color: var(--srf-navy-800); font-size: 1.6rem;
}
.cnt-doc__icon--pdf { background: var(--srf-danger-bg); color: var(--srf-danger); }
.cnt-doc__icon--word { background: var(--srf-info-bg); color: var(--srf-info); }
.cnt-doc__icon--excel { background: var(--srf-success-bg); color: var(--srf-success); }
.cnt-doc__icon--ppt { background: var(--srf-warning-bg); color: var(--srf-warning); }
.cnt-doc__icon--sm { width: 40px; height: 40px; border-radius: var(--srf-radius-sm); font-size: 1.25rem; }
.cnt-doc__main { flex: 1 1 auto; min-width: 0; }
.cnt-doc__title { margin: 0; font: 600 1.05rem/1.35 var(--srf-font-ui); color: var(--srf-navy-900); overflow-wrap: anywhere; }
.cnt-doc__desc { margin: .25rem 0 0; color: var(--srf-muted); font-size: .92rem; }
.cnt-doc__meta { display: flex; flex-wrap: wrap; gap: .15rem .9rem; margin: .4rem 0 0; color: var(--srf-muted); font-size: .82rem; }
.cnt-doc__btn { flex: 0 0 auto; }
@media (max-width: 575.98px) {
  .cnt-doc { flex-wrap: wrap; }
  .cnt-doc__main { flex: 1 1 calc(100% - 70px); }
  .cnt-doc__btn { width: 100%; }
}

/* ---------- 7. In-page media viewer on the public site (the staff shell styles it through admin.css) --------------- */
body:not(.srf-admin) #mediaViewerModal .modal-content { border: 0; border-radius: var(--srf-radius-lg); overflow: hidden; }
body:not(.srf-admin) #mediaViewerModal .modal-title { color: var(--srf-navy-900); font-family: var(--srf-font-heading); font-size: 1.1rem; font-weight: 600; }
body:not(.srf-admin) #mediaViewerModal .srf-modal-media { position: relative; display: grid; place-items: center; max-height: 78vh; overflow: hidden; background: var(--srf-navy-950); }
body:not(.srf-admin) #mediaViewerModal .srf-modal-media img { max-width: 100%; max-height: 78vh; object-fit: contain; }
body:not(.srf-admin) #mediaViewerModal .srf-modal-frame { display: block; width: 100%; height: 75vh; border: 0; }
@media (max-width: 575.98px) {
  body:not(.srf-admin) #mediaViewerModal .srf-modal-media, body:not(.srf-admin) #mediaViewerModal .srf-modal-media img { max-height: calc(100vh - 8.5rem); }
}
.cnt-viewer-nav {
  position: absolute; top: 50%; z-index: 3; translate: 0 -50%; display: grid; place-items: center; width: 48px; height: 48px; padding: 0;
  border: 0; border-radius: 50%; background: rgba(7, 19, 39, .62); color: #fff; font-size: 1.3rem; cursor: pointer;
  transition: background-color var(--srf-dur-2) var(--srf-ease);
}
.cnt-viewer-nav:hover { background: rgba(7, 19, 39, .88); }
.cnt-viewer-nav:focus-visible { outline: 3px solid rgba(221, 158, 56, .8); outline-offset: 2px; }
.cnt-viewer-nav--prev { left: .6rem; }
.cnt-viewer-nav--next { right: .6rem; }
.cnt-viewer-nav[hidden] { display: none; }
.cnt-viewer-count { position: absolute; left: 50%; bottom: .6rem; z-index: 3; translate: -50% 0; padding: .2rem .7rem; border-radius: var(--srf-radius-pill); background: rgba(7, 19, 39, .66); color: #fff; font: 600 .8rem/1.4 var(--srf-font-ui); }
.cnt-viewer-count[hidden] { display: none; }

/* ---------- 8. Staff screens ------------------------------------------------------------------------- */
.cnt-admin-media { display: flex; align-items: center; gap: .85rem; min-width: 0; }
.cnt-admin-media__text { min-width: 0; }
.cnt-admin-thumb-wrap { position: relative; flex: 0 0 auto; display: block; line-height: 0; }
.cnt-admin-thumb {
  flex: 0 0 auto; width: 64px; height: 48px; object-fit: cover; border: 1px solid var(--srf-line-cool); border-radius: var(--srf-radius-sm); background: var(--srf-navy-50);
}
.cnt-admin-thumb--empty { display: grid; place-items: center; color: var(--srf-navy-200); font-size: 1.3rem; }
@media (max-width: 575.98px) {                               /* phones: a smaller thumbnail leaves room for the title beside the action buttons */
  .cnt-admin-thumb { width: 48px; height: 36px; }
  .cnt-admin-media { gap: .6rem; }
}
.cnt-admin-thumb--zoom { cursor: zoom-in; }
.cnt-admin-thumb__play { position: absolute; inset: 0; display: grid; place-items: center; color: #fff; font-size: 1.5rem; text-shadow: 0 1px 6px rgba(7, 19, 39, .7); pointer-events: none; }
.cnt-current-image img { display: block; width: auto; max-width: min(100%, 240px); height: auto; margin-bottom: .6rem; border: 1px solid var(--srf-line-cool); border-radius: var(--srf-radius-md); cursor: zoom-in; }
.cnt-current-file { display: flex; align-items: center; gap: .8rem; margin-bottom: .6rem; }
.cnt-file-list { display: grid; gap: .25rem; margin: .6rem 0 0; padding: 0; font-size: .85rem; list-style: none; }
.cnt-file-list li { display: flex; justify-content: space-between; gap: .6rem; padding: .3rem .6rem; border-radius: var(--srf-radius-sm); background: var(--srf-navy-50); overflow-wrap: anywhere; }
.cnt-file-list li.is-bad { background: var(--srf-danger-bg); color: var(--srf-danger); }
.cnt-file-list__summary { font-weight: 600; }
.cnt-file-list__summary.is-bad { color: var(--srf-danger); }

/* rich-text fields: a plain textarea with a formatting toolbar */
.cnt-rt { overflow: hidden; border: 1px solid var(--srf-input-border, var(--srf-line-cool)); border-radius: var(--srf-radius-md); background: #fff; }
.cnt-rt:focus-within { border-color: var(--srf-navy-600); box-shadow: var(--srf-ring); }
.cnt-rt__bar { display: flex; flex-wrap: wrap; gap: 2px; padding: 4px; border-bottom: 1px solid var(--srf-line-cool); background: var(--srf-navy-50); }
.cnt-rt__btn {
  display: inline-grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 8px;
  background: transparent; color: var(--srf-navy-800); font-size: 1.1rem; cursor: pointer;
}
.cnt-rt__btn:hover { background: var(--srf-navy-100); }
.cnt-rt__btn:focus-visible { outline: 3px solid var(--srf-focus); outline-offset: -2px; }      /* solid navy (--srf-focus); the translucent gold measured 1.6:1 on the toolbar */
.cnt-rt__area.form-control {
  min-height: 180px; border: 0; border-radius: 0; box-shadow: none; resize: vertical;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace; font-size: .9rem; line-height: 1.55;
}
html[lang="bn"] .cnt-rt__area.form-control { font-family: var(--srf-font-body); font-size: 1rem; line-height: 1.7; }
.cnt-rt__area.form-control:focus { box-shadow: none; }
