
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: Arial, sans-serif;
}

body {
  background: #f5f7fb;
  color: #222;
}

img, video {
  max-width: 100%;
  height: auto;
}

/* =========================
   NAVBAR (PCRE)
========================= */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;

  display: flex;
  justify-content: space-between;
  align-items: center;

  padding: 15px 40px;
  background: white;
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;

  font-weight: bold;
  color: #1f4ed8;
  font-size: 1.2rem;

  text-decoration: none;
}
.nav-logo:visited { color: #1f4ed8; }

.nav-logo img {
  width: 38px;
}

/* MENÜ */
.nav-links {
  list-style: none;
  display: flex;
  gap: 35px;
}

.nav-links a {
  text-decoration: none;
  color: #222;
  font-weight: 500;
  position: relative;
}

/* Hover aláhúzás animáció (desktopon) */
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0%;
  height: 2px;
  background: #1f4ed8;
  transition: 0.3s;
}
.nav-links a:hover::after {
  width: 100%;
}

/* DROPDOWN (desktop hover) */
.dropdown {
  position: relative;
  padding-bottom: 10px;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;

  background: white;
  list-style: none;

  padding: 10px 0;
  border-radius: 12px;
  box-shadow: 0 12px 25px rgba(0,0,0,0.12);

  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;

  transition: 0.25s ease;
}

.dropdown-menu li a {
  display: block;
  padding: 12px 25px;
}

.dropdown-menu li a:hover {
  background: #f0f4ff;
}

/* Dropdown animáció (desktop) */
.dropdown:hover .dropdown-menu {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* HAMBURGER GOMB (desktopon rejtve) */
.nav-toggle {
  display: none;
}

/* =========================
   HERO
========================= */
.hero {
  background: #1f4ed8;
  color: white;
  text-align: center;
  padding: 80px 20px;
}

.hero img {
  width: 140px;
  background: white;
  padding: 15px;
  border-radius: 16px;
  margin-bottom: 20px;
}

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 10px;
}

/* =========================
   CARDS
========================= */
.card {
  text-decoration: none;
  color: inherit;
}

.cards {
  display: flex;
  gap: 25px;
  max-width: 1100px;
  margin: 80px auto;
  padding: 0 20px;
}

.card {
  background: white;
  border-radius: 18px;
  padding: 35px 30px;
  flex: 1;
  position: relative;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

.card-accent {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 6px;
  background: #1f4ed8;
  border-radius: 18px 18px 0 0;
}

.card h3 {
  margin-top: 15px;
  margin-bottom: 10px;
  font-size: 1.3rem;
}

.card p {
  color: #555;
  line-height: 1.5;
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 45px rgba(31,78,216,0.25);
}

.card:hover h3 {
  color: #1f4ed8;
}

/* =========================
   NEWS
========================= */
.news {
  max-width: 1100px;
  margin: 60px auto;
  padding: 0 20px;
}

.news h2 {
  margin-bottom: 25px;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.news-item {
  background: white;
  padding: 40px;
  border-radius: 16px;
}

/* =========================
   FOOTER
========================= */
footer {
  background: #0f2c6e;
  color: white;
  text-align: center;
  padding: 30px;
}

/* =========================
   OLDALAK / SZEKCIÓK
========================= */
.page-header {
  background: #1f4ed8;
  color: white;
  padding: 60px 20px;
  text-align: center;
}

.content {
  padding: 60px 40px;
  max-width: 1000px;
  margin: auto;
}

/* VEZETŐSÉG */
.leadership {
  padding: 60px 40px;
  max-width: 1100px;
  margin: auto;
  text-align: center;
}

/* ELNÖK KIEMELVE */
.main-leader {
  margin-bottom: 60px;
}

.main-leader img {
  width: 170px;
  height: 170px;
}

/* VEZETŐK RÁCS */
.leaders-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

/* KÁRTYA */
.leader {
  background: white;
  padding: 25px;
  border-radius: 18px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.08);
  transition: 0.3s;
}

.leader:hover {
  transform: translateY(-8px);
}

.leader img {
  width: 130px;
  height: 130px;
  object-fit: cover;
  border-radius: 50%;
  margin-bottom: 15px;
}

.term {
  color: gray;
  margin-top: 10px;
}

.leader p {
  background: #e9efff;
  color: #1f4ed8;
  display: inline-block;
  padding: 5px 12px;
  border-radius: 10px;
}

/* =========================
   MODAL
========================= */
.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;

  background: rgba(0,0,0,0.45);
  backdrop-filter: blur(6px);
  cursor: pointer;
}

.modal-content {
  background: white;
  width: 360px;
  margin: 8% auto;
  padding: 35px;
  border-radius: 22px;
  text-align: center;
  position: relative;
  cursor: default;

  box-shadow: 0 25px 60px rgba(0,0,0,0.2);
  animation: fadeIn 0.3s ease;
}

.modal-content img {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 15px;
}

.close {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 28px;
  cursor: pointer;
}

.bio {
  margin-top: 15px;
  color: #555;
}

.contact-icons {
  margin-top: 20px;
}

.contact-icons a {
  font-size: 26px;
  margin: 0 12px;
  color: #1f4ed8;
  transition: 0.3s;
  text-decoration: none;
}

