:root {
  --primary: #164bff;
  --primary-dark: #0b1d57;
  --primary-light: #e4edff;
  --accent: #32d8ff;
  --text-main: #101d49;
  --text-muted: #65708a;
  --bg-light: #f8fafc;
  --bg-white: #ffffff;
  --border-color: #dfe7f5;
  --max-width: 1200px;
  --transition: all 0.3s ease;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { background-color: var(--bg-light); color: var(--text-main); font-family: 'Inter', sans-serif; line-height: 1.6; -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4 { font-family: 'Poppins', sans-serif; line-height: 1.2; }
a { text-decoration: none; color: inherit; }

.container { width: 100%; max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }
.section-title { font-size: 2.5rem; font-weight: 800; margin-bottom: 1rem; letter-spacing: -0.03em; }
.section-subtitle { color: var(--primary); font-size: 0.875rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 0.5rem; display: block; }
section { padding: 100px 0; }

.btn { display: inline-flex; align-items: center; justify-content: center; padding: 14px 28px; border-radius: 99px; font-weight: 600; font-size: 1rem; transition: var(--transition); cursor: pointer; border: none; }
.btn-primary { background-color: var(--primary); color: var(--bg-white); box-shadow: 0 4px 14px rgba(22, 75, 255, 0.3); }
.btn-primary:hover { background-color: var(--primary-dark); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(11, 29, 87, 0.4); }
.btn-outline { background-color: transparent; color: var(--primary); border: 2px solid var(--primary); }
.btn-outline:hover { background-color: var(--primary-light); transform: translateY(-2px); }

header { position: fixed; top: 0; left: 0; width: 100%; background: rgba(255, 255, 255, 0.9); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border-color); z-index: 1000; padding: 16px 0; }
.nav-container { display: flex; justify-content: space-between; align-items: center; }
/* --- LOGÓ ÉS IKON BEÁLLÍTÁSAI --- */
.logo {
  display: flex;
  align-items: center;
  gap: 12px; /* Távolság a kör ikon és a The szó között */
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary-dark);
  font-family: 'Poppins', sans-serif;
  text-decoration: none;
  transition: transform 0.2s ease;
  letter-spacing: -0.04em; /* Ez húzza egy picit közelebb a betűket egymáshoz */
}

.logo:hover {
  transform: scale(1.02); /* Finom nagyítás, ha rámész az egérrel */
}

.logo-icon {
  width: 44px; /* Az ikon szélessége */
  height: 44px; /* Az ikon magassága */
  border-radius: 50%; /* Ez vágja a képet tökéletes kör alakúra! */
  object-fit: cover; /* Megakadályozza a kép torzulását */
  border: 2px solid var(--primary-light); /* Vékony kék díszkeret a kép körül */
  box-shadow: 0 4px 10px rgba(11, 29, 87, 0.1); /* Finom árnyék a kép mögött */
}

.logo span {
  color: var(--primary); /* A "NOIZE" szó kék színe */
  margin-left: -6px; /* A távolság a "The" és a "NOIZE" szavak között */
}
.nav-links { display: flex; gap: 32px; align-items: center; }
.nav-links a { font-weight: 600; font-size: 0.95rem; transition: var(--transition); }
.nav-links a:hover { color: var(--primary); }
.nav-cta { background: var(--primary-dark); color: white !important; padding: 10px 24px; border-radius: 99px; }
.nav-cta:hover { background: var(--primary) !important; }

