body {
  overflow-x: hidden;
}
body {
  font-family: "IBM Plex Sans", /* new primary */ ui‑sans‑serif, system-ui,
    -apple‑system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
    Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji",
    "Segoe UI Symbol", "Noto Color Emoji";
}

p {
  margin-top: 0;
  margin-bottom: 0rem;
}

.max-width1200,
.container.max-width1200 {
  max-width: 1200px;
}
/* === Hero Carousel Gradient Overlay === */
.hero-section .carousel-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.6) 0%,
    rgba(0, 0, 0, 0.2) 60%,
    rgba(0, 0, 0, 0.6) 100%
  );
  pointer-events: none;
  z-index: 1;
}

/* Ensure carousel caption sits above gradient */
.hero-section .carousel-caption {
  position: relative;
  z-index: 2;
}
.display-4 {
  font-size: 3.5rem;
  font-weight: 700 !important;
}
.lead,
a.lead {
  font-weight: 300;
  background: #e01313;
  display: inline-block;
  padding: 0.2em 1em;
  border-radius: 0.4em;
}
.hero-text-layer2 a {
  color: #fff;
}
/* === Employee Hub Boxes === */
#employee-hub .row {
  --bs-gutter-x: 0.5rem;
}
.btn-container {
  overflow: hidden;
}
.btn-set {
  padding: 0.4em;
  border-radius: 0.2rem;
  overflow: hidden;
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.btn-set .image-wrapper {
  position: relative;
  overflow: hidden; /* Clips the scaled image and keeps gradient aligned */
  border-radius: 0.2rem; /* Matches the box radius */
}
.btn-set img {
  display: block;
  width: 100%;
  transition: transform 0.5s ease;
}

.btn-set .gradient-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    to top,
    #1b344d 0%,
    rgba(0, 0, 0, 0.1) 50%,
    transparent 100%
  ); /* Bottom solid, fades up */
  opacity: 1; /* Always visible */
  z-index: 1;
  transition: opacity 0.3s ease; /* Subtle transparency shift on hover */
}
.gradient-overlay:hover {
  background: linear-gradient(
    to top,
    #1b344d 0%,
    rgba(0, 0, 0, 0.8) 100%,
    #5c5c5c00 100%
  );
}
.btn-set .title-icon {
  position: absolute;
  bottom: 2.7rem;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  opacity: 1; /* Always visible, no animation */
  z-index: 2;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
  width: 90%;
}
.btn-set:hover {
  transform: translateY(-2px);
  /* box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2); */
}
.btn-set:hover img {
  transform: scale(1.1);
}
.btn-set:hover .gradient-overlay {
  opacity: 0.9; /* Slightly less transparent on hover for depth */
}

/* make the container relative so our cards can overlap */
.container.position-relative {
  overflow: visible;
}

/* pull the CTAs up over the hero */
.icon-outline {
  border-color: #fff;
  color: #fff;
}
.icon-outline {
  width: 3rem;
  height: 3rem;
  border: 2px solid currentColor;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  font-size: 1.25rem;
}
.hero-ctas {
  position: absolute;
  top: calc(100% - 3rem); /* adjust this so they overlap just right */
  left: 0;
  right: 0;
  z-index: 2;
  pointer-events: none; /* let links inside still be clickable */
  margin-top: -2em;
}
.hero-ctas .cta-card {
  pointer-events: auto; /* re‑enable on the cards */
}

