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

body {
  font-family: 'Anton', sans-serif;
  letter-spacing: 2.5px;   /* szellősebb betűköz */
  background-color: #0A2472;
  color: white;
  overflow-x: hidden;
}

/* ===== HERO ===== */
.hero {
    font-family: 'Bebas Neue', sans-serif;
  position: relative;
  height: 70vh;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  overflow: hidden;
}

/* Háttérkép */
.hero-bg {
  position: absolute;
  inset: 0;
  background: url("images/ST_63.jpg") center bottom / cover no-repeat;
  z-index: 0;
  filter: brightness(0.6) blur(1px);
}


/* Kék áttetsző réteg */
.hero-overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(10, 36, 114, 0.6);
  z-index: 1;
}

/* Szöveg */
.hero-title {
  position: relative;
  z-index: 2;
  color: white;
  line-height: 1;
  text-transform: uppercase;
  text-shadow: 0 4px 10px rgba(0,0,0,0.4);
}

.hero-title .main-text {
    font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(3.9rem, 11.2vw, 7.9rem);
  color: white;
  letter-spacing: 2px;
 font-weight: 600;
}

.hero-title .zone-text {
   font-size: clamp(3.9rem, 11.2vw, 7.9rem);
  color: #6372FD;
  letter-spacing: 2px;
  display: inline-block;
  position: relative;
  top: -0.4em;   /* felfelé tolás */
  left: 2.1em;   /* jobbra tolás */
}

/* Mobilbarát */
@media (max-width: 768px) {
  .hero {
    height: 70vh;
  }
}
/* ===== JUNIOR SZEKCIÓ ===== */
.junior-section {
  background-color: #0A2472;
  text-align: center;
  padding: 4rem 1rem;
}

.junior-section h2 {
  color: white;
  font-size: clamp(2rem, 5vw, 3rem);
  margin-bottom: 3rem;
}

/* Két oszlopos klub elrendezés */
.club-container {
  display: flex;
  justify-content: center;
  gap: 4rem;
  flex-wrap: wrap;
  justify-content: space-evenly;
}

.club-card {
 gap: inherit;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.3s;
}
.club-card_before{
  background-color: #6372FD;
  border-radius: 75px;
  width: 300px;
  padding: 2rem 1.5rem;
  box-shadow: 0 8px 15px rgba(0,0,0,0.3);   
}

.club-card:hover {
  transform: translateY(-5px);
}

.club-card img {
  width: 250px;
  height: 150px;
  object-fit: contain;
  margin-bottom: 1rem;
}

.location {
  color: white;
  font-size: 2rem;
  line-height: 1.3;
  margin-bottom: 1.5rem;
}

.location span {
  display: block;
  font-size: 1.5rem;
  margin-top: 0.3rem;
}

/* ===== GOMBOK KLUBONKÉNT ===== */
.club-buttons {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  width: 100%;
  align-items: center;
}

.btn {
    display: inline-block;
    background-color: #c3c9ff;
    color: #0A2472;
    font-size: 1rem;
    text-decoration: none;
    padding: 1.5rem;
    border-radius: 25px;
    width: 100%;
    transition: all 0.3s ease;
}

.btn:hover {
  background-color: white;
  color: #0A2472;
  transform: translateY(-2px);
}

/* ===== Mobil nézet ===== */
@media (max-width: 768px) {
  .club-container {
    flex-direction: column;
    align-items: center;
  }

  .club-card {
    width: 80%;
  }
}
/* ===== SÁRGA LEFELÉ MUTATÓ NYÍL SZÁRRAL ÉS ANIMÁCIÓVAL ===== */
.arrow-down {
  position: relative;
  margin: 3rem auto 0 auto;
  width: 0;
  height: 0;
  border-left: 80px solid transparent;
  border-right: 80px solid transparent;
  border-top: 90px solid #F6DA61;
  filter: drop-shadow(0 4px 6px rgba(0,0,0,0.3));
  animation: bounce 2.5s cubic-bezier(0.6, 0.05, 0.3, 1.2) infinite;
}

/* nyíl szára */
.arrow-down::after {
  content: '';
  position: absolute;
  top: -150px;           /* a háromszög fölé illesztve */
  left: -35px;
  width: 70px;
  height: 90px;
  background-color: #F6DA61;
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
}

/* animáció */
@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(15px); }
}


.arrow-down {
  animation: bounce 2.5s ease-in-out infinite;
}
/* ===== ST DIÁKOLIMPIA ===== */
.diakolimpia {
  position: relative;
  text-align: center;
  padding: 5rem 1rem;
  color: white;
  overflow: hidden;
}

.diakolimpia-bg {
  position: absolute;
  inset: 0;
  background: url("images/ST_70.jpg") center/cover no-repeat;
  filter: blur(4px) brightness(0.6);
  z-index: 0;
}

.diakolimpia-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10,36,114,0.6);
  z-index: 1;
}

.diakolimpia h2 {
  position: relative;
  z-index: 2;
  font-size: clamp(2rem, 5vw, 3rem);
  margin-bottom: 3rem;
  text-transform: uppercase;
  color: #FFFFFF;
}

.diakolimpia-grid {
  position: relative;
  z-index: 2;
  display: grid;
  justify-items: center;
  gap: 1.5rem;
}

