/* =========================================================
   Listings page overrides / additions (scoped)
   ========================================================= */

/* =========================================================
   Listings hero: allow category background images + dark overlay
   ========================================================= */

/* Let the background image show through */
.listings-page .home-hero{
  background-color: transparent;
  position: relative; /* needed for ::before overlay */
  overflow: hidden;
}

/* Keep the hero's internal bg transparent too */
.listings-page .hero-video-bg{
  background: transparent;
}

/* Stronger overlay (darken + tame brightness) */
.listings-page .home-hero::before{
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(45, 50, 146, 0.65); /* navy tint (acts like "50% opacity") */
  pointer-events: none;
  z-index: 0;
}

/* Make sure the hero content sits above the overlay */
.listings-page .home-hero .home-shell{
  position: relative;
  z-index: 1;
}

/* If you're keeping the existing overlay div, make it transparent so it doesn't double-darken */
.listings-page .hero-video-overlay{
  background: transparent;
}

/* Keep the hero a bit tighter on Listings */
.listings-page .hero-title{
  margin-bottom: 18px;
}


/* =========================================
   Dynamic hero backgrounds per subject
   ========================================= */

.listings-page .listings-hero{
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* Default stays solid blue (already defined) */

/* AI */
.listings-page .hero-ai-robotics{
  background-image:
    linear-gradient(rgba(0,0,0,0.35), rgba(0,0,0,0.35)),
    url('/images/home/category-thumbnails/ai-robotics-conferences-thumbnail.jpg');
}

/* Biology */
.listings-page .hero-biology-medicine{
  background-image:
    linear-gradient(rgba(0,0,0,0.35), rgba(0,0,0,0.35)),
    url('/images/home/category-thumbnails/biology-medicine-conferences-thumbnail.jpg');
}

/* Business (note filename difference) */
.listings-page .hero-business-governance{
  background-image:
    linear-gradient(rgba(0,0,0,0.35), rgba(0,0,0,0.35)),
    url('/images/home/category-thumbnails/business-politics-conferences-thumbnail.jpg');
}

/* Continue pattern for remaining subjects */

.listings-page .hero-computers-internet{
  background-image:
    linear-gradient(rgba(0,0,0,0.35), rgba(0,0,0,0.35)),
    url('/images/home/category-thumbnails/computers-internet-conferences-thumbnail.jpg');
}

.listings-page .hero-energy-environment{
  background-image:
    linear-gradient(rgba(0,0,0,0.35), rgba(0,0,0,0.35)),
    url('/images/home/category-thumbnails/energy-environment-conferences-thumbnail.jpg');
}

.listings-page .hero-home-leisure{
  background-image:
    linear-gradient(rgba(0,0,0,0.35), rgba(0,0,0,0.35)),
    url('/images/home/category-thumbnails/home-leisure-conferences-thumbnail.jpg');
}

.listings-page .hero-military-security{
  background-image:
    linear-gradient(rgba(0,0,0,0.35), rgba(0,0,0,0.35)),
    url('/images/home/category-thumbnails/military-security-conferences-thumbnail.jpg');
}

.listings-page .hero-nanotechnology{
  background-image:
    linear-gradient(rgba(0,0,0,0.35), rgba(0,0,0,0.35)),
    url('/images/home/category-thumbnails/nanotechnology-conferences-thumbnail.jpg');
}

.listings-page .hero-physics-chemistry{
  background-image:
    linear-gradient(rgba(0,0,0,0.35), rgba(0,0,0,0.35)),
    url('/images/home/category-thumbnails/physics-chemistry-conferences-thumbnail.jpg');
}

.listings-page .hero-society-demographics{
  background-image:
    linear-gradient(rgba(0,0,0,0.35), rgba(0,0,0,0.35)),
    url('/images/home/category-thumbnails/society-demographics-conferences-thumbnail.jpg');
}

.listings-page .hero-space{
  background-image:
    linear-gradient(rgba(0,0,0,0.35), rgba(0,0,0,0.35)),
    url('/images/home/category-thumbnails/space-conferences-thumbnail.jpg');
}

.listings-page .hero-transport-infrastructure{
  background-image:
    linear-gradient(rgba(0,0,0,0.35), rgba(0,0,0,0.35)),
    url('/images/home/category-thumbnails/transport-infrastructure-conferences-thumbnail.jpg');
}


/* =========================================================
   Subject icon bar (sticky, compact, matches your buttons)
   ========================================================= */

.listings-page .subject-bar-wrap{
  position: sticky;
  top: 0;
  z-index: 50;

  background: rgba(45, 50, 146, 0.96);
  border-bottom: 1px solid rgba(255,255,255,0.12);

  /* safe: if blur isn't supported it just ignores it */
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.listings-page .subject-bar{
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;

  gap: 15px;             /* matches your record-categories gap */
  padding: 12px 0;
}

/* IMPORTANT: override your global A:link/A:hover rules */
.listings-page a.subject-chip:link,
.listings-page a.subject-chip:visited,
.listings-page a.subject-chip:hover,
.listings-page a.subject-chip:active{
  display: inline-flex;
  align-items: center;
  justify-content: center;

  gap: 8px;              /* was 10px */
  padding: 8px 12px;     /* was 10px 15px */

  border-radius: 25px;
  background-color: #4169e1;
  border: 2px solid #ffffff;

  text-decoration: none;
  color: #fff;

  font-family: 'Roboto Slab', serif;
  font-size: 16px;       /* was 18px */
  font-weight: 300;
  line-height: normal;

  cursor: pointer;
  transition: background-color 0.3s;
}

/* Icon inside the chip */
.listings-page .subject-chip img{
  vertical-align: middle;
  width: 44px;
  height: 44px;
  border-radius: 16px;
  display: block;
}

/* Text label (kept simple) */
.listings-page .subject-chip-text{
  color: #fff;
  white-space: nowrap;
}

/* Hover: match your blue-button hover */
.listings-page a.subject-chip:hover{
  background-color: #2d3292;
  text-decoration: none; /* overrides your global underline-on-hover */
}

/* Active chip state */
.listings-page a.subject-chip.is-active{
  background-color: #1f46bf;
}

/* =========================================================
   Responsive behaviour (match your existing approach)
   ========================================================= */

/* Hide labels earlier to keep it tidy (like your ≤538 category-label hide) */
@media (max-width: 900px){
  .listings-page .subject-chip-text{
    display: none;
  }

  .listings-page a.subject-chip:link,
  .listings-page a.subject-chip:visited,
  .listings-page a.subject-chip:hover,
  .listings-page a.subject-chip:active{
    padding: 8px;
    gap: 0;
  }
}

/* If you want icon-only specifically at ≤538px, this keeps it consistent */
@media (max-width: 538px){
  .listings-page .subject-chip-text{
    display: none;
  }
}