/* ---------------------- */
/* MOBILE FIRST (default) */
/* ---------------------- */

/*This prevents padding from increasing element width beyond 100%.*/

* {
  box-sizing: border-box;
}


body {
  margin: 0;
  padding: 0;
  background-color: #f0f0f0;
  font-family: Arial, sans-serif;
  display: flex;
  justify-content: center;
}

.container {
  width: 97.5%;
  margin-top: 15px;
  text-align: center;
}

.banner {
  width: 100%;
  height: auto;
  border-radius: 8px;
}

.header-box {
  background-color: white;
  padding: 20px;
  margin-top: 20px;
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  align-items: center;
}

.header-row {
  width: 100%;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  text-align: left;
  gap: 15px;
}

.header-row img {
  height: 60px;
}

.header-row h1 {
  margin: 0;
  text-emphasis: none;
}

.text-box {
  background-color: white;
  padding: 2px;
  padding-bottom: 50px;
  margin-top: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.footer-text-box {
  background-color: lightslategray;
  padding: 20px;
  margin-top: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.navbar {
  width: 100%;
  background-color: #3b59bc;
  display: flex;

  flex-direction: column;   /* mobile stacks */
  gap: 10px;
  align-items: flex-start;

  border-top-left-radius: 0;
  border-top-right-radius: 0;
  border-bottom-left-radius: 8px;
  border-bottom-right-radius: 8px;
}

.nav-item {
  color: rgb(255, 255, 255);
  text-decoration: none;
  font-weight: bold;
  padding: 8px 16px;
  transition: background-color 0.3s;
}

.nav-item:hover {
  color: #b5b5b5;
  background-color: #213269;
  border-radius: 4px;
}

.two-column {
  display: flex;
  flex-direction: column;   /* mobile stacks */
  gap: 40px;
  align-items: flex-start;
  width: 95%;
  margin: auto auto;
}

.left-side {
  flex: 1;
  max-width: 100%;
}

.intro-text {
  font-size: 18px;
  margin-bottom: 20px;
}

.left-grid {
  display: grid;
  grid-template-columns: 1fr;   /* mobile = 1 column */
  gap: 20px;
  flex-direction: column;
  justify-content: flex-end;   /* pushes content to the bottom */

}

.grid-2x3 {
  display: grid;
  grid-template-columns: 1fr;   /* mobile = 1 column */
  gap: 20px;
  width: 100%;
  margin: 40px 0 0 0;

}

.card {
  background: white;
  width: 100%;
  max-width: 100%;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  text-align: center;
  font-size: 18px;
  align-content: center;
}

.card img {

  width: 100%;
  max-width: 100%;      /* prevent overflow */

}

.image-box {
  width: 100%;
  max-width: 100%;      /* prevent overflow */

  height: auto;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  flex-shrink: 0;
}

.image-box img {
  width: 100%;
  max-width: 100%;      /* prevent overflow */

  height: 100%;
  object-fit: cover;
}

.image-right {
  width: 100%;
  max-width: 100%;      /* prevent overflow */

  border-radius: 12px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.image-right img {
  width: 100%;
  max-width: 100%;      /* prevent overflow */
  object-fit:scale-down;
}

.full-width-box,
.full-width-box2 {
  width: 95%;
  margin: 30px auto 0 auto;
  background: white;
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.15);
  font-size: 18px;
  text-align: left;
}

full-width-box-fb {
  width: 95%;
  margin: 30px auto 0 auto;
  background: white;
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.15);
  font-size: 18px;
  text-align: left;
  min-height: 300px;

}

.h2_left {
  text-align: left;
  padding-left: 5%;
}

.image-text {
  display: flex;
  align-items: center;
  gap: 15px;
}

.image-text img {
  width: 150px;
  height: auto;
}

/* ---------------------- */
/* DESKTOP ≥ 768px        */
/* ---------------------- */

@media (min-width: 768px) {

  body {
    justify-content: center;
  }

  .container {
    width: 80%;
  margin-top: 40px;
  }

  .header-row img {
    height: 60px;
  }

  .navbar {

    flex-direction: row;   /* mobile stacks */
    gap: 40px;
    align-items: flex-start;
  }

.text-box {

  padding: 20px;

}

  .two-column {
    flex-direction: row;   /* desktop = side by side */
  }

  .left-side {
    max-width: 66%;
  }

  .left-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .grid-2x3 {
    grid-template-columns: repeat(2, 1fr);
    margin: 0 auto;
  }

  .image-box {
    width: 420px;
    height: 320px;
  }

  .image-right {
    width: 420px;
  }
}