/* STP site styling */
:root {
  --bg: #0c0d12;
  --panel: rgba(15, 18, 28, 0.92);
  --panel-soft: rgba(255, 255, 255, 0.06);
  --text: #f7f8fb;
  --muted: #9ca2b5;
  --accent: #3d8cff;
  --accent-dark: #1f5ed9;
  --border: rgba(255, 255, 255, 0.08);
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  min-height: 100%;
  background: radial-gradient(circle at top left, rgba(95, 178, 255, 0.12), transparent 24%),
              radial-gradient(circle at bottom right, rgba(58, 121, 255, 0.14), transparent 18%),
              var(--bg);
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

button, a {
  font: inherit;
}

.page-shell {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  padding-bottom: 84px;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 18px;
  background: rgba(7, 8, 14, 0.95);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  position: sticky;
  top: 0;
  z-index: 10;
}

.brand-row {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-name {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.search-wrapper {
  position: relative;
  display: inline-flex;
  align-items: center;
  width: min(260px, 100%);
}

.search-toggle {
  display: none;
}

.search-wrapper input {
  width: 100%;
  padding: 12px 44px 12px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.06);
  color: var(--text);
  outline: none;
}

.search-wrapper input::placeholder {
  color: rgba(255,255,255,0.55);
}

.search-clear {
  position: absolute;
  right: 12px;
  border: none;
  background: transparent;
  color: rgba(255,255,255,0.7);
  cursor: pointer;
  font-size: 0.95rem;
  padding: 0;
}

.donate-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  min-height: 42px;
  border-radius: 999px;
  background: linear-gradient(135deg, #5fa4ff, #3f7dff);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
}

.subnav {
  display: flex;
  justify-content: center;
  gap: 12px;
  padding: 18px 18px 8px;
}

.nav-pill {
  border: none;
  border-radius: 999px;
  padding: 10px 20px;
  background: rgba(255,255,255,0.05);
  color: var(--text);
  cursor: pointer;
  text-decoration: none;
  transition: background 0.25s ease;
}

.nav-pill.active,
.nav-pill:hover {
  background: rgba(62, 97, 255, 0.2);
}

.content {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  flex: 1;
}

.about-section {
  margin: 0 0 24px;
}

.about-card {
  background: linear-gradient(135deg, rgba(10, 16, 30, 0.96), rgba(25, 32, 54, 0.96));
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 28px;
  padding: 28px 24px;
  display: grid;
  gap: 16px;
}

.about-eyebrow {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.8rem;
  color: #7dc0ff;
  font-weight: 700;
}

.about-card h1 {
  margin: 0;
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
}

.about-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}

.about-highlights {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 4px;
}

.about-highlights div {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.about-highlights strong {
  font-size: 0.98rem;
}

.about-highlights span {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.5;
}

.videos-section {
  margin-bottom: 24px;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
  margin-bottom: 18px;
}

.section-header h2 {
  margin: 0;
  font-size: 1.6rem;
}

.section-header p {
  margin: 8px 0 0;
  color: var(--muted);
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}

.no-results {
  color: var(--muted);
  text-align: center;
  padding: 30px 20px;
  grid-column: 1 / -1;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 20px;
  background: rgba(255,255,255,0.04);
}

.video-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 24px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.video-preview {
  width: 100%;
  aspect-ratio: 16 / 9;
  min-height: 160px;
  background: linear-gradient(135deg, rgba(63,125,255,0.25), rgba(42,47,71,0.55));
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.video-preview video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
}

.preview-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  display: grid;
  place-items: center;
  font-size: 1.5rem;
}

.video-card-body {
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.video-title {
  margin: 0;
  font-size: 1rem;
  line-height: 1.4;
}

.video-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 14px;
  border-radius: 999px;
  background: rgba(62, 97, 255, 0.18);
  color: #fff;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
}

.bottom-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(5, 10, 22, 0.96);
  border-top: 1px solid rgba(255,255,255,0.08);
  color: var(--text);
  padding: 16px 20px;
  text-align: center;
  font-size: 0.95rem;
  z-index: 20;
}

@media (max-width: 640px) {
  .topbar {
    flex-wrap: nowrap;
    gap: 10px;
    padding: 12px 14px;
  }

  .brand-row {
    flex: 1;
    min-width: 0;
    gap: 8px;
  }

  .brand-name {
    font-size: 1.05rem;
  }

  .search-wrapper {
    width: auto;
    margin-left: auto;
  }

  .search-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border: none;
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
    color: var(--text);
    cursor: pointer;
  }

  .search-wrapper input {
    display: none;
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    width: min(220px, calc(100vw - 32px));
    z-index: 20;
    box-shadow: 0 12px 34px rgba(0, 0, 0, 0.3);
  }

  .search-wrapper.is-open input {
    display: block;
  }

  .search-clear {
    display: none;
  }

  .search-wrapper.is-open .search-clear {
    display: block;
  }

  .donate-pill {
    padding: 0 14px;
    min-height: 40px;
    white-space: nowrap;
  }

  .hero-card {
    padding: 22px;
  }

  .section-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .about-highlights {
    grid-template-columns: 1fr;
  }

  .video-preview {
    min-height: 0;
  }

  .bottom-bar {
    font-size: 0.9rem;
    padding: 14px 16px;
  }
}
