/*
 * Qala additions on top of the original theme CSS (loaded right after base.css).
 *
 * Arabic-script faces for Kurdish (Sorani) and Arabic, aliased into the theme's own font families.
 * The unicode-range limits them to Arabic script, so Latin text keeps rendering in Bitter / Inter /
 * Maitree / Roboto exactly as before, while ڕ ڵ ێ ۆ ە ڤ پ چ ژ گ and Arabic render consistently on
 * every OS (the original relied on whatever system font the browser fell back to).
 * Headings (serif families) -> Noto Naskh Arabic, body (sans families) -> Noto Sans Arabic.
 */
@font-face { font-family: "Bitter"; font-style: normal; font-weight: 100 400; font-display: swap; src: url("/fonts/noto-naskh-arabic-arabic-400-normal.woff2") format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+0870-08FF, U+200C-200F, U+FB50-FDFF, U+FE70-FEFF; }
@font-face { font-family: "Bitter"; font-style: normal; font-weight: 500; font-display: swap; src: url("/fonts/noto-naskh-arabic-arabic-500-normal.woff2") format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+0870-08FF, U+200C-200F, U+FB50-FDFF, U+FE70-FEFF; }
@font-face { font-family: "Bitter"; font-style: normal; font-weight: 600; font-display: swap; src: url("/fonts/noto-naskh-arabic-arabic-600-normal.woff2") format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+0870-08FF, U+200C-200F, U+FB50-FDFF, U+FE70-FEFF; }
@font-face { font-family: "Bitter"; font-style: normal; font-weight: 700 900; font-display: swap; src: url("/fonts/noto-naskh-arabic-arabic-700-normal.woff2") format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+0870-08FF, U+200C-200F, U+FB50-FDFF, U+FE70-FEFF; }

@font-face { font-family: "Maitree"; font-style: normal; font-weight: 100 400; font-display: swap; src: url("/fonts/noto-naskh-arabic-arabic-400-normal.woff2") format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+0870-08FF, U+200C-200F, U+FB50-FDFF, U+FE70-FEFF; }
@font-face { font-family: "Maitree"; font-style: normal; font-weight: 500; font-display: swap; src: url("/fonts/noto-naskh-arabic-arabic-500-normal.woff2") format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+0870-08FF, U+200C-200F, U+FB50-FDFF, U+FE70-FEFF; }
@font-face { font-family: "Maitree"; font-style: normal; font-weight: 600; font-display: swap; src: url("/fonts/noto-naskh-arabic-arabic-600-normal.woff2") format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+0870-08FF, U+200C-200F, U+FB50-FDFF, U+FE70-FEFF; }
@font-face { font-family: "Maitree"; font-style: normal; font-weight: 700 900; font-display: swap; src: url("/fonts/noto-naskh-arabic-arabic-700-normal.woff2") format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+0870-08FF, U+200C-200F, U+FB50-FDFF, U+FE70-FEFF; }