.contact-icons a:hover {
  color: #0b2ea8;
  transform: scale(1.2);
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* =========================
   RESPONSIVE (TABLET)
========================= */
@media (max-width: 1024px) {
  .navbar { padding: 12px 20px; }
  .nav-links { gap: 20px; }

  .cards { max-width: 900px; margin: 60px auto; }

  .news-grid { grid-template-columns: repeat(2, 1fr); }
  .leaders-grid { grid-template-columns: repeat(2, 1fr); }

  .content, .leadership { padding: 50px 20px; }
}

/* =========================
   RESPONSIVE (MOBILE + HAMBURGER)
========================= */
@media (max-width: 768px) {

  /* NAVBAR */
  .navbar {
    padding: 12px 16px;
    flex-wrap: wrap;
    gap: 10px;
  }

  .nav-logo { font-size: 1.05rem; }
  .nav-logo img { width: 32px; }

  /* HAMBURGER */
  .nav-toggle {
    display: inline-flex;
    margin-left: auto;

    width: 44px;
    height: 44px;
    border: 1px solid rgba(31,78,216,0.25);
    background: #fff;
    border-radius: 12px;
    cursor: pointer;

    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;

    position: relative;
    z-index: 1100;
  }
  .nav-toggle span {
    display: block;
    width: 24px;
    height: 3px;
    background: #1f4ed8;
    border-radius: 999px;
    transition: 0.25s ease;
  }

  .nav-toggle:focus-visible{
    outline: 3px solid rgba(31,78,216,0.35);
    outline-offset: 2px;
  }

  /* Menü alapból zárva */
  .nav-links {
    width: 100%;
    display: none;
    flex-direction: column;
    gap: 0;
    padding: 10px 0;
    border-top: 1px solid rgba(0,0,0,0.08);
  }

  /* Menü nyitva */
  .navbar.open .nav-links {
    display: flex;
  }

  .nav-links > li { width: 100%; }

  .nav-links a {
    display: block;
    padding: 14px 6px;
  }

  /* Mobilon ne legyen aláhúzás animáció */
  .nav-links a::after { display: none; }

  /* DROPDOWN mobilon: hover helyett kattintás (dropdown.open) */
  .dropdown { padding-bottom: 0; }

  .dropdown-menu {
    position: static;
    opacity: 1;
    transform: none;
    pointer-events: auto;
    box-shadow: none;
    border-radius: 0;
    padding: 0;
    margin: 0;
    display: none;
  }

  .dropdown.open .dropdown-menu {
    display: block;
  }

  .dropdown-menu li a {
    padding: 12px 18px;
    background: #f5f7fb;
    border-radius: 12px;
    margin: 6px 0;
  }

  /* HERO */
  .hero { padding: 55px 16px; }
  .hero img { width: 110px; }
  .hero h1 { font-size: 1.9rem; }

  /* CARDS: 1 oszlop */
  .cards {
    flex-direction: column;
    margin: 40px auto;
    gap: 16px;
    padding: 0 16px;
  }
  .card { padding: 24px 18px; }

  /* NEWS: 1 oszlop */
  .news { margin: 40px auto; padding: 0 16px; }
  .news-grid { grid-template-columns: 1fr; }
  .news-item { padding: 22px; }

  /* Oldalak padding */
  .content, .leadership { padding: 40px 16px; }

  /* Vezetőség: 1 oszlop */
  .leaders-grid { grid-template-columns: 1fr; gap: 16px; }
  .main-leader img { width: 140px; height: 140px; }
  .leader img { width: 110px; height: 110px; }

  /* Modal mobilbarát */
  .modal-content {
    width: min(92vw, 420px);
    margin: 18% auto;
    padding: 22px 18px;
  }
  .modal-content img { width: 110px; height: 110px; }

  footer { padding: 22px 16px; }

  /* Hamburger animáció X */
  .navbar.open .nav-toggle span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
  }
  .navbar.open .nav-toggle span:nth-child(2) {
    opacity: 0;
  }
  .navbar.open .nav-toggle span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
  }
}

/* Extra kicsi telefon */
@media (max-width: 420px) {
  .hero h1 { font-size: 1.7rem; }
  .card h3 { font-size: 1.15rem; }
}



.table-wrap{ overflow-x:auto; }
.table{
  width:100%;
  border-collapse:collapse;
  background:#fff;
  border-radius:16px;
  overflow:hidden;
  box-shadow:0 10px 25px rgba(0,0,0,0.06);
}
.table th, .table td{
  padding:14px 12px;
  border-bottom:1px solid rgba(0,0,0,0.06);
  text-align:left;
  vertical-align:top;
}
.table thead th{
  background:#e9efff;
  color:#1f4ed8;
  font-weight:700;
}
.table tr:last-child td{ border-bottom:none; }


/* Scroll reveal alap */
.reveal{
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .55s ease, transform .55s ease;
  will-change: opacity, transform;
}

.reveal.is-visible{
  opacity: 1;
  transform: translateY(0);
}

/* Ha valakinek ki van kapcsolva az animáció (accessibility) */
@media (prefers-reduced-motion: reduce){
  .reveal{
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}


