.ptc-tips-library,
.ptc-tips-library *,
.ptc-tip-single,
.ptc-tip-single *,
.ptc-tip-lightbox,
.ptc-tip-lightbox * {
	box-sizing: border-box;
}

.ptc-tips-library {
	width: min(100% - 36px, var(--ptc-container, 1180px));
	margin: 0 auto;
	padding: clamp(42px, 7vw, 78px) 0 64px;
}

.ptc-tips-header {
	max-width: 760px;
	margin-bottom: 34px;
}

.ptc-tips-header > span {
	display: inline-flex;
	margin-bottom: 10px;
	padding: 6px 10px;
	border: 1px solid var(--ptc-line);
	border-radius: 999px;
	color: var(--ptc-muted);
	font-size: .78rem;
	font-weight: 800;
	letter-spacing: .07em;
	text-transform: uppercase;
}

.ptc-tips-header h2 {
	margin: 0;
	font-family: "Trebuchet MS", Arial, sans-serif;
	font-size: clamp(2rem, 4.4vw, 3rem);
	line-height: 1;
	letter-spacing: -.045em;
}

.ptc-tips-header > p {
	max-width: 650px;
	margin: 14px 0 0;
	color: var(--ptc-muted);
	font-size: 1.05rem;
}

.ptc-tips-search {
	display: flex;
	max-width: 980px;
	margin-top: 22px;
	padding: 14px;
	border: 1px solid var(--ptc-line);
	border-radius: 16px;
	background: var(--ptc-surface);
	box-shadow: 0 10px 28px rgba(21, 51, 58, .06);
	align-items: flex-end;
	gap: 10px;
	flex-wrap: wrap;
}

.ptc-tips-search-field,
.ptc-tips-filter-field {
	display: flex;
	min-width: 0;
	flex-direction: column;
	gap: 5px;
}

.ptc-tips-search-field { flex: 2 1 260px; }
.ptc-tips-filter-field { flex: 1 1 170px; }

.ptc-tips-search label {
	color: var(--ptc-muted);
	font-size: .76rem;
	font-weight: 800;
}

.ptc-tips-search input,
.ptc-tips-search select {
	width: 100%;
	min-width: 0;
	min-height: 46px;
	padding: 9px 13px;
	border: 1px solid var(--ptc-line);
	border-radius: 10px;
	background: var(--ptc-surface);
	color: var(--ptc-ink);
	font: inherit;
}

.ptc-tips-search button,
.ptc-tips-search a {
	display: inline-flex;
	min-height: 44px;
	padding: 9px 15px;
	border: 1px solid var(--ptc-main);
	border-radius: 10px;
	background: var(--ptc-main);
	align-items: center;
	color: var(--ptc-on-main);
	font: inherit;
	font-weight: 800;
	text-decoration: none;
	cursor: pointer;
}

.ptc-tips-search a {
	background: transparent;
	color: var(--ptc-ink);
}

.ptc-tips-result-count {
	margin: 14px 0 18px;
	color: var(--ptc-muted);
	font-size: .9rem;
	font-weight: 700;
}

.ptc-tips-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	align-items: stretch;
	gap: 20px;
}

.ptc-tip-card {
	display: flex;
	min-width: 0;
	height: 100%;
	border: 1px solid var(--ptc-line);
	border-radius: 18px;
	background: var(--ptc-surface);
	box-shadow: 0 12px 36px rgba(21, 51, 58, .08);
	flex-direction: column;
	overflow: hidden;
}

.ptc-tip-image {
	position: relative;
	display: block;
	width: 100%;
	aspect-ratio: 1 / .82;
	padding: 0;
	border: 0;
	background: rgba(12, 192, 223, .08);
	color: #fff;
	cursor: zoom-in;
	overflow: hidden;
}

.ptc-tip-image img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 240ms ease;
}

.ptc-tip-image:hover img,
.ptc-tip-image:focus-visible img { transform: scale(1.025); }

.ptc-tip-image:focus-visible {
	outline: 3px solid var(--ptc-main);
	outline-offset: -3px;
}

.ptc-tip-image-hint {
	position: absolute;
	right: 10px;
	bottom: 10px;
	padding: 6px 9px;
	border-radius: 999px;
	background: rgba(8, 33, 39, .82);
	font-size: .72rem;
	font-weight: 800;
	line-height: 1;
}

.ptc-tip-image-placeholder {
	background: #eefbfe;
	cursor: default;
}

.ptc-tip-image-placeholder img { object-fit: cover; }

.ptc-tip-body {
	display: flex;
	padding: 18px;
	flex: 1;
	flex-direction: column;
}

