/* infobox.css */

/* Container: Arrange boxes side by side on desktop */
.infobox-container {
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    gap: 20px;
    margin: 0 auto;
    max-width: 1200px;
    padding: 20px;
  }
  
  /* Common styles for each box */
  .infobox {
    position: relative; /* new: enable absolute positioning context */
    padding-top: 60px;  /* new: create room for the icon above content */
    flex: 1;
    border: 0px solid; /* Border color will be set by specific classes below */
    border-radius: 10px; /* Use your main.css radius if needed */
    padding: 20px;
    text-align: center;
    background-color: transparent; /* No background fill */
    min-width: 200px;
    margin-top: 50px;

    display: flex;
    flex-direction: column;
  }
  
  /* Specific colored outlines */
  .infobox-blue {
    border-color: #bedbff; /* Blue */
    border-color: white; /* Blue */
    background-color: rgba(190, 219, 255, 0.2); 
  }
  
  .infobox-yellow {
    border-color: #ffe9be; /* Green */
    border-color: white; /* Blue */
    background-color: rgba(255, 233, 190, 0.2);
  }
  
  .infobox-pink {
    border-color: #ffbecc; /* Orange */
    border-color: white; /* Blue */
    background-color: rgba(255, 190, 204, 0.2);
  }

.infobox-blue h2 {
    color: #bedbff; /* Blue */
    /* background: rgba(190, 219, 255, 0.2); */
    padding: 5px 10px; /* Add some padding for the highlight */
    border-radius: 5px; /* Rounded corners for the highlight */
}

.infobox-yellow h2 {
    color: #ffe9be; /* Yellow */
    /* background: rgba(255, 233, 190, 0.2); */
    padding: 5px 10px; /* Add some padding for the highlight */
    border-radius: 5px; /* Rounded corners for the highlight */
}

.infobox-pink h2 {
    color: #ffbecc; /* Pink */
    /* background: rgba(255, 190, 204, 0.2); */
    padding: 5px 10px; /* Add some padding for the highlight */
    border-radius: 5px; /* Rounded corners for the highlight */
}
  /* updated icon style */
  .infobox-icon {
    width: 80px;
    height: auto;
    position: absolute;
    top: 0;
    left: 50%;
    transform: translate(-50%, -50%);
    margin-bottom: 0;
  }
  
  /* Headline styling */
  .infobox h2 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    min-height: 3em; /* new: fixed height to accommodate two lines */
    display: flex;  /* new: enable flex layout */
    align-items: center; /* new: vertically center the text */
    justify-content: center; /* new: horizontally center one-line headlines */
  }
  
  /* Paragraph styling */
  .infobox p {
    font-size: 1.2rem;
    line-height: 1.4;
  }
  
  /* Responsive: Stack boxes on smaller screens */
  @media (max-width: 900px) {
    .infobox-container {
      flex-direction: column;
    }
  }