/* --- Ogłoszenia w osobnych boxach --- */
section {
  padding: 2rem;
  display: flex;
  align-items: center;
  flex-direction: column;
  width: 100%;
  box-sizing: border-box;
}

.announcement {
  background: #1e1e1e;
  border-left: 4px solid #ffcc00;
  border-radius: 10px;
  padding: 1rem 1.2rem;
  margin-bottom: 1.5rem;
  box-sizing: border-box;
  font-size: 1.1rem;
  width: 100%;
  max-width: 1100px;
}

.announcement h3 {
  margin-top: 0;
  color: #ffcc00;
  font-size: 1.3rem;
  word-wrap: break-word;
}

/* --- Intencje mszalne w tabeli --- */
.intentions-wrapper {
  display: block;
  margin-top: 1rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch; /* lepszy scroll na iOS */
}

.intentions-wrapper table {
  width: 100%;
  border-collapse: collapse;
  border-radius: 8px;
  border: 1px solid #444;
  background: #111;
  table-layout: auto;
  min-width: 500px; /* żeby tabela nie rozbijała się w wąskich widokach */
}

.intentions-wrapper th,
.intentions-wrapper td {
  border: 1px solid #333;
  padding: 0.6rem 0.8rem;
  text-align: left;
  vertical-align: top;
  word-wrap: break-word;
  font-size: 1rem;
}

.intentions-wrapper th {
  background-color: #222;
  color: #ffcc00;
  font-weight: 600;
}

.intentions-wrapper tr:nth-child(even) {
  background-color: #161616;
}

.intentions-wrapper tr:hover {
  background-color: #2a2a2a;
}

/* --- Responsywność --- */
@media (max-width: 992px) {
  .announcement {
    font-size: 1.1rem;
    padding: 1rem;
  }
  .announcement h3 {
    font-size: 1.2rem;
  }
}

@media (max-width: 768px) {
  section {
    padding: 1rem;
  }
  .announcement {
    padding: 0.8rem;
    font-size: 1.1rem;
  }
  .announcement h3 {
    font-size: 1.1rem;
  }
  .intentions-wrapper th,
  .intentions-wrapper td {
    font-size: 0.9rem;
    padding: 0.5rem;
  }
}

@media (max-width: 480px) {
  .announcement {
    font-size: 1.2rem;
    padding: 0.6rem;
  }
  .announcement h3 {
    font-size: 1rem;
  }
  .intentions-wrapper table {
    min-width: 400px;
  }
}
