/* ===========================
   Horse Profile Page (Magic Man)
   Keeps styles scoped so main.css stays untouched
   =========================== */

.horse-hero {
  position: relative;
  min-height: 90vh;
  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 53% !important;
}

.horse-hero__copy{
  position: relative;
  z-index: 2;

  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: flex-end;

  text-align: right;
  margin-left: auto;
  padding-right: 4.5%;
  padding-left: 2rem;
  max-width: 700px;
  padding-bottom: 192px;

}
.horse-hero__title{
font-size: clamp(1.7rem, 3vw, 3rem);
  line-height: 1.04;
  letter-spacing: 0;
  margin: 0 0 12px;
}

.horse-hero__kicker{
  letter-spacing: .06em;
  text-transform: uppercase;
  font-size: .9rem;
  margin-bottom: 10px;
}

.horse-hero__badges{
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
  margin-bottom: 18px;
  max-width: 560px;
}

.horse-hero__ctas{
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px;
}
.horse-hero__badges .badge{
  white-space: nowrap;
}
/* 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: 26px auto 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
  align-items: stretch;
}

.fact-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 132px;
  padding: 18px 20px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.04);
}

.fact-card__label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #6f6f6f;
  margin-bottom: 8px;
}

.fact-card__value {
  display: block;
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.3;
  color: #1f1f1f;
}

.fact-card__sub {
  display: block;
  margin-top: 6px;
  font-size: 0.9rem;
  font-weight: 600;
  color: #6a6a6a;
  line-height: 1.35;
}

@media (max-width: 1180px) {
  .horse-facts {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .horse-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .horse-facts {
    grid-template-columns: 1fr;
  }

  .fact-card {
    min-height: auto;
  }
}
.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);
}
.pedigree-details {
  align-items: start;
}

.pedigree-panel,
.registry-panel {
  height: 100%;
}

.pedigree-block {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  margin-top: 10px;
}

.pedigree-side {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pedigree-line {
  margin: 0;
  line-height: 1.45;
}

.pedigree-line.main {
  font-size: 1.08rem;
  font-weight: 600;
  color: #1f1f1f;
}

.pedigree-line.main span {
  font-weight: 500;
  color: #555;
}

.pedigree-line.grandparent {
  margin-left: 1.15rem;
  font-size: 0.98rem;
  color: #555;
  opacity: 1;
}

.pedigree-line.grandparent span {
  color: #777;
  font-size: 0.95em;
}

.pedigree-note {
  margin-top: 18px;
  font-size: 0.98rem;
  line-height: 1.6;
  color: #4f4f4f;
}

.registry-list {
  margin-top: 10px;
}

.registry-list li {
  margin-bottom: 10px;
  line-height: 1.45;
}

.registry-list span {
  color: #666;
  font-style: italic;
}

@media (min-width: 860px) {
  .pedigree-block {
    grid-template-columns: 1fr 1fr;
    gap: 28px;
  }
}
.pedigree-block{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:30px;
  margin-top:12px;
}

.pedigree-entry{
  display:flex;
  gap:8px;
  align-items:flex-start;
}

.pedigree-entry.main{
  margin:6px 0;
}

.pedigree-arrow{
  font-size:1rem;
  color:#666;
}

.pedigree-info{
  display:flex;
  flex-direction:column;
}

.pedigree-name{
  font-size:1rem;
  line-height:1.3;
}

.pedigree-sub{
  font-size:.9rem;
  color:#666;
  margin-top:2px;
}
.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;
}

/* Spacing between skill and experience bullet points */
.cards3 .bullets > li + li {
  margin-top: 16px;
}

/* Spacing between registration and health details */
.registry-panel .registry-list > li + li {
  margin-top: 16px;
}

/* Spacing within nested routine care list */
.registry-list .bullets {
  margin-top: 8px;
}

.registry-list .bullets > li + li {
  margin-top: 4px;
}

/* 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;
}

/* CTA center layout */

.cta-center{
  text-align:center;
  display:flex;
  flex-direction:column;
  align-items:center;
}

/* Script font for this title */

.script-text{
  font-family: "Great Vibes", cursive; /* or whatever script font you use */
  font-size:2.2rem;
  margin-bottom:25px;
}

/* Button layout */

.actions{
  display:flex;
  gap:14px;
  justify-content:center;
  flex-wrap:wrap;
}
.endingText{
  font-size: 42px;
}

@media (max-width: 768px) {
  .horse-hero {
    min-height: 72vh;
    align-items: end;
  }

  .horse-hero__media img {
    height: 72vh;
    object-position: center center !important;
  }

  .horse-hero__copy {
    align-items: center;
    justify-content: flex-end;
    text-align: center;
    margin-left: 0;
    max-width: 100%;
    padding: 0 1rem 1.25rem;
  }

  .horse-hero__copy .container {
    width: 100%;
    max-width: 100%;
    padding: 0;
  }

  .horse-hero__kicker {
    font-size: 0.82rem;
    margin-bottom: 8px;
  }

  .horse-hero__title {
    font-size: clamp(2rem, 8vw, 2.8rem);
    line-height: 1.06;
    margin-bottom: 12px;
  }

  .horse-hero__badges {
    justify-content: center;
    max-width: 100%;
    gap: 8px;
    margin-bottom: 16px;
  }

  .horse-hero__badges .badge {
    font-size: 0.88rem;
  }

  .horse-hero__ctas {
    justify-content: center;
    width: 100%;
    gap: 10px;
  }

  .horse-hero__ctas .btn {
    width: 100%;
    max-width: 280px;
  }
}
@media (max-width: 768px) {

  .horse-hero__title{
    font-size: clamp(1.6rem, 6vw, 2.2rem);
    line-height: 1.08;
  }

  .horse-hero__kicker{
    font-size: .72rem;
    letter-spacing: .08em;
  }

  .horse-hero__badges{
    gap: 6px;
    margin-bottom: 12px;
  }

  .horse-hero__badges .badge{
    font-size: .72rem;
    padding: 5px 10px;
  }

  .horse-hero__ctas{
    gap: 8px;
  }

  .horse-hero__ctas .btn{
    font-size: .85rem;
    padding: 8px 14px;
    max-width: 220px;
  }

}

@media (max-width: 430px){

  .horse-hero__title{
    font-size: clamp(1.4rem, 6vw, 1.9rem);
  }

}