/* ============================================================
   m_styles.css – Modern Redesign
   Stílus: Természet-ihlette, letisztult önkormányzati design
   Paletta: Mélyzöld + Sage + Krém + Köd
   Betűtípusok: Playfair Display (cím) + DM Sans (szöveg)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;1,9..40,300&display=swap');

/* ── CSS Változók ───────────────────────────────────────── */
:root {
  --zold:        #3B6B50;
  --zold-vilag:  #519872;
  --zold-sote:   #2A4E3A;
  --sage:        #B8C4AD;
  --sage-halvany:#E8EDE3;
  --krem:        #F7F4EF;
  --krem-sotet:  #EDE8DF;
  --szurke:      #4A4A4A;
  --szurke-halvany: #9A9A8E;
  --feher:       #FFFFFF;
  --arnyek-kicsi: 0 2px 8px rgba(42, 78, 58, 0.08);
  --arnyek-kozepes: 0 6px 24px rgba(42, 78, 58, 0.12);
  --arnyek-nagy: 0 16px 48px rgba(42, 78, 58, 0.16);
  --radius-s:    6px;
  --radius-m:    12px;
  --radius-l:    20px;
  --atm-gyors:   0.2s ease;
  --atm-kozepes: 0.35s ease;
  --atm-lassu:   0.5s ease;
  --font-cim:    'Playfair Display', Georgia, serif;
  --font-szoveg: 'DM Sans', 'Segoe UI', sans-serif;
}

/* ── Reset & Alap ───────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-szoveg);
  font-weight: 400;
  color: var(--szurke);
  background-color: var(--krem);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* ── Keret ──────────────────────────────────────────────── */
#keret {
  width: 100%;
  margin: 0 auto;
}

/* ── Fejléc ─────────────────────────────────────────────── */
#header {
  width: 100%;
  background: var(--feher);
}

#fejlec_felso {
  width: 100%;
  position: relative;
}

#logo {
  position: absolute;
  top: 16px;
  left: 48px;
}

/* ── Videó háttér ───────────────────────────────────────── */
.video-background {
  position: relative;
  width: 100%;
  height: 90vh;
  overflow: hidden;
  background: var(--zold-sote);
}

.video-background::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    transparent 40%,
    rgba(42, 78, 58, 0.35) 80%,
    rgba(42, 78, 58, 0.65) 100%
  );
  z-index: 2;
  pointer-events: none;
}

.video-background iframe {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 120vw;
  height: 120vh;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 1;
}

#nagykep {
  width: 100%;
  height: auto;
  overflow: hidden;
}

#nagykep img {
  width: 100%;
  display: block;
}

#yt-mobile {
  display: none;
}

/* ── Görgetés-jelző ─────────────────────────────────────── */
.scroll-indicator {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 22px;
  color: var(--feher);
  animation: bounce 1.4s ease-in-out infinite;
  opacity: 0.75;
  cursor: pointer;
  z-index: 50;
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(10px); }
}

/* ── Navbar ─────────────────────────────────────────────── */
.navbar {
  display: flex;
  justify-content: center;
  align-items: center;
  background: rgba(247, 244, 239, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 999;
  transition: background var(--atm-kozepes), box-shadow var(--atm-kozepes);
  border-bottom: 1px solid rgba(184, 196, 173, 0.4);
}

.navbar.scrolled {
  background: rgba(247, 244, 239, 0.98);
  box-shadow: var(--arnyek-kicsi);
}

.logo-m {
  display: none;
}

/* ── Hamburger ──────────────────────────────────────────── */
.hamburger {
  width: 100%;
  display: none;
  font-size: 28px;
  cursor: pointer;
  justify-content: space-between;
  align-items: center;
  padding: 12px 20px;
  border-bottom: 2px solid var(--sage);
  background: var(--krem);
}

.hamburger img {
  float: right;
  height: 38px;
  width: auto;
}

/* ── Menü ───────────────────────────────────────────────── */
.menu {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 4px;
  margin: 6px 0;
  padding: 0;
}

.menu li {
  position: relative;
}

.menu li a,
.menu .dropdown-toggle {
  color: var(--szurke);
  text-decoration: none;
  font-size: 14.5px;
  font-weight: 500;
  letter-spacing: 0.02em;
  padding: 8px 16px;
  display: block;
  border-radius: var(--radius-s);
  transition: color var(--atm-gyors), background var(--atm-gyors);
}

.menu li a:hover,
.menu .dropdown-toggle:hover {
  color: var(--zold);
  background: var(--sage-halvany);
  text-decoration: none;
}

/* ── Logó a menüben ─────────────────────────────────────── */
.logo img {
  height: 68px;
  display: block;
}

/* ── Almenü (dropdown) ──────────────────────────────────── */
.submenu {
  display: block;
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  background: var(--feher);
  min-width: 210px;
  box-shadow: var(--arnyek-kozepes);
  z-index: 1000;
  border-radius: var(--radius-m);
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: max-height 0.3s ease, opacity 0.25s ease;
  border: 1px solid var(--sage-halvany);
}

.submenu li {
  border-bottom: 1px solid var(--sage-halvany);
}

.submenu li:last-child {
  border-bottom: none;
}

.submenu li a {
  padding: 11px 18px;
  font-size: 14px;
  color: var(--szurke);
}

.submenu li a:hover {
  background: var(--sage-halvany);
  color: var(--zold);
  text-decoration: none;
}

.dropdown:hover .submenu {
  max-height: 400px;
  opacity: 1;
}

.dropdown-toggle {
  cursor: pointer;
  user-select: none;
}

/* ── Tartalom kezdete ───────────────────────────────────── */
#tartalom {
  margin-top: 13vh;
}

/* ── Általános konténer ─────────────────────────────────── */
.container {
  width: 100%;
  padding-left: 20px;
  padding-right: 20px;
  margin: 0 auto;
}

.container h2 {
  font-family: var(--font-cim);
  font-size: 1.9rem;
  font-weight: 700;
  color: var(--zold-sote);
  border-bottom: 3px solid var(--zold-vilag);
  padding-bottom: 12px;
  margin-bottom: 28px;
  text-transform: none;
  letter-spacing: -0.01em;
}

.content {
  margin: auto;
}

/* ── Köszöntő szekció ───────────────────────────────────── */
#greeting {
  width: 80%;
  margin: 0 auto 10vh;
  background: var(--feher);
  padding: 40px 48px;
  border-radius: var(--radius-l);
  box-shadow: var(--arnyek-kicsi);
}

