/*
Theme Name: mig-tema
Author: Te
Version: 1.16
Text Domain: mig-tema
*/

/* ---------------------------------------
   Alap változók, reset
---------------------------------------- */
:root {
  --container: 1200px;

  /* Színek - Modernebb homokszín és vörösesbarna paletta */
  --brown: #8B4513;
  /* meleg saddlebrown – fő szín, gomb */
  --brown-700: #6B3410;
  /* hover sötétebb barna */
  --brown-light: #A0522D;
  /* világosabb sienna árnyalat */
  --ink: #2C1810;
  /* mély barna szöveg */
  --muted: #8B7355;
  /* meleg szürkesbarna meta */
  --card: #ffffff;
  /* kártya háttér */
  --ring: #E8D5C4;
  /* meleg bézs keret */
  --sand-50: #FFF8F0;
  /* krémszerű világos háttér */
  --sand-100: #F5E6D3;
  /* meleg homok árnyalat */
  --sand-200: #E8D5C4;
  /* mélyebb bézs */
  --terracotta: #C4704F;
  /* terrakotta árnyalat akcentushoz */
  --terracotta-light: #D4846A;
  /* világosabb terrakotta */
}

html {
  box-sizing: border-box;
  scroll-behavior: smooth;
}

*,
*::before,
*::after {
  box-sizing: inherit;
}

body {
  margin: 0;
  font-family: "Open Sans", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  line-height: 1.6;
  color: var(--ink);
  background: var(--sand-50);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: #0f62fe;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* ---------------------------------------
   Fejléc + navigáció
---------------------------------------- */
/* ==============================================
   Tiszta háttér + egyedi épület-minta elválasztó
   - Modern, olvasható fejléc
   - Karakteres, egyedi elválasztó sáv
   ============================================== */
.header {
  position: relative;
  background: var(--sand-50);
  border-bottom: none;
  padding-bottom: 20px; /* hely a mintának */
}

/* Nincs overlay */
.header::before {
  display: none;
}

.header>* {
  position: relative;
  z-index: 2;
  /* tartalom a fátyol és díszítés fölött */
}

.header__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: .75rem 1rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.header__logo img {
  height: 56px;
  width: auto;
  transition: transform 0.3s ease, filter 0.3s ease;
  cursor: pointer;
}

.header__logo img:hover {
  transform: scale(1.08) rotate(2deg);
  filter: drop-shadow(0 4px 8px rgba(139, 69, 19, 0.25));
}

.header__brand {
  display: flex;
  flex-direction: column;
  gap: .125rem;
}

/* Elérhetőségek link a header-ben */
/* Header belső sor: logo+brand | actions (nav+contact+teams) */
.header > div {
  flex-wrap: wrap;
}

.header__actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-left: auto;
  flex-wrap: wrap;
}

/* Keskeny nézetben az actions sor teljes szélességre törik */
@media (max-width: 860px) {
  .header > div {
    align-items: flex-start;
  }
  .header__actions {
    flex: 0 0 100%;
    margin-left: 0;
    justify-content: flex-start;
  }
}

.header__contact-link {
  margin-left: 0;
  padding: 0.5rem 1rem;
  background: var(--brown);
  color: #fff;
  font-weight: 600;
  font-size: 0.9rem;
  border-radius: 9999px;
  text-decoration: none;
  transition: background 0.2s ease;
}

.header__contact-link:hover {
  background: var(--brown-700);
  text-decoration: none;
}

.header__teams-link {
  margin-left: 0.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.4rem;
  background: #E8F4FA;
  border-radius: 6px;
  transition: all 0.2s ease;
  text-decoration: none;
}

.header__teams-link:hover {
  background: #D0E9F5;
  transform: scale(1.05);
}

.header__teams-link img {
  display: block;
}

.brand__name {
  font-family: "Fira Sans", "Open Sans", Arial, sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  font-size: clamp(1.1rem, 2.2vw, 1.6rem);
  line-height: 1.1;
  color: var(--brown);
}

.brand__tagline {
  font-size: .9rem;
  color: #6b7280;
}

.nav {
  position: relative;
  z-index: 10;
  /* magasabb mint a header::after (z-index: 2) */
}

/* Főmenü - csak top level elemek látszanak */
.nav > ul {
  display: flex;
  gap: 1rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.nav > ul > li {
  position: relative;
}

/* Láthatatlan bridge a főmenü és almenü között - megakadályozza a hover megszakadását */
.nav > ul > li::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  height: 10px;
  display: none;
}

.nav > ul > li:hover::after {
  display: block;
}

.nav a {
  font-weight: 600;
  color: var(--ink);
  display: block;
  padding: 0.5rem 1rem;
  transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

/* Főmenü elemek kiemelése */
.nav > ul > li > a {
  background-color: rgba(245, 240, 232, 0.7);
  border: 1px solid rgba(139, 90, 43, 0.2);
  border-radius: 0.375rem;
}

.nav a:hover {
  color: var(--brown);
  text-decoration: none;
}

.nav > ul > li > a:hover {
  background-color: rgba(245, 240, 232, 1);
  border-color: rgba(139, 90, 43, 0.5);
}

/* Almenü (sub-menu) - alapértelmezetten rejtve */
.nav ul ul {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  border: 1px solid var(--ring);
  border-radius: 0.5rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  min-width: 220px;
  padding: 0.5rem 0;
  margin-top: 0;
  z-index: 1000;
  list-style: none;
}

/* Utolsó menüpont almenüje jobbra igazítva, hogy ne lógjon ki */
.nav > ul > li:last-child > ul {
  left: auto;
  right: 0;
}

/* Almenü megjelenítése hover-nél (2. szint) */
.nav > ul > li:hover > ul {
  display: block;
}

/* 3. szintű almenü (kártyák Diákélet/Alapítványaink alatt) */
.nav ul ul ul {
  top: 0;
  left: 100%;
  margin-top: 0;
}

.nav ul ul li:hover > ul {
  display: block;
}

/* Almenü elemek */
.nav ul ul li {
  position: relative;
}

.nav ul ul a {
  padding: 0.75rem 1.25rem;
  color: var(--ink);
  white-space: nowrap;
  border-bottom: 1px solid var(--ring);
}

.nav ul ul li:last-child a {
  border-bottom: none;
}

.nav ul ul a:hover {
  background-color: var(--sand-50);
  color: var(--brown);
}

/* ---------------------------------------
   Hero – tégla minta háttér
---------------------------------------- */
.hero {
  position: relative;
  background-color: #8b6a4d;
  background-image: url("assets/hero/homlokzat.webp");
  background-repeat: repeat;
  /* background-size: 38px 18px; */

  color: var(--brown);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4rem 1.5rem 3rem;
  overflow: visible;
}

/* Világos overlay az olvashatóságért */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(244, 234, 224, 0.55);
  z-index: 0;
}

.hero__inner {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  width: 100%;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

@media (min-width: 1024px) {
  .hero__inner {
    flex-direction: row;
    align-items: stretch;
    gap: 2rem;
  }
}

.hero__content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.hero__images-left,
.hero__images-right {
  display: none;
}

@media (min-width: 1024px) {
  .hero__images-left,
  .hero__images-right {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    flex-shrink: 0;
    position: relative;
    align-items: center;
  }

  .hero__capital {
    width: 157px;
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 1;
  }

  .hero__capital img {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
    opacity: 0.85;
  }

  .hero__image {
    width: 101px;
    position: relative;
    z-index: 0;
  }

  .hero__image img {
    width: 100%;
    height: auto;
    border-radius: 0.5rem;
    border: 2px solid rgba(0, 0, 0, 0.2);
    box-shadow:
      inset 4px 4px 12px rgba(0, 0, 0, 0.6),
      inset -4px -4px 12px rgba(0, 0, 0, 0.3);
    opacity: 0.75;
  }

  .hero__images-left {
    margin-right: 0;
  }

  .hero__images-right {
    margin-left: 0;
  }
}

@media (min-width: 1280px) {
  .hero__capital {
    width: 191px;
  }

  .hero__image {
    width: 122px;
  }

  .hero__images-left {
    margin-right: 0;
  }

  .hero__images-right {
    margin-left: 0;
  }
}

/* Cím és logó dobozon belül - modern átlátszó */
.hero__title-box {
  background: rgba(255, 248, 240, 0.7);
  border: 1px solid var(--ring);
  border-radius: .75rem;
  padding: 2rem 3rem;
  box-shadow: 0 1px 8px rgba(0, 0, 0, 0.03);
  position: relative;
  z-index: 1;
}

.hero__logo img {
  height: 96px;
  width: auto;
  margin: 0 auto 1rem;
  transition: transform 0.3s ease, filter 0.3s ease;
  cursor: pointer;
}

.hero__logo img:hover {
  transform: scale(1.08) rotate(2deg);
  filter: drop-shadow(0 6px 12px rgba(139, 69, 19, 0.3));
}

.hero__title {
  font-family: "Fira Sans", "Open Sans", Arial, sans-serif;
  text-transform: uppercase;
  letter-spacing: .06em;
  font-weight: 700;
  font-size: clamp(2rem, 5vw, 3rem);
  margin: 0;
  color: #3b2f2f;
}

/* Alcím vékony barna csíkokkal */
.hero__subtitle {
  margin-top: 0.5rem;
  padding-top: 0.5rem;
  border-top: 2px solid var(--brown);
}

.hero__subtitle span {
  display: block;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--brown);
  letter-spacing: 0.04em;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--brown);
}

/* Zászlók sor */
.hero__flags {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.75rem;
}

.hero__flags a {
  display: inline-block;
  transition: transform 0.2s ease;
}

.hero__flags a:hover {
  transform: scale(1.3);
}

.hero__flags img {
  width: 16px;
  height: 12px;
  object-fit: cover;
  border-radius: 1px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
}

/* Tagline dobozon belül - modern átlátszó */
.hero__tagline-box {
  background: rgba(255, 248, 240, 0.7);
  border: 1px solid var(--ring);
  border-radius: .75rem;
  padding: 1.5rem 2rem;
  box-shadow: 0 1px 8px rgba(0, 0, 0, 0.03);
  display: flex;
  align-items: center;
  gap: 1.5rem;
  position: relative;
  z-index: 1;
}

