.RankHolders {
    padding: 20px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    text-align: center;
    color: black;
    border: solid 3px #00abff;
    border-radius: 13px;
    margin-top: 10px;
    margin-bottom: 15px;
}

.ranking-container {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 20px;
    overflow-x: auto;
    margin-top: 10px;
}

/* Added transition for smooth hover animation */
.rank-card {
    position: relative;
    width: 300px;
    min-height: 135px;
    background: linear-gradient(135deg, #deeaf2, #c3d2ff);
    color: black;
    border-radius: 8px;
    padding: 40px 0 0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
    margin-top: 6px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

    .rank-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 6px 10px rgba(0, 0, 0, 0.2);
    }

.rank {
    position: absolute;
    top: 30px;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    color: #000305;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: bold;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.rank-details div {
    font-size: 16px;
    margin: 10px 0 5px;
    white-space: normal;
    overflow-wrap: break-word;
    text-align: center;
}

.rank-details p {
    font-size: 14px;
    margin: 3px 0;
}

.show-all-button {
    display: inline-block;
    margin-top: 62px;
    padding: 3px 10px;
    background: linear-gradient(135deg, #deeaf2, #c3d2ff);
    color: black;
    border: none;
    border-radius: 25px;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s, transform 0.3s, box-shadow 0.3s;
}

    .show-all-button:hover {
        transform: scale(1.05);
    }

/* Media query to arrange boxes vertically on smaller screens */
@media (max-width: 768px) {
    .ranking-container {
        flex-direction: column;
        gap: 20px;
        overflow-x: visible;
    }
}
