/* Header styles */

header {
  background-color: var(--fhu-dark-blue);
  justify-content: center;
  display: flex;
  padding: 0 10px;
}

header .header-content {
  display: flex;
  gap: 50px;
  align-items: center;
  margin: 15px 0;
}

header #logo {
  font-weight: bold;
  font-size: 1.5rem;
}

header #logo a {
  display: block;
  position: relative;
  padding: 0.2em 0;
}

header #logo a:hover {
  text-decoration: none;
}

header #logo a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 0.1em;
  background-color: var(--fhu-white);
  opacity: 1;
  transform: scale(0);
  transform-origin: center;
  transition: opacity 300ms, transform 300ms;
}

header #logo a:hover::after,
header #logo a:focus::after {
  transform: scale(1);
}

header a {
  color: var(--fhu-white);
  display: flex;
  align-items: center;
  gap: 5px;
}

header #button-container {
  flex: 1 1 0;
  display: flex;
}

header .material-icons {
  width: 24px;
}

header nav {
  flex: 1 1 0;
}

header nav ul {
  display: flex;
  gap: 10px;
}

header nav a {
  font-weight: bold;
  padding: 10px 20px;
  border-radius: 8px;
  border: 2px solid transparent;
  transition: border-color 0.25s ease;
}

header nav a.active {
  color: var(--fhu-dark-blue);
  background-color: var(--fhu-white);
}

header nav ul a:hover {
  text-decoration: none;
  border: 2px solid var(--fhu-white);
}

header #action-button-container {
  display: flex;
  gap: 15px;
}

header #burger-button {
  display: none;
}

/* Main styles */

main {
  min-height: 500px;
  overflow: hidden;
  position: relative;
  z-index: 80;
  margin: 0 auto;
  padding: 0 10px;
}

main #banner-section {
  overflow: hidden;
  position: relative;
  display: flex;
}

main #banner-container {
  background-color: var(--fhu-white);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 30px;
  margin: 300px 30px 30px;
  padding: 30px;
  border-radius: 20px;
  max-width: 75%;
}

main #banner-image-wrapper {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: -1;
  will-change: transform;
}

main #inner-image {
  position: absolute;
  top: 0px;
  bottom: 0;
  margin: auto;
}

main #banner-text {
  font-size: 1.5rem;
}

main #news-section {
  display: flex;
  gap: 20px;
}

main .card-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 20px;
  align-items: center;
  gap: 20px;
}

main .card-header h2 {
  margin: 0;
  text-align: left;
}

main .card-body {
  display: flex;
  flex: 1 1 0;
  gap: 30px;
}

main #news-latest-description p {
  flex: 1 1 0;
}

main #upcoming-news-container {
  background-color: var(--fhu-white);
  color: var(--fhu-dark-blue);
  padding: 10px;
  border-radius: 20px;
}

main #news-upcoming-container {
  background-color: var(--fhu-dark-blue);
  color: var(--fhu-white);
  padding: 30px;
  flex: 3 1 0;
}

main #upcoming-news-button-container button {
  width: 100%;
}

main #upcoming-news-image-wrapper {
  position: relative;
  overflow: hidden;
  height: 200px;
  border-radius: 10px;
}

main #upcoming-news-date {
  background-color: var(--fhu-white);
  color: var(--fhu-dark-blue);
  z-index: 1;
  position: relative;
  display: inline-block;
  padding: 5px 10px;
  font-size: 1.2rem;
}
main #upcoming-news-image {
  position: absolute;
  margin: auto;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 0;
}

main #upcoming-news-image-title {
  text-align: center;
  font-size: 2rem;
  margin: 20px 0;
  font-weight: bold;
}

main #news-latest-container {
  flex: 4 1 0;
  background-color: var(--fhu-light-blue);
  padding: 30px;
  display: flex;
  flex-direction: column;
}

main #news-latest-card {
  background-color: var(--fhu-white);
  padding: 10px;
  border-radius: 20px;
  display: flex;
  flex-direction: column;
}
main #news-latest-image-wrapper {
  position: relative;
  overflow: hidden;
  height: 200px;
  border-radius: 10px;
}
main #news-latest-image {
  position: absolute;
  margin: auto;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
}
main #news-latest-description {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 30px;
  margin-top: 30px;
  flex: 1 1 0;
}

main #news-latest-container h3 {
  font-weight: bold;
}

main #news-latest-container .card-body {
  height: 10vh;
}

main #news-previous-list-container {
  display: flex;
  flex-direction: column;
  gap: 30px;
  scrollbar-width: thin;
  overflow-y: auto;
}

