/*
Theme Name: EZN Theme
Theme URI: https://eznjestnajpiekniejszy.matma6.net
Author: Agin
Description: WordPress theme for Elektroniczne Zakłady Naukowe
Version: 1.1
Template: 
*/

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --color-dark: #021229;
  --color-accent: oklch(72.347% 0.12223 194.829);
  --color-accent-dark: oklch(50.347% 0.12223 194.829);
  --color-light: #f7f9fc;
  --card-cut-shape: polygon(0 0,
      calc(100% - 32px) 0,
      100% 32px,
      100% 100%,
      32px 100%,
      0 calc(100% - 32px));
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
    Ubuntu, Cantarell, sans-serif;
  line-height: 1.6;
  color: #333;
  min-height: 100vh;
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.max-w-container {
  max-width: 1200px;
}

.mx-auto {
  margin-left: auto;
  margin-right: auto;
}

.px-5 {
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  padding: 1rem 0;
  background: transparent;
  box-shadow: none;
  transition: all 0.3s;
}

.site-header.scrolled {
  background: rgba(255, 255, 255, 1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.home .site-header {
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.4), transparent);
  box-shadow: none;
}

.home .site-header.scrolled {
  background: rgba(255, 255, 255, 1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.site-header.menu-open {
  background: rgba(255, 255, 255, 1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.admin-bar .site-header {
  top: 32px;
}

.site-header .flex {
  display: flex;
}

.site-header .items-center {
  align-items: center;
}

.site-header .gap-10 {
  gap: 2.5rem;
}

.site-branding {
  display: flex;
  align-items: center;
  padding-top: 15px;
}

.site-logo {
  height: 64px;
  width: auto;
  max-width: 200px;
}

.site-logo,
.logo-link svg,
.logo-link svg * {
  fill: var(--color-accent);
  transition: fill 0.3s;
}

.home .site-header .site-logo,
.home .site-header .logo-link svg,
.home .site-header .logo-link svg * {
  fill: #ffffff;
}

.home .site-header.scrolled .site-logo,
.home .site-header.scrolled .logo-link svg,
.home .site-header.scrolled .logo-link svg *,
.site-header.menu-open .site-logo,
.site-header.menu-open .logo-link svg,
.site-header.menu-open .logo-link svg * {
  fill: var(--color-accent);
}

.main-navigation {
  margin-left: auto;
  padding-left: 1.25rem;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 1.75rem;
  align-items: center;
}

.nav-menu>li {
  position: relative;
}

.nav-menu a {
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--color-dark);
  transition: color 0.3s;
  position: relative;
  display: block;
  padding: 0.5rem 0;
}

.home .site-header .nav-menu a {
  color: #ffffff;
}

.home .site-header.scrolled .nav-menu a {
  color: var(--color-dark);
}

.nav-menu a:hover {
  color: var(--color-accent);
}

.nav-menu>li>a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0.125rem;
  width: 100%;
  height: 2px;
  background: var(--color-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s;
}

.news-card {
  position: relative;
  background: #fdfefe;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  isolation: isolate;
  min-height: 100%;
  border: 1px solid #dde5f3;
  border-radius: 16px;
  box-shadow: none;
  transition: transform 0.35s ease, border-color 0.35s ease;
}

.news-card-wrapper {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
  color: inherit;
}

.news-card:hover {
  transform: translateY(-8px);
  border-color: rgba(62, 196, 255, 0.8);
}

/* stylelint-disable property-no-unknown */
@supports (corner-shape: bevel) {
  .news-card {
    border-radius: 32px;
    corner-shape: square bevel square bevel;
  }
}

/* stylelint-enable property-no-unknown */

.news-card-figure {
  margin: 0;
}

.news-card-image {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #dfe8f7, #f7fbff);
}

.news-card-image img {
  position: relative;
  object-fit: cover;
  aspect-ratio: 16 / 9;
  height: 180px;
  display: block;
  transition: all 0.3s ease;
}

.news-card-image img::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg,
      rgba(2, 18, 41, 0.05),
      rgba(62, 196, 255, 0.25));
  opacity: 0;
  transition: opacity 0.35s ease;
}

/* .news-card:hover .news-card-image img {
  transform: scale(1.05);
} */

.news-card:hover .news-card-image::after {
  opacity: 1;
}

.news-card-placeholder {
  display: block;
  width: 100%;
  height: 100%;
  background: repeating-linear-gradient(135deg,
      #e5edf7 0 12px,
      #f4f7fb 12px 24px);
}

.news-card-content {
  padding: 1.85rem 2rem 2.1rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  gap: 0.75rem;
  position: relative;
  z-index: 2;
}

.news-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-size: 0.875rem;
  color: #5f6c84;
}

.news-card-title {
  font-size: 1.35rem;
  line-height: 1.3;
  color: var(--color-dark);
  transition: color 0.3s;
}

.news-card-wrapper:hover .news-card-title {
  color: var(--color-accent);
}

.news-card-excerpt {
  color: #4b5563;
  font-size: 0.95rem;
  flex-grow: 1;
}

.news-card-footer {
  display: flex;
  justify-content: flex-start;
  align-items: center;
}

.news-card-link {
  align-self: flex-start;
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  color: var(--color-accent);
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  gap: 0.35rem;
  align-items: center;
  padding-bottom: 0.1rem;
  border-bottom: 1px solid transparent;
  cursor: pointer;
}

.news-card-link::after {
  content: ">";
  transition: transform 0.3s;
}

.news-card-wrapper:hover .news-card-link::after {
  transform: translateX(4px);
}

.news-card-wrapper:hover .news-card-link {
  border-color: currentColor;
}

.news-card-category {
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  background: rgba(62, 196, 255, 0.12);
  color: var(--color-accent);
  font-weight: 600;
  font-size: 0.75rem;
}

.news-card-date {
  font-weight: 500;
}

.nav-menu>li>a:hover::after {
  transform: scaleX(1);
}

.nav-menu .sub-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  max-height: calc(100vh - 120px);
  overflow-y: auto;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  border-radius: 0.5rem;
  padding: 0.5rem 0;
  list-style: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s;
  z-index: 100;
}

