/* Akademik Retina 5.7.12 — unified featured-image hero system */

/* All internal heroes use the same blue photographic treatment as the homepage. */
.ar5-page-hero,
.ar5-blog-hero,
.ar5-search-page-hero,
.ar5-contact-hero,
.ar5-academic-hero,
.ar5-article-hero,
.ar5-dictionary-hero,
.ar5-dictionary-group-hero,
.ar5-terminology-hero,
.ar56-archive-hero{
  position:relative!important;
  isolation:isolate!important;
  overflow:hidden!important;
  color:#FFFFFF!important;
  background-color:#0A5EAD!important;
  background-image:
    linear-gradient(90deg,rgba(0,94,184,.94) 0%,rgba(0,94,184,.84) 36%,rgba(0,80,153,.70) 62%,rgba(18,43,73,.72) 100%),
    var(--ar-current-hero-image)!important;
  background-size:cover!important;
  background-position:center center!important;
  background-repeat:no-repeat!important;
  border-bottom:0!important;
}

/* Subtle blue light keeps the treatment lively without hurting contrast. */
.ar5-page-hero::after,
.ar5-blog-hero::after,
.ar5-search-page-hero::after,
.ar5-contact-hero::after,
.ar5-academic-hero::after,
.ar5-article-hero::after,
.ar5-dictionary-hero::after,
.ar5-dictionary-group-hero::after,
.ar5-terminology-hero::after,
.ar56-archive-hero::after{
  content:"";
  position:absolute;
  inset:0;
  z-index:-1;
  pointer-events:none;
  background:
    radial-gradient(700px 320px at 12% 18%,rgba(77,174,236,.28),rgba(77,174,236,0) 68%),
    linear-gradient(180deg,rgba(0,0,0,0),rgba(8,35,62,.12));
}

/* Keep content above the image/overlay. */
.ar5-page-hero>.container,
.ar5-blog-hero>.container,
.ar5-search-page-hero>.container,
.ar5-contact-hero>.container,
.ar5-academic-hero>.container,
.ar5-article-hero>.container,
.ar5-dictionary-hero>.container,
.ar5-dictionary-group-hero>.container,
.ar5-terminology-hero>.container,
.ar56-archive-hero>.container{
  position:relative!important;
  z-index:1!important;
}

/* Hero typography must always remain highly legible. */
.ar5-page-hero h1,
.ar5-blog-hero h1,
.ar5-search-page-hero h1,
.ar5-contact-hero h1,
.ar5-academic-hero h1,
.ar5-article-hero h1,
.ar5-dictionary-hero h1,
.ar5-dictionary-group-hero h1,
.ar5-terminology-hero h1,
.ar56-archive-hero h1,
.ar5-page-hero h2,
.ar5-academic-hero h2{
  color:#FFFFFF!important;
  text-shadow:0 2px 18px rgba(4,27,51,.16)!important;
}

.ar5-page-hero p,
.ar5-blog-hero p,
.ar5-search-page-hero p,
.ar5-contact-hero p,
.ar5-academic-hero p,
.ar5-article-hero p,
.ar5-dictionary-hero p,
.ar5-dictionary-group-hero p,
.ar5-terminology-hero p,
.ar56-archive-hero p,
.ar5-article-meta,
.ar5-contact-points{
  color:#EFF7FC!important;
}

.ar5-page-hero .ar5-eyebrow,
.ar5-blog-hero .ar5-eyebrow,
.ar5-search-page-hero .ar5-eyebrow,
.ar5-contact-hero .ar5-eyebrow,
.ar5-academic-hero .ar5-eyebrow,
.ar5-article-hero .ar5-eyebrow,
.ar5-dictionary-hero .ar5-eyebrow,
.ar5-dictionary-group-hero .ar5-eyebrow,
.ar5-terminology-hero .ar5-eyebrow,
.ar56-archive-hero .ar5-eyebrow{
  color:#D8EEFB!important;
}

.ar5-page-hero .ar5-breadcrumbs,
.ar5-page-hero .ar5-breadcrumbs a,
.ar5-blog-hero .ar5-breadcrumbs,
.ar5-blog-hero .ar5-breadcrumbs a,
.ar5-search-page-hero .ar5-breadcrumbs,
.ar5-search-page-hero .ar5-breadcrumbs a,
.ar5-contact-hero .ar5-breadcrumbs,
.ar5-contact-hero .ar5-breadcrumbs a,
.ar5-academic-hero .ar5-breadcrumbs,
.ar5-academic-hero .ar5-breadcrumbs a,
.ar5-article-hero .ar5-breadcrumbs,
.ar5-article-hero .ar5-breadcrumbs a,
.ar5-dictionary-hero .ar5-breadcrumbs,
.ar5-dictionary-hero .ar5-breadcrumbs a,
.ar5-dictionary-group-hero .ar5-breadcrumbs,
.ar5-dictionary-group-hero .ar5-breadcrumbs a,
.ar5-terminology-hero .ar5-breadcrumbs,
.ar5-terminology-hero .ar5-breadcrumbs a{
  color:#E6F2FA!important;
}
.ar5-page-hero .ar5-breadcrumbs a:hover,
.ar5-blog-hero .ar5-breadcrumbs a:hover,
.ar5-contact-hero .ar5-breadcrumbs a:hover,
.ar5-academic-hero .ar5-breadcrumbs a:hover,
.ar5-article-hero .ar5-breadcrumbs a:hover,
.ar5-dictionary-hero .ar5-breadcrumbs a:hover,
.ar5-dictionary-group-hero .ar5-breadcrumbs a:hover,
.ar5-terminology-hero .ar5-breadcrumbs a:hover{
  color:#FFFFFF!important;
  text-decoration:underline!important;
  text-underline-offset:4px!important;
}

