/**
 * Foundation for Sites
 * Version 6.8.1
 * https://get.foundation
 * Licensed under MIT Open Source
 */
/* 
 * makes ul/ol as a dropdown select (normaly in mobile)
 * Structure: div > title > list > li > a
*/
@keyframes redraw-underline {
  0% {
    background-size: 100% 0.0625rem;
    background-position: 100% 100%;
  }
  49% {
    background-size: 0% 0.0625rem;
    background-position: 100% 100%;
  }
  51% {
    background-size: 0% 0.0625rem;
    background-position: 0 100%;
  }
  99% {
    background-size: 100% 0.0625rem;
    background-position: 0 100%;
  }
  100% {
    background-size: 100% 0.0625rem;
    background-position: 100% 100%;
  }
}
/**==================================================================================================================================
BREAKPOINT
 ==================================================================================================================================*/
/**==================================================================================================================================
BREAKPOINT ENDS
==================================================================================================================================*/
span.edit-link {
  display: inline-block;
  background-color: yellow;
  font-weight: 700;
  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);
}

.block-section.expandable-cards .grid-container h2 {
  color: #3d011B;
  font-size: 3.75rem;
  font-style: normal;
  font-weight: 400;
  line-height: 110%;
  margin-bottom: 1.875rem;
}

.block-section.expandable-cards .grid-container .card-container {
  margin-left: 0;
  display: flex;
  gap: 1.25rem;
  align-items: stretch;
  flex-wrap: wrap;
  justify-content: space-between;
}

.block-section.expandable-cards .card {
  background-color: #3d011b;
  padding: 1.25rem;
  border-radius: 0.625rem;
  width: calc(25% - 0.9375rem);
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease;
}

@media (max-width: 1024px) {
  .block-section.expandable-cards .card {
    width: calc(50% - 0.625rem);
  }
}
@media (max-width: 640px) {
  .block-section.expandable-cards .card {
    width: 100%;
  }
}
.block-section.expandable-cards .card h4 {
  color: #f1c7a1;
  text-align: center;
  font-size: 1.25rem;
  font-style: normal;
  font-weight: 700;
  line-height: 120%;
  text-transform: uppercase;
  margin-bottom: 3.75rem;
}

@media (max-width: 640px) {
  .block-section.expandable-cards .card h4 {
    font-size: 1.125rem;
    margin-bottom: 1.875rem;
  }
}
.block-section.expandable-cards .card img {
  max-width: 6.375rem;
  height: 6.375rem;
  -o-object-fit: contain;
     object-fit: contain;
  margin-bottom: 4.375rem;
}

@media (max-width: 640px) {
  .block-section.expandable-cards .card img {
    max-width: 5rem;
    height: 5rem;
    margin-bottom: 2.5rem;
  }
}
.block-section.expandable-cards .main-card {
  display: flex;
  flex-direction: column;
  place-items: center;
  flex: 1;
}

.block-section.expandable-cards .card_toggle {
  margin-top: auto;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.block-section.expandable-cards .card_toggle:hover {
  transform: scale(1.1);
}

.block-section.expandable-cards .card_toggle svg {
  display: block;
  transition: opacity 0.3s ease;
}

.block-section.expandable-cards .card__panel {
  border-top: 1px solid #f1c7a1;
  color: #f1c7a1;
  font-size: 1.25rem;
  font-style: normal;
  font-weight: 400;
  line-height: 120%;
  letter-spacing: -0.1px;
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  margin-top: 0;
  transition: max-height 0.5s ease, opacity 0.4s ease, margin-top 0.4s ease;
}

@media (max-width: 640px) {
  .block-section.expandable-cards .card__panel {
    font-size: 1rem;
  }
}
.block-section.expandable-cards .card.is-open {
  align-self: flex-start;
}

.block-section.expandable-cards .card.is-open .card__panel {
  max-height: 1000px;
  opacity: 1;
  margin-top: 1.25rem;
}
