/* ============================
   ALAP BEÁLLÍTÁSOK
============================ */
body {
  margin: 0;
  font-family: 'Open Sans', sans-serif;
  color: #0A1A2F;
  background-color: #F1F1F1;
}
html, body {
  overflow-x: hidden;
}


/* ============================
   HERO
============================ */
.hero {
  position: relative;
  width: 100%;
  height: 500px;
  overflow: hidden;
  background-color: #000;
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 1;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.40);
  z-index: 2;
}

/* DESKTOP HERO SZÖVEG */
.hero-content {
  position: absolute;
  z-index: 3;
  text-align: center;
  color: white;
  width: 100%;
  top: 50%;
  transform: translateY(-50%);
  padding: 20px;
}

.hero-content h1 {
  font-size: 3rem;
  margin-bottom: 10px;
  text-shadow: 0 0 12px rgba(0,0,0,0.9);
}

.hero-content h2 {
  font-size: 1.8rem;
  margin-bottom: 20px;
  text-shadow: 0 0 12px rgba(0,0,0,0.9);
}

/* ============================
   MOBIL JAVÍTÁS
============================ */
@media (max-width: 768px) {

  .hero {
    height: auto;                 /* <<< ne legyen fix 500px */
    padding-bottom: 40px;         /* <<< hely a szövegnek */
  }

  .hero-content {
    position: static;             /* <<< NEM absolute mobilon */
    transform: none;
    width: 100%;
    padding: 20px;
    margin-top: -40px;            /* <<< kicsit ráhúzzuk a képre */
  }

  .hero-content h1 {
    font-size: 1.8rem;            /* <<< mobilbarát méret */
  }

  .hero-content h2 {
    font-size: 1.2rem;
  }
}



/* ============================
   EGYSÉGES MENÜ – HAMBURGER
============================ */
.mobile-nav {
  width: 100%;
  background: #0A2E5C;
  color: white;
  padding: 15px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  z-index: 9999;
}

.nav-logo {
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 1px;
}

/* Hamburger ikon */
.hamburger {
  width: 35px;
  height: 25px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
}

.hamburger span {
  display: block;
  height: 4px;
  background: white;
  border-radius: 4px;
  transition: 0.3s;
}

/* Hamburger animáció */
.hamburger.active span:nth-child(1) {
  transform: translateY(10px) rotate(45deg);
}
.hamburger.active span:nth-child(2) {
  opacity: 0;
}
.hamburger.active span:nth-child(3) {
  transform: translateY(-10px) rotate(-45deg);
}


/* ============================
   LENYÍLÓ MENÜ – TELJES VIEWPORT SZÉLESSÉG
============================ */
.nav-links {
  position: fixed;        /* <<< FIX: nem a nav-hoz igazodik, hanem a viewporthoz */
  top: 70px;              /* <<< a nav alatt jelenik meg */
  left: 0;                /* <<< teljes szélesség */
  width: 100%;            /* <<< teljes szélesség */
  background: #123C7A;
  list-style: none;
  padding: 20px;
  margin: 0;
  border-radius: 0 0 6px 6px;
  display: none;          /* <<< alapból rejtve */
  z-index: 9998;
}

.nav-links.open {
  display: block;         /* <<< hamburgerre lenyílik */
}

.nav-links li {
  margin-bottom: 20px;
}

.nav-links li a {
  color: white;
  text-decoration: none;
  font-size: 1.1rem;
  font-weight: 600;
}


/* ============================
   DESKTOP – FELSŐ MENÜSOR
============================ */
@media (min-width: 900px) {

  .hamburger {
    display: none;
  }

  .nav-links {
    position: static;
    display: flex;
    background: transparent;
    padding: 0;
    margin: 0;
    gap: 30px;
  }

  .nav-links li {
    margin-bottom: 0;
  }
}

/* A régi desktop menü TELJES eltüntetése */
.info-bar {
  display: none !important;
}


/* ============================
   ABOUT SZEKCIÓ
============================ */

.about {
  display: flex;
  align-items: center;
  padding: 60px 20px;
  background-color: #FFFFFF;
}

.about-img img {
  width: 100%;
  border-radius: 6px;
}

.about-text {
  flex: 1;
  padding: 20px;
}

.btn {
  display: inline-block;
  padding: 12px 26px;
  background-color: #d4a017;
  color: #ffffff;
  text-decoration: none;
  font-weight: 600;
  border-radius: 6px;
  border: 2px solid #d4a017;
  transition: all 0.3s ease;
}

.btn:hover {
  background-color: #ffffff;
  color: #d4a017;
}

/* ============================
   LOGÓ + LINK
============================ */

