@import url("responsive.css");

/* Shared site header — NorthStar / North Global Institute */
:root {
  --nc-navy: #0b1f3a;
  --nc-navy-dark: #071526;
  --nc-blue: #1a6eb5;
  --nc-blue-light: #e8f2fa;
  --nc-blue-mid: #b8d4ec;
  --nc-link: #1565c0;
  --nc-border: #d4e4f2;
  --nc-muted: #5a6b7d;
  --nc-white: #fff;
  --nc-topbar: #0a1929;
  --nc-header-h: 4.25rem;
  --nc-topbar-h: 2.25rem;
}

.nc-skip,
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 999;
  padding: 0.5rem 1rem;
  background: var(--nc-white);
}

.nc-skip:focus,
.skip-link:focus {
  left: 0;
}

.nc-topbar {
  background: var(--nc-topbar);
  color: rgba(255, 255, 255, 0.9);
  font-size: 12px;
  min-height: var(--nc-topbar-h);
  display: flex;
  align-items: center;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

.nc-topbar__inner {
  width: min(1200px, calc(100% - 2rem));
  margin-inline: auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
}

.nc-topbar__left,
.nc-topbar__right {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.5rem;
}

.nc-topbar a {
  color: rgba(255, 255, 255, 0.92);
  text-decoration: none;
}

.nc-topbar a:hover {
  color: #7ec8ff;
}

#site-header {
  position: relative;
  z-index: 300;
}

.nc-header {
  background: var(--nc-white);
  border-bottom: 1px solid var(--nc-border);
  position: sticky;
  top: 0;
  z-index: 300;
  box-shadow: 0 2px 8px rgba(11, 31, 58, 0.06);
  width: 100%;
  max-width: 100%;
  overflow: visible;
}

.nc-header__bar {
  position: relative;
  z-index: 2;
  background: var(--nc-white);
}

.nc-header__inner {
  width: min(1200px, calc(100% - 2rem));
  margin-inline: auto;
  min-height: var(--nc-header-h);
  display: flex;
  align-items: center;
  gap: 1rem;
}

.nc-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none !important;
  line-height: 0;
}

.nc-logo__img {
  display: block;
  height: 52px;
  width: auto;
  max-width: min(240px, 42vw);
  object-fit: contain;
  object-position: left center;
}

.nc-nav {
  display: none;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.15rem 0.35rem;
  flex: 1;
  justify-content: center;
}

.nc-nav a {
  font-size: 13px;
  font-weight: 500;
  color: var(--nc-navy);
  padding: 0.45rem 0.65rem;
  border-radius: 4px;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  text-decoration: none;
}

.nc-nav a:hover {
  background: var(--nc-blue-light);
  text-decoration: none;
}

.nc-nav a.is-active {
  background: var(--nc-blue) !important;
  color: var(--nc-white) !important;
  border-radius: 999px;
  padding: 0.45rem 1rem !important;
}

.nc-nav__chev::after {
  content: "";
  border: 4px solid transparent;
  border-top-color: currentColor;
  margin-top: 3px;
  margin-left: 2px;
}

.nc-header__tools {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: auto;
}

.nc-btn-proposal,
.nc-header-cta {
  padding: 0.45rem 0.9rem;
  background: #ffd65c;
  color: var(--nc-navy) !important;
  font-size: 12px;
  font-weight: 700;
  border-radius: 4px;
  border: none;
  white-space: nowrap;
  cursor: pointer;
  font-family: inherit;
  line-height: 1.2;
}

.nc-btn-proposal {
  display: none;
}

.nc-header-cta {
  display: none;
  width: 100%;
  text-decoration: none !important;
}

.nc-btn-proposal:hover,
.nc-header-cta:hover {
  filter: brightness(1.05);
}

.nc-icon-btn {
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid var(--nc-border);
  border-radius: 6px;
  background: var(--nc-white);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--nc-navy);
  padding: 0;
}

