:root {
  --main-color: #57896d;
  --nav-active-color: color-mix(in srgb, var(--main-color) 20%, #fff);
  --background-bottom-color: rgba(230, 247, 237, 1);

  --swiper-theme-color: var(--main-color);
  --swiper-navigation-size: 30px;
}

/* Basic Reset */
body,
h1,
h2,
nav ul,
nav li,
nav a {
  margin: 0;
  padding: 0;
  list-style: none;
  text-decoration: none;
  color: inherit;
}


.root {
  max-width: 800px;
  margin: 0 auto;
}

.col {
  display: flex;
  flex-direction: column;
}

body {
  --header-vertical-margin: 10px;
  --header-height: 30px;
  --header-total-height: calc(var(--header-vertical-margin) * 2 + var(--header-height) + 1rem);
  scroll-behavior: smooth;
  font-family: system-ui, sans-serif;
}

p {
  text-align: justify;
}

body::before {
  content: '';
  background-image: url('../img/background.jpg');
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  position: fixed;
  z-index: -1;
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
  filter: blur(2px) opacity(75%);
}

/* Header Styling */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--header-vertical-margin) 20px;
  background-color: #f5f5f5;
  position: sticky;
  top: 0;
  z-index: 1000;
}


.header-title {
  display: flex;
  gap: 1rem;
  justify-content: center;
  align-items: center;
}

.header-title img {
  width: 33px;
}

.header-title h1 {
  font-size: 1.5rem;
}

/* Navigation */
nav {
  position: relative;
  background-color: #fff;
  border-radius: .5rem;
  box-shadow: 0px 0px 2px #ccc;
}

#burger-menu {
  font-size: 1.5rem;
  background: none;
  border: none;
  cursor: pointer;
}

#nav-items {
  display: flex;
  flex-direction: column;
  background-color: #fff;
  position: absolute;
  top: 105%;
  right: 0;
  width: 200px;
  border-radius: .5rem;
  overflow: hidden;
  border: 1px solid #eee;
}

#nav-items.hidden {
  display: none;
}

#nav-items li {
  text-align: center;
}

#nav-items a {
  display: block;
  padding: 10px;
}

#nav-items a:hover {
  background-color: #ddd;
}

#nav-items a.active {
  background: var(--nav-active-color);
}

a.register-btn {
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  background: var(--main-color);
  color: #fff;
  text-decoration: none;
  font-weight: bold;
  letter-spacing: .1rem;
}

a.register-btn img {
  width: 25px;
}

main {
  display: flex;
  flex-direction: column;
  row-gap: 1rem;
}

.main-header h2 {
  font-size: 1.2rem;
}

section {
  background: white;
  overflow: hidden;
}

section > .content {
  padding: 1.5rem;
}

details {
  border-bottom: 1px solid #ccc;
}

details > *:last-child {
  margin-block-end: 0;
}

summary {
  display: flex;
  justify-content: space-between;
  font-weight: bold;
  cursor: pointer;
  align-items: center;
  gap: 1rem;
}

summary::-webkit-details-marker {
  display: none;
}

summary,
section#start,
h3 {
  scroll-margin-top: var(--header-total-height);
}

summary::after {
  content: url('../img/caret.svg');
  transition: 0.4s;
  transform: rotate(-180deg);
}

details[open] > summary::after {
  transform: rotate(0deg);
}

.summary-points {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  row-gap: 1.5rem;
  margin: 1rem 0;
}

.summary-point {
  display: grid;
  grid-row-gap: .2rem;
  grid-column-gap: .5rem;
  flex-basis: 150px;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto 1fr;
}

.summary-point img {
  width: 25px;
  height: 25px;
  max-width: unset;
}

.summary-point-title {
  grid-column: 2;
  text-transform: uppercase;
  font-size: 0.8rem;
  color: #777;
  align-self: center;
}

.summary-point-content {
  grid-column: 2;
  display: flex;
  flex-direction: column;
}

footer {
  min-height: 100px;
  justify-content: center;
  align-items: center;
  display: flex;
  font-size: 0.8rem;
  color: #BDBDBD;
  gap: 1rem;
  text-decoration: underline;
}

.swiper-button-prev,
.swiper-button-next {
  display: none;
}

.swiper-slide > img {
  object-fit: cover;
  object-position: 10% 60%;
  width: 100%;
}

.swiper-slide > img,
.swiper {
  height: 200px;
}

.swiper-slide.with-logo::after {
  content: '';
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  width: 130px;
  height: 75px;
  background: url('../img/logo_transparent.png') no-repeat;
  background-size: contain;
}


.slide-logo {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  width: 100px;
}

.slide-logo > img {
  width: 100%;
}

.contact-logo {
  flex: auto;
  text-align: center;
  margin: 2rem 0;
}

.contact-logo > img {
  width: 100%;
  max-width: 200px;
}

.no-justify {
  text-align: unset;
}

ul.logo-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 1.5rem;
  justify-content: space-around;
  align-items: center;
  flex-wrap: wrap;
}

ul.logo-list > li {
  margin: 0;
  padding: 0;
  flex-basis: 200px;
  flex-shrink: 0;
}

ul.logo-list img {
  max-width: 100%;
}

@media (min-width: 800px) {
  .summary-points {
    justify-content: space-between;
  }
  .summary-point {
    flex-basis: 175px;
  }
  .swiper-button-prev,
  .swiper-button-next {
    display: unset;
  }
  .swiper-slide > img,
  .swiper {
    height: 300px;
  }
  .swiper-slide > img {
    object-position: 10% 70%;
  }
  .swiper-slide.slide-img-top > img {
    object-position: 10% 18%;
  }
  .swiper-slide.with-logo::after {
    right: 2rem;
    width: 200px;
    height: 110px;
  }
  .col {
    flex-direction: row;
  }
  .col-reverse {
    flex-direction: row-reverse;
    justify-content: flex-end;
  }

  a.register-btn {
    border-radius: .5rem;
  }
  section {
    border: 1px solid #eeeeee;
    border-radius: .5rem;
    box-shadow: 0px 0px 2px #ccc;
  }
  .main-header {
    display: flex;
    gap: 1rem;
  }
}

/* Desktop View */
@media (min-width: 1200px) {
  header {
    background: none;
    margin: 0;
    padding: 0;
  }
  .header-title {
    display: none;
  }
  nav {
    --nav-width: 150px;
    position: absolute;
    width: var(--nav-width);
    left: calc(-1 * var(--nav-width) - 1rem);
    top: 1rem;
  }
  #burger-menu {
    display: none;
  }

  #nav-items {
    display: flex;
    width: auto;
    position: relative;
  }

  #nav-items.hidden {
    display: flex;
  }
  main {
    margin-top: 1rem;
  }
}
