/* Háttérkép */
body {
  margin: 0;
  font-family: 'Segoe UI', sans-serif;
  background-image: url('kepek/Background.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  background-repeat: no-repeat;
  color: #333;
  position: relative;
}

/* Átlátszó fehér réteg */
body::before {
  content: "";
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background-color: rgba(255,255,255,0.85);
  z-index: -1;
}

/* Konténer */
.container {
  width: 90%;
  max-width: 1200px;
  margin: auto;
  padding: 20px 0;
}

/* Navigáció */
nav {
  background-color: #003366;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
nav ul {
  list-style: none;
  display: flex;
  justify-content: center;
  margin: 0; padding: 0;
}
nav li { margin: 0 10px; }
nav a {
  display: block;
  padding: 15px 20px;
  text-decoration: none;
  color: white;
  font-weight: 500;
  transition: all 0.3s ease;
}
nav a:hover,
nav .active > a {
  background-color: #af7c0c;
  color: white;
  border-radius: 4px;
  transform: scale(1.05);
}

/* Hamburger gomb */
.menu-toggle {
  display: none;
  font-size: 2rem;
  color: white;
  cursor: pointer;
  padding: 15px;
}

/* Mobil nézet */
@media (max-width:768px) {
  nav ul {
    flex-direction: column;
    align-items: center;
    display: none;
    background-color: #003366;
    width: 100%;
  }
  nav ul.show { display: flex; }
  .menu-toggle { display: block; }
}

/* Hero */
.hero {
  background-color: #003366;
  color: white;
  text-align: center;
  padding: 60px 20px;
}
.hero h2 { font-size: 2.5rem; margin-bottom: 10px; }
.hero p { font-size: 1.2rem; }

/* Szekciók */
.section { padding: 40px 0; }
.section.gray { background-color: #efefef; }

/* Programkártyák */
#program-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(280px,1fr));
  gap: 20px;
  margin-top: 40px;
}
.card {
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 6px 16px rgba(0,0,0,0.15);
}
.card img { width: 100%; height: 180px; object-fit: cover; }
.card h3 { margin: 15px; font-size: 1.2rem; color: #003366; }
.card p { margin: 0 15px 15px; font-size: 0.95rem; line-height: 1.5; }

/* Lábléc */
footer {
  background-color: #003366;
  color: white;
  text-align: center;
  padding: 30px 20px;
}
footer a {
  color: #af7c0c;
  text-decoration: none;
}
footer a:hover { text-decoration: underline; }

/* Sarokban elhelyezett logó */
.logo-corner {
  position: fixed;
  top: 15px;
  right: 15px;
  z-index: 1000;
}
.logo-corner img {
  width: 100px;
  height: auto;
  opacity: 0.95;
}

/* Nyitóképernyő (splash screen) */
#splash-screen {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background-color: #003366;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2000;
  animation: fadeOut 3s ease-in-out forwards;
  animation-delay: 2s;
}
#splash-screen img {
  width: 150px;
  height: auto;
  opacity: 0;
  animation: fadeIn 1.5s ease-in-out forwards;
}

/* Animációk */
@keyframes fadeIn { to { opacity: 1; } }
@keyframes fadeOut { to { opacity: 0; visibility: hidden; } }

/* Görgetéskor megjelenő animáció */
.reveal {
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.8s ease;
}
.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Scroll progress bar */
#progress-bar {
  position: fixed;
  top: 0; left: 0;
  height: 5px;
  background: #af7c0c;
  width: 0%;
  z-index: 2000;
}

/* Szűrőgombok (programokhoz) */
.filter-buttons {
  text-align: center;
  margin: 20px 0;
}
.filter-buttons button {
  background: #003366;
  color: white;
  border: none;
  padding: 10px 15px;
  margin: 5px;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.2s ease;
}
.filter-buttons button:hover {
  background: #af7c0c;
  transform: scale(1.05);
}

/* Osztály szűrő (beosztás oldalhoz) */
.osztaly-szuro {
  text-align: center;
  margin: 20px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}
.osztaly-szuro label {
  background: #003366;
  color: white;
  padding: 8px 14px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 500;
  transition: background 0.3s ease, transform 0.2s ease;
}
.osztaly-szuro input {
  margin-right: 6px;
}
.osztaly-szuro label:hover {
  background: #af7c0c;
  transform: scale(1.05);
}

/* Táblázat mobilbarát görgetés */
.table-wrapper {
  overflow-x: auto;
  width: 100%;
}
.schedule-table {
  width: 100%;
  min-width: 700px;
  border-collapse: collapse;
  background: white;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  overflow: hidden;
  margin-top: 20px;
}
.schedule-table th {
  background-color: #003366;
  color: white;
  padding: 12px;
  font-size: 1rem;
}
.schedule-table td {
  padding: 10px;
  text-align: center;
  font-size: 0.95rem;
}
.schedule-table tr:nth-child(even) {
  background-color: #f2f2f2;
}
.schedule-table tr:hover {
  background-color: #e0e0e0;
}

/* Elrejtett sorok */
.hidden {
  display: none !important;
}

/* Reszponzivitás */
@media (max-width:768px) {
  .hero h2 { font-size: 2rem; }
  .hero p { font-size: 1rem; }
}
@media (max-width:600px) {
  .osztaly-szuro {
    flex-direction: column;
    align-items: center;
  }
  .osztaly-szuro label {
    font-size: 0.9rem;
}

/* Szűrőpanel gomb */
.szuro-toggle {
  background: #003366;
  color: white;
  border: none;
  padding: 10px 20px;
  margin-bottom: 10px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 500;
  transition: background 0.3s ease;
}
.szuro-toggle:hover {
  background: #af7c0c;
}

/* Osztály szűrő */
.osztaly-szuro {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 20px;
}
.osztaly-szuro label {
  background: #003366;
  color: white;
  padding: 8