.sr-tabs__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.1rem;
  justify-content: center;
  border-bottom: 1px solid #e5e7eb;
}

.sr-tab-btn {
  border: 2px solid #e5e7eb;
  background: #f3f4f6;
  color: #005980 !important;
  padding: 0.5rem 0.95rem;
  border-radius: 0.5rem 0.5rem 0 0;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.95rem;
  transition: 0.2s;
  display: inline-block;
  -webkit-appearance: none;
     -moz-appearance: none;
          appearance: none;
  text-decoration: none !important;
  -webkit-user-select: none;
     -moz-user-select: none;
      -ms-user-select: none;
          user-select: none;
}
.sr-tab-btn:link, .sr-tab-btn:visited {
  color: #005980 !important;
  text-decoration: none !important;
}
.sr-tab-btn:hover {
  background: #e5e7eb;
  color: #005980 !important;
  text-decoration: none !important;
}
.sr-tab-btn:focus, .sr-tab-btn:active {
  color: #005980 !important;
  text-decoration: none !important;
  outline: none;
}
.sr-tab-btn.active {
  background: #3da8ff;
  border-color: #0f8ef5;
  color: #fff !important;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.08);
  text-decoration: none !important;
}

.sr-tab-pane {
  -webkit-animation: srFade 0.15s ease-out;
          animation: srFade 0.15s ease-out;
}