#greeting .greeting-content {
  font-size: 1.05rem;
  color: var(--szurke);
  line-height: 1.85;
}

#greeting .greeting-footer {
  margin-top: 28px;
  font-weight: 600;
  text-align: right;
  color: var(--zold-sote);
  font-size: 0.95rem;
}

#greeting img {
  float: left;
  margin: 0 28px 20px 0;
  width: 272px;
  height: auto;
  aspect-ratio: 288/367;
  border-radius: var(--radius-m);
  box-shadow: var(--arnyek-kozepes);
  border-bottom: 3px solid var(--zold-vilag);
  border-left: 3px solid var(--zold-vilag);
}

/* ── Hírek szekció ──────────────────────────────────────── */
#news {
  margin-bottom: 10vh;
  background: var(--sage-halvany);
  padding: 36px 0;
  position: relative;
  overflow: hidden;
}

#news::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--zold-vilag), var(--sage), var(--zold-vilag));
}

#news .container {
  width: 80%;
  padding: 0 20px;
  margin: auto;
}

.news-slider {
  display: flex;
  overflow-x: hidden;
  scroll-snap-type: x mandatory;
}

.news-item {
  min-width: 100%;
  scroll-snap-align: start;
  position: relative;
}

.news-item img {
  width: 14%;
  height: auto;
  border-radius: var(--radius-m);
  border-bottom: 2px solid var(--zold-vilag);
  border-right: 2px solid var(--zold-vilag);
  float: right;
  margin-right: 4vh;
  box-shadow: var(--arnyek-kicsi);
}

.news-content {
  padding-left: 12px;
}

.news-dots {
  text-align: center;
  margin-top: 18px;
}

.news-dot {
  height: 8px;
  width: 8px;
  margin: 0 5px;
  background: var(--sage);
  border-radius: 50%;
  display: inline-block;
  cursor: pointer;
  transition: background var(--atm-gyors), transform var(--atm-gyors);
}

.news-dot.active {
  background: var(--zold);
  transform: scale(1.3);
}

.news-read-more {
  display: inline-block;
  margin-top: 12px;
  padding: 8px 20px;
  background: var(--zold);
  color: var(--feher);
  text-decoration: none;
  border-radius: var(--radius-s);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: background var(--atm-gyors), transform var(--atm-gyors), box-shadow var(--atm-gyors);
}

.news-read-more:hover {
  background: var(--zold-sote);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(59, 107, 80, 0.3);
}

/* ── Események szekció ──────────────────────────────────── */
#events {
  width: 80%;
  margin: 0 auto 10vh;
}

#events .events-content {
  display: flex;
  justify-content: space-between;
  gap: 24px;
}

.events-left,
.events-right {
  width: 48%;
}

.event {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: var(--feher);
  border: 1px solid var(--krem-sotet);
  border-left: 3px solid var(--zold-vilag);
  border-radius: var(--radius-m);
  transition: box-shadow var(--atm-gyors), transform var(--atm-gyors), border-left-color var(--atm-gyors);
  margin-top: 10px;
  margin-bottom: 18px;
}

.event:hover {
  box-shadow: var(--arnyek-kozepes);
  transform: translateX(3px);
  border-left-color: var(--zold-sote);
}

.event-info {
  max-width: 80%;
}

.event-title {
  font-family: var(--font-cim);
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0 0 4px;
  color: var(--zold-sote);
}

.event-date {
  font-size: 0.82rem;
  margin: 0 0 5px;
  color: var(--szurke-halvany);
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.event-description {
  font-size: 0.88rem;
  color: #6A6A5E;
  margin: 0;
}

.event-arrow {
  display: flex;
  align-items: center;
}

.event-view-more {
  font-size: 1.4rem;
  color: var(--zold-vilag);
  text-decoration: none;
  transition: color var(--atm-gyors), transform var(--atm-gyors);
  display: flex;
  align-items: center;
}

.event-view-more:hover {
  color: var(--zold-sote);
  transform: translateX(4px);
}

/* ── Naptár ─────────────────────────────────────────────── */
#calendar,
#calendar-header {
  width: 80%;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
  margin-top: 12px;
}

#calendar .day,
#calendar .day-name {
  padding: 10px;
  text-align: center;
  border: 1px solid var(--sage);
  border-radius: var(--radius-s);
  font-size: 0.9rem;
}

#calendar .day-name {
  font-weight: 600;
  background: var(--sage-halvany);
  color: var(--zold-sote);
  border-color: var(--sage);
}

#calendar .today {
  background: var(--sage);
  border-radius: 50%;
  color: var(--zold-sote);
  font-weight: 600;
}

#calendar-header {
  display: flex;
  grid-template-columns: unset;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

#calendar-header button {
  padding: 6px 14px;
  cursor: pointer;
  background: var(--feher);
  border: 1px solid var(--sage);
  border-radius: var(--radius-s);
  color: var(--zold);
  font-family: var(--font-szoveg);
  font-size: 0.9rem;
  transition: background var(--atm-gyors), color var(--atm-gyors);
}

#calendar-header button:hover {
  background: var(--zold);
  color: var(--feher);
  border-color: var(--zold);
}

#calendar-header h3 {
  font-family: var(--font-cim);
  font-size: 1.1rem;
  color: var(--zold-sote);
}

/* ── Faluleírás szekció ─────────────────────────────────── */
#description {
  margin-bottom: 10vh;
}

#description .container {
  width: 80%;
}

#description img {
  float: right;
  margin: 0 0 0 24px;
  width: 260px;
  height: auto;
  border-radius: var(--radius-m);
  border-bottom: 3px solid var(--zold-vilag);
  border-right: 3px solid var(--zold-vilag);
  box-shadow: var(--arnyek-kozepes);
}

#desc-content {
  font-size: 1.02rem;
  color: var(--szurke);
  line-height: 1.85;
}

.desc-read-more {
  display: inline-block;
  margin-top: 14px;
  padding: 9px 22px;
  background: var(--zold);
  color: var(--feher);
  text-decoration: none;
  border-radius: var(--radius-s);
  font-weight: 500;
  font-size: 0.9rem;
  transition: background var(--atm-gyors), transform var(--atm-gyors);
}

.desc-read-more:hover {
  background: var(--zold-sote);
  transform: translateY(-2px);
}

/* ── Pályázat banner (fix) ──────────────────────────────── */
#bottom-banner {
  position: fixed;
  max-width: 100%;
  width: 50%;
  margin: auto;
  border-radius: var(--radius-m) var(--radius-m) 0 0;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--feher);
  box-shadow: 0 -4px 20px rgba(42, 78, 58, 0.12);
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  flex-direction: column;
  transition: opacity var(--atm-kozepes), transform var(--atm-kozepes);
  border-top: 2px solid var(--sage);
}

