/* =====================================================
   Berde Áron Közgazdasági Líceum — modern arculat
   ===================================================== */

:root {
  --green-950: #0e2a22;
  --green-900: #14342b;
  --green-800: #1b4638;
  --green-700: #1e5741;
  --green-600: #2a7256;
  --green-100: #e2efe8;
  --green-50:  #eef6f1;
  --gold-500:  #c8952f;
  --gold-400:  #d9a941;
  --gold-100:  #f6ecd8;
  --cream:     #faf8f3;
  --white:     #ffffff;
  --ink:       #1c2823;
  --ink-soft:  #4c5c54;
  --line:      #e4e1d8;
  --radius:    16px;
  --radius-lg: 24px;
  --shadow-sm: 0 1px 3px rgba(20, 52, 43, .07), 0 1px 2px rgba(20, 52, 43, .05);
  --shadow-md: 0 10px 30px -12px rgba(20, 52, 43, .22);
  --shadow-lg: 0 24px 60px -20px rgba(20, 52, 43, .30);
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16.5px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  color: var(--green-900);
  margin: 0 0 .5em;
  text-wrap: balance;
}

h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1em; }

a { color: var(--green-700); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--green-600); }

.container {
  width: min(1160px, 100% - 2.5rem);
  margin-inline: auto;
}

.section { padding: clamp(3.2rem, 7vw, 5.5rem) 0; }
.section.alt { background: var(--white); border-block: 1px solid var(--line); }
.section.dark { background: var(--green-900); color: #dfe9e3; }
.section.dark h2, .section.dark h3 { color: var(--white); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold-500);
  margin-bottom: 1rem;
}
.eyebrow::before {
  content: "";
  width: 26px; height: 2px;
  background: var(--gold-400);
  border-radius: 2px;
}

.section-head { max-width: 720px; margin-bottom: clamp(1.8rem, 4vw, 3rem); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .eyebrow { justify-content: center; }
.section-head p { color: var(--ink-soft); font-size: 1.05rem; }

.lead { font-size: 1.12rem; color: var(--ink-soft); }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(250, 248, 243, .88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .25s ease;
}
.site-header.scrolled { box-shadow: var(--shadow-sm); }

.site-header .container { width: min(1400px, 100% - 2.5rem); }

.header-inner {
  display: flex;
  align-items: center;
  gap: 1.6rem;
  padding: .8rem 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: .85rem;
  text-decoration: none;
  color: var(--green-900);
  margin-right: auto;
}
.brand-logo {
  height: 54px;
  width: auto;
  flex: none;
  display: block;
}
.brand-name {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
  gap: .1rem;
}
.brand-name strong {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  white-space: nowrap;
}
.brand-name span {
  font-size: .7rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-soft);
  white-space: nowrap;
}

.main-nav { display: flex; align-items: center; gap: .3rem; }
.main-nav .home-link { display: none; }
.main-nav a {
  padding: .55rem .8rem;
  border-radius: 10px;
  font-size: .89rem;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
  transition: background .15s ease, color .15s ease;
}
.main-nav a:hover { background: var(--green-50); color: var(--green-800); }
.main-nav a.active { background: var(--green-100); color: var(--green-800); font-weight: 600; }

.lang-switch {
  display: flex;
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
  font-size: .8rem;
  font-weight: 700;
  flex: none;
}
.lang-switch a {
  padding: .34rem .7rem;
  text-decoration: none;
  color: var(--ink-soft);
  background: var(--white);
}
.lang-switch a.on {
  background: var(--green-800);
  color: var(--white);
}

.nav-toggle {
  display: none;
  flex: none;
  width: 44px; height: 44px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--white);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  gap: 4px;
  flex-direction: column;
}
.nav-toggle span {
  width: 20px; height: 2px;
  background: var(--green-900);
  border-radius: 2px;
  transition: transform .25s ease, opacity .2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  isolation: isolate;
  background: linear-gradient(150deg, var(--green-950) 0%, var(--green-800) 65%, var(--green-700) 100%);
  color: #e8f0eb;
  overflow: hidden;
}

