/* Styling untuk container utama */
.container.py-5.mt-5 {
    max-width: 1200px;
    margin: 0 auto;
}

/* Namespace untuk halaman daftar guru */
.teachers-index .teacher-card {
    border: none;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    margin-bottom: 25px;
    height: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
    background-color: #fff;
    display: flex;
    flex-direction: column;
}

.teachers-index .teacher-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* Styling untuk gambar guru */
.teachers-index .teacher-img {
    height: auto;
    overflow: hidden;
    margin-bottom: 0;
    position: relative;
}

.teachers-index .teacher-img img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    object-position: center top;
    transition: transform 0.3s ease;
}

.teachers-index .teacher-card:hover .teacher-img img {
    transform: scale(1.05);
}

/* Styling untuk informasi guru */
.teachers-index .teacher-info {
    background-color: #f8f9fa;
    padding: 18px 15px;
    text-align: center;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.teachers-index .teacher-name {
    font-weight: 700;
    font-size: 17px;
    margin-bottom: 8px;
    color: #333;
    line-height: 1.3;
}

.teachers-index .teacher-subject {
    font-size: 14px;
    margin-bottom: 6px;
    color: #495057;
    line-height: 1.4;
}

.teachers-index .teacher-position {
    font-size: 14px;
    font-style: italic;
    margin-bottom: 12px;
    color: #6c757d;
}

/* Styling untuk ikon sosial media */
.teachers-index .social-links-small {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 10px;
}

.teachers-index .social-links-small a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: #f0f0f0;
    transition: all 0.3s ease;
}

.teachers-index .social-links-small a:hover {
    background-color: #e0e0e0;
    transform: scale(1.1);
}

/* Pagination styling */
.teachers-index ul.pagination {
    display: flex;
    justify-content: center;
    margin-top: 2.5rem;
    gap: 8px;
    flex-wrap: wrap;
}

.teachers-index ul.pagination > .page-item > .page-link {
    color: #222;
    border-radius: 12px;
    border: 2px solid #ececec;
    background: #fff;
    padding: 10px 15px; /* Use padding for size */
    /* width: 48px; */ /* Removed fixed width */
    /* height: 48px; */ /* Removed fixed height */
    margin: 0 6px;
    transition: all 0.2s;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px; /* Slightly reduced font size */
    line-height: 1.2; /* Added line-height */
    box-shadow: none;
}

.teachers-index ul.pagination > .page-item > .page-link:focus {
    outline: none;
    box-shadow: 0 0 0 2px #ff914d44;
}

/* Default SVG size for numbers/icons inside links */
.teachers-index ul.pagination > .page-item > .page-link svg {
    width: 20px; /* Adjusted size */
    height: 20px; /* Adjusted size */
}

/* Specific styling for Prev/Next arrow links */
.teachers-index ul.pagination > .page-item:first-child > .page-link,
.teachers-index ul.pagination > .page-item:last-child > .page-link {
    /* Keep width/height for consistency, padding adjusted by flex */
}

/* Specific SVG size for Prev/Next arrows */
.teachers-index ul.pagination > .page-item:first-child > .page-link svg,
.teachers-index ul.pagination > .page-item:last-child > .page-link svg {
    width: 18px; /* Adjusted arrow size */
    height: 18px; /* Adjusted arrow size */
}


.teachers-index ul.pagination > .page-item > .page-link:hover {
    background: #f7f7f7;
    color: #ff914d;
    border-color: #ff914d;
}

.teachers-index ul.pagination > .page-item.active > .page-link {
    background: #ff914d;
    border-color: #ff914d;
    color: #fff;
    box-shadow: 0 2px 8px rgba(255,145,77,0.12);
}

.teachers-index ul.pagination > .page-item.disabled > .page-link {
    color: #bbb;
    pointer-events: none;
    background: #fff;
    border-color: #ececec;
    opacity: 0.7;
}

/* Add a small gap between page items */
.teachers-index ul.pagination > .page-item {
    margin: 0 3px; /* Re-introduce small horizontal margin */
}

/* Removed conflicting .page-item margin and redundant .pagination block */

/* Styling untuk ikon panah pagination - Combined above */

/* Duplicate pagination rules removed */

/* Media queries untuk responsivitas */
@media (max-width: 1199.98px) {
    .teachers-index .container.py-5.mt-5 {
        max-width: 960px;
    }
    .teachers-index .teacher-img img {
        height: 260px;
    }
}

@media (max-width: 991.98px) {
    .teachers-index .container.py-5.mt-5 {
        max-width: 720px;
    }
    .teachers-index .teacher-img img {
        height: 240px;
    }
}

@media (max-width: 767.98px) {
    .teachers-index .container.py-5.mt-5 {
        max-width: 540px;
    }
    .teachers-index .teacher-img img {
        height: 220px;
    }
    .teachers-index ul.pagination > .page-item > .page-link {
        padding: 6px 12px;
        min-width: 35px;
        font-size: 13px;
    }
}

@media (max-width: 575.98px) {
    .teachers-index .teacher-img img {
        height: 200px;
    }
    .teachers-index .teacher-name {
        font-size: 16px;
    }
    .teachers-index .teacher-subject, .teachers-index .teacher-position {
        font-size: 13px;
    }
    .teachers-index ul.pagination > .page-item > .page-link {
        padding: 5px 10px;
        min-width: 30px;
        font-size: 12px;
    }
}
/* These global rules were likely causing conflicts and have been removed or integrated above with the .teachers-index namespace. */
/* Ensure all styles below this point are properly namespaced if added in the future. */