
:root{--rlb-blue:#0033a0;--rlb-blue-dark:#00257a;--rlb-green:#25d366;--rlb-green-dark:#128c7e;--rlb-gold:#f5b400;--rlb-text:#172033;--rlb-muted:#64748b;--rlb-line:#dce4ef;--rlb-page:#f5f8fc}
.breed-page,.breed-page *{font-family:'Roboto','Tajawal','Segoe UI',Tahoma,Arial,sans-serif}
.breed-page{background:var(--rlb-page);color:var(--rlb-text)}
.breed-page .section-title,.breed-page .section-subtitle,.breed-page .breed-name,.breed-page .breed-detail-intro h1,.breed-page .detail-card h2,.breed-page .side-card h3{color:var(--rlb-blue)!important}
.breed-page .breeds-hero{min-height:340px;height:auto;padding:54px 0;background:linear-gradient(135deg,var(--rlb-blue),var(--rlb-blue-dark));display:flex;align-items:center;text-align:center;color:#fff}
.breed-page .breeds-hero-content h1{color:#fff!important;font-size:clamp(2rem,6vw,3.4rem);line-height:1.2;margin:0 0 12px}
.breed-page .breeds-hero-content p{max-width:820px;margin:0 auto;font-size:clamp(1rem,2.7vw,1.2rem);line-height:1.85}
.breed-page .flag-container{margin:16px auto}.breed-page .flag-container img{width:108px;margin:auto;border-radius:8px}
.breed-page .breeds-section{padding:52px 0}.breed-page .section-title{text-align:center;font-size:clamp(1.8rem,4.8vw,2.6rem);margin:0 0 30px}
.breed-page .breeds-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px;align-items:stretch}
.breed-page .breed-card{display:flex;flex-direction:column;height:100%;background:#fff;border:1px solid var(--rlb-line);border-radius:18px;overflow:hidden;box-shadow:0 10px 30px rgba(0,51,160,.08);transition:transform .2s ease,box-shadow .2s ease}
.breed-page .breed-card:hover{transform:translateY(-4px);box-shadow:0 16px 34px rgba(0,51,160,.13)}
.breed-page .breed-image{height:220px;overflow:hidden;background:#eef3fa}.breed-page .breed-image img{width:100%;height:100%;object-fit:cover;transition:transform .35s ease}.breed-page .breed-card:hover .breed-image img{transform:scale(1.035)}
.breed-page .breed-info{display:flex;flex-direction:column;flex:1;padding:22px}.breed-page .breed-name{font-size:1.25rem;font-weight:900;line-height:1.45;margin:0 0 9px}
.breed-page .breed-origin{display:flex;gap:7px;align-items:flex-start;color:var(--rlb-muted);font-size:.9rem;line-height:1.6;margin-bottom:12px}
.breed-page .breed-description-block{margin-bottom:15px}.breed-page .breed-description{display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;min-height:5.15em;color:#465268;line-height:1.72;margin:0}.breed-page .read-more{display:inline-flex;margin-top:5px;color:var(--rlb-blue);font-weight:900;text-decoration:none}.breed-page .read-more:hover{text-decoration:underline}
.breed-page .breed-specs{display:flex;flex-direction:column;gap:10px;margin-bottom:18px}.breed-page .spec-item{display:grid;grid-template-columns:28px 1fr;gap:9px;align-items:start}.breed-page .spec-icon{width:28px;height:28px;border-radius:8px;background:var(--rlb-blue)!important;color:#fff;display:flex;align-items:center;justify-content:center;font-size:13px}.breed-page .spec-label{color:#455268;font-size:.9rem;line-height:1.65}.breed-page .spec-label strong{font-weight:900;color:#24334c}
.breed-page .breed-actions{margin-top:auto}.breed-page .btn-whatsapp-breed{width:100%;min-height:48px;display:flex;align-items:center;justify-content:center;gap:9px;padding:10px 15px;border-radius:11px;background:var(--rlb-green)!important;color:#fff;text-decoration:none;font-weight:900;box-shadow:0 7px 18px rgba(37,211,102,.2);transition:.2s ease}.breed-page .btn-whatsapp-breed:hover{background:var(--rlb-green-dark)!important;transform:translateY(-2px)}
.request-icons{display:inline-flex;align-items:center;gap:3px}.request-icons img{width:19px!important;height:19px!important;object-fit:contain!important}.request-icons svg{display:block;color:#fff}
.breadcrumb{background:#fff;border-bottom:1px solid var(--rlb-line)}.breadcrumb .container{padding-top:13px;padding-bottom:13px}.breadcrumb a{color:var(--rlb-blue);font-weight:800;text-decoration:none}
/* detail pages */
.breed-detail-hero{padding:48px 0;background:linear-gradient(135deg,#eef5ff,#fff)}.breed-detail-hero-grid{display:grid;grid-template-columns:minmax(0,1.05fr) minmax(0,.95fr);gap:34px;align-items:center}.breed-detail-image{border-radius:24px;overflow:hidden;box-shadow:0 20px 45px rgba(0,51,160,.16);background:#e8eef7}.breed-detail-image img{width:100%;aspect-ratio:4/3;object-fit:cover}.breed-kicker{display:inline-block;padding:7px 12px;border-radius:999px;background:rgba(0,51,160,.08);color:var(--rlb-blue);font-weight:900;font-size:.83rem}.breed-detail-intro h1{font-size:clamp(2rem,5vw,3.4rem);line-height:1.2;margin:14px 0}.breed-detail-intro>p{font-size:1.05rem;line-height:1.9;color:#455268}.detail-quick{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:20px 0}.detail-quick div{padding:13px;border:1px solid var(--rlb-line);background:#fff;border-radius:12px}.detail-quick strong,.detail-quick span{display:block}.detail-quick strong{color:var(--rlb-blue);margin-bottom:5px}.detail-quick span{color:#465268;line-height:1.55}
.detail-section{padding:46px 0}.detail-layout{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:24px;align-items:start}.detail-main{display:grid;gap:20px}.detail-card,.side-card{background:#fff;border:1px solid var(--rlb-line);border-radius:18px;padding:24px;box-shadow:0 8px 24px rgba(0,51,160,.07)}.detail-card h2{font-size:1.45rem;margin:0 0 18px}.fact-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.fact{padding:15px;border-radius:13px;background:#f7faff;border:1px solid #e3ebf7}.fact strong,.fact span{display:block}.fact strong{color:var(--rlb-blue);margin-bottom:6px}.fact span{line-height:1.7;color:#465268}.timeline{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}.timeline>div{padding:16px;border-right:4px solid var(--rlb-blue);background:#f7faff;border-radius:12px}.timeline strong{color:var(--rlb-blue)}.timeline p{margin:7px 0 0;line-height:1.65;color:#465268}.detail-list{margin:0;padding-inline-start:21px;display:grid;gap:10px}.detail-list li{line-height:1.75;color:#465268}.commercial-card{border-top:5px solid var(--rlb-blue)}.commercial-card p{line-height:1.85;color:#465268}.commercial-card .btn-whatsapp-breed{max-width:430px;margin-top:18px}.detail-side{position:sticky;top:92px;display:grid;gap:12px}.side-card h3{margin:0 0 10px}.side-card p{color:#465268;line-height:1.75}.back-to-list{display:block;text-align:center;color:var(--rlb-blue);font-weight:900;text-decoration:none;padding:13px}.qa{padding:14px 0;border-top:1px solid var(--rlb-line)}.qa:first-of-type{border-top:0}.qa h3{font-size:1.02rem;color:#24334c;margin:0 0 6px}.qa p{margin:0;color:#526076;line-height:1.75}
/* same homepage floating controls */
.breed-page .wa-floating{left:20px;right:auto}.breed-page .pwa-install-btn{right:20px;left:auto}
/* maintain card equality */
.encyclopedia-list-page .breed-card .breed-info{min-height:560px}
@media(max-width:980px){.breed-page .breeds-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.breed-detail-hero-grid,.detail-layout{grid-template-columns:1fr}.detail-side{position:static}.encyclopedia-list-page .breed-card .breed-info{min-height:535px}}
@media(max-width:640px){.breed-page .breeds-hero{min-height:280px;padding:38px 0}.breed-page .breeds-grid{grid-template-columns:1fr;gap:18px}.breed-page .breed-image{height:205px}.breed-page .breed-info{padding:18px}.breed-page .breed-name{font-size:1.16rem}.breed-page .breed-description{min-height:5.15em}.encyclopedia-list-page .breed-card .breed-info{min-height:0}.breed-detail-hero{padding:28px 0}.breed-detail-hero-grid{gap:20px}.breed-detail-image{border-radius:17px}.breed-detail-intro h1{font-size:2rem}.detail-quick,.fact-grid,.timeline{grid-template-columns:1fr}.detail-card,.side-card{padding:18px}.detail-section{padding:28px 0}.breed-page .btn-whatsapp-breed{min-height:50px}.breed-page .wa-floating{left:14px}.breed-page .pwa-install-btn{right:14px}}


/* V5: shared header and homepage-style hero */
.breed-page .site-header .nav ul{gap:14px}
.breed-page .site-header .nav a{font-size:13px}
.breed-page .encyclopedia-hero{height:420px!important;min-height:420px!important;padding:0!important;background-image:url('/assets/hero.webp')!important;background-size:cover!important;background-position:center!important;background-repeat:no-repeat!important;position:relative!important;display:flex!important;align-items:flex-end!important;color:#fff}
.breed-page .encyclopedia-hero .hero-overlay{position:absolute;inset:0;background:linear-gradient(180deg,rgba(0,28,97,.86),rgba(0,28,97,.79));padding:38px 20px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center}
.breed-page .encyclopedia-hero .hero-title{color:#fff!important;max-width:980px;font-size:clamp(1.8rem,5vw,3.1rem);margin:0 0 12px;line-height:1.25}
.breed-page .encyclopedia-hero .hero-sub{color:rgba(255,255,255,.96);max-width:900px;font-size:clamp(.95rem,2.4vw,1.15rem);line-height:1.75;margin:0 0 13px}
.breed-page .encyclopedia-hero .hero-subtitle{color:#fff;margin:0 0 18px;font-weight:700}
.breed-page .encyclopedia-hero-buttons{display:flex;flex-wrap:wrap;justify-content:center;gap:10px}
.breed-page .encyclopedia-hero-buttons .btn{min-height:44px;padding:10px 18px;border-radius:10px;text-decoration:none;font-weight:900}
.breed-page .btn-related{background:#fff;color:var(--rlb-blue);border:1px solid rgba(255,255,255,.78)}
.breed-page .btn-related:hover,.breed-page .btn-related.is-current{background:var(--rlb-gold);color:#172033;border-color:var(--rlb-gold)}
.breed-page .detail-page-top-hero{height:360px!important;min-height:360px!important}
.breed-page .hero-breed-request{background:var(--rlb-green)!important;color:#fff!important}
.breed-page .breed-origin span:last-child{font-weight:700;color:#4b5a71}
@media(max-width:1120px){.breed-page .site-header .nav ul{gap:10px}.breed-page .site-header .nav a{font-size:12px}}
@media(max-width:900px){.breed-page .site-header .nav a{font-size:15px}.breed-page .encyclopedia-hero{height:380px!important;min-height:380px!important}.breed-page .detail-page-top-hero{height:340px!important;min-height:340px!important}}
@media(max-width:640px){.breed-page .encyclopedia-hero{height:390px!important;min-height:390px!important}.breed-page .detail-page-top-hero{height:360px!important;min-height:360px!important}.breed-page .encyclopedia-hero .hero-overlay{padding:28px 14px}.breed-page .encyclopedia-hero .hero-sub{line-height:1.6}.breed-page .encyclopedia-hero-buttons{gap:8px}.breed-page .encyclopedia-hero-buttons .btn{font-size:.86rem;padding:9px 12px;min-height:42px}.breed-page .breed-description{min-height:5.15em}}

/* V6 refinements */
.breed-page .read-more{font-size:.80rem!important;color:#c62828!important;font-weight:800!important;margin-top:4px!important}
.breed-page .read-more:hover{color:#9f1f1f!important}
.breed-page .spec-item{grid-template-columns:10px 1fr!important;gap:10px!important}
.breed-page .spec-icon{width:7px!important;height:7px!important;min-width:7px!important;border-radius:50%!important;background:#111827!important;margin-top:.62em!important;padding:0!important;color:transparent!important;box-shadow:none!important}
.breed-page .spec-label strong{font-weight:900!important}
.breed-page .detail-side{position:static!important}
@media(max-width:700px){.breed-page .read-more{font-size:.76rem!important}.breed-page .spec-item{grid-template-columns:8px 1fr!important}.breed-page .spec-icon{width:6px!important;height:6px!important;min-width:6px!important}}

/* V7 — refined commercial card styling */
.breed-page .breed-origin{align-items:center;gap:6px;color:#52627a;font-size:.86rem;font-weight:700}
.breed-page .location-pin{width:14px;height:14px;min-width:14px;color:#55a8e8;display:block}
.breed-page .spec-label{color:#52627a!important;font-size:.86rem!important;line-height:1.62!important;font-weight:600!important}
.breed-page .spec-label strong{color:#52627a!important;font-size:inherit!important;font-weight:800!important}
.breed-page .read-more::before{content:none!important}
.breed-page .read-more{font-size:.76rem!important;color:#c62828!important;font-weight:800!important;margin-top:3px!important}
.breed-page .read-more:hover{color:#8f1717!important;text-decoration:underline}
.breed-page .encyclopedia-more-link{margin:-10px 0 38px;text-align:center}
.breed-page .encyclopedia-more-link a{display:inline-flex;align-items:center;gap:5px;color:var(--rlb-blue);font-size:.94rem;font-weight:900;text-decoration:none;border-bottom:2px solid rgba(0,51,160,.28);padding:5px 2px}
.breed-page .encyclopedia-more-link a:hover{color:var(--rlb-blue-dark);border-bottom-color:var(--rlb-blue)}
.breed-page .encyclopedia-more-link svg{width:17px;height:17px;transition:transform .2s ease}
html[dir="rtl"] .breed-page .encyclopedia-more-link svg{transform:rotate(180deg)}
.breed-page .encyclopedia-more-link a:hover svg{transform:translateX(2px)}
html[dir="rtl"] .breed-page .encyclopedia-more-link a:hover svg{transform:rotate(180deg) translateX(2px)}
@media(max-width:640px){
 .breed-page .breed-origin,.breed-page .spec-label{font-size:.83rem!important}
 .breed-page .location-pin{width:13px;height:13px;min-width:13px}
 .breed-page .encyclopedia-more-link{margin:-5px 0 30px}
 .breed-page .encyclopedia-more-link a{font-size:.88rem}
}

/* ==========================================================================
   STATIC ARABIC / ENGLISH BRANCH ROUTES — V42
   ========================================================================== */

.breed-page .branch-language-hero {
  position: relative;
  padding-bottom: 78px;
}

.breed-page .branch-language-hero .hero-overlay {
  padding-bottom: 82px;
}

.breed-page .rlb-verified-trust {
  width: min(680px, 92%);
  margin: 0 auto 17px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: #fff;
  line-height: 1.35;
}

.breed-page .rlb-verified-line {
  flex: 1 1 52px;
  max-width: 100px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    rgba(245,180,0,0),
    #f5b400 32%,
    #ffd96b
  );
  box-shadow: 0 0 9px rgba(245,180,0,.45);
}

.breed-page .rlb-verified-line:last-child {
  transform: scaleX(-1);
}

.breed-page
.rlb-verified-trust
.verified-stamp-professional {
  min-height: 32px;
  max-width: min(100%, 500px);
  margin: 0;
  padding: 6px 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid #f5b400;
  border-radius: 999px;
  background: rgba(0,26,83,.34);
  color: #fff;
  box-shadow:
    0 0 0 1px rgba(255,255,255,.08) inset,
    0 0 15px rgba(245,180,0,.24);
  font-size: clamp(11.5px, 1.6vw, 14px);
  font-weight: 850;
  line-height: 1.3;
  letter-spacing: 0;
  text-transform: none;
  text-align: center;
  white-space: normal;
}

.rlb-branch-language-selector {
  position: absolute;
  z-index: 7;
  inset-inline-start: 50%;
  bottom: 13px;
  transform: translateX(-50%);
  max-width: calc(100% - 22px);
  padding: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  border: 1px solid rgba(255,255,255,.34);
  border-radius: 999px;
  background: rgba(0,28,97,.72);
  box-shadow:
    0 8px 24px rgba(0,0,0,.22),
    0 0 0 1px rgba(245,180,0,.14) inset;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.rlb-branch-language-link {
  min-height: 28px;
  padding: 4px 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255,255,255,.42);
  border-radius: 999px;
  background: rgba(255,255,255,.07);
  color: #fff;
  font-size: 10.5px;
  font-weight: 850;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  transition:
    transform .16s ease,
    background .16s ease,
    color .16s ease,
    border-color .16s ease;
}

.rlb-branch-language-link:hover,
.rlb-branch-language-link:focus-visible {
  background: #fff;
  border-color: #fff;
  color: #0033a0;
  transform: translateY(-1px);
  outline: none;
}

.rlb-branch-language-link.is-active,
.rlb-branch-language-link[aria-current="page"] {
  background: #f5b400;
  border-color: #ffd768;
  color: #002a7c;
  box-shadow: 0 3px 10px rgba(245,180,0,.28);
}

@media(max-width:640px) {
  .breed-page .branch-language-hero {
    min-height: 650px;
    padding-bottom: 76px;
  }

  .breed-page
  .branch-language-hero.detail-page-top-hero {
    min-height: 690px;
  }

  .breed-page .branch-language-hero .hero-overlay {
    padding:
      28px
      14px
      82px;
  }

  .breed-page .rlb-verified-trust {
    width: min(96%, 520px);
    gap: 7px;
  }

  .breed-page .rlb-verified-line {
    max-width: 40px;
  }

  .rlb-branch-language-selector {
    bottom: 11px;
    gap: 3px;
    padding: 4px;
  }

  .rlb-branch-language-link {
    min-height: 27px;
    padding: 4px 7px;
    font-size: 9.8px;
  }
}

@media(max-width:390px) {
  .breed-page .branch-language-hero {
    min-height: 680px;
  }

  .breed-page
  .branch-language-hero.detail-page-top-hero {
    min-height: 720px;
  }

  .breed-page .rlb-verified-line {
    max-width: 24px;
  }

  .rlb-branch-language-link {
    padding-inline: 5px;
    font-size: 9.3px;
  }
}

@media print {
  .rlb-branch-language-selector {
    display: none !important;
  }
}

/* Regional Livestock Bridge partner network and linked breed cards V45 */
.breed-card-media-link{display:block;width:100%;height:100%;color:inherit;text-decoration:none}.breed-card-media-link:focus-visible{outline:4px solid #f5b400;outline-offset:-4px}.breed-card-title-link{color:inherit;text-decoration:none}.breed-card-title-link:hover,.breed-card-title-link:focus-visible{color:#f28c00;text-decoration:underline}.breed-actions{display:grid!important;grid-template-columns:1fr;gap:9px}.breed-details-link{min-height:43px;padding:9px 14px;display:flex;align-items:center;justify-content:center;border:1.5px solid #0033a0;border-radius:10px;color:#0033a0;background:#fff;text-decoration:none;font-weight:850;transition:.18s}.breed-details-link:hover,.breed-details-link:focus-visible{background:#0033a0;color:#fff;transform:translateY(-1px)}


/* ========================================================================== 
   V49 — branch language navigation centered at the top of the hero
   ========================================================================== */
.breed-page .branch-language-hero {
  padding-bottom: 0;
}

.breed-page .branch-language-hero .hero-overlay {
  padding-top: 72px;
  padding-bottom: 34px;
}

.rlb-branch-language-selector {
  top: 12px;
  bottom: auto;
  left: 50%;
  right: auto;
  inset-inline-start: auto;
  transform: translateX(-50%);
}

@media (max-width: 640px) {
  .breed-page .branch-language-hero,
  .breed-page .branch-language-hero.detail-page-top-hero {
    height: auto !important;
    min-height: 0;
    padding-bottom: 0;
  }

  .breed-page .branch-language-hero .hero-overlay {
    position: relative;
    inset: auto;
    min-height: 0;
    padding: 68px 14px 30px;
  }

  .rlb-branch-language-selector {
    top: 10px;
    bottom: auto;
  }
}

/* V54 — center branch language controls in RTL and LTR layouts */
.breed-page .branch-language-hero{position:relative;padding-bottom:0!important}
.breed-page .branch-language-hero .hero-overlay{padding-top:72px!important}
.rlb-branch-language-selector{
  position:absolute!important;
  top:12px!important;
  bottom:auto!important;
  left:0!important;
  right:0!important;
  inset-inline:0!important;
  width:max-content!important;
  max-width:calc(100% - 20px)!important;
  margin:0 auto!important;
  transform:none!important;
  direction:ltr;
  flex-wrap:nowrap;
}
@media(max-width:640px){
  .breed-page .branch-language-hero .hero-overlay{padding-top:68px!important}
  .rlb-branch-language-selector{top:10px!important;max-width:calc(100% - 12px)!important}
}

/* V54 — branch language selector: always visible and physically centered in RTL/LTR */
.breed-page .branch-language-hero{position:relative!important;padding-bottom:0!important}
.breed-page .branch-language-hero .hero-overlay{padding-top:72px!important}
.rlb-branch-language-selector{
  position:absolute!important;z-index:20!important;top:12px!important;bottom:auto!important;
  left:50%!important;right:auto!important;inset-inline-start:auto!important;inset-inline-end:auto!important;
  width:max-content!important;max-width:calc(100% - 20px)!important;margin:0!important;
  transform:translateX(-50%)!important;direction:ltr!important;display:flex!important;
  align-items:center!important;justify-content:center!important;flex-wrap:nowrap!important;
}
@media(max-width:640px){
  .breed-page .branch-language-hero .hero-overlay{padding-top:68px!important}
  .rlb-branch-language-selector{top:10px!important;max-width:calc(100% - 12px)!important}
}


/* V56 — authoritative branch controls and breed-request CTA fix */
.breed-page .branch-language-hero{position:relative!important;overflow:visible!important}
.rlb-branch-language-selector{
  position:absolute!important;
  z-index:30!important;
  top:12px!important;
  bottom:auto!important;
  left:0!important;
  right:0!important;
  inset-inline:0!important;
  width:fit-content!important;
  max-width:calc(100% - 24px)!important;
  margin-inline:auto!important;
  transform:none!important;
  direction:ltr!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  flex-wrap:nowrap!important;
  overflow-x:auto!important;
  scrollbar-width:none!important;
}
.rlb-branch-language-selector::-webkit-scrollbar{display:none!important}
.request-icons{display:inline-flex!important;align-items:center!important;justify-content:center!important;line-height:0!important;flex:0 0 auto!important}
.request-icons svg{display:block!important;width:18px!important;height:18px!important;color:currentColor!important}
.breed-page .hero-breed-request,.breed-page .btn-whatsapp-breed{gap:8px!important}
@media(max-width:640px){
  .rlb-branch-language-selector{top:10px!important;max-width:calc(100% - 12px)!important}
}
