.topper-container {
  overflow: hidden;
  background-image: url(../images/topper_banner.png);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.heading-topper {
  width: 100%;
  height: auto;
  color: black;
  margin: 35px 0px 25px;
}

.t-flex {
  display: flex;
  gap: 50px;
}

.box1,
.box2 {
  width: 60%;
  padding: 20px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  margin: 0px 0px 30px;
  border-radius: 10px;
}


.box1 {
  background-color: rgb(235, 77, 77);
  order: -1;
  /* Reorder box1 to appear before box2 in the layout */
}

.box2 {
  background-color: burlywood;
}

.heading-topper h3,
.box1 h3,
.box2 h3 {
  font-size: 38px;
  font-family: Poppins;
  font-weight: 600;
}

.image-container {
  display: flex;
  justify-content: space-around;
  align-items: center;
  margin-top: 10px;
  gap: 1.5rem;
}

.image-container img {
  width: 175px;
  height: 220px;
}

@media (max-width: 768px) {

  .heading-topper {
    font-size: 24px; /* Decreased font size for headings */
    margin: 25px 0; /* Adjusted top and bottom margin */
  }

  .t-flex {
    width: 85%;
    flex-direction: column; /* Stack flex items vertically on smaller screens */
    margin: 0px 30px;
    gap: 0;
  }

  .box1,
  .box2 {
    width: 100%; /* Full width for boxes on smaller screens */
    padding: 10px 5px 15px; /* Reduced padding */
    border-radius: 8px; /* Smaller border radius */
  }

  .box1 {
    order: initial; /* Reset the order for box1 */
  }

  .box1 h3,
  .box2 h3 {
    font-size: 25px;
  }

  .image-container {
    flex-direction: column; /* Stack images vertically on smaller screens */
    align-items: center; /* Center-align images */
    margin-top: 20px; /* Adjusted margin */
    gap: 1rem; /* Reduced gap between images */
  }

  .image-container img {
    width: 170px; /* Decreased image width */
    height: 200px; /* Decreased image height */
  }
}
