.container {
  position: relative;
}
@media (min-width: 992px) {
  .container {
    min-width: 90%;
    max-width: 90%;
  }
}

.edu-categories-filter .btn {
  margin: 0.25rem;
}

.container-inner {
  margin-block: 8rem;
  margin-inline: auto;
  width: min(95%, 1550px);
}

.padded {
  padding-top: 1.5rem;
  font-size: calc(0.25vw + 16px);

  & h2 {
    padding-block: 2rem;
  }

  & li {
    margin-bottom: 1.5rem;
    font-size: calc(0.5vw + 16px);
    line-height: 1.3;
    &::marker {
      font-size: 2rem;
      color: var(--prime2);
    }
  }

  & li b {
    display: inline-block;
    font-weight: 400;
    min-width: 170px;
  }

  & li span {
    display: flex;
    padding-right: 10px;
  }

  &.town {
    & ul {
      list-style-type: none;
      padding-right: 0;
    }
    & li {
      display: flex;
    }
  }
}
.leaflet-popup-content b {
  font-size: 1.2rem;
}
.show-all {
  display: flex;
  flex-wrap: wrap;

  & a {
    position: relative;
    display: flex;
    background-size: cover;
    background-position: center;
    margin-bottom: 1rem;
    aspect-ratio: 3 / 2;
    border-radius: 1rem;
    align-items: flex-end;
    overflow: hidden;
  }

  & .name {
    background-color: rgb(from var(--prime1) r g b / 0.875);
    color: #fff;
    width: 100%;
    text-align: center;
    padding: 0.25rem;
    z-index: 1;
    backdrop-filter: blur(3px);
  }

  & h2 {
    font-size: calc(0.35vw + 16px);
  }

  & .grade {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 90%;
    background: linear-gradient(
      0deg,
      rgb(from var(--prime1) r g b / 0.47) 0%,
      rgb(14 186 209 / 0.15) 100%
    );
    mix-blend-mode: multiply;
  }
}

.graphic {
  justify-content: space-between;
  align-items: center;
  position: absolute;
  top: -6rem;

  & a {
    padding: 1.5rem;
    margin-top: 2.5rem;
    display: inline-block;
    font-size: 1.3rem;
  }

  & i {
    font-size: 0.9rem;
  }
}
.symbol {
  width: 190px;
  position: relative;
  box-shadow: rgba(0, 0, 0, 0.35) 0px 5px 15px;

  z-index: 40;
  border-radius: 100vw;
  background-color: #fff;
  padding: 0.25rem;
  aspect-ratio: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;

  & img {
    width: 97%;
    object-fit: contain;
  }

  &.town {
    margin-top: -110px;
  }
}
.leaflet-container a.leaflet-popup-close-button {
  display: flex;
  justify-content: center;
}
.townsmap {
  min-height: 93vh;
  border: 2px solid var(--prime1);
  & a {
    font-size: 1rem;
    border-radius: 2px;
  }
}
@media (max-width: 1199px) {
  .show-all {
    flex-direction: column-reverse;
    align-items: center;
    gap: 2rem;
  }
  .show-all > div[class^="col-"] {
    flex: 1 0 100%;
    max-width: 100%;
  }
  .townsmap {
    width: 100%;
    min-height: 50vh;
    position: relative;
  }
}
.mapped {
  position: relative;

  & #map {
    z-index: 49;
  }

  & .map-select {
    position: absolute;
    left: 2rem;
    bottom: 2rem;
    border-radius: 50px;
    padding: 0.25rem 1rem;
    z-index: 50;
  }

  & iframe {
    border-radius: 20px;
  }
}

.lines {
  margin-block: 2rem;
  padding-block: 1rem;

  & > div:first-child {
    padding-left: 3rem;
    border-left: 1px solid var(--prime1-light);
  }

  & > .col:first-child {
    border-left: none;
  }

  & h2 {
    margin-block: 3rem;
  }

  & .wrap {
    border-top: 1px solid var(--prime1-light);
    padding-block: 1rem;
    margin-bottom: 3rem;

    & p {
      font-size: calc(0.25vw + 16px);
    }
  }

  & .inner {
    padding: 1rem;
    position: relative;
  }

  & .inner .row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
  }

  & .inner > .all {
    display: flex;
    justify-content: flex-end;
    padding: 0.5rem 2rem;
    font-size: 1.2rem;
    color: var(--prime1);
  }

  & ._blank {
    position: absolute;
    height: 0;
    width: 0;
    border: none;
  }
}

