/* Megobar Events page — division sections + event cards */
.mego-events { --ev-green:#0C2E1D; --ev-accent:#E3000F; max-width:1180px; margin:0 auto; padding:8px 0 40px; }
.mego-events--empty { text-align:center; color:#777; padding:40px 0; }

.mego-ev-section { margin:0 0 44px; scroll-margin-top:140px; }
.mego-ev-section__title {
	font-family:'Noto Sans Georgian','Bricolage Grotesque',sans-serif;
	font-size:26px; font-weight:600; color:var(--ev-green);
	margin:0 0 18px; padding-bottom:10px; border-bottom:2px solid var(--ev-green);
}

.mego-ev-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(280px,1fr)); gap:22px; }

.mego-ev-card {
	background:#fff; border:1px solid #e6e9ec; border-radius:14px; overflow:hidden;
	display:flex; flex-direction:column; transition:box-shadow .2s, transform .2s, outline-color .3s;
	scroll-margin-top:150px;
}
.mego-ev-card:hover { box-shadow:0 8px 24px rgba(12,46,29,.12); transform:translateY(-2px); }
.mego-ev-card__media { aspect-ratio:16/9; background:var(--ev-green); overflow:hidden; }
.mego-ev-card__media img { width:100%; height:100%; object-fit:cover; display:block; }
.mego-ev-card__body { padding:16px 18px 18px; display:flex; flex-direction:column; gap:8px; }
.mego-ev-card__title { font-size:19px; font-weight:600; line-height:1.25; margin:0; color:#16241c; }
.mego-ev-card__meta { display:flex; flex-wrap:wrap; gap:6px 14px; font-size:13px; color:#5a6b60; }
.mego-ev-card__desc { font-size:14px; line-height:1.5; color:#445; margin:2px 0 0; }
.mego-ev-card__more { margin-top:4px; }
.mego-ev-card__more > summary {
	cursor:pointer; list-style:none; font-size:13px; font-weight:600; color:var(--ev-green);
	display:inline-flex; align-items:center; gap:6px; padding:6px 0;
}
.mego-ev-card__more > summary::-webkit-details-marker { display:none; }
.mego-ev-card__more > summary::after { content:"▾"; font-size:11px; transition:transform .2s; }
.mego-ev-card__more[open] > summary::after { transform:rotate(180deg); }
.mego-ev-card__content { font-size:14px; line-height:1.6; color:#374; padding-top:8px; }
.mego-ev-card__content img { max-width:100%; height:auto; border-radius:8px; }

/* focused (deep-linked from ticker / radio calendar) */
.mego-ev-card.mego-ev--focused {
	outline:3px solid var(--ev-accent); outline-offset:2px;
	box-shadow:0 10px 30px rgba(227,0,15,.18);
	animation:megoEvPulse 1.4s ease-out 1;
}
@keyframes megoEvPulse { 0%{outline-color:var(--ev-accent);} 60%{outline-color:rgba(227,0,15,.25);} 100%{outline-color:var(--ev-accent);} }

@media (max-width:600px) {
	.mego-ev-grid { grid-template-columns:1fr; gap:16px; }
	.mego-ev-section__title { font-size:22px; }
}

/* registration / contact form */
.mego-ev-hp { position:absolute !important; left:-9999px !important; width:1px; height:1px; opacity:0; }
.mego-ev-form { display:flex; flex-direction:column; gap:8px; padding-top:6px; }
.mego-ev-form input, .mego-ev-form textarea {
	width:100%; padding:9px 11px; border:1px solid #d6dbdf; border-radius:8px;
	font-size:14px; font-family:inherit; box-sizing:border-box; background:#fff; color:#222;
}
.mego-ev-form input:focus, .mego-ev-form textarea:focus { outline:none; border-color:var(--ev-green); }
.mego-ev-form textarea { resize:vertical; min-height:64px; }
.mego-ev-form button {
	align-self:flex-start; background:var(--ev-green); color:#fff; border:0; border-radius:8px;
	padding:9px 22px; font-size:14px; font-weight:600; cursor:pointer; transition:background .2s;
}
.mego-ev-form button:hover { background:#16432c; }
.mego-ev-form button:disabled { opacity:.6; cursor:default; }
.mego-ev-form__status { font-size:13px; min-height:16px; }
.mego-ev-form__status.is-ok { color:#1a7f37; }
.mego-ev-form__status.is-err { color:#c4320a; }
.mego-ev-form__status.is-pending { color:#888; }

/* static contact phone (replaces the old registration form) */
.mego-ev-card__contact { margin:8px 0 0; font-size:15px; }
.mego-ev-card__contact a { display:inline-flex; align-items:center; gap:7px; color:var(--ev-green); font-weight:600; text-decoration:none; }
.mego-ev-card__contact a:hover { color:var(--ev-accent); }
.mego-ev-card__contact svg { flex:0 0 auto; }

/* "Listen to the recording" — plays the matched SoundCloud episode via the footer podcast player (no navigation) */
.mego-ev-listen { display:inline-flex; align-items:center; gap:7px; margin-top:10px; padding:8px 15px; border:0; border-radius:999px;
	background:var(--ev-green); color:#fff; font:inherit; font-size:13.5px; font-weight:600; cursor:pointer; transition:background .15s, transform .05s; }
.mego-ev-card .mego-ev-listen { border:0; }   /* override the global theme `button` border (a pink ring that shows on the greyed pending pill) */
.mego-ev-listen:hover { filter:brightness(1.12); }
.mego-ev-listen:active { transform:translateY(1px); }
.mego-ev-listen svg { flex:0 0 auto; }
.mego-ev-listen.is-playing { background:var(--ev-accent); }   /* playing → accent (red) */
.mego-ev-listen.is-pending { background:#e8eae9; color:#94a09a; cursor:default; }   /* recording not uploaded yet — greyed placeholder (≤7 days after the event) */
.mego-ev-listen.is-pending:hover { filter:none; }
.mego-ev-listen.is-pending:active { transform:none; }

/* ---- header radio calendar ---- */
.mego-cal-btn {
	position:fixed; top:42px; right:14px; z-index:999;
	width:30px; height:30px; border-radius:50%; border:1px solid #2a2a2a;
	background:#000; color:#fff; display:flex; align-items:center; justify-content:center;
	cursor:pointer; padding:0; transition:transform .15s, background .15s;
}
.mego-cal-btn:hover { transform:scale(1.08); background:#1a1a1a; }
/* override theme/Elementor global button styling */
.mego-cal-btn { width:30px!important; height:30px!important; min-width:0!important; border-radius:50%!important; background:#000!important; color:#fff!important; padding:0!important; line-height:0!important; box-shadow:none!important; }
.mego-cal__close { width:auto!important; min-width:0!important; background:none!important; border-radius:0!important; box-shadow:none!important; padding:0 4px!important; }
.mego-cal {
	position:fixed; top:80px; right:10px; z-index:1000;
	width:min(900px,96vw); max-height:74vh; overflow:auto;
	background:#fff; border:1px solid #e3e6ea; border-radius:12px;
	box-shadow:0 16px 40px rgba(12,46,29,.22);
}
.mego-cal[hidden] { display:none; }
.mego-cal__head {
	display:flex; align-items:center; justify-content:space-between;
	padding:11px 16px; background:#0C2E1D; color:#fff; font-weight:600; font-size:14px;
	position:sticky; top:0; z-index:2;
}
.mego-cal__close { background:none; border:0; color:#fff; font-size:22px; line-height:1; cursor:pointer; padding:0 4px; }
.mego-cal__grid { display:grid; grid-template-columns:repeat(7,1fr); gap:8px; align-items:start; padding:12px; background:#fff; }
.mego-cal__day { background:#fafbfa; border:1px solid #edf0ee; border-radius:9px; padding:8px 8px 9px; min-height:0; }
.mego-cal__day.is-today { background:#f1f9f4; border-color:#cfe6d8; }
.mego-cal__dname { font-size:12px; font-weight:700; color:#0C2E1D; margin-bottom:8px; text-align:center; border-bottom:1px solid #e8ece9; padding-bottom:6px; }
.mego-cal__dname span { color:#9aa; font-weight:600; }
.mego-cal__empty { color:#cbd2d6; text-align:center; font-size:18px; }
.mego-cal__ev { display:block; text-decoration:none; background:#0C2E1D; color:#fff; border-radius:7px; padding:6px 9px; margin-bottom:6px; transition:background .15s; }
.mego-cal__ev:hover { background:#16432c; }
.mego-cal__time { display:block; font-size:11px; opacity:.85; }
.mego-cal__title { display:block; font-size:12px; line-height:1.3; font-weight:600; }
/* default AzuraCast programming block (base layer) */
.mego-cal__slot { display:block; background:#eef2f0; color:#3a4a40; border-radius:7px; padding:6px 9px; margin-bottom:6px; }
.mego-cal__slot .mego-cal__time { opacity:1; color:#8a9a90; }
.mego-cal__slot .mego-cal__title { font-weight:500; }
/* special radio event override (sits on top of the default programming) — softened, calmer red */
.mego-cal__ev--live { background:#C0473A; }
.mego-cal__ev--live:hover { background:#a83a2f; }
.mego-cal__ev--live .mego-cal__time { font-weight:700; letter-spacing:.2px; opacity:.95; }
@media (max-width:760px) {
	.mego-cal { left:8px; right:8px; width:auto; top:74px; max-height:78vh; }
	.mego-cal__grid { grid-template-columns:1fr; gap:0; padding:8px 10px 12px; background:#fff; }
	.mego-cal__day { background:transparent; border:0; padding:0; margin:0; }
	.mego-cal__day.is-today { background:transparent; }
	.mego-cal__dname { background:#0C2E1D; color:#fff; padding:9px 14px; border:0; border-radius:7px; text-align:left; margin:10px 0 8px; font-size:13px; }
	.mego-cal__dname span { color:#a9c3b4; }
	.mego-cal__day.is-today .mego-cal__dname { background:#16432c; box-shadow:0 0 0 2px #cfe6d8; }
	.mego-cal__slot, .mego-cal__ev { margin:0 0 6px; }
	.mego-cal__empty { display:none; }
}

/* past events archive */
.mego-events-past { margin-top:34px; border-top:2px dashed #d6dbdf; padding-top:18px; }
.mego-events-past > summary { cursor:pointer; list-style:none; font-size:18px; font-weight:600; color:#5a6b60; display:inline-flex; align-items:center; gap:8px; }
.mego-events-past > summary::-webkit-details-marker { display:none; }
.mego-events-past > summary::after { content:"▾"; font-size:13px; transition:transform .2s; }
.mego-events-past[open] > summary::after { transform:rotate(180deg); }
.mego-events-past__body { margin-top:18px; }
.mego-ev-past__div { font-size:16px; color:var(--ev-green); margin:18px 0 10px; }
.mego-ev-card.is-past { opacity:.7; }
.mego-ev-card.is-past:hover { opacity:1; }

/* spaces-style cards: whole card clickable (cursor hint; JS handles the navigation) */
.e-con:has(> .e-con-inner > .elementor-widget-icon-box:only-child),
.e-con:has(> .e-con-inner > .elementor-widget-image-box:only-child),
.e-con:has(> .elementor-widget-icon-box:only-child),
.e-con:has(> .elementor-widget-image-box:only-child) { cursor:pointer; }

/* keep the Polylang language switcher last in the nav (desktop + mobile menus are flex) */
.elementskit-navbar-nav > li.lang-item { order:99; }

/* mobile: the fixed calendar button (top-right) overlaps the radio track title — reserve room on the right
   so the auto-scrolling track name stays clear of it and reveals fully (the marquee re-measures the new width) */
@media (max-width:768px) {
	#current-track { margin-right:50px; }
}

/* radio track-title marquee — smooth GPU transform, seamless continuous loop (no back-slide / fade / jump) */
#current-track.mego-mq-on { overflow:hidden; }
#current-track .mego-mq { display:inline-flex; flex-wrap:nowrap; white-space:nowrap; will-change:transform;
	animation-name:mego-mq-roll; animation-timing-function:linear; animation-iteration-count:infinite; }
#current-track .mego-mq-copy { flex:0 0 auto; white-space:nowrap; padding-right:2.2em; }
@keyframes mego-mq-roll { from { transform:translateX(0); } to { transform:translateX(-50%); } }

/* with 7 top-level items the header nav (esp. the wider Georgian labels) overflows its 70% menu column,
   wrapping the language flag to a 2nd row. Widen the menu column into the empty right-hand space (the
   container IDs are identical in the EN #2883 + GE #2898 header templates), and keep the tighter per-item
   padding, so the menu stays on one row in both languages. */
@media (min-width:1025px) {
	.ekit-template-content-header .elementskit-navbar-nav > li > a { padding-left:9px !important; padding-right:9px !important; }
	.ekit-template-content-header .elementor-element-60914225 { width:80% !important; }   /* menu column: 70% → 80% */
	.ekit-template-content-header .elementor-element-22ed13d3 { width:5% !important; }     /* empty right column: 15% → 5% */
}

/* mobile burger: submenu accordion (force-open; ElementsKit's own toggle doesn't fire here) */
.elementskit-menu-container li.menu-item-has-children.mego-sub-open > .elementskit-submenu-panel {
	display:block !important; max-height:1500px !important; visibility:visible !important; opacity:1 !important;
}
.elementskit-menu-container .ekit-menu-dropdown-toggle .elementskit-submenu-indicator { transition:transform .25s; }
.elementskit-menu-container li.menu-item-has-children.mego-sub-open > a .elementskit-submenu-indicator { transform:rotate(180deg); }

/* mobile burger close button — was a tiny cream "X" (invisible in Firefox); make it big, white, tappable */
.ekit-template-content-header .elementskit-menu-close {
	color:#fff !important; opacity:1 !important;
	font-size:0 !important;                 /* hide the small literal "X" glyph */
	width:42px !important; height:42px !important;
	display:flex !important; align-items:center !important; justify-content:center !important;
	z-index:11; cursor:pointer;
}
.ekit-template-content-header .elementskit-menu-close::after {
	content:"\00d7"; font-size:30px; line-height:1; color:#fff;   /* clean × */
}
