/* Homepage-only custom hero banner and final layout overrides. */
.svg-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.ui-icon,
.stat-svg,
.hero-stat-icon,
.category-icon,
.side-icon,
.side-link-icon,
.heading-icon {
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.ui-icon {
  width: 18px;
  height: 18px;
}

.primary-link,
.ghost-link,
.search-button,
.reset-button,
.tab {
  gap: 9px;
}

.hero {
  background:
    linear-gradient(90deg, rgba(4, 26, 68, 0.96) 0%, rgba(4, 26, 68, 0.86) 36%, rgba(4, 26, 68, 0.38) 64%, rgba(4, 26, 68, 0.05) 100%),
    image-set(
      url("../../../images/banners/banner-hero-sop-translationfind.webp") type("image/webp"),
      url("../../../images/banners/banner-hero-sop-translationfind.jpg") type("image/jpeg")
    );
  background-position: center;
  background-size: cover;
}

.hero-art {
  display: none;
}

.hero-inner {
  grid-template-columns: minmax(0, 760px) minmax(260px, 1fr);
  min-height: 500px;
  padding-bottom: 132px;
}

.hero-actions .primary-link .ui-icon,
.hero-actions .hero-ghost .ui-icon {
  width: 20px;
  height: 20px;
}

.hero-trust span {
  gap: 7px;
}

.hero-trust .ui-icon {
  width: 17px;
  height: 17px;
  color: #8ec8ff;
}

.hero-snapshot div {
  position: relative;
  padding-left: 64px;
}

.hero-snapshot {
  right: 54px;
  bottom: 42px;
  width: min(720px, calc(100% - 108px));
  overflow: hidden;
  gap: 0;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(198, 216, 239, 0.92);
  border-radius: 8px;
  box-shadow: 0 22px 46px rgba(4, 26, 68, 0.24);
  backdrop-filter: blur(10px);
}

.hero-snapshot div {
  overflow: hidden;
  min-height: 112px;
  padding: 20px 22px 18px 74px;
  background: transparent;
  border: 0;
  border-right: 1px solid #dbe6f5;
  border-left: 0;
  border-radius: 0;
  box-shadow: none;
}

.hero-snapshot div:last-child {
  border-right: 0;
}

.hero-stat-icon {
  position: absolute;
  left: 22px;
  top: 24px;
  width: 42px;
  height: 42px;
  padding: 9px;
  color: #0b4fb3;
  background: #eef6ff;
  border: 1px solid #d1e2f7;
  border-radius: 50%;
  box-shadow: 0 10px 22px rgba(11, 79, 179, 0.10);
}

.hero-snapshot div:nth-child(2) .hero-stat-icon {
  color: #b77912;
  background: #fff7e6;
  border-color: #f4dfb5;
}

.hero-snapshot div:nth-child(3) .hero-stat-icon {
  color: #087a65;
  background: #e9fbf5;
  border-color: #bdebdc;
}

.hero-snapshot div:nth-child(4) .hero-stat-icon {
  color: #243d79;
  background: #f1f5ff;
  border-color: #d9e3ff;
}

.hero-snapshot span {
  margin-bottom: 3px;
  color: #566a8c;
  font-size: 13px;
}

.hero-snapshot strong {
  color: #07327a;
  font-size: 31px;
  letter-spacing: 0;
}

.hero-snapshot p {
  max-width: 130px;
  color: #647694;
}

.finder-toolbar .tab .ui-icon {
  width: 19px;
  height: 19px;
}

.primary-search .search-button,
.primary-search .reset-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.quick-filter-row button {
  grid-template-columns: 28px 1fr;
  grid-template-rows: auto auto;
  align-items: center;
  text-align: left;
}

.quick-filter-row button .ui-icon {
  grid-row: 1 / 3;
  width: 26px;
  height: 26px;
  padding: 5px;
  color: #0b4fb3;
  background: #eef6ff;
  border-radius: 7px;
}

.quick-filter-row button.active .ui-icon,
.quick-filter-row button:hover .ui-icon {
  color: #071a44;
  background: #ffd76b;
}

.stats-grid .stat-svg {
  grid-row: span 2;
  width: 34px;
  height: 34px;
  padding: 7px;
  color: #0b4fb3;
  background: #eef6ff;
  border: 1px solid #d1e2f7;
  border-radius: 8px;
}

.workspace {
  margin-top: -34px;
}

.search-panel {
  border-radius: 8px;
}

.search-panel {
  position: relative;
  border-color: #bed4ee;
  box-shadow: 0 24px 58px rgba(7, 26, 68, 0.14);
}

.search-panel::before {
  content: "";
  display: block;
  height: 5px;
  background: linear-gradient(90deg, #0b4fb3 0%, #1f7ae8 42%, #f0b33f 100%);
}

.search-panel-head {
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  padding: 18px 26px 16px;
}

.search-panel-head h2 {
  max-width: 780px;
  margin-top: 3px;
  font-size: 26px;
  line-height: 1.25;
}

.search-panel-head p:last-child {
  max-width: 850px;
  margin-top: 8px;
  line-height: 1.55;
}

.finder-toolbar {
  padding: 10px 26px;
}

.finder-badges span {
  min-height: 28px;
  background: #ffffff;
}

.primary-search {
  grid-template-columns: minmax(280px, 1fr) 220px 136px;
  padding: 18px 26px 12px;
}

.primary-search input[type="search"],
.primary-search .search-button,
.primary-search .reset-button {
  min-height: 50px;
}

.quick-filter-row {
  grid-template-columns: repeat(5, minmax(140px, 1fr));
  padding: 0 26px 14px;
}

.quick-filter-row button {
  min-height: 58px;
  padding: 9px 11px;
  border-color: #c4d8f0;
}

.finder-grid {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  padding: 14px 26px;
}

.filter-card {
  min-height: 92px;
  padding: 10px;
  background: #ffffff;
}

.filter-card select {
  min-height: 44px;
}

.funding-options {
  grid-column: span 6;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  align-items: center;
  min-height: auto;
  padding: 12px;
}

.funding-options .filter-label {
  grid-column: 1 / -1;
}

.funding-options label {
  min-height: 36px;
  padding: 6px 8px;
  background: #f7fbff;
  border: 1px solid #d8e7f8;
  border-radius: 7px;
}

.search-panel .stats-grid {
  padding: 14px 26px 16px;
}

.search-panel .stats-grid div {
  min-height: 70px;
}

.scholarship-grid {
  gap: 16px;
}

.scholarship-card {
  overflow: hidden;
  background: #ffffff;
  border: 1px solid #cfe0f4;
  box-shadow: 0 14px 30px rgba(7, 26, 68, 0.08);
}

.scholarship-card:hover {
  border-color: #9fc3f1;
  box-shadow: 0 18px 42px rgba(7, 26, 68, 0.13);
  transform: translateY(-2px);
}

.card-body {
  display: flex;
  flex-direction: column;
}

.card-status-row {
  gap: 8px;
  align-items: center;
}

.card-status {
  color: #087a65;
  background: #ecfbf5;
  border-color: #bcebdc;
}

.card-country {
  color: #39537d;
}

.card-source {
  min-height: 34px;
  color: #536789;
  line-height: 1.45;
}

.card-meta-grid div {
  background: #f7fbff;
  border: 1px solid #dce8f7;
  border-radius: 7px;
}

.support-row span,
.tag-row span {
  color: #0a4fab;
  background: #eef6ff;
  border: 1px solid #cce0f8;
}

.deadline {
  gap: 12px;
  align-items: end;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid #dce8f7;
}

.deadline span {
  color: #4f6486;
  line-height: 1.45;
}

.deadline span strong {
  display: block;
  margin-bottom: 3px;
  color: #071a44;
}

.details-link {
  min-width: 112px;
  color: #ffffff;
  font-weight: 800;
  background: linear-gradient(135deg, #236fe6, #0647ad);
  border-color: #0b5fd2;
  box-shadow: 0 10px 18px rgba(11, 95, 210, 0.20);
}

.details-link:hover,
.details-link:focus-visible {
  color: #ffffff;
  background: linear-gradient(135deg, #074fb8, #063d91);
  border-color: #063d91;
}

.popular-category-grid a {
  position: relative;
  padding-left: 58px;
}

.category-icon {
  position: absolute;
  left: 15px;
  top: 17px;
  width: 30px;
  height: 30px;
  padding: 6px;
  color: #0b4fb3;
  background: #eef6ff;
  border: 1px solid #d1e2f7;
  border-radius: 8px;
}

.quick-start-card a {
  position: relative;
  padding-left: 52px;
}

.side-link-icon {
  position: absolute;
  left: 13px;
  top: 13px;
  width: 27px;
  height: 27px;
  padding: 5px;
  color: #0b4fb3;
  background: #eef6ff;
  border-radius: 7px;
}

.why-item {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 12px;
}

.side-icon {
  width: 40px;
  height: 40px;
  padding: 9px;
  color: #0b4fb3;
  background: #eef6ff;
  border: 1px solid #d1e2f7;
  border-radius: 9px;
}

.heading-icon {
  width: 28px;
  height: 28px;
  padding: 5px;
  margin-right: 8px;
  vertical-align: -7px;
  color: #0b4fb3;
  background: #eef6ff;
  border-radius: 7px;
}

.updates-card h2,
.consult-card h2 {
  display: flex;
  align-items: center;
}

@media (max-width: 760px) {
  .hero {
    background:
      linear-gradient(180deg, rgba(4, 26, 68, 0.98) 0%, rgba(4, 26, 68, 0.90) 42%, rgba(4, 26, 68, 0.40) 100%),
      image-set(
        url("../../../images/banners/banner-hero-sop-translationfind.webp") type("image/webp"),
        url("../../../images/banners/banner-hero-sop-translationfind.jpg") type("image/jpeg")
      );
    background-position: 64% center;
    background-size: cover;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-bottom: 34px;
  }

  .workspace {
    margin-top: 0;
  }

  .hero-snapshot {
    position: relative;
    right: auto;
    left: auto;
    bottom: auto;
    width: 100%;
    margin-top: 26px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-snapshot div {
    min-height: 105px;
    padding-left: 54px;
    border-right: 1px solid #dbe6f5;
    border-bottom: 1px solid #dbe6f5;
  }

  .hero-snapshot div:nth-child(2n) {
    border-right: 0;
  }

  .hero-snapshot div:nth-last-child(-n + 2) {
    border-bottom: 0;
  }

  .hero-stat-icon {
    left: 12px;
    top: 15px;
    width: 34px;
    height: 34px;
  }

  .quick-filter-row button {
    grid-template-columns: 1fr;
  }

  .quick-filter-row button .ui-icon {
    grid-row: auto;
  }

  .primary-search {
    grid-template-columns: 1fr;
  }

  .funding-options {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .deadline {
    align-items: stretch;
  }

  .details-link {
    width: 100%;
  }
}

@media (max-width: 560px) {
  .search-panel-head,
  .finder-toolbar,
  .primary-search,
  .finder-grid,
  .search-panel .stats-grid {
    padding-left: 14px;
    padding-right: 14px;
  }

  .quick-filter-row {
    grid-template-columns: 1fr;
    padding-left: 14px;
    padding-right: 14px;
  }

  .funding-options {
    grid-template-columns: 1fr;
  }
}