@-webkit-keyframes srFade {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes srFade {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.not__participated__competitions__wrapper {
  width: 100%;
  padding: 25px 16px;
  min-height: auto;
  border-radius: 15px;
}
.not__participated__competitions__wrapper span {
  font-size: 1.2em;
  font-weight: 400;
}
.not__participated__competitions__wrapper ul {
  list-style-type: initial;
  margin-left: 2em;
  margin-bottom: 1.2em;
}
.not__participated__competitions__wrapper p, .not__participated__competitions__wrapper li {
  font-size: 16px;
  font-weight: 600;
}

.new_teacher_wrapper {
  display: flex;
  position: absolute;
  margin-left: -300px;
  margin-top: -2px;
  z-index: 9999;
}
@media screen and (max-width: 900px) {
  .new_teacher_wrapper {
    margin-left: -324px;
  }
}
.new_teacher_wrapper input[type=text] {
  min-width: 300px;
  height: 30px;
  padding: 0 5px;
  border: 2px solid #000;
  border-radius: 0;
}
.new_teacher_wrapper input[type=button] {
  height: 30px;
  border: 1px solid #000;
  border-left: none;
  border-radius: 0;
  padding-top: 0;
  padding-bottom: 0;
}

.td {
  text-decoration: none;
}
.td a {
  text-decoration: none;
}

.content {
  min-height: inherit;
}

.rating__banner {
  margin: 0 auto;
  background-image: url(https://brainring.fra1.digitaloceanspaces.com/public/images/banner-blue.svg);
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  width: 489px;
  height: 92px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 36px;
}
.rating__banner span {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: -7px;
}
.rating__banner h2 {
  color: #fff;
  font-family: Pribambas, sans-serif;
  font-size: 37px;
  line-height: 24px;
  text-transform: uppercase;
}
.rating__banner p {
  color: #fff;
  line-height: 15.3px;
  margin-top: 3px;
}

.content__form-school-rating {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  max-width: 640px;
  width: 100%;
  min-height: auto;
  margin: 0 auto 28px;
  padding: 31px 25px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.8);
  box-shadow: rgba(0, 0, 0, 0.05) 0px 1px 2px 0px;
}
.content__form-school-rating label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}
.content__form-school-rating label select {
  font-size: 15px;
  min-width: 430px;
}
.content__form-school-rating span {
  min-width: 82px;
  line-height: 16px;
  margin-right: 15px;
}
.content__form-school-rating input {
  min-width: 250px;
  max-width: 430px;
  height: 35px;
}
.content__form-school-rating input[type=checkbox] {
  min-width: 0;
  height: auto;
}
.content__form-school-rating input[type=radio] {
  min-width: 0;
  height: auto;
}

.rating__filter-search {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.rating__filter-search__add-info {
  margin-right: 25px;
  margin-left: 10px;
}
.rating__filter-search__add-info p:first-child {
  line-height: 22px;
}
.rating__filter-search__add-info p:last-child {
  font-size: 13px !important;
  line-height: 16px;
  margin-top: 10px;
}
.rating__filter-search__add-info p:last-child span {
  color: #008ebb;
}
.rating__filter-search__add-info p:last-child .bolder-p {
  font-weight: 500;
}

.result-decimal {
  font-size: 75%;
  margin-bottom: -3px;
}

.rating__rate-table {
  width: 100%;
  display: grid;
  grid-template-columns: 50px 1fr repeat(3, 60px);
  grid-template-rows: -webkit-max-content repeat(auto-fit, 72px);
  grid-template-rows: max-content repeat(auto-fit, 72px);
  grid-column-gap: 2px;
  grid-row-gap: 2px;
}
.rating__rate-table a {
  bottom: 0;
  right: 0;
  text-decoration: none;
}
.rating__rate-table .th {
  font-size: initial;
  text-align: center;
}
.rating__rate-table .th:nth-child(2) {
  text-align: left;
}
.rating__rate-table .th:nth-child(3), .rating__rate-table .th:nth-child(4), .rating__rate-table .th:nth-child(5) {
  font-size: 15px;
}
.rating__rate-table .td {
  color: #034561;
  display: flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  background-color: #fff;
}
@media screen and (max-width: 900px) {
  .rating__rate-table .td {
    min-height: 48px;
  }
}
.rating__rate-table .td.number {
  color: #fff;
  font-family: Tahoma, Verdana, sans-serif;
  font-size: 1rem;
  font-weight: 500;
  align-items: center;
}
.rating__rate-table .td.number:nth-child(3n+1) {
  background-color: #feaA3AE5;
}
.rating__rate-table .td.number:nth-child(3n+2) {
  background-color: #33c5F3E5;
}
.rating__rate-table .td.number:nth-child(3n+3) {
  background-color: #62a82DE5;
}
.rating__rate-table .td.school {
  background-color: #fff;
  justify-content: left;
  align-items: center;
  position: relative;
  padding: 0 5px;
  text-decoration: none;
}
.rating__rate-table .td.school .school-name {
  width: 100%;
  font-size: 0.9rem;
  line-height: 0.95rem;
  font-weight: 500 !important;
  color: #034561;
  margin: 2px 0;
}
.rating__rate-table .td.school .school-address {
  width: 100%;
  font-size: 0.7rem;
  line-height: 0.85rem;
  margin-bottom: 2px;
  color: #555;
  font-weight: 400;
}
.rating__rate-table .td.school:nth-child(3n+1) {
  border: 1px solid #62a82d;
}
.rating__rate-table .td.school:nth-child(3n+1):hover {
  background: #ccffaf;
}
.rating__rate-table .td.school:nth-child(3n+2) {
  border: 1px solid #feaa3a;
}
.rating__rate-table .td.school:nth-child(3n+2):hover {
  background: #ffdfb4;
}
.rating__rate-table .td.school:nth-child(3n+3) {
  border: 1px solid #33c5f3;
}
.rating__rate-table .td.school:nth-child(3n+3):hover {
  background: #96e6ff;
}
.rating__rate-table .td.school:hover {
  text-decoration: underline;
}
.rating__rate-table .td.school:focus {
  background: #fff;
}
.rating__rate-table .td.school:active {
  background: #fff;
}
.rating__rate-table .td.diploma {
  padding-top: 2px;
  font-size: 1.1rem;
  font-weight: 400;
}
.rating__rate-table .td.diploma:nth-child(3n+1) {
  border: 1px solid #33c5f3;
}
.rating__rate-table .td.diploma:nth-child(3n+2) {
  border: 1px solid #62a82d;
}
.rating__rate-table .td.diploma:nth-child(3n+3) {
  border: 1px solid #feaa3a;
}
.rating__rate-table .td.percentage {
  padding-top: 2px;
  font-size: 1.1rem;
  font-weight: 400;
}
.rating__rate-table .td.percentage:nth-child(3n+1) {
  border: 1px solid #feaa3a;
}
.rating__rate-table .td.percentage:nth-child(3n+2) {
  border: 1px solid #33c5f3;
}
.rating__rate-table .td.percentage:nth-child(3n+3) {
  border: 1px solid #62a82d;
}
.rating__rate-table .td.participants {
  padding-top: 2px;
  font-size: 1.1rem;
  font-weight: 400;
}
.rating__rate-table .td.participants:nth-child(3n+1) {
  border: 1px solid #62a82d;
}
.rating__rate-table .td.participants:nth-child(3n+2) {
  border: 1px solid #feaa3a;
}
.rating__rate-table .td.participants:nth-child(3n+3) {
  border: 1px solid #33c5f3;
}

.rotate {
  transform: rotate(-90deg);
  transform-origin: 50% 50%;
  filter: progid:DXImageTransform.Microsoft.BasicImage(rotation=3);
  white-space: nowrap;
  width: 12px;
  margin: auto;
}

.international__results-table {
  width: 100%;
  display: grid;
  grid-template-columns: 45px 1fr 1fr 35px 70px 40px 40px;
  grid-template-rows: auto repeat(auto-fit, 72px);
  grid-column-gap: 2px;
  grid-row-gap: 2px;
}
.international__results-table .th {
  font-size: initial;
  text-align: center;
}
.international__results-table .th:nth-child(2) {
  text-align: left;
  justify-content: flex-start;
}
.international__results-table .td {
  color: #034561;
  display: flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  background-color: #fff;
}
@media screen and (max-width: 900px) {
  .international__results-table .td {
    min-height: 48px;
  }
}
.international__results-table .td.number {
  color: #fff;
  font-family: Tahoma, Verdana, sans-serif;
  font-size: 1rem;
  font-weight: 500;
  align-items: center;
}
.international__results-table .td.number:nth-child(3n+1) {
  background-color: #feaA3AE5;
}
.international__results-table .td.number:nth-child(3n+2) {
  background-color: #33c5F3E5;
}
.international__results-table .td.number:nth-child(3n+3) {
  background-color: #62a82DE5;
}
.international__results-table .td.school {
  background-color: #fff;
  justify-content: left;
  align-items: center;
  position: relative;
  padding: 0 5px;
  text-decoration: none;
}
.international__results-table .td.school .school-name {
  width: 100%;
  font-size: 0.9rem;
  line-height: 0.95rem;
  font-weight: 500 !important;
  color: #034561;
  margin: 2px 0;
}
.international__results-table .td.school .school-address {
  width: 100%;
  font-size: 0.7rem;
  line-height: 0.85rem;
  margin-bottom: 2px;
  color: #555;
  font-weight: 400;
}
.international__results-table .td.school:nth-child(3n+1) {
  border: 1px solid #62a82d;
}
.international__results-table .td.school:nth-child(3n+1):hover {
  background: #ccffaf;
}
.international__results-table .td.school:nth-child(3n+2) {
  border: 1px solid #feaa3a;
}
.international__results-table .td.school:nth-child(3n+2):hover {
  background: #ffdfb4;
}
.international__results-table .td.school:nth-child(3n+3) {
  border: 1px solid #33c5f3;
}
.international__results-table .td.school:nth-child(3n+3):hover {
  background: #96e6ff;
}
.international__results-table .td.school:hover {
  text-decoration: underline;
}
.international__results-table .td.school:focus {
  background: #fff;
}
.international__results-table .td.school:active {
  background: #fff;
}
.international__results-table .td.learner {
  background-color: #fff;
  justify-content: left;
  position: relative;
  text-decoration: none;
}
.international__results-table .td.learner .learner-name {
  font-size: 0.95rem;
  font-weight: 400;
  line-height: 1.25em;
  padding: 2px 5px 2px;
  color: #034561;
}
.international__results-table .td.learner:nth-child(3n+2) {
  border: 1px solid #62a82d;
}
.international__results-table .td.learner:nth-child(3n+2):hover {
  background: #ccffaf;
}
.international__results-table .td.learner:nth-child(3n+3) {
  border: 1px solid #feaa3a;
}
.international__results-table .td.learner:nth-child(3n+3):hover {
  background: #ffdfb4;
}
.international__results-table .td.learner:nth-child(3n+4) {
  border: 1px solid #33c5f3;
}
.international__results-table .td.learner:nth-child(3n+4):hover {
  background: #96e6ff;
}
.international__results-table .td.learner:hover {
  text-decoration: underline;
}
.international__results-table .td.learner:focus {
  background: #fff;
}
.international__results-table .td.learner:active {
  background: #fff;
}
.international__results-table .td.level {
  font-size: 1rem;
  font-weight: 400;
}
.international__results-table .td.level:nth-child(3n+1) {
  border: 1px solid #feaa3a;
}
.international__results-table .td.level:nth-child(3n+2) {
  border: 1px solid #33c5f3;
}
.international__results-table .td.level:nth-child(3n+3) {
  border: 1px solid #62a82d;
}
.international__results-table .td.score {
  padding-top: 2px;
  font-size: 1.1rem;
  font-weight: 400;
}
.international__results-table .td.score:nth-child(3n+1) {
  border: 1px solid #62a82d;
}
.international__results-table .td.score:nth-child(3n+2) {
  border: 1px solid #feaa3a;
}
.international__results-table .td.score:nth-child(3n+3) {
  border: 1px solid #33c5f3;
}
.international__results-table .td.result {
  padding-top: 2px;
  font-size: 1.1rem;
  font-weight: 400;
}
.international__results-table .td.result:nth-child(3n) {
  border: 1px solid #33c5f3;
}
.international__results-table .td.result:nth-child(3n+1) {
  border: 1px solid #62a82d;
}
.international__results-table .td.result:nth-child(3n+2) {
  border: 1px solid #feaa3a;
}
.international__results-table .td.degree {
  display: flex;
  font-size: 1.1rem;
  font-family: Tahoma, Verdana, sans-serif;
  justify-content: center;
  align-items: center;
}
.international__results-table .td.degree span {
  padding: 3px 0 0 !important;
}
.international__results-table .td.degree img {
  width: 16px;
  height: 16px;
  margin-top: 1px;
}
.international__results-table .td.degree:nth-child(3n) {
  border: 1px solid #feaa3a;
}
.international__results-table .td.degree:nth-child(3n+1) {
  border: 1px solid #33c5f3;
}
.international__results-table .td.degree:nth-child(3n+2) {
  border: 1px solid #62a82d;
}
.international__results-table .td.certificate {
  padding: 0;
  display: flex;
  background-color: #fff;
  justify-content: center;
  position: relative;
}
.international__results-table .td.certificate .certificate-name {
  color: #034561;
}
.international__results-table .td.certificate a {
  position: unset;
}
.international__results-table .td.certificate:nth-child(3n) {
  border: 1px solid #62a82d;
}
.international__results-table .td.certificate:nth-child(3n):hover {
  background: #ccffaf;
}
.international__results-table .td.certificate:nth-child(3n+1) {
  border: 1px solid #feaa3a;
}
.international__results-table .td.certificate:nth-child(3n+1):hover {
  background: #ffdfb4;
}
.international__results-table .td.certificate:nth-child(3n+2) {
  border: 1px solid #33c5f3;
}
.international__results-table .td.certificate:nth-child(3n+2):hover {
  background: #96e6ff;
}

.school__results-table {
  width: 100%;
  display: grid;
  grid-template-columns: 50px 1fr 75px 60px 60px 70px 60px 70px;
  grid-template-rows: -webkit-max-content repeat(auto-fit, 72px);
  grid-template-rows: max-content repeat(auto-fit, 72px);
  grid-column-gap: 2px;
  grid-row-gap: 2px;
}
.school__results-table.small {
  grid-template-columns: 50px 1fr 65px repeat(5, 75px);
}
.school__results-table a {
  bottom: 0;
  right: 0;
  text-decoration: none;
}
.school__results-table .th {
  font-size: initial;
  text-align: center;
}
.school__results-table .th:nth-child(2) {
  text-align: left;
}
.school__results-table .td {
  color: #034561;
  text-align: center;
  background-color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}
.school__results-table .td.number {
  color: #fff;
  font-family: Tahoma, Verdana, sans-serif;
  font-size: 1rem;
  font-weight: 500;
  padding-top: 0;
  align-items: center;
}
.school__results-table .td.number:nth-child(3n+1) {
  background-color: #feaA3AE5;
}
.school__results-table .td.number:nth-child(3n+2) {
  background-color: #33c5F3E5;
}
.school__results-table .td.number:nth-child(3n+3) {
  background-color: #62a82DE5;
}
.school__results-table .td.learner {
  background-color: #fff;
  justify-content: left;
  position: relative;
  text-align: left;
  text-decoration: none;
}
.school__results-table .td.learner .learner-name {
  font-size: 0.95rem;
  font-weight: 400;
  line-height: 1.25em;
  padding: 2px 5px 2px;
  color: #034561;
}
.school__results-table .td.learner:nth-child(3n+1) {
  border: 1px solid #62a82d;
}
.school__results-table .td.learner:nth-child(3n+1):hover {
  background: #ccffaf;
}
.school__results-table .td.learner:nth-child(3n+2) {
  border: 1px solid #feaa3a;
}
.school__results-table .td.learner:nth-child(3n+2):hover {
  background: #ffdfb4;
}
.school__results-table .td.learner:nth-child(3n+3) {
  border: 1px solid #33c5f3;
}
.school__results-table .td.learner:nth-child(3n+3):hover {
  background: #96e6ff;
}
.school__results-table .td.learner:hover {
  text-decoration: underline;
}
.school__results-table .td.learner:focus {
  background: #fff;
}
.school__results-table .td.learner:active {
  background: #fff;
}
.school__results-table .td.year {
  padding-top: 1px;
  font-size: 0.85rem;
  font-weight: 400;
}
.school__results-table .td.year.small {
  font-size: 0.85rem;
}
.school__results-table .td.year:nth-child(3n+1) {
  border: 1px solid #33c5f3;
}
.school__results-table .td.year:nth-child(3n+2) {
  border: 1px solid #62a82d;
}
.school__results-table .td.year:nth-child(3n+3) {
  border: 1px solid #feaa3a;
}
.school__results-table .td.level {
  padding-top: 1px;
  font-size: 0.9rem;
  font-weight: 400;
}
.school__results-table .td.level:nth-child(3n+1) {
  border: 1px solid #feaa3a;
}
.school__results-table .td.level:nth-child(3n+2) {
  border: 1px solid #33c5f3;
}
.school__results-table .td.level:nth-child(3n+3) {
  border: 1px solid #62a82d;
}
.school__results-table .td.score {
  font-size: 1.1rem;
  font-weight: 400;
}
.school__results-table .td.score:nth-child(3n+1) {
  border: 1px solid #62a82d;
}
.school__results-table .td.score:nth-child(3n+2) {
  border: 1px solid #feaa3a;
}
.school__results-table .td.score:nth-child(3n+3) {
  border: 1px solid #33c5f3;
}
.school__results-table .td.result {
  font-size: 1.1rem;
  font-weight: 400;
}
.school__results-table .td.result:nth-child(3n+1) {
  border: 1px solid #33c5f3;
}
.school__results-table .td.result:nth-child(3n+2) {
  border: 1px solid #62a82d;
}
.school__results-table .td.result:nth-child(3n+3) {
  border: 1px solid #feaa3a;
}
.school__results-table .td.degree {
  display: flex;
  font-size: 1rem;
  font-family: Tahoma, Verdana, sans-serif;
  justify-content: center;
  align-items: center;
}
.school__results-table .td.degree span {
  padding: 3px 0 0 !important;
}
.school__results-table .td.degree img {
  width: 16px;
  height: 16px;
  margin-top: 1px;
}
.school__results-table .td.degree:nth-child(3n+1) {
  border: 1px solid #feaa3a;
}
.school__results-table .td.degree:nth-child(3n+2) {
  border: 1px solid #33c5f3;
}
.school__results-table .td.degree:nth-child(3n+3) {
  border: 1px solid #62a82d;
}
.school__results-table .td.certificate {
  padding-top: 1px;
  display: flex;
  background-color: #fff;
  justify-content: center;
  position: relative;
  color: #ccc;
  text-decoration: none;
}
.school__results-table .td.certificate .certificate-name {
  color: #034561;
}
.school__results-table .td.certificate a {
  position: unset;
}
.school__results-table .td.certificate:nth-child(3n+1) {
  border: 1px solid #62a82d;
}
.school__results-table .td.certificate:nth-child(3n+1):hover {
  background: #ccffaf;
}
.school__results-table .td.certificate:nth-child(3n+2) {
  border: 1px solid #feaa3a;
}
.school__results-table .td.certificate:nth-child(3n+2):hover {
  background: #ffdfb4;
}
.school__results-table .td.certificate:nth-child(3n+3) {
  border: 1px solid #33c5f3;
}
.school__results-table .td.certificate:nth-child(3n+3):hover {
  background: #96e6ff;
}

.my__school__results-table {
  width: 100%;
  display: grid;
  grid-template-columns: 50px 1fr 70px 60px 55px 65px 40px 55px 80px;
  grid-template-rows: -webkit-max-content repeat(auto-fit, 72px);
  grid-template-rows: max-content repeat(auto-fit, 72px);
  grid-column-gap: 2px;
  grid-row-gap: 2px;
}
.my__school__results-table.small {
  grid-template-columns: 50px 1fr 50px repeat(2, 65px) 70px 40px 70px 100px;
}
.my__school__results-table a {
  bottom: 0;
  right: 0;
}
.my__school__results-table .select {
  width: 100%;
  min-height: auto;
  margin-top: -2px;
}
.my__school__results-table .select select {
  border: 0;
  border-radius: 0;
  min-height: auto;
  line-height: 21px;
  height: 28px;
  font-size: 0.9rem;
  padding: 3px 24px 3px 3px;
}
.my__school__results-table .select::after {
  right: 10px;
}
.my__school__results-table .th {
  font-size: initial;
  text-align: center;
}
.my__school__results-table .th:nth-child(2) {
  text-align: left;
}
.my__school__results-table .td {
  color: #034561;
  text-align: center;
  background-color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}
.my__school__results-table .td.number {
  color: #fff;
  font-family: Tahoma, Verdana, sans-serif;
  font-size: 1rem;
  font-weight: 500;
  padding-top: 0;
  align-items: center;
}
.my__school__results-table .td.number:nth-child(3n+1) {
  background-color: #feaA3AE5;
}
.my__school__results-table .td.number:nth-child(3n+2) {
  background-color: #33c5F3E5;
}
.my__school__results-table .td.number:nth-child(3n+3) {
  background-color: #62a82DE5;
}
.my__school__results-table .td.learner {
  background-color: #fff;
  justify-content: left;
  position: relative;
  text-align: left;
  text-decoration: none;
}
.my__school__results-table .td.learner .learner-name {
  font-size: 0.95rem;
  font-weight: 400;
  line-height: 1.25em;
  padding: 2px 5px 2px;
  color: #034561;
}
.my__school__results-table .td.learner:nth-child(3n+1) {
  border: 1px solid #62a82d;
}
.my__school__results-table .td.learner:nth-child(3n+1):hover {
  background: #ccffaf;
}
.my__school__results-table .td.learner:nth-child(3n+2) {
  border: 1px solid #feaa3a;
}
.my__school__results-table .td.learner:nth-child(3n+2):hover {
  background: #ffdfb4;
}
.my__school__results-table .td.learner:nth-child(3n+3) {
  border: 1px solid #33c5f3;
}
.my__school__results-table .td.learner:nth-child(3n+3):hover {
  background: #96e6ff;
}
.my__school__results-table .td.learner:hover {
  text-decoration: underline;
}
.my__school__results-table .td.learner:focus {
  background: #fff;
}
.my__school__results-table .td.learner:active {
  background: #fff;
}
.my__school__results-table .td.year {
  padding-top: 1px;
  font-size: 0.85rem;
  font-weight: 400;
}
.my__school__results-table .td.year.small {
  font-size: 0.85rem;
}
.my__school__results-table .td.year:nth-child(3n+1) {
  border: 1px solid #33c5f3;
}
.my__school__results-table .td.year:nth-child(3n+2) {
  border: 1px solid #62a82d;
}
.my__school__results-table .td.year:nth-child(3n+3) {
  border: 1px solid #feaa3a;
}
.my__school__results-table .td.level {
  padding-top: 1px;
  font-size: 0.9rem;
  font-weight: 400;
}
.my__school__results-table .td.level:nth-child(3n+1) {
  border: 1px solid #feaa3a;
}
.my__school__results-table .td.level:nth-child(3n+2) {
  border: 1px solid #33c5f3;
}
.my__school__results-table .td.level:nth-child(3n+3) {
  border: 1px solid #62a82d;
}
.my__school__results-table .td.score {
  padding-top: 2px;
  font-size: 1.1rem;
  font-weight: 400;
}
.my__school__results-table .td.score:nth-child(3n+1) {
  border: 1px solid #62a82d;
}
.my__school__results-table .td.score:nth-child(3n+2) {
  border: 1px solid #feaa3a;
}
.my__school__results-table .td.score:nth-child(3n+3) {
  border: 1px solid #33c5f3;
}
.my__school__results-table .td.result {
  padding-top: 2px;
  font-size: 1.1rem;
  font-weight: 400;
}
.my__school__results-table .td.result:nth-child(3n+1) {
  border: 1px solid #33c5f3;
}
.my__school__results-table .td.result:nth-child(3n+2) {
  border: 1px solid #62a82d;
}
.my__school__results-table .td.result:nth-child(3n+3) {
  border: 1px solid #feaa3a;
}
.my__school__results-table .td.degree {
  display: flex;
  font-family: Tahoma, Verdana, sans-serif;
  justify-content: center;
  align-items: center;
}
.my__school__results-table .td.degree span {
  padding: 3px 0 0 !important;
}
.my__school__results-table .td.degree img {
  width: 16px;
  height: 16px;
  margin-top: 1px;
}
.my__school__results-table .td.degree:nth-child(3n+1) {
  border: 1px solid #feaa3a;
}
.my__school__results-table .td.degree:nth-child(3n+2) {
  border: 1px solid #33c5f3;
}
.my__school__results-table .td.degree:nth-child(3n+3) {
  border: 1px solid #62a82d;
}
.my__school__results-table .td.certificate {
  padding-top: 2px;
  display: flex;
  background-color: #fff;
  justify-content: center;
  position: relative;
}
.my__school__results-table .td.certificate .certificate-name {
  color: #034561;
}
.my__school__results-table .td.certificate a {
  position: unset;
}
.my__school__results-table .td.certificate:nth-child(3n+1) {
  border: 1px solid #62a82d;
}
.my__school__results-table .td.certificate:nth-child(3n+1):hover {
  background: #ccffaf;
}
.my__school__results-table .td.certificate:nth-child(3n+2) {
  border: 1px solid #feaa3a;
}
.my__school__results-table .td.certificate:nth-child(3n+2):hover {
  background: #ffdfb4;
}
.my__school__results-table .td.certificate:nth-child(3n+3) {
  border: 1px solid #33c5f3;
}
.my__school__results-table .td.certificate:nth-child(3n+3):hover {
  background: #96e6ff;
}
.my__school__results-table .td.teacher {
  padding-top: 2px;
  border: 1px solid #ccc;
}

.school__teacher__organisers-table {
  width: 500px;
  display: grid;
  grid-template-columns: 53px 345px repeat(2, 206px);
  grid-template-rows: -webkit-max-content repeat(auto-fit, 72px);
  grid-template-rows: max-content repeat(auto-fit, 72px);
  grid-column-gap: 2px;
  grid-row-gap: 2px;
}
.school__teacher__organisers-table a {
  display: flex;
  align-items: center;
}
.school__teacher__organisers-table .th {
  font-size: initial;
  text-align: center;
}
.school__teacher__organisers-table .th:nth-child(2) {
  text-align: left;
}
.school__teacher__organisers-table .td {
  min-height: 38px;
  padding-top: 1px;
  color: #034561;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #fff;
}
.school__teacher__organisers-table .td.number {
  color: #fff;
  font-family: Tahoma, Verdana, sans-serif;
  font-size: 1rem;
  font-weight: 500;
  line-height: 36px;
  padding-top: 2px;
  align-items: normal;
  background-color: #33c5F3E5;
}
.school__teacher__organisers-table .td.teacher {
  background-color: #fff;
  justify-content: left;
  position: relative;
  border: 1px solid #33c5f3;
}
.school__teacher__organisers-table .td.teacher .teacher-name {
  font-size: 0.95rem;
  padding: 0 3px 0;
  color: #034561;
  font-weight: 600;
}
.school__teacher__organisers-table .td.teacher:hover {
  background: #96e6ff;
}
.school__teacher__organisers-table .td.teacher:focus {
  background: #fff;
}
.school__teacher__organisers-table .td.teacher:active {
  background: #fff;
}
.school__teacher__organisers-table .td.certificate {
  display: flex;
  background-color: #fff;
  justify-content: center;
  position: relative;
  padding-top: 2px;
  border: 1px solid #33c5f3;
}
.school__teacher__organisers-table .td.certificate a {
  color: #034561;
  position: unset;
}
.school__teacher__organisers-table .td.certificate:hover {
  background: #96e6ff;
}
.school__teacher__organisers-table .td.acknowledgment {
  display: flex;
  background-color: #fff;
  justify-content: center;
  position: relative;
  padding-top: 2px;
  border: 1px solid #33c5f3;
}
.school__teacher__organisers-table .td.acknowledgment a {
  color: #034561;
  position: unset;
}
.school__teacher__organisers-table .td.acknowledgment:hover {
  background: #96e6ff;
}

.school__teachers__with__excellent__student__results-table {
  width: 500px;
  display: grid;
  grid-template-columns: 53px 345px 333px 80px;
  grid-template-rows: -webkit-max-content repeat(auto-fit, 72px);
  grid-template-rows: max-content repeat(auto-fit, 72px);
  grid-column-gap: 2px;
  grid-row-gap: 2px;
}
.school__teachers__with__excellent__student__results-table a {
  display: flex;
  align-items: center;
}
.school__teachers__with__excellent__student__results-table .th {
  font-size: initial;
  text-align: center;
  font-weight: 600;
}
.school__teachers__with__excellent__student__results-table .td {
  min-height: 38px;
  padding-top: 0;
  color: #034561;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #fff;
}
.school__teachers__with__excellent__student__results-table .td.number {
  color: #fff;
  font-family: Tahoma, Verdana, sans-serif;
  font-size: 1rem;
  font-weight: 500;
  padding-bottom: 2px;
  align-items: center;
  background-color: #62a82DE5;
}
.school__teachers__with__excellent__student__results-table .td.teacher {
  background-color: #fff;
  justify-content: left;
  position: relative;
  border: 1px solid #62a82d;
}
.school__teachers__with__excellent__student__results-table .td.teacher .teacher-name {
  font-size: 0.95rem;
  padding-left: 5px;
  color: #034561;
  font-weight: 600;
}
.school__teachers__with__excellent__student__results-table .td.teacher:hover {
  background: #ccffaf;
}
.school__teachers__with__excellent__student__results-table .td.teacher:focus {
  background: #fff;
}
.school__teachers__with__excellent__student__results-table .td.teacher:active {
  background: #fff;
}
.school__teachers__with__excellent__student__results-table .td.subject {
  display: flex;
  background-color: #fff;
  justify-content: center;
  position: relative;
  padding-top: 0px;
  border: 1px solid #62a82d;
}
.school__teachers__with__excellent__student__results-table .td.subject a {
  color: #034561;
  position: unset;
}
.school__teachers__with__excellent__student__results-table .td.subject:hover {
  background: #ccffaf;
}
.school__teachers__with__excellent__student__results-table .td.certificate {
  display: flex;
  background-color: #fff;
  justify-content: center;
  position: relative;
  padding-top: 2px;
  border: 1px solid #62a82d;
}
.school__teachers__with__excellent__student__results-table .td.certificate a {
  color: #034561;
  position: unset;
}
.school__teachers__with__excellent__student__results-table .td.certificate:hover {
  background: #ccffaf;
}
.school__teachers__with__excellent__student__results-table .br-cell.br-group--base {
  background-color: #ffffff;
}
.school__teachers__with__excellent__student__results-table .br-cell.br-group--alt {
  background-color: #f7fff7;
}

.bg-clouds {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 0;
}

.bg-clouds__cloud-1 {
  position: absolute;
  left: 0;
  top: 20px;
}

.bg-clouds__cloud-2 {
  position: absolute;
  right: 25px;
  top: 20px;
}

.rating {
  background: linear-gradient(0.36deg, #c7fff9 -5.11%, #82d0fd 20.67%, #59b4ff 99.68%);
}

.add-bg__pencils::after {
  position: absolute;
  content: url(https://brainring.fra1.digitaloceanspaces.com/public/images/bg_element__pencils.svg);
  right: -130px;
  bottom: 200px;
  z-index: -1;
}

.add-bg__protractor {
  position: relative;
}
.add-bg__protractor::after {
  position: absolute;
  content: url(https://brainring.fra1.digitaloceanspaces.com/public/images/bg_element__protractor.svg);
  right: -100px;
  bottom: 50px;
}

.bg-children-goblet {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  z-index: 0;
}
.bg-children-goblet .bg-children__boy {
  position: absolute;
  left: 300px;
  bottom: 35px;
}
.bg-children-goblet .bg-children__girl {
  position: absolute;
  left: 60px;
  bottom: 35px;
}
.bg-children-goblet .bg-children__goblet {
  position: absolute;
  right: 70px;
  bottom: 35px;
  z-index: 0;
}
.bg-children-goblet .bg-children__earth {
  position: absolute;
  right: 155px;
  bottom: 15px;
  z-index: -1;
}
.bg-children-goblet .bg-children__kite {
  position: absolute;
  left: 155px;
  bottom: calc(100vh - 520px);
  z-index: -1;
}

.rating__rate-table-wrapper {
  overflow: visible;
  position: relative;
}

.bg-girl-on-books {
  width: 251px;
}

.bg-children__pencils {
  position: absolute;
  right: 20px;
  bottom: 600px;
}

.school-diploma {
  width: 625px;
  height: 443px;
  position: relative;
  overflow: hidden;
  -webkit-animation: placeholder ease-in-out 2s infinite;
          animation: placeholder ease-in-out 2s infinite;
  box-shadow: rgba(0, 0, 0, 0.2) 0px 12px 28px 0px, rgba(0, 0, 0, 0.1) 0px 2px 4px 0px, rgba(255, 255, 255, 0.05) 0px 0px 0px 1px inset;
  /* only the diploma image, not the spinner img */
}
@media screen and (max-width: 900px) {
  .school-diploma {
    width: 580px !important;
    height: 403px !important;
    box-shadow: none !important;
  }
}
.school-diploma > img {
  display: block;
  width: 100%;
  height: 100%;
  -o-object-fit: contain;
     object-fit: contain;
  position: relative;
  z-index: 1;
  opacity: 0;
  visibility: hidden;
}
.school-diploma .loading-spinner {
  position: absolute;
  inset: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2;
  pointer-events: none;
}
.school-diploma.loaded {
  -webkit-animation: none;
          animation: none;
}
@media screen and (max-width: 900px) {
  .school-diploma.loaded {
    width: 580px !important;
    height: 403px !important;
  }
}
.school-diploma.loaded > img {
  opacity: 1 !important;
  visibility: visible !important;
  display: block !important;
  -webkit-animation: fadeIn linear 0.3s;
          animation: fadeIn linear 0.3s;
}

.chartBox-100 {
  width: 100%;
  height: 420px;
  margin-bottom: 1rem;
  border-radius: 20px;
  border: 3px solid orange;
  background-color: #fff;
}

.chartBox-50 {
  width: 50%;
  height: 410px;
  margin-bottom: 1.45rem;
  border-radius: 20px;
  border: 3px solid orange;
  background-color: #fff;
}
@media screen and (max-width: 900px) {
  .chartBox-50 {
    width: 100%;
  }
}

@-webkit-keyframes placeholder {
  0% {
    background-color: #ccc;
  }
  50% {
    background-color: #eee;
  }
  100% {
    background-color: #ccc;
  }
}

@keyframes placeholder {
  0% {
    background-color: #ccc;
  }
  50% {
    background-color: #eee;
  }
  100% {
    background-color: #ccc;
  }
}
@media screen and (min-width: 901px) and (max-width: 1170px) {
  .content {
    overflow-x: scroll;
  }
}
@media screen and (min-width: 768px) and (max-width: 1024px) {
  .rating__rate-table {
    grid-template-columns: 45px 1fr repeat(3, 50px);
  }
  .rating__rate-table .td.school .school-name {
    font-size: 0.85rem;
    line-height: 0.9rem;
  }
  .rating__rate-table .td.school .school-address {
    font-size: 0.65rem;
    line-height: 0.75rem;
  }

  .school__results-table {
    grid-template-columns: 45px 1fr 65px 50px 50px 60px 50px 60px;
  }
  .school__results-table.small {
    grid-template-columns: 40px 1fr repeat(3, 55px) 75px repeat(2, 60px);
  }
  .school__results-table.small .td.result {
    font-size: 0.95rem !important;
  }
  .school__results-table .td.learner .learner-name {
    font-size: 0.8rem;
    line-height: 0.85rem;
  }

  .my__school__results-table {
    grid-template-columns: 45px 1fr 50px 50px 45px 55px 35px 60px 70px;
  }
  .my__school__results-table.small {
    grid-template-columns: 45px 1fr 50px repeat(2, 55px) 60px 35px 60px 70px;
  }
}
.school-rating-view-controls {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.school-rating-view-controls > div {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  position: relative;
  min-width: 0;
  width: 100%;
}
@media screen and (max-width: 900px) {
  .school-rating-view-controls > div {
    gap: 0.5rem;
  }
}
@media screen and (min-width: 901px) {
  .school-rating-view-controls > div {
    flex-wrap: nowrap;
    justify-content: center;
  }
}
@media screen and (min-width: 901px) {
  .school-rating-view-controls {
    flex-direction: row;
    justify-content: center;
    gap: 0;
  }
}
.school-rating-view-controls .view-toggle-group {
  display: flex;
  gap: 0.4rem;
  flex-shrink: 0;
  justify-content: center;
}
.school-rating-view-controls .contest-type-toggle-group {
  display: flex;
  gap: 0.4rem;
  flex-shrink: 0;
  justify-content: center;
}
@media screen and (min-width: 901px) {
  .school-rating-view-controls .contest-type-toggle-group {
    margin-left: 0;
  }
}
.school-rating-view-controls .view-toggle-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: #fff;
  border: 2px solid #0f8ef5;
  border-radius: 0.5rem;
  color: #0f8ef5;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  white-space: nowrap;
  flex-shrink: 1;
  min-width: 0;
  position: relative;
  z-index: 1;
}
.school-rating-view-controls .view-toggle-btn svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}
.school-rating-view-controls .view-toggle-btn:hover {
  background: #e6f4ff;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}
.school-rating-view-controls .view-toggle-btn.active {
  background: #3da8ff;
  border-color: #0f8ef5;
  color: #fff;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.08);
  cursor: default;
}
.school-rating-view-controls .view-toggle-btn.active:hover {
  background: #3da8ff;
}
.school-rating-view-controls .contest-type-toggle-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  background: #fff;
  border: 2px solid #0f8ef5;
  border-radius: 0.5rem;
  color: #0f8ef5;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  position: relative;
  flex-shrink: 0;
  z-index: 1;
}
.school-rating-view-controls .contest-type-toggle-btn svg {
  width: 26px;
  height: 26px;
  flex-shrink: 0;
}
.school-rating-view-controls .contest-type-toggle-btn .tooltiptext {
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  z-index: 10000;
}
.school-rating-view-controls .contest-type-toggle-btn:hover {
  background: #e6f4ff;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}
.school-rating-view-controls .contest-type-toggle-btn:hover .tooltiptext {
  visibility: visible;
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.school-rating-view-controls .contest-type-toggle-btn.active {
  background: #3da8ff;
  border-color: #0f8ef5;
  color: #fff;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.08);
  cursor: default;
}
.school-rating-view-controls .contest-type-toggle-btn.active:hover {
  background: #3da8ff;
}
.school-rating-view-controls .contest-type-filter-text-mobile {
  display: none;
  width: 100%;
  text-align: center;
  padding: 0.5rem 1rem;
  background: #e6f4ff;
  border-radius: 0.5rem;
  border: 1px solid #0f8ef5;
  order: 10;
  pointer-events: none;
  position: relative;
  z-index: 0;
}
.school-rating-view-controls .contest-type-filter-text-mobile__text {
  color: #034561;
  font-size: 1.25rem;
  font-weight: 600;
}
@media screen and (min-width: 1050px) {
  .school-rating-view-controls .contest-type-filter-text-mobile {
    display: none !important;
  }
}

.school-rating-view {
  position: relative;
}

.school-rating-map-container {
  width: 100%;
  height: 700px;
  border-radius: 2rem;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  background: #f5f5f5;
  position: relative;
  margin-top: 1.75rem;
}
@media screen and (max-width: 900px) {
  .school-rating-map-container {
    height: 600px;
  }
}

.map-loading {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1000;
  text-align: center;
  background: rgba(255, 255, 255, 0.95);
  padding: 2rem;
  border-radius: 1rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  pointer-events: none;
}
.map-loading p {
  margin-top: 1rem;
  color: #034561;
  font-weight: 600;
}

.map-loading-spinner {
  width: 50px;
  height: 50px;
  border: 4px solid #f3f3f3;
  border-top: 4px solid #0f8ef5;
  border-radius: 50%;
  -webkit-animation: spin 1s linear infinite;
          animation: spin 1s linear infinite;
  margin: 0 auto;
}

@-webkit-keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
.school-marker {
  background: transparent !important;
  border: none !important;
  pointer-events: auto !important;
  cursor: pointer !important;
}
.school-marker[style*="z-index: 1000"], .school-marker[style*="z-index: 500"] {
  z-index: inherit !important;
}

.leaflet-marker-icon.school-marker {
  z-index: auto !important;
  pointer-events: auto !important;
  display: block !important;
  visibility: visible !important;
}

@media screen and (max-width: 900px) {
  .school-popup-wrapper .leaflet-popup-content-wrapper {
    max-width: calc(100vw - 40px) !important;
    position: relative !important;
  }
  .school-popup-wrapper .leaflet-popup-content {
    margin: 0 !important;
    padding: 0 !important;
  }
  .school-popup-wrapper .leaflet-popup-close-button {
    position: absolute !important;
    top: 0 !important;
    right: 0 !important;
    width: 30px !important;
    height: 30px !important;
    line-height: 30px !important;
    text-align: center !important;
    font-size: 18px !important;
    font-weight: bold !important;
    color: #333 !important;
    background: rgba(255, 255, 255, 0.9) !important;
    border-radius: 50% !important;
    z-index: 1000 !important;
    padding: 0 !important;
    margin: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  .leaflet-marker-icon.school-marker {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
  }

  .leaflet-popup {
    position: absolute !important;
  }

  .leaflet-popup-pane {
    position: absolute !important;
  }
}
.school-marker-pin {
  position: relative;
  width: 40px;
  height: 50px;
  background: #33c5f3;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
  cursor: pointer;
}
.school-marker-pin::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(45deg);
  width: 30px;
  height: 30px;
  background: #fff;
  border-radius: 50%;
}
.school-marker-pin .school-marker-number {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(45deg);
  color: #034561;
  font-weight: 700;
  font-size: 14px;
  z-index: 1;
}
.school-marker-pin:hover {
  transform: rotate(-45deg) scale(1.15);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4);
}
.school-marker-pin--gold {
  border: 2px solid #FFA500;
  box-shadow: none;
  filter: none;
}
.school-marker-pin--gold::after {
  width: 30px;
  height: 30px;
}
.school-marker-pin--gold .school-marker-number {
  font-size: 14px;
  color: #FFA500;
  font-weight: 800;
  text-shadow: none;
}
.school-marker-pin--gold:hover {
  box-shadow: 0 4px 12px rgba(255, 215, 0, 0.6);
  filter: drop-shadow(0 0 6px rgba(255, 215, 0, 0.7));
}
.school-marker-pin--silver {
  background: #62a82d !important;
  border: 2px solid #4a7d1f;
  box-shadow: none;
  filter: none;
}
.school-marker-pin--silver::after {
  width: 30px;
  height: 30px;
  background: #fff;
}
.school-marker-pin--silver .school-marker-number {
  font-size: 14px;
  color: #4a7d1f;
  font-weight: 800;
  text-shadow: none;
}
.school-marker-pin--silver:hover {
  box-shadow: 0 4px 12px rgba(98, 168, 45, 0.6);
  filter: drop-shadow(0 0 6px rgba(98, 168, 45, 0.7));
}
.school-marker-pin--bronze {
  background: #feaa3a !important;
  border: 2px solid #d98a1f;
  box-shadow: none;
}
.school-marker-pin--bronze::after {
  width: 30px;
  height: 30px;
  background: #fff;
}
.school-marker-pin--bronze .school-marker-number {
  font-size: 14px;
  color: #d98a1f;
  font-weight: 800;
}
.school-marker-pin--bronze:hover {
  box-shadow: 0 4px 12px rgba(254, 170, 58, 0.6);
  filter: drop-shadow(0 0 6px rgba(254, 170, 58, 0.7));
}

.school-popup-wrapper .leaflet-popup-content-wrapper {
  border-radius: 1rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  padding: 0;
}
.school-popup-wrapper .leaflet-popup-content {
  margin: 0;
  padding: 0;
}

.school-popup {
  padding: 1.25rem;
  min-width: 280px;
  font-family: inherit;
}
.school-popup-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}
.school-popup-position-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.school-popup-position {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 1.1rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  position: relative;
  z-index: 1;
}
.school-popup-award-icon {
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  width: 30px;
  height: 30px;
  -o-object-fit: contain;
     object-fit: contain;
  z-index: 2;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}
.school-popup-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #034561;
  line-height: 1.3;
}
.school-popup-address {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 1rem;
  line-height: 1.4;
}
.school-popup-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem;
  margin-bottom: 1rem;
  padding: 0.625rem;
  background: #f8f9fa;
  border-radius: 0.375rem;
  border: 1px solid #e9ecef;
}
.school-popup-stat {
  display: flex;
  flex-direction: row;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.375rem 0.5rem;
  background: #fff;
  border-radius: 0.25rem;
  transition: background-color 0.2s ease;
}
.school-popup-stat:hover {
  background: #f8f9fa;
}
.school-popup-stat .stat-label {
  font-size: 0.7rem;
  color: #6c757d;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  font-weight: 600;
  white-space: nowrap;
}
.school-popup-stat .stat-value {
  font-size: 1rem;
  font-weight: 700;
  color: #034561;
  white-space: nowrap;
}
.school-popup-link {
  display: block;
  text-align: center;
  padding: 0.75rem 1rem;
  background: #3da8ff;
  color: #fff !important;
  text-decoration: none;
  border-radius: 0.5rem;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
}
.school-popup-link:hover {
  background: #2d98ef;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(61, 168, 255, 0.3);
  text-decoration: none !important;
}

#school-rating-map .leaflet-container {
  font-family: inherit;
}
#school-rating-map .leaflet-tile {
  filter: grayscale(100%) brightness(95%) contrast(90%);
}
#school-rating-map .leaflet-control-attribution {
  display: none !important;
}
#school-rating-map .leaflet-popup-tip {
  background: #fff;
}
#school-rating-map .marker-cluster {
  background-color: rgba(61, 168, 255, 0.6) !important;
  cursor: pointer !important;
}
#school-rating-map .marker-cluster div {
  background-color: #3da8ff !important;
  color: #fff;
  font-weight: 700;
  cursor: pointer !important;
}
#school-rating-map .leaflet-control-zoom {
  border: none !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15) !important;
  border-radius: 12px !important;
  overflow: hidden;
}
#school-rating-map .leaflet-control-zoom a {
  width: 48px !important;
  height: 48px !important;
  line-height: 48px !important;
  font-size: 24px !important;
  font-weight: 600 !important;
  color: #0f8ef5 !important;
  background: #fff !important;
  border: 2px solid #0f8ef5 !important;
  text-decoration: none !important;
  transition: all 0.3s ease !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
}
#school-rating-map .leaflet-control-zoom a:hover {
  background: #0f8ef5 !important;
  color: #fff !important;
  text-decoration: none !important;
  transform: scale(1.05);
}
#school-rating-map .leaflet-control-zoom a:active {
  transform: scale(0.95);
}
#school-rating-map .leaflet-control-zoom a.leaflet-control-zoom-in {
  border-bottom: 1px solid #0f8ef5 !important;
  border-radius: 12px 12px 0 0 !important;
}
#school-rating-map .leaflet-control-zoom a.leaflet-control-zoom-out {
  border-top: none !important;
  border-top-left-radius: 0 !important;
  border-top-right-radius: 0 !important;
  border-radius: 0 0 12px 12px !important;
}
#school-rating-map .leaflet-top.leaflet-left {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 8px;
  width: 100%;
  max-width: 100%;
  flex-wrap: nowrap;
}
#school-rating-map .leaflet-top.leaflet-left .leaflet-control-zoom {
  margin: 10px 0 0 10px !important;
  order: 1;
  flex-shrink: 0;
}
#school-rating-map .leaflet-top.leaflet-left .map-search-control {
  margin: 10px 0 0 0 !important;
  order: 2;
  flex: 1;
  min-width: 0;
}

