body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
    padding: 2rem 0;
}

.container {
    background-color: #fff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    width: 100%;
    max-width: 400px;
    margin: auto;
}

h1 {
    text-align: center;
    color: #333;
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #555;
}

.form-group select,
.form-group input[type="text"] {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
}

.form-group button {
    width: 100%;
    padding: 0.75rem;
    border: none;
    border-radius: 4px;
    background-color: #007bff;
    color: #fff;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.form-group button:hover {
    background-color: #0056b3;
}

.result-container {
    padding: 1.5rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    margin-top: 1rem;
}

.result-container h2 {
    color: #333;
    border-bottom: 2px solid #007bff;
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
}
.student-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 0.5rem 2rem;
    margin-bottom: 1.5rem;
}
.student-details p {
    margin: 0.25rem 0;
    color: #555;
}

.student-details p strong {
    color: #333;
}

.subjects-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1.5rem;
    font-size: 0.9em;
}

.subjects-table th,
.subjects-table td {
    border: 1px solid #ddd;
    padding: 0.5rem;
    text-align: left;
}

.subjects-table th {
    background-color: #f2f2f2;
    color: #333;
}

.final-result {
    margin-top: 1.5rem;
    padding: 1rem;
    background-color: #f8f9fa;
    border-radius: 4px;
}

.final-result p {
    margin: 0.5rem 0;
    font-weight: bold;
}

.page-header {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
    border-bottom: 2px solid #007bff;
    padding-bottom: 1rem;
}

.logo {
    width: 80px;
    height: 80px;
    margin-right: 1.5rem;
    object-fit: contain;
}

.institute-details {
    text-align: center;
}

.institute-details h2 {
    margin: 0;
    color: #333;
    font-size: 1.5rem;
    border-bottom: none;
    padding-bottom: 0;
}

.institute-details p {
    margin: 0.25rem 0 0;
    color: #555;
    font-size: 1rem;
}

.page-footer {
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid #ddd;
    text-align: center;
    color: #777;
    font-size: 0.9rem;
}
