/* ===========================
   Horse Profile Page (TJ)
   Keeps styles scoped so main.css stays untouched
   =========================== */

.horse-hero {
  position: relative;
  min-height: 70vh;
  display: grid;
  align-items: end;
  overflow: hidden;
}
.horse-hero {
  position: relative;
}

.horse-hero__media {
  position: absolute;
  inset: 0;
}

.horse-hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.horse-hero__media img {
  width: 100%;
  height: 70vh;
  object-fit: cover;
  display: block;
  filter: saturate(1.05) contrast(1.05);
  object-position: center 90% !important;
}

.horse-hero__copy{
  background: linear-gradient(
    to top,
    rgba(0,0,0,.72),
    rgba(0,0,0,.18),
    rgba(0,0,0,0)
  );
  z-index: 2;
}
.horse-hero__media{ z-index: 0; }


.horse-hero__kicker {
  margin: 0 0 6px;
  opacity: .95;
  font-weight: 600;
}

.horse-hero__title {
  margin: 0 0 10px;
  line-height: 1.1;
}

.horse-hero__sub {
  margin: 0 0 14px;
  max-width: 70ch;
  opacity: .95;
}

.horse-hero__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.horse-hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
/* Force hero image to full-bleed on large screens */
.horse-hero__media,
.horse-hero__media img {
  max-width: none !important;
  width: 100%;
}
.horse-hero__media {
  justify-self: stretch;
  align-self: stretch;
}

.horse-facts {
  margin: 22px auto 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.fact {
  padding: 14px 14px;
  border-radius: 14px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.08);
}

.fact .label {
  display: block;
  font-size: .85rem;
  opacity: .75;
}

.fact .value {
  display: block;
  font-weight: 700;
  margin-top: 4px;
}

.horse-section {
  margin: 40px auto;
}

.two-col {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 18px;
  align-items: start;
}

.panel {
  border-radius: 18px;
  padding: 18px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
}

.cards3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 14px;
}

.card {
  border-radius: 18px;
  padding: 18px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
}

.video-wrap {
  margin-top: 12px;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.03);
  aspect-ratio: 16 / 9;
}

.video-wrap iframe {
  width: 100%;
  height: 100%;
  display: block;
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.photo {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.08);
  display: block;
}

.photo img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

/* Responsive */
@media (max-width: 980px) {
  .horse-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .two-col { grid-template-columns: 1fr; }
  .cards3 { grid-template-columns: 1fr; }
  .photo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .horse-hero__media img { height: 62vh; }
}

@media (max-width: 520px) {
  .photo-grid { grid-template-columns: 1fr; }
  .photo img { height: 240px; }
}
.pedigree {
  list-style: none;
  padding-left: 0;
}

.pedigree-line {
  margin: 0.2rem 0;
}

.pedigree-line.main {
  font-weight: 600;
}

.pedigree-line.grandparent {
  margin-left: 1.25rem;
  font-size: 0.95em;
  opacity: 0.85;
}
.pedigree-line.grandparent {
  list-style: none;
}
.pedigree-line.grandparent::marker {
  content: "";
}
/* FORCE the hero image to truly cover the full hero area */
.horse-hero{
  position: relative;
  overflow: hidden;
}

.horse-hero__media{
  position: absolute;
  inset: 0;
}

.horse-hero__media img{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  max-width: none; /* defeats global img max-width rules */
}
.horse-hero h1 {
  color: #fff;
  text-shadow: 0 2px 10px rgba(0,0,0,0.35);
}
.horse-hero p {
  color: rgba(255, 255, 255, 0.92);
}
.videoWatch {
  background: #a686dd; /* muted, rich purple */
  color: #fff;
}

.btn-secondary:hover {
  background: #d566f7;
}
.tjerkcta {
      background: #a686dd;
}
.ctacontact{
  margin-left: 10px;
}