.dropdown { position: relative; display: inline-flex; align-items: center; }
.dropdown-trigger { display: inline-flex; align-items: center; gap: 4px; cursor: pointer; }
.dropdown-arrow { font-size: 0.75rem; transition: transform 0.2s ease; }
.dropdown:hover .dropdown-arrow { transform: rotate(180deg); }
.dropdown-menu { position: absolute; top: 100%; left: 50%; transform: translateX(-50%) translateY(10px); background: var(--bg-white); min-width: 170px; border-radius: 14px; border: 1px solid var(--border-color); box-shadow: 0 12px 30px rgba(11, 29, 87, 0.12); padding: 8px; display: flex; flex-direction: column; gap: 4px; opacity: 0; visibility: hidden; pointer-events: none; transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease; z-index: 1001; }
.dropdown-menu::before { content: ""; position: absolute; top: -12px; left: 0; width: 100%; height: 12px; }
.dropdown:hover .dropdown-menu { opacity: 1; visibility: visible; pointer-events: auto; transform: translateX(-50%) translateY(4px); }
.dropdown-menu a { padding: 10px 14px; border-radius: 8px; font-size: 0.9rem; font-weight: 500; color: var(--text-main); transition: background-color 0.15s ease, color 0.15s ease; }
.dropdown-menu a:hover { background-color: var(--primary-light); color: var(--primary); }

