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

body {
  font-family: 'Segoe UI', sans-serif;
  color: #222;
  background-color: #fff;
  line-height: 1.6;
}

/* -------------------- NAVBAR -------------------- */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #111;
  color: white;
  padding: 1rem 2rem;
  position: relative;
}

.logo {
  font-size: 1.5rem;
  font-weight: bold;
  white-space: nowrap;
}

.hamburger {
  display: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: white;
  background: none;
  border: none;
  padding: 0.5rem;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
}

.nav-links a {
  text-decoration: none;
  color: #ccc;
  font-weight: 500;
  padding: 0.5rem 0;
  display: block;
}

.nav-links a.active,
.nav-links a:hover {
  color: #ff6600;
}

/* -------------------- HERO -------------------- */
.hero {
  position: relative;
  height: 50vh;
  min-height: 300px;
  background: url('/images/178404DE-AC11-418D-9D70-9C71CF141C59_1_102_o.jpeg') center center/cover no-repeat;
}

.overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: white;
  background: rgba(0, 0, 0, 0.4);
  padding: 2rem;
  border-radius: 10px;
  width: 90%;
  max-width: 500px;
}

.overlay h1 {
  font-size: clamp(1.5rem, 5vw, 2.5rem);
  margin-bottom: 1rem;
}

.overlay p {
  font-size: clamp(0.9rem, 3vw, 1.1rem);
  margin-bottom: 1.5rem;
}

/* -------------------- FEATURED -------------------- */
.featured {
  text-align: center;
  padding: 4rem 1rem 2rem;
}

.featured h2 {
  font-size: 2rem;
  margin-bottom: 2rem;
  font-weight: bold;
}

.logos {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2rem;
  opacity: 0.6;
}

/* -------------------- BLOG POSTS -------------------- */
.blog-posts {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  padding: 2rem 1rem;
  background-color: #fafafa;
}

.post-card {
  background: white;
  border: 1px solid #ddd;
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  flex-direction: row;
  width: 100%;
  max-width: 900px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s;
  text-decoration: none;
  color: inherit;
}

.post-card:hover {
  transform: scale(1.02);
}

.post-card img {
  width: 300px;
  height: 200px;
  object-fit: cover;
  flex-shrink: 0;
}

.post-content {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.post-content h3 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.2rem, 4vw, 1.5rem);
  color: #222;
  line-height: 1.3;
}

.post-content .date {
  font-size: 0.9rem;
  color: #888;
  margin-bottom: 0.5rem;
}

.post-content p {
  font-size: 0.95rem;
  color: #444;
  margin-bottom: 1rem;
  line-height: 1.5;
}

.read-more {
  text-decoration: none;
  color: #007bff;
  font-weight: bold;
  font-size: 0.9rem;
}

.read-more:hover {
  text-decoration: underline;
}

/* -------------------- TABELA -------------------- */
table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 2rem;
  font-size: 0.85rem;
  background-color: white;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
  border-radius: 8px;
  overflow: hidden;
}

table thead {
  background-color: #111;
  color: white;
}

table th,
table td {
  padding: 8px 12px;
  text-align: left;
  border-bottom: 1px solid #eee;
}

table tbody tr:nth-child(even) {
  background-color: #f9f9f9;
}

table tbody tr:hover {
  background-color: #f1f1f1;
}

.check {
  text-align: center;
  font-size: 1.2rem;
  color: #28a745;
  font-weight: bold;
}

.date {
  color: #666;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

/* -------------------- RESPONSYWNOŚĆ -------------------- */
@media (max-width: 768px) {
  .navbar {
    padding: 1rem;
  }
  
  .hamburger {
    display: block;
  }

  .nav-links {
    flex-direction: column;
    gap: 0;
    background-color: #111;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    padding: 0;
    display: none;
    width: 100%;
    z-index: 999;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
  }

  .nav-links.show {
    display: flex;
  }

  .nav-links li {
    border-bottom: 1px solid #333;
  }

  .nav-links li:last-child {
    border-bottom: none;
  }

  .nav-links a {
    padding: 1rem;
    color: #fff;
    border-bottom: none;
  }

  .hero {
    height: 40vh;
    min-height: 250px;
  }

  .overlay {
    padding: 1.5rem;
    width: 95%;
  }

  .blog-posts {
    padding: 1.5rem 0.5rem;
  }

  .post-card {
    flex-direction: column;
    margin: 0 0.5rem;
  }

  .post-card img {
    width: 100%;
    height: 180px;
  }

  .post-content {
    padding: 1rem;
  }

  /* Tabela na mobile */
  table {
    font-size: 0.75rem;
  }
  
  table th,
  table td {
    padding: 6px 8px;
  }
  
  /* Ukryj niektóre kolumny na bardzo małych ekranach */
  @media (max-width: 480px) {
    table th:nth-child(4),
    table td:nth-child(4) {
      display: none;
    }
  }
}

/* -------------------- BARDZO MAŁE EKRANY -------------------- */
@media (max-width: 480px) {
  .navbar {
    padding: 0.75rem;
  }
  
  .logo {
    font-size: 1.2rem;
  }
  
  .hero {
    height: 35vh;
    min-height: 200px;
  }
  
  .overlay {
    padding: 1rem;
    border-radius: 5px;
  }
  
  .blog-posts {
    padding: 1rem 0.25rem;
  }
  
  .post-card {
    margin: 0 0.25rem;
  }
  
  .post-content h3 {
    font-size: 1.1rem;
  }
  
  table {
    font-size: 0.7rem;
  }
}

/* -------------------- POZOSTAŁE STYLE -------------------- */
.btn {
  background-color: transparent;
  color: white;
  border: 2px solid white;
  padding: 0.75rem 1.5rem;
  text-decoration: none;
  font-weight: bold;
  transition: 0.3s;
  border-radius: 5px;
}

.btn:hover {
  background-color: white;
  color: black;
}