main .news-previous-item-container {
  background-color: var(--fhu-white);
  display: flex;
  gap: 10px;
  padding: 5px 5px 5px 20px;
  border-radius: 10px;
  justify-content: space-between;
}

main .news-previous-item-content {
  padding: 10px 0;
}

main .news-previous-item-container h4 {
  margin-bottom: 10px;
}

main #info-section h2 {
  text-align: left;
}

main #info-section {
  position: relative;
  padding: 60px 190px;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

main #info-section::before,
main #info-section::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 90px;
  background-size: contain;
  background: url("/public/images/vertical_repeat_preview.webp") repeat-y; /* repeat vertically */
}

main #info-section::before {
  left: 0; /* left border */
}

main #info-section::after {
  right: 0; /* right border */
}

main #recommendation-container {
  flex: 4 1 0;
  background-color: var(--fhu-light-blue);
  padding: 30px;
  display: flex;
  flex-direction: column;
}

main #latest-recommendation-container {
  background-color: var(--fhu-white);
  padding: 10px;
  border-radius: 20px;
  display: flex;
  flex: 1 1 0;
  gap: 20px;
}

main .latest-recommendation-image {
  flex: 2 1 0;
  min-width: 0;
  height: 400px;
  overflow: hidden;
  position: relative;
  border-radius: 10px;
}

main #latest-recommendation-container img {
  position: absolute;
  top: 0;
  bottom: 0;
  margin: auto;
}

main .latest-recommendation-body {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  justify-content: end;
  gap: 20px;
}

main #latest-recommendation-container a .link-button {
  width: 100%;
}

main #latest-recommendation-card {
  flex-direction: column;
}

main .recommendation-list {
  display: flex;
  gap: 20px;
}

main .recommendation-item {
  background-color: var(--fhu-white);
  padding: 10px;
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

main .recommendation-image {
  position: relative;
  height: 200px;
  overflow: hidden;
  border-radius: 10px;
}

main .recommendation-image img {
  position: absolute;
  top: 0;
  bottom: 0;
  margin: auto;
}

main .recommendation-body {
  display: flex;
}

main .recommendation-item-text {
  flex: 1 1 0;
  margin-left: 10px;
}

main .recommendation-body .link-button,
main .news-previous-item-container .link-button {
  padding: 0 10px;
  font-size: 2rem;
  align-self: center;
  min-height: 75px;
  flex-shrink: 0;
}

main .recommendation-body .material-icons,
main .news-previous-item-container .material-icons {
  display: block;
}

/* Footer line */

footer {
  text-align: center;
  margin: 20px 10px;
}

/* Tablet view */
@media (max-width: 1174px) {
  html {
    font-size: 10px;
  }

  header {
    font-size: 1.5rem;
  }

  header #burger-button {
    display: block;
    color: var(--fhu-white);
    padding: 15px;
  }
  header #button-container {
    display: flex;
  }

  header #button-container {
    transition: height 0.25s ease;
    height: 0;
    overflow: hidden;
    position: absolute;
    right: 0;
    flex-direction: column;
    top: 59px;
    background-color: var(--fhu-dark-blue);
    z-index: 81;
  }

  header .header-content {
    position: relative;
    justify-content: space-between;
    margin: 0;
  }

  header nav ul {
    flex-direction: column;
  }

  header #action-button-container {
    order: 0;
    flex-direction: column;
    padding: 10px 10px 0 10px;
  }

  header hr {
    order: 1;
  }

  header nav {
    order: 2;
    padding: 0 10px;
    padding-bottom: 10px;
  }

  header li button {
    width: 100%;
  }

  header li button a {
    border-radius: 0;
    display: flex;
    justify-content: space-between;
  }

  main #inner-image {
    width: 1400px;
    max-width: unset;
    left: 50%;
    transform: translateX(-50%);
  }

  main #news-section {
    flex-direction: column;
  }

  main #news-section {
    gap: 0;
  }

  main #news-latest-container .card-body {
    flex-direction: column;
    height: auto;
  }

  main #info-section {
    padding: 0px 45px;
    gap: 20px;
    margin-top: 40px;
    text-align: justify;
  }

  main #info-section::before,
  main #info-section::after {
    background-size: 30px;
    width: 30px;
  }

  main #info-section a {
    text-align: center;
  }

  main #latest-recommendation-container {
    flex-direction: column;
  }

  main .latest-recommendation-image {
    min-height: 300px;
  }

  main .recommendation-list {
    flex-direction: column;
  }

  main .card-header {
    flex-direction: column;
  }
}

/* Mobile view */
@media (max-width: 900px) {
}
