.home-container {
  text-align: center;
  /* Max width ensures the full-width image doesn't get too stretched on huge monitors */
  max-width: 1222px; 
  margin: 0 auto;
  padding: 0 15px;
}

.home-container h2 {
  font-size: 42px;
  font-weight: 700;
  line-height: 36px;
  color: #0f395c;
  margin: 3rem 0 3rem;
}

.home-container p {
  font-size: 26px;
  font-weight: 700;
  line-height: 30px;
  color: #067577;
  margin-bottom: 5rem;
}

.home-container span {
  font-size: 20px;
  font-weight: 700;
  color: #0f395c;
}

.submit {
  padding: 10px 20px;
  margin: 0 auto;
  margin-top: 4rem;
  margin-bottom: 5rem;
  border: none;
  border-radius: 8px;
  font-weight: 700;
  font-size: 26px;
  cursor: pointer;
  color: #fff;
  background-image: linear-gradient(#1d9097, #092f31cc);
  transition: background 0.3s ease;
}

.submit:hover {
  background-image: linear-gradient(#092f31cc, #1d9097);
}

/* --- Container Styles --- */

.image-table-container h3 {
  font-size: 32px; /* Slightly reduced to fit grid better */
  font-weight: 700;
  color: #067577;
  margin: 2rem 0 1rem;
}

/* CRITICAL: Images must be responsive to fit in grid columns */
.image-table-container img {
  margin: 10px 0 20px;
  width: 100%;       /* Fills the container (grid cell or full width) */
  height: auto;      /* Maintains aspect ratio */
  display: block;
}

/* --- The Grid Layout (For First 4 Images) --- */
.grid-images-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr; /* Two equal columns */
  gap: 3rem 2rem; /* Spacing: Row-Gap Col-Gap */
  margin-top: 4rem;
}

/* --- Specifics for the Last (Full Width) Image --- */
.image-table-container.full-width-sample h3 {
  font-size: 38px; /* Larger title for the big image */
  margin-top: 5rem; /* More spacing before the final section */
}

/* --- Responsive Mobile View --- */
/* On screens smaller than 768px, stack everything in 1 column */
@media (max-width: 768px) {
  .grid-images-wrapper {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .home-container h2 { font-size: 32px; }
  .home-container p { font-size: 20px; }
}