.cookie-consent {
  position: fixed;
  inset: auto 0 0 0;
  z-index: 9999;
  padding: 1rem;
  pointer-events: none;
}

.cookie-consent-panel {
  pointer-events: auto;
  max-width: 56rem;
  margin: 0 auto;
  background: #fff;
  border: 1px solid #e4e6fb;
  border-radius: 1rem;
  box-shadow: 0 20px 60px rgba(49, 58, 152, 0.18);
  padding: 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

@media (min-width: 768px) {
  .cookie-consent-panel {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.75rem;
  }
}

.cookie-consent-kicker {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #313a98;
  margin-bottom: 0.35rem;
}

.cookie-consent-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #111827;
  margin-bottom: 0.35rem;
}

.cookie-consent-text {
  font-size: 0.88rem;
  line-height: 1.55;
  color: #4b5563;
  max-width: 40rem;
}

.cookie-consent-text a {
  color: #313a98;
  font-weight: 600;
  text-decoration: underline;
}

.cookie-consent-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  flex-shrink: 0;
  width: 100%;
}

@media (min-width: 768px) {
  .cookie-consent-actions {
    width: auto;
    min-width: 15.5rem;
  }
}

.cookie-btn {
  flex: 1 1 calc(50% - 0.35rem);
  min-width: 7.5rem;
  border-radius: 0.65rem;
  padding: 0.7rem 1rem;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  border: 2px solid #313a98;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

@media (min-width: 768px) {
  .cookie-btn {
    flex: 1 1 auto;
    min-width: 7.25rem;
  }
}

.cookie-btn--reject {
  background: #fff;
  color: #313a98;
}

.cookie-btn--reject:hover {
  background: #f4f2ff;
}

.cookie-btn--accept {
  background: #313a98;
  color: #fff;
}

.cookie-btn--accept:hover {
  background: #1e245a;
  border-color: #1e245a;
}

body.cookie-banner-open {
  padding-bottom: 0;
}

.blog-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

#blog-count {
  font-size: 0.85rem;
  font-weight: 600;
  color: #6b7280;
}

#blog-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.blog-filter-btn {
  border: 1px solid #e4e6fb;
  background: #fff;
  color: #374151;
  border-radius: 9999px;
  padding: 0.4rem 0.9rem;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.blog-filter-btn:hover {
  border-color: #c7cbff;
  color: #313a98;
}

.blog-filter-btn.is-active {
  background: #313a98;
  border-color: #313a98;
  color: #fff;
}

#blog-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 2.5rem;
}

#blog-pagination.hidden {
  display: none;
}

.blog-page-nav {
  border: 1px solid #e4e6fb;
  background: #fff;
  color: #313a98;
  border-radius: 0.65rem;
  padding: 0.5rem 0.85rem;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
}

.blog-page-nav:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.blog-page-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.blog-page-btn {
  min-width: 2.25rem;
  height: 2.25rem;
  border: 1px solid #e4e6fb;
  background: #fff;
  color: #374151;
  border-radius: 0.5rem;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
}

.blog-page-btn.is-active {
  background: #313a98;
  border-color: #313a98;
  color: #fff;
}

.site-footer-unified {
  background-color: #313a98;
  color: rgba(237, 236, 255, 0.9);
}

.site-footer-unified a:hover {
  color: #fff;
}
