:root{
  --card-radius: 16px;
  --header-bg: #0C1C2A;
  --header-fg: #ffffff;
  --row-divider: #e9edf2;
  --cell-px: 24px;
  --cell-py: 16px;
  --shadow: 0 8px 24px rgba(2, 12, 27, 0.12);
  --text: #0f172a;
  --muted: #334155;
  --bg: #ffffff;
}

:where(table) {
  background: var(--bg);
}

:where(h2, h3, h4, small, p) {
  max-inline-size: unset;
  text-wrap: revert;
}

.section-title::after {
  content: "";
  display: block;
  width: 60px;
  height: 4px;
  background-color: #F3CA47;
  margin: 8px auto 0;
  border-radius: 2px;
}

.table-card {
  background: var(--bg);
  border-radius: var(--card-radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  max-width: 900px;
  margin: 24px 20px;
  overflow-x: auto;
}

.prize-table{
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  color: var(--text);
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Inter, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.4;
}

.prize-table thead th{
  background: var(--header-bg);
  color: var(--header-fg);
  text-align: left;
  font-weight: 600;
  padding: 14px var(--cell-px);
  white-space: nowrap;
}

.prize-table th[scope="row"],
.prize-table td{
  padding: var(--cell-py) var(--cell-px);
  background: #fff;
}

.prize-table tbody tr + tr th[scope="row"],
.prize-table tbody tr + tr td{
  border-top: 1px solid var(--row-divider);
}

.prize-table th[scope="row"]{
  font-weight: 600;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 10px;
}

.prize-table .icon{
  font-size: 20px;
  line-height: 1;
  display: inline-flex;
}

.prize-table thead th:first-child{ border-top-left-radius: var(--card-radius); }
.prize-table thead th:last-child{  border-top-right-radius: var(--card-radius); }
.prize-table tbody tr:last-child th[scope="row"]{ border-bottom-left-radius: var(--card-radius); }
.prize-table tbody tr:last-child td:last-child{   border-bottom-right-radius: var(--card-radius); }

.visually-hidden{
  position: absolute!important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

@media (max-width: 640px){
  :root{
    --cell-px: 14px;
    --cell-py: 10px;
  }
  .prize-table{
    font-size: 15px;
  }
}

@media (max-width: 375px){
  :root{
    --cell-px: 8px;
    --cell-py: 6px;
  }
  .prize-table{
    font-size: 15px;
  }
}

.parent {
  display: grid;
  grid-template-columns: 1fr min(120ch, calc(100% - 16px)) 1fr;
  grid-column-gap: 8px;
  place-items: center;
  scroll-behavior: smooth;
}

.parent > * {
  grid-column: 2;
}

.full-width {
  grid-column: 1 / -1;
  width: 100%;
  justify-self: stretch;
}

header {
  display: flex;
  justify-content: space-around;
  align-items: center;
  flex-wrap: wrap;
  height: auto;
  min-height: 80px;
  padding: 12px;
  background-color: white;
  gap: 12px;
  > div {
    display: flex;
    align-items: center;
    gap: 12px;
    h5 {
      font-size: 20px;
      font-weight: 700;
      color: #111827;
    }
  }
  > nav {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    column-gap: 20px;
    > a {
      color: #4B5563;
      font-size: 16px;
    }
  }
  > a {
    > button {
      background-color: #F3CA47;
      color: black;
      padding: 8px 24px;
      border-radius: 8px;
    }
  }
}

#hero {
  background: linear-gradient(45deg, #011222 50%, #0055A6 120.71%);
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  padding: 20px;
  flex-direction: column;
  > h4 {
    text-align: center;
    color: white;
  }
  > div {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 20px;
    row-gap: 30px;
    > div {
      max-width: 500px;
      display: flex;
      flex-direction: column;
      justify-content: center;
      align-items: center;
      gap: 30px;
      text-align: center;
      > * {
        max-inline-size: unset;
        text-wrap: revert;
      }
      > h2 {
        font-weight: 400;
        color: white;
      }
      > h5 {
        font-weight: 400;
        color: white;
      }
      div {
        display: flex;
        gap: 16px;
        a {
          button {
            background-color: #F3CA47;
            color: black;
            padding: 8px 24px;
            border-radius: 8px;
          }
        }
        :nth-of-type(2) > button {
          background-color: transparent;
          color: white;
          border: 1px solid white;
        }
      }
    }
  }
}

#about {
  background-color: #FFFFFF;
  padding-block: 80px;
  display: flex;
  flex-direction: column;
  row-gap: 60px;
  > h3 {
    text-align: center;
    color: #111827;
  }
  > .content {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    row-gap: 30px;
    > div {
      display: flex;
      flex-direction: column;
      padding-inline: 20px;
      row-gap: 26px;
      color: #000000; 
      max-inline-size: 584px;
      > h4 {
        color: #374151;
      }
      > ul {
        list-style: none;
        padding: 0;
        margin: 0;
        > li {
          display: flex;
          align-items: center;
          gap: 8px;
          margin-top: 8px;
        }
        > li::before {
          content: "";
          background: url(/assets/science/checkbox.svg);
          background-size: 16px;
          width: 16px;
          height: 16px;
          flex-shirnk: 0;
        }
      }
    }
    > img {
      border-radius: 12px;
      box-shadow: 0px 4px 6px 0px #0000001A;
    }
  }
}

#eligibility {
  background-color: #F3F4F6;
  padding-block: 80px;
  > h3 {
    text-align: center;
    color: #111827;
  }
  > p {
    color: black;
    padding: 20px;
    text-align: center;
  }
  > .groups {
    color: black;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 32px;
    padding-inline: 20px;
    margin-top: 20px;
    > .group-card {
      width: 100%;
      max-width: 325px;
      height: 238px;
      border-radius: 16px;
      background-color: white;
      display: flex;
      flex-direction: column;
      justify-content: center;
      align-items: center;
      gap: 12px;
      padding: 12px;
      text-align: center;
    }
  }
}

