/*
 * OffentligIT brand colours, taken from the logo (static/img/brand/logo_blue.png):
 * navy #033357, white, and grey #a5a5a5. Bootstrap's default blue is replaced
 * everywhere it shows: buttons, links, focus rings, form controls and badges.
 */
:root {
  --oit-navy: #033357;
  --oit-navy-dark: #022540;
  --oit-navy-light: #1c4a6e;
  --oit-navy-tint: #e8eef3;
  --oit-grey: #a5a5a5;
  --oit-grey-light: #f4f5f6;
  --oit-text: #1d2329;

  --bs-primary: var(--oit-navy);
  --bs-primary-rgb: 3, 51, 87;
  --bs-link-color: var(--oit-navy);
  --bs-link-hover-color: var(--oit-navy-light);
  --bs-body-color: var(--oit-text);
}

body {
  background-color: #ffffff;
  color: var(--oit-text);
}

a {
  color: var(--oit-navy);
}

a:hover,
a:focus {
  color: var(--oit-navy-light);
}

.btn-primary {
  --bs-btn-bg: var(--oit-navy);
  --bs-btn-border-color: var(--oit-navy);
  --bs-btn-hover-bg: var(--oit-navy-dark);
  --bs-btn-hover-border-color: var(--oit-navy-dark);
  --bs-btn-active-bg: var(--oit-navy-dark);
  --bs-btn-active-border-color: var(--oit-navy-dark);
  --bs-btn-disabled-bg: var(--oit-navy);
  --bs-btn-disabled-border-color: var(--oit-navy);
  --bs-btn-focus-shadow-rgb: 3, 51, 87;
}

.btn-outline-primary {
  --bs-btn-color: var(--oit-navy);
  --bs-btn-border-color: var(--oit-navy);
  --bs-btn-hover-bg: var(--oit-navy);
  --bs-btn-hover-border-color: var(--oit-navy);
  --bs-btn-active-bg: var(--oit-navy-dark);
  --bs-btn-active-border-color: var(--oit-navy-dark);
  --bs-btn-focus-shadow-rgb: 3, 51, 87;
}

.btn-light-on-navy {
  --bs-btn-color: var(--oit-navy);
  --bs-btn-bg: #ffffff;
  --bs-btn-border-color: #ffffff;
  --bs-btn-hover-color: var(--oit-navy);
  --bs-btn-hover-bg: var(--oit-navy-tint);
  --bs-btn-hover-border-color: var(--oit-navy-tint);
  --bs-btn-active-color: var(--oit-navy);
  --bs-btn-active-bg: var(--oit-navy-tint);
  --bs-btn-focus-shadow-rgb: 255, 255, 255;
  font-weight: 600;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--oit-navy-light);
  box-shadow: 0 0 0 0.25rem rgba(3, 51, 87, 0.2);
}

.text-primary {
  color: var(--oit-navy) !important;
}

.bg-primary {
  background-color: var(--oit-navy) !important;
}

.badge-oit {
  background-color: var(--oit-navy-tint);
  color: var(--oit-navy);
  font-weight: 600;
}

h1, h2, h3, .h1, .h2, .h3 {
  color: var(--oit-navy);
}

/* ---------- Front page: Bootstrap blog layout, as on BalticAnalytica's Insights page ---------- */
.oit-feature {
  background-color: var(--oit-navy);
  color: #ffffff;
  border-top: 5px solid var(--oit-navy-dark);
}

.oit-feature h1 {
  color: #ffffff;
}

.oit-feature .lead {
  color: rgba(255, 255, 255, 0.88);
}

.oit-feature a {
  color: #ffffff;
}

.oit-feature-label {
  color: var(--oit-grey);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.85rem;
  font-weight: 600;
}

.oit-blog .oit-label {
  color: var(--oit-navy);
}

.oit-blog h3,
.oit-blog h4 {
  color: var(--oit-navy);
}

.oit-feature-title {
  font-size: clamp(2rem, 1.4rem + 2vw, 3.25rem);
  font-weight: 300;
  line-height: 1.15;
}

/* Cards grow with their text; at least as tall as the thumbnail. */
@media (min-width: 768px) {
  .oit-blog .oit-card-row {
    min-height: 250px;
  }
}

.oit-thumb {
  width: 200px;
  min-height: 250px;
  align-self: stretch;
  background-color: #55595c;
  background-size: cover;
  background-position: center;
}

.oit-blog .blog-post {
  margin-bottom: 4rem;
}

.oit-blog .blog-post-title {
  font-size: 2.25rem;
  margin-bottom: 0.25rem;
}

.oit-blog .blog-post-title a {
  color: var(--oit-navy);
  text-decoration: none;
}

.oit-blog .blog-post-meta {
  margin-bottom: 1.25rem;
  color: #6c757d;
}

