/* ==========================================================================
   Emiratesbike Workshops — home blocks ( [ebw_workshops] and the banners )
   Own namespace "ebwh": no class, id or wrapper is shared with the rest of the plugin
   (and no WordPress .alignwide), so nothing from the directory / workshop CSS or the
   theme's generic rules reaches these blocks. Works in RTL and LTR.
   ========================================================================== */

.ebwh, .ebwh-banner {
  --ebwh-accent: #E10F1A;
  --ebwh-on-accent: #FFFFFF;
  --ebwh-dark: #0E0F12;
  --ebwh-dark-2: #17181C;
  --ebwh-ink: #111216;
  --ebwh-text: #2E3138;
  --ebwh-muted: #6B6F78;
  --ebwh-line: #E7E8EB;
  --ebwh-paper: #F5F5F7;
  --ebwh-card: #FFFFFF;
  --ebwh-wa: #1E9E50;
  --ebwh-shadow: 0 1px 2px rgba(17, 18, 22, .05), 0 8px 22px rgba(17, 18, 22, .07);
  box-sizing: border-box; font-family: inherit; font-size: 16px; line-height: 1.7; text-align: start;
}
.ebwh *, .ebwh *::before, .ebwh *::after, .ebwh-banner *, .ebwh-banner *::before, .ebwh-banner *::after { box-sizing: border-box; }
.ebwh svg, .ebwh-banner svg { display: block; flex: none; }
.ebwh img { display: block; max-width: 100%; height: auto; }
.ebwh [hidden], .ebwh-banner [hidden] { display: none !important; }
.ebwh a, .ebwh-banner a { text-decoration: none; box-shadow: none; }
.ebwh :focus-visible, .ebwh-banner :focus-visible { outline: 3px solid color-mix(in srgb, var(--ebwh-accent) 70%, #000); outline-offset: 2px; }

/* ---------- Section ---------- */
.ebwh { width: 100%; max-width: none !important; margin: 0 0 36px; padding: 0; color: var(--ebwh-text); }
.ebwh--panel { position: relative; isolation: isolate; padding: clamp(24px, 3.6vw, 48px) clamp(12px, 2vw, 32px); border: 0; border-radius: 0; background: #FFFFFF; box-shadow: none; }

.ebwh__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 20px; margin: 0 0 26px; padding: 0; }
.ebwh__text { min-width: 0; }
.ebwh .ebwh__title { position: relative; display: inline-block; margin: 0; padding: 0 0 14px; font: inherit; font-size: clamp(22px, 2.8vw, 32px); font-weight: 800; line-height: 1.25; letter-spacing: -.01em; text-transform: none; color: var(--ebwh-ink); }
.ebwh .ebwh__title::after { content: ""; position: absolute; inset-inline-start: 0; bottom: 0; width: 48px; height: 4px; border-radius: 4px; background: var(--ebwh-accent); }
.ebwh .ebwh__sub { margin: 4px 0 0; padding: 0; font-size: 15px; line-height: 1.6; color: var(--ebwh-muted); }
.ebwh__end { display: flex; align-items: center; gap: 14px; }
.ebwh .ebwh__all { display: inline-flex; align-items: center; gap: 8px; padding: 10px 20px; border: 1px solid var(--ebwh-line); border-radius: 999px; background: var(--ebwh-card); color: var(--ebwh-ink); font-size: 14px; font-weight: 700; line-height: 1.3; white-space: nowrap; transition: background-color .15s, color .15s, border-color .15s; }
.ebwh .ebwh__all svg { width: 16px; height: 16px; }
[dir="rtl"] .ebwh .ebwh__all svg, [dir="rtl"] .ebwh .ebwh-btn svg { transform: scaleX(-1); }
.ebwh .ebwh__all:hover { background: var(--ebwh-accent); border-color: var(--ebwh-accent); color: var(--ebwh-on-accent); }
.ebwh__nav { display: flex; gap: 8px; }
.ebwh .ebwh__navbtn { display: grid; place-items: center; width: 44px; height: 44px; margin: 0; padding: 0; border: 1px solid var(--ebwh-line); border-radius: 50%; background: var(--ebwh-card); color: var(--ebwh-ink); cursor: pointer; transition: background-color .15s, color .15s, border-color .15s; }
.ebwh .ebwh__navbtn svg { width: 20px; height: 20px; }
[dir="rtl"] .ebwh .ebwh__navbtn svg { transform: scaleX(-1); }
.ebwh .ebwh__navbtn:hover:not([disabled]) { background: var(--ebwh-accent); border-color: var(--ebwh-accent); color: var(--ebwh-on-accent); }
.ebwh .ebwh__navbtn[disabled] { opacity: .35; cursor: default; }

/* ---------- Carousel: room around the track so shadows and the hover lift are never cut ---------- */
.ebwh { --cols: var(--cols-base, 3); --gap: 24px; --card-min: 340px; }
.ebwh__viewport { margin: 0; padding: 0; overflow: hidden; }
.ebwh .ebwh__track { display: grid; grid-auto-flow: column; grid-auto-columns: max(var(--card-min), calc((100% - (var(--cols) - 1) * var(--gap)) / var(--cols))); gap: var(--gap);
  list-style: none; margin: -14px -14px -16px; padding: 14px 14px 28px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-padding-inline: 14px; scroll-behavior: smooth; scrollbar-width: none; }
.ebwh .ebwh__track::-webkit-scrollbar { display: none; }
.ebwh .ebwh__slide { display: flex; min-width: 0; margin: 0; padding: 0; list-style: none; scroll-snap-align: start; }
.ebwh .ebwh__slide::marker, .ebwh .ebwh__cell::marker { content: none; }

/* ---------- Grid ---------- */
.ebwh .ebwh__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, max(var(--card-min), calc((100% - (var(--cols) - 1) * var(--gap)) / var(--cols)))), 1fr)); gap: var(--gap); list-style: none; margin: 0; padding: 0; }
.ebwh .ebwh__cell { display: flex; min-width: 0; margin: 0; padding: 0; list-style: none; }