.nc-icon-btn svg {
  width: 1.1rem;
  height: 1.1rem;
}

.nc-menu-toggle {
  display: inline-flex;
}

.nc-mobile-nav {
  display: none;
  background: var(--nc-white);
  border-top: 1px solid var(--nc-border);
  padding: 1rem;
}

.nc-mobile-nav[hidden] {
  display: none !important;
}

.nc-mobile-nav.is-open {
  display: block;
}

.nc-mobile-nav a {
  display: block;
  padding: 0.65rem 0;
  color: var(--nc-navy);
  border-bottom: 1px solid var(--nc-border);
  text-decoration: none;
}

.nc-mobile-nav a.is-active {
  color: var(--nc-blue);
  font-weight: 700;
}

.nc-mobile-nav .nc-header-cta {
  display: block;
  text-align: center;
  margin-top: 0.75rem;
  padding: 0.65rem;
}

@media (min-width: 992px) {
  .nc-btn-proposal {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
}

@media (min-width: 992px) {
  .nc-nav {
    display: flex;
  }

  .nc-menu-toggle {
    display: none;
  }

  .nc-mobile-nav {
    display: none !important;
  }
}

/* —— Mega menu & dropdowns (EuroMaTech-style) —— */
.nc-lang-header {
  display: none;
  font-size: 12px;
  color: var(--nc-link);
  text-decoration: none;
  white-space: nowrap;
}

.nc-lang-header:hover {
  text-decoration: underline;
}

.nc-icon-btn--search {
  background: var(--nc-blue);
  border-color: var(--nc-blue);
  color: var(--nc-white);
  border-radius: 50%;
}

.nc-nav-item {
  position: relative;
}

.nc-nav-link {
  font-size: 13px;
  font-weight: 500;
  color: var(--nc-navy);
  padding: 0.45rem 0.65rem;
  border-radius: 4px;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  text-decoration: none;
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
}

.nc-nav-link:hover,
.nc-nav-link--btn:hover {
  background: var(--nc-blue-light);
}

.nc-nav-link--pill {
  background: var(--nc-blue) !important;
  color: var(--nc-white) !important;
  border-radius: 999px;
  padding: 0.45rem 1rem !important;
}

.nc-nav-link.is-active:not(.nc-nav-link--pill) {
  color: var(--nc-blue);
  font-weight: 700;
}

.nc-nav__chev {
  display: inline-block;
  width: 0;
  height: 0;
  border: 4px solid transparent;
  border-top-color: currentColor;
  margin-top: 3px;
}

/* Shared panel slot — one menu open at a time */
.nc-header__panel-slot {
  display: none;
  position: relative;
  z-index: 1;
  background: var(--nc-white);
  border-top: 1px solid var(--nc-border);
  box-shadow: 0 12px 32px rgba(11, 31, 58, 0.1);
}

.nc-header__panel-slot:not([hidden]) {
  display: block;
}

.nc-header__panel-slot--dropdown::before {
  content: "";
  position: absolute;
  top: -10px;
  left: 0;
  right: 0;
  height: 10px;
}

.nc-header__panel-slot--dropdown {
  position: fixed;
  z-index: 500;
  margin: 0;
  padding-top: 4px;
  border: 1px solid var(--nc-border);
  border-radius: 0 0 8px 8px;
  box-shadow: 0 10px 28px rgba(11, 31, 58, 0.12);
  max-height: min(70vh, 480px);
  overflow-y: auto;
}

.nc-header {
  position: sticky;
}

.nc-header__panel-slot--dropdown .nc-dropdown {
  position: static;
  border: none;
  box-shadow: none;
  min-width: 0;
  max-width: none;
}

.nc-nav-item--open .nc-nav-link--btn {
  color: var(--nc-blue);
  background: var(--nc-blue-light);
}

.nc-nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(7, 21, 38, 0.35);
  z-index: 0;
  pointer-events: auto;
}

