/********************************

Grid SCSS can be found in
/scss/components/_hex-grid.scss

********************************/

display:flex;
--s: 200px;  /* size  */
--m: 5px;    /* margin */
--f: calc(1.732 * var(--s) + 4 * var(--m)  - 1px);
}
.hex-main.big {
  display:flex;
  --s: 220px;  /* size  */
  --m: 7px;    /* margin */
  --f: calc(1.732 * var(--s) + 4 * var(--m)  - 1px);
}
@media (max-width: 767px) {
  .hex-main.big {
    display:flex;
    --s: 200px;  /* size  */
    --m: 5px;    /* margin */
    --f: calc(1.732 * var(--s) + 4 * var(--m)  - 1px);
  }
}

.hex-container {
  font-size: 0;
  filter: drop-shadow(0 0 10px rgba(68, 68, 68, .08));
  margin-bottom: 15%;
}
.hex-main.small .hex-container {
  margin-bottom: 15%;
}
.hex-container .hex-content {
  position: relative;
  width: var(--s);
  margin: var(--m);
  height: calc(var(--s)*1.1547);
  display: inline-block;
  font-size: initial;
  clip-path: polygon(0% 25%, 0% 75%, 50% 100%, 100% 75%, 100% 25%, 50% 0%);
  background: #fff;
  margin-bottom: calc(var(--m) - var(--s)*0.2885);
  transition: all 0.3s ease-in-out;
}
.hex-container .hex-content.activated-link {
  cursor: pointer;
}
.inactive-link .int-card--arrow {
  display: none
}
.hex-container .hex-content:before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 90%;
  height: 90%;
  z-index: -1;
  background: #fff;
  clip-path: polygon(0% 25%, 0% 75%, 50% 100%, 100% 75%, 100% 25%, 50% 0%);
  transform: translate(-50%, -50%);
}
.hex-container .hex-content .hex-image-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 0;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}
.hex-container .hex-content.activated-link:hover .hex-image-container a img{
  display: none;
}
.hex-main.small .hex-container .hex-content .hex-image-container img {
  max-width: 120px!important;
  max-height: 90px!important;
}
.hex-main.big .hex-container .hex-content .hex-image-container img {
  max-width: 150px!important;
  max-height: 120px!important;
}

/* FILTER */
.hex-filter {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
  margin: 40px 0 60px;
}
.filter-button {
  color: #000;
  min-width: 190px;
  margin: 0 10px;
  padding: 15px 20px;
  font-weight: 500;
  border: 2px solid #000;
  border-radius: 10px;
  transition: all .3s ease-in-out;
  text-align: center;
}
.filter-button:not(.active):first-child {
  border-color: #FC4799;
}
.filter-button:not(.active):first-child:hover {
  border-color: #000;
}
.filter-button.active {
  background-color: #000;
  color: #fff;
  border-color: #000;
  font-weight: 500;
}
.filter-button.active:hover {
  font-weight: 500;
}
.filter-button:hover {
  background-color: #000;
  color: #fff;
  font-weight: 500;
  border: 2px solid #000;
  cursor: pointer;
}
.hex-content.hide {
  display: none;
}
.hex-content.show {
  display: inline-block;
}

@media (max-width: 1023px) {
  .hex-main.small {
    display: block;
    margin-top: 1rem;
  }
  .hex-main.big {
    display: block;
  }
  .hex-container {
    display: flex;
    flex-flow: row wrap;
    justify-content: space-between;
    width: 100%;
  }
  .hex-container::before {
    display: none;
  }
  .hex-container .hex-content {
    position: relative;
    width: calc(50% - .5rem);
    margin: 0 0 1rem;
    height: auto;
    min-height: 100px;
    display: none;
    font-size: initial;
    clip-path: inherit;
    background: #fff;
  }
  .hex-container .hex-content.show {
    display: block;
  }
  .hex-container .hex-content::before {
    display: none;
  }
  .hex-container .hex-content .hex-image-container {
    position: relative;
  }
}

@media (max-width: 767px) {
  .hex-filter {
    justify-content: space-between;
    flex-wrap: wrap;
    margin: 0;
  }
  .hex-filter .filter-button {
    width: calc(50% - 1rem);
    margin: 0 0 10px 0;
  }
}

@media (max-width: 480px) {
  .hex-filter .filter-button {
    width: 100%;
  }
}

/* new design */
.int-cards--container {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 30px;
}
.hex-image-container {
  background-color: #f5f5f5;
  border-radius: 20px;
  height: 100%;
  transition: all 0.2s;
}
.hex-image-container:hover {
  background-image: url('https://www.nobl9.com/hubfs/int-cards-gradient-bg-min.png');
  background-size: cover;
  background-position: center;
  transition: all 0.2s;
}
.hex-image-container:hover .hex-image-container--link {
  color: #fff;
}
.hex-image-container .hex-image-container--link {
  display: block;
  padding: 20px 20px 40px 20px;
  text-decoration: none;
  color: #000;
}
.int-card--top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.int-card--name {
  font-size: 18px;
  line-height: 1.4em;
  font-weight: bold;
  margin: 15px 0;
}
.int-card--description,
.int-card--description p {
  font-size: 15px;
  margin: 0;
}
.int-card--image {
  width: 55px;
  height: 55px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #fff;
  border-radius: 10px;
  padding: 5.5px;
}
.int-card--image img {
  max-width: 44px !important;
  max-height: 44px;
  border-radius: 10px;
  font-size: 20px;
}
.int-card--arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background-color: #fff;
  border-radius: 50%;
  position: relative;
  transition: all 0.2s;
}
.int-card--arrow:hover {
  background-color: #FC4799;
  transition: all 0.2s;
}
.int-card--arrow::before {
  content: '';
  position: absolute;
  background-image: url('https://www.nobl9.com/hubfs/Icons/arrow-right-int.svg');
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
  width: 22px;
  height: 22px;
  transition: all 0.2s;
}
.int-card--arrow:hover::before {
  filter:  brightness(0) invert(1);
  transition: all 0.2s;
}
@media screen and (max-width: 980px) {
  .int-cards--container {
    grid-template-columns: repeat(3,1fr);
  }
}
@media screen and (max-width: 700px) {
  .int-cards--container {
    grid-template-columns: repeat(2,1fr);
  }
}
@media screen and (max-width: 480px) {
  .int-cards--container {
    grid-template-columns: auto;
  }
}

