/* ============================================================
   StackUI Widget: financial-highlight  (scoped styles — ALL variants)
   ------------------------------------------------------------
   Everything is scoped under .stk-financial-highlight so it can never
   leak into other widgets or fight the core.

   Variants covered:
     - col12   (.financial-information + stat blocks)  static grid
     - col6-v2 (.financial-stats-slide)                Swiper carousel (4.0.7)

   REMOVED vs the original ref-template (now provided by core):
     - Google-font @import, * reset, base body/p/a       -> core + tokens
     - .container + media queries                         -> Bootstrap
     - .row / .col-* grid                                 -> Bootstrap grid
     - generic utils (.float-start, .mb-0, .w-100)        -> Bootstrap

   KEPT (widget-specific — needed for fidelity), all scoped:
     btn overrides, responsive display utils used for <br> breaks,
     custom spacing overrides (.mb-md-24, .my-xs-custom, mt/mb scale),
     swiper base styling, and every financial-information rule.

   Brand green (#57CC33) -> central token var(--stk-primary).
   ============================================================ */

.stk-financial-highlight {
  /* original :root tokens, moved onto the widget scope */
  --text-header: #000000;
  --text-sub-header: #888888;
  --bg-color-primary: var(--stk-primary);   /* was #57CC33 */
  --button-primary-bg: #000000;
  --button-primary-text: #ffffff;
  --bg-card: #FAFBFD;
  --border-radius-medium: 8px;
  --border-radius-xl: 100px;
}

/* ----- widget-scoped utilities (kept from original) ----- */
.stk-financial-highlight .d-none { display: none; }

@media (min-width: 576px) {
  .stk-financial-highlight .d-sm-block { display: block; }
}
@media (min-width: 992px) {
  .stk-financial-highlight .d-lg-none  { display: none; }
  .stk-financial-highlight .d-lg-block { display: block; }
}

/* ----- custom responsive spacing (override Bootstrap within widget) ----- */
@media (max-width: 991px) {
  .stk-financial-highlight .mb-md-24 { margin-bottom: 24px; }
}
@media (max-width: 575px) {
  .stk-financial-highlight .mb-md-24 { margin-bottom: 16px; }
}
@media (max-width: 575px) {
  .stk-financial-highlight .my-xs-custom { margin: 12px 0 24px !important; }
}

/* ----- Spacing (custom scale kept from original) ----- */
.stk-financial-highlight .mt-16 { margin-top: 16px; }
.stk-financial-highlight .mt-24 { margin-top: 24px; }
.stk-financial-highlight .mb-24 { margin-bottom: 24px; }
.stk-financial-highlight .mb-32 { margin-bottom: 32px; }

/* ----- Button (widget-specific pill) ----- */
.stk-financial-highlight .btn {
  padding: 8px 24px;
  border-radius: var(--border-radius-xl);
  cursor: pointer;
  white-space: nowrap;
}
.stk-financial-highlight .btn-primary {
  color: var(--button-primary-text);
  background-color: var(--button-primary-bg);
  border-color: var(--button-primary-bg);
  width: max-content;
  cursor: pointer;
  transition: 0.35s;
}
.stk-financial-highlight .btn-primary:hover {
  background-color: var(--bg-color-primary);
  border-color: var(--bg-color-primary);
}
.stk-financial-highlight .btn-primary:active,
.stk-financial-highlight .btn-primary:focus {
  background-color: var(--bg-color-primary) !important;
  border-color: var(--bg-color-primary) !important;
}

/* ============================================================
   Swiper base (needed for the col6-v2 carousel variant)
   ============================================================ */
.stk-financial-highlight .swiper-container { width: 100%; }
.stk-financial-highlight .swiper-slide {
  text-align: center;
  font-size: 18px;
  display: flex;
  justify-content: center;
  align-items: center;
}
.stk-financial-highlight .swiper-pagination {
  position: relative !important;
  padding-top: 20px;
}

/* ============================================================
   Financial highlight (component-specific)
   ============================================================ */
.stk-financial-highlight .financial-information {
  display: block;
}
.stk-financial-highlight .financial-information .financial-information-text {
  font-size: 24px;
  font-weight: 600;
  color: var(--text-header);
}
.stk-financial-highlight .financial-information .financial-information-des {
  font-size: 14px;
  color: var(--text-sub-header);
}
.stk-financial-highlight .financial-information-block .card {
  padding: 18px;
  width: 100%;
  height: 100%;
  background-color: var(--bg-card);
  border-radius: var(--border-radius-medium);
}
.stk-financial-highlight .financial-information-block .number {
  font-size: 24px;
  font-weight: 600;
  color: var(--text-header);
}
.stk-financial-highlight .financial-information-block .number-des {
  font-size: 14px;
  color: var(--text-sub-header);
}
.stk-financial-highlight .financial-information-block {
  display: flex;
  height: 100%;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

@media (max-width: 991px) {
  .stk-financial-highlight .financial-information {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  .stk-financial-highlight .financial-information-block .number-des {
    font-size: 16px;
  }
}

@media (max-width: 575px) {
  .stk-financial-highlight .financial-information {
    display: block;
  }
  .stk-financial-highlight .financial-information-block .card {
    padding: 14px;
  }
  .stk-financial-highlight .financial-information .financial-information-text {
    font-size: 20px;
  }
  .stk-financial-highlight .financial-information-block .number {
    font-size: 18px;
  }
  .stk-financial-highlight .financial-information-block .number-des {
    font-size: 14px;
  }
}

