/* =========================================================
   🌿 EÁTK – FŐ STÍLUSOK (végleges, egységesített verzió)
   ========================================================= */

/* ---------------------------------------------------------
   1️⃣ ALAP STÍLUSOK
   --------------------------------------------------------- */
   
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&display=swap&subset=latin-ext');

html, body {
  height: 100%;
  min-height: 100vh;
  width: 100%;
  margin: 0;
  padding: 0;
  font-family: 'Roboto', sans-serif;
  color: #ddf0ee;
  background: url('img/hatter.png') center/cover no-repeat fixed;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding-top: 1.2rem;
  gap: 1rem;
  padding-top: 3rem; /* vagy 6-7rem, hogy a navbar alá férjen */

}

/* Globális box-sizing */
*, *::before, *::after {
  box-sizing: border-box;
}

/* =========================================================
   2️⃣ NAVIGÁCIÓ (NAVBAR)
   ========================================================= */

/* --- Alap navbar --- */
.navbar-card {
  background-color: rgba(47,64,53,0.85);
  border: 1px solid rgba(81,189,155,0.3);
  border-radius: 15px;
  padding: 1rem 1.5rem;
  width: min(75vw, 1400px);
  max-width: 1800px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.35);
  display: flex;
  justify-content: center;
  align-items: center;
  position: fixed;
  top: 1rem;
  left: 50%;
  transform: translateX(-50%);
  transition: transform .35s ease, opacity .35s ease;
  z-index: 1000;
  backdrop-filter: blur(10px);
}


.navbar-visible { transform: translate(-50%, 0); opacity: 1; }
.navbar-hidden  { transform: translate(-50%, -150%); opacity: 0; pointer-events: none; }

.navbar-content {
  width: 100%;
  max-width: 1400px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navbar-logo { height: 30px; width: auto; }

/* --- Linkek --- */
.navbar-content nav {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.navbar-content nav a {
  text-decoration: none;
  color: #ddf0ee;
  font-weight: 500;
  transition: color .3s, transform .2s;
}
.navbar-content nav a:hover {
  color: #51bd9b;
  transform: translateY(-1px);
}

/* --- Dropdown menük (desktop) --- */
.dropdown {
  position: relative;
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: 98%; /* közvetlenül a szülő alatt */
  left: 0;
  background: rgba(47,64,53,.95);
  border: 1px solid rgba(81,189,155,.3);
  border-radius: 10px;
  box-shadow: 0 6px 25px rgba(0,0,0,.35);
  z-index: 9999;
  min-width: 220px;
  backdrop-filter: blur(8px);
  opacity: 0;
  visibility: hidden;
  transform: translateY(5px);
  transition: opacity .25s ease, transform .25s ease, visibility .25s ease;
}

/* --- Hover zóna fix --- */
.dropdown-menu::before {
  content: "";
  position: absolute;
  top: -10px;
  left: 0;
  right: 0;
  height: 12px;
  background: transparent;
}

/* --- Almenü (hover) --- */
.dropdown:hover > .dropdown-menu {
  display: block;
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu a {
  display: block;
  padding: .7rem 1rem;
  color: #ddf0ee;
  text-decoration: none;
  transition: background .3s, color .3s;
  white-space: nowrap;
}
.dropdown-menu a:hover {
  background: rgba(81,189,155,.15);
  color: #51bd9b;
}

/* --- Submenu --- */
.dropdown-submenu {
  position: relative;
}

.submenu-title::after {
  content: "▸";
  float: right;
  opacity: .6;
  margin-left: 5px;
}

.submenu-content {
  display: none;
  position: absolute;
  top: 0;
  left: 100%;
  background: rgba(47,64,53,.95);
  border: 1px solid rgba(81,189,155,.3);
  border-radius: 8px;
  min-width: 200px;
  box-shadow: 0 6px 20px rgba(0,0,0,.35);
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transform: translateX(8px);
  transition: opacity .25s, transform .25s, visibility .25s;
}

/* --- Hoverre nyílás desktopon --- */
.dropdown-submenu:hover > .submenu-content {
  display: block;
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
}

/* --- Hover zóna fix submenu --- */
.submenu-content::before {
  content: "";
  position: absolute;
  top: 0;
  left: -10px;
  width: 12px;
  height: 100%;
  background: transparent;
}

/* =========================================================
   📱 MOBIL NÉZET – TELJES KÉPERNYŐS HAMBURGER MENÜ
   ========================================================= */
@media (max-width: 1100px) {

  .navbar-card {
    top: 0;
    left: 0;
    right: 0;
    border-radius: 0;
    background: rgba(47,64,53,.97);
    border-bottom: 1px solid rgba(81,189,155,.25);
    transform: none;
    width: 100%;
    margin-inline: auto;
    padding: 1rem clamp(1.5rem, 3vw, 4rem);

  }

  .navbar-content {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }

  #hamburger {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 22px;
    cursor: pointer;
    z-index: 1200;
  }

  #hamburger span {
    display: block;
    height: 3px;
    width: 100%;
    background: #ddf0ee;
    border-radius: 2px;
    transition: all .3s;
  }

  #hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(4px,4px); }
  #hamburger.active span:nth-child(2) { opacity: 0; }
  #hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(4px,-4px); }

  #hamburger:hover span { background: #51bd9b; }

  #nav-menu {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;       /* fix: 100vw → 100% */
  height: 100vh;
  background: rgba(47,64,53,.97);
  backdrop-filter: blur(6px);
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  padding: 5rem 1.5rem 2rem;
  overflow-y: auto;
  z-index: 1100;
}

  #nav-menu.active {
    display: flex;
    animation: fadeMenu .3s ease forwards;
  }

  @keyframes fadeMenu {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
  }

