/* ==========================================================================
   Unified Superhero Inner-Page System
   Applies a cohesive stormy lightning cityscape backdrop with continuous
   scroll-zoom depth, frosted dark-glass hero panels, and bold superhero typography.
   ========================================================================== */

/* Full-bleed atmospheric wrapper for all inner pages */
body:not(.home):not(.page-template-page-wonder-warriors-team):not(.page-id-6) .ww-main {
	position: relative;
	min-height: calc(100vh - var(--ww-header-height-desktop));
	background-color: var(--ww-hero-bg);
	color: var(--ww-hero-white);
	isolation: isolate;
	overflow-x: clip;
}

/* Continuous scroll-linked Ken Burns stormy cityscape background */
body:not(.home):not(.page-template-page-wonder-warriors-team):not(.page-id-6) .ww-main::before {
	content: '';
	position: fixed;
	inset: 0;
	z-index: -2;
	background-image:
		linear-gradient(
			180deg,
			rgba(2, 9, 21, 0.72) 0%,
			rgba(6, 24, 54, 0.64) 45%,
			rgba(2, 9, 21, 0.86) 100%
		),
		url('../images/hero-sky-cityscape.png');
	background-position: center center;
	background-size: cover;
	background-repeat: no-repeat;
	transform: scale(var(--ww-scroll-zoom, 1));
	transform-origin: center center;
	will-change: transform;
	pointer-events: none;
}

/* Subtle superhero radial energy aura */
body:not(.home):not(.page-template-page-wonder-warriors-team):not(.page-id-6) .ww-main::after {
	content: '';
	position: fixed;
	inset: 0;
	z-index: -1;
	background:
		radial-gradient(circle at 20% 18%, rgba(86, 216, 255, 0.16), transparent 44%),
		radial-gradient(circle at 82% 72%, rgba(255, 195, 66, 0.11), transparent 46%);
	pointer-events: none;
}

/* Inner Page Container */
body:not(.home):not(.page-template-page-wonder-warriors-team):not(.page-id-6) .page-wrap {
	position: relative;
	z-index: 1;
	width: 1020px;
	max-width: calc(100% - 40px);
	margin: 0 auto;
	padding: 38px 0 68px;
}

/* ==========================================================================
   Superhero Page Hero Header (Unified Apple Typography Across All Inner Pages)
   ========================================================================== */

body:not(.home) .inner-page {
	padding: 0;
}

body:not(.home) .inner-page-header {
	text-align: center;
	margin: 0 0 32px;
	padding: 28px 26px 24px;
	background: linear-gradient(180deg, rgba(12, 42, 96, 0.78) 0%, rgba(16, 54, 118, 0.68) 100%);
	border: 1.5px solid rgba(255, 214, 112, 0.52);
	border-top: 5px solid var(--ww-gold);
	border-radius: 40px 40px 26px 26px;
	box-shadow:
		var(--glass-specular),
		0 18px 46px rgba(0, 0, 0, 0.36),
		0 0 32px rgba(255, 210, 102, 0.18);
	-webkit-backdrop-filter: blur(16px) saturate(165%);
	backdrop-filter: blur(16px) saturate(165%);
	position: relative;
}

body:not(.home) .inner-page-header::after {
	content: '';
	display: block;
	width: 96px;
	height: 3px;
	margin: 16px auto 0;
	background: linear-gradient(90deg, transparent, var(--ww-gold), transparent);
	border-radius: 999px;
}

body:not(.home) .inner-page-header .section-kicker {
	margin: 0 0 8px;
	color: var(--ww-hero-cyan);
	font-family: var(--ww-font-ui);
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	text-shadow: 0 0 18px rgba(86, 216, 255, 0.45);
}

body:not(.home) .inner-page-header h1 {
	margin: 0;
	color: var(--ww-hero-white);
	font-family: var(--ww-font-display);
	font-size: clamp(38px, 5vw, 60px);
	font-weight: 700;
	line-height: 1.04;
	letter-spacing: -0.03em;
	text-transform: none;
	text-shadow: 0 4px 24px rgba(0, 0, 0, 0.6), 0 0 24px rgba(86, 216, 255, 0.18);
}