.ptc-tip-number {
	color: var(--ptc-secondary);
	font-size: .76rem;
	font-weight: 900;
	letter-spacing: .07em;
	text-transform: uppercase;
}

.ptc-tip-card h2 {
	display: -webkit-box;
	min-height: 3.12rem;
	margin: 7px 0 10px;
	font-family: "Trebuchet MS", Arial, sans-serif;
	font-size: 1.3rem;
	line-height: 1.2;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	overflow: hidden;
}

.ptc-tip-card h2 a {
	color: inherit;
	text-decoration: none;
	transition: color 180ms ease;
	overflow-wrap: anywhere;
}

.ptc-tip-card h2 a:hover,
.ptc-tip-card h2 a:focus-visible { color: var(--ptc-main); }

.ptc-tip-card h2 a:focus-visible {
	outline: 2px solid var(--ptc-main);
	outline-offset: 3px;
}

.ptc-tip-excerpt {
	display: -webkit-box;
	margin: 0 0 14px;
	color: var(--ptc-muted);
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 4;
	overflow: hidden;
	overflow-wrap: anywhere;
}

.ptc-tip-read-more {
	display: inline-flex;
	min-height: 44px;
	padding: 10px 13px;
	border-radius: 9px;
	background: var(--ptc-main);
	align-items: center;
	gap: 8px;
	color: var(--ptc-ink);
	font-weight: 800;
	text-decoration: none;
	margin-top: auto;
	align-self: flex-start;
}

/* Keep the full footer treatment when this stylesheet is requested early. */
body .ptc-site-footer {
	border: 0;
	background: #15333a;
	color: #fff;
}

.ptc-tip-read-more span { transition: transform 180ms ease; }
.ptc-tip-read-more:hover span,
.ptc-tip-read-more:focus-visible span { transform: translateX(3px); }

.ptc-tip-single {
	width: min(100% - 36px, 900px);
	margin: 0 auto;
	padding: clamp(40px, 7vw, 76px) 0 64px;
}

.ptc-tip-single-back {
	display: inline-flex;
	margin-bottom: 22px;
	font-weight: 800;
	text-decoration: none;
}

.ptc-tip-single-header {
	max-width: 780px;
	margin-bottom: 26px;
}

.ptc-tip-single-header h1 {
	margin: 7px 0 0;
	font-family: "Trebuchet MS", Arial, sans-serif;
	font-size: clamp(1.9rem, 4.2vw, 2.9rem);
	line-height: 1.06;
	letter-spacing: -.04em;
}

.ptc-tip-single-image {
	position: relative;
	display: block;
	width: 100%;
	max-width: 820px;
	margin: 0 auto 30px;
	padding: 0;
	border: 0;
	border-radius: 20px;
	background: var(--ptc-surface);
	box-shadow: 0 16px 48px rgba(21, 51, 58, .12);
	cursor: zoom-in;
	overflow: hidden;
}

.ptc-tip-single-image img {
	display: block;
	width: 100%;
	height: auto;
}

.ptc-tip-single-content {
	max-width: 760px;
	margin: 0 auto;
	color: var(--ptc-ink);
	font-size: 1.04rem;
	line-height: 1.75;
	overflow-wrap: anywhere;
}

.ptc-tip-single-content img,
.ptc-tip-single-content video,
.ptc-tip-single-content iframe {
	max-width: 100%;
	height: auto;
}

.ptc-tip-single-content table {
	display: block;
	max-width: 100%;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
}

.ptc-tip-lightbox[hidden] { display: none; }

.ptc-tip-lightbox {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: grid;
	padding: 58px 20px 20px;
	background: rgba(4, 15, 18, .94);
	place-items: center;
}

.ptc-tip-lightbox-dialog {
	display: grid;
	width: 100%;
	height: 100%;
	place-items: center;
}

.ptc-tip-lightbox img {
	display: block;
	max-width: min(96vw, 1500px);
	max-height: calc(100dvh - 84px);
	border-radius: 10px;
	box-shadow: 0 24px 70px rgba(0, 0, 0, .5);
	object-fit: contain;
}

.ptc-tip-lightbox-close {
	position: fixed;
	top: 10px;
	right: 12px;
	z-index: 2;
	display: inline-flex;
	min-width: 48px;
	min-height: 44px;
	padding: 7px 12px;
	border: 1px solid rgba(255, 255, 255, .45);
	border-radius: 999px;
	background: #fff;
	align-items: center;
	justify-content: center;
	gap: 7px;
	color: #15333a;
	font: inherit;
	cursor: pointer;
}

