/* PUP Results Page Styling - Refined */
body {
    margin: 0;
    padding: 0;
    font-family: Arial, Helvetica, sans-serif;
    background-color: #f4f7f6;
    color: #333;
}

header {
    background-color: #A9D0F5;
    /* Light Blue from PUP portal */
    padding: 15px 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    border-bottom: 2px solid #003366;
}

.header-logo {
    position: absolute;
    left: 30px;
    height: 80px;
}

.header-text {
    text-align: center;
}

.header-text h1 {
    margin: 0;
    font-size: 2.2rem;
    color: #000;
    font-weight: bold;
}

.header-text p {
    margin: 2px 0;
    font-size: 1.1rem;
    color: #000;
}

.notice-bar {
    background-color: white;
    padding: 10px;
    text-align: center;
    font-size: 0.9rem;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    border-bottom: 1px solid #ddd;
}

.notice-btn {
    padding: 2px 10px;
    background-color: #eee;
    border: 1px solid #777;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.8rem;
}

.main-container {
    display: flex;
    min-height: calc(100vh - 150px);
}

aside {
    width: 20%;
    background-color: #FFFFCC;
    /* Light Yellow from PUP portal */
    padding: 15px;
    border-right: 1px solid #ccc;
    overflow-y: auto;
}

.search-sidebar {
    width: 100%;
    padding: 5px;
    border: 1px solid #777;
    margin-bottom: 15px;
}

.result-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.result-item {
    margin-bottom: 15px;
    font-size: 0.85rem;
    line-height: 1.3;
}

.result-item span.num {
    font-weight: bold;
    color: #000;
}

.result-item a {
    text-decoration: none;
    color: #003366;
    font-weight: bold;
    display: inline-block;
}

.result-item .date-badge {
    color: #d9534f;
    font-weight: bold;
    font-size: 0.75rem;
    display: block;
    margin-top: 2px;
}

main {
    flex: 1;
    background-color: #43A089;
    /* Teal from PUP portal */
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: black;
}

.main-content-header {
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 20px;
}

.search-section {
    width: 100%;
    max-width: 500px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-bottom: 30px;
}

.search-section label {
    font-weight: bold;
}

.search-section input {
    padding: 4px 10px;
    border: 1px solid #777;
    width: 200px;
}

.search-section button {
    padding: 4px 15px;
    background-color: #eee;
    border: 1px solid #777;
    cursor: pointer;
}

.abbreviations-container {
    width: 100%;
    max-width: 700px;
    background-color: white;
    padding: 0;
    margin-top: 10px;
}

.abbreviations-title {
    background-color: #43A089;
    color: black;
    text-align: center;
    font-size: 1.3rem;
    font-weight: bold;
    padding: 10px 0;
    text-decoration: underline;
}

.abbreviations-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.8rem;
}

.abbreviations-table td {
    border: 1px solid #ddd;
    padding: 5px 10px;
}

.abbreviations-table tr:nth-child(even) {
    background-color: #f9f9f9;
}

.abbrev-code {
    font-weight: bold;
    width: 80px;
}

.notice-red {
    color: #d9534f;
    font-size: 0.8rem;
    margin-top: 10px;
    padding: 10px;
    line-height: 1.5;
}

/* Result Table Styles */
#resultArea {
    width: 100%;
    max-width: 900px;
    background-color: white;
    padding: 20px;
    margin-top: 20px;
    display: none;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.result-header-table {
    width: 100%;
    margin-bottom: 15px;
    font-size: 0.9rem;
}

.marks-data-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 15px;
}

.marks-data-table th,
.marks-data-table td {
    border: 1px solid #ccc;
    padding: 8px;
    text-align: left;
}

.marks-data-table th {
    background-color: #f2f2f2;
    text-transform: uppercase;
    font-size: 0.8rem;
}

@media (max-width: 1024px) {
    aside {
        width: 30%;
    }
}

@media (max-width: 768px) {
    .main-container {
        flex-direction: column;
    }

    aside {
        width: 100%;
        height: auto;
        border-right: none;
        border-bottom: 2px solid #ccc;
    }

    .header-logo {
        height: 50px;
        left: 10px;
    }

    .header-text h1 {
        font-size: 1.5rem;
    }
}