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

html{
    overflow-x: hidden; 
    max-width: 100%
}

body {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333;
  background: #fdfdfd;
}

header {
  background: #3b5b82;
  color: white;
  padding: 1rem;
  text-align: center;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
}

header h1 a{
    color: white;
    text-decoration: none;
    cursor: pointer;
}

.menu {
  display: flex;
  gap: 1rem;
  list-style: none;
  padding: 0;
  margin: 0;
   font-size: 20px;
}

#navbar .menu li a {
  color: white;
  text-decoration: none;
  transition: color 0.3s;
}

#navbar .menu li a {
  color: white;
  text-decoration: none;
  transition: color 0.3s;
}

#navbar .menu li a:hover {
  color: orange;
}

.active{
    color: orange;
}

a.active-link {
  font-weight: bold;
  color: orange!important;
}

#menu-toggle {
  display: none;
  background: none;
  border: none;
  color: white;
  font-size: 2rem;
  cursor: pointer;
}

main {
  padding: 130px 2rem 2rem 2rem;
}

section{
  margin-bottom: 2rem;
}

footer {
  background: #eee;
  text-align: center;
  padding: 0.5rem;
  margin-top: 2rem;
  position: fixed;
  bottom: 0px;
  width: 100%;
}

footer p{
    margin-bottom: 0px;
}

#artykuly {
  margin-bottom: 3rem;
  text-align: center;
}

.card {
  border: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.card-active:hover{
   -webkit-box-shadow: 0px 0px 25px -10px rgba(66, 68, 90, 1);
    -moz-box-shadow: 0px 0px 25px -10px rgba(66, 68, 90, 1);
    box-shadow: 0px 0px 25px -10px rgba(66, 68, 90, 1);
}

.gallery-img {
  max-height: 200px;          /* stała wysokość */
  width: 100%;            /* dopasowanie do szerokości kolumny */
  object-fit: contain;    /* całe zdjęcie widoczne */
  background-color: #fff; /* tło wokół obrazka */
  object-position: center;
  border: 1px solid #eee; /* opcjonalnie ramka dla estetyki */
  padding: 5px;           /* trochę odstępu od ramki */
  box-sizing: border-box; /* uwzględnia padding w wymiarach */
  cursor: pointer;
}


/* MOBILE STYLES */
@media (max-width: 768px) {
   header {
    position: static;
  }

  footer{
    position: static;
  }
  
  body {
    padding-top: 0;
  }
  
  main{
    padding-top:20px;
  }

  .menu {
    display: none;
    flex-direction: column;
    background: #3b5b82;
    width: 100%;
    padding: 1rem;
  }

  .menu.active {
    display: flex;
  }

  #menu-toggle {
    display: block;
    margin-bottom: 1rem;
  }
}


/*.carousel-control-prev-icon,
.carousel-control-next-icon {
  background-color: rgba(0, 0, 0, 0.5);  ciemne tło 
  border-radius: 50%;
  background-size: 60% 60%;
  width: 1.5rem;
  height: 1.5rem;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
  filter: invert(1);  jeśli chcesz czarne strzałki 
}

.carousel-control-prev{
    justify-content: flex-start!important;
}

.carousel-control-next{
    justify-content: flex-end!important;
}

.carousel-indicators .active {
  background-color: #0d6efd;
  width: 12px;
  height: 12px;
}

.carousel-indicators button{
  background-color: #0d6efd!important;
}*/