.ebwh__empty { margin: 0; padding: 40px 20px; text-align: center; border: 1px dashed var(--ebwh-line); border-radius: 16px; color: var(--ebwh-muted); background: var(--ebwh-card); }

/* ---------- Card: photo on top with a dark layer (name + location), light red shadow ---------- */
.ebwh .ebwh-card { position: relative; display: flex; flex-direction: column; width: 100%; min-width: 0; margin: 0; padding: 0; overflow: hidden;
  background: #FFFFFF; border: 1px solid color-mix(in srgb, var(--ebwh-accent) 10%, var(--ebwh-line)); border-radius: 20px; color: var(--ebwh-text);
  box-shadow: 0 6px 18px color-mix(in srgb, var(--ebwh-accent) 7%, transparent), 0 1px 3px color-mix(in srgb, var(--ebwh-accent) 6%, transparent);
  transition: transform .25s, box-shadow .25s, border-color .25s; }
.ebwh .ebwh-card:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--ebwh-accent) 28%, var(--ebwh-line));
  box-shadow: 0 12px 28px color-mix(in srgb, var(--ebwh-accent) 12%, transparent), 0 2px 6px color-mix(in srgb, var(--ebwh-accent) 8%, transparent); }
.ebwh .ebwh-card__cover { position: absolute; inset: 0; z-index: 1; }
.ebwh .ebwh-card__media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; margin: 0; color: #fff; background: linear-gradient(135deg, #24262c, #0e0f12); }
.ebwh .ebwh-card__media img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; margin: 0; border: 0; border-radius: 0; box-shadow: none; transition: transform .6s; }
.ebwh .ebwh-card:hover .ebwh-card__media img { transform: scale(1.06); }
.ebwh .ebwh-card__ph { position: absolute; inset: 0; display: grid; place-items: center; color: rgba(255, 255, 255, .3); }
.ebwh .ebwh-card__ph svg { width: 64px; height: 64px; }
.ebwh .ebwh-card__shade { position: absolute; inset: 0; background: linear-gradient(to top, rgba(10, 11, 14, .9) 0%, rgba(10, 11, 14, .55) 40%, rgba(10, 11, 14, 0) 72%); }
.ebwh .ebwh-card__chips { position: absolute; top: 12px; inset-inline: 12px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; }
.ebwh .ebwh-card__chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border: 1px solid rgba(255, 255, 255, .2); border-radius: 999px; background: rgba(14, 15, 18, .55); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); color: #fff; font-size: 12px; font-weight: 700; line-height: 1.5; }
.ebwh .ebwh-card__chip svg { width: 14px; height: 14px; }
.ebwh .ebwh-card__layer { position: absolute; inset-inline: 0; bottom: 0; padding: 24px 22px 18px; }
.ebwh .ebwh-card__name { margin: 0 0 4px; padding: 0; font: inherit; font-size: 21px; font-weight: 800; line-height: 1.3; letter-spacing: 0; text-transform: none; color: #fff; overflow-wrap: anywhere; text-shadow: 0 2px 10px rgba(0, 0, 0, .45); }
.ebwh .ebwh-card__name a { color: #fff; }
.ebwh .ebwh-card__loc { display: flex; align-items: flex-start; gap: 6px; margin: 0; padding: 0; font-size: 14px; line-height: 1.5; color: rgba(255, 255, 255, .9); overflow-wrap: anywhere; }
.ebwh .ebwh-card__loc svg { width: 15px; height: 15px; margin-top: 2px; color: #fff; }
.ebwh .ebwh-card__body { display: flex; flex: 1; flex-direction: column; gap: 16px; padding: 22px 24px 24px; }
.ebwh .ebwh-card__desc { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; margin: 0; padding: 0; font-size: 15px; line-height: 1.8; color: var(--ebwh-text); unicode-bidi: plaintext; }
.ebwh .ebwh-card__tags { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0; padding: 0; }
.ebwh .ebwh-card__tags li { margin: 0; padding: 4px 11px; border: 1px solid var(--ebwh-line); border-radius: 999px; background: var(--ebwh-paper); color: var(--ebwh-text); font-size: 13px; font-weight: 600; line-height: 1.5; list-style: none; }
.ebwh .ebwh-card__tags .ebwh-card__more { border-color: transparent; background: color-mix(in srgb, var(--ebwh-accent) 10%, transparent); color: var(--ebwh-accent); font-weight: 800; }
.ebwh .ebwh-card__actions { position: relative; z-index: 2; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: auto; padding-top: 16px; border-top: 1px solid var(--ebwh-line); }
.ebwh .ebwh-card__actions .ebwh-btn { min-width: 0; }
.ebwh .ebwh-card__actions .ebwh-btn--primary { grid-column: 1 / -1; }
.ebwh .ebwh-card__actions .ebwh-btn--outline:only-of-type { grid-column: 1 / -1; }

/* Buttons: explicit colours, full-width in the card, the label never overlaps the icon. */
.ebwh .ebwh-btn, .ebwh-banner .ebwh-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 10px 20px; border: 1px solid transparent; border-radius: 12px; font: inherit; font-size: 15px; font-weight: 700; line-height: 1.25; white-space: nowrap; cursor: pointer; text-align: center; transition: background-color .15s, color .15s, border-color .15s, box-shadow .15s; }
.ebwh .ebwh-btn span, .ebwh-banner .ebwh-btn span { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; color: inherit; }
.ebwh .ebwh-btn svg, .ebwh-banner .ebwh-btn svg { width: 18px; height: 18px; color: inherit; }
.ebwh .ebwh-btn--primary, .ebwh-banner .ebwh-btn--primary { background: var(--ebwh-accent); border-color: var(--ebwh-accent); color: var(--ebwh-on-accent); box-shadow: 0 8px 18px color-mix(in srgb, var(--ebwh-accent) 28%, transparent); }
.ebwh .ebwh-btn--primary:hover, .ebwh-banner .ebwh-btn--primary:hover { background: color-mix(in srgb, var(--ebwh-accent) 86%, #000); border-color: transparent; color: var(--ebwh-on-accent); box-shadow: 0 10px 24px color-mix(in srgb, var(--ebwh-accent) 40%, transparent); }
.ebwh .ebwh-btn--outline { background: #FFFFFF; border-color: var(--ebwh-line); color: var(--ebwh-ink); }
.ebwh .ebwh-btn--outline:hover { border-color: var(--ebwh-ink); background: var(--ebwh-paper); }
.ebwh .ebwh-btn--wa { color: var(--ebwh-wa); }
.ebwh .ebwh-btn--wa:hover { border-color: var(--ebwh-wa); background: color-mix(in srgb, var(--ebwh-wa) 8%, #fff); }
.ebwh-banner .ebwh-btn--light { background: transparent; border-color: rgba(255, 255, 255, .45); color: #fff; }
.ebwh-banner .ebwh-btn--light:hover { background: #fff; border-color: #fff; color: var(--ebwh-dark); }

/* ---------- Banner ---------- */
.ebwh-banner { position: relative; isolation: isolate; overflow: hidden; display: flex; align-items: center; gap: clamp(20px, 3.4vw, 40px); width: 100%; margin: 0 0 32px; padding: clamp(28px, 4.6vw, 56px) clamp(22px, 4.6vw, 60px);
  border-radius: 20px; box-shadow: 0 20px 50px rgba(14, 15, 18, .22); color: rgba(255, 255, 255, .82);
  background: radial-gradient(65% 120% at 92% 40%, color-mix(in srgb, var(--ebwh-accent) 42%, transparent), transparent 62%), linear-gradient(135deg, var(--ebwh-dark) 0%, var(--ebwh-dark-2) 100%); }
[dir="rtl"] .ebwh-banner { background: radial-gradient(65% 120% at 8% 40%, color-mix(in srgb, var(--ebwh-accent) 42%, transparent), transparent 62%), linear-gradient(135deg, var(--ebwh-dark) 0%, var(--ebwh-dark-2) 100%); }
.ebwh-banner::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .5; background: repeating-linear-gradient(135deg, rgba(255, 255, 255, .035) 0 2px, transparent 2px 22px); }
.ebwh-banner::after { content: ""; position: absolute; inset-inline: 0; bottom: 0; height: 3px; background: linear-gradient(90deg, var(--ebwh-accent), transparent 70%); }
[dir="rtl"] .ebwh-banner::after { background: linear-gradient(270deg, var(--ebwh-accent), transparent 70%); }
/* Optional photo (shortcode image="…" or the plugin's banner photo): a real <img>, darkened on the text side. */
.ebwh-banner.ebwh-has-img { background: var(--ebwh-dark); }
.ebwh-banner.ebwh-has-img::before { display: none; }
.ebwh-banner__media { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.ebwh-banner__media img { position: absolute; inset: 0; width: 100% !important; height: 100% !important; max-width: none !important; object-fit: cover; margin: 0; border: 0; border-radius: 0; box-shadow: none; }
[dir="rtl"] .ebwh-banner.ebwh-mirrored .ebwh-banner__media img { transform: scaleX(-1); }
.ebwh-banner__shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(14, 15, 18, .92) 0%, rgba(14, 15, 18, .72) 34%, rgba(14, 15, 18, .25) 68%, rgba(14, 15, 18, .05) 100%), linear-gradient(to top, rgba(14, 15, 18, .55), transparent 40%); }
[dir="rtl"] .ebwh-banner__shade { background: linear-gradient(270deg, rgba(14, 15, 18, .92) 0%, rgba(14, 15, 18, .72) 34%, rgba(14, 15, 18, .25) 68%, rgba(14, 15, 18, .05) 100%), linear-gradient(to top, rgba(14, 15, 18, .55), transparent 40%); }
.ebwh-banner__body { position: relative; min-width: 0; max-width: 680px; }
.ebwh-banner .ebwh-banner__eyebrow { display: inline-flex; align-items: center; margin: 0 0 14px; padding: 5px 14px; border-radius: 999px; background: color-mix(in srgb, var(--ebwh-accent) 78%, transparent); box-shadow: 0 6px 16px color-mix(in srgb, var(--ebwh-accent) 35%, transparent); color: #fff; font-size: 12px; font-weight: 800; line-height: 1.5; letter-spacing: .06em; text-transform: uppercase; }
.ebwh-banner .ebwh-banner__title { margin: 0 0 12px; padding: 0; font: inherit; font-size: clamp(24px, 3.2vw, 38px); font-weight: 800; line-height: 1.2; letter-spacing: -.01em; text-transform: none; text-wrap: balance; color: #fff; }
.ebwh-banner .ebwh-banner__text { margin: 0; padding: 0; max-width: 56ch; font-size: clamp(15px, 1.5vw, 17px); line-height: 1.75; color: rgba(255, 255, 255, .8); }
.ebwh-banner__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin: 26px 0 0; padding: 0; }
.ebwh-banner .ebwh-banner__actions .ebwh-btn { min-height: 50px; padding-inline: 26px; border-radius: 12px; }
.ebwh-banner .ebwh-banner__note { font-size: 13px; font-weight: 600; color: rgba(255, 255, 255, .66); }
.ebwh-banner__icon { flex: none; display: grid; place-items: center; width: clamp(72px, 10vw, 110px); height: clamp(72px, 10vw, 110px); border-radius: 26px; color: #fff; transform: rotate(-6deg);
  background: linear-gradient(145deg, color-mix(in srgb, var(--ebwh-accent) 90%, #000), color-mix(in srgb, var(--ebwh-accent) 55%, #000));
  box-shadow: 0 16px 36px color-mix(in srgb, var(--ebwh-accent) 40%, transparent), inset 0 1px 0 rgba(255, 255, 255, .25); }
[dir="rtl"] .ebwh-banner__icon { transform: rotate(6deg); }
.ebwh-banner__icon svg { width: 46%; height: 46%; }
[dir="rtl"] .ebwh-banner .ebwh-btn--primary svg { transform: scaleX(-1); }

/* ---------- Responsive ---------- */
@media (max-width: 1500px) { .ebwh { --cols: min(var(--cols-base, 3), 3); } }
@media (max-width: 1100px) { .ebwh { --cols: min(var(--cols-base, 3), 2); --gap: 20px; } }
@media (max-width: 760px)  { .ebwh { --cols: 1; --card-min: 320px; } }
@media (max-width: 560px) {
  .ebwh--panel { padding: 20px 12px; }
  .ebwh { --card-min: 0px; }
  .ebwh .ebwh__track { --cols: 1.1; --gap: 14px; margin-inline: -12px; padding-inline: 12px; scroll-padding-inline: 12px; }
  .ebwh .ebwh__grid { --cols: 1; --gap: 14px; }
  .ebwh .ebwh-card__body { padding: 16px; }
  .ebwh__end { width: 100%; justify-content: space-between; }
  .ebwh-banner { flex-direction: column; align-items: flex-start; padding: 28px 22px; border-radius: 18px; }
  .ebwh-banner__icon { width: 64px; height: 64px; border-radius: 18px; }
  .ebwh-banner .ebwh-banner__actions .ebwh-btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) { .ebwh .ebwh__track { scroll-behavior: auto; } .ebwh .ebwh-card, .ebwh .ebwh-card__media img { transition: none; } .ebwh .ebwh-card:hover { transform: none; } }
