/* ---------- Háttér ---------- */
body {
  margin: 0;
  font-family: system-ui, sans-serif;
  background: url("background/timeline5.jpg") no-repeat fixed;
  background-size: cover;
  background-position: 100% 01%;
  background-attachment: fixed;
  color: #000;
}

/* ---------- Bal oldali sáv ---------- */
.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: 280px;
  height: 100%;
  background: rgba(255,255,255,0.92);
  color: #fff;
  overflow-y: auto;
  padding: 20px;
  padding-bottom: 40px;
}

.sidebar-inner {
  position: relative;
  top: 30px;
}

.logo {
  font-size: 20px;
  margin: 0 0 10px;
  color: #b80e09;
}

.desc {
  font-size: 14px;
  line-height: 1.4;
  margin-bottom: 20px;
}

/* ---------- DESKTOP MENÜ ---------- */
.menu {
  display: flex;
  flex-direction: column;
  margin: 20px 0;
}

.menu a {
  color: #b80e09;
  text-decoration: none;
  margin: 6px 0;
  font-weight: 500;
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
  transition: color 0.3s ease;
}

.menu a::before {
  content: "";
  display: inline-block;
  width: 16px;
  height: 16px;
  margin-right: 8px;
  background: url("background/arrow3.png") no-repeat center center;
  background-size: contain;
}

.menu a::after {
  content: "";
  position: absolute;
  left: -100%;
  top: 0;
  width: 100%;
  height: 100%;
  background: #efc3c0;
  transition: all 0.3s ease;
  z-index: -1;
}

.menu a:hover::after { left: 0; }
.menu a:hover { color: #000; }

/* ---------- Képek ---------- */
.image-box {
  margin: 20px 0;
}
.image-box img {
  width: 100%;
  border-radius: 8px;
}

.extra-text p {
  font-size: 14px;
  line-height: 1.4;
  margin: 10px 0;
}

/* ---------- Tartalom ---------- */
.content {
  margin-left: 350px;
  padding: 150px 20px 30px;
  max-width: 600px;
}

.content article {
  background: rgba(0,0,0,0.85);
  color: #fff;
  border-radius: 16px;
  padding: 20px;
  margin: 0 auto 30px;
  box-shadow: 0 3px 8px rgba(0,0,0,0.15);
}

@media(min-width: 800px) {
  .content { padding-top: 100px; }
}

/* ---------- MOBIL MENÜ ---------- */
.mobile-header { display: none; }

@media(max-width: 800px) {
  .sidebar { display: none; }
  .content { margin-left: 0; padding: 80px 20px 20px; }

  .mobile-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(0,0,0,0.9);
    padding: 12px 20px;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10;
  }

  .mobile-header .brand {
    font-weight: bold;
    color: #b80e09;
  }

  .mobile-header nav a {
    color: #fff;
    margin-left: 12px;
    text-decoration: none;
    transition: color 0.3s ease;
  }
  .mobile-header nav a:hover { color: #b80e09; }

  .brand a {
    color: #b80e09;
    text-decoration: none;
    transition: color 0.3s ease;
  }
  .brand a:hover {
    color: #fff;
    text-decoration: none;
  }

  hr {
    border: none;
    height: 1px;
    background-color: #333;
    margin: 0px 0;
  }
}

/* ===== TIMELINE ===== */
.timeline {
  position: relative;
  max-width: 600px;
  margin: 0 auto;
  padding: 0;
}

/* ===== Függőleges vonal PNG képpel ===== */
.timeline::before {
  content: '';
  position: absolute;
  left: -30px;
  top: 10px;
  bottom: 0px;
  width: 0px;  /* a PNG szélességéhez igazítsd */
  background: url("background/timeline-line.png") repeat-y center;
  background-size: contain;
  transform: translateX(-50%);
}

/* ===== Esemény doboz ===== */
.event {
  background: rgba(0,0,0,0.85);
  color: #fff;
  border-radius: 16px;
  padding: 20px;
  margin: 0 auto 30px;
  box-shadow: 0 3px 8px rgba(0,0,0,0.15);
  position: relative;

  /* Animáció kezdeti állapot */
  opacity: 0;
  transform: translateY(40px);
  animation: fadeInUp 0.8s ease forwards;
}

/* ===== Animáció: fade-in + felcsúszás ===== */
@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== Kis hover effekt ===== */
.event:hover {
  transform: scale(1.03);
  transition: transform 0.3s ease;
}

/* ===== PNG ikon a nyíl helyére ===== */
.event::after {
  content: '';
  position: absolute;
  top: 30px;
  left: -20px;
  width: 30px;   /* az ikon PNG szélességéhez igazítsd */
  height: 30px;  /* az ikon PNG magasságához igazítsd */
  background: url("background/timeline-icon.png") no-repeat center;
  background-size: contain;
  z-index: 2;
}

/* ===== Mobilon a timeline igazítása ===== */
@media(max-width: 800px) {
  .timeline::before {
    left: -20px;
    width: 10px;
  }

  .event::after {
    left: -25px;
    width: 25px;
    height: 25px;
  }
}

/* ===== Késleltetett animáció (timeline hatás) ===== */
.event:nth-child(1) { animation-delay: 0.2s; }
.event:nth-child(2) { animation-delay: 0.4s; }
.event:nth-child(3) { animation-delay: 0.6s; }
.event:nth-child(4) { animation-delay: 0.8s; }
.event:nth-child(5) { animation-delay: 1.0s; }
.event:nth-child(6) { animation-delay: 1.2s; }
.event:nth-child(7) { animation-delay: 1.4s; }
.event:nth-child(8) { animation-delay: 1.6s; }
.event:nth-child(9) { animation-delay: 1.8s; }
.event:nth-child(10) { animation-delay: 2.0s; }
.event:nth-child(11) { animation-delay: 2.2s; }
.event:nth-child(12) { animation-delay: 2.4s; }
.event:nth-child(13) { animation-delay: 2.6s; }
.event:nth-child(14) { animation-delay: 2.8s; }
.event:nth-child(15) { animation-delay: 3.0s; }



/* ===== MODAL ===== */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.9);
  animation: fadeIn 0.3s ease;
}

.modal.show {
  display: flex;
  justify-content: center;
  align-items: center;
}

.modal-content {
  position: relative;
  max-width: 90%;
  max-height: 90%;
  animation: zoomIn 0.3s ease;
}

.modal-content img {
  display: block;
  max-width: 100%;
  max-height: 90vh;
  object-fit: contain;
  cursor: pointer;
}

.modal-close {
  position: absolute;
  top: -40px;
  right: 0;
  color: #fff;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  transition: color 0.3s ease;
}

.modal-close:hover {
  color: #b80e09;
}

.modal-trigger:hover {
  color: #fff !important;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes zoomIn {
  from { transform: scale(0.8); }
  to { transform: scale(1); }
}
/* ===== MOBIL HÁTTÉR ===== */
@media(max-width: 800px) {
  body {
    background-attachment: scroll !important;
    background-size: auto 100% !important;
    background-position: center center !important;
  }
}