/** if _blank column display as row**/
.Popup-gallerymagnific .row {
  gap: 1rem;
  justify-content: space-around;
}
.template_icons {
  margin-block: 8rem;
  color: #fff;
  corner-shape: squircle;
  border-radius: 40px;
  padding: 1rem;
  background: linear-gradient(
    0deg,
    rgba(109, 174, 44, 1) 28%,
    rgba(165, 212, 57, 1) 89%
  );

  & .wrap {
    corner-shape: squircle;
    width: 100%;
    border-radius: 30px;
    border: 1px solid #ffffff9f;
    padding: 2rem;
  }

  & .h2 {
    display: flex;
    justify-content: center;
    text-align: center;
    font-weight: 900;
    font-size: calc(1.8vw + 16px);
    margin-top: 1.5rem;
    margin-bottom: 3rem;
  }
  & .listing {
    width: 95%;
    margin: auto;
    display: flex;
    justify-content: space-between;
    font-size: 1.52rem;
    font-weight: 500;
    margin-bottom: 1rem;
    gap: 1rem;
    flex-wrap: wrap;
  }
  & .item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    line-height: 1;
    flex: 1;
  }

  & .item:last-child {
    margin-left: auto;
  }

  & img {
    object-fit: cover;
    margin-bottom: 1rem;
    aspect-ratio: 1;
    width: 75px;
  }
}

/**/
.rich-content.custom-faq {
  padding-block: 1rem;
  border-top: 1px solid var(--prime1-light);
}
.rich-content.custom-faq .faq {
  position: relative;
  border-radius: 0;
  border: none;
  border: none;
}
.rich-content.custom-faq .faq::after {
  content: "";
  position: absolute;
  bottom: -16px;
  height: 1px;
  width: 100%;
  right: 0;
  background-color: var(--prime1-light);
}
.rich-content.custom-faq .faq-h2 {
  display: none;
}
.rich-content.custom-faq .faq-h3:before {
  content: "\f055";
  border: none;
  background: white;
  color: var(--prime1-light);
  top: 22px;
}
.rich-content.custom-faq .faq.opened .faq-h3:before {
  content: "\f057";
  content: "";
  color: var(--prime1-light);
  border: none;
}
.rich-content.custom-faq h3.faq-h3 {
  color: var(--prime1);
  font-weight: 700;
  font-size: calc(0.925vw + 16px);
}
.rich-content.custom-faq a:hover h3.faq-h3 {
  color: var(--prime1-light);
}
.rich-content.custom-faq .faq.opened h3.faq-h3 {
  background: transparent;
  color: var(--prime1);
}
.rich-content.custom-faq a:hover h3.faq-h3 {
  color: var(--prime1-light);
  background-color: transparent;
}

li::marker {
  font-size: 2rem;
  color: var(--prime2);
}
.custom-faq .faq .answer {
  font-size: 1.2rem;
}

.topics {
  margin-block: 8rem;
  & a {
    padding: 1rem 1.25rem;
    position: relative;
    display: flex;
    align-items: flex-end;
    background-size: cover;
    background-position: center;
    aspect-ratio: 16 / 7;
    border-radius: 30px;
    overflow: hidden;
  }

  & i {
    font-size: 1.1rem;
    margin-right: 8px;
  }

  & a::after {
    content: "";
    position: absolute;
    inset: 0;
    margin: auto;
    width: 100%;
    height: 100%;
    background: linear-gradient(
      0deg,
      rgb(87 124 5 / 0.85) 12%,
      rgba(255, 255, 255, 0) 75%
    );
  }

  & div:nth-child(2) a {
    & h2 {
      justify-content: center;
    }
  }

  & div:nth-child(3) a {
    & h2 {
      justify-content: flex-end;
    }
  }

  & h2 {
    width: 100%;
    position: relative;
    z-index: 1;
    color: #fff;
    font-size: 1.7rem;
    font-weight: 700;
    display: flex;
    align-items: center;
  }
}
.page-phonebook {
  margin-top: 1.5rem;
  background-color: #fff;
  overflow: hidden;
  border-radius: 40px;
}
.phones .colorful {
  font-size: calc(1.1vw + 16px);
}
.phones .page-phonebook .phonebook .info {
  background: transparent;
  background-color: transparent;
}

.phones .page-phonebook .phonebook.active {
  border-radius: 40px;
  border: 1px solid var(--prime1-light);
  overflow: hidden;
}

