.x3i1 {
  width: 100%;
  height: 1020px;
  object-fit: cover;
  filter: brightness(30%);
}

.x3p1 {
  font-size: 20px;
  color: var(--color2);
  padding: 10px 0;
  line-height: 30px;
  text-align: justify;
}

.x3i2 {
  width: 25px;
}

#x3d1 {
  position: relative;
}

.x3d2 {
  position: relative;
}

.x3d3 {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);

}

.x3h1 {
  color: #6dd329fb;
  font-family: var(--font1);
  font-size: 50px;
  font-weight: 300;
}

.x3hh1 {
  font-size: 50px;
  color: var(--color2);
  font-weight: 500;
}

.x3d4 {
  text-align: center;
  position: absolute;
  top: 68%;
  left: 50%;
}

.x3d2 {
  /* height: 700px; */
}

.x3d3 {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.hidden-text {
  font-size: 20px;
  color: var(--color2);
  padding: 10px 0;
  line-height: 30px;
  text-align: justify;
  font-family: var(--font2);
}


/* Responsive Styles */
@media (max-width: 768px) {
  #x3 {
    padding: 10px;
  }

  .x3i1 {
    /* height: 300px; */
    height: 100%;
    /* Reduce image height for smaller screens */
  }

  .x3d3 {
    position: relative;
    /* Adjust positioning for better alignment */
    top: auto;
    left: auto;
    transform: none;
    text-align: center;
    /* Center text content */
  }

  .x3d2 {
    height: auto;
  }

  .x3h1 {
    font-size: 30px;
    /* Adjust heading font sizes */
    font-weight: 400;
    text-align: left;
  }

  .x3hh1 {
    font-size: 33px;
    color: var(--color5);
    text-align: left;
  }

  .x3p1 {
    max-height: 150px;
    /* Show half content initially */
    overflow: hidden;
    text-align: justify;
    position: relative;
    color: var(--color5);
  }

  .x3p1 .hidden-text {
    display: none;
    /* Hide the remaining text */
    color: var(--color5);
    font-family: var(--font2);
  }

  .x3p1.expanded {
    max-height: none;
    /* Expand content when toggled */
    overflow: visible;
  }

  .x3p1.expanded .hidden-text {
    display: inline;
  }

  .read-more-btn {
    display: inline-block;
    margin: 10px auto;
    padding: 8px 16px;
    background-color: #6dd329fb;
    color: #fff;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
  }
}

/* General styles for larger screens */
@media (min-width: 769px) {
  .x3d3 {
    text-align: left;
  }

  .x3p1 {
    max-height: none;
    overflow: visible;
  }

  .read-more-btn {
    display: none;
    /* Hide the Read More button on larger screens */
  }
}