.hero { 
  padding: 180px 0 120px; 
  background: linear-gradient(135deg, var(--primary-dark) 0%, #1a368f 100%); 
  color: var(--bg-white); 
  text-align: center; 
  position: relative; 
  overflow: hidden; 
}

/* --- ÚJ: A HOMÁLYOS LOGÓ A HÁTTÉRBEN --- */
.hero::before {
  content: "";
  position: absolute;
  top: 53%;
  left: 50%;
  transform: translate(-50%, -50%); /* Pontosan középre igazítja */
  width: 100%; 
  max-width: 750px; /* Asztali gépen sem lesz túl hatalmas */
  height: 100%;
  background: url('assets/logo_vector_v2.png') no-repeat center center;
  background-size: contain;
  opacity: 0.5; /* Mennyire legyen átlátszó (0.15 = 15%) */
  filter: blur(3px); /* A homályosítás mértéke pixelben */
  z-index: 0; /* A háttér felett, de a szöveg alatt */
  pointer-events: none; /* Biztosítja, hogy át lehessen kattintani rajta a gombokra */
}

/* --- ÚJ: HOGY A SZÖVEG BIZTOSAN A KÉP FELETT LEGYEN --- */
.hero .container {
  position: relative;
  z-index: 1;
}

/* (Ezek a korábbi kódjaid, ezek változatlanul maradnak a blokk alatt) */
.hero h1 { font-size: 4.5rem; margin-bottom: 1.5rem; letter-spacing: -0.05em; }
.hero h1 span { color: var(--accent); }
.hero p { font-size: 1.25rem; max-width: 700px; margin: 0 auto 2.5rem; color: #c8d5f1; }
.hero-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.btn-hero-primary { background: var(--accent); color: var(--primary-dark); }
.btn-hero-primary:hover { background: #8ceaff; transform: translateY(-2px); }
.btn-hero-secondary { background: rgba(255, 255, 255, 0.1); color: white; border: 1px solid rgba(255, 255, 255, 0.2); }
.btn-hero-secondary:hover { background: rgba(255, 255, 255, 0.2); transform: translateY(-2px); }

.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.about-text p { font-size: 1.1rem; color: var(--text-muted); margin-bottom: 24px; }
.features { display: grid; gap: 20px; }
.feature-card { background: var(--bg-white); padding: 24px; border-radius: 16px; border: 1px solid var(--border-color); display: flex; align-items: flex-start; gap: 16px; box-shadow: 0 4px 20px rgba(0,0,0,0.02); transition: var(--transition); }
.feature-card:hover { transform: translateX(10px); border-color: var(--primary-light); }
.feature-number { background: var(--primary-light); color: var(--primary); width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 800; flex-shrink: 0; }

/* --- SZEKCIÓK 2x2 RÁCS ELRENDEZÉSE --- */
.sections-grid { 
  display: grid; 
  grid-template-columns: repeat(2, 1fr); /* Fixen 2 oszlop, így jön ki a 2x2 elrendezés */
  gap: 32px; /* Szellősebb térköz a kártyák között */
  margin-top: 48px; 
}

.section-card { 
  display: flex;
  flex-direction: column;
  background: var(--bg-white); 
  padding: 48px 40px; /* Nagyobb belső tér, hogy szebben kitöltsék a teret */
  border-radius: 20px; 
  border: 1px solid var(--border-color); 
  border-top: 4px solid var(--primary); 
  transition: var(--transition); 
  box-shadow: 0 10px 30px rgba(11, 29, 87, 0.03); 
  text-decoration: none; 
  color: inherit; 
  height: 100%; /* Garantálja, hogy egy sorban minden kártya azonos magasságú legyen */
}

.section-card:hover { 
  transform: translateY(-8px); 
  box-shadow: 0 20px 40px rgba(11, 29, 87, 0.08); 
  border-color: var(--primary); 
}

.section-card h3 { 
  font-size: 1.75rem; /* Kicsit megnövelt betűméret a nagyobb dobozokhoz */
  margin-bottom: 16px; 
}

.section-card p { 
  color: var(--text-muted); 
  font-size: 1.05rem; 
  line-height: 1.7;
}
.process-section { background: var(--bg-white); }
.timeline { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 24px; margin-top: 48px; }
.timeline-step { position: relative; padding: 32px; background: var(--bg-light); border-radius: 16px; border: 1px solid var(--border-color); }
.step-badge { display: inline-block; background: var(--primary); color: white; padding: 6px 12px; border-radius: 99px; font-size: 0.8rem; font-weight: 700; margin-bottom: 16px; }
.timeline-step h3 { font-size: 1.25rem; margin-bottom: 8px; }
.timeline-step .date { color: var(--primary); font-weight: 600; font-size: 0.85rem; display: block; margin-bottom: 12px; }
.timeline-step p { color: var(--text-muted); font-size: 0.9rem; }

.community-box { background: var(--primary-dark); border-radius: 24px; padding: 64px; color: white; display: flex; align-items: center; justify-content: space-between; gap: 48px; }
.community-content h2 { font-size: 2.5rem; margin-bottom: 16px; }
.community-content p { color: #c8d5f1; font-size: 1.1rem; max-width: 500px; }

/* --- KAPCSOLAT KÁRTYÁK ÉS IKONOK --- */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin-top: 48px;
}

.contact-card {
  display: flex;
  align-items: center;
  padding: 16px;
  background: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  transition: var(--transition);
  text-decoration: none;
  gap: 16px; /* Hely az ikon és a szöveg között */
}

.contact-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 20px rgba(22, 75, 255, 0.08);
  border-color: var(--primary);
}

.contact-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background-color: var(--primary-light);
  color: var(--primary-dark);
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.contact-icon svg {
  fill: currentColor;
  transition: fill 0.3s ease;
}

.contact-info {
  flex: 1; /* A szöveg kitölti a maradék helyet, jobbra tolva a nyilat */
}

.contact-info strong {
  display: block;
  font-size: 1.05rem;
  color: var(--text-main);
  margin-bottom: 2px;
}

.contact-info small {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.contact-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  opacity: 0.5;
  transition: opacity 0.3s ease, transform 0.3s ease;
  flex-shrink: 0;
}

.contact-card:hover .contact-arrow {
  opacity: 1;
  transform: translate(2px, -2px); /* Finom mikromozgás jobb-felső irányba */
}

/* --- MÁRKASZÍNEK HOVER ÁLLAPOTBAN --- */

/* E-mail (Pirosas Google/Gmail szín) */
.contact-card.brand-email:hover .contact-icon {
  background-color: #ea4335;
  color: #ffffff;
}

/* Instagram (Színátmenet) */
.contact-card.brand-instagram:hover .contact-icon {
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
  color: #ffffff;
}

/* TikTok (Fekete) */
.contact-card.brand-tiktok:hover .contact-icon {
  background-color: #000000;
  color: #ffffff;
}

/* Facebook (Kék) */
.contact-card.brand-facebook:hover .contact-icon {
  background-color: #1877f2;
  color: #ffffff;
}

/* YouTube (Piros) */
.contact-card.brand-youtube:hover .contact-icon {
  background-color: #ff0000;
  color: #ffffff;
}

/* Linktree (Zöld) */
.contact-card.brand-linktree:hover .contact-icon {
  background-color: #43e660;
  color: #000000;
}

/* Hover esetén a keret felveszi a márka színét is (opcionális extra elegancia) */
.contact-card.brand-email:hover { border-color: #ea4335; }
.contact-card.brand-instagram:hover { border-color: #dc2743; }
.contact-card.brand-tiktok:hover { border-color: #000000; }
.contact-card.brand-facebook:hover { border-color: #1877f2; }
.contact-card.brand-youtube:hover { border-color: #ff0000; }
.contact-card.brand-linktree:hover { border-color: #43e660; }

footer { background: var(--bg-white); padding: 32px 0; border-top: 1px solid var(--border-color); text-align: center; color: var(--text-muted); font-size: 0.9rem; font-weight: 500; }

/* =========================================
   A SZERVEZETRŐL ALOLDAL STÍLUSAI
   ========================================= */
.about-hero-img {
  width: 100%;
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(11, 29, 87, 0.1);
  border: 4px solid var(--bg-white);
  transform: rotate(1deg);
  transition: transform 0.3s ease;
}
.about-hero-img:hover {
  transform: rotate(0deg) scale(1.02);
}
.quote-box {
  background: var(--primary-light);
  border-left: 4px solid var(--primary);
  padding: 24px;
  border-radius: 0 16px 16px 0;
  margin: 32px 0;
  font-style: italic;
  color: var(--primary-dark);
  font-weight: 500;
  font-size: 1.1rem;
}

/* =========================================
   GALÉRIA ALOLDAL STÍLUSAI
   ========================================= */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 32px;
  margin-top: 48px;
}
.gallery-card {
  background: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 12px;
  box-shadow: 0 4px 20px rgba(11, 29, 87, 0.03);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  text-decoration: none;
}
.gallery-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 15px 30px rgba(11, 29, 87, 0.08);
  border-color: var(--primary-light);
}
.gallery-img-wrapper {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 12px;
  overflow: hidden;
  background-color: var(--bg-light);
}
.gallery-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.gallery-card:hover .gallery-img {
  transform: scale(1.03);
}
.gallery-title {
  padding: 16px 8px 8px;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--primary-dark);
  text-align: center;
  margin: 0;
}
.gallery-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-weight: 600;
  font-size: 1.1rem;
  border: 2px dashed var(--border-color);
  border-radius: 12px;
}

/* =========================================
   ALOLDALAK ALAPBEÁLLÍTÁSAI
   ========================================= */
/* Aloldal tartalomhoz extra kitöltés a fix navigáció miatt */
.subpage-content {
  padding-top: 140px; 
  min-height: 70vh; 
  background: var(--bg-white);
}

.subpage-layout {
  display: flex;
  flex-direction: row;
  align-items: center; 
  justify-content: space-between;
  gap: 64px; 
  margin-top: 24px;
}

.subpage-text { flex: 1; }
.subpage-text p { color: var(--text-muted); font-size: 1.1rem; line-height: 1.8; margin-bottom: 20px; }

.subpage-image {
  flex-shrink: 0; 
  width: 100%;
  max-width: 400px; 
  display: flex;
  align-items: flex-end; 
  justify-content: center;
}

.subpage-image img { width: 100%; height: auto; object-fit: contain; }

/* =========================================
   ASZTALI KIEGÉSZÍTÉS (A Szervezetről oldalhoz)
   ========================================= */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr; /* Asztalon egymás mellett a szöveg és a kép */
  gap: 48px;
  align-items: center;
}

/* =========================================
   TABLET ÉS MOBIL NÉZET (RESPONZIVITÁS)
   ========================================= */
@media (max-width: 992px) {
  .about-grid { grid-template-columns: 1fr; }
  .community-box { flex-direction: column; text-align: center; padding: 40px 24px; }
}

@media (max-width: 768px) {
  /* 1. Kisebb betűk és térközök a hero szekcióban */
  .hero h1 { font-size: 2.8rem; }
  .hero p { font-size: 1.1rem; }
  .section-title { font-size: 2rem; }
  section { padding: 60px 0; }
  .hero { padding: 140px 0 80px; }

  /* 2. Rácsok egymás alá törése */
  .sections-grid { grid-template-columns: 1fr !important; gap: 24px; }
  .about-image { order: -1; margin-bottom: 24px; } 

  /* 3. A hamburger gomb */
  .hamburger {
    display: flex;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1000;
  }
  .hamburger span {
    width: 30px;
    height: 3px;
    background-color: var(--primary-dark);
    transition: 0.3s ease;
    border-radius: 3px;
  }
  .hamburger.active span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
  .hamburger.active span:nth-child(2) { opacity: 0; }
  .hamburger.active span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

  /* 4. A NAVIGÁCIÓS MENÜ FŐ KONTÉNERE (Lekerekített aljjal) */
  .nav-links {
    display: none;
    flex-direction: column;
    width: 100%;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--bg-white);
    padding: 0 0 24px 0;
    box-shadow: 0 15px 30px rgba(11,29,87,0.15);
    gap: 0;
    border-bottom-left-radius: 24px;
    border-bottom-right-radius: 24px;
    overflow: hidden;
  }
  .nav-links.active {
    display: flex;
  }
  
  /* KULCSFONTOSSÁGÚ: Az oszlop elrendezés kényszeríti az almenüt a gomb ALÁ */
  .nav-links .nav-item {
    display: flex !important;
    flex-direction: column !important; 
    width: 100%;
    padding: 0;
    margin: 0;
  }

  .nav-links a, .nav-links .dropdown-trigger {
    padding: 18px 24px;
    width: 100%;
    text-align: left;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #eef2fa;
    color: var(--primary-dark);
    font-weight: 600;
    font-size: 1.1rem;
    margin: 0;
    box-sizing: border-box;
  }

  .nav-links .nav-cta {
    margin: 24px 24px 0 24px;
    width: calc(100% - 48px);
    text-align: center;
    justify-content: center;
    border-bottom: none;
  }

  /* 5. LEGÖRDÜLŐ ALMENÜK (Garantált Harmonika stílus) */
  .nav-links .dropdown-menu {
    position: static !important; /* Megöli a lebegést */
    display: none !important; /* JS nyitja */
    flex-direction: column !important; /* Egymás alá teszi a linkeket */
    width: 100% !important;
    box-shadow: none !important;
    background: #f8fafc !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
    transform: none !important;
  }

  /* Kattintásra (Amikor a JS ráteszi az .active osztályt a szülőre) */
  .nav-links .nav-item.active .dropdown-menu {
    display: flex !important;
  }

  /* Almenü linkjeinek formázása (beljebb húzva) */
  .nav-links .dropdown-menu a {
    padding: 14px 24px 14px 40px !important; /* A 40px húzza beljebb a szöveget */
    border-bottom: 1px solid #eef2fa !important;
    font-size: 1rem !important;
    color: var(--text-muted) !important;
    font-weight: 500 !important;
    width: 100% !important;
    box-sizing: border-box !important;
    justify-content: flex-start !important;
  }
  
  .nav-links .dropdown-menu a:hover {
    color: var(--primary) !important;
  }
  
  .subpage-layout {
    flex-direction: column-reverse; /* Mobilon a kép kerül alulra */
    gap: 40px;
    text-align: center; 
  }
  .subpage-image { max-width: 280px; margin: 0 auto; }
  
}