/* style each card */
.cta-card {
  width: 280px;
  background: #fff;
  border-radius: 0.75rem;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* hover/active lift */
.cta-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

/* internal padding & remove link underlines */
.cta-card a {
  display: block;
  padding: 1.5rem;
  text-decoration: none;
}

/* ensure space under hero for overlapping */
.container.position-relative {
  position: relative;
  padding-bottom: 1rem;
  margin-bottom: 8em;
  overflow: visible;
}

/* overlap the cards on desktop */
.hero-ctas {
  position: absolute;
  top: calc(100% - 5rem);
  left: 0;
  right: 0;
  z-index: 2;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
}

/* card base styling */
.cta-card {
  width: 280px;
  border-radius: 0.75rem;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* unique background & text colors */
.bg-teal {
  background: #17a2b8;
  color: #fff;
}
.bg-orange {
  background: #fd7e14;
  color: #fff;
}
.bg-purple {
  background: #6f42c1;
  color: #fff;
}

/* make icons and labels inherit the card’s color */
.cta-card a,
.cta-card i {
  color: inherit;
  text-decoration: none;
}

/* hover lift */
.cta-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

/* responsive: stack and remove absolute positioning */
@media (max-width: 768px) {
  .container.position-relative {
    margin-bottom: 0em;
  }
  .hero-ctas {
    position: static;
    margin-top: -2rem; /* slight overlap */
    padding-bottom: 2rem; /* extra bottom space */
  }
  .cta-card {
    width: 100%;
    max-width: 320px;
    margin: 0 auto 1.5rem;
  }
}

/* === Quick Links Grid === */
.quick-links {
  display: grid;
  gap: 0.5rem;
  grid-template-columns: repeat(3, 1fr);
}

/* small tablets and up */
@media (min-width: 576px) {
  .quick-links {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* medium devices and up */
@media (min-width: 768px) {
  .quick-links {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* large devices and up: 6 per row! */
@media (min-width: 1200px) {
  .quick-links {
    grid-template-columns: repeat(3, 1fr);
  }
}
/* medium devices and up */
@media (max-width: 568px) {
  .quick-links {
    grid-template-columns: repeat(2, 1fr);
  }
}

.quick-links .card {
  /* background: #1b3347; */
  padding: 2rem 1em;
  display: flex;
  min-height: 9em;
  flex-direction: column;
  align-items: center;
  transition: transform 0.2s, box-shadow 0.2s;
}
.quick-links .card:hover {
  background: #03080c;
}

.quick-links .card i {
  font-size: 1.25rem;
  margin-bottom: 0.25rem;
  color: #f2cd60;
}

.quick-links .card span {
  text-align: center;
  line-height: 1.2;
  color: #fff;
  padding-top: 0.5em;
}
/* === Navbar Styling === */
.navbar {
  background: linear-gradient(90deg, #0062e6, #33aeff);
}
.navbar .nav-link {
  color: #fff !important;
  font-weight: 500;
  margin: 0 0.5rem;
  transition: color 0.2s;
}
.navbar .nav-link:hover,
.navbar .nav-link.active {
  color: #ffd700 !important;
}
.navbar .dropdown-menu {
  background: #fff;
  border-radius: 0.5rem;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}
.navbar .dropdown-item:hover {
  background: #f0f8ff;
}

/* === Mobile Hamburger === */
.menu-btn .hamburger-icon .line {
  width: 25px;
  height: 3px;
  background: #fff;
  margin: 4px 0;
  transition: transform 0.3s, background 0.3s;
}
.menu-btn.is-active .line1 {
  transform: rotate(45deg) translate(5px, 5px);
}
.menu-btn.is-active .line2 {
  opacity: 0;
}
.menu-btn.is-active .line3 {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* === Side Nav and Page Styles ===  */
.page-header {
  height: 350px;
}
.page-header::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to bottom right,
    rgb(0 0 0 / 60%),
    rgba(0, 0, 0, 0.4)
  );
}
.page-header .header-content {
  position: relative;
  z-index: 1;
  color: #fff;
}

.page-content {
  padding: 2rem 0;
  line-height: 1.6;
}
.page-content h2 {
  border-left: 4px solid #007bff;
  padding-left: 0.5rem;
  margin-top: 1.5rem;
}
.page-content a {
  color: #007bff;
  text-decoration: underline;
}

/* content page styles */
.page-container {
  width: 100%;
  display: block;
  margin: auto;
  padding: 0 6%;
}
@media (max-width: 1200px) {
  .page-header {
    height: 200px;
  }
}

@media (max-width: 576px) {
  .page-header {
    height: 100px;
  }
}

p {
  margin-top: 0;
  margin-bottom: 0rem;
  color: #2e2e2e;
  font-weight: 300;
}
/* nav.sidenav.nav.flex-column {
    background: #0d0c0c;
} */

/* Sidebar container */
.sidenav {
  background: #111828;
  padding: 1.5rem;
  border-radius: 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: background 0.3s ease;
}
/* Top‑level links */
.sidenav .nav-link {
  color: #333;
  font-weight: 600;
  padding: 0.6rem 1rem;
  border-radius: 4px;
  margin-bottom: 0.25rem;
  transition: background 0.3s, color 0.3s;
  position: relative;
}

/* Hover effect */
.sidenav .nav-link:hover {
  background: rgba(0, 123, 255, 0.1);
  color: #007bff;
}

/* Active link styling */
.sidenav .nav-link.active {
  background: #e01313;
  color: #fff;
  box-shadow: inset 0 0 4px rgba(0, 0, 0, 0.2);
}

/* Sublink group indent */
.sidenav .nav .nav {
  margin-top: 0.4rem;
  margin-left: 1rem;
  border-left: 2px solid #e9ecef;
  padding-left: 0.75rem;
}

/* Sublink bullets (using a custom “dot”) */
.sidenav .nav .nav-link::before {
  content: "•";
  display: inline-block;
  width: 1em;
  margin-right: 0.5em;
  color: #007bff;
  font-size: 0.8rem;
  vertical-align: middle;
}

/* Optional: change sidebar background on hover */
/* .sidenav:hover {
  background: #f8f9fa;
} */

/* Responsive tweak (smaller padding on very narrow screens) */
@media (max-width: 576px) {
  .sidenav {
    padding: 1rem;
  }
  .sidenav .nav-link {
    padding: 0.5rem 0.75rem;
    font-size: 0.95rem;
  }
}

/* === HR Main Page Bottom Section === */
.hr-main-page-bottom-section {
}
/* === CKeditor === */
.page-container {
  ul {
    list-style-type: square;
  }
}

.page-container img,
.page-container video {
  max-width: 100%;
  height: auto;
  display: block;
  margin: auto;
}
mark.pen-red {
  color: #e01313;
}

section.editor-container__editor p {
  margin-bottom: 0rem;
}
