/* Rank Holders Carousel */
.rank-holders-swiper {
    padding-bottom: 3rem;
}

.rank-holders-swiper .swiper-slide {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 450px;
    padding: 1rem;
}

.rank-holders-swiper .card {
    width: 100%;
    min-height: 450px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    background: linear-gradient(135deg, #ecfdf5, #d1fae5);
    border-radius: 1rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.rank-holders-swiper .card h3 {
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
    color: #1f2937;
}

.rank-holders-swiper .card .grid {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 220px)); /* Wider fixed width for 5 cards */
    gap: 1rem;
    justify-content: center;
}

.rank-holders-swiper .card .grid > div {
    background: white;
    padding: 1rem;
    border-radius: 0.5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    text-align: center;
    min-height: 320px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
}

.rank-holders-swiper .card .grid img {
    width: 96px; /* Increased photo size */
    height: 96px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 0.5rem;
}

.rank-holders-swiper .card .grid p {
    margin: 0;
    font-size: 1.125rem; /* Increased name/percentage size */
    overflow-wrap: break-word;
    word-break: break-word;
}

/* Responsive Adjustments for Rank Holders */
@media (max-width: 768px) {
    .rank-holders-swiper .swiper-slide {
        min-height: 400px;
    }

    .rank-holders-swiper .card {
        min-height: 400px;
        padding: 1.5rem;
    }

    .rank-holders-swiper .card h3 {
        font-size: 1.5rem;
    }

    .rank-holders-swiper .card .grid {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); /* Responsive wider width */
        gap: 0.75rem;
    }

    .rank-holders-swiper .card .grid > div {
        min-height: 280px;
        padding: 1rem;
    }

    .rank-holders-swiper .card .grid img {
        width: 64px;
        height: 64px;
    }

    .rank-holders-swiper .card .grid p {
        font-size: 1rem; /* Default size for tablet */
    }
}

@media (max-width: 640px) {
    .rank-holders-swiper .swiper-slide {
        min-height: 350px;
    }

    .rank-holders-swiper .card {
        min-height: 350px;
        padding: 1rem;
    }

    .rank-holders-swiper .card h3 {
        font-size: 1.5rem;
    }

    .rank-holders-swiper .card .grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); /* Responsive wider width */
        gap: 0.75rem;
    }

    .rank-holders-swiper .card .grid > div {
        min-height: 240px;
        padding: 1rem;
    }

    .rank-holders-swiper .card .grid img {
        width: 48px;
        height: 48px;
    }

    .rank-holders-swiper .card .grid p {
        font-size: 1rem; /* Default size for mobile */
    }
}