/* Évfordulós logó a tagline box-ban */
.hero__anniversary-logo {
  flex-shrink: 0;
}

.hero__anniversary-logo img {
  height: 128px;
  width: auto;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.15));
}

.hero__tagline-box .hero__tagline {
  text-align: left;
  margin: 0;
}

/* Mobil nézetben kisebb padding */
@media (max-width: 768px) {
  .hero__title-box,
  .hero__tagline-box {
    padding: 1rem 1.25rem;
  }

  .hero__tagline-box {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1rem;
  }

  .hero__anniversary-logo img {
    height: 90px;
  }

  .hero__tagline-box .hero__tagline {
    font-size: 0.95rem;
    word-break: break-word;
    overflow-wrap: break-word;
  }
}

.hero__tagline {
  font-size: 1.1rem;
  color: #3b2f2f;
  margin: 0;
  font-weight: 600;
}

.hero__buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Hero képek kikapcsolva */
.hero--no-images .hero__images-left,
.hero--no-images .hero__images-right {
  display: none;
}

.hero--no-images .hero__title-box,
.hero--no-images .hero__tagline-box {
  width: 75%;
  margin: 0 auto;
}

/* ---------------------------------------
   Partnerlogók szekció - homokszín háttér
---------------------------------------- */
.hero-logos {
  background: var(--sand-50);
  padding: 2rem 1.5rem;
}

.hero-logos .section__title {
  text-align: left;
  max-width: var(--container);
  margin: 0 auto 1.5rem;
  padding: 1rem 1.5rem;
  background: linear-gradient(135deg, #FFF8F0 0%, #F5E6D3 100%);
  border-left: 4px solid var(--brown);
  border-radius: 0.5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.hero-logos__inner {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 2rem;
  padding: 0 1.5rem;
}

.hero-logos__inner a {
  display: inline-block;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.hero-logos__inner a:hover {
  opacity: 0.8;
  transform: translateY(-4px);
}

.hero-logos__inner img {
  height: 160px;
  width: auto;
  display: block;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.15));
  object-fit: contain;
  border-radius: 8px;
  background: #fff;
  padding: 0.5rem;
}

/* Diákélet kártyák */
.diakelet-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.diakelet-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.diakelet-card__link {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.diakelet-card__image {
  width: 100%;
  overflow: hidden;
}

.diakelet-card__image img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  display: block;
  filter: none;
  padding: 0;
  background: none;
  border-radius: 0;
  transition: transform 0.3s ease;
}

.diakelet-card:hover .diakelet-card__image img {
  transform: scale(1.05);
}

.diakelet-card__title {
  padding: 1rem;
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  color: var(--brown);
  text-align: center;
  line-height: 1.4;
}

/* Single Diákélet oldal */
.diakelet-featured-image {
  margin: 2rem 0;
  text-align: center;
}

.diakelet-featured-image img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.diakelet-meta {
  margin: 2rem 0;
  padding: 1rem;
  background: var(--sand-50);
  border-left: 4px solid var(--brown);
  border-radius: 4px;
  color: var(--muted);
}

/* ---------------------------------------
   Partner kártyák - Szakmai együttműködések
--------------------------------------- */
.partners-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
}

.partner-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.partner-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.partner-card__link {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
  padding: 1.5rem;
}

.partner-card__logo {
  width: 100%;
  max-width: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.partner-card__logo img {
  width: 100%;
  height: auto;
  max-height: 120px;
  object-fit: contain;
  display: block;
  transition: transform 0.3s ease;
}

.partner-card:hover .partner-card__logo img {
  transform: scale(1.05);
}

.partner-card__title {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--brown);
  text-align: center;
  line-height: 1.4;
}

@media (max-width: 768px) {
  .partners-grid {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1.5rem;
  }

  .partner-card__logo {
    max-width: 140px;
  }

  .partner-card__logo img {
    max-height: 100px;
  }

  .partner-card__title {
    font-size: 0.85rem;
  }
}

.diakelet-navigation {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--ring);
}

/* Mobil nézetben kisebb képek */
@media (max-width: 768px) {
  .hero-logos {
    padding: 1.5rem 1rem;
  }

  .hero-logos .section__title {
    padding: 1rem;
  }

  .hero-logos__inner {
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1.5rem;
    padding: 0 1rem;
  }

  .hero-logos__inner img {
    height: 100px;
  }

  .diakelet-card__image img {
    height: 120px;
  }

  .diakelet-card__title {
    font-size: 0.9rem;
    padding: 0.75rem;
  }
}

/* ---------------------------------------
   Gombok (hero + általános) - modern
---------------------------------------- */
.btn {
  display: inline-block;
  padding: .875rem 2rem;
  border-radius: 9999px;
  background: linear-gradient(135deg, #3b2f2f 0%, #4d3f3f 100%);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  box-shadow:
    0 4px 16px rgba(59, 47, 47, 0.25),
    0 2px 4px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  border: none;
}

.btn:hover {
  background: linear-gradient(135deg, #2a2222 0%, #3d2f2f 100%);
  transform: translateY(-2px);
  box-shadow:
    0 8px 24px rgba(59, 47, 47, 0.35),
    0 4px 8px rgba(0, 0, 0, 0.15);
  text-decoration: none;
}

.btn:active {
  transform: translateY(0);
  box-shadow:
    0 2px 8px rgba(59, 47, 47, 0.3),
    0 1px 2px rgba(0, 0, 0, 0.1);
}

.btn--alt {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 2px solid rgba(59, 47, 47, 0.2);
  color: #3b2f2f;
  box-shadow:
    0 4px 16px rgba(0, 0, 0, 0.08),
    0 2px 4px rgba(0, 0, 0, 0.04);
}

.btn--alt:hover {
  background: rgba(59, 47, 47, 0.95);
  border-color: #3b2f2f;
  color: #fff;
  transform: translateY(-2px);
  box-shadow:
    0 8px 24px rgba(59, 47, 47, 0.25),
    0 4px 8px rgba(0, 0, 0, 0.1);
}

.btn--sm {
  padding: .5rem .9rem;
  font-size: .95rem;
}

.btn--teams,
.btn--kreta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn--teams img,
.btn--kreta img {
  border-radius: 4px;
  flex-shrink: 0;
}

.btn--teams {
  background: #E8F4FA;
  color: #1A5276;
}

.btn--teams:hover {
  background: #c8e4f5;
}

.btn--kreta {
  background: #385765;
  color: #fff;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

.btn--kreta img {
  width: 50px !important;
  height: auto !important;
}

.btn--kreta:hover {
  background: #2a404b;
}

/* ---------------------------------------
   Oldaltörzs, szekciók
---------------------------------------- */
.main {
  max-width: var(--container);
  margin: 0 auto;
  padding: 2rem 1rem;
  position: relative;
  z-index: 1;
}

.section {
  margin: 2rem 0;
  position: relative;
  z-index: 1;
}

.section__title {
  font-family: "Fira Sans", "Open Sans", Arial, sans-serif;
  text-transform: uppercase;
  letter-spacing: .06em;
  font-weight: 700;
  margin: 0 0 1rem;
  color: var(--brown);
  background: linear-gradient(135deg, #FFF8F0 0%, #F5E6D3 100%);
  border-left: 4px solid var(--brown);
  border-radius: 0.5rem;
  padding: 1rem 1.5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  position: relative;
  overflow: hidden;
}

/* Ikon kép a címsor végén */
.section__title .section__icon {
  position: absolute;
  right: 1.5rem;
  top: 50%;
  transform: translateY(-50%);
  width: 100px;
  height: 100px;
  object-fit: contain;
  pointer-events: none;
}

/* Mobil nézetben kisebb ikon */
@media (max-width: 768px) {
  .section__title .section__icon {
    width: 70px;
    height: 70px;
    right: 0.5rem;
  }
}

/* ---------------------------------------
   Hírek – kártyás rács
---------------------------------------- */
.news-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
  align-items: start;
}

@media (min-width:700px) {
  .news-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width:1024px) {
  .news-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.news-card {
  background: var(--card);
  border: 1px solid var(--ring);
  border-radius: .75rem;
  overflow: hidden;
  display: flex;
  font-size: 0.9rem;
  flex-direction: column;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
  box-shadow: 0 1px 8px rgba(0, 0, 0, .03);
}

.news-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, .06);
  border-color: #e9dfd8;
}

.news-card__thumb {
  display: block;
  overflow: hidden;
  aspect-ratio: 16/9;
}

.news-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.news-card__ph {
  width: 100%;
  height: 100%;
  background: #f3ede7;
}

/* Egyedi hír/poszt kiemelt kép – teljes egészében, vágás nélkül */
.single-thumb img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
  border-radius: .75rem;
}

.news-card__body {
  padding: 1.125rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  flex: 1;
}

.news-card__meta {
  font-size: 0.8rem;
  color: var(--muted);
}

.news-card__title {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-card__title a {
  color: var(--ink);
  text-decoration: none;
}

.news-card__title a:hover {
  color: var(--brown);
}

.news-card__excerpt {
  color: var(--muted);
  font-size: 0.85rem;
  margin: 0;
  flex: 1;
}

.news-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.25rem;
}

.news-card__tag {
  display: inline-block;
  background: #f3ede7;
  color: var(--brown);
  padding: 0.25rem 0.6rem;
  border-radius: 0.35rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease;
}

.news-card__tag:hover {
  background: var(--brown);
  color: white;
}

/* Címkék szűrő */
.news-tags-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  padding: 1rem;
  background: #faf8f6;
  border-radius: 0.75rem;
  border: 1px solid var(--ring);
}

.news-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  background: white;
  color: var(--ink);
  padding: 0.5rem 0.9rem;
  border-radius: 0.5rem;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid var(--ring);
  transition: all 0.15s ease;
}

.news-tag:hover {
  background: #f3ede7;
  border-color: var(--brown);
  color: var(--brown);
}