#bottom-banner.hide {
  opacity: 0;
  transform: translateY(100%);
  pointer-events: none;
}

#bottom-banner #close-banner {
  position: absolute;
  top: 8px;
  right: 14px;
  background: none;
  border: none;
  font-size: 22px;
  cursor: pointer;
  color: var(--szurke-halvany);
  transition: color var(--atm-gyors);
}

#bottom-banner #close-banner:hover {
  color: var(--szurke);
}

.banner-images {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.banner-images img {
  width: auto;
  height: 90px;
  border-radius: var(--radius-s);
  opacity: 0.9;
  transition: opacity var(--atm-gyors);
}

.banner-images img:hover {
  opacity: 1;
}

/* ── Hírek oldal ────────────────────────────────────────── */
.article-container {
  width: 100%;
  margin: auto;
}

.article-header {
  width: 70%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 3px solid var(--zold-vilag);
  margin: 0 auto 28px;
}

.article-header h1 {
  font-family: var(--font-cim);
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--zold-sote);
  margin-bottom: 28px;
  letter-spacing: -0.02em;
}

.article-box {
  width: 70%;
  display: flex;
  flex-wrap: wrap;
  padding: 24px;
  background: var(--feher);
  border: 1px solid var(--krem-sotet);
  border-radius: var(--radius-m);
  transition: box-shadow var(--atm-kozepes), transform var(--atm-kozepes);
  overflow: hidden;
  flex-grow: 1;
  margin: 0 auto 20px;
  opacity: 0;
}

.article-box.show {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.article-box.odd {
  background-color: var(--krem);
}

.article-box:hover {
  box-shadow: var(--arnyek-kozepes);
  transform: translateY(-3px);
}

.article-image {
  flex: 0 0 280px;
  margin-right: 24px;
}

.article-image img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-m);
  display: block;
}

.article-content {
  flex: 1;
}

.article-title {
  font-family: var(--font-cim);
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}

.article-title a {
  text-decoration: none;
  color: var(--zold-sote);
  transition: color var(--atm-gyors);
}

.article-title a:hover {
  color: var(--zold-vilag);
}

.article-summary {
  margin-bottom: 16px;
  color: #5E5E52;
  font-size: 0.97rem;
  line-height: 1.7;
}

.article-read-more a {
  text-decoration: none;
  color: var(--zold-vilag);
  font-weight: 600;
  font-size: 0.9rem;
  transition: color var(--atm-gyors);
  letter-spacing: 0.03em;
}

.article-read-more a:hover {
  color: var(--zold-sote);
}

.article-date {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin-bottom: 20px;
  min-width: 50px;
}

.article-date .month {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--zold-vilag);
}

.article-date .day {
  font-family: var(--font-cim);
  font-size: 2rem;
  font-weight: 700;
  color: var(--zold-sote);
  line-height: 1;
}

/* ── Keresés ────────────────────────────────────────────── */
.search-form {
  display: flex;
  align-items: center;
  gap: 8px;
}

.search-form input[type="text"] {
  padding: 10px 16px;
  font-size: 0.95rem;
  font-family: var(--font-szoveg);
  border: 1.5px solid var(--sage);
  border-radius: 50px;
  width: 240px;
  transition: width var(--atm-kozepes), border-color var(--atm-gyors), box-shadow var(--atm-gyors);
  background: var(--feher);
  color: var(--szurke);
}

.search-form input[type="text"]:focus {
  outline: none;
  border-color: var(--zold-vilag);
  box-shadow: 0 0 0 3px rgba(81, 152, 114, 0.15);
  width: 290px;
}

.search-form button {
  background: var(--zold);
  color: var(--feher);
  padding: 10px 18px;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  font-size: 0.95rem;
  font-family: var(--font-szoveg);
  font-weight: 500;
  transition: background var(--atm-gyors), transform var(--atm-gyors);
}

.search-form button:hover {
  background: var(--zold-sote);
  transform: translateY(-1px);
}

/* ── Lapozás ────────────────────────────────────────────── */
.pagination {
  text-align: center;
  margin-top: 36px;
  display: flex;
  justify-content: center;
  gap: 6px;
  flex-wrap: wrap;
}

.pagination a {
  text-decoration: none;
  padding: 7px 14px;
  background: var(--feher);
  border: 1.5px solid var(--sage);
  border-radius: var(--radius-s);
  color: var(--szurke);
  font-weight: 500;
  font-size: 0.9rem;
  transition: background var(--atm-gyors), color var(--atm-gyors), border-color var(--atm-gyors);
}

.pagination a:hover {
  background: var(--zold);
  color: var(--feher);
  border-color: var(--zold);
}

.pagination .active {
  background: var(--zold);
  color: var(--feher);
  border-color: var(--zold);
}

.pagination .prev,
.pagination .next {
  font-weight: 700;
}

.pagination svg {
  display: none;
}

/* ── Tartalom-elem ──────────────────────────────────────── */
.content-item {
  max-width: 960px;
  min-width: 340px;
  margin: 48px auto;
  padding: 52px;
  background: var(--feher);
  border-radius: var(--radius-l);
  box-shadow: var(--arnyek-kozepes);
  transition: transform var(--atm-kozepes);
}

.content-item:hover {
  transform: translateY(-4px);
}

.content-item h1 {
  font-family: var(--font-cim);
  font-size: 2.4rem;
  color: var(--zold-sote);
  margin-bottom: 28px;
  text-align: center;
  letter-spacing: -0.02em;
  font-weight: 700;
  line-height: 1.2;
}

.content-item a {
  color: var(--zold-vilag);
  text-decoration: none;
  font-weight: 600;
  transition: color var(--atm-gyors);
}

.content-item a:hover {
  color: var(--zold-sote);
  text-decoration: underline;
}

.header-item {
  background: var(--sage-halvany);
  padding: 32px;
  border-radius: var(--radius-m);
  text-align: center;
  margin-bottom: 40px;
  border: 1px solid var(--sage);
}

.header-item img {
  width: 30%;
  height: auto;
  border-radius: var(--radius-m);
  margin: 20px 0;
  box-shadow: var(--arnyek-kicsi);
}

.lead-item {
  margin: 24px 0;
  font-size: 1.2rem;
  color: #555;
  line-height: 1.85;
  font-style: italic;
}

