﻿
/* Title Styles */
/*.title {
    text-align: center;
    font-size: 28px;
    margin: 20px 0;
    color: #a94442;
    position: relative;
    padding-bottom: 10px;
}

.title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 150px;
    height: 2px;
    background-color: #a94442;
}*/

/* Year Navigation */
/*.years-nav-section {
    margin: 20px 0 30px;
}

.years-nav-container {
    position: relative;
    overflow: hidden;*/
/*    padding-left: 60px;*/
/*    padding-right: 60px;*/
/*}

.years-nav {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    scrollbar-width: none;*/ /* Firefox */
    /*-ms-overflow-style: none;*/ /* IE and Edge */
    /*padding: 10px 0;
    scroll-behavior: smooth;
    padding-left: 45px;
    padding-right: 45px;
}

    .years-nav::-webkit-scrollbar {
        display: none;*/ /* Chrome, Safari and Opera */
    /*}

.year-btn {
    background-color: #bcb7b7;
    color: #ffffff;
    border: none;
    padding: 8px 16px;
    font-size: 18px;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    flex-shrink: 0;
    min-width: 135px;
}

    .year-btn:hover {
        background-color: #e0e0e0;
    }

    .year-btn.active {
        background-color: #a94442;
        color: white;
    }

.nav-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: white;
    border: none;
    width: 45px;
    height: 45px;
    /* border-radius: 50%; */
    /*display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    z-index: 10;
    opacity: 1.8;
    transition: opacity 0.3s;
}

    .nav-arrow:hover {
        opacity: 1;
    }

    .nav-arrow.left {
        left: 0;
    }

    .nav-arrow.right {
        right: 0;
    }

    .nav-arrow i {
        font-size: 30px;
        color: #a94442;
    }*/

/* Position Holders Table */
/*.position-holders-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 40px;
    background-color: white;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
    border-radius: 8px;
    overflow: hidden;
}

    .position-holders-table th {
        background-color: #a94442;
        color: white;
        padding: 15px;
        text-align: left;
        font-weight: 600;
    }

    .position-holders-table td {
        padding: 10px;
        border-bottom: 1px solid #b9b9b9;
    }

    .position-holders-table tr:last-child td {
        border-bottom: none;
    }

    .position-holders-table tr:hover {
        background-color: #fbebeb;
    }

.student-info {
    display: flex;
    align-items: center;
}

.student-image {
    width: 50px;
    height: 50px;*/
    /* border-radius: 50%; */
    /*overflow: hidden;
    margin-right: 35px;
    flex-shrink: 0;
    background-color: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #a94442;
    font-size: 20px;
}

    .student-image img {
        width: 100%;
        height: 100%;
        object-fit: contain;
        transition: transform 0.5s;
    }

.student-name {
    font-weight: 600;
    color: #333;
}

.position-badge {
    display: inline-block;
    padding: 5px 10px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 14px;
}

.marks, .percentage {
    font-weight: 600;
    color: #333;
}*/

/* Responsive Design */
/*@media (max-width: 992px) {
    .position-holders-table {
        font-size: 14px;
    }

        .position-holders-table th,
        .position-holders-table td {
            padding: 10px;
        }
}

@media (max-width: 768px) {
    .title {
        font-size: 24px;
    }

    .year-btn {
        padding: 6px 12px;
        font-size: 13px;
        min-width: 60px;
    }

    .student-info {
        flex-direction: column;
        align-items: flex-start;
    }

    .student-image {
        margin-right: 0;
        margin-bottom: 10px;
    }

    .position-holders-table {
        display: block;
        overflow-x: auto;
    }
}

@media (max-width: 480px) {
    .title {
        font-size: 22px;
        margin: 20px 0;
    }

    .year-btn {
        padding: 6px 15px;
        font-size: 14px;
        min-width: 55px;
    }

    .years-nav {
        gap: 5px;
        padding-left: 30px;
        padding-right: 30px;
    }

    .footer-container {
        grid-template-columns: 1fr;
    }
}*/

/* Year Sections */
/*.year-section {
    display: none;
    animation: fadeIn 0.5s ease;
}

    .year-section.active {
        display: block;
    }

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}*/


/*------------------------------------------------------------------------*/

/* Title Styles */
.title {
    text-align: center;
    font-size: 28px;
    margin: 20px 0;
    color: #a94442;
    position: relative;
    padding-bottom: 10px;
}

