@import url("https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500;1,600;1,700&display=swap");
* {
  font-family: "Montserrat", sans-serif;
  transition: 0.2s ease-in-out;
}

body {
  margin: 0;
}
.container {
  box-sizing: border-box;
  max-width: 1040px;
}
strong {
  font-weight: 700;
}
.highlight {
  text-transform: uppercase;
  font-weight: bold;
}

/* HEADINGS */
h1,
h2,
h3,
h4 {
  font-weight: 500;
}
h2,
h3,
h4 {
  text-transform: uppercase;
}
h1 {
  font-size: 48px;
}
h2 {
  font-size: 34px;
}
h3 {
  font-size: 18px;
  font-weight: 700;
}
h4 {
  font-size: 18px;
}
/* PARAGRAPS */
p,
a {
  color: #000;
}
img {
  max-width: 100%;
}

.text-center {
  text-align: center;
}

/* HEADER */
header > div {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-content: center;
  row-gap: 27px;
  text-align: center;
  position: relative;
}
/* TOGGLER */
div:has(>.toggler) {
  width: 100%;
  position: relative;
  text-align: left;
}
.toggler {
  position: absolute;
  top: calc(50% - 23px);
  right: 0px;
  z-index: 100000000;

  display: flex;
  flex-direction: column;
  align-items: flex-end;
}
/* TOGGLER BUTTON */
.toggler .togglerButton {
  display: flex;
  align-items: center;
  flex-direction: row;
  column-gap: 0px;
  padding: 0px 5px;
  background-color: #fff;
  /* border: 1px solid #fff; */
  border-radius: 10px;
  overflow: hidden;
  max-width: 30px;
  box-sizing: border-box;
  height: 32px;
  width: 32px;
}
.toggler * {
  color: #000;
}
.toggler .togglerButton:hover {
  cursor: pointer;
}
.toggler.active .togglerButton {
  /* border-color: #000; */
  column-gap: 32px;
  padding-right: 40px;
  max-width: 100%;
}
.togglerIcon {
  position: relative;
  width: 30px;
  height: 26px;
  display: block;
  background: #fff;
}
.toggler span:not(.textToggler) {
  width: 30px;
  height: 6px;
  border-radius: 14px;
  background: #000;
  position: absolute;
  left: 0;
  opacity: 1;
}
.toggler .textToggler {
  font-size: 20px;
  font-weight: 700;
  text-transform: uppercase;
  opacity: 0;
}
.toggler.active .textToggler {
  display: block;
  opacity: 1;
}
.toggler .togglerIcon span:first-child {
  top: 0;
}
.toggler .togglerIcon span:nth-child(2) {
  top: calc(50% - 3px);
}
.toggler .togglerIcon span:last-child {
  bottom: 0;
}
.toggler.active .togglerIcon span:first-child {
  top: calc(50% - 3px);
  transform: rotate(-45deg);
}
.toggler.active .togglerIcon span:nth-child(2) {
  opacity: 0;
}
.toggler.active .togglerIcon span:last-child {
  bottom: calc(50% - 3px);
  transform: rotate(45deg);
}
/* END TOGGLER BUTTON */

/* TOGGLER NAV */
.toggler nav {
  background: #fff;
  border-radius: 10px;
  position: absolute;
  right: 0;
  top: 60px;
  z-index: 10000;
  display: none;
  opacity: 0;
  overflow: hidden;
}
.toggler.active nav {
  display: block;
  animation: showNav 0.2s;
  animation-fill-mode: forwards;
}
.toggler.deactive nav {
  display: block;
  animation: hideNav 0.2s;
  animation-fill-mode: forwards;
}
.toggler ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  width: 90vw;
  padding: 0;
  margin: 0;
}
.toggler .navigation a {
  display: block;
  text-decoration: none;
  padding: 12px 40px;

  font-size: 20px;
  font-weight: 700;
  line-height: 24px;
  text-align: right;
}
.toggler .navigation li,
.toggler .navigation a {
  width: 100%;
  box-sizing: border-box;
}
.toggler .navigation a:hover {
  background: #dadada;
}
.toggler .navigation > li > a {
  position: relative;
}
.toggler .navigation i {
  position: absolute;
  top: calc(50% - 10px);
  left: 14px;
}
.toggler .withSubNav .subNavigation {
  max-height: 0;
  overflow: hidden;
  display: block;
}
.toggler .withSubNav.active i {
  transform: rotate(180deg);
}
.toggler .withSubNav.active .subNavigation {
  max-height: 100%;
}