.map-reset-button {
  margin: 10px 10px 0 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.map-reset-button .map-search-toggle-btn,
.map-reset-button .map-reset-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px !important;
  background: #fff;
  border: 2px solid #0f8ef5;
  border-radius: 50%;
  color: #0f8ef5;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
  padding: 0;
}
.map-reset-button .map-search-toggle-btn svg,
.map-reset-button .map-reset-btn svg {
  width: 20px;
  height: 20px;
}
.map-reset-button .map-search-toggle-btn:hover,
.map-reset-button .map-reset-btn:hover {
  background: #0f8ef5;
  color: #fff;
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(15, 142, 245, 0.3);
}
.map-reset-button .map-search-toggle-btn:active,
.map-reset-button .map-reset-btn:active {
  transform: scale(0.95);
}
.map-reset-button .map-reset-btn {
  display: none;
}
.map-reset-button .map-search-toggle-btn.active {
  background: #0f8ef5;
  color: #fff;
}
.map-reset-button .map-search-toggle-btn.filtered {
  background: #ff9800;
  border-color: #ff9800;
  color: #fff;
}
.map-reset-button .map-search-toggle-btn.filtered:hover {
  background: #f57c00;
  border-color: #f57c00;
}

.map-search-control {
  margin: 10px 0 0 0;
  position: relative;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  padding: 0;
  display: flex;
  align-items: center;
  min-width: 350px;
  max-width: 500px;
  width: 450px;
  z-index: 1000 !important;
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.map-search-control .map-search-input {
  width: 100%;
  height: 44px;
  padding: 10px 44px 10px 40px;
  border: 2px solid #0f8ef5;
  border-radius: 12px;
  font-size: 0.9rem;
  font-weight: 500;
  color: #034561;
  background: #fff;
  outline: none;
  transition: all 0.3s ease;
  box-sizing: border-box;
  -webkit-appearance: none;
  -moz-appearance: none;
       appearance: none;
}
.map-search-control .map-search-input::-moz-placeholder {
  color: #9ca3af;
  font-weight: 400;
}
.map-search-control .map-search-input:-ms-input-placeholder {
  color: #9ca3af;
  font-weight: 400;
}
.map-search-control .map-search-input::placeholder {
  color: #9ca3af;
  font-weight: 400;
}
.map-search-control .map-search-input:focus {
  border-color: #3da8ff;
  box-shadow: 0 0 0 3px rgba(15, 142, 245, 0.15), 0 4px 12px rgba(0, 0, 0, 0.15);
  background: #fff;
}
.map-search-control .map-search-input::-webkit-search-cancel-button {
  display: none;
}
.map-search-control .map-search-input::-ms-clear {
  display: none;
}
.map-search-control .map-search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: #6b7280;
  pointer-events: none;
  z-index: 1;
  flex-shrink: 0;
  transition: color 0.3s ease;
}
.map-search-control .map-search-icon svg {
  width: 100%;
  height: 100%;
}
.map-search-control:focus-within .map-search-icon {
  color: #3da8ff;
}
.map-search-control .map-search-clear {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  min-width: 28px;
  min-height: 28px;
  background: #f3f4f6;
  border: none;
  color: #6b7280;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 0;
  border-radius: 50%;
  transition: all 0.2s ease;
  z-index: 2;
  flex-shrink: 0;
}
.map-search-control .map-search-clear:hover {
  background: #e5e7eb;
  color: #034561;
  transform: translateY(-50%) scale(1.1);
}
.map-search-control .map-search-clear:active {
  transform: translateY(-50%) scale(0.95);
}
.map-search-control .map-search-clear svg {
  width: 14px;
  height: 14px;
  stroke-width: 2.5;
}
@media screen and (max-width: 900px) {
  .map-search-control {
    margin: 8px 0 0 0;
    min-width: 0;
    max-width: 400px;
    width: 100%;
    border-radius: 10px;
  }
  .map-search-control .map-search-input {
    height: 48px;
    padding: 12px 48px 12px 44px;
    font-size: 1rem;
    border-radius: 10px;
    -webkit-appearance: none;
    -moz-appearance: none;
         appearance: none;
  }
  .map-search-control .map-search-icon {
    left: 14px;
    width: 20px;
    height: 20px;
  }
  .map-search-control .map-search-clear {
    right: 10px;
    width: 32px;
    height: 32px;
    min-width: 32px;
    min-height: 32px;
  }
  .map-search-control .map-search-clear svg {
    width: 16px;
    height: 16px;
  }
}
@media screen and (max-width: 480px) {
  .map-search-control {
    margin: 6px 0 0 0;
    min-width: 0;
    max-width: 400px;
    width: 100%;
  }
  .map-search-control .map-search-input {
    height: 44px;
    padding: 10px 44px 10px 40px;
    font-size: 0.95rem;
  }
  .map-search-control .map-search-icon {
    left: 12px;
    width: 18px;
    height: 18px;
  }
  .map-search-control .map-search-clear {
    right: 8px;
    width: 28px;
    height: 28px;
    min-width: 28px;
    min-height: 28px;
  }
  .map-search-control .map-search-clear svg {
    width: 14px;
    height: 14px;
  }
}

