body {
  font-family: "Segoe UI", "Open Sans", "Helvetica Neue", sans-serif;
  margin: 0;
  padding: 0;
  text-align: center;
  scroll-behavior: smooth;
}

.top-title {
  font-size: 24px;
  color: #005ba5;
  margin: 20px 0 10px;
}

.tab-menu {
  display: inline-flex;
  background-color: #005ba5;
  border-radius: 10px 10px 0 0;
  overflow: hidden;
  margin-bottom: 0px;
}

.tab-menu a {
  color: white;
  text-decoration: none;
  padding: 12px 20px;
  display: inline-block;
  font-weight: 500;
  font-size: 18px;
  border-right: 1px solid rgba(255, 255, 255, 0.2);
}

.tab-menu a:last-child {
  border-right: none;
}

.tab-menu a:hover {
  background-color: #0073cf;
}

.section-title {
  text-align: left;
  font-size: 40px;
  text-decoration: underline;
  text-decoration-color: red;
  text-underline-offset: 40px;
  margin-bottom: 50px;
}

.image-text-section {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;   /* Top-align image and text columns */
  justify-content: center;
  text-align: left;
  background-color: white;
}

.image-section-content {
  width: 650px;
  margin: 10px;           
  text-align: left;
  font-size: 18px;
}

/* Reverse layout */
.image-text-section.reverse {
  flex-direction: row-reverse;
}

.background-image-text {
  position: relative;
  width: 1280px;
  height: 300px;             /* Adjust height */
  background-size: cover;
  background-position: center; /* Keeps image centered inside container */
  color: white;
  display: flex;
  align-items: center;        /* Vertical centering for text */
  justify-content: flex-start;/* Text on the left side */
  text-align: left;           /* Text lines start left */
  margin: 0 auto;
  padding: 20px; 
  font-size: 18px;
}

.background-image-text::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.4); /* overlay for readability */
}

.background-image-text > * {
  position: relative;
  z-index: 1; /* keep text above overlay */
}

.generic-text {
  position: relative;
  width: 1310px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  text-align: left; 
  margin: 0 auto;
  font-size: 18px;
}

.three-image-text {
  display: flex;
  justify-content: center;   /* center all 3 blocks in the row */
  align-items: flex-start;    /* align tops */
  gap: 10px;                  /* spacing between the 3 blocks */
  margin: 20px auto;          /* center container on page */
}

.image-text-item {
  display: flex;              /* image and text side-by-side */
  flex-direction: row;        /* horizontal layout */
  align-items: center;        /* vertically align image & text */
  text-align: left; 
  gap: 10px;                  /* space between image and text */
  width: 430px;           /* optional: controls block width */
}

.image-text-item2 {
  display: flex;              /* image and text side-by-side */
  flex-direction: column;        /* horizontal layout */
  text-align: left; 
  gap: 10px;                  /* space between image and text */
  width: 430px;           /* optional: controls block width */
}

.image-text-item img {
  display: block;
}

.image-text-item p {
  margin: 0;             
}


/* Main container for the 3 columns */
.three-column-container {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  width: 1320px;       /* Fixed total width */
  margin: 0 auto;      /* Center it on page */
}

/* Each column */
.column {
  flex: 1; 
  padding: 20px;
  display: flex;
  flex-direction: column; /* stack the image+text pairs vertically */
  gap: 15px;              /* space between image+text pairs */
  border-right: 1px solid #ccc;
}

/* Remove the last column's border */
.column:last-child {
  border-right: none;
}

/* Each image+text pair */
.image-text-pair {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
}

/* Image styling */
.image-text-pair img {
  display: block;
}

/* Text styling */
.image-text-pair p {
  margin: 0;
  text-align: left;  
}


/* MEDIA Response */

/* Tablet and below */

@media (max-width: 430px) {

  body,

  .image-text-pair,

  .image-section-text,

  .three-column-container,

  .image-text-item,

  .generic-text,

  .image-text-section,

  .image-section-content,

  .three-image-text,

  .background-image-text {

    max-width: 90%;

    width: auto;

    display: flex;

    flex-direction: column;

    align-items: center;   /* center horizontally */

    text-align: left;

    padding: 0;

    margin: 0 auto;  

  }
 
  /* Image-specific adjustments */

  img {

    max-width: 90%;

    height: auto;

    display: block; /* avoid inline image spacing issues */

    margin: 0 auto;

  }
 
 
  .background-image-text p{

    max-width: 50%;

    width: auto;

    height: auto;

    transform: scale(0.95);

    align-items: center;

    padding: 0px;

    margin: 0 auto;

  }
 
  .column {

    border-right: none;

    width: 100%;

    padding: 10px 0;

    text-align: center;

    align-items: center;

  }
 
  .image-text-item2{

    width: 60%;

    text-align: center;

    align-items: center;

  }
 
  .tab-menu {

    display: block;

    background: transparent;

    border-radius: 0;

    overflow: visible;

  }
 
  .tab-menu a {

    display: block;

    border: 1px solid #ccc;

    border-radius: 8px;

    background-color: #005ba5;

    margin-bottom: 8px;

    font-size: 16px;

    text-align: center;

    border-right: none;

  }
 
} 