/* ==========================================================================
   Frosted Superhero Content Panel
   ========================================================================== */

body:not(.home) .inner-page-content {
	max-width: 100%;
	padding: 40px 44px;
	background: linear-gradient(165deg, rgba(12, 40, 92, 0.84) 0%, rgba(8, 28, 68, 0.9) 100%);
	border: 1.5px solid rgba(255, 214, 112, 0.42);
	border-top: 5px solid var(--ww-gold);
	border-radius: 36px 36px 28px 28px;
	box-shadow: var(--glass-specular), 0 20px 50px rgba(0, 0, 0, 0.4), 0 0 30px rgba(255, 210, 102, 0.14);
	backdrop-filter: blur(var(--glass-blur, 18px)) saturate(var(--glass-saturate, 185%));
	-webkit-backdrop-filter: blur(var(--glass-blur, 18px)) saturate(var(--glass-saturate, 185%));
	color: #f4f9ff;
	font-family: var(--ww-font-hero-body);
	font-size: 18px;
	line-height: 1.75;
}

body:not(.home) .inner-page-content p {
	margin: 0 0 20px;
}

body:not(.home) .inner-page-content p:last-child {
	margin-bottom: 0;
}

body:not(.home) .inner-page-content h2,
body:not(.home) .inner-page-content h3 {
	margin: 28px 0 14px;
	color: var(--ww-gold);
	font-family: var(--ww-font-hero-display);
	font-size: clamp(26px, 3vw, 36px);
	font-weight: 700;
	line-height: 1.15;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

body:not(.home) .inner-page-content h2:first-child {
	margin-top: 0;
}

body:not(.home) .inner-page-content a {
	color: var(--ww-hero-cyan);
	text-decoration: underline;
	text-underline-offset: 3px;
	transition: color 0.2s ease;
}

body:not(.home) .inner-page-content a:hover,
body:not(.home) .inner-page-content a:focus-visible {
	color: var(--ww-gold);
}

body:not(.home) .inner-page-content a.donate-page-cta,
body:not(.home) .inner-page-content a.btn {
	color: var(--ww-white);
	text-decoration: none;
}

body:not(.home) .inner-page-content a.donate-page-cta:hover,
body:not(.home) .inner-page-content a.btn:hover {
	color: var(--ww-white);
}

body:not(.home) .inner-page-content ul,
body:not(.home) .inner-page-content ol {
	margin: 16px 0 24px;
	padding-left: 24px;
}

body:not(.home) .inner-page-content li {
	margin-bottom: 10px;
}

body:not(.home) .inner-page-content li::marker {
	color: var(--ww-gold);
}

body:not(.home) .inner-page-content li h2 {
	margin: 0;
	font-size: 22px;
	color: var(--ww-hero-white);
	text-transform: none;
	font-family: var(--ww-font-hero-body);
	font-weight: 600;
	letter-spacing: 0;
}

body:not(.home) .inner-page-content img {
	border-radius: 14px;
	box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45);
	margin: 18px auto;
}

/* ==========================================================================
   Testimonials Page — Framed Video & Superhero Quote Cards
   ========================================================================== */

.ww-video {
	position: relative;
	width: 100%;
	aspect-ratio: 16 / 9;
	margin: 0 0 36px;
	border-radius: 16px;
	overflow: hidden;
	border: 2px solid var(--ww-panel-border);
	box-shadow: 0 14px 36px rgba(0, 0, 0, 0.55);
	background: #000000;
}

.ww-video iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
}

.ww-testimonials {
	display: grid;
	gap: 22px;
}

.ww-testimonial {
	margin: 0;
	padding: 24px 28px;
	background: var(--ww-panel-bg-soft);
	border: 1px solid rgba(86, 216, 255, 0.2);
	border-left: 4px solid var(--ww-crimson);
	border-radius: 14px;
	color: #eef8ff;
	font-style: italic;
	font-size: 17px;
	line-height: 1.72;
	text-align: left;
	text-indent: 1.5em;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
	transition: transform 0.3s ease, border-color 0.3s ease;
}

