/* ==========================================================================
   IT Biponi ePaper - Front Page & 3-Column Interactive Viewer Stylesheet
   Matching Reference Screenshot Pixel-Perfect Layout
   ========================================================================== */

/* 1. Master Viewer Wrapper & 3-Column Grid */
.itbiponi-epaper-viewer-wrapper {
	position: relative;
	width: 100%;
	margin: 0 auto;
	font-family: var(--itbiponi-font-body, 'SolaimanLipi', sans-serif);
}

.epaper-3col-container {
	display: grid;
	grid-template-columns: 220px 1fr 220px;
	gap: 16px;
	align-items: start;
	margin: 20px 0 30px;
}

/* 2. Top Header Branding Bar */
.itbiponi-top-branding-bar {
	background: #ffffff;
	border-bottom: 1px solid #e2e8f0;
	padding: 12px 0;
}

.top-branding-inner {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 20px;
}

/* Site Logo */
.site-branding-wrap {
	flex-shrink: 0;
}

.custom-site-logo img {
	max-height: 75px;
	width: auto;
	display: block;
}

.pp-brand-logo {
	display: flex;
	align-items: center;
	gap: 12px;
	text-decoration: none;
}

.pp-logo-badge {
	width: 52px;
	height: 52px;
	border-radius: 50%;
	background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 4px 6px -1px rgba(2, 132, 199, 0.3);
}

.pp-logo-circle {
	color: #ffffff;
	font-size: 24px;
	font-weight: 800;
	letter-spacing: -1px;
	line-height: 1;
}

.pp-logo-text {
	display: flex;
	flex-direction: column;
}

.pp-title {
	font-size: 32px;
	font-weight: 800;
	color: #0284c7;
	line-height: 1.1;
	letter-spacing: -0.5px;
}

.pp-subtitle {
	font-size: 13px;
	font-weight: 600;
	color: #475569;
	letter-spacing: 0.2px;
}

/* Day / date text beside the logo: always use the theme's Bengali font. */
.header-date-block,
.header-date-block .date-english,
.header-date-block .date-bn-ar {
	font-family: var(--itbiponi-font-body, 'SolaimanLipi', sans-serif);
}

/* Header Top Ad Banner */
.header-ad-banner-slot {
	flex-shrink: 0;
	max-width: 600px;
}

.header-ad-link img {
	max-height: 75px;
	width: auto;
	border-radius: 4px;
}

