/* ============================================================
   EHS Expert Training Center - Home / shared header & footer
   Self-contained recreation of the reference design.
   Dedicated file (see home.js for behaviour).
   ============================================================ */

:root {
  --nk-navy: #002b7f;
  --nk-navy-dark: #001f5c;
  --nk-gold: #feba45;
  --nk-light: #edf0f6;
  --nk-ink: #1c2b46;
  --nk-muted: #5b6b86;
  --nk-line: #e5e9f2;
  --nk-atp: #798aad;
}

.nk-body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--nk-ink);
  background: #fff;
  margin: 0;
}

.nk-body img {
  max-width: 100%;
}

.nk-body p {
  color: var(--nk-ink);
}

/* ---------------- Top bar ---------------- */
.nk-topbar {
  background-color: var(--nk-navy);
  height: 56px;
  color: #fff;
}

.nk-topbar .mt-2 {
  margin-top: .5rem !important;
}

.nk-topbar a,
.nk-topbar .phone {
  color: #fff;
  font-size: 16px;
  text-decoration: none;
}

.nk-topbar a:hover {
  color: var(--nk-gold);
}

.nk-topbar .icon {
  font-size: 16px;
  color: #fff;
}

.nk-topbar .phone {
  float: right;
}

@media screen and (max-width: 580px) {
  .nk-topbar .phone {
    margin-top: -40px;
  }
}

/* ---------------- Header ---------------- */
.nk-header {
  background-color: var(--nk-light);
  border-bottom: none;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.nk-header-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 96px;
}

.nk-header-brand .logo {
  width: 100%;
  max-width: 280px;
  max-height: 90px;
}

.nk-header-menu {
  display: flex;
  align-items: center;
}

.nk-header-mobile {
  display: none;
}

.nk-nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.nk-nav-toggle .icon {
  color: var(--nk-gold);
  font-size: 30px;
}

.nk-menu-trigger {
  display: none;
}

/* Main menu */
.nk-menu-main {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 2px;
  margin: 0;
  padding: 0;
}

.nk-menu-main .nk-menu-item {
  position: relative;
}

.nk-menu-main > .nk-menu-item > a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 12px 13px;
  color: var(--nk-navy);
  font-weight: 700;
  font-size: 12px;
  text-decoration: none;
  white-space: nowrap;
  transition: color .2s;
}

.nk-menu-main > .nk-menu-item > a:hover,
.nk-menu-main > .nk-menu-item > a.active {
  color: var(--nk-gold);
}

@media screen and (min-width: 1300px) {
  .nk-menu-main.my {
    padding-left: 150px;
  }
}

.nk-atp-btn {
  background-color: var(--nk-atp);
  color: #fff;
  border: none;
  border-radius: 20px;
  margin-bottom: 2px;
  padding: 6px 18px;
  font-weight: 700;
  font-size: 14px;
}

.nk-atp-btn:hover {
  background-color: var(--nk-gold);
  color: var(--nk-navy-dark);
}

/* Dropdowns */
.nk-menu-sub {
  list-style: none;
  margin: 0;
  padding: 8px 0;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 240px;
  background: #fff;
  border-radius: 6px;
  box-shadow: 0 14px 40px rgba(0, 0, 0, .12);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: .2s;
  z-index: 60;
}

.nk-menu-item.has-sub:hover > .nk-menu-sub {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nk-menu-sub .nk-menu-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  color: #364a63;
  font-size: 14px;
  text-decoration: none;
  white-space: nowrap;
}

.nk-menu-sub .nk-menu-link:hover {
  background: var(--nk-light);
  color: var(--nk-navy);
}

.nk-menu-icon {
  color: var(--nk-gold);
  font-size: 12px;
  line-height: 1;
}

/* Nested flyout */
.nk-menu-sub .nk-menu-item.has-sub:hover > .nk-menu-sub {
  opacity: 1;
  visibility: visible;
}

