/* ==========================================================================
   NYIP Student Leadership Portal - Stylesheet
   Brand colors: NYIP Green & Gold. Supports light/dark mode via
   prefers-color-scheme and a manual .nyip-dark class toggle.
   ========================================================================== */

:root {
	--nyip-green: #0b6e4f;
	--nyip-green-dark: #084c37;
	--nyip-gold: #d4af37;
	--nyip-gold-light: #f1dc9c;
	--nyip-bg: #f7f9f8;
	--nyip-card-bg: #ffffff;
	--nyip-text: #16241f;
	--nyip-muted: #5f6f68;
	--nyip-border: #e2e8e4;
	--nyip-danger: #c0392b;
	--nyip-success: #1e8a4c;
	--nyip-radius: 14px;
	--nyip-shadow: 0 2px 10px rgba(15, 40, 30, 0.08);
	--nyip-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* Required so the hero section's full-bleed (100vw) breakout never causes a
   horizontal scrollbar, even on themes other than the NYIP companion theme. */
html { overflow-x: hidden; }

.nyip-dark {
	--nyip-bg: #0f1613;
	--nyip-card-bg: #17211d;
	--nyip-text: #eaf3ee;
	--nyip-muted: #9db3aa;
	--nyip-border: #26332c;
	--nyip-shadow: 0 2px 14px rgba(0, 0, 0, 0.35);
}

@media (prefers-color-scheme: dark) {
	:root:not(.nyip-light) {
		--nyip-bg: #0f1613;
		--nyip-card-bg: #17211d;
		--nyip-text: #eaf3ee;
		--nyip-muted: #9db3aa;
		--nyip-border: #26332c;
		--nyip-shadow: 0 2px 14px rgba(0, 0, 0, 0.35);
	}
}

.nyip-auth-wrapper, .nyip-dashboard {
	font-family: var(--nyip-font);
	color: var(--nyip-text);
	-webkit-font-smoothing: antialiased;
}

/* ---------------- Buttons ---------------- */
.nyip-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 12px 20px;
	border-radius: 10px;
	border: none;
	font-size: 15px;
	font-weight: 600;
	cursor: pointer;
	transition: transform .08s ease, box-shadow .15s ease, background .15s ease;
	text-decoration: none;
}
.nyip-btn:active { transform: translateY(1px); }
.nyip-btn-block { width: 100%; }

.nyip-btn-primary {
	background: linear-gradient(135deg, var(--nyip-green), var(--nyip-green-dark));
	color: #fff;
	box-shadow: 0 4px 14px rgba(11, 110, 79, 0.35);
}
.nyip-btn-primary:hover { box-shadow: 0 6px 18px rgba(11, 110, 79, 0.45); }

.nyip-btn-secondary {
	background: var(--nyip-gold-light);
	color: #4a3b0c;
}
.nyip-btn-secondary:hover { background: var(--nyip-gold); }

.nyip-btn-outline {
	background: transparent;
	border: 1.5px solid var(--nyip-border);
	color: var(--nyip-text);
}

/* ---------------- Auth cards ---------------- */
.nyip-auth-wrapper {
	max-width: 460px;
	margin: 40px auto;
	padding: 0 16px;
}

.nyip-auth-card {
	background: var(--nyip-card-bg);
	border-radius: var(--nyip-radius);
	box-shadow: var(--nyip-shadow);
	padding: 36px 32px;
	border-top: 4px solid var(--nyip-gold);
}

.nyip-auth-title {
	margin: 0 0 4px;
	font-size: 26px;
	font-weight: 700;
	color: var(--nyip-green);
}

.nyip-auth-subtitle {
	margin: 0 0 20px;
	color: var(--nyip-muted);
	font-size: 14.5px;
}

.nyip-auth-footer {
	text-align: center;
	margin-top: 20px;
	font-size: 14px;
	color: var(--nyip-muted);
}
.nyip-auth-footer a { color: var(--nyip-green); font-weight: 600; text-decoration: none; }

.nyip-divider {
	display: flex;
	align-items: center;
	text-align: center;
	color: var(--nyip-muted);
	font-size: 13px;
	margin: 18px 0;
}
.nyip-divider::before, .nyip-divider::after {
	content: "";
	flex: 1;
	border-bottom: 1px solid var(--nyip-border);
}
.nyip-divider span { padding: 0 12px; }

.nyip-google-btn-wrapper { display: flex; justify-content: center; min-height: 40px; }

/* ---------------- Forms ---------------- */
.nyip-form { display: flex; flex-direction: column; gap: 16px; }
.nyip-form-grid-2 {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
}
.nyip-field-full { grid-column: 1 / -1; }

.nyip-field { display: flex; flex-direction: column; gap: 6px; }
.nyip-field label { font-size: 13.5px; font-weight: 600; color: var(--nyip-text); }
.nyip-field-hint { color: var(--nyip-muted); font-size: 12px; }

