/* ============================================================
   Bangladesh Newspaper Directory  v4
   Glassmorphic UI — light mode, balanced contrast
   Full-width centered hero · contained left-aligned sections
   ============================================================ */

.bnd-root {
	--bnd-green: #06694d;
	--bnd-green-soft: #0c8a64;
	--bnd-green-ink: #0a5e44;     /* green for text on white */
	--bnd-red: #e23b46;
	--bnd-ink: #18222f;           /* headings */
	--bnd-body: #3a4654;          /* body text (eased back from v3) */
	--bnd-muted: #5a6a7d;         /* secondary text */
	--bnd-line: rgba(24, 34, 47, 0.09);
	--bnd-line-soft: rgba(24, 34, 47, 0.07);
	--bnd-page: #f2f5f9;          /* light page so white cards still separate */
	--bnd-glass: rgba(255, 255, 255, 0.86);
	--bnd-glass-strong: #ffffff;
	--bnd-radius: 20px;
	--bnd-radius-sm: 14px;

	/* Softer, lighter shadows (eased from v3) */
	--bnd-shadow-sm: 0 1px 4px rgba(24, 34, 47, 0.06), 0 1px 2px rgba(24, 34, 47, 0.04);
	--bnd-shadow: 0 12px 26px -16px rgba(24, 34, 47, 0.26), 0 4px 10px rgba(24, 34, 47, 0.06);
	--bnd-shadow-lg: 0 40px 80px -30px rgba(24, 34, 47, 0.42);

	--bnd-font-bn: 'Anek Bangla', 'Noto Sans Bengali', 'Hind Siliguri', sans-serif;
	--bnd-font-body: 'Noto Sans Bengali', 'Inter', 'Anek Bangla', sans-serif;
	--bnd-font-en: 'Inter', sans-serif;

	position: relative;
	font-family: var(--bnd-font-body);
	color: var(--bnd-ink);
	background: none;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
	box-sizing: border-box;
	padding: 0 0 30px;
	overflow: clip;
}
.bnd-root *,
.bnd-root *::before,
.bnd-root *::after { box-sizing: border-box; }
.bnd-root [hidden] { display: none !important; }