.nav-menu>li:last-child .sub-menu,
.nav-menu>li:nth-last-child(2) .sub-menu,
.nav-menu>li:nth-last-child(3) .sub-menu {
  left: auto;
  right: 0;
}

.nav-menu .sub-menu::-webkit-scrollbar {
  width: 6px;
}

.nav-menu .sub-menu::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 0.5rem;
}

.nav-menu .sub-menu::-webkit-scrollbar-thumb {
  background: var(--color-accent);
  border-radius: 0.5rem;
}

.nav-menu .sub-menu::-webkit-scrollbar-thumb:hover {
  background: var(--color-accent-dark);
}

.nav-menu>li:hover>.sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-menu .sub-menu li {
  padding: 0;
}

.nav-menu .sub-menu a {
  color: var(--color-dark) !important;
  padding: 0.625rem 1.25rem;
  font-size: 0.8125rem;
  white-space: nowrap;
}

.nav-menu .sub-menu a:hover {
  background: var(--color-light);
  color: var(--color-accent) !important;
}

/* Article page */
.article-page {
  padding-top: 7.5rem;
  padding-bottom: 5rem;
  background: var(--color-light);
}

.article-entry {
  background: #ffffff;
  border-radius: 32px;
  border: 1px solid #dde5f3;
  padding: 3rem;
  box-shadow: 0 25px 60px rgba(2, 18, 41, 0.04);
}

.article-header {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-bottom: 2.5rem;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  align-items: center;
  font-size: 0.95rem;
  color: #5f6c84;
}

