ul{
    list-style: none;
}

.instructor_area{
    padding: 0;
}

/*
 * =================================================================
 * INSTRUCTOR LIST STYLES (MODIFIED/REFINED)
 * =================================================================
 */

.instructor-list {
    display: grid;
    /* Use 'auto-fill' for more even distribution on wide screens, 'auto-fit' is also fine */
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 20px;
    list-style: none;
    padding: 10px 0;
    margin: 0;
}

/* Make the whole box clickable */
.instructor-item a {
    border-radius: 14px;
    overflow: hidden;
    /* Increased shadow subtlety for a cleaner look */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    background: linear-gradient(180deg, #ffffff, #f7fbff);
    border: 1px solid rgba(11, 116, 255, 0.1);
    display: flex; /* Use flex to easily center and manage content */
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px 20px;
    width: 100%;
    height: 100%;
    text-decoration: none;
    color: #595a72;
    transition: all 0.25s ease;
}

/* Optional h3 reset for consistent spacing and better text appearance */
.instructor-item h3 {
    margin: 0;
    font-weight: 700;
    font-size: 18px;
    line-height: 1.2;
}

/* Hover effect: Subtle lift and shadow/border change for engagement */
.instructor-item a:hover,
.instructor-item a:focus {
    transform: translateY(-4px); /* Slightly more lift */
    box-shadow: 0 12px 25px rgba(11, 116, 255, 0.1);
    border-color: rgba(11, 116, 255, 0.25);
    background: linear-gradient(180deg, #ffffff, #eef5ff); /* Slight color shift */
    color: #7072ac; /* Name color shift on hover */
    outline: none; /* Remove default focus outline */
}

/* Focus-visible for keyboard accessibility */
.instructor-item a:focus-visible {
    box-shadow: 0 0 0 3px rgba(11, 116, 255, 0.3), 0 12px 25px rgba(11, 116, 255, 0.1);
}

/* Responsive tweak */
@media (max-width: 480px) {
    .instructor-item a {
        padding: 18px 14px;
    }
    .instructor-item h3 {
        font-size: 16px;
    }
}
/* Container */
.custom-pagination {
    display: flex;
    gap: 10px;
    align-items: center;
    padding: 8px;
    margin: 18px 0;
    list-style: none;
    -webkit-overflow-scrolling: touch;
    justify-content: center;
    margin-top: 60px;
    margin-bottom: 40px;
}

/* Basic item reset */
.custom-pagination .page-item {
    display: inline-flex;
    align-items: center;
}

/* Visual appearance for links and spans that act like links */
.custom-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 36px;
    padding: 0 2px;
    border-radius: 7px;
    box-sizing: border-box;
    font-weight: 600;
    font-size: 14px;
    line-height: 1;
    text-decoration: none;
    transition: transform .15s ease, box-shadow .15s ease, background .12s ease, color .12s ease;
    border: 0;
    background-color: #f5f5f5;
    box-shadow: 0 6px 18px rgba(11,116,255,0.04);
    cursor: pointer;
    color: #666;
}

.custom-pagination .page-numbers.current{
color: #fff;
 background: linear-gradient(90deg, #6e77b5, #06b0b4);
}

/* Ensure inner .page-link spans fill their parent when present */
.custom-pagination .page-numbers .page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    padding: 0;
    color: inherit;
    background: transparent;
    border: none;
}


/* Dots (non-clickable) */
.custom-pagination .page-numbers.dots {
    cursor: default;
    background: transparent;
    color: #9aa4b2;
    border-color: transparent;
    box-shadow: none;
    min-width: 28px;
    height: auto;
    padding: 6px 8px;
    font-weight: 700;
}


/* "Next" button emphasis */
.custom-pagination .next.page-numbers, .custom-pagination .prev.page-numbers {
    padding: 0 14px;
    min-width: 70px;
    font-weight: 700;
    background: linear-gradient(90deg, rgba(11,116,255,0.06), rgba(11,116,255,0.10));
    border: 1px solid rgba(11,116,255,0.12);
    color: #56618b;
}

/* Make sure anchor elements inside fill their pill area (for older markup) */
@media (max-width: 575px) {
    .custom-pagination {
    flex-wrap: wrap;
}
}


/* Small-screen adjustments */
@media (max-width: 420px) {
    .custom-pagination {
        gap: 8px;
        padding: 6px;
    }

}




