.dialog-type1 {
  position: absolute;
  left:652px;
  top: 32px;
  height:639px;
  width: 559px;
  padding-top: 14px;
  padding-left: 31px;
  margin-right: 10rem;
  background: rgba(255, 255, 255, .5); /* Gradient background */
  border-radius: 10px;
  box-shadow: 0px 0px 17px rgba(82, 79, 159, 0.1);
  z-index: 1000;
  pointer-events: auto;
  border: 2px solid rgb(255, 255, 255);
  backdrop-filter: blur(10px);
  
}

.dialog-type1 h2, .tall-video .text-content h2  {

  font-size: 1.5em;
  font-weight: bold;
  color: #625de4;
  margin-bottom:24px; 
  border-bottom: 1px #dddddd solid;
    width: 94%;
    padding-bottom: 21px;
}



.dialog-type1 h4, .tall-video .text-content h4   {
  font-size: 0.9em;
    font-weight: normal;
    color: #333333;
  }


.dialog-type1 .content {

  width:450px;
  flex-direction: row;
  font-size: 16px;
  color: #666; /* Gray color */
  
}

.text-content{
  width: 300px;
}

.tall-video .text-content{
  width: 480px;
}

.dialog-type1 .content-item {
 width:555px;
  margin-bottom: 10px;
  align-items: center;
  position: relative;
  gap: 20px;
  display: flex;
}

.dialog-type1 .content-item img {
  width: 200px;
  height: auto;
  border-radius: 5px;
  float: right;
}

.dialog-type1 .text-content h3 {
  font-size: 1.2em;
  font-weight: 500;
  color: #454545;
  margin: 0;
  display: inline;
}

.dialog-type1 .text-content p {
  width:300px;
  font-size: 16px;
  color: #454545; /* Gray color */
  margin: 5px 0 0;
  white-space: pre-line; /* Preserve newlines in descriptions */
}

.dialog-type1 .info-button {
  width: 17px;
  height: 17px;
  border: 2px solid #625de4;
  border-radius: 50%;
  background: transparent;
  color: #625de4;
  font-size: 14px;
  font-weight: bold;
  text-align: center;
  line-height: 20px; /* Center the "i" vertically */
  cursor: pointer;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.info-button:hover {
  border-color: #0056b3;
  color: #0056b3;
}

.info-dialog {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: white;
  padding: 20px;
  width: 100%;
  max-width: 600px;
  height: 65%;
  display: none;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  border-radius: 25px;
  opacity: 0;
  transition: opacity 0.5s ease;
  z-index: 1100;
}

.info-dialog.active {
  opacity: 1;
}

.info-dialog img {
  max-width: 500px;
  height: 370px;
  margin: 25px 30px;
  border-radius: 6px;
}

.info-dialog h3 {
  color: #1e1bef;
  font-size: 22px;
  text-transform: capitalize;
}

.info-dialog .content {
  display: flex;
  flex-direction: row;
  gap: 15px;
}

.info-dialog .text-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  margin-top: 4rem;
}

.info-dialog .text-content h3 {
  color: #1e1bef;
  font-size: 22px;
  text-transform: capitalize;
  margin: 0;
  line-height: 1.5;
}

.info-dialog .text-content p {
  margin-top: 10px; /* Gap between subheading and paragraph */
  font-size: 14px;
}

.info-dialog .close {
  position: absolute;
  top: 10px;
  right: 10px;
  cursor: pointer;
  margin-right: 10px;
  font-size: 3rem;
  font-weight: 500;
  color: #6b7280;
  transition: color 0.3s;
}

/* Responsive adjustments for laptop 
@media (min-width: 1366px) {
  .dialog-type1 {
    max-width: 510px;
    min-height: 550px;
    max-height: 600px;
    margin-right: 8rem;
  } 
  .dialog-type1 h2 {
    font-size: 1.6em;
    padding: 8px 40px;
  }
  .dialog-type1 .content-item img {
    width: 180px;
  }
  .info-dialog {
    max-width: 550px;
    height: 60%;
  }
  .info-dialog img {
    max-width: 450px;
    height: 340px;
    margin: 20px 25px;
  }
}
*/

/* Responsive adjustments for desktop 
@media (min-width: 1920px) {
  .dialog-type1 {
    width: 500px;
  height: 647px;
  }
  .dialog-type1 h2 {
    font-size: 2em;
    padding: 12px 60px;
  }
  .dialog-type1 .content-item img {
    width: 220px;
  }
  .info-dialog {
    width: 500px;
  height: 640px;
  }
  .info-dialog img {
    width: 500px;
  height: 640px;
    margin: 30px 35px;
  }
}
