@import "../style.css";
@import "../index.css";

h1 {
  color: rgb(13, 38, 72);
}
/* hero */
.program-icon {
  width: fit-content;
  box-shadow: rgb(0 0 0 / 11%) 0px 0px 25px;
  width: 55px;
  height: 55px;
  border-radius: 25%;
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
}

.program-icon > svg {
  width: 30px;
  height: 30px;
}

.program-details {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  margin-bottom: 22px;
}

.program-name {
  flex: 1 1 0%;
  margin-left: 22px;
}

.program-name > h4 {
  font-weight: 700;
}

/* browse program */
.browse {
  background-color: rgb(19, 57, 108);
}

.browse h5 {
  font-weight: 700;
  text-transform: uppercase;
  color: rgb(194, 234, 254);
  text-align: center;
}

.browse-detail {
  display: flex;
  flex-direction: column;
  -webkit-box-pack: center;
  justify-content: center;
  justify-self: center;
  text-align: center;
  overflow: scroll;
  scroll-snap-type: x mandatory;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.browse-detail::-webkit-scrollbar {
  display: none;
}

.browse-icon {
  margin: 0 auto 13px;
  transition-property: background-color, color;
  transition-duration: 250ms;
  transition-timing-function: cubic-bezier(0.2, 0.8, 0.4, 1);
  position: relative;
  width: 80px;
  height: 80px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 25%;
  box-shadow: rgb(0 0 0 / 11%) 0px 0px 25px;
  background-color: rgb(255, 255, 255);
}

.browse a {
  width: 112px;
}

.pink-svg:hover .browse-icon {
  background-color: rgb(211, 23, 130);
}

.blue-svg:hover .browse-icon {
  background-color: rgb(32, 95, 179);
}

.browse a:hover svg {
  color: #fff;
}

.browse svg {
  width: 40px;
  height: 40px;
}

.pink-svg svg {
  color: rgb(211, 23, 130);
}

.blue-svg svg {
  color: rgb(32, 95, 179);
}

.browse p {
  color: #fff;
  line-height: 1.2rem;
}

.browse-grid {
  display: inline-grid;
  gap: 27px;
  grid-auto-flow: column;
  grid-auto-columns: auto;
  padding: 25px 15px 25px;
  margin: 0 auto;
}

/* intro */
.intro-wrapper {
  margin: 0;
  max-width: 770px;
}

.intro h3 {
  text-align: left;
  font-weight: bold;
  color: rgb(31, 38, 45);
  margin: 0 auto 40px;
}

.intro li {
  display: flex;
  flex-direction: row;
  break-inside: avoid;
}

.intro li:not(:last-child) {
  margin-bottom: 31px;
}

.intro li svg {
  fill: #ec3c3c;
}

.intro li span:nth-child(1) {
  width: 24px;
  height: 24px;
  margin-right: 15px;
}

.intro li span:nth-child(2) {
  font-size: 1rem;
  color: #3e3e3e;
}

/* timeline section */
.timeline {
  background-color: rgb(241, 242, 245);
}

.timeline-heading {
  margin-left: auto;
  margin-right: auto;
  max-width: 848px;
  text-align: center;
  margin-bottom: 72px;
}

.timeline-heading-img {
  max-width: 125px;
  margin: 0px auto 33px;
}

.timeline-heading-img > img {
  object-fit: cover;
  width: 100%;
  height: 100%;
  border-radius: 50%;
}

.timeline-heading h4 {
  text-transform: uppercase;
  font-weight: 700;
  color: #ec3c3c;
  margin-bottom: 12px;
}

.timeline-heading h2 {
  color: rgb(31, 38, 45);
  font-size: 28px;
}

.timeline-no {
  box-sizing: border-box;
  padding-left: 0px;
  padding-right: 0px;
  color: rgb(255, 255, 255);
  background-color: #ec3c3c;
  border-radius: 100%;
  width: 50px;
  height: 50px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin: 24px auto;
}

.timeline-step > h2 {
  max-width: 460px;
  margin: 0px auto;
  text-align: center;
  color: #ec3c3c;
  font-weight: 700;
  margin-bottom: 24px;
}

.timeline-wrapper {
  margin-left: auto;
  margin-right: auto;
  max-width: 920px;
}

.timeline-grid {
  grid-template-columns: 1fr;
  gap: 24px;
  display: grid;
}

.detail-card {
  display: flex;
  flex-direction: column;
  width: 100%;
  box-shadow: rgb(0 0 0 / 7%) 0px 0px 12px;
  overflow: hidden;
  border-top: 4px solid #ec3c3c;
  background-color: rgb(255, 255, 255);
  border-radius: 16px;
}

.timeline-img > img {
  object-fit: cover;
  width: 100%;
  height: 100%;
}

.timeline-content {
  height: 100%;
  flex: 1 1 0%;
  padding: 24px;
}

.timeline-content > h3 {
  margin-bottom: 13px;
  color: #ec3c3c;
  font-weight: 700;
}

.timeline-content ul {
  list-style-position: outside;
  padding-inline-start: 20px;
  list-style: disc;
}

.timeline-content li {
  margin-bottom: 13px;
  font-size: 1rem;
  color: #3e3e3e;
}

.timeline-node {
  display: none;
}

/* quote */
.quote {
  background: rgb(224, 244, 254);
}

.quote svg {
  fill: rgb(13, 38, 72);
}

/* cta */
.program-container {
  padding: 0;
}

@media (min-width: 1024px) {
  .timeline-grid {
    gap: 32px;
  }

  .timeline-content {
    padding: 32px;
  }
}

@media (min-width: 1216px) {
  .timeline-grid {
    gap: 48px;
  }

  .timeline-content {
    padding: 48px;
  }
}

@media (min-width: 768px) {
  .hero-grid {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }

  .timeline-grid {
    grid-template-columns: 1fr 1fr;
    gap: 0px;
  }

  .timeline-column-1 {
    border-right: 2px solid #ec3c3c;
    display: flex;
  }

  .intro {
    background-color: rgb(234, 243, 255);
  }

  .intro-wrapper {
    margin-left: auto;
    margin-right: auto;
  }

  .intro h3 {
    max-width: 528px;
    text-align: center;
  }

  .intro ul {
    columns: auto 2;
    column-gap: 130px;
  }

  .timeline-node-1 {
    display: block;
    border-top: 2px solid #ec3c3c;
    position: relative;
    width: 62px;
    margin-left: 32px;
    margin-top: 122px;
  }

  .timeline-node-2 {
    display: block;
    border-top: 2px solid #ec3c3c;
    position: relative;
    width: 62px;
    margin-right: 32px;
    margin-top: 122px;
  }

  .timeline-node-1:after {
    content: "";
    width: 13px;
    height: 13px;
    border-radius: 100%;
    background-color: #ec3c3c;
    position: absolute;
    top: 0px;
    left: 0px;
    transform: translate(-50%, -50%);
  }

  .timeline-node-2:after {
    content: "";
    width: 13px;
    height: 13px;
    border-radius: 100%;
    background-color: #ec3c3c;
    position: absolute;
    top: 0px;
    right: 0px;
    transform: translate(50%, -50%);
  }

  .timeline-card-wrapper-2 {
    display: flex;
    margin-top: 200px;
    -webkit-box-pack: start;
    justify-content: flex-start;
  }

  .timeline-card-wrapper-1 {
    margin: 100px 0px;
    display: flex;
    -webkit-box-pack: end;
    justify-content: flex-end;
  }
}
