/* Passout Students Section Styles */

.passout-section {
    padding: 60px 0;
    background: linear-gradient(135deg, #FFF9F0 0%, #FFFFFF 100%);
}

.passout-header {
    text-align: center;
    margin-bottom: 50px;
}

.passout-header h2 {
    color: #A52A2A;
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.passout-header .underline {
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, #F28C28, #A52A2A);
    margin: 0 auto 20px;
    border-radius: 2px;
}

.year-tabs {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.year-tab {
    padding: 12px 30px;
    border: 2px solid #F28C28;
    background: white;
    color: #A52A2A;
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.year-tab:hover,
.year-tab.active {
    background: linear-gradient(135deg, #F28C28, #A52A2A);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(242, 140, 40, 0.3);
}

.class-tabs {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.class-tab {
    padding: 8px 20px;
    border: 1px solid #ddd;
    background: white;
    color: #666;
    border-radius: 20px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.class-tab:hover,
.class-tab.active {
    background: #A52A2A;
    color: white;
    border-color: #A52A2A;
}

.passout-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 25px;
    margin-bottom: 30px;
}

.student-passout-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.student-passout-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(165, 42, 42, 0.15);
    border-color: #F28C28;
}

.student-photo {
    width: 100%;
    height: 220px;
    object-fit: cover;
    background: #f5f5f5;
}

.student-info {
    padding: 15px;
    text-align: center;
}

.student-info h4 {
    font-size: 1rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
}

.student-percentage {
    font-size: 0.95rem;
    color: #F28C28;
    font-weight: 600;
    margin-bottom: 8px;
}

.student-details {
    font-size: 0.85rem;
    color: #666;
    line-height: 1.4;
}

.student-details p {
    margin: 3px 0;
}

.student-details strong {
    color: #A52A2A;
}

/* Table View for Detailed List */
.passout-table-container {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    margin-top: 40px;
}

.passout-table {
    width: 100%;
    border-collapse: collapse;
}

.passout-table thead {
    background: linear-gradient(135deg, #A52A2A, #8B1E1E);
    color: white;
}

.passout-table th {
    padding: 15px;
    text-align: left;
    font-weight: 600;
    font-size: 0.9rem;
}

.passout-table td {
    padding: 12px 15px;
    border-bottom: 1px solid #eee;
    font-size: 0.9rem;
}

.passout-table tbody tr:hover {
    background: #FFF9F0;
}

.passout-table .rank-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.85rem;
}

.rank-badge.gold {
    background: #FFD700;
    color: #8B4513;
}

.rank-badge.silver {
    background: #C0C0C0;
    color: #333;
}

.rank-badge.bronze {
    background: #CD7F32;
    color: white;
}

.view-toggle {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 30px;
}

.view-toggle-btn {
    padding: 10px 25px;
    border: 2px solid #ddd;
    background: white;
    color: #666;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.view-toggle-btn:hover,
.view-toggle-btn.active {
    background: #A52A2A;
    color: white;
    border-color: #A52A2A;
}

.view-toggle-btn i {
    margin-right: 5px;
}

/* Responsive */
@media (max-width: 768px) {
    .passout-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 15px;
    }

    .student-photo {
        height: 180px;
    }

    .passout-table-container {
        overflow-x: auto;
    }

    .passout-table {
        font-size: 0.8rem;
    }

    .passout-table th,
    .passout-table td {
        padding: 8px 10px;
    }
}