/* ============================================
   SERVICES — THEME 10: ESPRESSO MIST
   ============================================ */

:root {
  /* ===============================
     COLORS
  =============================== */
  --ebsrv20-section-background-color: #5b4636;
  --ebsrv20-orb-1-color: rgba(0, 0, 0, 0);
  --ebsrv20-orb-2-color: rgba(0, 0, 0, 0);
  --ebsrv20-badge-background-color: #ffffff;
  --ebsrv20-badge-border-color: #ffffff;
  --ebsrv20-badge-text-color: #5b4636;
  --ebsrv20-title-text-color: #ffffff;
  --ebsrv20-title-highlight-text-color: #ffffff;
  --ebsrv20-title-underline-color: #2a211b;
  --ebsrv20-subtitle-text-color: rgba(255, 255, 255, 0.86);
  --ebsrv20-card-background-color: #ffffff;
  --ebsrv20-card-border-color: transparent;
  --ebsrv20-card-top-stripe-color: #8fb0c4;
  --ebsrv20-card-hover-border-color: transparent;
  --ebsrv20-card-overlay-background: linear-gradient(180deg, transparent 50%, rgba(42, 33, 27, 0.55) 100%);
  --ebsrv20-card-title-text-color: #2a211b;
  --ebsrv20-card-title-prefix-color: #8fb0c4;
  --ebsrv20-card-description-text-color: #6f6157;
  --ebsrv20-card-button-text-color: #2a211b;
  --ebsrv20-card-button-border-color: #e4dcd1;
  --ebsrv20-card-button-hover-background-color: transparent;
  --ebsrv20-card-button-hover-border-color: #5b4636;
  --ebsrv20-card-button-hover-text-color: #ffffff;
  --ebsrv20-card-img-wrapper-border-color: transparent;

  /* ===============================
     TYPOGRAPHY
  =============================== */
  --ebsrv20-badge-font-size: 0.75rem;
  --ebsrv20-badge-font-weight: 700;
  --ebsrv20-badge-letter-spacing: 0;
  --ebsrv20-title-font-size: 2.5rem;
  --ebsrv20-title-font-weight: 800;
  --ebsrv20-title-line-height: 1.2;
  --ebsrv20-title-underline-height: 4px;
  --ebsrv20-title-underline-radius: 0px;
  --ebsrv20-title-underline-offset: -4px;
  --ebsrv20-subtitle-font-size: 1.05rem;
  --ebsrv20-subtitle-line-height: 1.7;
  --ebsrv20-card-title-font-size: 1.2rem;
  --ebsrv20-card-title-font-weight: 800;
  --ebsrv20-card-title-prefix-font-size: 0.6rem;
  --ebsrv20-card-desc-font-size: 0.92rem;
  --ebsrv20-card-desc-line-height: 1.65;
  --ebsrv20-card-button-font-size: 0.82rem;
  --ebsrv20-card-button-font-weight: 700;
  --ebsrv20-card-button-letter-spacing: 0;

  /* ===============================
     SPACING
  =============================== */
  --ebsrv20-header-gap: 1rem;
  --ebsrv20-header-padding-x: 2rem;
  --ebsrv20-header-margin-bottom: 2.25rem;
  --ebsrv20-badge-gap: 0.5rem;
  --ebsrv20-badge-padding-y: 0.5rem;
  --ebsrv20-badge-padding-x: 1.25rem;
  --ebsrv20-container-padding-x: 2rem;
  --ebsrv20-card-body-padding: 1.25rem 1.5rem 1.5rem;
  --ebsrv20-card-title-gap: 0.5rem;
  --ebsrv20-card-title-margin-bottom: 0.75rem;
  --ebsrv20-card-desc-margin-bottom: 1.5rem;
  --ebsrv20-card-button-gap: 0.5rem;
  --ebsrv20-card-button-padding: 0.55rem 1.25rem;

  /* ===============================
     LAYOUT
  =============================== */
  --ebsrv20-bg-effects-z-index: 0;
  --ebsrv20-header-z-index: 2;
  --ebsrv20-container-z-index: 2;
  --ebsrv20-header-max-width: 700px;
  --ebsrv20-container-max-width: 1240px;
  --ebsrv20-orb-border-radius: 50%;
  --ebsrv20-orb-blur: 0px;
  --ebsrv20-orb-opacity: 0;
  --ebsrv20-orb-fade-stop: 70%;
  --ebsrv20-orb-1-width: 550px;
  --ebsrv20-orb-1-height: 550px;
  --ebsrv20-orb-1-top: -12%;
  --ebsrv20-orb-1-right: -8%;
  --ebsrv20-orb-2-width: 450px;
  --ebsrv20-orb-2-height: 450px;
  --ebsrv20-orb-2-bottom: -12%;
  --ebsrv20-orb-2-left: -8%;

  /* ===============================
     GRID
  =============================== */
  --ebsrv20-grid-gap: 1.5rem;

  /* ===============================
     CARD
  =============================== */
  --ebsrv20-radius: 24px;
  --ebsrv20-card-backdrop-blur: 0px;
  --ebsrv20-card-transition-duration: 0.4s;
  --ebsrv20-card-hover-translate-y: -4px;
  --ebsrv20-card-hover-rotate: 0deg;

  /* ===============================
     IMAGE
  =============================== */
  --ebsrv20-img-radius: 0;
  --ebsrv20-card-img-wrapper-width: 100%;
  --ebsrv20-card-img-wrapper-height: 200px;
  --ebsrv20-card-img-wrapper-aspect-ratio: auto;
  --ebsrv20-card-img-wrapper-margin-top: 0;
  --ebsrv20-img-width: 100%;
  --ebsrv20-img-height: 100%;
  --ebsrv20-img-aspect-ratio: auto;
  --ebsrv20-img-object-fit: cover;
  --ebsrv20-img-transition-duration: 0.6s;
  --ebsrv20-img-scale-hover: 1.05;
  --ebsrv20-img-rotate-hover: 0deg;

  /* ===============================
     BUTTON
  =============================== */
  --ebsrv20-card-button-border-width: 1px;
  --ebsrv20-card-button-border-radius: 14px;
  --ebsrv20-card-button-transition-duration: 0.3s;
  --ebsrv20-card-button-icon-transition-duration: 0.3s;
  --ebsrv20-card-button-icon-translate-x-hover: -5px;
  --ebsrv20-card-button-icon-rotate-hover: 0deg;

  /* ===============================
     BORDER
  =============================== */
  --ebsrv20-badge-border-width: 1px;
  --ebsrv20-badge-border-radius: 10px;
  --ebsrv20-card-border-width: 1px;
  --ebsrv20-card-border-left-width: 0;
  --ebsrv20-card-img-wrapper-border-width: 0;
  --ebsrv20-card-border-image: none;
  --ebsrv20-card-border-image-slice: 0;

  /* ===============================
     SHADOW
  =============================== */
  --ebsrv20-card-shadow: 0 24px 36px -22px rgba(42, 33, 27, 0.55);
  --ebsrv20-card-hover-shadow: 0 36px 50px -24px rgba(42, 33, 27, 0.7);

  /* ===============================
     ANIMATION
  =============================== */
  --ebsrv20-ease: cubic-bezier(0.4, 0, 0.2, 1);
  --ebsrv20-anim-translate-y: 30px;
  --ebsrv20-anim-duration: 0.8s;
  --ebsrv20-anim-opacity-hidden: 0;
  --ebsrv20-anim-opacity-visible: 1;
  --ebsrv20-anim-delay-1: 0.1s;
  --ebsrv20-anim-delay-2: 0.2s;
  --ebsrv20-anim-delay-3: 0.3s;
  --ebsrv20-anim-delay-4: 0.4s;
  --ebsrv20-anim-delay-5: 0.5s;
  --ebsrv20-anim-delay-6: 0.6s;

  /* ===============================
     RESPONSIVE
  =============================== */
  --ebsrv20-grid-template-columns-desktop: repeat(auto-fill, minmax(340px, 1fr));
  --ebsrv20-grid-template-columns-mobile: 1fr;
}