.text-item {
  margin: 32px 0;
  color: var(--szurke);
  line-height: 1.85;
  font-size: 1.05rem;
}

.back-link {
  display: inline-block;
  margin-top: 40px;
  color: var(--zold);
  background: var(--sage-halvany);
  padding: 11px 26px;
  border-radius: var(--radius-s);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  border: 1.5px solid var(--sage);
  transition: background var(--atm-gyors), transform var(--atm-gyors), color var(--atm-gyors);
}

.back-link:hover {
  background: var(--zold);
  color: var(--feher);
  border-color: var(--zold);
  transform: translateY(-2px);
}

/* ── Testület / Dolgozók ────────────────────────────────── */
.page-title {
  text-align: center;
  margin: 28px 0;
  font-family: var(--font-cim);
  font-size: 2.2rem;
  color: var(--zold-sote);
  font-weight: 700;
  letter-spacing: -0.01em;
}

.card-container {
  max-width: 1700px;
  margin: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  padding: 24px;
  justify-content: center;
}

.card {
  display: flex;
  align-items: stretch;
  height: 38vh;
  width: calc(80% - 10px);
  max-width: 600px;
  background: var(--feher);
  border-radius: var(--radius-l);
  box-shadow: var(--arnyek-kicsi);
  overflow: hidden;
  opacity: 0;
  transition: transform var(--atm-kozepes), box-shadow var(--atm-kozepes);
  border: 1px solid var(--krem-sotet);
}

.card.show {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.75s ease, transform 0.75s ease;
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: var(--arnyek-nagy);
}

.card-image {
  width: 150px;
  height: 100%;
  object-fit: cover;
  flex-shrink: 0;
}

.card-info {
  flex: 1;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.card-name {
  font-family: var(--font-cim);
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--zold-sote);
  margin: 0 0 8px;
  line-height: 1.2;
}

.card-title {
  font-size: 0.95rem;
  color: var(--szurke-halvany);
  margin: 0 0 10px;
  font-weight: 500;
}

.card-contact {
  font-size: 0.88rem;
  color: var(--szurke);
  line-height: 1.6;
}

.card-contact a {
  color: var(--zold-vilag);
  text-decoration: none;
  transition: color var(--atm-gyors);
}

.card-contact a:hover {
  color: var(--zold-sote);
  text-decoration: underline;
}

/* ── Szekció cím ────────────────────────────────────────── */
.section-title {
  font-family: var(--font-cim);
  font-size: 1.6rem;
  color: var(--zold-sote);
  text-align: center;
  margin: 24px 0 10px;
  letter-spacing: -0.01em;
  border-bottom: 2px solid var(--sage);
  padding-bottom: 8px;
}

.info-section {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 24px;
  background: var(--krem-sotet);
  border-top: 2px solid var(--sage);
  border-bottom: 2px solid var(--sage);
  margin: 24px 0;
}

.info-section div {
  flex: 1;
  padding: 16px;
  background: var(--feher);
  border-radius: var(--radius-m);
  box-shadow: var(--arnyek-kicsi);
}

.centered-section {
  text-align: center;
  padding: 24px;
  background: var(--feher);
  border-radius: var(--radius-m);
  margin: 24px auto;
  width: 80%;
  box-shadow: var(--arnyek-kicsi);
}

/* ── Dokumentumtár ──────────────────────────────────────── */
.docs-container {
  max-width: 1200px;
  margin: 32px auto 0;
  background: var(--feher);
  border-radius: var(--radius-l);
  box-shadow: var(--arnyek-kozepes);
  overflow: hidden;
}

.docs-header {
  background: linear-gradient(135deg, var(--zold-sote), var(--zold));
  color: var(--feher);
  text-align: center;
  padding: 28px 16px;
}

.docs-header h1 {
  font-family: var(--font-cim);
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.docs-info {
  background: var(--krem);
  padding: 18px 24px;
  border: 1px solid var(--sage-halvany);
  border-left: 4px solid var(--zold-vilag);
  border-radius: var(--radius-s);
  font-size: 1rem;
  margin: 16px 20px 0;
  color: var(--szurke);
}

.docs-info p {
  margin: 0;
  line-height: 1.65;
}

.docs-info a {
  color: var(--zold-vilag);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1.5px solid transparent;
  transition: border-color var(--atm-gyors), color var(--atm-gyors);
}

.docs-info a:hover {
  color: var(--zold-sote);
  border-bottom-color: var(--zold-sote);
}

.docs-content {
  padding: 24px;
}

.docs-category {
  margin-bottom: 24px;
}

.docs-category-title {
  font-family: var(--font-cim);
  font-size: 1.15rem;
  color: var(--zold-sote);
  margin-bottom: 12px;
  border-bottom: 2px solid var(--sage-halvany);
  padding-bottom: 6px;
}

.docs-list {
  list-style: none;
  margin: 10px 0;
  padding-left: 8px;
}

.docs-item {
  margin-bottom: 8px;
}

.docs-item a {
  text-decoration: none;
  color: var(--zold-vilag);
  transition: color var(--atm-gyors);
  font-size: 0.97rem;
}

.docs-item a:hover {
  color: var(--zold-sote);
}

.docs-separator {
  border: none;
  height: 1px;
  background: var(--krem-sotet);
  margin: 20px 0;
}

.docs-filter {
  margin: 20px;
  text-align: center;
  display: flex;
  gap: 10px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}

.docs-filter label {
  font-size: 0.95rem;
  color: var(--szurke);
  font-weight: 500;
}

.docs-filter select {
  padding: 8px 14px;
  font-size: 0.95rem;
  font-family: var(--font-szoveg);
  border: 1.5px solid var(--sage);
  border-radius: var(--radius-s);
  outline: none;
  background: var(--feher);
  color: var(--szurke);
  transition: border-color var(--atm-gyors);
}

.docs-filter select:focus {
  border-color: var(--zold-vilag);
}

.docs-filter button {
  background: var(--zold);
  color: var(--feher);
  border: none;
  border-radius: var(--radius-s);
  padding: 9px 20px;
  font-size: 0.95rem;
  font-family: var(--font-szoveg);
  font-weight: 500;
  cursor: pointer;
  transition: background var(--atm-gyors), box-shadow var(--atm-gyors), transform var(--atm-gyors);
}

.docs-filter button:hover {
  background: var(--zold-sote);
  box-shadow: 0 4px 12px rgba(59, 107, 80, 0.25);
  transform: translateY(-1px);
}

/* ── Intézmények ────────────────────────────────────────── */
.ins-container {
  max-width: 1200px;
  margin: 40px auto;
  padding: 24px;
  background: var(--feher);
  border-radius: var(--radius-l);
  box-shadow: var(--arnyek-kicsi);
}

.ins-container h1 {
  text-align: center;
  font-family: var(--font-cim);
  color: var(--zold-sote);
  margin-bottom: 32px;
  font-size: 2.2rem;
  letter-spacing: -0.02em;
}

.institution {
  display: flex;
  align-items: flex-start;
  margin-bottom: 40px;
  padding: 24px;
  background: var(--krem);
  border-radius: var(--radius-m);
  border: 1px solid var(--krem-sotet);
  transition: box-shadow var(--atm-gyors);
}

.institution:hover {
  box-shadow: var(--arnyek-kozepes);
}

.institution a {
  text-decoration: none;
  color: var(--zold-vilag);
  font-weight: 600;
  transition: color var(--atm-gyors);
}

.institution a:hover {
  color: var(--zold-sote);
}

.institution:nth-child(even) {
  flex-direction: row-reverse;
}

.institution img {
  width: 220px;
  height: 220px;
  object-fit: cover;
  margin: 0 24px;
  border-radius: var(--radius-m);
  box-shadow: var(--arnyek-kicsi);
}

.institution .text {
  flex: 1;
}

.institution h2 {
  font-family: var(--font-cim);
  color: var(--zold-sote);
  margin-bottom: 12px;
  font-size: 1.6rem;
  letter-spacing: -0.01em;
}

.institution p {
  margin: 6px 0;
  font-size: 1rem;
  color: var(--szurke);
}

.institution p strong {
  color: var(--zold);
}

/* ── Nemzetiségi önkormányzat ───────────────────────────── */
.container-ro {
  width: 90%;
  max-width: 1200px;
  margin: 24px auto;
  background: var(--feher);
  padding: 24px;
  box-shadow: var(--arnyek-kicsi);
  border-radius: var(--radius-m);
}

.container-ro h1,
.container-ro h2 {
  text-align: center;
  color: var(--zold-sote);
  font-family: var(--font-cim);
}

.representatives {
  margin-bottom: 24px;
}

.rep-card {
  background: var(--krem-sotet);
  padding: 16px 20px;
  margin: 10px 0;
  border-radius: var(--radius-m);
  border-left: 3px solid var(--zold-vilag);
  font-size: 0.97rem;
}

/* ── Egyesületek ────────────────────────────────────────── */
.org-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 32px;
  padding: 24px;
}