/* Nagy képernyőn – 4 oszlop */
@media (min-width: 925px) {
  .diakolimpia-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Közepes képernyőn – 2 oszlop */
@media (min-width: 400px) and (max-width: 924px) {
  .diakolimpia-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Kicsi képernyőn – 1 oszlop */
@media (max-width: 200px) {
  .diakolimpia-grid {
    grid-template-columns: 1fr;
  }
}


.diak-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
  max-width: 240px;
}

/* Kör alakú cím */
.circle {
  background-color: #C3C9FF;
  color: #0A2472;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  font-size: 1.4rem;
  padding: 1rem;
  line-height: 1.2;
}

/* Helyszín – sötétkék téglalap */
.place {
  background-color: #0A2472;
  color: white;
  padding: 0.2rem 0rem;
  border-radius: 6px;
  font-size: 1rem;
  width: 80%;
   margin-top: -40px;
   z-index: 10;
}

/* Dátum – világos téglalap */
.date {
  background-color: #C3C9FF;
  color: #0A2472;
  border-radius: 6px;
  width: 70%;
  margin-top: -15px;
}

/* Eredmények gomb */
.eredmeny-btn {
  background-color: #6372FD;
  color: white;
  padding: 0.8rem 1.5rem;
  border-radius: 40px;
  margin-top: 0.5rem;
  text-decoration: none;
  transition: 0.3s;
}

.eredmeny-btn:hover {
  background-color: #F6DA61;
  color: #0A2472;
  transform: translateY(-3px);
}

/* Mobil nézet */
@media (max-width: 768px) {
  .circle {
    width: 160px;
    height: 160px;
    font-size: 0.9rem;
  }
  .place, .date {
    width: 90%;
  }
}
/* ===== LENYÍLÓ DIV ÉS ANIMÁCIÓ ===== */
.entries-container {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  padding: 0 3rem; /* csak oldalt, hogy ne nyomja szét bezárva */
  transition:
    max-height 0.7s ease,
    opacity 0.6s ease,
    padding 0.6s ease;
}

/* Amikor nyitva van */
.entries-container.open {
  max-height: 1500px;   /* elég nagy, hogy animálható legyen */
  opacity: 1;
  padding: 3rem;        /* ilyenkor alul-felül is van tér */
  overflow-y: auto;     /* csak nyitva legyen görgethető */
  scrollbar-width: thin;
  scrollbar-color: #6372FD #c3c9ff;
}

/* WebKit (Chrome, Edge, Safari) görgetősáv */
.entries-container.open::-webkit-scrollbar {
  width: 8px;
}
.entries-container.open::-webkit-scrollbar-thumb {
  background-color: #6372FD;
  border-radius: 10px;
}
.entries-container.open::-webkit-scrollbar-track {
  background-color: #c3c9ff;
}


/* WebKit (Chrome, Edge, Safari) görgetősáv */
.entries-container.open::-webkit-scrollbar {
  width: 8px;
}
.entries-container.open::-webkit-scrollbar-thumb {
  background-color: #6372FD;
  border-radius: 10px;
}
.entries-container.open::-webkit-scrollbar-track {
  background-color: #c3c9ff;
}


/* ===== TÁBLÁZAT STÍLUS ===== */
.entries-content table {
  width: 80%;
  margin: 1rem auto;
  border-collapse: collapse;
  background-color: #c3c9ff;
  color: #0A2472;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0,0,0,0.4);
}

.entries-content th, .entries-content td {
  padding: 1rem;
  border-bottom: 1px solid #0A2472;
  text-align: center;
  font-size: 1.1rem;
}

.entries-content th {
  background-color: #6372FD;
  color: white;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.entries-content tr:last-child td {
  border-bottom: none;
}

/* ===== NYÍL ANIMÁLT FORGÁS ===== */
.arrow-down {
  cursor: pointer;
  transition: transform 0.5s ease;
  transform-origin: center;
}

.arrow-down.rotate {
  animation: rotateCW 0.5s forwards; /* óramutatóval megegyező forgás */
  margin: 0rem auto 0 auto;
}

.arrow-down.unrotate {
  animation: rotateCCW 0.5s forwards; /* visszaforgás */
  margin: 3rem auto 0 auto;
}

/* Forgás az óramutatóval megegyező irányba */
@keyframes rotateCW {
  from { transform: rotate(0deg); }
  to { transform: rotate(180deg); }
}

/* Visszaforgás az óramutató járásával ellentétesen */
@keyframes rotateCCW {
  from { transform: rotate(180deg); }
  to { transform: rotate(0deg); }
}
/* ===== INAKTÍV ("disabled") GOMBOK ===== */
.btn.disabled {
  opacity: 0.6;
  pointer-events: none;     /* ne lehessen kattintani */
  background-color: #b0b4e0;
  color: #0A2472;
  cursor: not-allowed;
  transform: none;          /* ne mozduljon hoverre */
  box-shadow: none;
}

/* Ne változzon hoverre sem */
.btn.disabled:hover {
  background-color: #b0b4e0;
  color: #0A2472;
  transform: none;
  box-shadow: none;
}

diakolimpia-logo {
  inset: 0;
    width: 100%;
    height: auto;
    display: block;
}
 img.responsive {
    width: 100%;
    height: auto;
    display: block;
  }
  .category-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.8rem;
  color: #F6DA61;
  text-transform: uppercase;
  margin-top: 2rem;
  margin-bottom: 1rem;
  letter-spacing: 1px;
  text-align: center;
}
/* ===== JOGI LÁBLÉC ===== */
footer.legal {
  background-color: #0A2472;
  color: #c3c9ff;
  text-align: center;
  padding: 1.5rem 1rem;
  font-size: 0.9rem;
  letter-spacing: 0.5px;
  border-top: 2px solid #6372FD;
}

footer.legal p {
  margin: 0;
}

footer.legal .jogi {
  color: #F6DA61;
  text-decoration: none;
  font-weight: bold;
}

footer.legal .jogi:hover {
  color: #ffffff;
  text-decoration: underline;
}
