/* Typography variables and base font moved to css/typography.css */
/* See css/typography.css for :root and base typographic rules */

/* Keep body margin and background rules here */
body { margin: 0; }


/* 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;
}

/* Heading typography moved to css/typography.css */


.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: flex-start;
}

.hero-split {
  display: flex;
  width: 100%;
  height: 100%;
  align-items: flex-start;
}


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

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

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

/* hero heading typography moved to css/typography.css */
.hero h1 { margin-bottom: 24px; text-align: left; }

.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;
  }
}

.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;
}

/* ── Carousel / Pane styles ── */
#pane-container {
  padding: 40px 0;
}

.carousel {
  position: relative;
  overflow: hidden;
}

.carousel-track {
  display: flex;
  flex-wrap: nowrap;
  gap: 20px;
  padding: 20px 0;
  transition: transform 520ms cubic-bezier(.22,.9,.35,1);
  will-change: transform;
}

/* Two slides visible side-by-side on desktop */
.slide {
  flex: 0 0 46%;
  display: flex;
  flex-direction: column;
  border-radius: 8px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  box-sizing: border-box;
}
.slide--wide { flex: 0 0 54%; }

/* Pane card fills the slide */
.slide > .pane {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  box-shadow: none;
  border-radius: 8px;
  overflow: hidden;
}

/* Image: fixed height, fills width, crops neatly */
.pane-img {
  display: block;
  width: 100%;
  height: 240px;
  object-fit: cover;
  flex-shrink: 0;
}

/* Text area below image */
.pane-text {
  padding: 24px;
  flex: 1;
}

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

/* Hover lift */
.pane:hover { transform: translateY(-6px); }

/* Carousel controls */
.carousel-control {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.5);
  color: #fff;
  border: none;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 60;
}
.carousel-control:focus { outline: 2px solid #88d1ff; }
.carousel-control--prev { left: 8px; }
.carousel-control--next { right: 8px; }

/* Indicators */
.carousel-indicators {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 10px;
  display: flex;
  gap: 8px;
  z-index: 60;
}
.carousel-indicators button { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,0.35); border: 0; }
.carousel-indicators button[aria-current="true"] { background: #fff; }

/* Mobile: full-width slides, shorter image */
@media (max-width: 768px) {
  .slide, .slide--wide { flex: 0 0 100%; }
  .pane-img { height: 200px; }
  .pane-text h2 { font-size: 1.3rem; }
  .pane-text p { font-size: 0.95rem; }
}

@media (max-width: 480px) {
  .carousel-track { overflow-x: auto; }
  .slide { min-width: 100%; }
}

.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 { #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); }

@media (max-width: 480px) {
  body { overflow-x: hidden; }
  .container { padding: 0 16px; }
}.breadcrumbs {
  font-size: 0.9rem;
  margin: 16px 0;
  color: #9fbcd1;
}

.breadcrumbs a {
  color: #cfeefe;
  text-decoration: none;
}

.breadcrumbs a:hover {
  text-decoration: underline;
}

/* ============================= */
/* PANE LINK RESET */
/* ============================= */

.slide,
.slide:visited,
.slide:hover,
.slide:active {
  text-decoration: none;
  color: inherit;
}

.slide h1,
.slide h2,
.slide p {
  color: var(--brand-white);
  text-decoration: none;
}

.slide:hover h1 {
  color: var(--brand-white);
}

/* ================================= */
/* MOBILE & iOS stops auto-zooms text) */
/* ================================= */
html {
  -webkit-text-size-adjust: 100%;
}

/* ================================= */
/* MOBILE & iOS (iPhone 17 Pro Max) */
/* ================================= */

@media (max-width: 900px) {

  /* Prevent horizontal scrolling */
  html, body {
    max-width: 100%;
    overflow-x: hidden;
  }

  /* Containers must never exceed viewport */
  .container {
    max-width: 100%;
    padding-left: 16px;
    padding-right: 16px;
  }

  /* HERO FIX */
  .hero-split {
    display: flex;
    flex-direction: column;
    gap: 24px;
  }

  .hero-content,
  .hero-image {
    width: 100%;
  }

  .hero-img {
    width: 100%;
    height: auto;
    max-height: 320px;
    object-fit: cover;
  }

  /* PANES / CAROUSEL */
  .carousel {
    width: 100%;
    overflow: hidden;
  }

  .carousel-track {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }

  .slide {
    min-width: 85%;
    scroll-snap-align: start;
    text-decoration: none;
  }


  /* Pane text spacing */
  .pane-text {
    padding: 16px;
  }

  /* Headings scale correctly */
  h1 {
    font-size: clamp(1.8rem, 5vw, 2.4rem);
  }

  h2 {
    font-size: clamp(1.2rem, 4vw, 1.5rem);
  }
}

/* ================================= */
/* MOBILE & fix navigation overflow  */
/* ================================= */
@media (max-width: 900px) {
  .main-nav {
    max-width: calc(100vw - 32px);
    right: 16px;
  }
}


/* ============================= */
/* MOBILE HAMBURGER MENU FIX */
/* ============================= */

@media (max-width: 900px) {
  .main-nav,
  .main-nav a {
    color: #000000;
  }

  .main-nav a {
    text-decoration: none;
  }

  .main-nav a:hover {
    text-decoration: underline;
  }
}


/* ============================= */
/* PANE SCROLLBAR VISIBILITY */
/* ============================= */

.carousel-track {
  scrollbar-width: auto; /* Firefox */
  scrollbar-color: #ffffff #222222;
}

/* WebKit (Chrome, Safari, iOS) */
.carousel-track::-webkit-scrollbar {
  height: 10px;
}

.carousel-track::-webkit-scrollbar-track {
  background: #222222;
}

.carousel-track::-webkit-scrollbar-thumb {
  background-color: #ffffff;
  border-radius: 6px;
}



