.story-modal-no-scroll {
  overflow: hidden;
}

.story-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 13000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  background:
    radial-gradient(1200px 720px at 18% 18%, rgba(14, 165, 233, 0.16), transparent 55%),
    radial-gradient(980px 620px at 82% 82%, rgba(15, 118, 110, 0.16), transparent 58%),
    rgba(2, 6, 23, 0.62);
  transition: opacity 0.24s ease, visibility 0.24s ease;
}

.story-modal-overlay.show {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.story-modal {
  width: min(1080px, 100%);
  max-height: min(92vh, 920px);
  display: flex;
  flex-direction: column;
  border-radius: 22px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.98));
  box-shadow:
    0 28px 60px rgba(2, 6, 23, 0.28),
    0 1px 0 rgba(255, 255, 255, 0.72) inset;
  overflow: hidden;
  transform: translateY(10px) scale(0.985);
  transition: transform 0.25s ease;
  font-family: "Poppins", "Segoe UI", sans-serif;
}

.story-modal-overlay.show .story-modal {
  transform: translateY(0) scale(1);
}

.stm-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  background: linear-gradient(120deg, rgba(241, 245, 249, 0.76), rgba(255, 255, 255, 0.7));
}

.stm-top-logo {
  height: 34px;
  width: auto;
  max-width: 180px;
  object-fit: contain;
}

.stm-head-actions {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.stm-icon-btn {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid rgba(15, 23, 42, 0.1);
  background: #ffffff;
  color: #0f172a;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.stm-icon-btn:hover {
  background: #f8fafc;
}

.stm-menu-popover {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  width: min(300px, 76vw);
  max-height: 56vh;
  overflow: auto;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: #ffffff;
  border-radius: 12px;
  padding: 8px;
  box-shadow: 0 14px 28px rgba(2, 6, 23, 0.22);
  display: none;
  z-index: 6;
}

.stm-menu-popover.show {
  display: block;
}

.stm-menu-link {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: #0f172a;
  border-radius: 9px;
  padding: 8px 9px;
  font-size: 13px;
}

.stm-menu-link:hover {
  background: #f1f5f9;
}

.stm-menu-link-icon {
  display: inline-flex;
}

.stm-title {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 17px;
  color: #0f172a;
}

.stm-close {
  /* width: 34px; */
  /* height: 34px; */
  padding: 4px 8px;
  border-radius: 10px;
  border: 1px solid rgba(15, 23, 42, 0.1);
  background: #ffffff;
  color: #0f172a;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.stm-close:hover {
  background: #f8fafc;
}

.stm-scroll {
  flex: 1;
  min-height: 0;
  overflow: auto;
  padding: 16px;
}

.stm-hero {
  border: 1px solid rgba(14, 165, 233, 0.2);
  border-radius: 18px;
  padding: 16px;
  background: linear-gradient(130deg, rgba(224, 242, 254, 0.8), rgba(236, 253, 245, 0.8));
}

.stm-kicker {
  margin: 0;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 700;
  color: #0f766e;
}

.stm-hero h3 {
  margin: 8px 0 0;
  font-size: clamp(21px, 2vw, 30px);
  line-height: 1.18;
  color: #052e16;
}

.stm-subtitle {
  margin: 10px 0 0;
  color: #0f172a;
  font-size: 14px;
  line-height: 1.55;
}

.stm-live {
  margin: 12px 0 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, 0.09);
  background: rgba(255, 255, 255, 0.84);
  color: #0f172a;
  padding: 7px 11px;
  font-size: 12px;
}

.stm-live::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #f59e0b;
}

.stm-live.is-online::before {
  background: #10b981;
}

.stm-live.is-offline::before {
  background: #f59e0b;
}

.stm-section {
  margin-top: 14px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 16px;
  background: #ffffff;
  padding: 14px;
}

.stm-section h4 {
  margin: 0;
  font-size: 16px;
  color: #0f172a;
}

