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

   Variants covered:
     - col-12  4 stat blocks in a row + wide meeting card (col-4)
     - col-6   2x2 stat blocks + full-width meeting card

   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 (.align-items-center, .w-100, .mb-0) -> Bootstrap

   KEPT (widget-specific — needed for fidelity), all scoped:
     .text-left, .d-flex-h-100, custom spacing (.mt-16, .mt-24, .mb-24,
     .mb-md-24), card, and every .shareholder-information-* /
     .card-image rule.

   NOTE: the original tokens carry no brand green, so there is no
   var(--stk-primary) mapping needed for this widget.
   ============================================================ */

.stk-shareholder-information {
  /* original :root tokens, moved onto the widget scope */
  --text-header: #000000;
  --text-sub-header: #888888;
  --text-white: #ffffff;
  --text-overlay-image: #ffffff;
  --bg-card: #FAFBFD;
  --border-radius-medium: 8px;
}

/* ----- widget-scoped utilities (kept — not the generic set removed) ----- */
.stk-shareholder-information .text-left { text-align: left; }
.stk-shareholder-information .d-flex-h-100 {
  display: flex;
  height: 100%;
}

/* ----- custom spacing (kept scoped) ----- */
.stk-shareholder-information .mt-16 { margin-top: 16px; }
.stk-shareholder-information .mt-24 { margin-top: 24px; }
.stk-shareholder-information .mb-24 { margin-bottom: 24px; }
@media (max-width: 991px) {
  .stk-shareholder-information .mb-md-24 { margin-bottom: 24px; }
}
@media (max-width: 575px) {
  .stk-shareholder-information .mb-md-24 { margin-bottom: 16px; }
}

/* ----- Card (custom in the original style.css) ----- */
.stk-shareholder-information .card {
  padding: 24px;
  background-color: var(--bg-card);
  border-radius: var(--border-radius-medium);
  border: none;
}
.stk-shareholder-information .card-body { padding: 0; }

@media (max-width: 575px) {
  .stk-shareholder-information .card { padding: 20px; }
}

/* ============================================================
   Shareholder information — stat blocks + meeting card
   (shared by both variants)
   ============================================================ */
.stk-shareholder-information .shareholder-information-card .card-image .text-card {
  left: 18px;
}
.stk-shareholder-information .shareholder-information-block .number {
  font-size: 28px;
  font-weight: 600;
  color: var(--text-header);
}
.stk-shareholder-information .shareholder-information-block .number-des {
  font-size: 14px;
  color: var(--text-sub-header);
}
.stk-shareholder-information .shareholder-information-block {
  display: flex;
  height: 100%;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
.stk-shareholder-information .shareholder-information-block.shareholder-information-block-12 {
  display: block;
  height: 100%;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
.stk-shareholder-information .shareholder-information-block .card {
  width: 100%;
  height: 100%;
}

@media (max-width: 991px) {
  .stk-shareholder-information .shareholder-information-card .card-image {
    height: 210px;
  }
  .stk-shareholder-information .shareholder-information-block.shareholder-information-block-12 {
    display: flex;
  }
}
@media (max-width: 767px) {
  .stk-shareholder-information .shareholder-information-card .card-image .text-card {
    top: calc(74%);
    left: 18px;
  }
  .stk-shareholder-information .shareholder-information-card .card-image img {
    width: 100%;
  }
  .stk-shareholder-information .shareholder-information-card .card-image h3 {
    font-size: 21px;
  }
}
@media (max-width: 575px) {
  .stk-shareholder-information .shareholder-information-block .card {
    padding: 14px;
  }
  .stk-shareholder-information .shareholder-information-block .card img {
    width: 40px;
    height: 40px;
  }
  .stk-shareholder-information .shareholder-information-block .number {
    font-size: 18px;
  }
  .stk-shareholder-information .shareholder-information-card .card-image h3 {
    font-size: 18px;
  }
}

/* ----- Card hover / card-image (shared pattern) ----- */
.stk-shareholder-information .card-image {
  height: 100%;
  border-radius: var(--border-radius-medium);
  position: relative;
  overflow: hidden;
  width: 100%;
  color: var(--text-white) !important;
  text-align: left;
  line-height: 1.4em;
  font-size: 16px;
  box-sizing: border-box;
  transition: all 0.35s ease;
}
.stk-shareholder-information .card-image img {
  height: 100%;
  object-fit: cover;
  transition: 0.3s;
}
.stk-shareholder-information .card-image img:hover {
  transform: scale(1.1);
}
.stk-shareholder-information .card-image .text-card {
  position: absolute;
  bottom: 18px;
  left: 18px;
  color: var(--text-white) !important;
}
.stk-shareholder-information .card-image .text-card:before {
  position: absolute;
  content: '';
  z-index: 2;
  bottom: 100%;
  left: 0;
  height: 80px;
  color: var(--text-white) !important;
}
.stk-shareholder-information .card-image h3,
.stk-shareholder-information .card-image p {
  margin: 0 0 12px;
}
.stk-shareholder-information .card-image h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 0;
  line-height: 1.2em;
  color: var(--text-overlay-image);
}
.stk-shareholder-information .card-image p {
  font-size: 12px;
  color: var(--text-white);
}

@media (max-width: 1536px) {
  .stk-shareholder-information .card-image h3 { font-size: 16px; }
}
@media (max-width: 575px) {
  .stk-shareholder-information .card-image h3 { font-size: 18px; }
}
@media (max-width: 425px) {
  .stk-shareholder-information .card-image h3 { font-size: 16px; }
}
