* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #fff;
  color: #333;
}

header {
  background-color: white;
  padding: 50px 0 20px; 
  text-align: center;
}

.logo {
  height: 40px;
  max-width: 100%;
  object-fit: contain;
}


/* === NAWIGACJA === */
nav {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(0, 0, 0, 0.63);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  z-index: 1000;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto 2fr;
  align-items: center;
  padding: 0.5em 3em;
}

.navbar-brand {
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.white-text {
  color: #fff;
  font-weight: bold;
}

.navbar-nav {
  display: grid;
  grid-auto-flow: column;
  gap: 1rem;
  justify-content: end;
}

.nav-link {
  text-decoration: none;
  color: #fff;
  font-weight: bold;
  font-size: 1.2rem;
  transition: color 0.3s ease;
}

.nav-link:hover {
  color: #0d64d9;
}

/* === SLIDER === */
.slider {
  position: relative;
  width: 100%;
  height: 80vh;
  max-height: 800px;
  overflow: hidden;
  margin: 5px auto 0; /* Dystans od fixed nav */
}

.slides {
  position: relative;
  height: 100%;
}

.slide {
  position: absolute;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.slide.active {
  opacity: 1;
  z-index: 1;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.prev, .next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(0,0,0,0.5);
  color: white;
  border: none;
  padding: 12px 16px;
  font-size: 18px;
  cursor: pointer;
  border-radius: 50%;
  z-index: 2;
}

.prev {
  left: 40px;
}

.next {
  right: 40px;
}

.dots {
  text-align: center;
  margin: 1em 0;
}

.dot {
  display: inline-block;
  height: 12px;
  width: 12px;
  margin: 0 5px;
  background-color: #bbb;
  border-radius: 50%;
  cursor: pointer;
}

.dot.active {
  background-color: #333;
}
/* === Wspólne właściwości dla sekcji */
.register, .newspapper, .contact {
  padding: 40px 20px;
  text-align: center;
}
.register-link, .google-link, .facebook-link {
  display: inline-block;
  background-color: #1877f2;
  color: white;
  padding: 12px 24px;
  border-radius: 25px;
  text-decoration: none;
  font-size: 16px;
  transition: background-color 0.3s ease;
}
.register-link:hover, .google-link:hover, .facebook-link:hover {
  background-color: #0d64d9;
}

/* === SEKCJA ZAPISÓW === */

.register {
  background-color: #fafafa;
}

.register h2 {
  margin-bottom: 20px;
}

/* === SEKCJA GAZETKA === */
.newspapper {
  background-color: #fff;
}

.newspapper h2 {
  margin-bottom: 20px;
}

/* === SEKCJA KONTAKT === */
.contact {
  background-color: #fafafa;
}

.contact h2 {
  margin-bottom: 20px;
}


/* === FOOTER === */
footer {
  background-color: #f0f0f0;
  text-align: center;
  padding: 15px 0;
  font-size: 14px;
  color: #666;
}

/* === RESPONSYWNOŚĆ === */
@media (max-width: 480px) {
  .logo {
    height: 30px;
    margin: auto;
  }

  .navbar-brand {
    font-size: 1rem;
  }

  .nav-link {
    font-size: 0.8rem;
  }

  .slider {
    height: 50vh;
  }
}
@media (max-width: 768px) {
  .container {
    grid-template-columns: 1fr;
    row-gap: 10px;
  }
.navbar-brand {
  justify-content: center;
  }
  .navbar-nav {
    grid-auto-flow: column;
    justify-content: center;
    gap: 0.9rem;
  }

  .logo {
    position: relative;
    justify-content: center;
    
    height: 40px;
    margin: auto;
  }

  .slider {
    height: 60vh;
    margin-top: 80px;
  }

  .facebook-link,
  .google-link {
    padding: 10px 20px;
    font-size: 14px;
  }
}