.article-category {
  padding: 0.25rem 0.85rem;
  border-radius: 999px;
  background: rgba(62, 196, 255, 0.12);
  color: var(--color-accent);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.article-reading-time {
  color: var(--color-dark);
  font-weight: 600;
}

.article-title {
  font-size: clamp(2.25rem, 3vw, 3.5rem);
  line-height: 1.15;
  color: var(--color-dark);
}

.article-author {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.article-author img {
  border-radius: 50%;
  width: 64px;
  height: 64px;
  border: 3px solid rgba(62, 196, 255, 0.25);
}

.article-author-label {
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #5f6c84;
}

.article-author-name {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--color-dark);
}

.article-featured-image {
  margin: 2rem 0 2.5rem;
  border-radius: 32px;
  overflow: hidden;
  border: 1px solid #dde5f3;
}

.article-featured-image img {
  width: 100%;
  display: block;
  object-fit: cover;
}

.article-featured-image figcaption {
  font-size: 0.85rem;
  padding: 0.85rem 1.5rem;
  color: #5f6c84;
  background: #f4f7fb;
}

.article-content {
  font-size: 1.05rem;
  color: #2f394a;
  line-height: 1.8;
}

.article-content>*+* {
  margin-top: 1.35rem;
}

.article-content h2,
.article-content h3,
.article-content h4 {
  color: var(--color-dark);
  margin-top: 2rem;
  line-height: 1.3;
}

.article-content ul,
.article-content ol {
  padding-left: 1.5rem;
}

.article-content img {
  max-width: 100%;
  height: auto;
  border-radius: 16px;
  margin: 1.5rem 0;
}

.article-content figure {
  margin: 1.5rem 0;
}

.article-content figure img {
  margin: 0;
}

.article-content .wp-block-image {
  margin: 1.5rem 0;
}

.article-footer {
  margin-top: 3rem;
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid #e6edf7;
  padding-top: 2rem;
}

.article-tags {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  font-weight: 600;
  color: var(--color-dark);
}

.article-tags ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
}

.article-tags a {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.35rem 0.75rem;
  background: #f4f7fb;
  border-radius: 999px;
  text-decoration: none;
  color: var(--color-dark);
  font-size: 0.85rem;
}

.article-tags a:hover {
  background: rgba(62, 196, 255, 0.15);
  color: var(--color-accent);
}

.article-share {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-weight: 600;
}

.article-share-links {
  display: flex;
  gap: 0.75rem;
}

.article-share-links a {
  text-decoration: none;
  color: var(--color-accent);
  font-weight: 600;
}

.article-share-links a:hover {
  text-decoration: underline;
}

.article-navigation {
  margin-top: 3.5rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.article-navigation-item {
  display: block;
  padding: 1.5rem;
  border-radius: 24px;
  border: 1px solid #dde5f3;
  background: #ffffff;
  text-decoration: none;
  transition: all 0.3s ease;
}

.article-navigation-item:hover {
  border-color: var(--color-accent);
  background: var(--color-light);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.article-navigation-item p {
  text-decoration: none;
  color: var(--color-dark);
  font-weight: 600;
  margin: 0;
}

.article-navigation-item:hover p {
  color: var(--color-accent);
}

.article-navigation .nav-label {
  display: block;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #5f6c84;
  margin-bottom: 0.35rem;
}

.article-related {
  margin-top: 4rem;
}

.article-related-header {
  margin-bottom: 1.75rem;
}

.article-comments {
  margin-top: 4rem;
  padding: 3rem;
  background: #ffffff;
  border-radius: 32px;
  border: 1px solid #dde5f3;
}

@media (max-width: 768px) {

  .article-entry,
  .article-comments {
    padding: 2rem;
  }

  .article-featured-image {
    margin: 1.5rem 0;
  }

  .article-footer {
    flex-direction: column;
    align-items: flex-start;
  }
}

.nav-menu .sub-menu a:hover {
  background: var(--color-light);
  color: var(--color-accent);
}

.search-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  cursor: pointer;
  margin-left: 0.75rem;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  transition: all 0.3s;
  color: var(--color-dark);
}

.home .site-header .search-toggle {
  color: #ffffff;
}

.home .site-header.scrolled .search-toggle {
  color: var(--color-dark);
}

.site-header.menu-open .search-toggle,
.home .site-header.menu-open .search-toggle {
  color: var(--color-dark);
}

.site-header.menu-open .search-toggle svg,
.home .site-header.menu-open .search-toggle svg {
  stroke: currentColor;
}

.search-toggle:hover {
  background: rgba(62, 196, 255, 0.1);
  color: var(--color-accent);
}

.search-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(2, 18, 41, 0.95);
  backdrop-filter: blur(10px);
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.search-overlay.active {
  opacity: 1;
  visibility: visible;
}

.search-overlay-content {
  position: relative;
  width: 90%;
  max-width: 700px;
  transform: translateY(20px);
  transition: transform 0.3s ease;
}

.search-overlay.active .search-overlay-content {
  transform: translateY(0);
}

.search-close {
  position: absolute;
  top: -60px;
  right: 0;
  background: none;
  border: none;
  cursor: pointer;
  color: #ffffff;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.3s;
  z-index: 2;
}

.site-header.menu-open~.search-overlay .search-close {
  color: var(--color-dark);
}

.site-header.menu-open~.search-overlay .search-close:hover {
  background: rgba(0, 0, 0, 0.08);
}

.search-close:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: rotate(90deg);
}

