:root {
  --primary: #3AB1BE;
  --gray: #dadada;
  --gray-light: #f3f3f3;
}
body,
#siteWrapper {
  height: 100dvh;
}
#siteWrapper {
  display: flex;
  flex-direction: column;
}
#siteWrapper > .container {
  flex: 1;
}
/* SPACINGS START */
.mb-2 {
  margin-bottom: 4px;
}
.mb-4 {
  margin-bottom: 8px;
}
.mb-5 {
  margin-bottom: 18px;
}
.mb-6 {
  margin-bottom: 24px;
}
.mb-7 {
  margin-bottom: 32px;
}
.mt-6 {
  margin-top: 24px;
}
.mt-7 {
  margin-top: 32px;
}
.p-0 {
  padding: 0;
}
.p-4 {
  padding: 8px;
}
.p-8 {
  padding: 8px;
}
/* SPACINGS END */
.scroll {
  overflow: scroll;
}
.gap-vertical-24 {
  grid-column-gap: 24px;
}
.gap-horizontal-8 {
  grid-row-gap: 8px;
}
.grid {
  display: grid !important;
}
.columns-auto-one-fraction {
  grid-template-columns: auto 1fr;
}
.columns-150-one-fraction {
  grid-template-columns: 150px 1fr;
}
/* HEADINGS START */

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0;
  font-weight: 600;
  line-height: 1.2;
  position: relative;
  border-bottom: 2px solid var(--gray);
  padding-bottom: 8px;
}

h1 {
  font-size: 28px;
  margin-top: 28px;
  margin-bottom: 18px !important;
}

h2 {
  font-size: 24px;
  margin-top: 26px;
  margin-bottom: 16px !important;
}

h3 {
  font-size: 20px;
  margin-top: 24px;
  margin-bottom: 14px !important;
}

h4 {
  font-size: 18px;
  margin-top: 24px;
  border-bottom: unset;
  margin-bottom: 12px !important;
  padding-bottom: 0px !important;
}

h5 {
  font-size: 12px;
  margin-top: 22px;
  margin-bottom: 10px !important;
  text-transform: uppercase;
}
h6 {
  font-size: 12px;
  margin-top: 18px;
  margin-bottom: 4px !important;
  padding-bottom: 0px !important;
  border-bottom: unset;
  text-transform: uppercase;
}

/* For small screens */
@media (max-width: 991px) {
  h1 {
    font-size: 24px;
    margin-top: 24px;
    margin-bottom: 16px !important;
  }

  h2 {
    font-size: 20px;
    margin-top: 22px;
    margin-bottom: 14px !important;
  }

  h3 {
    font-size: 18px;
    margin-top: 20px;
    margin-bottom: 12px !important;
  }

  h4 {
    font-size: 16px;
    margin-top: 20px;
    margin-bottom: 10px !important;
  }

  h5 {
    font-size: 12px;
    margin-top: 20px;
    margin-bottom: 8px !important;
  }
  h6 {
    font-size: 12px;
    margin-top: 20px;
    margin-bottom: 4px !important;
  }
}

/* HEADINGS END */
.bg-light-gray {
  background-color: var(--gray-light);
}
.text-center {
  text-align: center;
}
th,
td {
  padding: 4px;
}
table {
  overflow: scroll;
}

ol {
    list-style-type: decimal; 
}
ol li ol, ol li ul {
  padding-left: 32px;
}
.grid li:before {
    position: static
}
a h3 {
  transition: color 100ms linear;
}
a:hover h3 {
  color: var(--primary) !important;
}

h3 a {
  color: inherit !important;
  transition: color 100ms linear;
}
h3:hover a {
  color: var(--primary) !important;
}

/* PAGES START */
/* Videos */
.video-previews {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.video-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
/* Background-to-the-CONBAT */
.members {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.member {
  display: flex;
  gap: 8px;
}
/* Related publications */
.publications {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
@media (max-width: 768px) {
  .publications {
    grid-template-columns: 1fr;
  }
}
.publication {
  display: grid;
  grid-template-columns: auto 1fr;
  padding: 8px;
  border: 1px solid var(--gray);
  gap: 8px;
}
.publication img {
  width: 120px;
  height: 110px;
}
/* Didactic Units pages */
.information-grid {
    display: grid;
    grid-template-columns: 170px 1fr;
    grid-row-gap: 6px;
    grid-column-gap: 24px;
}
.worksheet-general-information {
    display: grid;
    grid-template-columns: 170px 1fr;
    grid-row-gap: 6px;
    grid-column-gap: 24px;
}
.worksheet-materials-wrapper {
  display: grid;
  grid-template-columns: 150px 1fr;
  background-color: var(--gray-light);
  padding: 12px;
  grid-row-gap: 8px;
  margin-top: 8px;
}
@media (max-width: 768px) {
  .worksheet-materials-wrapper  {
    grid-template-columns: 1fr;
  }
}
.worksheet-materials {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;

}

.worksheet-materials div {
  text-align: center;
}

/* Fairy tales */
.lagnuages-list {
    display: flex;
    justify-content: space-between;
    max-width: 550px;
}
/* Team */
.team-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-gap: 14px;
}
.team-wrapper .person {
    display: flex;
    flex-direction: column;
}
.team-wrapper .person img {
  object-fit: cover;
  height: 160px;
  width: 240px;
}
/* Team -> Person*/
.person-information-grid {
    display: grid;
    grid-template-columns: 220px 1fr;
    grid-row-gap: 6px;
    grid-column-gap: 24px;
}
@media (max-width: 768px) {
  .person-information-grid  {
    grid-template-columns: 150px 1fr;
    grid-column-gap: 8px;

  }
}
/* PAGES END */

/* TEMPORARY */
.grid li:before , .grid li:after {
    border: none !important
}
ul , ol {
  color: unset !important;
  margin-bottom: 0 !important
}
.grid li {
  float: unset;
  position: static;
  width: unset !important;
  padding: 0;
  opacity: 1;
}
.grid li:hover {
  cursor: unset !important;
  background-color: unset !important;
}

a {
  scroll-margin-top: 250px;
}
@media (max-width: 991px) {
  a {
    scroll-margin-top: unset;
  }
}

@media (min-width: 480px) and (max-width: 991px) {
  /* 
     The float property set to "unset" can cause an issue 
     where the next column overlaps the current one, 
     disrupting the layout flow.
  */
  .col-md-3 {
    float: unset !important;
  }
}

































