/* Events pages (resources/views/pages/events) and the [[Website-Events-Placeholder]] block (home page).
   Logical properties (inline-start/end) so the same rules serve English and Arabic. */
.evt-site,
.evt-block {
    --evt-main: var(--main-color, #061f5c);
    --evt-accent: #0b3a8f;
    --evt-ink: #14213d;
    --evt-muted: #5d6779;
    --evt-line: #e1e5ee;
    --evt-soft: #f4f6fa;
    --evt-radius: 12px;
    color: var(--evt-ink);
}

/* Title band */
.evt-hero { position: relative; background: linear-gradient(135deg, var(--evt-main), var(--evt-accent)); color: #fff; padding: 56px 0 48px; overflow: hidden; }
.evt-hero.has-cover { background: #0b1736; }
.evt-hero.has-cover::before {
    content: ""; position: absolute; inset: 0; background-image: var(--evt-cover); background-size: cover; background-position: center;
    opacity: 0.35; filter: blur(2px); transform: scale(1.04);
}
.evt-hero.has-cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(6, 31, 92, 0.35), rgba(6, 31, 92, 0.85)); }
.evt-hero > .container { position: relative; z-index: 1; }
.evt-hero h1 { color: #fff; font-size: clamp(28px, 4vw, 42px); font-weight: 700; margin: 8px 0 12px; line-height: 1.2; }
.evt-hero__lead { color: rgba(255, 255, 255, 0.86); font-size: 17px; max-width: 720px; margin: 0; }
.evt-crumbs { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0; padding: 0; font-size: 14px; color: rgba(255, 255, 255, 0.75); }
.evt-crumbs li + li::before { content: "/"; margin-inline-end: 6px; opacity: 0.6; }
.evt-crumbs a { color: rgba(255, 255, 255, 0.85); }
.evt-crumbs a:hover { color: #fff; }
.evt-back { color: rgba(255, 255, 255, 0.85); font-size: 14px; display: inline-flex; gap: 6px; align-items: center; }
.evt-back:hover { color: #fff; }
.evt-facts { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 22px; padding: 0; margin: 0; color: rgba(255, 255, 255, 0.9); font-size: 15px; }
.evt-facts i { margin-inline-end: 4px; }

/* Sections and lists */
.evt-section { padding: 56px 0; }
.evt-section--soft { background: var(--evt-soft); }
.evt-block { padding: 72px 0; background: var(--evt-soft); }
.evt-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 24px; }
.evt-head h2 { font-size: clamp(24px, 3vw, 32px); font-weight: 700; color: var(--evt-ink); margin: 0; }
.evt-head p { margin: 6px 0 0; color: var(--evt-muted); }
.evt-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; }
.evt-link { color: var(--evt-main); font-weight: 600; display: inline-flex; align-items: center; gap: 6px; }
.evt-link:hover { color: var(--evt-accent); text-decoration: underline; }
.evt-empty { text-align: center; padding: 48px 16px; color: var(--evt-muted); }
.evt-empty i { font-size: 46px; color: var(--evt-line); }
.evt-empty--small { padding: 16px; }
.evt-pager { margin-top: 28px; display: flex; justify-content: center; }

/* Card */
.evt-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--evt-line); border-radius: var(--evt-radius); overflow: hidden; transition: box-shadow 0.2s, transform 0.2s; }
.evt-card:hover { box-shadow: 0 12px 30px rgba(20, 33, 61, 0.1); transform: translateY(-3px); }
.evt-card__media { position: relative; display: block; aspect-ratio: 16 / 10; background: var(--evt-soft); overflow: hidden; }
.evt-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.evt-card:hover .evt-card__media img { transform: scale(1.04); }
.evt-card__blank { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; color: var(--evt-line); font-size: 54px; background: linear-gradient(135deg, #eef2f9, #dfe6f3); }
.evt-tag { position: absolute; top: 12px; inset-inline-start: 12px; background: #12805c; color: #fff; border-radius: 999px; padding: 2px 12px; font-size: 13px; font-weight: 600; }
.evt-tag--inline { position: static; margin-inline-start: 8px; font-size: 12px; }
.evt-card__body { padding: 18px 20px 8px; flex: 1; }
.evt-date, .evt-place { margin: 0 0 6px; color: var(--evt-muted); font-size: 14px; }
.evt-date { color: var(--evt-main); font-weight: 600; }
.evt-date i, .evt-place i { margin-inline-end: 4px; }
.evt-card__title { font-size: 19px; line-height: 1.35; margin: 4px 0 8px; }
.evt-card__title a { color: var(--evt-ink); }
.evt-card__title a:hover { color: var(--evt-main); }
.evt-card__summary { color: var(--evt-muted); font-size: 15px; margin: 8px 0 0; }
.evt-card__foot { padding: 12px 20px 18px; }

/* One event */
.evt-article { max-width: 920px; }
.evt-cover { margin: 0 0 28px; }
.evt-cover img { width: 100%; height: auto; max-height: 560px; object-fit: cover; border-radius: var(--evt-radius); display: block; }
.evt-zoom { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; border-radius: var(--evt-radius); }
.evt-zoom:focus-visible { outline: 3px solid var(--evt-accent); outline-offset: 3px; }
.evt-rich { font-size: 17px; line-height: 1.8; color: var(--evt-ink); }
.evt-rich img { max-width: 100%; height: auto; }
.evt-rich > :first-child { margin-top: 0; }
.evt-rich h2, .evt-rich h3, .evt-rich h4 { color: var(--evt-ink); font-weight: 700; line-height: 1.35; margin: 1.4em 0 0.5em; }
.evt-rich h2 { font-size: 26px; } .evt-rich h3 { font-size: 22px; } .evt-rich h4 { font-size: 19px; }
.evt-rich p { margin: 0 0 1em; }
/* The site's base styles take the markers off lists: the description's lists keep theirs. */
.evt-rich ul, .evt-rich ol { margin: 0 0 1em; padding-inline-start: 1.5em; }
.evt-rich ul { list-style: disc; } .evt-rich ol { list-style: decimal; }
.evt-rich li { display: list-item; margin: 0.25em 0; }
.evt-rich a { color: var(--evt-accent); text-decoration: underline; }
.evt-rich blockquote { margin: 1em 0; padding: 0.4em 1em; border-inline-start: 4px solid var(--evt-line); color: var(--evt-muted, #5b6478); }
.evt-rich table { width: 100%; border-collapse: collapse; margin: 16px 0; }
.evt-rich td, .evt-rich th { border: 1px solid var(--evt-line); padding: 8px 10px; }
.evt-subtitle { font-size: 24px; font-weight: 700; margin: 36px 0 16px; color: var(--evt-ink); }
.evt-video { position: relative; aspect-ratio: 16 / 9; border-radius: var(--evt-radius); overflow: hidden; background: #000; }
.evt-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.evt-gallery { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; padding: 0; margin: 0; }
.evt-gallery .evt-zoom { aspect-ratio: 4 / 3; overflow: hidden; }
.evt-gallery img { width: 100%; height: 100%; object-fit: cover; border-radius: 10px; transition: transform 0.3s; }
.evt-gallery .evt-zoom:hover img { transform: scale(1.05); }

/* Photo viewer */
.evt-viewer { position: fixed; inset: 0; z-index: 10000; display: flex; align-items: center; justify-content: center; background: rgba(5, 12, 30, 0.92); padding: 56px 64px; }
.evt-viewer[hidden] { display: none; }
.evt-viewer figure { margin: 0; text-align: center; }
.evt-viewer img { max-width: 100%; max-height: calc(100vh - 140px); border-radius: 8px; box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5); }
.evt-viewer figcaption { color: rgba(255, 255, 255, 0.8); margin-top: 12px; font-size: 14px; }
.evt-viewer button { position: absolute; border: 0; background: rgba(255, 255, 255, 0.12); color: #fff; width: 48px; height: 48px; border-radius: 50%; font-size: 22px; cursor: pointer; }
.evt-viewer button:hover, .evt-viewer button:focus-visible { background: rgba(255, 255, 255, 0.25); outline: none; }
.evt-viewer__close { top: 16px; inset-inline-end: 16px; }
.evt-viewer__nav--prev { inset-inline-start: 12px; top: 50%; transform: translateY(-50%); }
.evt-viewer__nav--next { inset-inline-end: 12px; top: 50%; transform: translateY(-50%); }
body.evt-viewing { overflow: hidden; }

/* The list under the Website Control page content is a second reveal block: no extra gap above it. */
.site-wrapper-reveal:has(+ .evt-reveal) { margin-bottom: 0 !important; }

@media (max-width: 575px) {
    .evt-section { padding: 40px 0; }
    .evt-block { padding: 48px 0; }
    .evt-hero { padding: 40px 0 36px; }
    .evt-viewer { padding: 56px 12px; }
    .evt-viewer__nav { top: auto !important; bottom: 16px; transform: none !important; }
}
