ol.cards {
    display: flex;
    flex-wrap: wrap; /* Allows items to wrap to the next line */
    gap: 2rem;
    padding: 2rem;
    margin: 0;
    list-style: none;
    justify-content: center; /* Centers items horizontally */
  }
  ol.cards > .card img {
    width: 100px; /* Adjust size as needed */
    height: 100px; /* Ensure equal width and height */
    border-radius: 50%; /* Makes the image circular */
    object-fit: cover; /* Ensures the image fits well */
    margin-bottom: 1rem; /* Adds spacing below the image */
}

  ol.cards > .card {
    flex: 1 1 calc(33.333% - 2rem); /* Adjust width, considering gap */
    max-width: 300px; /* Ensures cards don't get too wide */
    min-width: 250px; /* Prevents them from getting too small */
    
    color: hsl(0 0% 40%);
    background-color: #ffffff;
    text-align: center;
    
    padding: 2rem;
    border-radius: .5rem;
    box-shadow: .5rem .5rem 1rem hsl(0 0% 0% / .25);
    
    position: relative;
    counter-increment: cardCount;
  }
  
  /* Numbering */
  ol.cards > .card::before {
    color: hsl(0 0% 100%);
    padding: 0.5rem 1rem;
    background-color: var(--accent-color);
    border-radius: .5rem .5rem 0 0;
    box-shadow: 0.125rem -0.125rem 0.25rem hsl(0 0% 0% / .25);
        
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translate(-50%, -100%);
    white-space: nowrap;
  }
  
  ol.cards > .card > i {
    color: var(--accent-color);
    font-size: 2rem;
  }
  
  ol.cards > .card > h2 {
    font-weight: 400;
    color: var(--accent-color);
    margin-top: 0;
  }
  
  /* Header styling */
  header {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    padding: 1rem;
  }
  
  header h1 {
    font-weight: 300;
    text-align: center;
  }
  
  /* Responsive adjustments */
  @media (max-width: 768px) {
    ol.cards {
        justify-content: center;
    }
    
    ol.cards > .card {
        flex: 1 1 calc(50% - 2rem); /* Two items per row */
    }
  }
  
  @media (max-width: 480px) {
    ol.cards > .card {
        flex: 1 1 100%; /* One item per row */
    }
  }
  /* Make the card rounded */
ol.cards > .card {
    flex: 1 1 calc(33.333% - 2rem);
    max-width: 300px;
    min-width: 250px;
    color: hsl(0 0% 40%);
    background-color: #ffffff;
    text-align: center;
    
    padding: 2rem;
    border-radius: 1rem; /* Rounded corners */
    box-shadow: .5rem .5rem 1rem hsl(0 0% 0% / .25);
    
    position: relative;
    counter-increment: cardCount;
}