.search-form {
  display: flex;
  gap: 0.5rem;
  background: #ffffff;
  border-radius: 50px;
  padding: 0.5rem;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.search-field {
  flex: 1;
  border: none;
  background: none;
  padding: 0.75rem 1.5rem;
  font-size: 1.125rem;
  color: var(--color-dark);
  outline: none;
}

.search-field::placeholder {
  color: #a0aec0;
}

.search-submit {
  background: var(--color-accent);
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s;
  color: #ffffff;
  flex-shrink: 0;
}

.search-submit:hover {
  background: var(--color-accent-dark);
  transform: scale(1.05);
}

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  margin-left: auto;
  width: 30px;
  height: 30px;
  position: relative;
}

.menu-icon,
.menu-icon::before,
.menu-icon::after {
  display: block;
  width: 25px;
  height: 2px;
  background: #ffffff;
  position: absolute;
  transition: all 0.3s;
}

.menu-icon,
.menu-icon::before,
.menu-icon::after {
  background: var(--color-dark);
}

.home .site-header .menu-icon,
.home .site-header .menu-icon::before,
.home .site-header .menu-icon::after {
  background: #ffffff;
}

.home .site-header.scrolled .menu-icon,
.home .site-header.scrolled .menu-icon::before,
.home .site-header.scrolled .menu-icon::after,
.site-header.menu-open .menu-icon,
.site-header.menu-open .menu-icon::before,
.site-header.menu-open .menu-icon::after {
  background: var(--color-dark);
}

.menu-icon {
  top: 50%;
  transform: translateY(-50%);
}

.menu-icon::before {
  content: "";
  top: -8px;
}

.menu-icon::after {
  content: "";
  top: 8px;
}

.mobile-menu-toggle.active .menu-icon {
  background: transparent;
}

.mobile-menu-toggle.active .menu-icon::before {
  top: 0;
  transform: rotate(45deg);
}

.mobile-menu-toggle.active .menu-icon::after {
  top: 0;
  transform: rotate(-45deg);
}

.mobile-menu {
  display: none;
}

@media (max-width: 768px) {
  .site-header .flex {
    gap: 0.25rem;
  }

  .site-branding {
    order: 1;
    margin-right: auto;
  }

  .main-navigation {
    display: none;
  }

  .search-toggle {
    margin-left: 0;
    margin-right: 0.4rem;
    order: 2;
  }

  .mobile-menu-toggle {
    display: block;
    margin-left: 0;
    margin-right: 0.1rem;
    order: 3;
  }

  .search-overlay-content {
    width: 95%;
  }

  .search-field {
    font-size: 1rem;
    padding: 0.5rem 1rem;
  }

  .search-submit {
    width: 45px;
    height: 45px;
  }

  .mobile-menu.active {
    display: block;
    margin-top: 1rem;
    padding-top: 1rem;
    padding-bottom: 1rem;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    max-height: calc(100vh - 120px);
    overflow-y: auto;
  }

  .home .site-header .mobile-menu.active {
    border-top-color: rgba(255, 255, 255, 0.2);
  }

  .home .site-header.scrolled .mobile-menu.active,
  .site-header.menu-open .mobile-menu.active {
    border-top-color: rgba(0, 0, 0, 0.1);
  }

  .mobile-menu.active::-webkit-scrollbar {
    width: 4px;
  }

  .mobile-menu.active::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
  }

  .mobile-menu.active::-webkit-scrollbar-thumb {
    background: var(--color-accent);
    border-radius: 2px;
  }

  .mobile-menu>ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0;
  }

  .mobile-menu li {
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  }

  .home .site-header .mobile-menu li {
    border-bottom-color: rgba(255, 255, 255, 0.1);
  }

  .home .site-header.scrolled .mobile-menu li,
  .site-header.menu-open .mobile-menu li {
    border-bottom-color: rgba(0, 0, 0, 0.1);
  }

  .mobile-menu a {
    color: var(--color-dark);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    display: block;
    padding: 0.75rem 0;
  }

  .home .site-header .mobile-menu a {
    color: #ffffff;
  }

  .home .site-header.scrolled .mobile-menu a,
  .site-header.menu-open .mobile-menu a {
    color: var(--color-dark);
  }

  .mobile-menu .sub-menu {
    list-style: none;
    padding-left: 1rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }

  .mobile-menu .sub-menu.active {
    max-height: 400px;
    overflow-y: auto;
  }

  .mobile-menu .sub-menu::-webkit-scrollbar {
    width: 4px;
  }

  .mobile-menu .sub-menu::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.1);
  }

  .mobile-menu .sub-menu::-webkit-scrollbar-thumb {
    background: var(--color-accent);
    border-radius: 2px;
  }

  .mobile-menu .sub-menu a {
    font-size: 0.8125rem;
    padding: 0.5rem 0;
    opacity: 0.9;
  }

  .mobile-menu .menu-item-has-children>a {
    position: relative;
    padding-right: 2rem;
  }

  .mobile-menu .menu-item-has-children>a::after {
    content: "+";
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.25rem;
    transition: transform 0.3s;
  }

  .mobile-menu .menu-item-has-children.active>a::after {
    transform: translateY(-50%) rotate(45deg);
  }
}

