/* Hero section */
.hero {
  position: relative;
  background-image: url('../images/kariera.jpeg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  height: 45vh;
  min-height: 250px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding-bottom: 20px;
  z-index: 0;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1;
}

.hero h1 {
  position: relative;
  z-index: 2;
  color: white;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  font-size: clamp(2.4rem, 5vw, 3.2rem);
  font-weight: 800;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
  letter-spacing: 0.05em;
  margin: 0;
}

.kariera-section {
  padding: 40px 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: #12283d;
  width: 100%;
  margin-bottom: 0;
  padding-bottom: 0;
}

/* Nagłówek sekcji */
.kariera-heading {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 30px;
}

/* Zakładki */
.accordion {
  background-color: #e0e0e0; /* lekki szary */
  color: #12283d;
  cursor: pointer;
  padding: 24px 30px; /* więcej miejsca */
  width: 100%;
  text-align: left;
  border: none;
  outline: none;
  font-size: 1.3rem; /* większy tekst */
  transition: background-color 0.3s ease;
  border-bottom: 2px solid #ccc;
}

.accordion {
  position: relative;
  cursor: pointer;
  padding-right: 30px; /* miejsce na strzałkę */
  user-select: none;
  font-weight: bold;
  font-size: 1.1rem;
}

/* Strzałka - użyjemy pseudo-elementu */
.accordion::after {
  content: "\25BC"; /* strzałka w dół ▼ */
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1rem;
  transition: transform 0.3s ease;
}

/* Gdy jest aktywny (rozwinięty) dodajemy klasę 'active' do buttona */
/* Obracamy strzałkę do góry */
.accordion.active::after {
  content: "\25B2"; /* strzałka w górę ▲ */
}

.accordion:hover,
.accordion.active {
  background-color: #d5d5d5;
}

/* Panel z formularzem */
.panel {
  padding: 30px;
  background-color: #f7f7f7; /* jasny szary */
  display: none;
  overflow: hidden;
  animation: fadeIn 0.3s ease-in-out;
  border-bottom: 2px solid #ccc;
}

/* Formularz */
.job-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 800px;
  margin: 0 auto;
}

.job-form label {
  font-weight: 600;
  font-size: 1rem;
}

.job-form input,
.job-form textarea {
  padding: 10px;
  font-size: 1rem;
  border: 1px solid #bbb;
  border-radius: 4px;
  background-color: #fff; /* białe pola */
  color: #000;            /* czarny tekst */
}

.job-form input[type="file"] {
  padding: 4px;
}

.job-form button {
  align-self: flex-start;
  background-color: #12283d;
  color: white;
  padding: 12px 24px;
  font-size: 1rem;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.6s ease;
}

.job-form button:hover {
  background-color: #1e3b5c;
}

::placeholder {
  color: #888;
  font-style: italic;
}

/* Animacja rozwijania */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Responsywność */
@media (max-width: 768px) {
  .accordion {
    font-size: 1.1rem;
    padding: 20px;
  }

  .panel {
    padding: 20px;
  }
}

/* TABLETY (768px - 1024px) */
@media (max-width: 1024px) and (min-width: 769px) {
  .kariera-section {
    padding: 30px 20px;
  }

  .kariera-heading {
    font-size: 2.2rem;
  }

  .job-form {
    max-width: 100%; /* pozwalamy formularzowi rozciągnąć się bardziej */
  }

  .accordion {
    font-size: 1.2rem;
    padding: 22px 25px;
  }

  .panel {
    padding: 25px;
  }
}

/* TELEFONY (max 480px) */
@media (max-width: 480px) {
  /* Hero */
  .hero {
    height: 35vh;
    padding-bottom: 10px;
  }

  .hero h1 {
    font-size: 1.8rem;
  }

  /* Sekcja Kariera */
  .kariera-section {
    padding: 20px 15px;
  }

  .kariera-heading {
    font-size: 1.8rem;
    margin-bottom: 20px;
  }

  /* Akordeon */
  .accordion {
    font-size: 1rem;
    padding: 18px 20px;
  }

  /* Panel */
  .panel {
    padding: 20px 15px;
  }

  /* Formularz */
  .job-form {
    max-width: 100%;
    gap: 12px;
  }

  .job-form label {
    font-size: 0.9rem;
  }

  .job-form input,
  .job-form textarea,
  .job-form input[type="file"] {
    font-size: 0.9rem;
    padding: 8px;
    width: 100%; /* Wypełnij całą szerokość kontenera */
    box-sizing: border-box;
  }

  .job-form textarea {
    min-height: 100px;
  }

  .job-form button {
    padding: 10px 20px;
    font-size: 0.95rem;
  }

  /* Header i menu */
  .header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  nav .nav-list {
    display: none; /* Ukryj menu standardowe */
    position: absolute;
    top: 60px; /* pod headerem */
    left: 0;
    width: 100%;
    background-color: #12283d;
    flex-direction: column;
    z-index: 1000;
  }

  nav .nav-list.active {
    display: flex;
  }

  nav .nav-list li {
    border-bottom: 1px solid rgba(255,255,255,0.1);
  }

  nav .nav-list li a {
    color: white;
    padding: 15px 20px;
    display: block;
    font-weight: 600;
  }

  .menu-toggle {
    display: block;
    cursor: pointer;
  }

  .lang-switch {
    display: none; /* ukryj języki na małym ekranie, albo zrób dropdown */
  }
}