.nyip-field input[type="text"],
.nyip-field input[type="email"],
.nyip-field input[type="password"],
.nyip-field input[type="date"],
.nyip-field input[type="url"],
.nyip-field select,
.nyip-field textarea {
	padding: 11px 13px;
	border-radius: 9px;
	border: 1.5px solid var(--nyip-border);
	background: var(--nyip-bg);
	color: var(--nyip-text);
	font-size: 14.5px;
	font-family: inherit;
}
.nyip-field input:focus, .nyip-field select:focus, .nyip-field textarea:focus {
	outline: none;
	border-color: var(--nyip-green);
	box-shadow: 0 0 0 3px rgba(11, 110, 79, 0.15);
}

.nyip-checkbox-field { flex-direction: row; align-items: center; gap: 8px; }
.nyip-checkbox-field label { font-weight: 400; font-size: 13.5px; }

.nyip-form-row-between {
	display: flex;
	justify-content: flex-end;
	margin-top: -8px;
}
.nyip-link-small { font-size: 13px; color: var(--nyip-green); text-decoration: none; }

/* ---------------- Alerts ---------------- */
.nyip-alert {
	padding: 12px 14px;
	border-radius: 9px;
	font-size: 14px;
	margin-bottom: 16px;
}
.nyip-alert-success { background: #e5f6ec; color: var(--nyip-success); border: 1px solid #b7e4c7; }
.nyip-alert-error { background: #fbe9e7; color: var(--nyip-danger); border: 1px solid #f1c2bb; }

/* ---------------- Dashboard ---------------- */
.nyip-dashboard { max-width: 1080px; margin: 0 auto; padding: 0 16px 60px; }

.nyip-dashboard-guard {
	position: relative;
	max-width: 640px;
	margin: 0 auto;
	padding: 64px 16px 90px;
	overflow: hidden;
}

/* Full-bleed decorative backdrop behind the glass card - the classic
   glassmorphism look needs something colorful/blurred to show through. */
.nyip-dashboard-guard::before {
	content: "";
	position: absolute;
	top: -20%;
	left: 50%;
	width: 100vw;
	height: 140%;
	margin-left: -50vw;
	z-index: -1;
	background:
		radial-gradient(circle at 18% 20%, rgba(11, 110, 79, 0.28), transparent 42%),
		radial-gradient(circle at 82% 15%, rgba(212, 175, 55, 0.24), transparent 40%),
		radial-gradient(circle at 50% 90%, rgba(11, 110, 79, 0.16), transparent 45%);
	filter: blur(6px);
}

.nyip-guard-hero { text-align: center; margin-bottom: 28px; }
.nyip-guard-hero h2 { font-size: 30px; margin: 10px 0 8px; }
.nyip-guard-hero .nyip-hero-eyebrow {
	background: rgba(11, 110, 79, 0.1);
	color: var(--nyip-green);
	border-color: rgba(11, 110, 79, 0.28);
}
.nyip-guard-icon {
	width: 64px;
	height: 64px;
	line-height: 64px;
	margin: 0 auto 14px;
	font-size: 28px;
	text-align: center;
	background: rgba(255, 255, 255, 0.6);
	backdrop-filter: blur(10px);
	border: 1px solid rgba(255, 255, 255, 0.5);
	border-radius: 50%;
	box-shadow: 0 6px 20px rgba(15, 40, 30, 0.12);
}
.nyip-auth-tabs-card { animation-delay: 0.12s; }

.nyip-auth-tabs-card {
	border-radius: var(--nyip-radius);
	padding: 8px 8px 28px;
	overflow: hidden;
}

.nyip-auth-tabs {
	display: flex;
	gap: 4px;
	padding: 6px;
	margin-bottom: 8px;
	background: rgba(15, 40, 30, 0.05);
	border-radius: 12px;
}
.nyip-auth-tab {
	flex: 1;
	border: none;
	background: transparent;
	padding: 12px;
	border-radius: 10px;
	font-weight: 700;
	font-size: 15px;
	color: var(--nyip-muted);
	cursor: pointer;
	transition: all 0.25s cubic-bezier(.21,.9,.32,1);
}
.nyip-auth-tab.is-active {
	background: var(--nyip-card-bg);
	color: var(--nyip-green);
	box-shadow: 0 4px 14px rgba(15, 40, 30, 0.14);
	transform: translateY(-1px);
}
.nyip-auth-tab:hover:not(.is-active) { color: var(--nyip-green); }

.nyip-auth-tabs-card .nyip-auth-wrapper { margin: 0; padding: 0 20px; max-width: none; }
.nyip-auth-tabs-card .nyip-auth-card { box-shadow: none; border-top: none; padding: 20px 4px 4px; background: transparent; }

.nyip-auth-tab-panel .nyip-field input:focus,
.nyip-auth-tab-panel .nyip-field select:focus,
.nyip-auth-tab-panel .nyip-field textarea:focus {
	box-shadow: 0 0 0 4px rgba(11, 110, 79, 0.12);
}

.nyip-dashboard-header { margin-bottom: 20px; }

.nyip-cover-photo {
	height: 180px;
	border-radius: var(--nyip-radius) var(--nyip-radius) 0 0;
	background: linear-gradient(120deg, var(--nyip-green), var(--nyip-green-dark));
	background-size: cover;
	background-position: center;
	position: relative;
}
.nyip-upload-pill {
	position: absolute;
	right: 16px;
	bottom: 16px;
	background: rgba(0,0,0,0.45);
	color: #fff;
	font-size: 12.5px;
	padding: 6px 12px;
	border-radius: 20px;
	cursor: pointer;
}

.nyip-header-row {
	display: flex;
	align-items: flex-end;
	gap: 20px;
	background: var(--nyip-card-bg);
	padding: 0 24px 20px;
	border-radius: 0 0 var(--nyip-radius) var(--nyip-radius);
	box-shadow: var(--nyip-shadow);
	flex-wrap: wrap;
}

.nyip-avatar-wrap { position: relative; margin-top: -50px; }
.nyip-avatar {
	width: 104px;
	height: 104px;
	border-radius: 50%;
	object-fit: cover;
	border: 4px solid var(--nyip-card-bg);
	background: var(--nyip-gold-light);
}
.nyip-avatar-edit {
	position: absolute;
	right: 0;
	bottom: 4px;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	background: var(--nyip-gold);
	color: #4a3b0c;
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: 700;
	cursor: pointer;
	border: 2px solid var(--nyip-card-bg);
}

.nyip-header-info { flex: 1; padding-top: 12px; min-width: 200px; }
.nyip-header-info h1 { margin: 0; font-size: 22px; }
.nyip-muted { color: var(--nyip-muted); }
.nyip-small { font-size: 13px; }

.nyip-badge {
	display: inline-block;
	margin-top: 6px;
	padding: 4px 12px;
	border-radius: 20px;
	font-size: 12.5px;
	font-weight: 700;
	background: var(--nyip-gold-light);
	color: #4a3b0c;
}
.nyip-badge.active { background: #e5f6ec; color: var(--nyip-success); }
.nyip-badge.pending { background: #fdf0dd; color: #a86616; }

.nyip-header-actions { display: flex; gap: 10px; padding-top: 12px; }

/* Completion tracker */
.nyip-completion-card { margin: 20px 0; }
.nyip-completion-text { display: flex; justify-content: space-between; margin-bottom: 8px; font-size: 14.5px; }
.nyip-progress-track { height: 10px; border-radius: 6px; background: var(--nyip-border); overflow: hidden; }
.nyip-progress-fill { height: 100%; background: linear-gradient(90deg, var(--nyip-gold), var(--nyip-green)); transition: width .4s ease; }

/* Cards / grid */
.nyip-card {
	background: var(--nyip-card-bg);
	border-radius: var(--nyip-radius);
	box-shadow: var(--nyip-shadow);
	padding: 22px;
	margin-bottom: 20px;
}
.nyip-card h3 { margin: 0 0 14px; font-size: 16px; color: var(--nyip-green); }
.nyip-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

.nyip-dl { margin: 0; }
.nyip-dl dt { font-size: 12.5px; color: var(--nyip-muted); margin-top: 10px; }
.nyip-dl dd { margin: 2px 0 0; font-size: 14.5px; }

.nyip-tag {
	display: inline-block;
	padding: 5px 12px;
	background: var(--nyip-bg);
	border: 1px solid var(--nyip-border);
	border-radius: 20px;
	font-size: 12.5px;
	margin: 0 6px 6px 0;
}

/* Tabs */
.nyip-tabs { display: flex; gap: 6px; margin-bottom: 18px; flex-wrap: wrap; }
.nyip-tab-btn {
	padding: 10px 18px;
	border-radius: 30px;
	border: 1.5px solid var(--nyip-border);
	background: var(--nyip-card-bg);
	color: var(--nyip-text);
	font-weight: 600;
	font-size: 13.5px;
	cursor: pointer;
}
.nyip-tab-btn.active { background: var(--nyip-green); border-color: var(--nyip-green); color: #fff; }
.nyip-tab-panel { display: none; }
.nyip-tab-panel.active { display: block; }

/* Tables */
.nyip-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.nyip-table th, .nyip-table td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--nyip-border); }
.nyip-list { list-style: none; padding: 0; margin: 0 0 14px; }
.nyip-list li { padding: 8px 0; border-bottom: 1px solid var(--nyip-border); font-size: 14px; }

/* Membership card modal */
.nyip-modal { position: fixed; inset: 0; z-index: 9999; display: flex; align-items: center; justify-content: center; }
.nyip-modal-backdrop { position: absolute; inset: 0; background: rgba(10, 20, 15, 0.55); }
.nyip-modal-content {
	position: relative;
	background: var(--nyip-card-bg);
	border-radius: var(--nyip-radius);
	padding: 26px;
	width: 92%;
	max-width: 440px;
	box-shadow: 0 10px 40px rgba(0,0,0,0.3);
}
.nyip-modal-close {
	position: absolute;
	top: 10px;
	right: 14px;
	background: none;
	border: none;
	font-size: 22px;
	cursor: pointer;
	color: var(--nyip-muted);
}

.nyip-membership-card {
	border-radius: 16px;
	overflow: hidden;
	border: 1px solid var(--nyip-border);
	margin-bottom: 18px;
}
.nyip-card-header {
	background: linear-gradient(135deg, var(--nyip-green), var(--nyip-green-dark));
	color: #fff;
	padding: 14px 18px;
	display: flex;
	flex-direction: column;
}
.nyip-card-org { font-size: 12px; letter-spacing: 0.5px; opacity: 0.85; }
.nyip-card-title { font-size: 15px; font-weight: 700; }
.nyip-card-body {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 18px;
	background: var(--nyip-card-bg);
}
.nyip-card-photo { width: 64px; height: 64px; border-radius: 12px; object-fit: cover; background: var(--nyip-gold-light); }
.nyip-card-details { flex: 1; }
.nyip-card-details h3 { margin: 0; font-size: 16px; }
.nyip-card-id { font-size: 12.5px; margin: 4px 0; }
.nyip-card-qr { width: 64px; height: 64px; }

/* Responsive */
@media (max-width: 720px) {
	.nyip-form-grid-2, .nyip-grid-2 { grid-template-columns: 1fr; }
	.nyip-header-row { flex-direction: column; align-items: flex-start; }
	.nyip-header-actions { width: 100%; }
	.nyip-header-actions .nyip-btn { flex: 1; }
}

/* Print styles for the membership card */
@media print {
	body * { visibility: hidden; }
	.nyip-membership-card, .nyip-membership-card * { visibility: visible; }
	.nyip-membership-card { position: fixed; top: 40px; left: 50%; transform: translateX(-50%); }
}

/* ==========================================================================
   Landing page + dashboard widget additions
   ========================================================================== */

.nyip-btn-lg { padding: 15px 28px; font-size: 16px; }

.nyip-btn-gold {
	background: linear-gradient(135deg, var(--nyip-gold), #b8912a);
	color: #16241f;
}
.nyip-btn-gold:hover { filter: brightness(1.05); }

.nyip-btn-outline-light {
	background: transparent;
	border: 2px solid rgba(255,255,255,0.7);
	color: #fff;
}
.nyip-btn-outline-light:hover { background: rgba(255,255,255,0.12); }

.nyip-landing { color: var(--nyip-text); font-family: var(--nyip-font); }

.nyip-hero {
	background: linear-gradient(135deg, var(--nyip-green), var(--nyip-green-dark));
	color: #fff;
	text-align: center;
	/* Full-bleed breakout: spans the entire device width no matter what
	   max-width container (theme or page builder) this is nested inside. */
	position: relative;
	left: 50%;
	right: 50%;
	width: 100vw;
	max-width: 100vw;
	margin-left: -50vw;
	margin-right: -50vw;
	box-sizing: border-box;
	padding: 24px;
	min-height: 100vh;
	display: flex;
	align-items: center;
	justify-content: center;
}
.nyip-hero-inner { max-width: 720px; margin: 0 auto; }
.nyip-hero-eyebrow {
	display: inline-block;
	background: rgba(212,175,55,0.18);
	color: var(--nyip-gold-light);
	border: 1px solid rgba(212,175,55,0.4);
	padding: 6px 14px;
	border-radius: 999px;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: .03em;
	margin-bottom: 18px;
}
.nyip-hero h1 { font-size: 42px; line-height: 1.15; margin: 0 0 16px; }
.nyip-hero-sub { font-size: 17px; opacity: .92; margin: 0 0 32px; }
.nyip-hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

@media (max-width: 640px) {
	.nyip-hero { min-height: 90vh; padding: 32px 20px; }
	.nyip-hero h1 { font-size: 28px; }
	.nyip-hero-sub { font-size: 15px; }
	.nyip-hero-compact { padding: 40px 20px; }
	.nyip-hero-compact h1 { font-size: 24px; }
	.nyip-btn-lg { padding: 12px 20px; font-size: 15px; }
}

.nyip-section { padding: 64px 24px; max-width: 1080px; margin: 0 auto; }
.nyip-section-alt { background: var(--nyip-bg); border-radius: var(--nyip-radius); }
.nyip-section-title { font-size: 26px; text-align: center; margin: 0 0 32px; }

.nyip-grid-3 {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 18px;
	margin-bottom: 18px;
}
@media (max-width: 860px) { .nyip-grid-3 { grid-template-columns: 1fr; } }

.nyip-spotlight-card {
	display: flex;
	gap: 24px;
	align-items: center;
	background: var(--nyip-card-bg);
	border: 1px solid var(--nyip-border);
	border-radius: var(--nyip-radius);
	padding: 28px;
	box-shadow: var(--nyip-shadow);
	max-width: 720px;
	margin: 0 auto;
}
.nyip-spotlight-photo { width: 110px; height: 110px; border-radius: 50%; object-fit: cover; border: 3px solid var(--nyip-gold); flex-shrink: 0; }
.nyip-spotlight-quote { font-style: italic; font-size: 17px; margin: 0 0 10px; }
.nyip-spotlight-name { font-weight: 700; margin: 0; }

.nyip-event-card { display: flex; flex-direction: column; gap: 8px; }
.nyip-event-image { width: 100%; height: 140px; object-fit: cover; border-radius: 8px; margin-bottom: 4px; }

.nyip-ambassador-cta {
	background: linear-gradient(135deg, var(--nyip-gold-light), #fff);
	border-radius: var(--nyip-radius);
	padding: 56px 24px;
	text-align: center;
	max-width: 1080px;
	margin: 32px auto;
}
.nyip-ambassador-inner { max-width: 560px; margin: 0 auto; }
.nyip-ambassador-inner h2 { margin-top: 0; }

.nyip-testimonial p:first-child { font-style: italic; }
.nyip-testimonial-name { font-weight: 600; color: var(--nyip-muted); margin: 0; }

.nyip-coming-soon { border-style: dashed; opacity: .85; }

.nyip-announcements-empty {
	max-width: 520px;
	margin: 0 auto;
	text-align: center;
	padding: 32px;
}
.nyip-announcements-empty p { margin: 0; font-size: 16px; color: var(--nyip-text); }

.nyip-points-value {
	font-size: 40px;
	font-weight: 800;
	color: var(--nyip-green);
	margin: 4px 0;
}

.nyip-landing-footer {
	text-align: center;
	padding: 32px 24px;
	color: var(--nyip-muted);
	border-top: 1px solid var(--nyip-border);
}
.nyip-landing-footer a { color: var(--nyip-green); font-weight: 600; text-decoration: none; margin-left: 6px; }
.nyip-landing-footer a:hover { text-decoration: underline; }

@media print {
	body * { visibility: hidden; }
	#nyip-membership-card, #nyip-membership-card * { visibility: visible; }
	#nyip-membership-card { position: fixed; top: 40px; left: 50%; transform: translateX(-50%); }
}

/* ==========================================================================
   Student Spotlight Challenge
   ========================================================================== */

.nyip-hero-compact {
	padding: 56px 24px;
	min-height: auto;
	position: relative;
	left: 50%;
	right: 50%;
	width: 100vw;
	max-width: 100vw;
	margin-left: -50vw;
	margin-right: -50vw;
	box-sizing: border-box;
}
.nyip-hero-compact h1 { font-size: 32px; }

.nyip-spotlight-login-cta { text-align: center; }

.nyip-spotlight-video-tabs {
	display: flex;
	gap: 18px;
	margin-bottom: 10px;
	font-size: 14px;
}
.nyip-spotlight-video-tabs label { display: inline-flex; align-items: center; gap: 6px; font-weight: 500; }

#nyip-spotlight-video-file,
#nyip-spotlight-video-url {
	width: 100%;
	padding: 10px 12px;
	border: 1px solid var(--nyip-border);
	border-radius: 8px;
	font-size: 14px;
	background: var(--nyip-card-bg);
	color: var(--nyip-text);
}

.nyip-spotlight-entry-card { display: flex; flex-direction: column; gap: 10px; }

.nyip-spotlight-video-wrap {
	position: relative;
	width: 100%;
	padding-top: 56.25%; /* 16:9 */
	border-radius: 10px;
	overflow: hidden;
	background: #000;
}
.nyip-spotlight-video-wrap iframe,
.nyip-spotlight-video-wrap video {
	position: absolute;
	top: 0; left: 0;
	width: 100%; height: 100%;
	border: 0;
}

.nyip-spotlight-card-footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-top: auto;
	padding-top: 8px;
	border-top: 1px solid var(--nyip-border);
}
.nyip-spotlight-vote-count { font-weight: 700; color: var(--nyip-green); font-size: 14px; }

/* ==========================================================================
   Modern UI: glassmorphism + motion
   ========================================================================== */

.nyip-glass {
	background: rgba(247, 232, 189, 0.55);
	backdrop-filter: blur(16px) saturate(160%);
	-webkit-backdrop-filter: blur(16px) saturate(160%);
	border: 1px solid rgba(212, 175, 55, 0.35);
	box-shadow: 0 8px 32px rgba(120, 90, 20, 0.14);
	color: #1a1a1a;
}
.nyip-glass h1, .nyip-glass h2, .nyip-glass h3, .nyip-glass h4,
.nyip-glass p, .nyip-glass span, .nyip-glass label, .nyip-glass li {
	color: #1a1a1a;
}
.nyip-dark .nyip-glass,
:root:not(.nyip-light) .nyip-glass {
	background: rgba(58, 46, 15, 0.55);
	border: 1px solid rgba(212, 175, 55, 0.25);
	color: #1a1a1a;
}
.nyip-dark .nyip-glass h1, .nyip-dark .nyip-glass h2, .nyip-dark .nyip-glass h3, .nyip-dark .nyip-glass h4,
.nyip-dark .nyip-glass p, .nyip-dark .nyip-glass span, .nyip-dark .nyip-glass label, .nyip-dark .nyip-glass li,
:root:not(.nyip-light) .nyip-glass h1, :root:not(.nyip-light) .nyip-glass h2, :root:not(.nyip-light) .nyip-glass h3, :root:not(.nyip-light) .nyip-glass h4,
:root:not(.nyip-light) .nyip-glass p, :root:not(.nyip-light) .nyip-glass span, :root:not(.nyip-light) .nyip-glass label, :root:not(.nyip-light) .nyip-glass li {
	color: #1a1a1a;
}

.nyip-glass .nyip-muted { color: #4a4a4a; }
.nyip-dark .nyip-glass .nyip-muted,
:root:not(.nyip-light) .nyip-glass .nyip-muted { color: #4a4a4a; }
.nyip-hero .nyip-glass .nyip-muted { color: rgba(255,255,255,0.85); }

/* Glass surface reads best over the green hero / gradients - kept white
   text here since it sits directly on the dark green hero background,
   not the light creamish-gold surface used everywhere else. */
.nyip-hero .nyip-glass {
	background: rgba(247, 232, 189, 0.22);
	border-color: rgba(212, 175, 55, 0.4);
	color: #fff;
}
.nyip-hero .nyip-glass h1, .nyip-hero .nyip-glass h2, .nyip-hero .nyip-glass h3, .nyip-hero .nyip-glass h4,
.nyip-hero .nyip-glass p, .nyip-hero .nyip-glass span, .nyip-hero .nyip-glass label, .nyip-hero .nyip-glass li {
	color: #fff;
}

@keyframes nyipFadeInUp {
	from { opacity: 0; transform: translateY(18px); }
	to   { opacity: 1; transform: translateY(0); }
}
@keyframes nyipPulse {
	0%   { transform: scale(1); }
	35%  { transform: scale(1.18); color: var(--nyip-gold); }
	100% { transform: scale(1); }
}
@keyframes nyipSpin {
	to { transform: rotate(360deg); }
}

.nyip-animate-in {
	animation: nyipFadeInUp 0.6s cubic-bezier(.21,.9,.32,1) both;
}
.nyip-reveal {
	opacity: 0;
	transform: translateY(24px);
	transition: opacity 0.7s cubic-bezier(.21,.9,.32,1), transform 0.7s cubic-bezier(.21,.9,.32,1);
}
.nyip-reveal.nyip-in-view {
	opacity: 1;
	transform: translateY(0);
}

.nyip-pulse { animation: nyipPulse 0.5s ease; display: inline-block; }

@media (prefers-reduced-motion: reduce) {
	.nyip-animate-in, .nyip-reveal, .nyip-pulse { animation: none !important; transition: none !important; opacity: 1 !important; transform: none !important; }
}

/* Card hover lift, used across dashboard/landing/spotlight cards */
.nyip-card {
	transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.nyip-card:hover {
	transform: translateY(-3px);
	box-shadow: 0 10px 28px rgba(15, 40, 30, 0.14);
}

.nyip-btn {
	transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}
.nyip-btn:active { transform: scale(0.96); }

.nyip-btn-loading {
	position: relative;
	color: transparent !important;
	pointer-events: none;
}
.nyip-btn-loading::after {
	content: "";
	position: absolute;
	top: 50%; left: 50%;
	width: 16px; height: 16px;
	margin: -8px 0 0 -8px;
	border: 2px solid rgba(255,255,255,0.5);
	border-top-color: #fff;
	border-radius: 50%;
	animation: nyipSpin 0.7s linear infinite;
}

/* ==========================================================================
   Spotlight Challenge: guest fields, honeypot, chips, like batches
   ========================================================================== */

.nyip-field-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 14px;
	margin-bottom: 4px;
}
@media (max-width: 640px) { .nyip-field-row { grid-template-columns: 1fr; } }

.nyip-honeypot {
	position: absolute !important;
	left: -9999px !important;
	top: -9999px !important;
	width: 1px; height: 1px;
	overflow: hidden;
}

.nyip-chip {
	display: inline-block;
	padding: 2px 10px;
	border-radius: 999px;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .02em;
}
.nyip-chip-student { background: #e0e9ff; color: #2a3e8c; }
.nyip-chip-guest { background: #fdeedd; color: #a1560a; }

.nyip-spotlight-entry-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	flex-wrap: wrap;
}
.nyip-spotlight-entry-head h3 { margin: 0; }

.nyip-like-batch {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-top: 4px;
}
.nyip-like-btn {
	border: 1.5px solid var(--nyip-green);
	background: transparent;
	color: var(--nyip-green);
	border-radius: 999px;
	padding: 5px 12px;
	font-size: 13px;
	font-weight: 700;
	cursor: pointer;
	transition: all 0.15s ease;
}
.nyip-like-btn:hover:not(:disabled) {
	background: var(--nyip-green);
	color: #fff;
	transform: translateY(-2px) scale(1.05);
}
.nyip-like-btn:disabled { opacity: 0.5; cursor: not-allowed; }

.nyip-field-error {
	display: none;
	color: var(--nyip-danger);
	font-size: 12.5px;
	margin-top: 4px;
	font-weight: 600;
}

/* ==========================================================================
   Hero photo layout, stat strip, events tabs, star ratings
   ========================================================================== */

.nyip-hero-grid {
	display: grid;
	grid-template-columns: 1.1fr 0.9fr;
	gap: 48px;
	align-items: center;
	max-width: 1180px;
	margin: 0 auto;
	text-align: left;
	width: 100%;
}
.nyip-hero-copy .nyip-hero-actions { justify-content: flex-start; }

.nyip-hero-visual { position: relative; }
.nyip-hero-visual img {
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	border-radius: 20px;
	box-shadow: 0 24px 60px rgba(0,0,0,0.35);
	border: 1px solid rgba(255,255,255,0.18);
}
.nyip-hero-visual-badge {
	position: absolute;
	bottom: -18px;
	left: -18px;
	background: rgba(255,255,255,0.92);
	backdrop-filter: blur(10px);
	color: var(--nyip-text);
	border-radius: 14px;
	padding: 14px 18px;
	box-shadow: 0 12px 28px rgba(0,0,0,0.25);
	display: flex;
	flex-direction: column;
	line-height: 1.2;
}
.nyip-hero-visual-badge strong { font-size: 22px; color: var(--nyip-green); }
.nyip-hero-visual-badge span { font-size: 12.5px; color: var(--nyip-muted); }

@media (max-width: 900px) {
	.nyip-hero-grid { grid-template-columns: 1fr; text-align: center; gap: 32px; }
	.nyip-hero-copy .nyip-hero-actions { justify-content: center; }
	.nyip-hero-visual-badge { left: 50%; transform: translateX(-50%); bottom: -16px; }
}

.nyip-stat-strip {
	background: var(--nyip-card-bg);
	border-bottom: 1px solid var(--nyip-border);
	padding: 28px 24px;
}
.nyip-stat-strip-inner {
	max-width: 1080px;
	margin: 0 auto;
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 20px;
	text-align: center;
}
.nyip-stat-value { display: block; font-size: 30px; font-weight: 800; color: var(--nyip-green); }
.nyip-stat-label { display: block; font-size: 12.5px; color: var(--nyip-muted); margin-top: 2px; }
@media (max-width: 640px) { .nyip-stat-strip-inner { grid-template-columns: 1fr 1fr; } }

.nyip-events-content { max-width: 1200px; margin: 0 auto; padding: 0 24px 64px; }

/* Events tabs */
.nyip-events-tabs {
	display: flex;
	justify-content: center;
	gap: 10px;
	margin: 56px 0 44px;
}
.nyip-events-tab {
	border: 1.5px solid var(--nyip-border);
	background: var(--nyip-card-bg);
	color: var(--nyip-muted);
	padding: 12px 28px;
	border-radius: 999px;
	font-weight: 700;
	font-size: 15px;
	cursor: pointer;
	transition: all 0.2s ease;
}
.nyip-events-tab.is-active {
	background: var(--nyip-green);
	border-color: var(--nyip-green);
	color: #fff;
}
.nyip-events-tab:hover:not(.is-active) { border-color: var(--nyip-green); color: var(--nyip-green); }

.nyip-events-panel { margin-top: 8px; }
.nyip-events-content .nyip-grid-3 { gap: 28px; }

.nyip-event-card-past { opacity: 0.92; }

/* Featured single past-event: large, prominent layout used when only
   one example past event exists (instead of squeezing it into a
   3-column grid where it looks small and cramped). */
.nyip-featured-past-event {
	display: grid;
	grid-template-columns: 1.1fr 1fr;
	gap: 0;
	border-radius: var(--nyip-radius);
	overflow: hidden;
	max-width: 980px;
	margin: 0 auto;
}
.nyip-featured-past-event-media {
	min-height: 100%;
}
.nyip-featured-past-event-media img {
	width: 100%;
	height: 100%;
	min-height: 420px;
	object-fit: cover;
	display: block;
}
.nyip-featured-past-event-body {
	padding: 48px 44px;
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 14px;
}
.nyip-featured-past-event-body h2 {
	font-size: 30px;
	margin: 6px 0 0;
	line-height: 1.25;
}
.nyip-featured-past-event-desc {
	font-size: 16px;
	line-height: 1.7;
	color: var(--nyip-text);
}
.nyip-featured-past-event-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
	margin-top: 12px;
}

@media (max-width: 860px) {
	.nyip-featured-past-event { grid-template-columns: 1fr; }
	.nyip-featured-past-event-media img { min-height: 280px; }
	.nyip-featured-past-event-body { padding: 32px 24px; }
	.nyip-featured-past-event-body h2 { font-size: 24px; }
}
.nyip-event-card-past .nyip-chip { margin-bottom: 6px; }

.nyip-coming-soon-card {
	max-width: 420px;
	margin: 0 auto;
	text-align: center;
	position: relative;
	padding: 0 0 20px;
	overflow: hidden;
}
.nyip-coming-soon-image { width: 100%; display: block; border-radius: var(--nyip-radius) var(--nyip-radius) 0 0; }
.nyip-coming-soon-badge {
	position: absolute;
	top: 16px;
	right: 16px;
	background: var(--nyip-gold);
	color: #16241f;
	font-weight: 800;
	font-size: 12.5px;
	letter-spacing: .03em;
	padding: 6px 14px;
	border-radius: 999px;
	box-shadow: 0 4px 14px rgba(0,0,0,0.25);
}
.nyip-coming-soon-card p { padding: 14px 20px 0; margin: 0; color: var(--nyip-muted); font-size: 14px; }

/* Star ratings */
.nyip-stars { color: var(--nyip-gold); font-size: 16px; letter-spacing: 2px; }
.nyip-rating-text { display: block; font-size: 11.5px; color: var(--nyip-muted); margin: 2px 0 12px; }

/* ==========================================================================
   Standalone Login/Register pages: split panel with a photo, applied
   only when the auth card is the page's own content (not when it's
   embedded inside the dashboard's logged-out guard tabs).
   ========================================================================== */

.nyip-page-content > .nyip-auth-wrapper {
	max-width: 1100px;
	margin: 32px auto;
	padding: 0;
	display: grid;
	grid-template-columns: 1fr 1fr;
	border-radius: 20px;
	overflow: hidden;
	box-shadow: 0 20px 50px rgba(15, 40, 30, 0.14);
	background-size: cover;
	background-position: center;
}
.nyip-page-content > .nyip-auth-wrapper .nyip-auth-card {
	box-shadow: none;
	border-radius: 0;
	margin: 0;
	padding: 44px 40px;
	display: flex;
	flex-direction: column;
	justify-content: center;
}
@media (max-width: 820px) {
	.nyip-page-content > .nyip-auth-wrapper {
		grid-template-columns: 1fr;
		margin: 0;
		border-radius: 0;
		box-shadow: none;
		background-image: none !important;
	}
	.nyip-page-content > .nyip-auth-wrapper .nyip-auth-card { padding: 32px 20px; }
}

/* ==========================================================================
   Auth pages: split-screen with the Nigerian youth crowd image
   ========================================================================== */

.nyip-auth-page {
	display: grid;
	grid-template-columns: 1.1fr 1fr;
	min-height: 640px;
	max-width: 1100px;
	margin: 0 auto;
	border-radius: var(--nyip-radius);
	overflow: hidden;
	box-shadow: 0 20px 60px rgba(15, 40, 30, 0.14);
}
.nyip-auth-page-reverse { grid-template-columns: 1fr 1.1fr; }
.nyip-auth-page-reverse .nyip-auth-visual { order: 2; }

.nyip-auth-visual {
	position: relative;
	min-height: 320px;
	background: var(--nyip-green-dark);
}
.nyip-auth-visual img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center 20%;
	display: block;
}
.nyip-auth-visual::before {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(8,76,55,0.15) 0%, rgba(8,76,55,0.75) 100%);
}
.nyip-auth-visual-caption {
	position: absolute;
	left: 28px;
	right: 28px;
	bottom: 28px;
	color: #fff;
	display: flex;
	flex-direction: column;
	gap: 6px;
}
.nyip-auth-visual-caption strong { font-size: 22px; }
.nyip-auth-visual-caption span { font-size: 14px; color: #cfe3d8; }

.nyip-auth-page .nyip-auth-wrapper {
	margin: 0;
	padding: 44px;
	display: flex;
	align-items: center;
	background: var(--nyip-card-bg);
}
.nyip-auth-page .nyip-auth-card {
	box-shadow: none;
	border-top: none;
	padding: 0;
	width: 100%;
}

/* When the login/register templates are embedded inside the dashboard's
   tabbed logged-out guard, collapse back to a plain single-column card -
   the image panel only makes sense as a full standalone page. */
.nyip-auth-tabs-card .nyip-auth-page {
	display: block;
	max-width: none;
	box-shadow: none;
	border-radius: 0;
}
.nyip-auth-tabs-card .nyip-auth-visual { display: none; }
.nyip-auth-tabs-card .nyip-auth-page .nyip-auth-wrapper { padding: 0 20px; }

@media (max-width: 860px) {
	.nyip-auth-page, .nyip-auth-page-reverse { grid-template-columns: 1fr; min-height: 0; }
	.nyip-auth-page-reverse .nyip-auth-visual { order: 0; }
	.nyip-auth-visual { min-height: 220px; }
	.nyip-auth-page .nyip-auth-wrapper { padding: 32px 24px; }
}