.nk-menu-sub .has-sub > .nk-menu-sub {
  top: -8px;
  left: 100%;
  transform: translateX(10px);
  max-height: 70vh;
  overflow-y: auto;
}

.nk-menu-sub .has-sub:hover > .nk-menu-sub {
  transform: translateX(0);
}

/* ---------------- Hero carousel ---------------- */
.nk-hero {
  position: relative;
  background: var(--nk-navy);
}

/* keep the marker bars but drop the ordered-list numbers */
.nk-hero .carousel-indicators {
  list-style: none;
  padding-left: 0;
}

.nk-hero .carousel-indicators > li {
  list-style: none;
}

.nk-hero .carousel-item {
  position: relative;
}

.nk-hero .carousel-item img {
  width: 100%;
  height: auto;
  display: block;
}

.nk-hero .carousel-caption {
  position: absolute;
  inset: 0;
  text-align: left;
}

.nk-hero .carousel-caption p,
.nk-hero .carousel-caption h2 {
  margin: 0;
}

/* caption variants (mirror the reference layout) */
.nk-hero .ml3 {
  position: absolute;
  left: 8%;
  top: 34%;
  width: 500px;
  max-width: 60%;
  font-size: 25px;
  color: #fff;
}

.nk-hero .ml4 {
  position: absolute;
  right: 8%;
  top: 40%;
  width: 700px;
  max-width: 70%;
  font-size: 25px;
  color: #fff;
  text-align: right;
}

.nk-hero .thirdd,
.nk-hero .third,
.nk-hero .third1,
.nk-hero .third2,
.nk-hero .third3 {
  position: absolute;
  left: 8%;
  color: #000;
  max-width: 42%;
}

.nk-hero .thirdd {
  font-size: 24px;
  font-weight: 700;
  top: 26%;
}

.nk-hero .third,
.nk-hero .third1,
.nk-hero .third2,
.nk-hero .third3 {
  font-size: 20px;
}

.nk-hero .third   { top: 36%; }
.nk-hero .third1  { top: 44%; }
.nk-hero .third2  { top: 52%; }
.nk-hero .third3  { top: 60%; }

.nk-hero .ml6,
.nk-hero .ml61 {
  position: absolute;
  right: 8%;
  color: #fff;
  text-align: right;
  font-size: 53px;
  font-weight: 700;
}

.nk-hero .ml6  { top: 32%; }
.nk-hero .ml61 { top: 44%; }

.nk-hero .ml71 {
  position: absolute;
  left: 8%;
  top: 24%;
  font-size: 24px;
  font-weight: 700;
  color: #fff;
}

.nk-hero .ml7 {
  position: absolute;
  left: 8%;
  top: 33%;
  width: 350px;
  max-width: 45%;
  font-size: 17px;
  color: #fff;
}

/* letter animation */
.nk-hero .letter {
  opacity: 0;
  transition: opacity .5s ease;
}

.nk-hero .carousel-control-prev-icon,
.nk-hero .carousel-control-next-icon {
  filter: drop-shadow(0 0 4px rgba(0, 0, 0, .5));
}

/* ---------------- Section headings ---------------- */
.nk-title {
  color: var(--nk-navy);
  font-weight: 600;
  font-size: 50px;
  text-align: center;
  margin-bottom: .5rem;
}

.nk-title b {
  font-weight: 700;
}

/* ---------------- What We Do ---------------- */
.whatwedo {
  padding-top: 3rem;
  padding-bottom: 3rem;
  text-align: center;
}

.whatwedo .ww-heading {
  padding: 3rem;
}

.whatwedo .card {
  background-color: var(--nk-light);
  border-radius: 10px;
  height: 295px;
  border: none;
  margin-top: 1rem;
}

.whatwedo .card .ww-icon {
  margin-top: -12px;
  max-width: 80px;
}

.whatwedo .card .card-body {
  padding: 1.25rem;
}

