h2{
    display: block;
    font-size: 1.5em;
    margin-block-start: 0.83em;
    margin-block-end: 0.83em;
    margin-inline-start: 0px;
    margin-inline-end: 0px;
    font-weight: bold;
    color: #000000;
}
/* Mobile styles */
.mobile-image {
    display: none;
}

/* Desktop styles */
.desktop-image {
    display: block;
}

.kt-user-card-v2 .kt-user-card-v2__pic img{
    max-width: 40px !important;
}
.kt-hidden-tablet-and-mobile {
    font-size: 24px;
}
.kt-hidden-desktop {
    font-size: 14px;
}
.kt-user-card-v2 .kt-user-card-v2__pic{
    padding-right: 0 !important;
}

/* CSS Media Query for Mobile */
@media only screen and (max-width: 767px) {
    .mobile-image {
        display: block;
    }
    .desktop-image {
        display: none;
    }
}

@media only screen and (max-width: 600px) {
    table{
        margin: 0 auto;
        width: 100%;
        clear: both;
        border-collapse: collapse;
        table-layout: fixed;
        word-wrap:break-word;
    }

}

/* Mobile table styles */
@media only screen and (max-width: 767px) {
    .mobile-table {
        /*display: block;*/
        width: 100%;
    }

    .mobile-table thead {
        display: none;
    }

    .mobile-table tr {
        margin-bottom: 15px;
        display: block;
        border: 1px solid #ddd;
        padding: 8px;
        background: #fff;
        box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    }

    .mobile-table td {
        display: block;
        text-align: right;
        font-size: 13px;
        border-bottom: 1px dotted #ccc;
        border-top: none !important;
    }

    .mobile-table td:last-child {
        border-bottom: none;
    }

    .mobile-table td:before {
        content: attr(data-label);
        float: left;
        font-weight: bold;
        text-transform: uppercase;
        font-size: 12px;
    }

    /* Adjust image containers for mobile */
    .kt-user-card-v2 {
        flex-direction: row-reverse !important;
        justify-content: flex-start;
        align-items: center !important;
    }

    .kt-user-card-v2__details {
        text-align: right;
        flex: 1;
        order: unset;
    }

    .kt-user-card-v2__pic {
        margin-left: 10px;
        order: unset;
    }

    /* Adjust specific columns */
    .mobile-table td.rank-column {
        background: #f8f9fa;
        font-weight: bold;
    }
}

/* Desktop view styles */
.kt-user-card-v2 {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
}

.kt-user-card-v2__pic {
    order: 1;
}

.kt-user-card-v2__details {
    order: 2;
    text-align: left;
}

.kt-user-card-v2__pic img {
    max-width: 40px !important;
}

/* Mobile view - name first */
@media only screen and (max-width: 767px) {
    .kt-user-card-v2 {
        flex-direction: row;
    }

    .kt-user-card-v2__pic {
        margin-left: 10px;
    }

    .kt-user-card-v2__details {
        text-align: right;
    }
}
