:root {
  --sidebar-bg: #ffdbc5;
  --sidebar-width: 228px;
  --accent: #cf1b1b;
  --text: #000000;
  --muted: #444950;
  --section-alt: #f8f8ff;
  --card-bg: #ffffff;
  --border: #ebebeb;
  --font: 'Open Sans', Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: #ffffff;
  line-height: 1.6;
}

img { max-width: 100%; display: block; }

a { color: var(--accent); }

/* ---------- Oldalsó menü ---------- */

.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: var(--sidebar-width);
  background: var(--sidebar-bg);
  overflow-y: auto;
  z-index: 100;
  padding: 40px 16px 24px;
  text-align: center;
}

.sidebar .logo {
  display: inline-block;
  width: 152px;
  margin-bottom: 28px;
}

.nav { list-style: none; margin: 0; padding: 0; }

.nav a {
  display: inline-block;
  padding: 5px 0;
  margin: 2px 0;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .4px;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--text);
  border-bottom: 1px solid transparent;
  line-height: 1.25;
}

.nav a:hover,
.nav a.active { border-bottom-color: var(--accent); }

.sidebar hr {
  border: 0;
  border-top: 1px solid rgba(0, 0, 0, .12);
  margin: 28px 0 18px;
}

.social a {
  color: var(--text);
  font-size: 13px;
  text-decoration: none;
  font-weight: 600;
}

.menu-toggle { display: none; }

/* ---------- Tartalom ---------- */

main, .site-footer { margin-left: var(--sidebar-width); }

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #ffffff;
  background: #222 url('../img/hero.jpg') center / cover no-repeat;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .25);
}

.hero-text { position: relative; padding: 0 16px; margin-top: 18vh; }

.hero h1 {
  margin: 0;
  font-size: clamp(34px, 5vw, 60px);
  font-weight: 700;
  text-shadow: 2px 2px 6px rgba(0, 0, 0, .7);
}

.hero p {
  margin: 10px 0 0;
  font-size: clamp(18px, 2vw, 24px);
  font-weight: 600;
  text-shadow: 1px 1px 4px rgba(0, 0, 0, .7);
}

.hero-shape {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  width: 100%;
  height: 90px;
}

.section { padding: 80px 24px; }
.section.alt { background: var(--section-alt); }

.container { max-width: 1100px; margin: 0 auto; }
.container.narrow { max-width: 820px; }

.section-title {
  text-align: center;
  margin: 0 0 50px;
}

.section-title h2 {
  margin: 0;
  font-size: 34px;
  font-weight: 600;
}

.section-title hr {
  width: 50px;
  margin: 18px auto 0;
  border: 0;
  border-top: 2px solid var(--accent);
}

/* Rólunk */

.about {
  background: var(--card-bg);
  border-radius: 6px;
  padding: 40px;
  box-shadow: 0 2px 14px rgba(0, 0, 0, .06);
}

.about h3 { margin-top: 0; text-align: center; font-size: 22px; }
.about dl { margin: 0 0 20px; }
.about dt { font-weight: 700; margin-top: 12px; }
.about dd { margin: 0; }
.about ul { margin: 6px 0 0; padding-left: 20px; }

/* Mérföldkövek */

.timeline {
  position: relative;
  list-style: none;
  margin: 0;
  padding: 0;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  background: var(--border);
  transform: translateX(-50%);
}

.timeline li {
  position: relative;
  width: 50%;
  padding: 0 40px 40px 0;
  text-align: right;
}

.timeline li:nth-child(even) {
  margin-left: 50%;
  padding: 0 0 40px 40px;
  text-align: left;
}

.timeline li::before {
  content: '';
  position: absolute;
  top: 6px;
  right: -8px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--accent);
  border: 3px solid #ffffff;
  box-shadow: 0 0 0 1px var(--border);
}

.timeline li:nth-child(even)::before { left: -8px; right: auto; }

.timeline time {
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
}

.timeline h4 { margin: 4px 0 6px; font-size: 17px; }
.timeline p { margin: 0; color: var(--muted); }

/* Kártyák (tagok, hírek, sikereink) */

.grid {
  display: grid;
  gap: 28px;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
}

.card {
  background: var(--card-bg);
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 2px 14px rgba(0, 0, 0, .07);
  border-bottom: 3px solid transparent;
  transition: border-color .2s, transform .2s;
}

.card:hover { border-bottom-color: var(--accent); transform: translateY(-2px); }

.card .thumb {
  position: relative;
  aspect-ratio: 1 / 1;
  background: #e9e4e0;
  overflow: hidden;
}

.card .thumb img { width: 100%; height: 100%; object-fit: cover; }

.card .thumb .initials {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  font-weight: 700;
  color: rgba(0, 0, 0, .25);
  background: var(--sidebar-bg);
}

.card .body { padding: 18px 20px 22px; text-align: center; }
.card h4 { margin: 0 0 4px; font-size: 16px; }
.card .role { margin: 0; color: var(--muted); font-size: 14px; }

.news .card .thumb { aspect-ratio: 4 / 3; }
.news .card .body { text-align: left; }
.news .card time { font-size: 13px; color: var(--muted); }
.news .card p { font-size: 14px; color: var(--muted); }

.read-more {
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  text-transform: uppercase;
}

.successes .card .thumb { aspect-ratio: 4 / 3; }

/* Virtuális galéria */

.gallery-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 6px;
  overflow: hidden;
  background: #000;
}

.gallery-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Belépési szándék */

.join { text-align: center; }
.join ol { text-align: left; display: inline-block; margin: 10px 0 24px; }

