/* Share Market Gyan - Company News | Page-specific CSS */
.companies-news-page {
  --cn-ink: #132238;
  --cn-muted: #64748b;
  --cn-soft: #94a3b8;
  --cn-line: #e4e9f0;
  --cn-line-soft: #eef2f6;
  --cn-bg: #f6f8fb;
  background: var(--cn-bg);
  color: var(--cn-ink);
}
.companies-news-hero {
  position: relative;
  overflow: hidden;
  padding: 46px 0 28px;
  background: radial-gradient(
      circle at 88% 10%,
      rgba(45, 212, 191, 0.18),
      transparent 28%
    ),
    radial-gradient(circle at 8% 95%, rgba(56, 189, 248, 0.1), transparent 30%),
    linear-gradient(135deg, #032d49, #075985 58%, #0d6f69);
  color: #fff;
}
.companies-news-hero::before {
  content: '';
  position: absolute;
  width: 520px;
  height: 520px;
  right: -300px;
  top: -360px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 50%;
}
.companies-news-hero-orb {
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.045);
  border-radius: 50%;
  pointer-events: none;
}
.companies-news-hero-orb-one {
  width: 210px;
  height: 210px;
  right: 14%;
  bottom: -150px;
}
.companies-news-hero-orb-two {
  width: 310px;
  height: 310px;
  right: 8%;
  bottom: -220px;
}
.companies-news-hero-layout {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 520px);
  align-items: center;
  gap: 42px;
}
.companies-news-hero-copy {
  max-width: 650px;
}
.companies-news-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 11px;
  color: #8cecdf;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.8px;
}
.companies-news-eyebrow-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #5eead4;
}
.companies-news-hero h1 {
  margin: 0;
  font-family: Poppins, Inter, sans-serif;
  font-size: clamp(36px, 4.5vw, 55px);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -1.8px;
}
.companies-news-hero h1 span {
  color: #8cecdf;
}
.companies-news-hero-copy > p {
  max-width: 570px;
  margin: 14px 0 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 13px;
  line-height: 1.65;
}
.companies-news-controls {
  padding: 17px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.065);
  box-shadow: 0 16px 35px rgba(0, 0, 0, 0.12);
  backdrop-filter: blur(12px);
}
.companies-news-control-label {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 8px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}
.companies-news-control-label i {
  color: #7ff3df;
}
.companies-news-search-box input {
  width: 100%;
  height: 50px;
  box-sizing: border-box;
  padding: 0 15px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 10px;
  outline: 0;
  background: #fff;
  color: var(--cn-ink);
  font-size: 13px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.13);
}
.companies-news-control-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  margin-top: 8px;
}
.companies-news-filter,
.companies-news-period {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  height: 38px;
  padding: 0 10px;
  box-sizing: border-box;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.07);
  color: rgba(255, 255, 255, 0.7);
  font-size: 9px;
}
.companies-news-filter i,
.companies-news-period i {
  color: #7ff3df;
}
.companies-news-filter select {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: #fff;
  font-size: 9px;
  font-weight: 700;
}
.companies-news-filter select option {
  color: #132238;
  background: #fff;
}
.companies-news-stats {
  position: relative;
  z-index: 2;
  display: flex;
  max-width: 680px;
  margin: 20px auto 0;
  padding: 7px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.045);
}
.companies-news-stat {
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: center;
  gap: 7px;
}
.companies-news-stat-icon {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.09);
  color: #8cecdf;
}
.companies-news-stat strong {
  display: block;
  color: #fff;
  font-size: 11px;
}
.companies-news-stat div span {
  display: block;
  margin-top: 2px;
  color: rgba(255, 255, 255, 0.48);
  font-size: 7px;
  white-space: nowrap;
}
.companies-news-content {
  padding: 5px 0 15px;
  background: var(--cn-bg);
}
.companies-news-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 17px;
}
.companies-news-section-kicker {
  display: block;
  margin-bottom: 4px;
  color: #0f766e;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 1.7px;
}
.companies-news-section-head h2 {
  margin: 0;
  font-family: Poppins, Inter, sans-serif;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.2;
}
.companies-news-section-head p {
  margin: 4px 0 0;
  color: var(--cn-muted);
  font-size: 10px;
}
.companies-news-results {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 10px;
  border: 1px solid var(--cn-line);
  border-radius: 8px;
  background: #fff;
  color: var(--cn-muted);
  font-size: 8px;
  font-weight: 700;
}
.companies-news-results-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #14b8a6;
}
.companies-news-companies {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.companies-news-company {
  --company-color: #075985;
  --company-soft: #e0f2fe;
  width: 100%;
  box-sizing: border-box;
  border: 1px solid var(--cn-line);
  border-radius: 13px;
  background: #fff;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(15, 23, 42, 0.045);
}
.companies-news-company:nth-child(6n + 2) {
  --company-color: #0f766e;
  --company-soft: #ccfbf1;
}
.companies-news-company:nth-child(6n + 3) {
  --company-color: #6d28d9;
  --company-soft: #ede9fe;
}
.companies-news-company:nth-child(6n + 4) {
  --company-color: #c2410c;
  --company-soft: #ffedd5;
}
.companies-news-company:nth-child(6n + 5) {
  --company-color: #15803d;
  --company-soft: #dcfce7;
}
.companies-news-company:nth-child(6n + 6) {
  --company-color: #be123c;
  --company-soft: #ffe4e6;
}
.companies-news-company-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 13px 15px 11px;
  border-top: 3px solid var(--company-color);
  border-bottom: 1px solid var(--cn-line-soft);
  background: linear-gradient(90deg, var(--company-soft), #fff 68%);
}
.companies-news-company-identity {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.companies-news-company-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  border-radius: 10px;
  background: var(--company-soft);
  color: var(--company-color);
}
.companies-news-company-title {
  min-width: 0;
}
.companies-news-company-name-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
}
.companies-news-company-name {
  margin: 0;
  font-family: Poppins, Inter, sans-serif;
  font-size: 19px;
  color: var(--cn-ink);
}
.companies-news-company-sector {
  display: inline-flex;
  padding: 4px 7px;
  border-radius: 5px;
  background: var(--company-soft);
  color: var(--company-color);
  font-size: 8px;
  font-weight: 800;
  text-transform: uppercase;
}
.companies-news-company-description {
  max-width: 900px;
  margin: 4px 0 0;
  color: var(--cn-muted);
  font-size: 11px;
  line-height: 1.45;
}
.companies-news-company-count {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 38px;
  flex: 0 0 42px;
  border: 1px solid var(--company-color);
  border-radius: 8px;
  background: var(--company-soft);
  color: var(--company-color);
}
.companies-news-company-count strong {
  font-size: 13px;
  line-height: 1;
}
.companies-news-company-count span {
  margin-top: 3px;
  font-size: 6px;
  font-weight: 800;
}
.companies-news-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  align-items: start;
  padding: 10px;
}
.companies-news-card {
  min-width: 0;
  height: auto;
  min-height: 0;
  box-sizing: border-box;
  padding: 11px 12px 12px;
  border: 1px solid var(--cn-line);
  border-left: 3px solid var(--company-color);
  border-radius: 9px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.025);
}
.companies-news-card:hover {
  border-color: var(--company-color);
  box-shadow: 0 7px 16px rgba(15, 23, 42, 0.07);
  transform: translateY(-2px);
}
.companies-news-card-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 7px;
}
.companies-news-number {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  border-radius: 6px;
  background: var(--company-soft);
  color: var(--company-color);
  font-size: 8px;
  font-weight: 800;
}
.companies-news-meta {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 7px;
  min-width: 0;
}
.companies-news-source {
  max-width: 170px;
  overflow: hidden;
  color: var(--company-color);
  font-size: 12px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.companies-news-date {
  color: var(--cn-soft);
  font-size: 10px;
}
.companies-news-card-headline {
  margin: 0;
  color: var(--cn-ink);
  font-family: Poppins, Inter, sans-serif;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.42;
}
.companies-news-card-description {
  margin: 7px 0 0;
  color: var(--cn-muted);
  font-size: 14px;
  line-height: 1.58;
}
.companies-news-read-more {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 9px;
  color: var(--company-color);
  font-size: 9px;
  font-weight: 800;
  text-decoration: none;
}
.companies-news-read-more:hover {
  text-decoration: underline;
}
.companies-news-state {
  padding: 45px 20px;
  border: 1px solid var(--cn-line);
  border-radius: 11px;
  background: #fff;
  text-align: center;
}
.companies-news-state[hidden] {
  display: none !important;
}
.companies-news-state h3 {
  margin: 0 0 5px;
  font-size: 17px;
}
.companies-news-state p {
  margin: 0;
  color: var(--cn-muted);
  font-size: 10px;
}
.companies-news-state-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin: 0 auto 11px;
  border-radius: 10px;
  background: #e0f2fe;
  color: #075985;
}
.news-loading-spinner {
  width: 30px;
  height: 30px;
  margin: 0 auto 12px;
  border: 3px solid #e2e8f0;
  border-top-color: #0f766e;
  border-radius: 50%;
  animation: companyNewsSpin 0.75s linear infinite;
}
@keyframes companyNewsSpin {
  to {
    transform: rotate(360deg);
  }
}
.companies-news-note {
  display: flex;
  gap: 8px;
  margin-top: 17px;
  padding: 11px 13px;
  border: 1px solid #dbeafe;
  border-radius: 8px;
  background: #f8fbff;
  color: var(--cn-muted);
  font-size: 9px;
  line-height: 1.6;
}
.companies-news-note i {
  color: #075985;
}
.companies-news-note p {
  margin: 0;
}
@media (max-width: 900px) {
  .companies-news-hero-layout {
    grid-template-columns: 1fr;
    gap: 22px;
  }
  .companies-news-controls {
    max-width: 680px;
    width: 100%;
    margin: auto;
    box-sizing: border-box;
  }
}
@media (max-width: 700px) {
  .companies-news-hero {
    padding: 36px 0 25px;
  }
  .companies-news-hero h1 {
    font-size: 34px;
  }
  .companies-news-hero-copy > p {
    font-size: 11px;
  }
  .companies-news-control-row {
    grid-template-columns: 1fr;
  }
  .companies-news-period {
    justify-content: center;
  }
  .companies-news-section-head {
    align-items: stretch;
    flex-direction: column;
    gap: 10px;
  }
  .companies-news-company-name {
    font-size: 17px;
  }
  .companies-news-grid {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 8px;
  }
  .companies-news-card-headline {
    font-size: 18px;
  }
  .companies-news-card-description {
    font-size: 14px;
  }
}
@media (max-width: 480px) {
  .companies-news-hero {
    padding: 31px 0 23px;
  }
  .companies-news-hero h1 {
    font-size: 29px;
  }
  .companies-news-company-header {
    padding: 12px;
  }
  .companies-news-company-icon {
    width: 34px;
    height: 34px;
    flex-basis: 34px;
  }
  .companies-news-company-name {
    font-size: 15px;
  }
}
