/* Results Section Styles */
.results-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8fafc 0%, #eef2f6 100%);
    position: relative;
    overflow: hidden;
}

.section-badge {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 8px 25px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 1px;
    display: inline-block;
    margin-bottom: 20px;
}

/* Stats Cards */
.stats-row {
    margin: 50px 0;
}

.stat-card.overall {
    background: white;
    padding: 30px 20px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.3s;
    margin-bottom: 20px;
    border: 1px solid rgba(255,255,255,0.2);
}

.stat-card.overall:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(102,126,234,0.2);
}

.stat-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.stat-number {
    font-size: 2.8rem;
    font-weight: 800;
    color: #2d3748;
    line-height: 1.2;
}

.stat-small {
    font-size: 1.5rem;
    margin-left: 5px;
}

.stat-label {
    color: #718096;
    font-weight: 600;
    font-size: 1rem;
}

/* Result Tabs */
.result-tabs {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 40px 0;
    flex-wrap: wrap;
}

.tab-btn {
    background: white;
    border: none;
    padding: 12px 35px;
    border-radius: 50px;
    font-weight: 600;
    color: #4a5568;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    border: 2px solid transparent;
}

.tab-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.tab-btn.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 10px 25px rgba(102,126,234,0.3);
}

/* Results Grid */
.results-grid {
    display: none;
    margin: 40px 0;
}

.results-grid.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

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

.category-title {
    font-size: 1.8rem;
    color: #2d3748;
    margin: 40px 0 30px;
    position: relative;
    padding-bottom: 15px;
}

.category-title:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    border-radius: 3px;
}

/* Ranker Cards */
.ranker-card {
    background: white;
    border-radius: 25px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    margin-bottom: 30px;
    transition: all 0.3s;
    position: relative;
}

.ranker-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 45px rgba(0,0,0,0.15);
}

.ranker-card.gold {
    border-bottom: 4px solid #ffd700;
}
.ranker-card.silver {
    border-bottom: 4px solid #c0c0c0;
}
.ranker-card.bronze {
    border-bottom: 4px solid #cd7f32;
}

.rank-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: rgba(255,255,255,0.95);
    padding: 5px 15px;
    border-radius: 25px;
    font-weight: 700;
    font-size: 0.9rem;
    color: #2d3748;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    z-index: 2;
}

.ranker-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.ranker-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.ranker-card:hover .ranker-image img {
    transform: scale(1.1);
}

.rank-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
    color: white;
    padding: 20px 15px 10px;
    font-weight: 600;
    font-size: 1rem;
}

.ranker-details {
    padding: 20px;
}

.ranker-details h4 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 5px;
}

.exam-name {
    color: #667eea;
    font-weight: 600;
    margin-bottom: 10px;
}

.marks {
    font-size: 1.2rem;
    font-weight: 700;
    color: #48bb78;
    margin-bottom: 12px;
}

.marks span {
    font-size: 0.9rem;
    color: #718096;
    font-weight: 400;
}

.achievement-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag {
    background: #f0f4fa;
    color: #4a5568;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

/* Board Result Cards */
.board-result-card {
    background: white;
    border-radius: 20px;
    padding: 25px;
    display: flex;
    gap: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    margin-bottom: 30px;
    transition: all 0.3s;
}

.board-result-card:hover {
    transform: translateX(10px);
    box-shadow: 0 15px 35px rgba(102,126,234,0.2);
}

.board-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 700;
}

.board-icon.science {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
    color: white;
}

.board-icon.commerce {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
    color: white;
}

.board-content {
    flex: 1;
}

.board-content h4 {
    font-size: 1.2rem;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 15px;
}

.topper-list {
    margin-bottom: 10px;
}

.topper-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px dashed #e2e8f0;
}

.topper-item .name {
    font-weight: 500;
    color: #4a5568;
}

.topper-item .percentage {
    font-weight: 700;
    color: #48bb78;
}

.batch-average {
    background: #f7fafc;
    padding: 10px;
    border-radius: 10px;
    font-weight: 600;
    color: #667eea;
    text-align: right;
}

/* Exam Result Cards */
.exam-result-card {
    background: white;
    border-radius: 20px;
    padding: 25px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    margin-bottom: 30px;
    transition: all 0.3s;
    border-left: 4px solid;
}

.exam-result-card.neet {
    border-left-color: #ff6b6b;
}
.exam-result-card.jee {
    border-left-color: #4facfe;
}
.exam-result-card.mhtcet {
    border-left-color: #43e97b;
}

.exam-result-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.exam-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.exam-header i {
    font-size: 2rem;
    color: #667eea;
}

.exam-header h4 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #2d3748;
    margin: 0;
}

.stats {
    display: flex;
    justify-content: space-around;
    margin-bottom: 20px;
    padding: 15px 0;
    border-top: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
}

.stats .stat {
    text-align: center;
}

.stats .value {
    display: block;
    font-size: 1.5rem;
    font-weight: 800;
    color: #2d3748;
}

.stats .label {
    font-size: 0.85rem;
    color: #718096;
}

.qualified-list {
    margin-bottom: 15px;
}

.qualified-list p {
    margin-bottom: 8px;
    color: #4a5568;
}

.qualified-list i {
    margin-right: 8px;
    color: #667eea;
}

.view-more {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    display: inline-block;
}

.view-more i {
    transition: transform 0.3s;
}

.view-more:hover i {
    transform: translateX(5px);
}

/* View All Button */
.btn-view-all {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 15px 40px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    margin-top: 40px;
    transition: all 0.3s;
    box-shadow: 0 10px 25px rgba(102,126,234,0.3);
}

.btn-view-all:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(102,126,234,0.4);
    color: white;
}

.btn-view-all i {
    transition: transform 0.3s;
}

.btn-view-all:hover i {
    transform: translateX(5px);
}

.coming-soon {
    padding: 50px;
    background: white;
    border-radius: 20px;
    color: #718096;
    font-size: 1.2rem;
}

/* Responsive */
@media (max-width: 768px) {
    .stat-number {
        font-size: 2.2rem;
    }
    
    .category-title {
        font-size: 1.5rem;
    }
    
    .board-result-card {
        flex-direction: column;
        align-items: center;
    }
    
    .exam-header h4 {
        font-size: 1.1rem;
    }
    
    .btn-view-all {
        padding: 12px 30px;
        font-size: 1rem;
    }
}