/* ============================================
   POINTS — THEME 11: BURGUNDY STONE
   ============================================ */

:root {
  /* ===============================
     POINTS COLORS (BURGUNDY STONE)
  =============================== */
  --ebpt20-section-background-color: #6e2f40;
  --ebpt20-badge-background-color: transparent;
  --ebpt20-badge-border-color: #d9c3a1;
  --ebpt20-badge-text-color: #d9c3a1;
  --ebpt20-title-text-color: #faf8f5;
  --ebpt20-title-highlight-text-color: #d9c3a1;
  --ebpt20-subtitle-text-color: rgba(239, 230, 214, 0.82);
  --ebpt20-timeline-line-color: linear-gradient(90deg, transparent, rgba(43, 31, 35, 0.3) 50%, transparent);
  --ebpt20-card-background-color: transparent;
  --ebpt20-card-border-color: rgba(217, 195, 161, 0.35);
  --ebpt20-card-hover-border-color: #d9c3a1;
  --ebpt20-card-icon-background-color: transparent;
  --ebpt20-card-icon-border-color: #d9c3a1;
  --ebpt20-card-icon-color: #d9c3a1;
  --ebpt20-card-icon-hover-background-color: #d9c3a1;
  --ebpt20-card-icon-hover-color: #6e2f40;
  --ebpt20-card-number-background-color: transparent;
  --ebpt20-card-number-text-color: #d9c3a1;
  --ebpt20-card-title-text-color: #faf8f5;
  --ebpt20-card-description-text-color: rgba(239, 230, 214, 0.8);

  /* TYPOGRAPHY */
  --ebpt20-badge-font-size: 0.75rem;
  --ebpt20-badge-font-weight: 700;
  --ebpt20-badge-letter-spacing: 0;
  --ebpt20-title-font-size: 2.5rem;
  --ebpt20-title-font-weight: 800;
  --ebpt20-title-line-height: 1.2;
  --ebpt20-subtitle-font-size: 1.05rem;
  --ebpt20-subtitle-line-height: 1.7;
  --ebpt20-card-icon-font-size: 1.8rem;
  --ebpt20-card-number-font-size: 0.7rem;
  --ebpt20-card-number-font-weight: 700;
  --ebpt20-card-title-font-size: 1.15rem;
  --ebpt20-card-title-font-weight: 700;
  --ebpt20-card-description-font-size: 0.9rem;
  --ebpt20-card-description-line-height: 1.6;

  /* SPACING */
  --ebpt20-section-padding-block: 3.5rem;
  --ebpt20-container-padding-inline: 2rem;
  --ebpt20-header-gap: 1rem;
  --ebpt20-header-margin-bottom: 2.25rem;
  --ebpt20-badge-gap: 0.5rem;
  --ebpt20-badge-padding-block: 0.5rem;
  --ebpt20-badge-padding-inline: 1.25rem;
  --ebpt20-card-body-gap: 0.75rem;
  --ebpt20-card-number-padding: 0.2rem 0.8rem;

  /* LAYOUT */
  --ebpt20-container-max-width: 1240px;
  --ebpt20-container-z-index: 2;
  --ebpt20-header-max-width: 700px;
  --ebpt20-card-flex: 1;
  --ebpt20-card-z-index: 2;
  --ebpt20-card-backdrop-blur: 0px;

  /* GRID */
  --ebpt20-card-grid-template-columns-tablet: minmax(0, 1fr) auto;
  --ebpt20-card-header-grid-column-tablet: 2;
  --ebpt20-card-header-grid-row-tablet: 1;
  --ebpt20-card-title-grid-column-tablet: 1;
  --ebpt20-card-title-grid-row-tablet: 1;
  --ebpt20-card-description-grid-column-tablet: 1 / -1;
  --ebpt20-card-description-grid-row-tablet: 2;

  /* TIMELINE */
  --ebpt20-timeline-z-index: 1;
  --ebpt20-timeline-dot-width: 3px;
  --ebpt20-timeline-dot-color: rgba(43, 31, 35, 0.3);

  /* CARD */
  --ebpt20-card-number-bottom: -12px;
  --ebpt20-card-number-right: 50%;
  --ebpt20-card-number-transform: translateX(50%);

  /* ICON */
  --ebpt20-card-icon-size: 80px;
  --ebpt20-card-icon-border-width: 2px;
  --ebpt20-card-icon-radius: 50%;

  /* BORDER */
  --ebpt20-radius: 0;
  --ebpt20-card-border-width: 1px;
  --ebpt20-badge-border-width: 1px;
  --ebpt20-badge-radius: 999px;
  --ebpt20-card-number-border-radius: 0;

  /* SHADOW */
  --ebpt20-card-shadow: none;
  --ebpt20-card-hover-shadow: none;
  --ebpt20-card-hover-glow-shadow: 0 0 0 rgba(0, 0, 0, 0);
  --ebpt20-card-icon-shadow: none;
  --ebpt20-card-icon-hover-shadow: none;
  --ebpt20-title-highlight-text-shadow: none;

  /* ANIMATION */
  --ebpt20-ease: cubic-bezier(0.4, 0, 0.2, 1);
  --ebpt20-duration-fast: 0.35s;
  --ebpt20-duration-base: 0.4s;
  --ebpt20-duration-reveal: 0.8s;
  --ebpt20-card-transition: all var(--ebpt20-duration-base) var(--ebpt20-ease);
  --ebpt20-card-icon-transition: all var(--ebpt20-duration-fast) var(--ebpt20-ease);
  --ebpt20-card-hover-transform: translateY(-3px);
  --ebpt20-card-icon-hover-transform: scale(1.05);
  --ebpt20-animation-distance: 30px;
  --ebpt20-animation-opacity-from: 0;
  --ebpt20-animation-opacity-to: 1;
  --ebpt20-animation-transition: opacity var(--ebpt20-duration-reveal) var(--ebpt20-ease), transform var(--ebpt20-duration-reveal) var(--ebpt20-ease);
  --ebpt20-delay-1: 0.1s;
  --ebpt20-delay-2: 0.25s;
  --ebpt20-delay-3: 0.4s;
  --ebpt20-delay-4: 0.55s;

  /* RESPONSIVE */
  --ebpt20-timeline-gap-desktop: 1.5rem;
  --ebpt20-timeline-gap-tablet: 3rem;
  --ebpt20-timeline-top-desktop: 40px;
  --ebpt20-timeline-top-tablet: 5%;
  --ebpt20-timeline-bottom-tablet: 5%;
  --ebpt20-timeline-left-desktop: 5%;
  --ebpt20-timeline-left-tablet: 40px;
  --ebpt20-timeline-right-desktop: 5%;
  --ebpt20-timeline-width-tablet: 2px;
  --ebpt20-timeline-height-desktop: 2px;
  --ebpt20-timeline-height-tablet: 90%;
  --ebpt20-card-padding-desktop: 2rem 1.5rem;
  --ebpt20-card-padding-tablet: 2rem;
  --ebpt20-card-padding-mobile: 1.5rem;
  --ebpt20-card-gap-tablet: 1.5rem;
  --ebpt20-card-gap-mobile: 1rem 1.25rem;
  --ebpt20-card-header-margin-bottom-desktop: 1.5rem;
  --ebpt20-card-header-margin-bottom-tablet: 0;
}