.ebsrv20-section {
  position: relative;
  background-color: var(--ebsrv20-section-background-color);
  padding: 3.5rem 0;
  overflow: hidden;
}

.ebsrv20-bg-effects {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: var(--ebsrv20-bg-effects-z-index);
}

.ebsrv20-bg-orb {
  position: absolute;
  border-radius: var(--ebsrv20-orb-border-radius);
  filter: blur(var(--ebsrv20-orb-blur));
  opacity: var(--ebsrv20-orb-opacity);
}

.ebsrv20-orb-1 {
  width: var(--ebsrv20-orb-1-width); height: var(--ebsrv20-orb-1-height);
  background: radial-gradient(circle, var(--ebsrv20-orb-1-color), transparent var(--ebsrv20-orb-fade-stop));
  top: var(--ebsrv20-orb-1-top); right: var(--ebsrv20-orb-1-right);
}

.ebsrv20-orb-2 {
  width: var(--ebsrv20-orb-2-width); height: var(--ebsrv20-orb-2-height);
  background: radial-gradient(circle, var(--ebsrv20-orb-2-color), transparent var(--ebsrv20-orb-fade-stop));
  bottom: var(--ebsrv20-orb-2-bottom); left: var(--ebsrv20-orb-2-left);
}

.ebsrv20-header {
  position: relative;
  z-index: var(--ebsrv20-header-z-index);
  text-align: center;
  max-width: var(--ebsrv20-header-max-width);
  margin: 0 auto var(--ebsrv20-header-margin-bottom) auto;
  padding: 0 var(--ebsrv20-header-padding-x);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--ebsrv20-header-gap);
}

