/* 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%;
  }
}


















/* body style  */


/* ==== Global Reset ==== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body{
  background-image: url("images/engineers/ChatGPT\ Image\ Feb\ 27\,\ 2026\,\ 05_19_03\ PM.png");
}

/* body {
  font-family: "Poppins", Arial, sans-serif;
  background: linear-gradient(135deg, #1a1a2e, #dddddd);
  color: #fff;
  line-height: 1.6;
  padding: 0px;
} */


/* 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;

} */



/* ==== Main Container ==== */
.main {
  max-width: 1200px;
  margin: auto;
  text-align: center;
}

/* ==== Headings ==== */
h1 {
  font-size: 8vh;
  margin-bottom: 10px;
  color: #380313c2;
  text-shadow: 4px 4px 9px rgba(0,0,0,0.5);
}

p {
  font-size: 1.5rem;
  margin-bottom: 30px;
  color: #db2620;
}

/* ==== Section Layout ==== */
.section1 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
  margin-top: 20px;
}

.training, .game {
  background: #8fa8d1;
  padding: 25px;
  border-radius: 20px;
  box-shadow: 0 8px 18px rgba(0,0,0,0.4);
  transition: transform 0.3s ease, background 0.3s ease;
}

.training:hover, .game:hover {
  transform: translateY(-8px);
  background: #8fa8d1;
}

.training h2 {
  font-size: 1.5rem;
  margin-bottom: 15px;
  color: #e94560;
}

/* ==== Game Image ==== */
.gameImage {
  margin-bottom: 15px;
}

.gameImage a {
  display: inline-block;
  width: 100%;
  max-width: 200px;
  height: 200px;
  background: url("image/chess image.jpg") center/cover no-repeat;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.6);
  transition: transform 0.3s ease;
}

.gameImage a:hover {
  transform: scale(1.05);
}

/* ==== Buttons ==== */
button {
  background: #e94560;
  border: none;
  padding: 12px 25px;
  border-radius: 30px;
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

button:hover {
  background: #f9ca24;
  color: #000;
  transform: scale(1.05);
}

/* ==== Responsive ==== */
@media (max-width: 768px) {
  h1 {
    font-size: 4rem;
  }

  .training h2 {
    font-size: 1.25rem;
  }

  button {
    width: 100%;
  }
}

@media (max-width: 480px) {
  body {
    padding: 10px;
  }

  h1 {
    font-size: 1.8rem;
  }

  p {
    font-size: 0.9rem;
  }
}
























/* FOOTER STYLE : */

/* Make page stretch full height */
html, body {
  height: 100%;
  margin: 0;
  display: flex;
  flex-direction: column;
}

/* Main content grows and pushes footer down */
main {
  flex: 1;
}

/* Footer styles */
footer {
  background-color: #2b2d42;
  color: white;
  padding: 20px 40px;
}

.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;
  }
}



.p1 {
  font-size: 1rem;
  margin-bottom: 30px;
  color: #ffff;
}