.hero-section {
  position: relative;
  width: 100%;
  height: 600px;
  overflow: hidden;
}

.hero-section img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right,
      rgba(0, 0, 0, 0.6),
      rgba(0, 0, 0, 0.4),
      transparent);
}

.hero-content {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  z-index: 10;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: stretch;
  padding: 2rem 0;
}

.hero-text {
  width: 100%;
  max-width: 1200px;
  padding: 0 1.25rem;
  margin: 0 auto;
}

.hero-text p,
.hero-text h1 {
  max-width: 500px;
}

.hero-subtitle {
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 1rem;
}

.hero-title {
  font-size: 3.75rem;
  line-height: 1.2;
  font-weight: bold;
  color: #ffffff;
  margin-bottom: 1.5rem;
}

@media (max-width: 768px) {
  .hero-section {
    height: 400px;
  }

  .hero-content {
    padding: 2rem 1.25rem;
  }

  .hero-title {
    font-size: 2.25rem;
  }
}

.aktualnosci-section {
  position: relative;
  padding: 5rem 0 6rem;
  background: linear-gradient(180deg, #f3f8ff 0%, #ffffff 75%);
  overflow: hidden;
}

.circuit-pattern {
  position: absolute;
  left: 0;
  top: 25%;
  width: 4rem;
  height: 24rem;
  pointer-events: none;
}

.aktualnosci-header {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 3rem;
}

.section-kicker {
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-size: 0.85rem;
  color: #6b7280;
}

.aktualnosci-title {
  font-size: 3rem;
  font-weight: bold;
  color: var(--color-accent);
}

.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}

@media (max-width: 768px) {
  .aktualnosci-section {
    padding: 3rem 0 4rem;
  }

  .posts-grid {
    grid-template-columns: 1fr;
  }

  .aktualnosci-title {
    font-size: 2.25rem;
  }

  .aktualnosci-header {
    text-align: center;
  }
}

.aktualnosci-actions {
  text-align: center;
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.75rem;
  border-radius: 999px;
  border: 1px solid rgba(2, 18, 41, 0.25);
  color: var(--color-dark);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  transition: all 0.3s;
}

.btn-outline:hover {
  color: #ffffff;
  background: var(--color-dark);
  border-color: transparent;
}

.no-posts {
  text-align: center;
  padding: 4rem 0;
  font-size: 1.25rem;
  color: #666;
}

.about-section {
  background: #ffffff;
  padding: 5rem 0;
  position: relative;
  overflow: hidden;
}