.ptc-tip-lightbox-close span {
	font-size: 1.5rem;
	line-height: 1;
}

body.ptc-tip-lightbox-open { overflow: hidden; }

.ptc-tip-single-content > :first-child { margin-top: 0; }
.ptc-tip-single-content > :last-child { margin-bottom: 0; }

html[lang^="bn"] .ptc-tip-single-header h1 {
	font-family: "Noto Sans Bengali", "Nirmala UI", Vrinda, sans-serif;
	letter-spacing: 0;
}

.ptc-tips-pagination {
	margin-top: 34px;
}

.ptc-tips-pagination ul {
	display: flex;
	margin: 0;
	padding: 0;
	gap: 7px;
	list-style: none;
	flex-wrap: wrap;
}

.ptc-tips-pagination a,
.ptc-tips-pagination span {
	display: grid;
	min-width: 42px;
	min-height: 42px;
	padding: 7px;
	border: 1px solid var(--ptc-line);
	border-radius: 9px;
	background: var(--ptc-surface);
	place-items: center;
	font-weight: 800;
	text-decoration: none;
}

.ptc-tips-pagination .current {
	border-color: var(--ptc-main);
	background: var(--ptc-main);
	color: var(--ptc-on-main);
}

.ptc-tips-empty {
	padding: 28px;
	border: 1px solid var(--ptc-line);
	border-radius: 16px;
	background: var(--ptc-surface);
}

.ptc-tips-empty h2,
.ptc-tips-empty p { margin: 0; }
.ptc-tips-empty p { margin-top: 7px; color: var(--ptc-muted); }

@media (max-width: 900px) {
	.ptc-tips-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 620px) {
	.ptc-tips-search { margin-top: 17px; padding: 11px; border-radius: 13px; align-items: stretch; gap: 9px; }
	.ptc-tips-search-field,
	.ptc-tips-filter-field { flex-basis: 100%; }
	.ptc-tips-search button,
	.ptc-tips-search a { flex: 1 1 auto; justify-content: center; }
	.ptc-tips-library {
		width: min(100% - 28px, var(--ptc-container, 1180px));
		padding: 32px 0 42px;
	}

	.ptc-tips-header { margin-bottom: 24px; }
	.ptc-tips-header h2 { font-size: clamp(1.9rem, 10vw, 2.25rem); overflow-wrap: anywhere; }
	.ptc-tips-header > p { font-size: .98rem; }
	.ptc-tips-grid { grid-template-columns: 1fr; gap: 14px; }
	.ptc-tip-body { padding: 15px; }
	.ptc-tip-image { aspect-ratio: 16 / 10; }
	.ptc-tip-card h2 { font-size: 1.2rem; }
	.ptc-tips-pagination { margin-top: 24px; }
	.ptc-tips-pagination ul { justify-content: center; gap: 6px; }
	.ptc-tips-pagination a,
	.ptc-tips-pagination span { min-width: 44px; min-height: 44px; }
	.ptc-tip-single { width: min(100% - 28px, 900px); padding: 32px 0 44px; }
	.ptc-tip-single-header { margin-bottom: 20px; }
	.ptc-tip-single-header h1 { font-size: clamp(1.75rem, 9vw, 2.35rem); overflow-wrap: anywhere; }
	.ptc-tip-single-image { margin-bottom: 22px; border-radius: 14px; }
	.ptc-tip-single-content { font-size: 1rem; line-height: 1.68; }
	.ptc-tip-lightbox { padding: 58px 8px 8px; }
	.ptc-tip-lightbox img { max-width: calc(100vw - 16px); max-height: calc(100dvh - 72px); }
	.ptc-tip-lightbox-close { top: max(8px, env(safe-area-inset-top)); right: max(8px, env(safe-area-inset-right)); width: 46px; padding: 6px; }
	.ptc-tip-lightbox-close strong { display: none; }
}

@media (max-width: 380px) {
	.ptc-tips-library,
	.ptc-tip-single { width: min(100% - 20px, 900px); }
	.ptc-tips-search button,
	.ptc-tips-search a { flex-basis: 100%; }
	.ptc-tip-body { padding: 14px; }
}

@media (prefers-reduced-motion: reduce) {
	.ptc-tip-image img,
	.ptc-tip-read-more span { transition: none; }
}

html[lang^="bn"] .ptc-tips-header h2,
html[lang^="bn"] .ptc-tip-card h2 {
	font-family: "Noto Sans Bengali", "Nirmala UI", Vrinda, sans-serif;
	letter-spacing: 0;
}