/* váltakozó háttérképek lassú zoommal */
.hero-slides {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}
.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 45%;
  opacity: 0;
  transform: scale(1.04);
  animation: heroKenBurns 40s linear infinite;
  will-change: opacity, transform;
}
.hero-slide:nth-child(1) { animation-delay: 0s; }
.hero-slide:nth-child(2) { animation-delay: 10s; }
.hero-slide:nth-child(3) { animation-delay: 20s; }
.hero-slide:nth-child(4) { animation-delay: 30s; }

@keyframes heroKenBurns {
  0%   { opacity: 0; transform: scale(1.04); }
  4%   { opacity: 1; }
  25%  { opacity: 1; }
  29%  { opacity: 0; }
  100% { opacity: 0; transform: scale(1.16); }
}

/* sötét fátyol a képek fölött, hogy a szöveg olvasható maradjon */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(1100px 500px at 85% -10%, rgba(217, 169, 65, .16), transparent 60%),
    linear-gradient(150deg, rgba(14, 42, 34, .86) 0%, rgba(27, 70, 56, .70) 55%, rgba(30, 87, 65, .52) 100%);
  pointer-events: none;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cpath d='M60 10c4 18 14 28 32 32-18 4-28 14-32 32-4-18-14-28-32-32 18-4 28-14 32-32z' fill='%23ffffff' fill-opacity='.025'/%3E%3C/svg%3E");
  pointer-events: none;
}
.hero-inner {
  position: relative;
  z-index: 3;
  padding: clamp(3.6rem, 9vw, 7rem) 0 clamp(3rem, 7vw, 5.5rem);
  max-width: 760px;
}
.hero h1 { color: var(--white); margin-bottom: .4em; }
.hero .eyebrow { color: var(--gold-400); }
.hero p.lead { color: #c4d6cb; max-width: 58ch; }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .9rem;
  margin-top: 2rem;
}

.page-hero {
  background:
    radial-gradient(900px 320px at 90% 0%, rgba(217, 169, 65, .14), transparent 60%),
    linear-gradient(150deg, var(--green-950), var(--green-800));
  color: #e8f0eb;
}
.page-hero .hero-inner { padding: clamp(2.8rem, 6vw, 4.5rem) 0; }
.page-hero h1 { color: var(--white); }
.page-hero p.lead { color: #c4d6cb; }


/* ---------- Napló (külső e-napló) gomb ---------- */
.btn-naplo {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  flex: none;
  padding: .5rem .95rem;
  border-radius: 999px;
  background: linear-gradient(140deg, var(--gold-400), var(--gold-500));
  color: var(--green-950);
  font-weight: 700;
  font-size: .88rem;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 6px 16px -8px rgba(200,149,47,.6);
  transition: transform .15s ease, box-shadow .2s ease;
}
.btn-naplo:hover { transform: translateY(-2px); color: var(--green-950); box-shadow: 0 10px 22px -8px rgba(200,149,47,.7); }
.btn-naplo svg { width: 16px; height: 16px; }
.main-nav .naplo-link { display: none; }
@media (max-width: 1280px) {
  .btn-naplo { display: none; }
  .main-nav .naplo-link {
    display: flex;
    align-items: center;
    gap: .5rem;
    color: var(--gold-500) !important;
    font-weight: 700;
    border-top: 1px solid var(--line);
    margin-top: .4rem;
    padding-top: .9rem;
  }
  .main-nav .naplo-link svg { width: 18px; height: 18px; }
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  padding: .8rem 1.5rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: .95rem;
  text-decoration: none;
  border: 1.5px solid transparent;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
  cursor: pointer;
}
.btn:hover { transform: translateY(-2px); }
.btn-gold {
  background: linear-gradient(140deg, var(--gold-400), var(--gold-500));
  color: var(--green-950);
  box-shadow: 0 10px 24px -10px rgba(200, 149, 47, .6);
}
.btn-gold:hover { color: var(--green-950); }
.btn-outline-light {
  border-color: rgba(255, 255, 255, .35);
  color: var(--white);
}
.btn-outline-light:hover { background: rgba(255, 255, 255, .1); color: var(--white); }
.btn-green {
  background: var(--green-800);
  color: var(--white);
  box-shadow: var(--shadow-sm);
}
.btn-green:hover { background: var(--green-700); color: var(--white); }
.btn-outline {
  border-color: var(--green-700);
  color: var(--green-800);
}
.btn-outline:hover { background: var(--green-50); }

/* ---------- Stats band ---------- */

.stats-band { background: var(--green-900); }
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: .8rem;
}
.stat {
  background: rgba(255,255,255,.045);
  border: 1px solid rgba(255,255,255,.09);
  border-radius: var(--radius);
  padding: 1.6rem 1.4rem;
  text-align: center;
}
.stat b {
  display: block;
  font-family: var(--font-display);
  font-size: 2.1rem;
  font-weight: 700;
  color: var(--gold-400);
}
.stat span { font-size: .86rem; color: #b9cdc1; letter-spacing: .03em; }

/* ---------- Cards & grids ---------- */

.grid { display: grid; gap: 1.4rem; }
.grid.cols-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid.cols-3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid.cols-4 { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.7rem 1.6rem;
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .25s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.card h3 { margin-bottom: .4em; }
.card p { color: var(--ink-soft); font-size: .95rem; margin-bottom: 0; }
.card .card-kicker {
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gold-500);
  margin-bottom: .6rem;
}

.card-icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  background: var(--green-100);
  color: var(--green-800);
  display: grid;
  place-items: center;
  margin-bottom: 1.1rem;
}
.card-icon svg { width: 26px; height: 26px; }

