.elementor-2783 .elementor-element.elementor-element-599434c1{--display:flex;}/* Start custom CSS for shortcode, class: .elementor-element-5a38c634 *//* --- Grid Layout --- */
.student-grid {
    display: grid;
    /* Creates a responsive grid automatically */
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

/* Ensure the card takes full height of the grid cell */
.student-grid-item .student-card {
    height: 400px; /* Fixed height for consistency in grid */
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.student-grid-item .student-card:hover {
    transform: translateY(-5px);
}

/* Reusing your existing inner styles */
.student-grid-item .student-thumb {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    position: relative;
}

/* Add a play icon overlay for better UX */
.play-icon-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    background: rgba(0,0,0,0.6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    pointer-events: none;
}
.play-icon-overlay .dashicons {
    font-size: 30px;
    width: 30px;
    height: 30px;
}

.student-grid-item .student-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
    color: #fff;
    z-index: 2;
    text-align: right;
}

.student-grid-item .student-info h3 {
    margin: 0 0 5px 0;
    font-size: 18px;
    color: #fff;
}

.student-grid-item .course-badge {
    display: inline-block;
    background: #ffc107;
    color: #000;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
}

/* --- Pagination Styling --- */
.student-pagination {
    text-align: center;
    margin-top: 40px;
    direction: ltr; /* Keeps page numbers ordered 1 2 3 properly */
}

.student-pagination .page-numbers {
    display: inline-block;
    padding: 8px 15px;
    margin: 0 5px;
    background: #f1f1f1;
    color: #333;
    border-radius: 5px;
    text-decoration: none;
    transition: 0.3s;
    font-weight: bold;
}

.student-pagination .page-numbers.current,
.student-pagination .page-numbers:hover {
    background: #0073aa; /* Change to your brand color */
    color: #fff;
}/* End custom CSS */