 .styled-info-card .img-container {
  max-width: 12rem;
  aspect-ratio: 2/3;
  align-items: center;
  justify-content: center;
  background: #f2f2f2;

  & img {
    object-fit: cover;
    object-position: center center;
    border-radius: .25rem;
    width: 100%;
  }
}

.styled-info-card a.styled-card-link {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.styled-info-card .rocker {
  position: absolute;
  top:0;
  left: 0;
  align-items: center;
  justify-content: center;
  display: flex;
  background: var(--blue-7);
  color: white;
  font-size: 1rem;
  font-weight: 300;
  border-bottom-right-radius: 2rem 100%;
  padding: .35rem 2rem;
}

.styled-info-card:has(.styled-card-link) {
  cursor: pointer;
  transition: all 0.2s ease-in-out;
  position: relative;
}

.styled-info-card:has(.styled-card-link):hover {
  background-color: #f9f9f9;
  box-shadow: var(--float);
  transform: translateY(-2px);
}

.styled-info-card:has(.styled-card-link):hover::after {
  content: attr(data-href);
  position: absolute;
  bottom: -2rem;
  left: 0;
  background: #333;
  color: #fff;
  padding: 0.5rem;
  border-radius: 0.25rem;
  font-size: 0.75rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  pointer-events: none;
  z-index: 10;
}

.styled-info-card:has(.styled-card-link):active {
  background-color: #f0f0f0;
  box-shadow: var(--concave-sm);
  transform: translateY(0px);
}

.styled-info-card:has(.styled-card-link):focus-visible {
  outline: 3px solid var(--blue-7);
  outline-offset: 3px;
}


.council-title {
  max-width: var(--max-width);
  width: 100%;
}

.styled-info-card {
  flex: 1;
  padding: 1rem;
  box-shadow: var(--float-close);
  border-radius: .25rem;
  column-gap: 1rem;
  min-width: max-content;
  position: relative;
  overflow: hidden;

  &:has(.rocker) {
    padding-top: 2rem;
  }
}

.styled-info-card:not(:has(img)) {
  width: 100%;
  max-width: calc(100% / 2 - 1rem);
  min-width: calc(100% / 2 - 1rem);
  padding: .5rem;
}

.styled-info-card-name {
  font-size: 1.5rem;
  font-weight: 300;
  flex-wrap: wrap;
  white-space:wrap;
}

.council-info .position {
  font-size: 13px;
  font-weight: 300px;
  text-transform: uppercase;
  letter-spacing: .5px;
}

.council-info .contact {
  flex-direction: column;
  background: inherit;
  line-height: 1;
}

.styled-info-card-list {
  flex-direction: row;
  flex-wrap: wrap;
  row-gap: 1rem;
  column-gap: 1rem;
  width: 100%;
}

.council-info {
  flex-direction: column;
  padding: 1rem;
  row-gap: 1rem;
}

.council-info .upper {
  flex-direction: column;
  row-gap: .5rem;
  position: relative;
}

  .council::before {
    content: "";
    height: 110%;
    width: 140%;
    border-radius: .25rem;
    background: var(--compare);
    position: absolute;
    z-index: -1;
    top: 0;
    left: 0;
  }

  .council p {
    font-family: 'Poppins Light', 'Poppins', sans-serif;
    line-height: 1.5;
    font-feature-settings: "ss01" !important;
  }

.styled-info-card {

 & button:hover {
  color: white;
  background-color: var(--color-6);
  box-shadow: none;
}

  & button {
    box-shadow: none;
    margin: 1.5rem 0 .5rem;
    padding: .5rem;
    border-radius: .5rem;
    background-color: #f3f3f3;
  }
}

.styled-info-card a {
  align-items: center;
  color: var(--blue-7);
  text-decoration: none;
  min-height: 1.5rem;
  padding: 0;
  margin: 0;
  transform-origin: left center;
  transition: .3s ease-in-out;
  word-break: break-word;
  flex-wrap: wrap;
  display: revert;
  word-wrap:break-word;
  &:hover {
    transform: scale(1.1);
  }
  &:focus-visible {
    outline: 3px solid var(--blue-7);
    outline-offset: 3px;
    border-radius: 2px;
  }
}
.styled-info-card .expiry-date {
  background: #f2f2f2;
  padding: .5rem 2rem;
  font-weight: 500;
  margin-left: -2rem;
}

.styled-info-card .upper a{
  height: 2.5rem;
  width: 4.5rem;
  border-radius: var(--circle);
 background: #f2f2f2;
 border: 1.5px solid white;
 align-items: center;
 justify-content: center;
 gap: .5rem;
 padding: .5rem;
 margin-left: -1rem;
 display: flex;

 & svg {
    height: 18px;
    width: 18px;
    stroke-width: 1.5;
    padding: 0;
    margin: 0;
  }
}


@media screen and (max-width: 1024px) {
  .styled-info-card:not(:has(img)) {
    width: calc(50% - .5rem);
    max-width: calc(50% - .5rem);
    min-width: calc(50% - .5rem);

    & .council-info {
       padding-left: 0rem;
       padding-right: .25rem;
    }
  }

  .styled-info-card-list:has(img) {

  }
}


@media screen and (max-width: 794px) {
  .styled-info-card:not(:has(img)) {
    flex-basis: 100%;

    & .council-info {
      padding-left: 1rem;
      padding-right: 1rem;
      column-gap: 1rem;
      width: 100%;
     
      & .upper, .contact-info {
        width: calc(50% - .5rem);
        flex-shrink: 0;

        * {
          width: 100%;
          flex-shrink: 0;
        }
      } 
    }
  }
}

@media screen and (max-width:600px) {

  .styled-info-card {
    width: 100%;
    max-width: calc(100% - 1rem);
  }
  .styled-info-card:not(:has(img)) {
    width: 100%;
    max-width: 100%;
    min-width: 100%;

    & .council-info {
      flex-direction: column;

      & .upper, .contact-info {
        width: 100%;
      }
    }
  }

  .block--container:has(img) {
    padding: 1rem;
  }
}

@media screen and (max-width: 480px) {
  .block--container:has(img) {
    padding: .5rem;
    align-items: center;
  }

  .styled-info-card img {
    object-fit: contain;
    width: unset;
    max-width: 300px;
    object-position: center 25%;
  }

  .styled-info-card:has(img) {
    flex-direction:column;
  }

  .styled-info-card .img-container {
    width: 100%;
    overflow: hidden;
    max-width: 100%;
  }
  .styled-info-card .upper a {
    left: unset;
    right: 0rem;
  }
}