.whatwedo .card .card-title {
  color: var(--nk-navy);
}

.whatwedo a {
  text-decoration: none;
}

/* ---------------- Our Qualifications ---------------- */
.qualifications {
  padding: 0 3rem;
}

.qualifications .qual-row {
  margin-bottom: 1rem;
}

.qual-tile {
  position: relative;
  display: block;
  margin-top: .5rem;
  text-decoration: none;
}

.qual-tile img {
  width: 100%;
  display: block;
  border-radius: 4px;
}

.qual-tile p {
  position: absolute;
  left: 16px;
  bottom: 24px;
  width: 173px;
  max-width: 80%;
  margin: 0;
  color: #fff;
  font-weight: 700;
  line-height: 1.15;
  font-size: 16px;
  text-shadow: 0 1px 8px rgba(0, 0, 0, .55);
}

.qual-tile:hover p {
  color: var(--nk-gold);
}

/* ---------------- Top Courses ---------------- */
.topcourses {
  padding: 3rem;
}

.tc-group {
  padding: 1.5rem;
  height: 100%;
}

.tc-group.tc-bg {
  background-color: var(--nk-light);
}

.tc-group h4 {
  color: var(--nk-navy);
  font-weight: 700;
  font-size: 1.5rem;
  margin-top: .5rem;
}

.tc-group .tc-link {
  display: block;
  padding: .6rem 1rem;
  color: var(--nk-ink);
  text-decoration: none;
}

.tc-group .tc-link:hover {
  color: var(--nk-navy);
}

.tc-btn {
  display: inline-block;
  width: 163.81px;
  height: 38px;
  line-height: 36px;
  text-align: center;
  border: 1px solid var(--nk-gold);
  border-radius: 8px;
  color: var(--nk-gold);
  background-color: transparent;
  margin: .5rem 0;
  text-decoration: none;
  font-size: 14px;
}

.tc-btn:hover {
  background-color: var(--nk-gold);
  color: var(--nk-navy-dark);
}

/* ---------------- About ---------------- */
.about {
  background-color: #fff;
  background-image: url("https://www.oshas.us/public/images/Group81.webp");
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  padding: 2rem 0;
}

.about .about-heading {
  font-size: 64px;
  font-weight: 700;
  color: var(--nk-navy);
  margin-left: 3rem;
}

.about .about-text {
  margin: 1.5rem 0 1.5rem 3rem;
}

.about .about-btn {
  display: inline-block;
  width: 143.81px;
  height: 48px;
  line-height: 46px;
  text-align: center;
  border: 1px solid var(--nk-gold);
  border-radius: 8px;
  color: var(--nk-gold);
  background-color: transparent;
  margin-left: 3rem;
  text-decoration: none;
}

.about .about-btn:hover {
  background-color: var(--nk-gold);
  color: var(--nk-navy-dark);
}

.about-hide {
  display: none;
}

@media (max-width: 900px) {
  .about {
    display: none;
  }
  .about-hide {
    display: block;
    padding: 1rem;
  }
  .about-hide h2 {
    color: var(--nk-navy);
  }
}

/* ---------------- News and Articles ---------------- */
.news .card {
  border: 1px solid var(--nk-line);
  border-radius: 6px;
  overflow: hidden;
  height: 100%;
}