.about-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.about-content {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.about-header {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.about-title {
  font-size: 3rem;
  font-weight: bold;
  color: var(--color-accent);
  margin-bottom: 1rem;
}

.about-text {
  font-size: 1.0625rem;
  line-height: 1.7;
  color: #374151;
}

.about-text p {
  margin-bottom: 1.25rem;
}

.about-text p:last-child {
  margin-bottom: 0;
}

.about-awards {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.award-box {
  background: linear-gradient(135deg, #f3f8ff 0%, #ffffff 100%);
  border: 1px solid #dde5f3;
  border-radius: 1rem;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.award-box-large {
  padding: 2.5rem;
}

.award-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-dark);
  margin: 0;
}

.award-content {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.award-box-vertical .award-content {
  flex-direction: column;
  align-items: stretch;
}

.award-images {
  flex-shrink: 0;
  display: flex;
  justify-content: center;
  align-items: center;
}

.award-images img {
  max-height: 150px;
  width: auto;
  object-fit: contain;
}

.award-placeholder img {
  max-height: 150px;
  background: rgba(221, 229, 243, 0.3);
  border-radius: 0.5rem;
  padding: 1rem;
}

.award-text {
  font-size: 0.9375rem;
  line-height: 1.7;
  color: #4b5563;
  flex: 1;
}

.about-history {
  background: var(--color-light);
  border-radius: 1rem;
  padding: 2rem;
  border: 1px solid #dde5f3;
}

.about-history h3 {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--color-dark);
  margin-bottom: 1rem;
}

.about-history p {
  font-size: 0.9375rem;
  line-height: 1.7;
  color: #4b5563;
  margin-bottom: 1rem;
}

.about-history p:last-child {
  margin-bottom: 0;
}

@media (max-width: 1024px) {
  .about-container {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .award-content {
    flex-direction: column;
    text-align: center;
  }

  .award-images {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .about-section {
    padding: 3rem 0;
  }

  .about-title {
    font-size: 2.25rem;
    text-align: center;
  }

  .about-header {
    text-align: center;
  }

  .award-box-large {
    padding: 1.5rem;
  }

  .award-title {
    font-size: 1.25rem;
  }

  .award-images img {
    max-height: 120px;
  }

  .award-text {
    font-size: 0.875rem;
  }
}

.contact-section {
  background: var(--color-light);
  color: var(--color-dark);
  padding: 6rem 0;
  border-radius: 32px 32px 0 0;
  margin-top: -5rem;
  position: relative;
  z-index: 5;
  box-shadow: 0 -20px 60px rgba(7, 26, 59, 0.25);
}

.contact-content {
  max-width: 48rem;
  margin: 0 auto;
  text-align: center;
}

.contact-content h2 {
  font-size: 3rem;
  font-weight: bold;
  margin-bottom: 1.5rem;
  color: #0e1d3b;
}

.contact-content p {
  font-size: 1.125rem;
  color: #374151;
  margin-bottom: 2rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  text-align: left;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group label {
  font-size: 0.875rem;
  font-weight: 600;
  color: #374151;
  margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  border: 1px solid #d1d5db;
  outline: none;
  transition: all 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(62, 196, 255, 0.2);
}

.form-group textarea {
  resize: none;
}

.submit-button {
  width: 100%;
  background: linear-gradient(to bottom right,
      var(--color-accent),
      var(--color-accent-dark));
  color: var(--color-dark);
  border-radius: 9999px;
  font-weight: 600;
  padding: 1rem 1.75rem;
  font-size: 1rem;
  box-shadow: 0 12px 25px rgba(8, 122, 255, 0.3);
  border: none;
  cursor: pointer;
  transition: transform 0.3s;
}

.submit-button:hover {
  transform: translateY(-2px);
}

.site-footer {
  background: #041327;
  color: rgba(247, 249, 252, 0.9);
  padding: 2rem 0;
  text-align: center;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

@media (min-width: 768px) {
  .footer-content {
    flex-direction: row;
  }
}

.footer-content p {
  font-size: 0.875rem;
}

.footer-nav ul,
.footer-nav .footer-menu {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  list-style: none;
  justify-content: center;
}

.footer-nav a {
  font-size: 0.875rem;
  color: var(--color-accent);
  text-decoration: none;
  transition: color 0.3s;
}

.footer-nav a:hover {
  color: var(--color-accent-dark);
}

::-webkit-scrollbar {
  width: 14px;
}

::-webkit-scrollbar-track {
  background: #f4f7fb;
}

::-webkit-scrollbar-thumb {
  background: #c5d4e8;
  border-radius: 7px;
  border: 3px solid #f4f7fb;
}

::-webkit-scrollbar-thumb:hover {
  background: #a8bcd6;
}

/* Firefox scrollbar */
* {
  scrollbar-width: auto;
  scrollbar-color: #c5d4e8 #f4f7fb;
}

html {
  scroll-behavior: smooth;
}

.page-content,
.archive-page,
.blog-page {
  padding: 8rem 0 5rem;
  min-height: 60vh;
}

.page-header,
.archive-header,
.blog-header {
  text-align: center;
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid #e5e7eb;
}

.page-title,
.archive-title,
.blog-title {
  font-size: 3rem;
  font-weight: bold;
  color: var(--color-dark);
  margin-bottom: 1rem;
}

.archive-description {
  max-width: 48rem;
  margin: 1.5rem auto 0;
  font-size: 1.125rem;
  color: #4b5563;
  line-height: 1.7;
}

.search-page-form {
  max-width: 600px;
  margin: 2rem auto;
}

.inline-search-form {
  display: flex;
  gap: 0.5rem;
  background: #ffffff;
  border-radius: 50px;
  padding: 0.5rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  border: 2px solid var(--color-accent);
}

.inline-search-form .search-field {
  flex: 1;
  border: none;
  background: none;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  color: var(--color-dark);
  outline: none;
}

.inline-search-form .search-field::placeholder {
  color: #a0aec0;
}

.inline-search-form .search-submit {
  background: var(--color-accent);
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s;
  color: #ffffff;
  flex-shrink: 0;
}

.inline-search-form .search-submit:hover {
  background: var(--color-accent-dark);
  transform: scale(1.05);
}

.search-results-count {
  margin-top: 1rem;
  font-size: 0.95rem;
  color: #6b7280;
  font-weight: 500;
}

.no-results {
  text-align: center;
  padding: 4rem 2rem;
  max-width: 600px;
  margin: 0 auto;
}

.no-results-message {
  font-size: 1.25rem;
  color: var(--color-dark);
  margin-bottom: 1rem;
  font-weight: 600;
}

.no-results-suggestion {
  font-size: 1rem;
  color: #6b7280;
  line-height: 1.6;
}

.page-entry {
  max-width: 56rem;
  margin: 0 auto;
}

.page-featured-image {
  margin: 2rem 0 3rem;
  border-radius: 1rem;
  overflow: hidden;
}

.page-featured-image img {
  width: 100%;
  height: auto;
  display: block;
}

.page-featured-image figcaption {
  padding: 1rem;
  background: var(--color-light);
  font-size: 0.875rem;
  color: #6b7280;
  text-align: center;
}

.page-content-wrapper {
  font-size: 1.0625rem;
  line-height: 1.8;
  color: #374151;
}

.page-content-wrapper h2,
.page-content-wrapper h3,
.page-content-wrapper h4 {
  color: var(--color-dark);
  font-weight: 700;
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.page-content-wrapper h2 {
  font-size: 2rem;
}

.page-content-wrapper h3 {
  font-size: 1.5rem;
}

.page-content-wrapper h4 {
  font-size: 1.25rem;
}

.page-content-wrapper p {
  margin-bottom: 1.25rem;
}

.page-content-wrapper ul,
.page-content-wrapper ol {
  margin-bottom: 1.25rem;
  padding-left: 2rem;
}

.page-content-wrapper li {
  margin-bottom: 0.5rem;
}

.page-content-wrapper a {
  color: var(--color-accent);
  text-decoration: underline;
  transition: color 0.3s;
}

.page-content-wrapper a:hover {
  color: var(--color-accent-dark);
}

.page-content-wrapper img {
  max-width: 100%;
  height: auto;
  border-radius: 0.5rem;
  margin: 1.5rem 0;
}

.pagination {
  margin-top: 4rem;
  text-align: center;
}

.pagination ul {
  display: inline-flex;
  gap: 0.5rem;
  list-style: none;
  flex-wrap: wrap;
  justify-content: center;
}

.pagination a,
.pagination .current {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.5rem;
  height: 2.5rem;
  padding: 0 0.75rem;
  border-radius: 0.5rem;
  font-weight: 500;
  transition: all 0.3s;
}

.pagination a {
  background: #ffffff;
  color: var(--color-dark);
  border: 1px solid #e5e7eb;
  text-decoration: none;
}

.pagination a:hover {
  background: var(--color-accent);
  color: #ffffff;
  border-color: var(--color-accent);
  text-decoration: none;
}

.pagination .current {
  background: var(--color-accent);
  color: #ffffff;
  border: 1px solid var(--color-accent);
}

@media (max-width: 768px) {

  .page-content,
  .archive-page,
  .blog-page {
    padding: 6rem 0 3rem;
  }

  .page-title,
  .archive-title,
  .blog-title {
    font-size: 2.25rem;
  }

  .page-content-wrapper {
    font-size: 1rem;
  }
}