/* Results Page Styles */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700&display=swap');

/* Main Content Adjustments */
main {
    margin-top: 200px;
    padding-bottom: 60px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Results Hero Section */
/* Page Title Section */
.page-title-section {
    background-color: var(--primary-color);
    padding: 40px 0;
    color: white;
    text-align: center;
    margin-bottom: 50px;
}

.page-title-section h1 {
    font-family: "Playfair Display", serif;
    font-size: 2.5rem;
    margin-bottom: 10px;
    position: relative;
    display: inline-block;
}

.page-title-section h1:after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--secondary-color);
}

.breadcrumb {
    margin-top: 20px;
    font-size: 0.9rem;
}

.breadcrumb a {
    color: rgba(255, 255, 255, 0.8);
    transition: var(--transition);
}

.breadcrumb a:hover {
    color: white;
}

.breadcrumb i {
    margin: 0 10px;
    font-size: 0.8rem;
}

.breadcrumb span {
    color: var(--secondary-color);
}
@media (max-width: 576px) {
    .page-title-section h1 {
        font-size: 2rem;
    }
}

/* Results Introduction Section */
.results-intro {
    padding: 60px 0;
    background-color: white;
    margin-bottom: 60px;
}

.intro-text {
    text-align: center;
    max-width: 900px;
    margin: 0 auto 50px;
    font-size: 1.1rem;
    color: var(--text-light);
    line-height: 1.8;
}

/* Stats Container */
.stats-container {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
    margin-top: 40px;
}

.stat-card {
    background: linear-gradient(135deg, #ffffff, #f8f9fa);
    border-radius: 10px;
    padding: 30px;
    width: 220px;
    text-align: center;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #eee;
}

.stat-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.stat-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 10px;
    font-family: 'Montserrat', sans-serif;
}

.stat-text {
    font-size: 1rem;
    color: var(--text-light);
    font-weight: 500;
}

/* Results Tabs Section */
.results-tabs {
    padding: 60px 0;
    background-color: #f8f9fa;
}

.tabs-container {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.tabs {
    display: flex;
    background-color: var(--primary-color);
    overflow-x: auto;
    scrollbar-width: none; /* Firefox */
}

.tabs::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Edge */
}

.tab-btn {
    padding: 15px 25px;
    background: none;
    border: none;
    color: white;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease;
    white-space: nowrap;
}

.tab-btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.tab-btn.active {
    background-color: rgba(255, 255, 255, 0.2);
    position: relative;
}

.tab-btn.active::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--secondary-color);
}