.btn {
  display: inline-block;
  padding: 12px 26px;
  border-radius: 4px;
  background: var(--accent);
  color: #ffffff;
  font-weight: 700;
  text-decoration: none;
}

.btn:hover { background: #a91515; }

.btn.outline { background: transparent; color: var(--accent); border: 2px solid var(--accent); }
.btn.outline:hover { background: var(--accent); color: #ffffff; }

.join .btns { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

.notice {
  max-width: 640px;
  margin: 0 auto;
  padding: 24px;
  text-align: center;
  background: var(--section-alt);
  border-radius: 6px;
  color: var(--muted);
}

/* Lábléc */

.site-footer {
  padding: 40px 24px;
  text-align: center;
  font-size: 14px;
  background: var(--sidebar-bg);
}

.site-footer .nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 16px; margin-bottom: 16px; }
.site-footer a { color: var(--text); }

/* Belső oldalak */

.page-header {
  padding: 140px 24px 60px;
  text-align: center;
  color: #ffffff;
  background: #222 url('../img/hero.jpg') center / cover no-repeat;
  position: relative;
}

.page-header::before { content: ''; position: absolute; inset: 0; background: rgba(0, 0, 0, .45); }
.page-header h1 { position: relative; margin: 0; font-size: clamp(28px, 4vw, 44px); }

/* ---------- Mobil ---------- */

@media (max-width: 900px) {
  .sidebar {
    inset: 0 0 auto 0;
    width: 100%;
    height: 64px;
    padding: 8px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    overflow: visible;
    box-shadow: 0 1px 6px rgba(0, 0, 0, .1);
  }

  .sidebar .logo { width: 48px; margin: 0; }

  .menu-toggle {
    display: block;
    background: none;
    border: 0;
    font-size: 28px;
    line-height: 1;
    padding: 6px;
    cursor: pointer;
  }

  .sidebar .menu {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    max-height: calc(100vh - 64px);
    overflow-y: auto;
    background: var(--sidebar-bg);
    padding: 16px 16px 24px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, .1);
  }

  .sidebar.open .menu { display: block; }

  main, .site-footer { margin-left: 0; }
  main { padding-top: 64px; }

  .hero { min-height: calc(100vh - 64px); }

  .section { padding: 56px 16px; }
  .about { padding: 24px 18px; }

  .timeline::before { left: 7px; }
  .timeline li,
  .timeline li:nth-child(even) { width: 100%; margin-left: 0; padding: 0 0 32px 34px; text-align: left; }
  .timeline li::before,
  .timeline li:nth-child(even)::before { left: 0; right: auto; }

  .grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 16px; }
  .news .grid { grid-template-columns: 1fr; }
}

/* ---------- Aloldalak tartalma ---------- */

a.card { display: block; color: inherit; text-decoration: none; }
.card .excerpt { margin: 8px 0 0; font-size: 14px; color: var(--muted); line-height: 1.5; }
.grid.posts .card .thumb { aspect-ratio: 4 / 3; }
.grid.posts .card .body { text-align: left; }

.back { margin: 0 0 24px; font-size: 14px; display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; }
.back a { font-weight: 700; text-decoration: none; }
.back time { color: var(--muted); }
.role-badge { margin: -8px 0 24px; color: var(--muted); font-weight: 600; }

.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 32px; justify-content: center; }
.tag {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  border: 1px solid var(--accent);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  color: var(--accent);
}
.tag.on, .tag:hover { background: var(--accent); color: #ffffff; }

.content { overflow-wrap: anywhere; }
.content h2 { font-size: 24px; margin: 32px 0 12px; }
.content h3 { font-size: 20px; margin: 28px 0 10px; }
.content h4 { font-size: 17px; margin: 24px 0 8px; }
.content img { height: auto; margin: 12px auto; border-radius: 4px; }
.content table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 14px; display: block; overflow-x: auto; }
.content td, .content th { border: 1px solid var(--border); padding: 6px 10px; text-align: left; vertical-align: top; }
.content iframe { width: 100%; aspect-ratio: 16 / 9; height: auto; border: 0; }
.content blockquote { margin: 16px 0; padding: 8px 16px; border-left: 3px solid var(--accent); background: var(--section-alt); }

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 10px;
  margin: 20px 0;
}
.gallery a { display: block; aspect-ratio: 1 / 1; overflow: hidden; border-radius: 4px; background: #e9e4e0; }
.gallery img { width: 100%; height: 100%; object-fit: cover; margin: 0; transition: transform .3s; }
.gallery a:hover img { transform: scale(1.04); }

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, .92);
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 94vw; max-height: 90vh; object-fit: contain; }
.lightbox button {
  position: absolute;
  background: none;
  border: 0;
  color: #ffffff;
  font-size: 40px;
  line-height: 1;
  padding: 12px 16px;
  cursor: pointer;
}
.lightbox .lb-close { top: 8px; right: 8px; }
.lightbox .lb-prev { left: 4px; top: 50%; transform: translateY(-50%); }
.lightbox .lb-next { right: 4px; top: 50%; transform: translateY(-50%); }

.more { text-align: center; margin-top: 32px; }

@media (max-width: 900px) {
  .gallery { grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 6px; }
  .page-header { padding: 60px 16px 40px; }
}

/* Képvédelem: nincs kijelölés, húzás és iOS/Android hosszú érintéses „Kép mentése” menü */
img {
  -webkit-user-drag: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}
.gallery a, .thumb, .lightbox { -webkit-touch-callout: none; user-select: none; -webkit-user-select: none; }
