table {
  border-collapse: collapse;
  width: 100%;
  table-layout: auto;
}

th,
td {
  border: 1px solid #333;
  padding: 8px;
  text-align: left;
}

th {
  background-color: #eee;
  text-align: center;
}

td img {
  display: block;
  margin: 0 auto;
  /* center image */
  max-width: 100%;
  /* fill the cell but not overflow */
  height: auto;
  /* keep aspect ratio */
}

.order-column {
  width: 1%;
  text-align: center;
}


.image-column {
  /* width: auto; */
  width: 60%;
}

.description-column {
  width: 40%;
}

/* Back to Top Button */
#backToTop {
  display: none;
  /* hidden initially */
  position: fixed;
  /* fixed position */
  bottom: 40px;
  right: 40px;
  z-index: 1000;
  width: 50px;
  height: 50px;
  border: none;
  border-radius: 50%;
  /* makes it circular */
  background-color: #333;
  /* dark background */
  color: #fff;
  /* white arrow */
  font-size: 24px;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  /* subtle shadow */
  transition: all 0.3s ease;
  align-items: center;
  justify-content: center;
}

/* Hover effect */
#backToTop:hover {
  background-color: #555;
  /* lighter dark on hover */
  transform: scale(1.1);
  /* slight pop effect */
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
  /* stronger shadow */
}

h3 {
  color: #007BFF;
  font-weight: bold;
  font-size: 16px;
  text-align: center;
  margin-bottom: 0.5rem;
  /* border-left: 4px solid #6d72b7; */
  border-bottom: 2px solid #6d72b7;
  padding-bottom: 0.3rem;
  padding-left: 10px;
}

p {
  font-family: 'Arial', 'Helvetica', sans-serif;
  font-size: 1rem;
  color: #333;
  margin-bottom: 1rem;
  text-justify: inter-word;
  word-wrap: break-word;
}



/* Responsive layout for mobile devices */
@media (max-width: 768px) {

  table,
  thead,
  tbody,
  th,
  td,
  tr {
    display: block;
    width: 100%;
    height: auto;
  }

  .table-header {
    display: none;
  }

  tr {
    margin-bottom: 1.5em;
    border: 1px solid #ccc;
    border-radius: 8px;
    padding: 0;
    margin: 0;
    background-color: #fafafa;
    margin-bottom: 20px;

  }

  td {
    border: none;
    display: block;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 0;
    margin: 0;
  }

  td.image-column {
    width: 100%;
    max-width: 100%;
    padding: 0;
    padding-bottom: 20px;
    padding-left: 20px;
    padding-right: 20px;
    margin: 0;
  }

  td.image-column img {
    width: 100%;
    max-width: none;
    /* allow true full width */
    display: block;
    height: auto;
    margin: 0;
    border-radius: 8px 8px 0 0;
  }

  /* Make description appear below image */
  td.description-column {
    width: 100%;
    max-width: 100%;
    /* fill available space */
    padding: 12px 12px;
    text-align: left;
    white-space: normal;
    /* allow wrapping */
    word-wrap: break-word;
    overflow-wrap: break-word;
    /* handle long words */
    box-sizing: border-box;
  }



  /* Optional: smaller order column styling */
  td.order-column {
    display: flex;
    /* make it flex */
    justify-content: center;
    /* horizontal center */
    align-items: center;
    /* vertical center */
    font-weight: bold;
    font-size: 1.1em;
    /* height: 100%; */
    width: 100%;
    margin-bottom: 18px;
    /* margin-top: -12px;  */
  }
}