main {
  padding: 40px;
}

.menu-toggle {
  position: fixed;
  top: 15px;
  z-index: 1001;
  cursor: pointer;
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  background: #888; /*rgba(51, 51, 51, 0.9);*/
  color: white;
  padding: 10px 15px;
  border-radius: 8px;
  transition: background 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.menu-toggle:hover {
  background: #555;
}

/* Lewy przycisk */
#menu-toggle-left {
  left: 20px;
}

/* Prawy przycisk */
#menu-toggle-right {
  right: 20px;
}

/* --- STYLE MENU BOCZNYCH --- */
.sidebar {
  position: fixed;
  top: 0;
  width: 300px;
  height: 100%;
  background: #006666; /*rgba(70, 70, 70, 0.85); tło menu*/
  backdrop-filter: blur(10px);
  color: white;
  z-index: 998;
  transition: 0.3s ease;
  padding-top: 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 4px 0 15px rgba(0, 0, 0, 0.4);
}

/* Lewy sidebar */
#sidebar-left {
  left: -300px;
}
#sidebar-left.active {
  left: 0;
}

/* Prawy sidebar */
#sidebar-right {
  right: -300px;
  box-shadow: -4px 0 15px rgba(0, 0, 0, 0.4);
}
#sidebar-right.active {
  right: 0;
}

.sidebar ul {
  list-style: none;
  padding: 0;
  margin: 0;
  width: 100%;
}

.sidebar ul li a {
  display: flex;
  align-items: center;
  padding: 10px 15px;
  color: white;
  text-decoration: none;
  font-family: "Georgia", Arial;
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  position: relative;
  overflow: hidden;
  transition: color 0.3s ease;
}

.sidebar ul li a img.menu-icon {
  width: 30px;
  height: 30px;
  margin-right: 15px;
}

.sidebar ul li a::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(to right, #ff6600, #ffff00);
  transform: translateX(-100%);
  transition: transform 0.3s ease;
}

.sidebar ul li a:hover::before {
  transform: translateX(0);
}

.sidebar ul li a:hover {
  color: #ffff00;
  background-color: rgba(255, 255, 255, 0.1); /* tło podświetlonej kategorii odznaki */
}

.sidebar ul li a span {
  position: relative;
  display: inline-block;
  transition: transform 0.3s ease;
}

.sidebar ul li a:hover span {
  transform: translateX(10px);
}

/* MENU PRAWE */

.center-underline {
  position: relative;
  color: #ddd;
  font-size: clamp(1.5rem, 2vw, 2.3rem);
  /*font-size: 2.3em;*/
  padding: 5px 10px;
  font-family: "Georgia", cursive;
  text-decoration: none;
  transition: color 0.3s ease, text-shadow 0.3s ease;
  /*margin: 10px; /* margines góra, dół, lewo, prawo */
  display: inline-block; /* aby margines działał poprawnie */
  font-weight: 700; /* 400 brak pogrubienia */
}

/* Linia startuje ze środka */
.center-underline::before {
  content: "";
  position: absolute;
  bottom: -3px;
  left: 50%;
  width: 0;
  height: 3px;
  background: #ffff00;
  transition: width 0.3s ease;
  transform: translateX(-50%);
}

/* Po najechaniu linia rośnie do pełnej szerokości */
.center-underline:hover::before {
  width: 100%;
}

/* Zmiana koloru + cień po najechaniu */
.center-underline:hover {
  color: #ffff00;
  text-shadow: 0 0 6px rgba(0,0,0,0.7);
}

/* MENU GÓRNE W SPISIE MIEJSCOWOŚCI */
.pagination {
    display: flex;
    justify-content: center;
    gap: 4px;
    margin: 10px 0;
    font-family: Georgia; Arial, sans-serif;
    font-size: clamp(0.8rem, 2vw, 1rem);
}

.page-btn {
    padding: 4px 14px;
    text-decoration: none;
    background: #fff;
    color: #333;
    border-radius: 4px;
    border: 1px solid #ccc;
    transition: 0.2s;
}

.page-btn:hover {
    background: #ddd;
}

.page-btn.active {
    background: #333;
    color: #fff;
    border-color: #333;
    font-weight: bold;
}