.news-tag.active {
  background: var(--brown);
  color: white;
  border-color: var(--brown);
}

.news-tag .count {
  font-size: 0.8rem;
  opacity: 0.7;
}

/* Oldalak tartalom stílusa */
.page-content {
  background: var(--card);
  border: 1px solid var(--ring);
  border-radius: 0.75rem;
  padding: 2rem;
  box-shadow: 0 1px 8px rgba(0, 0, 0, 0.03);
}

.page-content h1 {
  font-family: "Fira Sans", "Open Sans", Arial, sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 700;
  color: var(--brown);
  margin: 0 0 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #efe7e1;
}

.page-content .content {
  line-height: 1.8;
  color: var(--ink);
}

.page-content .content p {
  margin: 0 0 1rem;
}

.page-content .content h2,
.page-content .content h3 {
  font-family: "Fira Sans", "Open Sans", Arial, sans-serif;
  color: var(--brown);
  margin: 1.5rem 0 1rem;
}

.page-content .content ul,
.page-content .content ol {
  margin: 0 0 1rem;
  padding-left: 1.5rem;
}

.page-content .content li {
  margin-bottom: 0.5rem;
}

/* ---------------------------------------
   Linkek szekció (Kréta, Órarend stb.)
---------------------------------------- */
.section--links {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 2px solid var(--sand-200);
}

.links-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .links-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .links-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.kreta-box {
  background: var(--card);
  border: 1px solid var(--ring);
  border-radius: 0.75rem;
  padding: 2rem;
  display: flex;
  align-items: center;
  gap: 2rem;
  box-shadow: 0 1px 8px rgba(0, 0, 0, 0.03);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.kreta-box:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.06);
}

.kreta-box__icon {
  width: 120px;
  height: 120px;
  object-fit: contain;
  flex-shrink: 0;
}

.kreta-box__content {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  flex: 1;
}

.kreta-box__title {
  font-family: "Fira Sans", "Open Sans", Arial, sans-serif;
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--brown);
  margin: 0;
}

.kreta-box__content .btn {
  align-self: flex-start;
  width: auto;
}

/* Mobilon egymás alatt */
@media (max-width: 640px) {
  .kreta-box {
    flex-direction: column;
    text-align: center;
    padding: 1.5rem;
  }

  .kreta-box__icon {
    width: 96px;
    height: 96px;
  }

  .kreta-box__content {
    align-items: center;
  }

  .kreta-box__content .btn {
    align-self: center;
  }
}

/* ---------------------------------------
   Alumni carousel – "Ők is diákjaink voltak"
---------------------------------------- */
.section--alumni {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 2px solid var(--sand-200);
}

.alumni-carousel {
  position: relative;
  overflow: hidden;
  padding: 0 3rem;
}

.carousel-track {
  display: flex;
  gap: 1.5rem;
  transition: transform 0.4s ease;
}

.alumni-card {
  flex: 0 0 calc(33.333% - 1rem);
  background: var(--card);
  border: 1px solid var(--ring);
  border-radius: 0.75rem;
  padding: 2rem;
  text-align: center;
  box-shadow: 0 1px 8px rgba(0, 0, 0, 0.03);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.alumni-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.06);
}

.alumni-card__img {
  width: 150px;
  height: 150px;
  object-fit: cover;
  border-radius: 50%;
  margin: 0 auto 1.5rem;
  border: 3px solid var(--ring);
}

.alumni-card__name {
  font-family: "Fira Sans", "Open Sans", Arial, sans-serif;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--brown);
  margin: 0 0 0.75rem;
}

.alumni-card__desc {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0 0 0.75rem;
}

.alumni-card__dates {
  font-size: 0.9rem;
  color: var(--brown);
  font-weight: 600;
  margin: 0 0 0.5rem;
}

.alumni-card__wiki {
  display: inline-block;
  font-size: 0.9rem;
  color: var(--brown);
  text-decoration: underline;
  transition: color 0.2s ease;
}

.alumni-card__wiki:hover {
  color: var(--brown-700);
  text-decoration: underline;
}

/* Carousel navigation buttons */
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 3rem;
  height: 3rem;
  border: none;
  border-radius: 50%;
  background: var(--brown);
  color: #fff;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  z-index: 10;
  transition: background 0.2s ease, transform 0.1s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel-btn:hover {
  background: var(--brown-700);
}

.carousel-btn:active {
  transform: translateY(-50%) scale(0.95);
}

.carousel-btn--prev {
  left: 0;
}

.carousel-btn--next {
  right: 0;
}

/* Tablet: 2 kártya */
@media (max-width: 1023px) {
  .alumni-card {
    flex: 0 0 calc(50% - 0.75rem);
  }
}

/* Mobil: 1 kártya */
@media (max-width: 767px) {
  .alumni-carousel {
    padding: 0 2.5rem;
  }

  .alumni-card {
    flex: 0 0 100%;
  }

  .alumni-card__img {
    width: 200px;
    height: 200px;
  }

  .carousel-btn {
    width: 2.5rem;
    height: 2.5rem;
    font-size: 1.5rem;
  }
}

/* ---------------------------------------
   Elérhetőségek szekció
---------------------------------------- */
.section--contact {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 2px solid var(--sand-200);
}

.contact-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .contact-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.contact-item {
  background: var(--card);
  border: 1px solid var(--ring);
  border-radius: 0.75rem;
  padding: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  box-shadow: 0 1px 8px rgba(0, 0, 0, 0.03);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.contact-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.06);
}

.contact-icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  color: var(--brown);
}

.contact-item span,
.contact-item a {
  color: var(--ink);
  font-size: 1rem;
  text-decoration: none;
}

.contact-item a:hover {
  color: var(--brown);
  text-decoration: underline;
}

/* Mobil: egymás alatt */
@media (max-width: 767px) {
  .contact-item {
    flex-direction: column;
    text-align: center;
    gap: 0.75rem;
  }

  .contact-icon {
    width: 32px;
    height: 32px;
  }
}

