:root {
    --primary-color: #0d6efd;
    --secondary-color: #6c757d;
    --success-color: #198754;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #0dcaf0;
    --light-color: #f8f9fa;
    --dark-color: #212529;
}

body {
    padding-top: 76px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
}

.navbar {
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.hero-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 100px 0;
    text-align: center;
}

.card {
    border: none;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-bottom: 30px;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.card-img-top {
    border-radius: 15px 15px 0 0;
    height: 200px;
    object-fit: cover;
}

.section-title {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 50px;
    text-align: center;
    color: white;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.search-filter-section {
    background: white;
    padding: 30px;
    border-radius: 15px;
    margin-bottom: 30px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 25px;
    padding: 10px 30px;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.table-responsive {
    background: white;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.pagination {
    justify-content: center;
    margin-top: 30px;
}

.page-link {
    border-radius: 10px;
    margin: 0 5px;
    color: var(--primary-color);
}

.page-item.active .page-link {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: transparent;
}

.biodata-card {
    background: white;
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.profile-img {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid var(--primary-color);
    margin: 0 auto;
    display: block;
}

.social-links a {
    font-size: 2rem;
    margin: 0 10px;
    color: var(--primary-color);
    transition: transform 0.3s ease;
}

.social-links a:hover {
    transform: scale(1.2);
    color: var(--secondary-color);
}

.activity-item {
    background: white;
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.activity-item:hover {
    transform: translateX(10px);
}

.education-timeline {
    position: relative;
    padding-left: 30px;
}

.education-timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--primary-color);
}

.education-item {
    position: relative;
    padding: 20px;
    margin-bottom: 30px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.education-item::before {
    content: '';
    position: absolute;
    left: -37px;
    top: 25px;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: var(--primary-color);
    border: 3px solid white;
}

.certificate-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.certificate-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.certificate-card:hover {
    transform: scale(1.05);
}

.certificate-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

@media (max-width: 768px) {
    .section-title {
        font-size: 2rem;
    }
    
    .certificate-grid {
        grid-template-columns: 1fr;
    }
}

/* Certificate Card Styles for Home Page */
.certificate-card-home {
    border: none;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    transition: all 0.4s ease;
    background: white;
}

.certificate-card-home:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
}

.certificate-image-container {
    position: relative;
    overflow: hidden;
}

.certificate-img-home {
    height: 220px;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.certificate-card-home:hover .certificate-img-home {
    transform: scale(1.1);
}

.certificate-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 123, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.certificate-card-home:hover .certificate-overlay {
    opacity: 1;
}

.certificate-overlay i {
    font-size: 2rem;
}

.bg-gradient-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* Enhanced pagination styles */
.pagination .page-link {
    border: 2px solid transparent;
    border-radius: 12px;
    margin: 0 3px;
    padding: 12px 18px;
    color: var(--primary-color);
    font-weight: 500;
    transition: all 0.3s ease;
    background: white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.pagination .page-link:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,123,255,0.3);
}

.pagination .page-item.active .page-link {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: transparent;
    color: white;
    box-shadow: 0 4px 15px rgba(0,123,255,0.4);
}

.pagination .page-item.disabled .page-link {
    background: #f8f9fa;
    color: #6c757d;
    box-shadow: none;
}

/* Improved certificate grid for certificates page */
.certificate-grid .certificate-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    transition: all 0.4s ease;
    position: relative;
}

.certificate-grid .certificate-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
}

.certificate-grid .certificate-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    z-index: 1;
}

/* Enhanced footer styles are already included in footer.php */
/* Enhanced Pagination Info Styles */
.pagination-info, .pagination-summary {
    font-size: 0.875rem;
    color: #6c757d;
}

.pagination-info i, .pagination-summary i {
    margin-right: 5px;
}

/* Quick Jump Form Styles */
.pagination .form-control-sm {
    border-radius: 8px;
    border: 2px solid #e9ecef;
    text-align: center;
    font-weight: 500;
}

.pagination .form-control-sm:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

/* Responsive pagination */
@media (max-width: 576px) {
    .pagination .page-link {
        padding: 8px 12px;
        font-size: 0.875rem;
    }
    
    .pagination-info, .pagination-summary {
        font-size: 0.75rem;
    }
    
    .d-flex.justify-content-between {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
}

/* Certificate card improvements */
.certificate-card .btn {
    border-radius: 20px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.certificate-card .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* Search filter section improvements */
.search-filter-section .form-label {
    font-weight: 600;
    color: #495057;
    margin-bottom: 8px;
}

.search-filter-section .form-control,
.search-filter-section .form-select {
    border-radius: 10px;
    border: 2px solid #e9ecef;
    transition: all 0.3s ease;
}

.search-filter-section .form-control:focus,
.search-filter-section .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}
/* Additional improvements for better UX */

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Loading animation for images */
.certificate-img-home, .certificate-img {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

.certificate-img-home[src], .certificate-img[src] {
    animation: none;
    background: none;
}

/* Improved card hover effects */
.certificate-card-home .card-body {
    padding: 1.5rem;
}

.certificate-card-home .card-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid rgba(0,0,0,0.05);
}

/* Better button styles */
.btn {
    font-weight: 500;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
    transform: translateY(-2px);
}

.btn-outline-primary {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    background: transparent;
}

.btn-outline-primary:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
}

/* Enhanced section titles */
.section-title {
    position: relative;
    display: inline-block;
    margin-bottom: 3rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 2px;
}

/* Responsive improvements */
@media (max-width: 992px) {
    .certificate-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .hero-section {
        padding: 60px 0;
    }
    
    .section-title {
        font-size: 1.8rem;
        margin-bottom: 2rem;
    }
    
    .certificate-card-home .card-body {
        padding: 1rem;
    }
    
    .certificate-card-home .card-footer {
        padding: 0.75rem 1rem;
    }
}

/* Print styles */
@media print {
    .navbar, .footer, .btn, .pagination {
        display: none !important;
    }
    
    .certificate-card, .certificate-card-home {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ddd;
    }
}