
body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  box-sizing: border-box;
}

html {
  overflow-x: hidden;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-padding-top: 130px;
  scroll-behavior: smooth;
}

* {
  box-sizing: border-box;
}

/* header-navbar */


.header {
  background-color: rgb(255, 255, 255);
  border-bottom: 1px solid #e0e0e0;
  padding: 10px 0;
  z-index: 9999;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  position: sticky;
  top: 0;
  width: 100%;
  box-sizing: border-box;
}

.nav-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-sizing: border-box;
}


.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo img {
  height: 90px;
}

.logo-text {
  font-size: 30px;
  line-height: 1.2;
  color: #000000;
}


.nav {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 25px;
}

.nav-menu {
  list-style: none;
  display: flex;
  gap: 60px;
}

.nav-menu li a {
  text-decoration: none;
  color: #000000;
  font-weight: 500;
  transition: color 0.3s;
}

/* Burger menu styles */
.burger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
  padding: 8px;
  z-index: 10000;
}

.burger span {
  width: 25px;
  height: 3px;
  background-color: #000000;
  border-radius: 2px;
  transition: all 0.3s ease;
  display: block;
}

.burger.active span:nth-child(1) {
  transform: rotate(45deg) translate(8px, 8px);
}

.burger.active span:nth-child(2) {
  opacity: 0;
}

.burger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}


@media (max-width: 768px) {

  .header {
    padding: 10px 0;
    position: sticky;
    top: 0;
  }

  .nav-container {
    flex-direction: row;
    align-items: center;
    gap: 20px;
    padding: 0 15px;
    justify-content: flex-start;
    width: 100%;
    box-sizing: border-box;
  }

  .logo {
    display: flex;
    align-items: center;
    gap: 5px;
    flex-shrink: 0;
  }

  .logo-text {
    font-size: 14px;
    line-height: 1.2;
  }

  .logo img {
    height: 50px;
  }

  .nav {
    position: relative;
    width: auto;
    gap: 0;
    font-size: 12px;
    margin-left: auto;
    z-index: 1000;
  }

  .nav-menu {
    position: fixed;
    top: 69px;
    left: 0;
    flex-direction: column;
    width: 100%;
    background-color: #ffffff;
    border-top: none;
    padding: 0;
    margin: 0;
    gap: 0;
    align-items: stretch;
    justify-content: flex-start;
    flex-wrap: nowrap;
    max-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    transition: max-height 0.3s ease-out;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    box-sizing: border-box;
  }

  .nav-menu.active {
    max-height: 80vh;
  }

  .nav-menu li {
    width: 100%;
    border-bottom: 1px solid #f0f0f0;
  }

  .nav-menu li a {
    font-size: 16px;
    padding: 15px 20px;
    display: block;
    width: 100%;
    box-sizing: border-box;
    color: #000000;
    text-decoration: none;
    transition: background-color 0.2s ease;
  }

  .nav-menu li a:hover {
    background-color: #f5f5f5;
  }

  .burger {
    display: flex;
  }
}







body {
  padding-top: 0;
}

main {
  transition: none;
}









