/* Endeavour to Achieve: brand layer over Bootstrap 5.
   Colours come from the logo: navy lettering and the sky-blue faces. */
:root {
  --navy: #10224f;
  --navy-ink: #0b1633;
  --sky: #0ba5df;
  --sky-deep: #0779a6;     /* sky dark enough for white text (WCAG AA) */
  --sky-soft: #e4f4fb;
  --sand: #f6f7fb;
  --ink: #1b2236;
  --muted: #5a6378;
  --line: #e2e6ef;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(16, 34, 79, .06), 0 10px 28px -14px rgba(16, 34, 79, .22);
  --bs-body-font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --bs-body-color: var(--ink);
  --bs-link-color-rgb: 7, 121, 166;
}
body { background: #fff; color: var(--ink); font-size: 1.04rem; line-height: 1.6; }
h1, h2, h3, h4 { color: var(--navy); font-weight: 700; letter-spacing: -.01em; text-wrap: balance; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.3rem); margin-bottom: .6rem; }
a { color: var(--sky-deep); }
.skip { position: absolute; left: 1rem; top: .5rem; z-index: 2000; background: #fff; padding: .4rem .8rem; border-radius: 6px; }
section[id], header[id] { scroll-margin-top: 76px; }

/* buttons */
.btn-brand { --bs-btn-bg: var(--sky-deep); --bs-btn-border-color: var(--sky-deep); --bs-btn-color: #fff;
  --bs-btn-hover-bg: var(--navy); --bs-btn-hover-border-color: var(--navy); --bs-btn-hover-color: #fff;
  --bs-btn-active-bg: var(--navy); --bs-btn-active-border-color: var(--navy); font-weight: 600; }
.btn-outline-brand { --bs-btn-color: var(--navy); --bs-btn-border-color: var(--navy);
  --bs-btn-hover-bg: var(--navy); --bs-btn-hover-color: #fff; --bs-btn-hover-border-color: var(--navy);
  --bs-btn-active-bg: var(--navy); --bs-btn-active-color: #fff; font-weight: 600; }

/* nav */
.site-nav { background: rgba(255, 255, 255, .94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.site-nav .nav-link { color: var(--navy); font-weight: 600; }
.site-nav .nav-link:hover, .site-nav .nav-link:focus { color: var(--sky-deep); }
.navbar-brand img { height: 34px; width: auto; }

/* hero */
.hero { padding: clamp(3rem, 7vw, 6rem) 0 clamp(2.5rem, 5vw, 4.5rem);
  background: radial-gradient(900px 420px at 85% 10%, var(--sky-soft), transparent 70%), #fff; }
.hero h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); line-height: 1.12; margin-bottom: 1rem; }
.hero .lead { color: var(--muted); font-size: 1.18rem; max-width: 40rem; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .8rem; font-weight: 700; color: var(--sky-deep); margin-bottom: .7rem; }
.hero-photo { margin: 0; border-radius: 22px; overflow: hidden; box-shadow: var(--shadow); position: relative; }
.hero-photo img { width: 100%; height: auto; display: block; }
.hero-photo::after { content: ""; position: absolute; inset: auto 0 0 0; height: 6px; background: linear-gradient(90deg, var(--navy), var(--sky)); }

/* credibility bar */
.cred { background: var(--navy); color: #fff; padding: 1.1rem 0; }
.cred-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 1rem 1.5rem; }
.cred-list li { display: flex; align-items: center; gap: .75rem; font-size: .95rem; line-height: 1.3; }
.cred-list b { display: block; color: #fff; }
.cred-list span { color: #c9d3ea; }
.cred-list img { width: 44px; height: auto; border-radius: 8px; background: #fff; padding: 2px; flex: none; }
.cred-list .ic { width: 44px; height: 44px; flex: none; display: grid; place-items: center; border-radius: 50%; background: rgba(11, 165, 223, .18); color: var(--sky); font-size: 1.1rem; }

/* sections */
.section { padding: clamp(3.5rem, 7vw, 5.5rem) 0; }
.section-alt { background: var(--sand); }
.section-head { max-width: 46rem; margin-bottom: 2.2rem; }
.section-head p { color: var(--muted); font-size: 1.08rem; }
.tile { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem; height: 100%; box-shadow: var(--shadow); border-top: 4px solid var(--sky); }
.tile h3 { font-size: 1.12rem; }
.tile p { color: var(--muted); margin: 0; }

/* courses */
.course-tabs { gap: .5rem; }
.course-tabs .nav-link { border-radius: 999px; color: var(--navy); background: #fff; border: 1px solid var(--line); font-weight: 600; }
.course-tabs .nav-link.active { background: var(--navy); border-color: var(--navy); color: #fff; }
.tab-note { color: var(--muted); }
.course-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1rem; }
.course { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 1.1rem 1.2rem; border-left: 4px solid var(--sky); }
.course h4 { font-size: 1.02rem; margin: 0; line-height: 1.35; }
.course p { color: var(--muted); font-size: .93rem; margin: .45rem 0 0; }
.feature-course { display: flex; flex-wrap: wrap; gap: 1rem 2rem; align-items: center; justify-content: space-between; background: linear-gradient(120deg, var(--navy), #1b3a7a); color: #fff; border-radius: var(--radius); padding: 1.5rem 1.7rem; margin-bottom: 1.2rem; box-shadow: var(--shadow); }
.feature-course > div { flex: 1 1 26rem; }
.feature-course h3 { color: #fff; font-size: 1.35rem; margin: .4rem 0; }
.feature-course p { color: #d3dcf0; margin: 0; }
.badge-pill { display: inline-block; font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; background: var(--sky); color: var(--navy-ink); padding: .2rem .6rem; border-radius: 999px; }
.guide-list { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: .55rem; }
.guide-list li { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: .6rem .9rem; font-weight: 600; color: var(--navy); }
.guide-list li::before { content: "\2193"; color: var(--sky-deep); margin-right: .5rem; }

/* approach */
.photo-card { margin: 0; border-radius: 22px; overflow: hidden; box-shadow: var(--shadow); }
.photo-card img { width: 100%; height: auto; display: block; }
.approach { list-style: none; padding: 0; margin: 1.2rem 0; }
.approach li { position: relative; padding-left: 2.1rem; margin-bottom: 1rem; color: var(--muted); }
.approach li b { color: var(--navy); }
.approach li::before { content: ""; position: absolute; left: 0; top: .35rem; width: 1.2rem; height: 1.2rem; border-radius: 50%; background: var(--sky-soft); border: 3px solid var(--sky); }

/* news carousel */
.news-carousel { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.news-slide { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); height: 360px; }
.news-slide.no-image { grid-template-columns: 1fr; }
.news-img { background: var(--sand); display: flex; align-items: center; justify-content: center; min-height: 0; overflow: hidden; }
.news-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.news-img.fit img { object-fit: contain; padding: 1.5rem; }
.news-text { padding: 2.2rem 4.5rem 3.2rem 2.4rem; display: flex; flex-direction: column; justify-content: center; }
.news-slide.no-image .news-text { padding: 2.6rem 5rem 3.4rem; }
.news-text h3 { font-size: 1.5rem; }
.news-text p { color: var(--muted); white-space: pre-line; }
.news-date { font-size: .82rem; font-weight: 700; color: var(--sky-deep); text-transform: uppercase; letter-spacing: .08em; margin-bottom: .4rem; }
.news-carousel .carousel-control-prev, .news-carousel .carousel-control-next { width: 3.2rem; opacity: 1; }
.news-carousel .carousel-control-prev-icon, .news-carousel .carousel-control-next-icon { background-color: var(--navy); border-radius: 50%; background-size: 55%; width: 2.2rem; height: 2.2rem; }
.news-carousel .carousel-indicators { margin-bottom: .8rem; }
.news-carousel .carousel-indicators [data-bs-target] { background-color: var(--navy); width: 22px; height: 4px; border-radius: 2px; }
@media (max-width: 767.98px) {
  .news-slide { grid-template-columns: 1fr; grid-template-rows: 220px auto; height: auto; min-height: 470px; }
  .news-slide.no-image { grid-template-rows: auto; min-height: 0; }
  .news-text, .news-slide.no-image .news-text { padding: 1.6rem 1.6rem 3rem; }
  .news-carousel .carousel-control-prev, .news-carousel .carousel-control-next { top: auto; bottom: .3rem; height: 2.4rem; }
}

/* about */
.portrait { margin: 0; border-radius: 22px; overflow: hidden; box-shadow: var(--shadow); max-width: 300px; }
.portrait img { width: 100%; height: auto; display: block; }
.badges img { height: auto; border-radius: 10px; border: 1px solid var(--line); background: #fff; }

/* feedback */
.quotes { columns: 3 320px; column-gap: 1.2rem; }
.quote { break-inside: avoid; background: #fff; border-radius: var(--radius); padding: 1.5rem 1.5rem 1.2rem; margin: 0 0 1.2rem; box-shadow: var(--shadow); position: relative; }
.quote::before { content: "\201C"; position: absolute; top: -.2rem; left: 1rem; font-size: 4rem; line-height: 1; color: var(--sky); font-family: Georgia, serif; }
.quote blockquote { margin: 1.2rem 0 1rem; color: var(--ink); }
.quote figcaption b { display: block; color: var(--navy); }
.quote figcaption span { color: var(--muted); font-size: .88rem; }

/* contact */
.contact { background: linear-gradient(180deg, #fff, var(--sky-soft)); }
.contact-list { list-style: none; padding: 0; margin: 1.5rem 0 0; }
.contact-list li { display: flex; flex-direction: column; margin-bottom: 1rem; }
.contact-list span { font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); font-weight: 700; }
.contact-list a { font-size: 1.25rem; font-weight: 700; color: var(--navy); text-decoration: none; word-break: break-word; }
.contact-list a:hover { color: var(--sky-deep); }
.enquiry { background: #fff; border-radius: var(--radius); padding: 1.8rem; box-shadow: var(--shadow); }
.enquiry .form-label { font-weight: 600; color: var(--navy); }

/* footer */
.site-footer { background: var(--navy-ink); color: #c3cce2; padding: 2.4rem 0; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { color: var(--sky); }
.site-footer img { height: 41px; width: auto; }


/* ── Dark mode ── follows the device unless the visitor picks with the toggle */
.theme-toggle { border: 1px solid var(--line); background: transparent; color: var(--navy); width: 38px; height: 38px; border-radius: 50%; display: inline-grid; place-items: center; padding: 0; }
.theme-toggle:hover { color: var(--sky-deep); border-color: var(--sky); }
.theme-toggle .i-sun, .logo-on-dark { display: none; }
[data-bs-theme=dark] .theme-toggle .i-sun, [data-bs-theme=dark] .logo-on-dark { display: inline; }
[data-bs-theme=dark] .theme-toggle .i-moon, [data-bs-theme=dark] .logo-on-light { display: none; }

[data-bs-theme=dark] {
  --navy: #9fd6f0;          /* headings and accents: light sky on dark */
  --ink: #e3e8f2;
  --muted: #a7b1c6;
  --line: #2a3448;
  --sand: #121a2b;
  --sky-soft: #10243a;
  --card: #18223a;
  --shadow: 0 1px 2px rgba(0, 0, 0, .35), 0 10px 28px -14px rgba(0, 0, 0, .6);
  --bs-body-bg: #0c1322;
  --bs-body-color: #e3e8f2;
}
[data-bs-theme=dark] body { background: #0c1322; color: var(--ink); }
[data-bs-theme=dark] a:not(.btn) { color: #6cc9ee; }
[data-bs-theme=dark] .site-nav { background: rgba(12, 19, 34, .92); }
[data-bs-theme=dark] .navbar-toggler { border-color: var(--line); }
[data-bs-theme=dark] .hero { background: radial-gradient(900px 420px at 85% 10%, #13314f, transparent 70%), #0c1322; }
[data-bs-theme=dark] .cred { background: #070c18; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
[data-bs-theme=dark] .tile, [data-bs-theme=dark] .course, [data-bs-theme=dark] .quote, [data-bs-theme=dark] .enquiry,
[data-bs-theme=dark] .news-carousel, [data-bs-theme=dark] .guide-list li, [data-bs-theme=dark] .course-tabs .nav-link { background: var(--card); }
[data-bs-theme=dark] .course-tabs .nav-link.active { background: var(--sky); border-color: var(--sky); color: #0b1633; }
[data-bs-theme=dark] .feature-course { background: linear-gradient(120deg, #13294f, #1d3f7d); }
[data-bs-theme=dark] .feature-course h3 { color: #fff; }
[data-bs-theme=dark] .news-img { background: #0f1830; }
[data-bs-theme=dark] .news-img.fit, [data-bs-theme=dark] .badges img { background: #fff; }   /* badges are artwork on white */
[data-bs-theme=dark] .news-carousel .carousel-control-prev-icon, [data-bs-theme=dark] .news-carousel .carousel-control-next-icon { background-color: #2a5d93; }
[data-bs-theme=dark] .news-carousel .carousel-indicators [data-bs-target] { background-color: #9fd6f0; }
[data-bs-theme=dark] .contact { background: linear-gradient(180deg, #0c1322, #0f2238); }
[data-bs-theme=dark] .btn-outline-brand { --bs-btn-color: #9fd6f0; --bs-btn-border-color: #9fd6f0; --bs-btn-hover-bg: #9fd6f0; --bs-btn-hover-color: #0b1633; --bs-btn-hover-border-color: #9fd6f0; --bs-btn-active-bg: #9fd6f0; --bs-btn-active-color: #0b1633; }
[data-bs-theme=dark] .btn-brand { --bs-btn-hover-bg: #0ba5df; --bs-btn-hover-border-color: #0ba5df; --bs-btn-hover-color: #0b1633; --bs-btn-active-bg: #0ba5df; }
[data-bs-theme=dark] .site-footer { background: #070c18; border-top: 1px solid var(--line); }
[data-bs-theme=dark] .text-muted { color: var(--muted) !important; }
