/* Header Section */
.header {
  width: 100%;
  height: 400px; /* Adjusted height */
  min-height: fit-content;
  display: flex;
  justify-content: center;
  color: var(--black);
  text-align: left; /* Align text to the left */
  background-color: var(--light-grey);
  padding: 2rem;
}

.header-content {
  height: fit-content;
  width: 1200px; /* Take full width of the header */
  max-width: 100%;
  display: flex;
  flex-direction: column; /* Stack children vertically */
  align-items: flex-start; /* Align children to the left */
  gap: 1rem;
}

.header-background {
  align-self: center;
  height: 300px;
  width: 300px;
  min-width: 300px;
  min-height: 300px;
  border: 1px solid var(--black);
  padding: 0.5rem;
  background-color: white;
}

.header-background img {
  height: 100%;
  width: 100%;
  object-fit: cover;
}

.header-content h1 {
  font-size: 2.5rem; /* Adjust font size as needed */
  margin: 0;
  color: var(--black);
}

.header-content p {
  color: var(--dark-grey);
  font-weight: bold;
  word-spacing: 2px;
}

/* Header list styles */
.header-list p {
  display: inline;
}

.header-list a:hover {
  color: var(--yellow);
}

/* EXERCISE PAGE CONTENT */
.exercise-content {
  display: grid;
  grid-template-columns: 0.6fr 0.4fr;
  gap: 1rem;
}

/* STEPS */
.exercise-left,
.exercise-right {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.step {
  padding: 0.5em;
  background-color: var(--light-grey);
  border-radius: 5px;
}

/* RIGHT */
.video-container {
  max-height: 259px;
  object-fit: contain;
  background-color: var(--black);
}

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

.action-button {
  padding: 1rem;
  width: 100%;
  height: 70px;
  background-color: var(--dark-grey);
  border-radius: 5px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
}

.action-button.saved i {
  color: red;
}

@media only screen and (max-width: 1200px) {
  .header {
    flex-direction: column-reverse;
    align-items: center;
    height: auto;
    text-align: center;
    padding: 1.5rem;
  }

  .header-content {
    width: 100%;
    align-items: start;
    text-align: start;
    gap: 10px;
  }

  .header-background {
    width: 200px;
    height: 200px;
    min-width: 200px;
    min-height: 200px;
    margin-top: 1rem;
    margin-bottom: 2rem;
  }

  .header-content h1 {
    font-size: 1.8rem;
  }

  .header-content p {
    font-size: 0.95rem;
  }

  .exercise-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    padding: 1rem;
  }

  .step {
    align-items: center;
  }

  .step img {
    width: 90%;
    height: auto;
    max-width: 300px;
  }

  .step p {
    width: 90%;
    font-size: 1rem;
  }
}