.chip {
  display: inline-block;
  padding: .28rem .75rem;
  border-radius: 999px;
  background: var(--green-50);
  border: 1px solid var(--green-100);
  color: var(--green-800);
  font-size: .8rem;
  font-weight: 600;
  margin: 0 .3rem .45rem 0;
}
.chip.gold { background: var(--gold-100); border-color: #eddfc0; color: #8a6417; }

/* ---------- Notice / highlight ---------- */

.notice {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1.3rem;
  background: linear-gradient(120deg, var(--green-800), var(--green-700));
  color: #e6efe9;
  border-radius: var(--radius-lg);
  padding: 1.7rem 2rem;
  box-shadow: var(--shadow-md);
}
.notice h3 { color: var(--white); margin: 0 0 .25em; }
.notice p { margin: 0; color: #c4d6cb; font-size: .95rem; }
.notice-icon {
  width: 56px; height: 56px;
  flex: none;
  border-radius: 16px;
  background: rgba(217, 169, 65, .18);
  color: var(--gold-400);
  display: grid;
  place-items: center;
}
.notice-icon svg { width: 28px; height: 28px; }
@media (max-width: 720px) {
  .notice { grid-template-columns: 1fr; text-align: left; }
}

/* ---------- News list ---------- */

.news-item {
  display: flex;
  gap: 1.2rem;
  align-items: flex-start;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.3rem 1.4rem;
  box-shadow: var(--shadow-sm);
}
.news-date {
  flex: none;
  text-align: center;
  background: var(--green-50);
  border: 1px solid var(--green-100);
  border-radius: 12px;
  padding: .5rem .8rem;
  min-width: 72px;
}
.news-date b { display: block; font-size: 1.25rem; color: var(--green-800); font-family: var(--font-display); }
.news-date span { font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-soft); }
.news-item h3 { font-size: 1.05rem; font-family: var(--font-body); font-weight: 700; margin-bottom: .25em; }
.news-item p { font-size: .92rem; color: var(--ink-soft); margin: 0; }
.news-list { display: grid; gap: 1rem; }

/* ---------- Documents ---------- */

.doc-group { margin-bottom: 2.4rem; }
.doc-group h3 {
  display: flex;
  align-items: center;
  gap: .6rem;
  padding-bottom: .6rem;
  border-bottom: 2px solid var(--green-100);
  margin-bottom: 1rem;
}
.doc-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.doc-list li {
  display: flex;
  align-items: center;
  gap: .85rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: .8rem 1.1rem;
  font-size: .95rem;
}
.doc-list li .doc-badge {
  flex: none;
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .05em;
  color: #b0403a;
  background: #fbeae9;
  border: 1px solid #f3d4d2;
  border-radius: 7px;
  padding: .22rem .5rem;
}
.doc-list li .doc-soon {
  margin-left: auto;
  flex: none;
  font-size: .74rem;
  font-weight: 600;
  color: var(--ink-soft);
  background: var(--cream);
  border: 1px dashed var(--line);
  border-radius: 999px;
  padding: .25rem .7rem;
  white-space: nowrap;
}

/* ---------- Timeline ---------- */

.timeline { position: relative; margin: 0; padding: 0 0 0 1.6rem; list-style: none; }
.timeline::before {
  content: "";
  position: absolute;
  left: 5px; top: 6px; bottom: 6px;
  width: 2px;
  background: linear-gradient(var(--green-100), var(--green-600));
  border-radius: 2px;
}
.timeline li { position: relative; padding-bottom: 1.5rem; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before {
  content: "";
  position: absolute;
  left: -1.6rem; top: .42em;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--gold-400);
  box-shadow: 0 0 0 4px var(--gold-100);
}
.timeline b {
  font-family: var(--font-display);
  font-size: 1.12rem;
  color: var(--green-800);
  display: block;
}
.timeline p { margin: .15em 0 0; color: var(--ink-soft); font-size: .95rem; }

/* ---------- Feature list ---------- */

.feature-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .7rem; }
.feature-list li {
  display: flex;
  gap: .8rem;
  align-items: flex-start;
  font-size: .98rem;
}
.feature-list li::before {
  content: "";
  flex: none;
  width: 22px; height: 22px;
  margin-top: .12em;
  border-radius: 50%;
  background: var(--green-100) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231e5741' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 13l4 4L19 7'/%3E%3C/svg%3E") center/12px no-repeat;
}

