.hero-rulespolicies {
  background-image: url("../img/rulespolicies-bg.jpg");
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;

  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  flex-wrap: nowrap;

  position: relative;
  margin-bottom: 0;
  padding: 60px;
  isolation: isolate;
}

.hero-rulespolicies::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: #120b32;
  opacity: 0.5;
}

.hero-rulespolicies > h2 {
  font-family: "RobotoCondensed", Sans-serif;
  font-size: 16px;
  font-weight: 300;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #fff;
}

@keyframes pushUp {
  from {
    transform: translateY(80px);
    /* Initial position pushed down */
  }

  to {
    transform: translateY(0);
    /* Final position at normal height */
  }
}

.hero-rulespolicies > h1 {
  color: #fff;
  font-family: "KorolevBold", Sans-serif;
  font-size: 55px;
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1.3em;
  letter-spacing: 0;
  text-shadow: 0 0 10px rgba(0, 0, 0, 0.76);
  text-align: center;
  animation: pushUp 1.5s ease-out;
}

.rulespolicies-title {
  width: 70%;
  margin-block: 4rem;
}

.rulespolicies-title .text {
  font-family: "RobotoCondensed", Sans-serif;
  text-align: center;
  color: #1b325f;
  font-size: 20px;
}

.rulespolicies-title .text a {
  text-decoration: none;
  color: #b53253;
}

.rulespolicies-title .text a:hover {
  color: #0693e3;
}

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

.card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
  background: rgb(232, 234, 239);
  padding: 2rem;
  width: 90%;
  margin-inline: auto;
}

.description {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
  text-align: left;
  color: #1b325f;
  font-family: "RobotoCondensed", Sans-serif;
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 0px;
}

.description a {
  color: #b53253;
  box-shadow: none;
  text-decoration: none;
}

.description a:hover {
  color: #0693e3;
}

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

.card > h3 {
  color: #1b325f;
  font-family: "KorolevBold", Sans-serif;
  font-size: 32px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  line-height: 1em;
}

.line-container {
  margin-inline: auto;
  padding: 16px;
}

#section-divider {
  margin-inline: auto;
  margin-block: 2rem;
}

.divider {
  display: flex;
  align-items: center;
  position: relative;
}

.line {
  width: 100%;
  position: relative;
  margin-right: 5px;
  border-bottom: 1px #1b325f solid;
}

.star {
  width: 1em;
  height: 1em;
  font-weight: 900;
  font-size: 20px;
  text-align: center;
  line-height: 1;
  color: #1b325f;
}

.rules-flex-col {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: stretch;
  gap: 2rem;
  padding: 1rem;
  margin-bottom: 4rem;
}

.rules-flex {
  display: flex;
  justify-content: flex-start;
  align-items: stretch;
  gap: 2rem;
  padding: 1rem;
  margin-bottom: 4rem;
}

.rules-flex > * {
  flex: 1 1 30%;
  min-width: 30ch;
}

.pro-rules {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.pro-rules h2 {
  color: #120b32;
  font-family: "KorolevBold", Sans-serif;
  font-size: 32px;
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1em;
}

.accordion {
  width: 100%;
}

.accordion-item {
  border: 1px solid #ddd;
  margin-bottom: 8px;
  overflow: hidden;
}

.accordion-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgb(232, 234, 239);
  color: #120b32;
  padding: 10px;
  cursor: pointer;
  border: #120b32 solid 1px;
}

.accordion-header:hover {
  background: #1b325f;
  color: #fff;
}

.accordion-header.active {
  background-color: #7b1222;
  color: #fff;
}

.accordion-header > h3 {
  font-family: "KorolevBold", Sans-serif;
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.accordion-header > i {
  line-height: 1.4em;
  padding-right: 1rem;
}

.accordion-content {
  padding: 10px;
  display: none;
  flex-direction: column;
  gap: 1rem;
}

.accordion-content > p {
  font-family: "RobotoCondensed", Sans-serif;
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 0px;
  color: #1b325f;
}

.accordion-content > ul {
  font-family: "RobotoCondensed", Sans-serif;
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 0px;
  color: #1b325f;
  list-style: disc;
  margin: 0 0 1.5em 3em;
}

.accordion-content a {
  color: #b53253;
  box-shadow: none;
  text-decoration: none;
}

.accordion-content a:hover {
  color: #0693e3;
}

@media (width <=900px) {
  .rules-flex {
    flex-direction: column;
    align-items: center;
  }

  .rules-flex > * {
    width: 90%;
  }

  .card {
    width: 100%;
  }
}

.markdown-content > h1 {
  color: #1b325f;
  font-family: "KorolevBold", Sans-serif;
  font-size: 32px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  line-height: 1em;
  margin-bottom: 1rem;
}

.markdown-content ol {
  margin-left: 20px;
}

.markdown-content p {
  gap: 1rem;
  text-align: left;
  color: #1b325f;
  font-family: "RobotoCondensed", Sans-serif;
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 0px;
  margin-bottom: 0.5rem;
}

.markdown-content li::marker {
  color: #1b325f;
  font-family: "RobotoCondensed", Sans-serif;
  font-size: 16px;
  font-weight: 400;
}

.markdown-content a {
  color: #b53253;
  box-shadow: none;
  text-decoration: none;
}
