@import url("../../../inati/_palette-ySWM8g-.css");

[data-controller~="inati--coloc-display--main-coloc-display-soon"] {
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow-x: clip;

  background-color: var(--inati-orange-lighter);

  @media (min-width: 500px) {
    background-color: unset;
  }


  .section-title {
    align-self: start;
    padding-left: .5rem;

    @media (min-width: 360px) {
      padding-left: 2rem;
      font-size: 1.2rem;
    }

    @media (min-width: 500px) {
      font-size: 1.5rem;
    }

    h1 {
      margin-bottom: .4rem;
      color: black;
      font-size: 1.5em;
    }
  }

  .highlight {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;

    @media (min-width: 750px) {
      flex-direction: row;
      gap: 2rem;
      margin-bottom: 2rem;
    }

    .image-container {
      display: flex;
      justify-content: center; /* Centers the image horizontally */
      align-items: center;
      margin: 1rem;
      overflow: hidden; /* Ensures the cropped image doesn't overflow the container */
      width: 500px; /* Set the width of the container */
      height: 320px; /* Set the height of the container */
      border-radius: 2rem; /* Rounded corners for the container */
      max-width: 80vw;


      @media (min-width: 750px) {
        max-width: 50vw;
      }

      img {
        width: 520px; /* Make the image fill the width of the container */
        height: 350px; /* Make the image fill the height of the container */
        object-fit: cover; /* Crops the image while maintaining its aspect ratio */
        object-position: center; /* Centers the cropped portion of the image */    }
    }

    .description {
      font-size: 1.2rem;
      position: relative;
      margin: .5rem 0;
      max-width: 95vw;
      padding: 1rem;
      box-sizing: border-box;
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: .5rem;

      @media (min-width: 1150px) {
        font-size: 1.5rem;
      }

      .background-rectangle {
        position: absolute;
        z-index: -1;
        width: 30rem;
        height: 20rem;
        top: 70%;
        left: 50%;
        transform: translate(-50%, -50%);
        border-radius: 5rem;

        display: none;

        @media (min-width: 500px) {
          display: block;
        }

        @media (min-width: 750px) {
          width: 40rem;
          height: 30rem;
          border-radius: 5rem;
        }

        @media (min-width: 1150px) {
          width: 50rem;
          left: 35%;
        }

        &.background-green {
          background-color: var(--inati-green-lightest);
        }

        &.background-orange {
          background-color: var(--inati-orange-lighter);
        }
      }

      .content {
        display: flex;
        justify-content: space-between;
        align-items: start;
        flex-direction: column;
        gap: 1rem;

        div {
          display: flex;
          flex-direction: column;
        }

        h2, h3, p, ul {
          width: 100%;
          margin: 0;
        }

        h2 {
          font-size: 1.1em;
          @media (min-width: 500px) {
            font-size: 1.5em;
          }
        }

        h3 {
          color: rgba(var(--inati-rgb-orange), 70%);
          font-size: 1.2em;
          text-transform: uppercase;
          font-style: italic;
          text-align: center;

          @media (min-width: 500px) {
            font-size: 1.7em;
          }

          @media (min-width: 750px) {
            text-align: unset;
          }
        }

        h4 {
          color: rgba(var(--inati-rgb-orange), 90%);
          font-size: 1em;
          margin: 0;
        }

        p.from {
          font-size: 1em;
        }

        ul {
          margin-left: 1rem;
        }
      }
    }
  }
}
