.student-grade {
    padding: 60px 0;
    background-color: #f9f9f9;
}

.page-title {
    text-align: center;
    margin-bottom: 30px;
    color: #0d2c54;
    font-size: 32px;
    font-weight: 700;
}

.tabs {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.tab-btn {
    padding: 10px 20px;
    background: white;
    border: 1px solid #ccc;
    border-radius: 20px;
    cursor: pointer;
    transition: 0.3s;
}

.tab-btn.active,
.tab-btn:hover {
    background: #00bfa6;
    color: white;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.student-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.student-card {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    text-align: center;
    color: #0d2c54;
    font-weight: 600;
}

.student-card:hover {
    background: #f2f2f2;
}

.student-grade {
    padding: 60px 0;
    background-color: #f9f9f9;
}

.table-responsive {
    overflow-x: auto;
}

.student-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
}

.student-table th, .student-table td {
    padding: 8px 10px;
    border: 1px solid #eaeaea;
    text-align: center;
    color: #0d2c54;
    font-size: 13px;    /* Reduced font size */
}

.student-table th {
    background: #00bfa6;
    color: #fff;
    font-size: 14px;    /* Optional: smaller heading */
}
.student-table tr {
    height: 35px; /* Controls row height */
}

.student-table tr:nth-child(even) {
    background: #f2f2f2;
}

.student-table tr:hover {
    background: #e0f7f5;
}

/* search  */
.search-section {
    margin-bottom: 30px;
    background: #ffffff;
    padding: 15px 20px;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.search-section h3 {
    margin-bottom: 10px;
    font-size: 20px;
    color: #2c3e50;
    font-weight: 600;
    text-align: center;
}

#searchInput {
    padding: 8px 12px;
    width: 100%;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 14px;
    box-sizing: border-box;
    transition: all 0.3s;
}

#searchInput:focus {
    border-color: #3498db;
    outline: none;
    box-shadow: 0 0 3px rgba(52, 152, 219, 0.5);
}

/* search result */

    .student-card {
        border-radius: 15px;
        border: 1px solid #ddd;
        background: linear-gradient(145deg, #f8f9fa, #ffffff);
        padding: 20px;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
        transition: all 0.3s ease;
        position: relative;
        overflow: hidden;
    }

    .student-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    }

    .student-card h4 {
        margin-bottom: 12px;
        color: #34495e;
        font-size: 20px;
        font-weight: bold;
        border-bottom: 1px solid #eee;
        padding-bottom: 8px;
    }

    .student-card ul {
        list-style: none;
        padding: 0;
        margin: 0;
        font-size: 14px;
        line-height: 1.8;
        color: #555;
    }

    .student-card ul li {
        display: flex;
        justify-content: space-between;
        padding: 4px 0;
    }

    /* Badge Style */
    .division-badge {
        position: absolute;
        top: 15px;
        right: 15px;
        padding: 5px 12px;
        font-size: 12px;
        font-weight: 600;
        border-radius: 20px;
        color: #fff;
        text-transform: uppercase;
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    }

    .division-star {
        background-color: #8e44ad;
    }

    .division-distinction {
        background-color: #f39c12;
    }

    .division-first {
        background-color: #27ae60;
    }

/* ------------------------------
    Responsive Design
------------------------------ */

@media (max-width: 1024px) {
    .page-title {
        font-size: 28px;
    }
    .tab-btn {
        padding: 8px 16px;
        font-size: 14px;
    }
    .student-card h4 {
        font-size: 18px;
    }
}

@media (max-width: 768px) {
    .page-title {
        font-size: 24px;
    }
    .tabs {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }
    .student-list {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
        gap: 15px;
    }
    .student-card {
        padding: 15px;
    }
    .student-card h4 {
        font-size: 16px;
    }
    .student-card ul {
        font-size: 13px;
    }
    .search-section {
        padding: 10px 15px;
        max-width: 90%;
    }
    #searchInput {
        padding: 6px 10px;
        font-size: 13px;
    }
    .division-badge {
        padding: 4px 10px;
        font-size: 10px;
    }
}

@media (max-width: 480px) {
    .page-title {
        font-size: 20px;
    }
    .tab-btn {
        padding: 6px 12px;
        font-size: 13px;
    }
    .student-list {
        grid-template-columns: 1fr;
    }
    .student-card {
        padding: 12px;
    }
    .student-card h4 {
        font-size: 15px;
    }
    .student-card ul {
        font-size: 12px;
    }
    .student-table th, .student-table td {
        padding: 6px 8px;
        font-size: 11px;
    }
    .division-badge {
        padding: 3px 8px;
        font-size: 9px;
    }
}
