/* R50 — consolidated hero-image seam correction. Does not change hero dimensions or functionality. */
/* Match the image transparency to the actual page surface, not a fixed overlay colour. */
@media screen {
  /* Category banners with actual <img> tags: preserve faces and embedded lettering; fade final 11–16%. */
  body[data-nesto-page="nesto_banking_recruitment"] .hero > img.nesto-banking-hero-img,
  body[data-nesto-page="nesto_banking_professionals"] .bp-hero > img:first-child,
  body[data-nesto-page="nesto_entrance_exams"] .bp-hero > img:first-child,
  body[data-nesto-page="nesto_competitive_exams"] .hero > img:first-child,
  body[data-nesto-page="nesto_entrance_exams_details"] .hero > img:first-child,
  body[data-nesto-page="nesto_banking_careers"] img.bank-hero {
    -webkit-mask-image:linear-gradient(to bottom,#000 0%,#000 83%,rgba(0,0,0,.92) 87%,rgba(0,0,0,.54) 94%,transparent 100%)!important;
    mask-image:linear-gradient(to bottom,#000 0%,#000 83%,rgba(0,0,0,.92) 87%,rgba(0,0,0,.54) 94%,transparent 100%)!important;
    -webkit-mask-composite:initial!important;mask-composite:initial!important;
  }
  /* Finance course hero: soften the right-hand join on desktop and the bottom on stacked mobile. */
  html[data-nesto-theme="sage"] body[data-nesto-course] .hero-photo .nesto-hero-img {
    -webkit-mask-image:linear-gradient(to right,#000 0%,#000 88%,transparent 100%),linear-gradient(to bottom,#000 0%,#000 92%,transparent 100%)!important;
    mask-image:linear-gradient(to right,#000 0%,#000 88%,transparent 100%),linear-gradient(to bottom,#000 0%,#000 92%,transparent 100%)!important;
    -webkit-mask-composite:source-in!important;mask-composite:intersect!important;
  }
  /* Prevent inherited hard backgrounds from showing through the faded image edge. */
  html[data-nesto-theme="sage"] body[data-nesto-page="nesto_banking_recruitment"] .hero,
  html[data-nesto-theme="sage"] body[data-nesto-page="nesto_banking_professionals"] .bp-hero,
  html[data-nesto-theme="sage"] body[data-nesto-page="nesto_entrance_exams"] .bp-hero,
  html[data-nesto-theme="sage"] body[data-nesto-page="nesto_competitive_exams"] .hero,
  html[data-nesto-theme="sage"] body[data-nesto-page="nesto_entrance_exams_details"] .hero {
    background-color:#c8d5b9!important;
  }
  /* Homepage and scrolling banners deliberately excluded: approved display retained. */
}
@media(max-width:780px){
  body[data-nesto-page="nesto_banking_recruitment"] .hero > img.nesto-banking-hero-img,
  body[data-nesto-page="nesto_banking_professionals"] .bp-hero > img:first-child,
  body[data-nesto-page="nesto_entrance_exams"] .bp-hero > img:first-child,
  body[data-nesto-page="nesto_competitive_exams"] .hero > img:first-child,
  body[data-nesto-page="nesto_entrance_exams_details"] .hero > img:first-child,
  body[data-nesto-page="nesto_banking_careers"] img.bank-hero {
    -webkit-mask-image:linear-gradient(to bottom,#000 0%,#000 78%,rgba(0,0,0,.9) 84%,rgba(0,0,0,.5) 93%,transparent 100%)!important;
    mask-image:linear-gradient(to bottom,#000 0%,#000 78%,rgba(0,0,0,.9) 84%,rgba(0,0,0,.5) 93%,transparent 100%)!important;
  }
  html[data-nesto-theme="sage"] body[data-nesto-course] .hero-photo .nesto-hero-img {
    -webkit-mask-image:linear-gradient(to bottom,#000 0%,#000 83%,rgba(0,0,0,.6) 93%,transparent 100%)!important;
    mask-image:linear-gradient(to bottom,#000 0%,#000 83%,rgba(0,0,0,.6) 93%,transparent 100%)!important;
    -webkit-mask-composite:initial!important;mask-composite:initial!important;
  }
}
