.biodata {
  margin: 30px 0;
}

.image-section {
  height: fit-content;
  padding: 10px;
  text-align: center;
  border: 2px solid #ccc;
  margin: 10px;
}

.image-section img {
  width: 100%;
  height: auto;
  border-radius: 10px;
}

.form-section {
  background-color: #fff;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  border: 2px solid #ccc;
  margin: 10px;
}

form {
  display: flex;
  flex-direction: column;
}

.data-heading {
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 20px;
  color: #ee2e2e;
  margin-top: 10px;
}

label {
  font-weight: bold;
  margin-right: 10px;
  width: 45%;
}

span:not(.dropdown-menu span) {
  /*width: 45%;*/
  margin-bottom: 0;
}

.data-button {
  background-color: #f14c36;
  color: white;
  border: none;
 padding-block: 3px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 16px;
 
}

.edit-button {
  background-color: #f0605b;
  color: white;
  border: none;
  margin-bottom: 10px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 16px;
  width: 100%;
  height: 35px;
}

.data-button i {
  padding: 0 7px;
}

.edit-button i {
  padding: 0 7px;
}



.edit-button:hover {
  background-color: #FFFF13;
  color: #f14c36;
}

/* Responsive Styles */
@media screen and (max-width: 768px) {

  /* Make the image section and form section fit in the container */
  .image-section,
  .form-section {
    max-width: 100%;
    flex: none;
    margin: 10px 0;
  }

  /* Adjust label and span to take full width on smaller screens */
  label,
  span {
    width: 100%;
    margin-bottom: 0;
  }

  form {
    display: flex;
    flex-direction: column;
  }

  .form-section div {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
  }


  /* Optional: Adjust label to align to the left and span to align to the right */
  label {
    text-align: left;
  }

  /*span {*/
  /*  text-align: right;*/
  /*}*/



  /* Adjust button layout for smaller screens */
  .data-button,
  .edit-button {
    font-size: 14px;
    /* Slightly smaller text for better readability */
    height: 40px;
    /* Consistent button height */
    padding: 0 10px;
  }

  .data-heading {
    font-size: 18px;
    /* Slightly reduced heading size */
  }

  /* Adjust the form section padding for smaller screens */
  .form-section {
    padding: 15px;
  }

  /* Ensure the image is responsive */
  .image-section img {
    max-width: 100%;
    /* Ensure image fits the container */
    padding: 5%;
    /* Adjust padding for small screens */
  }
}

@media screen and (max-width: 480px) {

  /* Make the heading smaller on very small screens */
  .data-heading {
    font-size: 16px;
  }

  /* Further reduce font size for labels, span, and buttons on smaller screens */
  label,
  span {
    font-size: 14px;
  }

  .data-button,
  .edit-button {
    font-size: 14px;
    /* Ensures readability on small devices */
    height: 40px;
  }

  /* Adjust padding for small screens */
  .image-section,
  .form-section {
    padding: 10px;
    /* Reduce padding for smaller devices */
  }

  /* Buttons are full width on small devices */
  .data-button,
  .edit-button {
    width: 100%;
  }

  /* Adjust image padding and size for mobile devices */
  .image-section img {
    max-width: 100%;
    padding: 4%;
    /* Reduce padding even more for small screens */
  }
}