.stm-intro,
.stm-mission {
  margin: 10px 0 0;
  color: #334155;
  line-height: 1.62;
  font-size: 14px;
}

.stm-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.stm-search-wrap {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.stm-search-wrap span {
  font-size: 11px;
  font-weight: 600;
  color: #334155;
}

.stm-search {
  border: 1px solid rgba(148, 163, 184, 0.45);
  border-radius: 12px;
  padding: 9px 12px;
  min-width: 270px;
  font-size: 13px;
  background: #ffffff;
  color: #0f172a;
}

.stm-search:focus {
  outline: none;
  border-color: rgba(14, 165, 233, 0.8);
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.16);
}

.stm-timeline {
  margin-top: 12px;
  display: grid;
  gap: 10px;
}

.stm-timeline-item {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 10px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 12px;
  background: linear-gradient(120deg, #ffffff, #f8fafc);
  padding: 11px;
}

.stm-timeline-year {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  border-radius: 10px;
  border: 1px solid rgba(56, 189, 248, 0.4);
  background: rgba(224, 242, 254, 0.8);
  color: #075985;
  font-size: 12px;
  font-weight: 700;
  min-height: 36px;
}

.stm-timeline-content h4 {
  margin: 0;
  font-size: 14px;
}

.stm-timeline-content p {
  margin: 6px 0 0;
  color: #334155;
  font-size: 13px;
  line-height: 1.5;
}

.stm-metrics {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.stm-metric {
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 12px;
  background: #f8fafc;
  padding: 11px;
  text-align: center;
}

.stm-metric-value {
  margin: 0;
  font-size: 18px;
  color: #0f172a;
  font-weight: 700;
}

.stm-metric-label {
  margin: 5px 0 0;
  font-size: 12px;
  color: #475569;
}

.stm-values {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.stm-value-card {
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 12px;
  background: linear-gradient(130deg, #ffffff, #f8fafc);
  padding: 11px;
}

.stm-value-card h4 {
  margin: 0;
  font-size: 14px;
}

.stm-value-card p {
  margin: 6px 0 0;
  font-size: 13px;
  color: #334155;
  line-height: 1.52;
}

.stm-footer {
  margin-top: 10px;
  display: grid;
  gap: 10px;
}

.stm-footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.stm-footer-logo {
  width: 46px;
  height: 46px;
  border-radius: 10px;
  object-fit: cover;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: #ffffff;
}

.stm-footer-name {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  color: #0f172a;
}

.stm-footer-text {
  margin: 4px 0 0;
  font-size: 12px;
  color: #64748b;
}

.stm-footer-socials {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.stm-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.stm-footer-links a {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(148, 163, 184, 0.4);
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 12px;
  color: #0f172a;
  text-decoration: none;
  background: #f8fafc;
}

.stm-footer-links a:hover {
  background: #ffffff;
  border-color: rgba(14, 165, 233, 0.55);
}

.stm-social {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  text-decoration: none;
  color: #0f172a;
  font-size: 12px;
  border: 1px solid rgba(148, 163, 184, 0.4);
  border-radius: 999px;
  padding: 6px 10px;
  background: #f8fafc;
}

.stm-social:hover {
  border-color: rgba(14, 165, 233, 0.55);
  background: #ffffff;
}

.stm-footer-copy {
  margin: 0;
  color: #64748b;
  font-size: 11px;
}

.stm-empty {
  margin: 0;
  color: #64748b;
  font-size: 12px;
}

@media (max-width: 960px) {
  .story-modal-overlay {
    padding: 14px;
  }

  .stm-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .stm-values {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .story-modal {
    max-height: 95vh;
    border-radius: 16px;
  }

  .stm-top-logo {
    display: none;
  }

  .stm-scroll {
    padding: 12px;
  }

  .stm-timeline-item {
    grid-template-columns: 1fr;
  }

  .stm-search {
    min-width: 0;
    width: 100%;
  }
}
