/* ===========================
   ZÁKLADNÍ NASTAVENÍ
   =========================== */
html, body {
  max-width: 100%;
  overflow-x: hidden;
  font-family: 'Poppins', 'Roboto', sans-serif;
  background-color: #f8f9fa;
  color: #343a40;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Odkazy */
a {
  color: #007bff;
  text-decoration: none;
}
a:hover {
  text-decoration: none;
}

/* ===========================
   OBSAH STRÁNEK A ČLÁNKŮ
   =========================== */
.article-content,
.page-content {
  background: #fff;
  border: 1px solid #e9ecef;
  border-radius: 0.5rem;
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  font-size: 1rem;
  line-height: 1.8;
}

/* Text uvnitř boxu */
.article-content p,
.page-content p {
  font-size: 1rem;
  line-height: 1.8;
}

/* Obrázky uvnitř obsahu */
.page-content img,
.article-content img {
  max-width: 100%;
  height: auto;
}

/* Karty na hlavní stránce */
  .card-title {
  font-weight: 500;
  line-height: 1.40;
}

/* Mobilní úpravy obsahu */
@media (max-width: 576px) {
  .article-content,
  .page-content {
    padding: 0.7rem;
    margin-left: -1rem;
    margin-right: -1rem;
    border-radius: 0;
  }

  .article-content p,
  .page-content p {
    font-size: 16px;
    line-height: 1.7;
  }
}

/* ===========================
   KARTY NOVINEK
   =========================== */
.card-article {
  border: none;
  border-radius: 0.5rem;
  background: #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  transition: transform 0.2s ease;
}
.card-article:hover {
  transform: translateY(-4px);
}

/* ===========================
   ROZCESTNÍK SEKCE
   =========================== */
.rozcestnik-box {
  border: 1px solid rgba(0,0,0,0.05);
  transition: all 0.3s ease;
}
.rozcestnik-box:hover {
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
  transform: translateY(-3px);
}
.rozcestnik-icon {
  background-color: rgba(230, 115, 0, 0.1);
  border-radius: 50%;
  padding: 15px;
  color: #e67300;
  transition: all 0.3s ease;
}
.rozcestnik-box:hover .rozcestnik-icon {
  background-color: rgba(230, 115, 0, 0.25);
  transform: scale(1.1);
}

/* ===========================
   FOOTER
   =========================== */
.footer {
  font-size: 0.8rem;
  flex-shrink: 0;
  font-weight: 300; 
}

/* ===========================
   OBRÁZKY, VIDEA A TABULKY
   =========================== */
img, iframe, table {
  max-width: 100%;
  height: auto;
}

.gallery-container img {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.gallery-container img:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
}
.baguetteBox-button {
  border-radius: 50%;
}

/* ================================
   HLAVNÍ MENU – FINÁLNÍ VERZE
   ================================ */

/* === Lišta === */
.navbar {
  background-color: #000 !important;
  padding-top: 0.4rem;
  padding-bottom: 0.4rem;
}

/* === Položky hlavního menu === */
.navbar-nav .nav-link {
  font-size: 1.3rem;
  font-weight: 400;
  letter-spacing: 0.05em;
  text-decoration: none !important;
  color: #fff !important;
  padding: 0.6rem 1.3rem;
  transition: color 0.2s ease-in-out;
  outline: none !important;      /* odstraní šedý rámeček po kliknutí */
  box-shadow: none !important;   /* odstraní rámeček po focusu */
}

/* Hover a aktivní odkaz */
.navbar-nav .nav-link:hover,
.navbar-nav .nav-link:focus,
.navbar-nav .nav-link.active {
  color: #00aeef !important; 
  background-color: transparent !important; /* žádné šedé pozadí */
  text-decoration: none !important;
}

/* === Submenu (dropdown) === */
.dropdown-menu {
  background-color: #fff !important;
  border: none;
  border-radius: 0;
  margin-top: 0;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.dropdown-menu .dropdown-item {
  color: #000 !important;
  text-decoration: none !important;
  text-transform: uppercase;
  font-weight: 500;
  padding: 0.6rem 1rem;
  transition: background-color 0.2s ease-in-out;
}

.dropdown-menu .dropdown-item:hover {
  background-color: #f2f2f2 !important;
}

/* === Mobilní menu === */
@media (max-width: 768px) {
  .navbar {
    padding-top: 0.6rem;
    padding-bottom: 0.6rem;
  }

  .navbar-nav .nav-link {
    display: block;
    width: 100%;
    padding: 1rem;
    font-size: 1.2rem;
  }
}

/* ===========================
   LOGO
   =========================== */
/* Výchozí styl – desktop */
.logo {
  height: 120px;
  width: auto;
}

.logo-desktop {
  display: inline;
}

.logo-mobile {
  display: none;
}

/* Na mobilech (max 768px) se přepne */
@media (max-width: 768px) {
  .logo {
    height: 60px; /* menší výška pro mobil */
     margin-bottom: 0.5rem;
  }

  .logo-desktop {
    display: none; /* skryje desktop logo */
  }

  .logo-mobile {
    display: inline; /* zobrazí mobilní logo */
  }
}

/* ===========================
   Partneři
   =========================== */
/* Sekce sponzorů */
.sponsors {
  margin-top: auto; 
  background: #f8f9fa;
  padding: 1rem 0;
  border-top: 1px solid #ddd;
  text-align: center;
  overflow: hidden;
}

/* Nadpis */
.sponsors-title {
  font-family: "Poppins", sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #666;
  margin-bottom: 1.5rem;
}

/* Slider */
.sponsors-slider {
  position: relative;
  overflow: hidden;
  width: 100%;
}

/* Pohyblivá lišta */
.sponsors-track {
  display: flex;
  align-items: center;
  gap: 4rem; /* vzdálenost mezi logy */
  animation: scrollSponsors 60s linear infinite;
  width: max-content;
}

/* Loga */
.sponsor-logo {
  height: auto;
  max-height: 60px;
  width: auto;
  filter: grayscale(100%);
  opacity: 0.8;
  transition: all 0.4s ease;
}
.sponsor-logo:hover {
  filter: grayscale(0%);
  opacity: 1;
  transform: scale(1.05);
}

/* Animace */
@keyframes scrollSponsors {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* 📱 Responsivní úpravy */
@media (max-width: 768px) {
  .sponsors {
    padding: 2rem 0 0.8rem 0; 
  }
  .sponsor-logo {
    max-height: 40px;
  }
  .sponsors-track {
    gap: 4rem;
  }
}

@media (max-width: 576px) {
  .sponsors {
    padding: 2rem 0 0.8rem 0; 
  }
  .sponsor-logo {
    max-height: 50px;
  }
  .sponsors-track {
    gap: 3.5rem;
  }
}
</style>
