/* =====================================================================
   Event page extras – QBA palette (modern, quiet, business)
     Navy   #002D6A  headings, links, primary actions
     Blue   #3A6892  secondary text, icons
     Gold   #C59B45  small accents only (labels, quote mark, hover lines) – from the logo's sun arc
     Ink    #1F2A37  body text      Muted #6B7785  dates, labels
     Line   #E3E8EF  borders        Soft  #F5F7FA  quiet backgrounds
   Works left-to-right (English) and right-to-left (Arabic).
   ===================================================================== */
:root {
    --qx-navy: #002D6A; --qx-blue: #3A6892; --qx-gold: #C59B45; --qx-gold-soft: #F6EFDF;
    --qx-ink: #1F2A37; --qx-muted: #6B7785; --qx-line: #E3E8EF; --qx-soft: #F5F7FA;
}

/* ---------- One line under the title: date · place · type · members ---------- */
.qx-meta { list-style: none; margin: 4px 0 14px; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 22px;
    color: var(--qx-muted); font-size: 14px; line-height: 1.6; }
.qx-meta li { display: inline-flex; align-items: center; gap: 7px; }
.qx-meta i { color: var(--qx-gold); font-size: 15px; }

/* ---------- Share: quiet outline icons, navy on hover ---------- */
.qx-share { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0 0 22px; }
.qx-share-l { color: var(--qx-muted); font-size: 12px; font-weight: 600; letter-spacing: .8px; text-transform: uppercase; margin-inline-end: 6px; }
.qx-share a, .qx-share button { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--qx-line); background: #fff;
    display: inline-flex; align-items: center; justify-content: center; color: var(--qx-navy); font-size: 15px; text-decoration: none;
    cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.qx-share a:hover, .qx-share a:focus, .qx-share button:hover, .qx-share button:focus { background: var(--qx-navy); border-color: var(--qx-navy); color: #fff; text-decoration: none; outline: none; }
.qx-share .qx-copied { font-size: 12px; color: var(--qx-blue); margin-inline-start: 6px; }
html[dir="rtl"] .qx-share-l { letter-spacing: 0; text-transform: none; }

/* ---------- Quotes inside the article ---------- */
.qba-quote { position: relative; margin: 26px 0 !important; padding: 18px 24px 18px 58px !important; background: var(--qx-soft);
    border-inline-start: 3px solid var(--qx-gold); border-radius: 0 8px 8px 0; color: var(--qx-ink); font-size: 1.06em; line-height: 1.8; font-style: italic; }
.qba-quote::before { content: "\201C"; position: absolute; left: 16px; top: 6px; font: 400 52px/1 Georgia, "Times New Roman", serif; color: var(--qx-gold); }
html[dir="rtl"] .qba-quote { padding: 18px 58px 18px 24px !important; border-radius: 8px 0 0 8px; font-style: normal; }
html[dir="rtl"] .qba-quote::before { left: auto; right: 16px; content: "\201D"; }

/* ---------- QBA members named in the text ---------- */
a.qba-mlink { color: var(--qx-navy); font-weight: 600; text-decoration: none; background-image: linear-gradient(var(--qx-gold), var(--qx-gold));
    background-size: 100% 1px; background-position: 0 100%; background-repeat: no-repeat; transition: color .2s; }
a.qba-mlink:hover { color: var(--qx-blue); text-decoration: none; }

/* ---------- Country tags (after the article) ---------- */
.qx-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 26px 0 8px; padding-top: 18px; border-top: 1px solid var(--qx-line); }
.qx-tags-l { color: var(--qx-muted); font-size: 12px; font-weight: 600; letter-spacing: .8px; text-transform: uppercase; margin-inline-end: 6px; }
.qx-tags-l i { color: var(--qx-gold); margin-inline-end: 4px; }
html[dir="rtl"] .qx-tags-l { letter-spacing: 0; text-transform: none; }
.qx-tags a { display: inline-block; padding: 5px 14px; border: 1px solid var(--qx-line); border-radius: 999px; background: #fff;
    color: var(--qx-navy); font-size: 13px; text-decoration: none; transition: border-color .2s, background .2s; }
.qx-tags a:hover { border-color: var(--qx-gold); background: var(--qx-gold-soft); text-decoration: none; }

/* ---------- Previous / next ---------- */
.qx-pn { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin: 40px 0 8px; padding-top: 24px; border-top: 1px solid var(--qx-line); }
.qx-pn > a { display: flex; align-items: center; gap: 14px; padding: 10px; border-radius: 10px; text-decoration: none; color: inherit; min-width: 0;
    transition: background .2s; }
