/* =============================================================
   JSC Events Page — scoped to .jsc-ep
   Used by the Elementor-managed /jsc-events page
   ============================================================= */

/* CSS variables — global, safe */
:root {
	--jsc-ink:         #2e383f;
	--jsc-ink-soft:    #546069;
	--jsc-yellow:      #f7d03b;
	--jsc-yellow-deep: #e5b928;
	--jsc-sky:         #92adc5;
	--jsc-sky-soft:    #b9cbdc;
	--jsc-cream:       #f5efe4;
	--jsc-paper:       #fbf8f1;
	--jsc-line:        rgba(46,56,63,0.14);
	--jsc-warm:        #b8745c;
}

/* ── Kill the white gap between nav and hero ──────────────── */
/* Elementor's widget-wrap has 10px padding-top by default;
   the body background (#F7FAFC) bleeds through it above the hero. */
.page-id-7931 .elementor-top-section:first-of-type {
	background-color: #2e383f !important;
}
.page-id-7931 .elementor-top-section:first-of-type > .elementor-container {
	padding-top: 0 !important;
}
.page-id-7931 .elementor-top-section:first-of-type .elementor-widget-wrap {
	padding-top: 0 !important;
}

/* Base */
.jsc-ep {
	font-family: 'Bitter', Georgia, serif;
	font-size: 16px;
	line-height: 1.55;
	color: var(--jsc-ink);
	-webkit-font-smoothing: antialiased;
}
.jsc-ep .display { font-family: 'Bebas Neue', sans-serif; text-transform: uppercase; letter-spacing: 0.01em; line-height: 0.95; }
.jsc-ep .mono    { font-family: 'Bitter', serif; font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; font-weight: 600; }
.jsc-ep a        { color: inherit; }