/* Square badge */
.ebsrv20-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--ebsrv20-badge-gap);
  background: var(--ebsrv20-badge-background-color);
  border: var(--ebsrv20-badge-border-width) solid var(--ebsrv20-badge-border-color);
  color: var(--ebsrv20-badge-text-color);
  padding: var(--ebsrv20-badge-padding-y) var(--ebsrv20-badge-padding-x);
  border-radius: var(--ebsrv20-badge-border-radius);
  font-size: var(--ebsrv20-badge-font-size);
  font-weight: var(--ebsrv20-badge-font-weight);
  letter-spacing: var(--ebsrv20-badge-letter-spacing);
}

.ebsrv20-title {
  font-size: var(--ebsrv20-title-font-size);
  font-weight: var(--ebsrv20-title-font-weight);
  color: var(--ebsrv20-title-text-color);
  line-height: var(--ebsrv20-title-line-height);
}

/* Gradient underline bar */
.ebsrv20-title-highlight {
  color: var(--ebsrv20-title-highlight-text-color);
  position: relative;
}

.ebsrv20-title-highlight::after {
  content: '';
  position: absolute;
  bottom: var(--ebsrv20-title-underline-offset);
  left: 0;
  width: 100%;
  height: var(--ebsrv20-title-underline-height);
  background: var(--ebsrv20-title-underline-color);
  border-radius: var(--ebsrv20-title-underline-radius);
}

.ebsrv20-subtitle {
  font-size: var(--ebsrv20-subtitle-font-size);
  color: var(--ebsrv20-subtitle-text-color);
  line-height: var(--ebsrv20-subtitle-line-height);
}

.ebsrv20-container {
  position: relative;
  z-index: var(--ebsrv20-container-z-index);
  width: 100%;
  max-width: var(--ebsrv20-container-max-width);
  padding: 0 var(--ebsrv20-container-padding-x);
  margin: 0 auto;
}

