/* === Reset + Podstawy === */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Poppins', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: #222;
  background-color: #fff;
}

/* === Klasy narzędziowe === */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: 60px 0;
  padding-top: 140px; /* padding pod fixed nav */
}

.section-title {
  font-size: 32px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 20px;
}

.section-subtitle {
  text-align: center;
  color: #555;
  margin-bottom: 40px;
}

/* === Nawigacja (Fixed) === */
nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: #0e1d34;
  padding: 20px 0;
  color: #fff;
  z-index: 999;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

nav .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

nav .logo a {
  color: #fff;
  font-weight: bold;
  font-size: 20px;
  text-decoration: none;
}

nav ul {
  display: flex;
  list-style: none;
  gap: 20px;
}

nav ul li a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
}

nav ul li a:hover {
  color: #ffc107;
}

/* === Burger Menu === */
.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.burger div {
  width: 25px;
  height: 3px;
  background-color: white;
  border-radius: 2px;
}

/* === Styl rozwijanego menu na mobile === */
@media (max-width: 992px) {
  nav ul {
    display: none;
    flex-direction: column;
    background-color: #0e1d34;
    position: absolute;
    top: 100%;
    right: 0;
    width: 100%;
    padding: 20px;
    gap: 16px;
    z-index: 998;
  }

  nav ul.active {
    display: flex;
  }

  .burger {
    display: flex;
  }

  nav.open {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  }
}

/* --- Blog Cards --- */
.blog-cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  width: 100%;
  max-width: 1200px;
  margin-top: 2rem;
}

.blog-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 2rem;
  width: 100%;
  max-width: 360px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 340px;
  position: relative;
}

.blog-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.12);
}

.blog-card h2 {
  font-size: 1.25rem;
  margin-bottom: 0.4rem;
  line-height: 1.4;
  font-weight: 600;
}

.blog-card .blog-meta {
  font-size: 0.85rem;
  color: #888;
  margin-bottom: 1rem;
}

.blog-card p {
  font-size: 0.95rem;
  line-height: 1.5;
  flex-grow: 1;
  margin-bottom: 1.2rem;
}

.read-more {
  align-self: flex-start;
  padding: 0.5rem 1.2rem;
  background: #0d1e42;
  color: #fff;
  text-decoration: none;
  border-radius: 8px;
  font-size: 0.9rem;
  transition: background 0.2s ease;
}

.read-more:hover {
  background: #1e2d60;
}

/* === Stopka === */
footer {
  background-color: #0e1d34;
  color: #fff;
  padding: 40px 0;
  text-align: center;
  border-top: 1px solid #ccc;
  box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.05);
}

footer .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

/* === Animacje sekcji przy scrollu === */
.hidden {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.6s ease;
}

.show {
  opacity: 1;
  transform: translateY(0);
}

/* === Responsywność === */
@media (max-width: 768px) {
  .section {
    padding: 100px 20px 40px;
  }

  h1 {
    font-size: 1.6rem;
    text-align: center;
  }

  .blog-cards {
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
  }

  .blog-card {
    max-width: 90%;
  }

  .read-more {
    width: 100%;
    text-align: center;
  }
}
