/* CIT Photo Card — frontend */

@font-face {
	font-family: "CIT Noto Serif Bengali";
	font-style: normal;
	font-weight: 700;
	font-display: swap;
	src: url("../fonts/noto-serif-bengali-bengali-700-normal.woff2") format("woff2");
	unicode-range: U+0951-0952, U+0964-0965, U+0980-09FE, U+1CD0, U+1CD2, U+1CD5-1CD6, U+1CD8, U+1CE1, U+1CEA, U+1CED, U+1CF2, U+1CF5-1CF7, U+200C-200D, U+20B9, U+25CC, U+A8F1;
}
@font-face {
	font-family: "CIT Noto Serif Bengali";
	font-style: normal;
	font-weight: 700;
	font-display: swap;
	src: url("../fonts/noto-serif-bengali-latin-700-normal.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: "CIT Noto Serif Bengali";
	font-style: normal;
	font-weight: 800;
	font-display: swap;
	src: url("../fonts/noto-serif-bengali-bengali-800-normal.woff2") format("woff2");
	unicode-range: U+0951-0952, U+0964-0965, U+0980-09FE, U+1CD0, U+1CD2, U+1CD5-1CD6, U+1CD8, U+1CE1, U+1CEA, U+1CED, U+1CF2, U+1CF5-1CF7, U+200C-200D, U+20B9, U+25CC, U+A8F1;
}
@font-face {
	font-family: "CIT Noto Serif Bengali";
	font-style: normal;
	font-weight: 800;
	font-display: swap;
	src: url("../fonts/noto-serif-bengali-latin-800-normal.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- পেজ ---------- */
.citpc-body {
	margin: 0;
	min-height: 100vh;
	font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
.citpc-page {
	max-width: 440px;
	margin: 0 auto;
	padding: 16px 12px 24px;
}
.citpc-copy {
	margin: 10px 0 0;
	text-align: center;
	color: #5aa9e0;
	font-size: 12px;
}

/* ---------- অ্যাপ ---------- */
.citpc-app {
	box-sizing: border-box;
	max-width: 440px;
	margin-left: auto;
	margin-right: auto;
	color: var(--citpc-text, #fff);
}
.citpc-app *,
.citpc-app *::before,
.citpc-app *::after {
	box-sizing: border-box;
}
.citpc-embed {
	margin-top: 1.5em;
	margin-bottom: 1.5em;
	padding: 14px;
	background: #07263b;
	border-radius: 10px;
}

.citpc-scroll {
	overflow-x: auto;
	text-align: center;
}

/* ---------- কার্ড ---------- */
.citpc-app .citpc-card {
	position: relative;
	display: block;
	width: 360px;
	height: var(--citpc-h, 357px);
	margin: 0 auto;
	overflow: hidden;
	background: #fff;
	text-align: left;
	font-family: "CIT Noto Serif Bengali", "Noto Serif Bengali", "Kalpurush", "SolaimanLipi", serif;
}
.citpc-app .citpc-bg {
	position: absolute;
	inset: 0;
	z-index: 3;
	pointer-events: none;
}
.citpc-app .citpc-bg-img {
	display: block;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: fill;
	margin: 0;
	border: 0;
}
.citpc-app .citpc-bg-solid {
	width: 100%;
	height: 100%;
	background: var(--citpc-brand, #c20000);
}
.citpc-app .citpc-photo {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: var(--citpc-photo-h, 200px);
	z-index: 1;
	overflow: hidden;
	background: #dfe5ea;
}
.citpc-app .citpc-photo img {
	display: block;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
	margin: 0;
	border: 0;
}
.citpc-app .citpc-photo-empty {
	width: 100%;
	height: 100%;
}

/* ফ্রেম ছবির উপরে (z=3), কনটেন্ট তার উপরে */
.citpc-app .citpc-content {
	position: absolute;
	inset: 0;
	z-index: 4;
}
.citpc-app .citpc-meta {
	position: absolute;
	top: 2px;
	left: 8px;
	z-index: 33;
	color: #fff;
	font-size: 10px;
	font-weight: 700;
	line-height: 1.4;
	text-shadow: 0 1px 2px rgba(0, 0, 0, .55);
}
.citpc-app .citpc-logo {
	position: absolute;
	top: var(--citpc-logo-top, 166px);
	left: 50%;
	transform: translateX(-50%);
	height: var(--citpc-logo-h, 39px);
	width: auto;
	max-width: none;
	z-index: 99;
	margin: 0;
	border: 0;
}
.citpc-app .citpc-heading-wrap {
	position: absolute;
	top: var(--citpc-head-top, 205px);
	left: 0;
	width: 100%;
	z-index: 50;
}
.citpc-app .citpc-heading {
	margin: 5px 0 0;
	padding: 0 10px;
	height: var(--citpc-head-h, 62px);
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	text-align: center;
	font-family: inherit;
	font-weight: 800;
	font-size: var(--citpc-fs, 20px);
	line-height: var(--citpc-lh, 28px);
	color: var(--citpc-text, #fff);
	letter-spacing: 0;
	text-transform: none;
	cursor: pointer;
	word-break: break-word;
}
.citpc-app .citpc-heading .citpc-word {
	display: inline;
	white-space: pre-wrap;
}
.citpc-app .citpc-heading .citpc-word.is-hl {
	color: var(--citpc-hl, #fff200);
}
.citpc-app .citpc-heading-text {
	display: block;
	width: 100%;
}
.citpc-app .citpc-ads {
	position: absolute;
	top: var(--citpc-ads-top, 324px);
	left: 0;
	width: 100%;
	z-index: 50;
}
.citpc-app .citpc-ads img {
	display: block;
	width: 100%;
	height: auto;
	max-width: 100%;
	margin: 0;
	border: 0;
}

/* ---------- মার্কি ---------- */
.citpc-app .citpc-marquee {
	overflow: hidden;
	margin-top: 12px;
	background: #cc0000;
	border: 1px solid #cc3300;
	font-weight: 700;
}
.citpc-app .citpc-marquee__text {
	display: inline-block;
	white-space: nowrap;
	padding: 4px 0 4px 100%;
	color: #fff;
	font-size: 16px;
	animation: citpc-marquee 16s linear infinite;
}
@keyframes citpc-marquee {
	from { transform: translateX(0); }
	to   { transform: translateX(-100%); }
}
@media (prefers-reduced-motion: reduce) {
	.citpc-app .citpc-marquee__text { animation: none; padding-left: 8px; white-space: normal; }
}

/* ---------- কন্ট্রোল ---------- */
.citpc-app .citpc-controls {
	margin-top: 12px;
	padding: 14px 16px;
	background: rgba(255, 255, 255, .08);
	border-radius: 10px;
	color: #fff;
}
.citpc-app .citpc-hint {
	margin: 0 0 8px;
	text-align: center;
	color: #fff200;
	font-size: 14px;
	font-weight: 700;
	animation: citpc-blink 1s steps(2, start) infinite;
}
@keyframes citpc-blink {
	to { visibility: hidden; }
}
@media (prefers-reduced-motion: reduce) {
	.citpc-app .citpc-hint { animation: none; }
}
.citpc-app .citpc-label {
	display: block;
	margin-bottom: 8px;
	font-size: 14px;
	color: #fff;
}
.citpc-app .citpc-label input[type="range"] {
	display: block;
	width: 100%;
	margin: 6px 0 0;
}
.citpc-app .citpc-actions {
	display: flex;
	gap: 8px;
	margin-top: 12px;
}
.citpc-app .citpc-action {
	flex: 1;
	display: inline-block;
	padding: 9px 10px;
	border: 0;
	border-radius: 6px;
	font: inherit;
	font-size: 14px;
	line-height: 1.3;
	text-align: center;
	text-decoration: none;
	cursor: pointer;
}
.citpc-app .citpc-action[hidden] { display: none; }
.citpc-app .citpc-action--ghost { background: #6c757d; color: #fff; }
.citpc-app .citpc-action--main  { background: #0dcaf0; color: #000; font-weight: 700; }
.citpc-app .citpc-action:disabled { opacity: .6; cursor: wait; }
.citpc-app .citpc-status {
	min-height: 1.2em;
	margin: 8px 0 0;
	text-align: center;
	font-size: 13px;
	color: #ffd0d0;
}

/* ---------- পোস্টের বাটন ---------- */
.citpc-btn-wrap { margin: 1.2em 0; }
.citpc-btn {
	display: inline-block;
	padding: 8px 16px;
	border-radius: 4px;
	font-weight: 700;
	text-decoration: none;
	line-height: 1.4;
}
.citpc-btn:hover, .citpc-btn:focus { opacity: .9; text-decoration: none; }