.ebsrv20-grid {
  display: grid;
  grid-template-columns: var(--ebsrv20-grid-template-columns-desktop);
  gap: var(--ebsrv20-grid-gap);
}

@media (max-width: 768px) {
  .ebsrv20-section {
    padding: 1.75rem 0 !important;
  }
  .ebsrv20-header {
    margin-bottom: 1.25rem !important;
    padding: 0 0.75rem !important;
    gap: 0.65rem !important;
  }
  .ebsrv20-title {
    font-size: 1.75rem !important;
    line-height: 1.35 !important;
    font-weight: 800 !important;
  }
  .ebsrv20-subtitle {
    font-size: 0.95rem !important;
    line-height: 1.6 !important;
  }
  .ebsrv20-badge {
    font-size: 0.78rem !important;
    padding: 0.4rem 0.95rem !important;
  }
  .ebsrv20-container {
    padding: 0 0.75rem !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
  .ebsrv20-grid {
    grid-template-columns: 1fr !important;
    gap: 1.35rem !important;
  }
  .ebsrv20-card-body {
    padding: 1.25rem !important;
  }
  .ebsrv20-card-title {
    font-size: 1.15rem !important;
    margin-bottom: 0.5rem !important;
    font-weight: 700 !important;
  }
  .ebsrv20-card-desc {
    font-size: 0.88rem !important;
    line-height: 1.6 !important;
    margin-bottom: 0.95rem !important;
  }
  .ebsrv20-card-img-wrapper {
    height: 190px !important;
  }
  .ebsrv20-card-link {
    font-size: 0.88rem !important;
    padding: 0.6rem 1.1rem !important;
  }
}

@media (max-width: 380px) {
  .ebsrv20-title {
    font-size: 1.5rem !important;
  }
  .ebsrv20-subtitle {
    font-size: 0.88rem !important;
  }
  .ebsrv20-card-title {
    font-size: 1.05rem !important;
  }
  .ebsrv20-card-desc {
    font-size: 0.82rem !important;
  }
  .ebsrv20-card-body {
    padding: 1rem !important;
  }
}

/* Card with left thick border instead of top stripe, rotate on hover */
.ebsrv20-card {
  background-color: var(--ebsrv20-card-background-color);
  border: var(--ebsrv20-card-border-width) solid var(--ebsrv20-card-border-color);
  border-radius: var(--ebsrv20-radius);
  overflow: hidden;
  transition: transform var(--ebsrv20-card-transition-duration) var(--ebsrv20-ease), border-color var(--ebsrv20-card-transition-duration) var(--ebsrv20-ease), box-shadow var(--ebsrv20-card-transition-duration) var(--ebsrv20-ease);
  display: flex;
  flex-direction: column;
  position: relative;
  box-shadow: var(--ebsrv20-card-shadow);
  border-top: 0;
}

/* remove the ::before top stripe - we use left border instead */
.ebsrv20-card::before {
  display: none;
}

/* Rotate on hover instead of translatey */
.ebsrv20-card:hover {
  transform: translateY(var(--ebsrv20-card-hover-translate-y)) rotate(var(--ebsrv20-card-hover-rotate));
  border-color: var(--ebsrv20-card-hover-border-color);
  box-shadow: var(--ebsrv20-card-hover-shadow);
}

/* Circular image instead of rectangle */
.ebsrv20-card-img-wrapper {
  position: relative;
  width: var(--ebsrv20-card-img-wrapper-width);
  height: var(--ebsrv20-card-img-wrapper-height);
  aspect-ratio: var(--ebsrv20-card-img-wrapper-aspect-ratio);
  margin: var(--ebsrv20-card-img-wrapper-margin-top) auto 0;
  border-radius: var(--ebsrv20-img-radius);
  overflow: hidden;
  border: var(--ebsrv20-card-img-wrapper-border-width) solid var(--ebsrv20-card-img-wrapper-border-color);
}

.ebsrv20-card-img {
  width: var(--ebsrv20-img-width);
  height: var(--ebsrv20-img-height);
  aspect-ratio: var(--ebsrv20-img-aspect-ratio);
  object-fit: var(--ebsrv20-img-object-fit);
  transition: transform var(--ebsrv20-img-transition-duration) var(--ebsrv20-ease);
}

.ebsrv20-card:hover .ebsrv20-card-img {
  transform: scale(var(--ebsrv20-img-scale-hover)) rotate(var(--ebsrv20-img-rotate-hover));
}

.ebsrv20-card-overlay {
  position: absolute;
  inset: 0;
  background: var(--ebsrv20-card-overlay-background);
}

.ebsrv20-card-body {
  padding: var(--ebsrv20-card-body-padding);
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  text-align: start;
}

/* Title with diamond prefix instead of // */
.ebsrv20-card-title {
  font-size: var(--ebsrv20-card-title-font-size);
  font-weight: var(--ebsrv20-card-title-font-weight);
  color: var(--ebsrv20-card-title-text-color);
  margin-bottom: var(--ebsrv20-card-title-margin-bottom);
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: var(--ebsrv20-card-title-gap);
}

.ebsrv20-card-title::before {
  content: '\25A0';
  color: var(--ebsrv20-card-title-prefix-color);
  font-size: var(--ebsrv20-card-title-prefix-font-size);
}

.ebsrv20-card-desc {
  font-size: var(--ebsrv20-card-desc-font-size);
  color: var(--ebsrv20-card-description-text-color);
  line-height: var(--ebsrv20-card-desc-line-height);
  margin-bottom: var(--ebsrv20-card-desc-margin-bottom);
  flex-grow: 1;
}

/* Pill-shaped link button */
.ebsrv20-card-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--ebsrv20-card-button-gap);
  color: var(--ebsrv20-card-button-text-color);
  font-weight: var(--ebsrv20-card-button-font-weight);
  font-size: var(--ebsrv20-card-button-font-size);
  text-decoration: none;
  border: var(--ebsrv20-card-button-border-width) solid var(--ebsrv20-card-button-border-color);
  padding: var(--ebsrv20-card-button-padding);
  border-radius: var(--ebsrv20-card-button-border-radius);
  transition: all var(--ebsrv20-card-button-transition-duration) var(--ebsrv20-ease);
  width: 100%;
  letter-spacing: var(--ebsrv20-card-button-letter-spacing);
}

