/* =========================================================================
   Chinar - Audience Detection (India / USA)
   ========================================================================= */

/* ---- Content show/hide utility (cache-safe; JS keeps body class in sync) ---- */
body:not(.audience-in) .aud-in { display: none !important; }
body:not(.audience-us) .aud-us { display: none !important; }

/* Currency selector locked to a single audience currency on the donate page. */
.aud-currency-locked {
	pointer-events: none;
	background-color: #f1f1f1;
	cursor: not-allowed;
}
.faqleftsection_start {
    margin-top: 30px;
}
/* ---- First-visit selector modal (Approach 2) ---- */
.chinar-aud-overlay {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: none;
	align-items: center;
	justify-content: center;
	padding: 20px;
	background: rgba(17, 24, 39, 0.72);
	-webkit-backdrop-filter: blur(3px);
	backdrop-filter: blur(3px);
}
.chinar-aud-overlay.is-open { display: flex; }

/* Prevent background scroll while the modal is open. */
body.chinar-aud-locked { overflow: hidden; }

.chinar-aud-modal {
	width: 100%;
	max-width: 460px;
	background: #ffffff;
	border-radius: 14px;
	padding: 32px 28px;
	box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
	text-align: center;
	animation: chinarAudIn 0.25s ease;
}
@keyframes chinarAudIn {
	from { opacity: 0; transform: translateY(12px) scale(0.98); }
	to   { opacity: 1; transform: none; }
}

.chinar-aud-title {
	margin: 0 0 8px;
	font-size: 22px;
	line-height: 1.25;
	color: #111827;
}
.chinar-aud-sub {
	margin: 0 0 22px;
	font-size: 14px;
	line-height: 1.5;
	color: #6b7280;
}

.chinar-aud-choices {
	display: flex;
	gap: 14px;
	justify-content: center;
}
.chinar-aud-choice {
	flex: 1 1 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
	padding: 18px 12px;
	border: 2px solid #e5e7eb;
	border-radius: 12px;
	background: #fff;
	cursor: pointer;
	transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}
.chinar-aud-choice:hover,
.chinar-aud-choice:focus-visible {
	border-color: #2563eb;
	transform: translateY(-2px);
	box-shadow: 0 8px 20px rgba(37, 99, 235, 0.18);
	outline: none;
}
.chinar-aud-choice .chinar-aud-badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 46px;
	height: 46px;
	border-radius: 50%;
	background: #eff6ff;
	color: #2563eb;
	font-size: 22px;
	font-weight: 700;
	line-height: 1;
}
.chinar-aud-choice:hover .chinar-aud-badge,
.chinar-aud-choice:focus-visible .chinar-aud-badge { background: #dbeafe; }
.chinar-aud-choice .chinar-aud-name { font-size: 16px; font-weight: 600; color: #111827; }
.chinar-aud-choice .chinar-aud-cur  { font-size: 13px; color: #6b7280; }

@media (max-width: 380px) {
	.chinar-aud-choices { flex-direction: column; }
}

/* ---- Persistent region switcher (header) ---- */
.chinar-aud-switcher {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-right: 18px;
	vertical-align: middle;
	line-height: 1;
	color: inherit;
	margin-top: 11px;
}
.chinar-aud-switcher__label {
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	opacity: 0.75;
}
/* Segmented pill holding the two options. */
.chinar-aud-switcher__label + .chinar-aud-opt,
.chinar-aud-switcher .chinar-aud-opt {
	margin: 0;
}
.chinar-aud-switcher .chinar-aud-opt {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 34px;
	height: 26px;
	padding: 0 10px;
	border: 1px solid rgba(255, 255, 255, 0.55);
	background: transparent;
	color: inherit;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.04em;
	line-height: 1;
	cursor: pointer;
	opacity: 0.85;
	transition: background 0.15s ease, color 0.15s ease, opacity 0.15s ease;
}
/* Join the two buttons into one segmented control. */
.chinar-aud-switcher .chinar-aud-opt:first-of-type {
	border-radius: 999px 0 0 999px;
	border-right-width: 0;
}
.chinar-aud-switcher .chinar-aud-opt:last-of-type {
	border-radius: 0 999px 999px 0;
}
.chinar-aud-switcher .chinar-aud-opt:hover { opacity: 1; }
.chinar-aud-switcher .chinar-aud-opt.is-active {
	background: #ffffff;
	color: #18a9b7; /* teal to match the header bar */
	border-color: #ffffff;
	opacity: 1;
}
.chinar-aud-switcher .chinar-aud-code { line-height: 1; }

/* Floating fallback when no header top-bar exists. */
.chinar-aud-switcher--floating {
	position: fixed;
	right: 16px;
	bottom: 16px;
	z-index: 99990;
	margin: 0;
	padding: 8px 12px;
	border-radius: 999px;
	background: rgba(17, 24, 39, 0.92);
	color: #fff;
	box-shadow: 0 6px 18px rgba(0, 0, 0, 0.28);
}
.chinar-aud-switcher--floating .chinar-aud-opt.is-active { color: #111827; }

/* ---- Responsive: keep the switcher out of the cramped mobile header row ----
   On <=1000px the Bridge theme collapses the top bar into the logo/menu row,
   so we lift the switcher out of flow and pin it to the top-right of the bar
   as a compact, on-brand teal pill. This prevents it overlapping the logo. */
@media only screen and (max-width: 1000px) {
	.chinar-aud-switcher {
		position: fixed;
		top: 7px;
		right: 12px;
		left: auto;
		bottom: auto;
		margin: 0;
		gap: 0;
		padding: 3px;
		background: #18a9b7;
		border-radius: 999px;
		box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
		z-index: 120; /* above header content, below the full-screen mobile menu */
	}
	.chinar-aud-switcher__label { display: none; }
	.chinar-aud-switcher .chinar-aud-opt {
		min-width: 30px;
		height: 24px;
		padding: 0 9px;
		font-size: 11px;
		border-color: rgba(255, 255, 255, 0.75);
	}
	.chinar-aud-switcher .chinar-aud-opt.is-active {
		background: #ffffff;
		color: #18a9b7;
		border-color: #ffffff;
	}

	/* Log In group relocated (by JS) into the black bar, seated just left of
	   the hamburger with a vertical divider - matching the mobile mockup.
	   The theme's own per-breakpoint positioning of this group left gaps that
	   dropped it over the logo; relocating it into the black bar and anchoring
	   to the same edge as the hamburger makes it consistent at every width. */
	.header_bottom { position: relative; }
	.chinar-login-relocated {
		position: absolute !important;
		top: 0 !important;
		bottom: 0 !important;
		right: 70px !important; /* clear the hamburger pinned at right:0 */
		left: auto !important;
		display: flex !important;
		align-items: center;
		gap: 12px;
		width: auto !important;
		padding-right: 18px;
		border-right: 1px solid rgba(255, 255, 255, 0.4);
		text-align: left !important;
		z-index: 3;
	}
	.chinar-login-relocated .top-login { padding-left: 6px; }
	/* Social icons never belong in this relocated group on mobile. */
	.chinar-login-relocated .header-right-widget { display: none !important; }
}

/* Very small phones: tighten the switcher pill and login/hamburger spacing. */
@media only screen and (max-width: 480px) {
	.chinar-aud-switcher { top: 6px; right: 10px; }
	.chinar-aud-switcher .chinar-aud-opt { min-width: 28px; padding: 0 8px; }
	.chinar-login-relocated { right: 60px !important; gap: 8px; padding-right: 12px; }
}