* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  font-family: "Segoe UI", Tahoma, Verdana, sans-serif;
  line-height: 1.7rem;
  color: #0d1b2a;
}

a {
  text-decoration: none;
  color: inherit;
}

/* Navbar */
.header {
  width: 100%;
  color: white;
}

.navbar {
  position: fixed;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 5%;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(6px);
  width: 100%;
  z-index: 100;
}

.navbar .logo {
  font-size: 24px;
  font-weight: 1000;
  color: #f57c00;
}
.navbar ul {
  display: flex;
  gap: 24px;
  list-style: none;
}
.navbar a:hover {
  color: #f57c00;
}

[id] {
  scroll-margin-top: 80px;
}

main {
  display: block;
  width: 100%;
  background: #f9fafa;
}



.heroContainer {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: url("assets/georg_korvpall.png") no-repeat center center/cover;
  color: #fff;
  text-align: center;
}

.heroBtn {
  margin: 40px;
  padding: 10px 30px;
  background-color: #f57c00;
  color: white;
  border-radius: 10px;
}

.heroBtn:hover {
  background-color: #e67300;
}

/* Minust */
.tutvustus {
  padding: 80px 5%;
  background: #f9fafa;
}
.tutvustus h2 {
  display: flex;
  justify-content: center;
  margin: 40px 0;
  color: #f57c00;
}
.tutvustus-container {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 40px;
  padding: 40px;
  flex-wrap: wrap;
}
.tutvustus-container .minust-tekst {
  max-width: 640px;
  align-items: center;
}

.tutvustus-container .minust-tekst h3 {
  margin: 40px;
  color:#f57c00;
}

.tutvustus-container .minust-tekst img {
  margin-top: 16px;
  border-radius: 12px;
}
.tutvustus-container img {
  width: 500px;
  max-width: 100%;
  height: auto;
  border-radius: 12px;
}

/* Saavutused */
#saavutused {
  background: #f9fafa;
  text-align: center;
  padding: 80px 5%;
}
#saavutused h2 {
  color: #f57c00;
  margin-bottom: 10px;
  margin-bottom: 40px; 
}
.achievements-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin: 20px;
}
.achievement-card {
  background: #fff;
  border-radius: 12px;
  padding: 20px 30px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: 0.3s;
}
.achievement-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}


/* Gallery */


.wrap {
  width: 100%;
  max-width: 1000px;
  padding: 16px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 80vh;
}


.slideshow-container {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9; 
  overflow: hidden;
  border-radius: 15px;
  background: #000;
}

.slide {
  position: absolute;
  inset: 0;
  display: none;
}

.slide img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover; 
}

/* Arrows */
.prev,
.next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  padding: 12px 14px;
  color: #fff;
  font-weight: 700;
  font-size: 18px;
  user-select: none;
  background: rgba(0, 0, 0, 0.55);
  z-index: 3;
}
.prev { left: 10px; }
.next { right: 10px; }
.prev:hover,
.next:hover { background: rgba(0, 0, 0, 0.85); }

.dots {
  position: absolute;
  left: 0; right: 0; bottom: 10px;
  display: flex; gap: 6px; justify-content: center;
  z-index: 3;
}
.dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
}
.dot.active { background: #fff; }


.slideshow-container.fullscreen {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100svh;
  z-index: 9999;
  background: #000;
}


.slideshow-container.fullscreen .slide img { object-fit: contain; }


.slideshow-container.fullscreen.fill .slide img { object-fit: cover; }


.slideshow-container.fullscreen .prev { left: 16px; }
.slideshow-container.fullscreen .next { right: 16px; }


.toolbar {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: flex-end;
  margin-bottom: 10px;
}
.btn {
  appearance: none;
  border: none;
  padding: 10px 14px;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 600;
  background: #f57c00;
  color: #fff;
}
.btn:hover { opacity: 0.9; }





.footer {
  background: #0d1b2a;
  color: #fff;
  padding: 40px 5%;
  margin-top: 60px;
}

.footer-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-left h3 {
  color: #f57c00;
  margin-bottom: 8px;
}

.footer-links a {
  color: #fff;
  margin: 0 10px;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: #f57c00;
}

.footer-right {
  font-size: 0.9rem;
  opacity: 0.85;
}


@media (max-width: 900px) {
  /* Navbar */
  .navbar {
    padding: 0.75rem 4%;
  }
  .navbar .logo {
    font-size: 20px;
  }
  .navbar ul {
    gap: 16px;
  }

  /* Hero */
  .heroContainer {
    min-height: 80vh;
    padding: 0 5%;
    text-align: center;
  }
  .heroContainer h1 {
    font-size: 2rem;
    line-height: 1.2;
  }
  .heroBtn {
    margin: 24px;
    padding: 10px 22px;
    font-size: 0.95rem;
  }

  /* Main / Sections */
  main section {
    padding: 60px 5%;
  }
  main section h2 {
    margin: 24px 0;
    font-size: 1.8rem;
  }
  main section p {
    font-size: 1rem;
  }

  /* Minust */
  .tutvustus-container {
    gap: 24px;
    padding: 20px;
  }
  .tutvustus-container .minust-tekst {
    max-width: 100%;
  }
  .tutvustus-container img {
    width: 100%;
  }

  /* Saavutused */
  .achievements-grid {
    gap: 16px;
    margin: 10px 0;
  }
  .achievement-card {
    padding: 16px 20px;
  }

  /* Gallery */
  .wrap {
    min-height: 60vh;       
  }
  .slideshow-container {
    aspect-ratio: 4 / 3;     
    border-radius: 12px;
  }
  .prev,
  .next {
    padding: 10px 12px;
    font-size: 16px;
  }
  .dots {
    bottom: 8px;
    gap: 5px;
  }
  .dot {
    width: 7px;
    height: 7px;
  }

  /* Footer */
  .footer {
    padding: 32px 5%;
  }
  .footer-container {
    gap: 16px;
  }
  .footer-right {
    font-size: 0.95rem;
  }
}