.ebsrv20-card-link i {
  transition: transform var(--ebsrv20-card-button-icon-transition-duration) var(--ebsrv20-ease);
}

/* Arrow moves left on hover instead of translatex */
.ebsrv20-card:hover .ebsrv20-card-link {
  background-color: var(--ebsrv20-card-button-hover-background-color);
  border-color: var(--ebsrv20-card-button-hover-border-color);
  color: var(--ebsrv20-card-button-hover-text-color);
}

.ebsrv20-card:hover .ebsrv20-card-link i {
  transform: translateX(var(--ebsrv20-card-button-icon-translate-x-hover)) rotate(var(--ebsrv20-card-button-icon-rotate-hover));
}

.ebsrv20-anim-up {
  opacity: var(--ebsrv20-anim-opacity-hidden);
  transform: translateY(var(--ebsrv20-anim-translate-y));
  transition: opacity var(--ebsrv20-anim-duration) var(--ebsrv20-ease), transform var(--ebsrv20-anim-duration) var(--ebsrv20-ease);
}

.ebsrv20-anim-up.ebsrv20-visible {
  opacity: var(--ebsrv20-anim-opacity-visible);
  transform: translateY(0);
}

.ebsrv20-delay-1 { transition-delay: var(--ebsrv20-anim-delay-1); }
.ebsrv20-delay-2 { transition-delay: var(--ebsrv20-anim-delay-2); }
.ebsrv20-delay-3 { transition-delay: var(--ebsrv20-anim-delay-3); }
.ebsrv20-delay-4 { transition-delay: var(--ebsrv20-anim-delay-4); }
.ebsrv20-delay-5 { transition-delay: var(--ebsrv20-anim-delay-5); }
.ebsrv20-delay-6 { transition-delay: var(--ebsrv20-anim-delay-6); }