.news .card .card-img-top {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.news .card-inner {
  padding: 1.25rem;
}

.news .card-title {
  color: var(--nk-navy);
  margin-bottom: .5rem;
}

.news .read-btn {
  width: 100.5px;
  height: 48px;
  border-radius: 8px;
  background-color: var(--nk-navy);
  color: #fff;
  border: none;
}

.news .read-btn:hover {
  background-color: var(--nk-gold);
  color: var(--nk-navy-dark);
}

/* ---------------- Testimonials / FAQ ---------------- */
.nk-list {
  margin-top: 3rem;
}

.nk-list h5 {
  color: var(--nk-navy);
  font-weight: 700;
}

.nk-list h5 sub {
  color: var(--nk-gold);
}

.nk-list hr {
  border: 0;
  border-top: 1px solid var(--nk-line);
  margin: 1.25rem 0;
}

/* ---------------- Footer ---------------- */
.nk-footer {
  background-color: var(--nk-navy);
  color: #fff;
}

.nk-footer p {
  color: #fff;
}

.nk-footer-logo {
  max-height: 60px;
}

.nk-footer .nk-footer-title {
  font-weight: 700;
  font-size: 24px;
}

.nk-footer .nk-footer-link {
  font-size: 14px;
  margin-bottom: .5rem;
}

.nk-footer .nk-footer-link a {
  color: #fff;
  text-decoration: none;
}

.nk-footer .nk-footer-link a:hover {
  color: var(--nk-gold);
}

.nk-footer .nk-footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  margin-right: 10px;
  border-radius: 50%;
  background: #fff;
  color: var(--nk-navy);
  text-decoration: none;
}

.nk-footer .nk-footer-social a:hover {
  background: var(--nk-gold);
}

/* ---------------- Responsive / drawer ---------------- */
@media (max-width: 1199px) {
  .nk-menu-main > .nk-menu-item > a {
    padding: 12px 9px;
    font-size: 14px;
  }
}

@media (max-width: 991px) {
  .nk-menu-trigger {
    display: block;
  }

  .nk-header-wrap {
    min-height: 74px;
  }

  .nk-header-brand .logo {
    max-width: 170px;
    max-height: 52px;
  }

  .nk-header-menu {
    position: fixed;
    top: 0;
    right: -320px;
    width: 300px;
    max-width: 88vw;
    height: 100vh;
    display: block;
    background: #fff;
    box-shadow: -10px 0 40px rgba(0, 0, 0, .18);
    padding: 18px;
    overflow-y: auto;
    transition: right .3s;
    z-index: 1200;
  }

  .nk-header-menu.active {
    right: 0;
  }

  .nk-header-mobile {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 16px;
    margin-bottom: 8px;
    border-bottom: 1px solid #eef1f6;
  }

  .nk-header-mobile .logo {
    max-height: 44px;
  }

  .nk-menu-main {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .nk-menu-main.my {
    padding-left: 0;
  }

  .nk-menu-main > .nk-menu-item {
    border-bottom: 1px solid #eef1f6;
  }

  .nk-menu-main > .nk-menu-item > a {
    display: flex;
    justify-content: space-between;
    padding: 14px 6px;
  }

  .nk-menu-sub {
    position: static;
    transform: none;
    opacity: 1;
    visibility: visible;
    box-shadow: none;
    width: 100%;
    display: none;
    padding: 0 0 10px 12px;
    min-width: 0;
  }

  .nk-menu-item.open > .nk-menu-sub {
    display: block;
  }

  .nk-menu-sub .has-sub > .nk-menu-sub {
    position: static;
    left: 0;
    top: 0;
    transform: none;
    max-height: none;
  }

  .nk-title {
    font-size: 32px;
  }

  .about .about-heading {
    font-size: 40px;
    margin-left: 1rem;
  }

  .about .about-text,
  .about .about-btn {
    margin-left: 1rem;
  }
}

.nk-body.nk-nav-locked {
  overflow: hidden;
}

@media (max-width: 768px) {
  .nk-hero .ml3,
  .nk-hero .ml4 {
    font-size: 15px;
  }
  .nk-hero .ml6,
  .nk-hero .ml61 {
    font-size: 30px;
  }
  .nk-hero .ml7 {
    font-size: 12px;
  }
  .nk-title {
    font-size: 26px;
  }
  .whatwedo .ww-heading {
    padding: 0.5rem;
  }
  .topcourses,
  .qualifications {
    padding: 1rem;
  }
}
