body {
  margin: 0;
  font-family: 'Inter', system-ui, sans-serif;
  /* Lighter carbon-fibre style background */
  background-color: #23282b; /* lighter gunmetal base */
  /* carbon-fibre weave using layered gradients */
  background-image:
    linear-gradient(180deg, rgba(255,255,255,0.02), rgba(0,0,0,0.06)),
    linear-gradient(135deg, rgba(255,255,255,0.03) 25%, transparent 25%),
    linear-gradient(315deg, rgba(0,0,0,0.06) 25%, transparent 25%);
  background-size: auto, 20px 20px, 20px 20px;
  background-position: 0 0, 0 0, 10px 10px;
  background-blend-mode: normal, overlay, overlay;
  color: #eef6ff;
  line-height: 1.6;
}

/* Simplify background on small screens for performance */
@media (max-width: 480px) {
  body {
    background-image: linear-gradient(180deg, rgba(255,255,255,0.01), rgba(0,0,0,0.04));
    background-color: #23282b;
  }
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

.site-header {
  background-color: transparent;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  position: sticky;
  top: 0;
  z-index: 40;
  transition: background-color 0.3s ease;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  background-color: rgba(0,0,0,0.2);
}

.site-header:hover,
.site-header.scrolled {
  background-color: #00678B;
  /* remove backdrop blur when solid to improve legibility */
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 0;
}

.logo {
  height: 64px;
}

.main-nav a {
  color: white;
  margin-left: 18px;
  text-decoration: none;
  font-weight: 500;
}

.main-nav a:hover {
  color: #cdefff;
}

.hero {
  background: #ffffff; /* white hero background */
  color: #000000;
  padding: 0;
  min-height: calc(100vh - 94px); /* Subtract header height */
  display: flex;
  align-items: stretch;
}

.hero-split {
  display: flex;
  width: 100%;
}


.hero-content {
  width: 40%; /* set text area to 40% */
  padding: 80px 60px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: left;
}

.hero-image {
  width: 60%; /* set image area to 60% (user requested) */
  position: relative;
  overflow: hidden;
}

.hero-img {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: grayscale(100%) contrast(95%); /* make image black & white */
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 24px;
  line-height: 1.2;
  color: #000000;
  text-align: center; /* center-justify the title */
}

.hero p {
  font-size: 1.3rem;
  margin-bottom: 32px;
  color: #333333;
}

.btn {
  display: inline-block;
  background-color: #00678B;
  color: white;
  padding: 10px 22px; /* reduced button width */
  text-decoration: none;
  border-radius: 6px;
  font-weight: 600;
  transition: background-color 0.3s ease;
}

.certification-block {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 20px;
}

.certification-inline {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: nowrap; /* prevent wrapping so logo stays inline with text */
  justify-content: flex-start;
}

.certification {
  font-size: 1.05rem;
  margin: 0;
  color: #555555;
  display: inline-block; /* keep text inline inside the flex row */
}

.certification-logo {
  height: 40px; /* badge slightly larger but still modest */
  display: block;
  margin: 0 auto; /* center under the text */
}

.cert-small-logo {
  height: 28px;
  flex: 0 0 auto;
  width: auto;
  max-width: 140px;
  display: block; /* cleaner rendering in flex */
  margin: 0; /* reset alignment tweak */
}

.cert-badge {
  margin-top: 8px; /* ensure the certified badge sits separated and centered below the text */
}


/* make the next section (the pane container) visually black */
#pane-container {
  background: #000000;
  color: #ffffff;
  padding: 40px 0;
}
/* parent container: keep everything on one line and prevent wrapping */
.certification-inline {
  display: flex;
  align-items: center;      /* vertical centre the logo & text */
  gap: 12px;
  flex-wrap: nowrap;        /* do not wrap to next line */
  white-space: nowrap;      /* prevent internal wrapping of text */
}

/* allow the text to shrink when needed (prevents it forcing a wrap) */
.certification {
  margin: 0;
  font-size: 1.05rem;
  color: #555555;
  display: inline-block;
  min-width: 0;             /* IMPORTANT: allows flex child to shrink */
  overflow: hidden;         /* optional: avoid overflow if space is tight */
  text-overflow: ellipsis;  /* optional: add "…" if text is too long */
}

/* logo sizing — keep this natural inside flex */
.cert-small-logo {
  height: 28px;
  width: auto;
  display: block;           /* works well inside flex */
  flex: 0 0 auto;           /* do not stretch */
  margin: 0;                /* remove previous nudges */
}

@media (max-width: 768px) {
  .hero-split {
    flex-direction: column;
  }
  .hero-content, .hero-image {
    width: 100%;
  }
  .hero-image {
    height: 400px;
    order: -1;
  }
  .hero-content {
    padding: 40px 24px;
  }
  .hero h1 {
    font-size: 2.2rem;
  }
}

.btn {
  display: inline-block;
  background-color: #00678B;
  color: white;
  padding: 14px 40px;
  text-decoration: none;
  border-radius: 6px;
  font-weight: 600;
  transition: background-color 0.3s ease;
}

.btn:hover {
  background-color: #008fb8;
}

.pane-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
  margin: 60px auto;
}

.pane {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
  transition: transform 0.3s ease;
}

.pane:hover {
  transform: translateY(-6px);
}