.nc-nav-overlay[hidden] {
  display: none !important;
}

.nc-mega__body {
  width: min(1200px, calc(100% - 2rem));
  margin-inline: auto;
  padding: 1.25rem 0 1rem;
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
}

.nc-mega__grid {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem 1.5rem;
}

.nc-mega--courses .nc-mega__grid {
  grid-template-columns: repeat(3, 1fr);
}

.nc-mega--venues .nc-mega__grid {
  grid-template-columns: repeat(5, 1fr);
}

.nc-mega__col-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--nc-navy);
  margin: 0 0 0.5rem;
  line-height: 1.3;
}

.nc-mega__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.nc-mega__list a {
  display: flex;
  align-items: flex-start;
  gap: 0.25rem;
  font-size: 12px;
  color: var(--nc-link);
  text-decoration: none;
  padding: 0.2rem 0;
  line-height: 1.35;
}

.nc-mega__list a:hover {
  text-decoration: underline;
  color: var(--nc-navy);
}

.nc-mega__chev {
  color: var(--nc-muted);
  flex-shrink: 0;
}

.nc-mega__footer {
  width: min(1200px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 0.5rem 0 1rem;
  border-top: 1px solid var(--nc-border);
}

.nc-mega__footer a {
  font-size: 13px;
  font-weight: 600;
  color: #c41e3a;
  text-decoration: none;
}

.nc-dropdown {
  background: var(--nc-white);
  padding: 0.5rem 0;
}

.nc-dropdown__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.nc-dropdown__list a {
  display: block;
  padding: 0.45rem 1rem;
  font-size: 13px;
  color: var(--nc-link);
  text-decoration: none;
}

.nc-dropdown__list a:hover {
  background: var(--nc-blue-light);
}

.nc-dropdown__view-all a {
  color: #c41e3a;
  font-weight: 600;
}

.nc-finder {
  flex: 0 0 260px;
  background: var(--nc-blue-light);
  border: 1px solid var(--nc-border);
  border-radius: 8px;
  padding: 1rem;
}

.nc-finder__title {
  font-size: 14px;
  margin: 0 0 0.5rem;
  color: var(--nc-navy);
}

.nc-finder__text {
  font-size: 11px;
  color: var(--nc-muted);
  margin: 0 0 0.75rem;
  line-height: 1.4;
}

.nc-finder__form label {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 11px;
  font-weight: 600;
  color: var(--nc-navy);
}

.nc-finder__form select {
  width: 100%;
  margin-top: 0.25rem;
  padding: 0.4rem;
  border: 1px solid var(--nc-border);
  border-radius: 4px;
  font-size: 12px;
}

.nc-finder__actions {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.65rem;
}

.nc-finder__btn {
  flex: 1;
  padding: 0.45rem 0.5rem;
  font-size: 11px;
  font-weight: 600;
  border-radius: 4px;
  border: none;
  cursor: pointer;
}

.nc-finder__btn--primary {
  background: var(--nc-blue);
  color: var(--nc-white);
}

.nc-finder__btn--ghost {
  background: #e8edf3;
  color: var(--nc-navy);
}

@media (min-width: 900px) {
  .nc-lang-header {
    display: inline-block;
  }
}

@media (min-width: 992px) {
  .nc-mega--venues .nc-mega__body {
    flex-wrap: nowrap;
  }

  /* Position dropdown under active nav item */
  .nc-header__panel-slot--dropdown {
    margin-top: 0;
  }
}

@media (max-width: 991px) {
  .nc-header__panel-slot {
    display: none !important;
  }

  .nc-nav-overlay {
    display: none !important;
  }

  .nc-mobile-nav:not([hidden]) {
    display: block;
    background: var(--nc-white);
    border-top: 1px solid var(--nc-border);
    padding: 1rem;
    max-height: 70vh;
    overflow-y: auto;
  }

  .nc-mobile-group {
    border-bottom: 1px solid var(--nc-border);
    padding-bottom: 0.5rem;
    margin-bottom: 0.5rem;
  }

  .nc-mobile-group__head {
    display: block;
    font-weight: 700;
    color: var(--nc-navy);
    padding: 0.5rem 0;
    text-decoration: none;
  }

  .nc-mobile-sub {
    list-style: none;
    margin: 0;
    padding: 0 0 0 0.75rem;
  }

  .nc-mobile-sub a {
    display: block;
    padding: 0.35rem 0;
    font-size: 13px;
    color: var(--nc-link);
    text-decoration: none;
  }

  .nc-mobile-sub__all a {
    color: #c41e3a;
    font-weight: 600;
  }
}

html[dir="rtl"] .nc-mega__list a {
  flex-direction: row-reverse;
}

html[dir="rtl"] .nc-logo__img {
  object-position: right center;
}

/* Get Proposal modal */
body.nc-proposal-open {
  overflow: hidden;
}

.nc-proposal-modal {
  position: fixed;
  inset: 0;
  z-index: 10020;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 2rem 1rem;
  overflow-y: auto;
}

.nc-proposal-modal[hidden] {
  display: none !important;
}

.nc-proposal-modal__backdrop {
  position: fixed;
  inset: 0;
  background: rgba(11, 31, 58, 0.55);
  backdrop-filter: blur(2px);
}

.nc-proposal-modal__dialog {
  position: relative;
  width: min(520px, 100%);
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.22);
  margin: auto;
  padding: 1.5rem 1.75rem 1.75rem;
}