#nav-menu a {
  display: block;
  width: 100%;
  padding: .9rem 1rem;   /* <-- EZ KELL !!! */
  color: #ddf0ee;
  font-size: 1.05rem;
  border-bottom: 1px solid rgba(81,189,155,.2);
  text-decoration: none;
}

  #nav-menu a:hover {
    color: #51bd9b;
    background: rgba(81,189,155,.1);
  }

  #nav-menu a:last-child { border-bottom: none; }

  /* --- Mobil dropdown --- */
  .dropdown { width: 100%; position: relative; }
  .dropdown > a::after {
    content: "▼";
    float: right;
    font-size: .8rem;
    opacity: .7;
    transition: transform .2s;
  }
  .dropdown.open > a::after { transform: rotate(180deg); }

 
  .dropdown-menu {
    display: none;
    flex-direction: column;
    position: static;
    background: transparent;
    box-shadow: none;
    padding-left: 1rem;
    border-left: 2px solid rgba(81,189,155,.25);
    margin-top: .3rem;
  }

  .dropdown.open > .dropdown-menu {
    display: flex;
  }

  /* --- Almenük mobilon --- */
  .submenu-content {
    display: none;
    flex-direction: column;
    position: static;
    padding-left: 1.2rem;
    border-left: 2px solid rgba(81,189,155,.25);
    margin-top: .3rem;
  }

  .dropdown-submenu.open > .submenu-content {
    display: flex;
  }

  /* --- Hover teljes tiltás mobilon --- */
  .dropdown:hover > .dropdown-menu,
  .dropdown-submenu:hover > .submenu-content {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
  }
}
/* --- MOBIL: az .open állapot mindig felülírja a hover-tiltást --- */
@media (max-width: 1100px) {
  /* fő dropdown */
  .dropdown.open > .dropdown-menu,
  .dropdown.open:hover > .dropdown-menu {
    display: flex !important;
    opacity: 1 !important;
    visibility: visible !important;
  }

  /* almenü */
  .dropdown-submenu.open > .submenu-content,
  .dropdown-submenu.open:hover > .submenu-content {
    display: flex !important;
    opacity: 1 !important;
    visibility: visible !important;
  }
}


/* =========================================================
   3️⃣ FŐ TARTALMI KÁRTYA - fő card
   ========================================================= */
