  .academies-content{
    background-color: #f9f9f9;
    border-radius: 18px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    padding: 20px;
  }

  .academies-content hgroup {
    text-align: center;
    margin-bottom: 20px;
    border-bottom: 1px solid #FCA311;
    display: block;  /* Enable flexbox for side-by-side layout */
}

.academies-content hgroup h1 {
    font-size: 45px;
    font-weight: 600;
    margin: 0;
}

.academies-content hgroup p {
    font-size: 18px;
    color: #666;
}

.cards{
  display: flex;  /* Enable flexbox for side-by-side layout */
  justify-content: center; /* Align items horizontally */
  align-items: center; /* Align items vertically */
  flex-wrap: wrap; /* Wrap items if they exceed the container width */
  gap: 20px;
}
  
  .academy-card {
    cursor: default;
    width: 300px;
    height: auto;
    max-width: 400px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: transform 0.3s;
  }
  
  .academy-card:hover {
    transform: translateY(-10px);
  }
  
  .academy-card .header {
    position: relative;
    text-align: center;
  }
  
  .academy-card .header img {
    cursor: pointer;
    text-align: center;
    width: 80%;
    object-fit: cover;
    transition: opacity 0.3s;
    opacity: 0.7;
    height: auto;
  }

  .academy-card:hover .header img{
    opacity: 1;
  }

  
  .academy-card .header h2 {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    margin: 0;
    padding: 10px;
    background: rgba(0, 0, 0, 0.6);
    box-shadow: 0 -6px 10px rgba(0, 0, 0, 0.2);
    color: #fff;
    border-radius: 8px 8px 0 0;
    font-size: 1.2em;
  }
  
  .academy-card .details {
    padding: 15px;
    font-size: 0.9em;
  } 

  .academy-card .details button.toggle-more-info{
    text-align: center;
    font-weight: 500;
    border-radius: 8px;
    padding: 4px;
    cursor: pointer;
    border: none;
    background: transparent;
    color: #FCA311;
    overflow: hidden;
    box-shadow: 0 0 0 0 transparent;
    -webkit-transition: all 0.2s ease-out;
    -moz-transition: all 0.2s ease-out;
    transition: all 0.2s ease-out;
  }

.academy-card .details button.toggle-more-info:hover{
    color: #14213D;
    background: #FCA311;
    -webkit-transition: all 0.2s ease-out;
    -moz-transition: all 0.2s ease-out;
    transition: all 0.2s ease-out;
}
  
  .academy-card .details p {
    margin: 10px 0;
  }

  .academy-card .details p a{
    text-decoration: none;
    color: #FCA311;
  }

  .academy-card .details p a:hover{
    color: #14213D;
  }
  
  .academy-card .details .more-info {
    display: none;
    margin-top: 10px;
    padding: 10px;
    background: #f1f1f1;
    border-radius: 5px;
  }
  
  .academy-card .footer {
    padding: 15px;
    text-align: center;
    background: #f1f1f1;
    border-radius: 5px;
    box-shadow: 0 -3px 10px rgba(0, 0, 0, 0.1);
  }

  .academy-card .footer a{
    text-decoration: none;
    color: #14213D;
  }

  .academy-card .footer a:hover{
    color: #FCA311;
  }
  
  .academy-card .footer div.social-media ul{
    display: flex;
    justify-content: space-around;
    gap: 10px;
    list-style: none;
    padding: 0;
    margin-bottom: 0;
}

.academy-card .footer div.social-media ul li{
    padding: 0;
}

.academy-card .footer div.social-media ul li a{
    text-decoration: none;
}

.academy-card .footer div.social-media ul li a div{
    display: flex;
    justify-content: center;
    align-items: center;
    width: auto;
    padding: 2px 13px;
    height: 35px;
    border-radius: 100px;
    font-size: 18px;
    background-color: transparent;
    color: #14213D;
    border: 1px solid #14213D;
}

.academy-card .footer div.social-media ul li a div:hover{
    background-color: #FCA311;
    border: 1px solid #FCA311;
}


@media screen and (max-width: 768px) {
  .academies-content hgroup h1 {
      font-size: 35px;
  }
} 

@media screen and (max-width: 650px){
    .academies-content{
        display: flex;
        flex-direction: column;
        padding: 20px;
        align-items: center;
        justify-content: center;
        gap: 20px;
    }
}

@media screen and (max-width: 500px){
    .academy-card {
        width: 100%;
    }
    
    .academy-card.header img {
        width: 100%;
    }
    
    .academy-card.details p {
        font-size: 0.8em;
    }

    .academy-card .details p {
      margin: 5px 0;
    }
    
    .academy-card.footer a {
        font-size: 0.8em;
    }
}

@media screen and (max-width: 480px) {
  .academies-content hgroup h1 {
      font-size: 26px;
  }

  .academies-content hgroup p{
      font-size: 16px;
  }
}