/* === MOBILE-COMPACT DISTRIBUTED: SERVICES 480 === */
@media (max-width: 480px) {
  .ebsrv20-container,
  .ebsrv20-header {
    padding-left: 0.75rem !important;
    padding-right: 0.75rem !important;
    padding-inline: 0.75rem !important;
  }
}


/* === MOBILE-COMPACT DISTRIBUTED: SERVICES 380 === */
@media (max-width: 380px) {
  .ebsrv20-container,
  .ebsrv20-header {
    padding-left: 0.5rem !important;
    padding-right: 0.5rem !important;
    padding-inline: 0.5rem !important;
  }
}


/* === MOBILE-COMPACT DISTRIBUTED: SERVICES 768 INLINE FIX === */
@media (max-width: 768px) {
  .ebsrv20-container,
  .ebsrv20-header {
    padding-inline: 0.75rem !important;
  }
}

/* THEME10 LAYER */
/* ============================================================
   THEME 10 — SERVICES LAYER (cobalt band + bento grid)
   ============================================================ */
@keyframes t10-scan { 0% { top: -6px; } 100% { top: 100%; } }

.ebsrv20-section {
  z-index: 2;
  background: #5b4636;
  padding-top: calc(3.5rem + var(--t10-slant));
  padding-bottom: calc(3.5rem + var(--t10-slant));
  margin-bottom: calc(var(--t10-slant) * -1);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 calc(100% - var(--t10-slant)));
  counter-reset: t10card;
}
/* moving diagonal texture */
.ebsrv20-section::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background: repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.07) 0 2px, transparent 2px 30px);
  background-size: 60px 60px;
  animation: t10-stripes 6s linear infinite;
}
.ebsrv20-bg-orb { filter: none !important; opacity: 1; background: none; }
.ebsrv20-orb-1 {
  width: 520px; height: 520px; top: -160px; right: -140px;
  border: 2px dashed rgba(255, 255, 255, 0.28); border-radius: 50%;
  animation: t10-spin 60s linear infinite;
}
.ebsrv20-orb-2 {
  width: 190px; height: 190px; bottom: 14%; left: -60px;
  background: #8fb0c4; border-radius: 50%; opacity: .9;
  animation: t10-float 9s ease-in-out infinite;
}