.org-main {
  flex: 1 1 600px;
  max-width: 900px;
}

.organization-header {
  background: linear-gradient(135deg, var(--zold-sote), var(--zold-vilag));
  color: var(--feher);
  text-align: center;
  padding: 36px 30px;
  border-radius: 0 0 var(--radius-l) var(--radius-l);
  box-shadow: var(--arnyek-kozepes);
}

.organization-logo {
  width: 120px;
  height: auto;
  transition: transform var(--atm-kozepes);
}

.organization-logo:hover {
  transform: rotate(4deg) scale(1.08);
}

.organization-contact,
.organization-images {
  max-width: 900px;
  margin: 32px auto;
  background: var(--feher);
  padding: 32px;
  box-shadow: var(--arnyek-kozepes);
  border-radius: var(--radius-l);
}

.organization-contact p {
  font-size: 1.05rem;
  color: var(--szurke);
}

.organization-contact strong {
  color: var(--zold);
}

.image-container {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.org-image {
  width: 48%;
  border-radius: var(--radius-m);
  transition: transform var(--atm-kozepes), box-shadow var(--atm-kozepes);
}

.org-image:hover {
  transform: scale(1.05);
  box-shadow: var(--arnyek-nagy);
}

.org-facebook {
  flex: 0 0 320px;
  position: sticky;
  top: 24px;
  align-self: flex-start;
  background: var(--feher);
  padding: 20px;
  border-radius: var(--radius-l);
  box-shadow: var(--arnyek-kozepes);
  height: fit-content;
  border: 1px solid var(--krem-sotet);
}

.fb-icon-link {
  display: inline-block;
  margin-top: 10px;
}

/* ── IKSZT Foglalás ─────────────────────────────────────── */
.main-box {
  background-image: url("../images/borito.png");
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  background-size: cover;
  background-color: var(--zold-sote);
  box-shadow: var(--arnyek-kozepes);
  padding: 100px;
  min-height: 400px;
  text-align: center;
  margin: 0 auto;
}

.alter-box {
  width: 50%;
  border-radius: var(--radius-l);
  box-shadow: var(--arnyek-nagy);
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(8px);
  padding: 32px;
  margin: 0 auto;
  border: 1px solid var(--krem-sotet);
}

.main-box h1 {
  font-family: var(--font-cim);
  font-size: 2rem;
  margin-bottom: 24px;
  color: var(--feher);
  text-shadow: 0 2px 8px rgba(0,0,0,0.25);
}

.main-box h3 {
  margin-top: 24px;
  margin-bottom: 14px;
  color: var(--zold-sote);
  font-family: var(--font-cim);
  font-size: 1.2rem;
}

.main-box .calendar-container {
  max-width: 400px;
  width: 100%;
  background: var(--feher);
  padding: 20px;
  border-radius: var(--radius-l);
  box-shadow: var(--arnyek-kozepes);
  margin: 20px auto;
}

.main-box .calendar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.main-box .calendar-header h2 {
  font-family: var(--font-cim);
  font-size: 1.3rem;
  color: var(--zold-sote);
}

.main-box .calendar-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--zold-vilag);
  font-size: 0.85rem;
  letter-spacing: 0.03em;
}

.main-box .calendara {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}

.main-box .day {
  text-align: center;
  padding: 12px 0;
  border-radius: var(--radius-s);
  background: var(--krem);
  cursor: pointer;
  transition: background var(--atm-gyors), transform var(--atm-gyors);
  font-weight: 500;
  color: var(--szurke);
  font-size: 0.92rem;
}

.main-box .day:hover {
  background: var(--sage-halvany);
  transform: scale(1.05);
}

.main-box .selected-day {
  background: var(--zold);
  color: var(--feher);
  box-shadow: 0 0 0 3px rgba(81, 152, 114, 0.3);
}

.main-box .disabled-day {
  background: var(--krem-sotet);
  color: var(--szurke-halvany);
  cursor: not-allowed;
  pointer-events: none;
}

