/* Base styles same as before */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
}

#nav-bar {
  background-color: #2b2d42;
  color: white;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 30px;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo h3 {
  margin: 0;              /* remove browser default spacing */
  line-height: 1;         /* avoid extra vertical space */
  display: flex;
  align-items: center;    /* vertically center */
  font-size: 20px;        /* optional: adjust text size if needed */
}

.logo img {
  height: 40px;
}

.nav-links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 25px;
}

.nav-links li {
  position: relative;
  display: flex;
  align-items: center;
}

.nav-links a {
  text-decoration: none;
  color: white;
  font-weight: 500;
  padding: 8px 12px;
  transition: background 0.3s ease;
}

.nav-links a:hover {
  background-color: #8d99ae;
  border-radius: 5px;
}

.nav-links a.active {
  background-color: #8d99ae;
  border-radius: 5px;
}

/* Dropdown */
.dropdown {
  display: flex;
  align-items: center;
}

.dropdown-arrow {
  margin-left: 5px;
  cursor: pointer;
  font-size: 14px;
  transition: transform 0.3s ease;
}

.dropdown.open .dropdown-arrow {
  transform: rotate(180deg);
}

/* Dropdown menu */
.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%; /* always under the dropdown row */
  left: 0;
  background-color: #2b2d42;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  border-radius: 5px;
  margin-top: 5px;
  z-index: 10;
  width: max-content; /* adjust width to content */
}

.dropdown.open .dropdown-menu {
  display: block;
}

.dropdown-menu li {
  width: 180px;
}

.dropdown-menu a {
  display: block;
  padding: 10px;
  color: white;
}

.dropdown-menu a:hover {
  background-color: #8d99ae;
  border-radius: 0;
}

/* Mobile */
.menu-toggle {
  display: none;
  font-size: 26px;
  cursor: pointer;
  color: white;
}

@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  .nav-links {
    flex-direction: column;
    position: absolute;
    top: 70px;
    right: 0;
    background-color: #2b2d42;
    width: 100%;
    display: none;
    padding: 15px 0;
  }

  .nav-links.active {
    display: flex;
  }

  .nav-links li {
    width: 100%;
    justify-content: center;
    margin: 5px 0;
  }

  /* Keep Kids Zone + arrow in a fixed row */
  .dropdown {
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 5px;
    position: relative; /* dropdown menu will position absolute relative to this */
  }

  .dropdown-menu {
    position: absolute;
    top: 100%; /* always below the row */
    left: 0;
    width: 100%;
    box-shadow: none;
    border-radius: 0;
    margin-top: 5px;
  }

  .dropdown-menu li {
    width: 100%;
  }
}


















/* Custom styles for the main content */
/* body section */

body {
  font-family: Arial, sans-serif;
  background-color: #575555;
  color: #ffffff;
  line-height: 1.6;
}


/* body {
  font-family: "Poppins", Arial, sans-serif;
  background: linear-gradient(135deg, #41414b, #dddddd) no-repeat center center fixed;
  background-size: cover;
  color: #fff;
  line-height: 1.6;
} */






body {
  background: radial-gradient(
      circle at top left,
      rgba(39, 65, 133, 0.9) 0%,
      rgba(90, 98, 214, 0.2) 40%,
      rgba(39, 65, 133, 0.9) 100% )  no-repeat center center fixed;

      background-size: cover;

}



/* background image  */
body {
  font-family: Arial, sans-serif;
  /* background: url() no-repeat center center fixed; */
  /* background-size: cover;  */
  color: #333;
  line-height: 1.6;
}


.wrapper {
  display: flex;
  flex-direction: column;
  gap: 50px;
  padding: 40px 80px;
  max-width: 1200px;
  margin: auto;
}





/* neotort heading : Neotort A free online tool hub for everyone */
h1 {
      font-size: 8vw;       /* 4% of the viewport width */
      text-align: center;
      margin: 2px;
      color: #333;
    }
    
    /* Medium devices - tablets and up */
    @media (min-width: 600px) {
      h1 {
        font-size: 8vw;
      }
    }
    
    /* Larger devices - desktops */
    @media (min-width: 1024px) {
      h1 {
        font-size: 5vw;
      }
    }



h2 {
      font-size: 5vw;       /* 4% of the viewport width */
      text-align: center;
      margin: 2px;
      color: #333;
    }
    
    /* Medium devices - tablets and up */
    @media (min-width: 600px) {
      h2 {
        font-size: 2.5vw;
      }
    }
    
    /* Larger devices - desktops */
    @media (min-width: 1024px) {
      h2 {
        font-size: 1.8vw;
      }
    }








/* body inner-elements and sections */

    
.useful_div,
.kids,
.chess {
  display: flex;
  align-items: center;
  gap: 40px;
  background-color: rgb(147, 163, 4);
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.useful_img,
.kids_img,
.chess_img {
  flex: 1;
}

.useful_img img,
.kids_img img,
.chess_img img {
  width: 100%;
  max-width: 400px;
  height: auto;
  border-radius: 12px;
}

.useful_paragraph,
.kids_paragraph,
.chess_paragraph {
  flex: 2;
}

h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
}

p {
  font-size: 1rem;
  margin-bottom: 20px;
}

.custom-button button {
  padding: 10px 20px;
  background-color: #2b2d42;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.custom-button button:hover {
  background-color: #8d99ae;
}

/* Responsive Layout */
@media (max-width: 992px) {
  .wrapper {
    padding: 30px 40px;
  }

  .useful_div,
  .kids,
  .chess {
    flex-direction: column;
    text-align: center;
  }

  .useful_img,
  .kids_img,
  .chess_img,
  .useful_paragraph,
  .kids_paragraph,
  .chess_paragraph {
    flex: unset;
    width: 100%;
  }

  h3 {
    font-size: 1.3rem;
  }

  p {
    font-size: 0.95rem;
  }
}

@media (max-width: 576px) {
  .wrapper {
    padding: 20px;
    gap: 30px;
  }

  h3 {
    font-size: 1.1rem;
  }

  p {
    font-size: 0.9rem;
  }

  .custom-button button {
    width: 100%;
    padding: 12px;
  }
}











/* Footer styles */
footer {
  background-color: #2b2d42;
  color: white;
  padding: 20px 40px;
}

/* Make page stretch full height */
html, body {
  height: 100%;
  margin: 0;
  display: flex;
  flex-direction: column;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: auto;
}

.footer-content p {
  margin: 10px 0;
  font-size: 1rem;
}

.footer-content ul {
  list-style: none;
  display: flex;
  gap: 20px;
  margin: 10px 0;
  padding: 0;
}

.footer-content ul li a {
  text-decoration: none;
  color: #ffffffcc;
  transition: color 0.3s ease;
}

.footer-content ul li a:hover {
  color: #ffffff;
}

/* Responsive Styling */
@media (max-width: 768px) {
  .footer-content {
    flex-direction: column;
    text-align: center;
    gap: 10px;
  }

  .footer-content ul {
    justify-content: center;
    flex-wrap: wrap;
  }

  .footer-content ul li {
    margin: 5px 10px;
  }
}
