/* Page Hero CSS Stylesheet */

:root {
  --mp-border: var(--border, #e2e8f0);
  --mp-yellow: var(--yellow, #ffc72c);
  --mp-blue: var(--blue, #0e48b8);
  --mp-blue-600: var(--blue-600, #0b3a94);
  --mp-blue-700: var(--blue-700, #092e80);
  --mp-text: var(--text, #4a5568);
  --mp-text-strong: var(--text-strong, #1a202c);
  --mp-muted-dark: var(--muted-dark, #5d6b84);
}

.page-hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--mp-border);
  box-sizing: border-box;
}

.page-hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.96) 0%, rgba(255, 255, 255, 0.88) 48%, rgba(255, 255, 255, 0.72) 100%),
    radial-gradient(circle at 82% 5%, rgba(255, 210, 27, 0.24), transparent 32%),
    linear-gradient(90deg, #ffffff, #f8fbff);
}

.page-hero-bg::before {
  position: absolute;
  inset: 0;
  content: "";
  opacity: 0.3;
  background-image:
    linear-gradient(90deg, rgba(14, 72, 184, 0.04) 1px, transparent 1px),
    linear-gradient(rgba(14, 72, 184, 0.035) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: linear-gradient(90deg, transparent 0%, #000 20%, #000 76%, transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 20%, #000 76%, transparent 100%);
}

.page-hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 0.94fr) minmax(480px, 0.82fr);
  gap: 64px;
  align-items: center;
  min-height: 560px;
  padding-block: 70px 64px;
  box-sizing: border-box;
}

.page-hero-copy {
  max-width: 770px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
  color: var(--mp-blue);
  font-size: 13px;
  font-weight: 760;
}

.breadcrumb a {
  color: var(--mp-muted-dark);
  transition: color 160ms ease;
  text-decoration: none;
}

.breadcrumb a:hover,
.breadcrumb a:focus-visible {
  color: var(--mp-blue);
}

.page-hero h1 {
  margin: 0;
  color: var(--mp-text-strong);
  font-size: clamp(44px, 4vw, 64px);
  line-height: 1.08;
  letter-spacing: 0;
}

.page-hero p {
  max-width: 680px;
  margin: 26px 0 34px;
  color: var(--mp-muted-dark);
  font-size: clamp(18px, 1.45vw, 23px);
  line-height: 1.52;
}

.page-hero-media {
  position: relative;
  display: grid;
  align-items: end;
  justify-items: center;
  min-height: 430px;
}

.page-hero-media .yellow-panel {
  position: absolute;
  background: var(--mp-yellow);
  border-radius: 20px;
  z-index: 0;
  right: -48px;
  top: -36px;
  bottom: -18px;
  width: min(34vw, 360px);
}

.page-hero-media img {
  position: relative;
  width: min(100%, 590px);
  max-height: 470px;
  object-fit: contain;
  filter: drop-shadow(0 22px 36px rgba(16, 38, 83, 0.14));
}

.page-hero-media img[src*="cat-"] {
  width: min(78%, 460px);
  max-height: 350px;
}

/* Fallback button styles if not loaded by the theme */
.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 25px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  gap: 13px;
  padding: 0 25px;
  border: 1.5px solid transparent;
  border-radius: 7px;
  font-size: 15px;
  font-weight: 760;
  line-height: 1;
  white-space: nowrap;
  transition: transform 160ms ease, box-shadow 160ms ease, background-color 160ms ease, border-color 160ms ease, color 160ms ease;
  text-decoration: none !important;
  cursor: pointer;
}

.btn svg {
  width: 19px;
  height: 19px;
  stroke-width: 2.2;
  fill: none;
  stroke: currentColor;
  transition: transform 160ms ease;
}

.btn:hover,
.btn:focus,
.btn:active,
.btn:focus-visible {
  transform: translateY(-1px);
  text-decoration: none !important;
}

.btn:hover svg,
.btn:focus-visible svg {
  transform: translateX(2px);
}

.btn-primary {
  background: var(--mp-blue);
  color: #ffffff !important;
  box-shadow: 0 14px 28px rgba(14, 72, 184, 0.22);
}

.btn-primary:hover {
  background: var(--mp-blue-600);
}

.btn-secondary {
  background: #ffffff;
  color: var(--mp-blue) !important;
  border-color: var(--mp-blue);
}

.btn-secondary:hover {
  border-color: var(--mp-blue-700);
  color: var(--mp-blue-700) !important;
  box-shadow: 0 12px 24px rgba(14, 72, 184, 0.12);
}

/* Responsive styles */
@media (max-width: 1180px) {
  .page-hero-grid {
    grid-template-columns: 1fr;
    gap: 42px;
    min-height: auto;
  }

  .page-hero-media {
    min-height: 380px;
  }
}

@media (max-width: 760px) {
  .page-hero-grid {
    padding-block: 46px 42px;
  }

  .page-hero h1 {
    font-size: 38px;
  }

  .page-hero p {
    font-size: 17px;
  }

  .page-hero-media {
    min-height: 310px;
    overflow: hidden;
  }

  .page-hero-media img {
    height: 310px;
    object-fit: cover;
    object-position: center bottom;
  }

  .page-hero-media img[src*="cat-"] {
    width: 90%;
    height: 250px;
    object-fit: contain;
  }

  .page-hero-media .yellow-panel {
    right: -28px;
    width: 58%;
  }
}