.oit-blog .blog-pagination {
  margin-bottom: 4rem;
}

.oit-about {
  background-color: var(--oit-navy-tint);
}

.oit-figures li {
  padding: 0.15rem 0;
}

.oit-figures strong {
  color: var(--oit-navy);
}

.oit-figures a {
  text-decoration: none;
  color: var(--oit-text);
}

/* Sidebar dashboard boxes (white panel + navy gradient stat card) */
.oit-dash-panel {
  background-color: #ffffff;
  border-radius: 0.5rem;
  box-shadow: 0 0.25rem 1rem rgba(3, 51, 87, 0.08);
  border: 1px solid #e6ebf0;
  padding: 1.5rem;
}

.oit-dash-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.oit-dash-title .bi {
  color: var(--oit-navy-light);
  margin-right: 0.35rem;
}

.oit-dash-item {
  padding: 0.5rem 0;
  border-bottom: 1px solid #eef1f4;
}

.oit-dash-item:last-child {
  border-bottom: 0;
}

.oit-dash-stats {
  position: relative;
  overflow: hidden;
  border-radius: 0.5rem;
  padding: 1.5rem;
  color: #ffffff;
  background: linear-gradient(135deg, var(--oit-navy-light) 0%, var(--oit-navy) 60%, var(--oit-navy-dark) 100%);
}

/* The two soft circles of the dashboard cards */
.oit-dash-stats::before,
.oit-dash-stats::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.07);
  pointer-events: none;
}

.oit-dash-stats::before {
  width: 220px;
  height: 220px;
  top: -90px;
  right: -70px;
}

.oit-dash-stats::after {
  width: 260px;
  height: 260px;
  bottom: -150px;
  right: -40px;
}

.oit-dash-stats-title {
  position: relative;
  color: #ffffff !important;
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.oit-dash-stat {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 0;
  color: rgba(255, 255, 255, 0.88);
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.oit-dash-stat:last-child {
  border-bottom: 0;
}

.oit-dash-stat:hover {
  color: #ffffff;
}

.oit-dash-stat strong {
  display: block;
  color: #ffffff;
  font-size: 1.75rem;
  line-height: 1.1;
}

.oit-dash-stat .bi {
  font-size: 1.5rem;
  opacity: 0.8;
}

/* ---------- Hero and stats (other pages) ---------- */
.oit-hero {
  background-color: var(--oit-navy);
  color: #ffffff;
  border-bottom: 4px solid var(--oit-grey);
}

.oit-hero h1 {
  color: #ffffff;
}

.oit-hero .lead {
  color: rgba(255, 255, 255, 0.85);
}

.oit-stat {
  border-left: 4px solid var(--oit-navy);
  background-color: var(--oit-grey-light);
}

.oit-stat .oit-stat-number {
  color: var(--oit-navy);
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.1;
}

.oit-card {
  border: 1px solid #dde2e7;
  border-top: 3px solid var(--oit-navy);
}

.oit-section-title {
  border-bottom: 2px solid var(--oit-grey);
  padding-bottom: 0.35rem;
}

/* ---------- Articles ---------- */
.oit-article {
  max-width: 44rem;
}

.oit-article .oit-lead {
  font-size: 1.2rem;
  color: #3b4650;
}

.oit-article p,
.oit-article li {
  line-height: 1.7;
}

.oit-body h2 {
  margin-top: 2rem;
}

.oit-body h3 {
  margin-top: 1.5rem;
}

.oit-body blockquote {
  border-left: 4px solid var(--oit-grey);
  padding-left: 1rem;
  color: #3b4650;
}

/* CKEditor image and table markup */
.oit-body img {
  max-width: 100%;
  height: auto;
}

.oit-body figure.image {
  margin: 1.5rem 0;
}

.oit-body figure.image-style-align-left {
  float: left;
  max-width: 50%;
  margin: 0.25rem 1.5rem 1rem 0;
}

.oit-body figure.image-style-side,
.oit-body figure.image-style-align-right {
  float: right;
  max-width: 50%;
  margin: 0.25rem 0 1rem 1.5rem;
}

.oit-body figure.image-style-align-center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.oit-body figcaption {
  font-size: 0.875rem;
  color: #5c6670;
}

.oit-body figure.table {
  overflow-x: auto;
  margin: 1.5rem 0;
}

.oit-body table {
  width: 100%;
  border-collapse: collapse;
}

.oit-body th,
.oit-body td {
  border: 1px solid #dde2e7;
  padding: 0.4rem 0.6rem;
}

.oit-body th {
  background-color: var(--oit-navy-tint);
}

.oit-body::after {
  content: "";
  display: block;
  clear: both;
}

/* ---------- Footer ---------- */
.oit-footer {
  background-color: var(--oit-navy);
  color: rgba(255, 255, 255, 0.8);
}

.oit-footer a {
  color: #ffffff;
}
