/*
  Shared styles for the Affiliate / Partners page — single source of truth for all
  language variants (affiliate-page.html + .de/.fr/.he). Linked via an absolute URL
  so it resolves under /, /de/, /fr/, /he/. Brand red: #cd1e24.
*/
.cjs-af * { box-sizing: border-box; }
.breadcumb_wrap { display: none; }
.about-wrap > h2 { display: none; }

.cjs-af {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  color: #1a1d24;
  max-width: 1080px;
  margin: 0 auto;
  padding: 24px 16px 60px;
}
.cjs-af h1, .cjs-af h2, .cjs-af h3 { color: #111827; margin: 0 0 12px; line-height: 1.25; letter-spacing: -.4px; }
.cjs-af p { color: #4b5563; line-height: 1.65; margin: 0 0 14px; font-size: 16px; overflow-wrap: break-word; }
.cjs-af-section > p { font-size: 17px; }
.cjs-af a { color: #cd1e24; text-decoration: none; }
.cjs-af a:hover { text-decoration: underline; }

/* Hero */
.cjs-af-hero { text-align: center; padding: 24px 8px 8px; }
.cjs-af-hero h1 { font-size: clamp(26px, 4vw, 40px); font-weight: 800; }
.cjs-af-hero .cjs-af-sub { font-size: 16px; color: #6b7280; max-width: 720px; margin: 12px auto 0; line-height: 1.6; }

/* Two route cards */
.cjs-af-routes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin: 28px 0 0; }
.cjs-af-route {
  background: #fff; border: 1px solid #e5e7eb; border-radius: 12px;
  padding: 28px 26px; box-shadow: 0 1px 2px rgba(0,0,0,.03);
  display: flex; flex-direction: column;
}
.cjs-af-route .cjs-af-route-icn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; border-radius: 12px;
  background: linear-gradient(135deg, #cd1e24, #b81c13);
  box-shadow: 0 4px 14px rgba(205,30,36,.22); margin-bottom: 14px;
}
.cjs-af-route .cjs-af-route-icn svg { width: 24px; height: 24px; fill: #fff; }
.cjs-af-route h2 { font-size: 20px; font-weight: 700; margin: 0 0 8px; }
.cjs-af-route p { font-size: 15px; margin: 0 0 14px; }
.cjs-af-route ul { margin: 0 0 18px; padding-inline-start: 20px; }
.cjs-af-route li { color: #4b5563; font-size: 14.5px; line-height: 1.6; margin: 0 0 7px; }
.cjs-af-route-btn {
  margin-top: auto; align-self: flex-start;
  display: inline-block; background: #111827; color: #fff !important;
  padding: 12px 26px; border-radius: 8px; font-size: 15px; font-weight: 700;
  text-decoration: none !important; box-shadow: 0 6px 18px rgba(17,24,39,.18);
  transition: background .15s, transform .08s;
}
.cjs-af-route-btn:hover { background: #1f2937; color: #fff !important; }
.cjs-af-route-btn:active { transform: scale(.97); }
@media (max-width: 760px) { .cjs-af-routes { grid-template-columns: 1fr; } }

/* Content cards */
.cjs-af-section {
  background: #fff; border: 1px solid #e5e7eb; border-radius: 12px;
  padding: 26px 28px; margin: 18px 0 0; box-shadow: 0 1px 2px rgba(0,0,0,.03);
}
.cjs-af-section h2 {
  font-size: 22px; font-weight: 700; margin: 0 0 12px; line-height: 1.3;
  display: flex; align-items: flex-start; gap: 10px;
}
.cjs-af-section h2 .cjs-af-icn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 8px; flex-shrink: 0;
  background: linear-gradient(135deg, #cd1e24, #b81c13);
  box-shadow: 0 4px 14px rgba(205,30,36,.22);
}
.cjs-af-section h2 .cjs-af-icn svg { width: 18px; height: 18px; fill: #fff; }

/* Feed format pills */
.cjs-af-formats { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.cjs-af-format-pill {
  display: inline-flex; align-items: center; background: #f3f4f6; color: #374151;
  border: 1px solid #e5e7eb; border-radius: 999px; padding: 6px 14px;
  font-size: 13px; font-weight: 600;
}

/* Steps */
.cjs-af-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 6px; }
.cjs-af-step { background: #f9fafb; border: 1px solid #e5e7eb; border-radius: 12px; padding: 22px 20px; text-align: center; }
.cjs-af-step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; background: linear-gradient(135deg, #cd1e24, #b81c13);
  color: #fff; border-radius: 50%; font-weight: 800; font-size: 17px;
  margin-bottom: 12px; box-shadow: 0 4px 14px rgba(205,30,36,.25);
}
.cjs-af-step h3 { font-size: 16px; font-weight: 700; margin: 0 0 6px; }
.cjs-af-step p { font-size: 14px; color: #6b7280; margin: 0; line-height: 1.55; }
@media (max-width: 760px) { .cjs-af-steps { grid-template-columns: 1fr; } }

/* Signoff */
.cjs-af-signoff { text-align: center; margin-top: 28px; font-size: 14px; color: #6b7280; }
.cjs-af-signoff strong { color: #111827; display: block; font-size: 16px; margin-top: 4px; }

/* RTL (Hebrew) */
.cjs-af[dir="rtl"] { text-align: right; }
.cjs-af[dir="rtl"] .cjs-af-hero,
.cjs-af[dir="rtl"] .cjs-af-step,
.cjs-af[dir="rtl"] .cjs-af-signoff { text-align: center; }
.cjs-af[dir="rtl"] .cjs-af-route-btn { align-self: flex-end; }

/* Mobile */
@media (max-width: 600px) {
  .cjs-af { padding: 14px 12px 48px; }
  .cjs-af p { font-size: 15.5px; }
  .cjs-af-section { padding: 18px 16px; }
  .cjs-af-section h2 { font-size: 18px; }
  .cjs-af-route { padding: 22px 18px; }
}
