/* ----------------------------------------------------------------
	Structure shared by the institution pages. Colours, type and shapes
	come from each page's own stylesheet through the variables below.
-----------------------------------------------------------------*/
:root {
	--bg: #fff; --ink: #14222b; --muted: #55646d; --accent: #0f6b4f; --on-accent: #fff;
	--line: rgba(0, 0, 0, .1); --card: #fff; --radius: 16px; --btn-radius: 50px;
	--font-head: Georgia, serif; --font-body: system-ui, sans-serif;
	--site-side: max(clamp(16px, 4vw, 80px), calc((100% - 1760px) / 2));
	--head-bg: #fff; --head-ink: var(--ink);
	--foot-bg: #10181d; --foot-ink: #b9c6cc; --foot-head: #fff;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font-body); font-size: 16px; line-height: 1.75; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, svg { max-width: 100%; }
img { display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.18; margin: 0 0 .55em; text-wrap: balance; }
p { margin: 0 0 1em; text-wrap: pretty; }
ul, ol { list-style: none; margin: 0; padding: 0; }
[id] { scroll-margin-top: 96px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
/* same left and right lines for the header and every section, matching the main website */
.w { width: 100%; padding-inline: var(--site-side); }
.sec { position: relative; padding: 96px 0; }
.ico { width: 1.25em; height: 1.25em; flex: none; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 12px; top: 12px; z-index: 99; background: #fff; color: #000; padding: 10px 16px; }
[dir="rtl"] { font-family: "Amiri", "Noto Naskh Arabic", serif; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; padding: 12px 28px; border: 2px solid var(--accent); border-radius: var(--btn-radius); background: var(--accent); color: var(--on-accent); font: 600 15px/1.3 var(--font-body); cursor: pointer; transition: transform .2s, box-shadow .2s, background .2s, color .2s; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(0, 0, 0, .18); }
.btn-line { background: transparent; color: var(--accent); }
.btn-line:hover { background: var(--accent); color: var(--on-accent); }
.actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- Main website bar ---------- */
.ub { background: #0b1418; color: #c3d0d6; font: 500 12.5px/1 var(--font-body); }
.ub .w { display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 40px; }
.ub nav { display: flex; gap: 20px; }
.ub a:hover { color: #fff; }

/* ---------- Header ---------- */
.hd { position: sticky; top: 0; z-index: 50; background: var(--head-bg); color: var(--head-ink); border-bottom: 1px solid var(--line); transition: box-shadow .25s; }
.hd.is-scrolled { box-shadow: 0 10px 30px rgba(0, 0, 0, .12); }
.hd > .w { display: flex; align-items: center; gap: 24px; min-height: 80px; }
.brand { display: flex; align-items: center; gap: 12px; min-width: 0; }
.brand-mark { display: grid; place-items: center; flex: none; width: 50px; height: 50px; border-radius: 14px; background: #fff; box-shadow: 0 4px 14px rgba(0, 0, 0, .12); }
.brand-mark svg { width: 36px; height: 36px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.25; }
.brand-text b { font-family: var(--font-head); font-size: 18px; }
.brand-text small { font-size: 12px; opacity: .72; }
.hd-nav { display: flex; align-items: center; gap: 28px; margin-left: auto; }
.hd-nav ul { display: flex; gap: 24px; }
.hd-nav ul a { display: block; padding: 8px 0; font-size: 14.5px; font-weight: 600; border-bottom: 2px solid transparent; }
.hd-nav ul a:hover { border-bottom-color: var(--accent); }
.hd-cta { min-height: 44px; padding: 10px 22px; font-size: 14px; white-space: nowrap; }
.menu-btn { display: none; margin-left: auto; width: 46px; height: 46px; border: 1px solid currentColor; border-radius: 12px; background: transparent; color: inherit; font-size: 20px; place-items: center; cursor: pointer; }

/* ---------- Contact list ---------- */
.clist li { display: flex; gap: 14px; align-items: flex-start; padding: 12px 0; }
.clist .ico { margin-top: 5px; font-size: 17px; color: var(--accent); }
.clist div { min-width: 0; }
.clist small { display: block; font-size: 11.5px; letter-spacing: 1.2px; text-transform: uppercase; opacity: .68; }
.clist a, .clist span { font-weight: 600; word-break: break-word; }
.clist a:hover { text-decoration: underline; }

/* ---------- Enquiry form ---------- */
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form .full { grid-column: 1 / -1; }
.form label { display: flex; flex-direction: column; gap: 6px; margin: 0; font-size: 13.5px; font-weight: 600; }
.form input, .form select, .form textarea { width: 100%; padding: 13px 15px; border: 1.5px solid var(--line); border-radius: min(var(--radius), 14px); background: var(--card); color: var(--ink); font: 400 15px/1.4 var(--font-body); }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--accent); }
.form textarea { resize: vertical; }
.form-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.form-note { margin: 0; font-size: 13px; opacity: .7; }
.form-trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin: 0; padding: 12px 16px; border: 1px solid transparent; border-radius: 10px; font-size: 14px; font-weight: 600; line-height: 1.5; }
.form-status:empty { display: none; }
.form-status.is-wait { background: #f1f4f7; border-color: #d5dee6; color: #334155; }
.form-status.is-ok { background: #e7f6ec; border-color: #a9dcb8; color: #14602f; }
.form-status.is-error { background: #fdeaea; border-color: #f2bcbc; color: #9b1c1c; }
/* the status colours win over each design's own paragraph colour */
main .form p.form-status.form-status.is-wait { color: #334155; }
main .form p.form-status.form-status.is-ok { color: #14602f; }
main .form p.form-status.form-status.is-error { color: #9b1c1c; }

/* ---------- Footer ---------- */
.ft { background: var(--foot-bg); color: var(--foot-ink); padding-top: 72px; font-size: 14.5px; }
.ft h4 { color: var(--foot-head); font-size: 16px; margin-bottom: 16px; }
.ft .brand { color: var(--foot-head); }
.ft-grid { display: grid; grid-template-columns: 1.3fr .8fr 1.1fr; gap: 48px; padding-bottom: 48px; }
.ft-blurb { margin-top: 18px; max-width: 340px; }
.ft-links li { padding: 5px 0; }
.ft-links a:hover, .ft-base a:hover { color: var(--foot-head); }
.ft .clist li { padding: 7px 0; }
.ft .clist .ico { color: inherit; }
.ft-family { padding-block: 32px; border-top: 1px solid rgba(255, 255, 255, .12); }
.ft-family ul { display: flex; flex-wrap: wrap; gap: 10px; }
.ft-family a { display: inline-flex; align-items: center; gap: 9px; padding: 8px 15px; border: 1px solid rgba(255, 255, 255, .16); border-radius: var(--btn-radius); font-size: 13.5px; }
.ft-family a::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--o); box-shadow: 0 0 0 2px rgba(255, 255, 255, .35); }
.ft-family a:hover, .ft-family a[aria-current] { background: rgba(255, 255, 255, .12); color: var(--foot-head); }
.ft-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; padding-block: 22px 28px; border-top: 1px solid rgba(255, 255, 255, .12); font-size: 13px; }

/* ---------- Motion ---------- */
.js .rv { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.js .rv.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { animation: none !important; transition: none !important; }
	.js .rv { opacity: 1; transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1140px) {
	.menu-btn { display: grid; }
	.hd-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 14px; margin: 0; padding: 16px var(--site-side) 22px; background: var(--head-bg); border-bottom: 1px solid var(--line); box-shadow: 0 20px 30px rgba(0, 0, 0, .16); }
	.hd.is-open .hd-nav { display: flex; }
	.hd-nav ul { flex-direction: column; gap: 0; }
	.hd-nav ul a { padding: 12px 0; border-bottom: 1px solid var(--line); }
}
@media (max-width: 860px) {
	.sec { padding: 68px 0; }
	.ft-grid { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 560px) {
	.sec { padding: 54px 0; }
	.ub nav a:not(:last-child) { display: none; }
	.form { grid-template-columns: 1fr; }
	.actions .btn, .form-actions .btn { width: 100%; }
}

/* Pictures uploaded in the admin panel */
.brand-mark img { width: 100%; height: 100%; object-fit: contain; border-radius: inherit; }
/* a logo gets a white plate as wide as the logo itself, whatever shape the page uses for emblems */
.brand .brand-mark.has-logo { width: auto; height: 62px; padding: 4px 8px; background: #fff; border-radius: min(var(--radius), 12px); }
.brand .brand-mark.has-logo img { width: auto; height: 54px; max-width: 130px; }
@media (max-width: 560px) {
	.brand .brand-mark.has-logo { height: 50px; padding: 3px 6px; }
	.brand .brand-mark.has-logo img { height: 44px; max-width: 90px; }
}

/* Large picture inside a section */
.ix-photo { max-width: 1120px; margin: 56px auto 0; }
.ix-photo img { width: 100%; height: auto; }
.ix-photo figcaption { margin-top: 14px; color: var(--muted); font-size: 13px; text-align: center; }

/* Banner picture slider; the page's own wrapper sets its size and place */
.ix-slider, .ix-slide { position: absolute; top: 0; right: 0; bottom: 0; left: 0; }
.ix-slide { background-size: cover; background-position: center; opacity: 0; transition: opacity 1.2s ease; }
.ix-slide.is-on { opacity: 1; }
.ix-dots { position: absolute; z-index: 3; right: var(--site-side); bottom: 16px; display: flex; gap: 8px; }
.ix-dots button { width: 30px; height: 24px; padding: 9px 0; border: 0; background: rgba(255, 255, 255, .45) content-box; cursor: pointer; }
.ix-dots button[aria-pressed="true"] { background-color: #fff; }
.ix-banner { display: block; width: 100%; max-width: 520px; margin-inline: auto 0; border-radius: var(--radius, 20px); object-fit: cover; }
@media (max-width: 860px) { .ix-banner { margin-inline: auto; } }
