/* Medway Training — main stylesheet
   Layout concept: a clinical course roster. Petrol-blue grounds, signal-red
   for action, course codes set like chart labels, an ECG trace as the one flourish. */
:root {
	--petrol: #243235;
	--petrol-deep: #182326;
	--signal: #1a7f82;
	--signal-dark: #13666a;
	--ink: #2b3133;
	--muted: #56676a;
	--line: #cfe5e5;
	--paper: #ffffff;
	--wash: #e9f6f6;
	--mint: #48c2c5;
	--teal-2: #349a9a;
	--ok: #1f7a4d;

--f-display: "Archivo", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
	--f-body: "Source Sans 3", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

	--step--1: 0.875rem;
	--step-0: 1.0625rem;
	--step-1: 1.25rem;
	--step-2: 1.6rem;
	--step-3: clamp(1.9rem, 1.4rem + 2vw, 2.6rem);
	--step-4: clamp(2.4rem, 1.6rem + 3.6vw, 4rem);

	--radius: 6px;
	--wrap: 1180px;
	--gutter: clamp(16px, 4vw, 32px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body {
	margin: 0;
	background: var(--paper);
	color: var(--ink);
	font-family: var(--f-body);
	font-size: var(--step-0);
	line-height: 1.6;
	overflow-x: hidden;
}
img, iframe, video { max-width: 100%; height: auto; }
a { color: var(--petrol); text-underline-offset: 3px; }
a:hover { color: var(--signal); }
:focus-visible { outline: 3px solid var(--signal); outline-offset: 2px; }
h1, h2, h3, h4 { font-family: var(--f-display); line-height: 1.15; text-wrap: balance; margin: 0 0 .5em; letter-spacing: -0.01em; }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.screen-reader-text, .hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--signal); color: #fff; padding: 8px 14px; border-radius: var(--radius); }
.skip-link:focus { left: 8px; color: #fff; }

/* Buttons */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: .5em;
	font-family: var(--f-display); font-weight: 700; font-size: 1rem; letter-spacing: .01em;
	padding: .8em 1.4em; border-radius: var(--radius); border: 2px solid transparent;
	text-decoration: none; cursor: pointer; transition: background .15s, color .15s, border-color .15s;
}
.btn-primary { background: var(--signal); color: #fff; }
.btn-primary:hover { background: var(--signal-dark); color: #fff; }
.btn-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.55); }
.btn-light:hover { background: #fff; color: var(--petrol); }
.section:not(.section-dark) .btn-light, .page-layout .btn-light { color: var(--petrol); border-color: var(--petrol); }
.btn-ghost { background: transparent; color: var(--petrol); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--petrol); color: var(--petrol); }
.btn-block { display: flex; width: 100%; }

.eyebrow {
	font-family: var(--f-display); font-weight: 700; font-size: var(--step--1);
	text-transform: uppercase; letter-spacing: .12em; color: var(--signal); margin: 0 0 .6rem;
}

/* Topbar + header */
.topbar { background: var(--petrol-deep); color: #c9dcdd; font-size: var(--step--1); }
.topbar-inner { display: flex; flex-wrap: wrap; gap: .25rem 1.5rem; justify-content: space-between; padding-block: .45rem; }
.topbar a { color: #fff; text-decoration: none; }
.topbar-contacts { display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; }
@media (max-width: 640px) { .topbar-loc { display: none; } }

.site-header { position: sticky; top: 0; z-index: 50; background: var(--paper); border-bottom: 1px solid var(--line); }
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 0; position: relative; } }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 72px; }
.brand { display: inline-flex; align-items: center; gap: .65rem; text-decoration: none; color: var(--ink); }
.brand-mark {
	display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
	background: var(--signal); color: #fff; font-family: var(--f-display); font-weight: 800; font-size: 1.6rem; line-height: 1; padding-bottom: 4px;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-family: var(--f-display); font-weight: 800; font-size: 1.3rem; letter-spacing: .06em; font-stretch: 112%; }
.brand-sub { font-size: .78rem; color: var(--muted); letter-spacing: .02em; }
.custom-logo, .brand-img img { max-height: 60px; width: auto; display: block; }
.site-footer .brand-img img { max-height: 64px; }

.site-nav { display: flex; align-items: center; gap: 1.25rem; }
.site-nav .menu { list-style: none; margin: 0; padding: 0; display: flex; gap: .25rem; }
.site-nav .menu > li { position: relative; }
.site-nav .menu a { display: block; padding: .6rem .75rem; text-decoration: none; color: var(--ink); font-weight: 600; border-radius: var(--radius); }
.site-nav .menu a:hover, .site-nav .current-menu-item > a { color: var(--signal); }
.site-nav .sub-menu {
	list-style: none; margin: 0; padding: .5rem; position: absolute; top: 100%; left: 0; min-width: 300px;
	background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 14px 30px rgba(24,35,38,.12);
	opacity: 0; visibility: hidden; transform: translateY(6px); transition: .15s;
}
.site-nav .menu > li:hover > .sub-menu, .site-nav .menu > li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.site-nav .sub-menu a { font-weight: 500; padding: .45rem .7rem; }
.site-nav .sub-menu a:hover { background: var(--wash); }
.menu-item-has-children > a::after { content: "▾"; font-size: .7em; margin-left: .35em; }

.nav-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: var(--radius); width: 46px; height: 42px; cursor: pointer; }
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after { display: block; width: 20px; height: 2px; background: var(--ink); margin: 0 auto; position: relative; content: ""; }
.nav-toggle-bars::before { position: absolute; top: -6px; }
.nav-toggle-bars::after { position: absolute; top: 6px; }

@media (max-width: 1020px) {
	.nav-toggle { display: block; }
	.site-nav {
		display: none; position: absolute; left: 0; right: 0; top: 100%;
		background: var(--paper); border-bottom: 1px solid var(--line);
		flex-direction: column; align-items: stretch; padding: .75rem var(--gutter) 1.25rem;
		max-height: calc(100vh - 110px); overflow-y: auto;
	}
	.site-nav.is-open { display: flex; }
	.site-nav .menu { flex-direction: column; }
	.site-nav .sub-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; border-left: 2px solid var(--line); border-radius: 0; margin-left: .75rem; padding: 0 0 0 .5rem; min-width: 0; }
}