/* ---------- Ordered steps (docs) ---------- */

.steps { list-style: none; counter-reset: step; margin: 0; padding: 0; display: grid; gap: .7rem; }
.steps li {
  counter-increment: step;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: .95rem 1.15rem;
  font-size: .96rem;
}
.steps li::before {
  content: counter(step);
  flex: none;
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--green-800);
  color: var(--gold-400);
  font-weight: 700;
  font-size: .9rem;
  display: grid;
  place-items: center;
  margin-top: .05em;
}
.steps li small { display: block; color: var(--ink-soft); }

/* ---------- Schedule table ---------- */

.sched {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--line);
}
.sched th, .sched td { padding: .85rem 1.2rem; text-align: left; }
.sched thead th {
  background: var(--green-800);
  color: var(--white);
  font-size: .82rem;
  letter-spacing: .07em;
  text-transform: uppercase;
}
.sched tbody tr + tr td { border-top: 1px solid var(--line); }
.sched td b { color: var(--green-800); }

/* ---------- Teachers ---------- */

.staff-group {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.4rem 1.5rem;
  box-shadow: var(--shadow-sm);
}
.staff-group h3 {
  font-size: .82rem;
  font-family: var(--font-body);
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--gold-500);
  margin-bottom: .8rem;
}
.staff-group ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .4rem; }
.staff-group li { font-size: .97rem; font-weight: 500; }

.director-card {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  background: linear-gradient(120deg, var(--green-800), var(--green-700));
  border-radius: var(--radius-lg);
  padding: 1.8rem 2rem;
  color: #dcE8e1;
  box-shadow: var(--shadow-md);
  margin-bottom: 2.2rem;
}
.director-card .avatar {
  width: 74px; height: 74px;
  flex: none;
  border-radius: 50%;
  background: rgba(217, 169, 65, .2);
  color: var(--gold-400);
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 700;
  border: 2px solid rgba(217, 169, 65, .5);
}
.director-card b { display: block; font-size: 1.3rem; color: var(--white); font-family: var(--font-display); }
.director-card span { font-size: .85rem; letter-spacing: .1em; text-transform: uppercase; color: var(--gold-400); }

