/* ============================================
   THEME 9: HI-VIZ — OTHER SERVICES — light, animated
   ============================================ */

:root {
  /* ===== COLORS ===== */
  --ebosp20-section-services-bg: linear-gradient(180deg, #FFFDF5, #FFF6D6);
  --ebosp20-section-other-bg: #FFFDF5;
  --ebosp20-title-color: #16130B;
  --ebosp20-item-bg: #FFFFFF;
  --ebosp20-item-border-color: #16130B;
  --ebosp20-item-shadow: 5px 5px 0 #16130B;
  --ebosp20-item-link-color: #16130B;
  --ebosp20-item-link-hover-color: #8A6D00;
  --ebosp20-item-desc-color: #6B6250;

  /* ===== TYPOGRAPHY ===== */
  --ebosp20-title-font-size: 28px;
  --ebosp20-title-font-weight: 800;
  --ebosp20-title-margin-bottom: 18px;
  --ebosp20-item-link-font-weight: 700;
  --ebosp20-item-desc-font-size: 13px;

  /* ===== SPACING ===== */
  --ebosp20-section-padding: 48px 0;
  --ebosp20-container-padding: 0 20px;
  --ebosp20-container-max-width: 1200px;
  --ebosp20-list-gap: 16px;
  --ebosp20-item-padding: 12px;
  --ebosp20-item-desc-margin-top: 8px;

  /* ===== BORDER ===== */
  --ebosp20-item-border-radius: 18px;
  --ebosp20-item-border-width: 2px;

  /* ===== RESPONSIVE ===== */
  --ebosp20-list-columns-desktop: repeat(3, 1fr);
  --ebosp20-list-columns-tablet: repeat(2, 1fr);
  --ebosp20-list-columns-mobile: 1fr;
}

/* ===== SECTION ===== */
.ebosp20-section {
  padding: var(--ebosp20-section-padding);
}

.ebosp20-container {
  max-width: var(--ebosp20-container-max-width);
  margin: 0 auto;
  padding: var(--ebosp20-container-padding);
}

/* ===== TITLE — ink with yellow marker underline ===== */
.ebosp20-title {
  font-size: var(--ebosp20-title-font-size);
  font-weight: var(--ebosp20-title-font-weight);
  margin-bottom: var(--ebosp20-title-margin-bottom);
  color: var(--ebosp20-title-color);
  background-image: linear-gradient(90deg, #FFC400, #E0A800);
  background-size: 64px 6px;
  background-position: bottom right;
  background-repeat: no-repeat;
  padding-bottom: 12px;
  transition: background-size .3s ease;
}
.ebosp20-item:nth-child(n) .ebosp20-title { background-size: 64px 6px; }

/* ===== GRID ===== */
.ebosp20-list {
  display: grid;
  grid-template-columns: var(--ebosp20-list-columns-desktop);
  gap: var(--ebosp20-list-gap);
}

/* ===== ITEM — white rows with hover slide + yellow marker edge ===== */
.ebosp20-item {
  background: var(--ebosp20-item-bg);
  border: var(--ebosp20-item-border-width) solid var(--ebosp20-item-border-color);
  border-radius: var(--ebosp20-item-border-radius);
  padding: var(--ebosp20-item-padding);
  padding-inline-start: calc(var(--ebosp20-item-padding) + 6px);
  box-shadow: var(--ebosp20-item-shadow);
  transition: transform .3s cubic-bezier(.34,1.56,.64,1), box-shadow .25s ease, border-color .25s ease;
  border-inline-start: 6px solid #FFC400;
}
.ebosp20-item:nth-child(n):hover {
  transform: translateY(-4px) translateX(-4px);
  box-shadow: 8px 8px 0 #16130B;
  border-color: #16130B;
  border-inline-start-color: #E0A800;
}
.ebosp20-item:nth-child(3n+2) { border-inline-start-color: #E0A800; }
.ebosp20-item:nth-child(3n+2):hover { border-inline-start-color: #FFC400; }
.ebosp20-item:nth-child(3n) .ebosp20-item-desc { border-top: 1px dashed #16130B; padding-top: 8px; }

.ebosp20-item a {
  display: block;
  color: var(--ebosp20-item-link-color);
  text-decoration: none;
  font-weight: var(--ebosp20-item-link-font-weight);
  transition: color .2s ease, transform .2s ease;
}

.ebosp20-item p {
  margin: var(--ebosp20-item-desc-margin-top) 0 0;
  color: var(--ebosp20-item-desc-color);
  font-size: var(--ebosp20-item-desc-font-size);
}

.ebosp20-item a:hover {
  color: var(--ebosp20-item-link-hover-color);
  transform: translateX(-4px);
  background: linear-gradient(180deg, transparent 62%, #FFE58A 62%, #FFE58A 96%, transparent 96%);
}

/* ===== BACKGROUNDS ===== */
.ebosp20-services {
  background: var(--ebosp20-section-services-bg);
}

.ebosp20-other {
  background: var(--ebosp20-section-other-bg);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 992px) {
  .ebosp20-list {
    grid-template-columns: var(--ebosp20-list-columns-tablet);
  }
}

@media (max-width: 640px) {
  .ebosp20-list {
    grid-template-columns: var(--ebosp20-list-columns-mobile);
  }
}

@media (max-width: 768px) {
  .ebosp20-container { padding: 0 0.75rem !important; }
}
@media (max-width: 480px) {
  .ebosp20-container { padding: 0 0.625rem !important; }
}
@media (max-width: 380px) {
  .ebosp20-container { padding: 0 0.5rem !important; }
}


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


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


/* === MOBILE-COMPACT DISTRIBUTED: OTHER-SERVICES 380 INLINE FIX === */
@media (max-width: 380px) {
  .ebosp20-container {
    padding-inline: 0.5rem !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ebosp20-section *, .ebosp20-section *::before, .ebosp20-section *::after { animation: none !important; transition: none !important; }
}
