/* static/css/articles.css */

main, main * { color: #111 !important; }

.article-container {
  max-width: 900px;
  margin: 0 auto;
  width: 100%;
  background: #fff;
  border-radius: 20px;
  padding: 30px 12px 32px 12px;
  box-shadow: 0 2px 18px rgba(0,0,0,0.06);
}

.article-title .article-logo img {
  max-width: 44px;
  height: 44px;
  vertical-align: middle;
  margin-right: 10px;
}
.article-title .article-logo {
  display: block;
  margin-bottom: 8px;
}
.article-title span {
  display: block;
}

.article-container h1.display-4 span {
  display: block;
  word-wrap: break-word;
  word-break: break-word;
  white-space: normal;
}


.section-img {
  max-width: 99%;
  width: 600px;
  min-width: 220px;
  border-radius: 18px;
  margin: 22px auto 28px auto;
  display: block;
  box-shadow: 0 2px 14px rgba(0,0,0,0.10);
  transition: box-shadow 0.22s;
}
.section-img:hover {
  box-shadow: 0 4px 24px rgba(0,0,0,0.18);
}

.feature-icon {
  font-size: 2.2rem;
  color: #198754;
  vertical-align: middle;
  margin-right: .4rem;
}

.stat-card {
  background: #F8FFF8;
  border: 1px solid #e2e3e5;
  border-radius: 14px;
  padding: 14px 18px;
  margin: 18px 0;
}

.chart-placeholder {
  width: 100%;
  max-width: 500px;
  height: 210px;
  background: linear-gradient(90deg, #8ad18a44, #fff);
  border-radius: 18px;
  margin: 24px auto;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.1rem;
  color: #198754;
  font-weight: bold;
}

.chart-placeholder.responsive-chart {
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  width: 100%;
  gap: 38px;
  flex-direction: row;
}

.chart-stat {
  font-size: 2rem;
  color: #198754;
  font-weight: bold;
  display: flex;
  align-items: center;
  gap: 8px;
}

.section-colored {
  background: #f5f8fd;
  border-radius: 18px;
  padding: 18px 24px;
  margin: 30px 0;
}

.article-container table thead th {
  background-color: #198754; /* tamsiai žalias fonas */
  color: #fff !important;            /* baltas tekstas */
  text-align: center;
}


@media (max-width: 600px) {
  .chart-placeholder.responsive-chart {
    flex-direction: column;
    gap: 16px;
    padding: 20px 0;
  }
  .chart-stat {
    font-size: 1.3rem;
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .article-container { max-width: 99vw; }
  .section-img { width: 98vw; min-width: unset; }
  .article-container h1.display-4 { font-size: 1.6rem; }
  .article-title .article-logo img { max-width: 30px; margin-right: 6px; }
}

/* Lentelės patobulinimai mobilui */
.article-table-wrap .table { width: 100%; }
.article-table-wrap thead th {
  position: sticky; top: 0; z-index: 1;
}

/* Default (desktop) */
.article-title,
.article-title span {
  font-weight: 400; /* normal */
}

/* Mobile screens */
@media (max-width: 576px) {
  .article-title,
  .article-title span {
    font-weight: 700; /* bold on mobile */
  }
}

.article-container .btn-success,
.article-container .btn-success:hover,
.article-container .btn-success:focus {
  color: #fff !important;
}


