/* General styles */
body {
  font-family: sans-serif;
  margin: 0;
  padding: 0;
  background: #fff;
  color: #222;
}

h1, h2, h3, p {
  margin: 0;
  padding: 0;
}

/* Header */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 20px;
  background: #f8f8f8;
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid #ddd;
}

header h1 {
  font-size: 1.5em;
}

.top-menu {
  display: flex;
  gap: 15px;
}

.top-menu a {
  text-decoration: none;
  color: #333;
  font-weight: bold;
}

.logo-crop {
  width: 100%;
  max-width: 200px;
  height: 80px;        /* Controls how much of the logo is visible vertically */
  overflow: hidden;
  position: relative;
}

.logo-crop img {
  width: 100%;
  height: auto;
  position: relative;
  top: -60px;          /* Move the image up to crop the top */
  display: block;
}


@media (max-width: 500px) {
  .logo-crop {
    max-width: 144px;
    height: 54px;
  }

  .logo-crop img {
    top: -42px;
  }
}





.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5em;
}

/* Hero section */
.hero {
  text-align: center;
  padding: 40px 20px;
}

.hero h2 {
  font-size: 2em;
  margin-bottom: 10px;
}

.hero p {
  font-size: 1.1em;
  color: #555;
  margin-bottom: 30px;
}

/* Button group */
.button-group {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 40px;
}

.button-group a {
  margin: 10px;
  padding: 15px 30px;
  background: #007bff;
  color: #fff;
  text-decoration: none;
  border-radius: 8px;
  font-size: 1em;
  transition: background 0.2s ease;
}

.button-group a:hover {
  background: #0056b3;
}

/* Info section */
.info {
  max-width: 800px;
  margin: 0 auto 40px auto;
  padding: 0 20px;
  font-size: 1em;
  line-height: 1.6em;
  color: #444;
}

/* Responsive styles */
@media (max-width: 600px) {
  .top-menu {
    display: none;
    flex-direction: column;
    background: #f8f8f8;
    position: absolute;
    top: 60px;
    right: 20px;
    width: 150px;
    border: 1px solid #ddd;
    padding: 10px;
  }

  .top-menu.active {
    display: flex;
  }

  .menu-toggle {
    display: block;
  }
}

    #tool-info {
  max-width: 800px;
  margin: 2rem auto;
  padding: 1.5rem;
  background-color: #f9f9f9;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  font-family: sans-serif;
}

#tool-info h2 {
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
  font-size: 1.4rem;
  color: #333;
}

#tool-info p,
#tool-info li {
  color: #444;
  line-height: 1.6;
}

#tool-info h1 {
  position: relative;
  font-size: 2rem;
  margin-bottom: 2rem;
  text-align: center; /* optional */
}

#tool-info h1::after {
  content: "";
  display: block;
  width: 60px;
  height: 3px;
  background: #ccc;
  margin: 0.5rem auto 0 auto; /* center under text */
}

#tool-info ol {
  padding-left: 1.2rem;
}

.tool-video {
  margin-top: 2rem;
}

.video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 ratio */
  height: 0;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 0 8px rgba(0,0,0,0.1);
}

.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

    .contact-form {
      display: flex;
      flex-direction: column;
      gap: 1rem;
    }

    .contact-form label {
      font-weight: bold;
    }

    .contact-form input,
    .contact-form textarea {
      display: block;
      width: 100%;
      padding: 0.5rem;
      border: 1px solid #ccc;
      border-radius: 4px;
      font-size: 1rem;
      box-sizing: border-box;
    }

    .contact-form button {
      width: fit-content;
      padding: 0.5rem 1.25rem;
      background-color: #333;
      color: white;
      border: none;
      border-radius: 4px;
      cursor: pointer;
      font-size: 1rem;
    }

    .contact-form button:hover {
      background-color: #555;
    }
    
    @media (min-width: 601px) {
  .menu-toggle {
    display: none;
  }
}