.ebpt20-section {
  position: relative;
  background-color: var(--ebpt20-section-background-color);
  padding: var(--ebpt20-section-padding-block) 0;
  overflow: hidden;
}

.ebpt20-container {
  position: relative;
  z-index: var(--ebpt20-container-z-index);
  width: 100%;
  max-width: var(--ebpt20-container-max-width);
  padding: 0 var(--ebpt20-container-padding-inline);
  margin: 0 auto;
}

.ebpt20-header {
  text-align: center;
  max-width: var(--ebpt20-header-max-width);
  margin: 0 auto var(--ebpt20-header-margin-bottom) auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--ebpt20-header-gap);
}

/* Square badge */
.ebpt20-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--ebpt20-badge-gap);
  background: var(--ebpt20-badge-background-color);
  border: var(--ebpt20-badge-border-width) solid var(--ebpt20-badge-border-color);
  color: var(--ebpt20-badge-text-color);
  padding: var(--ebpt20-badge-padding-block) var(--ebpt20-badge-padding-inline);
  border-radius: var(--ebpt20-badge-radius);
  font-size: var(--ebpt20-badge-font-size);
  font-weight: var(--ebpt20-badge-font-weight);
  letter-spacing: var(--ebpt20-badge-letter-spacing);
}

.ebpt20-title {
  font-size: var(--ebpt20-title-font-size);
  font-weight: var(--ebpt20-title-font-weight);
  color: var(--ebpt20-title-text-color);
  line-height: var(--ebpt20-title-line-height);
}

.ebpt20-title-highlight {
  color: var(--ebpt20-title-highlight-text-color);
  text-shadow: var(--ebpt20-title-highlight-text-shadow);
}

