 /*
 Put your custom overlay styles in here
 You can use your northpass color palette in this file

#ffffff
#001e60
#4dbdf5
#ffffff
#001e60
#0053e2
*/


@font-face {
	font-family: "EverydaySans";
	src: url(https://s3.us-east-1.amazonaws.com/static.northpass.com/walmart-supplier/fonts/EverydaySansUI-Italic-VF_wght.ttf);
	font-style: italic;
}

@font-face {
	font-family: "EverydaySans";
	src: url(https://s3.us-east-1.amazonaws.com/static.northpass.com/walmart-supplier/fonts/EverydaySansUITT-Bold.ttf);
	font-style: bold;
}

@font-face {
	font-family: "EverydaySans";
	src: url(https://s3.us-east-1.amazonaws.com/static.northpass.com/walmart-supplier/fonts/EverydaySansUITT-Regular.ttf);
	font-style: normal;
}

@font-face {
  font-family: "Bogle";
  src: url(https://s3.amazonaws.com/static.northpass.com/fonts/Bogle_Regular.OTF);
  font-weight: 400;
}

@font-face {
  font-family: "Bogle";
  src: url(https://s3.amazonaws.com/static.northpass.com/fonts/Bogle_Italic.OTF);
  font-weight: 400;
  font-style: italic;
}

@font-face {
  font-family: "Bogle";
  src: url(https://s3.amazonaws.com/static.northpass.com/fonts/Bogle_Medium.otf);
  font-weight: 500;
}

@font-face {
  font-family: "Bogle";
  src: url(https://s3.amazonaws.com/static.northpass.com/fonts/Bogle_Medium_Italic.otf);
  font-weight: 500;
  font-style: italic;
}

@font-face {
  font-family: "Bogle";
  src: url(https://s3.amazonaws.com/static.northpass.com/fonts/Bogle_Bold.OTF);
  font-weight: 700;
}

@font-face {
  font-family: "Bogle";
  src: url(https://s3.amazonaws.com/static.northpass.com/fonts/Bogle_Bold_Italic.OTF);
  font-weight: 700;
  font-style: italic;
}

@font-face {
  font-family: "Bogle";
  src: url(https://s3.amazonaws.com/static.northpass.com/fonts/Bogle_Black.OTF);
  font-weight: 900;
}

@font-face {
  font-family: "Bogle";
  src: url(https://s3.amazonaws.com/static.northpass.com/fonts/Bogle_Black_Italic.OTF);
  font-weight: 900;
  font-style: italic;
}

/* LANGUAGE SWITCH OVERLAY */
#lang-switch-overlay {
  position: fixed;
  inset: 0;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 99999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  animation: lang-overlay-in 0.2s ease forwards;
}

@keyframes lang-overlay-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

#lang-switch-spinner {
  width: 48px;
  height: 48px;
  border: 4px solid #e0e6f5;
  border-top-color: #001e60;
  border-radius: 50%;
  animation: lang-spin 0.8s linear infinite;
}

@keyframes lang-spin {
  to { transform: rotate(360deg); }
}

#lang-switch-message {
  font-family: "EverydaySans", "Bogle", "Roboto", sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: #001e60;
  letter-spacing: 0.01em;
}

/* LANGUAGE-AWARE CONTENT */
html.lang-en .lang-fr { display: none; }
html.lang-fr .lang-en { display: none; }

/* Homepage + Training Events: hide wrong-language cards immediately via CSS — zero flash */
/* Catalog, Homepage, Training Events: hidden until JS applies lang filter + fade-in */
.catalog-cards-wrapper,
.grid-cards-container-hp,
.events-container-hp,
.events-card-wrapper {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease;
}
.catalog-cards-wrapper.lang-ready,
.grid-cards-container-hp.lang-ready,
.events-container-hp.lang-ready,
.events-card-wrapper.lang-ready {
  opacity: 1;
  visibility: visible;
}

body,
html {
  margin: 0;
  padding: 0;
  font-family: "EverydaySans", "Bogle", "Roboto", sans-serif;
}


body {
    background: #fff;
    color: #001c63;
}

.blue-color {
    color: #0052e2;
}

.zero-state-container {
  border: 1px solid #001f64;
  padding: 40px 30px;
  text-align: center;
}

.hp-section-wrapper {
    padding: 20px;
}

.hp-section {
    display: flex;
    width: 100%;
    gap: 40px;
}

.hp-section .right, .hp-section .left {
    width: 50%;
}

.grid-cards-container-hp {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 20px;
}

.module-text-container {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
}
.module-title {
  font-weight: 700;
}

.module-cta a {
    text-decoration: none;
    color: #001c63;
}
.module-cta a:hover {
  text-decoration: underline;
}

.event-type {
    color: #fff;
}

.events-container-hp {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.events-module {
    margin-top: 10px;
}

.overview-main-wrapper {
    padding: 20px;
}

.hero-wrapper {
  padding: 20px;
}

.homepage-hero {
  width: 100%;
  min-height: 300px;
  background: #011e60;
  border-radius: 20px;
  padding: 40px;
  height: 100%;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  flex-direction: column;
}
.hero-heading {
   color: #fff;
  font-size: 3rem;
  font-weight: 700;
  line-height: 50px;
  z-index: 1;
}
.hero-cta {
    display: flex;
    margin-top: 20px;
    z-index: 1;
}
.hero-cta a {
  text-decoration: none;
  background: #ffc11f;
  color: #011e60;
  padding: 10px 30px;
  border-radius: 20px;
  transition: all 0.3s ease;
}

.homepage-hero-main-container {
  position: relative;
}

.hero-background-wrapper {
  width: 100%;
  height: 100%;
  position: absolute;
  display: flex;
  justify-content: end;
  left: 0;
}

.hero-background-wrapper img {
  width: 100%;
  object-fit: contain;
  object-position: bottom;
}


.hero-carousel__slide img {
  position: absolute;      
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;      
  object-position: right bottom;
}

.hero-cta a:hover, .cta-overview-btn:hover, .resource-btn-container a:hover {
  background: #ffb500; 
  transform: scale(1.05); 
}


/* Carousel add-on styles */

/* Important: makes your absolutely-positioned background wrapper anchor to the hero */
.homepage-hero {
  position: relative;
  overflow: hidden;
}

/* Track + slides for fading */
.hero-carousel__track {
  position: relative;
  width: 100%;
  height: 100%;
}

.hero-carousel__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 600ms ease;
}

.hero-carousel__slide.is-active {
  opacity: 1;
  z-index: 1;
}

/* Ensure overlay content is above the image */
.hero-carousel__content {
  position: relative;
  z-index: 2;
  padding: 40px 80px;
  height: 100%;
  width: 100%;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  pointer-events: none;

}

/* Allow clicking CTA */
.hero-carousel__content a {
  pointer-events: auto;
}

/* Prev/Next buttons */
.hero-carousel__btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  border: 0;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: rgba(0,0,0,0.35);
  color: #fff;
  font-size: 28px;
  line-height: 44px;
  cursor: pointer;
}

.hero-carousel__btn--prev { left: 16px; }
.hero-carousel__btn--next { right: 16px; }

/* Dots container + dots (JS creates correct number of dots) */
.hero-carousel__dots {
  position: absolute;
  left: 50%;
  bottom: 16px;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  gap: 8px;
}

.hero-carousel__dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  border: 0;
  background: rgba(255,255,255,0.55);
  cursor: pointer;
}

.hero-carousel__dot.is-active {
  background: rgba(255,255,255,0.95);
}

.course-card-wrapper {
  position: relative;
}

.np-course-version-outdated-popup {
  position: absolute;
  top: 0;
  padding: 10px;
}

.np-course-version-outdated-popup-trigger {
  color: #fdb913;
}

.course-card, .lp-card, .event-card {
    text-decoration: none;
    color: #fff;
    transition: transform 0.3s ease;
    aspect-ratio: 1 / 1;
    display: flex;
    flex-direction: column;
}

.course-card {
  position: relative;
  overflow: hidden;
}

.card-ribbon-container {
  position: absolute;
  top: 12px;
  right: -25px;
  background: #FDB913;
  color: #1a1a1a;
  font-weight: 700;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 4px 35px;
  transform: rotate(45deg);
  z-index: 10;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.course-card:hover, .lp-card:hover, .event-card:hover  {
  transform: scale(1.05); 
}

.event-content {
  display: flex;
  align-items: end;
  justify-content: start;
  background: #fff;
  padding: 10px;
  flex-grow: 1;
  border-radius: 12px 12px 0 0;
  color: #032769;
  border: 4px solid #001f64;
}
.course-content {
  display: flex;
  align-items: end;
  background: #0055eb;
  padding: 10px;
  flex-grow: 1;
  border-radius: 12px 12px 0 0;
}
.resource-content {
  display: flex;
  align-items: end;
  background: #ffc11f;
  color: #032769;
  padding: 10px;
  flex-grow: 1;
  border-radius: 12px 12px 0 0;
}

.card-title {
  font-size: 1.25rem;
  font-weight: 700;
}

.card-details {
  background: #001f64;
  display: flex;
  justify-content: space-between;
  padding: 10px;
  border-radius: 0px 0px 12px 12px;
}

.lp-content {
  display: flex;
  align-items: end;
  justify-content: start;
  background: #4cbdf5;
  padding: 10px;
  flex-grow: 1;
  border-radius: 12px 12px 0 0;
  color: #032769;
}
.lp-content-hp {
  display: flex;
  align-items: end;
  justify-content: start;
  background: #4cbdf5;
  padding: 10px;
  flex-grow: 1;
  border-radius: 12px;
  color: #032769;
}

  .card-training-event {
  border: 2px solid #011e60;
  border-radius: 12px;
}
.card-content-wrapper {
  padding: 15px;
  display: flex;
  gap: 20px;
  justify-content: space-between;
}
.event-title {
  font-size: 1.25rem;
  font-weight: 700;
}
.card-info {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.event-month {
  font-size: 1rem;
  font-weight: 700;
  color: #001c63;
}
.event-cta {
  display: flex;
  width: 100%;
}
.card-date {
  max-width: 100px;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 5px;
  justify-content: center;
  align-items: center;
}
.event-cta a {
  background: #011e60;
  color: #fff;
  text-decoration: none;
  width: 100%;
  border-radius: 20px;
  padding: 2.5px 5px;
  text-align: center;
  transition: background 0.3s ease, transform 0.3s ease;
}

.event-cta a:hover {
  background: #012a8c; 
}

.event-day {
  font-size: 2rem;
  font-weight: 700;
}

.np-course-outline-content-activity-link-completed, .np-course-outline-content-activity-link {
  color: #032769;
}
.np-course-outline-content-activity-list  {
  padding: 15px 0;
}
.np-course-outline-content-activity-list {
  border-bottom: 1px solid #f2f2f2;
}
.np-top-cta-progress-text {
  margin-bottom: 0;
}
.outline-circle {
  width: 16px;
  height: 16px;
  border-radius: 50%;
} 
.outline-event {
  border: 1.5px solid #001c63;
  background: #fff;
}
.outline-resource {
  background: #ffc11f;
  border: 1.5px solid #ffc11f;
}
.outline-module {
  background: #0055eb;
  border: 1.5px solid #0055eb;
}
.outline-completed {
  color: green;
}
.np-optional-ribbon {
  position: static;
}

.overview-text {
  line-height: 30px;
}
@media only screen and (max-width: 1150px) {
  .grid-cards-container-hp {
    grid-template-columns: repeat(2,1fr);
  }
}

@media only screen and (max-width: 768px) {
  .hero-wrapper {
    padding: 15px 10px;
  }
  .hp-section {
    flex-direction: column;
  }
  .grid-cards-container-hp {
    grid-template-columns: repeat(3,1fr);
    margin: 10px 0 25px 0;
    gap: 10px;
  }
  .events-container-hp {
    margin: 10px 0 25px 0;
  }
  .hp-section {
    gap: 0;
    padding: 10px;
  }
  .module-text-container {
    margin-bottom: 0;
  }
  .events-module {
    margin: 0;
  }
  .module-title, .module-cta a {
    font-size: 1.25rem;
  }
  .card-title {
    font-size: 1rem;
  }
  .course-content {
    padding: 5px;
  }
  .card-details {
    font-size: 0.85rem;
    padding: 5px;
  }
  .homepage-hero {
    padding: 20px;
    min-height: 250px;
    justify-content: space-around;
  }
  .np-homepage {
    margin-bottom: 30px;
  }
 
.hero-carousel__btn {
    width: 38px;
    height: 38px;
    font-size: 24px;
    line-height: 38px;
    top: 55%;
    background: rgba(0,0,0,0.28);
  }

  .hero-carousel__btn--prev { left: 10px; }
  .hero-carousel__btn--next { right: 10px; }

  .hero-carousel__dots {
    bottom: 10px;
    gap: 10px;
  }

  .hero-heading {
    font-size: 2.5rem;
    line-height: 1.2;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.45);
  }

  .hero-carousel__slide img {
    opacity: 0.5;
  }
}

@media only screen and (max-width: 450px) {
  .grid-cards-container-hp {
    grid-template-columns: repeat(2,1fr);
  }

.hero-carousel__btn {
    top: auto;
    bottom: 52px; 
    transform: none;
    width: 36px;
    height: 36px;
    font-size: 22px;
    line-height: 36px;
  }

  .hero-carousel__dots {
    bottom: 10px;
  }

  
.hero-heading {
    font-size: 2rem;
    line-height: 1.15;
    text-shadow: 0 3px 8px rgba(0, 0, 0, 0.55);
  }

}