.main-box .submit-btn {
  margin: auto;
  margin-top: 24px;
  padding: 11px 28px;
  background: var(--zold);
  color: var(--feher);
  border: none;
  border-radius: var(--radius-s);
  font-size: 1rem;
  font-family: var(--font-szoveg);
  font-weight: 600;
  cursor: pointer;
  transition: background var(--atm-gyors), transform var(--atm-gyors);
  display: inline-block;
  letter-spacing: 0.02em;
}

.main-box .submit-btn:hover:not(:disabled) {
  background: var(--zold-sote);
  transform: translateY(-2px);
}

.main-box .submit-btn:disabled {
  background: var(--szurke-halvany);
  cursor: not-allowed;
}

.main-box .arrow-btn {
  cursor: pointer;
  font-size: 20px;
  padding: 6px 12px;
  background: none;
  border: 1.5px solid var(--sage);
  border-radius: var(--radius-s);
  color: var(--zold);
  transition: background var(--atm-gyors), color var(--atm-gyors);
}

.main-box .arrow-btn:hover {
  background: var(--zold);
  color: var(--feher);
  border-color: var(--zold);
}

.main-box .rental-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 20px;
}

.main-box .rental-card {
  background: var(--krem);
  padding: 20px;
  border-radius: var(--radius-m);
  text-align: center;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform var(--atm-gyors), box-shadow var(--atm-gyors), border-color var(--atm-gyors);
  color: var(--szurke);
}

.main-box .rental-card h4 {
  margin: 0 0 10px;
  font-family: var(--font-cim);
  font-size: 1.05rem;
  color: var(--zold-sote);
}

.main-box .rental-card p {
  font-size: 1rem;
  font-weight: 700;
  color: var(--zold-vilag);
}

.main-box .rental-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--arnyek-kozepes);
}

.main-box .rental-card.selected {
  border-color: var(--zold-vilag);
  background: var(--sage-halvany);
  box-shadow: 0 0 0 3px rgba(81, 152, 114, 0.2);
}

.main-box .container {
  max-width: 500px;
  margin: 48px auto;
  padding: 32px;
  background: var(--feher);
  border-radius: var(--radius-m);
  box-shadow: var(--arnyek-kozepes);
  text-align: center;
}

.main-box label {
  display: block;
  margin-top: 16px;
  font-weight: 600;
  text-align: left;
  font-size: 0.9rem;
  color: var(--szurke);
  letter-spacing: 0.02em;
}

.main-box input[type="text"],
.main-box input[type="email"] {
  width: 100%;
  padding: 11px 14px;
  margin-top: 6px;
  border: 1.5px solid var(--sage);
  border-radius: var(--radius-s);
  box-sizing: border-box;
  font-size: 0.97rem;
  font-family: var(--font-szoveg);
  background: var(--krem);
  color: var(--szurke);
  transition: border-color var(--atm-gyors), box-shadow var(--atm-gyors);
}

.main-box input[type="text"]:focus,
.main-box input[type="email"]:focus {
  outline: none;
  border-color: var(--zold-vilag);
  box-shadow: 0 0 0 3px rgba(81, 152, 114, 0.15);
  background: var(--feher);
}

.main-box .reset-btn {
  background: var(--krem-sotet);
  color: var(--szurke);
  border: 1.5px solid var(--sage);
  padding: 11px 28px;
  border-radius: var(--radius-s);
  font-size: 0.97rem;
  font-family: var(--font-szoveg);
  cursor: pointer;
  width: auto;
  min-width: 140px;
  transition: background var(--atm-gyors), color var(--atm-gyors);
}

.main-box .reset-btn:hover {
  background: var(--sage);
  color: var(--zold-sote);
}

.main-box .rental-box {
  background: var(--feher);
  padding: 16px 20px;
  margin-bottom: 24px;
  border-radius: var(--radius-m);
  color: var(--szurke);
  box-shadow: var(--arnyek-kicsi);
  border: 1px solid var(--krem-sotet);
}

.main-box .info-box {
  background: var(--sage-halvany);
  padding: 16px 18px;
  border-left: 4px solid var(--zold-vilag);
  margin-bottom: 24px;
  text-align: left;
  border-radius: var(--radius-s);
  color: var(--szurke);
  font-size: 0.95rem;
}

/* ── Összegzés konténer ─────────────────────────────────── */
.sum-container {
  max-width: 600px;
  margin: 48px auto;
  padding: 2rem;
  border-radius: var(--radius-l);
  background: var(--feher);
  box-shadow: var(--arnyek-kozepes);
}

.sum-container .row {
  margin-bottom: 1.4rem;
}

.sum-container .label {
  font-weight: 600;
  margin-bottom: 4px;
  color: var(--szurke);
  font-size: 0.88rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.sum-container .actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.sum-container .btn {
  padding: 11px 22px;
  border: none;
  border-radius: var(--radius-s);
  font-family: var(--font-szoveg);
  font-size: 0.97rem;
  font-weight: 500;
  cursor: pointer;
  transition: background var(--atm-gyors), transform var(--atm-gyors);
  min-width: 120px;
}

.sum-container .btn-success {
  background: var(--zold);
  color: var(--feher);
}

.sum-container .btn-success:hover {
  background: var(--zold-sote);
  transform: translateY(-2px);
}

.sum-container .btn-cancel {
  background: var(--krem-sotet);
  color: var(--szurke);
  border: 1.5px solid var(--sage);
}

.sum-container .btn-cancel:hover {
  background: var(--sage);
}

/* ── Lakossági bejelentés ───────────────────────────────── */
#lakossagi-bejelentes-form-container {
  max-width: 520px;
  margin: 36px auto;
  padding: 40px;
  background: var(--feher);
  border-radius: var(--radius-l);
  box-shadow: var(--arnyek-kozepes);
}

#lakossagi-bejelentes-form-container h1 {
  font-family: var(--font-cim);
  color: var(--zold-sote);
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 28px;
  text-align: center;
  border-bottom: none;
  padding-bottom: 0;
}

.bejelentes-alert {
  padding: 14px 18px;
  margin-bottom: 20px;
  border-radius: var(--radius-s);
  font-weight: 500;
  font-size: 0.95rem;
}

.bejelentes-alert-success {
  color: #1a5c2f;
  background: #d1f0de;
  border: 1px solid #a8dfc0;
}

.bejelentes-alert-danger {
  color: #7c1b24;
  background: #fde8ea;
  border: 1px solid #f4bfc3;
}

#lakossagi-bejelentes-form-container .form-group-bejelentes {
  margin-bottom: 18px;
}

#lakossagi-bejelentes-form-container label {
  display: block;
  margin-bottom: 6px;
  color: var(--szurke);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
}

