* {
  /* margin: 0;
  padding: 0;
  box-sizing: border-box; */
  font-family: "Open Sans";
}

/* Container for the content */
.contain-text {
  width: 80%;
  margin: 120px auto 0;
  text-align: justify;
}

/* Back Button */
.contain-text #backButton {
  position: fixed;
  /* top: 500px;  */
  left: 20px;
  display: none; /* Hidden by default  */
  z-index: 1000; /* Ensures it stays on top of other content */
  color: #23458E;
}

/* Image styling */
.contain-text .about-text1 .image {
  float: right;
  width: 450px;
  height: 500px;
  margin-right: 11%;
  margin-top: 40px;
}

/* Container for the tables */
.contain-text .about-text1 .table-data {
  display: flex;
  gap: 50px;
}

/* General table styling */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: 18px;
  text-align: left;
}

th,
td {
  border: 1px solid #000000;
  padding: 8px;
}

/* Specific styles for each table */
.table1 table {
  background-color: #fffdfd;
}

.table1 th,
.table1 td {
  text-align: center;
}

.table2 table {
  background-color: rgb(255, 255, 255);
}

.table2 th,
.table2 td {
  text-align: center;
}

.table3 table {
  background-color: #ffffff;
}

.table3 th,
.table3 td {
  text-align: center;
}

/* Additional styling for the third table's header */
.table3 h3 {
  text-align: center;
  margin-top: -11%;
}

/* Small devices (phones) */
@media (max-width: 480px) {
  .contain-text {
    width: 100%;
    margin: 40px auto 0;
    padding: 0 10px;
  }

  /* Back Button */

  .contain-text #backButton {
    position: fixed;
    /* top: 500px;  */
    left: 20px;
    display: none; /* Hidden by default  */
    z-index: 1000; /* Ensures it stays on top of other content */
    color: #23458E;
  }

  table {
    font-size: 14px;
  }

  th,
  td {
    padding: 6px;
  }
}

/* Very small devices (phones with 320px width) */
@media (max-width: 320px) {
  .contain-text {
    margin: 20px auto 0;
    padding: 0 5px;
  }

  table {
    font-size: 12px;
  }

  th,
  td {
    padding: 4px;
  }

  .table3 h3 {
    font-size: 16px;
    margin-top: 0;
  }
}

/* Tablets and smaller desktops (landscape mode) */
@media (max-width: 1024px) {
  .contain-text {
    width: 90%;
    margin: 80px auto 0;
  }

  .contain-text .about-text1 .image {
    width: 350px;
    height: 400px;
    margin-right: 8%;
  }

  .contain-text .about-text1 .table-data {
    gap: 30px;
  }

  table {
    font-size: 16px;
  }
}

/* Tablets (portrait mode) and large phones */
@media (max-width: 768px) {
  .contain-text {
    width: 95%;
    margin: 100px auto 0;
  }

  .contain-text .about-text1 .image {
    float: none;
    width: 100%;
    height: auto;
    margin: 20px 0;
  }

  .contain-text .about-text1 .table-data {
    display: block;
  }

  .table3 h3 {
    margin-top: 0;
  }
}

@media (min-width: 1440px) and (max-width: 1600px) {
  .table3 {
    /* Add margin or padding to align the table within the desired range */
    margin-left: auto;
    margin-right: auto;
    margin-top: -2%;
  }
}