.tab-content {
    display: none;
    padding: 40px;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Year Header */
.year-header {
    text-align: center;
    margin-bottom: 40px;
}

.year-header h3 {
    font-family: "Playfair Display", serif;
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.year-underline {
    height: 3px;
    width: 60px;
    background-color: var(--secondary-color);
    margin: 0 auto;
}

/* Top Ranks */
.top-ranks {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    margin-bottom: 50px;
}

.rank-card {
    background: linear-gradient(135deg, #ffffff, #f8f9fa);
    border-radius: 10px;
    padding: 30px;
    width: 250px;
    text-align: center;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #eee;
    position: relative;
    overflow: hidden;
}

.rank-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
}

.rank-card.first::before {
    background: linear-gradient(90deg, #FFD700, #FFA500);
}

.rank-card.second::before {
    background: linear-gradient(90deg, #C0C0C0, #A9A9A9);
}

.rank-card.third::before {
    background: linear-gradient(90deg, #CD7F32, #8B4513);
}

.rank-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.medal {
    margin-bottom: 20px;
}

.medal i {
    font-size: 3rem;
}

.rank-card.first .medal i {
    color: #FFD700;
}

.rank-card.second .medal i {
    color: #C0C0C0;
}

.rank-card.third .medal i {
    color: #CD7F32;
}

.medal span {
    display: block;
    font-size: 1.2rem;
    font-weight: 700;
    margin-top: 5px;
    color: var(--text-color);
}

.student-details h4 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.percentage {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--secondary-color);
    font-family: 'Montserrat', sans-serif;
}

/* Results Summary */
.results-summary {
    background-color: #f8f9fa;
    border-radius: 10px;
    padding: 30px;
    margin-bottom: 40px;
}

.results-summary h4, .subject-toppers h4, .results-distribution h4 {
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    text-align: center;
}

.summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.summary-item {
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.03);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.summary-label {
    font-weight: 500;
    color: var(--text-light);
}

.summary-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

/* Subject Toppers */
.subject-toppers {
    margin-bottom: 40px;
}

.subject-table {
    overflow-x: auto;
}

.subject-table table {
    width: 100%;
    border-collapse: collapse;
}

.subject-table th, .subject-table td {
    padding: 12px 15px;
    text-align: center;
    border: 1px solid #eee;
}

.subject-table th {
    background-color: var(--primary-color);
    color: white;
    font-weight: 500;
}

.subject-table tr:nth-child(even) {
    background-color: #f8f9fa;
}

.subject-table tr:hover {
    background-color: #f1f1f1;
}

/* Results Distribution */
.results-distribution {
    background-color: #f8f9fa;
    border-radius: 10px;
    padding: 30px;
    margin-bottom: 40px;
}

.distribution-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.distribution-item {
    background-color: white;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.03);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.distribution-item.total {
    background-color: var(--primary-color);
    color: white;
}

.distribution-range {
    font-weight: 500;
}

.distribution-count {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--secondary-color);
}

.distribution-item.total .distribution-count {
    color: white;
}

/* Principal Signature */
.principal-signature {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.signature-img {
    margin-right: 15px;
}

.signature-img img {
    height: 60px;
    width: auto;
}

.signature-text {
    text-align: right;
    font-size: 0.9rem;
    color: var(--text-light);
}

.signature-text p:first-child {
    font-weight: 600;
    color: var(--text-color);
}

/* Latest Results Highlight */
.latest-results {
    padding: 60px 0;
    background-color: white;
}

.highlight-card {
    background-color: #f8f9fa;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.highlight-header {
    background: linear-gradient(135deg, var(--primary-color), #0f2557);
    padding: 20px;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.highlight-header h3 {
    font-size: 1.5rem;
    font-weight: 600;
}

.highlight-badge {
    background-color: var(--secondary-color);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.05);
        opacity: 0.8;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.highlight-content {
    padding: 30px;
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}

.highlight-image {
    flex: 1;
    min-width: 300px;
}

.highlight-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.highlight-details {
    flex: 2;
    min-width: 300px;
}

.top-ranks-highlight {
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 20px;
}

.rank-highlight {
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    text-align: center;
    flex: 1;
    min-width: 150px;
    position: relative;
    overflow: hidden;
}
.rank-highlight img{
    width: 100%;
    max-width: 200px;
    margin: auto;
    padding-bottom: 20px;
}

.rank-highlight::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
}

.rank-highlight.first::before {
    background: linear-gradient(90deg, #FFD700, #FFA500);
}

.rank-highlight.second::before {
    background: linear-gradient(90deg, #C0C0C0, #A9A9A9);
}

.rank-highlight.third::before {
    background: linear-gradient(90deg, #CD7F32, #8B4513);
}

.rank-number {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.rank-highlight.first .rank-number {
    color: #FFD700;
}

.rank-highlight.second .rank-number {
    color: #A9A9A9;
}

.rank-highlight.third .rank-number {
    color: #CD7F32;
}

.rank-name {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 5px;
    color: var(--primary-color);
}

.rank-percentage {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--secondary-color);
}

.highlight-stats {
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 15px;
}

.stat-highlight {
    background-color: white;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 1;
    min-width: 150px;
}

.stat-highlight .stat-icon {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 0;
}

.stat-info {
    flex: 1;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 5px;
}

.stat-value {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--secondary-color);
}

.highlight-message {
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 20px;
}

.highlight-message p {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-light);
}

.highlight-cta {
    text-align: center;
    margin-top: 20px;
}

.highlight-cta .cta-button {
    display: inline-block;
    padding: 12px 30px;
    background-color: var(--primary-color);
    color: white;
    font-weight: 600;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
}

.highlight-cta .cta-button:hover {
    background-color: #0f2557;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}



/* Responsive Design */
@media (max-width: 992px) {
    .highlight-content {
        flex-direction: column;
    }
    
    .highlight-image {
        min-width: 100%;
    }
    
    .highlight-details {
        min-width: 100%;
    }
}

@media (max-width: 768px) {
    .top-ranks {
        flex-direction: column;
        align-items: center;
    }
    
    .rank-card {
        width: 100%;
        max-width: 300px;
    }
    
    .top-ranks-highlight {
        flex-direction: column;
    }
    
    .testimonial-content {
        padding: 30px 20px;
    }
    
    .testimonial-content p {
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    .stats-container {
        flex-direction: column;
        align-items: center;
    }
    
    .stat-card {
        width: 100%;
        max-width: 250px;
    }
    
    .highlight-stats {
        flex-direction: column;
    }
    
    .tab-btn {
        padding: 12px 15px;
        font-size: 0.9rem;
    }
    
    .tab-content {
        padding: 30px 15px;
    }
    
    .results-hero-content h1 {
        font-size: 2rem;
    }
    
    .results-hero-content p {
        font-size: 1rem;
    }
}