#bejelentes-nev,
#bejelentes-email,
#bejelentes-szoveg {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--sage);
  border-radius: var(--radius-s);
  box-sizing: border-box;
  font-size: 0.97rem;
  font-family: var(--font-szoveg);
  background: var(--krem);
  color: var(--szurke);
  transition: border-color var(--atm-gyors), box-shadow var(--atm-gyors);
}

#bejelentes-szoveg {
  resize: vertical;
  min-height: 150px;
}

#bejelentes-nev:focus,
#bejelentes-email:focus,
#bejelentes-szoveg:focus {
  border-color: var(--zold-vilag);
  box-shadow: 0 0 0 3px rgba(81, 152, 114, 0.18);
  background: var(--feher);
  outline: none;
}

#bejelentes-submit-btn {
  background: var(--zold);
  color: var(--feher);
  padding: 13px 28px;
  border: none;
  border-radius: var(--radius-s);
  cursor: pointer;
  font-size: 1rem;
  font-family: var(--font-szoveg);
  font-weight: 600;
  transition: background var(--atm-gyors), transform var(--atm-gyors), box-shadow var(--atm-gyors);
  width: 100%;
  margin-top: 16px;
  letter-spacing: 0.03em;
}

#bejelentes-submit-btn:hover {
  background: var(--zold-sote);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(59, 107, 80, 0.28);
}

.error-message-bejelentes {
  color: #c0392b;
  font-size: 0.83rem;
  margin-top: 5px;
  font-weight: 500;
}

#lakossagi-bejelentes-form-container input.is-invalid,
#lakossagi-bejelentes-form-container textarea.is-invalid {
  border-color: #c0392b;
}

/* ── Footer ─────────────────────────────────────────────── */
.footer {
  background: linear-gradient(160deg, #1E3329 0%, #2A4E3A 60%, #1A2B22 100%);
  color: rgba(255,255,255,0.9);
  padding: 40px 0 0;
  font-size: 0.9rem;
  position: relative;
  overflow: hidden;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--zold-vilag), var(--sage), var(--zold-vilag));
}

.footer-container {
  width: 90%;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  text-align: center;
  padding-bottom: 32px;
}

.footer-section {
  background: rgba(255,255,255,0.06);
  backdrop-filter: blur(4px);
  padding: 20px;
  flex: 1;
  min-width: 200px;
  border-radius: var(--radius-m);
  border: 1px solid rgba(184, 196, 173, 0.12);
  transition: background var(--atm-gyors);
}

.footer-section:hover {
  background: rgba(255,255,255,0.09);
}

.footer-section h3 {
  margin-bottom: 14px;
  font-family: var(--font-cim);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  border-bottom: 2px solid rgba(81, 152, 114, 0.5);
  padding-bottom: 8px;
  color: var(--feher);
}

.footer-section a {
  text-decoration: none;
  color: var(--sage);
  font-weight: 500;
  transition: color var(--atm-gyors);
}

.footer-section a:hover {
  color: var(--feher);
}

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

.footer-center img {
  max-width: 100%;
  height: 160px;
  filter: brightness(0.95);
}

.contact-info svg {
  width: 16px;
  height: 16px;
  margin-right: 8px;
  vertical-align: middle;
  opacity: 0.8;
}

.footer-copyright {
  font-size: 0.82rem;
  text-align: center;
  padding: 16px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255,255,255,0.5);
  letter-spacing: 0.03em;
}

/* ── Reszponzív – Tablet (≤1200px) ─────────────────────── */
@media (max-width: 1200px) {
  .video-background iframe {
    width: 100vw;
    height: 120vh;
  }

  #yt-mobile  { display: inherit; }
  #yt-desktop { display: none; }

  #events { width: 100%; }

  #events h2 {
    width: 80%;
    margin: 0 auto 20px;
  }

  #events .events-content {
    flex-direction: column;
    width: 100%;
  }

  .event {
    width: 70%;
    margin: 0 auto 3vh;
    flex-direction: column;
    align-items: flex-start;
  }

  .event-arrow {
    align-self: flex-end;
    margin-top: 10px;
  }

  .event-info   { max-width: 100%; }
  .event-title  { font-size: 1em; }
  .event-description { font-size: 0.82em; }
  .event-line   { text-align: center; }
  .view-more    { font-size: 1.2em; }

  .events-left,
  .events-right {
    width: 100%;
    margin-bottom: 20px;
  }

  #calendar,
  #calendar-header {
    width: 70%;
    margin: auto;
    gap: 3px;
  }

  #calendar .day { font-size: 0.82em; padding: 5px; }

  .card-name    { font-size: 1.4em; }
  .card-title   { font-size: 1.1em; }
  .card-contact { font-size: 0.88em; }
}

