/*
	Abstracts are helpers, variables and functions
	for scss compliation.
*/
/*
	@TODO: Add to theme: new division fix for updated sass package.
*/
/**==================================================================================================================================
BREAKPOINT
@TODO: remove? What is use case?? either use simple global points or write custom line. why does first breakpoint have to be 0?
 ==================================================================================================================================*/
/**==================================================================================================================================
BREAKPOINT ENDS
==================================================================================================================================*/
span.edit-link {
  display: inline-block;
  background-color: yellow;
  font-weight: 600;
  position: fixed;
  left: 0;
  bottom: 3.125rem;
  transform: translateX(-45px);
  transition: all 0.2s;
}

span.edit-link a {
  display: block;
  padding: 0.9375rem;
}

span.edit-link:hover {
  transform: translateX(0);
}

/*
	Variables for compliation
	NB! Colors should be added to base/config file as css root variable.
*/
/**
 * Block section background colors.
 * Include the background options ACF fields group to use these.
 */
/**
 *	Fluid sized fonts
 *	Read more here:
 *	https://css-tricks.com/snippets/css/fluid-typography/
 */
/*
 * makes ul/ol as a dropdown select (normaly in mobile)
 * Structure: div > title > list > li > a
*/
/*
	Variables for legacy dc plugins
*/
:root {
  --spacing-block: 7.5rem;
  --spacing-block-small: 3rem;
  --spacing-content: 5rem;
  --spacing-grid-gap: 4rem;
  --element-width-wide: 2000px;
  --element-width-content: 950px;
  --element-width-text-narrow: 850px;
  --element-border-radius: 16px;
  --element-aspect-ratio: 3 / 2;
  --font-family: "Roboto", Helvetica, arial, sans-serif;
  --font-family-display: Georgia, serif;
  --font-size-ui: 14px;
  --font-size-ui-mobile: 12px;
  --color__white: rgb(252, 252, 252);
  --color__black: rgb(24, 24, 24);
  --color__grey: rgb(102, 102, 102);
  --color__grey-light: #EDEDED;
  --color__grey-light2: #d9d9d9;
  --color__grey-light-alt: rgb(217, 217, 217);
  --color__grey-lightest: rgb(248, 248, 248);
  --color__green: rgb(57, 115, 102);
  --color__green-dark: #397366;
  --color__green-light: rgb(215, 241, 236);
  --color__green-bright: #50B275;
  --color__mint-green: #A7D9CC;
  --color__green-light2: #EEF6F4;
  --color__green-lightest: rgb(243, 248, 247);
  --color__green-lime: rgb(232, 246, 213);
  --color__blue-light: rgb(208, 238, 252);
  --color__turqoise: #EDF7F5;
  --color__text: var(--color__grey);
  --color__green-light-new: #50B275;
  --color__green-light-new-2: #C5E1CC;
  --color__green-light-new-3: #397467;
  --color__new-bg: #EAEAEA;
}

body {
  background-color: var(--color__new-bg);
}

section.colorful-cards.awaiting-animation .card-wrapper > a {
  opacity: 0;
  transform: translateY(150px);
}

section.colorful-cards.should-animate .card-wrapper > a {
  opacity: 1;
  transform: translateY(0);
  transition: all 650ms ease-in-out;
}

section.colorful-cards.should-animate .card-wrapper > a:nth-child(1) {
  transition-delay: 150ms;
}

section.colorful-cards.should-animate .card-wrapper > a:nth-child(2) {
  transition-delay: 300ms;
}

section.colorful-cards.should-animate .card-wrapper > a:nth-child(3) {
  transition-delay: 450ms;
}

section.colorful-cards.should-animate .card-wrapper > a:nth-child(4) {
  transition-delay: 600ms;
}

section.colorful-cards.should-animate .card-wrapper > a:nth-child(5) {
  transition-delay: 750ms;
}

section.colorful-cards.should-animate .card-wrapper > a:nth-child(6) {
  transition-delay: 900ms;
}

section.colorful-cards.should-animate .card-wrapper > a:nth-child(7) {
  transition-delay: 1050ms;
}

section.colorful-cards.should-animate .card-wrapper > a:nth-child(8) {
  transition-delay: 1200ms;
}

