/**
 * Custom overrides for bureauveritasbase theme.
 */

/* Fix oversized search input font on search results page */
.search-results-page .view-filters .advanced-search-field--content input[type=text],
.search-results-page .view-filters .advanced-search-field--content input[type=text]::placeholder {
  font-size: 30px !important;
}
/* button-action hover: 文字变白色 */
body:not(.page-node-type-landing-page) .button-action:hover {
  color: #fff !important;
}

/* link-std: a链接改为品牌蓝 */
a.link-std:not(.reversed) {
  color: #00049E;
}

/* teaser-light--action 下的 span.link-std 也改为品牌蓝 */
.teaser-light--action .link-std:not(.reversed) {
  color: #00049E;
}

.background-color-second a.link-std:not(.reversed),
.background-color-second .teaser-light--action .link-std:not(.reversed) {
  color: #fff;
}
/* 核心服务、您的行业 标题固定大小 */
.section-gallery--title,
.industries-showcase__title {
  font-size: 34px !important;
}
/* footer_highlight 中文站「联系我们」按钮：
   默认蓝底白字加粗，hover 白底蓝字 */
#block-footerhighlightcn .button-action,
#block-footerhighlightcn a.button-action,
#block-footerhighlightcn .teaser-video--action a {
  background-color: #00049E !important;
  color: #fff !important;
  font-weight: 700 !important;
  border: 1px solid #00049E !important;
  transition: background-color .2s ease, color .2s ease;
}

#block-footerhighlightcn .button-action:hover,
#block-footerhighlightcn .button-action:focus,
#block-footerhighlightcn a.button-action:hover,
#block-footerhighlightcn a.button-action:focus,
#block-footerhighlightcn .teaser-video--action a:hover,
#block-footerhighlightcn .teaser-video--action a:focus {
  background-color: #fff !important;
  color: #00049E !important;
  font-weight: 700 !important;
  border: 1px solid #00049E !important;
}

/* 去掉「联系我们」按钮的 ::after 滑入背景动画层（默认 + hover） */
#block-footerhighlightcn .button-action::after,
#block-footerhighlightcn a.button-action::after,
#block-footerhighlightcn .teaser-video--action a::after,
#block-footerhighlightcn .button-action:hover::after,
#block-footerhighlightcn a.button-action:hover::after,
#block-footerhighlightcn .teaser-video--action a:hover::after,
#block-footerhighlightcn .button-action:focus::after,
#block-footerhighlightcn a.button-action:focus::after,
#block-footerhighlightcn .teaser-video--action a:focus::after {
  content: none !important;
  display: none !important;
  background: none !important;
}



/* 「我们的核心服务」(.section-gallery) 区域：
   「阅读更多」后的箭头伪元素图标改为白色。
   原图是蓝色 PNG，用 brightness(0)+invert(1) 强转为白。 */
.section-gallery .link-std::after,
.section-gallery a.link-std::after,
.section-gallery .layer-cover--link::after,
.section-gallery .teaser-event--link::after,
.section-gallery .teaser-links--link::after,
.section-gallery .wysiwyg a.link-std::after,
.section-gallery .link-std:hover::after,
.section-gallery a.link-std:hover::after {
  filter: brightness(0) invert(1) !important;
  -webkit-filter: brightness(0) invert(1) !important;
}

/* Gallery block 底部「更多」链接 - 与 industries-showcase footer 风格一致 */
.section-gallery .section-gallery__footer {
  max-width: 1200px;
  margin: 10px auto 0;
  text-align: right;
}

.section-gallery .section-gallery__footer .link-std {
  color: #fff;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.section-gallery .field--name-field-gallery-view-all {
  max-width: 1200px;
  margin: 10px auto 0;
  padding: 0 10px;
  text-align: right;
}

.section-gallery .field--name-field-gallery-view-all a {
  text-transform: uppercase;
  padding-right: 34px;
  position: relative;
  display: inline-block;
  cursor: pointer;
  color: #00049E;
  font-size: calc(12.8px + 3.2 * (100vw - 960px) / 320);
  text-decoration: none;
}


@media (min-width: 1280px) {
  .section-gallery .field--name-field-gallery-view-all a {
    font-size: 1rem;
  }
}

.section-gallery .field--name-field-gallery-view-all a::after {
  content: "";
  display: inline-block;
  width: 24px;
  height: 16px;
  background-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNCIgaGVpZ2h0PSIxNiIgdmlld0JveD0iMCAwIDI0IDE2Ij48cGF0aCBmaWxsPSIjMDAwNDlFIiBkPSJNMTUuNy4zbC0xLjQgMS40TDE5LjYgN0gwdjJoMTkuNmwtNS4zIDUuMyAxLjQgMS40TDIzLjQgOHoiLz48L3N2Zz4=");
  background-repeat: no-repeat;
  background-size: 24px 16px;
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  transition: right 0.25s ease-out;
}

.section-gallery .field--name-field-gallery-view-all a:hover::after {
  right: -10px;
}