.card {
  background-color: rgba(81, 189, 155, 0.90);
  border: 1px solid rgba(221, 240, 238, 0.25);
  border-radius: 25px;
  box-shadow: 0 6px 30px rgba(0, 0, 0, 0.35);
  max-width: 1800px;
  margin-inline: auto;
  display: block;
  min-height: auto;
  width: min(70vw, 1400px);
  margin-inline: auto;
  padding: 0.5rem clamp(1.5rem, 3vw, 3rem);
  padding-bottom: 3rem;
  flex: 1;
}

.card h1 {
  font-weight: 700;
  font-size: 2.8rem;
  margin-bottom: 1.5rem;
  
}

@media (max-width: 900px) {
  .card {
    width: 92vw;
    padding: 1.5rem;
  }
}

@media (max-width: 900px) {
  .card h1,
  .card h2,
  .card h3 {
    font-size: 2rem;
    line-height: 1.2;
    word-wrap: break-word;
  }
}

@media (max-width: 600px) {
  .card h1,
  .card h2,
  .card h3 {
    font-size: 1.7rem;
  }
}

@media (max-width: 450px) {
  .card h1,
  .card h2,
  .card h3 {
    font-size: 1.5rem;
  }
}

.card p {
  font-weight: 400;
  font-size: 1.2rem;
  line-height: 1.9;
  margin-bottom: 1rem;
  width: 100%;
  text-align:justify;
}

.footer {
  position: relative;
  left: 0;
  right: 0;
  width: 100%;
  background: linear-gradient(180deg, rgba(47, 64, 53, 0.95) 0%, rgba(47, 64, 53, 0.85) 100%);
  border-top: 1px solid rgba(81, 189, 155, 0.25);
  color: #ddf0ee;
  margin-top: 1rem;
  padding: 1rem 0;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 -6px 25px rgba(0, 0, 0, 0.35);
}

/* --- Belső tartalom --- */
.footer-inner {
  width: 90%;
  max-width: 1600px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 3rem;
  margin: 0 auto;
}

/* --- Bal oldal --- */
.footer-left {
  display: flex;
  align-items: center;
  gap: 1.8rem;
}

.footer-logo {
  width: 60px;
  height: auto;
  filter: brightness(0) invert(1);
}

.footer-left h3 {
  font-weight: 700;
  font-size: 1.2rem;
  color: #51bd9b;
  margin: 0 0 0.5rem 0;
}

.footer-left p {
  font-size: 1rem;
  line-height: 1.7;
  margin: 0;
}

.footer-left a {
  color: #ddf0ee;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-left a:hover {
  color: #51bd9b;
}

/* --- Jobb oldal --- */
.footer-right {
  text-align: right;
  font-size: 0.95rem;
  line-height: 1.6;
}

.footer-right a {
  color: #51bd9b;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-right a:hover {
  text-decoration: underline;
}

/* =========================================================
   📱 Reszponzív viselkedés – mobil és tablet
   ========================================================= */

@media (max-width: 1024px) {
  .footer-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.5rem;
  }

  .footer-left {
    flex-direction: column;
    align-items: center;
  }

  .footer-logo {
    width: 60px;
  }

  .footer-right {
    text-align: center;
  }
}

/* =========================================================
   6️⃣ INFO DOBOZ SLIDER - kezdőlap
   ========================================================= */

.card-slider {
  position: relative;
  width: 100%;
  margin: 2rem auto;
  display: flex;
  flex-direction: column;
  overflow: visible;
}

.slider-container {
  width: 100%;
  overflow: hidden;
}

.slider-track {
  display: flex;
  gap: 1.5rem;
  transition: transform 0.6s ease;
  will-change: transform;
  height: auto;
}

/* --- Info boxok --- */
.info-box {
  flex: 0 0 250px;
  background: #ddf0ee;
  border: 1px solid rgba(47, 64, 53, 0.3);
  border-radius: 15px;
  text-align: center;
  padding: 1.8rem 1.2rem;
  color: #2f4035;
  text-decoration: none;
  transition: all 0.3s ease;
  min-height: 340px;   /* <-- növelve */
  max-height: 340px;   /* <-- növelve */
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  box-sizing: border-box;
}