.ebpt20-subtitle {
  font-size: var(--ebpt20-subtitle-font-size);
  color: var(--ebpt20-subtitle-text-color);
  line-height: var(--ebpt20-subtitle-line-height);
}

/* Premium Grid Layout (3+3 luxury) */
.ebpt20-steps-wrapper {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
  position: relative;
  align-items: stretch;
}
/* kill old horizontal timeline line — doesn't fit 2-row grid */
.ebpt20-steps-wrapper::before {
  display: none !important;
  content: none !important;
}
.ebpt20-steps-wrapper.ebpt20-count-1 {
  grid-template-columns: minmax(0, 540px);
  justify-content: center;
}
.ebpt20-steps-wrapper.ebpt20-count-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 900px;
  margin-inline: auto;
}
.ebpt20-steps-wrapper.ebpt20-count-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.ebpt20-steps-wrapper.ebpt20-count-5,
.ebpt20-steps-wrapper.ebpt20-count-6,
.ebpt20-steps-wrapper.ebpt20-count-7,
.ebpt20-steps-wrapper.ebpt20-count-8 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
@media (max-width: 1280px) {
  .ebpt20-steps-wrapper.ebpt20-count-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 1024px) {
  .ebpt20-steps-wrapper,
  .ebpt20-steps-wrapper.ebpt20-count-2,
  .ebpt20-steps-wrapper.ebpt20-count-3,
  .ebpt20-steps-wrapper.ebpt20-count-4,
  .ebpt20-steps-wrapper.ebpt20-count-5,
  .ebpt20-steps-wrapper.ebpt20-count-6,
  .ebpt20-steps-wrapper.ebpt20-count-7,
  .ebpt20-steps-wrapper.ebpt20-count-8 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem;
  }
  .ebpt20-steps-wrapper.ebpt20-count-1 {
    grid-template-columns: minmax(0, 540px);
  }
}
@media (max-width: 768px) {
  .ebpt20-steps-wrapper,
  .ebpt20-steps-wrapper[class*="ebpt20-count-"] {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 1rem !important;
  }
}

/* Step Card — premium */
.ebpt20-step-card {
  background: var(--ebpt20-card-background-color);
  border: var(--ebpt20-card-border-width) solid var(--ebpt20-card-border-color);
  border-radius: var(--ebpt20-radius);
  border-top: 2px dashed rgba(110, 47, 64, 0.38);
  padding: 2.5rem 1.75rem 2.1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  z-index: var(--ebpt20-card-z-index);
  box-shadow: var(--ebpt20-card-shadow);
  transition: var(--ebpt20-card-transition);
  min-height: 100%;
}
.ebpt20-step-card::before {
  content: '';
  position: absolute;
  top: 0;
  inset-inline: 0;
  height: 4px;
  background: linear-gradient(90deg, transparent, var(--ebpt20-card-icon-color) 18%, var(--ebpt20-card-icon-color) 82%, transparent);
  opacity: 0;
  transition: opacity var(--ebpt20-duration-base) var(--ebpt20-ease);
  z-index: 1;
  pointer-events: none;
}
.ebpt20-step-card:hover {
  transform: translateY(-8px);
  border-color: var(--ebpt20-card-hover-border-color);
  box-shadow: var(--ebpt20-card-hover-shadow);
}
.ebpt20-step-card:hover::before {
  opacity: 1;
}

/* giant faint number */
.ebpt20-step-watermark {
  position: absolute;
  bottom: -16px;
  inset-inline-end: 10px;
  font-size: 5.25rem;
  font-weight: 800;
  line-height: 1;
  opacity: 0.055;
  pointer-events: none;
  user-select: none;
  z-index: 0;
}

/* Step Header */
.ebpt20-step-header {
  position: relative;
  margin-bottom: 1.2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 1;
}

/* Step Icon container */
.ebpt20-step-icon {
  width: 76px;
  height: 76px;
  border-radius: var(--ebpt20-card-icon-radius);
  background: var(--ebpt20-card-icon-background-color);
  border: 1.5px solid var(--ebpt20-card-icon-border-color);
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.65rem;
  color: var(--ebpt20-card-icon-color);
  box-shadow: var(--ebpt20-card-icon-shadow);
  transition: var(--ebpt20-card-icon-transition);
}
.ebpt20-step-card:hover .ebpt20-step-icon {
  background: var(--ebpt20-card-icon-hover-background-color);
  color: var(--ebpt20-card-icon-hover-color);
  box-shadow: var(--ebpt20-card-icon-hover-shadow);
  transform: scale(1.06);
}