.qx-pn > a:hover { background: var(--qx-soft); text-decoration: none; }
.qx-pn .qx-next { flex-direction: row-reverse; text-align: end; }
.qx-pic { flex: 0 0 88px; width: 88px; height: 62px; border-radius: 6px; overflow: hidden; background: var(--qx-soft); }
.qx-pic img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.qx-txt { display: flex; flex-direction: column; min-width: 0; gap: 3px; }
.qx-txt small { color: var(--qx-gold); font-size: 11px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; }
html[dir="rtl"] .qx-txt small { letter-spacing: 0; text-transform: none; font-size: 12px; }
.qx-txt b { color: var(--qx-navy); font-size: 15px; font-weight: 600; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.qx-txt em { color: var(--qx-muted); font-size: 12px; font-style: normal; }

/* ---------- Related events ---------- */
.qx-rel { margin: 34px 0 46px; }
.qx-rel h3, .qba-gallery h3, .qba-media h3 { position: relative; margin: 0 0 20px; padding-bottom: 10px; color: var(--qx-navy); font-size: 20px; font-weight: 600; letter-spacing: 0; text-transform: none; }
.qx-rel h3::after, .qba-gallery h3::after, .qba-media h3::after { content: ""; position: absolute; bottom: 0; inset-inline-start: 0; width: 44px; height: 2px; background: var(--qx-gold); }
.qx-rel-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.qx-rel-card { display: flex; flex-direction: column; border: 1px solid var(--qx-line); border-radius: 10px; overflow: hidden; background: #fff;
    text-decoration: none; color: inherit; transition: box-shadow .25s, transform .25s, border-color .25s; }
.qx-rel-card:hover { box-shadow: 0 10px 26px rgba(0, 45, 106, .10); transform: translateY(-3px); border-color: transparent; text-decoration: none; }
.qx-rel-card .qx-pic { flex: none; width: 100%; height: auto; aspect-ratio: 16 / 10; border-radius: 0; }
.qx-rel-card:hover .qx-pic img { transform: scale(1.04); }
.qx-rel-card .qx-txt { padding: 12px 14px 14px; }
.qx-rel-card .qx-txt b { font-size: 14px; }

@media (max-width: 991px) { .qx-rel-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 575px) {
    .qx-meta { font-size: 13px; }
    .qx-meta { gap: 6px 16px; }
    .qx-pn { grid-template-columns: 1fr; gap: 6px; }
    .qx-pn .qx-next { flex-direction: row; text-align: start; }
    .qx-pic { flex-basis: 76px; width: 76px; height: 54px; }
    .qx-rel-grid { gap: 12px; }
    .qba-quote { padding: 14px 16px 14px 46px !important; }
    html[dir="rtl"] .qba-quote { padding: 14px 46px 14px 16px !important; }
    .qba-quote::before { font-size: 42px; left: 12px; }
    html[dir="rtl"] .qba-quote::before { right: 12px; }
}

/* Gallery and media headings match "Related events" */
.qba-gallery h3 small, .qba-media h3 small { color: var(--qx-muted); font-size: 14px; font-weight: 400; }

/* Quotes made with the editor's Quote button (<blockquote>) look the same as detected quotations. */
.main blockquote { position: relative; margin: 26px 0; padding: 18px 24px 18px 58px; background: var(--qx-soft); border: 0;
    border-inline-start: 3px solid var(--qx-gold); border-radius: 0 8px 8px 0; color: var(--qx-ink); font-size: 1.06em; line-height: 1.8; font-style: italic; }
.main blockquote::before { content: "\201C"; position: absolute; left: 16px; top: 6px; font: 400 52px/1 Georgia, "Times New Roman", serif; color: var(--qx-gold); }
.main blockquote p { margin: 0; font-size: inherit; line-height: inherit; color: inherit; }
.main blockquote p + p { margin-top: 8px; }
html[dir="rtl"] .main blockquote { padding: 18px 58px 18px 24px; border-radius: 8px 0 0 8px; font-style: normal; }
html[dir="rtl"] .main blockquote::before { left: auto; right: 16px; content: "\201D"; }
@media (max-width: 575px) {
    .main blockquote { padding: 14px 16px 14px 46px; }
    html[dir="rtl"] .main blockquote { padding: 14px 46px 14px 16px; }
    .main blockquote::before { font-size: 42px; left: 12px; }
    html[dir="rtl"] .main blockquote::before { right: 12px; }
}

/* Main picture: full width; same proportions as the old slider (600 px on large screens, smaller on phones).
   Entrance like the old slider ("zoomout", Power4 ease, 2 s) and a gentle mouse parallax (qba event page script). */
.qx-hero { position: relative; width: 100%; height: clamp(230px, 40vw, 600px); overflow: hidden; background: #0b2447; }
.qx-hero-p { position: absolute; inset: -14px -18px; transition: transform .6s cubic-bezier(.22,.61,.36,1); will-change: transform; }
.qx-hero img { display: block; width: 100%; height: 100%; object-fit: cover; }
.qx-hero.qx-anim img { opacity: 0; transform: scale(1.22); }
.qx-hero.qx-anim.qx-in img { opacity: 1; transform: scale(1); transition: transform 2s cubic-bezier(.77,0,.175,1), opacity 1.1s ease-out; }

/* Member page: events attended, same cards as "Related events"; 8 shown, the rest behind "Show all". */
.qx-mgrid { margin: 6px 0 10px; text-align: start; }
.qx-mgrid .qx-rel-card { background: #fff; }
.qx-mgrid .qx-rel-card .qx-txt small { color: var(--qx-gold); }
.qx-mgrid .qx-more { display: none; }
.qx-mgrid.qx-open .qx-more { display: flex; }
.qx-mmore-wrap { text-align: center; margin: 18px 0 6px; }
.qx-mmore { padding: 9px 26px; border: 1px solid var(--qx-navy); border-radius: 999px; background: transparent; color: var(--qx-navy);
    font-size: 14px; font-weight: 600; cursor: pointer; transition: background .2s, color .2s; }
.qx-mmore:hover, .qx-mmore:focus { background: var(--qx-navy); color: #fff; outline: none; }
.qx-mmore[hidden] { display: none; }
