/*
primary #17469e  
secondary #fddc06
*/

#ipo-header {
  width: 100%;
  height: calc(100vh - 10rem);
  background-color: blanchedalmond;
  background-image: url("/header.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;

  color: white;
  flex-direction: column;
  gap: 1rem;

  & #ipo-header h1 {
    color: white;
  }

  & #ipo-header-buttons-container {
    display: flex;
    gap: 1rem;
  }

  & .ipo-header-button {
    text-decoration: none;
    color: white;
    padding: 8px;
    border-radius: 1rem;
    padding-right: 16px;
    padding-left: 16px;

    border-color: white;
    border-width: 2px;
    border-style: solid;
    transition: all 0.2s ease;
  }

  & .ipo-header-button:hover {
    background-color: #17469e;
  }
}

#ipo-glance-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  background: #123123;
  padding-top: 4rem;
  padding-bottom: 4rem;

  & p:first-child {
    font-size: x-small;
  }

  & p:nth-child(2) {
    font-size: x-large;
  }

  & #ipo-glance-container {
    margin-top: 2rem;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: auto;
  }

  & .glance-box {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem;
  }

  & .glance-box:nth-child(1) {
    border-right: solid 1px white;
    border-bottom: solid 1px white;
  }

  & .glance-box:nth-child(2) {
    border-right: solid 1px white;
    border-bottom: solid 1px white;
  }

  & .glance-box:nth-child(3) {
    border-bottom: solid 1px white;
  }

  & .glance-box:nth-child(4) {
    border-right: solid 1px white;
  }

  & .glance-box:nth-child(5) {
    border-right: solid 1px white;
  }
}

#ipo-timeline-section {
  padding: 5%;
  color: black;
  display: flex;
  flex-direction: column;
  justify-content: start;
  align-items: center;

  & h2 {
    color: black;
    text-align: center;
  }

  & p {
    width: 60%;
    text-align: center;
    margin-top: 1rem;
  }

  & img {
    width: 100%;
    margin-top: 2rem;
  }
}

#ipo-video-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: start;
  color: black;
  gap: 1rem;
  padding-top: 4rem;
  padding-bottom: 4rem;

  & p {
    text-align: center;
  }

  & iframe {
    text-align: center;
    width: 800px;
    height: 400px;
    border-radius: 1rem;
  }
}

#ipo-steps-section {
  background-color: #1a1a3e;
  padding: 4rem 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: white;

  & .steps-tabs {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
    background-color: #863dda;
    padding: 0.5rem;
    border-radius: 2rem;
  }

  & .step-tab {
    padding: 0.75rem 2rem;
    border-radius: 2.5rem;
    border: none;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
  }

  & .step-tab.active {
    background-color: #3963e2;
    color: white;
  }

  & .step-tab:not(.active) {
    background-color: rgba(255, 255, 255, 0.263);
    color: rgba(255, 255, 255, 0.374);
  }

  & .step-tab:hover {
    opacity: 0.9;
    transform: scale(1.01);
    color: white;
  }

  & .steps-content {
    display: none;
    width: 100%;
    max-width: 1200px;
  }

  & .steps-content.active {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }

  & .step-box {
    background-color: transparent;
    border: 2px solid #4a9eff;
    border-radius: 1rem;
    padding: 2rem;
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
  }

  & .step-number {
    font-size: 3rem;
    font-weight: bold;
    color: #4a9eff;
    min-width: 60px;
    line-height: 1;
  }

  & .step-content {
    flex: 1;
  }

  & .step-title {
    font-size: 1.25rem;
    font-weight: bold;
    margin-bottom: 0.75rem;
    color: white;
  }

  & .step-description {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
  }

  & h2 {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 2rem;
  }
}

#ipo-news-articles-section {
  display: flex;
  flex-direction: column;
  justify-content: start;
  align-items: center;
  padding-top: 5%;
  padding-bottom: 5%;

  & h2 {
    color: black;
  }
}