/* Internal hero buttons mimic the approved homepage contrast. */
.ar5-page-hero .ar5-button-primary,
.ar5-contact-hero .ar5-button-primary,
.ar5-academic-hero .ar5-button-primary,
.ar5-dictionary-hero .ar5-button-primary,
.ar5-dictionary-group-hero .ar5-button-primary,
.ar5-terminology-hero .ar5-button-primary{
  background:#FFFFFF!important;
  color:#004B93!important;
  border-color:#FFFFFF!important;
}
.ar5-page-hero .ar5-button-primary:hover,
.ar5-contact-hero .ar5-button-primary:hover,
.ar5-academic-hero .ar5-button-primary:hover,
.ar5-dictionary-hero .ar5-button-primary:hover,
.ar5-dictionary-group-hero .ar5-button-primary:hover,
.ar5-terminology-hero .ar5-button-primary:hover{
  background:#EAF3FA!important;
  color:#003D7A!important;
}
.ar5-page-hero .ar5-button-ghost,
.ar5-contact-hero .ar5-button-ghost,
.ar5-academic-hero .ar5-button-ghost,
.ar5-dictionary-hero .ar5-button-ghost,
.ar5-dictionary-group-hero .ar5-button-ghost,
.ar5-terminology-hero .ar5-button-ghost{
  background:transparent!important;
  color:#FFFFFF!important;
  border-color:#FFFFFF!important;
}
.ar5-page-hero .ar5-button-ghost:hover,
.ar5-contact-hero .ar5-button-ghost:hover,
.ar5-academic-hero .ar5-button-ghost:hover,
.ar5-dictionary-hero .ar5-button-ghost:hover,
.ar5-dictionary-group-hero .ar5-button-ghost:hover,
.ar5-terminology-hero .ar5-button-ghost:hover{
  background:#FFFFFF!important;
  color:#004B93!important;
}

/* Dictionary/topic hero stat block stays visible over the photograph. */
.ar5-dictionary-hero-stats,
.ar5-academic-mark{
  background:rgba(7,61,111,.34)!important;
  border-color:rgba(255,255,255,.34)!important;
  backdrop-filter:blur(3px)!important;
}
.ar5-dictionary-hero-stats>div{
  border-color:rgba(255,255,255,.28)!important;
}
.ar5-dictionary-hero-stats strong,
.ar5-academic-mark span{
  color:#FFFFFF!important;
}
.ar5-dictionary-hero-stats span,
.ar5-academic-mark small{
  color:#E8F4FB!important;
}

/* Split templates no longer duplicate the same image beside the hero copy. */
.ar5-page-hero-split .ar5-page-hero-grid,
.ar5-expertise-hero .ar5-page-hero-grid,
.ar5-contact-hero .ar5-contact-hero-grid{
  grid-template-columns:minmax(0,900px)!important;
}
.ar5-page-hero-split .ar5-page-hero-media,
.ar5-expertise-hero .ar5-page-hero-media,
.ar5-contact-hero .ar5-contact-art{
  display:none!important;
}

/* Inputs placed inside an image hero keep a white, high-contrast surface. */
.ar5-search-page-hero .ar5-search-page-form{
  background:#FFFFFF!important;
  border-color:rgba(255,255,255,.88)!important;
}
.ar5-search-page-hero .ar5-search-page-form input{
  color:#102A43!important;
  background:#FFFFFF!important;
}

@media(max-width:760px){
  .ar5-page-hero,
  .ar5-blog-hero,
  .ar5-search-page-hero,
  .ar5-contact-hero,
  .ar5-academic-hero,
  .ar5-article-hero,
  .ar5-dictionary-hero,
  .ar5-dictionary-group-hero,
  .ar5-terminology-hero,
  .ar56-archive-hero{
    background-position:62% center!important;
    background-image:
      linear-gradient(90deg,rgba(0,94,184,.96) 0%,rgba(0,94,184,.91) 62%,rgba(18,43,73,.82) 100%),
      var(--ar-current-hero-image)!important;
  }
}
