:root {
  --col1: #fdb813;
  --col2: #445674;
  --col3: #19499a;
  --col4: #00b4d8;
  --col5: #006431;
  --col6: #ffdd79;
  --col7: #94c435;
}
.phonebook .mobile {
  display: inline-flex;
}
.box > div:first-child {
  display: flex;
  gap: 10px;
  overflow: hidden;
  gap: 1rem;
  margin-bottom: 1rem;
}
.box .tit {
  display: flex;
  flex-direction: column;
  margin-top: auto;
}
.box > div:first-child h2 {
  font-size: 2rem;
  margin-bottom: 0;
  line-height: 1.1;
}

.box .pic img {
  width: 120px;
  height: 120px;
  object-fit: cover;
  padding: 2px;
  border-radius: 100vw;
  object-position: center;
  border: 2px solid var(--site1);
}

.divider {
  height: 2px;
  background-color: var(--site1);
  width: 70%;
  margin-bottom: 1rem;
}
.box p {
  text-align: justify;
}
.page-content-body-side {
  padding-inline: 2.5rem;
  border-right: #b0e3ed 1px solid;
}
.page-content-body-side > div {
  position: relative;
}
.page-content-body-side > div:not(:first-of-type) {
  border-top: 1px solid #b0e3ed;
  padding-block: 2rem;
}

.page-content-body-side > div:not(.box) h2 {
  color: var(--site1);
  font-weight: 700;
  font-size: 2.5rem;
  margin-bottom: 1.2rem;
}

.page-content-body-side .box + div p {
  font-size: 1.2rem;
}
.page-content-body-side .box + div p span {
  margin-left: 1rem;
}

.rich-content .btn-primary,
.rich-content a.btn-primary .rich-content .btn.btn-primary {
  background-color: var(--site2);
  border-color: var(--site2);
  border-radius: 50px;
  padding: 12px 20px;
  font-weight: 500;
  font-size: 1.2rem;
  margin: 1.5rem;
}

.page-content-body-side .icon {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  right: -70px;
  height: 59px;
  width: 59px;
  z-index: 1;
  display: grid;
  place-content: center;

  & i {
    background-color: #fff;
    font-size: 2.5rem;
    color: var(--site2);
  }
}

h2:has(i) i {
  color: var(--site2);
}
h2,
.rich-content h2,
.rich-content h3,
.rich-content h4 {
  color: var(--site2);
}

.rich-content {
  padding-left: 3.25rem;
}

/* START OF GRID */
.sub-pages-nav ul {
  list-style: none;
  padding: 0;
  margin: 0 -1rem;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  /* display: grid;
  grid-template-columns: repeat(3, 1fr); */
}

.sub-pages-nav ul > li {
  position: relative;
  padding: 0.5rem;
  flex: 1 0 50%;
  max-width: 50%;
  min-width: 200px;

  @media (max-width: 1150px) {
    flex: 1 1 100%;
    max-width: 100%;
  }
}
/** CSS HACK **/
.sub-pages-nav ul::after {
  content: "";
  flex: 1 0 50%;
  max-width: 50%;
  min-width: 200px;
  padding: 0.5rem;
  visibility: hidden;
}
.sub-pages-nav ul li:last-child::after {
  content: "";
  position: relative;
  display: inline-block;
  width: 100%;
  height: 0;
  visibility: hidden;
}
.sub-pages-nav ul > li::after {
  content: "";
  content: none;
  position: absolute;
  right: 10px;
  height: calc(90% - 1rem);
  background: var(--site1);
  top: 50%;
  transform: translateY(-50%);
  width: 5px;
  border-radius: 0 50px 50px 0;
}

.sub-pages-nav ul > li:nth-child(7n + 1) a .icon {
  background: var(--col1);
}
.sub-pages-nav ul > li:nth-child(7n + 2) a .icon {
  background: var(--col2);
}
.sub-pages-nav ul > li:nth-child(7n + 3) a .icon {
  background: var(--col3);
}
.sub-pages-nav ul > li:nth-child(7n + 4) a .icon {
  background: var(--col4);
}
.sub-pages-nav ul > li:nth-child(7n + 5) a .icon {
  background: var(--col5);
}
.sub-pages-nav ul > li:nth-child(7n + 6) a .icon {
  background: var(--col6);
}
.sub-pages-nav ul > li:nth-child(7n + 7) a .icon {
  background: var(--col7);
}
.sub-pages-nav a {
  display: block;
  color: var(--text);
  font-size: 1.4rem;
  border: none;
  padding: 2px;
  background-color: #ffffff;
  border-radius: 18px;
  box-shadow: rgba(100, 100, 111, 0.2) 0px 7px 29px 0px;
}
.sub-pages-nav li a {
  position: relative;
  display: flex;
}
.sub-pages-nav li a .fa-external-link {
  color: var(--site7);
  font-size: 0.8rem;
  margin-top: 5px;
  position: absolute;
  left: 0.5rem;
}
.sub-pages-nav li a:hover {
  border-color: #a0a0a0;
  box-shadow: 0 0 9px rgba(172, 172, 172, 0.2);
  .arrow {
    inset-inline-end: 9px;
    color: #a0a0a0;
  }
}
.sub-pages-nav a .icon {
  position: relative;
  border-radius: 0 15px 15px 0;
  padding: 0;
  width: 22px;
}
.sub-pages-nav a > span {
  display: table-cell;
  vertical-align: middle;
  padding: 1.1rem 0.75rem;
  /*white-space: nowrap;*/
  /*overflow: hidden;*/
  /*text-overflow: ellipsis;*/
  width: 98%;

  @media (max-width: 387px) {
    white-space: normal;
    overflow: hidden;
    text-overflow: initial;
  }
}

.sub-pages-nav .arrow {
  font-family: "FontAwesome";
  font-style: normal;
  float: left;
  margin-right: 10px;
  color: #b6b6b6;
  position: absolute;
  inset-inline-end: 15px;
  transition: all 0.2s ease-out;
}

/* END OF GRID */

@media (max-width: 991px) {
  .page-content-body > .row {
    flex-direction: column-reverse;
  }
  .page-content-body-side {
    flex: 1 0 100%;
    max-width: 100%;
    border-right: none;
  }
  .page-content-body-side .icon {
    & i {
      display: none;
    }
  }
}