.title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 150px;
    height: 2px;
    background-color: #a94442;
}

/* Year Navigation */
.years-nav-section {
    margin: 20px 0 30px;
}

.years-nav-container {
    position: relative;
    overflow: hidden;
/*    padding-left: 60px;
    padding-right: 60px;*/
}

.years-nav {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 10px 0;
    scroll-behavior: smooth;
    padding-left: 50px;
    padding-right: 50px;
}

    .years-nav::-webkit-scrollbar {
        display: none; 
    }

.year-btn {
    background-color: #bcb7b7;
    color: #ffffff;
    border: none;
    padding: 8px 16px;
    font-size: 18px;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    flex-shrink: 0;
    min-width: 140px;
}

    .year-btn:hover {
        background-color: #e0e0e0;
    }

    .year-btn.active {
        background-color: #a94442;
        color: white;
    }

.nav-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.9);
    border: none;
    width: 45px;
    height: 45px;
    /* border-radius: 50%; */
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    z-index: 10;
    opacity: 1.8;
    transition: opacity 0.3s;
}

    .nav-arrow:hover {
        opacity: 1;
    }

    .nav-arrow.left {
        left: 0;
    }

    .nav-arrow.right {
        right: 0;
    }

    .nav-arrow i {
        font-size: 30px;
        color: #a94442;
    }

/* Position Holders Table */
.position-holders-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 40px;
    background-color: white;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
    border-radius: 8px;
    overflow: hidden;
}

    .position-holders-table th {
        background-color: #a94442;
        color: white;
        padding: 15px;
        text-align: left;
        font-weight: 600;
    }

    .position-holders-table td {
        padding: 10px;
        border-bottom: 1px solid #b9b9b9;
    }

    .position-holders-table tr:last-child td {
        border-bottom: none;
    }

    .position-holders-table tr:hover {
        background-color: #fbebeb;
    }

.student-info {
    display: flex;
    align-items: center;
}

.student-image {
    width: 50px;
    height: 50px;
    /* border-radius: 50%; */
    overflow: hidden;
    margin-right: 35px;
    flex-shrink: 0;
    background-color: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #a94442;
    font-size: 20px;
}

    .student-image img {
        width: 100%;
        height: 100%;
        object-fit: contain;
        transition: transform 0.5s;
    }

.student-name {
    font-weight: 600;
    color: #333;
}

.position-badge {
    display: inline-block;
    padding: 5px 10px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 14px;
}

.marks, .percentage {
    font-weight: 600;
    color: #333;
}

/* No Records Message */
.no-records {
    text-align: center;
    padding: 60px 20px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
    margin-bottom: 40px;
}

.no-records-icon {
    font-size: 60px;
    color: #bcb7b7;
    margin-bottom: 20px;
}

.no-records h3 {
    color: #a94442;
    margin-bottom: 10px;
    font-size: 24px;
}

.no-records p {
    color: #666;
    font-size: 17px;
    max-width: 500px;
    margin: 0 auto;
}

/* Responsive Design */
@media (max-width: 992px) {


    .position-holders-table {
        font-size: 14px;
    }

        .position-holders-table th,
        .position-holders-table td {
            padding: 10px;
        }
}

@media (max-width: 768px) {
    .title {
        font-size: 24px;
    }

    .year-btn {
        padding: 6px 12px;
        font-size: 13px;
        min-width: 60px;
    }

    .student-info {
        flex-direction: column;
        align-items: flex-start;
    }

    .student-image {
        margin-right: 0;
        margin-bottom: 10px;
    }

    .position-holders-table {
        display: block;
        overflow-x: auto;
    }

    .no-records {
        padding: 40px 15px;
    }

    .no-records-icon {
        font-size: 50px;
    }

    .no-records h3 {
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .title {
        font-size: 22px;
        margin: 20px 0;
    }

    .year-btn {
        padding: 6px 15px;
        font-size: 14px;
        min-width: 55px;
    }

    .years-nav {
        gap: 5px;
    }

    .footer-container {
        grid-template-columns: 1fr;
    }

    .no-records {
        padding: 30px 10px;
    }

    .no-records-icon {
        font-size: 40px;
    }

    .no-records h3 {
        font-size: 18px;
    }

    .no-records p {
        font-size: 14px;
    }
}

/* Year Sections */
.year-section {
    display: none;
    animation: fadeIn 0.5s ease;
}

    .year-section.active {
        display: block;
    }

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}
