/* Reset podstawowy */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body, html {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
}

/* Styl nawigacji */
nav {
  background-color: white;
  padding: 15px 30px;
  font-size: 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 0 auto;
}

.navbar-left {
  display: flex;
  align-items: center;
}

.navbar-brand {
  font-weight: bold;
  font-size: 28px;
  color: #004a99;
  text-decoration: none;
}

.slogan {
  margin-left: 15px;
  font-size: 16px;
  color: #666;
  font-style: italic;
}

.navbar-right {
  list-style-type: none;
  display: flex;
  margin: 0;
  padding: 0;
}

.navbar-right li {
  margin-left: 20px;
}

/* Styl dla przycisku 'Zaloguj' */
nav .navbar-right li a {
  color: #ffffff !important;
  background-color: #004a99 !important;
  text-decoration: none !important;
  padding: 10px 20px !important;
  border: none !important;
  border-radius: 5px !important;
  font-weight: bold;
  display: inline-block;
  transition: background-color 0.3s ease, color 0.3s ease;
}

nav .navbar-right li a:hover {
  background-color: #003366 !important;
  color: #ffffff !important;
}

#mechanics{
  color: #004a99 !important;
  background-color: #ffffff !important;
  text-decoration: none !important;
  padding: 10px 20px !important;
  border: none !important;
  border-radius: 5px !important;
  font-weight: bold;
  display: inline-block;
  transition: background-color 0.3s ease, color 0.3s ease;
}

#mechanics:hover{
  color: #1e90ff !important;
  transform: scale(1.1);
}

/* Styl responsywny nawigacji dla telefonów */
@media (max-width: 600px) {
  nav {
    flex-direction: column;
    align-items: flex-start;
  }
  .navbar-right {
    flex-direction: row;
    justify-content: flex-end;
    width: 100%;
  }
  .navbar-right li {
    margin: 10px 0;
  }
}

/* Sekcja Hero */
.hero {
  background: url('../images/banner.png') no-repeat center center/cover;
  height: 100vh;
  position: relative;
  color: white;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.hero .overlay {
  background-color: rgba(0, 0, 0, 0.5);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.hero .hero-content {
  position: relative;
  z-index: 2;
  max-width: 90%;
  background-color: rgba(0, 0, 0, 0.6);
  padding: 20px;
  border-radius: 20px;
}

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 10px;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 20px;
}

/* Styl responsywny hero */
@media (max-width: 768px) {
  .hero {
    height: 60vh;
  }
  .hero h1 {
    font-size: 2rem;
  }
  .hero p {
    font-size: 1rem;
  }
}

/* Pasek wyszukiwania */
.search-bar {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 20px;
}

.search-bar input {
  padding: 10px;
  margin-bottom: 10px;
  border: none;
  border-radius: 5px;
  width: 80%;
  max-width: 400px;
}

.search-bar button {
  padding: 10px 20px;
  background-color: #ff6600;
  border: none;
  color: white;
  border-radius: 5px;
  cursor: pointer;
}

.search-bar button:hover {
  background-color: #ff4500;
}

/* Sekcja cech */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  padding: 50px;
  background-color: #f0f0f0;
  text-align: center;
}

.features .feature {
  padding: 20px;
}

.features i {
  font-size: 3rem;
  color: #1e90ff;
}

.features h3 {
  margin-top: 10px;
  font-size: 1.5rem;
}

/* Polecane warsztaty */
.recommended {
  padding: 50px;
  text-align: center;
}

.recommended .workshops-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.recommended .workshop {
  background-color: white;
  padding: 20px;
  box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.1);
  border-radius: 5px;
}

.recommended .workshop img {
  width: 65%;
  height: auto;
  border-radius: 5px;
  margin-top: 10px;
}

/* Sekcja artykułów */
.articles {
  padding: 50px;
  background-color: #f9f9f9;
  text-align: center;
}

.articles .articles-grid {
  display: flex;
  justify-content: center;
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
  flex-wrap: wrap;
}

.articles .article {
  flex: 0 0 48%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 15px;
  margin: 10px;
  border: 1px solid #ddd;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  background-color: white;
  transition: transform 0.3s ease;
}

.articles .article:hover {
  transform: scale(1.03);
}

.articles .article img {
  width: 80%;
  height: auto;
  align-self: center;
  border-radius: 5px;
  margin-bottom: 15px;
}

/* Artykuły responsywne na mniejsze urządzenia */
@media (max-width: 600px) {
  .articles .article {
    flex: 0 0 90%;
    margin: 20px 0;
  }
}

/* Artykuły responsywne na tablety */
@media (min-width: 600px) and (max-width: 1024px) {
  .articles .article {
    flex: 0 0 45%;
    margin: 15px;
  }
}

/* Artykuły responsywne na większe ekrany */
@media (min-width: 1024px) {
  .articles .article {
    flex: 0 0 32%;
    margin: 20px 0;
  }
}

/* Stopka */
footer {
  text-align: center;
  padding: 20px;
  background-color: #004a99;
  color: white;
}

/* Lista sugestii */
#suggestions-list {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  width: 50%;
  background-color: rgba(0, 0, 0, 0.5);
  border: 1px solid #ccc;
  border-radius: 4px;
  max-height: 200px;
  overflow-y: auto;
  z-index: 1000;
}

#suggestions-list li {
  padding: 10px;
  border-bottom: 1px solid #eee;
  cursor: pointer;
  color: #ffffff;
  font-weight: 600;
  list-style-type: none;
}

#suggestions-list li:hover {
  background-color: #000000;
}

#suggestions-list li:last-child {
  border-bottom: none;
}

/* Responsywność stopki */
@media (max-width: 768px) {
  footer {
    font-size: 14px;
  }
}
