/* Card Container */
.custom-card {
    background-color: #fff;
    border-radius: 12px;
    box-shadow: rgba(17, 17, 26, 0.1) 0px 0px 16px;
    overflow: hidden;
    position: relative;
    padding: 20px;
    height: 250px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

/* Large Number with Stylish Background */
.custom-card .number {
    position: absolute;
    top: 0;
    left: 0;
    font-size: 180px;
    font-weight: bold;
    line-height: 1;
    opacity: .4;
    z-index: 0;
}

/* Card Content */
.custom-card .card-content {
    position: relative;
    z-index: 1;
    max-height: 100%;
}

/* Card Text */
.custom-card .card-text {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-top: 10px;
    line-height: 1.6;
    text-align: center;
    display: -webkit-box;
    -webkit-line-clamp: 4; /* Limits the text to 4 lines */
    -webkit-box-orient: vertical; /* Ensures vertical orientation for the box */
    overflow: hidden; /* Hides any content that overflows */
    text-overflow: ellipsis;
    height: 100%;
}


/* Light Bulb Icon */
.custom-card .link-icon {
    font-size: 30px;
    margin-top: 20px;
    display: inline-block;
}

.custom-card .link-icon:hover {
    color: #e64a19;
}

/* Color Classes for Different Ranks */
.rank-1 {
    color: #5db8d9; /* Light Blue */
}

.rank-2 {
    color: #ff9800; /* Orange */
}

.rank-3 {
    color: #7e57c2; /* Purple */
}

.rank-4 {
    color: #26a69a; /* Teal */
}

.rank-5 {
    color: #f44336; /* Red */
}

.rank-6 {
    color: #8bc34a; /* Green */
}

.rank-7 {
    color: #ffeb3b; /* Yellow */
}

.rank-8 {
    color: #9c27b0; /* Deep Purple */
}

.rank-9 {
    color: #03a9f4; /* Light Blue */
}

.rank-10 {
    color: #c2185b; /* Pink */
}