.page-phonebook .phonebook.active > h2 {
  background-color: var(--prime1-light);
  padding: 1.5rem;
  font-size: calc(0.35vw + 16px);
  font-weight: 700;
}
.page-phonebook .phonebook .info {
  padding: 0;
}
.page-phonebook .phonebook .info > div {
  padding: 1rem;

  & hr {
    margin: 0;
    border-top: transparent;
  }

  &:nth-of-type(odd) {
    background-color: #f0fafe;
  }

  &:nth-of-type(odd):has(.page-phonebook-category) {
    border-bottom-left-radius: 40px;
    border-bottom-right-radius: 40px;
  }
  .page-phonebook-category {
    border: 1px solid var(--prime1-light);
    border-radius: 50;
    overflow: hidden;
  }
  .page-phonebook-category-body {
    border-color: transparent;
    padding: 0;

    & > div:nth-of-type(odd) {
      background-color: #f0fafe;
    }
    & > div {
      padding: 1rem;
    }
  }
}

.page-phonebook .phone .fa-stack {
  color: var(--prime1-light);
}

.page-phonebook .mobile .fa-stack {
  color: var(--prime1-light);
}

.page-phonebook .email .fa-stack {
  color: var(--prime1-light);
}

.page-phonebook .fax .fa-stack {
  color: var(--prime1-light);
}

/**/
.articles {
  margin-top: 8rem;
  position: relative;

  & .gradient {
    position: absolute;
    inset: 0;
    margin: auto;
    width: 100%;
    border-radius: 40px;
    height: 100%;
    background: linear-gradient(
      180deg,
      rgba(4, 213, 28, 0) 0%,
      rgb(79, 132, 36) 75%
    );
  }

  & .grid-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr) 1fr;
    grid-template-rows: repeat(2, 1fr);
    grid-column-gap: 40px;
    grid-row-gap: 40px;
    height: 520px;

    @media (max-width: 1600px) {
      height: 55vh;
    }

    & > div {
      position: relative;
      border-radius: 40px;
      display: flex;
      flex-direction: column;
      justify-content: flex-end;
      padding: 2rem;
      background-size: cover;
      background-position: center;
    }
  }

  & .info {
    position: relative;
    color: #fff;
    font-size: calc(0.15vw + 16px);

    & a {
      color: #fff;
    }

    & h3 {
      font-size: calc(0.5vw + 16px);
      margin-bottom: 0;
      position: relative;
      font-weight: 900;

      &::after {
        position: absolute;
        content: "";
        content: none;
        bottom: -1rem;
        width: 100px;
        height: 4px;
        right: 0;
        border-radius: 5px;
        background-color: var(--prime2);
      }
    }
  }

  & .div1 {
    grid-area: 1 / 1 / 3 / 3;

    & h3 {
      width: 84%;
      font-size: calc(1.15vw + 16px);
      line-height: 1;
    }
  }

  & .div2 {
    grid-area: 1 / 3 / 2 / 4;
  }

  & .div3 {
    grid-area: 2 / 3 / 3 / 4;
  }

  & em {
    color: var(--prime2);
    margin-left: 10px;
  }

  & .time {
    margin-right: 1rem;
  }
}

@media (max-width: 1600px) {
  .template_icons {
    & .wrap {
      padding-inline: 5px;
    }
    & .listing {
      width: 100%;
    }
    & .item {
      padding-inline: 5px;
    }
  }
}

@media (max-width: 991px) {
  .flex-row-reverse {
    flex-direction: column !important;
  }
  .page-content-body {
    padding: 0;
  }
  .container-inner {
    margin-block: 4rem;
  }
  .symbol {
    width: 120px;
  }
  .topics {
    gap: 1rem;
    margin-block: 4rem;

    & div:nth-child(2) a {
      & h2 {
        justify-content: flex-start;
      }
    }
    & div:nth-child(3) a {
      & h2 {
        justify-content: flex-start;
      }
    }
  }
  .template_icons {
    margin-block: 5rem;
    & .wrap {
      padding: 0.75rem;
    }
    & .listing {
      flex-wrap: wrap;
      gap: 3rem 1rem;
    }

    & .item {
      flex: 1;
    }
  }
  .lines {
    & > div:first-child {
      border-left: none;
    }
  }
  .phones .page-phonebook .phonebook .info div[class^="col-"] {
    display: flex;
    flex-direction: column;
  }
  .articles .grid-row {
    display: flex;
    flex-direction: column;
    height: auto;

    & div {
      min-height: 150px;
      display: flex;
    }
    & a {
      margin-top: auto;
    }
  }
  .padded {
    padding-top: 0.5rem;

    &.edu {
      padding-top: 3.5rem;
    }
  }
}

@media (max-width: 767px) {
  .padded {
    & li {
      display: block;

      & b {
        font-weight: 700;
      }
      & span {
        padding-right: 0;
      }
    }
  }
  .custom-faq .faq .answer {
    padding: 10px 0;
  }
}
