/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body,
html {
  font-family: Arial, sans-serif;
  height: 100%;
  background-color: white;
}

/* IMPORTANT: Adjust this value to the EXACT height of your navbar.
   Use your browser's developer tools to inspect the navbar and find its computed height.
   Example: If your navbar is 64px tall, use padding-top: 64px; */
body {
  padding-top: 4rem; /* This is an estimation, measure your navbar! */
}

/* Navbar */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #010624;
  color: white;
  padding: 1rem 2rem;
  position: fixed; /* Keep it fixed */
  width: 100%; /* Ensure it spans full width */
  top: 0; /* Stick to the top */
  z-index: 1000; /* Ensure it's above other content */
}

.logo {
  font-size: 1.5rem;
  font-weight: bold;
}

.nav-list {
  list-style: none;
  display: flex;
  gap: 2rem;
}

.nav-list li a {
  color: white;
  text-decoration: none;
  font-weight: bold;
}

/* Hamburger toggle */
.menu-toggle {
  display: none;
  font-size: 2rem;
  cursor: pointer;
}

/* Hero */
.hero {
  /* Set height to 100vh minus the navbar's height */
  /* This value should match the padding-top of your body */
  height: calc(100vh - 4rem); /* Adjust this precisely based on navbar height */

  background-image: url('/images/home_page_image.jpg');
  background-size: cover; /* Default for larger screens */
  background-repeat: no-repeat;
  background-position: top center; /* Default for larger screens, aligns top of image */

  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-align: center;
  padding: 0 2rem;
}

.hero-content {
  background: rgba(0, 0, 0, 0.6);
  padding: 2rem;
  border-radius: 10px;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.2rem;
}

.logo a,
.logo a:hover,
.logo a:visited,
.logo a:link {
  text-decoration: none;
  color: white;
}

.fotky-videa-div {
  padding: 20px 15px 20px 15px;
}

.fotky-videa-div a,
a:hover,
a:visited,
a:link {
  text-decoration: none;
  color: blue;
}

.fotky-videa-div h2 {
  padding-top: 3px;
  padding-bottom: 3px;
}

/* Responsive styles */
@media (max-width: 1200px) {
  .menu-toggle {
    display: block;
  }

  .nav-list {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background-color: #010624;
    flex-direction: column;
    width: 200px;
    text-align: center;
    padding: 1rem;
  }

  .nav-list.active {
    display: flex;
  }

  .nav-list li {
    margin: 1rem 0;
  }

  /* IMPORTANT: Re-measure your navbar's height on mobile and update padding-top if it changes */
  body {
    padding-top: 4rem; /* Adjust if mobile navbar height is different */
  }

  .hero {
    /* Adjust this if padding-top for body changes on mobile */
    height: calc(100vh - 4rem);

    /* --- CRITICAL CHANGE FOR MOBILE HERO IMAGE --- */
    /* Make image fill width, height scales automatically.
       This ensures the top of the image is visible and cropping happens at the bottom. */
    background-size: 100% auto;
    background-position: top center; /* Keep top aligned, cut bottom */
  }
}