/* ---------- Media placeholder ---------- */

.media-ph {
  border-radius: var(--radius);
  background:
    repeating-linear-gradient(-45deg, rgba(30, 87, 65, .05) 0 12px, transparent 12px 24px),
    linear-gradient(140deg, var(--green-50), var(--green-100));
  border: 1px dashed #bcd4c6;
  min-height: 200px;
  display: grid;
  place-items: center;
  color: var(--green-700);
  font-size: .85rem;
  font-weight: 600;
  text-align: center;
  padding: 1rem;
}
.media-ph svg { width: 34px; height: 34px; opacity: .55; margin-bottom: .5rem; }
.media-ph .ph-inner { display: grid; justify-items: center; }

/* ---------- Photos & gallery ---------- */

.photo-frame {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  grid-auto-rows: 210px;
  gap: 1.2rem;
}
.gallery-grid figure {
  margin: 0;
  height: 100%;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  position: relative;
  background: var(--green-100);
}
.gallery-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .45s ease;
}
.gallery-grid figure:hover img { transform: scale(1.045); }
.gallery-grid figcaption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 1.6rem 1rem .8rem;
  background: linear-gradient(transparent, rgba(14, 42, 34, .82));
  color: #eef4f0;
  font-size: .85rem;
  font-weight: 600;
  letter-spacing: .02em;
}
.gallery-grid .wide { grid-column: span 2; grid-row: span 2; }
@media (max-width: 680px) {
  .gallery-grid .wide { grid-column: span 1; grid-row: span 1; }
}

/* ---------- Blog ---------- */

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: 1.5rem;
}
.blog-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform .2s ease, box-shadow .25s ease;
}
.blog-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.blog-thumb {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: linear-gradient(140deg, var(--green-50), var(--green-100));
  display: grid;
  place-items: center;
  color: var(--green-600);
}
.blog-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .45s ease;
}
.blog-card:hover .blog-thumb img { transform: scale(1.04); }
.blog-thumb svg { width: 42px; height: 42px; opacity: .5; }
.blog-body {
  padding: 1.2rem 1.3rem 1.4rem;
  display: flex;
  flex-direction: column;
  gap: .55rem;
  flex: 1;
}
.blog-date {
  font-size: .74rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--gold-500);
}
.blog-card h3 { font-size: 1.07rem; margin: 0; line-height: 1.35; }
.blog-card .excerpt { font-size: .92rem; color: var(--ink-soft); margin: 0; }
.blog-card details { font-size: .92rem; color: var(--ink-soft); }
.blog-card details p { margin: .6em 0 0; }
.blog-card summary {
  cursor: pointer;
  color: var(--green-700);
  font-weight: 600;
  list-style: none;
  user-select: none;
}
.blog-card summary::-webkit-details-marker { display: none; }
.blog-card summary::after { content: " ↓"; font-size: .85em; }
.blog-card details[open] summary::after { content: " ↑"; }

.year-head {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  margin: 3.2rem 0 1.6rem;
}
.year-head:first-of-type { margin-top: 0; }
.year-head h2 { margin: 0; }
.year-head::after { content: ""; flex: 1; height: 2px; background: var(--green-100); border-radius: 2px; }


/* ---------- Dokumentumtár (linkes) ---------- */