.pane img {
  width: 100%;
  max-height: 320px;
  height: auto;
  object-fit: cover;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.pane-text {
  padding: 24px;
}

.pane-text h2 {
  font-size: 1.6rem;
  margin-bottom: 10px;
}

.pane-text p {
  color: #cdd8e6;
}

.footer {
  background-color: #00678B;
  padding: 30px 0;
  color: #fff;
  margin-top: 40px;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
}

.footer-left a {
  color: #fff;
  text-decoration: none;
  margin-right: 10px;
}

.footer-left a:hover {
  text-decoration: underline;
}

.footer-right a {
  color: #fff;
  margin-left: 10px;
  font-size: 20px;
}

.footer-right a:hover {
  color: #cdefff;
}

@media (max-width: 768px) {
  .pane-text h2 { font-size: 1.3rem; }
  .pane-text p { font-size: 0.95rem; }
  .footer-content { flex-direction: column; align-items: center; text-align: center; }
  .footer-right { margin-top: 20px; }
}

/* Page-specific utilities */
.page-toc {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.04);
  padding: 12px 14px;
  border-radius: 8px;
  display: inline-block;
}
.page-toc ul { margin: 6px 0 0; padding-left: 18px; }
.page-toc li { margin: 6px 0; }
.page-toc a { color: #cfeefe; text-decoration: none; font-size: 0.95rem; }
.page-toc a:hover { text-decoration: underline; color: #e8fbff; }

.lead { color: #d4eaf6; font-size: 1.05rem; margin-bottom: 12px; }
.note { color: #bcd6e8; font-size: 0.95rem; margin-top: 18px; }
.small { font-size: 0.9rem; }

@media (max-width: 768px) {
  .page-toc { display: block; width: 100%; }
}

/* Improved site footer styling */
.site-footer {
  /* Gloss black with a subtle highlight for a glossy look */
  /* edge-to-edge gloss black background */
  background-color: #000; /* fallback */
  background-image: linear-gradient(180deg, rgba(255,255,255,0.04) 0%, rgba(0,0,0,1) 60%);
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 20px 0; /* narrower vertical spacing */
  color: #ffffff;
  margin-top: 32px;
  box-shadow: inset 0 10px 30px rgba(0,0,0,0.6); /* inner shadow for depth */
  position: relative;
}
.site-footer .footer-inner {
  /* Constrain the footer content so the footer appears narrower than page content */
  max-width: 980px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  flex-wrap: wrap;
}

/* Glossy highlight line at the top of the footer */
.site-footer::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 4px;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(255,255,255,0.18), rgba(255,255,255,0.06), rgba(255,255,255,0.18));
  mix-blend-mode: overlay;
}
.site-footer .footer-left {
  flex: 1 1 320px;
}
.site-footer .footer-right {
  flex: 0 1 360px;
  text-align: right;
}
.site-footer .footer-logo {
  height: 44px;
  display: block;
  margin-bottom: 8px;
}
.site-footer p { color: #ffffff; margin: 6px 0 0; }
.site-footer .socials {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: flex-end;
  margin: 8px 0;
}
.site-footer .socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: rgba(255,255,255,0.04);
  border-radius: 6px;
  transition: transform 0.15s ease, background 0.15s ease;
}
.site-footer .socials img {
  width: 32px;
  height: 32px;
  display: block;
}
.site-footer .socials a:hover { transform: translateY(-3px); background: rgba(255,255,255,0.12); }
.site-footer .footer-nav {
  margin-top: 12px;
}
.site-footer .footer-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 0;
  justify-content: flex-end;
  flex-wrap: wrap;
  align-items: center;
}
.site-footer .footer-nav li {
  display: inline-block;
  margin: 0 0 0 18px; /* align spacing with header nav */
}
.site-footer .footer-nav li:first-child { margin-left: 0; }
.site-footer .footer-nav li + li::before {
  content: "|";
  margin-right: 0.6rem;
  color: rgba(255,255,255,0.6);
}
.site-footer .footer-nav a {
  color: #ffffff;
  text-decoration: none;
  padding: 0 0.2rem;
  font-weight: 500; /* match header link weight */
  font-size: 1rem;   /* match header size */
}
.site-footer .footer-nav a:hover {
  text-decoration: underline;
  opacity: 0.9;
}

@media (max-width: 768px) {
  .site-footer .footer-right, .site-footer .footer-left { text-align: left; }
  .site-footer .footer-right { margin-top: 16px; }
  .site-footer .footer-nav ul { justify-content: flex-start; }
}

/* Mobile adjustments: make footer even tighter and remove heavy inner-shadow */
@media (max-width: 480px) {
  .site-footer { padding: 12px 0; box-shadow: inset 0 6px 18px rgba(0,0,0,0.6); }
  .site-footer .footer-inner { max-width: 100%; padding: 0 16px; }
  .site-footer::before { height: 2px; }
  .site-footer .footer-logo { height: 36px; }
}

/* SVG social icon styling (inline SVGs use currentColor for fill) */
.site-footer .socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: rgba(255,255,255,0.02);
  border-radius: 6px;
  transition: transform 0.15s ease, background 0.15s ease;
}
.site-footer .socials a:hover { transform: translateY(-3px); background: rgba(255,255,255,0.04); }
