@import url("https://fonts.googleapis.com/css2?family=Nunito+Sans:ital,wght@0,200..1000;1,200..1000&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Ubuntu:ital,wght@0,400;0,700;1,400;1,700&display=swap");

:root {
  --color-bg: #252a2f;
  --color-surface: #1a1820;
  --color-surface-soft: #201e26;
  --color-border: #31353b;
  --color-text: #d3d6da;
  --color-text-soft: #b6b0b5;
  --color-text-strong: #f0f0f1;
  --color-link: #a9bfd8;
  --color-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Nunito Sans", "Ubuntu", sans-serif;
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--color-text-strong);
  font-family: "Nunito Sans", sans-serif;
}

a {
  color: var(--color-link);
  text-decoration: none;
}

a:hover {
  color: #d6e3f1;
}

img {
  max-width: 100%;
  height: auto;
}

.site-main {
  padding: 12px 0 80px;
}

.site-main > *:last-child {
  margin-bottom: 0;
}

.site-container,
.container,
.container-fluid {
  position: relative;
}

.blockheader {
  display: grid;
  grid-template-columns: 4fr 8fr;
  gap: 5px;
}

.navbar-expand {
  background-color: rgba(26, 24, 32, 0.97);
  box-shadow: 0 0 12px rgba(13, 13, 16, 0.45);
  min-height: 80px;

}

.logo {
  display: flex;
  align-items: center;
}

.header {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.smedia {
  display: flex;
  margin-bottom: -15px;
}

.navi {
  margin-top: 9px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.navigation {
  list-style: none;
  display: flex;
  margin: 0;
  padding: 0;
}

.navigation li {
  margin-left: 10px;
}

.navigation a {
  color: var(--color-text-soft);
}

.navigation a:hover {
  color: #d6e3f1;
}

.mobilemenu {
  display: none;
}

.demo-content-section,
.news-cards-section,
.text,
.entry-content,
.post-content {
  max-width: 900px;
  margin: 0 auto 24px;
}

.demo-content-section,
.news-cards-section,
.post-content,
.text > section,
.text > article {
  padding: 20px;
  border: 1px solid rgba(45, 48, 58, 0.75);
  background: rgba(23, 22, 29, 0.9);
  box-shadow: var(--color-shadow);
}

.demo-content-section h1,
.post-content h1,
.entry-content h1 {
  margin-top: 0;
}

.entry-content img,
.post-content img,
.demo-content-section img {
  max-width: 100%;
}

.section-title {
  margin: 0 0 20px;
  text-align: center;
}

.news-cards-grid,
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.news-card,
.card,
.activity-card {
  border-radius: 0;
  overflow: hidden;
  border: 1px solid var(--color-border);
  background: rgba(28, 30, 37, 0.95);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.news-card:hover,
.card:hover,
.activity-card:hover {
  border-color: #6b6b6b;
  transform: translateY(-2px);
}

.news-card__image,
.card-img-top,
.hero-slide {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background: #20232a;
}

.news-card__body,
.activity-card__body,
.card-body {
  padding: 16px;
}

.news-card__title,
.activity-card__title,
.card-title {
  margin: 0;
  color: #d3d6da;
  text-shadow: 2px 2px 5px #000000;
  text-align: center;
}

.news-card__text {
  color: var(--color-text-soft);
}

.news-card__link {
  display: inline-block;
  margin-top: 8px;
  color: #d6e3f1;
}

.pagination ul {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
}

.pagination a,
.pagination strong,
.page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  min-height: 42px;
  padding: 5px 14px;
  margin: 3px;
  border: 1px solid #8b8b8b;
  border-radius: 2px;
  background: rgba(23, 22, 29, 0.95);
  color: #d6e3f1;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
}

.pagination strong,
.page-numbers.current,
a.page-numbers:hover,
.pagination a:hover {
  background: rgb(75, 75, 75);
}

.list-group-item {
  background: var(--color-surface);
  border-color: var(--color-border);
  color: var(--color-text);
}

.list-group-item:hover {
  background: var(--color-surface-soft);
  color: #d6e3f1;
}

.contact-bar {
  background-color: #17161d;
}

.contact-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.search-label {
  display: block;
}


@media (max-width: 993px) {
  .navigation,
  .smedia {
    display: none;
  }

  .mobilemenu {
    display: block;
  }
}

@media (max-width: 900px) {
  .news-cards-grid,
  .cards-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .blockheader {
    grid-template-columns: 1fr auto;
    align-items: center;
  }

  .header {
    align-items: flex-end;
  }

  .news-cards-grid,
  .cards-grid {
    grid-template-columns: 1fr;
  }
}

.logo img {
  width: auto;
  height: 55px;
}

.smedia img,
.contact-link img {
  width: auto;
  height: 28px;
}

.mobilemenu img {
  width: auto;
  height: 50px;
}

.smedia .navbar-brand,
.mobilemenu,
.contact-link {
  flex: 0 0 auto;
}



.site-main {
  width: min(100% - 24px, 1320px);
  margin: 0 auto;
  padding: 12px 0 48px;
}

.demo-content-section,
.post-content,
.text,
.entry-content {
  max-width: 780px;
  margin: 0 auto;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.demo-content-section,
.post-content {
  color: var(--color-text);
}

.demo-content-section p,
.post-content p,
.text p,
.entry-content p,
.demo-content-section li,
.post-content li,
.text li,
.entry-content li {
  color: var(--color-text);
}

.news-cards-section {
  max-width: 100%;
  margin: 0 auto;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.news-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 26rem));
  justify-content: center;
  gap: 16px;
}

.news-card {
  width: min(100%, 26rem);
  margin: 0 auto;
  border-radius: 0;
  border: 1px solid var(--color-border);
  background: rgba(26, 24, 32, 0.96);
  box-shadow: none;
}

.news-card__body {
  padding: 8px 12px 12px;
}

.news-card__image {
  aspect-ratio: auto;
  min-height: 220px;
  max-height: 280px;
  object-fit: cover;
}

.news-card__title {
  min-height: 4.5em;
  overflow: hidden;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  font-size: 1.05rem;
  line-height: 1.5;
  text-align: center;
}

.news-card__title a {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-card__title a {
  color: #d3d6da;
}

.news-card__text {
  display: none;
}

.news-card__link {
  display: none;
}

.section-title {
  margin: 0 0 20px;
  color: #d3d6da;
}

.pagination {
  display: flex;
  justify-content: center;
  margin-top: 18px;
}

.pagination a,
.pagination strong,
.page-numbers {
  min-height: auto;
  min-width: auto;
  padding: 5px 10px;
}