.about-img2 {
  display: flex;
  align-items: center;
  gap: 15px;

  /* szabad hely a Történetünk gomb után */
  margin-top: 35px;
}

.about-img2 img {
  width: 60px;
  height: 60px;
  object-fit: contain;
  border-radius: 20px;
  flex-shrink: 0;
}


/* A logó melletti kattintható szöveg */

.about-logo-link {
  text-decoration: none;
  color: #1a1a1a;
  font-weight: 600;
  font-size: 16px;
  line-height: 1.3;
}

.about-logo-link:hover {
  text-decoration: underline;
}


/* ============================
   KIEMELT HÍREK – VÉGLEGES CAROUSEL
============================ */

.highlight-news {
  width: 100%;
  background: linear-gradient(90deg, #0A2E5C, #123C7A);
  padding: 40px 0;
  display: flex;
  justify-content: center;
  overflow: hidden;            /* <<< kilógás tiltása */
}

.highlight-inner {
  width: 100%;
  max-width: 1200px;           /* <<< középre igazítva */
  overflow: hidden;
}

.highlight-track {
  display: flex;
  gap: 20px;
  flex-wrap: nowrap;
  overflow: hidden;
  padding: 10px;
  will-change: transform;
  min-width: max-content;   /* <<< EZ KELL */
}


.highlight-tile {
  flex: 0 0 350px;
  height: 180px;
  background: #F1F1F1;
  border-radius: 10px;
  display: flex;
  flex-direction: row;
  gap: 10px;
  padding: 10px;
  box-shadow: 0 0 10px rgba(0,0,0,0.2);
}


.highlight-tile img {
  width: 90px;
  height: 90px;
  object-fit: contain;
  border-radius: 6px;
}




.highlight-tile-text {
  flex: 1;
  font-size: 0.9rem;
  line-height: 1.3;
  overflow: hidden;
  word-break: break-word;
}


@media (max-width: 700px) {
  .highlight-tile {
    flex: 0 0 240px;
    height: 280px;
  }
}



/* ============================
   HÍRFOLYAM + EREDMÉNYEK
============================ */

/* JAVÍTÁS: hírek + eredmények blokk ne nyúljon túl */
.news-results {
  display: flex;
  flex-wrap: wrap;      
  gap: 20px;            
  width: calc(100% - 30px);   
  max-width: 100%;      
  background-color: #123C7A;
  border-radius: 6px;
  padding-left: 15px;   
  padding-right: 15px;  
  margin: 0 auto;       
}

/* Bal oszlop */
.news-feed {
  flex: 1 1 600px;      
  min-width: 300px;
}

.news-feed h2 {
  margin-bottom: 20px;
  color: #FFFFFF;
  font-weight: 700;
  font-size: 1.3rem;
  border-left: 5px solid #EFBF04;
  padding-left: 10px;
}

/* Hírkártya */
.news-item {
  display: flex;
  gap: 20px;
  background: #fff;
  border-radius: 6px;
  padding: 15px;
  margin-bottom: 20px;
}

/* JAVÍTÁS: egységes, méretarányos képek vágás nélkül */
.news-img img {
  width: 220px;          /* elrendezés megtartva */
  height: auto;          /* nem fix magasság */
  max-height: 160px;     /* hírlapka magassághoz igazítva */
  object-fit: contain;   /* <<< nem vág, méretarányos */
  border-radius: 6px;
  display: block;
}

/* Szöveg */
.news-text {
  flex: 1;
  min-width: 0;
}

.news-text p,
.news-text small,
.news-text a {
  overflow-wrap: anywhere;
  word-break: break-word;
}


/* ============================
   EREDMÉNYEK
============================ */

/* Jobb oszlop */
.results-side {
  flex: 1 1 300px;      
  min-width: 280px;
}

.results-side h2 {
  margin: 25px 0 15px 0;
  color: #FFFFFF;
  font-weight: 700;
  font-size: 1.3rem;
  border-left: 5px solid #EFBF04;
  padding-left: 10px;
}

.result-card {
  background: #F1F1F1;
  padding: 15px;
  border-radius: 6px;
  border-left: 5px solid #EFBF04;
  margin-bottom: 12px;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.result-card.football {
  background-image: url('./Icons/football.png');
  background-repeat: no-repeat;
  background-size: 28px;
  background-position: 10px center;
  padding-left: 50px;
}

.result-card.tabletennis {
  background-image: url('./Icons/tabletennis.png');
  background-repeat: no-repeat;
  background-size: 28px;
  background-position: 10px center;
  padding-left: 50px;
}


/* ============================
   LAPOZÓ GOMBOK
============================ */

.news-pagination {
  margin-top: 30px;          
  margin-bottom: 50px;       
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
}

.news-pagination .page-btn {
  padding: 10px 20px;
  background: #0A2E5C;       
  color: #FFFFFF;            
  border: 1px solid #1E90FF; 
  border-radius: 6px;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: 0.25s ease;
}

.news-pagination .page-btn:hover {
  background: #123C7A;       
  border-color: #FFD700;     
  color: #FFD700;            
  box-shadow: 0 0 10px rgba(255,215,0,0.4);
}



/* ============================
   EREDMÉNYEK
============================ */

/* Jobb oszlop */
.results-side {
  flex: 1 1 300px;      /* <<< rugalmas, nem fix 35% */
  min-width: 280px;
}

.results-side h2 {
  margin: 25px 0 15px 0;
  color: #FFFFFF;
  font-weight: 700;
  font-size: 1.3rem;
  border-left: 5px solid #EFBF04;
  padding-left: 10px;
}

.result-card {
  background: #F1F1F1;
  padding: 15px;
  border-radius: 6px;
  border-left: 5px solid #EFBF04;
  margin-bottom: 12px;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.result-card.football {
  background-image: url('./Icons/football.png');
  background-repeat: no-repeat;
  background-size: 28px;
  background-position: 10px center;
  padding-left: 50px;
}

.result-card.tabletennis {
  background-image: url('./Icons/tabletennis.png');
  background-repeat: no-repeat;
  background-size: 28px;
  background-position: 10px center;
  padding-left: 50px;
}


/* ============================
   LAPOZÓ GOMBOK
============================ */
.news-pagination {
  margin-top: 30px;          /* távolság a hírek alatt */
  margin-bottom: 50px;       /* extra hely alul */
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
}

.news-pagination .page-btn {
  padding: 10px 20px;
  background: #0A2E5C;       /* KSZSE sötétkék */
  color: #FFFFFF;            /* fehér szöveg */
  border: 1px solid #1E90FF; /* finom világoskék keret */
  border-radius: 6px;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: 0.25s ease;
}

.news-pagination .page-btn:hover {
  background: #123C7A;       /* világosabb kék hover */
  border-color: #FFD700;     /* arany keret hover */
  color: #FFD700;            /* arany szöveg hover */
  box-shadow: 0 0 10px rgba(255,215,0,0.4);
}

/* EREDMÉNYEK ALSÓ RÉSZ – KÉP-GOMB */
.results-bottom {
  margin-top: 25px;
  text-align: center;
}

.results-button-img {
  width: 100%;
  max-width: 460px;                 /* <<< nagyobb gomb */
  cursor: pointer;

  background: #FFFFFF;
  padding: 25px;                    /* <<< nagyobb belső tér */
  border-radius: 14px;              /* <<< nagyobb lekerekítés */
  border: 4px solid #EFBF04;        /* <<< erősebb arany keret */

  /* Erősebb 3D árnyék */
  box-shadow: 0 10px 20px rgba(0,0,0,0.30);

  transition: transform 0.25s ease,
              box-shadow 0.25s ease;
}

/* Hover – nagyobb kiemelkedés */
.results-button-img:hover {
  transform: translateY(-6px);      /* <<< erősebb kiemelkedés */
  box-shadow: 0 14px 26px rgba(0,0,0,0.35);
}

/* Kattintás – benyomódás */
.results-button-img:active {
  transform: translateY(3px);
  box-shadow: 0 6px 12px rgba(0,0,0,0.25);
}

@media (max-width: 768px) {

  .results-bottom {
    margin-top: 20px;
    text-align: center;
  }

  .results-button-img {
    max-width: 300px;      /* <<< mobilon kicsit kisebb, nem lóg ki */
    width: 100%;
    padding: 20px;         /* <<< arányosabb */
    border-radius: 12px;
  }
}



/* ============================
   TÁMOGATÓINK FEJLÉC – 50% ARANY CSÍK
============================ */

.sponsors {
  margin-top: 40px;
  margin-bottom: 60px;
  text-align: center;
}

/* Arany csík – 50% szélesség, középre igazítva */
.sponsor-line {
  width: 50%;
  height: 3px;
  background: #EFBF04;
  margin: 10px auto;      /* <<< középre igazítja */
  border-radius: 2px;
}

/* Fejléc felirat – jól látható szín */
.sponsors h2 {
  color: #0A2E5C;         /* <<< sötétkék, jól látszik a szürke háttéren */
  font-weight: 700;
  font-size: 1.6rem;
  margin: 15px 0;
  border-left: none;
  padding-left: 0;
}



/* GRID */
.sponsor-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 25px;
  justify-content: center;
}

/* KÁRTYA – egységes méret */
.sponsor-card {
  width: 180px;              /* <<< stabil szélesség */
  background: #fff;
  border-radius: 8px;
  padding: 10px;
  text-align: center;
  overflow: hidden;          /* <<< hover nagyításnál sem lóg ki */
}

/* KÉP – méretarányos, nem vág, nem nő túl */
.sponsor-card img {
  width: 100%;
  height: 100px;             /* <<< egységes magasság */
  object-fit: contain;       /* <<< nem vágja le */
  opacity: 0.85;             /* halvány alapállapot */
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* HOVER – 20% nagyítás + élesítés */
.sponsor-card:hover img {
  transform: scale(1.20);
  opacity: 1;
}

/* NÉV LINK */
.sponsor-name {
  display: block;
  margin-top: 8px;
  font-size: 0.9rem;
  color: #0A2E5C;
  font-weight: 600;
  text-decoration: none;
}

.sponsor-name:hover {
  color: #EFBF04;
}

.supporters-list {
  list-style: none;
  width: 92%;
  max-width: 1400px;

  margin: 30px auto;
  padding: 0;

  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
}

.supporters-list li {
  background: #fff;
  border-left: 4px solid #FFD700;
  padding: 12px;
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(0,0,0,.1);

  font-size: 0.9rem;
  text-align: center;

  color: #0A2E5C;
}

/* Tablet */
@media (max-width: 1200px) {
  .supporters-list {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Mobil */
@media (max-width: 768px) {
  .supporters-list {
    width: 95%;
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Kis mobil */
@media (max-width: 480px) {
  .supporters-list {
    grid-template-columns: 1fr;
  }
}

/* ============================
   CONTACT
============================ */
.contact {
  background-color: #0A2E5C;   /* <<< ugyanaz a kék háttér, mint a híreknél */
  padding: 60px 20px;
  text-align: center;
}

/* FEJLÉC BLOKK */
.contact-header {
  text-align: center;
  margin-bottom: 30px;
}

/* Arany csík – 50% szélesség, középre igazítva */
.contact-line {
  width: 50%;
  height: 3px;
  background: #EFBF04;
  margin: 10px auto;
  border-radius: 2px;
}

/* Fejléc felirat – fehér, hogy látszódjon a sötétkék háttéren */
.contact-header h2 {
  color: #FFFFFF;
  font-weight: 700;
  font-size: 1.6rem;
  margin: 15px 0;
  border-left: none;
  padding-left: 0;
}

/* ============================
   TARTALOM BLOKK – két oszlop
============================ */
.contact-body {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 60px;
  flex-wrap: wrap;
}

/* Oszlopok fix, arányos szélességgel */
.contact-col {
  flex: 0 1 400px;
  display: flex;
  justify-content: center;
}

/* SZÖVEG BLOKK – fehér szöveg a sötét háttéren */
.contact-info {
  max-width: 400px;
  text-align: left;
  color: #FFFFFF;              /* <<< jól látható fehér szöveg */
}

.contact-info h3 {
  color: #EFBF04;              /* <<< arany cím, illik a dizájnhoz */
}

/* ============================
   TÉRKÉP BLOKK – kék keret
============================ */
.contact-map-wrapper {
  border: 4px solid #FFFFFF;   /* <<< fehér keret a sötét háttéren szebb */
  border-radius: 10px;
  padding: 10px;
  max-width: 600px;
  width: 100%;
}

.contact-map-wrapper iframe {
  width: 100%;
  height: 400px;
  border: 0;
  border-radius: 6px;
}

/* MOBIL OPTIMALIZÁLÁS */
@media (max-width: 768px) {
  .contact-map-wrapper iframe {
    height: 300px;
  }
}




/* ============================
   FOOTER
============================ */
.footer {
  background-color: #0A1A2F;
  color: white;
  text-align: center;
  padding: 20px;
}


/* ============================
   MOBIL OPTIMALIZÁLÁS
============================ */
@media (max-width: 900px) {
  .about {
    flex-direction: column;
    text-align: center;
  }

  .contact-body {
    flex-direction: column;
    align-items: center;
  }

  .highlight-news {
    height: auto;
    padding: 20px 0;
  }

  .highlight-inner {
    width: 100%;
    height: auto;
    margin: 0;
  }

  .highlight-tile {
    width: 280px;
    height: auto;
  }
}

@media (max-width: 700px) {
  .news-results {
    flex-direction: column;
    padding: 20px;
    gap: 20px;
  }

  .news-item {
    flex-direction: column;
  }

  .news-img img {
    width: 100%;
    height: auto;
  }

  .news-feed,
  .results-side {
    flex: 1 1 100%;
    padding: 0;
  }
}