/* ---- editorial header ---- */
.ebsrv20-header {
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  align-items: end; column-gap: 3rem; row-gap: 1rem;
  text-align: start; max-width: 1240px; margin-inline: auto; padding: 0 2rem;
}
.ebsrv20-header::before {
  content: "── SERVICES";
  grid-column: 1 / -1;
  font: 600 0.78rem/1 "El Messiri", monospace; letter-spacing: .16em;
  color: rgba(255, 255, 255, 0.72);
}
.ebsrv20-badge { grid-column: 1 / -1; justify-self: start; border-radius: 10px; letter-spacing: 0; }
.ebsrv20-title { font-weight: 800; line-height: 1.25; }
.ebsrv20-subtitle {
  color: rgba(255, 255, 255, 0.85);
  border-inline-start: 3px solid #8fb0c4; padding-inline-start: 1.1rem;
}
.ebsrv20-title-highlight {
  color: #ffffff;
  background: linear-gradient(#8fb0c4, #8fb0c4) 100% 94% / 100% 0.2em no-repeat;
}
.ebsrv20-title-highlight::after { display: none; }
:root[dir="ltr"] .ebsrv20-title-highlight { background-position: 0 94%; }
@supports (animation-timeline: view()) {
  .ebsrv20-title-highlight {
    background-size: 0% 0.2em;
    animation: t10-underline linear both;
    animation-timeline: view(); animation-range: entry 30% cover 35%;
  }
}
@keyframes t10-underline { to { background-size: 100% 0.2em; } }

/* ---- bento grid ---- */
.ebsrv20-grid { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 1.4rem; }
.ebsrv20-card { grid-column: span 4; counter-increment: t10card; border: 0; border-radius: 24px; }
.ebsrv20-card:nth-child(5n+1), .ebsrv20-card:nth-child(5n+2) { grid-column: span 6; flex-direction: row; }
.ebsrv20-card:nth-child(5n+1) .ebsrv20-card-img-wrapper,
.ebsrv20-card:nth-child(5n+2) .ebsrv20-card-img-wrapper { width: 46%; height: auto; min-height: 250px; flex: none; }
.ebsrv20-card:nth-child(5n+1) .ebsrv20-card-body,
.ebsrv20-card:nth-child(5n+2) .ebsrv20-card-body { justify-content: center; flex: 1; }

/* section-entry choreography (JS adds -visible) */
.ebsrv20-anim-up {
  opacity: 0;
  transform: translateY(64px) rotate(1.6deg) scale(.95);
  transition: opacity .7s ease, transform .95s cubic-bezier(.2, .8, .2, 1), filter .7s ease, box-shadow .35s ease; filter: blur(8px);
}
.ebsrv20-anim-up.ebsrv20-visible {
  opacity: 1; transform: none; filter: blur(0);
}
.ebsrv20-card.ebsrv20-visible:hover { transform: translateY(-8px); }

.ebsrv20-card-img-wrapper { position: relative; }
.ebsrv20-card-img-wrapper::after {
  content: counter(t10card, decimal-leading-zero);
  position: absolute; top: 14px; inset-inline-start: 14px; z-index: 4;
  background: #8fb0c4; color: #2a211b; font: 600 0.78rem/1 "El Messiri", monospace;
  padding: 0.35rem 0.6rem; border-radius: 8px;
}
.ebsrv20-card-img-wrapper::before {
  content: ""; position: absolute; inset-inline: 0; top: -6px; height: 3px; z-index: 3; opacity: 0;
  background: #8fb0c4; box-shadow: 0 0 20px 5px rgba(143, 176, 196, 0.7);
}
.ebsrv20-card:hover .ebsrv20-card-img-wrapper::before { opacity: 1; animation: t10-scan 1.5s ease-in-out infinite; }
.ebsrv20-card-title::before { content: none; }
.ebsrv20-card-title { font-size: 1.28rem; line-height: 1.4; }
.ebsrv20-card-link {
  border-radius: 14px; border-width: 2px; position: relative; overflow: hidden;
  background: linear-gradient(#5b4636, #5b4636) 100% 0 / 0% 100% no-repeat;
  justify-content: space-between; padding-inline: 1.1rem;
  transition: background-size .5s cubic-bezier(.6, 0, .2, 1), color .35s ease, border-color .35s ease;
}
:root[dir="ltr"] .ebsrv20-card-link { background-position: 0 0; }
.ebsrv20-card:hover .ebsrv20-card-link { background-size: 100% 100%; color: #ffffff; border-color: #5b4636; background-color: transparent; }

@media (max-width: 1100px) {
  .ebsrv20-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .ebsrv20-card, .ebsrv20-card:nth-child(5n+1), .ebsrv20-card:nth-child(5n+2) { grid-column: auto !important; flex-direction: column !important; }
  .ebsrv20-card:nth-child(5n+1) .ebsrv20-card-img-wrapper, .ebsrv20-card:nth-child(5n+2) .ebsrv20-card-img-wrapper { width: 100%; min-height: 0; height: 200px; }
  .ebsrv20-header { grid-template-columns: 1fr; padding: 0 1rem; }
}
@media (max-width: 768px) {
  .ebsrv20-grid { grid-template-columns: 1fr !important; }
  .ebsrv20-header { align-items: start; }
}