/* ── Reszponzív – Mobil (≤768px) ────────────────────────── */
@media (max-width: 768px) {
  body {
    font-size: 15px;
  }

  #keret { width: 100%; }

  /* Videó */
  .video-background iframe {
    width: 100vw;
    height: 100vh;
  }

  #yt-mobile  { display: inherit; }
  #yt-desktop { display: none; }

  /* Navbar mobilon */
  .navbar {
    background: var(--feher);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 999;
  }

  .navbar.scrolled {
    background: var(--feher);
    box-shadow: var(--arnyek-kicsi);
  }

  .hamburger {
    display: flex;
    font-size: 24px;
    background: var(--krem-sotet);
    padding: 12px 18px;
  }

  .menu {
    max-height: 0;
    overflow: hidden;
    flex-direction: column;
    width: 100%;
    background: var(--feher);
    position: absolute;
    top: 52px;
    left: 0;
    z-index: 10;
    padding: 0;
    opacity: 0;
    transition: max-height 0.4s ease, padding 0.4s ease, opacity 0.3s ease;
    border-radius: 0 0 var(--radius-l) var(--radius-l);
    gap: 2px;
    box-shadow: var(--arnyek-kozepes);
    border-top: 2px solid var(--sage-halvany);
  }

  .menu.open {
    max-height: 1200px;
    padding: 12px 0;
    opacity: 1;
  }

  .menu li {
    flex: 1 0 100%;
    text-align: center;
  }

  .menu li a,
  .menu .dropdown-toggle {
    font-size: 15px;
    padding: 12px 20px;
  }

  .logo-m {
    display: block;
    text-align: center;
    width: 100%;
  }

  .logo-m img {
    margin: 0 auto;
  }

  .submenu {
    position: relative;
    width: 100%;
    background: var(--krem);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    opacity: 1;
  }

  .submenu li {
    text-align: center;
    border-bottom: 1px solid var(--krem-sotet);
  }

  .submenu li a {
    display: block;
    padding: 11px 18px;
    color: var(--szurke);
  }

  .dropdown.open .submenu {
    max-height: 500px;
    padding: 4px 0;
  }

  /* Footer mobilon */
  .footer-container { flex-direction: column; align-items: center; }
  .footer-section   { padding: 16px; width: 100%; margin-bottom: 8px; }

  /* Tartalom */
  .container { padding-left: 0; }

  #tartalom {
    margin: 0 auto;
    margin-top: 10vh;
  }

  .content { width: 100%; }

  /* Köszöntő mobilon */
  #greeting {
    max-width: 100%;
    margin: 0 auto;
    padding: 24px 16px;
    border-radius: var(--radius-m);
  }

  #greeting h2 {
    font-size: 1.5rem;
    padding-bottom: 8px;
  }

  #greeting .greeting-content {
    font-size: 0.97rem;
    line-height: 1.7;
  }

  #greeting img {
    float: none;
    display: block;
    margin: 0 auto 20px;
    width: 140px;
    aspect-ratio: 288/367;
  }

  #greeting .greeting-footer {
    font-size: 0.9rem;
    margin-top: 20px;
  }

  /* Hírek mobilon */
  .container h2    { text-align: center; font-size: 1.5rem; }

  .article-header {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .search-form {
    flex-direction: column;
    align-items: center;
  }

  .news-slider {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
  }

  .news-item {
    min-width: 100%;
    scroll-snap-align: start;
    position: relative;
  }

  .news-item img {
    width: 100%;
    height: auto;
    margin: 0;
    border: none;
    float: none;
    border-radius: var(--radius-m) var(--radius-m) 0 0;
  }

  .news-content { padding: 16px; }
  .news-dot     { height: 8px; width: 8px; margin: 0 4px; }

  /* Események mobilon */
  #events { width: 100%; }

  #events h2 {
    width: 80%;
    margin: 0 auto 20px;
  }

  #events .events-content {
    flex-direction: column;
    width: 100%;
  }

  .events-left,
  .events-right {
    width: 100%;
    margin-bottom: 16px;
  }

  .event {
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 1vh;
    width: 100%;
  }

  .event-arrow  { align-self: flex-end; margin-top: 10px; }
  .event-info   { max-width: 100%; }
  .event-title  { font-size: 1em; }
  .event-description { font-size: 0.82em; }
  .event-line   { text-align: center; }
  .view-more    { font-size: 1.2em; }

  #calendar {
    width: 100% !important;
    margin: auto !important;
    gap: 2px;
  }

  #calendar-header { width: 90%; margin: auto; }
  #calendar .day   { font-size: 0.78em; padding: 5px; }

  /* Leírás mobilon */
  #description       { width: 100%; }
  #description .container { width: 88%; }
  #description .container img { margin-bottom: 14px; float: none; width: 100%; height: auto; }
  #desc-2pg          { display: none; }

  /* Pályázat banner */
  .banner-images img { height: 72px; width: auto; }
  #bottom-banner {
    box-sizing: border-box;
    max-width: 100%;
    width: 92%;
  }

  /* Hírek oldal */
  .article-box { flex-direction: column; }
  .article-image { margin-right: 0; margin-bottom: 18px; }
  .article-content { padding: 0; }

  /* Tartalom-elem */
  .content-item { padding: 24px; }
  .content-item h1 { font-size: 1.8rem; }
  .back-link { font-size: 0.88rem; padding: 9px 18px; }

  /* Kártyák */
  .card { width: 100%; }
  .info-section { flex-direction: column; }
  .card-name    { font-size: 1.2em; }
  .card-title   { font-size: 1em; }
  .card-contact { font-size: 0.78em; }

  /* Dokumentumtár */
  .docs-container { margin: 10px; box-shadow: none; border-radius: var(--radius-m); }
  .docs-header h1 { font-size: 1.2rem; }
  .docs-category-title { font-size: 1rem; }
  .docs-item { margin-bottom: 10px; }
  .docs-item a { font-size: 0.95rem; }
  #category-filter { width: 100%; }
  .docs-filter { margin: 10px 0; }
  .docs-filter label { font-size: 0.88rem; }
  .docs-filter select { font-size: 0.88rem; padding: 6px; }

  /* Intézmények */
  .institution {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .institution:nth-child(even) { flex-direction: column; }
  .institution img { margin: 10px 0; width: 100%; height: auto; }
  .institution .text { width: 100%; }

  /* Nemzeti önkormányzat */
  .container-ro { width: 100%; padding: 14px; border-radius: var(--radius-m); }
  .rep-card      { font-size: 0.9rem; }

  /* Egyesületek */
  .org-container { flex-direction: column; align-items: center; }
  .org-facebook {
    position: static;
    width: 100%;
    margin: 14px auto 0;
  }

  .organization-header { padding: 24px 20px; }
  .organization-logo   { width: 90px; }

  .organization-contact,
  .organization-images {
    padding: 20px;
    max-width: 100%;
    margin: 16px;
  }

  .image-container { gap: 12px; }
  .org-image { width: 100%; }

  /* IKSZT foglalás */
  .main-box {
    padding: 40px 20px;
    background-attachment: scroll;
    background-size: cover;
    min-height: 250px;
  }

  .alter-box { width: 92%; padding: 20px; }
  .main-box h1 { font-size: 1.4rem; }
  .main-box h3 { font-size: 1.05rem; }

  .main-box .calendar-container { padding: 14px; max-width: 95%; }
  .main-box .calendar-header h2 { font-size: 1.1rem; }
  .main-box .day { padding: 8px 0; font-size: 0.88rem; }
  .main-box .calendar-days { font-size: 0.78rem; }

  .main-box .submit-btn {
    width: 100%;
    padding: 13px;
    font-size: 1rem;
  }

  .main-box .rental-options { grid-template-columns: 1fr; }

  .main-box .container {
    max-width: 95%;
    margin: 28px auto;
    padding: 20px;
  }

  .main-box label { font-size: 0.88rem; }

  .main-box input[type="text"],
  .main-box input[type="email"] {
    padding: 10px;
    font-size: 0.9rem;
  }

  .main-box .submit-btn,
  .main-box .reset-btn {
    width: 100%;
    min-width: unset;
    padding: 13px;
    font-size: 0.97rem;
    margin-top: 14px;
  }

  .main-box .info-box { font-size: 0.9rem; padding: 12px; }
}