.map-legend-wrapper {
  position: relative;
}

.map-legend-toggle {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 40px;
  height: 40px !important;
  background: #fff;
  border: 2px solid #0f8ef5;
  border-radius: 50%;
  color: #0f8ef5;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
  z-index: 1001;
  padding: 0;
}
.map-legend-toggle svg {
  width: 20px;
  height: 20px;
}
.map-legend-toggle:hover {
  background: #0f8ef5;
  color: #fff;
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(15, 142, 245, 0.3);
}
.map-legend-toggle:active {
  transform: scale(0.95);
}

.map-legend {
  background: rgba(255, 255, 255, 0.95);
  padding: 0.75rem;
  border-radius: 0.5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  font-size: 0.875rem;
  line-height: 1.4;
  margin-bottom: 40px;
  transition: all 0.3s ease;
}
.map-legend .map-legend-content {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.map-legend .map-legend-title {
  font-weight: 700;
  color: #034561;
  margin-bottom: 0.25rem;
  font-size: 0.9rem;
  border-bottom: 1px solid #e5e7eb;
  padding-bottom: 0.5rem;
}
.map-legend .map-legend-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.map-legend .map-legend-marker {
  position: relative;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}
.map-legend .map-legend-marker::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(45deg);
  width: 90%;
  height: 70%;
  background: #fff;
  border-radius: 50%;
}
.map-legend .map-legend-marker span {
  position: relative;
  z-index: 1;
  transform: rotate(45deg);
  font-weight: 700;
}
.map-legend .map-legend-label {
  color: #034561;
  font-weight: 500;
  white-space: nowrap;
}