/* ---- Ambient background blobs ---- */
.bnd-bg { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.bnd-bg__blob { position: absolute; width: 44vw; max-width: 600px; aspect-ratio: 1; border-radius: 50%; filter: blur(95px); }
.bnd-bg__blob--green { background: var(--bnd-green); top: -14%; left: -8%; opacity: 0.13; }
.bnd-bg__blob--red   { background: var(--bnd-red);   bottom: -16%; right: -6%; opacity: 0.08; }

/* Full-width breakout for the whole widget */
.bnd-fullwidth {
	width: 100vw; max-width: 100vw;
	margin-left: calc(50% - 50vw);
	margin-right: calc(50% - 50vw);
}

/* ============================================================
   HERO — plain text, no background
   ============================================================ */
.bnd-hero {
	position: relative;
	z-index: 1;
	width: 100%;
	text-align: center;
	padding: 56px clamp(16px, 5vw, 64px) 8px;
}
.bnd-hero__inner {
	max-width: 760px;
	margin: 0 auto;
	display: flex;
	flex-direction: column;
	align-items: center;
}
.bnd-title {
	font-family: var(--bnd-font-bn);
	font-weight: 800;
	font-size: clamp(26px, 4.4vw, 42px);
	line-height: 1.12;
	margin: 0;
	color: var(--bnd-ink);
	letter-spacing: -0.015em;
}
.bnd-title-en {
	font-family: var(--bnd-font-en);
	font-weight: 600;
	font-size: clamp(13px, 1.7vw, 16px);
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--bnd-green-ink);
	margin: 8px 0 0;
}
.bnd-subtitle {
	margin: 12px 0 0;
	font-size: clamp(14px, 1.7vw, 16.5px);
	color: var(--bnd-body);
	line-height: 1.65;
	max-width: 68ch;
	font-weight: 500;
}
/* ---- Search (no icon), lives inside the toolbar card ---- */
.bnd-search { position: relative; display: flex; align-items: center; width: 100%; }
.bnd-search__input {
	width: 100%;
	font-family: var(--bnd-font-body);
	font-size: 16px; font-weight: 500;
	color: var(--bnd-ink);
	text-align: left;
	padding: 15px 48px 15px 22px;
	border-radius: 15px;
	border: 1.5px solid var(--bnd-line);
	background: #ffffff;
	outline: none;
	transition: border-color .2s ease, box-shadow .2s ease;
}
.bnd-search__input::placeholder { color: #7b8799; font-weight: 400; }
.bnd-search__input:focus {
	border-color: var(--bnd-green);
	box-shadow: 0 0 0 4px rgba(6, 105, 77, 0.14), var(--bnd-shadow-sm);
}
.bnd-search__clear {
	position: absolute; right: 11px;
	display: grid; place-items: center; width: 30px; height: 30px;
	border: none; border-radius: 50%;
	background: rgba(24, 34, 47, 0.07); color: var(--bnd-body);
	cursor: pointer; transition: background .15s ease, color .15s ease;
}
.bnd-search__clear:hover { background: rgba(226, 59, 70, 0.13); color: var(--bnd-red); }

/* ============================================================
   Toolbar — search + filters together, one white card, drop shadow
   ============================================================ */
.bnd-toolbar {
	position: relative;
	z-index: 1;
	width: 100%;
	margin-bottom: 40px;
}
.bnd-toolbar__card {
	display: flex;
	flex-direction: column;
	gap: 16px;
	background: #ffffff;
	border: 1px solid var(--bnd-line);
	border-radius: var(--bnd-radius);
	box-shadow: var(--bnd-shadow);
	padding: 20px clamp(16px, 4vw, 26px);
}
.bnd-filters {
	display: flex;
	flex-wrap: nowrap;
	align-items: center;
	gap: 9px;
	overflow-x: auto;
	scrollbar-width: none;
	-ms-overflow-style: none;
	-webkit-overflow-scrolling: touch;
}
.bnd-filters::-webkit-scrollbar { display: none; }
.bnd-chip {
	flex: 0 0 auto;
	font-family: var(--bnd-font-bn);
	font-size: 14px; font-weight: 600;
	color: var(--bnd-body);
	white-space: nowrap;
	padding: 8px 16px; border-radius: 999px;
	border: 1.5px solid var(--bnd-line);
	background: #ffffff;
	cursor: pointer; transition: all .18s ease;
}
.bnd-chip:hover { color: var(--bnd-green-ink); border-color: rgba(6, 105, 77, 0.45); transform: translateY(-1px); }
.bnd-chip.is-active {
	color: #fff;
	background: linear-gradient(135deg, var(--bnd-green) 0%, var(--bnd-green-soft) 100%);
	border-color: transparent;
	box-shadow: 0 9px 18px -7px rgba(6, 105, 77, 0.5);
}

/* ============================================================
   Shell — contained, left aligned
   ============================================================ */
.bnd-shell {
	position: relative;
	z-index: 1;
	width: 100%;
	max-width: 1340px;
	margin: 0 auto;
	padding-inline: clamp(16px, 4vw, 40px);
}

/* Shared glass surface (cards/articles/modal) */
.bnd-glass {
	background: var(--bnd-glass);
	-webkit-backdrop-filter: blur(18px) saturate(135%);
	backdrop-filter: blur(18px) saturate(135%);
	border: 1px solid rgba(255, 255, 255, 0.85);
	box-shadow: var(--bnd-shadow);
}

/* ============================================================
   Sections — left aligned heads
   ============================================================ */
.bnd-sections { display: flex; flex-direction: column; gap: 38px; }
.bnd-section.is-hidden { display: none; }
.bnd-section__head {
	display: flex; align-items: flex-start; gap: 14px;
	margin-bottom: 18px; padding-bottom: 15px;
	border-bottom: 1.5px solid var(--bnd-line);
}
.bnd-section__titles { flex: 1 1 auto; min-width: 0; }
.bnd-section__title {
	font-family: var(--bnd-font-bn);
	font-weight: 700; font-size: clamp(19px, 2.4vw, 24px);
	line-height: 1.25; margin: 0 0 3px; color: var(--bnd-ink);
	letter-spacing: -0.01em;
}
.bnd-section__en { font-family: var(--bnd-font-en); font-weight: 600; font-size: 0.6em; color: var(--bnd-green-ink); }
.bnd-section__intro { margin: 0; font-size: 14px; line-height: 1.55; color: var(--bnd-muted); max-width: 90ch; font-weight: 500; }
.bnd-section__badge {
	flex: 0 0 auto; align-self: center;
	font-family: var(--bnd-font-bn); font-weight: 700; font-size: 12.5px;
	color: var(--bnd-green-ink);
	padding: 5px 13px; border-radius: 999px;
	background: rgba(6, 105, 77, 0.09);
	border: 1px solid rgba(6, 105, 77, 0.2);
	white-space: nowrap;
}

/* ============================================================
   Grid + cards  (4 per row)
   ============================================================ */
.bnd-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.bnd-card {
	position: relative;
	display: flex; align-items: center; gap: 14px;
	width: 100%; text-align: left; padding: 15px 16px;
	border-radius: 15px;
	border: 1px solid var(--bnd-line);
	background: #ffffff;
	box-shadow: var(--bnd-shadow-sm);
	cursor: pointer; overflow: hidden;
	transition: transform .2s cubic-bezier(.2,.7,.3,1), box-shadow .2s ease, border-color .2s ease;
	font-family: inherit;
}
.bnd-card__glow {
	position: absolute; inset: 0;
	background: radial-gradient(150px 90px at var(--mx, 50%) var(--my, 0%), rgba(6, 105, 77, 0.1), transparent 70%);
	opacity: 0; transition: opacity .25s ease; pointer-events: none;
}
.bnd-card:hover { transform: translateY(-3px); box-shadow: var(--bnd-shadow); border-color: rgba(6, 105, 77, 0.32); }
.bnd-card:hover .bnd-card__glow { opacity: 1; }
.bnd-card:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(6, 105, 77, 0.4), var(--bnd-shadow); }
.bnd-card__logo {
	flex: 0 0 auto; width: 50px; height: 50px;
	display: grid; place-items: center; border-radius: 13px;
	background: #fff; border: 1px solid var(--bnd-line);
	box-shadow: var(--bnd-shadow-sm); overflow: hidden;
}
.bnd-card__logo img { width: 30px; height: 30px; object-fit: contain; border-radius: 6px; }
.bnd-card__body { flex: 1 1 auto; min-width: 0; }
.bnd-card__name {
	display: block; font-family: var(--bnd-font-bn); font-weight: 700; font-size: 15.5px;
	color: var(--bnd-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.bnd-card__name-en {
	display: block; font-family: var(--bnd-font-en); font-size: 12px; font-weight: 500;
	color: var(--bnd-muted); margin-top: 2px;
	white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.bnd-card__cta {
	flex: 0 0 auto; display: grid; place-items: center;
	width: 33px; height: 33px; border-radius: 10px;
	color: var(--bnd-green); background: rgba(6, 105, 77, 0.1);
	transition: background .2s ease, color .2s ease, transform .2s ease;
}
.bnd-card:hover .bnd-card__cta { background: var(--bnd-green); color: #fff; transform: translateX(2px); }
.bnd-card.is-hidden { display: none; }

/* ---- Empty state ---- */
.bnd-empty { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; padding: 64px 20px; color: var(--bnd-muted); }
.bnd-empty svg { color: #9aa6b6; margin-bottom: 6px; }
.bnd-empty p { margin: 0; font-family: var(--bnd-font-bn); font-weight: 700; font-size: 18px; color: var(--bnd-ink); }
.bnd-empty span { font-size: 14px; }

/* ============================================================
   Content: About / Guide / FAQ (left aligned headings)
   ============================================================ */
.bnd-content { margin-top: 46px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.bnd-article { border-radius: var(--bnd-radius); padding: 26px 28px; }
.bnd-article--faq { grid-column: 1 / -1; }
.bnd-article__head { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.bnd-article__icon {
	flex: 0 0 auto; display: grid; place-items: center; width: 40px; height: 40px;
	border-radius: 11px; color: var(--bnd-green-ink);
	background: rgba(6, 105, 77, 0.09); border: 1px solid rgba(6, 105, 77, 0.18);
}
.bnd-article__head h3 { font-family: var(--bnd-font-bn); font-weight: 700; font-size: clamp(17px, 2.2vw, 21px); margin: 0; color: var(--bnd-ink); }
.bnd-article__head h3 span { font-family: var(--bnd-font-en); font-weight: 600; font-size: 0.64em; color: var(--bnd-muted); }
.bnd-article p { font-size: 15px; line-height: 1.72; color: var(--bnd-body); margin: 0 0 12px; }
.bnd-article p:last-child { margin-bottom: 0; }
.bnd-article strong { color: var(--bnd-ink); font-weight: 700; }
.bnd-article code { font-family: 'Inter', monospace; font-size: 0.85em; background: rgba(6, 105, 77, 0.09); color: var(--bnd-green-ink); padding: 2px 7px; border-radius: 6px; font-weight: 600; }

.bnd-steps { margin: 0; padding: 0; list-style: none; counter-reset: bnd-step; display: flex; flex-direction: column; gap: 13px; }
.bnd-steps li { position: relative; counter-increment: bnd-step; padding-left: 48px; font-size: 15px; line-height: 1.6; color: var(--bnd-body); min-height: 34px; display: flex; align-items: center; }
.bnd-steps li::before {
	content: counter(bnd-step); position: absolute; left: 0; top: 0;
	width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%;
	font-family: var(--bnd-font-en); font-weight: 700; font-size: 14px; color: #fff;
	background: linear-gradient(135deg, var(--bnd-green), var(--bnd-green-soft));
	box-shadow: 0 6px 13px -7px rgba(6, 105, 77, 0.6);
}

.bnd-faq { border: 1.5px solid var(--bnd-line); border-radius: var(--bnd-radius-sm); background: #fff; margin-bottom: 10px; overflow: hidden; box-shadow: var(--bnd-shadow-sm); }
.bnd-faq:last-child { margin-bottom: 0; }
.bnd-faq summary {
	display: flex; align-items: center; justify-content: space-between; gap: 12px;
	padding: 15px 18px; cursor: pointer;
	font-family: var(--bnd-font-bn); font-weight: 600; font-size: 15.5px; color: var(--bnd-ink);
	list-style: none; transition: background .15s ease;
}
.bnd-faq summary::-webkit-details-marker { display: none; }
.bnd-faq summary:hover { background: rgba(6, 105, 77, 0.045); }
.bnd-faq__chevron { flex: 0 0 auto; color: var(--bnd-green-ink); transition: transform .2s ease; }
.bnd-faq[open] .bnd-faq__chevron { transform: rotate(180deg); }
.bnd-faq p { margin: 0; padding: 0 18px 16px; font-size: 14.5px; line-height: 1.7; color: var(--bnd-body); }

.bnd-footer { margin-top: 30px; text-align: center; font-family: var(--bnd-font-en); font-size: 12px; letter-spacing: .05em; color: #8390a1; font-weight: 500; }

/* ============================================================
   Modal
   ============================================================ */
.bnd-modal { position: fixed; inset: 0; z-index: 999999; display: grid; place-items: center; padding: 3vmin; }
.bnd-modal[hidden] { display: none; }
.bnd-modal__overlay {
	position: absolute; inset: 0; background: rgba(24, 34, 47, 0.46);
	-webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); animation: bnd-fade .25s ease;
}
.bnd-modal__panel {
	position: relative; width: min(1100px, 96vw); height: min(860px, 92vh);
	display: flex; flex-direction: column; border-radius: 22px; overflow: hidden;
	box-shadow: var(--bnd-shadow-lg); animation: bnd-pop .32s cubic-bezier(.2,.8,.25,1);
}
.bnd-modal__bar {
	flex: 0 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 12px;
	padding: 12px 14px; border-bottom: 1.5px solid var(--bnd-line); background: #fff;
}
.bnd-modal__id { display: flex; align-items: center; gap: 12px; min-width: 0; }
.bnd-modal__fav { width: 34px; height: 34px; border-radius: 9px; background: #fff; border: 1.5px solid var(--bnd-line); padding: 4px; box-shadow: var(--bnd-shadow-sm); object-fit: contain; }
.bnd-modal__titles { min-width: 0; }
.bnd-modal__title { display: block; font-family: var(--bnd-font-bn); font-weight: 700; font-size: 16px; color: var(--bnd-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bnd-modal__url { display: block; font-family: var(--bnd-font-en); font-size: 12px; color: var(--bnd-green-ink); text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 500; }
.bnd-modal__url:hover { text-decoration: underline; }
.bnd-modal__actions { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; }

.bnd-btn { display: inline-flex; align-items: center; gap: 7px; font-family: var(--bnd-font-bn); font-size: 14px; font-weight: 600; border-radius: 11px; padding: 9px 14px; cursor: pointer; border: 1px solid transparent; text-decoration: none; transition: all .18s ease; white-space: nowrap; }
.bnd-btn--ghost { color: var(--bnd-green-ink); background: rgba(6, 105, 77, 0.1); }
.bnd-btn--ghost:hover { background: rgba(6, 105, 77, 0.17); }
.bnd-btn--solid { color: #fff; background: linear-gradient(135deg, var(--bnd-green), var(--bnd-green-soft)); box-shadow: 0 8px 16px -7px rgba(6, 105, 77, 0.55); }
.bnd-btn--solid:hover { filter: brightness(1.05); }
.bnd-btn--close { width: 38px; height: 38px; padding: 0; justify-content: center; color: var(--bnd-body); background: rgba(24, 34, 47, 0.06); }
.bnd-btn--close:hover { background: rgba(226, 59, 70, 0.13); color: var(--bnd-red); }

.bnd-modal__frame { position: relative; flex: 1 1 auto; background: #eef1f5; }
.bnd-modal__iframe { width: 100%; height: 100%; border: 0; background: #fff; }
.bnd-modal__loader, .bnd-modal__fallback { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; text-align: center; color: var(--bnd-body); background: #eef1f5; padding: 24px; }
.bnd-modal__fallback[hidden], .bnd-modal__loader[hidden] { display: none; }
.bnd-modal__loader span:last-child { font-family: var(--bnd-font-bn); font-size: 14px; }
.bnd-modal__fallback svg { color: var(--bnd-red); }
.bnd-modal__fallback p { margin: 0; font-family: var(--bnd-font-bn); font-weight: 600; font-size: 16px; color: var(--bnd-ink); max-width: 40ch; }
.bnd-spinner { width: 34px; height: 34px; border-radius: 50%; border: 3px solid rgba(6, 105, 77, 0.18); border-top-color: var(--bnd-green); animation: bnd-spin .8s linear infinite; }

@keyframes bnd-spin { to { transform: rotate(360deg); } }
@keyframes bnd-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes bnd-pop { from { opacity: 0; transform: translateY(14px) scale(.98); } to { opacity: 1; transform: translateY(0) scale(1); } }
body.bnd-modal-open { overflow: hidden; }

/* ============================================================
   Responsive — keep 4 cols on desktop, scale down
   ============================================================ */
@media (max-width: 1100px) { .bnd-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 760px) {
	.bnd-grid { grid-template-columns: repeat(2, 1fr); }
	.bnd-content { grid-template-columns: 1fr; margin-top: 32px; }
	.bnd-article { padding: 22px 20px; }
	.bnd-hero { padding: 40px 18px 6px; }
	.bnd-toolbar__card { padding: 16px; border-radius: var(--bnd-radius-sm); }
	.bnd-section__head { flex-wrap: wrap; }
	.bnd-section__badge { order: 2; align-self: flex-start; }
}
@media (max-width: 480px) {
	.bnd-grid { grid-template-columns: 1fr; gap: 12px; }
	.bnd-modal { padding: 0; }
	.bnd-modal__panel { width: 100vw; height: 100dvh; border-radius: 0; }
	.bnd-btn--ghost span { display: none; }
	.bnd-btn--ghost { padding: 9px; }
}

@media (prefers-reduced-motion: reduce) {
	.bnd-root *, .bnd-root *::before, .bnd-root *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}