@font-face { font-family: "Inter"; font-style: normal; font-weight: 100; font-display: swap; src: url("/fonts/noto-sans-arabic-arabic-100-normal.woff2") format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+0870-08FF, U+200C-200F, U+FB50-FDFF, U+FE70-FEFF; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 200; font-display: swap; src: url("/fonts/noto-sans-arabic-arabic-200-normal.woff2") format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+0870-08FF, U+200C-200F, U+FB50-FDFF, U+FE70-FEFF; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 300; font-display: swap; src: url("/fonts/noto-sans-arabic-arabic-300-normal.woff2") format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+0870-08FF, U+200C-200F, U+FB50-FDFF, U+FE70-FEFF; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/noto-sans-arabic-arabic-400-normal.woff2") format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+0870-08FF, U+200C-200F, U+FB50-FDFF, U+FE70-FEFF; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 500; font-display: swap; src: url("/fonts/noto-sans-arabic-arabic-500-normal.woff2") format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+0870-08FF, U+200C-200F, U+FB50-FDFF, U+FE70-FEFF; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 600; font-display: swap; src: url("/fonts/noto-sans-arabic-arabic-600-normal.woff2") format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+0870-08FF, U+200C-200F, U+FB50-FDFF, U+FE70-FEFF; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 700; font-display: swap; src: url("/fonts/noto-sans-arabic-arabic-700-normal.woff2") format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+0870-08FF, U+200C-200F, U+FB50-FDFF, U+FE70-FEFF; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 800; font-display: swap; src: url("/fonts/noto-sans-arabic-arabic-800-normal.woff2") format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+0870-08FF, U+200C-200F, U+FB50-FDFF, U+FE70-FEFF; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 900; font-display: swap; src: url("/fonts/noto-sans-arabic-arabic-900-normal.woff2") format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+0870-08FF, U+200C-200F, U+FB50-FDFF, U+FE70-FEFF; }

@font-face { font-family: "Roboto"; font-style: normal; font-weight: 100 300; font-display: swap; src: url("/fonts/noto-sans-arabic-arabic-300-normal.woff2") format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+0870-08FF, U+200C-200F, U+FB50-FDFF, U+FE70-FEFF; }
@font-face { font-family: "Roboto"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/noto-sans-arabic-arabic-400-normal.woff2") format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+0870-08FF, U+200C-200F, U+FB50-FDFF, U+FE70-FEFF; }
@font-face { font-family: "Roboto"; font-style: normal; font-weight: 500; font-display: swap; src: url("/fonts/noto-sans-arabic-arabic-500-normal.woff2") format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+0870-08FF, U+200C-200F, U+FB50-FDFF, U+FE70-FEFF; }
@font-face { font-family: "Roboto"; font-style: normal; font-weight: 600 900; font-display: swap; src: url("/fonts/noto-sans-arabic-arabic-700-normal.woff2") format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+0870-08FF, U+200C-200F, U+FB50-FDFF, U+FE70-FEFF; }

/*
 * Bidi: phone numbers and e-mail addresses are left-to-right runs. Inside Kurdish/Arabic (RTL) text the
 * Unicode bidi algorithm would reorder their digit groups ("(+1) 270-555-0117" -> "0117-555-270 (1+)"),
 * so they are isolated as LTR runs. Only text-only runs are isolated: links that are flex rows (icon + text)
 * keep their RTL flow so the icon stays on the correct side.
 */
[dir="rtl"] :is(a[href^="tel:"], a[href^="mailto:"]):not(:has(*)),
[dir="rtl"] :is(a[href^="tel:"], a[href^="mailto:"]) :is(span, strong, b, em, p):not(:has(*)) { direction: ltr; unicode-bidi: isolate; }

/*
 * RTL header fit (ckb/ar). The original RTL demo kept English menu labels; the Arabic-script labels are
 * wider, so at desktop widths the menu wrapped to two rows and "Apply Now" broke onto two lines.
 * Keep labels on one line and drop the padding Elementor puts around the desktop menu widget (200px/50px
 * above 1366px, 40px at 1025-1200px; the theme itself uses 0 at 1201-1366px).
 */
@media (min-width: 1025px) {
  .rtl .rstb-header .rstb-nav-menu.nav-horizontal > .primary-menu > .menu-item > .menu-item-link { white-space: nowrap; }
  .rtl .elementor-26 .elementor-element.elementor-element-edb509c,
  .rtl .elementor-26 .elementor-element.elementor-element-996b6ed { padding-left: 0; padding-right: 0; }
}
@media (min-width: 1025px) and (max-width: 1200px) {
  /* the menu keeps its width; the header button text may wrap instead (as in the original at this size) */
  .rtl .elementor-26 .elementor-element.elementor-element-edb509c,
  .rtl .elementor-26 .elementor-element.elementor-element-996b6ed { flex-shrink: 0; }
  .rtl .elementor-26 .elementor-element.elementor-element-edb509c > .rstb-nav-menu > .primary-menu > .menu-item,
  .rtl .elementor-26 .elementor-element.elementor-element-996b6ed > .rstb-nav-menu > .primary-menu > .menu-item { margin: 0 8px; }
}
@media (min-width: 1201px) {
  .rtl .rstb-header .rs-button .button-text { white-space: nowrap; }
}

/*
 * RTL mini search: the dropdown is anchored with a physical `right: 0` in both text directions, so in RTL
 * (search icon near the left edge) it hung off the left side of the page and made every ckb/ar page
 * horizontally scrollable (~600px wide at 375px). Mirror the anchor and keep it inside small screens.
 */
.rtl .rstb-mini-search.type-btn-toggle .search-form-area { right: auto; left: 0; }
@media (max-width: 767px) {
  .rstb-mini-search.type-btn-toggle .search-form-area { max-width: calc(100vw - 90px); }
}

/*
 * Horizontal overflow. The theme relies on `body { overflow-x: hidden }` being propagated to the viewport;
 * mobile browsers still widen the layout viewport to the widest in-flow box (e.g. the RTL about/apply badge
 * `.e-transform` shifted by translateX(-50%) with `right: 50%`, or the CF7 file input at 375px), so ckb/ar and
 * some en pages could be panned sideways. `overflow-x: clip` on the page wrapper cuts at the same edges the
 * viewport already cuts at, without creating a scroll container (sticky header, fixed panels and GSAP
 * ScrollTrigger keep using the viewport).
 */
.univet-page-wrapper { overflow-x: clip; }

/* Keyboard access and touch controls supplement the original theme. */
.qala-skip-link {
  position: fixed;
  z-index: 100000;
  inset-inline-start: 16px;
  top: 16px;
  padding: 12px 20px;
  color: #051435;
  background: #f7f5ef;
  border-radius: 8px;
  transform: translateY(-160%);
}
.qala-skip-link:focus { transform: translateY(0); }
:where(main, footer) :is(a, button, input, select, textarea):focus-visible {
  outline: 3px solid currentColor;
  outline-offset: 4px;
}
.rstb-header :is(a, button, input):focus-visible { outline: 3px solid #FFCA2D; outline-offset: 4px; }
.rstb-header :is(.menu-toggler, .search-btn, .offcanvas-toggle) {
  min-width: 44px;
  min-height: 44px;
}
@media (max-width: 767px) {
  .wpcf7 input:not([type="checkbox"]):not([type="radio"]), .wpcf7 textarea, .wpcf7 select {
    font-size: 16px;
  }
}
.upload-field input[type=file] { max-width: 100%; }

/*
 * Home hero on phones. Below 768px Elementor turns every container into `flex-wrap: wrap`
 * (--flex-wrap-mobile). The hero sizes itself with container-query units (container-type: inline-size, see
 * components/site/hero/HomeHero.module.css); inside a *wrapping column* flex container Chrome measures it at
 * zero inline size during intrinsic sizing, so the hero's container (3bf6c45, overflow: hidden) collapsed to
 * 0px and hid the whole hero. The container has a single child, so not wrapping changes nothing else.
 */
.elementor.elementor-51 .elementor-element.elementor-element-3bf6c45 { --flex-wrap-mobile: nowrap; }

/*
 * Qala header menu (docs/SITEMAP-PLAN.md §3): eight top-level items (About · Academics · Staff · Admission · Research ·
 * Centers · News · Contact) instead of the demo's six short ones, in three languages. The header nav uses the
 * theme's own `nav-breakpoint-xl` option (mobile panel toggle up to 1200px, see Header.tsx); from 1201px the row
 * stays on one line: no side padding on the menu widget (the theme puts 200/50/40px there), tighter item margins,
 * and up to 1366px the off-canvas toggle and its divider are hidden, as the theme itself does below 1025px (two
 * hamburger-like toggles next to each other would be confusing while the menu toggle shows).
 */
@media (min-width: 1201px) {
  .rstb-header .rstb-nav-menu.nav-horizontal > .primary-menu > .menu-item > .menu-item-link { white-space: nowrap; }
  .elementor-26 .elementor-element:is(.elementor-element-edb509c, .elementor-element-996b6ed) { padding-left: 0; padding-right: 0; }
}
@media (min-width: 1367px) {
  /* 3px at 1367px growing to the theme's 25px on wide screens (the off-canvas toggle is back from here) */
  .rstb-header .elementor-26 .elementor-element:is(.elementor-element-37b598d, .elementor-element-eea636e) > .rstb-nav-menu > .primary-menu > .menu-item { margin: 0 clamp(3px, calc(3px + (100vw - 1367px) / 22), 25px); }
}
@media (min-width: 1201px) and (max-width: 1366px) {
  .rstb-header .elementor-26 .elementor-element:is(.elementor-element-37b598d, .elementor-element-eea636e) > .rstb-nav-menu > .primary-menu > .menu-item { margin: 0 6px; }
}
@media (min-width: 1201px) and (max-width: 1279px) {
  /* the theme's own small-laptop size (14px, as it uses up to 1200px) */
  .rstb-header .elementor-26 .elementor-element:is(.elementor-element-37b598d, .elementor-element-eea636e) > .rstb-nav-menu > .primary-menu > .menu-item { margin: 0 4px; }
  .rstb-header .elementor-26 .elementor-element:is(.elementor-element-37b598d, .elementor-element-eea636e) > .rstb-nav-menu > .primary-menu > .menu-item > .menu-item-link { font-size: 14px; }
}
@media (min-width: 1025px) and (max-width: 1366px) {
  .rstb-header .elementor-26 .elementor-element:is(.elementor-element-d32192a, .elementor-element-3fc8faa, .elementor-element-3bbf2cb, .elementor-element-dab8cd0) { display: none; }
}

/*
 * Qala mega menus (About, Academics, Centers) reuse the Academics mega template (11874). A column can hold several
 * heading + menu pairs (one per college); the heading text links to the college / unit index and keeps the heading
 * colour, taking the menu hover colour.
 */
.elementor-11874 .prelements-heading .sub-text .qala-mega-heading-link { color: inherit; }
.elementor-11874 .prelements-heading .sub-text .qala-mega-heading-link:hover,
.elementor-11874 .prelements-heading .sub-text .qala-mega-heading-link:focus-visible { color: var(--e-global-color-secondary); }
.elementor-11874 .elementor-element.elementor-widget-rstb-nav-menu + .elementor-widget-rs-heading { margin-top: 8px; }
/* long menus (Academics: 9 colleges + 26 departments, Centers: 12 units) keep the mega within a 800px-high screen */
.elementor-11874 .qala-mega-dense .elementor-element:is(.elementor-element-baf2907, .elementor-element-e703f6d, .elementor-element-ea01bf2) > .rstb-nav-menu > .primary-menu > .menu-item:not(:last-child) > .menu-item-link { margin-bottom: 12px; }
@media (max-width: 1366px) {
  /* the theme's 14px of these menus (it switches at 1200px), for the narrower laptop mega */
  .elementor-11874 .qala-mega-dense .elementor-element:is(.elementor-element-baf2907, .elementor-element-e703f6d, .elementor-element-ea01bf2) > .rstb-nav-menu > .primary-menu > .menu-item > .menu-item-link { font-size: 14px; }
}
/* heading icons are <svg><use> references to one symbol each (Header.tsx): the theme fills `svg path`, which does
   not reach into a <use> tree, so the same fill is set on the <svg> and inherited */
.elementor-11874 .prelements-heading .title-inner span.sub-text svg.qala-mega-icon { fill: var(--e-global-color-primary); }

/*
 * Home: digital-services tiles under the college directory (HomeWidgets DigitalServices): the same
 * rs-programs-directory boxes, four per row, without the collapsible list (no bottom room for its button).
 */
.elementor-51 .qala-digital-services { width: 100%; margin-top: 50px; display: flex; flex-direction: column; gap: 30px; }
.elementor-51 .qala-digital-services .rs-programs-directory { display: flex; flex-wrap: wrap; justify-content: center; }
.elementor-51 .qala-digital-services .elementor-element.elementor-element-8939b0d .rs-programs-directory .directory-box { flex: 0 1 calc((100% - 90px) / 4); padding-bottom: 30px; margin-bottom: 0; }
@media (max-width: 1200px) { .elementor-51 .qala-digital-services .elementor-element.elementor-element-8939b0d .rs-programs-directory .directory-box { flex-basis: calc((100% - 30px) / 2); } }
@media (max-width: 768px) { .elementor-51 .qala-digital-services .elementor-element.elementor-element-8939b0d .rs-programs-directory .directory-box { flex-basis: 100%; } }

/* Footer copyright row: the site/legal links sit opposite the copyright line (second copyright widget). */
.elementor-74 .elementor-element.qala-footer-links { --width: auto; flex: 0 0 auto; max-width: 100%; }
.elementor-74 .qala-footer-links .rstb-copyright a { white-space: nowrap; }
.elementor-74 .qala-footer-links .qala-footer-sep { opacity: .5; }

/* ---- QA2 (new pages) ---- */
/* Header mega menus (About/Academics/Centers): a heading that wraps ("Administrative and Financial Sciences") squeezed its
   20px icon down to 9-17px (flex item of the inline-flex .sub-text); keep the icon at its size */
.elementor-11874 .prelements-heading .title-inner span.sub-text svg.qala-mega-icon { flex-shrink: 0; }
/* College/department singles (doc 6931 quick-link tiles, 5 instead of the demo's 2): on phones the tiles stack one per row
   as in the demo but kept its 51%/44% widths, so two-word labels ("Program Curriculum", "دەرئەنجامەکانی فێربوون") were cut
   by the tile's overflow:hidden (the demo clips its one-word "Curriculum" by 8px too); give each tile the full row */
@media (max-width: 767px) {
  .elementor.elementor-6931 .elementor-element:is(.elementor-element-7382785, .elementor-element-e851fce) { --container-widget-width: 100%; width: 100%; max-width: 100%; }
}
/* Home (ckb, 1025px+): "ئێستا پێشکەش بکە" in the admissions card button (6c5312e) needs 201px in a 189px column and broke
   onto two lines; one line with slightly tighter padding/gap (Arabic and English already fit) */
@media (min-width: 1025px) {
  :root:lang(ckb) .elementor-51 .elementor-element.elementor-element-6c5312e .rs-button { padding-left: 20px; padding-right: 20px; gap: 10px; }
  :root:lang(ckb) .elementor-51 .elementor-element.elementor-element-6c5312e .rs-button .button-text { white-space: nowrap; }
}
/* Staff profile (doc 4140 contact box 2c2db595): a long e-mail ("bakhtiyar.hassan@qala.edu.krd", en 1440px) ran 22px past
   its box; let it wrap (FacultySingle.tsx offers a break before the "@") */
.elementor-4140 .elementor-element.elementor-element-2c2db595 .rs-iconbox-area .desc { overflow-wrap: anywhere; }
/* Staff directory (/staff, /staff/unit, /staff/role; academic filter inside doc 7604, which has no filter settings): the
   search box kept the base 45% on phones (151px at 375px, the search icon covered the ckb/ar placeholder); full width
   below 768px, as the theme's own filter pages set it (d-7888, d-7928) */
@media (max-width: 767px) {
  .elementor-7604 .rs-academic-filter-area .filter-top-bar .filter-search-wrap { width: 100%; }
}
/* Unit/department singles (doc 6921 intro image 7d5ca89): the demo's photo is a 954x382 landscape that fills the column;
   data images of other sizes (e.g. the 387x529 portrait of the International Relations Office) left most of the column
   empty (387px of 954 at 1440px, 157px of 335 at 375px). Fill the column at the demo's proportions (phones: the theme's
   own 215px height with object-fit: cover) */
.elementor-6921 .elementor-element.elementor-element-7d5ca89 .rs-image img { width: 100%; aspect-ratio: 954 / 382; object-fit: cover; }
@media (max-width: 767px) {
  .elementor-6921 .elementor-element.elementor-element-7d5ca89 .rs-image img { aspect-ratio: auto; }
}
/* Registration / careers forms in the apply-now design (doc 5469, white card): the theme colours consent links white
   (`.wpcf7 .wpcf7-acceptance a`, meant for the dark newsletter box), so "Privacy Policy" was invisible on white */
.elementor-5469 .wpcf7 .wpcf7-acceptance a { color: var(--primaryColor); text-decoration: underline; }
/* Footer legal links (every page): the theme's `span { display: inline-block }` trimmed the spaces of the " · "
   separators, so the links ran together ("Privacy Policy·Terms of Use·…") */
.elementor-74 .qala-footer-links .qala-footer-sep { display: inline; }
/* Staff profile (doc 4140, contact pills 71be33ad): the demo's three short pills fit one row; longer data (e-mail,
   "+964 (750) 000-0121", "Department of Architectural Engineering") was squeezed into it, wrapping inside every pill
   (en 1440px). Let the pills flow onto a second row as they already do on phones (--flex-wrap-mobile: wrap) */
.elementor.elementor-4140 .elementor-element.elementor-element-71be33ad { --flex-wrap: wrap; }
/* Department/unit help box (doc 6921, ca63ace): "+964 (750) 000-0000" is 239px in a 225-235px column and broke at the
   hyphen; keep the number on one line (it stays inside the card's padding) */
.elementor-6921 .elementor-element.elementor-element-ca63ace a[href^="tel:"] { white-space: nowrap; }

/* ---- WP import (W3b) ---- */
/*
 * Placeholder notice (components/site/PlaceholderNotice.tsx): pages that still show sample content carry a trilingual
 * bar. It is the last child of the page content, a zero-height sticky strip: its pill floats at the bottom of the
 * viewport while the page scrolls and rests above the footer at the end (never over the header or the footer, which
 * a fixed bar would cover). Hidden at launch with NEXT_PUBLIC_HIDE_PLACEHOLDER_NOTICE=1.
 */
.qala-placeholder-notice { position: sticky; bottom: 0; height: 0; z-index: 990; pointer-events: none; }
.qala-placeholder-notice__pill {
  position: absolute; bottom: 14px; inset-inline: 0; margin: 0 auto; width: fit-content; max-width: min(720px, calc(100% - 32px));
  display: flex; align-items: center; gap: 12px; padding: 8px 18px 8px 8px; border-radius: 999px;
  background: var(--e-global-color-primary, #003A65); color: #fff;
  font-size: 13.5px; line-height: 1.45; font-weight: 500;
}
.qala-placeholder-notice__badge {
  flex: none; padding: 4px 12px; border-radius: 999px; background: var(--e-global-color-secondary, #FDC72F); color: #051435;
  font-size: 12px; font-weight: 700; line-height: 1.4; white-space: nowrap;
}
[dir="rtl"] .qala-placeholder-notice__pill { padding: 8px 8px 8px 18px; }
@media (max-width: 600px) {
  .qala-placeholder-notice__pill { border-radius: 18px; align-items: flex-start; padding: 8px 14px 8px 8px; font-size: 12.5px; }
  [dir="rtl"] .qala-placeholder-notice__pill { padding: 8px 8px 8px 14px; }
}
/* "Sample" tag beside a placeholder record in a list that also holds real records (directorates and offices table). */
.qala-sample-tag {
  display: inline-block; margin-inline-start: 8px; padding: 1px 8px; border-radius: 999px; vertical-align: middle;
  background: rgba(253, 199, 47, .28); color: #6b4e00; font-size: 11.5px; font-weight: 600; line-height: 1.6; white-space: nowrap;
}
/* Unit logo (Quality Assurance): a small logo, not a photo — the intro image slot of doc 6921 forces a 954:382 cover crop. */
.elementor-6921 .elementor-element.qala-unit-logo .rs-image { text-align: center; }
.elementor-6921 .elementor-element.qala-unit-logo .rs-image img {
  width: auto; max-width: 100%; height: auto; max-height: 300px; aspect-ratio: auto; object-fit: contain; padding: 24px;
  background: #fff; border-radius: 12px; border: 1px solid rgba(0, 58, 101, .12);
}
/* Photo inside an editorial text block (college council, organizational structure). */
.descripti figure.qala-figure { margin: 0 0 28px; }
.descripti figure.qala-figure img { display: block; width: 100%; height: auto; border-radius: 12px; }
.descripti figure.qala-figure figcaption { margin-top: 8px; font-size: 14px; opacity: .75; }
/* Photo strip closing the directorates and offices directory (doc 1764, ce074c6): the demo's photos shared one shape,
   the real photos of Qala differ, so every tile is cropped to 3:2 */
.elementor-1764 .elementor-element-ce074c6 .rs-image img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
/* Button-like link inside a text block (organizational-structure PDF, Quality Assurance points list). */
.elementor a.qala-file-link { display: inline-block; padding: 10px 22px; border-radius: 999px; background: var(--e-global-color-primary, #003A65); color: #fff; font-weight: 600; line-height: 1.5; text-decoration: none; transition: background-color .2s, color .2s; }
.elementor a.qala-file-link:hover, .elementor a.qala-file-link:focus-visible { background: var(--e-global-color-secondary, #FDC72F); color: #051435; }

/* ---- WP import (W3a) ---- */
/* Photos of the demo (foreign buildings and stock people) replaced by the college's own. Same selectors as the
   document CSS plus .e-con, so they win whatever the stylesheet order. */
/* The source group photos are landscape. Show the full originals instead of narrow portrait crops. */
.elementor-51 .elementor-element.elementor-element-2cd6a66 .elementor-image-carousel-wrapper .elementor-image-carousel .swiper-slide-inner .swiper-slide-image {
  display: block;
  width: 100%;
  height: clamp(230px, 22vw, 320px);
  object-fit: contain;
  background: #e9eceb;
  border: 5px solid #f4f3ef;
  border-radius: 24px;
  box-sizing: border-box;
}
.elementor-51 .elementor-element.elementor-element-2cd6a66 .elementor-image-carousel-wrapper .elementor-image-carousel .swiper-slide-inner .elementor-image-carousel-caption {
  position: static;
  display: block;
  padding: 12px 8px 0;
  background: none;
  border-radius: 0;
  writing-mode: horizontal-tb;
  color: #0b2944;
  font-size: 16px;
  font-weight: 650;
  line-height: 1.35;
  opacity: 1;
  visibility: visible;
}
/* Newsletter popup (home) */
.elementor-17157 .elementor-element.elementor-element-ea640c3.e-con:not(.elementor-motion-effects-element-type-background),
.elementor-17157 .elementor-element.elementor-element-ea640c3.e-con > .elementor-motion-effects-container > .elementor-motion-effects-layer {
  background-image: url("/assets/uploads/qala/home-moment-2.jpg");
  background-position: center 20%;
}
/* Home: dean's message band background, admission band side panel (desktop + small), closing call to action */
.elementor-51 .elementor-element.elementor-element-832c7be.e-con:not(.elementor-motion-effects-element-type-background),
.elementor-51 .elementor-element.elementor-element-832c7be.e-con > .elementor-motion-effects-container > .elementor-motion-effects-layer {
  background-image: url("/assets/uploads/qala/erbil-citadel-bridge.jpg");
  background-position: center 40%;
}
.elementor-51 .elementor-element.elementor-element-4126b65.e-con:not(.elementor-motion-effects-element-type-background),
.elementor-51 .elementor-element.elementor-element-4126b65.e-con > .elementor-motion-effects-container > .elementor-motion-effects-layer,
.elementor-51 .elementor-element.elementor-element-7b5218c.e-con:not(.elementor-motion-effects-element-type-background),
.elementor-51 .elementor-element.elementor-element-7b5218c.e-con > .elementor-motion-effects-container > .elementor-motion-effects-layer {
  background-image: none;
  background-position: center 58%;
}
.elementor-51 .elementor-element.elementor-element-30be8a9.e-con:not(.elementor-motion-effects-element-type-background),
.elementor-51 .elementor-element.elementor-element-30be8a9.e-con > .elementor-motion-effects-container > .elementor-motion-effects-layer {
  background-image: none;
  background-color: #07395d;
}
.elementor-51 .elementor-element.elementor-element-30be8a9.e-con::before {
  background-image: none;
}
.elementor-51 .elementor-element.elementor-element-30be8a9.e-con > .e-con-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(28px, 4vw, 72px);
}
.elementor-51 .elementor-element.elementor-element-30be8a9 .elementor-element-469c085 {
  --width: 100%;
  min-width: 0;
}
.qala-campus-concept {
  width: 100%;
  margin: 0;
}
.qala-campus-concept img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 16px;
}
.qala-photo-unavailable {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 20px;
  border-radius: 16px;
  background: #f7f5ef;
  color: #051435;
  text-align: center;
}
.qala-photo-unavailable p { color: inherit; margin: 0; }
.qala-photo-unavailable button { min-height: 44px; padding: 8px 20px; border: 0; border-radius: 24px; background: #ffca2d; color: #051435; }
.qala-campus-concept figcaption {
  margin-top: 10px;
  color: #fff;
  font-size: 13px;
  line-height: 1.4;
  opacity: 0.9;
}
.qala-campus-concept figcaption a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }

/* Restore readable, separate columns in the admissions callout. The original theme
   pulled the photograph behind both the copy and the form. */
.elementor-51 .elementor-element.elementor-element-fad787b.e-con {
  --padding-top: 88px;
  --padding-bottom: 88px;
  --padding-left: 24px;
  --padding-right: 24px;
}
.elementor-51 .elementor-element.elementor-element-131d4fe.e-con > .e-con-inner {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  align-items: start;
  gap: clamp(32px, 4vw, 64px);
}
.elementor-51 .elementor-element.elementor-element-2bf7ab8.e-con,
.elementor-51 .elementor-element.elementor-element-74ac77f.e-con {
  --width: 100%;
  width: 100%;
  min-width: 0;
  margin: 0;
}
.elementor-51 .elementor-element.elementor-element-2bf7ab8.e-con {
  --flex-direction: column;
  --gap: 28px;
}
.qala-admissions-photo { width: 100%; margin: 0; }
.qala-admissions-photo img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 14px; }
.elementor-51 .elementor-element.elementor-element-7b5218c.e-con,
.elementor-51 .elementor-element.elementor-element-72f9ac1.e-con { display: none !important; }

/* Decorative marquee from the demo theme clipped Sorani and Arabic text. */
.elementor-51 .elementor-element.elementor-element-85e2680.e-con { display: none !important; }

/* Admission requirements: keep each contact line readable and the three next
   steps aligned as a single row. */
.elementor-4839 .elementor-element.elementor-element-3476b2f.e-con:not(.elementor-motion-effects-element-type-background),
.elementor-4839 .elementor-element.elementor-element-3476b2f.e-con > .elementor-motion-effects-container > .elementor-motion-effects-layer {
  background-image: url("/assets/uploads/qala/erbil-citadel-2024.jpg?v=20261006-photo1");
  background-position: center 52%;
}
.elementor-4839 .elementor-element.elementor-element-4f5e337.e-con { --gap: 42px; --flex-wrap: nowrap; }
.elementor-4839 .elementor-element.elementor-element-1f9cf86.e-con { --width: 55%; min-width: 0; }
.elementor-4839 .elementor-element.elementor-element-2d3babe.e-con {
  --width: 100%;
  width: 100%;
  min-width: 0;
  margin: 36px 0 48px;
}
.elementor-4839 .elementor-element.elementor-element-23273f6,
.elementor-4839 .elementor-element.elementor-element-23273f6 .elementor-widget-container { width: 100%; }
.elementor-4839 .elementor-element.elementor-element-23273f6 .elementor-icon-list-item { display: flex; align-items: flex-start; gap: 10px; }
.elementor-4839 .elementor-element.elementor-element-23273f6 .elementor-icon-list-text { display: block; min-width: 0; overflow-wrap: anywhere; line-height: 1.7; }
.elementor-4839 .elementor-element.elementor-element-23273f6 .elementor-icon-list-items {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  padding: 0;
  margin: 0;
}
.elementor-4839 .elementor-element.elementor-element-23273f6 .elementor-icon-list-item {
  background: #fff;
  border: 1px solid #e4e8eb;
  border-radius: 12px;
  padding: 18px 22px;
  min-width: 0;
  margin: 0;
}
.elementor-4839 .elementor-element.elementor-element-23273f6 .elementor-icon-list-icon { display: none; }
.elementor-4839 .elementor-element.elementor-element-23273f6 .elementor-icon-list-text a {
  display: inline !important;
  color: #005581;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.elementor-4839 .elementor-element.elementor-element-23273f6 .elementor-icon-list-text bdi { white-space: nowrap; }
.elementor-4839 .elementor-element.elementor-element-1bbc0d7.e-con {
  --display: grid;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  align-items: stretch;
}
.elementor-4839 .elementor-element.elementor-element-8991212,
.elementor-4839 .elementor-element.elementor-element-a483b7f { grid-column: 1 / -1; width: 100%; max-width: none; margin: 0; }
.elementor-4839 .elementor-element.elementor-element-37632f1.e-con,
.elementor-4839 .elementor-element.elementor-element-b56d532.e-con,
.elementor-4839 .elementor-element.elementor-element-804f5c6.e-con {
  --width: 100%;
  width: 100%;
  min-width: 0;
  min-height: 220px;
  --padding-top: 28px;
  --padding-bottom: 28px;
  --padding-left: 24px;
  --padding-right: 24px;
}
.elementor-4839 .elementor-element.elementor-element-1bbc0d7 .elementor-widget-rs-image { display: none; }
.elementor-4839 .elementor-element.elementor-element-1bbc0d7 .elementor-widget-rs-button { margin-top: auto; }
@media (max-width: 900px) {
  .elementor-51 .elementor-element.elementor-element-131d4fe.e-con > .e-con-inner { grid-template-columns: minmax(0, 1fr); }
  .elementor-4839 .elementor-element.elementor-element-4f5e337.e-con { --flex-wrap: wrap; }
  .elementor-4839 .elementor-element.elementor-element-1f9cf86.e-con,
  .elementor-4839 .elementor-element.elementor-element-2d3babe.e-con { --width: 100%; width: 100%; }
  .elementor-4839 .elementor-element.elementor-element-23273f6 .elementor-icon-list-items { grid-template-columns: minmax(0, 1fr); }
  .elementor-4839 .elementor-element.elementor-element-1bbc0d7.e-con { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 767px) {
  .elementor-51 .elementor-element.elementor-element-30be8a9.e-con > .e-con-inner {
    grid-template-columns: minmax(0, 1fr);
  }
  .elementor-51 .elementor-element.elementor-element-30be8a9.e-con {
    --padding-top: 48px;
    --padding-bottom: 48px;
  }
}
/* News titles are shared by every article. The old 483px event strip made one ceremony look like
   the header for every story; the article's own full photo remains directly below the title. */
body .elementor-11257 .elementor-element.elementor-element-813340d:not(.elementor-motion-effects-element-type-background),
body .elementor-11257 .elementor-element.elementor-element-813340d > .elementor-motion-effects-container > .elementor-motion-effects-layer {
  background-image: radial-gradient(circle at 82% 18%, #1670a0 0%, transparent 38%), linear-gradient(115deg, #002d4e 0%, #004c78 100%);
  background-position: center;
}
/* About: the nine objectives sit in rows of three cards of equal height (the demo had three short boxes). */
.elementor-1238 .elementor-element.elementor-element-0bdfebf.e-con {
  --align-items: stretch;
}
/* About / location sidebar: room for the arrow after a long label ("Organizational Structure"). */
.elementor-1238 .elementor-element-a60e831 .menu-item-text,
.elementor-1766 .elementor-element-e1b68f6 .menu-item-text {
  padding-inline-end: 26px;
}
/* Footer: the contact strip (e-mail, phones, address) stacks in the left column; the column headings may use the
   column's width (the demo's short titles fitted 52%). */
.elementor-74 .elementor-element.elementor-element-cab1879.e-con {
  --flex-direction: column;
  --align-items: flex-start;
  --gap: 18px 0px;
  --row-gap: 18px;
  --column-gap: 0px;
}
[dir="rtl"] .elementor-74 .elementor-element.elementor-element-cab1879 .rs-iconbox-area .box-inner {
  text-align: right;
}
.elementor-74 .elementor-element.elementor-element-9c02952,
.elementor-74 .elementor-element.elementor-element-e3ac67e,
.elementor-74 .elementor-element.elementor-element-7de0aea {
  width: 100%;
  max-width: 100%;
}

/* Data tables wider than the phone (e.g. the academic activity points table) scroll inside their box
   instead of being clipped by the page's overflow-x: hidden. */
@media (max-width: 767px) {
  .e-con-inner > .elementor:has(.ultimate-data-table),
  .e-con > .elementor:has(.ultimate-data-table) {
    min-width: 0;
    max-width: 100%;
  }
  .elementor-widget-ultimate_data_table_el_widget .elementor-widget-container {
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}

/* ---- Events & courses from the ERP feed (components/events-feed; page /events-courses and the home band) ------------------ */
.qala-evf-section { background: var(--e-global-color-1d62194, #F6F4EE); padding: 56px 24px 96px; }
.qala-evf-section > * { max-width: 1240px; margin-inline: auto; }
.qala-evf-filter { display: flex; flex-wrap: wrap; gap: 10px; margin-block-end: 32px; }
.qala-evf-filter a { padding: 9px 20px; border-radius: 999px; border: 1px solid rgba(0, 58, 101, .25); background: #fff; color: var(--e-global-color-primary, #003A65); font-weight: 600; font-size: 15px; line-height: 1.4; text-decoration: none; transition: background-color .2s, color .2s, border-color .2s; }
.qala-evf-filter a:hover, .qala-evf-filter a:focus-visible { border-color: var(--e-global-color-primary, #003A65); }
.qala-evf-filter a.is-on { background: var(--e-global-color-primary, #003A65); border-color: var(--e-global-color-primary, #003A65); color: #fff; }
.qala-evf-filter a:focus-visible, .qala-evf-register:focus-visible, .qala-evf-more:focus-visible { outline: 3px solid var(--e-global-color-secondary, #FDC72F); outline-offset: 2px; }
.qala-evf-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.qala-evf-card { display: flex; flex-direction: column; overflow: hidden; border-radius: 20px; background: #fff; border: 1px solid rgba(0, 58, 101, .08); }
.qala-evf-card.is-ended { opacity: .78; }
.qala-evf-media { aspect-ratio: 16 / 9; background: var(--e-global-color-primary, #003A65); overflow: hidden; }
.qala-evf-media img { display: block; width: 100%; height: 100%; object-fit: cover; }
.qala-evf-placeholder { display: grid; place-items: center; width: 100%; height: 100%; background: linear-gradient(135deg, #003A65 0%, #0A5B94 100%); color: var(--e-global-color-secondary, #FDC72F); }
.qala-evf-placeholder i { font-size: 64px; line-height: 1; }
.qala-evf-body { display: flex; flex-direction: column; gap: 14px; flex: 1; padding: 24px 24px 26px; }
.qala-evf-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; }
.qala-evf-tag { padding: 4px 12px; border-radius: 999px; font-size: 13px; font-weight: 600; line-height: 1.5; background: #E8EEF3; color: var(--e-global-color-primary, #003A65); }
.qala-evf-tag.is-type { background: var(--e-global-color-primary, #003A65); color: #fff; }
.qala-evf-tag.is-open { background: #E3F4E6; color: #1B6B2D; }
.qala-evf-tag.is-soon { background: #FFF1C4; color: #6B4E00; }
.qala-evf-tag.is-ended { background: #ECECEC; color: #555; }
.qala-evf-card h3.qala-evf-title { margin: 0; font-family: "Bitter", serif; font-size: 22px; line-height: 1.35; font-weight: 600; color: var(--e-global-color-4d7b7af, #051435); overflow-wrap: anywhere; }
.qala-evf-facts { display: flex; flex-direction: column; gap: 8px; margin: 0; padding: 0; list-style: none; }
.qala-evf-facts li { display: flex; align-items: flex-start; gap: 10px; margin: 0; font-size: 15px; line-height: 1.5; color: var(--e-global-color-text, #4C4C4C); }
.qala-evf-facts i { flex: none; color: var(--e-global-color-primary, #003A65); font-size: 18px; line-height: 1.4; }
.qala-evf-text { margin: 0; font-size: 15px; line-height: 1.65; color: var(--e-global-color-text, #4C4C4C); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.qala-evf-timer { display: flex; flex-direction: column; gap: 8px; padding: 14px 16px; border-radius: 14px; background: var(--e-global-color-1d62194, #F6F4EE); font-size: 14px; font-weight: 600; color: var(--e-global-color-primary, #003A65); }
.qala-evf-countdown { display: flex; gap: 10px; }
.qala-evf-tick { display: flex; flex-direction: column; align-items: center; min-width: 52px; padding: 8px 6px; border-radius: 10px; background: #fff; border: 1px solid rgba(0, 58, 101, .12); }
.qala-evf-tick b { font-family: "Bitter", serif; font-size: 22px; line-height: 1.1; color: var(--e-global-color-4d7b7af, #051435); font-variant-numeric: tabular-nums; }
.qala-evf-tick small { font-size: 11px; font-weight: 500; line-height: 1.3; color: var(--e-global-color-text, #4C4C4C); }
.qala-evf-foot { margin-block-start: auto; padding-block-start: 4px; }
.qala-evf-register, .qala-evf-more { display: inline-flex; align-items: center; gap: 8px; padding: 12px 26px; border-radius: 999px; background: var(--e-global-color-secondary, #FDC72F); color: #051435; font-weight: 700; font-size: 16px; line-height: 1.4; text-decoration: none; transition: background-color .2s, color .2s; }
.qala-evf-register:hover, .qala-evf-more:hover { background: var(--e-global-color-primary, #003A65); color: #fff; }
.qala-evf-register i, .qala-evf-more i { font-size: 18px; }
[dir="rtl"] .qala-evf-more i.ri-arrow-right-line { transform: scaleX(-1); }
.qala-evf-note { font-size: 14px; color: var(--e-global-color-text, #4C4C4C); }
.qala-evf-empty { max-width: 640px; margin-inline: auto; padding: 56px 32px; border-radius: 20px; background: #fff; border: 1px dashed rgba(0, 58, 101, .3); text-align: center; }
.qala-evf-empty i { display: block; font-size: 48px; line-height: 1; margin-block-end: 16px; color: var(--e-global-color-primary, #003A65); }
.qala-evf-empty h3 { margin: 0 0 10px; font-family: "Bitter", serif; font-size: 24px; line-height: 1.35; }
.qala-evf-empty p { margin: 0; font-size: 16px; line-height: 1.7; }
.qala-evf-home { background: #fff; padding: 72px 24px; }
.qala-evf-home-inner { max-width: 1240px; margin-inline: auto; }
.qala-evf-home-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px; margin-block-end: 36px; }
.qala-evf-eyebrow { margin: 0 0 8px; font-weight: 700; font-size: 15px; letter-spacing: .02em; color: var(--e-global-color-primary, #003A65); }
.qala-evf-home h2 { margin: 0; font-family: "Bitter", serif; font-size: 38px; line-height: 1.25; }
.qala-evf-home .qala-evf-card { background: var(--e-global-color-1d62194, #F6F4EE); }
.qala-evf-home .qala-evf-timer { background: #fff; }
@media (max-width: 1024px) { .qala-evf-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; } }
@media (max-width: 680px) {
  .qala-evf-section { padding: 36px 16px 64px; }
  .qala-evf-home { padding: 48px 16px; }
  .qala-evf-home h2 { font-size: 28px; }
  .qala-evf-grid { grid-template-columns: minmax(0, 1fr); }
  .qala-evf-body { padding: 20px; }
  .qala-evf-card h3.qala-evf-title { font-size: 20px; }
  .qala-evf-countdown { gap: 8px; }
  .qala-evf-tick { min-width: 0; flex: 1; }
}
@media (prefers-reduced-motion: reduce) { .qala-evf-filter a, .qala-evf-register, .qala-evf-more { transition: none; } }

/* ---- Latest activity (home, components/collections/blog/LatestActivity.tsx) -------------------------------------------------
   The newest posts as rows that open in place (<details name>, one open at a time). The heading column stays in view on
   wide screens; the opening animates where the browser can interpolate to `auto` and is instant elsewhere. */
.qla { background: #fff; padding: 96px 24px; interpolate-size: allow-keywords; }
.qla-inner { max-width: 1240px; margin-inline: auto; display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: 64px; align-items: start; }
.qla-head { position: sticky; top: 120px; }
.qla-kicker { display: flex; align-items: center; gap: 12px; margin: 0 0 14px; font-weight: 700; font-size: 15px; color: var(--e-global-color-primary, #003A65); }
.qla-kicker::before { content: ""; flex: none; width: 28px; height: 3px; border-radius: 2px; background: var(--e-global-color-secondary, #FDC72F); }
.qla h2.qla-title { margin: 0 0 16px; font-family: "Bitter", serif; font-size: 44px; line-height: 1.18; font-weight: 600; color: var(--e-global-color-4d7b7af, #051435); }
.qla-intro { margin: 0 0 26px; font-size: 16px; line-height: 1.7; color: var(--e-global-color-text, #4C4C4C); }
.qla-all { display: inline-flex; align-items: center; min-height: 44px; padding: 0 22px; border-radius: 999px; border: 1px solid rgba(0, 58, 101, .3); color: var(--e-global-color-primary, #003A65); font-weight: 700; font-size: 15px; text-decoration: none; transition: background-color .2s, color .2s, border-color .2s; }
.qla-all:hover { background: var(--e-global-color-primary, #003A65); border-color: var(--e-global-color-primary, #003A65); color: #fff; }
.qla-list { border-top: 1px solid rgba(5, 20, 53, .14); }
.qla-item { border-bottom: 1px solid rgba(5, 20, 53, .14); }
.qla-item::details-content { block-size: 0; overflow: clip; transition: block-size .42s cubic-bezier(.2, .7, .2, 1), content-visibility .42s allow-discrete; }
.qla-item[open]::details-content { block-size: auto; }
.qla-sum { display: grid; grid-template-columns: 92px minmax(0, 1fr) 72px 36px; align-items: center; gap: 22px; min-height: 44px; padding: 24px 4px; cursor: pointer; list-style: none; }
.qla-sum::-webkit-details-marker { display: none; }
.qla-sum::marker { content: ""; }
.qla-sum:focus-visible { outline: 3px solid var(--e-global-color-secondary, #FDC72F); outline-offset: 2px; border-radius: 8px; }
.qla-date { display: flex; flex-direction: column; gap: 6px; }
.qla-day { font-family: "Bitter", serif; font-size: 42px; line-height: 1; font-weight: 600; color: var(--e-global-color-primary, #003A65); font-variant-numeric: tabular-nums; }
.qla-my { font-size: 13px; font-weight: 600; line-height: 1.3; color: var(--e-global-color-text, #4C4C4C); }
.qla-heading { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.qla-cat { font-size: 13px; font-weight: 700; line-height: 1.3; color: #7A5B00; }
.qla-name { font-family: "Bitter", serif; font-size: 21px; line-height: 1.42; font-weight: 600; color: var(--e-global-color-4d7b7af, #051435); transition: color .2s; overflow-wrap: anywhere; }
.qla-sum:hover .qla-name, .qla-item[open] .qla-name { color: var(--e-global-color-primary, #003A65); }
.qla-thumb { width: 72px; height: 72px; object-fit: cover; border-radius: 12px; transition: opacity .25s, transform .25s; }
.qla-item[open] .qla-thumb { opacity: 0; transform: scale(.9); }
.qla-chev { position: relative; width: 36px; height: 36px; border-radius: 50%; border: 1px solid rgba(0, 58, 101, .25); transition: background-color .2s, border-color .2s; }
.qla-chev::before { content: ""; position: absolute; inset: 0; margin: auto; width: 9px; height: 9px; border-right: 2px solid var(--e-global-color-primary, #003A65); border-bottom: 2px solid var(--e-global-color-primary, #003A65); transform: translateY(-2px) rotate(45deg); transition: transform .3s; }
.qla-item[open] .qla-chev { background: var(--e-global-color-primary, #003A65); border-color: var(--e-global-color-primary, #003A65); }
.qla-item[open] .qla-chev::before { border-color: #fff; transform: translateY(2px) rotate(-135deg); }
.qla-body { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 30px; align-items: start; padding: 0 4px 34px; padding-inline-start: 118px; }
.qla-photo { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 18px; background: #E9EEF3; }
.qla-text p { margin: 0 0 20px; font-size: 16px; line-height: 1.8; color: var(--e-global-color-text, #4C4C4C); }
.qla-more { display: inline-flex; align-items: center; min-height: 44px; padding: 0 24px; border-radius: 999px; background: var(--e-global-color-secondary, #FDC72F); color: #051435; font-weight: 700; font-size: 15px; text-decoration: none; transition: background-color .2s, color .2s; }
.qla-more:hover { background: var(--e-global-color-primary, #003A65); color: #fff; }
.qla-more:focus-visible, .qla-all:focus-visible { outline: 3px solid var(--e-global-color-secondary, #FDC72F); outline-offset: 2px; }
.qla .screen-reader-text { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
@media (prefers-reduced-motion: reduce) {
  .qla-item::details-content, .qla-thumb, .qla-chev, .qla-chev::before { transition: none; }
}
@media (max-width: 1024px) {
  .qla-inner { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .qla-head { position: static; }
  .qla h2.qla-title { font-size: 36px; }
}
@media (max-width: 767px) {
  .qla { padding: 56px 16px; }
  .qla h2.qla-title { font-size: 30px; }
  .qla-sum { grid-template-columns: 62px minmax(0, 1fr) 32px; gap: 14px; padding: 18px 0; }
  .qla-thumb { display: none; }
  .qla-day { font-size: 32px; }
  .qla-name { font-size: 18px; }
  .qla-chev { width: 32px; height: 32px; }
  .qla-body { grid-template-columns: minmax(0, 1fr); gap: 16px; padding: 0 0 26px; }
}

/* ---- Staff pages: the real staff group photo of 2026 behind the banner of the directory and the profiles (doc 7604) ---- */
.elementor-7604 .elementor-element.elementor-element-41175fa.e-con:not(.elementor-motion-effects-element-type-background) { background-image: url("/assets/uploads/qala/2026/staff-group-1600.webp"); background-position: center 38%; }

/* ---- Staff cards (/staff directory, programme Staff tab, department staff): one refined card for everyone. White card
   with a soft long shadow, the portrait in a gold-hairline frame that zooms a little on hover, the name in the serif face,
   a short gold rule, the post in muted gold. The theme's navy hover fill is replaced by a gentle lift. ---- */
.rs-faculty-members .faculty-member { padding: 10px 10px 24px; border-radius: 24px; background: #fff; transition: transform .35s cubic-bezier(.2, .7, .2, 1), box-shadow .35s; }
.rs-faculty-members .faculty-member:hover { background-color: #fff; border-color: rgba(154, 107, 0, .35); }
.rs-faculty-members .faculty-member:hover .name, .rs-faculty-members .faculty-member:hover .name a { color: var(--e-global-color-primary, #003A65); }
.rs-faculty-members .faculty-member:hover .designation { color: #7A5B00; }
.rs-faculty-members .faculty-member .member-photo-wrap { position: relative; overflow: hidden; border-radius: 18px; }
.rs-faculty-members .faculty-member .member-photo-wrap::after { content: ""; position: absolute; inset: 8px; border: 1px solid rgba(253, 199, 47, .6); border-radius: 13px; pointer-events: none; }
.rs-faculty-members .faculty-member .member-photo img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 18px; background: #E9EEF3; transition: transform .7s cubic-bezier(.2, .7, .2, 1); }
.rs-faculty-members .faculty-member:hover .member-photo img { transform: scale(1.045); }
.rs-faculty-members .faculty-member .social-links { display: none; }
.rs-faculty-members .faculty-member .member-content { padding: 20px 10px 0; text-align: center; }
.rs-faculty-members .faculty-member .member-content .name { margin: 0; font-family: "Bitter", serif; font-size: 20px; line-height: 1.35; font-weight: 600; overflow-wrap: anywhere; }
.rs-faculty-members .faculty-member .member-content .name::after { content: ""; display: block; width: 28px; height: 2px; margin: 12px auto 10px; border-radius: 2px; background: var(--e-global-color-secondary, #FDC72F); }
.rs-faculty-members .faculty-member .member-content .designation { display: block; font-size: 14px; font-weight: 600; line-height: 1.5; color: #7A5B00; }
@media (prefers-reduced-motion: reduce) { .rs-faculty-members .faculty-member, .rs-faculty-members .faculty-member .member-photo img { transition: none; } .rs-faculty-members .faculty-member:hover { transform: none; } .rs-faculty-members .faculty-member:hover .member-photo img { transform: none; } }

/* ---- Staff profile: colleagues of the unit (StaffProfile.tsx) ---- */
.qsf-team { margin-block-start: 80px; }
.qsf-team h2.qsf-team__title { margin: 0 0 20px; font-family: "Bitter", serif; font-size: 28px; line-height: 1.3; color: var(--e-global-color-4d7b7af, #051435); }
.qsf-team__list { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 8px 24px; margin: 0; padding: 0; list-style: none; }
.qsf-person { display: grid; grid-template-columns: 56px minmax(0, 1fr); grid-template-rows: auto auto; column-gap: 14px; align-items: center; padding: 10px; border-radius: 14px; text-decoration: none; transition: background-color .2s; }
.qsf-person:hover, .qsf-person:focus-visible { background: #fff; }
.qsf-person img { grid-row: 1 / span 2; width: 56px; height: 70px; object-fit: cover; border-radius: 10px; background: #E9EEF3; }
.qsf-person__name { align-self: end; font-weight: 700; font-size: 15px; line-height: 1.35; color: var(--e-global-color-4d7b7af, #051435); }
.qsf-person__line { align-self: start; font-size: 13px; line-height: 1.4; color: #5B6470; }
@media (max-width: 767px) {
  .qsf-team { margin-block-start: 56px; }
}

/* ---- Leadership band (About, components/collections/people/LeadershipBand.tsx) ---------------------------------------------
   Deep navy with a fine gold rule: the head of the university featured, the other leadership posts in a quiet row. */
.qlb { position: relative; overflow: hidden; padding: 100px 24px; background: radial-gradient(120% 140% at 85% 0%, #0B3A66 0%, #051F3A 55%, #04162B 100%); color: #fff; }
.qlb::before { content: ""; position: absolute; inset: 28px; border: 1px solid rgba(253, 199, 47, .22); border-radius: 28px; pointer-events: none; }
.qlb-inner { position: relative; max-width: 1180px; margin-inline: auto; }
.qlb-lead { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 64px; align-items: center; }
.qlb-photo { position: relative; margin: 0; aspect-ratio: 4 / 5; border-radius: 22px; overflow: hidden; background: #0B2C4D; }
.qlb-photo::after { content: ""; position: absolute; inset: 10px; border: 1px solid rgba(253, 199, 47, .55); border-radius: 16px; pointer-events: none; }
.qlb-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.qlb-kicker { display: flex; align-items: center; gap: 12px; margin: 0 0 18px; font-size: 15px; font-weight: 700; color: var(--e-global-color-secondary, #FDC72F); }
.qlb-kicker::before { content: ""; width: 36px; height: 1px; background: currentColor; }
.qlb h2.qlb-name { margin: 0 0 12px; font-family: "Bitter", serif; font-size: 52px; line-height: 1.1; font-weight: 500; color: #fff; }
.qlb-post { margin: 0 0 6px; font-size: 19px; font-weight: 600; color: #F3E3B0; }
.qlb-line { margin: 0; font-size: 16px; color: rgba(255, 255, 255, .72); }
.qlb-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 26px; margin-block-start: 34px; }
.qlb-btn { display: inline-flex; align-items: center; min-height: 48px; padding: 0 28px; border-radius: 999px; background: var(--e-global-color-secondary, #FDC72F); color: #051435; font-weight: 700; font-size: 15px; text-decoration: none; transition: background-color .2s, color .2s; }
.qlb-btn:hover { background: #fff; color: #051435; }
.qlb-link { color: #fff; font-weight: 600; font-size: 15px; text-decoration: underline; text-decoration-color: rgba(253, 199, 47, .7); text-underline-offset: 6px; }
.qlb-link:hover { color: var(--e-global-color-secondary, #FDC72F); }
.qlb-team { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 0; margin: 64px 0 0; padding: 26px 0 0; list-style: none; border-top: 1px solid rgba(255, 255, 255, .14); }
.qlb-person { display: grid; grid-template-columns: 64px minmax(0, 1fr); grid-template-rows: auto auto; column-gap: 16px; align-items: center; padding: 12px; border-radius: 16px; text-decoration: none; transition: background-color .2s; }
.qlb-person:hover, .qlb-person:focus-visible { background: rgba(255, 255, 255, .06); }
.qlb-person img { grid-row: 1 / span 2; width: 64px; height: 80px; object-fit: cover; border-radius: 12px; background: #0B2C4D; }
.qlb-person__name { align-self: end; font-family: "Bitter", serif; font-size: 17px; line-height: 1.35; color: #fff; }
.qlb-person__line { align-self: start; font-size: 13px; color: rgba(255, 255, 255, .65); }
.qlb a:focus-visible { outline: 3px solid var(--e-global-color-secondary, #FDC72F); outline-offset: 3px; }
@media (max-width: 1024px) {
  .qlb-lead { grid-template-columns: 260px minmax(0, 1fr); gap: 40px; }
  .qlb h2.qlb-name { font-size: 40px; }
}
@media (max-width: 767px) {
  .qlb { padding: 64px 18px; }
  .qlb::before { inset: 12px; border-radius: 20px; }
  .qlb-lead { grid-template-columns: minmax(0, 1fr); gap: 28px; justify-items: start; }
  .qlb-photo { width: min(78%, 300px); }
  .qlb h2.qlb-name { font-size: 32px; }
  .qlb-post { font-size: 17px; }
  .qlb-team { margin-block-start: 40px; grid-template-columns: minmax(0, 1fr); }
}

/* ---- Home announcements as compact rows (components/events-feed/EventCards.tsx EventRows; owner 25 Nov: the cards wasted the
   page). Same rows as "Latest activity" (qla-*), on the ivory band; a row opens to the full details. ---- */
.qla.qevr-band { background: var(--e-global-color-1d62194, #F6F4EE); padding-block: 80px; }
.qevr .qla-sum { grid-template-columns: 92px minmax(0, 1fr) 36px; }
.qevr-icon { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 16px; background: #fff; color: var(--e-global-color-primary, #003A65); font-size: 26px; }
.qevr-mode { margin-inline-start: 10px; padding-inline-start: 10px; border-inline-start: 1px solid rgba(5, 20, 53, .2); font-weight: 700; }
.qevr-mode.is-open { color: #1B6B2D; }
.qevr-mode.is-soon { color: #8A5A00; }
@media (max-width: 767px) {
  .qla.qevr-band { padding-block: 56px; }
  .qevr .qla-sum { grid-template-columns: 62px minmax(0, 1fr) 32px; }
  .qevr-icon { width: 46px; height: 46px; font-size: 22px; border-radius: 12px; }
}

/* ---- Staff profile (StaffProfile.tsx; layout of the Bayan instructor page chosen by the owner, in Qala navy and gold) ----
   Deep-navy band with the crest as a watermark, a back link, the portrait in a gold frame, the name with a gold ornament;
   a white facts card overlapping the band; tabs with section rows. Phones: centred hero, tabs wrap into a grid. */
.qpf .elementor-element.elementor-element-41175fa.e-con:not(.elementor-motion-effects-element-type-background) { background-image: none; background-color: #04213D; }
.qpf .elementor-element.elementor-element-41175fa::before { background-image: radial-gradient(120% 140% at 80% 10%, #0B3A66 0%, #052A4D 45%, #031A31 100%) !important; opacity: 1; }
.qpf .elementor-element.elementor-element-41175fa { overflow: hidden; --padding-bottom: 150px; }
.qpf .elementor-element.elementor-element-41175fa::after { content: ""; position: absolute; inset-inline-end: -120px; top: 50%; width: 620px; height: 620px; transform: translateY(-45%); background: url("/brand/emblem-white.svg") center / contain no-repeat; opacity: .06; pointer-events: none; }
.qpf .elementor-element.elementor-element-41175fa > .e-con-inner { max-width: 1100px; }
.qpf-hero { position: relative; z-index: 2; width: 100%; }
.qpf-back { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 26px; font-size: 14px; font-weight: 600; color: rgba(255, 255, 255, .78); text-decoration: none; }
.qpf-back:hover { color: var(--e-global-color-secondary, #FDC72F); }
[dir="rtl"] .qpf-back span { transform: scaleX(-1); }
.qpf-hero__row { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 48px; align-items: center; }
.qpf-photo { position: relative; margin: 0; padding: 6px; border-radius: 14px; border: 1px solid rgba(253, 199, 47, .75); background: rgba(255, 255, 255, .04); }
.qpf-photo img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 9px; background: #0B2C4D; }
.qpf-photo--emblem img { object-fit: contain; padding: 18%; }
.qpf-id { min-width: 0; }
.qpf h1.qpf-name { margin: 0; font-family: "Bitter", serif; font-size: 48px; line-height: 1.15; font-weight: 500; color: #fff; overflow-wrap: anywhere; }
.qpf-orn { position: relative; display: block; width: 116px; height: 12px; margin: 18px 0 16px; }
.qpf-orn::before { content: ""; position: absolute; inset-inline: 0; top: 50%; height: 1px; background: linear-gradient(90deg, rgba(253, 199, 47, .9) 0 44%, transparent 44% 56%, rgba(253, 199, 47, .9) 56% 100%); }
.qpf-orn::after { content: ""; position: absolute; inset-inline-start: 50%; top: 50%; width: 7px; height: 7px; background: var(--e-global-color-secondary, #FDC72F); transform: translate(-50%, -50%) rotate(45deg); }
[dir="rtl"] .qpf-orn::after { transform: translate(50%, -50%) rotate(45deg); }
.qpf-post { margin: 0 0 6px; font-size: 15px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--e-global-color-secondary, #FDC72F); }
[dir="rtl"] .qpf-post { letter-spacing: 0; text-transform: none; font-size: 17px; }
.qpf-college { margin: 0; font-size: 16px; color: rgba(255, 255, 255, .8); }
.qpf-wrap { position: relative; z-index: 3; box-sizing: content-box; max-width: 1100px; margin-inline: auto; padding: 0 20px 100px; }
.qpf-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 40px; margin: -96px 0 0; padding: 22px 34px 10px; border-radius: 4px; border-top: 3px solid var(--e-global-color-secondary, #FDC72F); background: #fff; }
.qpf-facts > div { padding: 14px 0; border-bottom: 1px solid rgba(5, 20, 53, .09); min-width: 0; }
.qpf-facts dt { margin: 0 0 4px; font-size: 13px; font-weight: 700; color: #9A6B00; }
.qpf-facts dd { margin: 0; font-size: 16px; line-height: 1.5; color: var(--e-global-color-4d7b7af, #051435); overflow-wrap: anywhere; }
.qpf-facts dd a { color: var(--e-global-color-primary, #003A65); }
/* tabs */
.qpf-tabs { margin-block-start: 44px; }
.qpf-tabs__list { display: flex; justify-content: center; gap: 6px 26px; border-bottom: 1px solid rgba(5, 20, 53, .12); }
.qpf-tabs__tab { position: relative; padding: 14px 4px; border: 0; background: none; font: inherit; font-size: 15px; font-weight: 600; color: #5B6470; cursor: pointer; transition: color .2s; }
.qpf-tabs__tab::after { content: ""; position: absolute; inset-inline: 0; bottom: -1px; height: 2px; background: transparent; transition: background-color .2s; }
.qpf-tabs__tab:hover { color: var(--e-global-color-primary, #003A65); }
.qpf-tabs__tab.is-active { color: var(--e-global-color-4d7b7af, #051435); }
.qpf-tabs__tab.is-active::after { background: var(--e-global-color-secondary, #FDC72F); }
.qpf-tabs__tab:focus-visible { outline: 3px solid var(--e-global-color-secondary, #FDC72F); outline-offset: 2px; border-radius: 6px; }
.qpf-tabs__panel { padding-block-start: 6px; }
/* rows */
.qpf-row { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 20px; padding: 24px 0; border-bottom: 1px solid rgba(5, 20, 53, .1); }
.qpf-row h3.qpf-row__title { margin: 0; font-family: "Bitter", serif; font-size: 20px; line-height: 1.35; font-weight: 600; color: var(--e-global-color-4d7b7af, #051435); }
.qpf-row__empty { font-size: 14px; color: #8A9099; }
.qpf-row__body { flex-basis: 100%; padding-block-start: 10px; }
.qpf-row__body p { margin: 0 0 14px; font-size: 16px; line-height: 1.85; color: var(--e-global-color-text, #4C4C4C); }
.qpf-row__body p.qpf-lead { font-family: "Bitter", serif; font-size: 19px; line-height: 1.75; color: var(--e-global-color-4d7b7af, #051435); }
.qpf-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 0; padding: 0; list-style: none; }
.qpf-tags li { padding: 5px 12px; border-radius: 6px; border: 1px solid rgba(154, 107, 0, .35); font-size: 14px; color: #7A5B00; }
.qpf-tl { margin: 0; padding: 0; list-style: none; }
.qpf-tl li { position: relative; display: flex; flex-direction: column; gap: 2px; padding-block: 0 18px; padding-inline-start: 26px; border-inline-start: 1px solid rgba(154, 107, 0, .3); }
.qpf-tl li:last-child { padding-block-end: 0; border-inline-start-color: transparent; }
.qpf-tl li::before { content: ""; position: absolute; inset-inline-start: -5px; top: 7px; width: 9px; height: 9px; border-radius: 50%; background: #fff; border: 2px solid #B8860B; box-sizing: border-box; }
.qpf-tl li:last-child::after { content: ""; position: absolute; inset-inline-start: -1px; top: 0; height: 8px; border-inline-start: 1px solid rgba(154, 107, 0, .3); }
.qpf-tl__when { font-size: 13px; font-weight: 700; color: #9A6B00; font-variant-numeric: tabular-nums; }
.qpf-tl__title { font-size: 16.5px; font-weight: 600; line-height: 1.55; color: var(--e-global-color-4d7b7af, #051435); }
.qpf-tl__meta { font-size: 14.5px; color: #5B6470; }
.qpf-group + .qpf-group { margin-block-start: 18px; }
.qpf-row__body h4.qpf-sub { margin: 0 0 10px; font-family: inherit; font-size: 15px; font-weight: 700; color: var(--e-global-color-primary, #003A65); }
.qpf-bullets { margin: 0; padding: 0; list-style: none; }
.qpf-bullets li { position: relative; margin: 0 0 10px; padding-inline-start: 20px; font-size: 16px; line-height: 1.75; color: var(--e-global-color-text, #4C4C4C); }
.qpf-bullets li::before { content: ""; position: absolute; inset-inline-start: 0; top: .72em; width: 6px; height: 6px; background: #B8860B; transform: rotate(45deg); }
.qpf-courses { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 0; padding: 0; list-style: none; }
.qpf-courses li { display: flex; flex-direction: column; gap: 3px; padding: 14px 16px; border-radius: 10px; border: 1px solid rgba(5, 20, 53, .08); background: #fff; }
.qpf-code { font-size: 12.5px; font-weight: 700; color: #9A6B00; }
.qpf-courses__title { font-weight: 600; color: var(--e-global-color-4d7b7af, #051435); }
.qpf-courses__level { font-size: 13.5px; color: #5B6470; }
.qpf-pubs { margin: 0; padding: 0; list-style: none; }
.qpf-pubs li { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 18px; padding-block: 12px; border-bottom: 1px solid rgba(5, 20, 53, .07); }
.qpf-pubs li:last-child { border-bottom: 0; }
.qpf-pubs__year { font-family: "Bitter", serif; font-size: 18px; font-weight: 600; color: #9A6B00; }
.qpf-pubs__body { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.qpf-pubs__kind { font-size: 12px; font-weight: 700; color: #7A5B00; }
.qpf-pubs__title { font-weight: 600; line-height: 1.55; color: var(--e-global-color-4d7b7af, #051435); overflow-wrap: anywhere; }
.qpf-pubs__title a { color: inherit; text-decoration: underline; text-underline-offset: 4px; text-decoration-color: rgba(154, 107, 0, .6); }
.qpf-pubs__meta { font-size: 14px; color: #5B6470; }
.qpf-links { display: flex; flex-wrap: wrap; gap: 10px 24px; margin: 0; padding: 0; list-style: none; }
.qpf-links a { font-weight: 600; color: var(--e-global-color-primary, #003A65); text-decoration: underline; text-underline-offset: 4px; text-decoration-color: rgba(154, 107, 0, .6); }
.qpf a:focus-visible { outline: 3px solid var(--e-global-color-secondary, #FDC72F); outline-offset: 2px; }
.qpf .qsf-team { margin-block-start: 72px; }
@media (max-width: 1024px) {
  .qpf-hero__row { grid-template-columns: 200px minmax(0, 1fr); gap: 32px; }
  .qpf h1.qpf-name { font-size: 38px; }
}
@media (max-width: 767px) {
  .qpf .elementor-element.elementor-element-41175fa { --padding-bottom: 118px; }
  .qpf .elementor-element.elementor-element-41175fa::after { width: 420px; height: 420px; inset-inline-end: -160px; }
  .qpf-back { margin-block-end: 18px; }
  .qpf-hero__row { grid-template-columns: minmax(0, 1fr); gap: 22px; justify-items: center; text-align: center; }
  .qpf-photo { width: min(72%, 260px); }
  .qpf h1.qpf-name { font-size: 30px; }
  .qpf-orn { margin-inline: auto; }
  .qpf-wrap { padding: 0 14px 72px; }
  .qpf-facts { grid-template-columns: minmax(0, 1fr); margin-block-start: -58px; padding: 14px 20px 6px; }
  .qpf-tabs { margin-block-start: 30px; }
  .qpf-tabs__list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; }
  .qpf-tabs__tab { padding: 12px 4px; font-size: 14px; }
  .qpf-row h3.qpf-row__title { font-size: 18px; }
  .qpf-courses { grid-template-columns: minmax(0, 1fr); }
  .qpf-pubs li { grid-template-columns: 48px minmax(0, 1fr); gap: 12px; }
}

/* ---- Opened announcement row (EventCards.tsx RowPanel). Owner, 25 Nov: the navy gradient panel with a boxed countdown and
   tinted icon tiles looked foreign ("so out of the design of the website"); he picked option 9 of ten: the price and the
   places left in large type, the date, time and department beside them between two hairlines, the text, then the
   site's yellow button and a one-line countdown. No panel, no tiles, no gradient. ---- */
.qevr-x { padding: 2px 4px 34px; padding-inline-start: 118px; color: var(--e-global-color-text, #4C4C4C); }
.qevr-top { display: grid; grid-template-columns: auto minmax(0, 1fr); margin: 0 0 20px; border-block: 1px solid rgba(5, 20, 53, .14); }
.qevr-top.no-price { grid-template-columns: minmax(0, 1fr); }
.qevr-price { display: flex; flex-direction: column; justify-content: center; gap: 4px; padding: 16px 0; padding-inline-end: 30px; margin-inline-end: 30px; border-inline-end: 1px solid rgba(5, 20, 53, .14); }
.qevr-price b { font-family: "Bitter", serif; font-size: 32px; line-height: 1.15; font-weight: 600; color: var(--e-global-color-primary, #003A65); white-space: nowrap; }
.qevr-price b small { font-size: 16px; font-weight: 700; }
.qevr-price span { font-size: 14px; font-weight: 700; color: #1B6B2D; }
.qevr-facts { display: flex; flex-direction: column; justify-content: center; gap: 6px; margin: 0; padding: 16px 0; list-style: none; }
.qevr-facts li { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 15px; line-height: 1.5; color: var(--e-global-color-4d7b7af, #051435); white-space: nowrap; }
.qevr-facts i, .qevr-orig-place i { flex: none; color: var(--e-global-color-primary, #003A65); opacity: .7; font-size: 17px; }
.qevr-text { margin: 0 0 20px; font-size: 16px; line-height: 1.75; color: var(--e-global-color-text, #4C4C4C); }
.qevr-poster { display: block; width: 100%; max-width: 420px; height: auto; margin: 0 0 20px; border-radius: 14px; }
.qevr-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 26px; }
.qevr-foot .qala-evf-register { min-height: 44px; padding: 0 26px; font-size: 15px; }
.qevr-foot .qala-evf-register i { display: none; }
@media (max-width: 767px) {
  .qevr-x { padding: 0 0 26px; }
  .qevr-top { grid-template-columns: minmax(0, 1fr); }
  .qevr-price { padding: 14px 0 0; margin: 0; border: 0; }
  .qevr-facts li { white-space: normal; }
}

/* ---- Text written in another language than the page (the ERP's authors write an event's title, text and place in one
   language): it stands in its own block under a plain note in the page's language, never mixed into the facts. ---- */
.qala-evf-orig { margin: 0 0 20px; }
.qala-evf-orig-note { display: flex; align-items: center; gap: 8px; margin: 0 0 6px; font-size: 13.5px; font-weight: 600; line-height: 1.5; color: #7A5B00; }
.qala-evf-orig-note i { font-size: 16px; }
.qala-evf-orig-body p { margin: 0 0 4px; font-size: 16px; line-height: 1.75; color: var(--e-global-color-text, #4C4C4C); }
.qala-evf-orig-body .qevr-orig-place { display: flex; align-items: center; gap: 6px; font-size: 15px; color: var(--e-global-color-4d7b7af, #051435); }
[dir="rtl"] .qala-evf-orig-body[dir="ltr"] p { text-align: right; }
[dir="rtl"] .qala-evf-orig-body[dir="ltr"] .qevr-orig-place { justify-content: flex-end; }
[dir="ltr"] .qala-evf-orig-body[dir="rtl"] p { text-align: left; }
[dir="ltr"] .qala-evf-orig-body[dir="rtl"] .qevr-orig-place { justify-content: flex-end; }
.qala-evf-card .qala-evf-orig { margin: 0; }
.qala-evf-card .qala-evf-orig-body p:not(.qevr-orig-place) { font-size: 15px; line-height: 1.65; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* ---- The time left, one quiet line (EventCountdown.tsx), on the cards and in the opened row. ---- */
.qala-evf-timer, .qala-evf-home .qala-evf-timer { display: flex; flex-direction: row; justify-content: flex-start; align-items: center; text-align: start; gap: 8px; margin: 0; padding: 0; border-radius: 0; background: none; font-size: 15px; font-weight: 400; line-height: 1.5; color: var(--e-global-color-text, #4C4C4C); }
.qala-evf-timer i { flex: none; color: var(--e-global-color-primary, #003A65); font-size: 18px; }
.qala-evf-timer b { font-weight: 700; color: var(--e-global-color-4d7b7af, #051435); }

/* ---- No drop shadows (owner, 25 Nov: "remove all the undershadow on the cards… it make things so ai slopes"). Cards and
   panels stand off the page with a hairline border instead; the menus keep their faint dropdown shadow so they stay
   readable over the page. ---- */
.elementor .elementor-element, .elementor .elementor-element > .e-con-inner,
.rs-button, .rs-programs .single-item, .rs-iconbox-area .box-inner, .rs-image img, .rs-faculty-members .faculty-member,
.e-n-accordion-item, .rs-programs-directory .directory-box, .rs-programs-directory .directory-box .programs-list a,
.rs-academic-filter-area .filter-item, .filter-load-more, .rs-testimonial-slider .testimonial-inner, .rs-testimonial-slider .vendor-img,
#rs-scroll-to-top, .qala-evf-card, .qpf-facts, .qpf-photo, .qlb-photo, .qevr-icon { box-shadow: none !important; }
.rs-faculty-members .faculty-member, .qala-evf-card { border: 1px solid rgba(5, 20, 53, .08); }
.qpf-facts { border: 1px solid rgba(5, 20, 53, .08); border-top: 3px solid var(--e-global-color-secondary, #FDC72F); }
.qevr-icon { border: 1px solid rgba(5, 20, 53, .1); }

/* ---- About / unit pages (doc 1238): the round crest badge between the two photos. In right-to-left pages the theme
   anchors it from the right but still shifts it by -50%, which put it over one photo; anchor it from the left everywhere. ---- */
body.rtl .elementor-1238 .elementor-element.elementor-element-d2934eb.elementor-widget { right: auto; left: 50%; }

/* ---- Staff profile on wide screens (owner, 25 Nov: "this is so small… can you make it wider a little"): the band and
   the body use most of the width, with a larger photo, name, facts (three columns) and tab text. Phones are unchanged. ---- */
@media (min-width: 1280px) {
  .qpf .elementor-element.elementor-element-41175fa > .e-con-inner, .qpf-wrap { max-width: min(1520px, 88vw); }
  .qpf .elementor-element.elementor-element-41175fa { --padding-bottom: 170px; }
  .qpf .elementor-element.elementor-element-41175fa::after { width: 780px; height: 780px; }
  .qpf-back { font-size: 15px; }
  .qpf-hero__row { grid-template-columns: 300px minmax(0, 1fr); gap: 64px; }
  .qpf h1.qpf-name { font-size: 60px; }
  .qpf-orn { width: 140px; margin-block: 22px 18px; }
  .qpf-post { font-size: 17px; }
  [dir="rtl"] .qpf-post { font-size: 21px; }
  .qpf-college { font-size: 18px; }
  .qpf-facts { grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 52px; margin-block-start: -112px; padding: 30px 46px 16px; }
  .qpf-facts > div { padding-block: 18px; }
  .qpf-facts dt { font-size: 14.5px; }
  .qpf-facts dd { font-size: 18px; }
  .qpf-tabs { margin-block-start: 56px; }
  .qpf-tabs__list { gap: 6px 44px; }
  .qpf-tabs__tab { padding: 16px 6px; font-size: 17px; }
  .qpf-row { padding-block: 28px; }
  .qpf-row h3.qpf-row__title { font-size: 23px; }
  .qpf-row__empty { font-size: 15px; }
  .qpf-row__body p { font-size: 17.5px; }
  .qpf-row__body p.qpf-lead { font-size: 21px; }
  .qpf-tl__title { font-size: 18px; }
  .qpf-tl__meta, .qpf-bullets li { font-size: 16px; }
}
/* The band has no bottom padding of its own: the hero keeps the room the overlapping facts card needs (photo stays clear). */
.qpf-hero { padding-block-end: 132px; }
@media (min-width: 1280px) { .qpf-hero { padding-block-end: 160px; } }
@media (max-width: 767px) { .qpf-hero { padding-block-end: 88px; } }

/* ---- Sticky header on phones (owner, 25 Nov): the theme's phone layout keeps a 20px top margin on the sticky bar, so when
   it is pinned the page showed through above it. The pinned bar sits flush with the top of the screen at every width. ---- */
.rstb-header .elementor-element.elementor-element-1b1752d.rstb-sticky-up { margin-top: 0 !important; }

/* ---- Page banners (owner, 25 Nov: "REMOVE THESE"): the theme's translucent white angled "arrow" image (bnr-arrow-*.png)
   that sat over every page-header photo is gone from all banners, in every language and at every width. ---- */
img[src*="/bnr-arrow-"],
.elementor-absolute:has(img[src*="/bnr-arrow-"]) { display: none !important; }
