/* About Section Styles */
.about {
  display: flex;
  align-items: flex-start; /* Align items to the top */
  justify-content: space-between; /* Add space between text and images */
  padding: 0 20px; /* Add padding to the left and right */
}

.container {
  width: 100%; /* Full width */
  max-width: calc(100% - 40px); /* Adjust for 20px padding on each side */
  margin: 0 auto; /* Center the container */
  overflow: hidden;
}

.about-box {
  background: #f8f9fa;
  color: #333;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  margin: 10px;
  position: relative;
  max-width: 100%;
  display: flex;
  justify-content: space-between; /* Space between text and images */
  align-items: flex-start; /* Align items to the top */
  flex-wrap: wrap;
}

.about-text {
  flex: 1;
  font-size: 1.2em; /* Increase text size */
}

.about-text h2 {
  font-size: 2em; /* Increase header text size */
  margin-left: 90px;
}

.about-text ul {
  list-style-type: none; /* Remove default bullet points */
  margin: 40px 0;
  padding-left: 150px;
}

.about-text li {
  margin-bottom: 30px; /* Reduce margin between list items */
  line-height: 1.6;
  display: flex;
  align-items: center; /* Align icons with text */
}

.icon {
  width: 50px; /* Adjust size as needed */
  height: 50px; /* Adjust size as needed */
  margin-right: 10px; /* Space between icon and text */
}

.about-image {
  position: relative;
  width: 700px; /* Adjusted fixed width */
  height: 500px; /* Adjusted fixed height */
}

.image-title {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%); /* Center the text */
  font-size: 24px; /* Adjust as needed */
  color: #555555;
  font-weight: bold; /* Make the text bold */
  z-index: 3;
  padding: 10px; /* Add padding to the text */
  border: 2px solid rgba(0, 0, 0, 0.5); /* Add a semi-transparent border */
  border-radius: 5px; /* Add rounded corners */
  background: rgba(255, 255, 255, 0.7); /* Optional: add a semi-transparent background */
}

.clipped-image {
  position: absolute;
  width: 100%; /* Full width */
  height: 100%; /* Full height */
  border-radius: 8px; /* Match the border-radius of the about-box */
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); /* Match the box-shadow of the about-box */
}

.top-image {
  z-index: 2;
  clip-path: polygon(0 0, 100% 0, 0 100%);
}

.bottom-image {
  z-index: 1;
  clip-path: polygon(100% 0, 100% 100%, 0 100%);
}

/* Responsive styles */
@media (max-width: 768px) {
  .about-box {
    flex-direction: column;
    align-items: center;
  }

  .about-text {
    margin-bottom: 20px;
  }

  .about-image {
    width: 100%;
    height: auto;
  }

  .clipped-image {
    position: relative;
  }
}

@media (max-width: 576px) {
  .icon {
    width: 40px;
    height: 40px;
  }

  .about-text ul {
    padding-left: 20px;
    margin: 20px 0;
  }

  .about-text h2 {
    margin-left: 0;
    text-align: center;
  }

  .about-image {
    width: 100%;
  }

  .image-title {
    font-size: 20px;
  }
}