.info-box:hover {
  background: #51bd9b;
  color: #fff;
  transform: translateY(-5px);
}

.info-box i {
  font-size: 2rem;
  margin-bottom: 0.8rem;
  color: #51bd9b;
  transition: color 0.3s ease;
}

.info-box:hover i {
  color: #fff;
}

/* --- Képek --- */
/* Alap – fotók */
.info-img {
  width: 320px;              /* fix szélesség */
  height: 150px;             /* fix magasság */
  object-fit: cover;         /* minden kép szépen kitölti */
  border-radius: 12px;
  margin-bottom: 1rem;
  display: block;
  box-shadow: 0 2px 10px rgba(0,0,0,0.15);
}

/* LOGÓ – legyen nagy, szépen kitöltve */
.logo-img {
  width: 320px;
  height: 150px;
  object-fit: contain;
  background: #fff;
  border-radius: 12px;
  padding: 4px 12px;     /* kisebb padding = nem tolja fel a képet */
  margin-bottom: 1rem;
  box-shadow: 0 2px 10px rgba(0,0,0,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
}


.info-box:hover .info-img {
  transform: scale(1.03);
}

/* --- Szöveg --- */
.info-box h3 {
  font-size: 1.1rem;
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
  font-weight: 600;
  text-align: center;
}

.info-box p {
  font-size: 0.95rem;
  line-height: 1.5;
  margin-bottom: 2rem;   /* <- ez valóban helyet ad a lenti rész előtt */
  max-width: 300px;
  text-align: center;
}

/* --- Nyilak --- */
.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(81, 189, 155, 0.85);
  border: none;
  color: #fff;
  font-size: 1.8rem;
  cursor: pointer;
  padding: 0.6rem 0.9rem;
  border-radius: 50%;
  transition: background 0.3s ease, transform 0.2s ease;
  z-index: 10;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.slider-btn:hover {
  background: #51bd9b;
  color: #2f4035;
  transform: translateY(-50%) scale(1.05);
}

.slider-btn.prev { left: 0.5rem; }
.slider-btn.next { right: 0.5rem; }

/* --- Tablet nézet --- */
@media (max-width: 1024px) {
  .info-box {
    flex: 0 0 calc((100% - 1rem) / 2);
    min-height: 220px;
  }
  .slider-btn.prev { left: -1.5rem; }
  .slider-btn.next { right: -1.5rem; }
}

/* --- Mobil nézet --- */
@media (max-width: 600px) {
  .info-box {
    flex: 0 0 90%;
    min-height: 260px;
  }
  .info-img {
    width: 100%;
    max-width: 280px;
    height: 110px;
  }
  .slider-btn {
    font-size: 1.4rem;
    padding: 0.4rem 0.6rem;
  }
  .slider-btn.prev { left: -1rem; }
  .slider-btn.next { right: -1rem; }
}


/* === HÍRLEVÉL BLOKK === */
.newsletter {
  background:#315d52;
  color: #fff;
  text-align: center;
  padding: 2rem 1rem;
  border-radius: 12px;
  box-shadow: 0 0 15px rgba(0,0,0,0.25);
  margin-top: 2rem;
}

.newsletter h2 {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
}

.newsletter p {
  font-size: 1rem;
  line-height: 1.6;
  max-width: 700px;
  margin: 0 auto 1.5rem;
  text-align: center;
}

.newsletter-form {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.newsletter-form .input-group {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.8rem;
  width: 100%;
  max-width: 600px;
}

.newsletter-form input[type="text"],
.newsletter-form input[type="email"] {
  padding: 0.75rem 1rem;
  border: none;
  border-radius: 8px;
  width: 280px;
  font-size: 1rem;
  box-sizing: border-box;
}

.newsletter-form input:focus {
  outline: 2px solid #51bd9b;
}

.newsletter-form button {
  background-color: #fff;
  color: #315d52;
  border: none;
  border-radius: 8px;
  padding: 0.75rem 2rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.newsletter-form button:hover {
  background-color: #51bd9b;
  color: #fff;
}

.newsletter .gdpr {
  font-size: 0.85rem;
  max-width: 600px;
  text-align: left;
  color: #e7f8f3;
}

.newsletter .gdpr a {
  color: #fff;
  text-decoration: underline;
}

.newsletter .gdpr input {
  margin-right: 6px;
}

/* Mobil optimalizálás */
@media (max-width: 600px) {
  .newsletter-form .input-group {
    flex-direction: column;
    align-items: stretch;
  }
  .newsletter-form input {
    width: 100%;
  }
}

/* =========================================================
   7️⃣ MAGUNKRÓL OLDAL
   ========================================================= */

.card h2 {
  font-size: 2rem;
  font-weight: 600;
  color: #2f4035;
  margin-bottom: 1.5rem;
}

/* --- Munkatársak grid --- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.team-member {
  background: #ddf0ee;
  border-radius: 15px;
  padding: 1.5rem;
  text-align: center;
  color: #2f4035;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.team-member:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

.team-member img {
  width: 100%;
  max-width: 180px;
  height: 180px;
  object-fit: cover;
  border-radius: 50%;
  margin-bottom: 1rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
}

.team-member h3 {
  margin: 0.5rem 0 0.2rem 0;
  font-size: 1.2rem;
  color: #2f4035;
}

.team-member .position {
  color: #3d6b5e;
  font-weight: 500;
  margin-bottom: 0.5rem;
  text-align: center;
}

.team-member a {
  color: #51bd9b;
  text-decoration: none;
  font-size: 0.95rem;
}

.team-member a:hover {
  text-decoration: underline;
}


/* =========================================================
   8️⃣LETÖLTHETŐ DOKUMENTUMOK
   ========================================================= */

.downloads-section {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2.5rem;
}

.downloads-list {
  flex: 1;
  min-width: 320px;
  text-align: left;
}

.downloads-list ul {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.downloads-list li {
  margin-bottom: 1rem;
}

.downloads-list a {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  text-decoration: none;
  color: #2f4035;
  font-size: 1.15rem;
  font-weight: 500;
  transition: color 0.3s ease, transform 0.2s ease;
}

.downloads-list a:hover {
  color: #51bd9b;
  transform: translateX(3px);
}

.downloads-list i {
  font-size: 1.2rem;
  color: #51bd9b;
  opacity: 0.9;
  transition: color 0.3s ease, opacity 0.3s ease;
}

.downloads-list a:hover i {
  color: #2f4035;
  opacity: 1;
}

/* --- Kép oldalt --- */
.downloads-image {
  flex: 1;
  min-width: 300px;
  text-align: right;
}

.downloads-image img {
  width: 100%;
  height: auto;
  border-radius: 15px;
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.2);
}

/* --- Mobil --- */
@media (max-width: 1100px) {
  .downloads-section {
    flex-direction: column;
    align-items: center;
  }
  .downloads-image {
    text-align: center;
  }
  .downloads-image img {
    max-width: 80%;
  }
}

@media (max-width: 1150px) {
  .downloads-image {
    display: none !important;
  }
}


/* =========================================================
   9️⃣  SZŰRŐ (keresés – duális képzés)
   ========================================================= */

.filters {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  margin: 1.5rem auto;
  flex-wrap: wrap;
  text-align: center;
}

.filters div {
  display: flex;
  flex-direction: column;
  align-items: center;
}


/* =========================================================
   🔟 KAPCSOLAT OLDAL 
   ========================================================= */

.kapcsolat-card {
  text-align: center;
}

.kapcsolat-card h1 {
  font-size: 2.6rem;
  color: #ddf0ee;
  margin-bottom: 2rem;
}

/* --- Fő grid --- */
.kapcsolat-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  align-items: flex-start;
}

/* --- Bal oldal --- */
.kapcsolat-left {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  text-align: left;
}

/* --- Info dobozok --- */
.info-box-light {
  background: rgba(255, 255, 255, 0.85);
  border-radius: 15px;
  padding: 0.85rem 1.2rem;
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.15);
  color: #2f4035;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  text-align: center;
}

.info-box-light:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

.info-box-light i {
  font-size: 1.6rem;
  color: #51bd9b;
  margin-bottom: 0.3rem;
}

.info-box-light h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0.3rem 0;
}

