/* -------------------------------------------------- */
/* NDI PAGE SCOPING                                   */
/* -------------------------------------------------- */
/* All NDI-specific styling is safely isolated */
body.ndi-page {
  --ndi-dark: #0f1a24;
  --ndi-accent: #1fa7a0;
  --ndi-accent-light: #29c7bd;
  --ndi-white: #ffffff;
}

/* -------------------------------------------------- */
/* NDI LOGO OVERRIDE                                  */
/* -------------------------------------------------- */
body.ndi-page .nav-logo img {
  content: url("Assets/logo2_white.png") !important;
  height: 126px;
  width: auto;
  display: block;
}

/* Prevent global nav underline from affecting the logo */
body.ndi-page .nav-logo::after {
  display: none !important;
  content: none !important;
}

body.ndi-page .nav-logo {
  margin: 0 !important;
  padding: 0 !important;
}

/* -------------------------------------------------- */
/* NDI NAVIGATION TWEAKS                              */
/* -------------------------------------------------- */

/* Optional: NDI-specific nav background */
body.ndi-page nav {
  background: var(--ndi-dark);
}

/* Optional: NDI-specific hover color */
body.ndi-page nav a:hover {
  color: var(--ndi-accent-light);
}

/* Keep the Glow Pulse accent pill but allow NDI tinting */
body.ndi-page .nav-special {
  background: rgba(255, 255, 255, 0.08);
  color: var(--ndi-accent-light);
}

body.ndi-page .nav-special:hover {
  background: var(--ndi-accent-light);
  color: var(--ndi-dark);
  box-shadow: 0 0 12px rgba(41, 199, 189, 0.6);
}

/* -------------------------------------------------- */
/* NDI HEADER / HERO                                  */
/* -------------------------------------------------- */

body.ndi-page header {
  background: linear-gradient(135deg, var(--ndi-dark), #0b141c);
  color: var(--ndi-white);
}

/* -------------------------------------------------- */
/* NDI ACCENT BARS                                    */
/* -------------------------------------------------- */

body.ndi-page .ndi-accent-bar {
  height: 4px;
  width: 80px;
  background: var(--ndi-accent);
  margin-bottom: 20px;
}

/* -------------------------------------------------- */
/* NDI CTA BUTTONS                                    */
/* -------------------------------------------------- */

body.ndi-page .btn,
body.ndi-page .floating-cta {
  background: var(--ndi-accent);
  color: var(--ndi-white);
}

body.ndi-page .btn:hover,
body.ndi-page .floating-cta:hover {
  background: var(--ndi-accent-light);
  transform: translateY(-3px);
}

/* Floating CTA */
.floating-cta-ndi {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: var(--ndi-accent);
  color: white;
  padding: 14px 22px;
  border-radius: 50px;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 0 14px rgba(31,167,160,0.5);
  transition: transform 0.2s ease, background 0.2s ease;
  z-index: 999;
}

.floating-cta-ndi:hover {
  background: var(--ndi-accent-light);
  transform: translateY(-4px);
}


/* -------------------------------------------------- */
/* NDI WATERMARK (optional)                           */
/* -------------------------------------------------- */

/* Global NDI watermark overlay */
body.ndi-page .contact-container {
  position: relative;
  z-index: 1;
}

body.ndi-page .contact-container::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("Assets/ndi-logo-icon.svg");
  background-repeat: no-repeat;
  background-size: 1200px; /* bigger */
  background-position: right -40px top 40px; /* lower */
  opacity: 0.12; /* THIS NOW WORKS */
  pointer-events: none;
  z-index: 0;
}

/* Ensure all content sits above the watermark */
body.ndi-page .contact-container > * {
  position: relative;
  z-index: 2;
}



/* -------------------------------------------------- */
/* NDI FOOTER (FINAL WORKING VERSION)                 */
/* -------------------------------------------------- */

/* Footer container */
body.ndi-page footer {
  background: #0F0B1A; /* NDI dark */
  color: white;
  padding: 40px 20px;
}