.nc-proposal-modal__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.5rem;
}

.nc-proposal-modal__head h2 {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--nc-navy, #0b1f3a);
}

.nc-proposal-modal__close {
  border: none;
  background: transparent;
  font-size: 1.75rem;
  line-height: 1;
  color: #64748b;
  cursor: pointer;
  padding: 0 0.25rem;
}

.nc-proposal-modal__close:hover {
  color: #0f172a;
}

.nc-proposal-modal__lead {
  margin: 0 0 1.25rem;
  font-size: 0.9rem;
  color: #475569;
  line-height: 1.45;
}

.nc-proposal-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.nc-proposal-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.nc-proposal-field--full {
  grid-column: 1 / -1;
}

.nc-proposal-field span {
  font-size: 12px;
  font-weight: 600;
  color: var(--nc-navy, #0b1f3a);
}

.nc-proposal-field span em {
  font-weight: 400;
  font-style: normal;
  color: #64748b;
}

.nc-proposal-field input,
.nc-proposal-field textarea {
  width: 100%;
  padding: 0.55rem 0.65rem;
  border: 1px solid var(--nc-border, #d4e4f2);
  border-radius: 4px;
  font: inherit;
  color: var(--nc-text, #333);
  box-sizing: border-box;
}

.nc-proposal-field textarea {
  resize: vertical;
  min-height: 96px;
}

.nc-proposal-submit {
  grid-column: 1 / -1;
  margin-top: 0.25rem;
  padding: 0.65rem 1rem;
  background: #c8a96b;
  color: var(--nc-navy, #0b1f3a);
  border: none;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
}

.nc-proposal-submit:hover:not(:disabled) {
  filter: brightness(1.05);
}

.nc-proposal-submit:disabled {
  opacity: 0.65;
  cursor: wait;
}

.nc-proposal-msg {
  margin-bottom: 1rem;
  padding: 0.65rem 0.75rem;
  border-radius: 4px;
  font-size: 13px;
}

.nc-proposal-msg--ok {
  background: #ecfdf5;
  color: #065f46;
}

.nc-proposal-msg--error {
  background: #fef2f2;
  color: #991b1b;
}

@media (max-width: 560px) {
  .nc-proposal-form {
    grid-template-columns: 1fr;
  }
}
