/* =========================================================
   LSMART homepage: truly full-bleed hero in PyData theme
   (Fixes clipping by bd-page-width / container max-width)
   ========================================================= */

html, body { overflow-x: hidden; }

/* ---------- 0) Homepage scope: page contains .lsmart-hero--home ---------- */
/* Chrome supports :has(); you're using Chrome. */

/* Remove max-width constraints + padding on the main content wrappers */
.bd-page-width:has(.lsmart-hero--home),
.bd-container__inner:has(.lsmart-hero--home),
.bd-container:has(.lsmart-hero--home),
.bd-content:has(.lsmart-hero--home),
.bd-article-container:has(.lsmart-hero--home),
article.bd-article:has(.lsmart-hero--home) {
  max-width: none !important;
}

.bd-page-width:has(.lsmart-hero--home),
.bd-container__inner:has(.lsmart-hero--home),
.bd-content:has(.lsmart-hero--home),
.bd-article-container:has(.lsmart-hero--home),
article.bd-article:has(.lsmart-hero--home) {
  width: 100% !important;
}

.bd-content:has(.lsmart-hero--home),
.bd-article-container:has(.lsmart-hero--home),
article.bd-article:has(.lsmart-hero--home) {
  padding-left: 0 !important;
  padding-right: 0 !important;
}

/* Critical: allow the hero to extend without being clipped */
.bd-page-width:has(.lsmart-hero--home),
.bd-container__inner:has(.lsmart-hero--home),
.bd-content:has(.lsmart-hero--home),
.bd-article-container:has(.lsmart-hero--home) {
  overflow: visible !important;
}

/* Optional: hide right TOC ("Show Source") on homepage */
.bd-article-container:has(.lsmart-hero--home) ~ .bd-sidebar-secondary {
  display: none !important;
}


/* ---------- 1) The hero itself (now can be 100% of the window) ---------- */
.lsmart-hero--home {
  position: relative;
  width: 100% !important;      /* because wrappers are full-width now */
  height: 75vh;
  min-height: 520px;
  overflow: hidden;
  margin: 0 0 2rem 0;          /* space so the image below is visible */
}

/* Video fills hero */
.lsmart-hero--home video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

/* Dark overlay */
.lsmart-hero--home::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.35);
  z-index: 1;
}

/* Center logo + buttons */
.lsmart-hero-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 2rem;
}

.lsmart-hero-logo {
  width: min(520px, 75vw);
  height: auto;
  margin-bottom: 1.2rem;
  filter: drop-shadow(0 10px 25px rgba(0,0,0,0.6));
}

.lsmart-hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

/* Tagline styling */
.lsmart-hero-tagline {
  max-width: 75%;
  margin: 1rem auto 1.5rem auto;
  font-size: 1.5rem;
  line-height: 1.45;
  opacity: 0.95;
  backdrop-filter: blur(10px);
  color: white !important;
  font-family: "Palatino Linotype", "Book Antiqua", Palatino, serif;
}


/* Buttons */
.lsmart-btn {
  display: inline-block;
  padding: 0.75rem 1.1rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  border: 1px solid rgba(255,255,255,0.35);
  background: rgba(255,255,255,0.12);
  color: white !important;
  backdrop-filter: blur(6px);
}
.lsmart-btn:hover {
  background: rgba(255,255,255,0.20);
  border-color: rgba(255,255,255,0.55);
}
.lsmart-btn-primary {
  background: rgba(255,255,255,0.24);
}

@media (max-width: 900px) {
  .lsmart-hero--home {
    height: 80vh;
    min-height: 420px;
  }
}

/* ---------- 2) Make sure normal content UNDER hero has padding ---------- */
article.bd-article:has(.lsmart-hero--home) section {
  padding-left: 1rem;
  padding-right: 1rem;
}


/* Padded content block under the hero (homepage only) */
.lsmart-home-content {
  max-width: 1200px;        /* optional: keeps it readable on huge screens */
  margin: 0 auto;           /* centers the content */
  padding: 0 24px 48px;     /* <-- the padding you want */
}

/* Ensure images inside the content wrapper behave nicely */
.lsmart-home-content img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Section video styling (inside .lsmart-home-content) */
.lsmart-scalability-video {
  display: block;
  width: 100%;
  max-width: 960px;
  height: auto;
  margin: 1rem auto 2rem;
  border-radius: 12px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
}

.lsmart-differentiable-drive-video,.lsmart-adg-video {
  display: block;
  width: 45%;
  max-width: 960px;
  height: auto;
  margin: 1rem auto 2rem;
  border-radius: 12px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
}


.lsmart-video-figure-one {
  margin: 1.5rem auto;
  text-align: center;
}


.lsmart-video-figure-one figcaption,.lsmart-video-figure-two figcaption {
  margin-top: 0.5rem;
  font-size: 1.05rem;
  color: var(--pst-color-text-muted); /* works nicely with pydata theme */
}


/* Individual video + caption */
.lsmart-video-figure-two {
  max-width: 480px;
  text-align: center;
}

.lsmart-video-figure-two video {
  width: 100%;
  height: auto;
  border-radius: 6px;
}

.lsmart-video-row {
  display: flex;
  gap: 2rem;
  justify-content: center;
  align-items: flex-start;
  margin: 2rem 0;
  flex-wrap: wrap; /* stack on small screens */
}

/* Top navigation bar background */
.bd-header {
  background-color: #0e253cff !important;  /* pick your color */
}

/* Navbar text + icons */
.bd-header,
.bd-header a,
.bd-header .navbar-brand,
.bd-header .nav-link,
.bd-header .fa {
  color: white !important;
}

.bd-header .nav-link:hover {
  color: #38bdf8 !important;   /* cyan hover */
}

/* Make logo column smaller so nav items move left */
.bd-header .navbar-header-items__start {
  flex: 0 0 auto;
  width: auto;
}

/* Remove artificial spacing between logo and nav */
.bd-header .navbar-header-items {
  justify-content: flex-start !important;
}

.bd-header {
  margin-bottom: 0 !important;
}

.bd-container {
  padding-top: 0 !important;
  background-color: var(--pst-color-navbar-background);
}

/* Length of main content area */
.bd-main .bd-content .bd-article-container {
  max-width: 100%;  /* default is 60em */
}



/* Apply the same styling to C++ + Python function directives */
dl.cpp.function,
dl.py.function {
  background: #f5f5f5;
  border: 1px solid #e3e3e3;
  border-radius: 8px;
  padding: 1rem 1.25rem;
  margin: 1rem 0;
}

dl.cpp.function > dt.sig,
dl.py.function > dt.sig {
  background: #ececec;
  border-radius: 6px;
  padding: 0.5rem 0.75rem;
  margin: 0 0 0.75rem 0;
}

dl.cpp.function > dd,
dl.py.function > dd {
  margin-left: 0;
}