.default-header-ad-banner {
	display: block;
	background: linear-gradient(90deg, #0284c7 0%, #0369a1 100%);
	border-radius: 6px;
	padding: 8px 16px;
	text-decoration: none;
	box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
	border: 1px solid #38bdf8;
	transition: opacity 0.2s ease;
}

.default-header-ad-banner:hover {
	opacity: 0.95;
}

.header-ad-content {
	display: flex;
	align-items: center;
	gap: 14px;
}

.ad-mockup-graphic {
	width: 90px;
	flex-shrink: 0;
}

.ad-devices-svg {
	width: 100%;
	height: auto;
	display: block;
}

.ad-text-wrap {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.ad-main-heading {
	color: #ffffff;
	font-size: 14px;
	font-weight: 700;
	line-height: 1.3;
	white-space: nowrap;
}

.ad-tags-row {
	display: flex;
	align-items: center;
	gap: 4px;
	flex-wrap: wrap;
}

.ad-tag {
	background: #0f172a;
	color: #ffffff;
	font-size: 11px;
	font-weight: 600;
	padding: 2px 6px;
	border-radius: 3px;
	border: 1px solid rgba(255, 255, 255, 0.15);
}

.ad-tag.highlight {
	background: #ffffff;
	color: #0369a1;
	font-weight: 800;
}

/* 3. Primary Navigation Bar (Gray bar with Blue Home Button) */
.itbiponi-primary-navbar {
	background: #e8ecef;
	border-top: 1px solid #d1d5db;
	border-bottom: 1px solid #d1d5db;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.navbar-inner-flex {
	display: flex;
	justify-content: space-between;
	align-items: center;
	min-height: 42px;
}

.nav-left-group {
	display: flex;
	align-items: center;
}

.nav-home-button {
	background: var(--itbiponi-primary);
	color: #ffffff !important;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 10px 18px;
	font-size: 15px;
	font-weight: 700;
	text-decoration: none;
	transition: background 0.2s ease;
}

.nav-home-button:hover {
	background: var(--itbiponi-primary-dark);
}

.reference-nav-menu {
	display: flex;
	align-items: center;
	list-style: none;
	margin: 0;
	padding: 0;
}

.reference-nav-menu li a {
	display: inline-block;
	padding: 10px 14px;
	color: #1e293b;
	font-weight: 600;
	font-size: 14.5px;
	text-decoration: none;
	transition: color 0.2s ease;
}

.reference-nav-menu li a:hover {
	color: var(--itbiponi-primary);
}

.nav-right-info {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 13.5px;
	font-weight: 600;
	color: #334155;
}

.nav-online-link {
	color: #1e293b;
	text-decoration: none;
	transition: color 0.2s ease;
}

.nav-online-link:hover {
	color: var(--itbiponi-primary);
}

.nav-sep {
	color: #94a3b8;
}

.nav-date-display {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	color: #334155;
}

.nav-date-display i {
	color: #64748b;
}

/* 4. Sidebar Widget Styling */
.epaper-sidebar-column {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.epaper-widget-box {
	background: transparent;
}

/* Sidebar section headings: one structure, a different style per section. */
.widget-header-pill {
	position: relative;
	margin: 0;
	padding: 0;
	background: none;
	border: 0;
	box-shadow: none;
}

.widget-header-pill h3 {
	margin: 0;
	color: var(--itbiponi-secondary);
	font-size: 16px;
	font-weight: 800;
	line-height: 1.3;
}

/* Archive: accent bar on the left, full-width divider underneath. */
.widget-archive-box .widget-header-pill {
	padding: 0 0 7px;
	border-bottom: 2px solid rgba(var(--itbiponi-primary-rgb), 0.25);
}

.widget-archive-box .widget-header-pill h3 {
	padding-left: 10px;
	border-left: 4px solid var(--itbiponi-primary);
}

/* Facebook: centred title between two divider lines. */
.widget-facebook-box .widget-header-pill h3 {
	display: flex;
	align-items: center;
	gap: 10px;
	text-align: center;
	color: var(--itbiponi-primary);
}

.widget-facebook-box .widget-header-pill h3::before,
.widget-facebook-box .widget-header-pill h3::after {
	content: "";
	flex: 1 1 0;
	height: 1px;
	background: linear-gradient(90deg, transparent, rgba(var(--itbiponi-primary-rgb), 0.55));
}

.widget-facebook-box .widget-header-pill h3::after {
	background: linear-gradient(270deg, transparent, rgba(var(--itbiponi-primary-rgb), 0.55));
}

/* Today's paper: bold title with a short thick accent over a thin full-width rule. */
.widget-today-paper-box .widget-header-pill {
	padding: 0 0 9px;
	border-bottom: 1px solid #dbe2ea;
}

.widget-today-paper-box .widget-header-pill::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: -1px;
	width: 54px;
	height: 3px;
	border-radius: 3px;
	background: var(--itbiponi-primary);
}

.widget-today-paper-box .widget-header-pill h3 {
	font-size: 17px;
}

/* Ads: small spaced label with a dotted divider and a dot marker. */
.widget-ads-box .widget-header-pill {
	padding: 0 0 6px;
	border-bottom: 2px dotted rgba(var(--itbiponi-primary-rgb), 0.45);
}

.widget-ads-box .widget-header-pill h3 {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 12.5px;
	font-weight: 700;
	letter-spacing: 1.5px;
	text-transform: uppercase;
	color: #64748b;
}

.widget-ads-box .widget-header-pill h3::before {
	content: "";
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--itbiponi-primary);
}

.widget-body-inner {
	background: #ffffff;
	border: 1px solid #dbe2ea;
	border-radius: 6px;
	padding: 10px;
	margin-top: 10px;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

/* Left Sidebar: Archive Date Search */
.archive-search-form {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.archive-date-input {
	width: 100%;
	border: 1px solid #cbd5e1;
	border-radius: 4px;
	padding: 6px 10px;
	font-size: 13px;
	color: #334155;
	background: #ffffff;
	outline: none;
	box-sizing: border-box;
}

.archive-date-input:focus {
	border-color: var(--itbiponi-primary);
}

.btn-archive-find {
	width: 100%;
	background: var(--itbiponi-primary);
	color: #ffffff;
	border: none;
	border-radius: 4px;
	padding: 7px 0;
	font-size: 14px;
	font-weight: 700;
	cursor: pointer;
	transition: background 0.2s ease;
}

.btn-archive-find:hover {
	background: var(--itbiponi-primary-dark);
}

/* Left Sidebar: Facebook Box */
.fb-page-preview-card {
	padding: 4px;
}

.fb-card-top {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 10px;
}

.fb-avatar {
	width: 40px;
	height: 40px;
	border: 1px solid #cbd5e1;
	border-radius: 4px;
	background: #f8fafc;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}

.fb-avatar-text {
	font-weight: 800;
	font-size: 15px;
	color: var(--itbiponi-primary);
}

.fb-details {
	display: flex;
	flex-direction: column;
	overflow: hidden;
}

.fb-page-title {
	font-size: 13px;
	font-weight: 700;
	color: #1877f2;
	text-decoration: none;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.fb-page-title:hover {
	text-decoration: underline;
}

.fb-page-followers {
	font-size: 11px;
	color: #64748b;
}

.fb-follow-button {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background: #f1f5f9;
	border: 1px solid #cbd5e1;
	border-radius: 4px;
	color: #334155;
	font-size: 12px;
	font-weight: 600;
	padding: 4px 10px;
	text-decoration: none;
	transition: background 0.2s ease;
}

.fb-follow-button:hover {
	background: #e2e8f0;
}

/* Embedded Facebook Page plugin (see main.js: width is re-requested to match the container). */
.fb-page-embed {
	width: 100%;
	max-width: 500px;
	margin: 0 auto;
	overflow: hidden;
	line-height: 0;
}

.fb-page-iframe {
	display: block;
	width: 100%;
	max-width: 100%;
	border: 0;
	overflow: hidden;
}

/* 5. Red Advertisement Banner Cards */
.ads-stack-container {
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding: 8px !important;
}

.red-ad-banner-link {
	display: block;
	text-decoration: none;
	border-radius: 4px;
	overflow: hidden;
	border: 1px solid #e2e8f0;
}

.red-ad-banner-link img {
	width: 100%;
	height: auto;
	display: block;
}

.red-ad-banner-card {
	display: flex;
	flex-direction: column;
	text-decoration: none;
	border: 1px solid #cbd5e1;
	border-radius: 4px;
	overflow: hidden;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.red-ad-banner-card:hover {
	transform: translateY(-2px);
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.12);
}

.red-ad-top-badge {
	background: linear-gradient(180deg, var(--itbiponi-primary) 0%, var(--itbiponi-primary-dark) 100%);
	color: #ffffff;
	padding: 16px 8px 12px;
	text-align: center;
}

.red-ad-title {
	font-size: 13px;
	font-weight: 800;
	line-height: 1.25;
	letter-spacing: 0.5px;
	margin-bottom: 6px;
	text-transform: uppercase;
}

.red-ad-size {
	font-size: 12px;
	font-weight: 600;
	opacity: 0.95;
}

.red-ad-bottom-bar {
	background: var(--itbiponi-primary-light);
	color: var(--itbiponi-primary);
	text-align: center;
	padding: 7px 6px;
	font-size: 12px;
	font-weight: 800;
	letter-spacing: 0.5px;
	border-top: 1px solid rgba(var(--itbiponi-primary-rgb), 0.25);
}

/* 6. Center Column & Canvas Viewport */
.epaper-center-column {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

/* Top Pagination Number Buttons */
.epaper-top-pagination-bar {
	background: transparent;
	padding: 2px 0;
}

.page-numbers-grid {
	display: flex;
	flex-wrap: wrap;
	gap: 5px;
	justify-content: center;
}

.page-num-btn {
	min-width: 32px;
	height: 32px;
	padding: 0 6px;
	background: #ffffff;
	border: 1px solid #cbd5e1;
	border-radius: 4px;
	font-size: 14px;
	font-weight: 700;
	color: #334155;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	transition: all 0.15s ease;
}

.page-num-btn:hover {
	background: var(--itbiponi-primary-light);
	border-color: var(--itbiponi-primary);
	color: var(--itbiponi-primary);
}

.page-num-btn.active {
	background: var(--itbiponi-primary) !important;
	border-color: var(--itbiponi-primary) !important;
	color: #ffffff !important;
	box-shadow: 0 2px 4px rgba(var(--itbiponi-primary-rgb), 0.35);
}

/* Main Newspaper Canvas Viewport */
.epaper-canvas-viewport {
	background: #ffffff;
	border: 1px solid #dbe2ea;
	border-radius: 4px;
	padding: 4px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
	position: relative;
	min-height: 400px;
}

.epaper-page-canvas {
	position: relative;
	width: 100%;
	display: block;
}

.epaper-page-image {
	width: 100%;
	height: auto;
	display: block;
	border-radius: 2px;
	image-rendering: -webkit-optimize-contrast;
}

.epaper-placeholder-hero {
	text-align: center;
	padding: 80px 20px;
	color: #94a3b8;
}

.epaper-placeholder-hero i {
	font-size: 64px;
	margin-bottom: 14px;
	color: #cbd5e1;
}

.epaper-placeholder-hero h3 {
	font-size: 20px;
	color: #334155;
	font-weight: 700;
	margin-bottom: 6px;
}

/* Bottom Controls Bar */
.epaper-bottom-controls-bar {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 8px 0 12px;
	gap: 12px;
}

.btn-page-nav-maroon {
	background: var(--itbiponi-primary-dark);
	color: #ffffff;
	border: none;
	border-radius: 4px;
	padding: 7px 16px;
	font-size: 14px;
	font-weight: 700;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	transition: background 0.2s ease, opacity 0.2s ease;
	box-shadow: 0 2px 4px rgba(var(--itbiponi-primary-rgb), 0.25);
}

.btn-page-nav-maroon:hover:not(:disabled) {
	background: var(--itbiponi-primary);
}

.btn-page-nav-maroon:disabled {
	opacity: 0.4;
	cursor: not-allowed;
}

.epaper-social-share-circles {
	display: flex;
	align-items: center;
	gap: 8px;
}

.soc-circle-btn {
	width: 32px;
	height: 32px;
	border-radius: 50%;
	color: #ffffff !important;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 14px;
	text-decoration: none;
	transition: transform 0.2s ease, opacity 0.2s ease;
}

.soc-circle-btn:hover {
	transform: scale(1.1);
	opacity: 0.9;
}

.soc-fb { background: #1877f2; }
.soc-tw { background: #1da1f2; }
.soc-pin { background: #bd081c; }
.soc-in { background: #0077b5; }

/* 7. Right Sidebar Thumbnails Scrollable Grid */
.today-thumbnails-scroll-wrap {
	max-height: 440px;
	overflow-y: auto;
	overflow-x: hidden;
	padding-right: 4px;
}

.today-thumbnails-scroll-wrap::-webkit-scrollbar {
	width: 5px;
}

.today-thumbnails-scroll-wrap::-webkit-scrollbar-track {
	background: #f1f5f9;
}

.today-thumbnails-scroll-wrap::-webkit-scrollbar-thumb {
	background: #cbd5e1;
	border-radius: 3px;
}

.today-thumbnails-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 8px;
}

.thumb-grid-card {
	background: #ffffff;
	border: 1px solid #cbd5e1;
	border-radius: 4px;
	padding: 4px;
	cursor: pointer;
	text-align: center;
	transition: all 0.2s ease;
}

.thumb-grid-card:hover {
	border-color: var(--itbiponi-primary);
	transform: translateY(-1px);
}

.thumb-grid-card.active {
	border-color: var(--itbiponi-primary);
	box-shadow: 0 0 0 2px var(--itbiponi-primary);
	background: #f0f7ff;
}

.thumb-preview-frame {
	width: 100%;
	aspect-ratio: 3 / 4.2;
	overflow: hidden;
	background: #f8fafc;
	border-radius: 2px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.thumb-preview-frame img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.thumb-placeholder-svg {
	font-size: 24px;
	color: #94a3b8;
}

.thumb-page-label {
	font-size: 11px;
	font-weight: 700;
	color: #334155;
	margin-top: 4px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.thumb-grid-card.active .thumb-page-label {
	color: var(--itbiponi-primary);
}

/* 8. Loader & Mapped Region Popups */
.epaper-loader {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(255, 255, 255, 0.85);
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 30;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.2s ease;
}

.epaper-loader.is-loading {
	opacity: 1;
	pointer-events: auto;
}

.epaper-spinner {
	width: 36px;
	height: 36px;
	border: 3px solid rgba(var(--itbiponi-primary-rgb), 0.2);
	border-top-color: var(--itbiponi-primary);
	border-radius: 50%;
	animation: itbiponi-spin 0.8s linear infinite;
}

@keyframes itbiponi-spin {
	to { transform: rotate(360deg); }
}

.epaper-mapped-region {
	position: absolute;
	display: block;
	background-color: transparent;
	cursor: pointer;
	z-index: 10;
	transition: background-color 0.2s ease;
}

.epaper-mapped-region:hover {
	background-color: rgba(var(--itbiponi-primary-rgb), 0.35);
}

/* 9. Footer Reference Styles */
.itbiponi-reference-footer-wrapper {
	width: 100%;
	display: flex;
	flex-direction: column;
}

.footer-upper-section {
	background: #181b22;
	color: #ffffff;
	padding: 24px 0 18px;
	text-align: center;
}

.footer-pills-list {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px;
	margin: 0 0 12px;
	padding: 0;
	list-style: none;
}

.footer-pills-list li a {
	background: #282d37;
	color: #e2e8f0;
	padding: 4px 14px;
	border-radius: 16px;
	font-size: 13px;
	font-weight: 600;
	text-decoration: none;
	display: inline-block;
	transition: background 0.2s ease, color 0.2s ease;
}

.footer-pills-list li a:hover {
	background: var(--itbiponi-primary);
	color: #ffffff;
}

.footer-contact-line p {
	color: #94a3b8;
	font-size: 13.5px;
	margin: 0;
}

.footer-lower-bar {
	background: #0f1115;
	color: #64748b;
	padding: 14px 0;
	font-size: 13px;
	border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.footer-lower-inner {
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
	gap: 12px;
}

.footer-copyright-text {
	color: #94a3b8;
}

.footer-social-icons {
	display: flex;
	align-items: center;
	gap: 8px;
}

.footer-soc-btn {
	width: 28px;
	height: 28px;
	border-radius: 50%;
	background: #282d37;
	color: #ffffff !important;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 12px;
	text-decoration: none;
	transition: background 0.2s ease, transform 0.2s ease;
}

.footer-soc-btn:hover {
	background: var(--itbiponi-primary);
	transform: translateY(-2px);
}

.footer-developer-credit a {
	color: #e2e8f0;
	font-weight: 700;
	text-decoration: none;
}

.footer-developer-credit a:hover {
	color: var(--itbiponi-primary);
}

/* 9b. Site footer: brand / editorial / connect columns, navigation and bottom bar */
.ref-footer {
	width: 100%;
	background: #181b22;
	color: #cbd5e1;
	font-size: 15px;
	line-height: 1.7;
}

.ref-footer a {
	color: inherit;
	text-decoration: none;
	transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.ref-footer a:hover,
.ref-footer a:focus {
	color: #ffffff;
}

.ref-footer-main {
	padding: 40px 0 8px;
}

.ref-footer-cols {
	display: grid;
	grid-template-columns: 1.25fr 1fr 1fr;
}

.ref-footer-col {
	min-width: 0;
	padding: 0 32px;
}

.ref-footer-col:first-child {
	padding-left: 0;
}

.ref-footer-col:last-child {
	padding-right: 0;
}

.ref-footer-col + .ref-footer-col {
	border-left: 1px solid rgba(255, 255, 255, 0.12);
}

/* Column 1: logo, website, introduction */
.ref-footer-logo {
	display: inline-block;
	margin-bottom: 10px;
}

.ref-footer-logo img {
	max-width: 100%;
	max-height: 64px;
	width: auto;
}

.ref-footer-logo-text {
	display: block;
	font-size: 40px;
	font-weight: 800;
	line-height: 1.15;
	color: var(--itbiponi-primary, #dc2626);
}

.ref-footer-website {
	margin: 0 0 12px;
	font-size: 14px;
	color: #94a3b8;
}

.ref-footer-intro {
	margin: 0;
	color: #cbd5e1;
}

/* Columns 2 & 3: label / value lists */
.ref-footer-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.ref-footer-list li {
	margin: 0 0 8px;
	overflow-wrap: anywhere;
}

.ref-footer-list li:last-child {
	margin-bottom: 0;
}

.ref-footer-label {
	color: #ffffff;
	font-weight: 700;
}

/* Column 3: social heading + icons */
.ref-footer-heading {
	margin: 0 0 14px;
	font-size: 20px;
	font-weight: 700;
	line-height: 1.3;
	color: #ffffff;
}

.ref-footer-social {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	list-style: none;
	margin: 0 0 18px;
	padding: 0;
}

.ref-footer-social a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	border: 1px solid rgba(255, 255, 255, 0.28);
	border-radius: 50%;
	color: #ffffff;
	font-size: 16px;
}

.ref-footer-social a:hover,
.ref-footer-social a:focus {
	background: var(--itbiponi-primary, #dc2626);
	border-color: var(--itbiponi-primary, #dc2626);
}

/* Footer navigation */
.ref-footer-nav {
	margin-top: 28px;
	padding: 16px 0 18px;
	border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.ref-footer-nav-list {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	list-style: none;
	margin: 0;
	padding: 0;
}

.ref-footer-nav-list li + li {
	border-left: 1px solid rgba(255, 255, 255, 0.2);
}

.ref-footer-nav-list a {
	display: inline-block;
	padding: 2px 18px;
	font-weight: 600;
	color: #e2e8f0;
}

/* Bottom bar */
.ref-footer-bottom {
	background: #0f1115;
	border-top: 1px solid rgba(255, 255, 255, 0.07);
	padding: 14px 0;
	font-size: 14px;
	color: #94a3b8;
}

.ref-footer-bottom-inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 8px 20px;
}

.ref-footer-developer a {
	font-weight: 700;
	color: #e2e8f0;
}

/* 10. Responsive Breakpoints */
@media (max-width: 1024px) {
	.epaper-3col-container {
		grid-template-columns: 190px 1fr 190px;
		gap: 12px;
	}

	.top-branding-inner {
		flex-direction: column;
		text-align: center;
	}

	.pp-brand-logo {
		justify-content: center;
	}
}

@media (max-width: 850px) {
	.epaper-3col-container {
		grid-template-columns: 1fr;
	}

	.epaper-sidebar-left {
		order: 2;
	}

	.epaper-center-column {
		order: 1;
	}

	.epaper-sidebar-right {
		order: 3;
	}

	.navbar-inner-flex {
		flex-direction: column;
		gap: 10px;
		padding: 8px 0;
	}

	.nav-left-group {
		flex-wrap: wrap;
		justify-content: center;
	}

	.default-header-ad-banner {
		display: none;
	}
}
/* No focus/tap outline on article hotspots (keyboard focus keeps a visible ring). */
.epaper-mapped-region {
	box-sizing: border-box;
	-webkit-tap-highlight-color: transparent;
}

.epaper-mapped-region:focus:not(:focus-visible) {
	outline: none;
}

/* ==========================================================================
   Full-screen viewing mode
   ========================================================================== */
.epaper-fs-toolbar {
	display: none;
}

.epaper-fs-open {
	position: absolute;
	top: 10px;
	right: 10px;
	z-index: 25;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	padding: 0;
	font-size: 16px;
	color: #1e293b;
	background: rgba(255, 255, 255, 0.92);
	border: 1px solid rgba(15, 23, 42, 0.18);
	border-radius: 8px;
	box-shadow: 0 2px 8px rgba(15, 23, 42, 0.2);
	cursor: pointer;
	transition: background 0.2s ease, color 0.2s ease;
}

.epaper-fs-open:hover,
.epaper-fs-open:focus-visible {
	background: var(--itbiponi-primary);
	color: #ffffff;
}

html.epaper-fs-open,
html.epaper-fs-open body {
	overflow: hidden;
}

.epaper-canvas-viewport.is-fullscreen {
	position: fixed;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	z-index: 99999;
	display: flex;
	flex-direction: column;
	width: 100vw;
	height: 100vh;
	height: 100dvh;
	min-height: 0;
	margin: 0;
	padding: 0;
	background: #0b1220;
	border: 0;
	border-radius: 0;
	box-shadow: none;
}

.is-fullscreen .epaper-fs-open {
	display: none;
}

.is-fullscreen .epaper-fs-toolbar {
	display: flex;
	flex: 0 0 auto;
	align-items: center;
	gap: 8px;
	padding: 8px 12px;
	padding-top: max(8px, env(safe-area-inset-top, 0px));
	padding-left: max(12px, env(safe-area-inset-left, 0px));
	padding-right: max(12px, env(safe-area-inset-right, 0px));
	background: #111a2e;
	color: #ffffff;
	border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.epaper-fs-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	min-width: 40px;
	height: 40px;
	padding: 0 12px;
	font-size: 15px;
	font-weight: 700;
	color: #ffffff;
	background: rgba(255, 255, 255, 0.12);
	border: 0;
	border-radius: 8px;
	cursor: pointer;
	transition: background 0.2s ease;
}

.epaper-fs-btn:hover:not(:disabled),
.epaper-fs-btn:focus-visible,
.epaper-fs-btn[aria-pressed="true"] {
	background: var(--itbiponi-primary);
}

.epaper-fs-btn:disabled {
	opacity: 0.35;
	cursor: not-allowed;
}

.epaper-fs-counter {
	min-width: 64px;
	text-align: center;
	font-size: 15px;
	font-weight: 700;
}

.epaper-fs-spacer {
	flex: 1 1 auto;
}

.is-fullscreen .epaper-stage {
	flex: 1 1 auto;
	min-height: 0;
	display: flex;
	padding: 12px;
	overflow: auto;
	-webkit-overflow-scrolling: touch;
}

.is-fullscreen .epaper-page-canvas {
	width: auto;
	max-width: 100%;
	margin: auto;
}

.is-fullscreen .epaper-page-image {
	width: auto;
	max-width: 100%;
	max-height: calc(100vh - 88px);
	max-height: calc(100dvh - 88px);
	margin: 0 auto;
	border-radius: 2px;
	box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
}

/* Zoom: fit the page to the screen width and scroll vertically. */
.is-fullscreen.is-zoomed .epaper-stage {
	display: block;
}

.is-fullscreen.is-zoomed .epaper-page-canvas {
	width: 100%;
	max-width: none;
	margin: 0;
}

.is-fullscreen.is-zoomed .epaper-page-image {
	width: 100%;
	max-width: none;
	max-height: none;
}

@media (max-width: 768px) {
	.is-fullscreen .epaper-stage {
		padding: 6px;
	}

	/* On phones "zoom" enlarges past the screen width so small print becomes readable (pan both ways). */
	.is-fullscreen.is-zoomed .epaper-page-canvas {
		width: 220%;
	}

	.epaper-fs-open {
		top: 8px;
		right: 8px;
	}
}

@media (max-width: 480px) {
	.epaper-fs-exit span {
		display: none;
	}

	.is-fullscreen .epaper-fs-toolbar {
		gap: 6px;
		padding-left: 8px;
		padding-right: 8px;
	}

	.epaper-fs-counter {
		min-width: 52px;
		font-size: 14px;
	}
}

/* ==========================================================================
   Cropped-article pop-up: full-screen state (inline styles are overridden with !important)
   ========================================================================== */
#epaper-news-modal.is-fs {
	padding: 0 !important;
	height: 100vh !important;
	height: 100dvh !important;
}

#epaper-news-modal.is-fs > .epaper-news-box {
	width: 100vw !important;
	max-width: none !important;
	height: 100vh !important;
	height: 100dvh !important;
	max-height: none !important;
	border-radius: 0 !important;
	background: #0b1220 !important;
}

#epaper-news-modal.is-fs #epaper-news-crop-display {
	padding: 64px 16px 80px !important;
	padding-top: max(64px, calc(env(safe-area-inset-top, 0px) + 56px)) !important;
	padding-bottom: max(80px, calc(env(safe-area-inset-bottom, 0px) + 72px)) !important;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	overflow: auto !important;
	touch-action: pan-x pan-y;
	-webkit-overflow-scrolling: touch;
}

#epaper-news-modal.is-fs .epaper-news-crop {
	margin-left: auto !important;
	margin-right: auto !important;
	flex: 0 0 auto;
	max-width: none;
	border-color: rgba(255, 255, 255, 0.15) !important;
}

#epaper-news-modal.is-fs #epaper-news-fs-btn {
	top: max(10px, env(safe-area-inset-top, 0px)) !important;
}

#epaper-news-modal.is-fs .epaper-news-box > button:not([title]) {
	top: max(10px, env(safe-area-inset-top, 0px)) !important;
}

@media (max-width: 768px) {
	#epaper-news-modal.is-fs {
		padding: 0 !important;
	}

	#epaper-news-modal.is-fs > .epaper-news-box {
		max-height: none !important;
	}

	#epaper-news-modal.is-fs #epaper-news-crop-display {
		padding-left: 8px !important;
		padding-right: 8px !important;
	}

	#epaper-news-modal #epaper-news-fs-btn {
		width: 44px !important;
		height: 44px !important;
		top: 6px !important;
		right: 58px !important;
	}
}

/* Centre the cropped section vertically in the pop-up's full-screen view (safe when it overflows). */
#epaper-news-modal.is-fs .epaper-news-crop:first-child {
	margin-top: auto !important;
}

#epaper-news-modal.is-fs .epaper-news-crop:last-child {
	margin-bottom: auto !important;
}

/* Zoom bar shows only in the pop-up's full-screen view. */
#epaper-news-modal.is-fs #epaper-news-zoom-bar {
	display: flex;
	bottom: max(15px, env(safe-area-inset-bottom, 0px)) !important;
}

#epaper-news-modal #epaper-news-zoom-bar button {
	-webkit-tap-highlight-color: transparent;
}

#epaper-news-modal.is-fs #epaper-news-crop-display.is-zoomed .epaper-news-crop {
	cursor: grab;
}

@media (max-width: 768px) {
	#epaper-news-modal #epaper-news-zoom-bar button {
		width: 44px !important;
		height: 44px !important;
	}

	#epaper-news-modal #epaper-news-zoom-bar #epaper-news-zoom-reset {
		width: auto !important;
		min-width: 56px;
	}
}

@media (max-width: 400px) {
	#epaper-news-modal.is-fs #epaper-news-zoom-bar {
		left: 8px !important;
		gap: 4px !important;
	}

	#epaper-news-modal #epaper-news-zoom-bar button {
		width: 40px !important;
		height: 40px !important;
	}
}

/* Facebook box: compact scrollable timeline iframe + a plain link as a fallback if the embed is blocked. */
.fb-page-embed {
	background: #ffffff;
	border-radius: 4px;
}

.fb-page-open-link {
	display: block;
	margin-top: 8px;
	padding: 7px 8px;
	text-align: center;
	font-size: 12.5px;
	font-weight: 700;
	color: #1877f2;
	background: #f1f5f9;
	border-radius: 4px;
	text-decoration: none;
}

.fb-page-open-link:hover {
	background: #e2e8f0;
	text-decoration: underline;
}
