/* === ZEBRIDGE Opportunities (public) — minimal-corporate light ===
   Brand: #151515 ink / #FFB716 gold / #FFFFFF. Square corners (the site-wide
   css/lang-switcher.css enforces border-radius:0 !important). Self-scoped to
   .zb-opp so it cannot leak into other pages. */

.zb-opp { padding: 44px 0 84px; font-family: 'Montserrat', 'Dosis', Arial, sans-serif; color: #151515; }
.zb-opp *, .zb-opp *::before, .zb-opp *::after { box-sizing: border-box; }

/* ---- listing head ---- */
.zb-opp__head { max-width: 860px; margin: 0 0 26px; }
.zb-opp__title { font-size: 34px; font-weight: 700; letter-spacing: .4px; margin: 0 0 14px; position: relative; padding-bottom: 16px; color: #151515; }
.zb-opp__title::after { content: ""; position: absolute; left: 0; bottom: 0; width: 64px; height: 3px; background: #FFB716; }
.zb-opp__subtitle { font-size: 16px; line-height: 1.65; color: #5a5a5a; margin: 0; }

/* ---- status filter chips ---- */
.zb-opp__filters { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 30px; }
.zb-opp__fchip { font: inherit; font-size: 13.5px; font-weight: 600; letter-spacing: .4px; text-transform: uppercase; color: #151515; background: #fff; border: 1px solid #dcdcdc; padding: 9px 18px; cursor: pointer; transition: all .2s ease; }
.zb-opp__fchip:hover { border-color: #FFB716; }
.zb-opp__fchip.is-active { background: #151515; color: #fff; border-color: #151515; }
.zb-opp__fchip.is-active::after { content: ""; display: inline-block; width: 6px; height: 6px; margin-left: 9px; background: #FFB716; vertical-align: middle; }

/* ---- grid + cards ---- */
.zb-opp__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(310px, 1fr)); gap: 28px; }
.zb-opp__status { grid-column: 1 / -1; color: #777; font-size: 15px; padding: 20px 0; }
.zb-opp__card { display: flex; flex-direction: column; background: #fff; border: 1px solid #e7e7e7; overflow: hidden; text-decoration: none; color: inherit; box-shadow: 0 1px 2px rgba(0,0,0,.05); transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
.zb-opp__card:hover, .zb-opp__card:focus { transform: translateY(-4px); box-shadow: 0 16px 34px rgba(0,0,0,.14); border-color: #FFB716; text-decoration: none; color: inherit; }
.zb-opp__media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: #f2f2f2; }
.zb-opp__media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .45s ease; }
.zb-opp__card:hover .zb-opp__media img { transform: scale(1.06); }
.zb-opp__noimg { width: 100%; height: 100%; background: linear-gradient(135deg, #151515, #3a3a3a); }

/* status ribbon */
.zb-opp__ribbon { position: absolute; top: 12px; left: 12px; z-index: 2; font-size: 11.5px; font-weight: 700; letter-spacing: .6px; text-transform: uppercase; padding: 6px 11px; color: #151515; background: #FFB716; }
.zb-opp__ribbon.is-active { background: #151515; color: #fff; }

.zb-opp__body { padding: 20px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.zb-opp__card-title { font-size: 19px; font-weight: 700; line-height: 1.32; margin: 0 0 12px; color: #151515; }
.zb-opp__chips { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 12px; }
.zb-opp__chip-tag { font-size: 11.5px; font-weight: 600; letter-spacing: .3px; color: #55606e; background: #f1f4f8; border: 1px solid #e3e8ef; padding: 3px 9px; }
.zb-opp__excerpt { font-size: 14px; line-height: 1.6; color: #666; margin: 0 0 16px; flex: 1; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.zb-opp__invest { font-size: 15px; margin-bottom: 6px; }
.zb-opp__invest-k { color: #8a8a8a; font-weight: 600; }
.zb-opp__invest-v { color: #151515; font-weight: 700; }
.zb-opp__timeline { font-size: 12.5px; color: #8a8a8a; margin-bottom: 14px; }
.zb-opp__more { font-size: 13.5px; font-weight: 700; letter-spacing: .6px; text-transform: uppercase; color: #151515; align-self: flex-start; border-bottom: 2px solid #FFB716; padding-bottom: 2px; margin-top: auto; }

/* ---- detail ---- */
.zb-opp__back { display: inline-block; font-size: 14px; font-weight: 600; color: #55606e; text-decoration: none; margin-bottom: 18px; }
.zb-opp__back:hover { color: #151515; }
.zb-opp__hero { position: relative; display: flex; align-items: flex-end; min-height: 260px; background: #151515; overflow: hidden; margin-bottom: 26px; }
.zb-opp__hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .55; }
.zb-opp__hero-body { position: relative; z-index: 2; padding: 34px 30px; color: #fff; }
.zb-opp__hero-body .zb-opp__ribbon { position: static; display: inline-block; margin-bottom: 14px; }
.zb-opp__hero-title { font-size: 32px; font-weight: 700; line-height: 1.2; margin: 0 0 12px; color: #fff; }
.zb-opp__hero-summary { font-size: 15px; line-height: 1.6; color: #e6e6e6; max-width: 760px; margin: 0; }

.zb-opp__facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1px; background: #e7e7e7; border: 1px solid #e7e7e7; margin-bottom: 34px; }
.zb-opp__fact { background: #fff; padding: 16px 18px; }
.zb-opp__fact-k { display: block; font-size: 11.5px; font-weight: 700; letter-spacing: .8px; text-transform: uppercase; color: #FFB716; margin-bottom: 6px; }
.zb-opp__fact-v { display: block; font-size: 15px; font-weight: 600; color: #151515; line-height: 1.4; }

.zb-opp__body-html { max-width: 900px; font-size: 15.5px; line-height: 1.75; color: #333; }
.zb-opp__body-html h2 { font-size: 22px; font-weight: 700; color: #151515; margin: 34px 0 12px; padding-bottom: 8px; border-bottom: 2px solid #FFB716; display: inline-block; }
.zb-opp__body-html p { margin: 0 0 16px; }
.zb-opp__body-html ul { margin: 0 0 16px; padding-left: 22px; }
.zb-opp__body-html li { margin-bottom: 8px; }
.zb-opp__body-html a { color: #151515; text-decoration: underline; }

/* references */
.zb-opp__refs { max-width: 900px; margin: 34px 0; padding: 22px 24px; background: #f7f9fc; border-left: 4px solid #FFB716; }
.zb-opp__refs-title { font-size: 18px; font-weight: 700; color: #151515; margin: 0 0 14px; }
.zb-opp__refs-list { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: 32px; }
.zb-opp__refs-list li { margin-bottom: 10px; break-inside: avoid; }
.zb-opp__refs-list a { font-size: 14px; color: #1565c0; text-decoration: none; word-break: break-word; }
.zb-opp__refs-list a:hover { text-decoration: underline; }

/* apply form */
.zb-opp__form { max-width: 760px; margin: 40px 0 0; padding: 30px; background: #fff; border: 1px solid #e7e7e7; box-shadow: 0 1px 2px rgba(0,0,0,.05); }
.zb-opp__form-title { font-size: 22px; font-weight: 700; color: #151515; margin: 0 0 22px; }
.zb-opp__form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; }
.zb-opp__field { display: flex; flex-direction: column; }
.zb-opp__field--full { grid-column: 1 / -1; margin-top: 18px; }
.zb-opp__field span { font-size: 13px; font-weight: 600; color: #55606e; margin-bottom: 7px; }
.zb-opp__field input, .zb-opp__field textarea { font: inherit; font-size: 15px; color: #151515; padding: 11px 13px; border: 1px solid #d5d5d5; background: #fff; width: 100%; }
.zb-opp__field input:focus, .zb-opp__field textarea:focus { outline: none; border-color: #FFB716; }
.zb-opp__form-msg { min-height: 20px; margin: 18px 0 0; font-size: 14px; font-weight: 600; }
.zb-opp__form-msg.is-success { color: #1a7f37; }
.zb-opp__form-msg.is-error { color: #c62828; }
.zb-opp__submit { margin-top: 16px; font: inherit; font-size: 15px; font-weight: 700; letter-spacing: .4px; text-transform: uppercase; color: #151515; background: #FFB716; border: 1px solid #FFB716; padding: 14px 30px; cursor: pointer; transition: background .2s ease, color .2s ease; }
.zb-opp__submit:hover { background: #151515; color: #fff; border-color: #151515; }
.zb-opp__submit:disabled { opacity: .6; cursor: default; }
.zb-opp__closed { max-width: 760px; margin-top: 36px; padding: 20px 24px; background: #f1f4f8; border-left: 4px solid #151515; font-size: 15px; color: #333; }

/* ---- responsive ---- */
@media (max-width: 767px) {
  .zb-opp__title { font-size: 27px; }
  .zb-opp__grid { grid-template-columns: 1fr; gap: 22px; }
  .zb-opp__hero-title { font-size: 24px; }
  .zb-opp__form-grid { grid-template-columns: 1fr; }
  .zb-opp__refs-list { columns: 1; }
  .zb-opp__form { padding: 22px; }
}

/* ---- RTL (Arabic) ----
   build_i18n.py bakes <html dir="rtl"> into the /ar/ tree, so flex/grid/text
   flow already mirror. These rules only flip the few physical-direction accents
   that do NOT follow the logical writing direction on their own. Higher
   specificity (html[dir=...]) than the base rules, so no reordering needed. */
html[dir="rtl"] .zb-opp__title::after { left: auto; right: 0; }
html[dir="rtl"] .zb-opp__fchip.is-active::after { margin-left: 0; margin-right: 9px; }
html[dir="rtl"] .zb-opp__ribbon { left: auto; right: 12px; }
html[dir="rtl"] .zb-opp__body-html ul { padding-left: 0; padding-right: 22px; }
html[dir="rtl"] .zb-opp__refs { border-left: 0; border-right: 4px solid #FFB716; }
html[dir="rtl"] .zb-opp__closed { border-left: 0; border-right: 4px solid #151515; }