.info-box-light a {
  color: #2f4035;
  text-decoration: none;
}
.info-box-light a:hover {
  color: #51bd9b;
}

/* --- Formázás --- */
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.2rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid rgba(47, 64, 53, 0.25);
  border-radius: 10px;
  padding: 0.8rem 1rem;
  background: #ddf0ee;
  color: #2f4035;
  font-size: 1rem;
  font-family: inherit;
}

/* --- Szövegmező külön margóval --- */
.contact-form textarea {
  resize: none;
  height: 140px;
  margin-top: 1rem;
}

/* --- Küldés gomb --- */
.btn-send {
  background: #51bd9b;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 0.8rem 1.5rem;
  font-size: 1rem;
  margin-top: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-send:hover {
  background: #2f4035;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
}

/* --- Jobb oldal: három box + térkép --- */
.kapcsolat-right {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* --- Három kis box egymás mellett --- */
.info-cards {
  display: flex;
  justify-content: space-between;
  align-items: stretch;
  gap: 0.5rem;
  flex-wrap: nowrap;
}

.info-cards .info-box-light {
  flex: 1 1 30%;
  padding: 1rem;
  text-align: center;
}

/* --- Térkép --- */
.map-frame {
  width: 100%;
  height: 365px;
  border: none;
  border-radius: 15px;
  margin-top: 0.5rem;
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.2);
}

/* --- Mobil --- */
@media (max-width: 900px) {
  .kapcsolat-container {
    grid-template-columns: 1fr;
  }

  .info-cards {
    flex-direction: column;
  }

  .info-cards .info-box-light {
    flex: 1 1 100%;
  }

  .map-frame {
    height: 220px;
  }
}

.partners-logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 2rem;
}

