/* Reset stylów */
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;
  }
}
  /*-------------------------------- Bloki ----------------------------------------------*/
.container-main {
    max-width: 1200px;
    margin: auto;
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    margin-top: 120px;
    margin-bottom: 10px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
}

.course-header {
    display: flex;
    gap: 20px;
    align-items: center;
}

.course-header img {
    width: 40%;
    border-radius: 10px;
}

.course-info {
    flex: 1;
}

.course-info h1 {
    font-size: 26px;
    font-weight: bold;
    text-align: center;
}

.subtext {
    font-size: 16px;
    color: #777;
    margin: 10px 0;
}

.description {
    font-size: 14px;
    color: #555;
}

.course-details {
    display: flex;
    justify-content: space-between;
    margin: 20px 0;
    padding: 10px;
    background: #f3f3f3;
    border-radius: 10px;
    margin-bottom: 30px;
}

.detail {
    display: flex;
    align-items: center;
}

.icon {
    font-size: 22px;
    margin-right: 5px;
    margin-top: -5px;
}

.price-section {
    text-align: center;
    margin-top: 20px;
    margin-bottom: 20px;
    align-items: center;
}

.price {
    font-size: 24px;
    font-weight: bold;
    color: #e67e22;
}

.signup-btn {
  background: #007a52;
  color: white;
  font-size: 16px;
  font-weight: bold;
  padding: 12px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  margin: 40px auto;
  display: block;
  width: 100%; /* przycisk zajmuje całą szerokość kontenera */
  max-width: 400px; /* ale nie większy niż 400px */
  text-align: center;
}

.signup-btn:hover {
    background: #047948;
}


h2 {
    font-size: 20px;
    margin-bottom: 10px;
    color: #444;
}

/* Wieksza przerwa miedzy zapisz sie a program kursu
Lekcje powiększyć całość?*/
.course-content {
  margin-top: 50px;
}

.module {
  margin-top: 30px;
}

.module h3 {
  font-size: 20px;
}

.course-content h2{
  font-size: 24px;
  color: #000000;
}

.lesson {
    display: flex;
    align-items: center;
    background: #f3f3f3;
    padding: 10px;
    border-radius: 10px;
    margin-top: 10px;
    margin-bottom: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.lesson strong {
  font-size: 16px;
}

.lesson p {
  line-height: 1.3;
}

.lesson-number {
    background: #007a52;
    color: white;
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    margin-left: 5px;
    align-items: center;
    border-radius: 50%;
    font-weight: bold;
    font-size: 22px;
    margin-right: 15px;
}
/*-------------------- 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;
  }
  
  .modal-content {
    background: white;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
  }
  
  .close-contact {
    cursor: pointer;
    font-size: 24px;
    float: right;
  }

  .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;
  }
  