/* ── HERO ──────────────────────────────────────────────── */
.jsc-ep .hero {
	background: var(--jsc-ink);
	color: var(--jsc-paper);
	padding: 24px 20px 40px !important;
	position: relative;
	overflow: hidden;
}
.jsc-ep .hero-sun {
	position: absolute; top: -80px; right: -120px;
	width: 340px; height: 340px; border-radius: 50%;
	background: radial-gradient(circle at 40% 40%, var(--jsc-yellow) 0%, var(--jsc-yellow-deep) 60%, transparent 72%);
	opacity: 0.9; pointer-events: none;
}
.jsc-ep .hero-inner { position: relative; z-index: 2; }
.jsc-ep .hero-eyebrow {
	color: var(--jsc-yellow);
	display: flex; align-items: center; gap: 10px; margin-bottom: 20px;
}
.jsc-ep .hero-eyebrow .dot {
	width: 7px; height: 7px; border-radius: 50%;
	background: var(--jsc-yellow);
	box-shadow: 0 0 0 4px rgba(247,208,59,0.2); flex-shrink: 0;
}
.jsc-ep .hero h1 {
	margin: 0;
	font-family: 'Bebas Neue', sans-serif;
	font-size: 44px; line-height: 0.95;
	text-transform: uppercase; color: var(--jsc-paper);
}
.jsc-ep .hero h1 .yellow { color: var(--jsc-yellow); }
.jsc-ep .hero h1 .sky {
	color: var(--jsc-sky); font-style: italic;
	font-family: 'Bitter', serif; font-weight: 300;
	text-transform: none; letter-spacing: -0.02em;
}
.jsc-ep .hero-sub   { margin: 18px 0 0; color: #dcd5c6; font-size: 16px; line-height: 1.55; }
.jsc-ep .hero-approval {
	margin: 12px 0 0; font-size: 13px; letter-spacing: 0.12em;
	text-transform: uppercase; color: var(--jsc-yellow);
	font-family: 'Bitter', serif; font-weight: 600;
	display: flex; align-items: center; gap: 8px;
}
.jsc-ep .hero-approval::before {
	content: ''; display: inline-block;
	width: 20px; height: 1px; background: var(--jsc-yellow);
}

/* ── NOW LIVE ────────────────────────────────────────────── */
.jsc-ep .now-live { padding: 40px 20px 20px; background: var(--jsc-paper); }
.jsc-ep .now-live-head {
	display: flex; align-items: center; justify-content: space-between;
	margin-bottom: 24px; padding-bottom: 14px;
	border-bottom: 1px solid var(--jsc-line);
}
.jsc-ep .now-live-head .label { display: flex; align-items: center; gap: 10px; }
.jsc-ep .now-live-head .pulse {
	width: 10px; height: 10px; border-radius: 50%;
	background: var(--jsc-yellow); position: relative; flex-shrink: 0;
}
.jsc-ep .now-live-head .pulse::before {
	content: ''; position: absolute; inset: -4px; border-radius: 50%;
	background: var(--jsc-yellow); opacity: 0.35;
	animation: jsc-pulse 1.8s ease-out infinite;
}
@keyframes jsc-pulse {
	0%   { transform: scale(1);   opacity: 0.4; }
	70%  { transform: scale(2.2); opacity: 0; }
	100% { transform: scale(2.2); opacity: 0; }
}
.jsc-ep .now-live-head .label .text {
	font-family: 'Bebas Neue', sans-serif;
	font-size: 14px; letter-spacing: 0.12em; text-transform: uppercase;
}
.jsc-ep .now-live-head .count {
	font-family: 'Bitter', serif; font-size: 12px;
	color: var(--jsc-ink-soft); letter-spacing: 0.1em; text-transform: uppercase;
}

/* ── EVENT CARDS ─────────────────────────────────────────── */
.jsc-ep .events-stack { display: flex; flex-direction: column; gap: 20px; }

.jsc-ep .event-card {
	background: var(--jsc-paper); border: 1px solid var(--jsc-line);
	border-radius: 8px; overflow: hidden; display: block;
	text-decoration: none; color: inherit;
	transition: transform .15s, box-shadow .15s;
}
.jsc-ep .event-card:hover {
	box-shadow: 0 8px 28px rgba(46,56,63,0.1);
	text-decoration: none; color: inherit;
}

/* Flyer panel — coloured background with event image layered behind the text */
.jsc-ep .flyer {
	aspect-ratio: 4 / 5; background: var(--jsc-ink); color: var(--jsc-paper);
	position: relative; overflow: hidden; padding: 22px;
	display: flex; flex-direction: column; justify-content: space-between;
}
.jsc-ep .flyer.yellow { background: var(--jsc-yellow); color: var(--jsc-ink); }
.jsc-ep .flyer.sky    { background: var(--jsc-sky);    color: var(--jsc-ink); }
.jsc-ep .flyer.warm   { background: var(--jsc-warm);   color: var(--jsc-paper); }
.jsc-ep .flyer.ink    { background: var(--jsc-ink);    color: var(--jsc-paper); }
.jsc-ep .flyer::before {
	content: ''; position: absolute; inset: 0;
	background-image: repeating-linear-gradient(45deg, rgba(255,255,255,0.04) 0 14px, rgba(255,255,255,0.09) 14px 28px);
	pointer-events: none; z-index: 1;
}
.jsc-ep .flyer.yellow::before,
.jsc-ep .flyer.sky::before {
	background-image: repeating-linear-gradient(45deg, rgba(46,56,63,0.05) 0 14px, rgba(46,56,63,0.09) 14px 28px);
}
/* Actual event flyer image — show full graphic, no cropping */
/* Drop the forced aspect-ratio so the image sets its own height */
.jsc-ep .flyer.has-photo {
	aspect-ratio: unset;
	padding: 0;
}
.jsc-ep .flyer img.flyer-photo {
	position: static;
	width: 100%; height: auto;
	display: block;
	object-fit: unset;
	z-index: 0;
}
/* When a real photo is present, hide the diagonal stripe so the image shows cleanly */
.jsc-ep .flyer.has-photo::before { display: none; }
.jsc-ep .flyer > * { position: relative; z-index: 2; }
.jsc-ep .flyer-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; }
.jsc-ep .flyer-top .badge {
	background: rgba(251,248,241,0.14); backdrop-filter: blur(8px);
	padding: 5px 10px; border-radius: 3px;
	font-family: 'Bitter', serif; font-size: 10px;
	letter-spacing: 0.16em; text-transform: uppercase; font-weight: 600;
}
.jsc-ep .flyer.yellow .flyer-top .badge,
.jsc-ep .flyer.sky    .flyer-top .badge { background: rgba(46,56,63,0.12); color: var(--jsc-ink); }
.jsc-ep .date-stamp {
	font-family: 'Bebas Neue', sans-serif; font-size: 11px;
	letter-spacing: 0.16em; text-transform: uppercase;
	text-align: right; opacity: 0.85;
}
.jsc-ep .date-stamp .day {
	display: block; font-size: 44px; line-height: 0.9;
	letter-spacing: -0.01em; margin-top: 4px; opacity: 1;
}
.jsc-ep .flyer-title {
	font-family: 'Bebas Neue', sans-serif; font-size: 42px;
	line-height: 0.9; text-transform: uppercase; letter-spacing: -0.01em;
}
.jsc-ep .flyer-foot {
	display: flex; justify-content: space-between; align-items: flex-end; gap: 14px;
	font-family: 'Bitter', serif; font-size: 12px;
	letter-spacing: 0.1em; text-transform: uppercase; opacity: 0.9;
}
.jsc-ep .flyer-foot .venue strong {
	display: block; font-family: 'Bebas Neue', sans-serif;
	font-size: 14px; letter-spacing: 0.05em; opacity: 1; margin-bottom: 3px;
}
.jsc-ep .event-details { padding: 18px 20px 20px; }
.jsc-ep .tag-row { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; }
.jsc-ep .tag {
	font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase;
	padding: 3px 8px; border-radius: 3px; font-weight: 600;
	font-family: 'Bitter', serif;
	background: var(--jsc-sky-soft); color: var(--jsc-ink);
}
.jsc-ep .event-desc { font-size: 15px; line-height: 1.55; color: var(--jsc-ink); margin: 0 0 16px; }
.jsc-ep .event-meta { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; font-size: 13px; color: var(--jsc-ink-soft); }
.jsc-ep .event-meta .row { display: flex; align-items: center; gap: 8px; }
.jsc-ep .event-meta .row .icon { width: 14px; height: 14px; flex-shrink: 0; color: var(--jsc-ink-soft); }
.jsc-ep .rsvp {
	display: block; width: 100%; text-align: center;
	background: var(--jsc-ink); color: var(--jsc-paper);
	padding: 14px 16px; border-radius: 6px; text-decoration: none;
	font-family: 'Bitter', serif; font-size: 15px; font-weight: 600; letter-spacing: 0.02em;
}
.jsc-ep .rsvp.feat { background: var(--jsc-yellow); color: var(--jsc-ink); }
.jsc-ep .events-empty {
	padding: 40px 20px; text-align: center; color: var(--jsc-ink-soft);
	font-family: 'Bebas Neue', sans-serif; text-transform: uppercase; letter-spacing: 0.08em;
	border: 1.5px dashed var(--jsc-line); border-radius: 8px;
}
/* ── ALL-CTA (see past events bar) ───────────────────────── */
.jsc-ep .all-cta {
	margin-top: 28px;
	display: flex; align-items: center; justify-content: space-between;
	padding: 16px 18px;
	background: var(--jsc-cream); border-radius: 6px;
	text-decoration: none; color: var(--jsc-ink);
	transition: background .15s;
}
.jsc-ep .all-cta:hover { background: #ede8de; color: var(--jsc-ink); text-decoration: none; }
.jsc-ep .all-cta .label {
	font-family: 'Bebas Neue', sans-serif; font-size: 14px;
	letter-spacing: 0.06em; text-transform: uppercase;
}
.jsc-ep .all-cta .arr { font-family: 'Bebas Neue', sans-serif; font-size: 18px; }

/* ── GALLERY ─────────────────────────────────────────────── */
.jsc-ep .gallery-section {
	background: var(--jsc-ink); color: var(--jsc-paper); padding: 48px 20px 44px;
}
.jsc-ep .sect-head { margin-bottom: 22px; padding-bottom: 14px; border-bottom: 1px solid rgba(255,255,255,0.14); }
.jsc-ep .gallery-section .sect-head .eyebrow { color: var(--jsc-yellow); margin-bottom: 10px; }
.jsc-ep .sect-head h2 { font-family: 'Bebas Neue', sans-serif; font-size: 34px; line-height: 0.95; text-transform: uppercase; margin: 0 0 10px; }
.jsc-ep .sect-head p  { color: #b9b3a4; font-size: 14px; margin: 0; }
.jsc-ep .gallery-scroll {
	display: grid; grid-auto-flow: column; grid-auto-columns: 72%; gap: 10px;
	overflow-x: auto; overscroll-behavior-x: contain;
	scroll-snap-type: x mandatory; padding-bottom: 6px;
	margin: 0 -20px; padding-left: 20px; padding-right: 20px;
	scrollbar-width: none;
}
.jsc-ep .gallery-scroll::-webkit-scrollbar { display: none; }
.jsc-ep .ph {
	aspect-ratio: 4 / 5; border-radius: 6px; overflow: hidden;
	position: relative; scroll-snap-align: start; background: #3a464e;
}
.jsc-ep .ph::before {
	content: ''; position: absolute; inset: 0;
	background-image: repeating-linear-gradient(45deg, rgba(255,255,255,0.035) 0 12px, rgba(255,255,255,0.07) 12px 24px);
}
.jsc-ep .ph::after {
	content: attr(data-label); position: absolute; bottom: 10px; left: 12px;
	font-family: 'Bitter', monospace; font-size: 10px;
	letter-spacing: 0.1em; color: rgba(255,255,255,0.55); text-transform: uppercase;
}
.jsc-ep .ph.warm  { background: #6a4a3a; }
.jsc-ep .ph.sky   { background: #5a7a96; }
.jsc-ep .ph.gold  { background: #b48a2a; }
.jsc-ep .ph.cream { background: #c6b698; }
.jsc-ep .ph-label {
	position: absolute; bottom: 10px; right: 12px;
	font-family: 'Bebas Neue', sans-serif; font-size: 10px;
	letter-spacing: 0.1em; color: rgba(255,255,255,0.85);
	text-transform: uppercase; text-align: right;
}
.jsc-ep .gallery-foot {
	margin-top: 18px; display: flex; justify-content: space-between;
	align-items: center; color: #b9b3a4; font-size: 12px;
}

/* ── FAQ ─────────────────────────────────────────────────── */
.jsc-ep .faq-section { padding: 48px 20px 40px; background: var(--jsc-cream); }
.jsc-ep .faq-section .sect-head { border-bottom: 1px solid var(--jsc-line); }
.jsc-ep .faq-section .sect-head .eyebrow { color: var(--jsc-ink-soft); margin-bottom: 10px; }
.jsc-ep .faq-section .sect-head h2 { color: var(--jsc-ink); }
.jsc-ep .faq-section .sect-head p  { color: var(--jsc-ink-soft); }
.jsc-ep .faq-star { color: var(--jsc-yellow); font-size: 34px; line-height: 1; margin-bottom: 8px; display: block; }
.jsc-ep .faq-list { border-top: 1px solid var(--jsc-line); }
.jsc-ep .faq-item { border-bottom: 1px solid var(--jsc-line); }
.jsc-ep .faq-q {
	width: 100%; text-align: left; background: transparent; border: 0;
	padding: 20px 0;
	font-family: 'Bebas Neue', sans-serif; font-size: 17px;
	text-transform: uppercase; color: var(--jsc-ink); cursor: pointer;
	display: flex; justify-content: space-between; align-items: center;
	gap: 14px; letter-spacing: 0.005em; line-height: 1.2;
}
.jsc-ep .faq-q .plus {
	flex-shrink: 0; width: 26px; height: 26px; border-radius: 50%;
	background: var(--jsc-ink); color: var(--jsc-paper);
	display: grid; place-items: center; font-size: 18px; font-weight: 300;
	transition: transform .2s, background .2s;
}
.jsc-ep .faq-item.open .faq-q .plus { transform: rotate(45deg); background: var(--jsc-yellow); color: var(--jsc-ink); }
.jsc-ep .faq-a { max-height: 0; overflow: hidden; transition: max-height .3s ease; color: var(--jsc-ink-soft); }
.jsc-ep .faq-item.open .faq-a { max-height: 500px; }
.jsc-ep .faq-a-inner { padding: 0 0 22px; font-size: 15px; line-height: 1.65; }
.jsc-ep .faq-contact {
	margin-top: 24px; padding: 18px;
	border: 1px solid var(--jsc-line); background: var(--jsc-paper); border-radius: 8px;
}
.jsc-ep .faq-contact .mono { color: var(--jsc-ink-soft); display: block; margin-bottom: 6px; }
.jsc-ep .faq-contact a { font-size: 16px; font-weight: 600; text-decoration: none; border-bottom: 2px solid var(--jsc-yellow); }

/* ── ELEMENTOR GALLERY SECTION — dark override (page 7931) ──
   Elementor DB changes are cached by SiteGround; these CSS rules
   force the correct dark styling immediately via file-change cache bust. */
.page-id-7931 .elementor-section:has(.elementor-widget-gallery) {
	background-color: #2e383f !important;
}
.page-id-7931 .elementor-section:has(.elementor-widget-gallery) .elementor-widget-heading .elementor-heading-title {
	color: #fbf8f1 !important;
	font-family: 'Bebas Neue', sans-serif !important;
	font-size: 34px !important;
	text-transform: uppercase !important;
	line-height: 0.95 !important;
}
.page-id-7931 .elementor-section:has(.elementor-widget-gallery) .elementor-widget-text-editor p,
.page-id-7931 .elementor-section:has(.elementor-widget-gallery) .elementor-html p {
	color: #b9b3a4 !important;
}
.page-id-7931 .elementor-section:has(.elementor-widget-gallery) .gallery-item img {
	border-radius: 6px;
	object-fit: cover;
}

/* ── CTA ─────────────────────────────────────────────────── */
.jsc-ep .cta { background: var(--jsc-yellow); color: var(--jsc-ink); padding: 44px 20px; }
.jsc-ep .cta h2 { font-family: 'Bebas Neue', sans-serif; font-size: 32px; line-height: 0.95; text-transform: uppercase; margin: 0 0 8px; }
.jsc-ep .cta-copy p { margin: 0; font-size: 14px; line-height: 1.55; }
.jsc-ep .cta-btn {
	display: inline-block; background: var(--jsc-ink); color: var(--jsc-paper);
	padding: 16px 28px; border-radius: 6px; text-decoration: none;
	font-family: 'Bitter', serif; font-weight: 600; font-size: 15px; letter-spacing: 0.04em;
	transition: opacity .15s;
}
.jsc-ep .cta-btn:hover { opacity: 0.85; color: var(--jsc-paper); text-decoration: none; }

.jsc-ep .cta-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; }

/* "Also follow us" pills */
.jsc-ep .cta-follow { display: flex; flex-direction: column; gap: 9px; }
.jsc-ep .cta-follow-label {
	font-family: 'Bebas Neue', sans-serif;
	font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
	opacity: 0.45;
}
.jsc-ep .cta-follow-links { display: flex; gap: 8px; flex-wrap: wrap; }
.jsc-ep .cta-follow-link {
	display: inline-block;
	font-family: 'Bitter', serif; font-size: 13px; font-weight: 600;
	color: var(--jsc-ink); text-decoration: none;
	padding: 7px 16px;
	border: 1.5px solid rgba(46,56,63,0.3);
	border-radius: 100px;
	transition: border-color .15s, background .15s;
	white-space: nowrap;
}
.jsc-ep .cta-follow-link:hover {
	border-color: var(--jsc-ink);
	background: rgba(46,56,63,0.07);
	color: var(--jsc-ink); text-decoration: none;
}

/* ── DESKTOP (≥700px) ────────────────────────────────────── */
@media (min-width: 700px) {
	.jsc-ep .hero { padding: 48px 32px 80px !important; }
	.jsc-ep .hero-sun { width: 460px; height: 460px; top: -100px; right: -120px; }
	.jsc-ep .hero h1 { font-size: clamp(56px, 8vw, 96px); }
	.jsc-ep .hero-sub { font-size: 19px; max-width: 640px; }

	.jsc-ep .now-live { padding: 80px 32px 24px; max-width: 1200px; margin: 0 auto; }
	.jsc-ep .now-live-head .label .text { font-size: 16px; }
	.jsc-ep .events-stack {
		display: grid;
		grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
		gap: 24px;
	}
	.jsc-ep .event-card { border-radius: 10px; }
	.jsc-ep .flyer { padding: 28px; }
	.jsc-ep .flyer-title { font-size: 48px; }
	.jsc-ep .date-stamp .day { font-size: 56px; }
	.jsc-ep .event-details { padding: 24px 26px 26px; }

	.jsc-ep .gallery-section { padding: 80px 32px; }
	.jsc-ep .gallery-section .inner { max-width: 1200px; margin: 0 auto; }
	.jsc-ep .sect-head h2 { font-size: 56px; }
	.jsc-ep .sect-head p  { font-size: 16px; max-width: 560px; }
	.jsc-ep .gallery-scroll {
		grid-auto-flow: unset; grid-auto-columns: unset;
		grid-template-columns: repeat(4, 1fr);
		gap: 16px; margin: 0; padding: 0; overflow-x: visible;
	}
	.jsc-ep .ph { aspect-ratio: 3 / 4; }

	.jsc-ep .faq-section { padding: 80px 32px; }
	.jsc-ep .faq-section .inner { max-width: 900px; margin: 0 auto; }
	.jsc-ep .faq-q { font-size: 22px; padding: 26px 0; }

	.jsc-ep .cta { padding: 80px 32px; }
	.jsc-ep .cta .inner {
		max-width: 1200px; margin: 0 auto;
		display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px; align-items: center;
	}
	.jsc-ep .cta h2 { font-size: 56px; }
}