/* Step Number pill */
.ebpt20-step-number {
  position: absolute;
  top: -14px;
  inset-inline-start: -10px;
  background: var(--ebpt20-card-number-background-color);
  color: var(--ebpt20-card-number-text-color);
  font-weight: 800;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  padding: 0.3rem 0.8rem;
  border-radius: var(--ebpt20-card-number-border-radius);
  z-index: 2;
  white-space: nowrap;
  line-height: 1.4;
}

/* Step Body */
.ebpt20-step-body {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  align-items: center;
  z-index: 1;
}
.ebpt20-step-title {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--ebpt20-card-title-text-color);
  line-height: 1.55;
  margin: 0;
}
.ebpt20-step-desc {
  font-size: 0.92rem;
  color: var(--ebpt20-card-description-text-color);
  line-height: 1.9;
  margin: 0;
  max-width: 34ch;
  text-wrap: pretty;
}

.ebpt20-anim-up {
  opacity: var(--ebpt20-animation-opacity-from);
  transform: translateY(var(--ebpt20-animation-distance));
  transition: var(--ebpt20-animation-transition);
}

.ebpt20-anim-up.ebpt20-visible {
  opacity: var(--ebpt20-animation-opacity-to);
  transform: translateY(0);
}

.ebpt20-delay-1 { transition-delay: var(--ebpt20-delay-1); }
.ebpt20-delay-2 { transition-delay: var(--ebpt20-delay-2); }
.ebpt20-delay-3 { transition-delay: var(--ebpt20-delay-3); }
.ebpt20-delay-4 { transition-delay: var(--ebpt20-delay-4); }
.ebpt20-delay-5 { transition-delay: 0.65s; }
.ebpt20-delay-6 { transition-delay: 0.75s; }
.ebpt20-delay-7 { transition-delay: 0.85s; }
.ebpt20-delay-8 { transition-delay: 0.95s; }

