/* Általános stílusok */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  background-image: url('fohatter.jpg');  /* Háttérkép hozzáadása */
  background-size: cover;
  background-position: center;
  color: #333;
}

.container {
  width: 90%;
  margin: 0 auto;
}

/* Fejléc stílusai */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: rgba(51, 51, 51, 0.8); /* Átlátszó sötét háttér */
  color: white;
  z-index: 1000;
  padding: 10px 0;
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

header .site-title {
  font-size: 24px;
  font-weight: bold;
}

header nav ul {
  list-style-type: none;
  display: flex;
  gap: 20px;
}

header nav a {
  text-decoration: none;
  color: white;
  font-size: 18px;
}

header nav a:hover {
  text-decoration: underline;
}

/* Aktualitások sáv */
.aktualitasok {
  background-color: #e0e0e0;  /* Halványszürke háttér */
  color: #333;
  padding: 10px;  /* Keskenyebb margó */
  font-size: 20px;
  font-weight: bold;
  margin-top: 40px;  /* Csökkentett margó */
  text-align: left;
  border-radius: 5px;
}

/* Fő tartalom stílusai */
main {
  margin-top: 100px; /* Fejléc + Aktualitások magassága */
  padding: 20px 0;
}

.content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}

.item {
  background-color: white;
  padding: 20px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.item img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 15px;
}

.item p {
  font-size: 16px;
  line-height: 1.6;
}

/* Lábléc stílusai */
footer {
  background-color: rgba(51, 51, 51, 0.8);
  color: white;
  padding: 20px 0;
  text-align: center;
}

footer p {
  font-size: 16px;
}

/* Reszponzivitás */
@media (max-width: 768px) {
  header .container {
    flex-direction: column;
    align-items: flex-start;
  }

  header nav ul {
    flex-direction: column;
    gap: 10px;
  }

  .aktualitasok {
    font-size: 18px;
  }
}

/* === Kapcsolat stílusok === */
.contact-section {
  margin-top: 120px;
  padding: 20px;
  background-color: rgba(255, 255, 255, 0.9);
  border-radius: 8px;
  text-align: center;
}

.contact-section h1 {
  margin-bottom: 20px;
}

.contact-image {
  max-width: 300px;
  max-height: 300px;
  width: 100%;
  height: auto;
  border-radius: 10px;
  margin-bottom: 20px;
}

.email-link {
  font-size: 20px;
  color: #0066cc;
  text-decoration: none;
}

.email-link:hover {
  text-decoration: underline;
}

body.contact-page main {
  margin-top: 15px;
}

.kategoriak {
  background-color: #ccc;
  padding: 10px 0;
  position: sticky;
  top: 60px;
  z-index: 998;
}

.kategoriak .container {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap; /* több sorba is elférjen */
}

.kategoriak a {
  text-decoration: none;
  color: #333;
  font-weight: bold;
  font-size: 16px;
}

/* Mobilbarát – 768px szélesség alatt egymás alá */
@media (max-width: 768px) {
  .kategoriak .container {
    flex-direction: column !important; /* biztosan oszlopos legyen */
    align-items: center;
    gap: 4px !important; /* kisebb távolság, és biztosan érvényesül */
    padding: 0 !important; /* ha a padding növelte a távolságot */
    margin: 0 !important;
  }
}


@media (max-width: 768px) {
  .keresosav {
    top: auto !important; /* ne ragadjon rá a top offset, mert nem kell fix helyzet */
    position: static !important; /* ne legyen sticky mobilon */
    z-index: auto !important;
    margin-top: 30px;
  }

  .keresosav .container {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 8px;
  }

  .keresosav label,
  .keresosav input[type="text"] {
    width: 100%;
    text-align: center;
  }
}

.cards {
  margin-top: 5px  !important;
  display: flex;
  flex-direction: column;
  gap: 20px;
}


