/* Students Page Advanced Styles */

:root {
    --primary-color: #A52A2A;
    --secondary-color: #F28C28;
    --accent-color: #FFD700;
    --text-dark: #333333;
    --text-light: #666666;
    --white: #FFFFFF;
    --glass-bg: rgba(255, 255, 255, 0.9);
    --glass-border: rgba(255, 255, 255, 0.2);
    --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.05);
    --shadow-hover: 0 20px 40px rgba(0, 0, 0, 0.1);
    --gradient-primary: linear-gradient(135deg, #A52A2A 0%, #F28C28 100%);
    --gradient-overlay: linear-gradient(to bottom, rgba(0,0,0,0.3), rgba(0,0,0,0.7));
}

/* Hero Section */
.students-hero {
    position: relative;
    height: 60vh;
    min-height: 500px;
    background: url('../images/students-hero.jpg') center/cover no-repeat fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    overflow: hidden;
}

.students-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-overlay);
    z-index: 1;
}

.students-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    padding: 20px;
}

.students-hero-title {
    font-size: 4rem;
    font-weight: 700;
    font-family: 'Playfair Display', serif;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    opacity: 0;
    animation: fadeInUp 1s ease forwards;
}

.students-hero-subtitle {
    font-size: 1.5rem;
    font-weight: 300;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
    opacity: 0;
    animation: fadeInUp 1s ease 0.3s forwards;
}

/* Filter Section */
.filter-section {
    position: relative;
    margin-top: -50px;
    z-index: 10;
    padding: 0 20px;
}

.filter-container {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 30px;
    box-shadow: var(--shadow-soft);
    max-width: 1200px;
    margin: 0 auto;
}

.custom-form-control {
    border: 2px solid #eee;
    border-radius: 10px;
    padding: 12px 20px;
    transition: all 0.3s ease;
    background: #f9f9f9;
}

.custom-form-control:focus {
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 4px rgba(242, 140, 40, 0.1);
    background: var(--white);
}

.filter-btn {
    background: var(--gradient-primary);
    color: var(--white);
    border: none;
    border-radius: 10px;
    padding: 12px 30px;
    font-weight: 600;
    transition: all 0.3s ease;
    width: 100%;
    height: 100%;
}

.filter-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(165, 42, 42, 0.3);
}

/* Students Grid */
.students-grid-section {
    padding: 80px 0;
    background-color: #fcfcfc;
}

.student-card-modern {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    height: 100%;
    position: relative;
    border: 1px solid rgba(0,0,0,0.05);
}

.student-card-modern:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.card-img-wrapper {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.card-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.student-card-modern:hover .card-img-wrapper img {
    transform: scale(1.1);
}

.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.4);
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.student-card-modern:hover .card-overlay {
    opacity: 1;
}

.view-profile-btn {
    background: var(--white);
    color: var(--primary-color);
    padding: 10px 25px;
    border-radius: 30px;
    font-weight: 600;
    transform: translateY(20px);
    transition: all 0.3s ease;
    text-decoration: none;
}

.student-card-modern:hover .view-profile-btn {
    transform: translateY(0);
}

.card-content {
    padding: 25px;
}

.student-name {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.student-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 0.9rem;
    color: var(--text-light);
}

.student-meta i {
    color: var(--secondary-color);
    margin-right: 5px;
}

.student-dream {
    font-style: italic;
    color: var(--text-dark);
    background: #FFF5E1;
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 20px;
    font-size: 0.95rem;
    border-left: 3px solid var(--secondary-color);
}

.sponsor-btn {
    width: 100%;
    padding: 12px;
    border: 2px solid var(--primary-color);
    background: transparent;
    color: var(--primary-color);
    font-weight: 600;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.sponsor-btn:hover {
    background: var(--primary-color);
    color: var(--white);
}

/* Status Badges */
.status-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    padding: 8px 15px;
    border-radius: 30px;
    font-size: 0.8rem;
    font-weight: 600;
    z-index: 2;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.status-sponsored {
    background: #28a745;
    color: white;
}

.status-needs-sponsor {
    background: #ffc107;
    color: #333;
}

/* Pagination */
.custom-pagination .page-link {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin: 0 5px;
    border: none;
    color: var(--text-dark);
    font-weight: 600;
    transition: all 0.3s ease;
}

.custom-pagination .page-link.active {
    background: var(--gradient-primary);
    color: var(--white);
    box-shadow: 0 5px 15px rgba(165, 42, 42, 0.3);
}

.custom-pagination .page-link:hover:not(.active) {
    background: #eee;
    transform: translateY(-2px);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .students-hero-title {
        font-size: 2.5rem;
    }
    
    .filter-section {
        margin-top: -30px;
    }
    
    .filter-container {
        padding: 20px;
    }
}
