.support {
    z-index: 100;
    background-color: #23232c;
    overflow: hidden;
    padding: 0 30px;
  }
  .support-h1 {
    font-size: 65px;
    color: #fff;
    padding: 35px;
    text-align: left;
  }
  .wrapper {
    position: relative;
    left: -25%;
    transform: translateY(-50%);
  }
  .total-title {
    box-sizing: border-box;
    padding: 4px;
    width: 220px;
    height: 55px;
    border: 2px solid #ffffff;
    border-radius: 50px;
    margin-left: 40px;
  }
  .title-head {
    text-align: center;
    font-size: 30px;
    font-weight: bold;
    color: #ffffff;
    padding-bottom: 20px;
  }
  .total-title span {
    color: #a8a8a8;
  }

  .cards {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin: 0 50px 100px 50px;
    justify-content: center;
  }

  .card-container {
    background-color: #9E49FF;
border-radius: 15px;
padding: 30px 20px 14px;
display: flex;
justify-content: center;
align-items: center;
box-shadow: 0 6px 10px rgba(0, 0, 0, 0.3);
overflow: hidden;
position: relative;
width: 357px;
height: 352px;
flex: 1 1 calc(25%);
  }

  .card-container:nth-child(2n) {
    background-color: #F77668;
  }

  .card {
    background: white;
    border-top-right-radius: 10px;
    border-top-left-radius: 10px;
    padding: 25px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    position: relative;
    cursor: pointer;
    transition: transform 0.2s ease-out; /* Smooth return on mouse leave */
    transform-origin: top right; /* Set the pivot point */
    width: 357px;
    height: 330px;
  }

  /* Keyframes for the bouncy rotation effect */
@keyframes rotateAndBounce {
0% { transform: rotate(0deg) translate(0, 0); }
60% { transform: rotate(-6deg) translate(0px, 0px); }
70% { transform: rotate(-5deg) translate(0px, 0px); }
80% { transform: rotate(-4deg) translate(0px, 0px); }
90% { transform: rotate(-3deg) translate(0px, 0px); }
100% { transform: rotate(-4deg) translate(0px, 0px); }
}

/* Apply the animation on hover */
.card:hover {
animation: rotateAndBounce .4s ease-out forwards;
}

.card {
transition: transform 1s ease-out;
}

  .card h2 {
    font-size: 24px;
    margin: 0 0 10px;
    font-weight: 600;
  }


  .card .category1 {
    color: #0BBF9F;
    font-weight: bold;
    margin: 5px 0;
  }
  .card .category2 {
    color: #3771FD;
  }
  .card hr {
    border-color: #f1f1f180;
  }

  .card .description {
    font-size: 14px;
    line-height: 1.5;
    font-weight: 600;
    color: #555;
    margin: 0;
  }

  .toggle-container {
box-sizing: border-box;
display: flex;
align-items: center;
padding: 2px;
gap: 6px;
width: 430px;
height: 55px;
border: 2px solid #ffffff;
border-radius: 50px;
position: relative;
margin-left: 50px;
  }

  /* Toggle button styling */
  .toggle-button {
    flex: 1;
    text-align: center;
    padding: 10px 20px 11px;
    font-size: 18px;
    font-weight: bold;
    color: #ffffff; /* White text for inactive buttons */
    cursor: pointer;
    border-radius: 50px;
    transition: background-color 0.3s ease, color 0.3s ease;
  }

  /* Active button style */
  .toggle-button.active {
    background-color: #ffffff;
    color: #000000;
    padding: 12px 20px 12px;
  }

  .sub-cateogries {
    margin: 32px;
    color: #44444E;
    font-size: 20px;
    font-weight: 500;
  }
  .sub-cateogries ul {
    display: flex;
    gap: 5%;
    cursor: pointer;
  }
  .sub-cateogries .active {
    color:#3771FD;
  }
  .viewBy {
    margin: 0 0 5px 50px;
color: #C0BFCB;
font-size: 14px;
font-weight: 500;
  }


  #overlay {
position: fixed;
top: 0;
left: 0;
width: 100vw;
height: 100vh;
background-color: rgba(0, 0, 0, 0.9);
display: none;
z-index: 1000;
}

/* Updated Card styling */
#info-popup {
position: fixed;
top: 0;
left: 50%; /* Start from the middle of the screen */
width: 50vw; /* Fill the screen from the middle to the right */
height: 100vh; /* Full height */
background-color: white;
padding: 20px;
border-top-left-radius: 30px;
border-bottom-left-radius: 30px;
transition: transform 0.3s ease;
z-index: 9999;
transform: translateX(100%); /* Hidden by default */
}

#info-popup.active {
transform: translateX(0); /* Slide in from the right */
}

.close-button {
position: absolute;
top: 20px;
right: 20px;
cursor: pointer;
background-color: black;
color: white;
padding: 5px 9px;
border-radius: 50%;
font-size: 12px;
}

.popup {
display: none;
position: fixed;
top: 50%;
left: 50%;
transform: translate(0, -50%);
background: white;
border: 1px solid #ccc;
border-radius: 8px;
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
padding: 40px;
width: 535px;
z-index: 1000;
}
  .popup-city {
    font-size: 18px;
    font-weight: 400;
    margin: 0;
  }
  .popup-name {
    font-size: 40px;
    margin: 0;
  }
  .popup-title {
    color: #787883;
font-weight: 500;
margin: 10px 0 0;
  }

  .popup-text
 {
  font-size: 18px;
font-weight: 600;
margin: 0;
  }
  .popup-type {
    color: #0BBF9F;
  }
  .popup-cat{
    color: #3771FD;
margin: 0;
font-weight: 500;
  }
  .popup-sector{
    border-style: solid;
    border-width: 1px;
    padding: 0 6px;
    width: fit-content;
    font-weight: 400;
    font-size: 1em;
  }
  .popup.description,.popup-date, .popup-fund,.popup-funders {
    color:#000;
  }
  .popup-url {
    margin-top: 40px;
color: #3771FD;
text-decoration: none;
font-weight: 500;;
  }
  .popup-fund {
    font-size: 3em;
    font-weight: 600;
    margin-top: 10px;
  }
  .popup-funders h5 {
  margin:0px;
  color:#787883;
  }
  .nav-button {
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
  }
  .navigation {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 0 160px;
    cursor: pointer;
  }
