* {
  box-sizing: border-box;
}

html {
  height: auto;
}

body {
  margin: 0;
  padding: 0;
}

body header.sticky {
  max-width: none; /* explicitly undo the old max-width */
}

#site-wrapper {
  min-height: 100vh;
  max-width: none; /* explicitly undo the old max-width */
  display: flex;
  flex-direction: column;
}

.project-landing-bg,
.media-landing-bg,
.project-detail-top {
  display: flex; /* modern layout instead of table */
  align-items: center; /* optional: vertical centering */
  justify-content: center; /* optional: horizontal centering */
  width: 100%;
  min-height: 55vh; /* fills 80% of viewport height */
  min-height: 55dvh; /* modern browsers handle zoom better */
  height: auto; /* allow natural growth if content overflows */
}

@media screen and (max-width: 768px) {
  .project-landing-bg,
  .media-landing-bg,
  .project-detail-top {
    height: auto;
    min-height: 300px;
  }
}

/* main-content grows to fill the gap */
#main-content {
  flex: 1;
}

#main-content > *:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
}


/* To avaoid flickers on scroll in projects*/
.project-detail-related .related-projects-card {
  z-index: 0;                /* ✅ makes card its own stacking context */
}

.project-detail-related .related-projects-card .feature-image {
  z-index: 1;                /* ✅ image sits above base card */
}

.project-detail-related
  .related-projects-card
  .feature-image
  .feature-image-overlay {
  will-change: opacity;       /* ✅ only animates opacity, reduces GPU bugs */
  display: flex;              /* ✅ better than display: table */
  align-items: center;
  justify-content: center;
  transform-style: flat !important;  /* ✅ overrides preserve-3d */
  transition: opacity 0.4s ease-in-out; /* ✅ no “all” → smoother scroll */
  z-index: 2;                 /* ✅ overlay sits above image */
}
/* Fix horizontal overflow from tables in older news pages */
html, body {
  overflow-x: hidden;
  max-width: 100vw;
}

.media-detail-container,
.media-detail-content {
  max-width: 100%;
  overflow-x: hidden;
}

.media-detail-container table {
  table-layout: fixed;
  width: 100% !important;
  max-width: 100%;
}

.media-detail-container table td {
  word-wrap: break-word;
  overflow-wrap: break-word;
  word-break: break-word;
  white-space: normal;
}

.container-fluid {
  max-width: 100%;
  overflow-x: hidden;
}

/* Product Attributes List of AI/AR Products Page*/

.product-attributes-list {
  list-style-type: none !important;
  padding-left: 0 !important;
  margin-top: 25px;
}

.product-attributes-list li {
  position: relative;
  padding: 12px 15px 12px 30px !important;
  /* margin-bottom: 12px !important; */
  line-height: 1.5;
  display: block !important;
  overflow: hidden; /* Fixes inspection overlap with floating images */

}


.product-attributes-list li::before {
  content: none !important;
  display: none !important;
}

.product-attributes-list li .checkmark {
  position: absolute;
  left: 0px;
  top: 12px;
  color: #1f1f1f;
  font-weight: bold;
  font-size: 1.2em;
  line-height: 1.2;
}

.product-attributes-list li b {
  color: #333;
}



