.applications {
  margin-top: 80px;
  width: 100%;
  height: 600px;
  color: #fff;
  background: url("../images/applications.png") center/cover no-repeat;

  /* Layout alignment */
  display: flex;
  align-items: center; /* Vertically centers the box */
  justify-content: flex-start; /* Keeps it on the left */
}

.applications-content {
  position: relative;
  z-index: 2;
  width: 50%; /* Sets the box to exactly half the screen width */
  height: 100%; /* Makes the blur go from top to bottom */

  /* Creating the blurred sidebar effect */
  background: rgba(0, 103, 159, 0.7); /* Darker tint for better text contrast */
  backdrop-filter: blur(20px);

  /* Internal spacing */
  display: flex;
  flex-direction: column;
  justify-content: center; /* Centers text vertically within the 50% zone */
  padding: 0 5%; /* Gives the text some breathing room from the edges */
  box-sizing: border-box;
}

.applications-content img {
  margin-left: auto;
  height: 50%;
  width: fit-content;
}

.main-wrapper {
  display: flex;
  flex-direction: column;
}

.info-block {
  display: flex;
  min-height: 400px; /* Adjust based on your preference */
  width: 100%;
}

/* Reverse every second section to create the checkerboard */
.info-block:nth-child(even) {
  flex-direction: row-reverse;
  text-align: right;
}

.info-block:nth-child(even) .text-box {
  align-items: flex-end; /* Aligns the heading and number to the right */
  text-align: right; /* Aligns text lines to the right */
}

/* Push the paragraph to the right side of the container */
.info-block:nth-child(even) .text-box p {
  margin-left: auto;
  margin-right: 0;
}

.info-block:nth-child(even) .text-box img {
  margin-left: auto;
  margin-right: 0;
}

.image-box {
  flex: 0 0 50%;
  background-size: cover;
  background-position: center;
  min-height: 300px;
}

.text-box {
  flex: 0 0 50%;
  background-color: #002940; /* Dark Navy Blue */
  padding: 60px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  box-sizing: border-box;
}

/* Section Number Styling */
.number {
  font-size: 14px;
  color: #00a5ff;
  font-weight: 400;
  margin-bottom: 10px;
  letter-spacing: 2px;
}

.text-box img {
  margin-top: 20px;
  max-height: 110px;
  width: 500px;
  max-width: 100%;
  margin-right: auto;
  margin-bottom: 20px;
}

/* Paragraph styling */
.text-box p {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.6;
  color: #fff;
  max-width: 500px;
  margin-top: 10px;
}

/* Responsive for Mobile */
@media (max-width: 768px) {
  .info-block,
  .info-block:nth-child(even) {
    flex-direction: column;
  }
  .text-box {
    padding: 40px 20px;
  }
}

@media (max-width: 768px) {
  .applications {
    justify-content: center; /* Center the content on mobile */
    margin: 0;
  }

  .applications h1 {
    font-size: 1.8rem;
  }

  .applications-content {
    width: 100%; /* Take full width */
    height: 100%; /* Let content dictate height */
    padding: 40px 20px;

    /* Optional: If you want the blur to cover the whole screen on mobile */
    /* height: 100%; */

    /* Optional: Center text on mobile for better balance */
    text-align: center;
    align-items: center;
  }

  .applications-content img {
    max-width: 100%;
  }

  .applications-content p {
    font-size: 1rem;
  }

  .text-box {
    align-items: center;
  }

  .text-box img {
    margin-left: auto;
    margin-right: auto;
  }

  .info-block:nth-child(even) .text-box {
    align-items: center; /* Aligns the heading and number to the right */
    text-align: left; /* Aligns text lines to the right */
  }

  /* Push the paragraph to the right side of the container */
  .info-block:nth-child(even) .text-box p {
    margin-right: auto;
  }

  .info-block:nth-child(even) .text-box img {
    margin-right: auto;
  }
}