/* ===============================
   MOBILE RESPONSIVE (768px & 380px)
=============================== */
@media (max-width: 768px) {
  .ebpt20-section {
    padding: 1.75rem 0 !important;
  }
  .ebpt20-header {
    margin-bottom: 1.25rem !important;
    padding: 0 0.75rem !important;
    gap: 0.65rem !important;
  }
  .ebpt20-title {
    font-size: 1.75rem !important;
    line-height: 1.35 !important;
    font-weight: 800 !important;
  }
  .ebpt20-subtitle {
    font-size: 0.95rem !important;
    line-height: 1.6 !important;
  }
  .ebpt20-badge {
    font-size: 0.78rem !important;
    padding: 0.4rem 0.95rem !important;
  }
  .ebpt20-container {
    padding: 0 0.75rem !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
  .ebpt20-steps-wrapper {
    flex-direction: column !important;
    gap: 1.25rem !important;
    width: 100% !important;
  }
  .ebpt20-steps-wrapper::before {
    display: none !important;
  }
  .ebpt20-step-card {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    padding: 1.25rem 1rem !important;
    gap: 0.75rem !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .ebpt20-step-header {
    margin-bottom: 0.25rem !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
  }
  .ebpt20-step-icon {
    width: 60px !important;
    height: 60px !important;
    font-size: 1.4rem !important;
  }
  .ebpt20-step-number {
    font-size: 0.72rem !important;
    padding: 0.2rem 0.55rem !important;
    top: -6px !important;
    right: -6px !important;
  }
  .ebpt20-step-body {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 0.4rem !important;
    width: 100% !important;
  }
  .ebpt20-step-title {
    font-size: 1.15rem !important;
    font-weight: 700 !important;
    margin: 0 !important;
  }
  .ebpt20-step-desc {
    font-size: 0.88rem !important;
    line-height: 1.6 !important;
    margin: 0 !important;
  }
}

@media (max-width: 380px) {
  .ebpt20-title {
    font-size: 1.5rem !important;
  }
  .ebpt20-subtitle {
    font-size: 0.88rem !important;
  }
  .ebpt20-step-title {
    font-size: 1.05rem !important;
  }
  .ebpt20-step-desc {
    font-size: 0.82rem !important;
  }
  .ebpt20-step-card {
    padding: 1rem 0.85rem !important;
  }
}


/* === MOBILE-COMPACT DISTRIBUTED: POINTS 480 === */
@media (max-width: 480px) {
  .ebpt20-container {
    padding-left: 0.75rem !important;
    padding-right: 0.75rem !important;
    padding-inline: 0.75rem !important;
  }
}


/* === MOBILE-COMPACT DISTRIBUTED: POINTS 380 === */
@media (max-width: 380px) {
  .ebpt20-container {
    padding-left: 0.5rem !important;
    padding-right: 0.5rem !important;
    padding-inline: 0.5rem !important;
  }
}


/* === MOBILE-COMPACT DISTRIBUTED: POINTS 768 INLINE FIX === */
@media (max-width: 768px) {
  .ebpt20-container {
    padding-inline: 0.75rem !important;
  }
}

/* THEME11 LAYER */
/* ============================================================
   THEME 11 — POINTS LAYER (burgundy band · serif numerals)
   ============================================================ */
.ebpt20-section { background: #6e2f40; }
.ebpt20-section::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background: repeating-linear-gradient(135deg, rgba(217, 195, 161, .07) 0 1px, transparent 1px 22px);
  background-size: 31px 31px;
  animation: t11-pin 30s linear infinite;
}
.ebpt20-section::after {
  content: ""; position: absolute; z-index: 0; pointer-events: none; width: 520px; height: 520px; inset-inline-start: -160px; top: -200px;
  border: 1px solid rgba(217, 195, 161, .25); border-radius: 50%; box-shadow: inset 0 0 0 26px rgba(217, 195, 161, .04);
  animation: t11-spin 90s linear infinite;
}
.ebpt20-header::before { content: "\2014  \25C6  \2014"; letter-spacing: .5em; color: #d9c3a1; font-size: .8rem; display: block; margin-bottom: .3rem; }
.ebpt20-badge { background: transparent; color: #d9c3a1; border: 1px solid #d9c3a1; border-radius: 999px; letter-spacing: 0; font-weight: 600; }
.ebpt20-title { font-family: "El Messiri", sans-serif; font-weight: 700; color: #faf8f5; }
.ebpt20-title-highlight { color: #d9c3a1; text-decoration: underline wavy #d9c3a1; text-decoration-thickness: 2px; text-underline-offset: .26em; background: none; }
.ebpt20-subtitle { color: rgba(239, 230, 214, .82); }
@supports (animation-timeline: view()) {
  .ebpt20-title { animation: t11-track linear both; animation-timeline: view(); animation-range: entry 0% entry 70%; }
}

.ebpt20-steps-wrapper { gap: 0; }
.ebpt20-steps-wrapper::before { display: none !important; }
.ebpt20-step-card {
  background: transparent; border: 0; border-inline-start: 1px solid rgba(217, 195, 161, .35); border-radius: 0; box-shadow: none;
  padding: 2rem 1.7rem 1.7rem; align-items: flex-start; text-align: start;
  transition: transform .5s var(--t11-ease, ease), border-color .3s ease, background-color .3s ease, opacity .8s ease, filter .8s ease;
}
.ebpt20-step-card:hover { border-inline-start-color: #d9c3a1; background: rgba(217, 195, 161, .07); transform: translateY(-6px); box-shadow: none; }
.ebpt20-step-card::before { display: none; }
.ebpt20-step-header { position: static; align-items: flex-start; margin-bottom: 1rem; flex-direction: row-reverse; gap: 1rem; }
.ebpt20-step-number {
  position: static; background: none; border: 0; box-shadow: none; padding: 0; border-radius: 0; transform: none;
  font: 700 3.6rem/1 "El Messiri", sans-serif; color: transparent; -webkit-text-stroke: 1px #d9c3a1; letter-spacing: 0;
  transition: color .4s ease;
}
.ebpt20-step-card:hover .ebpt20-step-number { color: #d9c3a1; }
.ebpt20-step-icon {
  width: 54px; height: 54px; border-radius: 50%; background: transparent; border: 1px solid #d9c3a1; color: #d9c3a1; box-shadow: none;
  transition: background-color .3s ease, color .3s ease, transform .6s var(--t11-ease, ease);
}
.ebpt20-step-card:hover .ebpt20-step-icon { background: #d9c3a1; color: #6e2f40; transform: rotate(360deg); box-shadow: none; }
.ebpt20-step-body { align-items: flex-start; }
.ebpt20-step-title { font-family: "El Messiri", sans-serif; font-size: 1.45rem; color: #faf8f5; }
.ebpt20-step-desc { color: rgba(239, 230, 214, .8); max-width: none; }

.ebpt20-anim-up { opacity: 0; transform: translateY(46px); filter: blur(5px); }
.ebpt20-anim-up.ebpt20-visible { opacity: 1; transform: none; filter: blur(0); }
.ebpt20-step-card.ebpt20-visible:hover { transform: translateY(-6px); }
@media (max-width: 900px) { .ebpt20-step-card { border-inline-start: 0; border-top: 1px solid rgba(217, 195, 161, .3); } }
