@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap');

*, * * {
  font-family: 'Inter', sans-serif;
}

/* Overwriters for designtool specific styling */
.grid-cell,
.category-title a {
  min-height: unset !important;
  font-size: 1.25rem !important;
}

.editor-message {
  display: none;
}

/* Hero */

.hero {
  height: 350px;
  overflow: hidden;
  margin-top: 1em !important;
}

.hero h2 {
  font-size: 2.25rem;
  font-weight: 500;
}

.hero p {
  font-size: 1.5rem;
}

.hero p,
.hero h2 {
  margin: 0 4.5rem 1rem;
  line-height: 36px;
}

.hero .grid-cell:first-child {
  padding: 5rem 0;
}

.hero-adjust {
  text-align: center;
  margin: 2.5rem 0;
  line-height: 1.2;
}

/* Premark */

.premark {
  margin-top: 2rem !important;
  height: 300px;
  overflow: hidden;
  grid-template-columns: 3fr 5fr !important;
  gap: 0 !important;
  cursor: pointer;
}

.m-text-article .premark .grid-cell:nth-child(1) {
  background-color: #212427;
  z-index: 2;
  padding: 2rem 3rem 2rem 2.5rem;
  position: relative;
  margin: 0;
}

.m-text-article .premark .grid-cell:nth-child(2),
.m-text-article .hero .grid-cell:nth-child(2) {
  margin: 0;
  background-size: 150%;
  z-index: 1;
  transition: transform 0.5s;
}

/* Category */

.category-title {
  display: flex;
  align-items: center;
  font-size: 1.25rem;
  width: 100%;
  height: 28%;
  background-color: #F9FFCC;
  position: absolute;
  bottom: 0;
  font-weight: 600;
  padding-left: 1rem;
}

.category-title a {
  margin-right: 30px;
}

  .citylife{
    margin-bottom: 2em;
  }

  .citylife > p{
    line-height: 1.4;
  }

/* Hover effects */

.premark:hover div:nth-child(2),
.category-link:hover p a img {
  transform: scale(1.01);
}

.category-link p a img {
  transition: transform 0.5s;
  position: unset !important;
}

/* Icons */

.cta_icon {
  position: relative;
  width: 24px;
}

.icon-animate {
  overflow: hidden;
  width: 35px;
  height: 28%;
  display: flex;
  align-items: center;
  padding-bottom: .5em;
  position: absolute;
  bottom: 2rem;
  right: 2rem;
}

.premark .icon-animate {
  height: 35px;
}

.category-link .cta_icon {
  width: 20px;
  transition: transform 0.5s;
}

.category-link .icon-animate {
  bottom: 0.4rem;
  right: 0.5rem;
}

.premark:hover .cta_icon,
.category-link:hover .cta_icon {
  animation: arrow-slide 0.8s ease;
}

@keyframes arrow-slide {
  0% { transform: translateX(0); opacity: 1; }
  40% { transform: translateX(20px); opacity: 0; }
  41% { transform: translateX(-20px); opacity: 0; }
  100% { transform: translateX(0); opacity: 1; }
}

/* Tablet large */

@media (min-width: 960px) and (max-width: 1280px) {

  .hero h2 { font-size: 1.8rem; }

  .hero p { font-size: 1.4rem; }

  .hero p,
  .hero h2 {
    margin: 0 4rem 1rem;
    line-height: 2.25rem;
  }

  .category-title a {
    font-size: .9rem !important;
  }

  .category-link .icon-animate {
    width: 18px;
    bottom: 0.3rem;
  }

  .category-link .icon-animate a img {
    width: 12px;
  }

  .ck-content .categories {
    gap: 0 !important;
  }
}

/* Tablet */

@media (min-width: 600px) and (max-width: 960px) {

  .hero {
    height: auto;
  }

  .hero .grid-cell:first-child {
    padding: 3rem 0;
  }

  .hero .grid-cell:last-child {
    height: auto;
    max-width: 51.3% !important;
    min-width: 51%;
    background-size: unset;
  }

  .hero h2 { font-size: 1.5rem; }

  .hero p { font-size: 1.25rem; }

  .hero p,
  .hero h2 {
    margin: 0 2rem 1rem;
    line-height: 2.25rem;
  }

  .ck-content .grid .category-link,
  .ck-content .hero .grid-cell {
    width: calc(47% - 8px);
  }

  .category-title a {
    font-size: 1.5rem !important;
  }

  .category-link .icon-animate {
    width: 25px;
    bottom: 0.3rem;
  }

  .category-link .icon-animate a img {
    width: 18px;
  }

  .ck-content .grid {
    gap: 0 !important;
  }

  .ck-content .grid:last-child{
    align-items: center;
  }
   .ck-content .grid:last-child .grid-cell{
    width: 95%;
  }

}

/* Mobile */

@media (min-width: 480px) and (max-width: 600px) {

  .hero {
    height: auto;
  }

  .hero .grid-cell:first-child {
    padding: 3rem 0;
  }

  .hero .grid-cell:last-child,
  .premark .grid-cell:last-child {
    height: 200px;
    background-size: unset;
    width: 100%;
  }

  .premark .grid-cell:last-child {
    background-size: 150% !important;
    background-position-y: 100% !important;
  }

  .hero h2 { font-size: 1.5rem; }

  .hero p { font-size: 1.25rem; }

  .hero p,
  .hero h2 {
    margin: 0 2rem 1rem;
    line-height: 2.25rem;
  }

  .ck-content .categories {
    flex-wrap: wrap;
    flex-direction: row;
  }

  .ck-content .categories .category-link {
    width: calc(44% - 12px);
  }

  .category-title a {
    font-size: 1.15rem !important;
  }

  .m-text-article .category-link {
    margin: 1em;
  }

  .category-link .icon-animate {
    width: 25px;
    bottom: 0.3rem;
  }

  .category-link .icon-animate a img {
    width: 15px;
  }

  .premark {
    height: 350px !important;
  }

  .ck-content .grid {
    gap: 0 !important;
  }
}

@media (max-width: 480px) {
  .hero {
    height: auto;
    display: none !important;
  }

  .hero h2{
    font-size: 1.5rem !important;
  }

   .hero p { font-size: 1.25rem; !important}

  .hero .grid-cell:first-child {
    padding: 3rem 0;
  }

  .hero .grid-cell:last-child,
  .premark .grid-cell:last-child {
    height: 200px;
    background-size: unset;
    width: 100%;
  }

  .category-title a {
    font-size: 1.5rem !important;
  }

  .premark .grid-cell:last-child {
    background-size: 150% !important;
    background-position-y: 100% !important;
  }

}