/* Hero */
.hero { position: relative; background: var(--petrol); color: #fff; overflow: hidden; }
.hero::before {
	content: ""; position: absolute; inset: 0; pointer-events: none;
	background: radial-gradient(circle at 85% 20%, rgba(72,194,197,.28), transparent 45%), radial-gradient(circle at 10% 90%, rgba(52,154,154,.25), transparent 40%), url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20width%3D%2272%22%20height%3D%2272%22%3E%3Cg%20fill%3D%22%2348c2c5%22%20fill-opacity%3D%22.09%22%3E%3Crect%20x%3D%2231%22%20y%3D%2220%22%20width%3D%2210%22%20height%3D%2232%22%20rx%3D%225%22/%3E%3Crect%20x%3D%2220%22%20y%3D%2231%22%20width%3D%2232%22%20height%3D%2210%22%20rx%3D%225%22/%3E%3C/g%3E%3C/svg%3E");
}
.hero-inner { position: relative; display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4rem); padding-block: clamp(3rem, 7vw, 5.5rem) clamp(4.5rem, 8vw, 6.5rem); align-items: center; }
.hero .eyebrow { color: var(--mint); }
.hero-title { font-size: var(--step-4); font-weight: 800; font-stretch: 110%; letter-spacing: -0.02em; margin-bottom: .4em; }
.hero-title span { display: block; color: var(--mint); }
.hero-lead { font-size: var(--step-1); color: #d5e6e6; max-width: 36em; margin: 0 0 1.75rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.hero-pathways { list-style: none; padding: 0; margin: 2rem 0 0; display: flex; flex-wrap: wrap; gap: .4rem; }
.hero-pathways li { font-family: var(--f-display); font-weight: 700; font-size: .8rem; letter-spacing: .08em; padding: .3rem .6rem; border: 1px solid rgba(255,255,255,.3); border-radius: 3px; color: #e8f2f2; }

.hero-card { background: var(--paper); color: var(--ink); border-radius: 10px; padding: 1.25rem 1.25rem .5rem; box-shadow: 0 30px 60px rgba(0,0,0,.25); min-width: 0; }
.hero-card-label { font-family: var(--f-display); font-weight: 700; font-size: var(--step--1); text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin: 0 0 .5rem; }
.roster { list-style: none; margin: 0; padding: 0; }
.roster li + li { border-top: 1px solid var(--line); }
.roster a { display: grid; grid-template-columns: 4.2rem minmax(0, 1fr); grid-template-rows: auto auto; column-gap: .9rem; padding: .8rem 0; text-decoration: none; color: var(--ink); }
.roster-code { grid-row: 1 / span 2; align-self: center; font-family: var(--f-display); font-weight: 800; font-stretch: 115%; color: var(--signal); font-size: 1.05rem; }
.roster-name { font-weight: 700; line-height: 1.25; }
.roster-path { font-size: var(--step--1); color: var(--muted); }
.roster a:hover .roster-name { color: var(--signal); }

.ecg { position: absolute; left: 0; right: 0; bottom: 6px; width: 100%; height: 70px; }
.ecg path { fill: none; stroke: var(--mint); stroke-width: 2.5; stroke-linejoin: round; stroke-dasharray: 1600; stroke-dashoffset: 0; animation: ecg 3.2s ease-out 1; }
@keyframes ecg { from { stroke-dashoffset: 1600; } to { stroke-dashoffset: 0; } }

@media (max-width: 860px) {
	.hero-inner { grid-template-columns: 1fr; }
}

/* Stats */
.stats { background: var(--petrol-deep); color: #fff; }
.stats-inner { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1.25rem 2rem; padding-block: 1.75rem; }
.stat { display: flex; flex-direction: column; gap: .15rem; border-left: 2px solid var(--signal); padding-left: .9rem; }
.stat-num { font-family: var(--f-display); font-weight: 800; font-size: var(--step-3); line-height: 1; font-variant-numeric: tabular-nums; font-stretch: 108%; }
.stat-label { color: #bcd2d3; font-size: var(--step--1); }
a.stat-label { color: #fff; }
.stars { color: #f5b301; font-size: 1.4rem; letter-spacing: .1em; line-height: 1.2; }

/* Sections */
.section { padding-block: clamp(3.5rem, 7vw, 6rem); }
.section-pad { padding-block: clamp(2.5rem, 5vw, 4rem); }
.section-tint { background: var(--wash); }
.section-dark { background: var(--petrol); color: #fff; }
.section-dark .eyebrow { color: var(--mint); }
.section-head { max-width: 46rem; margin-bottom: 2.5rem; }
.section-title { font-size: var(--step-3); font-weight: 800; }
.section-lead { color: var(--muted); font-size: var(--step-1); margin: 0; }
.section-dark .section-lead { color: #cfe1e1; }

/* Courses */
.course-groups { display: grid; gap: 2.75rem; }
.course-group-title { display: flex; align-items: center; gap: .6rem; font-size: var(--step-1); font-weight: 700; padding-bottom: .6rem; border-bottom: 2px solid var(--ink); }
.course-group-title .count { font-size: .8rem; font-weight: 700; background: var(--wash); color: var(--muted); border-radius: 99px; padding: .1rem .55rem; }
.course-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 1.25rem; margin-top: 1.25rem; }
.course-card {
	display: flex; flex-direction: column; gap: .5rem; padding: 1.4rem; text-decoration: none; color: var(--ink);
	border: 1px solid var(--line); border-radius: 10px; background: var(--paper); transition: border-color .15s, transform .15s, box-shadow .15s;
}
.course-card:hover { border-color: var(--petrol); transform: translateY(-3px); box-shadow: 0 12px 26px rgba(36,50,53,.1); color: var(--ink); }
.course-code { font-family: var(--f-display); font-weight: 800; font-stretch: 115%; color: var(--signal); letter-spacing: .04em; font-size: .95rem; }
.course-name { font-family: var(--f-display); font-weight: 700; font-size: var(--step-1); line-height: 1.2; }
.course-summary { color: var(--muted); font-size: .98rem; }
.course-meta { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: auto; padding-top: .5rem; }
.course-pathway, .course-for { font-size: .8rem; font-weight: 600; padding: .2rem .55rem; border-radius: 3px; }
.course-pathway { background: var(--petrol); color: #fff; letter-spacing: .04em; }
.course-for { background: var(--wash); color: var(--petrol); }
.course-more { font-weight: 700; color: var(--petrol); font-size: .95rem; }
.course-card:hover .course-more { color: var(--signal); }

/* Method */
.method { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 1.5rem; counter-reset: step; }
.method li { counter-increment: step; position: relative; padding: 1.5rem 1.5rem 1.25rem; background: var(--paper); border-top: 4px solid var(--petrol); border-radius: 0 0 var(--radius) var(--radius); }
.method li:last-child { border-top-color: var(--signal); }
.method-step { display: block; font-family: var(--f-display); font-weight: 800; font-size: var(--step-2); }
.method-step::before { content: counter(step) " · "; color: var(--signal); }
.method p { margin: .4rem 0 0; color: var(--muted); }

/* Accreditation */
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: 10px; }
.accred-table { width: 100%; border-collapse: collapse; min-width: 560px; }
.accred-table th, .accred-table td { text-align: left; padding: .9rem 1.1rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.accred-table tbody tr:last-child > * { border-bottom: 0; }
.accred-table thead th { font-family: var(--f-display); font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); background: var(--wash); }
.accred-table tbody th { font-family: var(--f-display); font-weight: 800; font-stretch: 112%; color: var(--signal); white-space: nowrap; }
.accred-table td:last-child { color: var(--muted); }
.accred-numbers { list-style: none; margin: 1.25rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.accred-numbers li { font-size: .9rem; font-weight: 600; padding: .35rem .7rem; background: var(--wash); border-radius: 3px; font-variant-numeric: tabular-nums; }

/* About band */
.about-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 2rem 4rem; align-items: start; }
.about-copy p { color: #d8e8e8; margin: 0 0 1rem; }
.about-copy .btn { margin-top: .5rem; }
.sectors { list-style: none; margin: 3rem 0 0; padding: 1.5rem 0 0; border-top: 1px solid rgba(255,255,255,.18); display: flex; flex-wrap: wrap; gap: .5rem 1.75rem; }
.sectors li { font-family: var(--f-display); font-weight: 600; color: #e6f1f1; }
.sectors li::before { content: "+"; color: var(--signal); font-weight: 800; margin-right: .45rem; }
@media (max-width: 760px) { .about-grid { grid-template-columns: 1fr; } }

/* Contact + form */
.contact-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 2.5rem 4rem; align-items: start; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-list { margin: 1.75rem 0 0; display: grid; gap: 1rem; }
.contact-list > div { display: grid; grid-template-columns: 6rem minmax(0, 1fr); gap: 1rem; padding-bottom: 1rem; border-bottom: 1px solid var(--line); }
.contact-list dt { font-family: var(--f-display); font-weight: 700; font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); padding-top: .2rem; }
.contact-list dd { margin: 0; overflow-wrap: anywhere; }

.enquiry { background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: clamp(1.25rem, 3vw, 2rem); box-shadow: 0 18px 40px rgba(36,50,53,.08); min-width: 0; }
.enquiry-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem 1.25rem; }
.field { display: flex; flex-direction: column; gap: .35rem; min-width: 0; margin: 0; border: 0; padding: 0; }
.field-full { grid-column: 1 / -1; }
.field label, .field legend { font-weight: 600; font-size: .95rem; }
.req { color: var(--signal); }
.field input[type="text"], .field input[type="tel"], .field input[type="email"], .field input[type="month"], .field select, .field textarea {
	font: inherit; font-size: 1rem; color: var(--ink); background: var(--paper);
	border: 1.5px solid var(--line); border-radius: var(--radius); padding: .7rem .8rem; width: 100%;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--petrol); outline: none; box-shadow: 0 0 0 3px rgba(36,50,53,.15); }
.choice-row { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; padding-top: .25rem; }
.choice-row label { font-weight: 400; display: inline-flex; align-items: center; gap: .4rem; }
.form-actions { display: flex; flex-wrap: wrap; gap: .75rem; }
@media (max-width: 560px) { .enquiry-form { grid-template-columns: 1fr; } }
.notice { padding: .9rem 1rem; border-radius: var(--radius); margin: 0 0 1.25rem; font-weight: 600; }
.notice-ok { background: #e3f3ea; color: var(--ok); }
.notice-err { background: #fbe6e6; color: var(--signal-dark); }

.map-wrap { margin-top: 3rem; }
.map-wrap iframe { width: 100%; height: 380px; border: 0; border-radius: 10px; display: block; }

/* Inner pages */
.page-hero { background: var(--petrol); color: #fff; padding-block: clamp(2.5rem, 5vw, 4rem); position: relative; }
.page-hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: linear-gradient(90deg, var(--signal) 0 18%, transparent 18%); }
.page-title { font-size: var(--step-3); font-weight: 800; font-stretch: 106%; max-width: 30ch; margin: 0; }
.page-lead { color: #d5e6e6; font-size: var(--step-1); max-width: 40em; margin: .75rem 0 0; }
.crumbs { font-size: var(--step--1); color: #b9d0d1; margin: 0 0 .75rem; }
.crumbs a { color: #fff; }
.course-facts { list-style: none; margin: 1.5rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: .75rem 2rem; }
.course-facts li { display: flex; flex-direction: column; font-weight: 700; }
.course-facts span { font-family: var(--f-display); font-size: .72rem; text-transform: uppercase; letter-spacing: .12em; color: var(--mint); font-weight: 700; }

.page-layout { padding-block: clamp(2.5rem, 5vw, 4rem); }
.page-layout.has-aside { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 3rem; align-items: start; }
@media (max-width: 960px) { .page-layout.has-aside { grid-template-columns: 1fr; } .page-aside { order: -1; position: static; } .toc { display: none; } }
.page-aside { position: sticky; top: 96px; display: grid; gap: 1.25rem; min-width: 0; }
.aside-box { border: 1px solid var(--line); border-radius: 10px; padding: 1.25rem; display: grid; gap: .65rem; }
.aside-box p { margin: 0; color: var(--muted); font-size: .95rem; }
.aside-title { font-family: var(--f-display); font-weight: 800; color: var(--ink) !important; font-size: 1rem !important; }
.aside-phone { text-align: center; font-weight: 700; }
.toc ol { list-style: none; margin: .5rem 0 0; padding: 0; border-left: 2px solid var(--line); max-height: 55vh; overflow-y: auto; }
.toc a { display: block; padding: .3rem 0 .3rem .9rem; margin-left: -2px; border-left: 2px solid transparent; text-decoration: none; color: var(--muted); font-size: .92rem; line-height: 1.35; }
.toc a:hover, .toc a.is-active { color: var(--signal); border-left-color: var(--signal); }

/* Editor content */
.entry { max-width: 46rem; min-width: 0; }
.has-aside .entry { max-width: none; }
.entry > * + * { margin-top: 1em; }
.entry p { margin: 0; }
.entry p + p { margin-top: .9em; }
.entry .lead { font-size: var(--step-1); font-weight: 600; color: var(--petrol); }
.entry .tagline { font-family: var(--f-display); font-weight: 800; color: var(--signal); font-size: var(--step-1); padding: .6rem 0; border-block: 1px solid var(--line); }
.entry h2 { font-size: var(--step-2); font-weight: 800; margin-top: 2.25em; padding-top: 1.25em; border-top: 1px solid var(--line); scroll-margin-top: 100px; }
.entry h3 { font-size: var(--step-1); font-weight: 700; margin-top: 1.6em; color: var(--petrol); scroll-margin-top: 100px; }
.entry h2 + h3 { margin-top: .4em; color: var(--muted); font-weight: 600; }
.entry ul, .entry ol { padding-left: 1.25rem; }
.entry ul li { margin: .3em 0; }
.entry ul li::marker { color: var(--signal); }
.entry strong { color: inherit; }
.entry img { border-radius: 10px; }
.entry table { width: 100%; border-collapse: collapse; }
.entry td, .entry th { border: 1px solid var(--line); padding: .5rem .75rem; }
.entry-intro { margin-bottom: 2.5rem; }

.post-list { display: grid; gap: 2rem; max-width: 46rem; }
.post-item h2 { font-size: var(--step-2); }
.post-date { color: var(--muted); font-size: var(--step--1); margin: 0 0 .25rem; }

/* Footer */
.site-footer { background: var(--petrol-deep); color: #bcd2d3; padding-top: 3.5rem; font-size: .97rem; }
.site-footer a { color: #e6f1f1; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1.2fr 1fr 1.2fr; gap: 2.5rem; padding-bottom: 2.5rem; }
@media (max-width: 960px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer .brand { color: #fff; }
.site-footer .brand-sub { color: #9fbcbe; }
.footer-tag { font-family: var(--f-display); font-weight: 800; color: #fff; margin: 1.25rem 0 .4rem; }
.footer-about { margin: 0; }
.footer-title { font-size: .8rem; text-transform: uppercase; letter-spacing: .12em; color: var(--mint); margin-bottom: 1rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; }
.footer-accred { margin-top: 1.25rem !important; font-size: .88rem; }
.footer-contact address { font-style: normal; margin-bottom: 1rem; }
.footer-social { display: flex; gap: 1rem; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 1rem; padding-block: 1.25rem; border-top: 1px solid rgba(255,255,255,.12); font-size: .88rem; }

/* WhatsApp button */
.wa-float {
	position: fixed; right: 18px; bottom: calc(18px + env(safe-area-inset-bottom, 0px)); z-index: 60;
	display: inline-flex; align-items: center; gap: .5rem; padding: .7rem 1.1rem .7rem .85rem;
	background: #1fa855; color: #fff; border-radius: 99px; text-decoration: none; font-weight: 700;
	box-shadow: 0 10px 24px rgba(0,0,0,.22);
}
.wa-float:hover { background: #178c46; color: #fff; }
@media (max-width: 560px) { .wa-float span { display: none; } .wa-float { padding: .8rem; } }

/* Brand backgrounds: teal washes and the logo's plus mark instead of plain white */
.hero { background: linear-gradient(135deg, #2b3a3d 0%, var(--petrol) 45%, #163c3e 100%); }
.stats { background: linear-gradient(90deg, var(--petrol-deep), #1b3335); }
.stat { border-left-color: var(--mint); }
#courses { background: linear-gradient(180deg, var(--wash) 0%, #f5fbfb 100%), var(--wash); position: relative; }
#courses::before, #contact::before, .page-layout-bg::before { content: ""; position: absolute; inset: 0; background: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20width%3D%2264%22%20height%3D%2264%22%3E%3Cg%20fill%3D%22%2348c2c5%22%20fill-opacity%3D%22.16%22%3E%3Crect%20x%3D%2227%22%20y%3D%2218%22%20width%3D%2210%22%20height%3D%2228%22%20rx%3D%225%22/%3E%3Crect%20x%3D%2218%22%20y%3D%2227%22%20width%3D%2228%22%20height%3D%2210%22%20rx%3D%225%22/%3E%3C/g%3E%3C/svg%3E"); pointer-events: none; -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 55%); mask-image: linear-gradient(180deg, #000 0%, transparent 55%); }
#courses > .wrap, #contact > .wrap { position: relative; }
.course-card { box-shadow: 0 2px 0 var(--line); }
.course-card:hover { border-color: var(--mint); }
.course-group-title { border-bottom-color: var(--teal-2); }
.section-tint { background: linear-gradient(135deg, #dff2f2 0%, #f1f9f9 60%, #e4f3f3 100%); }
.method li { border-top-color: var(--teal-2); box-shadow: 0 10px 24px rgba(36,50,53,.06); }
.method li:last-child { border-top-color: var(--mint); }
#accreditation { background: linear-gradient(180deg, #ffffff 0%, var(--wash) 100%); }
.table-scroll { background: var(--paper); }
.accred-table thead th { background: var(--petrol); color: #e6f4f4; }
.section-dark { background: linear-gradient(135deg, var(--petrol) 0%, #1a3f41 100%); position: relative; }
.section-dark::before { content: ""; position: absolute; inset: 0; background: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20width%3D%2272%22%20height%3D%2272%22%3E%3Cg%20fill%3D%22%2348c2c5%22%20fill-opacity%3D%22.09%22%3E%3Crect%20x%3D%2231%22%20y%3D%2220%22%20width%3D%2210%22%20height%3D%2232%22%20rx%3D%225%22/%3E%3Crect%20x%3D%2220%22%20y%3D%2231%22%20width%3D%2232%22%20height%3D%2210%22%20rx%3D%225%22/%3E%3C/g%3E%3C/svg%3E"); pointer-events: none; }
.section-dark > .wrap { position: relative; }
.sectors li::before { color: var(--mint); }
#contact { background: linear-gradient(180deg, var(--wash) 0%, #ffffff 70%); position: relative; }
#contact::before { -webkit-mask-image: linear-gradient(180deg, transparent 30%, #000 100%); mask-image: linear-gradient(180deg, transparent 30%, #000 100%); }
.page-hero { background: linear-gradient(135deg, #2b3a3d 0%, var(--petrol) 50%, #163c3e 100%); overflow: hidden; }
.page-hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 90% 10%, rgba(72,194,197,.25), transparent 45%), url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20width%3D%2272%22%20height%3D%2272%22%3E%3Cg%20fill%3D%22%2348c2c5%22%20fill-opacity%3D%22.09%22%3E%3Crect%20x%3D%2231%22%20y%3D%2220%22%20width%3D%2210%22%20height%3D%2232%22%20rx%3D%225%22/%3E%3Crect%20x%3D%2220%22%20y%3D%2231%22%20width%3D%2232%22%20height%3D%2210%22%20rx%3D%225%22/%3E%3C/g%3E%3C/svg%3E"); pointer-events: none; }
.page-hero > .wrap { position: relative; }
.page-hero::after { background: linear-gradient(90deg, var(--mint) 0 18%, var(--teal-2) 18% 30%, transparent 30%); }
.page-layout.has-aside { position: relative; }
body.page { background: linear-gradient(180deg, #f3fafa 0%, #ffffff 400px); }
.aside-box { background: var(--paper); box-shadow: 0 12px 28px rgba(36,50,53,.07); border-top: 4px solid var(--mint); }
.entry h2 { border-top-color: var(--line); }
.entry .tagline { color: var(--signal); }
.hero-card { border-top: 5px solid var(--mint); }
.btn-primary { background: var(--signal); }
.btn-primary:hover { background: var(--signal-dark); }
.site-footer { background: linear-gradient(180deg, var(--petrol-deep) 0%, #10191b 100%); }
.topbar { background: var(--petrol-deep); }

/* Certificates & accreditation proof */
.proof { background: linear-gradient(180deg, var(--wash) 0%, #ffffff 100%); }
#accreditation + .proof { padding-top: 0; background: var(--wash); }
.proof-group + .proof-group { margin-top: 3rem; }
.proof-title { font-size: var(--step-1); font-weight: 700; margin: 0; }
.proof-note { color: var(--muted); margin: .25rem 0 1.25rem; }
.proof-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 1.5rem; }
.proof-item { margin: 0; display: flex; flex-direction: column; gap: .6rem; }
.proof-frame {
	display: grid; place-items: center; aspect-ratio: 4 / 3; max-width: 100%; padding: 10px;
	background: var(--paper); border: 1px solid var(--line); border-radius: 8px;
	box-shadow: 0 10px 24px rgba(36,50,53,.08); overflow: hidden; transition: transform .15s, box-shadow .15s;
}
.proof-frame img { width: 100%; height: 100%; object-fit: contain; }
.proof-frame:hover { transform: translateY(-3px); box-shadow: 0 16px 30px rgba(36,50,53,.14); }
.proof-item figcaption { font-weight: 600; font-size: .95rem; color: var(--ink); }
.proof-empty .proof-frame {
	border: 2px dashed var(--mint); background: rgba(255,255,255,.6); box-shadow: none;
	color: var(--signal); font-weight: 700; text-decoration: none; gap: .5rem; align-content: center; text-align: center;
}
.proof-empty figcaption { color: var(--muted); font-weight: 400; font-size: .85rem; }
.proof-plus { position: relative; width: 34px; height: 34px; }
.proof-plus::before, .proof-plus::after { content: ""; position: absolute; background: var(--mint); border-radius: 6px; }
.proof-plus::before { left: 12px; top: 0; width: 10px; height: 34px; }
.proof-plus::after { top: 12px; left: 0; width: 34px; height: 10px; }
.lightbox { border: 0; padding: 0; max-width: min(92vw, 1000px); max-height: 92vh; background: transparent; overflow: visible; }
.lightbox::backdrop { background: rgba(16,25,27,.85); }
.lightbox img { display: block; max-width: 100%; max-height: 82vh; margin: 0 auto; border-radius: 6px; background: #fff; }
.lightbox-cap { color: #fff; text-align: center; margin: .75rem 0 0; font-weight: 600; }
.lightbox-close { position: absolute; top: -14px; right: -14px; width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--mint); color: var(--petrol-deep); font-size: 1.6rem; line-height: 1; cursor: pointer; }

/* Accreditation logo wall */
.logo-wall { list-style: none; margin: 0 0 2rem; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 150px), 1fr)); gap: 1rem; }
.logo-wall li { display: grid; place-items: center; height: 110px; padding: 14px; background: var(--paper); border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 6px 16px rgba(36,50,53,.05); }
.logo-wall img { max-width: 100%; max-height: 80px; width: auto; height: auto; object-fit: contain; }
.proof-frame { background: #fff; }
.proof-frame { display: flex; align-items: center; justify-content: center; }
.proof-frame img { width: auto; height: auto; max-width: 100%; max-height: 100%; }
.logo-wall { grid-template-columns: repeat(auto-fit, minmax(min(100%, 130px), 1fr)); }

/* Google reviews */
.reviews { background: var(--paper); }
.reviews-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 1rem 2rem; max-width: none; }
.reviews-widget { min-width: 0; }
.reviews-empty { display: grid; justify-items: center; gap: .5rem; text-align: center; padding: 2.5rem 1.5rem; border: 2px dashed var(--mint); border-radius: 12px; color: var(--muted); text-decoration: none; background: var(--wash); }
.reviews-empty strong { color: var(--signal); font-size: 1.1rem; }
.reviews-empty span:last-child { max-width: 46rem; font-size: .95rem; }
@media (max-width: 560px) { .wa-float { right: 12px; bottom: calc(12px + env(safe-area-inset-bottom, 0px)); padding: .65rem; } .wa-float svg { width: 22px; height: 22px; } }

/* Background photo with brand overlay */
.hero.has-photo, .page-hero.has-photo {
	background:
		linear-gradient(100deg, rgba(24,35,38,.94) 0%, rgba(24,35,38,.82) 42%, rgba(26,80,82,.45) 100%),
		var(--hero-photo) var(--hero-pos, center) / cover no-repeat,
		var(--petrol);
}
.hero.has-photo::before, .page-hero.has-photo::before { opacity: .35; }
@media (max-width: 860px) {
	.hero.has-photo { background:
		linear-gradient(180deg, rgba(24,35,38,.92) 0%, rgba(24,35,38,.86) 100%),
		var(--hero-photo) var(--hero-pos, center) / cover no-repeat, var(--petrol); }
}

.form-note { margin: 0; font-size: .85rem; color: var(--muted); }
.course-dur { background: #fff; border: 1px solid var(--line); }

/* Mobile action bar */
.mobile-bar { display: none; }
@media (max-width: 640px) {
	.mobile-bar {
		display: grid; grid-template-columns: 1fr 1fr 1.2fr; position: fixed; left: 0; right: 0; bottom: 0; z-index: 70;
		background: var(--paper); border-top: 1px solid var(--line); box-shadow: 0 -6px 18px rgba(24,35,38,.12);
		padding: 8px 10px calc(8px + env(safe-area-inset-bottom, 0px)); gap: 8px;
	}
	.mobile-bar a { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; min-height: 46px; border-radius: 8px; font-weight: 700; text-decoration: none; color: var(--petrol); border: 1.5px solid var(--line); font-size: .95rem; }
	.mobile-bar .mb-wa { color: #fff; background: #1fa855; border-color: #1fa855; }
	.mobile-bar .mb-cta { color: #fff; background: var(--signal); border-color: var(--signal); }
	.wa-float { display: none !important; }
	body { padding-bottom: calc(66px + env(safe-area-inset-bottom, 0px)); }
}
section[id], #enquiry { scroll-margin-top: 90px; }
/* With a photo, let the picture fill the right side instead of the course card */
.hero.has-photo .hero-card { display: none; }
.hero.has-photo .hero-inner { grid-template-columns: minmax(0, 1fr); padding-block: clamp(3.5rem, 8vw, 6.5rem) clamp(5rem, 9vw, 7.5rem); }
.hero.has-photo .hero-copy { max-width: 40rem; }
@media (min-width: 861px) {
	.hero.has-photo {
		background:
			linear-gradient(90deg, rgba(24,35,38,.95) 0%, rgba(24,35,38,.88) 35%, rgba(24,35,38,.35) 62%, rgba(24,35,38,.05) 100%),
			var(--hero-photo) var(--hero-pos, center) / cover no-repeat, var(--petrol);
	}
	.hero.has-photo::before { opacity: .18; }
}

/* Course pictures */
.course-card.has-img { padding-top: 0; overflow: hidden; }
.course-img { display: block; margin: 0 -1.4rem .4rem; aspect-ratio: 4 / 3; max-width: calc(100% + 2.8rem); overflow: hidden; background: var(--wash); }
.course-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .35s ease; }
.course-card:hover .course-img img { transform: scale(1.04); }
.page-hero.has-photo { padding-block: clamp(3rem, 7vw, 5.5rem); }
@media (min-width: 861px) {
	.page-hero.has-photo { background:
		linear-gradient(90deg, rgba(24,35,38,.95) 0%, rgba(24,35,38,.86) 45%, rgba(24,35,38,.35) 75%, rgba(24,35,38,.15) 100%),
		var(--hero-photo) var(--hero-pos, center) / cover no-repeat, var(--petrol); }
}

.course-img-ph { display: grid; place-items: center; background: linear-gradient(135deg, #2b3a3d 0%, var(--petrol) 55%, #1a4a4c 100%); position: relative; }
.course-img-ph::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(circle at 80% 20%, rgba(72,194,197,.35), transparent 50%); }
.course-img-ph span { position: relative; font-family: var(--f-display); font-weight: 800; font-stretch: 115%; font-size: 2.6rem; letter-spacing: .04em; color: var(--mint); }

/* Language toggle (EN | ع) */
.lang-switch { display: inline-flex; align-items: stretch; border: 1.5px solid var(--signal); border-radius: 999px; overflow: hidden; font-weight: 700; font-size: .9rem; line-height: 1; flex: none; }
.lang-switch a, .lang-switch .is-current { display: inline-flex; align-items: center; justify-content: center; min-width: 42px; padding: .5rem .8rem; text-decoration: none; }
.lang-switch a { color: var(--signal); background: #fff; }
.lang-switch a:hover, .lang-switch a:focus-visible { background: var(--wash); }
.lang-switch .is-current { color: #fff; background: var(--signal); }
.lang-switch [lang="ar"] { font-family: "IBM Plex Sans Arabic", Tahoma, Arial, sans-serif; font-size: 1.05rem; }
.header-lang { order: 3; margin-inline-start: .5rem; }
.site-nav { order: 2; margin-inline-start: auto; }
@media (max-width: 1020px) {
	.header-lang { order: 2; margin-inline-start: auto; }
	.nav-toggle { order: 3; }
}
.nav-cta { white-space: nowrap; }
@media (min-width: 1021px) and (max-width: 1320px) {
	.site-nav { gap: .6rem; }
	.site-nav .menu { gap: .6rem; }
	.nav-cta { padding-inline: 1rem; }
}
.header-inner > .brand { flex: none; }
@media (min-width: 1021px) and (max-width: 1320px) { .header-lang { margin-inline-start: .25rem; } .site-nav .menu a { padding-inline: .45rem; } }
@media (min-width: 1021px) and (max-width: 1180px) { .nav-cta { display: none; } }

/* Keyword heading in the homepage banner */
.hero-h1 { font-size: var(--step--1); line-height: 1.4; }
/* Areas we serve */
.areas { margin-top: 1.75rem; padding: 1.1rem 1.25rem; border-radius: var(--radius); background: var(--wash); }
.areas-title { font-size: 1.05rem; margin: 0 0 .35rem; }
.areas p { margin: 0 0 .7rem; color: var(--muted, #4d5f61); font-size: .95rem; }
.areas-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .4rem; }
.areas-list li { background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: .25rem .7rem; font-size: .85rem; font-weight: 600; color: var(--petrol); }
/* Booking box under articles */
.post-cta { margin-top: 2.5rem; padding: 1.5rem; border-radius: var(--radius); background: var(--petrol); color: #fff; }
.post-cta h2 { color: #fff; margin-top: 0; font-size: 1.35rem; }
.post-cta p { color: #d7e7e8; }
.post-cta-actions { display: flex; flex-wrap: wrap; gap: .6rem; margin: 1rem 0 0; }
.post-cta .btn-outline { background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,.6); }
.post-cta .btn-outline:hover { background: #fff; color: var(--petrol); }

/* Training calendar */
.schedule { list-style: none; margin: 0; padding: 0; display: grid; gap: .75rem; }
.schedule-item { display: grid; grid-template-columns: 96px 1fr auto; gap: 1.25rem; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.25rem; }
.schedule-date { margin: 0; text-align: center; background: var(--petrol); color: #fff; border-radius: var(--radius); padding: .55rem .4rem; line-height: 1.15; }
.schedule-day { display: block; font-family: var(--f-display); font-size: 1.9rem; font-weight: 800; }
.schedule-month { display: block; font-size: .8rem; font-weight: 700; color: var(--mint); }
.schedule-wd { display: block; font-size: .72rem; color: #c9dcdd; margin-top: .15rem; }
.schedule-body .course-code { margin: 0; }
.schedule-name { font-size: 1.1rem; margin: .1rem 0 .3rem; }
.schedule-name a { color: var(--ink, #1c2a2c); text-decoration: none; }
.schedule-name a:hover { color: var(--signal); }
.schedule-meta { margin: 0; display: flex; flex-wrap: wrap; gap: .35rem .9rem; font-size: .9rem; color: var(--muted, #4d5f61); }
.schedule-actions { text-align: end; }
.schedule-status { margin: 0 0 .4rem; font-size: .8rem; font-weight: 700; color: #b5541b; }
@media (max-width: 700px) {
	.schedule-item { grid-template-columns: 78px 1fr; }
	.schedule-actions { grid-column: 1 / -1; text-align: start; }
	.schedule-actions .btn { width: 100%; }
}
.aside-dates { list-style: none; margin: 0 0 1rem; padding: 0; font-size: .92rem; }
.aside-dates li { padding: .45rem 0; border-bottom: 1px solid var(--line); }
.aside-dates em { color: #b5541b; font-style: normal; font-weight: 700; font-size: .8rem; }

.schedule-item.is-daily { border-color: var(--mint); box-shadow: inset 4px 0 0 var(--mint); }
[dir="rtl"] .schedule-item.is-daily { box-shadow: inset -4px 0 0 var(--mint); }
.is-daily .schedule-date { background: var(--signal); }
.schedule-every { display: block; font-family: var(--f-display); font-size: 1.05rem; font-weight: 800; line-height: 1.15; }
.course-daily { display: inline-block; background: var(--signal); color: #fff; font-size: .74rem; font-weight: 700; padding: .2rem .55rem; border-radius: 999px; }
.aside-dates li.is-daily strong { color: var(--signal); }
.schedule-time { unicode-bidi: isolate; }

/* Our training centre */
.centre-grid { display: grid; grid-template-columns: 1.25fr 1fr 1fr; grid-template-rows: auto auto; gap: 1rem; }
.centre-item { margin: 0; }
.centre-item:first-child { grid-row: span 2; }
.centre-item a { display: block; border-radius: var(--radius); overflow: hidden; background: var(--wash); }
.centre-item img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; transition: transform .3s ease; }
.centre-item:first-child img { aspect-ratio: auto; height: calc(100% - 0px); min-height: 100%; }
.centre-item:first-child a { height: calc(100% - 2rem); }
.centre-item a:hover img { transform: scale(1.03); }
.centre-item figcaption { font-size: .88rem; font-weight: 600; color: var(--petrol); margin-top: .45rem; }
@media (max-width: 860px) {
	.centre-grid { grid-template-columns: 1fr 1fr; }
	.centre-item:first-child { grid-row: auto; grid-column: 1 / -1; }
	.centre-item:first-child img { aspect-ratio: 4 / 3; height: auto; }
	.centre-item:first-child a { height: auto; }
}
/* 8-photo gallery: big first photo, then a tidy grid */
.centre-grid { grid-template-columns: repeat(4, 1fr); grid-template-rows: none; }
.centre-item:first-child { grid-column: span 2; grid-row: span 2; }
.centre-item:first-child a { height: auto; }
.centre-item:first-child img { aspect-ratio: 16 / 10; height: auto; min-height: 0; }
@media (max-width: 860px) {
	.centre-grid { grid-template-columns: 1fr 1fr; }
	.centre-item:first-child { grid-column: 1 / -1; grid-row: auto; }
}

/* Google reviews */
.g-summary { display: flex; align-items: center; gap: 1.25rem; flex-wrap: wrap; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem 1.5rem; }
.g-logo { flex: none; display: inline-flex; width: 64px; height: 64px; align-items: center; justify-content: center; border-radius: 50%; background: #f6f8f9; }
.g-summary-text { flex: 1 1 220px; }
.g-score { margin: 0; display: flex; align-items: center; gap: .6rem; font-size: 2rem; line-height: 1.1; }
.g-score strong { font-family: var(--f-display); font-weight: 800; color: var(--ink, #1c2a2c); }
.g-count { margin: .25rem 0 0; font-weight: 600; color: var(--muted, #4d5f61); }
.g-actions { display: flex; gap: .6rem; flex-wrap: wrap; }
.g-reviews { margin-top: 1.25rem; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1rem; }
.g-review { margin: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem 1.25rem; display: flex; flex-direction: column; gap: .6rem; }
.g-review .stars { margin: 0; font-size: 1.05rem; }
.g-review blockquote { margin: 0; font-size: .95rem; line-height: 1.6; color: var(--ink, #1c2a2c); flex: 1; }
.g-review figcaption { display: flex; align-items: center; gap: .6rem; font-weight: 700; font-size: .9rem; }
.g-review figcaption img { border-radius: 50%; }
.g-review figcaption small { display: block; font-weight: 400; color: var(--muted, #4d5f61); }
.g-review figcaption a { color: inherit; text-decoration: none; }
.reviews-admin-note { margin-top: 1rem; font-size: .88rem; color: var(--muted, #4d5f61); }

/* Inner pages (About, courses, contact, articles): soft teal background with the
   MEDWAY plus pattern; the text sits on white cards for easy reading. */
body.page:not(.home), body.single, body.blog, body.archive { background: #e7f4f4; }
body.page:not(.home) .site-main,
body.single .site-main,
body.blog .site-main,
body.archive .site-main {
	background:
		url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20width%3D%2264%22%20height%3D%2264%22%3E%3Cg%20fill%3D%22%2348c2c5%22%20fill-opacity%3D%22.10%22%3E%3Crect%20x%3D%2227%22%20y%3D%2218%22%20width%3D%2210%22%20height%3D%2228%22%20rx%3D%225%22/%3E%3Crect%20x%3D%2218%22%20y%3D%2227%22%20width%3D%2228%22%20height%3D%2210%22%20rx%3D%225%22/%3E%3C/g%3E%3C/svg%3E"),
		linear-gradient(180deg, #dcefef 0%, #eaf6f6 35%, #e3f2f2 70%, #d6ecec 100%);
}
body.page:not(.home) .page-layout > .entry,
body.single .page-layout > .entry,
body.blog .post-list,
body.archive .post-list {
	background: #fff;
	max-width: none;
	padding: clamp(1.25rem, 3.5vw, 2.75rem);
	border-radius: 16px;
	border: 1px solid #d3e8e8;
	box-shadow: 0 18px 40px rgba(26, 64, 66, .08);
}
body.page:not(.home) .page-layout:not(.has-aside) > .entry { max-width: 52rem; margin-inline: auto; }
.page-layout > .entry > .lead:first-child {
	margin: calc(-1 * clamp(1.25rem, 3.5vw, 2.75rem)) calc(-1 * clamp(1.25rem, 3.5vw, 2.75rem)) 1.5rem;
	padding: 1.25rem clamp(1.25rem, 3.5vw, 2.75rem);
	background: linear-gradient(90deg, #e3f4f4, #f4fbfb);
	border-bottom: 1px solid #d3e8e8;
	border-radius: 16px 16px 0 0;
}
.page-layout .entry h2 { position: relative; padding-inline-start: .9rem; }
.page-layout .entry h2::before { content: ""; position: absolute; inset-inline-start: 0; top: 1.25em; bottom: .15em; width: 4px; border-radius: 4px; background: linear-gradient(180deg, var(--mint), var(--signal)); }
.page-layout .entry ul li::marker { content: "✓  "; color: var(--signal); font-weight: 700; }
body.page:not(.home) .aside-box { border: 1px solid #d3e8e8; }
body.page:not(.home) .toc { background: #fff; border-radius: 12px; padding: 1rem; border: 1px solid #d3e8e8; }
body.page:not(.home) .section:not(.section-dark):not(.section-tint) { background: transparent; }
body.page:not(.home) #contact::before { display: none; }
@media (max-width: 600px) {
	body.page:not(.home) .page-layout > .entry, body.single .page-layout > .entry { border-radius: 12px; }
}
/* Small phones (e.g. 360px Android) */
@media (max-width: 400px) {
	.header-inner { gap: .5rem; }
	.custom-logo, .brand-img img { max-height: 46px; max-width: 160px; height: auto; }
	.lang-switch a, .lang-switch .is-current { min-width: 34px; padding: .45rem .55rem; }
	.nav-toggle { width: 42px; height: 40px; }
	.mobile-bar a { font-size: .88rem; gap: .3rem; }
}

/* Online training */
.online-badge { display: inline-block; background: #2f6fd6; color: #fff; font-size: .72rem; font-weight: 700; letter-spacing: 0; text-transform: none; padding: .18rem .55rem; border-radius: 999px; vertical-align: middle; }
.online-badge::before { content: "● "; color: #9fe0a6; }
.schedule-item.is-online { box-shadow: inset 4px 0 0 #2f6fd6; }
[dir="rtl"] .schedule-item.is-online { box-shadow: inset -4px 0 0 #2f6fd6; }
.online-strip { background: linear-gradient(120deg, #1f4f86 0%, #1a7f82 100%); color: #fff; padding-block: 1.75rem; }
.online-strip-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; }
.online-strip-tag { margin: 0; font-size: .8rem; font-weight: 700; color: #bfe9ea; text-transform: uppercase; letter-spacing: .1em; }
[dir="rtl"] .online-strip-tag { letter-spacing: 0; }
.online-strip-title { color: #fff; margin: .2rem 0 .6rem; font-size: var(--step-2); }
.online-strip-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .45rem; }
.online-strip-list a { display: inline-block; color: #fff; text-decoration: none; border: 1px solid rgba(255,255,255,.45); border-radius: 999px; padding: .3rem .8rem; font-weight: 600; font-size: .9rem; }
.online-strip-list a:hover { background: rgba(255,255,255,.12); }
.online-strip .btn-primary { background: #fff; color: var(--petrol); border-color: #fff; }
.online-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.25rem; }
.online-card { background: #fff; border: 1px solid #d3e8e8; border-radius: 16px; overflow: hidden; box-shadow: 0 14px 32px rgba(26,64,66,.07); display: flex; flex-direction: column; }
.online-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.online-card-body { padding: 1.1rem 1.25rem 1.3rem; display: flex; flex-direction: column; gap: .4rem; flex: 1; }
.online-card-body h3 { margin: 0; font-size: 1.15rem; }
.online-card-body h3 a { color: inherit; text-decoration: none; }
.online-card-body p { margin: 0; color: var(--muted, #4d5f61); }
.online-card-body .course-code { color: var(--signal); }
.online-actions { margin-top: auto !important; padding-top: .6rem; display: flex; gap: .5rem; flex-wrap: wrap; }
.online-sub { margin-top: 2rem; }
.online-dates { background: #fff; border-radius: 12px; padding: .5rem 1rem; border: 1px solid #d3e8e8; }
.elearning-soon { background: #fff; border: 1px dashed var(--mint); border-radius: 16px; padding: 1.5rem; max-width: 46rem; }
.elearning-tag { display: inline-block; margin: 0 0 .5rem; background: var(--wash); color: var(--signal); font-weight: 700; font-size: .8rem; padding: .2rem .6rem; border-radius: 999px; }

.actvet-badge { display: inline-block; background: #8a6d2b; color: #fff; font-size: .72rem; font-weight: 700; letter-spacing: 0; text-transform: none; padding: .18rem .55rem; border-radius: 999px; vertical-align: middle; }

/* Facilities & accessibility */
.facilities { margin-top: 2rem; background: #fff; border: 1px solid #d3e8e8; border-radius: 16px; padding: 1.25rem 1.5rem; box-shadow: 0 12px 28px rgba(26,64,66,.06); }
.facilities-title { margin: 0 0 .9rem; font-size: 1.15rem; }
.facilities-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: .75rem; }
.facilities-list li { display: flex; align-items: center; gap: .7rem; font-weight: 600; color: var(--petrol); background: var(--wash); border-radius: 12px; padding: .7rem .9rem; }
.fac-icon { flex: none; display: inline-flex; width: 44px; height: 44px; align-items: center; justify-content: center; border-radius: 50%; background: #fff; color: var(--signal); }

/* Course finder */
.finder-section { background: linear-gradient(135deg, #243235 0%, #1a4f52 100%); }
.finder { background: #fff; border-radius: 18px; padding: clamp(1.25rem, 3vw, 2.25rem); box-shadow: 0 24px 50px rgba(0,0,0,.18); }
.finder-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; }
.finder-head .section-title { margin-bottom: .5rem; }
.finder-progress { margin: 0; font-weight: 700; color: var(--signal); background: var(--wash); border-radius: 999px; padding: .25rem .8rem; font-size: .9rem; }
.finder-progress:empty { display: none; }
.finder-step h3, .finder-result h3 { font-size: 1.2rem; margin: .5rem 0 1rem; }
.finder-options { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: .7rem; }
.finder-opt { font: inherit; font-weight: 600; text-align: start; cursor: pointer; padding: .95rem 1.1rem; border-radius: 12px; border: 1.5px solid #cfe5e5; background: #f6fbfb; color: var(--petrol); transition: all .15s ease; }
.finder-opt:hover, .finder-opt:focus-visible { border-color: var(--signal); background: var(--wash); transform: translateY(-1px); }
.finder-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; margin-bottom: 1rem; }
.finder-card { border: 1px solid #d3e8e8; border-radius: 14px; padding: 1rem 1.15rem; background: #f8fcfc; display: flex; flex-direction: column; gap: .35rem; }
.finder-card .course-code { margin: 0; color: var(--signal); }
.finder-card h4 { margin: 0; font-size: 1.08rem; }
.finder-card h4 a { color: inherit; text-decoration: none; }
.finder-path { margin: 0; color: var(--muted, #4d5f61); font-size: .9rem; }
.finder-tag { display: inline-block; align-self: flex-start; background: var(--signal); color: #fff; font-size: .75rem; font-weight: 700; border-radius: 999px; padding: .15rem .6rem; }
.finder-tag-online { background: #2f6fd6; }
.finder-actions { margin: .5rem 0 0; display: flex; gap: .5rem; flex-wrap: wrap; }
.finder-corp { grid-column: 1 / -1; margin: 0; font-weight: 700; }
.finder-corp a { color: var(--signal); }

/* Renewal reminder */
.reminder-section { background: linear-gradient(180deg, #fff7e8 0%, #fffdf8 100%); border-block: 1px solid #f1e3c2; }
.reminder { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 2.5rem; align-items: center; }
.reminder-icon { display: inline-flex; width: 56px; height: 56px; align-items: center; justify-content: center; border-radius: 50%; background: #f5b301; color: #fff; margin-bottom: .75rem; }
.reminder-box { background: #fff; border-radius: 16px; padding: 1.5rem; border: 1px solid #f1e3c2; box-shadow: 0 16px 36px rgba(120,90,20,.08); }
.consent { display: flex; gap: .55rem; align-items: flex-start; font-size: .9rem; color: var(--muted, #4d5f61); }
.consent input { margin-top: .3rem; }
@media (max-width: 860px) { .reminder { grid-template-columns: 1fr; gap: 1.25rem; } }

/* Directions */
.directions { background: #fff; }
.directions-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 2.5rem; align-items: center; }
.directions-photo { margin: 0; }
.directions-photo img { width: 100%; border-radius: 16px; display: block; box-shadow: 0 18px 40px rgba(26,64,66,.12); }
.directions-steps { margin: 0 0 1.25rem; padding-inline-start: 1.25rem; display: grid; gap: .55rem; }
.directions-actions { display: flex; gap: .6rem; flex-wrap: wrap; }
@media (max-width: 860px) { .directions-grid { grid-template-columns: 1fr; gap: 1.25rem; } }
.entry h2 + h3 { color: var(--petrol); font-weight: 700; }
