body, h1, h2, p, ul, li, input, textarea, button {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
}

body {
    background-color: #f4f4f4;
    color: #333;
    line-height: 1.6;
}

header {
    background: #222;
    color: white;
    padding: 20px 0;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 10;
}

.container {
    width: 90%;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    height: 100px; /* Adjust as needed */
    vertical-align: middle;
    margin-right: 15px;
}

h1 {
    font-size: 24px;
}

/* Base navigation layout (for desktop and general use) */
nav {
  width: 100%;
  display: flex;
  justify-content: flex-end; /* right align on desktop */
  padding: 0 20px;
}

nav ul {
  display: flex;
  list-style: none;
  padding: 0;
  margin: 0;
  gap: 20px; /* gives space between menu items */
  justify-content: flex-end; /* aligns menu to the right */
}

nav ul li a {
  color: white;
  text-decoration: none;
}

/* Mobile-friendly navigation */

@media screen and (max-width: 600px) {
  nav ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 5px; /* controls vertical spacing between items */
  }

  nav ul li {
    margin-bottom: 0; /* rely on gap instead */
  }

  nav ul li a {
    display: block;
    width: 100%;
    padding: 0px 0; /* tightens vertical space inside links */
  }
}

/* Desktop styles (wide screens) */
@media screen and (min-width: 601px) {
  nav ul {
    flex-direction: row;
    justify-content: flex-end;
    gap: 20px; /* ← spacing restored */
  }
}

.background {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    height: 100vh;
    color: white;
    position: relative;
    padding: 20px;
}

@media screen and (max-width: 600px) {
  .background {
    padding-top: 120px; /* adjust value to clear the fixed header */
  }
}

.about-section {
    background-image: url('about-bg3.jpg');
    background-size: cover;
    background-position: center;
}

.services-section {
    background-image: url('services-bg3.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 50px 20px;
}

.contact-section {
    background-image: url('contact-bg3.jpg');
    background-size: cover;
    background-position: center;
}

.background::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
}

.training-section {
    /* background-color: #2c2c2c; */    
    background-image: url('training-bg.jpg'); /* Replace with your chosen image or use a solid color */
    background-size: cover;
    background-position: center;
}

.training-section form {
  max-width: 800px;
  margin: 0 auto;
}

.content {
    position: relative;
    z-index: 1;
    max-width: 1100px; /* adjusted the value of the width start 800 px */
    padding: 20px;
}

h2 {
    font-size: 32px;
    margin-bottom: 20px;
}

p {
    font-size: 22px;
    margin-bottom: 20px;
}

ul {
    list-style: none;
}

ul li {
    font-size: 18px;
    margin-bottom: 10px;
}

@media screen and (max-width: 600px) {
  h2 {
    font-size: 20px;
  }

  p, ul li {
    font-size: 14px;
  }

  .service-box {
    font-size: 14px;
  }
}


form input, form textarea, form button {
    width: 100%;
    padding: 10px;
    margin: 10px 0;
    border: none;
    border-radius: 5px;
}

form input, 
form textarea,
form select, 
form button {
    width: 100%; /* Ensures all elements take full width */
    padding: 10px;
    margin: 10px 0;
    border: none;
    border-radius: 5px;
    display: block; /* Ensures full-width behavior */
    box-sizing: border-box; /* Prevents extra padding from affecting width */
}

form button {
    background: #333;
    color: white;
    cursor: pointer;
    text-align: center; /* Ensures text is centered */
}

form button:hover {
    background: #555;
}

form select {
    font-size: 14px; /* or any size you prefer */
    padding: 10px;
    border-radius: 5px;
    width: 100%;
    margin: 10px 0;
    box-sizing: border-box;
}

.services-container {
    display: flex;
    justify-content: center;
    gap: 15px; /* Slightly smaller gap to save space */
    flex-wrap: nowrap; /* Prevents wrapping to the next row */
    max-width: 1000px; /* Ensures enough width for three boxes */
    margin: 0 auto; /* Centers the container */
}

.service-box {
    background: white;
    color: black;
    padding: 15px; /* Reduced padding */
    border: 2px solid #ccc;
    border-radius: 10px;
    text-align: center;
    width: 30%; /* Makes them fit in one row */
    min-width: 280px; /* Ensures they don't shrink too much */
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.1);
    font-size: 16px; /* Slightly smaller font */
}

@media screen and (max-width: 600px) {
  .services-container {
    flex-direction: column;
    align-items: center;
    gap: 10px; /* Reduce vertical spacing between boxes */
  }

  .service-box {
    width: 90%;           /* Use most of the screen width */
    min-width: auto;      /* Remove fixed minimum */
    padding: 0px;        /* Tighter spacing inside */
    font-size: 14px;      /* Optional: slightly smaller text */
  }

  .service-box h3 {
    font-size: 16px;      /* Optional: smaller heading for mobile */
    margin-bottom: 10px;
  }

  .service-box ul li {
    font-size: 14px;      /* Align with body text size */
    margin-bottom: 6px;
  }
}

/* Ensure it stacks properly on smaller screens */
@media (max-width: 900px) {
    .services-container {
        flex-wrap: wrap; /* Allows stacking when screen is too small */
    }
}

.site-footer {
    background-color: #222;
    color: white;
    padding: 40px 20px;
    font-size: 16px;
    position: relative;
    z-index: 10;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px; /* keep aligned with site container */
    margin: 0 auto;
}

.web-design a {
    color: white;
    text-decoration: none;
}

.web-design a:hover {
    text-decoration: underline;
}

@media screen and (max-width: 850px) {
  .footer-content {
    flex-direction: column;
    align-items: flex-start; /* or center if you prefer */
    gap: 10px;
  }

  .site-footer {
    font-size: 14px;
  }
}


