/* Results Page Styles */
:root {
    --primary-color: #00AEBA;
    --primary-dark: #08748C;
    --primary-light: #A7BBC5;
    --secondary-color: #FECC09;
    --accent-color: #F2A25C;
    --dark-color: #1F2526;
    --light-color: #f8f9fa;
    --text-color: #1F2526;
    --text-light: #08748C;
    --white: #ffffff;
    --transition: all 0.3s ease;
}

/* AOS Animation Fix */
[data-aos] {
    opacity: 1 !important;
    transform: none !important;
}

/* Results Section */
.results-section {
    padding: 100px 0;
    background: linear-gradient(135deg, rgba(167, 187, 197, 0.08) 0%, rgba(0, 174, 186, 0.04) 100%);
    position: relative;
    overflow: hidden;
}

.results-section::before {
    content: '';
    position: absolute;
    top: -20%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(254, 204, 9, 0.08), transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.page-header h1 {
    font-size: 2.8rem;
    margin-bottom: 15px;
    font-weight: 700;
    position: relative;
    z-index: 2;
}

.breadcrumb {
    display: flex;
    justify-content: center;
    list-style: none;
    padding: 0;
    margin: 0;
    position: relative;
    z-index: 2;
}

.breadcrumb-item {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
    margin: 0 5px;
}

.breadcrumb-item a {
    color: #fff;
    text-decoration: none;
    transition: all 0.3s ease;
}

.breadcrumb-item a:hover {
    color: #FFD700;
    text-decoration: underline;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: '›';
    margin-right: 10px;
    color: rgba(255, 255, 255, 0.7);
}

/* Results Section */
.results-section {
    padding: 80px 0;
    background-color: #f8f9ff;
    position: relative;
    overflow: hidden;
}

/* Results Filters */
.results-filters {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    margin: 50px 0 40px;
    padding: 30px;
    background: var(--white);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 174, 186, 0.1);
}

/* Exam Tabs */
.exam-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.exam-tab {
    background: var(--white);
    border: 2px solid var(--primary-light);
    border-radius: 50px;
    padding: 12px 24px;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 600;
    color: var(--primary-dark);
    box-shadow: 0 4px 15px rgba(0, 174, 186, 0.08);
}

.exam-tab:hover {
    color: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 174, 186, 0.15);
}

.exam-tab.active {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: var(--white);
    border-color: var(--primary-color);
    box-shadow: 0 6px 25px rgba(0, 174, 186, 0.3);
}

.exam-tab .tab-icon {
    font-size: 1.1rem;
}

/* Year Filter */
.year-filter {
    display: flex;
    align-items: center;
    gap: 12px;
}

.year-filter label {
    font-weight: 600;
    color: var(--primary-dark);
    display: flex;
    align-items: center;
    gap: 8px;
}

.year-dropdown {
    padding: 10px 20px;
    border: 2px solid var(--primary-light);
    border-radius: 50px;
    background: var(--white);
    color: var(--dark-color);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    outline: none;
}

.year-dropdown:hover,
.year-dropdown:focus {
    border-color: var(--primary-color);
    box-shadow: 0 4px 15px rgba(0, 174, 186, 0.15);
}

/* Results Content */
.results-content {
    position: relative;
    min-height: 400px;
}

.results-panel {
    display: none;
    animation: fadeIn 0.5s ease;
}

.results-panel.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Results Grid */
.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

/* Result Card */
.result-card {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 174, 186, 0.12);
    transition: var(--transition);
    border: 2px solid rgba(167, 187, 197, 0.2);
    position: relative;
}

.result-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 45px rgba(0, 174, 186, 0.25);
    border-color: var(--primary-color);
}

.result-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--secondary-color), var(--accent-color));
    transition: var(--transition);
}

.result-card:hover::before {
    height: 8px;
}

/* Card Header */
.card-header {
    padding: 30px;
    background: linear-gradient(135deg, rgba(0, 174, 186, 0.05), rgba(167, 187, 197, 0.08));
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.student-avatar {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: var(--white);
    box-shadow: 0 8px 20px rgba(0, 174, 186, 0.3);
    border: 3px solid var(--white);
    overflow: hidden;
}

.student-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.rank-badge {
    text-align: center;
    background: linear-gradient(135deg, var(--secondary-color), var(--accent-color));
    padding: 12px 20px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(254, 204, 9, 0.3);
}

.rank-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--dark-color);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 4px;
}

.rank-number {
    display: block;
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--dark-color);
    line-height: 1;
}

/* Card Body */
.card-body {
    padding: 25px 30px 30px;
}

.student-name {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--dark-color);
    margin: 0 0 8px;
}

.student-score {
    font-size: 1.1rem;
    color: var(--text-light);
    font-weight: 600;
    margin: 0 0 15px;
}

.student-details {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.95rem;
    color: var(--text-light);
    font-weight: 500;
}

.detail-item i {
    color: var(--primary-color);
    font-size: 1rem;
}

.achievement-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: linear-gradient(135deg, rgba(0, 174, 186, 0.1), rgba(167, 187, 197, 0.15));
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary-color);
    border: 1px solid rgba(0, 174, 186, 0.2);
}

.achievement-badge i {
    color: var(--secondary-color);
    font-size: 1rem;
}


/* Responsive Styles */
@media (max-width: 992px) {
    .results-filters {
        flex-direction: column;
        align-items: stretch;
    }
    
    .exam-tabs {
        justify-content: center;
    }
    
    .year-filter {
        justify-content: center;
    }
    
    .results-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
}

@media (max-width: 768px) {
    .results-section {
        padding: 60px 0;
    }
    
    .results-filters {
        padding: 20px;
    }
    
    .exam-tabs {
        flex-direction: column;
        width: 100%;
    }
    
    .exam-tab {
        width: 100%;
        justify-content: center;
    }
    
    .results-grid {
        grid-template-columns: 1fr;
        max-width: 450px;
        margin: 30px auto 0;
    }
    
    .student-avatar {
        width: 70px;
        height: 70px;
        font-size: 2rem;
        overflow: hidden;
    }
    
    .rank-badge {
        padding: 10px 16px;
    }
    
    .rank-number {
        font-size: 1.5rem;
    }
}

@media (max-width: 576px) {
    .card-header {
        padding: 20px;
    }
    
    .card-body {
        padding: 20px;
    }
    
    .student-avatar {
        width: 60px;
        height: 60px;
        font-size: 1.8rem;
        overflow: hidden;
    }
    
    .student-name {
        font-size: 1.2rem;
    }
    
    .student-score {
        font-size: 1rem;
    }
    
    .student-details {
        flex-direction: column;
        gap: 8px;
    }
    
    .exam-tab {
        padding: 10px 18px;
        font-size: 0.9rem;
    }
}

