@import url('https://fonts.googleapis.com/css2?family=Lexend+Deca:wght@100..900&display=swap');
*{
  margin: 0;
  padding: 0;
  font-family: "Lexend Deca", sans-serif;
}

.header {
  position: relative;
  min-height: 280px;
  overflow: hidden;
}

.header-banner {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
}

.header-content {
  margin-top: 40px;
  padding: 2.5rem 2rem;
  text-align: center;
}

.header h1 {
  color: white;
}

.header nav {
  margin-top: 0.8rem;
  display: flex;
  justify-content: center;
}


body {
  color: white;
  line-height: 1.6;
}

main{
  padding: 10px 0px;
  background: linear-gradient(
    to bottom,
    rgb(29, 52, 40) 0%,
    rgb(10,10,10) 3%,
    rgb(10,10,10) 97%,
    rgb(29, 52, 40) 100%
  );
}



nav {
  margin-top: 0.8rem;
  display: flex;
  justify-content: center;
}

nav a {
  color: #9aa4b2;
  text-decoration: none;
  margin-right: 1.5rem;
  font-weight: 600;
  position: relative;
  transition: color 0.3s ease;
  border-bottom: transparent 2px solid;
}

nav a:hover {
  color: white;
  border-bottom: #3ddc84 2px solid;
}

nav a:hover::after {
  width: 100%;
}


section {
  padding: 3rem 2rem;
  max-width: 1200px;
  margin: auto;
}

section h2 {
  font-size: 2rem;
  margin-bottom: 2rem;
  border-left: 5px solid #3ddc84;
  padding-left: 1rem;
}

.nejblizsi-akce {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.aktuality {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.nejnovejsi-ohlednuti{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.akce {
  background-color: #282828;
  border-radius: 18px;
  padding: 1.6rem;
  border: 1px solid rgb(165, 165, 165);;
  transition: .5s;
}

.aktualita {
  background-color: #282828;
  border-radius: 18px;
  padding: 1.6rem;
  border: 1px solid rgb(165, 165, 165);;
  transition: .5s;
}

.ohlednuti{
  background-color: #282828;
  border-radius: 18px;
  padding: 1.6rem;
  border: 1px solid rgb(165, 165, 165);;
  transition: .5s;
}

.akce:hover {
  background-color:#181818;
  border-radius: 35px;
}

.aktualita:hover{
  background-color:#181818;
  border-radius: 35px;
}

.ohlednuti:hover{
  background-color:#181818;
  border-radius: 35px;
}

.akce h3 {
  margin-bottom: 0.6rem;
  font-size: 1.3rem;
}

.akce p {
  color: #9aa4b2;
  margin-bottom: 0.4rem;
}

.akce img {
  width: 100%;
  border-radius: 14px;
  margin-bottom: 1rem;
  filter: brightness(0.9) contrast(1.1);
}

a {
  color: #3ddc84;
  text-decoration: none;
  font-weight: 600;
}

a:hover {
  color: #2bbd6f;
}

.article {
  max-width: 900px;
  margin: auto;
}

.article img {
  width: 100%;
  border-radius: 18px;
  margin: 1.5rem 0;
}

.meta {
  color: #9aa4b2;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

footer {
  padding: 2rem;
  text-align: center;
  background-color: rgb(29, 52, 40);
  color: #9aa4b2;
}

.druh {
  display: inline-block;
  background: rgba(61, 220, 132, 0.15);
  color: #3ddc84;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  margin-bottom: 0.8rem;
}

.aktualita p {
  color: #9aa4b2;
  font-size: 0.9rem;
}

header a h1{
  color: white;
}

.sponzori{
  display: flex;
  flex-direction: row;
  justify-content: center;
}

.sponzori a p {
  margin: 5px;
  text-decoration: underline;
  color: #9aa4b2;
}

.sponzori a p:hover {
  color: white;
}

.obrazek{
  display: flex;
  justify-content: center;
  padding: 10px 0px 0px 0px;
}

@media (max-width:799px){
  nav{
    display: flex;
    flex-direction: column;
  }
  nav a:hover{
    border-bottom: transparent solid 2px;
  }
  nav a{
    padding: 5px;
  }
  .sponzori{
    flex-direction: column;
    padding: 5px;
  }
}