/* Inline layout: logo left, text centered */
body.ndi-page footer .ndi-footer-inner {
  display: flex;
  justify-content: center;   /* centers logo + text as a group */
  align-items: center;       /* perfect vertical alignment */
  gap: 16px;                 /* spacing between logo and text */
  text-align: center;
}

/* Footer logo (real image, never cropped) */
body.ndi-page footer .ndi-footer-logo {
  height: 70px;
  width: auto;
  display: block;
}

/* -------------------------------------------------- */
/* BOOKLET LAYOUT                                     */
/* -------------------------------------------------- */

.ndi-booklets {
  display: flex;
  gap: 40px;
  justify-content: center;
  padding: 60px 20px;
  flex-wrap: wrap;
}

.booklet {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(31, 167, 160, 0.35); /* NDI accent tint */
  box-shadow: 0 0 18px rgba(31, 167, 160, 0.25); /* soft aqua glow */
  padding: 30px;
  width: 420px;
  border-radius: 14px;
  position: relative;
  backdrop-filter: blur(6px);
  transition: box-shadow 0.3s ease, border-color 0.3s ease;

  /* ⭐ Subtle circuit-board pattern */
  background-image:
    radial-gradient(circle at 1px 1px, rgba(31,167,160,0.18) 1px, transparent 0),
    radial-gradient(circle at 1px 1px, rgba(31,167,160,0.10) 1px, transparent 0);
  background-size: 40px 40px, 80px 80px;
  background-blend-mode: overlay;
}

/* Optional hover polish */
.booklet:hover {
  border-color: rgba(41, 199, 189, 0.55);
  box-shadow: 0 0 26px rgba(41, 199, 189, 0.35);
}

.booklet-title {
  font-family: var(--font-display);
  font-size: 28px;
  margin-bottom: 20px;
  text-align: center;
}

/* PAGES */
.booklet-pages {
  position: relative;
  height: 260px;
  overflow: hidden;
}

.page {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  opacity: 0;
  transform: translateX(40px);
  transition: all 0.35s ease;
}

.page.active {
  opacity: 1;
  transform: translateX(0);
}

.page-icon {
  font-size: 40px;
  margin-bottom: 10px;
}

/* CONTROLS */
.booklet-controls {
  display: flex;
  justify-content: space-between;
  margin-top: 20px;
}

.booklet-controls button {
  background: var(--ndi-accent);
  color: white;
  border: none;
  padding: 10px 18px;
  border-radius: 6px;
  font-size: 20px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.booklet-controls button:hover {
  background: var(--ndi-accent-light);
}

/* -------------------------------------------------- */
/* Career Pathway Diagram                             */
/* -------------------------------------------------- */

/* Career Pathway Diagram — Enhanced Circuit Background + Animation */
.career-pathway {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 30px 0;
  flex-wrap: wrap;
  padding: 40px;
  border-radius: 12px;
  position: relative;

  /* Solid NDI dark background for contrast */
  background: #0f1a24;

  /* Lighter circuit board pattern */
  background-image:
    linear-gradient(90deg, rgba(41,199,189,0.45) 1px, transparent 1px),
    linear-gradient(0deg, rgba(41,199,189,0.45) 1px, transparent 1px),
    radial-gradient(circle at 12px 12px, rgba(41,199,189,0.55) 3px, transparent 0);
  background-size: 40px 40px, 40px 40px, 80px 80px;
  background-blend-mode: overlay;

  border: 1px solid rgba(41,199,189,0.65);
  box-shadow: 0 0 22px rgba(41,199,189,0.35);

  /* Animated circuit trace overlay */
  overflow: hidden;
}

.career-pathway::after {
  content: "";
  position: absolute;
  top: 0;
  left: -200%;
  width: 200%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(41,199,189,0.25) 50%,
    transparent 100%
  );
  animation: circuit-sweep 6s linear infinite;
  pointer-events: none;
  opacity: 0.4;
}

@keyframes circuit-sweep {
  0% { transform: translateX(0); }
  100% { transform: translateX(100%); }
}