.doc-list li { padding: 0; }
.doc-list li a.doc-link {
  display: flex;
  align-items: center;
  gap: .85rem;
  width: 100%;
  padding: .8rem 1.1rem;
  text-decoration: none;
  color: var(--ink);
  border-radius: 12px;
  transition: background .15s ease, color .15s ease;
}
.doc-list li a.doc-link:hover { background: var(--green-50); color: var(--green-800); }
.doc-list li a.doc-link .doc-name { flex: 1; min-width: 0; }
.doc-list li a.doc-link:hover .doc-name { text-decoration: underline; text-underline-offset: 3px; }
.doc-size {
  margin-left: auto;
  flex: none;
  font-size: .78rem;
  font-weight: 600;
  color: var(--ink-soft);
  white-space: nowrap;
}
.doc-badge.xls { color: #1d6f42; background: #e8f5ee; border-color: #cfe8db; }
.doc-badge.ppt { color: #b4531f; background: #fdefe6; border-color: #f5d9c6; }
.doc-badge.docx { color: #21578f; background: #e9f1fa; border-color: #cfe0f2; }

.doc-count {
  font-size: .78rem;
  font-weight: 700;
  color: var(--ink-soft);
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: .18rem .6rem;
  margin-left: .2rem;
}

.doc-group > details > summary {
  cursor: pointer;
  list-style: none;
  color: var(--green-700);
  font-weight: 600;
  font-size: .92rem;
  padding: .5rem 0;
  user-select: none;
}
.doc-group > details > summary::-webkit-details-marker { display: none; }
.doc-group > details > summary::after { content: " ↓"; }
.doc-group > details[open] > summary::after { content: " ↑"; }
.doc-group > details > .doc-list { margin-top: .5rem; }

/* videó */
.video-frame {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  background: #000;
}
.video-frame video { width: 100%; display: block; }

/* ---------- Project cards ---------- */

.project-hero {
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 5px solid var(--gold-400);
  border-radius: var(--radius-lg);
  padding: 2rem 2.2rem;
  box-shadow: var(--shadow-md);
  margin-bottom: 2.5rem;
}
.project-meta {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin: .8rem 0 1.2rem;
}

/* ---------- Contact ---------- */

.contact-card {
  display: flex;
  gap: 1.1rem;
  align-items: flex-start;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem 1.6rem;
  box-shadow: var(--shadow-sm);
}
.contact-card .card-icon { margin: 0; }
.contact-card b { display: block; margin-bottom: .2rem; }
.contact-card a { font-weight: 600; }
.contact-card p { margin: 0; color: var(--ink-soft); font-size: .95rem; }

.map-frame {
  border: 0;
  width: 100%;
  height: 420px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  filter: saturate(.92);
}

/* ---------- CTA band ---------- */

.cta-band {
  background:
    radial-gradient(700px 300px at 15% 120%, rgba(217, 169, 65, .18), transparent 60%),
    linear-gradient(140deg, var(--green-950), var(--green-800));
  border-radius: var(--radius-lg);
  color: #dfe9e3;
  padding: clamp(2.2rem, 5vw, 3.6rem);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.cta-band h2 { color: var(--white); margin: 0 0 .3em; }
.cta-band p { margin: 0; color: #bfd2c6; }

/* ---------- Footer ---------- */

.site-footer {
  background: var(--green-950);
  color: #a8bfb2;
  padding: 3.5rem 0 0;
  margin-top: clamp(3rem, 7vw, 5rem);
  font-size: .93rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 2.5rem;
  padding-bottom: 2.5rem;
}
.site-footer h4 {
  color: var(--white);
  font-family: var(--font-body);
  font-size: .8rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.site-footer a { color: #cfdcd4; text-decoration: none; }
.site-footer a:hover { color: var(--gold-400); }
.footer-brand { display: flex; align-items: center; gap: .9rem; margin-bottom: 1rem; }
.footer-brand .brand-logo { height: 60px; }
.footer-brand b { color: var(--white); font-family: var(--font-display); font-size: 1.05rem; line-height: 1.2; display: block; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 1.3rem 0;
  display: flex;
  flex-wrap: wrap;
  gap: .8rem;
  justify-content: space-between;
  font-size: .82rem;
  color: #7d968a;
}


/* ---------- Cookie banner ---------- */
.cookie-banner {
  position: fixed;
  left: 50%;
  bottom: 1.1rem;
  transform: translateX(-50%);
  z-index: 200;
  width: min(760px, calc(100% - 1.6rem));
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 1.25rem 1.4rem;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem 1.4rem;
  align-items: center;
  animation: cookieIn .4s ease both;
}
@keyframes cookieIn { from { opacity: 0; transform: translate(-50%, 20px); } to { opacity: 1; transform: translate(-50%, 0); } }
.cookie-banner p { margin: 0; font-size: .92rem; color: var(--ink-soft); }
.cookie-banner p strong { color: var(--green-900); }
.cookie-banner a { color: var(--green-700); font-weight: 600; }
.cookie-actions { display: flex; gap: .6rem; flex-wrap: wrap; justify-content: flex-end; }
.cookie-actions .btn { padding: .6rem 1.1rem; font-size: .88rem; }
.btn-ghost {
  background: transparent;
  border: 1.5px solid var(--line);
  color: var(--green-800);
}
.btn-ghost:hover { background: var(--green-50); }
@media (max-width: 640px) {
  .cookie-banner { grid-template-columns: 1fr; gap: .9rem; }
  .cookie-actions { justify-content: stretch; }
  .cookie-actions .btn { flex: 1; justify-content: center; }
}

/* ---------- Jogi (legal) szöveg ---------- */
.legal h2 { font-size: 1.25rem; margin: 2rem 0 .6rem; }
.legal h2:first-of-type { margin-top: 1rem; }
.legal p { color: var(--ink); }
.legal .feature-list { margin: .8rem 0; }
.legal a { font-weight: 500; }

/* ---------- Térkép helyőrző (consent előtt) ---------- */
.map-consent {
  border-radius: var(--radius-lg);
  background:
    repeating-linear-gradient(-45deg, rgba(30,87,65,.05) 0 12px, transparent 12px 24px),
    linear-gradient(140deg, var(--green-50), var(--green-100));
  border: 1px dashed #bcd4c6;
  min-height: 420px;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 2rem;
}
.map-consent .ph-inner { max-width: 420px; }
.map-consent svg { width: 40px; height: 40px; color: var(--green-700); opacity: .6; margin-bottom: .8rem; }
.map-consent p { color: var(--ink-soft); font-size: .95rem; margin: 0 0 1.1rem; }


/* ---------- Összecsukható dokumentum-kategóriák ---------- */
details.doc-cat {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: .8rem;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
details.doc-cat > summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  gap: .7rem;
  padding: 1rem 1.3rem;
  font-family: var(--font-display);
  font-size: 1.12rem;
  font-weight: 600;
  color: var(--green-900);
  transition: background .15s ease;
}
details.doc-cat > summary:hover { background: var(--green-50); }
details.doc-cat > summary::-webkit-details-marker { display: none; }
details.doc-cat > summary::after {
  content: "";
  margin-left: auto;
  flex: none;
  width: 20px; height: 20px;
  background: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 24 24%27 fill=%27none%27 stroke=%27%231e5741%27 stroke-width=%272.2%27 stroke-linecap=%27round%27 stroke-linejoin=%27round%27%3E%3Cpath d=%27M6 9l6 6 6-6%27/%3E%3C/svg%3E") center/contain no-repeat;
  transition: transform .25s ease;
}
details.doc-cat[open] > summary::after { transform: rotate(180deg); }
details.doc-cat > summary .doc-count {
  font-family: var(--font-body);
  font-size: .78rem;
  font-weight: 700;
  color: var(--ink-soft);
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: .12rem .6rem;
}
details.doc-cat .doc-list { padding: .2rem 1.3rem 1.1rem; }
details.doc-cat[open] > summary { border-bottom: 1px solid var(--line); }

/* ---------- Reveal animation ---------- */

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
  .hero-slide { animation: none; transform: none; opacity: 0; }
  .hero-slide:nth-child(1) { opacity: 1; }
}

/* ---------- Responsive ---------- */

@media (max-width: 1280px) {
  .nav-toggle { display: inline-flex; }
  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    padding: .8rem 1.2rem 1.2rem;
    gap: .2rem;
  }
  .main-nav.open { display: flex; }
  .main-nav .home-link { display: block; }
  .main-nav a { font-size: 1rem; padding: .75rem .9rem; }
}

@media (max-width: 940px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 700px) {
  .brand-name strong { white-space: normal; font-size: .95rem; }
  .brand-logo { height: 46px; }
}

@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; gap: 1.8rem; }
  .brand-name span { display: none; }
  .sched th, .sched td { padding: .7rem .8rem; font-size: .9rem; }
}
