@import url("https://fonts.googleapis.com/css2?family=Nunito:wght@400;600;800&display=swap");

/* ===== RESET ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Nunito", sans-serif;
  background: #fffdf8;
  line-height: 1.6;
}

body::before {
  content: "";
  position: fixed;
  top: 76px;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background: url('hatter1.svg') center/cover no-repeat;
  pointer-events: none;
}

/* ===== LAYOUT ===== */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
}

.main {
  padding-top: 110px;
}

/* ===== HEADER ===== */
.header {
  position: fixed;
  top: 0;
  width: 100%;
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgb(255, 237, 228);
  backdrop-filter: blur(8px);
  z-index: 60;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
}

.brand-logo {
  height: 70px;
  width: auto;
}

.title {
  font-weight: 800;
  font-size: 18px;
}

.subtitle {
  font-size: 12px;
  color: #666;
}

/* ===== NAV ===== */
.nav {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-left: 28px;
}

.nav a {
  text-decoration: none;
  font-weight: 700;
  color: #222;
  padding: 8px 12px;
  border-radius: 8px;
  transition: 0.2s;
}

.nav a:hover {
  transform: translateY(-3px);
  background: #ffd54f;
}

.menu-btn {
  display: none;
}

/* ===== RAINBOW BAR ===== */
.glow-bar {
  position: fixed;
  top: 73px;
  width: 100%;
  height: 8px;
  background: linear-gradient(
    90deg,#f0751d,#6fd3ff,#9effc3,#ffd86b,#d0001f,#7deac9
  );
  background-size: 600% 100%;
  animation: rainbowShift 10s linear infinite;
  z-index: 59;
}

@keyframes rainbowShift {
  0% { background-position: 0% 50%; }
  100% { background-position: 100% 50%; }
}

/* ===== CARD ===== */
.card {
  background: #fff;
  padding: 20px;
  border-radius: 14px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.05);
  margin-bottom: 20px;
}

/* ===== HERO ===== */
.hero {
  display: flex;
  gap: 20px;
  align-items: center;
  justify-content: space-between;
}

.hero-image img {
  max-height: 240px;
  width: 100%;
  max-width: 350px;
  border-radius: 12px;
  object-fit: cover;
}

/* ===== GRID ===== */
.grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 20px;
}

.quick {
  list-style: none;
  margin-top: 10px;
}

.quick li {
  margin-bottom: 8px;
}

/* ===== BUTTON ===== */
.btn {
  display: inline-block;
  padding: 8px 14px;
  border-radius: 8px;
  background: #64b5f6;
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  transition: 0.2s;
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 18px rgba(0,0,0,0.15);
}

.btn.ghost {
  background: transparent;
  color: #64b5f6;
  border: 2px solid #64b5f6;
}

.btn.ghost:hover {
  background: #64b5f6;
  color: #fff;
}

/* ===== GALLERY ===== */
.images {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}

.images li {
  width: 280px;
  height: 200px;
}

.images img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
  transition: transform 0.25s ease;
}

.images img:hover {
  transform: scale(1.05);
}

/* ===== FOGLALKOZÁSOK ===== */
.foglalkozasok {
  display: flex;
  justify-content: center;
  gap: 40px;
  width: 100%;
}

.foglalkozas {
  width: 160px;
  text-align: center;
  margin-left: 80px;
}

.foglalkozas img {
  width: 120px;
  margin-bottom: 10px;
  transition: 0.25s;
}

.foglalkozas:hover img {
  transform: translateY(6px);
}

.cim-wrap {
  position: relative;
}

.bubi {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  width: 180px;
  background: #fff;
  padding: 8px;
  border-radius: 10px;
  font-size: 13px;
  box-shadow: 0 6px 15px rgba(0,0,0,0.15);
  opacity: 0;
  pointer-events: none;
  transition: 0.2s;
}

.foglalkozas:hover .bubi {
  opacity: 1;
}

/* ===== FOOTER ===== */
.footer {
  text-align: center;
  padding: 20px 0;
  background: rgb(255, 237, 228);
  color: #666;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {

  .nav {
    flex-direction: column;
  }

  .menu-btn {
    display: inline-block;
  }

  .grid {
    grid-template-columns: 1fr;
  }

  .hero {
    flex-direction: column;
  }

  .foglalkozasok {
    flex-wrap: wrap;
  }

  .images li {
    width: 100%;
    height: auto;
  }

  .images img {
    height: auto;
  }
}

/* ===== DROPDOWN ===== */

.dropdown {
  position: relative;
}

.dropbtn {
  text-decoration: none;
  font-weight: 700;
  color: #222;
  padding: 8px 12px;
  border-radius: 8px;
  transition: 0.2s;
}

.dropbtn:hover {
  background: #ffd54f;
}

.dropdown-content {
  position: absolute;
  top: 120%;
  left: 0;
  background: rgb(255, 237, 228);
  min-width: 180px;
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,0.08);   /* EZ */
  box-shadow: 0 12px 30px rgba(0,0,0,0.12);
  padding: 10px 0;

  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: 0.25s ease;
}

.dropdown-content a {
  display: block;
  padding: 10px 16px;
  text-decoration: none;
  color: #333;
  transition: 0.2s;
}

.dropdown-content a:hover {
  background: #ffd54f;
  padding-left: 20px;
}

.dropdown:hover .dropdown-content {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}


/* ===== CSOPORT KÁRTYÁK ===== */

.group-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.group-card {
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  cursor: pointer;
  padding: 0;              /* EZ SZEDI KI A SZÜRKE CSÍKOT */
}

.group-card img {
  display: block;          /* EZ IS FONTOS */
  width: 100%;
  height: 260px;
  object-fit: cover;
  transition: 0.4s ease;
}

.group-card:hover img {
  transform: scale(1.08);
}

.group-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 25px;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.44) 0%,
    rgba(0, 0, 0, 0.384) 40%,
    rgba(0,0,0,0.2) 70%,
    rgba(0, 0, 0, 0) 100%
  );
  color: white;
}

.group-overlay h3 {
  font-size: 22px;
  font-weight: 800;
}

.group-overlay p {
  font-weight: 600;
}

/* Mobil */
@media (max-width: 768px) {
  .group-grid {
    grid-template-columns: 1fr;
  }
}

.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.lightbox-img {
  max-width: 90%;
  max-height: 85%;
  border-radius: 12px;
}

.lightbox .close {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 40px;
  color: white;
  cursor: pointer;
}

.lightbox .nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 60px;
  color: white;
  cursor: pointer;
  padding: 20px;
  user-select: none;
}

.lightbox .prev { left: 30px; }
.lightbox .next { right: 30px; }