.ww-testimonial:hover {
	transform: translateY(-2px);
	border-left-color: var(--ww-gold);
}

.ww-testimonials-cta {
	margin: 28px 0 0 !important;
	padding-top: 22px;
	border-top: 1px solid rgba(255, 195, 66, 0.25);
	text-align: center;
	font-weight: 600;
}

/* ==========================================================================
   Photo Gallery Page — 3-Column Superhero Portrait Grid with Hover Zoom
   ========================================================================== */

.ww-gallery-intro {
	text-align: center;
	font-size: 20px;
	color: var(--ww-hero-white);
	margin: 0;
}

.gallery-page-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 22px;
	margin-top: 32px;
}

.gallery-page-card {
	margin: 0;
	aspect-ratio: 4 / 5;
	border-radius: 16px;
	overflow: hidden;
	border: 2px solid rgba(86, 216, 255, 0.28);
	background: rgba(5, 18, 40, 0.85);
	box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
	transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.35s ease, box-shadow 0.35s ease;
}

.gallery-page-card:hover {
	transform: translateY(-4px);
	border-color: var(--ww-gold);
	box-shadow: 0 18px 40px rgba(0, 0, 0, 0.65), 0 0 22px rgba(255, 195, 66, 0.25);
}

.gallery-page-card img {
	width: 100%;
	height: 100%;
	margin: 0;
	border-radius: 0;
	object-fit: cover;
	object-position: center top;
	transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.gallery-page-card:hover img {
	transform: scale(1.06);
}

/* ==========================================================================
   Donations Page — Matching Crimson Pill CTA
   ========================================================================== */

.ww-donate-cta-wrap {
	margin-top: 34px;
	text-align: center;
}

.donate-page-cta {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 240px;
	height: 56px;
	padding: 0 32px;
	background-color: var(--ww-crimson);
	color: var(--ww-white);
	border: 2px solid var(--ww-gold);
	border-radius: var(--ww-radius-pill);
	font-family: var(--ww-font-cta);
	font-size: 16px;
	font-weight: 700;
	letter-spacing: 0.25em;
	text-indent: 0.25em;
	text-decoration: none;
	text-transform: uppercase;
	box-shadow: 0 10px 28px rgba(187, 6, 46, 0.45);
	transition: background-color var(--ww-ease-cta), transform 0.2s ease, border-color var(--ww-ease-cta);
}

.donate-page-cta:hover,
.donate-page-cta:focus-visible {
	background-color: var(--ww-cta-hover);
	border-color: var(--ww-white);
	color: var(--ww-white);
	transform: translateY(-2px);
}

/* About Us — CTA Box with Embedded Videos Stacked Cleanly Inside */
.ww-about-cta-banner--with-videos {
	flex-direction: column;
	align-items: stretch;
	gap: 32px;
}

.ww-about-videos-inside {
	padding-top: 28px;
	border-top: 1px solid rgba(255, 255, 255, 0.14);
	display: flex;
	flex-direction: column;
	gap: 24px;
}

.ww-about-videos-inside .ww-video {
	margin-bottom: 0;
}

/* ==========================================================================
   Responsive Inner Pages — Tablet & Mobile (390px target)
   ========================================================================== */

@media (max-width: 960px) {
	body:not(.home):not(.page-template-page-wonder-warriors-team):not(.page-id-6) .page-wrap {
		max-width: calc(100% - 28px);
		padding: 32px 0 64px;
	}

	body:not(.home) .inner-page-header {
		margin-bottom: 24px;
		padding-bottom: 18px;
	}

	body:not(.home) .inner-page-header .section-kicker {
		font-size: 15px;
		letter-spacing: 0.14em;
	}

	body:not(.home) .inner-page-content {
		padding: 24px 20px;
		font-size: 16px;
		line-height: 1.68;
		border-radius: 16px;
	}

	.ww-testimonial {
		padding: 18px 20px;
		font-size: 15px;
	}

	.gallery-page-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 12px;
		margin-top: 22px;
	}
}
