/* Styl dla strony Kursy */
body, ul, li, a, button {
  margin: 0;
  padding: 0;
  list-style: none;
  text-decoration: none;
  font-family: Arial, Helvetica, sans-serif;
  box-sizing: border-box;
}

/*--------------------------- Nagłówek ---------------------------*/
header {
  background-color: white;
  border-bottom: 2px solid #ccc;
  padding: 10px 20px;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
}
  
  .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  
  /* Logo */
  .logo span {
    font-size: 1.2rem;
    font-weight: bold;
  }

  .logo img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    margin-right: 15px;
  }
  
  /* Nawigacja */
  nav ul {
    display: flex;
    gap: 20px;
  }
  
  nav ul li {
    font-size: 1rem;
  }
  
  nav ul li a {
    color: #333;
    transition: color 0.3s ease;
    text-decoration: none;
  }
  
  nav ul li a:hover {
    color: #002b5c;
  }
  
  nav ul li a.active {
    color: #002b5c;
    font-weight: bold;
    text-decoration: underline;
  }
  
/*----------------------------- Przyciski ----------------------------*/
  .buttons {
    display: flex;
    gap: 10px;
  }
  
  .button {
    display: inline-block;
    padding: 10px 20px;
    background-color: #007a52;
    color: white;
    font-size: 1rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    margin-right: 50px;
    transition: background-color 0.3s ease;
  }
  
  #zapisy {
    background-color: #007a52;
    color: white;
  }
  
  #zapisy:hover {
    background-color: #024f30;
  }
  
  

/*--------------------------- Hamburger -----------------------------------*/
/* Hamburger */
.hamburger {
  display: none;
  font-size: 2.5rem;
  cursor: pointer;
  align-self: center; /* WYŚRODKOWANIE w pionie */
}

/* Ukrywanie menu domyślnie na telefonie */
@media (max-width: 768px) {
  nav ul {
    display: none;
    flex-direction: column;
    background-color: white;
    position: absolute;
    top: 100%; /* menu będzie POD hamburgerem */
    right: 20px;
    width: 200px;
    border: 1px solid #ccc;
    padding: 10px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    z-index: 999;
  }

  nav ul.active {
    display: flex;
  }

  .hamburger {
    display: block;
  }

  /* Ukryj normalne menu na desktopie */
  nav {
    position: relative;
  }
}
/*--------------------------- Sekcja kursów - 1 ---------------------------*/
.container-main {
  max-width: 1000px;
  margin: auto;
  background: #fff;
  padding: 10px;
  border-radius: 10px;
  margin-bottom: 10px;
  margin-top: 120px;
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
}

.container-main-fortnite {
  max-width: 1000px;
  margin: auto;
  background: #fff;
  padding: 10px;
  border-radius: 10px;
  margin-bottom: 10px;
  margin-top: 120px;
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
}

.course-section {
  text-align: center;
  padding: 10px 20px;
  margin-bottom: 10px;
}

.course-section h2 {
  font-size: 2rem;
  margin-bottom: 20px;
  color: #333;
}

.course-section h3 {
  font-weight: lighter;
}
/* Poprawić do wszystkich */

.course-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
}

.course-item {
  display: flex;
  flex-direction: row;
  align-items: center;
  background: white;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 2px 2px 4px 5px rgba(0, 0, 0, 0.1);
  width: 700px;
  text-align: left;
  gap: 30px;
}

.course-image {
  flex-shrink: 0;
}

.course-image img {
  width: 250px;
  height: auto;
  border-radius: 10px;
}

.course-info {
  flex: 1;
  text-align: center;
}



.course-info p {
  font-size: 1rem;
  color: #666;
  margin-bottom: 15px;
}

.btn-more {
  display: inline-block;
  padding: 10px 20px;
  background-color: #007a52;
  color: white;
  font-size: 1rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.btn-more:hover {
  background-color: #047948;
}

/*--------------------------- Sekcja kursów - 2 ---------------------------*/

.container-main-2 {
  max-width: 1000px;
  margin: auto;
  background: #fff;
  padding: 10px;
  border-radius: 10px;
  margin-bottom: 10px;
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
}

.course-section-2 {
  text-align: center;
  padding: 10px 20px;
  margin-bottom: 10px;
}

.course-section-2 h2 {
  font-size: 2rem;
  margin-bottom: 20px;
  color: #333;
}

.course-section-2 h3 {
  font-weight: lighter;
}

/*--------------------------- Sekcja kursów - 3 ---------------------------*/

.container-main-3 {
  max-width: 1000px;
  margin: auto;
  background: #fff;
  padding: 10px;
  border-radius: 10px;
  margin-bottom: 10px;
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
}

.course-section-3 {
  text-align: center;
  padding: 10px 20px;
  margin-bottom: 10px;
}

.course-section-3 h2 {
  font-size: 2rem;
  margin-bottom: 20px;
  color: #333;
}

.course-section-3 h3 {
  font-weight: lighter;
}

.course-info h3 {
  font-size: 1.5rem;
  font-weight: bold;
  color: #0033cc;
  margin-bottom: 10px;
}

/* NOWOŚĆ: Dla małych ekranów (np. telefonów) */
@media (max-width: 768px) {
  .course-item {
    flex-direction: column; /* zamiast w poziomie - w pionie */
    width: 90%; /* zmniejsz szerokość do 90% ekranu */
    gap: 15px; /* trochę mniejszy odstęp */
    text-align: center; /* opcjonalnie - wycentrowanie tekstu */
  }

  .course-image img {
    width: 200px;
  }

  .container-main-fortnite img {
    width: 400px;
  }
}

.course-content-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.modal-content {
  background: #fff;
  padding: 20px;
  border-radius: 10px;
  text-align: center;
  max-width: 500px;
  width: 90%;
  position: relative;
}

.modal-content img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  margin-bottom: 15px;
}

.close {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 20px;
  cursor: pointer;
  color: red;
}

/*-------------------- Stopka ----------------------*/
footer {
  background-color: #333; /* Ciemny kolor tła */
  color: white; /* Kolor tekstu */
  padding: 20px 0;
  text-align: center;
  position: relative; /* Zawsze na dole */
  bottom: 0; /* Przyklej do dolnej krawędzi */
  left: 0;
  width: 100%;
  z-index: 1000; /* Na wierzchu innych elementów */
}
  
  .footer-container {
    width: 80%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }
  
  .footer-container p {
    font-size: 0.9rem;
    margin: 0;
  }
  
  .footer-links {
    list-style: none;
    display: flex;
    gap: 15px;
    padding: 0;
  }
  
  .footer-links li {
    display: inline;
  }
  
  .footer-links a {
    color: #08c878;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
  }
  
  .footer-links a:hover {
    color: #047948;
  }
  
  
  .modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
    z-index: 9999; /* 👈 To sprawia, że modal będzie NAD headerem */
  }
  
  .modal-content {
    position: relative; /* 👈 Umożliwia pozycjonowanie przycisku X */
    background: white;
    padding: 30px 20px;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    z-index: 10000; /* 👈 To też pomoże wynieść go na front */
  }
  
  .close-contact {
    position: absolute;
    top: 16px;
    right: 20px;
    font-size: 24px;
    cursor: pointer;
    z-index: 10001; /* 👈 Gwarancja, że X będzie nad wszystkim */
    color: #444;
  }
  