@import url("https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap");
@import url("/styles/variables.css");

/* Sidebar*/
h5 {
  padding: 2rem 0;
  justify-self: center;
  font-size: 1.5rem;
  font-weight: 450;
}

/* Main */
.main {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.order {
  font-style: italic;
  font-size: 0.8rem;
  color: var(--mid-red);
}

.next-courses {
  font-style: italic;
  line-height: 1.5rem;
  margin: 2rem 0;
}

.accordion {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.course {
  border: solid 1px var(--light-grey);
  border-radius: 0.5rem;
  box-shadow: 7px 7px 10px var(--shadow);
}

.accordion-btn {
  cursor: pointer;
  padding: 1rem;
  width: 100%;
  border: none;
  border-radius: 0.5rem;
  text-align: left;
  font-size: 1.4rem;
  transition: 0.4s;
  background-color: var(--mid-red);
  color: var(--light-grey);
}

.active {
  border-radius: 0.5rem 0.5rem 0 0;
}

.active,
.accordion-btn:hover {
  background-color: var(--dark-red);
}

.accordion-btn:after {
  content: "\002B";
  font-weight: bold;
  float: right;
}

.active:after {
  content: "\2212";
}

.course-info {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 0 2rem;
  background-color: var(--white);
  max-height: 0px;
  overflow: hidden;
  transition: max-height 0.2s ease-out;
  border-radius: 0.5rem;
  box-shadow: 7px 7px 10px var(--shadow);
}

.status {
  margin-top: 1rem;
  font-style: italic;
}

.course-info > div:last-child {
  margin-bottom: 1rem;
}

.course-description {
  line-height: 1.6rem;
  font-weight: 300;
  text-align: justify;
}

.course-description > p {
  margin-bottom: 0.5rem;
}

.course-description > p:last-child {
  margin-bottom: 0;
}

.links {
  display: flex;
  justify-content: space-evenly;
  color: var(--dark-red);
}

/* tablet */

@media (600px < width < 1000px) {
  h5 {
    padding: 1rem;
  }
  ul {
    display: grid;
    grid-template-columns: 1fr 1fr;
    padding-bottom: 1rem;
    justify-content: center;
    align-items: center;
    list-style-type: none;
  }
  li {
    text-align: center;
  }
  .course-description {
    line-height: 1.4rem;
  }
}

/* mobile */

@media (width <= 600px) {
  h5 {
    padding: 1rem;
  }
  ul {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    list-style-type: none;
    padding: 0 0 1rem 0;
  }
  .course-info {
    padding: 0 1rem;
  }
  .course-description {
    line-height: 1.4rem;
  }
}