section.colorful-cards.should-animate .card-wrapper > a:nth-child(9) {
  transition-delay: 1350ms;
}

section.colorful-cards.should-animate .card-wrapper > a:nth-child(10) {
  transition-delay: 1500ms;
}

section.colorful-cards.should-animate .card-wrapper > a:nth-child(11) {
  transition-delay: 1650ms;
}

section.colorful-cards.should-animate .card-wrapper > a:nth-child(12) {
  transition-delay: 1800ms;
}

section.colorful-cards.should-animate .card-wrapper > a:nth-child(13) {
  transition-delay: 1950ms;
}

section.colorful-cards.should-animate .card-wrapper > a:nth-child(14) {
  transition-delay: 2100ms;
}

section.colorful-cards.should-animate .card-wrapper > a:nth-child(15) {
  transition-delay: 2250ms;
}

section.colorful-cards.should-animate .card-wrapper > a:nth-child(16) {
  transition-delay: 2400ms;
}

section.colorful-cards.should-animate .card-wrapper > a:nth-child(17) {
  transition-delay: 2550ms;
}

section.colorful-cards.should-animate .card-wrapper > a:nth-child(18) {
  transition-delay: 2700ms;
}

section.colorful-cards.should-animate .card-wrapper > a:nth-child(19) {
  transition-delay: 2850ms;
}

section.colorful-cards.should-animate .card-wrapper > a:nth-child(20) {
  transition-delay: 3000ms;
}

section.colorful-cards.should-animate .card-wrapper > a:nth-child(21) {
  transition-delay: 3150ms;
}

section.colorful-cards.should-animate .card-wrapper > a:nth-child(22) {
  transition-delay: 3300ms;
}

section.colorful-cards.should-animate .card-wrapper > a:nth-child(23) {
  transition-delay: 3450ms;
}

section.colorful-cards.should-animate .card-wrapper > a:nth-child(24) {
  transition-delay: 3600ms;
}

section.colorful-cards.should-animate .card-wrapper > a:nth-child(25) {
  transition-delay: 3750ms;
}

section.colorful-cards .block-section-wrapper {
  padding-top: 3rem;
  padding-bottom: 3rem;
}

section.colorful-cards .colorful-cards__heading {
  margin-bottom: 1.875rem;
  font-size: 27px;
  font-style: normal;
  font-weight: 400;
  line-height: 120%;
}

section.colorful-cards .card-wrapper {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 2rem;
}

@media screen and (max-width: 999px) {
  section.colorful-cards .card-wrapper {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media screen and (max-width: 849px) {
  section.colorful-cards .card-wrapper {
    grid-template-columns: 1fr;
  }
}
section.colorful-cards .card {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.06);
}

section.colorful-cards .card.circularity {
  background-color: #C1E5DB;
}

section.colorful-cards .card.sustainable-food {
  background-color: #CBE8D6;
}

section.colorful-cards .card.energy-transition {
  background-color: #E7F2EA;
}

section.colorful-cards .card.tech-enabled-resilience {
  background-color: #C4E3F5;
}

section.colorful-cards .card.tech-enabled-resilience .card__arrow {
  background-color: #306999;
}

section.colorful-cards .card .card__image-wrap {
  width: 100%;
  max-height: 190px;
  overflow: hidden;
}

section.colorful-cards .card .card__image {
  display: block;
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
}

section.colorful-cards .card .card__body {
  padding: 1.75rem 1.75rem 2.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

section.colorful-cards .card .card__title {
  font-size: 1.25rem;
  line-height: 1.3;
  margin: 0;
}

section.colorful-cards .card .card__description {
  font-size: 0.95rem;
  line-height: 1.5;
  margin-bottom: 1.25rem;
}

section.colorful-cards .card .card__arrow {
  position: absolute;
  right: 1.5rem;
  bottom: 1.5rem;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  color: #fff;
  background-color: #397467;
  transition: transform 0.2s ease;
  transform: translateX(0);
}

section.colorful-cards .card:hover .card__arrow {
  transform: translateX(4px);
}

section.colorful-cards .card:hover .card__image {
  transform: scale(1.05);
  transition: transform 0.5s ease;
}

section.colorful-cards .card-wrapper a.card__full-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

section.colorful-cards .card {
  cursor: pointer;
}