a {
  text-decoration: none;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

a::before,
a::after {
  content: "";
  position: absolute;
  background-color: #000000;
  width: 100%;
  height: 2px;
  transform: scaleX(0);
  transition: transform 0.4s;
}

a::before {
  top: 0;
  left: 0;
  transform-origin: left;
}

a::after {
  bottom: 0;
  right: 0;
  transform-origin: right;
}

a:hover::before,
a:hover::after {
  transform: scaleX(1);
}







/* obrazok */


.main-img{
width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
  
}


.overlay {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  background-color: rgba(0, 0, 0, 0.35); 
  z-index: 2;}

.obrazok{
  position: relative;
  width: 100%;
  height: 95vh;
  overflow: hidden;
  clip-path: polygon(0 0, 100% 0, 100% 85%, 0 100%);
}

@media (max-width: 1024px) {
  .obrazok {
    height: 80vh;
  }
}

@media (max-width: 768px) {
  .obrazok {
    height: 65vh;
    clip-path: polygon(0 0, 100% 0, 100% 80%, 0 100%);
  }
}

@media (max-width: 480px) {
  .obrazok {
    height: 50vh;
    clip-path: polygon(0 0, 100% 0, 100% 75%, 0 100%);
  }
}


.hero-text {
  position: absolute;
  z-index: 3;
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: rgb(247, 244, 244);
  text-align: center;
  width: 90%;
  max-width: 100%;
}

.hero-text h1 {
  font-size: 6rem;
  margin: 0;
  font-weight: 700;
  line-height: 1.1;
}

@media (max-width: 1024px) {
  .hero-text h1 {
    font-size: 5rem;
  }
}

@media (max-width: 768px) {
  .hero-text {
    top: 40%;
    width: 95%;
  }

  .hero-text h1 {
    font-size: 3rem;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  }

  .hero-text p {
    font-size: 1.2rem;
  }
}

@media (max-width: 480px) {
  .hero-text {
    top: 40%;
  }

  .hero-text h1 {
    font-size: 2rem;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
  }

  .hero-text p {
    font-size: 0.9rem;
  }
}


.sekcia {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
  text-align: center;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.sekcia-nadpis {
  font-size: 3.5rem;
  font-weight: 700;
  color: #222;
  margin-bottom: -30px;
  text-transform: uppercase;
}

.sekcia-podnadpis {
  font-size: 2.2rem;
  color: #222;
  margin-bottom: 40px;
  font-weight: 300;
}


/* news obrazky */


.instagram-feed {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;

}

.instagram-feed .post {
  width: 350px;
  height: 350px;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgb(0 0 0 / 0.1);
  transition: transform 0.3s ease;
  cursor: pointer;
}

.instagram-feed .post:hover {
  transform: scale(1.05);
}

.instagram-feed .post img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.sekcia-ciara {
  width: 100%;
  height: 2px;
  background-color: #000000;
  margin: 30px 0;
}

@media (max-width: 768px) {
  .sekcia-ciara {
    margin: 20px auto;
    height: 2px; 
  }
}







  .oddelenie {
  height: 80px; 
}



/* sponsor */

.equipment {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
  font-family: 'Arial', sans-serif;
  text-align: left;
}

.equipment-nadpis {
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: #000000;
  margin-bottom: 10px;
  text-transform: uppercase;
}

.equipment-podnadpis {
  font-size: 1.2rem;
  color: #666;
  margin-bottom: 20px;
  font-weight: 300;
}

.equipment-ciara {
  width: 100%;
  height: 2px;
  background-color: #000;
  margin-bottom: 40px;
}

.equipment-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 40px;
}

.equipment-img {
  width: 400px;
  max-width: 90%;
}

.equipment-text {
  max-width: 500px;
  text-align: left;
}

.equipment-text h3 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 15px;
}

.equipment-text p {
  font-size: 1rem;
  color: #555;
  line-height: 1.6;
}

.final-image-section {
    width: 100%;
    overflow: hidden;
}

.final-image {
    width: 100%;
    height: 250px; 
    object-fit: cover; 
    object-position: center; 
    display: block;
    clip-path: polygon(0 40%, 100% 0, 100% 100%, 0% 100%);

}






/* footer formular */


footer {
    background-color: #444652;
    color: #ffffff;
    padding: 20px;
    text-align: center;
}

.footer-content {
    max-width: 600px;
    margin: 0 auto;
}

/* Facebook modal styles (responsive + overflow control) */
.facebook-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.facebook-modal .facebook-modal-content {
  position: relative;
  /* match Facebook embed internal width (500px) plus small padding */
  width: 520px;
  max-width: 95%;
  max-height: 90vh;
  background: #fff;
  border-radius: 12px;
  overflow: hidden; /* hide iframe overflow */
  box-shadow: 0 8px 30px rgba(0,0,0,0.6);
  padding: 10px;
  box-sizing: border-box;
}

.facebook-modal .facebook-modal-content iframe {
  width: 500px;
  max-width: 100%;
  height: 80vh; /* make iframe tall on desktop so content fits */
  max-height: 90vh;
  border: 0;
  display: block;
}

/* Ensure iframe corners are clipped and no overflow shows outside modal */
.facebook-modal .facebook-modal-content iframe {
  border-radius: inherit;
  box-sizing: border-box;
  display: block;
}

/* Extra safety: clip any child elements and hide overflow inside content */
.facebook-modal .facebook-modal-content {
  overflow: hidden;
  -webkit-overflow-scrolling: touch;
}

.facebook-modal-close {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 10001;
  color: #fff;
  background: rgba(0,0,0,0.35);
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  cursor: pointer;
  border: none;
}

@media (max-width: 768px) {
  .facebook-modal .facebook-modal-content {
    width: calc(100% - 32px);
    height: 90vh;
    border-radius: 10px;
    padding: 6px;
  }
  .facebook-modal .facebook-modal-content iframe {
    width: 100%;
    height: calc(100% - 12px);
  }
  .facebook-modal-close { top: 6px; right: 6px; }
}


.newsletter-title {
    font-size: 24px;
    margin: 20px 0;
}

.newsletter-text {
    font-size: 16px;
}



.name-label,
.email-label {
    font-weight: bold;
    display: block;
    margin: 10px 0 5px;
}

input {
    width: 90%;
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid #ffffff;
    border-radius: 5px;
}

.submit-button {
    background-color: #7d98c9;
    color: #000000;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}