.partners-logos img {
  height: 60px;
  filter: grayscale(15%);
  transition: all 0.3s ease;
}

.partners-logos img:hover {
  transform: scale(1.05);
  filter: grayscale(0%);
}
/* =========================================================
   11️ HÍREK OLDAL 
   ========================================================= */

/* Hírek grid */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  width: 90%;
  max-width: 1200px;
  margin: 2rem auto;
}

/* Kártyák */
.news-card {
  background: rgba(47, 64, 53, 0.9);
  border: 1px solid rgba(81, 189, 155, 0.25);
  border-radius: 1rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
  display: flex;
  flex-direction: column;
}

.news-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.35);
}

.news-card img {
  width: 100%;
  height: auto;
  aspect-ratio: 16/9; /* mindig arányos */
  object-fit: cover;
}

.news-card h3 {
  color: #51bd9b;
  margin: 1rem;
  font-size: 1.05rem;
}

.news-card p {
  color: #ddf0ee;
  margin: 0 1.2rem 1rem 1.2rem; /* egyenletes belső margó */
  font-size: 0.95rem;
  line-height: 1.5;
  overflow: hidden; /* vágás helyett finom zárás */
  text-overflow: ellipsis;
  -webkit-box-orient: vertical;
  position: relative;
  padding-right: 2rem;   /* ne vágja le a jobb szélét */
  box-sizing: border-box;
  word-break: break-word;  /* ha nagyon hosszú szó, ne lógjon ki */
}

.news-card small {
  color: #a0b5ac;
  margin-left: 1rem;
}

/* ===========================
   MODAL – TELJES CIKK MEGJELENÍTÉS
   =========================== */
.news-modal {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.8);
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.news-modal.active {
  display: flex;
}

.news-modal-content {
  background: rgba(47, 64, 53, 0.95);
  border-radius: 1rem;
  max-width: 900px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 2rem;
  color: #ddf0ee;
  box-shadow: 0 0 25px rgba(0, 0, 0, 0.4);
  position: relative;
}