/* Térkép beágyazás */
.contact-map {
  margin-top: 2rem;
  border-radius: 0.75rem;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.contact-map iframe {
  display: block;
}

/* Kapcsolati űrlap */
.contact-form-section {
  margin-top: 2rem;
  background: var(--card);
  border: 1px solid var(--ring);
  border-radius: 0.75rem;
  padding: 2rem;
  box-shadow: 0 1px 8px rgba(0, 0, 0, 0.03);
}

.contact-form__title {
  font-family: "Fira Sans", "Open Sans", Arial, sans-serif;
  font-weight: 700;
  color: var(--brown);
  margin: 0 0 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--sand-200);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.contact-form__field {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.contact-form__field label {
  font-weight: 600;
  color: var(--ink);
  font-size: 0.95rem;
}

.contact-form__field .required {
  color: #c53030;
}

.contact-form__field input,
.contact-form__field textarea {
  padding: 0.75rem 1rem;
  border: 1px solid var(--ring);
  border-radius: 0.5rem;
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.contact-form__field input:focus,
.contact-form__field textarea:focus {
  outline: none;
  border-color: var(--brown);
  box-shadow: 0 0 0 3px rgba(139, 69, 19, 0.1);
}

.contact-form__field textarea {
  resize: vertical;
  min-height: 120px;
}

.contact-form .btn {
  align-self: flex-start;
}

/* Visszajelző üzenetek */
.contact-form__message {
  padding: 1rem 1.25rem;
  border-radius: 0.5rem;
  margin-bottom: 1rem;
  font-weight: 600;
}

.contact-form__message--success {
  background: #c6f6d5;
  color: #276749;
  border: 1px solid #9ae6b4;
}

.contact-form__message--error {
  background: #fed7d7;
  color: #c53030;
  border: 1px solid #feb2b2;
}

/* ---------------------------------------
   Lábléc (Footer)
---------------------------------------- */
.footer {
  background: var(--sand-50);
  border-top: 1px solid var(--ring);
  padding: 0;
  margin-top: 3rem;
}

/* ── Háromoszlopos lábléc-felső ── */
.footer__top {
  padding: 2.5rem 0 2rem;
  border-bottom: 1px solid var(--ring);
}

.footer__top-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1rem;
}

.footer__cols {
  display: grid;
  grid-template-columns: 1.4fr 1.2fr 1fr;
  gap: 2rem;
  align-items: start;
}

@media (max-width: 900px) {
  .footer__cols {
    grid-template-columns: 1fr 1fr;
  }
  .footer__col--about {
    grid-column: 1 / -1;
  }
}

@media (max-width: 560px) {
  .footer__cols {
    grid-template-columns: 1fr;
  }
  .footer__col--about {
    grid-column: auto;
  }
}

.footer__col-title {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--brown, #8B4513);
  margin: 0 0 0.9rem;
}

.footer__about-text {
  font-size: 0.82rem;
  line-height: 1.65;
  color: var(--muted, #666);
  margin: 0 0 1rem;
}

.footer__szam {
  font-weight: 700;
  color: var(--brown, #8B4513);
  font-style: normal;
}

.footer__fb-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: #1877F2;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.footer__fb-link:hover {
  opacity: 0.75;
  text-decoration: underline;
}

/* ── Kiemelt hírek lista a láblécben ── */
.footer-news-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-news-item {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

/* Dátumkártya kisebb méret a láblécben */
.footer-news-item .esemeny-datum-wrap {
  flex-shrink: 0;
}

.footer-news-item .naptar-date-card {
  width: 56px;
  min-width: 56px;
  padding: 0;
}

.footer-news-item .naptar-date-card__nap {
  font-size: 1.35rem;
  line-height: 1.1;
}

.footer-news-item .naptar-date-card__ho,
.footer-news-item .naptar-date-card__dow {
  font-size: 0.62rem;
}

.footer-news-item__title {
  font-size: 0.85rem;
  color: var(--ink, #1a1a1a);
  text-decoration: none;
  line-height: 1.4;
  transition: color 0.2s ease;
}

.footer-news-item__title:hover {
  color: var(--brown, #8B4513);
  text-decoration: underline;
}

.footer-news-empty {
  font-size: 0.82rem;
  color: var(--muted, #999);
  font-style: italic;
}

.footer-news-archivum {
  font-size: 0.78rem;
  color: var(--muted, #888);
  margin-top: 0.75rem;
  line-height: 1.5;
}

.footer-news-archivum a {
  color: var(--brown, #8B4513);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.footer-news-archivum a:hover {
  color: var(--brown-700, #6b3410);
}

/* ── Elérhetőségek lista a láblécben ── */
.footer-contact-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  width: 100%;
  font-size: 0.875rem;
  color: var(--muted, #666);
  line-height: 1.5;
}

.footer-contact-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--brown, #8B4513);
  margin-top: 2px;
}

.footer-contact-item a {
  color: var(--muted, #666);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-contact-item a:hover {
  color: var(--brown, #8B4513);
  text-decoration: underline;
}

/* ── Egysoros lábléc-alap ── */
.footer__bar {
  padding: 0.75rem 0;
}

.footer__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1rem;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
}

.footer__copyright {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.footer__version {
  margin: 0;
  color: var(--muted);
  font-size: 0.85rem;
  text-align: center;
  font-family: monospace;
}

.footer__nav {
  display: flex;
  gap: 1.5rem;
  justify-content: flex-end;
}

.footer__nav a {
  color: var(--brown);
  font-weight: 600;
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.2s ease;
}

.footer__nav a:hover {
  color: var(--brown-700);
  text-decoration: underline;
}

/* Mobil nézetben egymás alatt */
@media (max-width: 640px) {
  .footer__inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer__nav {
    justify-content: center;
  }

  .footer__bar {
    text-align: center;
  }
}

/* ---------------------------------------
   Tanáraink oldal
---------------------------------------- */
.section--teachers {
  margin-top: 0;
}

/* Szűrők */
.teachers-filters {
  display: flex;
  gap: 1.5rem;
  align-items: flex-end;
  flex-wrap: wrap;
  margin-bottom: 2rem;
  background: var(--card);
  border: 1px solid var(--ring);
  border-radius: 0.75rem;
  padding: 1.5rem;
  box-shadow: 0 1px 8px rgba(0, 0, 0, 0.03);
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: 1;
  min-width: 200px;
}

.filter-group label {
  font-weight: 600;
  color: var(--ink);
  font-size: 0.95rem;
}

.filter-group select {
  padding: 0.75rem 1rem;
  border: 1px solid var(--ring);
  border-radius: 0.5rem;
  font-size: 1rem;
  font-family: inherit;
  background: white;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.filter-group select:focus {
  outline: none;
  border-color: var(--brown);
  box-shadow: 0 0 0 3px rgba(139, 69, 19, 0.1);
}

/* Tanári kártyák rács */
.teachers-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .teachers-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 900px) {
  .teachers-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Tanári kártya link wrapper */
.teacher-card-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

/* Tanári kártya - egy lekerekített téglalap */
.teacher-card {
  background: var(--card);
  border: 1px solid var(--ring);
  border-radius: 0.75rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  box-shadow: 0 1px 8px rgba(0, 0, 0, 0.03);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.teacher-card-link:hover .teacher-card {
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.1);
}

/* Felső szekció: két oszlop (név balra, kép jobbra) */
.teacher-card__header {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem;
  padding: 1.5rem;
  border-bottom: 1px solid var(--ring);
}

/* Bal oszlop: felső rész (név) + alsó rész (beosztások) */
.teacher-card__name-section {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0.5rem;
  min-width: 0;
}

/* Jobb oszlop: kép */
.teacher-card__image {
  width: 100px;
  height: 134px;
  overflow: hidden;
  background: var(--sand-100);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border-radius: 0.5rem;
}

.teacher-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.teacher-card__image--placeholder {
  background: var(--sand-200);
}

.teacher-card__image--placeholder svg {
  width: 50px;
  height: 50px;
  color: var(--muted);
}

/* Alsó szekció: tantárgyak és email címek */
.teacher-card__body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  flex: 1;
}

.teacher-card__name {
  font-family: "Fira Sans", "Open Sans", Arial, sans-serif;
  font-weight: 700;
  font-size: 1.15rem;
  margin: 0;
  color: var(--brown);
  line-height: 1.3;
}

.teacher-card__beosztas {
  font-weight: 600;
  color: var(--brown-light);
  font-size: 0.9rem;
  margin: 0;
  line-height: 1.4;
}

.teacher-card__osztaly {
  font-weight: 700;
  color: var(--brown);
}

.teacher-card__tantargyak {
  font-size: 0.9rem;
  color: var(--ink);
  margin: 0;
}

.teacher-card__tantargyak strong {
  display: block;
  margin-bottom: 0.25rem;
  color: var(--brown);
  font-size: 0.9rem;
}

.teacher-card__tantargyak span {
  color: var(--muted);
  line-height: 1.6;
}

.teacher-card__emails {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding-top: 1rem;
  margin-top: auto;
  border-top: 1px solid var(--ring);
}

.teacher-card__email {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.teacher-card__icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: var(--brown);
}

.teacher-card__email a {
  color: var(--brown);
  text-decoration: none;
  font-size: 0.85rem;
  word-break: break-word;
  transition: color 0.2s ease;
  line-height: 1.4;
}

.teacher-card__email a:hover {
  color: var(--brown-700);
  text-decoration: underline;
}

/* Mobil optimalizálás */
@media (max-width: 640px) {
  .teachers-filters {
    flex-direction: column;
    align-items: stretch;
  }

  .filter-group {
    min-width: 100%;
  }

  .teacher-card__header {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .teacher-card__name-section {
    order: 2;
  }

  .teacher-card__image {
    order: 1;
  }
}

/* ---------------------------------------
   Tanár profil oldal
---------------------------------------- */
.teacher-profile {
  background: var(--card);
  border: 1px solid var(--ring);
  border-radius: 0.75rem;
  padding: 2rem;
  box-shadow: 0 1px 8px rgba(0, 0, 0, 0.03);
}

.teacher-profile__header {
  display: flex;
  gap: 3rem;
  align-items: flex-start;
  padding-bottom: 2rem;
  border-bottom: 2px solid var(--ring);
  margin-bottom: 2rem;
}

.teacher-profile__info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.teacher-profile__name {
  font-family: "Fira Sans", "Open Sans", Arial, sans-serif;
  font-weight: 700;
  font-size: 2rem;
  margin: 0;
  color: var(--brown);
}

.teacher-profile__beosztas {
  font-weight: 600;
  color: var(--brown-light);
  font-size: 1.1rem;
  margin: 0;
}

.teacher-profile__osztaly {
  font-weight: 700;
  color: var(--brown);
}

.teacher-profile__tantargyak {
  font-size: 1rem;
  color: var(--ink);
}

.teacher-profile__tantargyak strong {
  display: block;
  margin-bottom: 0.25rem;
  color: var(--brown);
}

.teacher-profile__emails {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 1rem;
}

.teacher-profile__emails strong {
  color: var(--brown);
}

.teacher-profile__emails a {
  color: var(--brown);
  text-decoration: none;
  transition: color 0.2s ease;
}

.teacher-profile__emails a:hover {
  color: var(--brown-700);
  text-decoration: underline;
}

.teacher-profile__image {
  flex-shrink: 0;
}

.teacher-profile__image img {
  width: 200px;
  height: auto;
  border-radius: 0.5rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.teacher-profile__content {
  line-height: 1.8;
  color: var(--ink);
  margin-bottom: 2rem;
}

.teacher-profile__content p {
  margin: 0 0 1rem;
}

.teacher-profile__content h2,
.teacher-profile__content h3 {
  font-family: "Fira Sans", "Open Sans", Arial, sans-serif;
  color: var(--brown);
  margin: 1.5rem 0 1rem;
}

.teacher-profile__back {
  padding-top: 2rem;
  border-top: 2px solid var(--ring);
}

/* Mobil nézet a profil oldalon */
@media (max-width: 768px) {
  .teacher-profile__header {
    flex-direction: column;
    gap: 2rem;
  }

  .teacher-profile__image img {
    width: 150px;
  }

  .teacher-profile__name {
    font-size: 1.5rem;
  }
}

/* ─────────────────────────────────────────────────────────────────────────────
   Termek – SVG alaprajz nézet
───────────────────────────────────────────────────────────────────────────── */
.section--termek {
  padding: 2.5rem 0 4rem;
}

/* Keresőmező */
.termek-search-wrap {
  position: relative;
  max-width: 480px;
  margin: 0 0 1.5rem;
}

.termek-search__input {
  width: 100%;
  padding: 0.5rem 1.2rem;
  border: 1.5px solid var(--brown, #8B4513);
  border-radius: 999px;
  font-size: 0.9rem;
  background: #fff;
  outline: none;
  transition: box-shadow .15s;
}

.termek-search__input:focus {
  box-shadow: 0 0 0 3px rgba(139,69,19,.15);
}

.termek-search__results {
  position: absolute;
  top: calc(100% + 4px);
  left: 0; right: 0;
  background: #fff;
  border: 1.5px solid var(--ring, #ddd);
  border-radius: 10px;
  box-shadow: 0 4px 14px rgba(0,0,0,.12);
  z-index: 50;
  max-height: 260px;
  overflow-y: auto;
}

.termek-search__item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 0.55rem 1rem;
  border: none;
  background: transparent;
  text-align: left;
  cursor: pointer;
  font-size: 0.88rem;
  border-bottom: 1px solid #f0ece8;
  transition: background .12s;
}

.termek-search__item:last-child { border-bottom: none; }
.termek-search__item:hover { background: var(--sand-100, #f5f0ea); }
.termek-search__item span { color: var(--muted, #888); font-size: .8rem; }
.termek-search__empty { padding: .6rem 1rem; color: var(--muted, #999); font-size: .85rem; }

/* Emelet fülek */
.termek-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.termek-tab {
  padding: 0.42rem 1.1rem;
  border: 1.5px solid var(--brown, #8B4513);
  border-radius: 999px;
  background: transparent;
  color: var(--brown, #8B4513);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s, color .15s;
}

.termek-tab:hover,
.termek-tab.active {
  background: var(--brown, #8B4513);
  color: #fff;
}

/* Emelet tartalom */
.termek-no-regions {
  color: var(--muted, #888);
  font-size: .88rem;
  margin-bottom: 1rem;
}

.termek-no-regions a { color: var(--brown, #8B4513); }

/* Alaprajz + SVG overlay */
.termek-floor-wrap {
  position: relative;
  display: block;
  width: 100%;
  border: 1px solid #e8e2db;
  border-radius: 8px;
  overflow: hidden;
  background: #faf8f5;
}

.termek-floor-wrap img {
  display: block;
  width: 100%;
  height: auto;
  user-select: none;
}

.termek-svg-overlay {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  overflow: visible;
}

/* Kattintható poligon régiók */
.termek-region {
  fill: transparent;
  stroke: transparent;
  cursor: pointer;
  transition: fill .15s, stroke .15s;
  outline: none;
}

.termek-region:hover,
.termek-region:focus {
  fill: rgba(139,69,19,.18);
  stroke: var(--brown, #8B4513);
  stroke-width: 1.5;
  stroke-linejoin: round;
}

.termek-region--highlight {
  fill: rgba(220,50,50,.28);
  stroke: #c0392b;
  stroke-width: 2;
  animation: termek-pulse 0.5s ease-in-out 3;
}

@keyframes termek-pulse {
  0%, 100% { fill: rgba(220,50,50,.28); }
  50%       { fill: rgba(220,50,50,.55); }
}

/* Modal */
.termek-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  transition: opacity .25s;
}

.termek-modal.show { opacity: 1; }

.termek-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.55);
}

.termek-modal__box {
  position: relative;
  background: #fff;
  border-radius: 12px;
  padding: 1.5rem;
  max-width: 720px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 12px 40px rgba(0,0,0,.25);
  transform: translateY(16px);
  transition: transform .25s;
}

.termek-modal.show .termek-modal__box { transform: translateY(0); }

.termek-modal__close {
  position: absolute;
  top: .75rem; right: .75rem;
  width: 32px; height: 32px;
  border: none; border-radius: 50%;
  background: var(--sand-100, #f0ebe3);
  color: var(--ink, #333);
  font-size: 1rem;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .15s;
}

.termek-modal__close:hover { background: #e0d8cf; }

.termek-modal__title {
  margin: 0 2rem 1rem 0;
  font-size: 1.3rem;
  color: var(--brown, #8B4513);
}

/* Modal alaprajz + SVG overlay */
.termek-modal__map {
  position: relative;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid #e8e2db;
}

.termek-modal__img {
  display: block;
  width: 100%;
  height: auto;
}

.termek-modal__svg {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
}

/* Mobil */
@media (max-width: 600px) {
  .termek-tab { font-size: .78rem; padding: .35rem .8rem; }
  .termek-modal__box { padding: 1rem; }
  .termek-modal__title { font-size: 1.1rem; }
}

/* -----------------------------------------------
   Rajz és vizuális kultúra – oldalsablon
------------------------------------------------ */

/* Fejléc sáv */
.rajz-oldal__hero {
  background: linear-gradient(135deg, var(--sand-100) 0%, var(--sand-200) 100%);
  border-bottom: 2px solid var(--ring);
  padding: 2rem 1.5rem;
}

.rajz-oldal__hero-inner {
  max-width: var(--container);
  margin: 0 auto;
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
}

/* Kép: ugyanolyan mint a tanári kártyákon */
.rajz-oldal__hero-kep {
  flex: 0 0 auto;
  width: 100px;
  height: 134px;
  overflow: hidden;
  border-radius: 0.5rem;
  background: var(--sand-200);
}

.rajz-oldal__hero-kep img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Szöveges rész – a page-content tipográfiájával */
.rajz-oldal__hero-szoveg {
  flex: 1;
}

/* Oldal cím (page title stílusa) */
.rajz-oldal__fo-cim {
  font-family: "Fira Sans", "Open Sans", Arial, sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 700;
  color: var(--ink);
  font-size: 1.4rem;
  margin: 0 0 0.4rem;
  padding-bottom: 0.4rem;
  border-bottom: 2px solid #efe7e1;
}

/* H1 – azonos a .page-content h1-gyel */
.rajz-oldal__h1 {
  font-family: "Fira Sans", "Open Sans", Arial, sans-serif;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--ink);
  margin: 0.4rem 0 0.2rem;
}

/* H2 – azonos a .page-content .content h2-vel */
.rajz-oldal__h2 {
  font-family: "Fira Sans", "Open Sans", Arial, sans-serif;
  font-weight: 700;
  font-size: 1rem;
  color: var(--brown);
  margin: 0.2rem 0 0;
}

@media (max-width: 640px) {
  .rajz-oldal__hero-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .rajz-oldal__hero-kep {
    width: 80px;
    height: 107px;
  }
}

/* Szekció: max-width + vízszintes padding a többi oldallal egységesen */
.rajz-szekció {
  max-width: var(--container);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

/* Szekció leírás (kategória description) */
.rajz-szekció .section__title {
  margin-bottom: 0.25rem;
}

.rajz-szekció__leiras {
  color: var(--muted);
  font-size: 0.95rem;
  margin: 0 0 1.5rem;
}

/* Kártya rács */
.rajz-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

/* Kártya */
.rajz-card {
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--ring);
  border-radius: 0.75rem;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.rajz-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  text-decoration: none;
}

.rajz-card__image {
  width: 100%;
  overflow: hidden;
  background: var(--sand-100);
}

.rajz-card__image img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.rajz-card:hover .rajz-card__image img {
  transform: scale(1.05);
}

.rajz-card__image-ph {
  width: 100%;
  height: 200px;
  background: var(--sand-200);
}

.rajz-card__body {
  padding: 1rem 1.125rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  flex: 1;
}

.rajz-card__cim {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.3;
}

.rajz-card__leiras {
  margin: 0;
  font-size: 0.85rem;
  color: var(--muted);
  flex: 1;
  /* max 3 sor */
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.rajz-card__tovabb {
  display: inline-block;
  margin-top: 0.5rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--brown);
}

/* -----------------------------------------------
   Rajz munka – single nézet
------------------------------------------------ */
.rajz-egyes {
  max-width: var(--container);
  margin-left: auto;
  margin-right: auto;
  padding: 2rem 1.5rem 3rem;
}

.rajz-egyes__vissza {
  display: inline-block;
  font-size: 0.9rem;
  color: var(--brown);
  font-weight: 600;
  margin-bottom: 1.5rem;
  text-decoration: none;
}

.rajz-egyes__vissza:hover {
  text-decoration: underline;
}

.rajz-egyes__cim {
  font-family: "Fira Sans", sans-serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 0.4rem;
}

.rajz-egyes__kategoria {
  font-size: 0.85rem;
  color: var(--muted);
  margin: 0 0 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.rajz-egyes__leiras {
  font-size: 1rem;
  color: var(--muted);
  margin: 0 0 2rem;
  max-width: 680px;
}

/* Galéria rács */
.rajz-galeria {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0.75rem;
  margin-top: 1rem;
}

.rajz-galeria__elem {
  display: block;
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
  overflow: hidden;
  border-radius: 0.5rem;
  aspect-ratio: 4 / 3;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.rajz-galeria__elem:hover {
  transform: scale(1.03);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.18);
}

.rajz-galeria__elem img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

/* -----------------------------------------------
   Lightbox
------------------------------------------------ */
.rajz-lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.92);
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

.rajz-lightbox--aktiv {
  display: flex;
}

.rajz-lightbox__kep-wrap {
  max-width: 90vw;
  max-height: 82vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.rajz-lightbox__kep {
  max-width: 90vw;
  max-height: 82vh;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.6);
}

.rajz-lightbox__bezar {
  position: fixed;
  top: 1rem;
  right: 1.25rem;
  background: none;
  border: none;
  color: #fff;
  font-size: 2.5rem;
  line-height: 1;
  cursor: pointer;
  padding: 0.25rem 0.5rem;
  opacity: 0.8;
  transition: opacity 0.2s;
  z-index: 10;
}

.rajz-lightbox__bezar:hover { opacity: 1; }

.rajz-lightbox__nav {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: #fff;
  font-size: 3rem;
  line-height: 1;
  cursor: pointer;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  opacity: 0.7;
  transition: opacity 0.2s, background 0.2s;
  z-index: 10;
}

.rajz-lightbox__nav:hover {
  opacity: 1;
  background: rgba(255, 255, 255, 0.2);
}

.rajz-lightbox__prev { left: 0.75rem; }
.rajz-lightbox__next { right: 0.75rem; }

.rajz-lightbox__szamlalo {
  position: fixed;
  bottom: 1.25rem;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
}

/* Reszponzív */
@media (max-width: 768px) {
  .rajz-oldal__fo-cim {
    font-size: 1.6rem;
  }

  .rajz-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
  }

  .rajz-card__image img,
  .rajz-card__image-ph {
    height: 160px;
  }

  .rajz-galeria {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 0.5rem;
  }

  .rajz-lightbox__nav {
    font-size: 2.2rem;
    padding: 0.4rem 0.75rem;
  }

  .rajz-egyes__cim {
    font-size: 1.5rem;
  }
}

/* -----------------------------------------------
   Az iskoláról oldal – automatikus képcsúszka
------------------------------------------------ */
.iskolarol-slider {
  position: relative;
  width: 100%;
  max-width: 860px;
  margin: 2rem auto 3rem;
  border-radius: 0.75rem;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(44, 24, 16, 0.15);
  outline: none;
}

.iskolarol-slider__track {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--ink);
}

.iskolarol-slider__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.8s ease;
}

.iskolarol-slider__slide--active {
  opacity: 1;
}

.iskolarol-slider__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.iskolarol-slider__btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.85);
  color: var(--brown);
  border: none;
  border-radius: 50%;
  width: 2.5rem;
  height: 2.5rem;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, color 0.2s;
  padding: 0;
}

.iskolarol-slider__btn:hover {
  background: var(--brown);
  color: #fff;
}

.iskolarol-slider__btn--prev { left: 0.75rem; }
.iskolarol-slider__btn--next { right: 0.75rem; }

.iskolarol-slider__dots {
  position: absolute;
  bottom: 0.75rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.45rem;
  z-index: 2;
}

.iskolarol-slider__dot {
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 50%;
  border: 2px solid #fff;
  background: rgba(255, 255, 255, 0.35);
  cursor: pointer;
  padding: 0;
  transition: background 0.2s, transform 0.2s;
}

.iskolarol-slider__dot--active {
  background: #fff;
  transform: scale(1.25);
}

@media (max-width: 480px) {
  .iskolarol-slider__btn {
    width: 2rem;
    height: 2rem;
    font-size: 1.3rem;
  }
}

/* -----------------------------------------------
   Fejléc kereső widget
------------------------------------------------ */
.header__search {
  display: flex;
  align-items: center;
  position: relative;
}

.header__search-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.1rem;
  height: 2.1rem;
  border: none;
  background: transparent;
  color: var(--brown);
  cursor: pointer;
  border-radius: 50%;
  transition: background 0.2s, color 0.2s;
  flex-shrink: 0;
  padding: 0;
}

.header__search-toggle:hover {
  background: var(--sand-100);
}

.header__search--open .header__search-toggle {
  background: var(--sand-100);
}

.header__search-form {
  display: flex;
  align-items: center;
  overflow: hidden;
  max-width: 0;
  opacity: 0;
  transition: max-width 0.3s ease, opacity 0.25s ease;
  pointer-events: none;
}

.header__search--open .header__search-form {
  max-width: 280px;
  opacity: 1;
  pointer-events: auto;
}

.header__search-input {
  border: 1.5px solid var(--ring);
  border-radius: 9999px 0 0 9999px;
  padding: 0.35rem 0.75rem;
  font-size: 0.9rem;
  font-family: inherit;
  color: var(--ink);
  background: var(--card);
  outline: none;
  width: 220px;
  min-width: 0;
  transition: border-color 0.2s;
}

.header__search-input:focus {
  border-color: var(--brown);
}

.header__search-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.38rem 0.65rem;
  background: var(--brown);
  color: #fff;
  border: none;
  border-radius: 0 9999px 9999px 0;
  cursor: pointer;
  transition: background 0.2s;
  flex-shrink: 0;
}

.header__search-submit:hover {
  background: var(--brown-700);
}

@media (max-width: 860px) {
  .header__search--open .header__search-form {
    max-width: 200px;
  }
  .header__search-input {
    width: 155px;
  }
}

/* -----------------------------------------------
   Keresési találatok oldal
------------------------------------------------ */
.search-results__count {
  color: var(--muted);
  font-size: 0.9rem;
  margin: -0.5rem 0 1.25rem;
}

.search-results {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.search-results__item {
  border: 1px solid var(--ring);
  border-radius: 0.6rem;
  padding: 1rem 1.25rem;
  background: var(--sand-50);
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto auto auto;
  gap: 0.2rem 0.75rem;
}

.search-results__title {
  font-family: "Fira Sans", "Open Sans", Arial, sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--brown);
  text-decoration: none;
  grid-column: 1;
}

.search-results__title:hover {
  text-decoration: underline;
}

.search-results__type {
  grid-column: 2;
  grid-row: 1;
  align-self: start;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--muted);
  background: var(--sand-100);
  border-radius: 9999px;
  padding: 0.15rem 0.6rem;
  white-space: nowrap;
}

.search-results__excerpt {
  grid-column: 1 / -1;
  margin: 0;
  font-size: 0.9rem;
  color: var(--ink);
  line-height: 1.6;
}

.search-results__url {
  grid-column: 1 / -1;
  font-size: 0.78rem;
  color: var(--muted);
  word-break: break-all;
}

/* -----------------------------------------------
   Évkönyvek – dokumentum galéria
------------------------------------------------ */
.evkonyv-gallery {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.5rem 3rem;
}

/* Szűrő gombok */
.doc-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.doc-filter__btn {
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.4rem 1.1rem;
  border-radius: 9999px;
  border: 1.5px solid var(--ring);
  background: var(--card);
  color: var(--muted);
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.doc-filter__btn:hover {
  background: var(--sand-100);
  color: var(--brown);
  border-color: var(--brown-light);
}

.doc-filter__btn.is-active {
  background: var(--brown);
  color: #fff;
  border-color: var(--brown);
}

/* Kártya rács */
.doc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

@media (max-width: 900px) { .doc-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .doc-grid { grid-template-columns: 1fr; } }

/* Kártya */
.doc-card {
  background: var(--card);
  border: 1px solid var(--ring);
  border-radius: 0.75rem;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s, transform 0.2s;
}

.doc-card:hover {
  box-shadow: 0 8px 28px rgba(44, 24, 16, 0.12);
  transform: translateY(-2px);
}

.doc-card[hidden] { display: none; }

/* Kártya képterület */
.doc-card__thumb {
  position: relative;
  background: var(--sand-100);
  aspect-ratio: 4 / 3;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.doc-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.doc-card__thumb:hover .doc-card__img {
  transform: scale(1.04);
}

.doc-card__thumb-placeholder {
  color: var(--ring);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.doc-card__pdf-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(139, 69, 19, 0.85);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  padding: 3px 8px;
  border-radius: 4px;
}

.doc-card__year {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 4px;
  border: 1px solid var(--ring);
}

/* Kártya tartalom */
.doc-card__body {
  padding: 1.1rem 1.25rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  flex: 1;
}

.doc-card__title {
  font-family: "Fira Sans", "Open Sans", Arial, sans-serif;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.3;
  margin: 0;
}

.doc-card__title-link {
  color: var(--ink);
  text-decoration: none;
}

.doc-card__title-link:hover {
  color: var(--brown);
}

.doc-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.doc-card__tag {
  font-size: 0.75rem;
  font-weight: 600;
  background: var(--sand-100);
  color: var(--brown);
  border-radius: 9999px;
  padding: 0.15rem 0.65rem;
  border: 1px solid var(--ring);
}

.doc-card__download {
  margin-top: auto;
  text-align: center;
}

.doc-card__no-file {
  font-size: 0.8rem;
  color: var(--muted);
  font-style: italic;
  margin-top: auto;
}

.doc-gallery__empty {
  color: var(--muted);
  padding: 2rem 0;
}

/* -----------------------------------------------
   Évkönyv – single nézet
------------------------------------------------ */
.doc-single-wrap {
  max-width: var(--container);
  margin: 0 auto;
  padding: 1.5rem 1.5rem 3rem;
}

.doc-single__breadcrumb {
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
}

.doc-single__breadcrumb a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
}

.doc-single__breadcrumb a:hover {
  color: var(--brown);
}

.doc-single__layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
  margin-bottom: 2.5rem;
}

@media (max-width: 700px) {
  .doc-single__layout { grid-template-columns: 1fr; gap: 1.5rem; }
}

.doc-single__thumb {
  border-radius: 0.75rem;
  overflow: hidden;
  border: 1px solid var(--ring);
  background: var(--sand-100);
}

.doc-single__img {
  width: 100%;
  height: auto;
  display: block;
}

.doc-single__thumb-placeholder {
  aspect-ratio: 3 / 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  color: var(--ring);
  font-size: 0.85rem;
}

.doc-single__info {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.doc-single__year {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.doc-single__title {
  font-family: "Fira Sans", "Open Sans", Arial, sans-serif;
  font-weight: 700;
  color: var(--brown);
  margin: 0;
}

.doc-single__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.doc-single__download {
  align-self: flex-start;
}

.doc-single__no-file {
  font-size: 0.9rem;
  color: var(--muted);
  font-style: italic;
}

.doc-single__preview {
  margin-top: 2rem;
}

.doc-single__preview-title {
  font-family: "Fira Sans", "Open Sans", Arial, sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--brown);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 0 0 0.75rem;
}

.doc-single__preview-wrap {
  border: 1px solid var(--ring);
  border-radius: 0.5rem;
  overflow: hidden;
}

.doc-single__iframe {
  width: 100%;
  height: 75vh;
  min-height: 500px;
  border: none;
  display: block;
}

/* =========================================================
   TABLÓK – archív rács
   ========================================================= */

.section--tablok {
  max-width: 1280px;
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
}

.tablo-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

@media (max-width: 1024px) {
  .tablo-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 700px) {
  .tablo-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 420px) {
  .tablo-grid { grid-template-columns: 1fr; }
}

.tablo-card {
  display: flex;
  flex-direction: column;
  background: var(--card, #fff);
  border: 1px solid var(--ring);
  border-radius: 0.75rem;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.15s ease, transform 0.15s ease;
  box-shadow: 0 1px 8px rgba(0,0,0,0.03);
}

.tablo-card:hover {
  box-shadow: 0 10px 24px rgba(0,0,0,0.10);
  transform: translateY(-4px);
}

.tablo-card__thumb {
  position: relative;
  aspect-ratio: 3/4;
  background: var(--sand-100);
  overflow: hidden;
}

.tablo-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.tablo-card:hover .tablo-card__img {
  transform: scale(1.04);
}

.tablo-card__placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  color: var(--muted);
  font-size: 0.8rem;
}

.tablo-card__year {
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
  background: rgba(0,0,0,0.60);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.2em 0.6em;
  border-radius: 0.35em;
  letter-spacing: 0.03em;
}

.tablo-card__body {
  padding: 0.7rem 0.85rem 0.85rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.tablo-card__title {
  font-family: "Fira Sans", "Open Sans", Arial, sans-serif;
  font-size: 0.97rem;
  font-weight: 700;
  color: var(--brown);
  margin: 0;
  line-height: 1.3;
}

.tablo-card__teacher {
  font-size: 0.8rem;
  color: var(--muted);
  margin: 0;
}

.tablo-card__teacher-btn {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  font-size: 0.8rem;
  color: var(--brown);
  cursor: pointer;
  text-decoration: underline;
  text-decoration-style: dotted;
  text-underline-offset: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
  display: block;
}

.tablo-card__teacher-btn:hover {
  text-decoration-style: solid;
  color: var(--terracotta, #b5451b);
}

.tablo-card__korszak {
  display: inline-block;
  margin-top: 0.2rem;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: var(--sand-100);
  color: var(--brown);
  border: 1px solid var(--ring);
  border-radius: 999px;
  padding: 0.15em 0.65em;
  text-decoration: none;
}

/* =========================================================
   TABLÓK – egyedi oldal
   ========================================================= */

.section--tablo-single {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
}

.tablo-breadcrumb {
  margin-bottom: 1.5rem;
}

.tablo-breadcrumb a {
  color: var(--brown);
  text-decoration: none;
  font-size: 0.9rem;
}

.tablo-breadcrumb a:hover { text-decoration: underline; }

.tablo-single-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
  gap: 2.5rem;
  align-items: start;
  background: var(--card, #fff);
  border: 1px solid var(--ring);
  border-radius: 0.75rem;
  padding: 2rem;
}

@media (max-width: 700px) {
  .tablo-single-layout {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 1.25rem;
  }
}

.tablo-single-img__link {
  display: block;
  cursor: zoom-in;
}

.tablo-single-img__photo {
  width: 100%;
  height: auto;
  border-radius: 0.5rem;
  display: block;
  box-shadow: 0 2px 14px rgba(0,0,0,0.13);
  transition: opacity 0.15s ease;
}

.tablo-single-img__link:hover .tablo-single-img__photo {
  opacity: 0.88;
}

.tablo-single-img__placeholder {
  aspect-ratio: 3/4;
  background: var(--sand-100);
  border-radius: 0.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.tablo-single-info {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.tablo-single-info__year {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 700;
  background: var(--sand-100);
  color: var(--brown);
  border: 1px solid var(--ring);
  border-radius: 999px;
  padding: 0.2em 0.8em;
  letter-spacing: 0.04em;
}

.tablo-single-info__title {
  font-family: "Fira Sans", "Open Sans", Arial, sans-serif;
  font-size: 2rem;
  font-weight: 800;
  color: var(--brown);
  margin: 0;
  line-height: 1.15;
}

.tablo-single-info__teacher {
  font-size: 1rem;
  color: var(--ink);
  margin: 0;
}

.tablo-single-info__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.tablo-single-info__count {
  font-size: 1rem;
  color: var(--muted);
  margin: 0;
}

.tablo-single-info__count strong {
  color: var(--ink);
  font-size: 1.1rem;
}

.tablo-single-students {
  margin-top: 2.5rem;
  border-top: 1px solid var(--ring);
  padding-top: 2rem;
}

.tablo-single-students__title {
  font-family: "Fira Sans", "Open Sans", Arial, sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--brown);
  margin: 0 0 1.25rem;
}

.tablo-single-students__list {
  columns: 3;
  column-gap: 2.5rem;
  margin: 0;
  padding-left: 1.5rem;
  font-size: 0.93rem;
  line-height: 2;
  color: var(--ink);
}

@media (max-width: 800px) {
  .tablo-single-students__list { columns: 2; }
}

@media (max-width: 480px) {
  .tablo-single-students__list { columns: 1; }
}

/* =========================================================
   OKTV – helyezés pill
   ========================================================= */

.oktv-card__helyezes {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  background: var(--brown);
  color: #fff;
  border-radius: 999px;
  padding: 0.15em 0.7em;
  letter-spacing: 0.04em;
}

.oktv-single__helyezes {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--brown);
  margin: 0;
}

/* OKTV szöveges (korábbi évek) nézet */
.oktv-text-section {
  max-width: 860px;
}

.oktv-text-section h1 {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--brown);
  margin: 2rem 0 0.5rem;
  border-bottom: 2px solid var(--ring);
  padding-bottom: 0.4rem;
}

.oktv-text-section h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ink);
  margin: 1.5rem 0 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.oktv-text-section table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.93rem;
  margin-bottom: 1.5rem;
}

.oktv-text-section table td,
.oktv-text-section table th {
  padding: 0.45rem 0.75rem;
  border: 1px solid var(--ring);
  vertical-align: top;
}

.oktv-text-section table tr:first-child td {
  background: var(--sand-100);
  font-weight: 700;
}

.oktv-text-section table tr:nth-child(even) td {
  background: var(--sand-50, #faf8f4);
}

.oktv-text-section p {
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 0.75rem;
  color: var(--ink);
}

/* =========================================================
   DOKUMENTUMTÁR
   ========================================================= */

.section--dokumentumtar {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
}

.doktar-toolbar {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2rem;
}

.doktar-search-wrap {
  position: relative;
  max-width: 420px;
}

.doktar-search-icon {
  position: absolute;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  pointer-events: none;
}

.doktar-search-input {
  width: 100%;
  padding: 0.6rem 0.9rem 0.6rem 2.4rem;
  border: 1px solid var(--ring);
  border-radius: 0.5rem;
  font-size: 0.95rem;
  background: #fff;
  color: var(--ink);
  transition: border-color 0.15s;
}

.doktar-search-input:focus {
  outline: none;
  border-color: var(--brown);
}

.doktar-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.1rem;
}

@media (max-width: 900px) {
  .doktar-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
  .doktar-grid { grid-template-columns: 1fr; }
}

.doktar-card {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  background: var(--card, #fff);
  border: 1px solid var(--ring);
  border-radius: 0.75rem;
  padding: 1.1rem 1.1rem 1rem;
  transition: box-shadow 0.15s, transform 0.15s;
}

.doktar-card:hover {
  box-shadow: 0 6px 20px rgba(0,0,0,0.09);
  transform: translateY(-2px);
}

.doktar-card__icon {
  flex-shrink: 0;
  width: 2.4rem;
  height: 2.4rem;
  color: var(--brown);
}

.doktar-card__icon img {
  width: 100%;
  height: 100%;
  display: block;
}

.doktar-card__body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.doktar-card__kat {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.doktar-card__cim {
  font-family: "Fira Sans", "Open Sans", Arial, sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--ink);
  margin: 0;
  line-height: 1.35;
}

.doktar-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.doktar-card__type {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  padding: 0.15em 0.6em;
  border-radius: 999px;
}

.doktar-card__type--pdf  { background: #fde8e8; color: #b91c1c; }
.doktar-card__type--docx { background: #dbeafe; color: #1d4ed8; }
.doktar-card__type--link { background: var(--sand-100); color: var(--brown); }

.doktar-card__btn {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--brown);
  text-decoration: none;
  white-space: nowrap;
}

.doktar-card__btn:hover {
  text-decoration: underline;
}

/* ═══════════════════════════════════════════════════════════════════════════
   ERASMUS+
   ═══════════════════════════════════════════════════════════════════════════ */

.section--erasmus {
  padding: 3rem 0 4rem;
}

/* Hero (kép + szöveg egymás mellett) */
.erasmus-hero {
  display: flex;
  align-items: flex-start;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}

.erasmus-hero__left {
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  gap: 0.75rem;
}

.erasmus-hero__logo {
  width: 200px;
  height: auto;
  border-radius: 8px;
}

/* Logósáv: EU zászló felül, Erasmus+ logó alul */
.erasmus-logo-bar {
  display: flex;
  flex-direction: column;
  width: 200px;
}

.erasmus-logo-bar__eu-flag {
  width: 100%;
  height: auto;
  display: block;
}

.erasmus-logo-bar__erasmus-bg {
  background: #007bff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 0.75rem;
}

.erasmus-logo-bar__erasmus-logo {
  width: 100%;
  height: auto;
  display: block;
}

@media (max-width: 680px) {
  .erasmus-hero {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .erasmus-hero__left { align-items: center; }
  .erasmus-hero__logo { width: 150px; }
  .erasmus-logo-bar { width: 150px; }
}

.erasmus-intro {
  max-width: 720px;
  color: var(--ink);
  line-height: 1.7;
}

.erasmus-intro h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--brown);
  margin: 0 0 1rem;
}

.erasmus-intro p + p {
  margin-top: 1rem;
}

.erasmus-intro__link {
  margin-top: 1.25rem !important;
}

.erasmus-intro__link a {
  font-weight: 600;
  color: var(--brown);
  text-decoration: none;
}

.erasmus-intro__link a:hover {
  text-decoration: underline;
}

/* Szekció kártyák (főoldal) */
.erasmus-sections {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 1rem;
}

@media (max-width: 900px) {
  .erasmus-sections { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .erasmus-sections { grid-template-columns: 1fr; }
}

.erasmus-section-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--ring);
  border-radius: 12px;
  padding: 1.75rem 1.5rem;
  text-decoration: none;
  color: var(--ink);
  transition: box-shadow 0.18s, transform 0.18s;
}

.erasmus-section-card:hover {
  box-shadow: 0 6px 20px rgba(0,0,0,0.10);
  transform: translateY(-2px);
}

.erasmus-section-card__title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--brown);
  margin: 0 0 0.6rem;
}

.erasmus-section-card__desc {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.6;
  flex: 1;
  margin: 0 0 1rem;
}

.erasmus-section-card__link {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--brown);
}

/* Személy kártyarács (kategória-index oldalak) */
.erasmus-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 1rem;
}

@media (max-width: 900px) {
  .erasmus-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .erasmus-grid { grid-template-columns: 1fr; }
}

.erasmus-person-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--ring);
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  color: var(--ink);
  transition: box-shadow 0.18s, transform 0.18s;
}

.erasmus-person-card:hover {
  box-shadow: 0 6px 20px rgba(0,0,0,0.10);
  transform: translateY(-2px);
}

.erasmus-person-card__thumb {
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--sand-100);
}

.erasmus-person-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.erasmus-person-card:hover .erasmus-person-card__thumb img {
  transform: scale(1.04);
}

.erasmus-person-card__thumb--empty {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
}

.erasmus-person-card__body {
  padding: 1.1rem 1.25rem 1.25rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.erasmus-person-card__name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--brown);
  margin: 0 0 0.4rem;
}

.erasmus-person-card__excerpt {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.5;
  flex: 1;
  margin: 0 0 0.75rem;
}

.erasmus-person-card__link {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--brown);
  align-self: flex-start;
}

/* Aloldal (egyedi személy-oldal) tartalom */
.erasmus-subpage {
  max-width: 760px;
}

.erasmus-subpage .wp-block-gallery {
  margin-top: 2rem;
}

/* WP Gallery alap */
.wp-block-gallery {
  display: grid;
  gap: 0.5rem;
}

.wp-block-gallery.columns-2 { grid-template-columns: repeat(2, 1fr); }
.wp-block-gallery.columns-3 { grid-template-columns: repeat(3, 1fr); }

@media (max-width: 600px) {
  .wp-block-gallery.columns-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 420px) {
  .wp-block-gallery.columns-2,
  .wp-block-gallery.columns-3 { grid-template-columns: 1fr; }
}

.wp-block-gallery .wp-block-image {
  margin: 0;
}

.wp-block-gallery .wp-block-image img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 6px;
  display: block;
  transition: opacity 0.2s;
}

/* ─────────────────────────────────────────────────────────────────────────────
   Híres madáchosok – Alumni kártyarács
───────────────────────────────────────────────────────────────────────────── */

.section--alumni {
  padding: 3rem 0 4rem;
}

/* Vezérlők (kereső + szűrők) */
.alumni-controls {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin: 1.5rem 0 2rem;
}

/* Névkereső */
.alumni-search__input {
  padding: 0.45rem 1.1rem;
  border: 1.5px solid var(--brown, #8B4513);
  border-radius: 999px;
  font-size: 0.88rem;
  width: 100%;
  max-width: 360px;
  outline: none;
  background: #fff;
  transition: box-shadow 0.15s;
}

.alumni-search__input:focus {
  box-shadow: 0 0 0 3px rgba(139,69,19,.15);
}

/* Szűrő gombok */
.alumni-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0;
}

.alumni-filter-btn,
.alumni-decade-btn {
  padding: 0.35rem 0.9rem;
  border: 1.5px solid var(--brown, #8B4513);
  border-radius: 999px;
  background: transparent;
  color: var(--brown, #8B4513);
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.alumni-filter-btn:hover,
.alumni-filter-btn.active,
.alumni-decade-btn:hover,
.alumni-decade-btn.active {
  background: var(--brown, #8B4513);
  color: #fff;
}

/* Évtized szűrő – kisebb betű */
.alumni-filters--decades .alumni-decade-btn {
  font-size: 0.78rem;
  padding: 0.28rem 0.75rem;
  border-color: color-mix(in srgb, var(--brown, #8B4513) 55%, transparent);
  color: color-mix(in srgb, var(--brown, #8B4513) 75%, #000);
}

.alumni-filters--decades .alumni-decade-btn:hover,
.alumni-filters--decades .alumni-decade-btn.active {
  background: color-mix(in srgb, var(--brown, #8B4513) 70%, #000);
  border-color: color-mix(in srgb, var(--brown, #8B4513) 70%, #000);
  color: #fff;
}

/* Kártyarács */
.alumni-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  margin-top: 0.5rem;
}

@media (max-width: 1100px) { .alumni-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 750px)  { .alumni-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px)  { .alumni-grid { grid-template-columns: 1fr; } }

/* Kártya */
.alumni-card {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 1px 4px rgba(0,0,0,.08);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s, transform 0.2s;
}

.alumni-card:hover {
  box-shadow: 0 4px 14px rgba(0,0,0,.13);
  transform: translateY(-2px);
}

/* Kép */
.alumni-card__img {
  aspect-ratio: 3/4;
  overflow: hidden;
  background: var(--sand-100, #f5f0ea);
}

.alumni-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform 0.3s;
}

.alumni-card:hover .alumni-card__img img {
  transform: scale(1.04);
}

.alumni-card__img--placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--sand-100, #f5f0ea);
}

.alumni-card__img--placeholder svg {
  display: block;
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  padding: 12px;
  box-sizing: content-box;
  border-radius: 50%;
  background: rgba(139,69,19,.1);
  color: var(--brown, #8B4513);
  opacity: 0.6;
}

/* Törzs */
.alumni-card__body {
  padding: 0.75rem 0.9rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  flex: 1;
}

.alumni-card__badge {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--brown, #8B4513);
  opacity: 0.8;
}

.alumni-card__name {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--ink, #1a1a1a);
  margin: 0;
  line-height: 1.3;
}

.alumni-card__desc {
  font-size: 0.78rem;
  color: var(--muted, #666);
  line-height: 1.5;
  margin: 0;
}

.alumni-empty {
  text-align: center;
  color: var(--muted, #999);
  padding: 3rem 0;
}

/* ─────────────────────────────────────────────────────────────────────────────
   Szünetek / fogadó órák – tanévi naptár
───────────────────────────────────────────────────────────────────────────── */

/* Jelmagyarázat */
.cal-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
  margin: 1.5rem 0 2rem;
}

.cal-legend__item {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.88rem;
  color: var(--ink, #1a1a1a);
}

/* Pont (dot) */
.cal-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.cal-dot--szunet  { background: #2e9e4f; }
.cal-dot--szuloi  { background: #e07b00; }
.cal-dot--fogado  { background: #7c3aed; }

/* Hónapok rácsa */
.cal-months-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.25rem;
  margin-bottom: 3rem;
}

@media (max-width: 1200px) { .cal-months-grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 900px)  { .cal-months-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 620px)  { .cal-months-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 400px)  { .cal-months-grid { grid-template-columns: 1fr; } }

/* Egy hónap */
.cal-month {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 1px 5px rgba(0,0,0,.07);
  overflow: hidden;
}

.cal-month__header {
  background: var(--brown, #8B4513);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 700;
  text-align: center;
  padding: 0.4rem 0.5rem;
  letter-spacing: 0.02em;
}

/* 7-oszlopos naptárrács */
.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 1px;
  background: #ece8e3;
  border-top: 1px solid #ece8e3;
}

.cal-grid__head {
  background: #f7f3ef;
  text-align: center;
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--muted, #888);
  padding: 0.25rem 0;
}

.cal-grid__cell {
  background: #fff;
  min-height: 34px;
  padding: 2px 3px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  position: relative;
}

.cal-grid__cell--empty {
  background: #faf8f6;
}

.cal-grid__cell--weekend {
  background: #faf7f4;
}

.cal-day-num {
  font-size: 0.72rem;
  color: var(--ink, #222);
  line-height: 1.6;
}

/* Esemény hátterek */
.cal-grid__cell--szunet  { background: #edf7f0; }
.cal-grid__cell--szuloi  { background: #fff4e5; }
.cal-grid__cell--fogado  { background: #f3effe; }

/* Listás összefoglaló */
.cal-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 1rem;
}

@media (max-width: 750px) { .cal-list { grid-template-columns: 1fr; } }

.cal-list__group h3 {
  font-size: 0.9rem;
  font-weight: 700;
  margin: 0 0 0.6rem;
  color: var(--ink, #1a1a1a);
}

.cal-list__item {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.83rem;
  color: var(--ink, #333);
  margin-bottom: 0.45rem;
  line-height: 1.5;
}

/* ─────────────────────────────────────────────────────────────────────────────
   Naptár – tanévi lista (page-naptar.php)
───────────────────────────────────────────────────────────────────────────── */

.naptar-month {
  margin-bottom: 2.5rem;
}

.naptar-month__heading {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--brown, #8B4513);
  border-bottom: 2px solid var(--brown, #8B4513);
  padding-bottom: 0.3rem;
  margin: 0 0 0.75rem;
}

.naptar-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.naptar-list__item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.5rem 0.5rem 0.5rem 0;
  border-bottom: 1px solid #ece8e3;
}

/* Dátum kártya */
.naptar-date-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 62px;
  min-width: 62px;
  background: #fff;
  border: 1px solid #ddd;
  border-top: 3px solid var(--brown, #8B4513);
  border-radius: 4px;
  padding: 4px 0 5px;
  text-align: center;
  line-height: 1.1;
}

.naptar-date-card__ho {
  font-size: 0.68rem;
  font-weight: 600;
  color: #fff;
  background: var(--brown, #8B4513);
  width: 100%;
  text-align: center;
  padding: 2px 0;
  border-radius: 2px 2px 0 0;
  margin: -4px 0 2px;
}

.naptar-date-card__nap {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--brown, #8B4513);
  line-height: 1;
}

.naptar-date-card__dow {
  font-size: 0.62rem;
  color: var(--muted, #888);
  margin-top: 2px;
}

/* Dátum tartomány (kezdő + záró kártya) */
.naptar-date-range {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-shrink: 0;
}

.naptar-date-range__sep {
  font-size: 1.1rem;
  color: var(--muted, #aaa);
  line-height: 1;
}

/* Esemény törzs */
.naptar-list__body {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.naptar-list__meta {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--brown, #8B4513);
}

.naptar-list__label {
  font-size: 0.97rem;
  color: var(--ink, #1a1a1a);
  text-decoration: none;
  font-weight: 500;
}

.naptar-list__label:hover {
  color: var(--brown, #8B4513);
  text-decoration: underline;
}

/* Esemény dátum wrapper (archív + single) */
.esemeny-datum-wrap {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-shrink: 0;
}

.esemeny-card-ido {
  font-size: 1rem;
  font-weight: 700;
  color: var(--brown, #8B4513);
}

/* Dátumkártya + cím egy sorban */
.esemeny-card-header {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 0.6rem;
}

.esemeny-card-header .news-card__title {
  margin: 0;
}

.naptar-empty {
  font-style: italic;
  color: var(--muted, #999);
  font-size: 0.9rem;
}

@media (max-width: 480px) {
  .naptar-date-card        { width: 52px; min-width: 52px; }
  .naptar-date-card__nap   { font-size: 1.4rem; }
}

/* ─────────────────────────────────────────────────────────────────────────────
   Gallery hover
───────────────────────────────────────────────────────────────────────────── */

.wp-block-gallery .wp-block-image a:hover img {
  opacity: 0.88;
}