/* Corner nodes */
.career-pathway::before,
.career-pathway .corner-node {
  content: "";
  position: absolute;
  width: 14px;
  height: 14px;
  border-radius: 4px;
  background: var(--ndi-accent);
  box-shadow: 0 0 12px rgba(41,199,189,0.8);
}

.career-pathway::before {
  top: 14px;
  left: 14px;
}

.career-pathway .corner-node {
  bottom: 14px;
  right: 14px;
}

/* Path steps */
.path-step {
  background: #12202c;
  border: 1px solid rgba(41,199,189,0.65);
  padding: 12px 20px;
  border-radius: 8px;
  font-weight: 600;
  color: #ffffff;
  backdrop-filter: blur(4px);
  transition: background 0.2s ease, box-shadow 0.2s ease;
}

.path-step:hover {
  background: #163040;
  box-shadow: 0 0 12px rgba(41,199,189,0.4);
}

/* Arrows */
.path-arrow {
  font-size: 24px;
  opacity: 0.9;
  color: rgba(255,255,255,0.9);
}



/* -------------------------------------------------- */
/* Accordion                                           */
/* -------------------------------------------------- */

.accordion {
  margin-bottom: 40px;
}

/* Each item container */
.accordion-item {
  border: 1px solid rgba(31,167,160,0.5);
  border-radius: 8px;
  margin-bottom: 12px;
  overflow: hidden;
  background: #0f1a24; /* solid NDI dark for contrast */
}

/* Header (job title) */
.accordion-header {
  width: 100%;
  text-align: left;
  background: #12202c; /* slightly lighter than var(--ndi-dark) */
  padding: 14px 18px;
  font-size: 18px;
  font-weight: 600;
  color: #ffffff;
  border: none;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.accordion-header:hover {
  background: #163040;
}

/* Body (description) */
.accordion-body {
  padding: 16px 18px;
  display: none;
  color: rgba(255,255,255,0.9);
  line-height: 1.5;
  background: #0b151e;
}

/* When active, show body */
.accordion-item.active .accordion-body {
  display: block;
}

/* ============================
   FINAL MOBILE NAVIGATION (NDI)
   ============================ */

/* Hide hamburger on desktop */
body.ndi-page .ndi-mobile-menu-btn {
  display: none !important;
}

/* MOBILE BREAKPOINT */
@media (max-width: 900px) {

  /* Reset global nav layout */
  body.ndi-page nav {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 12px 16px !important;
    position: relative !important;
    z-index: 1000 !important;
  }

  /* Reset global button styles */
  body.ndi-page .ndi-mobile-menu-btn {
    all: unset;
    display: flex !important;
    flex-direction: column;
    justify-content: space-between;
    width: 32px;
    height: 22px;
    cursor: pointer;
    margin-left: auto;
    z-index: 1001;
  }

  body.ndi-page .ndi-mobile-menu-btn span {
    display: block;
    height: 3px;
    width: 100%;
    background: white !important;
    border-radius: 3px;
    transition: 0.3s ease;
  }

  /* Slide-in menu panel */
  body.ndi-page nav .nav-links {
    all: unset;
    position: fixed !important;
    top: 0;
    right: -100%;
    height: 100vh;
    width: 260px;
    background: #0f1a24;
    padding-top: 80px;
    padding-left: 20px;
    display: flex !important;
    flex-direction: column !important;
    gap: 22px;
    transition: right 0.35s ease;
    z-index: 1000;
    box-shadow: -4px 0 12px rgba(0,0,0,0.4);
  }

  body.ndi-page nav .nav-links.open {
    right: 0 !important;
  }

  /* Ensure nav links display correctly */
  body.ndi-page nav .nav-links a {
    display: block !important;
    font-size: 20px !important;
    padding: 6px 0;
    color: white !important;
  }

  /* Hide nav-special on mobile IF it exists */
  body.ndi-page nav .nav-special {
    display: none !important;
  }

  /* Hamburger animation */
  body.ndi-page .ndi-mobile-menu-btn.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
  }
  body.ndi-page .ndi-mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
  }
  body.ndi-page .ndi-mobile-menu-btn.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
  }
}
