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

   Variants covered:
     - col12   (.company-background-12)  4 info cards, icon on the left
     - col6    (.company-background-6)   2x2 info cards, icon on top
     - col4-v2 (.company-background-v2)  Swiper carousel (Swiper 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 (.d-flex, .justify-content-between,
       .align-items-center, .float-end, .mt-0, .mb-0)     -> Bootstrap

   KEPT (widget-specific — needed for fidelity), all scoped:
     card / btn overrides, icon-circle, card-white, text-head/text-sub,
     swiper base styling, and every company-background-12/6/v2 rule.

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

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

/* ----- widget-scoped utilities (kept from original, override Bootstrap within widget) ----- */
.stk-company-background .d-block { display: block; }
.stk-company-background .text-left { text-align: left; }
.stk-company-background .overflow-auto { overflow: auto; }
.stk-company-background .gap-16 { gap: 16px; }

@media (min-width: 992px) {
  .stk-company-background .d-lg-flex { display: flex; }
}
@media (min-width: 768px) {
  .stk-company-background .d-md-flex { display: flex; }
}
@media (min-width: 576px) {
  .stk-company-background .d-sm-block { display: block; }
  .stk-company-background .d-sm-flex  { display: flex; }
}

.stk-company-background .d-flex-h-100 {
  display: flex;
  height: 100%;
}

/* ----- Spacing (custom scale kept from original) ----- */
.stk-company-background .mb-16 { margin-bottom: 16px; }
.stk-company-background .mt-16 { margin-top: 16px; }
.stk-company-background .mt-10 { margin-top: 10px; }

/* ----- Button (widget-specific pill) ----- */
.stk-company-background .btn {
  padding: 8px 24px;
  border-radius: var(--border-radius-xl);
  cursor: pointer;
  white-space: nowrap;
}
.stk-company-background .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-company-background .btn-primary:hover {
  background-color: var(--bg-color-primary);
  border-color: var(--bg-color-primary);
}
.stk-company-background .btn-primary:active,
.stk-company-background .btn-primary:focus {
  background-color: var(--bg-color-primary) !important;
  border-color: var(--bg-color-primary) !important;
}

/* ----- Card (custom in the original style.css) ----- */
.stk-company-background .card-title {
  font-size: 24px;
  font-weight: 600;
  color: var(--text-header);
}
.stk-company-background .card {
  padding: 24px;
  background-color: var(--bg-card);
  border-radius: var(--border-radius-medium);
  border: none;
}
.stk-company-background .card-header {
  background-color: var(--bg-card);
  border-radius: var(--border-radius-medium);
  border: none;
  padding: 0;
  margin-bottom: 24px;
}
.stk-company-background .card-header:first-child {
  border-radius: var(--border-radius-medium);
}
.stk-company-background .card-body { padding: 0; }

@media (max-width: 575px) {
  .stk-company-background .card { padding: 20px; }
  .stk-company-background .card-header { margin-bottom: 12px; }
  .stk-company-background .card-title { font-size: 20px; }
  .stk-company-background .btn { font-size: 14px; padding: 6px 18px; }
}

/* ----- Icon circle (shared pattern) ----- */
.stk-company-background .icon-circle {
  width: 50px;
  height: 50px;
  background-color: var(--bg-color-primary);
  align-items: center;
  display: flex;
  justify-content: center;
  color: var(--text-white);
  border-radius: 100px;
  font-size: 24px;
}

@media (max-width: 575px) {
  .stk-company-background .icon-circle { width: 40px; height: 40px; }
  .stk-company-background .icon-circle i { font-size: 20px; }
}

/* ============================================================
   Swiper base (needed for the col4-v2 carousel variant)
   ============================================================ */
.stk-company-background .swiper-container { width: 100%; }
.stk-company-background .swiper-slide {
  text-align: center;
  font-size: 18px;
  display: flex;
  justify-content: center;
  align-items: center;
}
.stk-company-background .swiper-pagination {
  position: relative !important;
  padding-top: 20px;
}
.stk-company-background .swiper-pagination-bullet { background: var(--bg-color-black); }
.stk-company-background .swiper-pagination-bullet-active { background: var(--bg-color-black) !important; }

/* ============================================================
   Variant: col12 (.company-background-12)
   ============================================================ */
.stk-company-background .company-background-12 .card-inner {
  display: flex;
  flex-direction: column;
}

@media (max-width: 991px) {
  .stk-company-background .company-background-12 .row {
    row-gap: 24px;
    height: auto;
    overflow: auto;
  }
}

/* ============================================================
   Variant: col6 (.company-background-6)
   ============================================================ */
.stk-company-background .company-background-6 .row { row-gap: 24px; }
.stk-company-background .company-background-6 .card-inner {
  display: flex;
  flex-direction: column;
}

/* ----- card-white (shared by all variants) ----- */
.stk-company-background .card-white {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  word-wrap: break-word;
  background-color: var(--bg-card-inner);
  background-clip: border-box;
  border: 0 solid #eaedf1;
  border-radius: var(--border-radius-medium);
  flex: 1;
  padding: 18px;
}
.stk-company-background .text-head {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-header);
}
.stk-company-background .text-sub {
  color: var(--text-sub-header);
  font-size: 14px;
  font-weight: 400;
}

@media (max-width: 991px) {
  .stk-company-background .company-background-6 .row {
    row-gap: 24px;
    height: 400px;
    overflow: auto;
  }
}

@media (max-width: 767px) {
  .stk-company-background .company-background-6 .row {
    row-gap: 24px;
    height: 300px;
    overflow: auto;
  }
}

