/* Wigdan Events — website display & brand styles (1.5.0).
   Brand: Tajawal + Playpen Sans Arabic · blue #1E2491 · deep #10145E · saffron #FFA81E · coral #EF5B3B · cream #FBF5EA.
   Utility classes (wg-*) can be added to any Divi module via Advanced → CSS Class. */

:root {
	--wg-blue: #1E2491;
	--wg-deep: #10145E;
	--wg-saffron: #FFA81E;
	--wg-coral: #EF5B3B;
	--wg-cream: #FBF5EA;
	--wg-green: #1F8A4C;
	--wg-ink: #10145E;
	--wg-font: 'Tajawal', sans-serif;
	--wg-hand: 'Playpen Sans Arabic', cursive;
}

/* ---------- Utilities ---------- */
.wg-hand { font-family: var(--wg-hand); font-weight: 700; font-style: normal; }
.wg-tag { display: inline-block; background: var(--wg-saffron); color: var(--wg-deep); font-weight: 800; font-size: 13px; padding: 4px 12px; transform: rotate(-2deg); line-height: 1.5; }
.wg-chip { display: inline-block; background: #fff; color: var(--wg-blue); font-weight: 800; padding: 9px 16px; transform: rotate(-1.5deg); }
.wg-chip:nth-child(2n) { background: var(--wg-saffron); color: var(--wg-deep); transform: rotate(1.5deg); }
.wg-chip:nth-child(3n) { background: var(--wg-coral); color: var(--wg-deep); transform: rotate(-.8deg); }
.wg-btn, .wg-btn:visited { display: inline-flex; align-items: center; gap: 10px; background: var(--wg-saffron); color: var(--wg-deep); font-family: var(--wg-font); font-weight: 800; text-decoration: none; padding: 12px 24px; border-radius: 40px 8px 36px 10px; transition: transform .3s cubic-bezier(.3,1.8,.5,1); }
.wg-btn:hover { transform: rotate(-3deg) scale(1.06); color: var(--wg-deep); }
.wg-card { position: relative; transition: transform .4s cubic-bezier(.3,1.6,.5,1), box-shadow .4s; transform: rotate(var(--r, 0deg)); }
.wg-card:hover { transform: rotate(calc(var(--r, 0deg) * -1.4)) translateY(-8px) scale(1.02); box-shadow: 0 24px 40px rgba(16,20,94,.22); }
.wg-tape { position: absolute; top: -13px; left: 50%; width: 92px; height: 26px; margin-left: -46px; background: rgba(255,168,30,.82); transform: rotate(-4deg); z-index: 2; pointer-events: none; }
.wg-tape-coral { background: rgba(239,91,59,.85); }
.wg-tape-blue { background: rgba(30,36,145,.8); }
.wg-tape-green { background: rgba(31,138,76,.85); }
.wg-mark { background: linear-gradient(transparent 58%, var(--wg-saffron) 58% 90%, transparent 90%) no-repeat right / 100% 100%; }

@keyframes wg-rise { from { opacity: 0; transform: translateY(50px); } to { opacity: 1; transform: none; } }
@keyframes wg-mk { from { background-size: 0% 100%; } to { background-size: 100% 100%; } }
@keyframes wg-wob { 0%,100% { transform: rotate(-6deg); } 50% { transform: rotate(6deg) scale(1.05); } }
@keyframes wg-tick { to { transform: translateX(50%); } }
.wg-wobble { animation: wg-wob 3.5s ease-in-out infinite; }
@supports (animation-timeline: view()) {
	.wg-rise { animation: wg-rise 1s cubic-bezier(.2,.8,.3,1) both; animation-timeline: view(); animation-range: entry 0% cover 25%; }
	.wg-mark { animation: wg-mk 1s ease-out both; animation-timeline: view(); animation-range: entry 30% cover 45%; }
}
.wg-card.wg-rise:hover { animation: none; }
@media (prefers-reduced-motion: reduce) {
	.wg-rise, .wg-mark, .wg-wobble, .wgx-ticker-track { animation: none !important; }
	.wg-card, .wg-btn { transition: none; }
}

/* ---------- Registration form (existing plugin) in brand colours ---------- */
.wge {
	--wge-accent: var(--wg-blue);
	--wge-accent-ink: #fff;
	--wge-ink: var(--wg-deep);
	--wge-line: rgba(16,20,94,.22);
	--wge-soft: var(--wg-cream);
	--wge-radius: 6px 16px 8px 14px;
	font-family: var(--wg-font);
}
.wge .wge-session { border-style: dashed; border-width: 2px; }
.wge .wge-session:has(input:checked) { background: var(--wg-saffron); border-style: solid; }
.wge .wge-submit { background: var(--wg-saffron) !important; color: var(--wg-deep) !important; font-weight: 800; border-radius: 40px 8px 36px 10px !important; transition: transform .3s cubic-bezier(.3,1.8,.5,1); }
.wge .wge-submit:hover { transform: rotate(-3deg) scale(1.05); }

/* ---------- Posters ---------- */
.wgx-posters { display: grid; grid-template-columns: repeat(var(--wgx-cols, 4), minmax(0, 1fr)); gap: 28px; align-items: start; direction: rtl; }
.wgx-poster { display: block; text-decoration: none; color: var(--wg-deep); background: #fff; padding: 10px 10px 14px; box-shadow: 0 12px 28px rgba(16,20,94,.12); }
.wgx-poster:nth-child(4n+1) { --r: -1.5deg; }
.wgx-poster:nth-child(4n+2) { --r: 2deg; margin-top: 50px; }
.wgx-poster:nth-child(4n+3) { --r: -2.5deg; margin-top: 14px; }
.wgx-poster:nth-child(4n+4) { --r: 1.5deg; margin-top: 70px; }
.wgx-poster:nth-child(2n) .wg-tape { background: rgba(239,91,59,.85); }
.wgx-poster-img { display: block; width: 100%; height: auto; }
.wgx-poster-ph { display: flex; flex-direction: column; gap: 10px; aspect-ratio: 1 / 1; background: var(--wg-blue); color: #fff; padding: 20px; box-sizing: border-box; }
.wgx-poster-ph-title { font-family: var(--wg-hand); font-weight: 700; font-size: 38px; line-height: 1.3; color: var(--wg-saffron); margin-top: auto; }
.wgx-poster-ph-note { font-size: 12px; opacity: .7; }
.wgx-poster-cap { display: flex; flex-direction: column; gap: 2px; padding: 12px 6px 0; }
.wgx-poster-cap strong { font-size: 19px; font-weight: 900; }
.wgx-poster-cap span { font-size: 14px; font-weight: 700; color: var(--wg-coral); }

/* ---------- Agenda / tickets ---------- */
.wgx-agenda { display: flex; flex-direction: column; gap: 22px; direction: rtl; }
.wgx-month { font-family: var(--wg-font); font-weight: 900; font-size: 44px; color: var(--wg-blue); margin: 26px 0 0; }
.wgx-month:first-child { margin-top: 0; }
.wgx-ticket { display: grid; grid-template-columns: 130px minmax(0, 1fr) auto; background: #fff; color: var(--wg-deep); text-decoration: none; box-shadow: 0 10px 26px rgba(16,20,94,.1); }
.wgx-ticket:nth-child(odd) { --r: -.5deg; }
.wgx-ticket:nth-child(even) { --r: .6deg; }
.wgx-date { background: var(--wg-blue); color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 16px 8px; border-left: 3px dashed var(--wg-cream); }
.wgx-date b { font-size: 46px; font-weight: 900; line-height: 1; }
.wgx-date i { color: var(--wg-saffron); font-size: 20px; }
.wgx-ticket-body { display: flex; flex-direction: column; gap: 6px; padding: 18px 24px; }
.wgx-ticket-body .wg-tag { align-self: flex-start; }
.wgx-ticket-body strong { font-size: 24px; font-weight: 900; line-height: 1.35; }
.wgx-ticket-body span:last-child { font-weight: 500; }
.wgx-ticket-side { display: flex; flex-direction: column; gap: 10px; align-items: flex-end; justify-content: center; padding: 18px 24px; font-weight: 800; }
.wgx-badge { position: absolute; top: -16px; left: 28px; background: var(--wg-coral); color: #fff; font-weight: 900; padding: 5px 14px; transform: rotate(4deg); z-index: 3; }
.wgx-empty { border: 3px dashed var(--wg-blue); padding: 34px; text-align: center; font-size: 30px; color: var(--wg-blue); }

/* ---------- Next card ---------- */
.wgx-next { display: flex; flex-direction: column; gap: 6px; background: var(--wg-cream); color: var(--wg-deep); text-decoration: none; padding: 30px; --r: -3deg; box-shadow: 0 18px 36px rgba(0,0,0,.28); }
.wgx-next .wg-hand { color: var(--wg-coral); font-size: 26px; }
.wgx-next strong { font-size: 30px; font-weight: 900; line-height: 1.3; }
.wgx-next > span:not(.wg-hand):not(.wg-tape):not(.wg-btn) { font-weight: 700; font-size: 17px; }
.wgx-next .wg-btn { align-self: flex-start; margin-top: 14px; }

/* ---------- Ticker ---------- */
.wgx-ticker { background: var(--wg-saffron); color: var(--wg-deep); overflow: hidden; white-space: nowrap; transform: rotate(-1.5deg); margin: -6px -20px 0; box-shadow: 0 6px 0 var(--wg-deep); position: relative; z-index: 3; direction: rtl; }
.wgx-ticker-track { display: flex; gap: 36px; width: max-content; padding: 14px 0; font-weight: 800; font-size: 17px; animation: wg-tick 32s linear infinite; align-items: center; }
.wgx-ticker:hover .wgx-ticker-track { animation-play-state: paused; }
.wgx-ticker a { color: inherit; text-decoration: none; }
.wgx-ticker .wg-hand { font-size: 22px; }
.wgx-dup { display: contents; }

/* ---------- Sessions ---------- */
.wgx-sessions { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 26px; align-items: start; direction: rtl; }
.wgx-session { background: #fff; color: var(--wg-deep); padding: 30px 24px; display: flex; flex-direction: column; gap: 6px; }
.wgx-session:nth-child(4n+1) { --r: -2deg; }
.wgx-session:nth-child(4n+2) { --r: 1.5deg; margin-top: 36px; }
.wgx-session:nth-child(4n+3) { --r: -1deg; margin-top: 10px; }
.wgx-session:nth-child(4n+4) { --r: 2.5deg; margin-top: 46px; }
.wgx-num { font-size: 48px; color: var(--wg-coral); line-height: 1.1; }
.wgx-session strong { font-size: 26px; font-weight: 900; color: var(--wg-blue); line-height: 1.35; }
.wgx-session span:last-child { font-weight: 700; }
.wgx-session.is-past { opacity: .62; }
.wgx-session.is-next { box-shadow: 0 16px 34px rgba(16,20,94,.2); }
.wgx-stamp { position: absolute; top: 28px; left: 22px; border: 4px solid var(--wg-coral); color: var(--wg-coral); font-weight: 900; font-size: 22px; padding: 2px 12px; transform: rotate(-12deg); border-radius: 6px; }
.wgx-session .wgx-badge { position: absolute; }

/* ---------- Closed / interest ---------- */
.wgx-closed { background: #fff; padding: 30px; text-align: center; font-size: 28px; color: var(--wg-blue); line-height: 1.6; margin-bottom: 24px; --r: -1deg; }

/* ---------- Videos ---------- */
.wgx-videos { display: flex; flex-direction: column; gap: 26px; direction: rtl; }
.wgx-video { position: relative; display: block; overflow: hidden; background: var(--wg-deep); aspect-ratio: 16 / 9; text-decoration: none; color: #fff; }
.wgx-video img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s; }
.wgx-video:hover img { transform: scale(1.04); }
.wgx-play { position: absolute; top: 50%; left: 50%; width: 68px; height: 48px; margin: -24px 0 0 -34px; transition: transform .35s cubic-bezier(.3,1.8,.5,1); }
.wgx-video.is-big .wgx-play { transform: scale(1.5); }
.wgx-video:hover .wgx-play { transform: scale(1.25) rotate(-6deg); }
.wgx-video.is-big:hover .wgx-play { transform: scale(1.7) rotate(-6deg); }
.wgx-video-title { position: absolute; bottom: 0; right: 0; left: 0; padding: 14px 18px; background: linear-gradient(transparent, rgba(16,20,94,.92)); font-weight: 800; font-size: 16px; }
.wgx-video.is-big .wgx-video-title { font-size: 24px; padding: 22px 26px; }
.wgx-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.wgx-video-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 22px; }
.wgx-group { font-size: 28px; color: var(--wg-saffron); margin: 8px 0 0; }
.wgx-videos-empty { border: 3px dashed rgba(255,255,255,.5); padding: 50px 30px; display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center; font-size: 30px; color: var(--wg-saffron); }

/* ---------- Rounds ---------- */
.wgx-rounds { display: flex; flex-direction: column; gap: 16px; direction: rtl; }
.wgx-round { display: grid; grid-template-columns: 1fr auto auto; gap: 20px; align-items: center; background: #fff; border-right: 8px solid var(--wg-coral); padding: 20px 26px; color: var(--wg-deep); text-decoration: none; font-weight: 700; }
.wgx-round .wg-hand { font-size: 24px; color: var(--wg-coral); }
.wgx-round b { color: var(--wg-blue); }
.wgx-round.is-past { border-right-color: #9AA0C8; }
.wgx-round.is-past .wg-hand { color: #6B70A0; }

/* ---------- Initiative ---------- */
.wgx-initiative { background: #fff; padding: 34px 38px; display: grid; grid-template-columns: 220px 1fr auto; gap: 26px; align-items: center; --r: -.6deg; box-shadow: 0 14px 30px rgba(16,20,94,.1); direction: rtl; }
.wgx-initiative small { display: block; font-weight: 700; color: #4A4E7A; }
.wgx-initiative .wg-hand { font-size: 50px; color: var(--wg-green); }
.wgx-initiative p { margin: 0; line-height: 1.95; font-weight: 500; }
.wgx-initiative nav { display: flex; flex-direction: column; gap: 8px; font-weight: 800; }
.wgx-chips { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Mobile ---------- */
@media (max-width: 980px) {
	.wgx-posters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.wgx-poster:nth-child(n) { margin-top: 0; }
	.wgx-poster:nth-child(2n) { margin-top: 30px; }
	.wgx-initiative { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
	.wgx-ticket { grid-template-columns: 90px minmax(0, 1fr); }
	.wgx-ticket-side { grid-column: 1 / -1; flex-direction: row; justify-content: space-between; padding-top: 0; }
	.wgx-date b { font-size: 34px; }
	.wgx-month { font-size: 32px; }
	.wgx-session:nth-child(n) { margin-top: 0; }
}
