/* Event pages (mu-plugins/civicrm-event-pages.php): the picture header, the fact cards, the registration panel and
   the flyers beside the text. */

/* the page title is in the header */
body.civicrm-event-info .loop-meta-wrap,
body.civicrm-event-info #loop-meta,
body.civicrm-event-register .loop-meta-wrap,
body.civicrm-event-register #loop-meta,
body.jo-ev-page .loop-meta-wrap,
body.jo-ev-page #loop-meta,
body.jo-ev-page .entry-featured-img-wrap { display: none !important; }

.jo-ev { --ink: #1f1b16; --muted: #5b5249; --copper: #94562a; --gold: #c9a45c; --line: #ecdcc4; --soft: #faf6f0; color: var(--ink); }
.jo-ev p { margin: 0; }

/* header */
.jo-ev-hero { position: relative; display: flex; align-items: flex-end; min-height: 330px; margin: 0 0 18px; border-radius: 18px; overflow: hidden; background: linear-gradient(120deg, #2a170c 0%, #5e3519 55%, #94562a 100%); color: #fff; isolation: isolate; box-shadow: 0 2px 6px rgba(31, 27, 22, .12), 0 18px 40px rgba(31, 27, 22, .18); }
.jo-ev-hero-img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; margin: 0; object-fit: cover; }
.jo-ev-hero.has-image::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(20, 12, 6, .05) 0%, rgba(20, 12, 6, .35) 40%, rgba(20, 12, 6, .88) 100%); }
.jo-ev-hero:not(.has-image)::after { content: ""; position: absolute; right: -60px; top: -60px; z-index: -1; width: 260px; height: 260px; border-radius: 50%; background: radial-gradient(circle, rgba(242, 201, 76, .35), rgba(242, 201, 76, 0) 70%); }
.jo-ev-hero-body { width: 100%; padding: 26px 28px 24px; }
.jo-ev-type { display: inline-block; margin: 0 0 10px !important; padding: 4px 12px; border-radius: 999px; background: rgba(242, 201, 76, .95); color: #2a180d; font-size: .7rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
h1.jo-ev-title { margin: 0 0 8px; color: #fff; font-family: Lora, Georgia, serif; font-size: 2.3rem; line-height: 1.15; text-shadow: 0 2px 12px rgba(0, 0, 0, .35); }
.jo-ev-about p.jo-ev-lead { margin: 0 0 14px; font-family: Lora, Georgia, serif; font-size: 1.18rem; line-height: 1.6; color: #2a180d; }
.jo-ev-cta { display: flex; flex-wrap: wrap; gap: 10px; }

/* buttons */
a.jo-ev-btn, button.jo-ev-btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 24px; border: 0; border-radius: 999px; background: #f2c94c; color: #2a180d !important; font: 700 .85rem/1 "Open Sans", sans-serif; letter-spacing: .06em; text-transform: uppercase; text-decoration: none !important; cursor: pointer; box-shadow: 0 6px 18px rgba(242, 201, 76, .35); transition: transform .15s, box-shadow .15s, background-color .15s; }
a.jo-ev-btn:hover, a.jo-ev-btn:focus-visible { transform: translateY(-2px); background: #f6d36a; box-shadow: 0 10px 24px rgba(242, 201, 76, .45); }
a.jo-ev-btn.jo-ev-btn-line { background: transparent; color: #fff !important; border: 2px solid rgba(255, 255, 255, .75); padding: 10px 20px; box-shadow: none; }
a.jo-ev-btn.jo-ev-btn-line:hover { background: rgba(255, 255, 255, .14); }
.jo-ev-foot a.jo-ev-btn { margin-inline-start: auto; background: var(--copper); color: #fff !important; box-shadow: 0 6px 18px rgba(148, 86, 42, .3); }
.jo-ev-foot a.jo-ev-btn:hover { background: #7a4622; }

.jo-ev-status { margin: 0 0 16px !important; padding: 12px 16px; border-radius: 10px; background: #fdf3dc; border: 1px solid #f1d58f; color: #6b4b12; font-weight: 600; }

/* fact cards */
.jo-ev-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin: 0 0 22px; }
.jo-ev-card { display: flex; gap: 12px; align-items: center; padding: 14px 16px; background: #fff; border-radius: 14px; border: 1px solid var(--line); box-shadow: 0 1px 3px rgba(31, 27, 22, .06), 0 8px 22px rgba(31, 27, 22, .07); }
.jo-ev-cal { flex: none; width: 52px; text-align: center; border-radius: 10px; overflow: hidden; box-shadow: 0 2px 6px rgba(31, 27, 22, .15); }
.jo-ev-cal span { display: block; padding: 3px 0; background: var(--copper); color: #fff; font-size: .66rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.jo-ev-cal b { display: block; padding: 4px 0 5px; background: #fff; font-family: Lora, Georgia, serif; font-size: 1.5rem; line-height: 1; color: var(--ink); }
.jo-ev-icon { flex: none; display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; background: #f6ede2; color: var(--copper); }
.jo-ev-icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.jo-ev-card-label { font-size: .66rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #b87333; }
.jo-ev-card-value { margin-top: 2px !important; font-size: .95rem; font-weight: 600; line-height: 1.35; }
.jo-ev-card-link { display: inline-block; margin-top: 3px; font-size: .78rem; font-weight: 600; color: var(--copper) !important; }

/* registration panel */
.jo-ev-register { margin: 0 0 24px; border-radius: 16px; background: #fff; border: 2px solid var(--gold); box-shadow: 0 2px 6px rgba(31, 27, 22, .08), 0 18px 40px rgba(31, 27, 22, .12); overflow: hidden; animation: jo-ev-open .25s ease; scroll-margin-top: 90px; }
.jo-ev-register[hidden] { display: none; }
@keyframes jo-ev-open { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
.jo-ev-register-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 18px; background: var(--soft); border-bottom: 1px solid var(--line); }
.jo-ev-register-head h2 { margin: 0; font-family: Lora, Georgia, serif; font-size: 1.3rem; color: var(--ink); }
.jo-ev-close { width: 34px; height: 34px; border: 0; border-radius: 50%; background: #fff; color: var(--copper); font-size: 1.4rem; line-height: 1; cursor: pointer; box-shadow: 0 1px 3px rgba(31, 27, 22, .15); }
.jo-ev-register-body { padding: 18px 20px 6px; }
.jo-ev-register-body .crm-container { margin: 0; }

/* sections */
.jo-ev-section { margin: 0 0 24px; }
.jo-ev-section > h2 { margin: 0 0 12px; padding-bottom: 8px; border-bottom: 2px solid var(--gold); font-family: Lora, Georgia, serif; font-size: 1.45rem; color: var(--ink); }
.jo-ev-about .description { font-size: 1.02rem; line-height: 1.75; }
.jo-ev-about .description p { margin: 0 0 12px; }
.jo-ev-fees { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; }
.jo-ev-fee { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; border-radius: 12px; background: var(--soft); border: 1px solid var(--line); }
.jo-ev-fee-label { font-size: .9rem; font-weight: 600; line-height: 1.35; }
.jo-ev-fee-amount { font-family: Lora, Georgia, serif; font-size: 1.35rem; color: var(--copper); }
.jo-ev-fee-group { grid-column: 1 / -1; margin-top: 6px !important; font-weight: 700; color: var(--muted); }
.jo-ev-chip { display: inline-block; margin: 0 6px 6px 0; padding: 7px 14px; border-radius: 999px; background: #fff; border: 1.5px solid var(--line); color: var(--copper) !important; font-size: .85rem; font-weight: 600; text-decoration: none !important; }
.jo-ev-chip:hover { border-color: var(--copper); }
.jo-ev-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 6px 0 10px; padding: 16px 18px; border-radius: 14px; background: var(--soft); }
.jo-ev-foot .jo-ev-chip { margin: 0; }
.jo-ev-foot-label { font-size: .7rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #b87333; }

@media (max-width: 640px) {
	.jo-ev-hero { min-height: 260px; border-radius: 14px; }
	.jo-ev-hero-body { padding: 18px 18px 18px; }
	h1.jo-ev-title { font-size: 1.7rem; }
	.jo-ev-about p.jo-ev-lead { font-size: 1.08rem; }
	.jo-ev-cards { grid-template-columns: 1fr 1fr; gap: 8px; }
	.jo-ev-card { padding: 12px; gap: 10px; }
	.jo-ev-foot a.jo-ev-btn { margin-inline-start: 0; width: 100%; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) { .jo-ev-register { animation: none; } a.jo-ev-btn { transition: none; } a.jo-ev-btn:hover { transform: none; } }

/* flyers: smaller, to the right of the text (event-pages.js marks tall and square pictures) */
.jo-ev-about .description::after { content: ""; display: block; clear: both; }
.jo-ev-about .jo-ev-flyer { float: right; width: 240px; max-width: 42%; margin: 4px 0 16px 22px; }
.jo-ev-about img.jo-ev-flyer, .jo-ev-about .jo-ev-flyer img { display: block; width: 100%; height: auto; box-sizing: border-box; border: 6px solid #fff; border-radius: 8px; box-shadow: 0 1px 3px rgba(31, 27, 22, .12), 0 10px 26px rgba(31, 27, 22, .16); }
body.rtl .jo-ev-about .jo-ev-flyer { float: left; margin: 4px 22px 16px 0; }
@media (max-width: 560px) { .jo-ev-about .jo-ev-flyer { float: none; width: 220px; max-width: 70%; margin: 0 auto 16px; } }
/* the title stays white over the picture on every language (the Hebrew site's heading colour was overriding it) */
html body .jo-ev-hero h1.jo-ev-title, html body .jo-ev-hero h1.jo-ev-title * { color: #fff !important; }
