* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f4f7f6;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 1100px;
    margin: 40px auto;
    padding: 30px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
}

header {
    text-align: center;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 2px solid #eee;
}

header h1 {
    color: #2c3e50;
    font-size: 28px;
    margin-bottom: 10px;
}

header p {
    color: #7f8c8d;
    font-size: 15px;
}

.powered-by {
    margin-top: 10px;
    font-size: 14px;
}

.powered-by a {
    color: #3498db;
    text-decoration: none;
    font-weight: 600;
}

.powered-by a:hover {
    text-decoration: underline;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: 600;
    margin-bottom: 8px;
    color: #34495e;
}

select {
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 15px;
    background-color: #fafafa;
    transition: border-color 0.3s;
}

select:disabled {
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 15px;
    background-color: #eef2f2;
    color: #7f8c8d;
    border-color: #e0e0e0;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

select:focus {
    border-color: #3498db;
    outline: none;
}

.subjects-grid {
    background: #f9fbfb;
    padding: 16px;
    border-radius: 8px;
    margin-bottom: 25px;
    border: 1px solid #eef2f2;
}

.subject-row {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 15px;
    align-items: center;
    margin-bottom: 15px;
}

.subject-row:last-child {
    margin-bottom: 0;
}

.subject-row label {
    font-weight: 600;
    color: #34495e;
}

button {
    width: 100%;
    padding: 15px;
    background-color: #3498db;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s;
}

button:hover {
    background-color: #2980b9;
}

.results-section {
    margin-top: 40px;
    animation: fadeIn 0.5s ease-in-out;
}

.score-display {
    text-align: center;
    background: #e8f4f8;
    padding: 14px;
    border-radius: 8px;
    margin-bottom: 14px;
    border: 1px solid #d1e8f0;
}

.score-display h2 {
    color: #2980b9;
    margin-bottom: 10px;
}

.rp-value {
    font-size: 32px;
    font-weight: bold;
    color: #2c3e50;
}

.eligible-courses h2 {
    color: #2c3e50;
    border-bottom: 2px solid #eee;
}

#courses-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.uni-section {
    margin-bottom: 15px;
    background: #ffffff;
    border-radius: 8px;
    padding: 10px;
}

.uni-section h3 {
    background: linear-gradient(135deg, #34495e 0%, #2c3e50 100%);
    padding: 8px 12px;
    border-radius: 6px;
    margin-bottom: 10px;
    font-size: 16px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.uni-section h3 a {
    color: white;
    text-decoration: none;
}

.uni-section h3 a:hover {
    text-decoration: underline;
}

.uni-section ul {
    list-style-type: none;
}

.uni-section li {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border: 1px solid #e9ecef;
    padding: 6px 10px;
    margin-bottom: 6px;
    border-radius: 6px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.uni-section li:hover {
    transform: translateY(-1px);
    box-shadow: 0 3px 6px rgba(0,0,0,0.05);
}

.course-name {
    font-weight: 500;
    font-size: 16px;
}

.course-igp {
    color: #6c757d;
    font-size: 12px;
    background: #f4f7f6;
    padding: 2px 6px;
    border-radius: 4px;
    margin-top: 3px;
    border: 1px solid #dee2e6;
}

.disclaimer-note {
    margin-top: 10px;
    margin-bottom: 10px;    
    padding: 15px;
    background-color: #fdfbf7;
    border-left: 4px solid #f39c12;
    border-radius: 4px;
    font-size: 13px;
    color: #7f8c8d;
    line-height: 1.5;
}

.disclaimer-note strong {
    color: #e67e22;
}

.tooltip-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    background-color: #7f8c8d;
    color: #fff;
    border-radius: 50%;
    font-size: 11px;
    font-weight: bold;
    cursor: help;
    position: relative;
    vertical-align: middle;
    margin-left: 4px;
}

.tooltip-icon:hover::after {
    content: attr(title);
    position: absolute;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    background: #2c3e50;
    color: #fff;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: normal;
    white-space: normal;
    width: 250px;
    text-align: center;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    line-height: 1.4;
}

.tooltip-icon:hover::before {
    content: '';
    position: absolute;
    bottom: 115%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: #2c3e50;
    z-index: 10;
}

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

.site-footer {
    text-align: center;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 2px solid #eee;
    color: #7f8c8d;
    font-size: 14px;
}

.site-footer p {
    margin-bottom: 5px;
}

.site-footer a {
    color: #3498db;
    text-decoration: none;
    font-weight: 600;
}

.site-footer a:hover {
    text-decoration: underline;
}

@media (max-width: 800px) {
    .h1-subjects-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    .subject-row {
        grid-template-columns: 1fr 1fr 1fr;
        gap: 5px;
        margin-bottom: 15px;
        align-items: center;
    }
    .subject-row label {
        font-size: 13px;
        margin-bottom: 0;
    }
    .subject-row select {
        padding: 8px 5px;
        font-size: 14px;
    }
    #courses-container {
        grid-template-columns: 1fr;
    }
}