/* Add these styles to your existing CSS */
.student-image-container {
    position: relative;
    width: 100%;
    height: 200px; /* Fixed height for consistent card appearance */
    overflow: hidden;
    margin-bottom: 1rem;
}

.student-image-wrapper {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid #f0f0f0;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.student-image {
    width: 100%;
    height: 100%;
    object-fit: cover; /* This makes the image cover the container properly */
    object-position: center;
}

/* Ribbon styles if they're missing */
.ribbon-wrapper {
    position: absolute;
    top: 0;
    right: 0;
    z-index: 1;
}

.ribbon {
    background: #3498db;
    color: white;
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
    font-weight: bold;
    transform: rotate(45deg) translateX(2.5rem) translateY(-1rem);
    width: 150px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

/* Achievement badge styles */
.achievement-badge {
    display: inline-block;
    padding: 0.4rem 0.8rem;
    border-radius: 30px;
    font-size: 0.8rem;
    background-color: #f8f9fa;
    color: #495057;
}

.achievement-badge.gold {
    background-color: #ffd700;
    color: #5a4300;
}

.achievement-badge.silver {
    background-color: #c0c0c0;
    color: #494949;
}

.achievement-badge.bronze {
    background-color: #cd7f32;
    color: #ffffff;
}

/* Star rating colors */
.star-ratings {
    color: #ffc107;
}

/* Fix percentage progress bar */
.percentage-progress {
    height: 8px;
    border-radius: 4px;
    overflow: hidden;
}

.percentage-progress .progress-bar {
    background-color: #3498db;
}