/* === Base Reset === */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 1rem;
  text-align: left;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 13px;
  color: #11335c;
  background: #000000 repeat-x;
}

/* === Layout === */
#container {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  height: auto;
  display: block;
  background-color: white;
}

.video-wrapper {
  margin: 10px auto;
  max-width: 700px;
  text-align: center;
}

.responsive-video {
  width: 100%;
  height: auto;
  display: block;
}


/* === Header/Banner === */
#mainpic {
  background-image: url(images/bannerimagecad2.png);
  background-repeat: no-repeat;
  background-size: cover;
  width: 100%;
  height: 150px;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
}

#mainpic h1,
#mainpic h2 {
  position: absolute;
  right: 20px;
  margin: 0;
  text-align: right;
}

#mainpic h1 {
  top: 40px;
  font-size: 24px;
  color: #FFF;
}

#mainpic h2 {
  top: 80px;
  color: #181052;
}

/* === Navigation === */
#menu {
  background: url(images/menu.png) no-repeat center;
  background-size: cover;
  height: 50px;
  display: flex;
  justify-content: center;
  align-items: center;
  position: fixed;
  top: 150px;
  left: 0;
  width: 100%;
  z-index: 999;
}

#menu ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

#menu li {
  margin: 0 10px;
}

#menu a {
  display: block;
  padding: 10px 15px;
  text-align: center;
  text-decoration: none;
  color: #ffffff;
  font-weight: bold;
  font-size: 16px;
}

#menu a:hover {
  color: #BAD1F3;
  background: url(images/menuhov.jpg) no-repeat;
  background-size: contain;
}

/* === Main content === */
#content {
  padding: 10px;
  margin-top: 200px; /* 150px (header) + 50px (menu) */
  overflow-x: auto;
}

/* === Typography === */
a {
  color: blue;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

p {
  text-align: left;
}

.lightblue {
  color: #B1C6FC;
}

.greytext {
  color: #8E8E8F;
}

/* === Button === */
.button-link {
  display: inline-block;
  padding: 10px 20px;
  background-color: #02145c;
  color: white;
  text-decoration: none;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 14px;
}

.button-link:hover {
  background-color: #0433a4;
}

.four-button-table {
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  border-collapse: collapse;
}

.four-button-table td {
  width: 25%;
  padding: 10px;
}

.button-heading {
  font-size: 20px;
  padding: 15px;
  text-align: center !important;
  background-color: #FFFFFF;
  color: #02145c;
}

/* Button styles */
.button-link {
  display: inline-block;
  width: 80%;
  max-width: 120px;
  text-align: center;
  padding: 8px 12px;
  background-color: #02145c;
  color: white;
  text-decoration: none;
  border-radius: 5px;
  font-size: 14px;
}

.button-link:hover {
  background-color: #0433a4;
}

/* === Footer === */
#footer {
  text-align: center;
  margin: 2rem auto 0 auto;
}

#footer h3 a,
#footer h3 a:visited {
  font-size: 12px;
  text-decoration: none;
  color: #0D1E68;
}

/* === Desktop Table Styling === */
table.responsive-table {
  width: 800px;       /* fixed width on desktop */
  max-width: 90%;     /* allow some flexibility */
  margin: 0 auto;     /* center horizontally */
  border-collapse: collapse;
  font-family: 'Roboto Slab', serif;
  font-size: 18px;
}

table th {
  font-size: 18px;
  font-weight: bold;
  text-align: left;
}

table td,
table th {
  padding: 8px;
  border: 0px solid black;
}

/* === Table Wrapper === */
.table-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  
  max-width: 800px;   /* match table width */
  margin: 0 auto;     /* center wrapper */
}

/* === Responsive Tweaks === */
@media (max-width: 768px) {
  table.responsive-table {
    width: 100%;      /* full width on mobile */
    margin: 0;
  }
  .table-wrapper {
    max-width: 100%;  /* full width wrapper */
  }

  .four-button-table td {
    display: block;
    width: 100%;
  }

  /* === Responsive Image === */
img.responsive-img {
  max-width: 100%;
  height: auto;
  display: block;
}

  td img {
  max-width: 100%;
  height: auto;
  display: block;
}

  #mainpic h1 {
    font-size: 18px;
    top: 20px;
  }

  #mainpic h2 {
    font-size: 14px;
  }

  #menu {
    flex-wrap: wrap;
    height: auto !important;
    padding: 10px 0;
    overflow: visible;
  }

  #menu a {
  font-size: 14px;  /* smaller text */
  padding: 6px 10px; /* less padding */
  white-space: nowrap; /* keep each menu label on one line */
 }
  
  #menu ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center; /* Optional: center items on mobile */
    padding: 0;
    margin: 0;
  }

  #menu li {
    margin: 5px;
  }
}

   