@media screen and (max-width: 900px) {
  .school-rating-view-controls .view-toggle-btn {
    padding: 0.6rem 1rem;
    font-size: 0.9rem;
  }
  .school-rating-view-controls .view-toggle-btn svg {
    width: 32px;
    height: 32px;
  }

  .contest-type-toggle-group .contest-type-toggle-btn {
    width: 62px;
  }
  .contest-type-toggle-group .contest-type-toggle-btn svg {
    width: 38px;
    height: 38px;
  }

  .school-popup {
    min-width: 250px;
    padding: 0.75rem;
  }
  .school-popup-header {
    gap: 0.5rem;
    margin-bottom: 0.5rem;
  }
  .school-popup-position {
    width: 32px;
    height: 32px;
    font-size: 0.9rem;
  }
  .school-popup-award-icon {
    width: 24px;
    height: 24px;
    top: -16px;
  }
  .school-popup-title {
    font-size: 0.85rem;
    line-height: 1.2;
  }
  .school-popup-address {
    font-size: 0.8rem;
    margin-bottom: 0.5rem;
    line-height: 1.3;
  }
  .school-popup-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.25rem;
    margin-bottom: 0.5rem;
    padding: 0.25rem;
  }
  .school-popup-stats .school-popup-stat {
    padding: 0.2rem 0.3rem;
    gap: 0.25rem;
  }
  .school-popup-stats .school-popup-stat .stat-label {
    font-size: 0.6rem;
    letter-spacing: 0.2px;
  }
  .school-popup-stats .school-popup-stat .stat-value {
    font-size: 0.85rem;
  }
  .school-popup-link {
    padding: 0.5rem 0.75rem;
    font-size: 0.9rem;
  }

  .sr-tab-btn {
    font-size: 1.2rem;
    padding: 1rem 0.75rem;
  }

  .td.number {
    font-size: 0.9rem !important;
  }
  .td.learner .learner-name {
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica Neue, Arial, Noto Sans, sans-serif, Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol, Noto Color Emoji;
    font-size: 0.9rem !important;
  }

  .rating__filter-search__add-info {
    width: 100%;
    text-align: center;
    margin: 0 !important;
    font-size: 18px !important;
  }

  .rating__filter__note {
    display: none !important;
  }

  .content__form-school-rating {
    max-width: 100%;
    margin: 0 auto 15px;
  }

  .rating__rate-table-wrapper {
    margin-top: 20px;
  }
  .rating__rate-table-wrapper h3 strong {
    font-size: 0.75em;
    line-height: 1.2em;
  }

  .rating__filter-search {
    flex-wrap: wrap;
  }

  .news-content__difficulty-levels__card {
    padding: 10px 40px 15px !important;
  }

  .content {
    overflow-x: auto;
  }

  .school__teachers__with__excellent__student__results-table {
    font-size: 0.8em;
  }

  .not__participated__competitions__wrapper li {
    font-size: 1.3rem;
  }
}