#judging {
  background-color: #FFFFFF;
  padding-block: 80px;
  > h3 {
    text-align: center;
    color: #111827;
  }
  > .judging-criteria {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    column-gap: 30px;
    row-gap: 24px;
    margin-top: 64px;
    > .criteria {
      display: flex;
      flex-direction: column;
      justify-content: center;
      align-items: center;
      width: 175px;
      > p {
        color: #111827;
      }
      > small {
        color: #4B5563;
      }
    }
  }
}

#prizes {
  background-color: #F3F4F6;
  padding-block: 80px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  > h3 {
    text-align: center;
    color: #111827;
  }
  p {
    color: #374151;
    text-align: center;
    font-weight: 700;
    padding-inline: 20px;
  }
}

#register {
  background-color: #FFFFFF;
  padding-block: 80px;
  padding-inline: 20px;
  text-align: center;
  > h3 {
    text-align: center;
    color: #111827;
  }
  > p {
    margin-top: 12px;
    color: black;
  }
  > a {
    > button {
      background-color: #F3CA47;
      color: black;
      padding: 8px 24px;
      border-radius: 8px;
      margin-top: 20px;
    }
  }
}

#encouragment {
  background: linear-gradient(90deg, #011222 0%, #0055A6 100%);
  padding-block: 80px;
  padding-inline: 20px;
  text-align: center;
  color: white;
  > p {
    margin-top: 12px;
  }
  > div {
    display: flex;
    justify-content: center;
    gap: 32px;
    margin-top: 32px;
    flex-wrap: wrap;
    > div {
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      > p {
        margin-top: 4px;
      }
    }
  }
}

#supported {
  padding-block: 80px;
  background-color: #FFFFFF;
  > h2 {
    color: #111827;
    text-align: center;
  }
  > #supportedby {
    margin-top: 64px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 24px;
    > .card {
      color: #111827; 
      box-shadow: 0px 4px 6px 0px #0000001A;
      display: flex;
      flex-direction: column;
      align-items: center;
      text-align: center;
      height: 340px;
      border-radius: 12px;
      > div {
        overflow: hidden;
        width: 253px;
        height: 253px;
        padding: 16px;
        > img {
          width: 100%;
          height: 100%;
          object-fit: cover;
          display: block;
          border-radius: 14px;
        }
      }
      > p {
        width: 255px;
        font-size: 14px;
        font-weight: 600;
      }
      > small {
        width: 255px;
      }
      &:target {
        background-color: #F3CA47;
      }
    }
  }
}

#organizors {
  background-color: #F3F4F6;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 80px;
  > h2 {
    color: #111827;
    text-align: center;
  }
  > .organizors-cards {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    column-gap: 38px;
    row-gap: 24px;
    margin-top: 64px;
    > .organizors-card {
      width: 285px;
      height: 320px;
      display: flex;
      flex-direction: column;
      justify-content: center;
      align-items: center;
      box-shadow: 0px 4px 6px 0px #0000001A;
      border-radius: 12px;
      > img {
        background-color: #aabbcc;
        width: 253px;
        height: 230px;
        border-radius: 14px;
      }
      > h4 {
        font-size: 18px;
        color: #111827;
        margin-top: 20px;
      }
      > p {
        font-size: 14px;
        color: #4B5563;
      }
    }
  }
}

#contact {
  padding-block: 80px;
  background-color: white;
  text-align: center;
  > h2 {
    color: #111827;
  }
  > .contacts {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    justify-content: center;
    margin-top: 64px;
    > .contact-card {
      background-color: #F3F4F6;
      border-radius: 12px;
      display: flex;
      flex-direction: column;
      justify-content: center;
      align-items: center;
      padding: 24px;
      width: 277px;
      height: 188px;
      > h5 {
        color: #111827;
        font-size: 18px;
        margin-top: 18px;
      }
      > p {
        margin-top: 8px;
      }
    }
  }
  > p {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin-top: 70px;
    padding-inline: 20px;
  }
}