@media (max-width: 991px) {
  .logo img {
    max-height: 67px;
  }
  /* TOGGLER */
  .toggler.active .togglerButton {
    /* border-color: #fff; */
    column-gap: 0px;
    padding: 6px 6px;
  }
  .togglerIcon {
    height: 18px;
  }
  .toggler span:not(.textToggler) {
    width: 20px;
    height: 4px;
  }
  .toggler .togglerIcon span:nth-child(2) {
    top: calc(50% - 2px);
  }
  .toggler.active .togglerIcon span:last-child {
    bottom: calc(50% - 2px);
    transform: rotate(45deg);
  }
  .toggler.active .togglerIcon span:first-child {
    top: calc(50% - 2px);
    transform: rotate(-45deg);
  }
  .toggler.active .textToggler {
    display: none;
    opacity: 0;
  }
  .toggler.active nav {
    top: 40px;
  }
  /* END TOGGLER */
}
@media (min-width: 768px) {
    .hide-pc {
        display: none !important;
    }
    .md-flex-row-reverse {
      display: flex;
      flex-direction: row-reverse;
    }
}
@media (max-width: 767px) {
  .hide-mobile {
    display: none !important;
  }
  .logo img {
    max-height: 67px;
  }
  /* TOGGLER */
  .toggler.active .togglerButton {
    /* border-color: #fff; */
    column-gap: 0px;
    padding-right: 5px;
  }
  .togglerIcon {
    height: 18px;
  }
  .toggler span:not(.textToggler) {
    width: 20px;
    height: 4px;
  }
  .toggler .togglerIcon span:nth-child(2) {
    top: calc(50% - 2px);
  }
  .toggler.active .togglerIcon span:last-child {
    bottom: calc(50% - 2px);
    transform: rotate(45deg);
  }
  .toggler.active .togglerIcon span:first-child {
    top: calc(50% - 2px);
    transform: rotate(-45deg);
  }
  .toggler.active .textToggler {
    display: none;
    opacity: 0;
  }
  .toggler.active nav {
    top: 40px;
  }
  /* END TOGGLER */
  h1 {
    font-size: 22px;
  }
  h2 {
    font-size: 18px;
  }
  h4 {
    font-size: 12px;
  }
}
/* BLOG */
  .blogPosts {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
  }
  .blogPostCard {
    flex-basis: calc(33.333% - 47.5px);
    background: #fafafa;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 16px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    text-align: center;

    display: flex;
    flex-direction: column;
    flex-grow: 2;
  }
  .blogPostCard img {
    width: 100%;
    /* height: 400px; */
    height: auto;
    aspect-ratio: 3/2;
    object-fit: cover;
    border-radius: 8px;
  }
  @media (max-width: 991px) {
    .blogPostCard {
      flex-basis: calc(50% - 47.5px);
    }
  }
  @media (max-width: 575px) {
    .blogPostCard {
      flex-basis: 100%;
    }
    .blogPostCard img {
      height: auto;
      aspect-ratio: 3/2;
    }
  }
  .blogPostCard h3 {
    text-transform: none;
  }
  .blogPostCard .description {
    flex-grow: 2;
  }
  .blogPostCard hr {
    width: 100%;
  }
  .content-text img {
    max-height: 80vh;
    width: 100%;
    object-fit: cover;
  }
/* END BLOG */

/* PAGINATION */
  .pagination {
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: center;
    margin-top: 40px;
  }
  .pagination a {
    padding: 8px 12px;
    border: 1px solid #eee;
    border-radius: 4px;
    text-decoration: none;
    color: #333;
  }
  .pagination a:hover,
  .pagination a.active {
    background: #f0f0f0;
  }
/* END PAGINATION */

/* SEARCH */
  .searchNavigation {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    width: 100%;
    border-bottom: 1px solid #eee;
    margin-top: 10px;
    margin-bottom: 20px;
  }
  .searchNavigation a {
    padding: 8px 12px;
    text-decoration: none;
    color: #333;
    border-bottom: 2px solid transparent;
  }
  .searchNavigation a:hover,
  .searchNavigation a.active {
    border-color: var(--primary-color);
  }

  .searchResults {
    display: flex;
    flex-direction: column;
    gap: 20px;
  }
  .searchResultItem {
    display: flex;
    align-items: center;
    gap: 20px;
    width: 100%;
  }
  .searchResultItem img {
    width: 200px;
    max-width: 20%;
    aspect-ratio: 3/2;
    object-fit: cover;
    border-radius: 8px;
  }
  .searchResultItem .desc {
    flex-grow: 2;
  }
/* END SEARCH */

/* SUB PAGES NAV */
  .sub-pages-navi {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: space-around;
  }
  .sub-pages-navi .sub-page {
    flex-basis: 12%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
  }
  .sub-pages-navi .sub-page img {
    width: 75px;
  }
/* END SUB PAGES NAV */


/* ANIMATIONS */
@keyframes showNav {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes hideNav {
  0% {
    opacity: 1;
  }
  99% {
    opacity: 0;
    display: block;
  }
  100% {
    display: none;
  }
}