.news-modal-content h2,
.news-modal-content h3,
.news-modal-content h5 {
  color: #51bd9b;
  margin-bottom: 1rem;
}

.close-modal {
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  font-size: 1.5rem;
  color: #ddf0ee;
  cursor: pointer;
}

/* Modalon belüli cikk formázás */
.news-modal-content img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 700px;
  max-height: 400px;
  margin: 0 auto 1.5rem auto;
  object-fit: contain;
  border-radius: 25px;
}

.news-modal-content p {
  color: #ddf0ee;
  line-height: 1.6;
  text-align: justify;
}

.news-modal-content a {
  color: #51bd9b;
  text-decoration: underline;
}

.news-modal-content a:hover {
  color: #6fdcb6;
}

/* Szövegtörzs a modalban */
.news-modal .article-body {
  text-align: justify;
  overflow-x: hidden;
}

/* ===========================
   RESZPONZÍV JAVÍTÁSOK
   =========================== */
@media (max-width: 900px) {
  .news-grid {
    width: 95%;
    gap: 1.5rem;
    grid-template-columns: 1fr;
  }

  .news-card {
    border-radius: 0.8rem;
  }

  .news-card img {
    aspect-ratio: 4/3;
  }

  .news-card h3 {
    font-size: 1rem;
  }

  .news-card p {
    font-size: 0.9rem;
  }

  .news-modal-content {
    width: 92%;
    padding: 1rem;
    max-height: 85vh;
  }

  .news-modal-content img {
    max-width: 100%;
    height: auto;
    object-fit: contain;
  }
}

@media (max-width: 480px) {
  .news-grid {
    gap: 1rem;
    grid-template-columns: 1fr;
  }

  .news-card {
    border-radius: 0.8rem;
  }

  .news-card img {
    aspect-ratio: 4/3;
  }

  .news-modal-content {
    width: 95%;
    padding: 0.8rem;
  }

  .news-modal-content img {
    border-radius: 0.4rem;
  }
}
/* =========================================================
   12 GALÉRIA OLDAL 
   ========================================================= */

/* ===== GRID (galéria nézet) ===== */
.galeria-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 1rem;
  justify-items: center;
}

.galeria-grid a {
  display: block;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.4);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  background: #2f4035;
}

.galeria-grid a:hover {
  transform: scale(1.03);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.6);
}

.img-wrap {
  position: relative;
  aspect-ratio: 3/4;
}

.img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 1rem;
}

/* ===== FELIRAT A KÉPEN (GALÉRIA NÉZETBEN) ===== */
.overlay-text {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 0.6rem 1rem;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
  color: #ddf0ee;
  font-size: 0.95rem;
  line-height: 1.3;
  border-radius: 0 0 1rem 1rem;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
  box-sizing: border-box;
}

/* =========================================================
   LIGHTBOX STÍLUSOK
   ========================================================= */

/* Háttér a Lightbox mögött */
.glightbox-container {
  background: rgba(0, 0, 0, 0.9);
}

/* Kép a Lightboxban */
.glightbox-container .gslide-media img,
.glightbox-container .gslide-image img {
  max-width: 75vw;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 1rem;
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.7);
  display: block;
  margin: auto;
  position: relative;
  z-index: 1;
}

/* A kép konténere */
.gslide-media {
  position: relative;
  display: inline-block;
  border-radius: 1rem;
  overflow: hidden;
}



@keyframes fadeInCaption {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}


.lb-desc {
  font-size: 0.95rem;
  line-height: 1.35;
  opacity: 0.95;
}

/* =========================================================
   LIGHTBOX KONTENT ÉS NAVIGÁCIÓ
   ========================================================= */

.gslide-inner-content {
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Nyilak és gombok */
.glightbox-button,
.gbtn {
  color: #ddf0ee !important;
  opacity: 0.9;
  transition: color 0.3s ease, opacity 0.3s ease;
}

.glightbox-button:hover,
.gbtn:hover {
  color: #51bd9b !important;
  opacity: 1;
}
